6 Commits
Author SHA1 Message Date
ariska e66a06b6e2 merge upstream 2026-10-20 08:13:47 +07:00
ariska ae1ce9673a initial-quantum 2026-10-15 11:29:40 +07:00
proitlab bb1e5c20f1 docs: add two-host PQ manual runbook; correct HELLO/PQ_KEYS facts
build.yml / build_ubuntu (push) Canceled after 0s
build.yml / build_macos (push) Canceled after 0s
build.yml / build_windows (push) Canceled after 0s
Lint / clang-format (push) Canceled after 0s
validate.yml / build_ubuntu (push) Canceled after 0s
Add docs/two-host-pq-manual-test.md — the human-redo procedure for the
two-machine post-quantum test over real NICs, real TUN/TAP and systemd.
Every command was executed against both live hosts before being written
down; testing caught three errors in the draft (identity address
extraction, swapped ping directions, and the HELLO sizing claim below).

Correct docs/pqc-test-scenario.md, which still described the pre-fix
design: PQ material does NOT ride in HELLO. Peer.cpp:527 serializes only
the classic identity projection, so a hybrid HELLO is 185 B / 1 fragment
in both modes and the ML-KEM ciphertext arrives in a separate
VERB_PQ_KEYS frame. That is precisely why the controller compares classic
material (B6) and why a 6415 B identity would blow the fragment budget.
Confirmed on a live capture: 50 HELLOs with cap=1, 1 VERB_PQ_KEYS frame.

The 2.0.0 test matrix is kept but labelled historical, since its rationale
is still worth having.
2026-10-08 05:24:08 +00:00
ariska 813d3aa06e secure chat addon and stun 2026-07-02 09:12:57 +07:00
ariska a45fa67ed2 chat addon 2026-06-30 13:44:11 +07:00
ariska d604c01114 chat 2026-06-30 13:10:35 +07:00
2 changed files with 478 additions and 16 deletions

No files matched your search

