HomeBlogHow to Run Traceroute: traceroute vs mtr for Diagnosing Network Connectivity

How to Run Traceroute: traceroute vs mtr for Diagnosing Network Connectivity

Author

Date

Category

Use traceroute for a quick path check, and use mtr when the problem is intermittent or you need live packet loss data. Both tools reveal the route packets take across routers by using TTL values, a method explained well by Cloudflare [source: Cloudflare]. Traceroute gives you a snapshot. MTR keeps testing and turns that snapshot into a moving report.

TLDR: Run traceroute example.com on Linux or macOS, or tracert example.com on Windows, when you want to see where traffic slows down or stops. Use mtr example.com when 1 test is not enough; for example, a help desk might see 0% loss for 20 seconds, then 18% loss at hop 7 during a 5 minute check. If a website loads in 4.8 seconds for one office but 900 ms elsewhere, MTR can show whether the pain starts at the local router, ISP, or destination network. Traceroute is faster; MTR is better for proof.

What traceroute actually shows

traceroute sends packets toward a destination with gradually increasing TTL, or time to live, values. Each router along the way reduces that value. When the value reaches zero, the router sends back a message. Traceroute uses those replies to list the hops.

A normal result looks like this:

1  192.168.1.1      1.2 ms   1.0 ms   1.1 ms
2  10.20.0.1        8.4 ms   9.1 ms   8.8 ms
3  isp-router.net   15.6 ms  16.0 ms  15.8 ms
4  * * *
5  example.com      32.9 ms  33.1 ms  32.7 ms

Each line is a hop. The three times are round trip latency tests. Lower is usually better. Asterisks mean no reply arrived before timeout. That does not always mean failure. Some routers ignore traceroute probes while still forwarding real traffic. Honestly, it feels like routers enjoy making troubleshooting more annoying than it has to be.

blue and red abstract painting network route server hops latency map

How to run traceroute

Use the command that matches your operating system.

  • Linux: traceroute example.com
  • macOS: traceroute example.com
  • Windows: tracert example.com
  • Test an IP address: traceroute 8.8.8.8 or tracert 8.8.8.8

On some Linux systems, traceroute may not be installed by default. Install it with:

sudo apt install traceroute
sudo dnf install traceroute
sudo yum install traceroute

Useful options include:

  • -n: Skip DNS lookups. This makes results faster and cleaner.
  • -I: Use ICMP packets, closer to Windows tracert.
  • -T: Use TCP probes. Handy when UDP or ICMP is filtered.
  • -m 30: Set the maximum hop count.
  • -w 2: Wait 2 seconds for each reply.

Example:

traceroute -n -T -p 443 example.com

This tests the path using TCP to port 443, the port used for HTTPS. That can be more realistic when a website works badly but plain ICMP tests look fine.

What MTR does differently

mtr combines traceroute and ping. Instead of printing one route and stopping, it keeps sending probes. It updates latency, packet loss, best time, worst time, average time, and jitter-like variation.

Run it like this:

  • Linux/macOS: mtr example.com
  • Report mode: mtr -rw example.com
  • Send 100 packets: mtr -rw -c 100 example.com
  • Use TCP port 443: mtr -T -P 443 example.com

If you are on Windows, use WinMTR or run MTR through Windows Subsystem for Linux. WinMTR is simple, but it can look dated. Expect to waste time explaining to nontechnical users that “old looking” does not mean “wrong.”

a black and white photo of a computer screen ssl checks openssl terminal debugging ssl errors 1

Traceroute vs MTR: which should you use?

Use traceroute when you need a fast answer. It is ideal for checking whether traffic reaches the destination, where the route changes, and whether a path looks strange. It is also easy to paste into a ticket.

Use MTR when the issue comes and goes. This includes random VPN drops, video call glitches, gaming lag, VoIP clipping, and bad SaaS performance. One traceroute can miss those problems. MTR catches them over time.

Feature Traceroute MTR
Best for Quick route snapshot Ongoing loss and latency checks
Output Static list of hops Live table with statistics
Intermittent issues Weak Strong
Sharing results Easy Best in report mode

How to read the results without fooling yourself

The biggest mistake is blaming the first hop with packet loss. Do not do that too quickly. Routers may rate limit replies to diagnostic packets. If hop 6 shows 60% loss but hops 7 through 12 show 0% loss, hop 6 is probably just ignoring some probes. The traffic is still passing through.

Look for loss that continues from one hop to the final destination. That is more meaningful. If loss starts at hop 8 and every later hop shows similar loss, you may have found the trouble area.

Latency works the same way. A single high number in the middle may not matter. A lasting jump often does. If hop 3 averages 12 ms and hop 4 jumps to 170 ms, then every hop after that stays near 170 ms, the delay likely starts between hops 3 and 4.

A short troubleshooting scenario

Say a remote sales team complains that a CRM site keeps freezing. A basic ping shows no obvious issue. You run:

mtr -rw -c 200 crm.example.net

The report shows 0% loss at the office router, 1% loss at the ISP edge, then 14% loss from hop 5 through the destination. Average latency rises from 24 ms to 210 ms at the same point. That is strong evidence the problem is outside the local office. Send that report to the ISP or CRM provider. It beats saying, “The internet is slow,” which helps nobody.

graphs of performance analytics on a laptop screen support ticket outage report network diagnostics

Practical tips for cleaner tests

  • Test both hostname and IP. DNS may be the real issue.
  • Run tests from both ends if possible. Routes can differ by direction.
  • Use TCP mode for web problems. Firewalls may treat ICMP, UDP, and TCP differently.
  • Run MTR for at least 100 packets. Ten packets can miss brief loss.
  • Save timestamps. Providers love asking when the issue happened.
  • Compare with a known good target. Test your app, then test 1.1.1.1 or 8.8.8.8.

Common reasons traceroute looks broken

Some networks block ICMP. Some routers hide internal addresses. Some cloud providers drop replies from intermediate hops. MPLS networks can also make paths look odd. None of that means the destination is unreachable.

Also, traceroute shows the forward path from you to the target. It does not always reveal the return path. Internet routing is often asymmetric. Your packets may go out one way and come back another. That can make diagnosis messy.

The simple rule

Start with traceroute. Confirm with MTR. If traceroute shows a clean path and the complaint continues, run MTR for several minutes. If MTR shows sustained loss or a lasting latency jump, you have something worth escalating. If neither tool shows trouble, check DNS, firewall rules, application logs, Wi Fi quality, and endpoint performance next.

Traceroute tells you where packets try to go. MTR tells you how badly they suffer on the trip.

Recent posts