4.3.11 · D1Computer Networks

Foundations — IPv6 — address format, why needed, key differences

1,537 words7 min readBack to topic

Before you can read a single line of the parent note IPv6 — address format, why needed, key differences, you need to earn every symbol it throws at you: bits, powers of two, hexadecimal, colons, ::, CIDR /64. This page builds each one from nothing, in the order that each depends on the last.


1. A "bit" — the atom of everything

Picture a single light switch on a wall. It has exactly two states. That "two-ness" is the seed from which every number below grows.

Figure — IPv6 — address format, why needed, key differences

Why the topic needs it: the parent says "IPv4 uses a 32-bit address" and "IPv6 uses 128-bit." Those numbers are just how many switches are in the address. Everything else is counting arrangements of switches.


2. Counting combinations — where comes from

Follow the doubling with pictures, not formulas:

  • 1 switch → 2 patterns: 0, 1.
  • 2 switches → 4 patterns: 00, 01, 10, 11.
  • 3 switches → 8 patterns: 000111.
Figure — IPv6 — address format, why needed, key differences

What the notation means: ("two to the power ") is shorthand for "multiply by itself times." The little raised number is the exponent — it counts how many switches.

See Hexadecimal and Binary Number Systems for more drills on this.


3. Grouping bits into 4 — the nibble

We could write 128 bare 0s and 1s, but no human can read 1111111010000000.... So we chop the row of switches into small chunks.

Figure — IPv6 — address format, why needed, key differences

Why exactly 4? Because is a clean power of two, one nibble maps to exactly one symbol in a base-16 alphabet — no leftover states. That is the whole reason IPv6 uses hexadecimal (next section).


4. Hexadecimal — one symbol per nibble

Since a nibble has 16 possible values and hex has 16 symbols, the match is exact and one-to-one:

bits value hex
0000 0 0
1010 10 a
1111 15 f

Why the topic needs it: this is exactly the parent's "WHY hexadecimal?" answer — hex is bit-aligned (no wasted symbols) and compact (32 characters instead of 128). Decimal would not work, because is not a power of , so digits wouldn't line up on bit boundaries.


5. The colon : — the hextet separator

The colon carries no numeric meaning — it is punctuation, exactly like the dots in IPv4's 192.168.0.1. Its only job is to tell your eye where one 4-hex-digit block ends and the next begins.


6. Two zeros symbols: leading-zero drop and ::

Now that "hextet" and "colon" are earned, the parent's two compression rules are readable.

Figure — IPv6 — address format, why needed, key differences

Why only once (the parent's big warning): the reader counts the visible hextets, subtracts from 8, and puts all the missing zeros where the single :: sits. With two ::, there are two gaps and no way to decide how many zeros go in each — the number becomes ambiguous, so it is illegal.


7. The slash /64 — CIDR prefix notation

This is the same idea as IPv4's CIDR — see IPv4 Addressing & CIDR and Subnetting. The parent's "why 64/64" reasons (MAC-derived interface IDs, SLAAC autoconfiguration) only make sense once you read /64 as "64 bits of network, 64 bits of host."


Prerequisite map

Bit = one 0 or 1 switch

Counting patterns 2 to the n

Nibble = 4 bits

2^128 address space

Hexadecimal 16 symbols

Hextet = 4 hex = 16 bits

Colon separator 8 hextets

Leading-zero and double-colon rules

Slash 64 CIDR prefix split

IPv6 topic 4.3.11

Related model context: OSI & TCP-IP Model — Network Layer, NAT (Network Address Translation), Multicast vs Broadcast vs Anycast, IP Header Structure.


Equipment checklist

A bit is
a single switch that is either 0 (off) or 1 (on).
Why switches give patterns
each new switch doubles the count (each old pattern can end in 0 or 1); multiplication principle.
equals
— dividing same-base powers subtracts exponents.
A nibble is
a group of 4 bits, with possible values (0–15).
Why hexadecimal and not decimal
is a power of two, so 1 hex digit maps exactly to 1 nibble (4 bits); decimal (base 10) is not a power of two and wouldn't align.
1 hex digit equals how many bits
4 bits.
How many hex digits in a 128-bit address
32 ().
A hextet is
16 bits = 4 hex digits; IPv6 has 8 of them.
What the colon : does
pure punctuation separating the 8 hextets — no numeric meaning.
What :: means
a placeholder for a run of all-zero hextets, filled to reach 8 groups total.
Why :: is allowed only once
two gaps would make the number of inserted zero-groups ambiguous.
What /64 means
the first 64 bits are the network prefix; the remaining 64 are the interface ID.