When a website is slow from one country, or an SSH session lags in the evening, the first question is always: where on the path is the problem? Traceroute shows the routers between you and the server; MTR (My Traceroute) runs traceroute continuously and adds packet loss and latency statistics for every hop. Together they are the standard tools for diagnosing network problems — but their output is easy to misread. Most “100% loss at hop 5” alarms are not problems at all.
This guide explains how to run both tools, how to read each column, and how to tell real issues from harmless noise.
Installing the tools
| System | Install | Run |
|---|---|---|
| Ubuntu / Debian | sudo apt install mtr-tiny traceroute |
mtr / traceroute |
| AlmaLinux / Rocky | sudo dnf install mtr traceroute |
mtr / traceroute |
| macOS | brew install mtr |
sudo mtr |
| Windows | Download WinMTR, or use built-in tracert and pathping |
Running a useful MTR test
The interactive view is good for watching; a report is better for sharing:
mtr -rwzbc 100 203.0.113.10
| Flag | Meaning |
|---|---|
-r |
report mode: run, then print a summary |
-w |
wide: do not truncate host names |
-z |
show the AS number of each hop (who owns the network) |
-b |
show both host names and IP addresses |
-c 100 |
send 100 probes per hop |
100 probes takes about 100 seconds. Fewer than 50 gives unreliable loss percentages.
Test in both directions. Internet routing is often asymmetric: the path from Shanghai to Hong Kong can differ from the path back. Run MTR from the client to the server and from the server to the client’s IP.
Test at the right time. Cross-border links into mainland China are most congested at the evening peak, roughly 20:00–23:00 Beijing time. A test at 10:00 can look perfect while customers struggle every night.
Reading the report
HOST Loss% Snt Last Avg Best Wrst StDev
1. AS??? 192.168.1.1 0.0% 100 1.1 1.3 0.9 3.2 0.4
2. AS4134 115.x.x.x 0.0% 100 4.2 5.0 3.8 12.1 1.2
3. AS4134 202.97.x.x 12.0% 100 38.5 41.2 35.0 88.4 9.7
4. AS4134 202.97.x.x 8.0% 100 40.1 43.0 36.2 91.0 10.1
5. AS??? ??? 100.0% 100 0.0 0.0 0.0 0.0 0.0
6. AS64500 203.0.113.1 7.0% 100 45.0 46.3 44.1 95.2 8.8
7. AS64500 203.0.113.10 7.0% 100 45.3 46.8 44.0 97.0 9.0
| Column | Meaning |
|---|---|
| Loss% | Percentage of probes to this hop that got no reply |
| Snt | Probes sent |
| Last / Avg / Best / Wrst | Round-trip time in milliseconds |
| StDev | How much latency varies — high values mean jitter |
Rule 1: only loss that continues to the end matters
Routers handle traffic through them in hardware, but replies to MTR probes are handled by a slow control-plane CPU, and many routers rate-limit them. A hop can show 30% loss while forwarding every real packet perfectly.
So look at the final hop first:
- Final hop 0% loss → the path is fine, whatever intermediate hops show.
- Loss that starts at a hop and continues at the same level or higher to the end → real loss, probably introduced at that hop.
- Loss at one hop that disappears on later hops → ICMP rate limiting. Ignore it.
In the example, loss appears at hop 3 and stays (7–12%) to the destination: real loss beginning on that backbone.
Rule 2: ??? hops are usually harmless
A line of ??? with 100% loss means that router does not answer probes at all. If later hops respond normally, it is not a problem.
Rule 3: latency only matters if it carries forward
A single hop with a high Avg (say 200 ms) followed by hops at 45 ms is again a slow control plane, not a slow link. Real latency increases are inherited by every later hop.
Rule 4: geography sets a floor
Light in fibre covers about 200 km per millisecond, so round-trip time cannot beat roughly 1 ms per 100 km of cable route. Hong Kong to Shanghai is around 1,200 km in a straight line, and real cable routes are longer. A large jump between two hops usually means a long-distance link — often a submarine cable or a border crossing — and is expected.
Rule 5: StDev and Wrst show congestion
A path with Avg 45 ms but Wrst 300 ms and a high StDev is congested at times: queues fill, packets wait. This is typical of busy international links at peak hours, and it is what makes video calls and games stutter even when the average looks fine.
Identifying China backbones in MTR
The AS numbers and address ranges in the report tell you which carrier network you are on. Common examples:
| What you see | Network |
|---|---|
AS4809, hops in 59.43.x.x |
China Telecom CN2 (premium) |
AS4134, hops in 202.97.x.x |
China Telecom 163 backbone (standard) |
AS4837, hops in 219.158.x.x |
China Unicom backbone |
| AS9929 | China Unicom premium network |
| AS58453 / AS9808 | China Mobile international (CMI) / domestic |
A route that stays on CN2 (59.43) through the border usually holds up much better at peak times than one crossing over 202.97. For a deeper comparison see China Telecom, Unicom and Mobile routes explained, and for a step-by-step latency test see how to test latency to mainland China.
Traceroute and Windows tools
Plain traceroute gives one snapshot per hop:
traceroute -n 203.0.113.10 # UDP probes
sudo traceroute -T -p 443 -n 203.0.113.10 # TCP probes to port 443
TCP mode is useful when firewalls drop UDP or ICMP; it follows the same path as real web traffic.
On Windows:
tracert -d 203.0.113.10
pathping -n 203.0.113.10
pathping is Windows’ own MTR-like tool: it traces the route, then measures loss for about 25 seconds per hop. WinMTR gives the familiar MTR view with a graphical interface.
Common patterns and what they mean
| Pattern | Likely meaning | What to do |
|---|---|---|
| Loss only at hop 1–2 | Your own Wi-Fi or home router | Test on a wired connection |
| Loss starts at a border/backbone hop in the evening only | International congestion | Choose a better route (e.g. CN2 GIA); test before buying |
| High latency from the first hop | Local network or ISP problem | Test from another network |
| Destination unreachable, hops stop at the provider edge | Firewall blocking ICMP | Use TCP traceroute to the open port |
| Route goes via the US or Europe for an Asia–Asia connection | Poor peering (“detour”) | Report to both providers with MTR from both ends |
Sending a good report to support
When you open a ticket about network performance, include:
- MTR report output (not a screenshot) from the affected location to the server, with
-c 100or more. - MTR from the server back to the affected client IP (run it on the server).
- The time and time zone of the test, and whether the problem happens all day or only at peak.
- What the user experiences: slow downloads, timeouts, lag.
With both directions and a time, network engineers can see which carrier and which link is responsible. A single screenshot of hop 5 at 100% loss usually leads nowhere.