Click here to Skip to main content
15,885,032 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to get route pattern diagram during file transferring from one source to another destination using c#
Pls tell me step by step:

Example:
I want to send a file from ip address 192.168.1.4(source) to 72.68.1.6(destination) there may be many routes through which data can sent i want to see the routes

Output:
i want this routes in Diagram form(network diagram traffic flow)

one route
192.168.1.4(source)-2.2.2.0/24-172.21.20.3-172.21.20.0/24-172.20.12.1-72.20.12.3-72.68.1.6(desti)

another route
192.168.1.4(source)-2.2.2.0/24-172.21.20.3-173.1.6.1-173.1.4.2-72.20.12.3-72.68.1.6(desti)
Posted
Updated 24-Aug-14 20:41pm
v3
Comments
Sergey Alexandrovich Kryukov 25-Aug-14 2:24am    
Not clear. Is it transfer in some network? Why would you need that? And so on...
—SA
Roopa 10064853 25-Aug-14 2:40am    
Ya i want to transfer to some network and check the traffic flow while transferring data and troubleshoot if any problems exist

Your information is very limited, but you can find a C# implementation of tracert here: ICMP the ping-tracert[^]. You can use the results to create a diagram.
 
Share this answer
 
There is a bit of a problem with doing this. You can attempt to find the route using a ICMP TRACERT implementation in your code. The problem with this is that some routers will either not forward ICMP packets at all or will reroute them from the normal traffic you're sending over FTP for some stupid reason.

Yes, I have seen it happen with two different ISPs.

Also, some ISP's and content hosting providers can put FTP traffic on separate routes from other web traffic, though this is rare.

In any case, you have no way of knowing if the traffic is actually going on the route that you're TRACERT implementation says it's on. You may also run into the problems where FTP fails, but TRACERT says everything is fine, or you may find the other way around (this is a bit more common!)

Basically, if you have a problem with the FTP transfer, you have no way of doing anything about it from your code. About the best you can do is guess at where the problem may be. It's usually going to be completely outside of the possibility of the user doing anything about it anyway so I'd say this "feature" is pretty pointless.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900