Labs ICT
โญ Pro Login

IPv6

The next generation of IP addressing for a world running out of addresses.

The Next Generation of IP

IPv4's 32-bit addresses provide about 4.3 billion unique addresses. That sounded like a lot in the 1980s, but with billions of smartphones, IoT devices, and computers, we've run out. IPv6 was designed to solve this problem with 128-bit addresses โ€” providing 340 undecillion (3.4 ร— 10^38) addresses. That's enough to give every atom on Earth its own IP address.

IPv6 Address Format

IPv6 addresses are written as eight groups of four hexadecimal digits, separated by colons:


  Full format:     2001:0db8:85a3:0000:0000:8a2e:0370:7334

  Leading zeros can be omitted:
  2001:db8:85a3:0:0:8a2e:370:7334

  Consecutive groups of zeros can be replaced with ::
  2001:db8:85a3::8a2e:370:7334

IPv6 vs. IPv4


  Feature        โ”‚ IPv4                    โ”‚ IPv6
  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  Address size   โ”‚ 32 bits                 โ”‚ 128 bits
  Address format โ”‚ Dotted decimal          โ”‚ Hexadecimal
  Address count  โ”‚ ~4.3 billion            โ”‚ 3.4 ร— 10^38
  Header size    โ”‚ 20-60 bytes (variable)  โ”‚ 40 bytes (fixed)
  Checksum       โ”‚ Yes                     โ”‚ No (handled by upper layers)
  NAT            โ”‚ Required (address save) โ”‚ Not needed
  Auto-config    โ”‚ DHCP                    โ”‚ SLAAC + DHCPv6
  Broadcast      โ”‚ Yes                     โ”‚ No (uses multicast)
  IPSec          โ”‚ Optional                โ”‚ Built-in

Key IPv6 Improvements

  • No NAT needed โ€” With 340 undecillion addresses, every device can have a public IP. No more private address translation.
  • Simplified header โ€” IPv6 has a fixed 40-byte header (vs. IPv4's variable 20-60 bytes). This makes processing faster for routers.
  • Built-in security โ€” IPsec (Internet Protocol Security) is mandatory in IPv6, providing authentication and encryption at the network layer.
  • Auto-configuration โ€” IPv6 devices can automatically configure their own addresses using SLAAC (Stateless Address Autoconfiguration) without needing a DHCP server.
  • No broadcast โ€” IPv6 replaces broadcast with multicast and anycast, reducing unnecessary network traffic.

Transitioning to IPv6

The transition from IPv4 to IPv6 has been gradual. Most networks run dual-stack, supporting both IPv4 and IPv6 simultaneously. Some use tunneling, where IPv6 packets are encapsulated inside IPv4 packets to cross IPv4-only infrastructure.

The transition is inevitable โ€” we've already exhausted the IPv4 address space. But it's slow because every router, switch, firewall, and application needs to support IPv6, and the backward compatibility challenges are significant.

๐Ÿงช Quick Quiz

What is the main advantage of IPv6 over IPv4?