fleet: IPv6 — is it in scope, and does it rescue the multi-site mesh behind CGNAT? #332

Closed
opened 2026-08-07 17:32:59 +00:00 by ben · 5 comments
Owner

IPv6 is absent from the codebase. Two incidental mentions repo-wide. CommunityRecords carries a single IP string with no AAAA (broker/internal/broker/broker.go:52-60); the reachability prober is v4-only; the CGNAT check is 100.64.0.0/10 alone (internal/reachability/prober.go:42).

Why this may matter more than it looks

A native IPv6 address is globally routable with no NAT: no port forwarding, no UPnP, no hole punching. And many CGNAT'd IPv4 connections carry native IPv6.

That does not rescue public web access — visitors on IPv4-only networks cannot reach a v6-only gateway, and a CGNAT'd line cannot serve v4. But it would rescue the mesh, which is the specific thing that makes a CGNAT gateway unworkable for a multi-site fleet: today a node at another site must dial the gateway's 51820/udp, and when it cannot, the fallback relay is coturn on the gateway (docs/architecture/03-fleet-topology.md:35,46) — equally unreachable. Node-to-gateway WireGuard over IPv6 needs neither.

So IPv6 partially reopens a question ADR 0026 treats as closed.

The counter-caution

NZ fixed-wireless and mobile carriers appear to lag on IPv6, and those are exactly the connection types most likely to be CGNAT'd — and most likely at a rural marae. The escape hatch may not exist where it is most needed. This needs real NZ ISP deployment data before it is scoped further; it is a research question before it is a build.

What a yes would touch

The record model (AAAA on CommunityRecords and the own-domain record set), the reachability prober, the CGNAT gate and its copy, acme-dns glue, and the mesh's addressing assumptions. Large enough that it should be decided deliberately rather than arrived at incidentally.

The ruling wanted

Is IPv6 in scope for v1 at all? If yes, is it dual-stack-only (v6 as a mesh path and a bonus, v4 still required for public access), or does a v6-only gateway become a supported posture with stated limits?

Note it does not remove the need for the address heartbeat — residential IPv6 delegated prefixes rotate too.

Background: docs/research/2026-08-07-home-gateway-reachability-scope.md §6.

**IPv6 is absent from the codebase.** Two incidental mentions repo-wide. `CommunityRecords` carries a single `IP` string with no AAAA (`broker/internal/broker/broker.go:52-60`); the reachability prober is v4-only; the CGNAT check is `100.64.0.0/10` alone (`internal/reachability/prober.go:42`). ## Why this may matter more than it looks A native IPv6 address is globally routable with no NAT: no port forwarding, no UPnP, no hole punching. And many CGNAT'd IPv4 connections carry native IPv6. That does **not** rescue public web access — visitors on IPv4-only networks cannot reach a v6-only gateway, and a CGNAT'd line cannot serve v4. But it would rescue **the mesh**, which is the specific thing that makes a CGNAT gateway unworkable for a multi-site fleet: today a node at another site must dial the gateway's 51820/udp, and when it cannot, the fallback relay is coturn *on the gateway* (`docs/architecture/03-fleet-topology.md:35,46`) — equally unreachable. Node-to-gateway WireGuard over IPv6 needs neither. So IPv6 partially reopens a question ADR 0026 treats as closed. ## The counter-caution NZ fixed-wireless and mobile carriers appear to lag on IPv6, and those are exactly the connection types most likely to be CGNAT'd — and most likely at a rural marae. The escape hatch may not exist where it is most needed. **This needs real NZ ISP deployment data before it is scoped further**; it is a research question before it is a build. ## What a yes would touch The record model (AAAA on `CommunityRecords` and the own-domain record set), the reachability prober, the CGNAT gate and its copy, acme-dns glue, and the mesh's addressing assumptions. Large enough that it should be decided deliberately rather than arrived at incidentally. ## The ruling wanted Is IPv6 in scope for v1 at all? If yes, is it dual-stack-only (v6 as a mesh path and a bonus, v4 still required for public access), or does a v6-only gateway become a supported posture with stated limits? Note it does not remove the need for the address heartbeat — residential IPv6 delegated prefixes rotate too. Background: `docs/research/2026-08-07-home-gateway-reachability-scope.md` §6.
Author
Owner

Ruled by Ben 2026-08-08 (decision sweep): research first. No build scoping until real NZ ISP IPv6/CGNAT deployment data is in hand — fixed-wireless, mobile and rural carriers especially, since those are the CGNAT-likely lines the escape hatch would need to exist on. Research is session work, not swarm → no-triage.

Ruled by Ben 2026-08-08 (decision sweep): **research first.** No build scoping until real NZ ISP IPv6/CGNAT deployment data is in hand — fixed-wireless, mobile and rural carriers especially, since those are the CGNAT-likely lines the escape hatch would need to exist on. Research is session work, not swarm → `no-triage`.
Author
Owner

Backlog walk (Ben, 2026-08-12): research first, per the ticket's own verdict. A pass on NZ ISP IPv6 deployment (APNIC per-AS measurements, ISP documentation, MBNZ) is underway; findings land as docs/research/2026-08-12-nz-ipv6-deployment.md and will be posted here. Ben rules scope after the data.

Backlog walk (Ben, 2026-08-12): research first, per the ticket's own verdict. A pass on NZ ISP IPv6 deployment (APNIC per-AS measurements, ISP documentation, MBNZ) is underway; findings land as `docs/research/2026-08-12-nz-ipv6-deployment.md` and will be posted here. Ben rules scope after the data.
Author
Owner

