Many providers build their networks with IPv6 only. The devices at home and many websites still speak IPv4, though. Dual-Stack Lite still gets IPv4 to its destination without the customer needing a public IPv4 address of their own.
How it works
Station
Task
PC at home
speaks IPv4 as always (private, e.g. 192.168.1.10)
Home router (B4)
wraps every IPv4 packet in an IPv6 packet (next header 4) and sends it to the AFTR
Provider (AFTR)
unwraps it, translates the source address with CGNAT and sends the IPv4 packet to the internet
IPv6 traffic on the other hand goes directly, without tunnel and without NAT.
Consequences
The home router no longer does NAT itself; the translation happens at the provider. That is why port forwarding over IPv4 does not work: anyone who wants to reach a device at home from outside needs IPv6. In the packet list you see the IPv6 header outside and the IPv4 packet inside.
How to do it in leyoNET
The same text as in the app’s help (F1 key).
DS-Lite
DS-Lite (Dual-Stack Lite, RFC 6333) carries IPv4 across a provider network that only speaks IPv6. Many cable and fibre connections work this way.
The internet box (B4) only has an IPv6 address on its WAN. It puts IPv4 from the home network unchanged into an IPv6 packet (next header 4) and sends it to the provider's AFTR. It does no NAT itself.
The AFTR unpacks the IPv4 packet and translates the private source address by CGNAT to a public address shared by many customers. Replies take the reverse path back through the tunnel.
That is why you cannot set up IPv4 port forwarding with DS-Lite: the public IPv4 address does not belong to the customer. Over IPv6, however, the devices can be reached directly.
Setting it up: project on v4 + v6; on the internet box the WAN IPv6 address and, under DS-Lite, the address of the AFTR; at the provider “Act as AFTR” and a CGNAT address. In the packet list, the filter dslite shows the tunnelled packets.
See an example
DS-Lite: IPv4 in an IPv6 tunnel
The provider only runs IPv6. The internet box wraps IPv4 in IPv6, the provider's AFTR translates by CGNAT.
The notebook opens a website that can only be reached over IPv4. Filter «dslite» shows the tunnelled packets.
★★★☆☆IPv6 BC 7: Wrap-up – dual stack and outlook· 6 goals · Worksheet (German)
In leyoNET under Tools → Exercise catalogue. Every exercise checks itself.
What leyoNET simplifies
Protocol
Layer
Simplification in the simulation
DS-Lite
3
IPv4 in IPv6 (next header 4) from the home router (B4) to the AFTR, CGNAT there; tunnel addresses 192.0.0.1/192.0.0.2 internal only
Standards
RFC 6333 – Dual-Stack Lite Broadband Deployments Following IPv4 Exhaustion
RFC 2473 – Generic Packet Tunneling in IPv6 Specification
Read on
IPv6128-bit addresses, prefixes, link-local, neighbor discovery instead of ARP and automatic addresses with SLAAC.
NAT and PATBringing private networks to the internet: port address translation (PAT), port forwarding, static SNAT and DNAT, 1:1 NAT and CGNAT at the provider.
Home router (CPE)The provider’s device for the home: modem, router with NAT, DHCP server and small switch in one box.