Your IPv4 address:
Operating system:

Traceroute explained: hops, timeouts and network routes

A site is slow or unreachable, somebody suggests a traceroute, and you get a list of addresses, times and asterisks. Traceroute shows which routers answered your probes on the way to a destination and how long each answer took. Read it as a snapshot of one moment: it is neither a permanent map of the Internet nor proof of the path every application packet takes.

Running your first trace

On Linux and most macOS systems, type traceroute example.com. On Windows the command is tracert example.com. Trace a domain you control or are authorised to diagnose. Note the destination, the time and the network you were on, and save the complete output instead of only the last hop that replied.

Where the list of hops comes from

Every IP packet carries a counter that each router lowers by one: TTL in IPv4 and Hop Limit in IPv6. Traceroute sends probes with the counter set to one, then two, then three, and so on. A router that brings the counter down to zero discards the packet and may send back an ICMP Time Exceeded message. Collecting those messages reveals, hop by hop, the devices that respond along the forward path.

The probes themselves may be UDP, ICMP or TCP, depending on the operating system and the options you choose. The Windows command sends ICMP echo requests, while the classic Unix one sends UDP by default. Firewalls and network policies treat these types differently, so switching the probe type can produce a different trace. A TCP probe to the port the service really uses is sometimes more informative than a default UDP probe.

What the times and asterisks mean

Each line is one hop number. The several times on that line belong to separate probes; they are not one continuous measurement. An asterisk usually means that no reply arrived before the timeout. The router may be forwarding ordinary traffic perfectly well while declining to answer diagnostics, or limiting how often it does.

A high time at one hop in the middle does not have to mark a bottleneck. Look at the hops after it and at the destination. If they do not show a similar increase, the slow reply was that router’s own, and the traffic passing through it was not delayed.

Two more effects make a single trace easy to misread. Return traffic can take a different route from the outgoing one, and load balancing can send successive probes along different forward paths.

Is the fault real or only a silent router?

If every probe stops at one hop but the website works, the missing replies are a limit of the diagnostic and nothing more. Silent hops in the middle followed by a successful final reply tell a very different story from a destination that never responds.

If the destination fails as well, run several traces and compare them with a direct test of the application. Then trace from another network and examine DNS, firewall rules and the service itself. When you send the results to your provider, keep them concise and include the probe type you used. A trace on its own cannot establish who caused a fault.

Why the same trace looks different tomorrow

Traceroute sees the path of its own probes. It does not see the routing policy behind that path. Networks exchange routes using BGP, and when one of them changes a peering arrangement, the sequence of hops can change with it. The article on BGP and ASNs explains how those decisions are made.

With Anycast, one IP address is announced from several sites, so the same destination can end in a different city depending on where and when you trace. For the mechanics of the hop counter in more depth, see how traceroute works.