CS FundamentalsHardGATE CS · Product company CS fundamentals

Classic UNIX traceroute sends UDP probes with increasing TTL. How does it know that a probe has reached the destination host itself?

  1. A. The destination answers with ICMP Time Exceeded with TTL 0
  2. B. The destination sends a UDP echo reply
  3. C. The last router sends ICMP Echo Reply on behalf of the host
  4. D. The destination answers with ICMP Port Unreachable, because the probe targets an unlikely high UDP port

Correct answer: D. The destination answers with ICMP Port Unreachable, because the probe targets an unlikely high UDP port

Intermediate routers drop the probe when TTL reaches 0 and send ICMP Time Exceeded, revealing each hop. The destination does not decrement TTL to 0 for itself; it finds no process on the port and returns Port Unreachable, which ends the trace.

More Computer Networks questions

Exams that ask this topic