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.
-
Where are we going?
First, the laptop looks up far.example. Its address is 203.0.113.99.
-
A probe that expires after one hop
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.
-
Hop 1 answers
The home router sends back ICMP Time Exceeded, which quotes the probe. Now traceroute knows hop 1.
-
Hop 2: the internet provider
With TTL 2, the probe gets one router further: the provider's router answers in 9 ms.
-
Silence at hop 3
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.
-
Hop 4
The next router answers in 24 ms. Times grow as the probes travel further.
-
Arrived
The destination itself answers Port Unreachable: the probe reached it, so the trace is complete.