Visual RFC.
ALL RFCs / RFC 6052
Read the RFC ↗
RFC 6052 / IPV4 INSIDE IPV6

Place the bits for six prefix lengths

02

A prefix is the leading fixed part of an address. Its bit length determines where the four IPv4 octets go, including the reserved u octet.

RFC 6052 · § 2.2EXAMPLE
6 / 6
Place the bits for six prefix lengthsSix alternatives reproduce Table 1. Each drawing uses two equal rows of eight octets: bits 0 through 63 above, bits 64 through 127 below. Prefix length determines IPv4 byte positions; the reserved octet at bits 64 through 71 remains zero. The /96 prefix already contains that byte and has no suffix. All values are documentation examples.Table 1 · /96 address layout2001:db8:122:344::/96IPv4: 192.0.2.33place the four IPv4 octets020P801P160dP24b8P3201P4022P4803P5644P6400P7200P8000P8800P96c01104002112023120214P prefix · 1–4 IPv4 octets · u reserved · S suffix2001:db8:122:344::c000:221Each cell = 8 bits · bit positions start at zero
06
A /96 needs no inserted u or suffix.

IPv4 occupies 96–127. The prefix itself includes bits 64–71, which MUST still be zero. Only this layout permits the dotted-decimal tail for the embedded IPv4 address.

Source for this drawing: RFC 6052 · Read RFC section 2.2 ↗

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.

Helpful first, if these ideas are unfamiliar

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.

KEY POINT

Use one of six permitted prefix lengths.

  • Use one of six permitted prefix lengths.
  • Lengths are /32, /40, /48, /56, /64 or /96. IPv4 bits are most-significant first. Bits 64–71 MUST be zero, including inside a /96 Network-Specific Prefix.
  • For lengths below /96, u separates any IPv4 parts at bits 64–71. Remaining suffix bits SHOULD be zero; /96 has no suffix. The Well-Known Prefix is always /96.
DETAILS

The bit strip is proportional: one cell is one octet (eight bits), numbered from zero. Prefix, IPv4 octets, u and suffix have literal labels as well as colors. All six address results reproduce Table 1 documentation examples. /96 dotted-decimal notation is permitted; shorter formats must not pretend the IPv4 bits are always the last 32 bits.

Read the RFC section ↗

All chapters in RFC 6052

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 ↗