Ping, traceroute & Path Discovery
Read this concept as one more decision made about a packet in flight. The widget below lets you change the inputs and watch the consequence instead of memorising the rule.
Why it matters
Reachability and path are different questions, and these two tools answer them with the same ICMP building block. Their output is often the first clue about whether a failure is local, remote, or in between.
On the wire
Ping sends ICMP Echo Requests with identifier and sequence fields and matches Echo Replies to compute RTT and loss. Traceroute raises the TTL one hop at a time so each router returns ICMP Time Exceeded, or sends UDP to unlikely ports to elicit port-unreachable replies.
When it breaks
A host that blocks ICMP makes ping fail even though TCP services are reachable, producing a false negative. A router that rate-limits Time Exceeded shows stars in traceroute, and a load-balanced path can make successive probes appear to take different routes.
Capture & filter
Captured frames are timestamped in arrival order. Filter them, capture more, and expand a row to read its fields.
Each router returns Time Exceeded as TTL reaches zero
| Time | Protocol | Source → Dest | Info |
|---|---|---|---|
| ARP | 203.0.113.9 → broadcast | Who has 203.0.113.1? Tell 203.0.113.9 | |
| DNS | 203.0.113.9:53122 → 198.51.100.53:53 | Standard query A example.com | |
| DNS | 198.51.100.53:53 → 203.0.113.9:53122 | Response A 93.184.216.34, TTL 300 | |
| TCP | 203.0.113.9:51000 → 93.184.216.34:443 | SYN seq=0 win=64240 | |
| TCP | 93.184.216.34:443 → 203.0.113.9:51000 | SYN, ACK seq=0 ack=1 | |
| TCP | 203.0.113.9:51000 → 93.184.216.34:443 | ACK ack=1 win=64240 | |
| ICMP | 203.0.113.9 → 192.0.2.1 | Echo request id=7 seq=1 |