Find the network path / route that is being used to reach a particular host on internet

by on April 7, 2006 · 0 comments· LAST UPDATED May 13, 2008

in , ,

Q. How do I find out the network path and/or router that is being used to reach a particular host on the internet?

A. You need to use traceroute command, which display the route packets take to network host on the Internet. It traces a packet from your computer to an Internet host, showing how many hops the packet requires to reach the host and how long each hop takes. Very useful to troubleshot network problem.

As you may be aware that the Internet is a large and complex aggregation of network hardware, connected together by gateways. Tracking the route one's packets follow (or finding the miscreant gateway that's discarding your packets) can be difficult.

Tracing routes under Linux/UNIX

Use traceroute command as follows:
$ traceroute cyberciti.biz
Output:

1  gateway-29.0.vsnl.net.in (202.54.29.1)  0.706 ms  0.887 ms  5.442 ms
2  203.197.33.200.static.vsnl.net.in (203.197.33.200)  1.123 ms  0.597 ms  0.566 ms
3  202.54.2.162 (202.54.2.162)  0.633 ms  1.109 ms  0.627 ms
4  nny-mum-6th-stm1.Bbone.vsnl.net.in (202.54.2.130)  211.014 ms  217.451 ms  210.244 ms
5  219.64.229.1.mpls-vpn-ny.static.vsnl.net.in (219.64.229.1)  213.922 ms  213.965 ms  213.777 ms
6  ge-0-0-9.p812.pat1.dce.yahoo.com (216.115.98.105)  229.726 ms  220.475 ms  219.694 ms
7  vlan240-msr1.re1.yahoo.com (216.115.96.169)  220.287 ms ge-3-1-0.p440-msr1.re1.yahoo.com (216.115.96.189)  230.317 ms *
9  p5w4.geo.re2.yahoo.com (68.142.234.47)  346.741 ms  346.824 ms  346.111 ms

Tracing routes under MS-Windows NT/XP/2000/2003/Vista

Use tracert command. Click on Start > Run and type following command:
tracert cyberciti.biz
Please note that traceroute utilizes the IP protocol time to live field and attempts to elicit an ICMP TIME_EXCEEDED response from each gateway along the path to some host. For security reason some ISP / network admin (stupid move IMPO) may block access to traceroute. You can bypass this restriction with tcptraceroute command for most common firewall filters.

You can also try out online traceroute from leading Indian ISP (Internet/broadband service provider's web site):

  1. Net4India Ltd, Delhi
  2. Software Technology Parks of India, Lucknow
TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 0 comments… add one now }

Leave a Comment

Tagged as: , , , , , , , , , , , , , , , , , ,

Previous Faq:

Next Faq: