IPv6 is the abbreviation of Internet Protocol Version 6, where Internet Protocol is translated as "Internet Protocol". IPv6 is the next-generation IP protocol designed by IETF (Internet Engineering Task Force) to replace the current version of IP protocol (IPv4), claiming that it can encode a URL for every grain of sand in the world. 1. Basic Concepts of IPV6 As we all know, IPv6 uses a 128-bit address length and has a larger address space. First, let's take a look at what IPv6 looks like. IPv6 datagrams are very different from IPv4:
Let's take a look at the IPv6 message header format: IPv6 message header The IPv6 header is simpler, with fewer fields. Compared with IPv4, there are several things to note:
The meaning here is very different from IPv4 and needs to be explained:
Why do we need to introduce the concept of extension header? This is also one of the improvements of IPv6 over IPv4. The extension header replaces the optional information of IPv4, simplifies the header of IPv6, and enhances the extensibility of IPv6. Some students may wonder how to handle IPv6 fragmented data packets? In fact, it is the use of IPv6 extension header. When sending a fragmented IPv6 datagram, IPv6 uses an extended header to organize the information of each fragment. The Next Header field value of the IPv6 message header is 44, indicating the presence of an extended header, which is the IPv6 fragment data information. Compared with IPv4, fragmentation information is recorded in the fragment field of the IPv4 message header. There are many types of IPv6 extension headers. In addition to the above-mentioned fragmentation header, there are also routing headers, hop-by-hop optional headers, etc. For details, please refer to RFC2460. This chapter mainly introduces some very intuitive understanding of IPv6. The following will gradually introduce the basic knowledge and concepts of IPv6. 2. IPv6 address syntax An IPv6 address uses colon hexadecimal notation: the 128-bit address is divided into 16-bit segments, and each 16-bit segment is represented in hexadecimal and separated by colons, for example: A common public IPv6 address:
IPv6 addresses support the representation of compressed leading zeros. For example, the address above can be compressed as follows:
To further simplify the IPv6 address, when there are several consecutive segments of 0 in the colon hexadecimal format, these segments can be compressed into a double colon representation. For example, the address above can be further simplified as follows:
For example, the IPv6 address FF80:0:0:0:FF:3BA:891:67C2 can be further simplified as follows:
It is worth noting here that the double colon can only appear once. 3. IPv6 address segmentation and prefix representation IPv6 has a huge 128-bit address space. For such a large space, it is not divided arbitrarily, but divided into number segments according to bits (similar to the zone division algorithm of some 64-bit uin transformation and release numbers within Tencent). The IPv6 address structure is as follows: For example, RFC4291 defines n=48, m=16, which means that the subnet and interface ID each occupy 64 bits. IPv6 supports a subnet prefix identification method, which is similar to the Classless Inter-Domain Routing (CIDR) mechanism of IPv4 (Note: IPv6 does not have the concept of a subnet mask). Use the "IPv6 address/prefix length" representation method, for example:
As you can see, an IPv6 address consists of a subnet prefix + interface ID. The subnet prefix is defined and allocated by the address allocation and management agency, while the interface ID can be generated by each operating system. The generation algorithm will be introduced in the following chapters. 4. IPv6 address types There are three types of IPv6 addresses:
IPv6 does not have a broadcast address, and uses a multicast address to implement the broadcast function. In fact, we are most likely to come into contact with unicast addresses in our work and life. The following article will focus on the types of unicast addresses. Students who are interested in multicast and anycast addresses can refer to the relevant RFCs and documents. |
<<: 8 Internet startups that could change the industry
>>: Is SDN the next stop for network administrators? Why is it important?
RAKsmart has released a promotional plan for July...
What kind of chemical reaction will occur between...
TripodCloud is a Chinese VPS service provider fou...
DesiVPS is a foreign hosting company headquartere...
[[430847]] Preface With the rapid development of ...
In 2020, as the first year of 5G, 5G network cons...
In 2020, the country's top leadership has cla...
PacificRack is a site under QN Data Center, mainl...
The networking world is known for widespread chan...
I have told you before that our current wireless ...
The Broadband Forum has published its technical r...
I received a Christmas and New Year promotion fro...
If you haven't been to Brazil, you should go ...
picture During a VoLTE test, an operator discover...
【51CTO.com Quick Translation】In 2014, two years a...