I.Basic Concepts of IPv6
- Introduction to IPv6
Definition: IPv6 (Internet Protocol version 6) is the sixth version of the internet protocol.
Development purpose: To address the issue of IPv4 address exhaustion and improve the internet protocol.
Release date: Formally standardized by the IETF in 1998 (RFC 2460).
- Key features of IPv6
Address Space: 128-bit address length, theoretically supporting 3.4 × 10^38 addresses
Simplified Header: Fixed 40-byte basic header for improved routing efficiency
Built-in Security: Native support for IPSec (authentication and encryption)
Plug and Play: Supports Stateless Address Autoconfiguration (SLAAC)
Quality of Service: Enhanced QoS support (Flow Label field)
II. The IPv6 Addressing System
1. Address Representation
Standard format: 8 groups of 4-digit hexadecimal numbers, separated by colons
Example: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
Compression rules:
Leading zeros in each group can be omitted → 2001:db8:85a3:0:0:8a2e:370:7334
Consecutive groups of all zeros can be replaced with :: (only once) → 2001:db8:85a3::8a2e:370:7334
Mixed notation: IPv4-mapped address (::ffff:192.168.1.1)
2.Address structure
|
Components |
length | Description |
|
Global routing prefix |
48 bit | Assigned by the ISP |
|
Subnet ID |
16-bit | Internal organizational structure |
|
Interface ID |
64-bit | Host interface identifier |
- Detailed explanation of address types
1.1 Unicast Address
Global Unicast Address:
Range: 2000::/3
Structure: Global routing prefix (48 bits) + Subnet ID (16 bits) + Interface ID (64 bits)
Example: 2001:db8:1:1::1
Link-Local Address:
Range: fe80::/10
Automatically generated: fe80:: + Interface ID
Purpose: Communication between nodes on the same link
Unique Local Address (ULA):
Range: fc00::/7
Characteristics: Similar to IPv4 private addresses, globally unique
1.2 Multicast Addresses
Format: ff0x::/8 (x represents the scope flag)
ff02::1: All nodes
ff02::2: All routers
ff02::1:ffxx:xxxx: Request multicast to specific nodes
1.3 Anycast Address
Features: Allocates IP addresses from a unicast address space and routes traffic to the "closest" node.
Applications: DNS root servers, CDN nodes
III. Key technologies of IPv6
1. Automatic address configuration
Stateless (SLAAC):
Generate a link-local address (fe80::/10)
Send a Router Solicitation (RS) message
Receive a Router Advertisement (RA) message to obtain the prefix
Combine the prefix with the EUI-64 address to form the global address
Stateful (DHCPv6): Assigns addresses and other configuration parameters
Two modes: Stateful/Stateless
2. Neighbor Discovery Protocol (NDP)
Function: Replaces ARP, implementing the following features:
Address resolution
Router discovery
Duplicate address detection
Neighbor unreachability detection
Basic header (fixed 40 bytes):
3. IPv6 packet format
Basic header (fixed 40 bytes):
text
+-------------+--------+-----------------------+
| Version (4) | Flow Label (20) | Payload Length (16) | Next Header (8) | Hop Limit (8) |
+-------------+------------------------------+
| Source Address (128) |
+------------------------------------------+
| Destination Address (128) |
+------------------------------------------+
Extension headers: Add as needed (routing, fragmentation, authentication, etc.)
Ⅳ. IPv4 vs. IPv6 Comparison
|
Comparison Dimensions |
IPv4 |
IPv6 |
|
Address Length |
32 bits (approximately 4.2 billion) |
128 bits (3.4 × 10³⁸) |
|
Address Configuration |
Manual/DHCP |
SLAAC/DHCPv6 |
|
Header |
Variable length (20-60B) |
Fixed 40 bytes + extension header |
|
Fragmentation |
Router and sender |
Sender only |
|
Broadcast |
Supported |
Superseded by multicast |
|
Security |
Optional (IPSec) |
Natively integrated |
|
QoS Supported |
ToS field |
Flow label field |
Ⅴ. IPv6 Transition Technology
1. Dual-Stack Technology
The device runs both IPv4 and IPv6 protocol stacks simultaneously. The protocol version is selected based on the destination address.
2. Tunneling Technology
6to4: Transmits IPv6 data (prefix 2002::/16) over an IPv4 network.
ISATAP: Intra-Site Automatic Tunnel Addressing Protocol.
Teredo: Transmits IPv6 over NAT (UDP encapsulation).
3. Protocol Translation
NAT64: Translates IPv6 and IPv4 addresses.
DNS64: Synthesizes AAAA records for IPv6-only clients to access IPv4 resources.
VI. IPv6 Practical Applications
1. Address Planning Recommendations
Allocate a /48 address to end sites
Use a /64 address for each subnet (containing 2⁶⁴ addresses)
Avoid using ::1 as a device address
2. Security Considerations
Disable unnecessary IPv6 services
Configure IPv6 access control lists (ACLs)
Monitor ICMPv6 traffic (more important than IPv4)
3. Deployment Checklist
1. Confirm that network devices support IPv6
2. Update DNS services (AAAA records)
3. Test application compatibility
4. Train IT personnel
5. Develop a transition plan
VII. FAQs
Q1: Why doesn't IPv6 require NAT?
A: The IPv6 address space is large enough that every device can obtain a public address. NAT is primarily used to address the shortage of IPv4 addresses.
Q2: How do I test IPv6 connectivity?
ping6 ipv6.google.com
Visit the test website (test-ipv6.com)
traceroute6 command
Q3: Will IPv6 completely replace IPv4?
We are currently in a transitional phase of coexistence. In the long term, IPv6 will become the dominant protocol, but IPv4 will continue to be used in some scenarios.
Post time: Oct-08-2025



