Why IPv6?
On 3 February 2011, IANA handed out the last free IPv4 blocks to the five Regional Internet Registries (RIRs). That was 15 years ago. Since then there have been no new IPv4 addresses to get, only the ones already allocated, and they are not enough.
The maths doesn't add up
IPv4 has 32 bits, which gives roughly 4.3 billion addresses. Subtract the reserved blocks, the private ones and the ones used by the cloud providers, and around 3 billion remain that can be used on the internet.
Against that we have:
- 8 billion people on Earth
- 30 billion connected devices
That works out to one public address per ten devices, not even one per person. Every phone, computer, TV, car, sensor and server cannot have an address of its own.
NAT and CGNAT solve the shortage on paper
The internet still works because of address translation. With NAT, all the devices in a home or an office share a single public address. When that was not enough either, CGNAT (Carrier-Grade NAT) was introduced, where the operator lets hundreds or thousands of customers share the same address. Many devices therefore sit behind two layers of translation.

This hides the shortage but does not solve it, and it has several drawbacks:
- End-to-end connectivity disappears. The internet was built so that any device can reach any other device. Behind NAT you can connect outwards, but nobody can reach you. Behind CGNAT you cannot even open a port yourself.
- Services work less well. Gaming, video calls, VPN, remote access and peer-to-peer need detours via relay servers to get through, which means higher latency and more things that can break.
- How many criminals do you share an IP address with? When thousands of customers appear behind the same address, everyone is hit by blocks, CAPTCHA checks and incorrect geolocation if a single one misbehaves.
- Troubleshooting and traceability get harder. An address no longer identifies a customer. The operator has to log every translation to be able to answer who did what. The alternative in use is what is called "port batching": a customer always gets one outgoing IP address together with, for example, 64 static outgoing TCP/UDP source ports, which makes tracing easy for the operator but gives the customer a limited internet.
- It doesn't scale. Every connection requires state in the operator's equipment, and the number of ports per address is limited. More customers and more devices mean more expensive equipment, more bottlenecks and more customers per address.
At the same time, the addresses that do exist have become a commodity. Anyone who wants to grow has to buy or lease IPv4 addresses on a secondary market. That cost ends up with the customers and makes it harder for new players to enter the market.
Even the private addresses have run out
Behind NAT, private addresses according to RFC 1918 are used: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Together that is just under 18 million addresses that anyone may use in their own network. In 1996 there was plenty of room. Today they are not enough, and since everyone uses the same addresses, networks clash with each other:
- Large networks don't fit. Large operators, cloud services and companies have used up the whole of 10.0.0.0/8. They are forced to reuse the same addresses in several parts of the network and to deploy NAT internally as well.
- VPN clashes with the home network. If the office and the home use the same network, for example 192.168.1.0/24, the computer cannot know whether an address is local or at the other end of the tunnel. Either the server at work becomes unreachable, or the printer at home disappears.
- Guest networks clash with VPN. In hotels, cafés, trains and conferences, someone else has chosen the addresses. If the guest network ends up in the same address space as the company network, the VPN connection does not work, and the user can do nothing about it.
- Mergers become renumbering projects. When two companies merge, or need to connect their networks with a partner, both often use the same 10 network. What remains is to renumber one of the networks or to put NAT between them.
- Containers and virtual networks clash with the physical ones. Docker, Kubernetes and virtual networks in the cloud pick their own private addresses, which are often already in use somewhere else in the organisation.
- Not even CGNAT fitted. Operators could not use RFC 1918 addresses between their CGNAT and their customers, because they clashed with the customers' own networks. The solution was to take yet another block, 100.64.0.0/10, from the public address space.
Every clash is solved with more NAT, renumbering or special rules, in other words yet another layer of stopgap fixes on top of the ones already there.
Remember: most things stay the same
The only thing that differs between the two protocols is the IP layer, the actual transport of the packets. The rest is largely the same whichever one you run: the same applications, the same protocols on top and the same tools:
| IPv4 | IPv6 |
|---|---|
| TCP/UDP | TCP/UDP |
| HTTP/HTTPS | HTTP/HTTPS |
| TLS | TLS |
| SSH | SSH |
| DNS | DNS |
| SMTP | SMTP |
| curl | curl |
| BGP | BGP |
| IS-IS | IS-IS |
| ping | ping (ping6) |
| traceroute | traceroute (traceroute6) |
A few things have a new version or a successor, but do the same job:
| IPv4 | IPv6 |
|---|---|
| A record in DNS | AAAA record in DNS |
| ICMP | ICMPv6 |
| ARP | Neighbor Discovery (NDP) |
| DHCP | SLAAC and DHCPv6 |
| OSPFv2 | OSPFv3 |
| IGMP snooping | MLD snooping |
Troubleshooting will also feel familiar. This is how you show the neighbours on the local network, what in IPv4 is called the ARP table:
| System | IPv4 | IPv6 |
|---|---|---|
| Windows | arp -a |
netsh interface ipv6 show neighbors |
| Linux | ip -4 neigh |
ip -6 neigh |
| macOS | arp -an |
ndp -an |
What differs
| IPv4 | IPv6 | |
|---|---|---|
| Address space | 32 bits, for example 192.0.2.100 |
128 bits, for example 2001:db8:0100:1234:ab12:ea32:18de:de56 |
| Header | 20 to 60 bytes, with a checksum and fields for fragmentation | Always 40 bytes, without a checksum. Options go in separate headers after the fixed one |
| Address assignment | DHCP and ARP | RS/RA, DAD, DHCPv6, MLDv2 and ND |
IPv6 solves the problem
IPv6 has 128 bits. That gives 340 undecillion addresses, enough for every device to get its own public address, with room to spare for the foreseeable future. No address translation is needed, end-to-end connectivity works again and the network becomes simpler to build, operate and troubleshoot. Since every network gets globally unique addresses, two networks cannot clash either, whether over VPN, on a guest network or when two companies merge.
IPv6 has been around for more than 25 years, and a large share of the traffic on the internet already goes over IPv6.