Sub topic 9
Reading traceroute output and locating a problem
This chapter assumes you know what an IP address and a default gateway are. It also assumes you can run ping and tracert from a command prompt, and that you know TTL is a counter that each router decrements. Here you learn to read the output and decide where a fault begins.
Anatomy of one output line
Here is a typical Windows tracert run:
tracert -d example.comTracing route to example.com [93.184.216.34]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms 192.168.1.1
2 9 ms 8 ms 9 ms 10.20.0.1
3 * * * Request timed out.
4 22 ms 21 ms 23 ms 203.0.113.5
5 35 ms 36 ms 35 ms 93.184.216.34
Trace complete.Each line is one hop, which is one router. The columns are:
- The hop number, which is the TTL value of the probes that produced the line.
- Three round-trip times.
tracertsends three probes per hop, so you get three measurements. - The address of the router that answered with ICMP Time Exceeded. Without
-d, a name may appear before the address.
An asterisk means one probe got no answer within the timeout. Three asterisks mean no answer for the whole hop.
What the times tell you
The times are round trips to that router, not the time spent in it. Latency should generally rise as you move away from you. Look for these patterns:
- A steady climb. 1 ms, 9 ms, 22 ms, 35 ms is healthy. Each hop adds distance.
- A jump that stays. If hop 4 jumps from 20 ms to 150 ms and every later hop stays near 150 ms, the slow link is between hops 3 and 4. This is a real finding.
- A spike on one hop only. If hop 4 shows 200 ms but hops 5 and 6 show 35 ms, hop 4 is slow at replying. Routers give low priority to answering probes aimed at them, so this is usually harmless.
- Times that fall. A later hop faster than an earlier one is normal. The return path can differ, and the replies are generated at different speeds.
Reading asterisks
Where the asterisks sit matters more than how many there are.
| Pattern | Likely meaning |
|---|---|
| Asterisks on a middle hop, later hops answer | That router does not send Time Exceeded replies, or rate-limits them. Traffic still passes. Ignore it. |
| Asterisks from some hop to the end, never reaching the target | Probes stop at or after the last responding hop. This is where to look. |
| Asterisks on the last hop only, target works in a browser | The target blocks ICMP or the probe type. The path is fine. |
| First hop is asterisks | Problem on your own machine or LAN. Check `ipconfig`. |
The key rule: a gap only matters if it continues to the end of the trace. If hop 3 is silent but hop 4 answers, packets went through hop 3.
Locating a problem
- Read down until the last hop that answers. The fault is at or just beyond it.
- Check who owns that address. Hops in
192.168.x.xare your LAN. Hops in10.x.x.xoften belong to your ISP's internal network. Public addresses beyond that belong to carriers or the destination. - Repeat the trace once or twice. A single run can be unlucky.
- Compare with
pingto the last responding hop and the destination.
A trace that ends with Destination host unreachable from a router, such as 3 ... 10.20.0.1 reports: Destination net unreachable, tells you that router has no route onward. A trace that fills to 30 hops of asterisks means the destination was never reached within the hop limit.
Exercise
A trace shows hops 1 and 2 answering in under 10 ms, hop 3 as three asterisks, and hops 4 and 5 answering at 40 ms, with hop 5 being the destination. Is hop 3 the problem? Why or why not?
Show answer
No. Probes and replies reached hop 5, so traffic crossed hop 3. That router simply does not answer, or rate-limits, Time Exceeded messages. A silent hop matters only when the silence continues to the end of the trace without reaching the destination.