How to Run a Traceroute: Diagnose Network Path Issues

Trace the exact path your data takes across the internet and pinpoint where problems begin

What Is a Traceroute and How Does It Work?

A traceroute is a network diagnostic tool that maps the path data packets take from your computer to a destination server. Unlike a simple ping test that only tells you if a host is reachable, traceroute reveals every intermediate router (called a "hop") along the route, showing you where your traffic travels and how long each segment takes.

The tool works by sending packets with incrementally increasing Time-to-Live (TTL) values. When a router receives a packet whose TTL has reached zero, it discards it and sends an ICMP "Time Exceeded" message back to your machine. By starting with TTL=1 and incrementing with each probe, traceroute collects one response per hop until it reaches the final destination.

Each line in a traceroute output shows:

Asterisks (* * *) appear when a router doesn't respond, which may indicate packet filtering or firewall rules — not necessarily a problem.

Running Traceroute on Windows

Windows ships with tracert (trace route), accessible from any Command Prompt or PowerShell window. The syntax is straightforward:

tracert google.com
tracert 8.8.8.8
tracert -d 8.8.8.8   # skip DNS resolution for faster results
tracert -h 30 google.com   # set max hops (default is 30)

The -d flag prevents tracert from resolving IP addresses to hostnames, which speeds up the output significantly when you only care about hop count and latency.

For more advanced analysis on Windows, tools like WinMTR or PathPing (built-in) combine ping and traceroute into a continuous report:

pathping google.com

PathPing is particularly valuable for detecting intermittent packet loss at specific hops, since it samples each hop over a longer period before displaying results. It takes around 5 minutes to complete but produces much more statistically reliable data than a single tracert run.

Running Traceroute on Mac and Linux

On macOS and Linux, the command is traceroute (not tracert). By default it uses UDP probes, whereas Windows uses ICMP. You can switch protocols with flags:

# Standard UDP traceroute
traceroute google.com

# ICMP mode (more likely to pass through firewalls)
traceroute -I google.com

# TCP mode on port 80 (best for testing through strict firewalls)
traceroute -T -p 80 google.com

# Increase probes per hop and skip DNS
traceroute -q 5 -n google.com

On Linux, mtr (Matt's Traceroute) is the preferred tool for most network engineers. It runs continuously, refreshing statistics in real time so you can observe transient packet loss:

mtr google.com
mtr --report --report-cycles 100 google.com   # generate a 100-cycle summary report

The --report flag prints a summary instead of the live display, which is useful for including traceroute data in bug reports. Always cross-reference with your current IP address so you can provide complete diagnostic context to your ISP or hosting provider.

🛡️

Check Your Network Performance Now

Run a ping test or speed test directly from your browser — no installation required

Hide My IP Now

Interpreting Traceroute Output

Understanding what the output means is as important as running the tool. Here is how to read results effectively:

Geographic clues are visible in hostnames. Strings like lon, fra, or nrt often indicate London, Frankfurt, or Tokyo respectively, helping you spot unexpected routing through distant regions (a phenomenon called "trombone routing").

If your traceroute leaves your ISP's network and immediately enters the destination's network with good latency, the issue likely lives in your local network or ISP's last mile — making a speed test a logical next step.

Common Traceroute Problems and What They Mean

Several patterns in traceroute output indicate specific network conditions:

For persistent issues, run traceroutes at different times of day and save the output. Evening peak hours often reveal congestion at ISP peering points that don't appear during off-peak testing.

Advanced Traceroute Techniques

For deeper diagnostics, experienced network administrators use several advanced approaches:

Bidirectional tracing — running traceroute in both directions (from your machine to the target, and asking someone at the target to trace back to you) reveals asymmetric routing, which is extremely common on the public internet and can cause confusing latency patterns.

Paris traceroute handles ECMP (Equal-Cost Multi-Path) routing, which causes traditional traceroute to show seemingly inconsistent paths. Install it on Linux with apt install paris-traceroute.

TCP traceroute to specific ports helps when diagnosing application connectivity issues. If you can't reach a web server on port 443, run:

traceroute -T -p 443 example.com

This uses actual TCP SYN packets, which travel the same path as real HTTPS traffic and are far less likely to be filtered by intermediate firewalls than ICMP probes.

Combine traceroute data with a port checker to confirm whether destination ports are actually open, giving you a complete picture of both the network path and service availability.

Special Offer

Frequently Asked Questions

Why do some hops show * * * in traceroute?

Asterisks mean the router at that hop didn't reply within the timeout period. This is common because many routers are configured to deprioritize or drop ICMP probe packets to protect their CPU. It doesn't always indicate a problem — if later hops respond normally, the route is fine.

What is the difference between traceroute and ping?

Ping sends a single round-trip probe to a destination and reports latency and packet loss for that endpoint only. Traceroute maps every router along the entire path, showing you where latency accumulates or where loss occurs. Use ping for quick connectivity checks and traceroute when you need to isolate which part of the network path is causing trouble.

How many hops is normal for a traceroute?

Typical internet routes have 10–20 hops. Local connections to nearby servers may be 5–10 hops. Intercontinental routes (e.g., US to Asia) can be 20–30 hops. If you're seeing significantly more hops than expected, you may have a routing issue or suboptimal peering arrangement.

Can I run a traceroute without installing anything?

Yes. Windows includes tracert, and macOS/Linux include traceroute — all built into the operating system. For a quick browser-based alternative, our <a href="/ping">ping tool</a> can test reachability from our servers.

Special Offer×