---
name: ipv6-app-testing
description: >
  Use when designing or reviewing IPv6 test plans, CI matrices, dual-stack or
  IPv6-only readiness gates, NAT64 scenarios, or claiming an app works without
  IPv4. Aligns tests with v6ops app-testing base scenarios and ipv6-only
  terminology (IPv6-Only, IPv6-Mostly, IPv6-Only-Strict).
---

# IPv6 application testing

## Terminology (scope matters)

Use terms from [draft-ietf-v6ops-ipv6-only](https://datatracker.ietf.org/doc/draft-ietf-v6ops-ipv6-only/) with an explicit **scope** (host, VLAN, access link, API, data plane, etc.):

| Term | Meaning (in a given scope) |
| --- | --- |
| **IPv4-Only** | Only IPv4 is native |
| **Dual-Stack** | Both IPv4 and IPv6 are native |
| **IPv6-Only** | Only IPv6 is native; IPv4 may still be carried over IPv6 (IPv4aaS / NAT64 / encapsulation) |
| **IPv6-Mostly** | Dual-Stack-like network with NAT64 + DHCPv4 Option 108 so capable endpoints can act IPv6-Only |
| **IPv6-Only-Strict** | Only IPv6 native **and** no IPv4 transported (no NAT64/encapsulation to IPv4) |

Do not say “IPv6-only” without saying whether NAT64/IPv4aaS is in play. Prefer **IPv6-Only-Strict** when you mean no path to IPv4 at all.

## Base connectivity scenarios to verify

From [draft-ietf-v6ops-ipv6-app-testing](https://datatracker.ietf.org/doc/draft-ietf-v6ops-ipv6-app-testing/), functional correctness should hold across:

1. **IPv4-only**
2. **Dual-stack**
3. **IPv6-only with NAT64** (IPv6 native; IPv4 destinations via NAT64/CLAT/DNS64 or similar)
4. **IPv6-only-strict** (no connectivity to relevant IPv4 endpoints)

Do not invent a separate “IPv6 test suite.” Re-run existing functional/integration/e2e tests under these connectivity scenarios. When IP addresses are **data**, extend fixtures to IPv4 and IPv6.

### Minimum client/server combinations (base)

Unless deployment makes them irrelevant, validate at least:

- Dual-stack client ↔ IPv4-only server
- Dual-stack client ↔ IPv6-only-strict server
- Dual-stack server ↔ IPv4-only client
- Dual-stack server ↔ IPv6-only with NAT64 client
- Dual-stack server ↔ IPv6-only-strict client

Also cover **lifecycle** surfaces: install/config, UI/API, management/monitoring, updates — not only the happy-path data plane.

## Practical setup when the lab is limited

- Prefer an **IPv6-only-strict client** (disable IPv4; block NAT64 WKP / DNS64 / CLAT / VPNs that reintroduce IPv4).
- If that is infeasible: AAAA-only DNS name to an otherwise dual-stack server, or client/server/network tracing to prove IPv6 is used for all relevant flows.
- Proxies (HTTP CONNECT, SOCKS, MASQUE, TURN): test address-family conversion across the proxy.

## Gotchas (common failures)

- IPv6 **feature gates** left off in a product that “supports IPv6.”
- Management/control planes still IPv4-only while data plane is dual-stack.
- Destination selection quirks (Java prefer-IPv4; first-address-only; custom resolvers like NGINX ignoring stack availability): see `ipv6-runtime-config`, `ipv6-name-resolution`, `ipv6-destination-selection`.
- Listen IPv4-only (`ipv6-localhost-bind`).
- Input validation / rendering assuming dotted-decimal or `2000::/3` only; include GUA, ULA, NAT64 WKP, link-local+zone (`ipv6-address-storage`).
- Connectivity pre-checks to IPv4-only “well-known” endpoints lying in IPv6-only networks.
- Allow/deny lists that lack IPv6 entries when clients suddenly prefer AAAA.
- Middleboxes that break TLS or paths on IPv6 only.

## Sibling skills

- `ipv6-ready-coding`
- `ipv6-code-review`
- `ipv6-name-resolution`
- `ipv6-localhost-bind`
- `ipv6-address-storage`

## Source

- https://datatracker.ietf.org/doc/draft-ietf-v6ops-ipv6-app-testing/
- https://datatracker.ietf.org/doc/draft-ietf-v6ops-ipv6-only/
- Hub: https://www.peachymango.org/ipv6
- Related deployment draft: https://datatracker.ietf.org/doc/draft-martin-deploying-ipv6-data-center/
