cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
394
Views
0
Helpful
2
Replies

hi

sajeer9745
Level 1
Level 1

how traceroute works?

2 Replies 2

Charles Hill
VIP Alumni
VIP Alumni

The link below describes traceroute and how to troubleshoot using traceroute.

 

Good luck.

https://major.io/wp-content/uploads/2012/06/RAS_Traceroute_NANOG_slides.pdf

 

amagana
Level 1
Level 1

Sajeer,

Traceroute shows you the path of the packet.

Each line of output represents a hop (router to router) from the source address to the destination address. 

Each packet contains a field called Time To Live (TTL), which is the maximum number of hops a packet can travel before it is discarded. TTL ensures a "TTL time exceeded" message is sent back to the source at each hop and an "ICMP Destination/PORT Unreachable" message (or a ICMP Echo reply) is sent back to the source when the final destination is reached. The TTL is decremented at each hop and when it reaches 1 the router replies with the timeout or reply message.

Example:

  1. TTL = 1
    1. Packet sent to gateway router and times out
    2. “TTL time exceeded” message sent back from the gateway router
  2. TTL = 2
    1. Packet sent to gateway router and decrements by 1
    2. Packet sent to next hop router and times out
    3. “TTL time exceeded” message sent back from the next hop router
  3. TTL = 3
    1. Packet sent to gateway router and decrements by 1
    2. Packet sent to next hop router and decrements by 1
    3. Packet sent to next hop router #2 and times out
    4. “TTL time exceeded” message sent back from the next hop router #2

This process continues until the destination router is reached; at that point a “ICMP Destination/PORT Unreachable” is sent back (in the case of UDP tracerotue).

There are three types of traceroutes:

  • UDP traceroute (default for Unix/Linux)
  • ICMP traceroute (default for Windows)
  • TCP traceroute

 

Note: A hop that outputs * * * does not mean that router is down; instead it means the router at that hop does not respond to the type of packet you were using for traceroute. For example, a router may be configured to not respond to ICMP echo requests (pings) for an ICMP traceroute.

For more information:

http://www.cisco.com/c/en/us/support/docs/ip/ip-routed-protocols/22826-traceroute.html

 

-Alex

Review Cisco Networking for a $25 gift card