What happens when the world runs out of IP addresses? You invent a new internet protocol to rescue the world. Although IPv6 has been around for a few decades, it still hasn’t overtaken its predecessor, IPv4. Is IPv6 actually any better than IPv4? Let’s find out the key differences between the two.
Dec 07, 2021 · 5 min read
IPv4 is the current protocol for creating, assigning and using IP addresses.The first widespread version of IP addresses was IPv4. This internet protocol uses 32-bit numerical addresses, which means it can have approximately 4.3 billion unique IP addresses.
When IPv4 was created 40 years ago, however, engineers did not imagine that millions of people would own at least a few internet connected devices each the way we do now. It is now clear that IPv4 won’t be able to provide enough IPs for the global population. To make things worse, in the early days of IPv4, big corporations were allocated billions of IP addresses. Though they still haven’t been used to this day, they also refuse to give them back to the world, and we are running out of IPs.
In the ‘90s, an upgrade called IPv6 introduced 128-bit IP addresses, which provides nearly 3.4×10 ^ 38 unique addresses.That’s more than enough, even if every person in the world owned a billion devices. However, since its creation, IPv6 hasn’t been fully implemented. But why?
IPv6 doesn’t work with IPv4.
If a website is running on IPv4 but your device and ISP use the newer protocol exclusively, you won’t be able to access it. To access the website, your device would need to be compatible with IPv4 as well.
Most modern routers and electronic devices nowadays support IPv6; however, to make a seamless worldwide shift, all devices, operating systems and ISPs will need to upgrade their systems. To avoid any service disruptions, they will have to run both protocols for some time, which could be costly.
The benefits to the average user are not clearly evident.
Companies find it hard to justify the investment in new technology if their clients don’t see the direct impact or don’t see much value in it. The creation of more IP addresses is an important and long-sighted goal, but it won’t affect everyday users until we actually run out of addresses.
There are few key differences between IPv4 and IPv6. IPv4 addresses use 32 bits, while IPv6 is a 128-bit protocol. Moreover, IPv4 supports VLSM, while IPv6 doesn't support it. Learn below about more differences between these two protocols.
IPv4 addresses use 32 bits with dot-separated decimal notation. An example IPV4 address is localhost – 127.0.0.1. In binary, this would be written as 01111111.00000000.00000000.00000001.
IPv6 addresses use 128 bits with colon-separated hexadecimal notation. An example IPv6 address would be 2001: db8: 3333: 4444: 5555: 6666: 7777: 8888. As a 128-bit format, the binary format would be a bit long to write out for the purposes of this post.
As mentioned earlier, the longer addresses and hexadecimal notation make for a vastly greater number of addresses in IPv6.
In IPv4, the header can be 20 to 60 bytes in length. It will usually be limited to 20 bytes unless options are set at the end of the header.
In IPv6, headers have a fixed size of 40 bytes. Instead of IPv4’s Options header element, IPv6 allows for extensions, which help future-proof the protocol by making it easier to incorporate future technologies.
IPv6’s larger headers imply greater overhead. However, the larger header offers a number of advantages due to the built-in elements:
IPv4 offers broadcast, unicast, and multicast addresses. This differentiation is achieved by reserving certain IP addresses and restricting them from general use. IPv4 addresses can be used for anycast as well, but this is not a defined address type in IPv4.
IPv6 offers unicast(global, link-local, loopback, unspecified, unique local), multicast(well – known, transient, solicited-node), and anycast addresses.
Note: For anycast to work in IPv6, the routing device needs to be told that it is sharing an anycast address.
Address configuration is quite different in these two protocols.
In IPv4, addresses are configured manually or via DHCP(Dynamic Host Configuration Protocol).
IPv6 supports manual, SLAAC(StateLess Address AutoConfiguration), and DHCPv6(stateless / stateful) configuration. In most use cases, this makes IPv6 much easier to configure and run.
IPv4 uses ARP(Address Resolution Protocol) to link internet IPv4 addresses to local link-layer addresses like MAC addresses.
IPv6 uses NDP(Neighbor Discovery Protocol) to interconnect local devices and to connect them to the local network’s internet gateway.
In addition to the critical benefit of solving the IPv4 address shortage, IPv6 has a few key advantages that users will enjoy when (if?) it is finally adopted:
IPv6 was built with security in mind.It provides confidentiality, authentication and data integrity.The Internet Control Message Protocol(ICMP), an IPv4 component, can carry malware, so corporate firewalls often block it.IPv6 ICMP packets, on the other hand, can use IPSec, making them much safer.
Unlike IPv4 addresses, IPv6 addresses won’t favor any part of the world and will be available to everyone. 50 % of IPv4 addresses were reserved for the US when it was created.
IPv6 has longer headers but they are consistent, unlike IPv4’s variable headers. This could mean that the code for routing to these addresses will become simpler and will also require less hardware processing.In this case, IPv6 would have better service quality and user experience.
Engineers created the Network Address Translation(NAT) method to help solve the lack of IP addresses. IPv6 would create enough IP addresses for all devices, which would render NAT no longer necessary. Each device can now connect to the internet and “communicate” with websites directly.
Arguably one of the best features IPv6 has is the aforementioned stateless auto-configuration. This allows devices to assign themselves IP addresses without needing a server. Instead, IP addresses are generated using the device's MAC address, which is unique to every phone, tablet or laptop you own. This makes it easier for devices connected to the same network to discover each other.
Here's a short video explaining it further:
Is IPv6 also faster than IPv4? There is no clear answer right now, and there might not be until IPv6 is broadly adopted. Though the differences in performance give IPv4 a slight edge, the difference is quite small. Sucuri tested the response time of 22 domains in 6 different locations and found out that IPv6 is slightly slower than its predecessor, but only by a fraction of a second. This probably wouldn't be perceptible to a human browsing the internet. The speed test also showed that the response time might also be affected by location.
The majority of VPN software operates on IPv4. If you were to attempt using IPv6 over an IPv4 – only VPN, it would probably redirect your IPv6 traffic through the default gateway and ISP. Your IPv6 traffic would travel outside the secure VPN tunnel.
At this time, part of our solution involves disabling most IPv6 traffic to ensure that user traffic is secure.However, NordVPN is planning to support IPv6 in the future.