Quiz Entry - updated: 2026.07.14
How does ICMP test host reachability?
The source sends an ICMP Echo Request; if the destination is available it returns an ICMP Echo Reply. No reply suggests the host is unreachable. This is the mechanism behind ping.
ICMP Echo Messages for Host Reachability:
ICMP Echo messages test whether a host is reachable on an IP network.
* The source sends an Echo Request; a reachable host answers with an Echo Reply, which is exactly what ping does. *
Process:
Source Host Destination Host
│ │
│──── ICMP Echo Request ─────→│
│ │
│←──── ICMP Echo Reply ───────│
│ │
Steps:
- Local host sends an ICMP Echo Request to a destination
- If the destination is available, it responds with an ICMP Echo Reply
- If no reply is received, the destination may be unreachable
ICMP Message Types:
| Type | Message |
|---|---|
| 8 | Echo Request (IPv4) |
| 0 | Echo Reply (IPv4) |
| 128 | Echo Request (IPv6) |
| 129 | Echo Reply (IPv6) |
Key insight: This is the mechanism behind the ping command.
Go deeper:
ICMP, Ping & Traceroute Explained — Sunny Classroom — animated walkthrough of how echo request/reply tests connectivity.
Ping (networking utility) — Wikipedia — how echo messages measure round-trip time and reachability.