IPv6 Address Types (Cast Types)
IPv6 completely eliminates traditional IPv4 broadcast traffic to reduce network overhead. Instead, it classifies traffic into three main transmission modes:
- Unicast: One-to-One communication. Packets delivered to a specific single interface (e.g., Global Unicast or Link-Local).
- Multicast: One-to-Many communication. Packets delivered to all interfaces that join a specific multicast group (prefix
ff00::/8). Replaces IPv4 ARP and Broadcast.
- Anycast: One-to-Nearest communication. Syntactically identical to a Unicast address, an Anycast address is assigned to multiple interfaces across different devices. Routing protocols (e.g., BGP) automatically route traffic to the geometrically or topologically nearest interface based on routing metrics.
IPv6 Implementation: LAN vs. WAN
1. Local Area Networks (LAN Deployment)
- Subnet Standard: LAN segments exclusively use
/64 prefix lengths to ensure compatibility with Stateless Address Autoconfiguration (SLAAC).
- Neighbor Discovery Protocol (NDP): Replaces ARP. Hosts use ICMPv6 Neighbor Solicitation (NS) and Neighbor Advertisement (NA) messages to resolve Link-Layer addresses.
- Dynamic Addressing:
- SLAAC: Router Advertisements (RA) supply the
/64 network prefix; hosts auto-generate their own 64-bit Interface ID using EUI-64 or randomized privacy extension bits.
- DHCPv6: Used either in Stateless mode (providing DNS options alongside SLAAC) or Stateful mode (managing full address leases).
- Link-Local Addressing:
fe80::/10 addresses are automatically generated on every enabled interface and are used for local router discovery, neighbor communications, and internal routing protocol adjacencies without requiring a public prefix.
2. Wide Area Networks (WAN & Enterprise Routing)
- Prefix Hierarchies:
- ISPs (RIR Allocation): Assigned large blocks, typically a
/32 prefix.
- Enterprise WAN Sites: Assigned a
/48 prefix, providing 65,536 individual /64 LAN subnets.
- Small Office / Residential: Typically allocated a
/56 prefix (providing 256 subnets of /64).
- Point-to-Point Links: Inter-router transit connections inside WAN environments leverage
/127 subnets (RFC 6164) to prevent ping-pong routing loops and neighbor cache exhaustion attacks.
- Routing Protocols:
- OSPFv3: Operates as the Interior Gateway Protocol (IGP) for local transit and inter-branch tracking, communicating over Link-Local adjacencies.
- MP-BGP: Uses the IPv6 Unicast Address Family (AFI) to exchange external WAN prefixes across Autonomous Systems.
- Anycast Applications in WAN: Crucial for global CDN edge servers, DNS root servers (e.g., 1.1.1.1 or 8.8.8.8 mapped to IPv6 equivalents), and high-availability dual-homed WAN gateways.