Skip to content
StackDecode
System Design
2. Networking FundamentalsAnimated

IPv4 and IPv6

Two versions of IP: 32-bit addresses and 128-bit addresses.

The idea

IPv4 has about 4.3 billion addresses and is nearly exhausted. IPv6 has a vastly larger space and simpler headers.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

Laptop 192.168.…Phone 192.168.1…NAT routerInternet
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Private devices share one public IP address.

step:
1/4
at:
Laptop 192.168.1.5
1/8

The green dot is a request moving through the system.

Step by step

  1. 1IPv4 uses four numbers like 192.168.1.1
  2. 2IPv6 uses eight hex groups
  3. 3NAT stretches IPv4
  4. 4IPv6 gives every device its own address

Where it is used

Choosing dual-stack support.

Watch out for

Some networks still lack IPv6, so keep IPv4 working.

Related