DS-Lite: IPv4 service over an IPv6 provider backbone

Dual-Stack Lite keeps IPv4 service at the customer edge while the provider transports it over IPv6.

  • CPE: Customer Premises Equipment, usually the home gateway.
  • B4: customer-side IPv4-in-IPv6 tunnel function.
  • AFTR: Address Family Transition Router, provider tunnel termination plus stateful NAT44.

Added packet walk:

Laptop: 192.168.1.20:50000 -> 203.0.113.10:443
B4:     [ IPv6 header to AFTR [ original IPv4 packet ] ]
AFTR:   remove outer header, then NAT44
Public: 198.51.100.7:62001 -> 203.0.113.10:443

The AFTR records the mapping and the customer context, including the tunnel endpoint, so identical private addresses at different homes can be distinguished. Replies are translated back and tunneled to the correct B4. The inner packet is IPv4 both before and after NAT; this is NAT44, not NAT64.

Native IPv6 traffic takes the native IPv6 path without the IPv4 tunnel/NAT44. DS-Lite reduces demand for dedicated public IPv4 addresses but centralizes NAT connection state and dependence at the provider. Ordinary customer-controlled inbound IPv4 hosting is more difficult without provider-supported mapping facilities.

The source compares this with NAT444: customer NAT44 followed by provider carrier-grade NAT44. Carrier-grade NAT also appears as CGN or LSN (Large Scale NAT). Provider shared space 100.64.0.0/10 is separate from RFC 1918 space. Multiple NAT layers complicate inbound sessions and peer-to-peer traversal; STUN/TURN are named as supporting mechanisms, not developed in detail.

A+P: divide a public address by ports

Address plus Port sharing gives each customer a public IPv4 address plus an exclusive external port allocation. Added simplified allocation:

CustomerPublic IPv4External ports
Alice198.51.100.710000-10999
Bob198.51.100.711000-11999

Alice’s home router translates 192.168.1.20:50000 into 198.51.100.7:10025. The website destination remains, for example, 203.0.113.10:443. The assigned range constrains Alice’s external source ports, not the website’s service port.

The customer router tunnels the translated IPv4 packet over IPv6. The provider gateway unwraps/forwards it. A reply to public port 10025 belongs to Alice; her router’s NAT state identifies the internal device.

TaskDS-LiteA+P model in source
Per-connection NAT stateAFTRCustomer router
Provider return selectionConnection mapping with customer contextAddress-and-port customer allocation

State moves to the edge rather than disappearing. Port allocations limit simultaneous mappings and available inbound service ports. The source mentions PCP or DHCPv6 provisioning; exact port negotiation behavior depends on the mechanism, not every A+P design.

Does router choice matter?

Yes. The provider chooses the architecture, and its customer gateway must implement the matching B4, A+P or MAP function. “Supports IPv6” alone does not guarantee compatibility. Firmware features, provisioning support and configuration matter more than brand.

Replacing provider gateway: own router must implement required transition.
Adding a router behind it: provider gateway may still handle transition.

The second arrangement’s requirements depend on routing/bridge configuration; a bridged modem does not perform the transition merely because it is provider-supplied. Vodafone was used hypothetically in the lesson, with no claim about a particular country, subscription or deployed mechanism. These are alternatives, not features that must all run together.

Lecture 03a - IPv4 to IPv6 Transition, PDF pages 25-34. Customer examples and replacement-versus-addition distinction are added teaching. Provider/customer roles were cross-checked against DS-Lite, RFC 6333 and MAP-E, RFC 7597.