IPv4
Internet Protocol version 4Best for: Older devices and simple home setups
- From 192.168.1.10, from 192.168.1.10
- Reply via NAT, from Internet
Compare protocols
Best for: Older devices and simple home setups
Best for: New, mobile and cloud networks
IPv4 addresses are 32 bits long, written like 192.0.2.10, which allows about 4.3 billion addresses. IPv6 addresses are 128 bits, written like 2001:db8::10, enough for every device many times over. IPv4 ran out, so homes share one public address through NAT. IPv6 lets each device have its own public address and uses a simpler, fixed-size header.
Tick everything that is true for you.
Your pick shows here
Tick one or more lines and we weigh them for you.
| What differs | IPv4 | IPv6 |
|---|---|---|
| Address size | 32 bits | 128 bits |
| Number of addresses | About 4.3 billion | About 340 undecillion (3.4 x 10^38) |
| Written as | Four numbers: 192.0.2.10 | Eight hex groups: 2001:db8::10 |
| Header | 20 to 60 bytes, with a checksum | Fixed 40 bytes, no checksum |
| Finding a neighbour's MAC | ARP | Neighbor Discovery (ICMPv6) |
| Getting an address | DHCP or set by hand | SLAAC (self-made from the router's prefix) or DHCPv6 |
| Broadcast | Yes | No, multicast instead |
| Fragmenting big packets | Sender or any router | Only the sender |
| NAT at home | Almost always | Not needed |
Each page plays the real packets on a map, step by step, with every header explained.
Each line describes one of the two. Which one?
Question 1 of 9
Address size
32 bits
Not by design. Sometimes it is a little faster because there is no NAT on the path and some networks route it better, and sometimes slower. For most people the difference is too small to notice.
No. They are separate protocols. Most devices run both at once (dual stack), and networks use translation such as NAT64 when one side has only IPv6.
Version number 5 was used by an experimental streaming protocol in the 1980s and 1990s, so the next Internet Protocol took number 6.
Yes. Without NAT, every device can have a public address, so the router's firewall must block unasked-for incoming traffic. Home routers do this by default.