Visual RFC.
ALL RFCs / RFC 791
Read the RFC ↗
RFC 791 / PROTOCOL MECHANISMS

Read the IPv4 header

02

Version, header length, length, lifetime, protocol, addresses, and a header checksum describe the packet.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

DIAGRAM§ 3.1 ↗
RFC 791 · § 3.1EXAMPLE
3 / 3
Read the IPv4 headerVersion, header length, length, lifetime, protocol, addresses, and a header checksum describe the packet.IPv4 HEADER · schematic fieldsv4 / IHLType of ServiceTotal LengthIdentificationFlags / OffsetTTLProtocolHeader checksum32-bit source address32-bit destination addressChecksum excludes the payloadIHL uses 32-bit words; Total Length includes header and data
03
Check header integrity separately from payload integrity.

Check header integrity separately from payload integrity.

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
KEY POINT

IHL counts 32-bit header words; Total Length includes header and data.

  • IHL counts 32-bit header words; Total Length includes header and data.
  • The header checksum covers the header, not the application payload.
DETAILS

The drawing is a simplified worked example. Follow the linked RFC and its updates for implementation requirements.

Read the RFC section ↗

Diagrams simplify the RFC. Read the linked sections for complete requirements.

Privacy
All chapters in this RFC
  1. Route a datagram across networks
  2. Read the IPv4 header
  3. Limit a packet’s lifetime
  4. Fragment for a smaller link
  5. Reassemble at the destination
RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