ipv6.help

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:

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.

Overview of CGNAT: three home networks with private addresses each go through their own home router to the operator's CGNAT gateway, which lets them share one public IPv4 address towards the internet.

This hides the shortage but does not solve it, and it has several drawbacks:

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:

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.