Skip to content
Get Started

How to Read a Traceroute

Someone reports that your site is slow. You run a traceroute, and halfway down the output there’s a hop showing 280ms and a line of asterisks right after it. It looks like you’ve found the problem.

Usually you haven’t. Both of those are normal, and acting on them sends people chasing routers that were never involved in the slowness.

Traceroute is still the most useful first tool for a network complaint, as long as you know what it measures and what it only appears to measure.

What traceroute is actually doing

Traceroute doesn’t trace a path. It provokes one into revealing itself.

Every IP packet carries a time-to-live value that each router decrements as it forwards the packet. When TTL reaches zero, the router discards the packet and sends back an ICMP time exceeded message. Traceroute exploits that deliberately: it sends a packet with TTL set to 1, which dies at the first router and reports back; then TTL 2, which dies at the second; and so on until a packet reaches the destination.

Each line contains replies for a particular probe TTL; load balancing can produce multiple routers at the same hop, prompted by a packet you sent specifically to die there. The timing figure is the round trip from you to that router and back, measured three times by default.

The probe type matters more than people expect. Linux traceroute defaults to UDP packets on high ports, Windows tracert uses ICMP echo, and traceroute -T uses TCP SYN. Firewalls treat these very differently, so a path that appears blocked with one probe type often completes with another. If a trace dies early, retrying with sudo traceroute -T -p 443 example.com is the first thing to try, because TCP to a port the destination actually serves is the probe most likely to be allowed through.

Reading the output line by line

A typical line has a hop number, a hostname if reverse DNS resolves, an IP address, and three timing figures.

Reverse DNS names can offer clues such as airport codes and interface labels, but naming is operator-defined and may be outdated. Do not treat a hostname as proof of a router’s physical location.

The IP address answers the ownership question. A registry or routing lookup can identify the address holder and origin ASN; PeeringDB then provides information about that network, which matters when you’re trying to work out whose problem a given hop is. For traffic heading toward mainland China specifically, the AS number behind a hop carries most of the meaning, and reading those carrier AS numbers is a separate skill worth having.

The three timings are three independent probes. Variation between them is normal; a consistent pattern across all three is signal.

One thing the output never shows you is the return path. Every figure is a round trip, and the way back can take a completely different route from the way out. This single fact explains most traceroute misreadings.

A worked traceroute example

On Linux, run the following against a host you want to investigate:

traceroute -n example.com

The -n option displays addresses without reverse-DNS lookups. On macOS, open Terminal and run the same traceroute -n example.com command. Windows users can run tracert -d example.com; its layout and default probe type differ.

Here is illustrative Linux output using documentation-only addresses and invented timings. It is not a live measurement of example.com or our network:

traceroute to example.com (203.0.113.80), 30 hops max, 60 byte packets
 1  192.168.1.1     0.642 ms    0.581 ms    0.610 ms
 2  192.0.2.1      4.812 ms    4.705 ms    4.990 ms
 3  192.0.2.17   280.412 ms  275.083 ms  282.661 ms
 4  * * *
 5  198.51.100.9  42.630 ms   43.104 ms   42.811 ms
 6  203.0.113.80  45.202 ms   45.510 ms   45.318 ms
  • Header: The destination is 203.0.113.80. The tool will try up to 30 TTL values; this trace reaches the destination at hop 6.
  • Hop 1: The first responding router is a private-address gateway. Each of the three timings belongs to a separate probe and includes the reply’s return journey.
  • Hop 3: Replies take about 280 ms, but later replies and the destination take less than 46 ms. This does not establish that hop 3 delayed forwarded traffic by 280 ms. Reply handling or a different return path could explain it.
  • Hop 4: None of the three probes received a reply before the timeout. Later hops still reply, so the asterisks do not establish that traffic stops here.
  • Hop 6: The destination replies at about 45 ms in these three samples. That is not the sum of the preceding timings, a throughput measurement, or a guarantee that the application is healthy.

This trace alone does not identify a forwarding fault. If the service is slow, repeat destination measurements during the problem and compare them with application timings. Avoid subtracting adjacent hop timings to assign delay to an individual link, since the replies may take different return paths.

Four readings that look like problems and usually aren’t

A middle hop with huge latency

The most common false alarm. Hop 7 shows 280ms while hop 8 shows 95ms, and the instinct is that hop 7 is overloaded.

A spike at one hop doesn’t carry forward down the list, and it isn’t a measurement of forwarding performance. The reply can also come back over a longer return path than later hops use. Generating an ICMP time exceeded message is control plane work, handled by the router’s CPU rather than its forwarding hardware, and that work is low priority by design. A busy router will answer your probe slowly while forwarding production traffic at full speed, which is exactly the behavior you’d want it to have.

An isolated intermediate RTT is weak evidence; give more weight to repeated destination measurements and actual application symptoms. If later hops return to normal, that isolated reading is not evidence of a forwarding delay.

Asterisks instead of a reply

* * * means no reply arrived within the timeout. Most of the time that’s a router declining to answer rather than a dropped packet.

Plenty of routers are configured not to send ICMP time exceeded messages at all, or to rate-limit them aggressively. Firewalls filter them. MPLS is a related case worth knowing about. A provider that doesn’t propagate TTL into its tunnels hides those routers completely, so several hops collapse into one and the backbone shows up as a single large jump in latency rather than as asterisks. Where the routers support the RFC 4950 ICMP extensions, mtr -e will show the MPLS labels at each hop.

A trace that shows asterisks in the middle and then completes normally has told you nothing except that some routers are quiet. Asterisks all the way to the end are different, and that’s covered below.

