IPv4 Address Structure:
+---------+---------+---------+---------+
| 192 | 168 | 1 | 10 |
+---------+---------+---------+---------+
| 8 bits | 8 bits | 8 bits | 8 bits |
+---------+---------+---------+---------+
Format: Decimal numbers (0-255) separated by dots
Total bits: 32 bits
IPv6 Address Structure:
+--------+--------+--------+--------+--------+--------+--------+--------+
| 2001 | 0db8 | 85a3 | 0000 | 0000 | 8a2e | 0370 | 7334 |
+--------+--------+--------+--------+--------+--------+--------+--------+
| 16 bits| 16 bits| 16 bits| 16 bits| 16 bits| 16 bits| 16 bits| 16 bits|
+--------+--------+--------+--------+--------+--------+--------+--------+
Format: Hexadecimal numbers (0000 to FFFF) separated by colons
Total bits: 128 bits
The IPv4 address is made of 4 parts, each part is 8 bits (1 byte). Each part is shown as a decimal number from 0 to 255. The example address is 192.168.1.10. The total length is 32 bits.
The IPv6 address is made of 8 parts, each part is 16 bits (2 bytes). Each part is shown as a hexadecimal number from 0000 to FFFF. The example address is 2001:0db8:85a3:0000:0000:8a2e:0370:7334. The total length is 128 bits.
This diagram helps visualize the difference in size and format between IPv4 and IPv6 addresses.