IPv6 Addresses

IPv6 is the successor of IPv4. In contrast to IPv4, the IPv6 address is 128 bit long. The prefix identifies the host and network parts. The Internet Assigned Numbers Authority (IANA) is responsible for assigning IPv4 and IPv6 addresses and their associated network portions. In the long term, IPv6 is expected to completely replace IPv4, which is still predominantly used on the Internet. In principle, however, IPv4 and IPv6 can be made available simultaneously (Dual Stack).

IPv6 consistently follows the end-to-end principle and provides publicly accessible IP addresses for any end devices without the need for NAT. Consequently, an interface can have multiple IPv6 addresses, and there are special IPv6 addresses to which multiple
interfaces are assigned.

A network interface is a hardware or software component that allows a device to connect to a network. It provides a physical or virtual connection between the device and the network, allowing the device to send and receive data over the network. Examples of network interfaces include Ethernet ports, Wi-Fi adapters, and virtual network adapters.

IPv6 is a protocol with many new features, which also has many other advantages over IPv4:

FeaturesIPv4IPv6
Bit length32-bit128 bit
OSI layerNetwork LayerNetwork Layer
Adressing range~ 4.3 billion~ 340 undecillion
RepresentationBinaryHexadecimal
Prefix notation10.10.10.0/24fe80::dd80:b1a9:6687:2d3b/64
Dynamic addressingDHCPSLAAC / DHCPv6
IPsecOptionalMandatory

There are four different types of IPv6 addresses:

TypeDescription
UnicastAddresses for a single interface.
AnycastAddresses for multiple interfaces, where only one of them receives the packet.
MulticastAddresses for multiple interfaces, where all receive the same packet.
BroadcastDo not exist and is realized with multicast addresses.

Hexadecimal System

The hexadecimal system (hex) is used to make the binary representation more readable and understandable. We can only show 10 (0-9) states with the decimal system and 2 (0 / 1) with the binary system by using a single character. In contrast to the binary and decimal system, we can use the hexadecimal system to show 16 (0-F) states with a single character.

DecimalHexBinary
110001
220010
330011
440100
550101
660110
770111
881000
991001
10A1010
11B1011
12C1100
13D1101
14E1110
15F1111

Let's look at an example with an IPv4, at how the IPv4 address (192.168.12.160) would look in hexadecimal representation.

Representation1st Octet2nd Octet3rd Octet4th Octet
Binary1100 00001010 10000000 11001010 0000
HexC0A80CA0
Decimal19216812160

In total, the IPv6 address consists of 16 bytes. Because of its length, an IPv6 address is represented in a hexadecimal notation. Therefore the 128 bits are divided into 8 blocks multiplied by 16 bits (or 4 hex numbers). All four hex numbers are grouped and separated by a colon (:) instead of a simple dot (.) as in IPv4. To simplify the notation, we leave out leading at least 4 zeros in the blocks, and we can replace them with two colons (::).

An IPv6 address can look like this:

An IPv6 address consists of two parts:

The Network Prefix identifies the network, subnet, or address range. The Interface Identifier is formed from the 48-bit MAC address (which we will discuss later) of the interface and is converted to a 64-bit address in the process. The default prefix length is /64. However, other typical prefixes are /32, /48, and /56.

In RFC 5952, the aforementioned IPv6 address notation was defined: