IPv6, short for "Internet Protocol Version 6" is the next-generation IP protocol designed by the Internet Engineering Task Force (IETF) to replace IPv4. Its address space is so vast that it can assign an address to every grain of sand on Earth.
The primary issue with IPv4 was the exhaustion of network address resources, severely limiting the internet's growth and applications. IPv6 not only addresses the scarcity of network address resources but also resolves barriers to connecting various devices to the internet.
The length of an IPv6 address is 128 bits, four times longer than an IPv4 address. The IPv4 dotted decimal format is no longer used; instead, IPv6 addresses are represented in hexadecimal.
The overall structure of an IPv6 packet consists of three parts: the IPv6 header, extension headers, and the upper-layer protocol data.
The IPv6 protocol mainly defines three types of addresses: Unicast Address, Multicast Address, and Anycast Address. Compared to IPv4 addresses, IPv6 introduces the "Anycast Address" type, and eliminates the broadcast address present in IPv4, as broadcasting in IPv6 is accomplished through multicast.
IPv6 utilizes two address auto-configuration protocols, namely Stateless Address Autoconfiguration Protocol (SLAAC) and IPv6 Dynamic Host Configuration Protocol (DHCPv6).
IPv6 Routing Protocols
Like IPv4, IPv6 routing protocols are also divided into Interior Gateway Protocols (IGP) and Exterior Gateway Protocols (EGP). The IGPs include RIPng, which evolved from RIP, OSPFv3, which evolved from OSPF, and IS-ISv6, which evolved from the IS-IS protocol. The EGP is mainly BGP4+, which evolved from BGP.
Compared to IPV4, IPV6 has the following advantages:
Larger Address Space | IPv4 specifies an IP address length of 32 bits, with a maximum number of addresses being 2^32. IPv6 specifies an IP address length of 128 bits, with a maximum number of addresses being 2^128. |
Smaller Routing Table | IPv6's address allocation follows the principle of aggregation, allowing routers to represent a subnet with a single entry in the routing table, significantly reducing the length of the routing table and increasing the speed at which routers forward packets. |
Enhanced Multicast Support and Flow Control | Multimedia applications on the network have a great opportunity to develop, providing a good network platform for Quality of Service (QoS) control. |
Support for Automatic Configuration | Network management (especially for local area networks) is more convenient and efficient. |
Higher Security | Users can encrypt data at the network layer and verify IP packets. The encryption and authentication options in IPV6 provide confidentiality and integrity of packets, greatly enhancing network security. |
Allows for Expansion | If new technologies or applications require it, IPV6 allows for protocol expansion. |
Better Header Format | IPV6 uses a new header format, with options separated from the basic header. If needed, options can be inserted between the basic header and the upper-layer data, simplifying and accelerating the routing selection process. |
New Options | IPV6 has some new options to implement additional functions. |
IPv6 cannot immediately replace IPv4, so for a considerable period, IPv4 and IPv6 will coexist in the same environment. To provide a smooth transition process with minimal impact on existing users, good transition mechanisms are needed. The IETF has recommended several transition mechanisms, including dual-stack, tunneling technology, and Network Address Translation (NAT).
In China, an internet environment where clients and traffic are predominantly IPv4, Tencent EdgeOne provides a smooth and secure IPv6 internet gateway, assisting customers in gradually completing end-to-end IPv6 transformation.
For a long time, IPv6 and IPv4 dual-stack will operate simultaneously. As the number of active IPv6 users on the internet continues to increase, the underlying core network will eventually complete a smooth transition to IPv6, with IPv6 becoming the main network and compatible with the existing IPv4 services.
The architecture diagram of Tencent Cloud CDN supporting IPv6 access is shown below:
To speed up domain configuration, the origin server deployed on the cloud server is an Nginx service. Below is how to verify that the origin server is enabled and listening on IPv6.
Check if the local IP address contains IPv6.
ifconfig | grep -i inet6
The public address following "inet6" in the first line is the source IP address to be entered when accessing the acceleration domain in step one.
Check whether the local machine is already listening on IPv6.
netstat -tupln
Test the local machine's HTTP request connectivity.
curl -6 -sv ip6-localhost/ipv6.txt
For IPv6-enabled client requests for accelerated domain names, the successful resolution to a CDN node can be observed.
curl -sv -6 domain