Learn / Walkthrough

Tracing the route

Traceroute sends probes that are designed to expire after 1, 2, 3, and more hops. Each router that discards one sends back an error message, and that reveals where it is.

  1. Where are we going?

    Packet 2

    First, the laptop looks up far.example. Its address is 203.0.113.99.

  2. A probe that expires after one hop

    Packet 3

    The laptop sends a UDP probe with a time to live (TTL) of 1. Every router lowers the TTL by one and discards packets that reach 0.

    Think about it: Which device will discard this probe?

    The first router: the home router at 192.168.1.1.

  3. Hop 1 answers

    Packet 4

    The home router sends back ICMP Time Exceeded, which quotes the probe. Now traceroute knows hop 1.

  4. Hop 2: the internet provider

    Packet 6

    With TTL 2, the probe gets one router further: the provider's router answers in 9 ms.

  5. Silence at hop 3

    Packet 7

    This probe gets no answer at all. Many routers are configured not to send these messages; traceroute shows * and moves on.

    Think about it: Does silence mean the path is broken here?

    No. Later hops answer, so packets clearly pass through hop 3.

  6. Hop 4

    Packet 9

    The next router answers in 24 ms. Times grow as the probes travel further.

  7. Arrived

    Packet 11

    The destination itself answers Port Unreachable: the probe reached it, so the trace is complete.