Three different mechanisms

MechanismOperationSuitable problem
Dual stackDevice supports and uses either IP familyCommunicate natively with IPv4 or IPv6 peers
TunnelingCarry an intact inner IP packet inside an outer packetCross a network that cannot forward the inner protocol natively
TranslationConvert packet headers/addressing between IP familiesConnect endpoints using different families

Endpoint versus intervening network

A server is the destination computer, such as a web server. A network between client and server contains routers that transport packets. The endpoint and middle may support different protocols.

IPv6 client -> IPv4-only middle -> IPv6 server

A tunnel entrance adds an outer IPv4 header addressed to the tunnel exit. Middle routers forward using that header. The exit removes it and forwards the IPv6 packet:

Before: [ IPv6 header | Data ]
During: [ IPv4 header | IPv6 header | Data ]
After:  [ IPv6 header | Data ]

The added analogy is a letter inside a shipping envelope. The carrier reads the envelope; the destination still receives the original letter. Tunneling is not encryption by itself.

IPv6 client -> Translator -> IPv4-only server

Here the server requires an IPv4 packet. Merely removing a wrapper from an IPv6 packet does not help it. Translation produces an IPv4 packet and translates return traffic as needed. An interpreter is the analogy: the destination receives a different protocol representation.

The reverse tunnel direction is also possible: IPv4 inside IPv6. This is used by provider transition mechanisms.

Dual stack

A device may have both 192.168.1.20 and 2001:db8:42:7::25. Applications and the OS select an available protocol for a connection; dual stack itself does not convert packets. Networks must manage both families’ addresses, routing, firewall policy and monitoring. IPv4 use still needs IPv4 addressing, though public addresses may be shared through NAT.

6to4 worked source example

6to4 IPv6 prefixes start with 2002::/16, followed by the tunnel router’s 32-bit public IPv4 address:

IPv4 endpoint: 192.1.2.3
Hex bytes:     c0 01 02 03
IPv6 prefix:   2002:c001:0203::/48

For the illustrated 6to4-to-6to4 path, extracting the remote embedded IPv4 address identifies the outer tunnel destination. Both end hosts communicate using IPv6; 6to4 is not a translator for an IPv4-only server. Reaching native IPv6 networks involves relay behavior beyond this basic example.

The slides list GRE, direct IPv6-in-IPv4 (IPv4 Protocol 41), manual/automatic tunnels, 6over4, tunnel brokers, ISATAP and Teredo. Treat this list as historical mechanism context, not a claim that every form of tunneling or every tunnel broker is obsolete. Direct IPv4-in-IPv6 instead uses IPv6 Next Header 4; do not reverse those identifiers.

Lecture 03a - IPv4 to IPv6 Transition, PDF pages 4-23. Packet sketches, endpoint-versus-road analogy and qualifications are added explanation.