IPv6 128-Bit Architecture, RFC 5952 Zero Compression

In Networking Unit 3 (Managing Many Connections).

What to practice

  • Compress and expand 128-bit IPv6 addresses in strict compliance with RFC 5952.
  • Distinguish Global Unicast (2000::/3), Link-Local (fe80::/10), Unique Local (fc00::/7), Multicast (ff00::/8), and Loopback (::1/128) addresses.
  • Trace ICMPv6 Neighbor Discovery (NS/NA) and SLAAC Router Solicitation / Router Advertisement (RS/RA) workflows.

Limited preview notice: AP Networking is not yet open to all schools. College Board lists 2026-27 as its third and final pilot year, with a multiple-choice pilot exam in May 2027 for pilot schools, availability for all schools in 2027-28, and the AP Networking Exam in May 2028. This free preview teaches networking foundations. It is not a complete course, it is not for sale, and College Board does not endorse it.

Framework

IPv6 Format: 128 bits = 8 hextets of 16 bits (4 hex digits each), typically /64 prefix + 64-bit Interface ID | RFC 5952 Compression Rules: (1) Omit leading zeros in each hextet; (2) Use :: at most ONCE for the longest run of all-zero hextets | IPv6 Prefixes: Global Unicast 2000::/3, Link-Local fe80::/10, Unique Local fc00::/7 (fd00::/8), Multicast ff00::/8, Loopback ::1/128

In this chapter, IPv6 expands the logical address space from 32 bits to 128 bits (written as eight 16-bit hexadecimal groups called hextets separated by colons), eliminating NAT and simplifying the Layer 3 header to a fixed 40 bytes. Under RFC 5952 canonical compression, (1) leading zeros inside any hextet are removed (0db8 -> db8, 0000 -> 0, though trailing zeros like ab00 must never be removed), and (2) a single contiguous sequence of two or more all-zero hextets may be replaced by a double colon :: at most once per address (using :: twice makes the uncompressed length ambiguous). IPv6 eliminates broadcast entirely, replacing ARP with ICMPv6 Neighbor Discovery Protocol (NDP) Neighbor Solicitation / Neighbor Advertisement messages and enabling SLAAC (Stateless Address Autoconfiguration) via Router Solicitation (ff02::2 all-routers multicast) and Router Advertisement (ff02::1 all-nodes multicast).

Worked RFC 5952 IPv6 Address Compression, Hextet Expansion & Scope Classification

Apply RFC 5952 rules to compress the full 128-bit IPv6 address 2001:0db8:0000:0000:0040:0000:0000:03a0 into its canonical representation, explain why 2001:db8::40::3a0 is invalid, and classify the address scopes of 2001:db8::/32, fe80::1, fd00:10::1, and ff02::1.

Step 1 (Strip Leading Zeros in Each Hextet): 2001:0db8:0000:0000:0040:0000:0000:03a0 becomes 2001:db8:0:0:40:0:0:3a0 (note that trailing zeros in 40 and 3a0 are preserved!).

Step 2 (Apply :: Once): There are two 2-hextet runs of zeros; RFC 5952 compresses the first run with :: and leaves the second run as :0:0:, producing 2001:db8::40:0:0:3a0.

Step 3 (Verify Invalid Double ::): Writing 2001:db8::40::3a0 violates RFC 5952 because a parser cannot tell whether the missing 4 zero hextets are split 1+3, 2+2, or 3+1.

Step 4 (Classify Address Scopes): 2001:db8:: is a Global Unicast (documentation) prefix (2000::/3), fe80::1 is Link-Local Unicast (fe80::/10, never routed off-link), fd00:10::1 is Unique Local Unicast (fc00::/7), and ff02::1 is Link-Local All-Nodes Multicast (ff00::/8).

Never use :: more than once in an IPv6 address, and never strip trailing zeros inside a hextet (0040 compresses to 40, not 4).

Practice procedure

To expand a :: in an IPv6 address, count the visible hextets K; the :: stands for exactly (8 - K) all-zero hextets.

Common mistakes

Using :: twice in the same IPv6 address or stripping trailing zeros inside a hextet (turning 03a0 into 3a).

Claiming that IPv6 uses broadcast ARP requests to resolve MAC addresses (IPv6 has no broadcast; it uses multicast ICMPv6 Neighbor Solicitation).

Key terms

Term: Link-Local Address (fe80::/10)

Definition: An IPv6 address automatically required on every IPv6-enabled interface for local-link communication (NDP, routing protocols); never routed by routers.

Term: SLAAC

Definition: Stateless Address Autoconfiguration; allows an IPv6 host to generate its own routable /64 Global Unicast address from an ICMPv6 Router Advertisement.

Term: Neighbor Discovery Protocol (NDP)

Definition: The ICMPv6 protocol suite (RS, RA, NS, NA, Redirect) that replaces IPv4 ARP, ICMP router discovery, and redirect functions.

Term: Dual-Stack Migration

Definition: Running IPv4 and IPv6 protocol stacks simultaneously on network interfaces during transition to native IPv6.

Use this chapter companion

Review the lesson, attempt the original practice, then check the explanation. Your printed study guide remains complete without the website.

Independence

Skill by Skill Prep is independent. SAT® and AP® are trademarks registered by the College Board, which is not affiliated with, and does not endorse, this website or book. PSAT/NMSQT® is a registered trademark of the College Board and the National Merit Scholarship Corporation, which are not affiliated with, and do not endorse, this site. Bluebook™ is a trademark of the College Board. ACT® is a trademark of ACT Education Corp., which is not affiliated with and does not endorse this website or book. Desmos is a trademark of Desmos Studio PBC. Practice results describe these questions, not official scores or admission predictions.

Last updated .