Tracing IP routes
When an application requests a service through the Internet, the server may be at a distant location and connected via many of gateways or routers. The traceroute
command displays the address of all intermediate gateways a packet visits before reaching its destination. traceroute
information helps us to understand how many hops each packet takes to reach a destination. The number of intermediate gateways represents the effective distance between two nodes in a network, which may not be related to the physical distance. Travel time increases with each hop. It takes time for a router to receive, decipher, and transmit a packet.
How to do it...
The format for the traceroute
command is as follows:
traceroute destinationIP
destinationIP
may be numeric or a string:
$ traceroute google.com traceroute to google.com (74.125.77.104), 30 hops max, 60 byte packets 1 gw-c6509.lxb.as5577.net (195.26.4.1) 0.313 ms 0.371 ms 0.457 ms 2 40g.lxb-fra.as5577.net (83.243.12.2) 4.684 ms 4.754...