ECE 422(Data Communication & Networks) Course Material

Internet Protocol Version 6

Comprehensive study guide for Data Communications and Computer Networks. Master the next-generation Internet protocol architecture, addressing schemes, and deployment strategies.

128-bit Addressing 340 Undecillion Addresses Simplified Header Auto-configuration

Learning Objectives

1

Architecture Understanding

Explain IPv6 protocol architecture and differences from IPv4

2

Address Representation

Master hexadecimal notation, compression rules, and address types

3

Packet Analysis

Analyze fixed header structure and extension headers

4

Transition Strategies

Evaluate dual-stack, tunneling, and translation mechanisms

Why IPv6?

!

IPv4 Address Exhaustion

IPv4 provides only 4.3 billion addresses (2³²). With mobile devices, IoT, and cloud computing, addresses depleted by 2011.

Massive Address Space

IPv6 offers 340 undecillion addresses (2¹²⁸) = 340,282,366,920,938,463,463,374,607,431,768,211,456

Performance & Security

Fixed 40-byte header (vs variable IPv4), no checksum recalculation at every hop, native IPsec support, and improved multicast.

Address Space Comparison

IPv4 4.29 × 10⁹
32 bits
IPv6 3.40 × 10³⁸
128 bits

Analogy: If IPv4 addresses were grains of sand, they would fill a dump truck. IPv6 addresses would fill the entire Earth 10⁹ times over.

IPv6 Addressing Architecture

Address Representation

2001 : 0DB8 : 0000 : 0000 : FF00 : 0042 : 8329
Global Routing Prefix (48 bits)
Subnet ID (16 bits)
Interface ID (64 bits)

1 Leading Zeros Omission

Full: 2001:0DB8:0000:0000:0000:FF00:0042:8329
Compressed: 2001:DB8:0:0:0:FF00:42:8329

2 Zero Block Compression (::)

Before: 2001:DB8:0:0:0:FF00:42:8329
After: 2001:DB8::FF00:42:8329

Note: Can only be used once per address to avoid ambiguity

Address Types & Scopes

Unicast

One-to-one communication. Identifies a single interface.

Click to expand

Multicast

One-to-many communication. Replaces IPv4 broadcast.

Click to expand

Anycast

One-to-nearest communication. Identifies multiple interfaces.

Click to expand

Interface Identifier Generation (EUI-64)

IPv6 typically uses a 64-bit interface identifier derived from the 48-bit MAC address using the Extended Unique Identifier (EUI-64) format, modified for IPv6.

1

Split the 48-bit MAC address in half

2

Insert FFFE (16 bits) in the middle

3

Invert the 7th bit (Universal/Local bit)

Example: MAC 00:1A:2B:3C:4D:5E
OUI: 00:1A:2B Device: 3C:4D:5E
00:1A:2B FF:FE 3C:4D:5E
↓ Invert 7th bit (00→02)
02 1A:2B:FF:FE:3C:4D:5E
IPv6 Link-Local:
FE80::21A:2BFF:FE3C:4D5E

IPv6 Packet Structure

Fixed Header (40 bytes)

IPv6 Header Format (RFC 8200) 40 bytes fixed
0 4 8 12 16 20 24 28 31
Version
4 bits
Traffic Class
8 bits
Flow Label
20 bits
Payload Length
16 bits
Next Header
8 bits
Hop Limit
8 bits
Source Address
128 bits (16 bytes)
Destination Address
128 bits (16 bytes)
Click on any field above to see detailed description and function

Extension Headers (Chaining)

IPv6 Header
Next Header = 0
Hop-by-Hop
Next Header = 43
Routing
Next Header = 6
TCP
Payload
0 Hop-by-Hop Options
43 Routing (Source Route)
44 Fragment
51 Authentication (AH)
50 Encapsulating Security (ESP)
60 Destination Options
135 Mobility Header

IPv4 vs IPv6 Header Comparison

