What Does the traceroute Command Do?

traceroute (or tracert on Windows) maps the network path a packet takes to reach a destination, showing each intermediate router (hop) along the way and the...

Published November 18, 2026

traceroute (tracert on Windows) shows the path packets take to a destination, listing every router (hop) and the time to reach each. It helps locate where delays or failures occur.

The concept

It sends packets with increasing TTL values; each router that drops one replies with 'time exceeded', revealing itself. Three probes per hop show latency variation.

Asterisks mean no reply, often a router that ignores such packets, not necessarily a failure.

Sample output

traceroute example.com
1 192.168.1.1 1.2 ms
2 10.20.0.1 8.4 ms
3 * * *
4 93.184.216.34 18.9 ms

Practical examples

Basic

traceroute example.com

Windows

tracert example.com

Use TCP when ICMP is blocked

sudo traceroute -T -p 443 example.com

Combined ping + trace

mtr example.com

Common mistakes

  • Reading * * * as a guaranteed outage.
  • Blaming a middle hop with high latency when the final hop is fine.
  • Ignoring that paths can differ per direction.

Key takeaways

  • Lists each hop to the destination.
  • Uses increasing TTLs.
  • High latency matters only if it persists to the end.

FAQ

What is mtr?

A tool combining ping and traceroute continuously.

Why do hops time out?

Many routers deprioritise or block those replies.

More General articles