Skip to main content

CongestionFeedbackCadence

Enum CongestionFeedbackCadence 

Source
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).

Trait Implementations§

Source§

impl Clone for CongestionFeedbackCadence

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for CongestionFeedbackCadence

Source§

impl Debug for CongestionFeedbackCadence

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CongestionFeedbackCadence

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for CongestionFeedbackCadence

Source§

impl PartialEq for CongestionFeedbackCadence

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CongestionFeedbackCadence

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.