Wiki DE Start in the browser

Wiki › Protocols

DS-Lite

IPv4 through a provider’s IPv6-only network: the home router tunnels, the AFTR translates with CGNAT.

Layer
3 (Tunnel)
Standard
RFC 6333, RFC 2473
See an example
See demo

The problem

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

StationTask
PC at homespeaks 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

  • Demo “DS-Lite: IPv4 in an IPv6 tunnel” in leyoNETDemo “DS-Lite: IPv4 in an IPv6 tunnel” in leyoNET
    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.

    Watch live Project file

“Watch live” opens the network in leyoNET, the simulation runs in a loop. In the app you find it under File → Demo networks, with a step-by-step tour.

Practise

  • ★★★★☆ Set up DS-Lite · 1 goals · Worksheet (German)
  • ★★★☆☆ 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

ProtocolLayerSimplification in the simulation
DS-Lite3IPv4 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

Found a mistake or have an idea? Source of this page on GitHub.