Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ICMP Type 8 Echo Request

ICMP — Internet Control Message Protocol

The message preceding an ICMP Type 0 Echo Reply.

Every host MUST implement an ICMP Echo server function that receives Echo Requests and sends corresponding Echo Replies.

Source RFC 1122.

 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
┌───────────────┬───────────────┬───────────────────────────────┐
│   Type = 8    │   Code = 0    │          Checksum             │
├───────────────┴───────────────┼───────────────────────────────┤
│          Identifier           │        Sequence Number        │
├───────────────────────────────┴───────────────────────────────┤
│                             Data                              │
└───────────────────────────────────────────────────────────────┘

Fields

FieldPurpose
IdentifierMatches requests and replies to a ping process or session
Sequence NumberMatches each reply to a request and helps detect loss
DataPayload that the receiver returns unchanged in the reply

Ping sends Echo Requests to test IP reachability and measure round-trip time. A missing reply does not prove the destination is down; ICMP may be filtered or rate-limited.

References

RFC 792: Internet Control Message Protocol | RFC Editor

RFC 1122: Requirements for Internet Hosts | RFC Editor

IANA: Internet Control Message Protocol (ICMP) Parameters

Last Modified • Tuesday, July 7, 2026. 6:20 pm UTC+00:00 • Commit: 699bb08