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

What stops a packet from wandering forever?

03

Spend one forwarding token at each router, then try a loop or a bigger budget.

RFC 791 · § 3.1EXAMPLE
1 / 4 · Give the packet a limited forwarding budget

Imagine a row of tokens attached to the packet. Each forwarding router uses at least one. This example uses exactly one per quick hop.

A packet with 2 forwarding tokens

IP header · final destination198.51.100.2TTL 2
PING
●●
Sender → Router 1 → Router 2 → Receiver

What happens if you change this?

Make one change, then watch again. Restart restores the original example.

3 / 3
03
The next router discards the expired datagram rather than forwarding it.

The next router discards the expired datagram rather than forwarding it.

What stops a packet from wandering forever?Spend one forwarding token at each router, then try a loop or a bigger budget.sourcerouter 1router 2TTL 2210TTL 1Expired packet discardedWorked TTL values; original TTL also expressed a time bound

Key idea: A forwarding budget bounds a packet’s wandering. More budget permits more hops; it does not fix a broken route.

Terms
IPv4
Internet Protocol version 4: carries individually addressed packets between networks.
Header
The information at the start used to handle the carried data.
Router
A computer that chooses the next link for packets travelling between networks.
MTU
The largest whole IP packet that fits on the link being discussed.
Fragment
One smaller piece of a split IP packet, with its own header.

Look up a term in the glossary ↗

Rules & examples

Every forwarding step consumes budget; zero means stop.

These reference examples may differ from the selected experiment.

  • A router reduces TTL by at least one during processing and discards the packet when it expires.
  • The original RFC expresses TTL in seconds; ordinary forwarding also makes it a hop bound.

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

RFC 791 §3.1 originally expresses TTL in seconds with a decrement of at least one. RFC 1812 §5.3.1 requires a forwarding router to decrease it by at least one and discard at zero; TTL acts as a hop-count limit in ordinary quick forwarding. These tokens are not elapsed seconds. The destination does not spend another forwarding token merely to receive locally. This bounded model omits ICMP Time Exceeded construction, rate limiting and multicast exceptions. A unicast transit expiration normally also triggers ICMP under the applicable rules.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A message needs an address.

Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.

Start with this guide; no earlier guide is needed for the overview.

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

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

EXPLORE THIS PROTOCOL

IP versions

IPv4 and IPv6 coexist. IPv6 is a different protocol version, not an edited copy of the IPv4 RFC.

All chapters in RFC 791

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

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

RFC status and corrections ↗