Every device on the Internet has an IP address.

It's like a home address.

It's used for locating and sending data to a device.

There are two main formats.

IPv4

The one we have been using is called IPv4. It works great. The only problem is that there are not enough of them.

This is the format. It is a 4-byte number, which means each of the numbers can range from 0 - 255.

In total, that's around 4 billion unique combinations.

It seems like a lot, but there are way more devices than that now.

To solve this, we've been using something called NAT. With NAT, you only assign public IPs to the router. The devices sit behind the router uses private IP instead. But that's a workaround.

That's why a new IP address format was created.

IPv6

This is a typical IPv6 address:

There are 8 groups of digits. Each group contains 4 hexadecimal digits (that's why some of the digits are characters).

There are in total ~340 undecillion combinations. By today's standards, it's almost an infinite amount.

IPv6 is great because every device can have a unique IP address. Each device can reach any other device directly. We don't need NAT anymore.

IPv4 vs IPv6

So why, to this day, does the majority of the network traffic still use IPv4?

The reason is there isn't much incentive for internet providers to switch.

Sure, IPv6 has some benefits, but IPv4 with NAT still works great.

And IPv6 doesn't work with IPv4. Migrating costs a lot of money with no significant upside. That's why the switch is slow.

- Fee from Anime Coders

Keep Reading