Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
181eb49
docs: plan for rocm-ernic NICs in the VMs
randomizedcoder Nov 25, 2026
84b4251
test(nix): ernic-pin table test for the upstream rocm-ernic pin (red)
randomizedcoder Nov 25, 2026
f48e81c
build(nix): pin rocm-ernic to upstream ROCm develop by rev and narHash
randomizedcoder Nov 25, 2026
71398d5
test(nix): ernic-nics table test for NICs as data (red)
randomizedcoder Nov 25, 2026
0284190
feat(nix): nix/ernic/nics.nix, a VM's ionic NICs as data
randomizedcoder Nov 25, 2026
38683ac
test(nix): ernic-run-many table test with a fake server (red)
randomizedcoder Nov 25, 2026
d7fea49
feat(nix): ernic-run-many and the golden-uplink NIC profile
randomizedcoder Nov 25, 2026
ca8e175
test(nix): ernic-nics expects unmanaged NICs to be marked (red)
randomizedcoder Nov 25, 2026
a8ae11e
fix(nix): mark ernic NICs without a network unmanaged
randomizedcoder Nov 25, 2026
644da5f
test(golden): ROWs for an ionic uplink 1 (red)
randomizedcoder Nov 25, 2026
cd22f82
test(goldenrec): listener drops on the netem pair are lossy (red)
randomizedcoder Nov 25, 2026
ee2e2ce
fix(goldenrec): exempt listener drops on the netem pair
randomizedcoder Nov 25, 2026
40c2fc4
style(nix): nixfmt the ernic files
randomizedcoder Nov 25, 2026
10ab861
test(golden): loss_seen lists each bulk client's retransmits
randomizedcoder Nov 25, 2026
21dc5f3
feat(golden): ionic uplink from rocm-ernic in the capture VM
randomizedcoder Nov 25, 2026
87b3685
test(golden): ROWs for deterministic loss over ionic (red)
randomizedcoder Nov 25, 2026
9d0f2ff
test(nix): ernic NICs join no LLMNR or mDNS group (red)
randomizedcoder Nov 25, 2026
be0bcb1
fix(nix): no LLMNR or mDNS on ernic NICs
randomizedcoder Nov 25, 2026
d4396ce
feat(golden): deterministic loss over ionic in the capture VM
randomizedcoder Nov 25, 2026
a50bc2c
test(goldenrec): fault rows from the emulated NIC (red)
randomizedcoder Nov 25, 2026
be236db
feat(goldenrec): exempt the emulated NIC's fault rows like netem's
randomizedcoder Nov 25, 2026
006b964
fix(golden): quiet the ionic uplink, warm the loc path
randomizedcoder Nov 25, 2026
8293653
test(golden): recapture 7_3_1 with the ionic loss rows
randomizedcoder Nov 25, 2026
0ea1d08
docs: rocm-ernic NICs status, D1 decided, phase findings
randomizedcoder Nov 25, 2026
ac0ae83
refactor(goldenrec): row exemptions out of Diff (gocyclo)
randomizedcoder Nov 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- **Socket options on the traffic tools.** `tcp_client` and `tcp_server` take `-cong`, `-tos`, `-priority`, `-rcvbuf`, `-freebind`, `-transparent` and `-bindNoPort`, and `tcp_client` takes `-bulk`, `-close` and `-halfclose` (`tcp_server -holdEOF` holds the other end), so a test workload can give the collector sockets with a chosen congestion algorithm, TOS, class_id, window scale, sockopt bits and TCP state. The OCI image passes `TCP_CLIENT_ARGS` / `TCP_SERVER_ARGS` through ([integration testing](docs/integration-testing.md#tcp_server--tcp_client--socket-population)).
- **Golden records cover the fleet's columns.** The capture workload adds four netns pairs: one connection per congestion algorithm the kernel offers (IPv4 and IPv6; every `tcp_*` module is loaded), bulk transfers over netem loss and reordering, TOS/traffic class, priority, the sockopt bits and three window scales, and TIME_WAIT, SYN_SENT, FIN_WAIT2 and CLOSE_WAIT sockets in exact numbers. Three MTUs give three pmtu/MSS pairs. `coverage.json` requires the per-algorithm info structs, the loss counters, the new states and values, and every algorithm in the capture's `cong_available`. `ROW` lines on the VM console check each pair ([Golden records](nix/README.md#golden-records)).
- **Golden records cover NICs, locality and ASN.** The capture VM gains a second uplink (an emulated e1000e) and a 10000 Mb/s virtio NIC, and the collector enriches locality and ASN against an artifact built from documentation prefixes. A netns trio gives one connection per locality (self, subnet, remote over IPv4 and IPv6). `coverage.json` requires the uplink 2 columns, the NIC speeds, localities 1–3, the ASN, owner and egress columns, and the bound interface name.
- **Golden records on an emulated ionic NIC.** The capture VM's uplink 1 is now an AMD Pensando ionic NIC emulated by [rocm-ernic](https://github.com/ROCm/rocm-ernic) over vfio-user (PCI 1dd8:1002, 100000 Mb/s, firmware from an xtcp2 NIC profile); e1000e stays uplink 2 and virtio is kept for management. The `rocm-ernic` input now pins upstream `ROCm/rocm-ernic` by rev and narHash, recorded in `nix/upstream-pins.json` and checked by `checks.ernic-pin` and `checks.upstream-pins`. `nix/ernic/` describes NICs as data (`checks.ernic-nics`) and runs one server per NIC with `ernic-run-many` (`checks.ernic-run-many`). A second ionic NIC in netns `golden-ernic-b` carries one 4 MiB transfer per bulk algorithm with the emulator's deterministic drops (every 50th frame); `ROW` lines check the drop count exactly, and `xtcp2-golden diff` treats those rows like the netem pair's (`Options.FaultNetns`, `FaultEgress`). Listener drops, `rqueue` and receive memory are no longer compared on lossy rows ([design](docs/design-rocm-ernic-nics.md)).
- **Vulnerability check.** `checks.govulncheck` runs govulncheck against a pinned snapshot of the Go vulnerability database, with no tags and with every flavor tag, and fails on a reachable finding not in its accepted list. One is accepted: GO-2026-6859 in `net/http`, fixed in go1.27.4, until the toolchain moves. `nix run .#govulncheck-fresh` checks against the live database and runs `go mod verify`; `nix build .#sbom-<binary>` writes a CycloneDX SBOM for any binary package.

### Fixes
Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ See **[CONTRIBUTING.md](../CONTRIBUTING.md)** for the development environment, t
- [Red-team harness build plan](redteam-harness.md) — concrete Phase 0 wiring into flake.nix and nix/: what the existing infra already provides (verified), design decisions, the nix/redteam.nix and vagrant/ file specs, the rt-1-1 walkthrough, and the commit-by-commit build sequence.
- [Fleet jitter & upload backoff](design-jitter-and-backoff.md) — thundering-herd avoidance: poll jitter, jittered S3 flush (size + time), and jittered proportional upload retry, for fleet-scale (5–10k machine) deployments.
- [The link monitor in xtcp2](design-linkmonitor-in-xtcp2.md) — go-link-monitor's features inside xtcp2, on by default: the persisted expected up-link count in `/var/lib/xtcp2`, the detail paths on the Prometheus listener, the lifecycle under xtcp2's context, SIGUSR1/reload, and the degrade-not-exit failure mode; progress in its [status doc](status-linkmonitor-in-xtcp2.md).
- [rocm-ernic NICs in the VMs](design-rocm-ernic-nics.md) — plan: pin the emulated ionic NIC to upstream rocm-ernic by rev and narHash, one data-driven nix layer for ernic NICs, and VMs with virtio, e1000e and ionic NICs together (the golden uplinks first).
- [Summary metrics](design-summary-metrics.md) — proposed 15-series `/metrics` (a self-computed `xtcp2_healthy` gauge plus throughput, delivery, error and resource counters, destination-generic) with full detail moved to `/metrics-all`, plus follow-ups found reviewing the fleet dashboard.
- [Namespace discovery & reconciliation](design-namespace-discovery-and-reconcile.md) — design history and discovery analysis; the [namespace guide](network-namespaces.md) describes current combined `/proc`/bind-mount discovery and pre-poll/background reconciliation.
- [Investigations](investigations/) — write-ups of production problems with evidence, hypotheses and reproduction plans; currently [records dropped after the poll-end flush](investigations/envelope-post-flush-drop.md) (~19% of prod records).
Expand Down
Loading