Feature IPv4 IPv6
Header Size 20-60 bytes (variable) 40 bytes (fixed)
Checksum Header checksum (recalculated at each hop) None (handled by upper layers)
Fragmentation Routers and hosts can fragment Only source host fragments (Path MTU Discovery)
Options In header (variable, rarely used) Extension headers (chained)
Address Resolution ARP (Broadcast) NDP (Neighbor Discovery Protocol) - Multicast
Configuration Manual or DHCP Auto-configuration (SLAAC) or DHCPv6

Neighbor Discovery Protocol (NDP)

NDP (RFC 4861) replaces IPv4 ARP, ICMP Router Discovery, and ICMP Redirect. Uses ICMPv6 messages and solicited-node multicast for efficiency.

1

Router Solicitation (RS)

Hosts send to FF02::2 to discover routers on the link

2

Router Advertisement (RA)

Rulers announce presence, prefixes, MTU, hop limit. Used for SLAAC.

3

Neighbor Solicitation (NS)

Resolve IPv6 to MAC (replaces ARP request). Sent to solicited-node multicast.

4

Neighbor Advertisement (NA)

Response to NS with MAC address. Also sent when MAC changes.

Stateless Auto-configuration (SLAAC)

Step 1: Link-Local Address

Host generates EUI-64 from MAC and prepends FE80::/10

FE80::21A:2BFF:FE3C:4D5E

Step 2: Duplicate Address Detection (DAD)

Sends NS to own solicited-node multicast address to ensure uniqueness

Step 3: Router Discovery

Send RS to FF02::2, receive RA with network prefix (e.g., 2001:DB8::/64)

Step 4: Global Address

Combine prefix + EUI-64

2001:DB8::21A:2BFF:FE3C:4D5E

IPv6 Transition Mechanisms

Dual Stack

Run IPv4 and IPv6 simultaneously on same infrastructure. Hosts and routers process both protocols.

Node has both IPv4 and IPv6 addresses

Tunneling

Encapsulate IPv6 packets in IPv4 headers to traverse IPv4-only networks (6in4, 6to4, Teredo).

IPv6 packet → IPv4 Protocol 41

Translation (NAT64)

Translate between IPv4 and IPv6 at protocol boundary. Allows IPv6-only clients to reach IPv4 servers.

Stateful: NAT64 / Stateless: IVI

6in4 Tunneling Mechanism

IPv6 Network
Src: 2001:DB8::1
Dst: 2001:DB8::2
Ingress
IPv4 Encapsulation
IPv4 Internet
Outer: 198.51.100.1 → 203.0.113.1
Inner: [IPv6 Packet]
Protocol: 41
Egress
IPv6 Network
Original packet delivered

IPv6 Address Calculator

MAC to EUI-64 Converter

Format: xx:xx:xx:xx:xx:xx or xx-xx-xx-xx-xx-xx

EUI-64 Interface ID
--
Link-Local Address
--

Address Expander

Full Expanded Form
--

Subnet Calculator (/64)

Full Network Address (/64)
--

Key Concepts Summary

Addressing Hierarchy

  • Global Routing Prefix (48 bits): Assigned by ISP/Registry
  • Subnet ID (16 bits): 65,536 subnets per site
  • Interface ID (64 bits): EUI-64 or randomized (privacy)

Special Addresses

  • ::/128 Unspecified
  • ::1/128 Loopback
  • FE80::/10 Link-Local
  • FF00::/8 Multicast
  • 2000::/3 Global Unicast

Common Protocol Numbers

  • 6 TCP
  • 17 UDP
  • 58 ICMPv6
  • 0, 43, 44, 50, 51, 60 Extension Headers

Exam Checklist

  • Compress/expand addresses correctly
  • Calculate EUI-64 from MAC
  • Identify address types by prefix
  • Draw IPv6 header (40 bytes)
  • Explain NDP vs ARP differences
  • Compare transition mechanisms