Traceroute
Also known as: tracert, tracepath
A network diagnostic tool that discovers each hop on the path from your device to a destination, listing every router in between and the latency to each.
Last updated:
What is traceroute?
Traceroute is a diagnostic tool that reveals every router ("hop") a packet passes through on its way from your device to a destination, and how long the round-trip to each hop takes. The result is a numbered list of intermediate routers, their IP addresses, their hostnames (via reverse DNS), and their round-trip latency in milliseconds.
Traceroute is the first tool you reach for when a connection feels slow or broken — it tells you exactly where on the path the problem is, and which network operator owns that link.
How traceroute works
Traceroute exploits the TTL (Time-to-Live) field in the IP header. Every router that forwards a packet decrements its TTL by 1; when the TTL reaches 0, the router drops the packet and sends back an ICMP "Time Exceeded" message naming itself. Traceroute takes advantage of this:
- Send a probe with TTL = 1 — the first router on the path drops it and reveals itself
- Send a probe with TTL = 2 — the second router reveals itself
- Continue incrementing the TTL until the destination itself responds
- Print each hop's IP, reverse DNS, and round-trip time
Each hop is typically probed three times to show variance (20ms 19ms 21ms). Some hops show * * * — that means the router either didn't respond (ICMP rate-limited) or the packets timed out.
Variants
- Unix
traceroute— defaults to UDP probes on high ports, relying on ICMP Port Unreachable to know the destination was reached - Windows
tracert— uses ICMP Echo Request probes traceroute -I— force ICMP probes on Unixtraceroute -T -p 443— TCP-based, useful when ICMP/UDP are filtered and you want to test the actual TCP pathmtr— a continuously-updating hybrid ofpingandtraceroutethat runs many iterations to smooth out jitter
Reading a traceroute
A healthy traceroute shows monotonically increasing latency as you get further from the source. A sudden jump of tens or hundreds of milliseconds at one hop usually means a long-haul link (transoceanic cable, satellite); a sudden jump that stays elevated often indicates a congested peering link. Repeated * * * at the final hops usually means the destination blocks ICMP responses — this is not a failure.
Traceroute shows an asymmetric path back to source, so the apparent latency can include a long return route. mtr helps distinguish which direction is slow.
Run a traceroute from our infrastructure to any host with the visual traceroute tool.