ICMP & Error Messages
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
IP itself does not report delivery failures to the sender; ICMP fills that gap with control and error messages. Reading them turns an invisible drop into a diagnosis of where and why it happened.
On the wire
ICMP messages are carried as IP payload with protocol number 1, and error messages quote the first bytes of the offending original packet. Destination Unreachable, Time Exceeded, and Echo Request and Reply are common types, while ICMPv6 adds Neighbor Discovery messages.
When it breaks
A router that rate-limits ICMP can hide fragmentation-needed messages, leaving PMTUD stuck because the sender never learns the smaller MTU. A routing loop generates repeated Time Exceeded messages until TTL expires, and a host that filters all ICMP becomes undiagnosable from outside.
Capture & filter
Captured frames are timestamped in arrival order. Filter them, capture more, and expand a row to read its fields.
| 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 |