Why IPv6
IPv4’s 32-bit address space has about 4.3 billion patterns; reserved uses and hierarchical allocation reduce practical availability. IPv6 uses 128 bits, roughly 3.4 x 10^38 patterns. The primary motivation is enough address space for generous structured allocation.
IPv4 techniques such as CIDR, private addresses and NAT prolonged its usefulness. NAT allows many hosts to share public addressing but adds gateway state and complicates direct end-to-end reachability. Carrier-grade NAT applies sharing within provider networks too. Source deployment statistics and population predictions are dated context, not new measurements in these notes.
Allocation and aggregation
IANA coordinates global resources; Regional Internet Registries allocate regionally; providers and organizations divide blocks further. The source names AFRINIC, APNIC, ARIN, LACNIC and RIPE NCC. The old TLA/NLA/SLA allocation structure is historical, not a required contemporary breakdown.
Added hierarchy example:
Provider: 2001:db8::/32
Organization: 2001:db8:1200::/48
Subnet: 2001:db8:1200:7::/64A longer prefix denotes a smaller block. Between /48 and /64 are 16 subnet bits, giving 2^16 = 65,536 /64 subnets in this example. These are illustrative sizes, not universal entitlement rules.
An upstream router can learn one 2001:db8:1200::/48 route instead of all individual /64s if they share a suitable next hop. Like a road sign toward a city, the aggregate postpones street-level detail until closer to the destination.
CIDR is Classless Inter-Domain Routing. It permits prefix lengths beyond the historical fixed classes and enables aggregation in IPv4 as well. Longest-prefix matching still applies:
2001:db8:1200::/48 -> Router A
2001:db8:1200:3::/64 -> Router B2001:db8:1200:3::99 follows Router B’s more-specific route. Scattered allocation, multihoming and routing policy limit aggregation; more address bits do not automatically solve routing-table scaling. Broader advertisements also require correct handling of unused space; reuse IPv4 Route Aggregation and Routing Loops for that general forwarding principle.
Coexistence mechanisms
| Mechanism | Meaning |
|---|---|
| Dual stack | Device/network runs IPv4 and IPv6 alongside each other |
| Translation | Converts traffic between the two protocol families |
| Tunneling | Encapsulates one protocol inside another |
DNS A records supply IPv4 addresses; AAAA records supply IPv6 addresses. The same Ethernet network distinguishes IPv4 EtherType 0x0800 from IPv6 0x86DD. A dual-stack host can use an appropriate protocol without translating each packet.
An IPv6-only host cannot directly speak IPv4 to an IPv4-only destination just because both protocols are called IP. A separate compatibility mechanism is needed. The source mentions NAT64/464XLAT but does not develop a complete configuration procedure.
IPv4-mapped notation such as ::ffff:192.0.2.10 represents IPv4 addresses in software APIs; it is not by itself a translation service. TCP and UDP retain their general roles while supporting IPv6 addressing and the required checksum context; DNS and routing protocols need IPv6 support too.
Source and related
Lecture 03 - IPv6, PDF pages 4-17, 31-35, 40-41 and 53. Hierarchy examples, longest-prefix walkthrough and coexistence comparison are added teaching explanations.