Join our Newsletter — 33% off our NHI Course

How does traceroute work?

Traceroute sends probe packets with increasing time-to-live values and records the ICMP replies from each hop along the path. Operators use it to see where latency, loss, filtering, or routing changes occur. Firewalls and routers may block the probes or suppress replies, so an incomplete trace does not always mean the path is down.

How traceroute measures the path, one hop at a time

Traceroute works by sending probe packets with a small time-to-live, or TTL, value and then increasing that value one step at a time. Each router that decrements the TTL to zero returns an ICMP reply, which lets the sender learn the address of that hop and the round-trip time to it. That is why traceroute can expose where delay or path changes begin, rather than just whether the destination responds.

The method depends on normal forwarding behaviour in the network. Network Ports and Protocols Security Guide is a useful companion when you want to understand why some hops answer and others do not, because routers, firewalls, and protocol handling rules all affect what the tool can see.

Why the output is sometimes incomplete or misleading

Traceroute is observational, not authoritative. A missing hop can mean a firewall filtered the probe, a router suppressed its ICMP response, or a network device treated the probes differently from ordinary traffic. Different probe types can also produce different paths or timings, so the result is a picture of how that specific test traffic moved, not a guaranteed map of every flow.

That is why operators interpret traceroute alongside packet loss, latency trends, routing tables, and interface health. One slow or silent hop does not prove the whole path is broken, but a repeated change in where replies stop or where latency jumps often points to a routing boundary, filtering policy, congestion point, or unstable transit segment.

For network engineers, the practical question is whether the trace changes in a stable, repeatable way. A single run is often enough to spot an obvious break, but repeated traces from different sources are more reliable when you are trying to separate transient congestion from a persistent routing or filtering problem.

What traceroute does and does not tell operators

Traceroute is most useful for locating where a connection starts to behave differently. It can help narrow down whether delay appears inside your own network, at an upstream provider, or near the destination, but it cannot explain the root cause by itself. It also does not guarantee symmetry, because the return path for the ICMP replies may differ from the forward path of the original traffic.

That distinction matters in troubleshooting. If a trace stops at an intermediate hop, the destination may still be reachable from another network or with another protocol. If a trace completes but the application still fails, the problem may sit above routing, such as service filtering, server health, application limits, or policy controls that traceroute does not exercise.

Traceroute is therefore best treated as a path-discovery and fault-localisation tool. It is strongest when used to answer “where does behaviour change?” and weaker when used to answer “is the service definitely down?”

Risk and Threat Considerations

Traceroute can be valuable for troubleshooting, but it also reveals network topology, hop counts, and sometimes the presence of filtering boundaries. That makes it useful to defenders and to attackers who are mapping reachable infrastructure, so many environments intentionally rate-limit, filter, or suppress the relevant probes and replies.

Failure mechanism: Devices that block TTL-expired responses, ICMP time-exceeded messages, or related probes can make a healthy path look broken, while asymmetric routing can make the visible reply path differ from the actual service path. That creates diagnostic blind spots and can also hide real congestion or policy failures behind an apparently incomplete trace.

Impact: Operators may misdiagnose reachability problems, spend time on the wrong segment, or miss the boundary where a policy, firewall, or upstream routing change is affecting traffic. In hostile environments, the same visibility can help an adversary identify internal network structure and choose more targeted probing.

Practitioner Guidance

What to verify: Confirm the probe type, source network, and destination service before trusting the trace. If one path looks abnormal, repeat the test with the same parameters and, when possible, from a second vantage point so you can tell the difference between a local anomaly and a persistent network issue.

Common mistake: Treating a missing hop as proof that the next hop is down. In practice, the more useful question is whether the trace failure is consistent across runs and whether it lines up with packet loss, route changes, or a known filtering policy.

Practitioner takeaway: Use traceroute to localise where traffic changes, not to prove end-to-end health by itself; the most reliable interpretation comes from combining it with routing, latency, and loss evidence.