IP and MAC Addressing
IPv6 is the newer version of the Internet Protocol. It was introduced because IPv4 does not provide enough addresses for all the devices that need to connect to networks.
An IPv4 address is 32 bits long, so there are 2 to the power 32 possible IPv4 addresses. That number cannot cover every piece of equipment that now needs a connection, especially as people now connect phones, tablets, games consoles and smart devices as well as computers. An IPv6 address is 128 bits long, so there are 2 to the power 128 possible addresses. This is vastly more than IPv4, giving enough address space for the foreseeable future.
An IPv6 address is made of eight groups, with 16 bits in every group. A group is shown as four hexadecimal digits, and colons separate the groups. Hexadecimal uses digits 0 to 9 and letters A to F, and each hexadecimal digit represents 4 bits. So four digits make 16 bits, and eight groups make 128 bits.
For example, a valid IPv6 address is 3f2a:9c41:00b7:5d18:e6a3:1174:8f02:bb59. It has eight groups. Each group has four hexadecimal digits. In total there are 8 × 4 = 32 hexadecimal digits, and 32 × 4 = 128 bits.
| Address type | Length | How it is written | Separator | Example |
|---|---|---|---|---|
| IPv4 | 32 bits | Four denary groups, each from 0 to 255 | Full stops | 146.82.19.204 |
| IPv6 | 128 bits | Eight groups of four hexadecimal digits | Colons | 3f2a:9c41:00b7:5d18:e6a3:1174:8f02:bb59 |
| MAC | 48 bits | Six pairs of hexadecimal digits | Colons or hyphens | 7A-2C-9F-04-D1-58 |