ICMP and reachability
What ICMP tells you
Internet Control Message Protocol (ICMP) carries IP diagnostics and error feedback. ICMP for IPv4 and ICMPv6 are distinct protocols with different type numbers. They do not use TCP or UDP port numbers. An echo request and matching reply can test round-trip IP communication at that moment. They do not prove that a website or other application is working. An error message may describe a failed packet; no reply is not an error code.
Message IPv4 type IPv6 typeEcho Request 8 128Echo Reply 0 129Destination Unreachable 3 1Time Exceeded 11 3MTU feedback 3/code 4 2/code 0Interpret silence and explicit errors
If an echo test times out, a request or reply could have been lost, filtered or rate-limited, or the destination could be unavailable. An explicit Destination Unreachable message gives more information; its code distinguishes cases such as no route or a closed UDP destination port. Verify who sent it and which original packet it refers to. Time Exceeded in transit indicates the packet’s TTL (IPv4) or Hop Limit (IPv6) was exhausted. Traceroute-style tools exploit this feedback with limited-hop probes; missing replies do not necessarily mean forwarding stopped. The following lines are invented observations, not live tool output.
Case A: Echo Request -> no reply before deadlineCase B: IPv4 ICMP type 3 code 3 -> port unreachableCase C: IPv6 ICMP type 3 code 0 -> hop limit exceededUnderstand Packet Too Big and path MTU
A path’s MTU is the smallest link MTU along it. IPv6 routers do not fragment forwarded packets; a router unable to forward an oversized packet reports Packet Too Big under the ICMPv6 rules. In IPv4, a router that cannot forward because of MTU and the Don’t Fragment flag can report Destination Unreachable, code 4. In the example, the original IPv6 packet is 1450 bytes; the outgoing link admits 1400. A valid matching PTB tells the source to reduce its packet size. With a 40-byte base header and an 8-byte UDP header and no extensions, 1352 data bytes fit. The MTU counts the IP packet, not Ethernet framing.
IPv6 packet: 1450 BOutgoing link MTU: 1400 BICMPv6 type 2 code 0, MTU 14001400 - 40 - 8 = 1352 B UDP dataTroubleshoot from evidence
Start with the configured route and neighbor state, then distinguish a response, an explicit error and silence. A small successful echo alongside stalled large transfers can suggest an MTU problem, but needs corroboration. Blanket filtering of ICMP can break diagnostics and path MTU discovery; blocking all ICMPv6 also disrupts Neighbor Discovery. Use narrowly reviewed policies appropriate to message purpose, scope and rate rather than disabling firewall protection. For practice, compare a timeout with a valid PTB reporting 1280 bytes and calculate the maximum UDP data with no extension headers. Next chapter: TCP, UDP and ports.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
ICMP and reachability — knowledge check
Interpret fictional offline neighbor and ICMP observations.
An echo request times out. What can you conclude?
Which IPv6 ICMP message reports a packet larger than an outgoing link MTU?
IPv4 ICMP type 3 code 3 indicates what?
An IPv6 path admits 1280 bytes. With a 40-byte IPv6 and 8-byte UDP header, how much UDP data fits?
Why is blocking all ICMPv6 problematic?