From 02de2a7543648907ddfc8f37216c84473908e685 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Tue, 13 Oct 2026 10:34:54 -0700 Subject: [PATCH 1/4] quest(m1): plan wire stats, per-root transport bytes in Presence Co-Authored-By: Claude Opus 5.5 --- quest/m1/README.md | 4 ++ quest/m1/wire-stats/README.md | 71 +++++++++++++++++++++++++++++++++ quest/m1/wire-stats/presence.md | 41 +++++++++++++++++++ quest/m1/wire-stats/qmux.md | 20 ++++++++++ quest/m1/wire-stats/rtc.md | 19 +++++++++ quest/m1/wire-stats/srt.md | 23 +++++++++++ 6 files changed, 178 insertions(+) create mode 100644 quest/m1/wire-stats/README.md create mode 100644 quest/m1/wire-stats/presence.md create mode 100644 quest/m1/wire-stats/qmux.md create mode 100644 quest/m1/wire-stats/rtc.md create mode 100644 quest/m1/wire-stats/srt.md diff --git a/quest/m1/README.md b/quest/m1/README.md index 38a87c57bec..37748049ad7 100644 --- a/quest/m1/README.md +++ b/quest/m1/README.md @@ -63,6 +63,9 @@ disabled renditions, ranked just above simulcast rung disable, which publishes them. Rung disable does not wait on it, but until it lands a disabled rung strands WHEP, HLS, and moq-mux export viewers. +Added 2026-10-13: wire stats, beside the other stats work, so an operator +sees each root's transport bytes and not only its payload. + ## Required - [Interop close logs](/quest/m1/interop-close-log.md) - logging fix landed; delete once the required Interop run is green @@ -150,6 +153,7 @@ disabled rung strands WHEP, HLS, and moq-mux export viewers. - [HTTP fetch stats](/quest/m1/http-fetch-stats.md) - each HTTP `/fetch` counts one `requests` and its bytes under the token's tier and root, not a session - [Session outcomes](/quest/m1/session-outcomes.md) - the relay's session stats count refusals by reason and ends by kind, per root and tier, including refusals an embedder records on its stats handle - [Typed refusal reason](/quest/m1/refusal-reason.md) - an auth server's 403 names the reason (including `expired`) and the root and tier, so the relay's session outcomes count and attribute refusals +- [Wire stats](/quest/m1/wire-stats/README.md) - `Presence` counts each root's transport bytes on the wire, `wire_tx` and `wire_rx`, from QUIC, WebSocket, and embedder gateway sources - [Catalog rendition IDs](/quest/m1/catalog-track-id.md) - catalog rendition keys become IDs unique across video and audio, with an optional `track` name, so one catalog lists renditions from several broadcasts - [Media stats](/quest/m1/stats/README.md) - publishers announce a stats track in the catalog, viewers answer a soliciting catalog through a per-catalog `.echo` broadcast, and one model turns both into a health verdict and a preflight report - [JS track handover](/quest/m1/js-group-handover.md) - a JS track subscription resumes across a route swap from the first frame it lacks, so `test/drain` passes at zero latency budget diff --git a/quest/m1/wire-stats/README.md b/quest/m1/wire-stats/README.md new file mode 100644 index 00000000000..fdf00091e2c --- /dev/null +++ b/quest/m1/wire-stats/README.md @@ -0,0 +1,71 @@ +# Wire stats + +## Goal + +The relay's session stats carry `wire_tx` and `wire_rx` in `Presence`: the +bytes each root's connections put on and took off the wire, on each tier. +They appear in the `totals.json` track per tier and in the per-root +`presence.json` track ([Stats](/doc/concept/stats.md#tracks)). An operator +reads what each tenant root costs in transport bytes, not only the payload +`Traffic.bytes` counts. + +Wire bytes are the transport's payload, with IP, UDP, and TCP headers +excluded: + +- **QUIC and WebTransport:** `udp_tx` / `udp_rx`, which include handshake, + ACKs, and retransmits. +- **WebSocket:** the TCP stream's bytes, which include TLS, WebSocket, and + qmux framing and retransmits. +- **Gateways an embedder terminates** (SRT, WebRTC, RTMP): the same counts + from their own stacks. + +Non-goals: + +- **Splitting a shared connection's bytes across roots.** A cluster + connection's wire bytes count under its own root, which is empty. +- **Per-broadcast wire bytes.** Wire bytes belong to connections, not tracks. + +## Plan + +Decided 2026-10-13. Payload undercounts what delivery costs, and by how much +depends on the workload. Measured wire/payload in moq.pro's bench: + +| Workload | Wire/payload | +|---|---| +| Video | 1.04x | +| Audio | 1.23x | +| Small chat-sized messages | 1.29-1.56x | +| Announce-only | 14.4x | + +A provider bills the wire, so a relay operator needs per-root wire bytes to +see cost per tenant. + +- **`Presence`, not `Traffic`.** `Presence` is already per (tier, root) and + per session. `Traffic.bytes` stays payload, and its docs say so. +- **Named `wire_tx` / `wire_rx`.** Rejected: `bytes_sent`, which reads like + payload beside `Traffic.bytes`. +- **Sampled on the stats tick.** Rejected: a once-only count at session end, + which loses a crashed session and lags a long one. +- **One source registry for sessions and embedders.** An embedder registers + a gateway connection's wire source against a (tier, root) on its stats + handle, the same path the relay's own sessions use, like + [session outcomes](/quest/m1/session-outcomes.md)' embedder refusals. + +## Required + +- [Presence wire counters](/quest/m1/wire-stats/presence.md) - QUIC, + WebTransport, and WebSocket sessions and embedder sources count per + (tier, root) +- [qmux byte counters](/quest/m1/wire-stats/qmux.md) - a WebSocket session + reports its TCP bytes +- [moq-srt wire source](/quest/m1/wire-stats/srt.md) - an SRT connection + reports its wire bytes +- [moq-rtc wire source](/quest/m1/wire-stats/rtc.md) - a WebRTC peer reports + its wire bytes + +## Related + +- [Session outcomes](/quest/m1/session-outcomes.md) - the other per-root + `Presence` counters and the embedder stats-handle pattern +- [HTTP fetch stats](/quest/m1/http-fetch-stats.md) - HTTP `/fetch`, which + has no session and stays payload-only diff --git a/quest/m1/wire-stats/presence.md b/quest/m1/wire-stats/presence.md new file mode 100644 index 00000000000..5c31490575b --- /dev/null +++ b/quest/m1/wire-stats/presence.md @@ -0,0 +1,41 @@ +# [M] Presence wire counters + +## Goal + +`Presence` gains cumulative `wire_tx` and `wire_rx`, monotonic from relay +boot. On every stats tick the relay adds the delta of each live session's +transport bytes since its last reading. A closing session adds its final +reading. An embedder registers a connection's wire source against a +(tier, root) on its stats handle, and the same tick reads it. + +## Plan + +- **Sources:** + - **QUIC and WebTransport:** `bytes_sent` / `bytes_received` from + `moq_net::session::Stats`. noq maps them to `udp_tx` / `udp_rx`. + - **WebSocket:** the qmux counters from + [qmux byte counters](/quest/m1/wire-stats/qmux.md). Until those land, a + WebSocket session reports 0: an undercount, never a guess. +- **Read the transport directly.** The tick must not re-arm the per-session + 100 ms sampler that moq#5382 stopped for idle sessions. Read the + connection's counters once per tick, cheaply. Benchmark idle-session CPU + with many sessions before and after. +- **Ticks, tier changes, and closes:** + - A session's per-connection counters reset with the connection, so keep + each session's last reading and add only non-negative deltas. + - `Session::set_tier` moves later deltas to the new tier. + - A close takes one final reading. A slightly stale final sample + under-counts, which is accepted. +- **Embedder API:** a source is a closure returning cumulative + `(tx, rx)`, registered with a guard. Dropping the guard takes its final + reading and unregisters it. +- **Serialization:** `#[serde(default)]` on both fields, so an older + consumer and an older relay interoperate. `Presence` stays `Copy`. The + stats-feed sum (`Presence::add`) and the delta encoding carry them. +- **Docs:** `doc/concept/stats.md` defines both fields and says + `Traffic.bytes` is payload. +- **Tests (on controlled time):** + - a session's wire bytes land under its root and tier; + - a tier change splits them; + - a reconnecting source never lowers a counter; + - a dropped embedder guard adds its last reading. diff --git a/quest/m1/wire-stats/qmux.md b/quest/m1/wire-stats/qmux.md new file mode 100644 index 00000000000..f10ff9179af --- /dev/null +++ b/quest/m1/wire-stats/qmux.md @@ -0,0 +1,20 @@ +# [S] qmux byte counters + +## Goal + +A qmux session over TCP (WebSocket or raw TLS) reports cumulative bytes sent +and received in its `SessionStats`, so moq-net's `Stats.bytes_sent` / +`bytes_received` is nonzero on WebSocket. The counts include TLS, WebSocket, +and qmux framing and TCP retransmits, and exclude TCP/IP headers. + +## Plan + +- moq-dev/web-transport: qmux's `TcpStats` already reads `TCP_INFO` for rtt + and delivery rate. Add `tcpi_bytes_sent` and `tcpi_bytes_received` from + the same read. A platform without them (non-Linux, or Linux before 4.19) + reports `None`, which moq-net maps to 0. +- Release qmux on every line moq builds against, then bump it here and map + the fields in moq-net's WebSocket `Stats` and in the relay's + `SocketStats` wiring (`rs/moq-relay/src/websocket.rs`). +- Test: a loopback WebSocket session's `bytes_sent` covers at least the + payload it wrote. diff --git a/quest/m1/wire-stats/rtc.md b/quest/m1/wire-stats/rtc.md new file mode 100644 index 00000000000..b4b28ae6f7f --- /dev/null +++ b/quest/m1/wire-stats/rtc.md @@ -0,0 +1,19 @@ +# [S] moq-rtc wire source + +## Goal + +moq-rtc gives its embedder each WebRTC peer's cumulative wire bytes, both +directions, for WHIP and WHEP: every STUN, DTLS, SRTP, and SRTCP datagram's +UDP payload. These counts exclude the IP and UDP headers, the same +definition as QUIC's `udp_tx`. + +## Plan + +- Every outbound datagram leaves through one site, `Output::Transmit` → + `socket.send_to` (`rs/moq-rtc/src/session.rs`). Sum `contents.len()` + there. Count inbound datagrams where the mux hands them to the peer. This + needs no str0m stats interval. +- Hand the embedder a cumulative `(tx, rx)` source per peer, in the shape + [Presence wire counters](/quest/m1/wire-stats/presence.md) registers. +- Test: a WHEP session's reported tx covers at least the RTP payload it + sent. diff --git a/quest/m1/wire-stats/srt.md b/quest/m1/wire-stats/srt.md new file mode 100644 index 00000000000..f3cf3c3f03e --- /dev/null +++ b/quest/m1/wire-stats/srt.md @@ -0,0 +1,23 @@ +# [S] moq-srt wire source + +## Goal + +moq-srt gives its embedder each SRT connection's cumulative wire bytes, both +directions, for publish and subscribe. These are the SRT packets (headers, +control packets, and retransmits included) without the IP and UDP headers, +the same definition as QUIC's `udp_tx`. + +## Plan + +- srt-protocol's `SocketStatistics` carries `tx_all_bytes` / + `rx_all_bytes`, which include control packets but also a fixed 20 B IPv4 + + 8 B UDP estimate per packet. Subtract that estimate per packet so the + count is SRT packet bytes. The stats arrive on the socket's + `statistics()` watch. +- `serve_subscribe` and the publish path own the socket today and expose + nothing. Hand the embedder a cumulative `(tx, rx)` source per connection, + in the shape [Presence wire counters](/quest/m1/wire-stats/presence.md) + registers. +- Target the shared-socket integration that drives `srt-protocol` directly, + not `srt-tokio` socket handling. +- Test: an SRT pull's reported tx covers at least the TS payload it sent. From 715fe10f562f2c69e67145d1cc676efdfbec9d1c Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Tue, 13 Oct 2026 11:25:29 -0700 Subject: [PATCH 2/4] quest(m1): wire stats follow the epoch reset, sweep both bench axes, scope RTMP Co-Authored-By: Claude Opus 5.5 --- quest/m1/wire-stats/README.md | 8 ++++++-- quest/m1/wire-stats/presence.md | 18 ++++++++++++------ quest/m1/wire-stats/qmux.md | 8 ++++++-- 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/quest/m1/wire-stats/README.md b/quest/m1/wire-stats/README.md index fdf00091e2c..1bd81f51090 100644 --- a/quest/m1/wire-stats/README.md +++ b/quest/m1/wire-stats/README.md @@ -16,8 +16,12 @@ excluded: ACKs, and retransmits. - **WebSocket:** the TCP stream's bytes, which include TLS, WebSocket, and qmux framing and retransmits. -- **Gateways an embedder terminates** (SRT, WebRTC, RTMP): the same counts - from their own stacks. +- **Gateways an embedder terminates:** SRT and WebRTC through moq-srt's and + moq-rtc's sources. An embedder terminating RTMP on its own socket + registers that socket's `TCP_INFO` counts; moq-rtmp's own `Server` and + client expose no source until a consumer needs one. +- **TCP receive:** bytes TCP delivered, so a peer's duplicate retransmits + are not counted. Non-goals: diff --git a/quest/m1/wire-stats/presence.md b/quest/m1/wire-stats/presence.md index 5c31490575b..cd94236b99b 100644 --- a/quest/m1/wire-stats/presence.md +++ b/quest/m1/wire-stats/presence.md @@ -2,10 +2,13 @@ ## Goal -`Presence` gains cumulative `wire_tx` and `wire_rx`, monotonic from relay -boot. On every stats tick the relay adds the delta of each live session's -transport bytes since its last reading. A closing session adds its final -reading. An embedder registers a connection's wire source against a +`Presence` gains cumulative `wire_tx` and `wire_rx`, under the same reset +contract as its other cumulative fields: counted since the stats group's +epoch began (a group returning from idle starts a new epoch at zero), and +reset with a reclaimed and re-held presence track, so the aggregator never +re-adds bytes an earlier epoch already reported. On every stats tick the +relay adds the delta of each live session's transport bytes since its last +reading. A closing session adds its final reading. An embedder registers a connection's wire source against a (tier, root) on its stats handle, and the same tick reads it. ## Plan @@ -18,8 +21,10 @@ reading. An embedder registers a connection's wire source against a WebSocket session reports 0: an undercount, never a guess. - **Read the transport directly.** The tick must not re-arm the per-session 100 ms sampler that moq#5382 stopped for idle sessions. Read the - connection's counters once per tick, cheaply. Benchmark idle-session CPU - with many sessions before and after. + connection's counters once per tick, cheaply. The tick's work must scale + with sources plus held roots, never their product: benchmark idle-relay + CPU sweeping both the source (session) count and the held per-root + presence track count, before and after. - **Ticks, tier changes, and closes:** - A session's per-connection counters reset with the connection, so keep each session's last reading and add only non-negative deltas. @@ -38,4 +43,5 @@ reading. An embedder registers a connection's wire source against a - a session's wire bytes land under its root and tier; - a tier change splits them; - a reconnecting source never lowers a counter; + - a stats group that idles out and returns starts its new epoch at zero; - a dropped embedder guard adds its last reading. diff --git a/quest/m1/wire-stats/qmux.md b/quest/m1/wire-stats/qmux.md index f10ff9179af..eed111243e1 100644 --- a/quest/m1/wire-stats/qmux.md +++ b/quest/m1/wire-stats/qmux.md @@ -4,8 +4,12 @@ A qmux session over TCP (WebSocket or raw TLS) reports cumulative bytes sent and received in its `SessionStats`, so moq-net's `Stats.bytes_sent` / -`bytes_received` is nonzero on WebSocket. The counts include TLS, WebSocket, -and qmux framing and TCP retransmits, and exclude TCP/IP headers. +`bytes_received` is nonzero on WebSocket. Sent bytes include TLS, WebSocket, +and qmux framing and TCP retransmits, and exclude TCP/IP headers. Received +bytes are what TCP delivered (`tcpi_bytes_received` is RFC 4898's +application-throughput counter), so a peer's duplicate retransmitted payload +is not counted: an accepted undercount on the receive side, documented +beside the field. ## Plan From 182bf722882115ea76ea51dcbddd4404d9b0a698 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Tue, 13 Oct 2026 11:34:45 -0700 Subject: [PATCH 3/4] quest(m1): wire totals feed the aggregator's reset check; document the TCP_INFO requirement Co-Authored-By: Claude Opus 5.5 --- quest/m1/wire-stats/presence.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/quest/m1/wire-stats/presence.md b/quest/m1/wire-stats/presence.md index cd94236b99b..1fa8fad2a6e 100644 --- a/quest/m1/wire-stats/presence.md +++ b/quest/m1/wire-stats/presence.md @@ -36,12 +36,16 @@ reading. A closing session adds its final reading. An embedder registers a conne reading and unregisters it. - **Serialization:** `#[serde(default)]` on both fields, so an older consumer and an older relay interoperate. `Presence` stays `Copy`. The - stats-feed sum (`Presence::add`) and the delta encoding carry them. -- **Docs:** `doc/concept/stats.md` defines both fields and says - `Traffic.bytes` is payload. + stats-feed sum (`Presence::add`), the delta encoding, and the aggregator's + reset check (`Mergeable::regressed` in `rs/moq-stats/src/aggregate.rs`) + carry them, so a node whose wire totals drop is a reset. +- **Docs:** `doc/concept/stats.md` defines both fields, says + `Traffic.bytes` is payload, and says WebSocket wire bytes need a host + whose `TCP_INFO` reports them (Linux 4.19+), counting 0 elsewhere. - **Tests (on controlled time):** - a session's wire bytes land under its root and tier; - a tier change splits them; - a reconnecting source never lowers a counter; - a stats group that idles out and returns starts its new epoch at zero; + - the aggregator treats a wire-only drop as a reset; - a dropped embedder guard adds its last reading. From 95d00e24252900237ceb344e2bff6a9d97ed986b Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Tue, 13 Oct 2026 11:42:04 -0700 Subject: [PATCH 4/4] quest(m2): move wire stats to m2 as an additive capability Co-Authored-By: Claude Opus 5.5 --- quest/m1/README.md | 4 ---- quest/m2/README.md | 1 + quest/{m1 => m2}/wire-stats/README.md | 8 ++++---- quest/{m1 => m2}/wire-stats/presence.md | 2 +- quest/{m1 => m2}/wire-stats/qmux.md | 0 quest/{m1 => m2}/wire-stats/rtc.md | 2 +- quest/{m1 => m2}/wire-stats/srt.md | 2 +- 7 files changed, 8 insertions(+), 11 deletions(-) rename quest/{m1 => m2}/wire-stats/README.md (91%) rename quest/{m1 => m2}/wire-stats/presence.md (97%) rename quest/{m1 => m2}/wire-stats/qmux.md (100%) rename quest/{m1 => m2}/wire-stats/rtc.md (91%) rename quest/{m1 => m2}/wire-stats/srt.md (93%) diff --git a/quest/m1/README.md b/quest/m1/README.md index 8efb221f473..a13e2394022 100644 --- a/quest/m1/README.md +++ b/quest/m1/README.md @@ -41,9 +41,6 @@ Keep one owner per shared code area. Order each prerequisite before its consumer; targeted benchmarks and controlled-time regressions remain part of the feature that needs them. -Added 2026-10-13: wire stats, beside the other stats work, so an operator -sees each root's transport bytes and not only its payload. - ## Required - [Epoch correctness](/quest/m0/broadcast-epoch/README.md) - publisher identity, duplicate suppression, and catalog pinning gate the breaking cut @@ -116,7 +113,6 @@ sees each root's transport bytes and not only its payload. - [Stats traffic resume](/quest/m1/stats-traffic-resume.md) - the aggregator's merged per-path traffic never lowers a counter when a departed node resumes in the same epoch - [Session outcomes](/quest/m1/session-outcomes.md) - the relay's session stats count refusals by reason and ends by kind, per root and tier, including refusals an embedder records on its stats handle - [Typed refusal reason](/quest/m1/refusal-reason.md) - an auth server's 403 names the reason (including `expired`) and the root and tier, so the relay's session outcomes count and attribute refusals -- [Wire stats](/quest/m1/wire-stats/README.md) - `Presence` counts each root's transport bytes on the wire, `wire_tx` and `wire_rx`, from QUIC, WebSocket, and embedder gateway sources - [JS track handover](/quest/m1/js-group-handover.md) - a JS track subscription resumes across a route swap from the first frame it lacks, so `test/drain` passes at zero latency budget - [Drain web connections from accept](/quest/m1/drain-web-accept.md) - a relay drain never exits under an HTTP/1.1 WebSocket client still in TLS or header parsing - [Transport upgrade](/quest/m1/transport-upgrade/README.md) - a session that came up over WebSocket moves to QUIC once the QUIC dial lands, handing over without dropping a group diff --git a/quest/m2/README.md b/quest/m2/README.md index fe11c1948e0..fb19de9213c 100644 --- a/quest/m2/README.md +++ b/quest/m2/README.md @@ -39,6 +39,7 @@ lite-07; bitrate enforcement is not part of this release. - [Discover media headroom](/quest/m2/quic-probe.md) - test useful-media pacing before adding redundant probe traffic - [Viewer up-switch](/quest/m2/viewer-upswitch.md) - a viewer capped by its small rendition finds headroom through PROBE and moves up - [HTTP fetch stats](/quest/m2/http-fetch-stats.md) - each HTTP `/fetch` counts one `requests` and its bytes under the token's tier and root, not a session +- [Wire stats](/quest/m2/wire-stats/README.md) - `Presence` counts each root's transport bytes on the wire, `wire_tx` and `wire_rx`, from QUIC, WebSocket, and embedder gateway sources - [Media stats](/quest/m2/stats/README.md) - publishers announce a stats track in the catalog, viewers answer a soliciting catalog through a per-catalog `.echo` broadcast, and one model turns both into a health verdict and a preflight report - [BBR ACK cleanup](/quest/m2/bbr-ack-cleanup.md) - packet bookkeeping scales with completed entries instead of scanning the flight on every ACK - [Perf](/quest/m2/perf/README.md) - eliminate measured hot-path costs across moq-uring, kio, and the moq-net model diff --git a/quest/m1/wire-stats/README.md b/quest/m2/wire-stats/README.md similarity index 91% rename from quest/m1/wire-stats/README.md rename to quest/m2/wire-stats/README.md index fda0cbe9b92..52727f99525 100644 --- a/quest/m1/wire-stats/README.md +++ b/quest/m2/wire-stats/README.md @@ -57,14 +57,14 @@ see cost per tenant. ## Required -- [Presence wire counters](/quest/m1/wire-stats/presence.md) - QUIC, +- [Presence wire counters](/quest/m2/wire-stats/presence.md) - QUIC, WebTransport, and WebSocket sessions and embedder sources count per (tier, root) -- [qmux byte counters](/quest/m1/wire-stats/qmux.md) - a WebSocket session +- [qmux byte counters](/quest/m2/wire-stats/qmux.md) - a WebSocket session reports its TCP bytes -- [moq-srt wire source](/quest/m1/wire-stats/srt.md) - an SRT connection +- [moq-srt wire source](/quest/m2/wire-stats/srt.md) - an SRT connection reports its wire bytes -- [moq-rtc wire source](/quest/m1/wire-stats/rtc.md) - a WebRTC peer reports +- [moq-rtc wire source](/quest/m2/wire-stats/rtc.md) - a WebRTC peer reports its wire bytes ## Related diff --git a/quest/m1/wire-stats/presence.md b/quest/m2/wire-stats/presence.md similarity index 97% rename from quest/m1/wire-stats/presence.md rename to quest/m2/wire-stats/presence.md index 1fa8fad2a6e..6f1f569b278 100644 --- a/quest/m1/wire-stats/presence.md +++ b/quest/m2/wire-stats/presence.md @@ -17,7 +17,7 @@ reading. A closing session adds its final reading. An embedder registers a conne - **QUIC and WebTransport:** `bytes_sent` / `bytes_received` from `moq_net::session::Stats`. noq maps them to `udp_tx` / `udp_rx`. - **WebSocket:** the qmux counters from - [qmux byte counters](/quest/m1/wire-stats/qmux.md). Until those land, a + [qmux byte counters](/quest/m2/wire-stats/qmux.md). Until those land, a WebSocket session reports 0: an undercount, never a guess. - **Read the transport directly.** The tick must not re-arm the per-session 100 ms sampler that moq#5382 stopped for idle sessions. Read the diff --git a/quest/m1/wire-stats/qmux.md b/quest/m2/wire-stats/qmux.md similarity index 100% rename from quest/m1/wire-stats/qmux.md rename to quest/m2/wire-stats/qmux.md diff --git a/quest/m1/wire-stats/rtc.md b/quest/m2/wire-stats/rtc.md similarity index 91% rename from quest/m1/wire-stats/rtc.md rename to quest/m2/wire-stats/rtc.md index b4b28ae6f7f..1f200adf3a1 100644 --- a/quest/m1/wire-stats/rtc.md +++ b/quest/m2/wire-stats/rtc.md @@ -14,6 +14,6 @@ definition as QUIC's `udp_tx`. there. Count inbound datagrams where the mux hands them to the peer. This needs no str0m stats interval. - Hand the embedder a cumulative `(tx, rx)` source per peer, in the shape - [Presence wire counters](/quest/m1/wire-stats/presence.md) registers. + [Presence wire counters](/quest/m2/wire-stats/presence.md) registers. - Test: a WHEP session's reported tx covers at least the RTP payload it sent. diff --git a/quest/m1/wire-stats/srt.md b/quest/m2/wire-stats/srt.md similarity index 93% rename from quest/m1/wire-stats/srt.md rename to quest/m2/wire-stats/srt.md index f3cf3c3f03e..46700997348 100644 --- a/quest/m1/wire-stats/srt.md +++ b/quest/m2/wire-stats/srt.md @@ -16,7 +16,7 @@ the same definition as QUIC's `udp_tx`. `statistics()` watch. - `serve_subscribe` and the publish path own the socket today and expose nothing. Hand the embedder a cumulative `(tx, rx)` source per connection, - in the shape [Presence wire counters](/quest/m1/wire-stats/presence.md) + in the shape [Presence wire counters](/quest/m2/wire-stats/presence.md) registers. - Target the shared-socket integration that drives `srt-protocol` directly, not `srt-tokio` socket handling.