What are the main differences between IPv4 and IPv6?
EasyConceptIP Addressing & Subnetting
Answer
IPv6 is the successor to IPv4, created mainly because IPv4's 32-bit address space (about 4.3 billion addresses) ran out. IPv6 uses 128-bit addresses, about 3.4 × 10^38 of them, enough for every device to have a globally unique address.
| Feature | IPv4 | IPv6 |
|---|---|---|
| Address size | 32 bits | 128 bits |
| Notation | dotted decimal, 192.168.1.10 | hexadecimal groups, 2001:db8::1 |
| Header | 20–60 bytes, with checksum | fixed 40 bytes, no checksum |
| Configuration | manual or DHCP | automatic (SLAAC) or DHCPv6 |
| Address resolution | ARP | Neighbor Discovery |
| Broadcast | yes | no; multicast instead |
- With so many addresses, IPv6 does not need NAT to save address space.
- The two are not directly compatible, so networks run both side by side (dual stack) or use tunnelling and translation during the migration.
Example: The full IPv6 address 2001:0db8:0000:0000:0000:0000:0000:0001 is shortened by dropping leading zeros in each group and replacing one run of all-zero groups with ::, giving 2001:db8::1.