Research landed: docs/research/2026-08-12-nz-ipv6-deployment.md (commit 39d66bd) — APNIC per-AS measurements + ISP primary docs, all accessed 2026-08-12.

The short of it:

  • The counter-caution was right, and harsher than guessed. NZ is flat at ~33% IPv6-capable for four years. Spark — 30% of the country and a named Marae Digital Connectivity installer — measures 0.12%: no IPv6 on any product, including its CG-NAT Wireless Broadband. No NZ mobile carrier documents IPv6 on cellular. 10 of 11 measured rural WISPs sit under 1%; 7 of 8 measurable marae-programme installers ship none.
  • But the rural picture moved under the question. The Commerce Commission (2026-06-30) has Starlink as the LARGEST rural provider at 27% of rural connections — and Starlink NZ measures 77% IPv6-capable with a delegated /56, a real escape hatch from its own IPv4 CGNAT. Lightwire (rural Waikato/BoP WISP, itself a marae installer) measures 56% — the WISP zero is a choice, not a constraint.
  • The ruling the data supports: dual-stack-opportunistic, never v6-required. IPv6 as a bonus mesh path (materially helps Starlink/Lightwire sites; does nothing for Spark/FWA/most WISPs); the IPv4 relay path stays and must stop living on the gateway (#329 family); a v6-only gateway posture is unsupportable in NZ. The /56 rotates, so the address heartbeat (ADR 0136) is not retired.

§9 of the file lists what could not be established (notably: no NZ carrier publishes cellular IPv6 roadmaps). Awaiting Ben's scope ruling — the file's §10 is written as the decision brief.

**Research landed: `docs/research/2026-08-12-nz-ipv6-deployment.md` (commit `39d66bd`)** — APNIC per-AS measurements + ISP primary docs, all accessed 2026-08-12. The short of it: - **The counter-caution was right, and harsher than guessed.** NZ is flat at ~33% IPv6-capable for four years. **Spark — 30% of the country and a named Marae Digital Connectivity installer — measures 0.12%**: no IPv6 on any product, including its CG-NAT Wireless Broadband. No NZ mobile carrier documents IPv6 on cellular. 10 of 11 measured rural WISPs sit under 1%; 7 of 8 measurable marae-programme installers ship none. - **But the rural picture moved under the question.** The Commerce Commission (2026-06-30) has **Starlink as the LARGEST rural provider at 27% of rural connections — and Starlink NZ measures 77% IPv6-capable with a delegated /56**, a real escape hatch from its own IPv4 CGNAT. Lightwire (rural Waikato/BoP WISP, itself a marae installer) measures 56% — the WISP zero is a choice, not a constraint. - **The ruling the data supports: dual-stack-opportunistic, never v6-required.** IPv6 as a bonus mesh path (materially helps Starlink/Lightwire sites; does nothing for Spark/FWA/most WISPs); the IPv4 relay path stays and must stop living on the gateway (#329 family); a v6-only gateway posture is unsupportable in NZ. The /56 rotates, so the address heartbeat (ADR 0136) is not retired. §9 of the file lists what could not be established (notably: no NZ carrier publishes cellular IPv6 roadmaps). Awaiting Ben's scope ruling — the file's §10 is written as the decision brief.
Author
Owner

Ruled (Ben, 2026-08-12): dual-stack-opportunistic — recorded as ADR 0169 (docs/adr/0169-ipv6-is-dual-stack-opportunistic-never-required.md).

  • The mesh uses v6 when both ends have it (the Starlink/Lightwire win — no relay needed to escape their CGNAT).
  • IPv4 stays the required substrate: public access, the ADR 0026 CGNAT gate, and the relay path are v4; a v6-only gateway posture is unsupported in NZ.
  • The relay's off-gateway home is #329's question; the ADR 0136 address heartbeat covers rotating /56s unchanged.

This issue is now the arc seed carrying ADR 0169 as its contract — sliced when the multi-site/mesh arc opens (alongside #329). What a build touches is enumerated in the ADR's Consequences. Staying no-triage as an arc seed until that slicing.

**Ruled (Ben, 2026-08-12): dual-stack-opportunistic — recorded as ADR 0169** (`docs/adr/0169-ipv6-is-dual-stack-opportunistic-never-required.md`). - The mesh uses v6 when both ends have it (the Starlink/Lightwire win — no relay needed to escape their CGNAT). - IPv4 stays the required substrate: public access, the ADR 0026 CGNAT gate, and the relay path are v4; a v6-only gateway posture is unsupported in NZ. - The relay's off-gateway home is #329's question; the ADR 0136 address heartbeat covers rotating /56s unchanged. This issue is now the **arc seed** carrying ADR 0169 as its contract — sliced when the multi-site/mesh arc opens (alongside #329). What a build touches is enumerated in the ADR's Consequences. Staying `no-triage` as an arc seed until that slicing.
Author
Owner

Closed in the 2026-08-27 other-state sweep (Ben's ruling) — ruling fully recorded in ADR 0169 (dual-stack-opportunistic, 7a463a99); the arc it was to be sliced with (#329 → #543) opened and closed with Ben rejecting defer-to-IPv6 for the core case. Re-open as a fresh ticket if a multi-site arc revives it.

Closed in the 2026-08-27 `other`-state sweep (Ben's ruling) — ruling fully recorded in ADR 0169 (dual-stack-opportunistic, 7a463a99); the arc it was to be sliced with (#329 → #543) opened and closed with Ben rejecting defer-to-IPv6 for the core case. Re-open as a fresh ticket if a multi-site arc revives it.
ben closed this issue 2026-08-27 04:44:42 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#332
No description provided.