Skip to main content

Module temporal_sensor

Module temporal_sensor 

Source
Expand description

Temporal sensing: a purely in-band channel estimator built from send / receive timing alone.

Given a stream of (send_ts, recv_ts) observations (microseconds) it produces three signals the adaptive controller fuses with loss and radio sensors:

  • Inter-arrival jitter (RFC 3550 style): variability of arrival spacing, a proxy for queueing noise and burstiness.
  • One-way-delay (OWD) trend: the slope of OWD over a recent window. The absolute OWD carries the (unknown) clock offset between the two hosts, but the slope cancels it, so a rising trend means “the queue is building” - congestion-driven loss is imminent - regardless of unsynchronized clocks. This is the WebRTC Google Congestion Control mechanism (trendline over one-way delay).
  • Mean inter-arrival: the baseline spacing the jitter is measured against.

The estimator holds no clock and does no I/O; the caller supplies timestamps, so it is deterministic and exhaustively testable with synthetic traces.

Structs§

TemporalSensor
Rolling estimator over send/receive timing.