+28 -16
View File
@@ -18,15 +18,17 @@ absent/unknown `settings.pqcMode` resolves to classic (`ZT_PQC_MODE_CLASSIC`),
so an upgraded type-0 install boots unchanged and keeps its address — see the
`B2` fix in `SPEC.md` §B. Verified live on a 2.0.0 build: no config → 141 B
type-0 identity; `"hybrid"` → 6415 B type-1 identity; classic identity +
`"hybrid"` refuses to start. Re-run §4/§5 to confirm the 1088 B ML-KEM
ciphertext and a hybrid `_key` on the wire. The table below is the original
2.0.0 diagnosis, kept for the rationale and the exact evidence.
`"hybrid"` refuses to start. The 1088 B ML-KEM ciphertext rides in
`VERB_PQ_KEYS`, **not** in HELLO — HELLO stays 185 B / 1 fragment in both modes
because it carries only the classic identity projection. For the current
end-to-end procedure see `two-host-pq-manual-test.md`. The table below is the
original 2.0.0 diagnosis, kept for the rationale and the exact evidence.
| # | Gap | Evidence | Symptom in the lab |
|---|---|---|---|
| G1 | Daemon never generates a type-1 identity. `Node.cpp:96` calls `RR->identity.generate()` with default `pq=false`, and `applyLocalConfig()` (which sets the mode) runs *after* `new Node(...)` (`OneService.cpp:1058` then `1062`). | **Fixed (T24 + B2):** `OneService` reads `local.conf` before `new Node` and passes `pqcMode`; `Identity::generate` takes it. Absent config is now classic, not hybrid. `node/Node.cpp:96`, `node/Identity.cpp:84-123`, `service/OneService.cpp` `_pqcModeFromLocalConfig`. | `"pqcMode":"hybrid"` now writes type byte `1`; measured `identity.public` = 6415 B vs 141 B classic (the old doc estimate of ~4230 B was the research-doc approximation) |
| G2 | Wire key agreement never used PQ. `myIdentity.agree(peerIdentity,…)` is plain C25519 (`Identity.hpp:343-350`). | **Fixed (B1):** production now calls `agreeHybridEncaps`/`agreeHybridDecaps` — `node/Peer.cpp:113` (encaps on first capability sighting) and `node/IncomingPacket.cpp:538,700` (decaps on HELLO and OK(HELLO)); `setHybridSessionKey` replaces the classical key. | Session key is hybrid when both peers advertise the capability; a vanilla peer still falls back to classical |
| G3 | Capability was advertised but never consumed: `Peer::_key` was derived in the constructor before any HELLO arrived, so the hybrid path was dead. | **Fixed (B1):** `Peer::hybridEligible()` now gates `_hybridCapable` (set in `setRemoteVersion`), the KEM ct rides in HELLO/OK(HELLO), and `setHybridSessionKey()` replaces the session key. `Peer::pqcCapability()` was removed as redundant. | Capture now shows a 1088 B ct after the capability bit |
| G3 | Capability was advertised but never consumed: `Peer::_key` was derived in the constructor before any HELLO arrived, so the hybrid path was dead. | **Fixed (B1):** `Peer::hybridEligible()` now gates `_hybridCapable` (set in `setRemoteVersion`), and `setHybridSessionKey` replaces the session key. `Peer::pqcCapability()` was removed as redundant. The KEM ct does **not** ride in HELLO — it was later moved to `VERB_PQ_KEYS` (`Peer.cpp:582`). | Capture shows `zt.hello.cap=1` plus a `VERB_PQ_KEYS` frame carrying the 1088 B ct |
Consequence: **the only end-to-end proof so far is `backone-selftest`** (ML-KEM KAT,
ML-DSA KAT, hybrid KDF vector, identity-v2 roundtrip, COM double-sign, HELLO
@@ -42,7 +44,9 @@ make selftest && ./backone-selftest # exit 0
[PQ] ML-DSA KAT (verify fixed pk/msg/sig; tamper fails)... PASS
[PQ] Hybrid KDF known-answer vector... PASS
[PQ] Interop hybrid<->vanilla matrix... PASS
size classic=137B/1 frag, PQC=3273B/3 frag (max 7)
size classic=137B/1 frag, PQC=137B/1 frag (max 7)
VERB_PQ_KEYS=4253B/3 frag
PQ mode adds no bytes to HELLO; PQ_KEYS fragments within budget
```
`backone-cli info -j` → `"version":"2.0.0"`. Lab daemons answered on
@@ -244,6 +248,13 @@ bug — see §4.5 trigger.
### 4.4 Test matrix
> **Historical — this table describes the 2.0.0 design and is kept for
> rationale.** It predicted a large, fragmented PQ HELLO. That is **not** what
> ships: the implemented design moved PQ material out of HELLO into
> `VERB_PQ_KEYS` precisely so HELLO stays small. Confirmed 2026-10-07 on a live
> hybrid↔hybrid link — `HELLO type=0 … cap=1`, 185 B, single fragment, plus a
> separate 1432 B `VERB_PQ_KEYS` frame. For current behavior and the correct
> assertions see `two-host-pq-manual-test.md` §6–§7.
| # | n1 mode | n2 mode | Expect today (2.0.0) | Expect after §7 fix | Observable |
|---|---|---|---|---|---|
| M1 | off | off | HELLO 137 B / 1 frag, cap=0, session classic | same | `zt.hello.cap==0`, 1 frag |
@@ -257,10 +268,9 @@ bug — see §4.5 trigger.
"after §7 fix" column is the live one: M3/M4 put large ML-KEM datagrams on
the wire (68 / 90 frames > 1200 B), no fragment failure observed.
M4 is the interesting negative: ML-KEM-1024 ct = 1568 B and ML-DSA-87 pk = 2592 B
(`[INFERENCE]` on exact liboqs sizes — confirm against `node/PQHybrid.hpp`
constants) push a `pqconly` HELLO to ~8 KiB, past the reassembly ceiling. Assert
the graceful failure, whichever behavior the fix chooses.
The M4 concern no longer applies: because PQ material moved to `VERB_PQ_KEYS`,
neither `hybrid` nor `pqconly` inflates HELLO. `pqconly` is a policy mode
(capability required, no classical fallback), not a larger packet.
### 4.5 Negative — tamper the handshake
@@ -365,9 +375,9 @@ would produce a *different observable*:
| Observable | Classical | Hybrid | Decidable? |
|---|---|---|---|
| HELLO size / fragment count | 137 B / 1 | 3273 B / 3 | yes |
| HELLO size / fragment count | 137 B / 1 | 137 B / 1 — **unchanged** | no — HELLO carries the classic projection only |
| HELLO capability bit | 0 | 1 | yes |
| ML-KEM ciphertext bytes on wire | none | 1088 B | yes, **only after §7** |
| `VERB_PQ_KEYS` frames on wire | none | present, carrying the 1088 B ct | yes |
| Identity type byte | 0 | 1 | yes |
| COM type byte | 1 | 2 | yes |
| `_key` value | n/a off-wire | n/a off-wire | **no** — must be inferred from the above |
@@ -431,11 +441,13 @@ registration that ignored the lab port.)
tshark -X lua_script:tools/zt-dissector.lua -r /tmp/pqc.pcap -Y 'zt.verb == 1'
```
Verified against a synthetic capture (tshark 4.6.4): classic HELLO decodes as
`type=0`, 39 B identity; a fragmented hybrid HELLO's head fragment decodes as
`type=1`, 3175 B identity, `zt.hello.cap == 1`, and its tail frames as
`BackOne fragment n/3`. Run tshark as your normal user — as superuser Wireshark
silently skips user Lua scripts (see §4.3).
Verified 2026-10-07 against a **live** hybrid↔hybrid capture (tshark 4.6.4):
`zt` matches 167 frames, `zt.verb == 1` matches 50 HELLOs, `zt.hello.cap`
matches 50, and `zt.verb == 23` (`VERB_PQ_KEYS`) matches 1. A hybrid HELLO
decodes as `ZT HELLO type=0 <addr> cap=1` — 185 B, single fragment — because
HELLO carries only the classic projection; the PQ keys arrive in a separate
1432 B `VERB_PQ_KEYS` frame. Run tshark as your normal user — as superuser
Wireshark silently skips user Lua scripts (see §4.3).
---
+450
View File
@@ -0,0 +1,450 @@
# Two-Host Post-Quantum Test — Manual Runbook
Human-redo of the two-machine BackOne PQ test. For *this* host + `192.168.122.85`
over real NICs, real TUN/TAP, and systemd. The hermetic netns lab lives in
[`pqc-test-scenario.md`](./pqc-test-scenario.md) §4–§5 (`tools/pqc-lab.sh`) and is
**not** repeated here — it proves the handshake on synthetic interfaces; this
doc proves it end to end on real machines, and adds the **membership** half that
the netns lab never exercised.
Verified live 2026-10-07 on BackOne 2.0.2. Every command below was run as written.
---
## 0. Roles and the one rule that makes this work
| Host | Address | Role | `local.conf` settings |
|---|---|---|---|
| **HOST1** | this machine (192.168.122.x) | **controller** — owns the network | `{"settings":{"pqcMode":"hybrid"}}` |
| **HOST2** | `192.168.122.85` | **member** — joins HOST1's network | `{"settings":{"pqcMode":"hybrid","disableController":true}}` |
**The rule: exactly one host runs a controller.** Setting `disableController: true`
on HOST2 is not optional. Without it, both nodes answer their own
`NETWORK_CONFIG_REQUEST`s and self-sign a local config, so they never contact each
other and you get `ACCESS_DENIED` with an empty peer list — a symptom
*indistinguishable* from the B6 bug. See §7.
`disableController` defaults to **false**, so a fresh install still runs a
controller. That default is why this step is easy to miss.
---
## 1. Prerequisites
Both hosts need:
- BackOne built at **2.0.2 or later** (the three fixes in §7 are required).
- `curl`, `python3` (for the JSON checks), `ping`.
- ROOT: `tshark` for dissection, `tcpdump` for capture.
- Network: HOST1 and HOST2 must reach each other on **UDP 9993** directly.
Verify first — if UDP is blocked, you will be debugging a relay path instead
of PQ:
```sh
# run on HOST1, HOST2's IP substituted
nc -zu -w2 192.168.122.85 9993 # or: ping -c2 192.168.122.85
```
Confirm the UDP path exists before starting. §4's absolute gate requires a
`DIRECT` path.
---
## 2. Step 0 — confirm which binary each host runs
Do this **before** anything else. A repo build and a root-installed
`/usr/sbin/backone` are different binaries, and "the fix didn't work" is almost
always this mismatch.
```sh
# on each host
/usr/sbin/backone -v # installed package build
./backone -v # repo build, if run from a source tree
sudo -n ls -la /var/lib/backone/backone # symlink → which binary the service uses
systemctl status backone --no-pager | head -20
```
Record for each host: version string, and whether the service runs the package
binary or a repo build. The live test used a **repo build** deployed over the
system install.
> If you change the binary, `systemctl restart backone`. A stale running process
> keeps the old code in memory regardless of what is on disk.
---
## 3. Reset state (destructive, per run)
This wipes **identity** and **network membership** on both hosts:
```sh
# on EACH host
sudo systemctl stop backone
sudo rm -f /var/lib/backone/identity.secret \
/var/lib/backone/identity.public \
/var/lib/backone/identity.public.bak \
/var/lib/backone/identity.secret.bak
sudo rm -rf /var/lib/backone/networks.d
sudo systemctl start backone
```
**`controller.db` is deliberately kept.** It holds the network definition and the
member roster; wiping it would throw away the network you are about to test.
**But kept ≠ untouched.** After an identity wipe, every member row still carries
the *old* address. The controller compares the new identity against that stale
row and denies access — the B6 failure mode. §5 re-enrolls every member, which
is what clears the stale field. Skipping re-enrollment is the single most
common reason a redo fails.
> BackOne regenerates a fresh identity on next start. Its address (and identity
> size) depends on `pqcMode` — see §4.
---
## 4. Configure the mode and verify the identity
`local.conf` lives at `/var/lib/backone/local.conf`. Write it **before** starting
the daemon — the mode is read at startup.
**HOST1 (controller):**
```json
{
"settings": {
"pqcMode": "hybrid"
}
}
```
**HOST2 (member):**
```json
{
"settings": {
"pqcMode": "hybrid",
"disableController": true
}
}
```
Restart and verify the identity type — this is the first and cheapest check:
```sh
sudo systemctl restart backone
stat -c '%s' /var/lib/backone/identity.public
```
| `pqcMode` | identity size | first byte |
|---|---|---|
| absent / `off` | **141 B** | `0` (classic) |
| `hybrid` | **6415 B** | `1` (type 1, PQ) |
| `pqconly` | 6415 B | `1` |
```sh
od -An -tu1 -N1 /var/lib/backone/identity.public # expect 1 under hybrid
/usr/sbin/backone-idtool validate /var/lib/backone/identity.public
```
If a classic 141 B identity is present while `pqcMode: hybrid` is configured, the
daemon **refuses to start** by design (classic↔PQ mismatch). Wipe per §3 and
restart.
---
## 5. Create the network and enroll HOST2 (on HOST1)
HOST1 is the controller, so all controller API calls happen here.
```sh
A=$(sudo -n cat /var/lib/backone/authtoken.secret)
```
### 5a. Create the network
```sh
curl -s -X POST -H "X-ZT1-Auth: $A" -H 'Content-Type: application/json' \
-d '{"name":"pq-manual","private":true,"ipAssignmentPools":[{"ipRangeStart":"10.97.0.1","ipRangeEnd":"10.97.0.254"}]}' \
http://127.0.0.1:9993/controller/network | python3 -m json.tool
```
Write down the `id` (the nwid). It is used in every call below.
### 5b. Authorize HOST2's identity
Read HOST2's address over SSH — it changed when you wiped the identity in §3.
`identity.public` is a **colon-delimited text file**, field 1 being the address
(`address:revision:flags:privkey:pubkey...`), not a binary blob. Extract with
`cut`, never with a byte offset:
```sh
HOST2_ADDR=$(ssh 192.168.122.85 "cut -d: -f1 /var/lib/backone/identity.public")
echo "$HOST2_ADDR" # 10 hex chars
```
Cross-check against the authoritative source, which derives the address from the
private key rather than reading the cached public file:
```sh
ssh 192.168.122.85 "sudo -n /usr/sbin/backone-idtool getpublic /var/lib/backone/identity.secret | cut -d: -f1"
```
Then authorize it. `authorized: true` is the field the API reads
(`EmbeddedNetworkController.cpp:1175`):
```sh
NWID=<paste-nwid-here>
curl -s -X POST -H "X-ZT1-Auth: $A" -H 'Content-Type: application/json' \
-d '{"authorized":true}' \
http://127.0.0.1:9993/controller/network/$NWID/member/$HOST2_ADDR
```
Repeat §5b for **every** member you wiped in §3 — including HOST2 in the
classical run below.
### 5c. Have HOST2 join
```sh
ssh 192.168.122.85 "/usr/sbin/backone-cli -p9993 -D/var/lib/backone join $NWID"
```
Expected: `200 join OK` (again — the leading number is an HTTP status, not a
count).
---
## 6. Assertions
Two layers, both required. §6.1 is the pass/fail gate; §6.2 is what actually
proves PQ.
### 6.1 Absolute gate — does the network work at all?
```sh
A=$(sudo -n cat /var/lib/backone/authtoken.secret)
curl -s -m 8 -H "X-ZT1-Auth: $A" http://127.0.0.1:9993/network/$NWID \
| python3 -c "import json,sys; d=json.load(sys.stdin); print('status:',d.get('status'),'peers:',len(d.get('peers',[])))"
```
| Observable | Required |
|---|---|
| `status` | `OK` — **not** `ACCESS_DENIED` |
| `peers` | non-empty |
| peer role / path | `LEAF` / `DIRECT`, address `192.168.122.85/9993` |
```sh
/usr/sbin/backone-cli -p9993 -D/var/lib/backone peers
```
> The first line reads `200 peers`. That is the **HTTP status code**, not a peer
> count — a very common misreading. The real table is printed beneath it.
Data plane, both directions. Read each host's assigned address first — the IPs
below are from the verified 2.0.2 run, and a re-created network assigns new ones:
```sh
# on HOST1 (assigned 10.97.0.13) → ping HOST2 (assigned 10.97.0.52)
ping -c 5 -W 3 10.97.0.52
# on HOST2 → ping HOST1
ssh 192.168.122.85 'ping -c 5 -W 3 10.97.0.13'
```
Both must report **0% packet loss**. Do not assume the addresses — query them:
```sh
A=$(sudo -n cat /var/lib/backone/authtoken.secret)
curl -s -H "X-ZT1-Auth: $A" http://127.0.0.1:9993/network/$NWID \
| python3 -c "import json,sys; d=json.load(sys.stdin); print(d['id'], d['status'], d.get('assignedAddresses'))"
```
### 6.2 Comparative gate — is PQ genuinely active?
Run the same checks in both modes and compare. An absolute check alone proves
nothing about PQ: `status: OK` and `0% loss` pass identically on a build with all
PQ code deleted.
```sh
# per peer, on each host
curl -s -m 8 -H "X-ZT1-Auth: $A" http://127.0.0.1:9993/peer | python3 -c "
import json,sys
for p in json.load(sys.stdin):
if p.get('role') != 'PLANET':
print(p['address'], 'capable=', p.get('pqcCapable'), 'hybrid=', p.get('pqcHybridActive'))"
```
| Observable | classical (`off`) | hybrid — **must differ** |
|---|---|---|
| `identity.public` size | 141 B | **6415 B** |
| identity type byte | `0` | **`1`** |
| `pqcCapable` | `false` | **`true`** |
| `pqcHybridActive` | `false` | **`true`** |
| `zt.hello.cap` | 0 | **1** |
| `zt.hello.idtype` in HELLO | `0` | **`0` — see note** |
| `VERB_PQ_KEYS` frames on wire | absent | **present** |
| HELLO size / fragments | 185 B / 1 | **185 B / 1 — unchanged** |
> **HELLO does not grow in PQ mode, and that is correct.** HELLO carries only the
> *classic* projection of the identity (`Peer.cpp:527` calls
> `Identity::serializeClassic`), deliberately: a type-1 identity is 6415 B and
> would blow the fragment budget, which is also why the controller must compare
> classic material (the B6 fix). The capability bit in the HELLO revision field
> and the PQ keys in `VERB_PQ_KEYS` are what signal hybrid. Do **not** expect a
> large or fragmented HELLO — if you see one, something else is wrong.
>
> The *identity file* is 6415 B because it holds the full type-1 record
> (ML-KEM-768 + ML-DSA-65 public keys); the *HELLO packet* is not.
---
## 7. Capture and dissection
Capture on **HOST1**, `udp port 9993`:
```sh
sudo tcpdump -i any -s 0 -w /tmp/pq.pcap 'udp port 9993' &
CAP=$!
```
Reproduce the handshake (restart HOST2's service to force a fresh HELLO), then:
```sh
kill $CAP
```
Dissect with the repo dissector (`tools/zt-dissector.lua`):
```sh
tshark -X lua_script:tools/zt-dissector.lua -r /tmp/pq.pcap \
-Y 'zt.verb == 1' # VERB_HELLO (Packet.hpp:617)
```
| Filter | Shows |
|---|---|
| `zt` | any BackOne frame |
| `zt.verb == 1` | HELLO only (`Packet.hpp:617`) |
| `zt.hello.cap` | capability bit — `0` classical, `1` hybrid |
| `zt.hello.idtype` | identity type **in HELLO** — `0` even in hybrid (classic projection only) |
| `zt.hello.idsize` | serialized classic identity size (39 B) |
| `zt.frag` / `zt.fragno` / `zt.fragtot` | fragment header — only for large frames |
| `zt.verb == 23` | `VERB_PQ_KEYS` (`0x17`), carries the PQ keys + 1088 B ML-KEM ct |
**Verified live 2026-10-07** on a hybrid↔hybrid link:
```
ZT HELLO type=0 DBFA939D58 cap=1 # 185 B, single fragment
ZT ... Len=1432 # VERB_PQ_KEYS, well over one MTU
```
Expect `cap=1` on HELLO **and** at least one `VERB_PQ_KEYS` frame. The
capability bit alone proves only that the peer *advertises* support; the
`VERB_PQ_KEYS` frame is what actually carries the material, and a missing one is
the signature of bug B7.
**Run tshark as your normal user, not root.** As superuser, Wireshark silently
skips user Lua scripts and the dissector appears to be broken. If the pcap lives
under a path the profile cannot read, copy it somewhere readable.
---
## 8. Troubleshooting — the three failure modes
All three are control-plane defects, none are crypto failures. In every case the
tell is `status: ACCESS_DENIED`, `peers: []`, and 100% multicast loss *on a
healthy direct path*.
### 8.1 B6 — controller compares identities the wire never carries
`status: ACCESS_DENIED`, no peer ever appears. Cause: the controller compared a
stored type-1 identity against the classic projection HELLO actually transports,
so they never matched. Fixed in 2.0.2 (`sameClassicIdentity()`).
**Check:** does HOST1's `controller.db` hold a member row whose address differs
from the address HOST2 presents today? Re-run §5b.
```sh
sudo -n python3 -m json.tool /var/lib/backone/controller.db | grep -A3 members
```
### 8.2 B7 — peer's PQ identity never completed
Status stays deferred; credentials never arrive. Cause: received PQ keys were
cached for crypto only and never written into the peer's `Identity`, so a type-2
membership double-signature could never verify. Fixed in 2.0.2.
**Check:** `pqcCapable: true` but `pqcHybridActive: false` and no peer. Confirm
you are on ≥ 2.0.2 (`backone -v`).
### 8.3 B8 — both nodes ran their own controller
`status: ACCESS_DENIED` **and** each host has its own
`/var/lib/backone/networks.d/<nwid>.conf` containing `id=<its own address>`.
Cause: no opt-out existed, so the member answered its own config requests and
signed its own config, never contacting the controller that owned the network.
**Fix:** set `disableController: true` on HOST2 (§0) and restart. Delete
HOST2's self-signed `networks.d/<nwid>.conf`, re-join, re-run §5b.
> This is why §0 pins the roles. If both hosts have a `networks.d/<nwid>.conf`,
> you are here regardless of what `status` says.
---
## 9. Running the classical baseline
Same procedure, mode flipped — needed to populate the right-hand column of §6.2.
1. §3 wipe **both** hosts.
2. HOST1 `local.conf`: `{"settings":{"pqcMode":"off"}}` (or omit `pqcMode`
entirely — absent means classic).
3. HOST2 `local.conf`: `{"settings":{"pqcMode":"off","disableController":true}}`.
4. Restart both; confirm `identity.public` is **141 B** and type byte `0`.
5. §5 create a **new** network, authorize HOST2, join.
6. §6.1 absolute gate — must still pass (classic is a supported mode).
7. §6.2 — record `pqcCapable`/`pqcHybridActive` as `false`, HELLO 1 fragment,
`zt.hello.cap == 0`.
Re-running §3 for the hybrid pass gives you a fresh type-1 identity and a new
network, which is exactly what the comparative table needs.
---
## 10. Quick reference
```sh
# HOST1 controller, HOST2 = 192.168.122.85
A=$(sudo -n cat /var/lib/backone/authtoken.secret)
N=<nwid>
# health
curl -s -H "X-ZT1-Auth: $A" http://127.0.0.1:9993/network/$N # status/peers
curl -s -H "X-ZT1-Auth: $A" http://127.0.0.1:9993/peer # pqc flags
sudo /usr/sbin/backone-cli -p9993 -D/var/lib/backone peers # path table
# membership (HOST1)
curl -s -X POST -H "X-ZT1-Auth: $A" -H 'Content-Type: application/json' \
-d '{"authorized":true}' http://127.0.0.1:9993/controller/network/$N/member/$ADDR
# capture + dissect (HOST1)
sudo tcpdump -i any -s 0 -w /tmp/pq.pcap 'udp port 9993'
tshark -X lua_script:tools/zt-dissector.lua -r /tmp/pq.pcap -Y 'zt.hello.cap'
```
**Cleanup when done:** `sudo systemctl stop backone` on both hosts. Test networks
and the shared lab subnet are left as you found them.
---
## Appendix — where each claim comes from
| Claim | Source |
|---|---|
| `disableController` semantics and default | `service/README.md:46`, `service/OneService.cpp:1454-1459` |
| member authorize route + `authorized` field | `controller/EmbeddedNetworkController.cpp:879`, `:1175` |
| network create fields | `controller/EmbeddedNetworkController.cpp:620-766` |
| `VERB_HELLO = 0x01`, `VERB_PQ_KEYS = 0x17` | `node/Packet.hpp:617`, `:1103` |
| `MLKEM768_CT_LEN = 1088` | `node/PQHybrid.hpp:29` |
| B6/B7/B8 root causes and fixes | `docs/pqc-test-scenario.md` §9 |
| netns lab, M1–M5 matrix, classification rule | `docs/pqc-test-scenario.md` §4–§7 |
| dissector fields (`zt.hello.cap`, `zt.frag`, …) | `tools/zt-dissector.lua` |