code wiki / _hdl_build / nx_video_qoe_live.nx
nx_video_qoe_live.nx
buildroot/runtime/_hdl_build/nx_video_qoe_live.nx
about
nx_video_qoe_live.nx -- LIVE video-QoE measurement (operator 2026-07-03: "provide fps and stability and
other measurements ... too many false positives that our video chat is really good ... honest feedback
if we need more hardware"). NOT a simulation: two real TLS-1.3+WSS sessions through the PRODUCTION edge
(nishifamily.com -> sites.elf /signal pump -> nx_signaling_v2 relay), sender A paces REAL room-framed
video-kind frames (vc_wire_pack kind 0x56, 6000B payload = a realistic ladder JPEG) at a target cadence,
receiver B timestamps arrivals. Ping-pong (one frame in flight) = backpressure-safe on the production
relay. Measures PER RUNG of a load ramp (20/40/80/160 fps): achieved fps, path latency p50/p95/max,
late>150ms (playout-deadline class, the intl_h2h convention), gap>500ms (hard-freeze class), and a
connect/TLS setup time. The ramp knee = the honest hardware ceiling of the CURRENT edge.
HONESTY BOUNDS (printed, so no false positives): this measures the Texas-side LAN->edge->LAN path ONLY;
the Minsk leg needs a probe RUN FROM MINSK (registered follow-up) or calibration vs RIPE-Atlas real-path
data (banked by nx_vqoe_research_fetch). Log -> knowledge/status/video_qoe_live.log
expect_exit: 0 (measurement SOUND -- controls hold; the numbers themselves print honestly)
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_ws_client_session.nxnx_video_client_wasm.nxnx_metric_ledger.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 18 | const QOE_MAGIC_8192: i64 = 8192 |
| 19 | const QOE_MAGIC_150000: i64 = 150000 |
| 20 | const QOE_MAGIC_500000: i64 = 500000 |
| 21 | const QOE_MAGIC_10000000: i64 = 10000000 |
| 22 | const QOE_MAGIC_4194304: i64 = 4194304 |
| 23 | const QOE_MAGIC_16384: i64 = 16384 |
| 24 | const QOE_MAGIC_50000: i64 = 50000 |
| 25 | const QOE_MAGIC_25000: i64 = 25000 |
| 26 | const QOE_MAGIC_12500: i64 = 12500 |
| 27 | const QOE_MAGIC_6250: i64 = 6250 |
| 29 | const QOE_PAY: i64 = 6000 // realistic ladder-frame payload (JPEG-class) |
| 30 | const QOE_FRAMES: i64 = 200 // frames per rung |
functions
| 32 | func qw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } called by 1: main |
| 33 | func qn(v: i64) -> i64 |
| 37 | func qfw(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } |
| 38 | func qfn(fd: i64, v: i64) -> i64 |
| 44 | func qsortn(a: *i64, n: i64) -> i64 called by 1: rung |
| 59 | func rung(sa: *Tls13ClientSession, fa: i64, sb: *Tls13ClientSession, fb: i64, intv_us: i64, id8: *u8, wirebuf: *u8, payload: *u8, got: *u8, lats: *i64, res: *i64) -> i64 |
| 113 | func main() -> i64 |