IPv6 Overview & Addressing Format
Understand IPv6 128-bit hexadecimal notation, address compression rules, dual-stack deployments, and benefits over IPv4.
What is IPv6?
IPv6 (Internet Protocol version 6) was designed by the IETF to replace IPv4 and permanently eliminate address exhaustion bottlenecks.
128-Bit Hexadecimal Format
IPv6 uses 128 bits, providing $2^{128} \approx 3.4 \times 10^{38}$ unique addresses (roughly 340 undecillion addresses).
An IPv6 address is written as 8 groups of 4 hexadecimal digits separated by colons:
2001:0db8:85a3:0000:0000:8a2e:0370:7334Address Compression Rules
To simplify writing long IPv6 addresses:
- Omit Leading Zeros in Each Group:
2001:0db8:...becomes2001:db8:... - Double Colon (
::) for Consecutive Zeros: Consecutive sections of zeros can be compressed to::once per address:2001:db8:85a3:0000:0000:8a2e:0370:7334$\rightarrow$2001:db8:85a3::8a2e:370:7334 - Loopback Address:
0000:0000:0000:0000:0000:0000:0000:0001compresses to::1(IPv6 equivalent of127.0.0.1).
IPv4 vs IPv6 Comparison
| Metric | IPv4 | IPv6 |
|---|---|---|
| Address Length | 32 bits | 128 bits |
| Format | Decimal (192.168.1.1) | Hexadecimal (2001:db8::1) |
| Loopback | 127.0.0.1 | ::1 |
| All Interfaces | 0.0.0.0 | :: |
| NAT Required? | Yes (Widespread) | No (End-to-end direct routing) |
| Packet Header | Variable size (20-60 bytes) | Fixed simplified size (40 bytes) |
Dual-Stack Architecture
Most modern cloud servers and mobile networks run in Dual-Stack mode, meaning network interfaces are assigned both an IPv4 and an IPv6 address concurrently.
IPv4 Architecture & Dotted-Decimal Notation
Master IPv4 32-bit addressing, octet structure, binary representation, and IPv4 address pool exhaustion.
Private vs Public IP Addresses (RFC 1918)
Understand RFC 1918 private IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), public routable IPs, and VPC isolation.