LOGBOOK

HELP

Quiz Entry - updated: 2026.07.05

What is traceroute and how does it work?

Traceroute maps the hops to a destination by sending packets with TTL=1, then 2, then 3, etc. Each router that drops a packet at TTL 0 returns an ICMP Time Exceeded, revealing its address and round-trip time until the destination is reached.

Traceroute (tracert on Windows):

A utility that traces the path packets take from source to destination and identifies each hop along the way.

Traceroute incrementing TTL so each router returns Time Exceeded until the destination replies

* By raising the TTL one at a time, each successive router answers with Time Exceeded — revealing the whole path until the destination finally replies. *

Commands:

traceroute 192.168.10.2    (Linux/Cisco)
tracert 192.168.10.2       (Windows)

How Traceroute Works:

Uses ICMP Time Exceeded messages:

  1. Send packet with TTL = 1
  2. First router decrements TTL to 0, sends Time Exceeded
  3. Send packet with TTL = 2
  4. Second router decrements TTL to 0, sends Time Exceeded
  5. Continue incrementing TTL until destination reached (or a predefined maximum)
TTL=1 → Router 1 responds (Time Exceeded)
TTL=2 → Router 2 responds (Time Exceeded)
TTL=3 → Router 3 responds (Time Exceeded)
TTL=4 → Destination responds (Echo Reply)

Output Information:

  • IP address of each hop
  • Round-trip time (RTT) for each hop
  • Asterisk (*) indicates lost or unreplied packet (or a router configured not to reply)

Use cases:

  • Identify where packets are being dropped
  • Locate problematic routers in the path
  • Measure latency at each hop

Go deeper:

From Quiz: NETW1 / ICMP | Updated: Jul 05, 2026