RFC 791: IPv4: The Internet Protocol
Summary
In September 1981 Jon Postel published RFC 791, the specification of the Internet Protocol, that is IPv4. The protocol carries datagrams with fixed 32-bit addresses from a source to a destination and splits them where necessary for networks with small packets. Everything else, from reliability to ordering, RFC 791 deliberately leaves to the protocols above.
A protocol that promises little
RFC 791 explicitly limits IP to delivering a package of bits across interconnected networks to a destination. There are no connections, no acknowledgements and no flow control; every datagram is an independent packet. The text names four key mechanisms: Type of Service, Time to Live, options and the header checksum.
This modesty is exactly what made IPv4 successful. Because IP asks very little of the underlying network, it could run over the ARPANET, packet radio, Ethernet and later almost any link. Reliability is provided by TCP at the endpoints, not by the network.
TTL was once meant in seconds
In RFC 791 the Time to Live field is a time in seconds, at most 255 seconds or 4.25 minutes. Every router must reduce the value by at least 1, even if it forwards the packet faster. In practice it became a counter of forwarding steps, and IPv6 consequently calls the field Hop Limit.
The robustness principle also appears here: an implementation should be conservative when sending and liberal when receiving. The sentence shaped decades of protocol development but is viewed more critically today, because liberal receivers keep faulty senders alive.
Ideas
- IP delivers datagrams with no guarantee of arrival, order or correctness.
- Every datagram is forwarded independently of all others.
- Fragmentation adapts large datagrams to networks with small packets.
- The TTL prevents undeliverable packets from circulating forever.
- Every receiver must accept datagrams of 576 bytes.
- Implementations should send conservatively and receive liberally.
Insights
- A core protocol that promises little can run over almost any network technology and therefore survives for decades.
- Moving reliability to the endpoints is an architectural decision that still shapes the internet today.
- Field meanings shift with practice: seconds became hops, Type of Service later became DSCP and ECN.
Facts
- IPv4 addresses are 32 bits long; RFC 791 still divided them into classes A, B and C.
- A datagram may be up to 65,535 bytes long.
- In RFC 791 the TTL is defined in seconds, at most 255 seconds.
- RFC 791 replaces RFC 760 from January 1980 and has never been declared obsolete.
- Later RFCs such as 2474 (DSCP) and 6864 (IPv4 ID field) redefined individual fields.
References
- RFC 791: Internet Protocol
- RFC 1122: Requirements for Internet Hosts (1989)
- RFC 2474: Differentiated Services Field (1998)
- RFC 6864: Updated Specification of the IPv4 ID Field (2013)
Remarks
- Classless routing (CIDR) replaced the address classes of RFC 791 in 1993; traces remain in terms such as class C network.
Recommendations
- Read RFC 791 together with RFC 1122, which specifies the requirements for hosts in more detail.
- Avoid fragmentation and let path MTU discovery work instead of relying on splitting along the way.
- When troubleshooting, look at the TTL in replies: it roughly reveals how many routers lie in between.
Read the RFC at the RFC Editor
Found a mistake or have something to add? Get in touch.
Links to the original source and the Web Archive open in a new tab.