Home >Common Problem >How to classify ipv6 addresses
IPv6 address classification method: 1. Unicast address, a unicast address corresponds to an interface, and data packets sent to the unicast address will be received by the corresponding interface; 2. Multicast address, a multicast address The address corresponds to a group of interfaces, and data packets sent to the multicast address will be received by all interfaces in this group.
How to classify ipv6 addresses:
For IPv4 addresses, we know that they are divided into Class A, Class B, Class C, multicast address and reserved address are several major categories. Class ABC addresses also have different functions such as broadcast address, private address and other types. So how are IPv6 addresses classified? This article will give you a preliminary understanding.
Let’s first talk about why it is called a preliminary understanding, because so far, the classification standard for IPv6 addresses is still being formulated. The most recent draft standard was formulated in 2006 (specifically You can check RFC4291), so this article can only lead you to try it out and have a general understanding of IPv6 address classification and structure. Just like the IPv6 standard took 20 years to change from a draft to a formal standard, the determination of IPv6 address classification standards is also a long process. Of course, with the rapid popularity of IPv6, the determination of this standard will definitely accelerate.
1. IPv6 address representation method
The IPv6 address has a total of 128 digits. In order to facilitate manual reading and input, like the IPv4 address, the IPv6 address can also be represented by a string. character representation. The IPv6 address is expressed in hexadecimal. The IPv6 address is divided into 8 blocks, each block is 16 bits, and the blocks are separated by ":". As shown below:
#At the same time, when multiple address blocks are 0, you can use the "::" sign to simplify.
Simplification principle:
All 0 blocks "0000" can be simplified to "0"
2. IPv6 address types
IPv6 addresses are generally divided into three categories: unicast addresses, Anycast address, multicast address.The above is the detailed content of How to classify ipv6 addresses. For more information, please follow other related articles on the PHP Chinese website!