On this page
- What does mtr show that ping and traceroute do not?
- How do you install mtr?
- How do you create a report?
- Why test in both directions?
- How do you read the columns?
- How do you tell real loss from harmless rate limiting?
- What if ICMP is filtered along the path?
- How do you send the report to support?
- What else can cause slowness that mtr will not show?
- Questions
What does mtr show that ping and traceroute do not?
mtr combines both tools: it discovers each router on the path like traceroute, then keeps probing all of them like ping, and summarizes loss and latency per hop. A single traceroute is a snapshot of one moment, and ping only tells you that something along the way is wrong. With mtr you see where along the route the trouble begins, which makes the difference between "my server is slow" and "packets are dropped between two networks in a city far from both ends". That distinction tells you, and our support team, where to look first.
How do you install mtr?
The package is small and available in the standard repositories. On Ubuntu and Debian the mtr-tiny package is the version without a graphical interface, ideal for servers:
# Ubuntu 24.04 / 22.04, Debian 12 / 13
sudo apt update && sudo apt install -y mtr-tiny
# Rocky Linux 9, AlmaLinux 9
sudo dnf install -y mtr
mtr --versionOn a Mac, install it with Homebrew (brew install mtr) and run it with sudo. On Windows, WinMTR provides the same view in a window and can export a text report. Most Linux desktops also offer an mtr package.
How do you create a report?
Use report mode so mtr runs a fixed number of cycles and prints a table you can save and share. The flags most support teams expect are -r (report), -w (wide, never cut hostnames), -b (show both names and IP addresses), -z (add the AS number for each hop) and -c 100 (100 probes per hop):
mtr -rwbzc 100 example.net > mtr-to-example.txt
cat mtr-to-example.txtA run of 100 cycles takes about 100 seconds, because mtr sends one probe per second by default. Fewer cycles finish sooner but can miss intermittent loss, so keep 100 or more for anything you plan to report. Add -4 or -6 to test one address family; IPv4 and IPv6 often take different routes, so a problem may affect only one of them (see IPv6 on your server).
Why test in both directions?
Internet routing is often asymmetric: the path from your home to the server may differ completely from the path the replies take back. A report from one side only shows half of the story. For a complete picture, collect:
- From your own computer to the server:
mtr -rwbzc 100 198.51.100.24(and2001:db8:4f2a::24for IPv6). - From the server back to your public address, which you can look up with a "what is my IP" page.
- Optionally from the server to the remote service that feels slow, such as an exchange API or a package mirror.
Run the reports while the problem is happening. A trace taken an hour later, after the congestion cleared, will look perfect and hide the cause.
How do you read the columns?
Each row is one hop. The columns mean:
- Loss%: share of probes to that hop that got no reply.
- Snt: number of probes sent.
- Last, Avg, Best, Wrst: latency of the last probe, the average, the fastest and the slowest, in milliseconds.
- StDev: how much latency varies; a high value means jitter.
Focus on the final line first. If the destination shows 0% loss and a reasonable average, the path is healthy, whatever the middle rows look like. Latency naturally grows with distance, so a large but steady jump on a hop that crosses an ocean is physics, not a fault.
How do you tell real loss from harmless rate limiting?
Look at whether the loss continues. Routers treat probes aimed at themselves as low priority and often limit how many they answer, while still forwarding real traffic at full speed. A report like this one is healthy:
HOST Loss% Snt Avg
4. AS64500 core1.example.org 0.0% 100 8.1
5. AS64500 edge2.example.org 35.0% 100 9.0
6. AS64501 br1.example.com 0.0% 100 18.4
7. AS64502 198.51.100.24 0.0% 100 19.2Hop 5 drops probes, but every hop after it, including the destination, has no loss, so the drop is only rate limiting. Real trouble looks different: loss appears at one hop and every following hop, including the last, shows a similar or higher value. The first hop where it starts is where the problem likely lives. Rows shown as ??? belong to routers that never answer probes; they are normal as long as the hops after them respond.
What if ICMP is filtered along the path?
Switch probe types. Some networks drop or deprioritize ICMP, so a TCP or UDP trace to the real service port shows what your application traffic experiences:
sudo mtr -rwbzc 100 -T -P 443 example.net
sudo mtr -rwbzc 100 -u -P 51820 198.51.100.24The first line sends TCP SYN probes to port 443, the second UDP probes to the WireGuard port. If ICMP looks lossy but TCP to port 443 is clean, the service is fine. When even TCP or UDP probes stop at a certain hop, compare with a port test using netcat and check your own firewall; blocked ports checks covers that side.
How do you send the report to support?
Open a ticket from the console, as described in support tickets, and paste the contents of the saved report files into the message as plain text. Text keeps the columns intact and can be searched and copied, while a screenshot of a terminal is harder to read. A helpful ticket contains:
- The server label and its IP address.
- Both reports (to the server and from the server), each with the time it was taken and your time zone.
- What you noticed: slow downloads, dropped SSH sessions, game lag, and since when.
- Whether the problem affects IPv4, IPv6 or both.
Keep collecting a new report each time the issue returns. Several reports from different moments make an intermittent fault much easier to trace than a single one.
What else can cause slowness that mtr will not show?
A clean mtr report means the network path is fine, so turn to the server itself. High CPU steal, a full disk, swapping or a process using all bandwidth can all feel like network trouble. Check load and memory with btop or htop, transfer per process with iftop and nethogs, and monthly traffic against your plan allowance with usage monitoring. Also measure from more than one client: a slow home Wi-Fi link or an overloaded local router shows up in the first hop of your own report.
Questions about Trace network paths with mtr
Do I need root to run mtr?
Not for normal ICMP reports on Linux; the packaged helper has the rights it needs. TCP mode with -T and runs on macOS usually need sudo.
How many cycles should a report use?
Use 100 or more for anything you share. Short runs of 10 probes can miss loss that only appears now and then.
What does a hop with 100% loss in the middle mean?
If later hops and the destination answer normally, that router simply ignores probes. It only matters when the loss continues to the final hop.
Why is the latency to the last hop lower than to an earlier one?
Routers answer probes with spare CPU time, so a busy router reports a higher value than the traffic it forwards actually experiences. Trust the final hop.
Can I save the report in another format?
Yes. --json and --csv produce machine readable output, but plain report mode is the easiest for people to read in a ticket.
Should I run mtr from the server or from home?
Both. The two directions can follow different routes, and support needs both views to locate a fault.
More in Networking and diagnostics
- FreeRADIUS with PostgreSQL
- IPv6 on your server
- The ip command
- DNS lookups with dig
- Listening ports with ss and netstat
- Test ports and transfer data with netcat
- Capture packets with tcpdump
- Live bandwidth with iftop and nethogs
- HTTP requests with curl
- Dynamic DNS updates from a server
- Latency graphs with SmokePing
- Traffic analysis with ntopng
- Check which ports are reachable