Networking · interactive
traceroute: mapping the path
Every IP packet carries a TTL that each router decrements; at zero the packet is dropped and the router usually reports back. traceroute sends packets with TTL 1, 2, 3… so each router on the path reveals itself in turn.
$ traceroute example.com
- 1home-router (192.168.1.1)1.2 ms
- 2…
- 3…
- 4…
- 5…
- 6…
you
TTL=1 → ICMP Time Exceeded
TTL 1: each router decrements TTL; at home-router it hits 0, so the router drops it and sends back “time exceeded”, revealing itself. 1.2 ms.
TTL 1
Step 2 of 4 · read left to right
In production
Tools and technologies
Path tools are the first step in debugging the network.
Not tied to one language — use these names when you search docs or design a system.