1. Type & Code: The Diagnostic Grammar
Every ICMP packet begins with two byte-sized fields that define its destiny: the **Type** (the broad category) and the **Code** (the specific subtype).
Type 0
The 'Pong'. The final confirmation that a host is reachable at L3.
Type 3
The error workhorse. Communicates why a packet was dropped midway.
Type 11
The Traceroute signal. Sent when a TTL counter hits zero.
Forensic Highlight: Destination Unreachable Codes
A Type 3 packet is a treasure trove of forensics. The Code field tells you exactly where the failure occurred:
- Code 0: Net Unreachable (Routing failure - No path exists)
- Code 1: Host Unreachable (L2 failure - Router couldn't ARP the host)
- Code 3: Port Unreachable (Application failure - No listener on UDP port)
- Code 4: Frag Needed (MTU failure - Packet too fat for the tunnel)
- Code 13: Admin Prohibited (Policy failure - Firewall dropped it)
Control Plane Diagnostics
Deconstructing ICMP (Protocol 1) Mechanics
2. PMTUD & The 'Black Hole' Forensics
The internet is a collection of links with different 'Maximum Transmission Units' (MTU). Your Ethernet is 1500 bytes, but a VPN tunnel might be 1420 bytes. Path MTU Discovery (PMTUD) relies entirely on Type 3 Code 4.
The Death Spiral
When you block ICMP to 'harden' your server, you break PMTUD. A user tries to load your site. The TCP SYN/ACK (small) makes it through. But the first HTTP Response (large) hits a router in the middle that has a 1400-byte MTU. The router drops the packet and sends an ICMP error. If you block that error, the user's browser spins forever until it timeouts.
3. Traceroute Forensics: Exploiting Death
Traceroute doesn't 'scan' the path; it intentionally kills packets. By sending a packet with a TTL of 1, it forces the nearest router to drop it and reveal its identity via **Type 11 Code 0 (Time Exceeded)**.
The Latency Trace
Traceroute measures the time between the 'Intentional Suicide' packet and the ICMP Reply. If a router shows high latency (e.g., 200ms) but the final hop is low (20ms), it indicates that the router is 'deprioritizing' ICMP generation—not that the network is slow. This is a crucial forensic distinction.
4. ICMPv6: From Error to Infrastructure
In IPv6, ICMP isn't just an error reporter; it is the **Neighbor Discovery Protocol (NDP)**. It replaced ARP and IGMP, making it a critical component of every single packet flow.
The ICMPv6 Hydra
- Type 133/134: Router Solicitation/Advertisement. How a phone finds its gateway and IP range.
- Type 135/136: Neighbor Solicitation/Advertisement. The IPv6 replacement for ARP.
- Type 137: Redirect. Tells a host that a better gateway exists on the same link.
If you block all ICMP in an IPv6 network, you don't just lose 'ping'—you lose the ability for devices to even find their own gateway. The network is functionally dead.
Frequently Asked Questions
Technical Standards & References
Related Engineering Resources
"You are our partner in accuracy. If you spot a discrepancy in calculations, a technical typo, or have a field insight to share, don't hesitate to reach out. Your expertise helps us maintain the highest standards of reliability."
Contributors are acknowledged in our technical updates.