In this course, we will see the difference between an IPv4 and IPv6 address. At the end of the reading, you will be able to identify and differentiate between an IPv4 and IPv6 address.
The difference between an IPv4 and IPv6 address is that IPv4 is encoded on 32 bits and in decimal notation, while IPv6 is encoded on 128 bits and in hexadecimal notation. You will get the details as you continue reading.
What is an IP address?
An IP (Internet Protocol) is therefore a numerical identifier assigned to each device connected to a computer network for communication.
It is also defined as a numerical address assigned to each device on a network.
An IP address therefore has two main functions, which are network interface identification and addressing the location of a device.
To date, there are two versions of IP addresses:
- IPv4 address (version 4) ;
- IPv6 address (version 6).
What is IPv4?
IPv4 (Internet Protocol version 4) is version 4 of IP, which allows all machines on a computer network to communicate with each other.
An IPv4 address is therefore encoded on 32 bits and has a decimal notation. It is composed of four numbers, each between 0 and 255 and separated by dots.
Example: 192.168.10.10 and mask 255.255.255.0

The example above represents the IP address and its subnet mask, in which each group of numbers separated by dots is called an octet.
In total, 4,294,967,296 or 232 unique IPv4 addresses can therefore be allocated in theory.
The IPv4 address is therefore represented in decimal to facilitate reading, but in reality computers interpret them in binary.
It should be noted that computers only understand binaries. The binary number can be 1 or 0.
An IPv4 address is therefore composed of four bytes. Each byte is composed of 8 bits, so 8 bits x 4 = 32 bits.
Each bit in a byte can therefore be 1 or 0. If the bit is 1, the number it represents will count, and if the bit is 0, the number it represents does not count.
For more information, you can read this course.
What is IPv6?
Internet Protocol version 6 (IPv6), is the version 6 of the Internet Protocol and was created to overcome the problem of shortage of IPv4 addresses.
IPv6 works in the same way as IPv4, assigning unique IP addresses to devices to enable them to communicate over a computer network.
However, an IPv6 address is much longer than an IPv4 address, because IPv6 is encoded on 128 bits.
Which is in total 2128 (the answer gives something like 2128 = 340,282,366,920,938,463,374,607,431,768,211,456). That’s a lot of IP addresses.
The notation of IPv6 addresses is therefore in hexadecimal.
An IPv6 address is composed of eight groups of four hexadecimal digits. These are separated by a colon (:).
Here is an example of an IPv6 address: 2002:0DB8:82A3:0000:0000: 4ABE:0570:7237

Each group of hexadecimal digits is therefore composed of 16 bits, so 16 bits x 8 = 128 bits for an IPv6 address.
It should be noted that IPv6 is gradually replacing IPv4, because IPv6 technology was created to solve the problems of shortage of IPv4.
IPv4 vs IPv6 address
IPv4 address | IPv6 address |
Encoded on 32 bits | Encoded on 128 bits |
Total IP : 232 | Total IP : 2128 |
IPv4 has 5 different IP address classes which includes class A, B, C, D and E. | IPv6 does not contain any IP address classes. But IPv6 address types |
Example: 192.168.10.10 | 2002:0DB8:82A3:0000:0000: 4ABE:0570:7237 |
IPv4 has a broadcast message transmission scheme. | The multicast and anycast message transmission scheme is available in IPv6. |
IPv4 therefore supports DHCP configuration and manual address | IPv6 supports renumbering and automatic address configuration. |
IPv4 addresses are therefore generally represented in decimal notation, separated by dots, consisting of four decimal numbers, each ranging from 0 to 255, separated by dots. | An IPv6 address is therefore represented by eight groups of four hexadecimal digits, each group representing 16 bits. |
Deployed in 1981 | Deployed in 1998 |
It consists of 4 bytes. | It consists of 8 fields and each field contains 2 bytes. |
In shortage of PI | In excess of PI |