pub enum CongestionFeedbackCadence {
ReceivedMedia,
PerFrame,
SendEstimate,
}Expand description
When a congestion control feedback generator (transport-wide feedback, RFC 8888) builds its next report, while its interval is not fixed.
Variants§
ReceivedMedia
The default: the interval in which a share (5%) of the media RECEIVED holds one feedback packet, between 50 ms and the generator’s ceiling (250 ms).
No specification has this form: it is the engine’s choice, kept because every
form the texts give measured worse in the capacity instrument
(tests/capacity_instrument.rs, each against this one on the same seeds): the drafts’
30 ms (Self::PerFrame), 100 ms always, 30 to 100 ms by the media received and 30
to 100 ms by the endpoint’s own send estimate each broke the merge-point rule of
docs/capacity-instrument.md (every form that reports more often than 50 ms costs
the picture behind a short queue and after an outage; 100 ms always costs the audio
behind a long one). The Performance behaviour profile takes it with 2.5% and 500 ms.
PerFrame
The drafts’ cadence (the StrictRfc behaviour profile). draft-ietf-rmcat-gcc-02
section 3: “The RECOMMENDED feedback interval is once per received video frame or at
least once every 30 ms if audio-only or multi-stream. If the feedback overhead needs
to be limited this interval can be increased to 100 ms”;
draft-holmer-rmcat-transport-wide-cc-extensions-01 section 3: “It is recommended that
a feedback message is sent for every frame received, but in cases of low uplink
bandwidth it is acceptable to send them less frequently”.
A session whose only reported stream is one video stream is reported when a frame of
it ends (the RTP marker), and after PER_FRAME_MAX_INTERVAL without one; any other
session (audio alone, audio beside video, several streams) every
PER_FRAME_INTERVAL. The overhead “needs to be limited” when the feedback would
take more than the RTCP bandwidth gives this endpoint (RFC 4585 section 3.2: “FB
messages are part of the RTCP control streams and thus subject to the RTCP bandwidth
constraints”; RFC 3550 section 6.2: 5% of the session bandwidth, shared equally by the
members): the interval is then the time in which this endpoint’s share of the RTCP
bandwidth (RtcpBandwidthShare, from the RTCP session) holds one feedback packet,
up to PER_FRAME_MAX_INTERVAL and no longer.
SendEstimate
libwebrtc’s cadence (the Chrome behaviour profile): the interval in which 5% of the
endpoint’s own send estimate holds one 68-octet report, between 50 and 250 ms; 100 ms
until an estimate is known
(modules/remote_bitrate_estimator/transport_sequence_number_feedback_generator.cc,
OnSendBandwidthEstimateChanged, fed from call/call.cc OnTargetTransferRate). The
estimate is the congestion controller’s (SendEstimate); the
share and the ceiling are the generator’s (with_feedback_share,
with_max_adaptive_interval).