</>
ShikshaCSLearn. Code. Grow.
๐Ÿ”
โ˜• Support Us
ShikshaCSโ€บNotesโ€บComputer Networks
Computer Networks
๐Ÿ•’ 9 min read

IPv6 Basics

The internet's successor addressing system โ€” built to never run out of addresses.

Why IPv6 Was Needed

IPv4's roughly 4.3 billion addresses were exhausted faster than expected due to explosive growth in internet-connected devices. IPv6 was designed with a MASSIVE address space โ€” 128 bits instead of IPv4's 32 bits โ€” providing approximately 340 undecillion (3.4 ร— 10^38) unique addresses, enough for every device imaginable for the foreseeable future.

IPv6 Address Format

IPv6 addresses are written as 8 groups of 4 hexadecimal digits, separated by colons โ€” like 2001:0db8:85a3:0000:0000:8a2e:0370:7334. This is far more complex-looking than IPv4's dotted decimal format, but shorthand rules (explained next) make it more manageable in practice.

Shortening Rules

Leading zeros in each group can be dropped (0db8 becomes db8). A single sequence of consecutive all-zero groups can be replaced with a double colon '::' โ€” but only ONCE per address, to avoid ambiguity. So 2001:0db8:0000:0000:0000:0000:1234:5678 can be shortened to 2001:db8::1234:5678.

Key Improvements Over IPv4

Beyond the huge address space, IPv6 removes the need for NAT (since every device can have its own globally unique address), simplifies header structure for faster router processing, has built-in support for auto-configuration (a device can generate its own valid address without a DHCP server), and includes IPsec (encryption) as a core built-in feature rather than an add-on.

Why Adoption Has Been Slow

Despite being available since the late 1990s, global IPv6 adoption has been gradual because IPv4 and IPv6 aren't directly compatible with each other โ€” transitioning requires either running both simultaneously (dual-stack), or complex translation techniques between the two. Most networks today still run a mix of both protocols during this long transition period.

๐ŸŒ Real-World Use

Major companies like Google and Facebook already serve significant traffic over IPv6, and mobile carriers increasingly assign IPv6 addresses to phones by default โ€” you may already be browsing over IPv6 without realizing it, since your device automatically prefers it when both are available.

๐Ÿ’ก Pro Tip

A common exam/interview question is simply 'why is IPv6's address space so much bigger than IPv4's?' โ€” the key number to remember is that going from 32 bits to 128 bits isn't just 4x bigger, it's exponentially bigger (2^128 vs 2^32) โ€” a genuinely astronomical increase in available addresses.

๐Ÿงช Quick Self-Test

Check what you just learned โ€” no pressure, just practice.

1. How many bits make up an IPv6 address?

2. What does the '::' shorthand in an IPv6 address represent?

3. What core feature is built into IPv6 that was only an add-on in IPv4?

โ† Back to all Notes