Systems and protocols · Intermediate

ICMP: reporting problems without guaranteeing delivery

Interpret Echo, Time Exceeded and unreachable reports while keeping silence distinct from proof that a host is down.

Ask Logeia about this articleTry the three questionsReview your answers

Updated

On this page
  1. Feedback attached to IP
  2. Trace a TTL-limited packet
  3. Separate message meanings
  4. Treat silence as incomplete evidence
  5. Ask Logeia about this articleCheck your understanding

Feedback attached to IP

ICMP provides control and diagnostic feedback about IP processing. It identifies message meanings through types and codes rather than TCP-style application ports. This article concerns ICMPv4; ICMPv6 has related but different message definitions and duties. Error reports carry information from the triggering packet so a receiver can associate the report with an earlier transmission. Such feedback can guide an application or transport implementation, but it does not retransmit the original packet or turn IP into a reliable delivery service. The original sender must decide how to respond.

Trace a TTL-limited packet

Consider a probe whose TTL is one when it reaches a router. If forwarding would exhaust its lifetime, the router discards it and may return Time Exceeded. Increasing TTL across probes can reveal successive responders along a path. The resulting list is an observation, not an immutable physical wiring diagram: load balancing and routing changes can send probes along different paths. The measured round trip also includes the return journey and processing of the reply. A large response time does not directly identify the delay of one specific outbound link.

Separate message meanings

Echo Request and Echo Reply support a basic diagnostic exchange. Destination Unreachable reports a different class of problem, with codes distinguishing causes such as an unavailable destination or a packet that cannot be forwarded under its fragmentation constraints. A successful ping does not prove that an HTTP server is listening. Conversely, a policy that suppresses Echo replies can coexist with working web access. ICMP feedback about fragmentation requirements also matters to IPv4 path-MTU discovery. Blocking all messages indiscriminately can therefore affect more than a convenient diagnostic command.

Treat silence as incomplete evidence

An ICMP message can itself be lost, filtered or rate-limited. A single missing reply cannot distinguish a stopped host from an outbound-path fault, a return-path fault, or a control-message policy. Protocol rules also limit error generation to avoid recursive error storms. Record the original probe, the report type and code, and application-level outcomes together. Repeating a measurement under a stated configuration can improve the evidence, but an error-reporting protocol still cannot guarantee that either the original packet or a report about its loss will arrive.

Reading and practice are recorded separately in this browser, for each language.

Learn this in order

Understand the systems behind the web · STEP 9

Choose a learning path