mtr
traceroute, continuouslymtr traces the route like traceroute, then keeps probing every hop and updates the figures as it goes. One screen shows where on the path packets are being lost or delayed, which a single traceroute cannot.
Loss that continues to the final hop is real. Loss at one middle hop only usually is not.
At the terminal
Read the session first, then the notes: each numbered line in the output is answered by the note with the same number.
What the numbered lines are telling you
Percentage lost, probes sent, then the last, average, best and worst round-trip time in milliseconds, and how much it varies.
Under a millisecond and no loss: the local network is fine.
Hop 3 dropped 40% of the probes sent to it, but the hop after it shows none. The router is simply limiting how often it replies; traffic through it is unaffected.
No loss and a steady 13 ms. The path is healthy end to end, whatever hop 3 looked like.
Switches
A switch changes how the command behaves. These are the ones used day to day; man mtr lists the rest. Single-letter switches can usually be joined, so -l -a may be written -la.
-r- Report mode: run, then print a table and exit.
-w- Wide report: do not cut host names short.
-n- Numeric: no name lookups.
-c NUM- Send NUM probes to each hop.
-T- Use TCP probes. -u uses UDP.
-P PORT- The destination port for TCP or UDP probes.
-b- Show both names and addresses.
Variations worth knowing
The same tool, pointed at a narrower question. These four cover most of what it is reached for day to day.
mtr 198.51.100.20The live view, updating until you press q.
mtr -T -P 443 example.comProbes with TCP to port 443, as real web traffic would travel.
mtr -u example.comProbes with UDP instead of ICMP.
mtr -rw -c 100 example.com > path.txtSaves a 100-probe report to send to a network provider.
In cybersecurity
A path trace shows whose networks your traffic crosses.
Routers deliberately limit replies to probes. Misreading that as a fault leads to blaming the wrong network. Trust the last hop.
Traffic to a nearby service that suddenly crosses another country may be a routing change — or a route hijack. A saved baseline makes the difference visible.
Many networks drop ICMP. Probing with TCP to the service’s real port shows the path that the actual traffic takes.