4.3.11 · HinglishComputer Networks

IPv6 — address format, why needed, key differences

1,516 words7 min readRead in English

4.3.11 · Coding › Computer Networks


WHY karte hain hume IPv6 ki zaroorat?

WHY hai count? Har bit ek independent on/off choice hai. independent binary choices ke saath aapko combinations milte hain (multiplication principle). Toh 32 bits ⇒ .

Yeh bohot bada lagta hai, lekin:

  • Kaafi ranges reserved hain (private, loopback, multicast), toh usable count chhoti hai.
  • Har internet-connected device ek chahta hai. Phones, laptops, cameras, fridges, cars (IoT) ⇒ tens of billions of devices.

KAISA dikhta hai ek IPv6 address?

WHY hexadecimal? Ek hex digit exactly 4 bits encode karta hai (). Toh hex digits total — compact aur bit-aligned.

Full example:

2001:0db8:0000:0000:0000:ff00:0042:8329

Compression rules (HOW karte hain shorten)

Dono apply karne par example par:

2001:db8::ff00:42:8329

Address ka structure (network vs interface)

WHY 64/64? 64-bit interface ID itna bada hai ki 48-bit MAC address (EUI-64) se derive kiya ja sake aur autoconfiguration (SLAAC) DHCP server ke bina kaam kar sake.

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

KEY DIFFERENCES vs IPv4

Feature IPv4 IPv6
Address size 32 bits 128 bits
Notation dotted decimal 192.168.0.1 colon-hex 2001:db8::1
Address count
Header size variable (20–60 B) fixed 40 bytes
Broadcast yes no (multicast/anycast use karta hai)
Address config manual / DHCP SLAAC (auto) + DHCPv6
Fragmentation router ya host sirf sending host
Checksum in header yes removed (L2/L4 par rely karta hai)
Security (IPSec) optional designed-in (originally mandatory)
NAT needed? usually yes usually no

Worked compression examples


Recall Feynman: ek 12-saal ke bacche ko explain karo

Socho phone numbers sirf 4 digit ke hote — jald hi naye logon ke liye koi number nahi bachta. IPv6 "numbers" ko bahut lamba bana deta hai (itna lamba ki basically kabhi khatam nahi honge) aur inhe letters-aur-numbers (hex) aur colons se likhta hai. Yeh kuch purani aaadtein bhi phenko deta hai — jaise building mein sabko chillana (broadcast) — aur sirf unse baat karta hai jo sunna chahte hain.


Flashcards

Ek IPv6 address mein kitne bits hote hain?
128 bits.
Total kitne IPv6 addresses exist karte hain?
.
IPv4 se kitne guna zyada addresses hain?
guna ().
IPv6 address kaise likha jaata hai?
8 groups of 4 hexadecimal digits colons se separated.
IPv6 mein hexadecimal kyun?
1 hex digit = 4 bits, toh 32 hex digits = 128 bits; bit-aligned aur compact.
:: ka kya matlab hai aur kitni baar appear ho sakta hai?
Consecutive all-zero groups ki ek run replace karta hai; sirf ek baar allowed hai (warna ambiguous).
IPv6 main header ka size kya hai?
Fixed 40 bytes.
Kya IPv6 mein broadcast hota hai?
Nahi — yeh multicast aur anycast use karta hai.
IPv6 mein IPv4 ke manual/DHCP config ki jagah kya aaya?
SLAAC (stateless address autoconfiguration), plus DHCPv6.
IPv6 mein fragment kaun kar sakta hai?
Sirf sending host (routers nahi kar sakte).
IPv6 mein header checksum kyun remove kiya gaya?
Routing speed badhane ke liye; integrity L2 (link) aur L4 (TCP/UDP) handle karte hain.
Typical IPv6 prefix/interface split kya hai?
64-bit network prefix + 64-bit interface ID.
IPv6 loopback address kya hai?
::1.
fe80::/10 range ka kya matlab hai?
Link-local addresses (auto, non-routable).
IPv4 count kyun hai?
32 independent binary choices combinations dete hain.

Connections

Concept Map

allows

too few for

motivates

gives

ratio 2^96 over

written as

uses

shortened by

shortened by

misuse causes

splits into

IPv4 32-bit

2^32 approx 4.3 billion

IoT device explosion

IPv6 128-bit

2^128 approx 3.4e38

8 hextets of 16 bits

Hexadecimal 4 bits per digit

Leading-zero rule

Double-colon rule once

Ambiguous illegal address

64-bit prefix plus 64-bit interface ID