What Is Traceroute?

Category: Networking & IP ยท Updated 2026-11-09

Traceroute is a command-line network tool that reveals the path, hop by hop, that data takes from your computer to a destination server, along with the round-trip time at each hop. It is used to find where along a route a connection slows down, drops packets or stops responding, rather than only knowing that a server is unreachable.

How traceroute actually works

Traceroute sends a series of packets toward the destination with a gradually increasing TTL (Time To Live) value, starting at 1. Each router along the path decrements the TTL by one, and when a packet's TTL reaches zero, that router discards it and sends back an ICMP "time exceeded" message identifying itself. By sending packets with TTL 1, then 2, then 3 and so on, traceroute forces each router in turn to reveal itself, building the full path one hop at a time until the destination is reached.

Reading traceroute output

$ traceroute example.com
 1  192.168.1.1        1.102 ms
 2  10.20.0.1          8.431 ms
 3  203.0.113.5       12.004 ms
 4  198.51.100.9      45.887 ms
 5  example-server     52.331 ms

Each numbered line is one hop. The three numbers after the hostname or IP are the round-trip times from three separate probe packets. A hop that shows * * * usually means that router is not responding to the probe, which is common and does not necessarily indicate a real problem, since many routers are configured to ignore or rate-limit these packets.

traceroute vs. tracert vs. mtr

ToolPlatformProtocol used
tracerouteLinux, macOSUDP by default, ICMP or TCP with flags
tracertWindowsICMP echo requests
mtrLinux, macOSCombines traceroute with continuous ping statistics per hop

The command and exact output format differ slightly between operating systems, but the underlying TTL-based technique is the same.

What traceroute is good for, and its limits

  • Finding where latency jumps: a sudden large increase in round-trip time at one hop points to that network segment.
  • Confirming a route exists at all when a server seems unreachable.
  • Comparing paths from different locations when diagnosing a regional slowdown.

It has real limits: some routers block or rate-limit the ICMP replies traceroute depends on, so missing hops do not always mean a fault. The return path can also differ from the outbound path, and a slow hop in the middle of the route does not always mean traffic is actually slow end to end, since some routers simply take longer to generate the reply itself than to forward the packet.

Frequently asked questions

What does traceroute actually show you?

It shows every router, or hop, that a connection passes through on the way to a destination server, along with the response time at each hop, so you can see where delay builds up along the route.

What is the difference between traceroute and tracert?

They are the same kind of tool with different names: traceroute is the command on Linux and macOS, while tracert is the equivalent built into Windows. Both reveal the hop-by-hop path to a destination.

Why does traceroute show stars (* * *) for some hops?

Stars usually mean that particular router did not respond to the probe, often because it is configured to ignore or deprioritize these diagnostic packets. It does not necessarily mean that hop is broken or that traffic through it is failing.

Can traceroute tell me exactly who is causing a slow connection?

Not with certainty. It can point to the general area where latency increases, but a slow-looking hop in the middle of a route does not always mean real traffic through it is actually slow, since router reply times and forwarding speed are not the same thing.

How do I run a traceroute on my computer?

On macOS or Linux, open a terminal and type traceroute followed by the domain or IP address. On Windows, open Command Prompt and type tracert followed by the same target.

Why do two traceroutes to the same site show different paths?

Internet routing can change between requests due to load balancing, network maintenance or policy changes at any provider along the path, so the exact hops seen can vary between runs even to the same destination.

Related topics