Loss shown part way down

Related to the asterisks and reported more precisely by mtr, which shows a loss percentage per hop. Seeing 40% loss at hop 6 looks serious.

If later hops and the destination show no loss over a representative test, intermediate non-responses usually reflect filtering or reply rate limiting. Persistent destination loss is stronger evidence of a problem, but may still include destination probe limits or return-path loss. Correlate it with actual service performance.

A hop in a city you didn’t expect

Traffic between two cities in the same region sometimes routes through a third one, occasionally on another continent. It looks like a mistake and it’s often deliberate, reflecting where two networks have agreed to exchange traffic rather than where the shortest line would run.

It’s only a problem if the resulting latency is worse than the alternative, which you establish by comparing against a route you know performs well, not by looking at the map.

What actually matters

Three patterns are worth acting on.

Latency that increases and remains elevated through the destination warrants investigation. A longer link, congestion, different return paths, or load balancing can produce the pattern; it does not pinpoint a faulty router on its own.

Persistent destination loss alongside retransmissions or application failures is worth acting on. A matching pattern across later hops can narrow the investigation, but differing ICMP handling and return paths mean it is not proof of a specific forward-path failure.

A trace that ends in asterisks before reaching the destination. Sometimes the host simply doesn’t reply to your probe type, which you can check by trying -T against an open port or by testing whether the service itself responds. If neither probes nor the application respond, investigate filtering, the destination, and routing; the trace alone cannot establish where the failure is.

The return path problem

Because traceroute only reveals the forward path, a one-sided trace can be actively misleading. A route can be clean in one direction and congested in the other, and the trace you ran will show you half the story while reporting round-trip numbers that include the half you can’t see.

The fix is to trace in both directions. Run your trace outbound from your server, then get a trace back toward your server from the other end. If you can’t ask the user to run one, a public looking glass in their region gives you a reasonable substitute, since it lets you originate a trace from a network close to them.

This is also why a single trace is weak evidence in a dispute with a provider. Two traces, one in each direction, taken at the time the problem occurs, is a much stronger case and usually gets a more useful reply.

For a pre-purchase, carrier-specific testing procedure, use our China routing verification guide. The distinction here is interpreting replies without treating every silent or slow router as a fault.

Running a better test

Three habits improve the quality of the answer more than any tool choice.

Use mtr instead of a single traceroute when you’re investigating rather than exploring. It sends probes continuously and reports per-hop loss and latency over time, which separates a momentary blip from a persistent condition. Run it for several minutes, not several seconds.

Test at the time the problem happens. Congestion is a peak-hour phenomenon, and a trace at 3 a.m. frequently looks perfect on a route that’s unusable at 9 p.m. If a user reports slowness in their evening, that’s when the test needs to run.

Compare against something. A trace in isolation tells you what the path is; a trace against a known-good destination on the same network tells you whether this path is unusual. Testing to two or three destinations gives you a baseline to judge the one you care about.

A public looking glass is the cleanest way to get the other direction without coordinating with anyone. It also lets you check a provider’s routing before you’ve bought anything, which is a better time to find out than after.

Wrapping up

Traceroute measures the willingness of routers to answer you, which overlaps with, but isn’t the same as, how well they carry your traffic. Intermediate latency and intermediate loss are usually control plane behavior. Prioritize destination behavior and corroborate hop patterns with application tests and measurements from both ends.

Trace both directions, test during the window the problem actually occurs, use mtr when you need to tell a blip from a pattern, and read the reverse DNS before reaching for any other tool.

Thanks for reading! If you want to check a route before committing to anything rather than after, Riven Cloud runs KVM VPS in Tokyo and Singapore with a public Looking Glass at both locations for ping, traceroute and BGP lookups, so you can run these tests against the network yourself.

Ready to see the numbers for your own traffic? Deploy a server or contact our team with questions.

Frequently asked questions about reading a traceroute

Why does one hop show much higher latency than the hops after it?

Because replying to your probe is low-priority control plane work for that router, separate from how fast it forwards traffic. A busy router answers slowly while forwarding normally. An isolated figure does not establish a forwarding problem; correlate persistent destination delay with service performance.

What do the asterisks in a traceroute mean?

They mean no reply arrived before the timeout, usually because the router is configured not to send ICMP time exceeded messages, is rate-limiting them, or a firewall filtered them. Asterisks in the middle of an otherwise complete trace are not a sign of packet loss.

Does traceroute show the path my traffic takes back to me?

No, it only reveals the forward path, even though every timing figure is a round trip. The return path can be completely different, which is why a one-directional trace can look fine while the actual problem sits on the way back. Trace from both ends when it matters.

Should I use traceroute or mtr?

Traceroute is better for a quick look at the path. mtr is better for investigating, because it probes continuously and reports loss and latency per hop over time, which distinguishes a momentary spike from a persistent condition. Run it for minutes rather than seconds.

Why does my traceroute stop before reaching the destination?

Often because the destination or a firewall in front of it doesn’t respond to the probe type you used. Linux defaults to UDP, Windows uses ICMP, and traceroute -T sends TCP SYN packets. Trying TCP against a port the host actually serves, such as 443, frequently completes a trace that otherwise dies.

Is packet loss or high latency the bigger problem?

Sustained loss usually matters more. TCP treats loss as congestion and backs off, so a route with a few percent of persistent loss can feel far worse than one with higher but stable latency. Loss shown only at an intermediate hop usually reflects that router’s replies, rather than loss of forwarded application traffic.

Share