How do I run a traceroute on each system?
| System | Command | Notes |
|---|---|---|
| Ubuntu, Debian | traceroute -n 203.0.113.25 | Install with apt install traceroute |
| Rocky Linux, AlmaLinux | traceroute -n 203.0.113.25 | Install with dnf install traceroute |
| FreeBSD 14 | traceroute -n 203.0.113.25 | Part of the base system |
| macOS | traceroute -n 203.0.113.25 | Included |
| Windows | tracert -d 203.0.113.25 | Included; uses ICMP |
-n on Unix and -d on Windows skip reverse DNS lookups for each hop. Names are sometimes helpful, since router names often hint at the city, but lookups can add seconds per line.
How do I read the output?
traceroute to 203.0.113.25, 30 hops max, 60 byte packets 1 192.168.1.1 0.612 ms 0.540 ms 0.531 ms 2 100.64.0.1 8.904 ms 8.877 ms 9.012 ms 3 * * * 4 198.51.100.66 21.302 ms 21.118 ms 21.440 ms ... 11 203.0.113.25 48.210 ms 48.115 ms 48.390 ms
Each line is one hop: its number, the address that answered and three round-trip times, one per probe. The first hops belong to your own network and provider; the last line is the destination. Times usually grow with distance, but not strictly: a router that answers slowly for its own replies can show a higher time than the hops after it, which does not affect traffic passing through.
What do stars and odd timings mean?
- * * * on one hop: that router does not answer trace probes. If later hops answer, the path is fine.
- Stars to the end: probes stop getting replies past that point, either a firewall filtering them or a break. Try another probe type.
- A jump that persists: latency rises at one hop and stays high afterwards, often a long-distance link such as an ocean crossing. That is physics, not a fault.
- A spike that disappears: one hop shows high times but the next ones are normal again; that router de-prioritises its own replies.
Which options are worth changing?
traceroute -n -q 1 -w 2 -m 20 203.0.113.25 # one probe per hop, 2 s wait, max 20 hops sudo traceroute -n -T -p 22 203.0.113.25 # TCP SYN to the SSH port traceroute -n -A 203.0.113.25 # show AS numbers per hop
Fewer probes and shorter waits make traces fast when you only need the path. TCP mode follows the same rules as real connections, so it passes firewalls that drop UDP and ICMP. -A looks up the autonomous system for each hop, which shows where traffic leaves one network for another. The differences between traceroute and tracepath are covered in tracepath vs traceroute.
Why run it from both ends?
Because the path to a server and the path back can differ. A user who sees slow pages should send you a trace toward your machine's address, while you run one from the machine toward theirs. Ask Windows users to run tracert -d in a command prompt and paste the result. With both, you can see whether the slow part sits near the user, somewhere in transit or near our edge.
How do I keep a record?
{ date -u; traceroute -n -q 2 198.51.100.12; } >> ~/traces/replica-path.log
A few traces taken at different times are worth more than one. If performance drops every evening, compare an evening trace with a morning trace; a changed path or a hop whose time climbs at peak hours stands out immediately. For loss per hop over many cycles, mtr is the better tool.
What should go into a support ticket?
Attach traces in both directions, the time they were taken in UTC, the client's public address and a short description of the symptom. If the problem looks close to our network, open the ticket from the panel with that evidence; it lets the network side start from facts rather than a description. For latency expectations by distance, see Latency, and for ping-based measurements The ping command.
Keep Reading
tracepath vs traceroute
Two ways to trace a network path: traceroute with its UDP, ICMP and TCP modes, tracepath with MTU discovery and no root, plus mtr for loss.
OpenThe ping command
Use ping beyond "is it up": counts, intervals, packet sizes, path MTU tests, timestamps and reading loss and jitter correctly.
OpenLatency
Why distance sets the floor for ping time, how to estimate round trips between our six cities and how to choose a location.
OpenServers in Seattle
Pacific Northwest location for Washington, Oregon and Western Canada, facing the trans-Pacific routes toward Japan and Korea.
OpenFAQ
Quick Answers
Install the traceroute package and run traceroute -n followed by the address.
tracert. Use tracert -d to skip name lookups.
Round-trip times in milliseconds for three separate probes to that hop.
Probes are filtered or the path breaks there. Try TCP mode with -T and a port the destination accepts.
Add -A to show the autonomous system number for each hop.