diff --git a/ACRONYMS.md b/ACRONYMS.md index 368e7c2..8599748 100644 --- a/ACRONYMS.md +++ b/ACRONYMS.md @@ -84,9 +84,7 @@ The `vxgateway` data plane, relevant to `network-provisioning-patterns`. for per-slice bandwidth guarantees. - **rtnetlink**: The Linux kernel's netlink socket family for network configuration; the planned successor to today's iproute2-shell-out backend. -- **FRR**: FRRouting: open-source routing daemon suite (provides vxgateway's **BGP**). -- **BGP**: Border Gateway Protocol: the routing protocol FRR speaks for cloud - interconnect. +- **BGP**: Border Gateway Protocol: the routing protocol between networks. - **TSN**: Time-Sensitive Networking: deterministic-latency Ethernet extensions (phase-3 gateway variant). - **gPTP** / **PTP**: (generalized) Precision Time Protocol: clock sync TSN depends on. @@ -99,7 +97,7 @@ The `vxgateway` data plane, relevant to `network-provisioning-patterns`. - **DOCA**: NVIDIA's SDK for offloading OVS/tc-style intent onto a BlueField DPU (phase-4 hardware exit ramp). - **CAN**: Controller Area Network; **LIN**, Local Interconnect Network: legacy - automotive buses, modeled via `type: can` links (phase 3). + automotive buses, specified as `type: can` links (not built). - **SocketCAN** / **vcan**: Linux's native CAN subsystem / its virtual-CAN device. - **DBC**: A CAN database file format defining frame layouts (used by restbus simulation to map CAN ↔ VSS). diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index e45e5ff..3f2b0dd 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -48,7 +48,7 @@ The platform is designed to: - generate publishable results (latency/jitter percentiles, OTA reliability, isolation metrics); - stay production-representative: the same middleware (Eclipse SDV: Kuksa/VSS, Zenoh, uProtocol), - network stack (OVS/tc/FRR/WireGuard, SONiC as production NOS twin), and AD workloads + network stack (OVS/tc/WireGuard, SONiC as production NOS twin), and AD workloads (Autoware, NVIDIA Alpamayo) used or converged on by OEMs; - run on a single host; - be **API-first**: all orchestration lives behind vxAPI (gRPC/Protobuf) served by the `vxedged` @@ -62,7 +62,7 @@ No physical router is required: the edge-gateway role is fully absorbed by `vxga ## 2: Research goals & hypotheses **Primary goal:** Quantify whether a **software-defined virtual gateway**, built from the -production Linux SDN stack (OVS/Linux bridge, tc queue trees, VXLAN, WireGuard, FRR) and running +production Linux SDN stack (OVS/Linux bridge, tc queue trees, VXLAN, WireGuard) and running co-located with virtualized zonal ECUs and central compute, can provide slice isolation and deterministic performance for SDV workloads mapped to logical 5G slices. @@ -103,7 +103,7 @@ today (real, emulated or building), dashed is specified and not built yet. Sourc (gRPC/Protobuf). See §5. - **vxedge CLI (Rust)**: thin vxAPI client; the primary frontend. - **vxgateway**: the software-defined edge gateway: Linux-native data plane (OVS or Linux - bridge, tc, VXLAN, WireGuard, FRR), provisioned declaratively by the CLI. See §7. + bridge, tc, VXLAN, WireGuard), provisioned declaratively by the CLI. See §7. - **Zone and compute loadables** (zone manifests, VM images for Zephyr, FreeRTOS and AAOS, RTOS builds, central compute manifests, Autoware/ROS2 images, Alpamayo/AlpaSim, inference): see `vxparts` below. @@ -135,7 +135,7 @@ Canonical repos (under vxedge org): - `vxedge/vxota`: OTA server, signing, manifests. - `vxedge/vxagents`: Rust agents, metrics exporters. - `vxedge/vxtelemetry`: telemetry ingestion and exporters. -- `vxedge/vxperiments`: experiment manifests, **vehicle manifests**, notebooks, results. +- `vxedge/vxperiments`: experiment manifests, **vehicle manifests**, results. - `vxedge/vxmodels`: *(track M)* SysML v2 system models: requirements/traceability (H1–H4 `verify`-linked to frozen result archives), vehicle structure models, the analysis-case/variant library, and the `vxmodel` renderer (Rust) @@ -755,7 +755,7 @@ the vehicle (§6.0.1). Every one of those blocks is **typed and validated when the model is built**, a malformed `services:` entry is one error against the file the author wrote, not a surprise at `svc up`. -`network.tunnels` (`docs/ROADMAP.md` #16) declares a point-to-point link the gateway itself +`network.tunnels` declares a point-to-point link the gateway itself terminates, reaching a *remote* peer (another site's gateway), distinct from `network.slices`, which partitions the *local* bridge fabric zone nodes attach to. Two kinds today, each with only the fields it needs: @@ -793,11 +793,11 @@ interface is a routed L3 endpoint, never enslaved to the bridge/OVS switch, whil interface *joins* the bridge as a trunk-like port, so `slices` (not an `address`/`peer` block) is what a `vxlan` tunnel actually needs, which local slice(s) it extends, validated against `network.slices` the same way a `links[].slice` reference is. **Model and validation only** -(`docs/ROADMAP.md` #16, delivered 2026-08-04), `GatewayPlan` refuses to plan a `kind: vxlan` +(delivered 2026-08-04), `GatewayPlan` refuses to plan a `kind: vxlan` tunnel today (`PlanError::VxlanTunnelNotYetProvisionable`), loudly rather than silently dropping it, since provisioning it is a separate, not-yet-built follow-on. -`network.nos_check` (`docs/ROADMAP.md` #16/#31, schema settled 2026-08-04) opts an experiment +`network.nos_check` (schema settled 2026-08-04) opts an experiment into checking its `network.slices` VLAN intent against a real production network OS, alongside, never instead of, the actual measured path (`network.data_plane`). Absent by default; most experiments don't declare it: @@ -1958,7 +1958,7 @@ templating): (`network.shaping`, `network.time_sync`, §6.0.3). It enables HTB-versus-TSN isolation comparisons. Under `shaping` the uplink has no line rate, so the comparison is in time, not bandwidth (§6.0.3). -- **Legacy bus edges (`type: can`, phase 3):** SocketCAN/vcan buses per zone, exposed to guests +- **Legacy bus edges (`type: can`, specified, not built):** SocketCAN/vcan buses per zone, exposed to guests via QEMU CAN controllers and tunneled across the backbone with cannelloni; CAN frames map to VSS signals via Kuksa feeders, the zonal-controller CAN-aggregation role that makes the prototype vehicle-shaped rather than datacenter-shaped. @@ -1968,8 +1968,8 @@ templating): for the reverse direction, an IFB the port's ingress traffic is redirected onto (a qdisc only shapes egress, so the return direction needs a device of its own to shape). `harness` (`medium`/`length_m`/`weight_g`) carries the same segment's physical properties declaratively, - for a harness-reduction report, independent of whether it is impaired. CAN/LIN drops ride - `type: can` links (LIN modeled as a constrained bus, phase 3). + for a harness-reduction report, independent of whether it is impaired. CAN/LIN drops are + specified as `type: can` links (LIN modeled as a constrained bus), not built. Because harness topology is manifest data, it becomes an experimental variable, star vs daisy-chained zones, sensor-to-ECU path placement, iterable in minutes, which no physical testbed offers. Power distribution is modeled only as VSS signals (vxplant power tree, @@ -1977,18 +1977,18 @@ templating): harness's timing layer. - **Tunnels:** VXLAN for inter-host communication; WireGuard (in-kernel) for secure telemetry and OTA transport, `network.tunnels` (§6.0.3), one gateway-terminated point-to-point link per - entry. **WireGuard delivered** (`docs/ROADMAP.md` #16): backend-independent (a WireGuard + entry. **WireGuard delivered**: backend-independent (a WireGuard interface is a routed L3 endpoint, never enslaved to the bridge/OVS switch, the same mechanism regardless of `network.data_plane`). No local key material in the manifest; the gateway mints its own identity on first `up` and reports the public key back via `status`. Kernel-level correctness (a real handshake between two simulated hosts, not just interface presence) verified by `gateway_netns.rs`'s `tunnel_completes_a_real_handshake_between_two_simulated_hosts`. **VXLAN: model and validation - delivered 2026-08-04** (`docs/ROADMAP.md` #16), `kind: vxlan` (§6.0.3), structurally the + delivered 2026-08-04**, `kind: vxlan` (§6.0.3), structurally the opposite of WireGuard: it joins the bridge as a trunk-like port, extending one or more local slices' L2 domain across hosts. `GatewayPlan` provisioning is a separate, not-yet-built follow-on; declaring one today is refused loudly at plan time, not silently dropped. -- **Routing:** static for lab experiments; FRR provides BGP for cloud interconnect. +- **Routing:** static for lab experiments. - **Firewalling:** nftables per VLAN/slice. - **Production NOS twin:** the same slice/VLAN/VXLAN/BGP intent is also rendered onto a **SONiC-VS** virtual switch (community qcow2). SONiC is the production open-source NOS @@ -2541,7 +2541,7 @@ scrape reads the kernel's counters as they are then. - Open-source Rust CLI and agents (MIT/Apache-2.0). - Zephyr/FreeRTOS under their respective licenses. - Autoware/ROS2 under Apache-2.0; Alpamayo models/AlpaSim under NVIDIA's open-model licenses; - SONiC, OVS, FRR, Open5GS, UERANSIM, Eclipse SDV components under their upstream OSS licenses. + SONiC, OVS, Open5GS, UERANSIM, Eclipse SDV components under their upstream OSS licenses. - **Industrialization notes:** - All manifests are modular and reused across experiments. diff --git a/CHANGELOG.md b/CHANGELOG.md index d6ce348..7804dfb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ All notable changes to this repo are documented here. Format follows - `ARCHITECTURE.md` §9 specifies a VM bundle's root disk, implemented in vxedge 0.35.0. A bundle may carry `rootfs.img`, a raw image of its guest's whole system, which `backend: qemu-microvm` boots as `/dev/vda` from a snapshot, with the guest's address in the kernel's own `ip=`. libvirt and cloud-hypervisor refuse such a bundle. -- `ARCHITECTURE.md` §5 specifies the fleet view, which is not implemented yet: `RunService.Status` returns every +- `ARCHITECTURE.md` §5 specifies the fleet view, which ships in vxedge 0.33.0: `RunService.Status` returns every run's status in one call, with a typed per-run error for a run that is not up or cannot be read, and `RunService.Down` takes several runs, or every run, down as one job with a child job per run. A slot a running campaign holds refuses the whole call. The CLI adds `vxedge runs status` and `vxedge runs down`. @@ -23,7 +23,7 @@ All notable changes to this repo are documented here. Format follows traffic starts. - §6.0.3's `to: internet` reflector and `from: host` sender run in that namespace. - `experiment down` and `vehicle down` stop every running measurement and traffic profile before the nodes. -- `ARCHITECTURE.md` §6.0.3 and §7 specify the TSN variant of the gateway, which is not implemented yet: +- `ARCHITECTURE.md` §6.0.3 and §7 specify the TSN variant of the gateway, which ships in vxedge 0.28.0 (`shaping`) and 0.30.0 (`time_sync`): - `network.shaping` (`kind: gate-schedule`) puts an IEEE 802.1Qbv gate schedule on the uplink in place of the HTB tree, with one class per slice, classified by VLAN; - `network.time_sync` (`kind: gptp`) makes the gateway the 802.1AS grandmaster for the listed @@ -34,7 +34,7 @@ All notable changes to this repo are documented here. Format follows refused in `open`, a slice named `default` is refused, `duration_us` runs from 1 to 4294967, a `matchall` filter sends every unclassified frame to `default`, `GatewayService.Up` makes the host check too, and a running gateway is not switched between HTB and a gate schedule without `down`. -- `ARCHITECTURE.md` §5.2 and §6.0.5 specify several runs on one host (Track F), which is not implemented yet: +- `ARCHITECTURE.md` §5.2 and §6.0.5 specify several runs on one host, which ships in vxedge 0.31.0: - every run holds an instance slot (`0`–`9`, `a`–`z`), and every host object it creates carries it: `vxbr`, `vz-`, `vp-`, `vi-`, `vx-`, `vx5g`. Stems keep their 11 characters; @@ -54,6 +54,14 @@ All notable changes to this repo are documented here. Format follows ### Changed +- `FACTS.md`: `gateway.shaping` and `gateway.time_sync` registered as `live`, with no campaign behind them; + `mcp.results` is `live` and `parity.mcu` is `emulated` (probe firmware on QEMU's Cortex-M3 board). The + 802.1Qbv gate schedule moves from the gap of `parity.harness` to `parity.network`, because it runs on the uplink. + `vehicle.up` and `api.agents` state several vehicles and runs per host and the seven-backend gate of 2026-11-19. +- Text brought up to the released state: `USER-GUIDE.md` (backends, several + vehicles at once, measurement ends, TSN, `type: can`), `RESULTS.md` (exp-010's live run, the H4 release rerun, + exp-014, exp-016, exp-018), `GETTING-STARTED.md` (ten repositories, `vxvhal`), `TESTBED-SETUP.md` (gPTP, QEMU for + Arm) and `ARCHITECTURE.md` / `ACRONYMS.md` (FRR and notebooks removed, `type: can` specified and not built). - vxedge is described as a virtual vehicle with environmental parity, for packaged, measured SDV experiments; 5G slicing is one family of its measured cases. `FACTS.md` registers the wording as `project.summary` and `project.description`. `README.md`, `GETTING-STARTED.md`, `USER-GUIDE.md`, `TESTBED-SETUP.md`, diff --git a/FACTS.md b/FACTS.md index a2eb33e..2a32589 100644 --- a/FACTS.md +++ b/FACTS.md @@ -249,12 +249,12 @@ How close each part of the virtual vehicle is to production today, and what clos | Key | Part | Today | State | Closes the gap | |---|---|---|---|---| -| `parity.network` | Network path | Linux kernel: OVS or bridge, tc HTB per slice, VXLAN, WireGuard | real | BlueField offload · p4 | +| `parity.network` | Network path | Linux kernel: OVS or bridge, tc HTB per slice or an 802.1Qbv gate schedule on the uplink, VXLAN, WireGuard | real | BlueField offload · p4 | | `parity.core` | 5G core | Open5GS with real S-NSSAI PDU sessions | real | — | | `parity.radio` | 5G radio | UERANSIM gNB and UE in software | emulated | Aerial RAN · p4 | | `parity.zones` | Zone ECUs | Real guest OS under container, microVM or KVM | emulated | — | -| `parity.harness` | Harness | Per-link rate, delay, jitter, loss; 100BASE-T1 length and weight | emulated | TSN 802.1Qbv · p3 | -| `parity.mcu` | MCU firmware | Unmodified firmware on register-level models | planned | Renode · p3 | +| `parity.harness` | Harness | Per-link rate, delay, jitter, loss; 100BASE-T1 length and weight | emulated | — | +| `parity.mcu` | MCU firmware | Probe firmware on QEMU's Cortex-M3 board, TCG, never timed | emulated | Renode · p3 | | `parity.sensors` | Sensors | World streams carried as slice traffic | planned | CARLA · p3 | | `parity.compute` | Central compute | Autoware and ROS 2 in containers | planned | DRIVE AGX · p4 | | `parity.cockpit` | Cockpit | Android Automotive 26Q2 framework and its gRPC Vehicle HAL path, on x86_64 Cuttlefish | emulated | AAOS on arm64 · p3 | @@ -351,7 +351,7 @@ How a generated experiment reaches the bench. | `mcp.status` | `experiment_status` | ExperimentService | live | | `mcp.list` | zone / compute list | ZoneService · ComputeService | live | | `mcp.watch` | job watch · events | JobService · EventService | live | -| `mcp.results` | results summary | results archive | planned | +| `mcp.results` | result list · get · verdict · compare · fetch | ResultService | live | | `mcp.mutate` | up · down · traffic · collect · cancel | behind confirmation | live | ### Other deliveries @@ -359,8 +359,10 @@ How a generated experiment reaches the bench. | Key | Value | Source | |---|---|---| | `retarget.validate` | live | an experiment retargets to another vehicle by id and validates | -| `vehicle.up` | live | the `vehicle` verbs (up, down, status) on a full vehicle: gateway, zones, central compute, and a service and signal plane placed on a slice, with an idempotent second `up`, a clean `down` and other vehicles refused. Verified 2026-11-03 on [`vx-vehicle-03`](https://github.com/vxedge/vxperiments/tree/main/results/signal-plane-2026-11-03), with zones on container, qemu-microvm, cloud-hypervisor and wasm-capsule, and 2026-11-01 on [`vx-vehicle-02`](https://github.com/vxedge/vxperiments/tree/main/results/phase-3-gate-2026-11-01), the phase-3 gate, with zones on container and qemu-microvm. `libvirt` has not run in a full vehicle. Android Automotive 26Q2 ran as an `attach` zone of [`vx-reference-sedan-03`](https://github.com/vxedge/vxperiments/tree/main/results/aaos-gate-2026-11-08), 2026-11-08 (`vehicle.aaos`). The other guests are probes: no RTOS or Autoware workload ran | +| `vehicle.up` | live | the `vehicle` verbs (up, down, status) on a full vehicle: gateway, zones, central compute, and a service and signal plane placed on a slice, with an idempotent second `up`, a clean `down`, and since vxedge 0.31.0 several vehicles at once, each in its own instance slot. Verified 2026-11-19 on [`vx-vehicle-04`](https://github.com/vxedge/vxperiments/tree/main/results/all-backends-gate-2026-11-19), vxedge 0.34.2, with a node on each of the seven node backends, `libvirt` included and its `attach` node a generic adapter, and `vx-vehicle-02` up beside it; 2026-11-03 on [`vx-vehicle-03`](https://github.com/vxedge/vxperiments/tree/main/results/signal-plane-2026-11-03), with zones on container, qemu-microvm, cloud-hypervisor and wasm-capsule, and 2026-11-01 on [`vx-vehicle-02`](https://github.com/vxedge/vxperiments/tree/main/results/phase-3-gate-2026-11-01), the phase-3 gate, with zones on container and qemu-microvm. Android Automotive 26Q2 ran as an `attach` zone of [`vx-reference-sedan-03`](https://github.com/vxedge/vxperiments/tree/main/results/aaos-gate-2026-11-08), 2026-11-08 (`vehicle.aaos`). The other guests are probes, FreeRTOS and Zephyr firmware included: functional only, never timed, and no RTOS application or Autoware workload ran | | `vehicle.aaos` | live | an Android Automotive 26Q2 guest as a zone of a full vehicle: AOSP Cuttlefish build 16644040 on its own host stack, joined by `backend: attach` (the gateway adopts Cuttlefish's tap as the slice port). CarService in the guest reads the vehicle's signals through the production gRPC Vehicle HAL path, vxvhal on the cockpit gateway ECU reading Kuksa, across the slice. 10 of 10 vxAPI gate runs on `vx-reference-sedan-03` with vxedge 0.9.1, 20 of 20 CarService readings matched (verified 2026-11-08, [gate](https://github.com/vxedge/vxperiments/tree/main/results/aaos-gate-2026-11-08)). Rung `aaos-26q2-x86_64-cf`: x86_64 under Cuttlefish, not the production instruction set, hypervisor or hardware; two read properties, no write path or HMI | | `service.placed` | live | a service runs on a container device with `on:`, answering on that device's slice only; `ota` only | | `signal.plane` | live | the Kuksa databroker as a stage of `vehicle up` and `experiment up`, in its device's container group. On kuksa-databroker 0.7.1, real `kuksa.val.v2` providers and subscribers on its slice: published values reached subscribers in order, actuation reached a provider, a CAN dump replayed by kuksa-can-provider fed a consumer on another device, and every client on another slice was refused (verified 2026-11-04 on [`vx-vehicle-03`](https://github.com/vxedge/vxperiments/tree/main/results/kuksa-cases-2026-11-04), VSS 6.0 scenarios in [`vss-scenarios-2026-11-04`](https://github.com/vxedge/vxperiments/tree/main/results/vss-scenarios-2026-11-04)). Released in `vxedge` 0.5.0. The providers and consumers are test clients: no plant model or vehicle application ran. Its time across the slice was measured with kuksa-perf, in [`broker-slice-main-2026-11-04`](https://github.com/vxedge/vxperiments/tree/main/results/broker-slice-main-2026-11-04), `exp016.*` under Results; each of those numbers crosses the slice twice, on one shared host. Signals are unauthenticated, so slice isolation is their only protection | -| `api.agents` | live | an agent runs a trial through `vxmcp` alone on typed fields: plan, up, typed status, events with resume, traffic, collection, daemon restart, cancel and down, 10 of 10 consecutive runs on `vx-vehicle-03` and libvirt on `exp-002-ws` (verified 2026-11-04, [release gate](https://github.com/vxedge/vxperiments/tree/main/results/vxapi-0.5.0-gate-2026-11-04)), and the core sequence 10 of 10 on `vx-reference-sedan-03` with its AAOS zone, on vxedge 0.9.1 and vxmcp 0.2.4 release builds (verified 2026-11-08, [gate](https://github.com/vxedge/vxperiments/tree/main/results/aaos-gate-2026-11-08)). One run per host; apart from the AAOS zone, guests are probes | +| `gateway.shaping` | live | `network.shaping` (`kind: gate-schedule`): an IEEE 802.1Qbv gate schedule on the gateway's uplink in place of the HTB tree, released in vxedge 0.28.0. A network-namespace integration test runs it in CI; no gate run is recorded and no campaign has measured it. 802.1Qav is not implemented ([changelog](https://github.com/vxedge/vxedge/blob/main/CHANGELOG.md)) | +| `gateway.time_sync` | live | `network.time_sync` (`kind: gptp`): the gateway as IEEE 802.1AS grandmaster for container devices, which measure their offset and do not steer a clock, released in vxedge 0.30.0. No gate run is recorded and no campaign has measured it ([changelog](https://github.com/vxedge/vxedge/blob/main/CHANGELOG.md)) | +| `api.agents` | live | an agent runs a trial through `vxmcp` alone on typed fields: plan, up, typed status, events with resume, traffic, collection, daemon restart, cancel and down, 10 of 10 consecutive runs on `vx-vehicle-03` and libvirt on `exp-002-ws` (verified 2026-11-04, [release gate](https://github.com/vxedge/vxperiments/tree/main/results/vxapi-0.5.0-gate-2026-11-04)), and the core sequence 10 of 10 on `vx-reference-sedan-03` with its AAOS zone, on vxedge 0.9.1 and vxmcp 0.2.4 release builds (verified 2026-11-08, [gate](https://github.com/vxedge/vxperiments/tree/main/results/aaos-gate-2026-11-08)). Since vxedge 0.31.0 a host holds several runs, with one lifecycle operation at a time ([gate](https://github.com/vxedge/vxperiments/tree/main/results/all-backends-gate-2026-11-19), verified 2026-11-19 on vxedge 0.34.2 and vxmcp 0.7.0); apart from the AAOS zone, guests are probes | diff --git a/GETTING-STARTED.md b/GETTING-STARTED.md index 494ffca..49ad172 100644 --- a/GETTING-STARTED.md +++ b/GETTING-STARTED.md @@ -11,8 +11,8 @@ every acronym is defined in [`ACRONYMS.md`](ACRONYMS.md). **Pre-release (0.x).** The manifest schema and vxAPI may change between minor versions ([`VERSIONING.md`](VERSIONING.md)); published results are frozen and do not change. -**Repository status.** All nine repositories (`docs`, `vxedge`, `vxagents`, `vxtelemetry`, `vxota`, `vxperiments`, -`vxparts`, `vxmodels` and `vxmcp`) are public. The zone bundle step in section 4 builds from the `vxparts` clone, so it +**Repository status.** All ten repositories (`docs`, `vxedge`, `vxagents`, `vxtelemetry`, `vxota`, `vxperiments`, +`vxparts`, `vxmodels`, `vxmcp` and `vxvhal`) are public. The zone bundle step in section 4 builds from the `vxparts` clone, so it runs as written. ## 1. Prerequisites @@ -37,7 +37,7 @@ folder is *not* a git repo): ```bash mkdir vxedge && cd vxedge -for r in docs vxedge vxagents vxtelemetry vxota vxperiments vxparts vxmodels vxmcp; do +for r in docs vxedge vxagents vxtelemetry vxota vxperiments vxparts vxmodels vxmcp vxvhal; do gh repo clone vxedge/$r done ``` @@ -52,6 +52,7 @@ done | `vxperiments` | Experiment packages, vehicle manifests, frozen results | | `vxmodels` | SysML v2 system models + `vxmodel` manifest renderer, track M (`ARCHITECTURE.md` §6.3) | | `vxmcp` | MCP (Model Context Protocol) server over vxAPI, for agent tooling | +| `vxvhal` | Server for Android Automotive's gRPC Vehicle HAL, backed by VSS signals in an Eclipse Kuksa databroker | Every repo has an `AGENTS.md` (scope + rules) and a `CHANGELOG.md`; `docs/ROADMAP.md` is the public phase status. diff --git a/RESULTS.md b/RESULTS.md index f4f6e9b..d0bf99e 100644 --- a/RESULTS.md +++ b/RESULTS.md @@ -15,9 +15,11 @@ campaign and acceptance criteria in the package. `vxedge campaign start --profil package's folder, runs the published protocol ([`GETTING-STARTED.md`](GETTING-STARTED.md) §4). [`scripts/verdict-parity.sh --fetch`](https://github.com/vxedge/vxperiments/blob/main/scripts/verdict-parity.sh) in vxperiments downloads the published archives and requires each package's criteria to give the -published verdict on them. exp-010's archives hold probe summaries only, so its H2 verdict is checked by -[`notebooks/analyze_exp010.py`](https://github.com/vxedge/vxperiments/blob/main/notebooks/analyze_exp010.py) -instead. The verdicts were first computed by analysis notebooks that the packages replaced; they are kept +published verdict on them. exp-010's archives hold probe summaries only, so its frozen H2 verdict was checked by +[`notebooks/analyze_exp010.py`](https://github.com/vxedge/vxperiments/blob/v0.2.1/notebooks/analyze_exp010.py) +(v0.2.1) instead. exp-010 has run live as a package since, judged by `vxedge campaign verdict`: +[`exp-010-repro-2026-11-13`](https://github.com/vxedge/vxperiments/blob/main/results/exp-010-repro-2026-11-13/exp-010-summary.md). +The verdicts were first computed by analysis notebooks that the packages replaced; they are kept at the [vxperiments v0.2.1 tag](https://github.com/vxedge/vxperiments/tree/v0.2.1/notebooks). ## Summary @@ -70,7 +72,8 @@ per-slice QoS. The fix was real HTB enforcement on the slice path. Configuring then re-run with host-noise mitigations (CPU governor, core pinning, randomized load order). All intermediate campaigns are kept in the results directory. A second campaign on 2026-10-30, on a newer kernel with other VMs on the host, reached the same verdict by a small margin: S-NSSAI p99 grew -1.00× against VLAN's 0.91×, inside the 1.1× tolerance, with p99 at 339–356 µs. +1.00× against VLAN's 0.91×, inside the 1.1× tolerance, with p99 at 339–356 µs. The 2026-11-13 live run of the +package (vxedge 0.27.0) kept it: S-NSSAI p99 grew 0.97×, with p99 at 291–320 µs. Summary: [`vxperiments/results/exp-010/exp-010-summary.md`](https://github.com/vxedge/vxperiments/blob/main/results/exp-010/exp-010-summary.md) ## H3: virtualization choice (`exp-002b`) @@ -96,7 +99,8 @@ Both arms, with p50/p95/p99 and OTA deliveries (361 ok, 0 failed per repetition) scheduling contention between OTA and the ADAS probe, not gateway-QoS-enforced network contention. A second campaign on 2026-10-30, on a newer kernel with other VMs on the host, kept 3 of 6 absolute medians inside the first campaign's IQR and moved the rest outside it, but it did not change -the comparative verdict. +the comparative verdict. A 2026-11-13 rerun with release builds (vxprobe 0.2.3, vxota 0.1.2) kept the verdict: +ADAS p50 35.3 µs in both arms, and the burst moved median p50 by +0.03 µs, inside its threshold. Summary: [`vxperiments/results/exp-003/exp-003-summary.md`](https://github.com/vxedge/vxperiments/blob/main/results/exp-003/exp-003-summary.md) ## Other completed experiments @@ -104,7 +108,14 @@ Summary: [`vxperiments/results/exp-003/exp-003-summary.md`](https://github.com/v - **`exp-005`**: cold-start / first-packet latency after zone boot. The effect was confirmed in 20 of 20 repetitions. It explains the inflated first-arm tails seen incidentally in `exp-001`/`002`/`003`. - **`exp-014`**: wiring-harness topology as a variable: star vs daisy-chained zones. The expected - hop-count effect holds. + hop-count effect holds. In the 2026-11-13 live run each daisy-chain hop added +60 µs at p50 (30 µs / 5 µs netem + per hop, a stated assumption), and a ring harness bounds the farthest zone at two hops: holds. +- **`exp-016`**: the Kuksa databroker across its slice, against the same on the broker's device: publish to + subscriber +8 µs and actuate to provider +11 µs at p50, out and back, never one-way. 600 mbit/s on another slice + moved both by +1 µs, inside the spread between repetitions. +- **`exp-018`**: DDS, SOME/IP and CAN-signal traffic beside the ADAS slice: holds. ADAS p99 was 53.4–55.7 µs under + the three loads, and no probe was lost. The loads share the bridge and the host's CPU with + the probe. ## Phase-3 gate diff --git a/TESTBED-SETUP.md b/TESTBED-SETUP.md index 8f24c28..c8fb623 100644 --- a/TESTBED-SETUP.md +++ b/TESTBED-SETUP.md @@ -23,7 +23,7 @@ Everything in Tier 0, plus: | Requirement | Notes | |---|---| -| CAP_NET_ADMIN | **Two mechanisms now, not one**, corrected 2026-08-05 after a live `exp-010` `--repro` run failed against the 2026-07-17 guidance below. The 2026-08-04 rtnetlink port (`docs/ROADMAP.md` #16) moved bridge/veth/VLAN/address/route creation, WireGuard device creation, and the fiveg host-attachment path off the `ip`/`bridge` shell-out and into `vxedged`'s own in-process syscalls, for exactly that portion, `sudo setcap cap_net_admin,cap_sys_admin+ep ` now **does** work (`cap_sys_admin` is for `setns(2)` into a named network namespace) (no child process involved, so the fork+exec propagation problem below doesn't apply), and needs re-running after every rebuild since a fresh binary carries no capability. `tc`, `nft`, `wg` (key/peer config), and `ovs-vsctl` are **still** shell-outs, unchanged, and still need the NOPASSWD-sudo config below (e.g. ` ALL=(root) NOPASSWD: /usr/sbin/ip, /usr/sbin/bridge, /usr/sbin/tc, /usr/sbin/nft, /usr/bin/wg, /usr/bin/ovs-vsctl`), a cached interactive sudo credential (`sudo -v`, kept alive) works just as well as NOPASSWD for these, and is what every current campaign runner actually uses. Do not run `vxedged` itself as root either way, phase 2's fiveg driver needs `podman` to keep running as the deploying user's own identity (see Tier 2). *Original 2026-07-17 finding, still true for the shell-out half*: capabilities don't propagate across `fork`+`exec` to separate child processes, which is why `setcap` alone was insufficient before the rtnetlink port and still doesn't cover `tc`/`nft`/`wg`/`ovs-vsctl` today | +| CAP_NET_ADMIN | **Two mechanisms now, not one**, corrected 2026-08-05 after a live `exp-010` `--repro` run failed against the 2026-07-17 guidance below. The 2026-08-04 rtnetlink port moved bridge/veth/VLAN/address/route creation, WireGuard device creation, and the fiveg host-attachment path off the `ip`/`bridge` shell-out and into `vxedged`'s own in-process syscalls, for exactly that portion, `sudo setcap cap_net_admin,cap_sys_admin+ep ` now **does** work (`cap_sys_admin` is for `setns(2)` into a named network namespace) (no child process involved, so the fork+exec propagation problem below doesn't apply), and needs re-running after every rebuild since a fresh binary carries no capability. `tc`, `nft`, `wg` (key/peer config), and `ovs-vsctl` are **still** shell-outs, unchanged, and still need the NOPASSWD-sudo config below (e.g. ` ALL=(root) NOPASSWD: /usr/sbin/ip, /usr/sbin/bridge, /usr/sbin/tc, /usr/sbin/nft, /usr/bin/wg, /usr/bin/ovs-vsctl`), a cached interactive sudo credential (`sudo -v`, kept alive) works just as well as NOPASSWD for these, and is what every current campaign runner actually uses. Do not run `vxedged` itself as root either way, phase 2's fiveg driver needs `podman` to keep running as the deploying user's own identity (see Tier 2). *Original 2026-07-17 finding, still true for the shell-out half*: capabilities don't propagate across `fork`+`exec` to separate child processes, which is why `setcap` alone was insufficient before the rtnetlink port and still doesn't cover `tc`/`nft`/`wg`/`ovs-vsctl` today | | iproute2 + nftables | present on most Linux distributions | | CPU isolation (recommended) | pin gateway + probe cores: `isolcpus`/`cpuset`, record in results metadata | | Kernel flavour caveat | generic (non-PREEMPT_RT) is fine for first numbers; **must** be recorded as a determinism caveat (§12). PREEMPT_RT (Ubuntu Pro real-time kernel) is the upgrade path | @@ -44,6 +44,8 @@ Everything above, plus: | Open vSwitch (optional variant) | `apt install openvswitch-switch` | alternative gateway data plane; **do not** hand-create bridges, vxedge owns its bridge lifecycle | | WireGuard tools | `apt install wireguard-tools` | telemetry/OTA transport links | | `taprio` (TSN gate schedule, optional) | the `sch_taprio` kernel module: in stock distribution kernels, loaded on first use; `sudo modprobe sch_taprio` loads it now | only experiments with `network.shaping` (vxedge 0.28.0 or later) need it. `Plan` and `up` refuse such an experiment on a kernel without it, and `vxedge doctor --tier 2` reports it. Running a gate schedule also loads `cls_flower` and `act_skbedit` | +| gPTP time sync (optional) | passwordless `sudo nsenter`, as the 5G pods need, and rootless Podman | only experiments with `network.time_sync` (vxedge 0.30.0 or later) need it. `Plan` and `up` refuse such an experiment on a host without it | +| `qemu-system-aarch64`, `qemu-system-arm` (optional) | from the distribution's QEMU packages | only for aarch64 bundles under `backend: qemu-microvm` and for `backend: qemu-mcu`, both TCG and never timed | | NVIDIA GPU | RTX-class, ≥ 12 GB VRAM; driver ≥ 550; CUDA per DeepStream/TensorRT matrix | CARLA server + inference share it | | Container runtime | **Podman** (preferred; Docker-compatible OCI) + NVIDIA Container Toolkit | digest-pinned images only; hybrid policy: ARCHITECTURE §15 | | Podman API socket + `passt` | rootless **user** socket: `systemctl --user enable --now podman.socket`, then `loginctl enable-linger $USER`; `apt install passt` | `vxedged` drives the 5G pods over this socket (`$XDG_RUNTIME_DIR/podman/podman.sock`), not the `podman` CLI, so enable it as the user who runs `vxedged`, never as root: another identity has another image store, and `vxedged` refuses root's socket outright. Linger keeps the socket alive after your login session ends (an SSH logout otherwise stops it). Check with `curl -s --unix-socket $XDG_RUNTIME_DIR/podman/podman.sock http://d/version`. Each pod's network namespace is a `pasta` one, as `podman pod create` gives it, so `passt` must be installed. `vxedged` starts without the socket and connects on first 5G use. Upgrading from a `vxedged` that used the `podman` CLI: remove its pods once, `podman pod rm -f vx5g vx5g-ran $(podman pod ps -q --filter name=vx5g-ran-ue-)`; `up` and `down` refuse to run over them and print that command | diff --git a/USER-GUIDE.md b/USER-GUIDE.md index 8322323..43da549 100644 --- a/USER-GUIDE.md +++ b/USER-GUIDE.md @@ -46,9 +46,10 @@ listed per-verb below; everything else fails loudly rather than pretending. (`zone-controller`, `hpc`, `gateway`, `ecu`, `sensor`, `actuator`, `switch`) sitting in one. Each node runs under a packaging **backend**: `container` (network namespace), `qemu-microvm` (raw QEMU, direct kernel boot), `libvirt` (full VM) or - `cloud-hypervisor` (microVM over a REST API, validated on `linux-probe` only) or - `wasm-capsule` (a WebAssembly module in a network namespace), with identical - network attachment; the packaging choice is itself an experimental variable (H3). + `cloud-hypervisor` (microVM over a REST API, validated on `linux-probe` only), + `wasm-capsule` (a WebAssembly module in a network namespace), `attach` (a guest on its own + platform's host stack, through an adapter) or `qemu-mcu` (microcontroller firmware on QEMU's + Cortex-M3 board, TCG only). Every backend but `attach` has identical network attachment; the packaging choice is itself an experimental variable (H3). `ComputeService` is `role: hpc` filtered over that same backend split, not a separate provisioning path. - **Jobs**: every mutating command returns a job with live streamed progress; a job that @@ -77,14 +78,14 @@ All lifecycle verbs follow `up|down[|status]`; operations are idempotent. | `vxedge ota status [--experiment ]` | live | the OTA service's observed state, wherever the workspace runs it: as a host process, or placed on a device. `--json` too | | `vxedge telemetry up\|down\|collect` | live | `up`/`down` run the workspace's `services.telemetry`; `collect` archives what it ingested, with the workspace and image digests, and returns the archive path and sha256 | | `vxedge compute up\|down --vxid ` / `list` | live | a second RPC surface over the same node backends as `zone`, filtered to `role: hpc` devices, not a separate provisioning path. `add`/`rm`/`image push` planned | -| `vxedge vehicle up\|down\|status --manifest ` | live | brings up the gateway, its slices, every zone, central compute, and the signal plane and services a bare vehicle declares (`kind: vehicle` + `kind: baseline`, no experiment file), and tears them down again. `--stage` restricts it, as on `experiment`. `status` observes the host, so it stays right after a daemon restart. A second vehicle is refused while one is active. `up` refuses before provisioning if a local bundle or `localhost/` image is missing, and no registry login is needed. Verified 2026-11-01 on `vx-vehicle-02`, a multi-zone vehicle with probe guests. `manifest validate` accepts a bare vehicle too, validating it the way `vehicle up` loads it. `vehicle up --unlocked` skips the lock check of a vehicle that is a `vxp/1` package, as on `experiment up` | +| `vxedge vehicle up\|down\|status --manifest ` | live | brings up the gateway, its slices, every zone, central compute, and the signal plane and services a bare vehicle declares (`kind: vehicle` + `kind: baseline`, no experiment file), and tears them down again. `--stage` restricts it, as on `experiment`. `status` observes the host, so it stays right after a daemon restart. Several vehicles can be up, each in its own instance slot; their `up` and `down` do not overlap. `up` refuses before provisioning if a local bundle or `localhost/` image is missing, and no registry login is needed. Verified 2026-11-01 on `vx-vehicle-02`, a multi-zone vehicle with probe guests. `manifest validate` accepts a bare vehicle too, validating it the way `vehicle up` loads it. `vehicle up --unlocked` skips the lock check of a vehicle that is a `vxp/1` package, as on `experiment up` | | `vxedge experiment new [--template minimal\|slicing] [--namespace ]` | live | scaffolds a `vxp/1` package folder (`vxp.yaml`, id `local/` unless `--namespace` names the publisher) and writes its first `vxp.lock`; no daemon, no network, no GPU | | `vxedge results verdict\|compare` | live | local and offline (ARCHITECTURE.md §6.0.3): `verdict --experiment …` judges the experiment's criteria over results archives, `vxarchive/1` or `/2`, and `compare --experiment … --archives … --reference …` sets them against reference archives as `ResultService.Compare` does. A campaign's archives name their trials; for older ones, `--name 'rep{repetition}-load{load_mbps}'` (or `rep{repetition}-{arm}`) reads each trial from its file name. `--json` prints the full verdict | | `vxedge pkg new\|validate\|lock\|pack\|unpack\|inspect\|vendor` | live (0.6.1; `vendor` 0.8.0) | local and offline (ARCHITECTURE.md §6.0.7). `validate` adds the package checks to `experiment validate` and names each file the lock does not match; `lock [--check]`; `pack [--out ]` refuses a stale lock and writes `-.vxp` beside the folder with its `sha256:` digest; `unpack [--into ]`; `inspect []` prints descriptor, lock and digest from either form; `vendor [--as //] [--replace]` copies another folder's documents in, such as a reference vehicle, with the local part folders they reference that git tracks (such as an attach adapter), records each copy's source and digest in the lock, and lists the scripts and build outputs it left behind and the local references the package still needs; `vendor --check` reports a copy edited here or changed at its source | | `vxedge experiment validate` | live | local-only; loads the workspace here and runs every cross-file check, reporting all problems at once | | `vxedge experiment up\|down\|status` | live | acts on the workspace in the **current directory** (its `vxp.yaml`); no name, no `--manifest`. `--chdir ` to run from elsewhere. `up` provisions gateway → zones → signal plane → services and **does not start traffic**; use `vxedge traffic up`. `--stage gateway\|zones\|compute\|signal-plane\|services` (repeatable) restricts it, so `--stage services` alone does not start a declared signal plane: a campaign measuring on the host-side veth peers stages only the gateway, and one whose isolation contract is a single arm at a time stages the gateway then brings each arm up with `zone up --vxid`. On a `vxp/1` package `up` refuses with `ERROR_REASON_LOCK_MISMATCH`, naming each difference, when the package does not match its `vxp.lock` (0.7.0); `--unlocked` runs it anyway while authoring, and the run records that it was unlocked | | `vxedge traffic up\|down --manifest …` | live | drives the declared profiles; kept separate from `experiment up` because load is time-bounded and a campaign sweeps it over a fixed topology. A profile whose source node's zone is up runs inside that node: the load or probe starts in the node's network namespace from its pinned address, to a target node or to the far side of the uplink. A profile whose source is not a node needs host-side traffic, `experiment up --stage gateway`, and is refused otherwise | -| `vxedge measure start\|stop\|status` | live | runs the experiment's declared `measurements` (`rtt-probe`) in the workspace of the **current directory**, once the experiment is up: the daemon starts `vxprobe` inside each end's network namespace, or on the far side of the uplink for `to: internet`. `--id` (repeatable) selects measurements, and `--duration-s` overrides `method.duration_s`. Samples reach the ingest as `measurements/`. A VM or attached end is refused by `Plan` with `ERROR_REASON_MEASUREMENT_INVALID` | +| `vxedge measure start\|stop\|status` | live | runs the experiment's declared `measurements` (`rtt-probe`) in the workspace of the **current directory**, once the experiment is up: the daemon starts `vxprobe` inside each end's network namespace, or on the far side of the uplink for `to: internet`. `--id` (repeatable) selects measurements, and `--duration-s` overrides `method.duration_s`. Samples reach the ingest as `measurements/`. A VM can be `to` when its part declares its reflector (`org.vxedge.reflector`), never `from`; an attached end is refused by `Plan` with `ERROR_REASON_MEASUREMENT_INVALID`. `from: host` sends from the host's uplink side | | `vxedge campaign plan\|start\|status\|verdict\|compare` | live | the experiment's campaign in the workspace of the **current directory**: `plan` lists the trials (every sweep point and every arm) with their windows and any problem, `start` runs them one after another as a `campaign.run` job and follows it (`--profile`, `--request-id` to resume, `--unlocked`), `status []` shows each trial's state, phase and archive and the recorded verdict, and `verdict ` judges the experiment's criteria over the campaign's archives (`ResultService.Verdict`), criterion by criterion. `compare ` sets each metric's median at each point against the reference's median and IQR, and each criterion's outcome against the reference's (`ResultService.Compare`). A campaign needs the experiment's own telemetry service; its archives and `campaign.json` go to `results//` | | `vxedge runs [status\|down]` | live | lists the runs on this host, each with its instance slot and run id; `runs status` and `runs down` (`--all`) act on several runs at once | | One run by id, planning, host capabilities, job list and cancel, traffic status | live in vxAPI, CLI planned | `RunService.Get`, `WorkspaceService.Plan`, `HostService.Capabilities`, `JobService.List`/`Cancel` and `TrafficService.Status` have no CLI verb yet. Agents reach them through [`vxmcp`](https://github.com/vxedge/vxmcp) (`run_get`, `workspace_plan`, `host_capabilities`, `job_list`, `job_cancel`, `traffic_status`) | @@ -198,7 +199,7 @@ package's criteria. Numbers from `quick` campaigns are pipeline validation only and are never reported. Reference result (2026-08-03 corrected campaign, superseding the original 2026-07-10 run; -see RESULTS.md's Phase 1 row for why): ADAS slice p99 held at 0.91x baseline under 1.2x +see RESULTS.md, H1, for why): ADAS slice p99 held at 0.91x baseline under 1.2x offered overload from the infotainment slice, zero loss (see RESULTS.md). ### c) VM-backed zones (guest bundles) @@ -240,8 +241,8 @@ kernel, userspace timestamps). | vxgateway (bridge/VLAN/HTB) | zonal gateway / central switch QoS (automotive Ethernet) | | slices `mode: vlan` → `s-nssai` | static VLAN partitioning → 5G network slicing (S-NSSAI/URSP) | | zones + backends | zonal ECUs under a Type-1 hypervisor | -| `type: can` links (phase 3) | CAN/LIN drops behind zonal controllers (restbus, DBC, Kuksa/VSS) | -| harness `impairments` (delivered) + `harness` block | 100/1000BASE-T1 PHY characteristics (rate/delay/jitter/loss) + declarative length/weight for harness-reduction reporting; TSN variant = 802.1Qbv/Qav + gPTP (phase 2, open) | +| `type: can` links (specified, not built) | CAN/LIN drops behind zonal controllers (restbus, DBC, Kuksa/VSS) | +| harness `impairments` (delivered) + `harness` block | 100/1000BASE-T1 PHY characteristics (rate/delay/jitter/loss) + declarative length/weight for harness-reduction reporting; TSN = 802.1Qbv gate schedule on the uplink (`network.shaping`, vxedge 0.28.0) and gPTP time sync (`network.time_sync`, 0.30.0); neither has a published result | | results archives | test-bench evidence packages | ## 7. Getting help / contributing