rtciv0.5.0

rtci-interceptor

Sans-I/O RTP/RTCP interceptor pipeline for WebRTC: RTCP reports, NACK, TWCC, congestion control, pacing, FEC. 1 public module, 333 items at 0.5.0.

README

A composable pipeline of RTP / RTCP processors ("interceptors") between the application and the wire: the RTCP session (sender and receiver reports, SDES, BYE, compound packets and their timing), NACK generation and retransmission (with RTX), transport-wide congestion control feedback, bandwidth estimation (GCC), pacing, FEC encoders and decoders, a jitter buffer, key-frame requests and RTCP extended reports.

Specifications

  • RFC 3550, RTP and its RTCP timing rules; RFC 4585, RTP/AVPF feedback
  • RFC 4588, RTP retransmission; RFC 5104, codec control messages
  • RFC 8888, RTCP congestion control feedback; draft-holmer-rmcat-transport-wide-cc-extensions
  • draft-ietf-rmcat-gcc, Google congestion control
  • RFC 8627 and draft-ietf-payload-flexible-fec-scheme-03, FlexFEC; RFC 5109, ULPFEC
  • RFC 3611, RTCP extended reports; RFC 6679, ECN for RTP; RFC 8083, circuit breakers
  • RFC 5506, reduced-size RTCP; RFC 7022, CNAMEs; RFC 7728, pause and resume; RFC 8108, multiple streams

Clause-by-clause status, with the test that proves each clause: rfc3550, rfc4585, rfc4588, rfc8888, draft-ietf-rmcat-gcc, rfc8627, rfc5109, rfc3611.

Use

Registry assembles a chain from builders (NackGeneratorBuilder, TwccSenderBuilder, RtcpSessionBuilder, ...); the root crate (rtci) builds one per peer connection from its interceptor_registry configuration. A new interceptor implements the traits with the derive macros of rtci-interceptor-derive. The crate documentation describes the chain's direction rules and has a quick-start example.

The congestion controller's target in a peer connection. rtci's default interceptors run the GCC estimator (Gcc in a CongestionControlInterceptor, one per transport) with the pacer. Read the target from the handles rtci's register_default_interceptors_with_handles returns (DefaultInterceptorHandles:: congestion_control, CongestionControlHandle::target_bitrate), or per encoding from RTCRtpSender::target_bitrates. GccInterceptorBuilder and its GccHandle are for a chain assembled by hand: build() returns a factory closure for Interceptor::with (PassThroughInterceptor::new().with(builder.build())), and a GccInterceptor put in a default registry replaces the per-transport controller (see GccInterceptorBuilder).

Sans-I/O

Each interceptor is a sansio::Protocol: packets in, packets out, timeouts polled and handled. The crate does no I/O and reads no clock: every call that depends on time takes an Instant from the caller.

Licence

Licensed under either of the MIT licence or the Apache License, Version 2.0, at your option.

This crate is part of the rtci workspace, which descends from webrtc-rs/rtc and is developed independently; FORK.md lists what it carries over upstream. Upstream's licence and copyright notices are retained.

rtci_interceptor

RTC Interceptor - Sans-IO interceptor framework for RTP/RTCP processing.

  • structAbsSendTimeInterceptorfrom gcc::remb::AbsSendTimeInterceptorStamps the abs-send-time header extension on every packet of a local stream that negotiated it (see the gcc::remb module's source documentation): 6.18 fixed-point seconds of the instant the packet passes, which is as it leaves the pacer when the interceptor sits below it (the default set puts it at Slot::Custom(1_900)).
  • structAcknowledgementfrom rtpfb::acknowledgement::AcknowledgementOne packet's fate, as reported by the receiver.
  • structAdaptiveThresholdfrom gcc::threshold::AdaptiveThresholdA threshold that follows the trend it is judging.
  • structArrivalGroupfrom gcc::arrival_group::ArrivalGroupA run of packets that departed together, and when they turned up.
  • structArrivalGroupAccumulatorfrom gcc::arrival_group::ArrivalGroupAccumulatorCollects acknowledgements into bursts and emits the gradient between consecutive bursts.
  • structAttributedPacketfrom packet::AttributedPacketA packet together with what the interceptors have learned about it.
  • structBitArrayfrom flexfec::bit_array::BitArrayA 128-bit mask, indexed from the most significant bit.
  • structCallQualityfrom xr::CallQualityThe call quality figures of the VoIP Metrics block (RFC 3611 section 4.7.5), which come from a call quality model of the decoded media (ITU-T G.107 / ETSI TS 101 329-5): the application's to compute, as the engine does not decode. Given to XrReportHandle::set_call_quality. None, or a value outside the field's range, is sent as 127, "unavailable" (section 4.7.5: other values "MUST not be …
  • structCcFeedbackRecorderfrom rfc8888::recorder::CcFeedbackRecorderRecords packet arrivals per stream and builds feedback reports from them.
  • structCircuitBreakerBuilderfrom circuit_breaker::CircuitBreakerBuilderBuilder for CircuitBreakerInterceptor.
  • structCircuitBreakerHandlefrom circuit_breaker::CircuitBreakerHandleThe application's view of the circuit breaker, and its way to restart a ceased flow.
  • structCircuitBreakerInterceptorfrom circuit_breaker::CircuitBreakerInterceptorThe RTP circuit breaker of RFC 8083: stops a flow whose receiver has gone, whose media is not arriving, or that is persistently taking far more than its share.
  • structCircuitBreakerNoticefrom circuit_breaker::CircuitBreakerNoticeThe circuit breaker ceased or restarted a flow (RFC 8083 section 4.5).
  • structCongestionControlBuilderfrom cc::interceptor::CongestionControlBuilderBuilder for CongestionControlInterceptor.
  • structCongestionControlHandlefrom cc::interceptor::CongestionControlHandleThe application's end of the congestion controller: the estimate, pulled when the encoder wants it, and the limits only the application knows.
  • structCongestionControlInterceptorfrom cc::interceptor::CongestionControlInterceptorRecords every departing packet, resolves the remote's feedback against it, and drives a BandwidthEstimator.
  • structConstantBitratefrom cc::estimator::ConstantBitrateAn estimator that always says the same number.
  • structDelayTrendfrom gcc::slope::DelayTrendOne filtered delay-gradient reading.
  • structEcnValidationfrom rfc8888::ecn::EcnValidationRFC 6679 sections 7.2-7.4 for one RTP stream, fed from RFC 8888 reports. See the module documentation.
  • structEstimatorStatsfrom cc::estimator::EstimatorStatsWhat an estimator is willing to say about itself.
  • structFecRatefrom cc::fec_rate::FecRateThe loss-driven amount of FEC for one sender. See the module documentation.
  • structFecSentfrom fec_sent::FecSentFEC carried by an outgoing RTP packet, attached by the FEC encoder that wrote it (Attribute::Custom).
  • structFecSessionSsrcMapfrom fec_session::FecSessionSsrcMapMaps the SSRCs of a FEC session (RFC 5109 section 14.1) between the wire and the chain; see the fec_session module's source documentation.
  • structFecSessionStreamfrom stream_info::FecSessionStreamThe FEC stream of a media stream, sent in a separate RTP session (RFC 5109 section 14.1: "the FEC stream and the payload stream SHOULD be sent through two separate RTP session").
  • structFeedbackTimelinefrom rtpfb::convert::FeedbackTimelineThe receiver's clock as successive feedback reports give it, without the wraps.
  • structFirCommandsfrom keyframe::FirCommandsThe FIR commands an endpoint sends (RFC 5104 section 4.3.1): each new command for a media sender takes the next command sequence number (modulo 256), a repetition keeps it, and the "SSRC of media source" field of the packet is zero, the target being in the FCI.
  • structFlexFec03Decoderfrom flexfec::draft03::decoder::FlexFec03DecoderRecovers media packets lost from a stream protected by FlexFEC draft-03.
  • structFlexFec03Encoderfrom flexfec::draft03::encoder::FlexFec03EncoderBuilds FlexFEC draft-03 repair packets.
  • structFlexFec03ReceiveBuilderfrom flexfec::draft03::receiver::FlexFec03ReceiveBuilderBuilder for FlexFec03ReceiveInterceptor.
  • structFlexFec03ReceiveInterceptorfrom flexfec::draft03::receiver::FlexFec03ReceiveInterceptorRecovers media lost from streams protected by FlexFEC draft-03.
  • structFlexFec03SendBuilderfrom flexfec::draft03::sender::FlexFec03SendBuilderBuilder for FlexFec03SendInterceptor.
  • structFlexFec03SendInterceptorfrom flexfec::draft03::sender::FlexFec03SendInterceptorProduces FlexFEC draft-03 repair packets for outgoing media.
  • structFlexFecBlockfrom flexfec::rfc8627::header::FlexFecBlockOne block of an R=0 FEC header: the source stream (taken from the repair packet's CSRC list), its SN base, and the mask or L/D that follows.
  • structFlexFecDecoderfrom flexfec::rfc8627::decoder::FlexFecDecoderRecovers lost source packets from RFC 8627 FlexFEC repair packets (flexfec, not flexfec-03): flexible masks, fixed L/D rows and columns (1-D and 2-D, decoded iteratively), retransmissions, and repair packets that protect several source streams.
  • structFlexFecDecoderConfigfrom flexfec::rfc8627::decoder::FlexFecDecoderConfigBounds on what a FlexFecDecoder keeps, all of them derived from the repair window the session agreed to (RFC 8627 sections 1.1.2 and 9).
  • structFlexFecDecoderStatsfrom flexfec::rfc8627::decoder::FlexFecDecoderStatsCounters a FlexFecDecoder keeps about itself.
  • structFlexFecEncoderfrom flexfec::rfc8627::encoder::FlexFecEncoderBuilds RFC 8627 FlexFEC repair packets: the format negotiated as flexfec (video/flexfec and the other three media types of RFC 8627 section 5.1), not flexfec-03.
  • structFlexFecParametersfrom flexfec::rfc8627::params::FlexFecParametersThe parameters of an RFC 8627 flexfec payload type beyond its clock rate.
  • structFlexFecReceiveBuilderfrom flexfec::rfc8627::receiver::FlexFecReceiveBuilderBuilder for FlexFecReceiveInterceptor.
  • structFlexFecReceiveInterceptorfrom flexfec::rfc8627::receiver::FlexFecReceiveInterceptorRecovers media lost from streams protected by RFC 8627 FlexFEC (flexfec, not flexfec-03).
  • structFlexFecSendBuilderfrom flexfec::rfc8627::sender::FlexFecSendBuilderBuilder for FlexFecSendInterceptor.
  • structFlexFecSendInterceptorfrom flexfec::rfc8627::sender::FlexFecSendInterceptorProduces RFC 8627 FlexFEC repair packets (flexfec, not flexfec-03) for outgoing media.
  • structFlowCodepointsfrom cc::estimator::FlowCodepointsThe DSCP each stream the connection sends is marked with (RFC 8837 Table 1: by the flow's type and the encoding's networkPriority / priority; RTX and FEC streams with their encoding's codepoint; 0 for a flow the DSCP fallback turned back, RFC 8835 section 4.2), as (SSRC, DSCP). The congestion control interceptor hands it to its estimator (BandwidthEstimator::on_flow_codepoints); a stream …
  • structGccfrom gcc::estimator::GccGoogle Congestion Control.
  • structGccHandlefrom gcc::twcc_gcc::GccHandleRead-only handle to the latest GCC bandwidth estimate.
  • structGccInterceptorfrom gcc::twcc_gcc::GccInterceptorSender-side GCC bandwidth estimator interceptor.
  • structGccInterceptorBuilderfrom gcc::twcc_gcc::GccInterceptorBuilderBuilder for GccInterceptor, for a chain assembled by hand.
  • structGccSharedfrom gcc::twcc_gcc::GccSharedShared state written by GccInterceptor and read by GccHandle.
  • structHistoryfrom rtpfb::history::HistoryRecords outgoing packets and matches incoming feedback against them.
  • structInterGroupDelayfrom gcc::arrival_group::InterGroupDelayThe delay gradient between two consecutive groups.
  • structIntervalPliInterceptorfrom intervalpli::generator::IntervalPliInterceptorRequests a keyframe from every bound remote stream on a fixed interval.
  • structJitterBufferfrom jitterbuffer::buffer::JitterBufferA single stream's packets, ordered by extended sequence number.
  • structJitterBufferBuilderfrom jitterbuffer::receiver::JitterBufferBuilderBuilder for JitterBufferInterceptor.
  • structJitterBufferControlfrom adaptive_jitter_buffer::JitterBufferControlThe application's jitter buffer target for the streams of one receiver (W3C webrtc 5.3 jitterBufferTarget): written into the chain (into_packet), the jitter buffer takes it for each SSRC, now or when the stream is bound, and holds those streams' packets for target clamped to its minimum and maximum delay instead of its adaptive target; None returns them to the adaptive target. Consumed …
  • structJitterBufferDiscardsfrom jitterbuffer::discards::JitterBufferDiscardsThe packets each remote stream's jitter buffer discarded, shared by a jitter buffer and the XR generator: give the same handle to JitterBufferBuilder::with_discard_count (or AdaptiveJitterBufferBuilder::with_discard_count) and to XrReportBuilder::with_jitter_buffer_discards, and the VoIP Metrics block's discard rate is the buffer's (RFC 3611 section 4.7.1). Without it the generator …
  • structJitterBufferInterceptorfrom jitterbuffer::receiver::JitterBufferInterceptorHolds each stream's packets for a fixed span of time, then releases them in order.
  • structJitterBufferMetricsfrom xr::JitterBufferMetricsThe jitter buffer the application plays a stream out of, for the VoIP Metrics block (RFC 3611 section 4.7.7). The engine does not play media out, so it cannot know these itself.
  • structJitterBufferStatsfrom jitterbuffer::buffer::JitterBufferStatsCounters describing what a buffer has had to cope with.
  • structKalmanfrom gcc::kalman::KalmanKalman filter over the one-way delay gradient, per draft-ietf-rmcat-gcc-02 §5.3.
  • structKeyFrameRequestInterceptorfrom keyframe::KeyFrameRequestInterceptorMarks inbound RTCP that asks for a key frame — a Picture Loss Indication (RFC 4585 §6.3.1) or a Full Intra Request (RFC 5104 §4.3.1) — Attribute::DeliverToApplication, so it passes the chain's terminus (NoopInterceptor) instead of ending there.
  • structLossControllerfrom gcc::loss::LossControllerLoss-based congestion control, per draft-ietf-rmcat-gcc-02 §5.5.
  • structMediaUsabilityfrom circuit_breaker::MediaUsabilityThe application's bound on what is still usable media (section 4.4). The RFC leaves the bound to the application on purpose.
  • structMinimumTargetfrom nack::responder::MinimumTargetRides with Attribute::TargetBitrateChanged: the congestion controller's minimum bit rate, the floor its target never goes under. Where lowering the original media by the retransmission reserve would take it under this floor the NACK responder lets the retransmissions take the window's room first (RetransmissionRateLimit::WithinTarget). Read with AttributedPacket::custom.
  • structNackGeneratorBuilderfrom nack::generator::NackGeneratorBuilderBuilder for the NackGeneratorInterceptor.
  • structNackGeneratorInterceptorfrom nack::generator::NackGeneratorInterceptorInterceptor that generates NACK requests for missing RTP packets.
  • structNackResponderBuilderfrom nack::responder::NackResponderBuilderBuilder for the NackResponderInterceptor.
  • structNackResponderInterceptorfrom nack::responder::NackResponderInterceptorInterceptor that responds to NACK requests by retransmitting packets.
  • structNoopInterceptorfrom noop::NoopInterceptorDecides what becomes of inbound RTCP once the interceptors have had it, and passes everything else through.
  • structNtpTimestampBuilderfrom ntp_timestamp::NtpTimestampBuilderBuilder for NtpTimestampInterceptor.
  • structNtpTimestampInterceptorfrom ntp_timestamp::NtpTimestampInterceptorStamps an RFC 6051 NTP-format timestamp on the packets of local streams that negotiated ntp-64 or ntp-56; see the ntp_timestamp module's source documentation for which packets.
  • structOveruseDetectorfrom gcc::overuse::OveruseDetectorTurns a filtered delay trend into a Usage, with hysteresis.
  • structPacerfrom pacing::pacer::PacerA token bucket in bits, refilled from elapsed time.
  • structPacerBuilderfrom pacing::sender::PacerBuilderBuilder for PacerInterceptor.
  • structPacerDiscardfrom pacing::sender::PacerDiscardMedia the pacer discarded for want of room in the target (QueueOverflow::Drop): whole frames of one stream (see "Discarding media" on PacerInterceptor).
  • structPacerFlushfrom pacing::sender::PacerFlushThe pacer gave its queue up at a collapse of the target (Backlog::Flush, see "A capacity collapse" on PacerInterceptor): sent application-ward on an empty RTCP carrier, after the PacerDiscard of each stream that had media queued. The NACK responder forgets everything sent before it on the streams named (their retransmission buffers, the requests waiting): a NACK for any of it is answered …
  • structPacerInterceptorfrom pacing::sender::PacerInterceptorReleases queued packets at a target rate rather than as fast as they arrive.
  • structPacerPausefrom pacing::sender::PacerPauseRides a target of zero (Attribute::TargetBitrateChanged) that the pacer hands application-ward while it tells the source to pause (see "Pausing the source" on PacerInterceptor): the congestion controller's target, for what application-ward of the pacer needs the rate the path carries (the NACK responder's retransmission rate limit). Read with AttributedPacket::custom.
  • structPacerPrioritiesfrom pacing::sender::PacerPrioritiesThe streams' weights in the pacer's share by priority (see "Order of service" on PacerInterceptor): each media SSRC with the weight of its encoding's priority, each level twice the level below (RFC 8835 section 4.1; the peer connection gives very-low 1, low 2, medium 4, high 8). A bound stream's RTX and FEC streams weigh with it; a stream not named weighs 2 (low, the W3C default). Each …
  • structPacketReportfrom rtpfb::acknowledgement::PacketReportOne outgoing packet, joined with whatever the receiver later said about it.
  • structPassThroughInterceptorfrom pass_through::PassThroughInterceptorHands every packet on unchanged, in both directions: the inner end of a nested interceptor (one written with the Interceptor derive, such as GccInterceptor) placed in a Registry slot.
  • structPathChangedfrom rtp_session::PathChangedA control message: the transport moved to another selected candidate pair (an ICE restart, a switch to another pair, a move to another network), after its first one. The peer connection reads it into the chain on the read leg, as an empty RTCP packet (PathChanged::into_packet), so it passes the congestion controllers first: they sit wire-most. Each starts its estimate over and forgets what …
  • structPauseCapabilityfrom pause_resume::PauseCapabilityWhat a negotiated ccm pause line says (RFC 7728 section 9, Figure 8): pause, then nowait and config=<n> in any order; unknown attributes are ignored ("Unknown pause attributes MUST be ignored").
  • structPauseResumeBuilderfrom pause_resume::PauseResumeBuilderBuilder for PauseResumeInterceptor.
  • structPauseResumeHandlefrom pause_resume::PauseResumeHandleThe application's side of PauseResumeInterceptor: asks a remote stream to pause or resume, pauses its own streams by local decision, and reads where each stream is. A request takes effect at the interceptor's next timeout, which the interceptor asks for at once.
  • structPauseResumeInterceptorfrom pause_resume::PauseResumeInterceptorRFC 7728 pause and resume for the streams that negotiated ccm pause; see the module documentation.
  • structPerRtpSessionfrom rtp_session::PerRtpSessionAn interceptor instance per RTP session; see the rtp_session module's source documentation.
  • structProbeControllerfrom cc::probe::ProbeControllerDecides when a probe cluster is sent and at what rate.
  • structProbeFillfrom cc::probe::ProbeFillHow much padding a probe cluster needs, from the pacer that sends it.
  • structProbePacketfrom cc::probe::ProbePacketThe mark of an RTP packet the pacer released as part of a probe cluster, as an Attribute::Custom on its way to the wire.
  • structProbeRequestfrom cc::probe::ProbeRequestA probe cluster the congestion controller asks for.
  • structProtectionCoveragefrom flexfec::coverage::ProtectionCoverageThe assignment of media packets to repair packets.
  • structQueueLimitDetectorfrom gcc::queue_limit::QueueLimitDetectorThe queueing delay of the packets reported, and whether a loss among them is the queue overflowing.
  • structRateCalculatorfrom gcc::rate_calc::RateCalculatorThe rate the far end is receiving, from acknowledged bytes over a sliding window.
  • structRateControllerfrom gcc::rate_control::RateControllerThe AIMD controller: a usage signal and a received rate in, a target bitrate out.
  • structReceiverReportBuilderfrom report::receiver::ReceiverReportBuilderBuilder for the ReceiverReportInterceptor.
  • structReceiverReportInterceptorfrom report::receiver::ReceiverReportInterceptorInterceptor that generates RTCP Receiver Reports.
  • structRedAudioBuilderfrom audio_red::RedAudioBuilderBuilder for RedAudioInterceptor.
  • structRedAudioInterceptorfrom audio_red::RedAudioInterceptorRFC 2198 audio redundancy for the streams that negotiated it; see the module documentation.
  • structRedundantEncodingfrom audio_red::RedundantEncodingAnother encoding of a packet's audio, for the RED packets after it to carry instead of a copy of the packet (RFC 8854 section 4.1: when multi-packet protection is needed, "redundant encoding with reduced-bitrate Opus encodings SHOULD be used"; RFC 2198 section 3: "the redundant encoding shall use significantly less bandwidth"). The engine does not encode audio: the application's encoder makes …
  • structRegistryfrom registry::RegistryCollects interceptors and assembles them into a chain.
  • structRembGeneratorBuilderfrom gcc::remb::RembGeneratorBuilderBuilds a RembGeneratorInterceptor.
  • structRembGeneratorInterceptorfrom gcc::remb::RembGeneratorInterceptorGenerates REMB for the remote streams that negotiated goog-remb and no per-packet congestion feedback (see the gcc::remb module's source documentation).
  • structRepeatInRegularReportsfrom rtcp_session::RepeatInRegularReportsAttached as an Attribute::Custom to RTCP packets written into the chain: besides sending them as it sends any feedback (in an Early packet when RFC 4585 3.5.2 allows one, in the next Regular packet otherwise), the RTCP session puts a copy of them into each of the next count Regular compound packets after the one that carried them.
  • structReportfrom rtpfb::acknowledgement::ReportA batch of packet reports, with the round trip time they imply.
  • structReportedRetransmissionfrom twcc::sender::ReportedRetransmissionOne retransmission the feedback reported on: the SSRC it left on, the sequence number of the packet it repairs (the original sequence number on an RTX stream, RFC 4588 section 4; the key the pacer's RetransmissionsLeft uses), and when that retransmission was made. A 16-bit sequence number names a different packet every cycle; the instant lets the reader tell a report on a retransmission of …
  • structRetransmissionReservefrom nack::responder::RetransmissionReserveThe retransmission reserve of RetransmissionRateLimit::WithinTarget, in bits per second: the part of the congestion controller's target kept for retransmissions, which the target reported for the original media leaves out.
  • structRetransmissionsLeftfrom pacing::sender::RetransmissionsLeftThe retransmissions that left the pacer, or were dropped there, since the last notice: each as (SSRC on the wire, sequence number of the packet it repairs; the original sequence number on an RTX stream). The pacer sends it application-ward on an empty RTCP carrier; the NACK responder treats a packet as on its way while its retransmission waits in the pacer and counts the resend interval from …
  • structRetransmissionsReportedfrom twcc::sender::RetransmissionsReportedWhat transport-wide feedback reported on the retransmissions this interceptor numbered, since the last notice. The TWCC sender sends it application-ward on an empty RTCP carrier when a feedback packet reports on one; the NACK responder does not repair again a packet whose repair arrived, and answers at once a request for one whose repair was lost. Probe padding (no payload) is not reported. …
  • structRfc8888Builderfrom rfc8888::sender::Rfc8888BuilderBuilder for Rfc8888Interceptor.
  • structRfc8888Interceptorfrom rfc8888::sender::Rfc8888InterceptorReports when each packet of each bound remote stream arrived ([RFC 8888]).
  • structRtcpBandwidthfrom rtcp_session::RtcpBandwidthThe bandwidth figures a session description gives for RTCP, all in bits per second.
  • structRtcpBandwidthSharefrom rtcp_session::RtcpBandwidthShareThis endpoint's share of the RTCP bandwidth as the session calculates it now: the RTCP bandwidth (RFC 3550 section 6.2: 5% of the session bandwidth, or what b=RS / b=RR give) divided equally among the members (section 6.3.1), times the number of this endpoint's SSRCs that take part (RFC 8108 section 5: each is a member).
  • structRTCPFeedbackfrom stream_info::RTCPFeedbackRTCP feedback mechanism negotiated for the stream.
  • structRtcpReportingIntervalfrom rtcp_session::RtcpReportingIntervalThe deterministic RTCP reporting interval Td (RFC 3550 section 6.3.1: the calculated interval without its random variation) as this session calculates it now, for a member that sends RTP and for one that does not.
  • structRtcpSessionBuilderfrom rtcp_session::RtcpSessionBuilderBuilder for RtcpSessionInterceptor.
  • structRtcpSessionInterceptorfrom rtcp_session::RtcpSessionInterceptorThe RTCP session of an endpoint (RFC 3550 section 6, RFC 4585 section 3, RFC 8108).
  • structRTPHeaderExtensionfrom stream_info::RTPHeaderExtensionRTP header extension as negotiated via SDP (RFC 5285).
  • structRtpSessionfrom rtp_session::RtpSessionNames the RTP session (the transport) a packet belongs to. Carried as an Attribute::Custom; read it with RtpSession::of.
  • structRtpSessionAssignmentfrom rtp_session::RtpSessionAssignmentA control message: the SSRCs (local and remote, media and repair) of the m= sections that run in RTP session session. Written into the chain as an empty RTCP packet (RtpSessionAssignment::into_packet); every PerRtpSession on the way takes note and moves a stream it holds in another session.
  • structSenderReportBuilderfrom report::sender::SenderReportBuilderBuilder for the SenderReportInterceptor.
  • structSenderReportInterceptorfrom report::sender::SenderReportInterceptorInterceptor that filters hop-by-hop RTCP reports.
  • structSendEstimatefrom cc::interceptor::SendEstimateRides with Attribute::TargetBitrateChanged application-ward: the congestion controller's estimate of what this endpoint may send, as the estimator has it. The target beside it is lowered on its way up (the NACK responder takes its retransmission reserve off, the pacer writes zero for a pause); this is not. The congestion control feedback generators size …
  • structSlopeEstimatorfrom gcc::slope::SlopeEstimatorGrouping plus filtering: acknowledgements in, a delay trend out.
  • structStreamInfofrom stream_info::StreamInfoStream context passed to interceptor bind/unbind callbacks.
  • structStreamsNotSendingfrom pacing::sender::StreamsNotSendingThe local streams that may not send media now: the SSRCs (media, RTX and FEC) of the senders whose negotiated direction does not send (recvonly, inactive). RFC 8866 section 6.7.4: "No media is sent over an inactive media stream", and section 6.7.1: a receive-only stream is in "receive-only mode"; RFC 3264 section 5.1. W3C webrtc-pc 4.4.1.6: an answer sets [CurrentDirection], and a …
  • structTmmbEntryfrom cc::tmmbr::TmmbEntryOne FCI entry of a TMMBR or a TMMBN (RFC 5104 sections 4.2.1.1 and 4.2.2.1).
  • structTstnResponderBuilderfrom tst::TstnResponderBuilderBuilder for TstnResponderInterceptor.
  • structTstnResponderInterceptorfrom tst::TstnResponderInterceptorAnswers each TSTR a local media sender receives with a TSTN (RFC 5104 section 4.3.3.2).
  • structTstrCommandsfrom tst::TstrCommandsCommand sequence numbers for TSTR (RFC 5104 section 4.3.2.1: "The sequence number space is unique for each pairing of the SSRC of command source and the SSRC of the command target. The sequence number SHALL be increased by 1 modulo 256 for each new command. A repetition SHALL NOT increase the sequence number").
  • structTwccReceiverBuilderfrom twcc::receiver::TwccReceiverBuilderBuilder for the TwccReceiverInterceptor.
  • structTwccReceiverInterceptorfrom twcc::receiver::TwccReceiverInterceptorInterceptor that tracks incoming RTP packets and generates TWCC feedback.
  • structTwccSenderBuilderfrom twcc::sender::TwccSenderBuilderBuilder for the TwccSenderInterceptor.
  • structTwccSenderInterceptorfrom twcc::sender::TwccSenderInterceptorNumbers every departing RTP packet so the remote can report on it (draft-holmer-rmcat-transport-wide-cc-extensions-01).
  • structVbcmCommandsfrom tst::VbcmCommandsCommand sequence numbers for VBCM (RFC 5104 section 4.3.4.1: "The sequence number SHALL be increased by 1 modulo 256 for each new command. A repetition SHALL NOT increase the sequence number").
  • structWireImagesfrom wire_image::WireImagesThe reading end of a WireImageTap.
  • structWireImageTapfrom wire_image::WireImageTapCopies departing RTP packets of the watched streams, as they leave. Changes nothing: every packet passes through as it came.
  • structXrReportBuilderfrom xr::XrReportBuilderBuilder for XrReportInterceptor.
  • structXrReportHandlefrom xr::XrReportHandleThe application's way to give the XR generator what only it knows, while the connection runs: the call quality figures of each received stream's VoIP Metrics block (RFC 3611 section 4.7.5). Built with XrReportBuilder::build_with_handle; clones share the state.
  • structXrReportInterceptorfrom xr::XrReportInterceptorWrites RFC 3611 report blocks about the remote streams that asked for them.
  • enumAfterDropProbefrom cc::probe::AfterDropProbeWhat is probed for after a large drop of the target (ProbeController::with_after_drop_probe).
  • enumAttributefrom packet::AttributeA fact about a packet, attached by one interceptor and readable by the rest.
  • enumAudioRedundancyfrom audio_red::AudioRedundancyWhen a local audio stream whose section negotiated RED (RFC 2198) is sent in RED. Received RED is taken apart in every case.
  • enumCircuitBreakerReasonfrom circuit_breaker::CircuitBreakerReasonWhich breaker stopped a flow.
  • enumCircuitBreakerStatefrom circuit_breaker::CircuitBreakerStateWhat the circuit breaker is doing with one flow.
  • enumCongestionFeedbackCadencefrom cc::feedback_cadence::CongestionFeedbackCadenceWhen a congestion control feedback generator (transport-wide feedback, RFC 8888) builds its next report, while its interval is not fixed.
  • enumCongestionFeedbackFormatfrom cc::feedback::CongestionFeedbackFormatThe per-packet feedback format a stream's arrivals are reported in.
  • enumEcnFailurefrom rfc8888::ecn::EcnFailureAn ECN failure a stream's validation detected (RFC 6679 sections 7.2.1 and 7.4.2: detected failures and erroneous behaviour "should" be logged "to enable follow up"). Each is logged and kept for the application (EcnValidation::take_failures).
  • enumEcnInitiationfrom rfc8888::ecn::EcnInitiationHow a stream starts using ECN.
  • enumEcnMarkingfrom rfc8888::ecn::EcnMarkingWhich ECT codepoint a stream that marks sends.
  • enumEcnStatefrom rfc8888::ecn::EcnStateWhere a stream is in RFC 6679's procedure.
  • enumEctPreferencefrom rfc8888::ecn::EctPreferenceWhich ECT codepoint a receiver asks the sender to use: the ect= parameter of its a=ecn-capable-rtp (RFC 6679 section 6.1). Left out, the sender uses ECT(0).
  • enumFlexFecEncodeErrorfrom flexfec::rfc8627::encoder::FlexFecEncodeErrorWhy a repair packet could not be built.
  • enumFlexFecHeaderfrom flexfec::rfc8627::header::FlexFecHeaderA parsed FEC header (section 4.2.2).
  • enumFlexFecHeaderErrorfrom flexfec::rfc8627::header::FlexFecHeaderErrorWhy a repair packet's FEC header cannot be used.
  • enumFlexFecLayoutfrom flexfec::rfc8627::encoder::FlexFecLayoutHow a repair packet names the source packets it protects.
  • enumFlexFecProtectedfrom flexfec::rfc8627::header::FlexFecProtectedHow one block of a repair packet names the source packets it protects.
  • enumFlexFecProtectionfrom flexfec::rfc8627::encoder::FlexFecProtectionThe shape of the FEC a sender applies to each block of consecutive source packets (RFC 8627 section 1.1).
  • enumLocalKeyFrameRequestfrom keyframe::LocalKeyFrameRequestWhy an interceptor of this crate asked the application for a key frame itself: the Picture Loss Indication it puts on the read leg (sender SSRC 0, marked Attribute::DeliverToApplication) carries this as Attribute::Custom, so whoever reads it can tell it from a request the remote peer sent. Read it with AttributedPacket::custom; a PLI or FIR without it came from the network.
  • enumNackControlfrom nack::NackControlWhat a session description negotiated for retransmission (RFC 4588), told to the NACK interceptors while they run.
  • enumPacketfrom packet::PacketRTP/RTCP Packet
  • enumPauseResumeControlfrom pause_resume::PauseResumeControlWhat the peer connection tells the PauseResumeInterceptor while it runs: a local stream it sends made inactive or active again (W3C webrtc-pc RTCRtpEncodingParameters active), which RFC 8853 section 5.2 has treated as an RFC 7728 local pause (section 6.4, announced with PAUSED) and resume. A stream that did not negotiate pause and resume is not affected.
  • enumPauseStatefrom pause_resume::PauseStateWhere a local RTP stream is in the state machine of RFC 7728 section 6 (Figure 4).
  • enumRateControlStatefrom gcc::state::RateControlStateWhat the rate controller should be doing.
  • enumReceivedRateBoundfrom gcc::rate_control::ReceivedRateBoundWhat the bound of the estimate by the received rate (A_hat(i) < 1.5 * R_hat(i), draft-ietf-rmcat-gcc-02 section 5.5) does to an estimate that is above it.
  • enumRejectedfrom jitterbuffer::buffer::RejectedWhy a packet was not stored.
  • enumRemotePauseStatefrom pause_resume::RemotePauseStateWhat a receiver knows of a remote RTP stream it can pause.
  • enumRetransmissionRateLimitfrom nack::responder::RetransmissionRateLimitHow the NACK responder holds its retransmissions to the congestion controller's target (RFC 4588 section 7), read from Attribute::TargetBitrateChanged as it passes on the read leg. Until a target has passed, and in a chain without a congestion controller, nothing is held back.
  • enumRtcpProfilefrom rtcp_session::RtcpProfileThe RTP profile whose RTCP timing rules apply.
  • enumRtcpSessionControlfrom rtcp_session::RtcpSessionControlWhat an application (or the peer connection) tells the session while it runs.
  • enumRtcpSessionEventfrom rtcp_session::RtcpSessionEventWhat the session tells the rest of the chain and the peer connection.
  • enumSlotfrom registry::SlotWhere an interceptor belongs in the chain, measured by distance from the wire.
  • enumThresholdTimeBasefrom gcc::threshold::ThresholdTimeBaseWhich time step the threshold adaptation of draft-ietf-rmcat-gcc-02 section 5.4 takes, del_var_th(i) = del_var_th(i-1) + (t(i)-t(i-1)) * K(i) * (|m(i)| - del_var_th(i-1)).
  • enumTmmbrControlfrom cc::tmmbr_request::TmmbrControlWhat an application tells the TMMBR requester (the congestion control interceptor), written into the chain with into_packet.
  • enumUlpfecErrorfrom ulpfec::UlpfecErrorWhy ULPFEC data was refused.
  • enumUsagefrom gcc::overuse::UsageWhat the delay signal currently says about the path.
  • traitBandwidthEstimatorfrom cc::estimator::BandwidthEstimatorA congestion control algorithm: acknowledged packets in, a target bitrate out.
  • traitInterceptorOne interceptor of packet processing.
  • traitRtcpRandomfrom rtcp_session::identity::RtcpRandomThe source of the random numbers the RTCP session uses: the variation of the report interval (RFC 3550 6.3.1), the dither of early feedback (RFC 4585 3.5.2), a reporting SSRC (RFC 3550 8.1) and the CNAME (RFC 7022 section 5).
  • fnburst_estimatefrom cc::probe::burst_estimateThe bit rate a path showed it carries, from the reports on a cluster that left as one burst (a chain without a pacer: the NACK responder's padding, written in the same instant).
  • fnconvert_ccfbfrom rtpfb::convert::convert_ccfbConvert an RFC 8888 report into acknowledgements per media stream, with the delay the receiver added before sending it.
  • fnconvert_twccfrom rtpfb::convert::convert_twccConvert a TWCC feedback packet into one acknowledgement per reported packet.
  • fngenerate_rtcp_cnamefrom rtcp_session::identity::generate_rtcp_cnameA new RTCP CNAME for an endpoint, as RFC 7022 section 4.2 defines a short-term persistent one: 96 bits from the operating system's CSPRNG, Base64 encoded (16 characters). RFC 8834 4.9 asks for one per RTCPeerConnection, used by every SSRC it sends from.
  • fnnegotiated_congestion_feedbackfrom cc::feedback::negotiated_congestion_feedbackThe one feedback format a stream uses, from what was negotiated for it.
  • fnpause_config_answerfrom pause_resume::pause_config_answerThe config an answerer that implements everything answers to an offered one (RFC 7728 section 9.1, Figure 9): the complementary subset, so that what one side sends the other receives. None for a value the section does not define: "MUST remove the "pause" CCM line in the answer when receiving an offer with a "config" value it does not understand". The mapping is its own inverse, so it also …
  • fnprobe_estimatefrom cc::probe::probe_estimateThe bit rate a path showed it carries, from the reports on the packets of one cluster.
  • fnwire_image_tapfrom wire_image::wire_image_tapA tap and the handle that reads it.
  • typeBoxedInterceptorAn interceptor whose concrete type has been erased.
  • typeTaggedPacketfrom packet::TaggedPacketTagged packet with transport metadata.
  • constABS_SEND_TIME_SLOTfrom gcc::remb::ABS_SEND_TIME_SLOTWhere the default interceptor set puts the AbsSendTimeInterceptor (Slot::Custom(ABS_SEND_TIME_SLOT)): wire-ward of the pacer (3_000), so the stamp is the instant a packet leaves it, and of the TWCC sender (2_000); application-ward of the FEC wire-image tap (1_500), so FEC protects the stamped packet.
  • constABS_SEND_TIME_URIfrom gcc::remb::ABS_SEND_TIME_URIThe abs-send-time header extension's URI.
  • constDEFAULT_NUM_FEC_PACKETSfrom flexfec::draft03::sender::DEFAULT_NUM_FEC_PACKETSRepair packets produced per block.
  • constDEFAULT_NUM_MEDIA_PACKETSfrom flexfec::draft03::sender::DEFAULT_NUM_MEDIA_PACKETSMedia packets gathered before a repair block is produced.
  • constFEC_DEFAULT_LATENCY_BUDGETfrom cc::fec_rate::FEC_DEFAULT_LATENCY_BUDGETThe latency budget a FEC sender assumes when its builder names none: the round trip within which a retransmission is preferred to FEC (RFC 8854 section 8). ITU-T G.114 (05/2003) takes a one-way delay of up to 150 ms as acceptable to most interactive applications; a retransmission delays the packet it repairs by about one round trip.
  • constFLEXFEC_DEFAULT_PROTECTIONfrom flexfec::rfc8627::sender::FLEXFEC_DEFAULT_PROTECTIONThe protection applied when the builder names none: flexible masks, two interleaved repair packets per five source packets (the draft-03 interceptor's default shape).
  • constFLEXFEC_DEFAULT_REPAIR_WINDOWfrom flexfec::rfc8627::decoder::FLEXFEC_DEFAULT_REPAIR_WINDOWThe repair window a decoder assumes when none is signalled: 10 s, the value libwebrtc writes for FlexFEC.
  • constFLEXFEC_MAX_MASK_BITSfrom flexfec::rfc8627::header::FLEXFEC_MAX_MASK_BITSThe most source packets a flexible mask can name: 15 + 31 + 64 bits (section 4.2.2.1).
  • constFLEXFEC_MAX_PROTECTED_SSRCSfrom flexfec::rfc8627::header::FLEXFEC_MAX_PROTECTED_SSRCSThe most source streams one repair packet can protect: the CSRC count is four bits.
  • constFLEXFEC_MAX_REPAIR_WINDOWfrom flexfec::rfc8627::receiver::FLEXFEC_MAX_REPAIR_WINDOWThe longest repair window a receiver built without with_max_repair_window supports: 10 s.
  • constFLEXFEC_RECOVERY_SIZEfrom flexfec::rfc8627::header::FLEXFEC_RECOVERY_SIZEThe recovery fields every R=0 header starts with: P, X, CC, M, PT recovery, length recovery and TS recovery (Figures 12 and 13).
  • constGOOG_REMBfrom gcc::remb::GOOG_REMBThe RTCP feedback type that negotiates REMB (a=rtcp-fb:<pt> goog-remb).
  • constMAX_FEC_PACKETSfrom flexfec::coverage::MAX_FEC_PACKETSThe most repair packets one block can produce.
  • constMAX_HELD_WIRE_IMAGESfrom wire_image::MAX_HELD_WIRE_IMAGESThe most wire images held for an encoder that is not taking them.
  • constMAX_MEDIA_PACKETSfrom flexfec::coverage::MAX_MEDIA_PACKETSThe most media packets one FEC block can protect.
  • constMAX_RETRANSMISSION_RESERVEfrom nack::responder::MAX_RETRANSMISSION_RESERVEThe most of the congestion controller's target the retransmission reserve of RetransmissionRateLimit::WithinTarget takes, by default: half.
  • constNTP_TIMESTAMP_INITIAL_WINDOWfrom ntp_timestamp::NTP_TIMESTAMP_INITIAL_WINDOWHow long from a stream's first packet every packet carries the timestamp, by default.
  • constNTP_TIMESTAMP_INTERVALfrom ntp_timestamp::NTP_TIMESTAMP_INTERVALHow often a frame carries the timestamp after the initial window, by default.
  • constNTP_TIMESTAMP_SLOTfrom ntp_timestamp::NTP_TIMESTAMP_SLOTWhere NtpTimestampInterceptor sits in the default set: Slot::Custom(1_850).
  • constPAUSE_DEFAULT_REPORT_INTERVALfrom pause_resume::PAUSE_DEFAULT_REPORT_INTERVALThe interval at which PAUSED is repeated and after which a participant that sent nothing for five of them has timed out (RFC 3550 section 6.3.5), unless the builder says otherwise: the RTCP report interval of a session at the minimum RTCP rate (RFC 3550 section 6.2).
  • constPAUSE_DEFAULT_ROUND_TRIP_TIMEfrom pause_resume::PAUSE_DEFAULT_ROUND_TRIP_TIMEThe round trip a sender or receiver assumes while it knows none (RFC 7728 section 8.1: "RTP stream receivers that lack an RTT estimate to the sender SHOULD use 500 ms as the default value").
  • constPAUSE_MEDIA_BOUNDARY_MAX_WAITfrom pause_resume::PAUSE_MEDIA_BOUNDARY_MAX_WAITThe longest a stream whose hold-off period ended in the middle of a video frame waits for the frame to end before it pauses anyway (RFC 7728 section 6.3: pausing "SHOULD only be done when reaching an appropriate place to pause in the stream, like a media boundary"). The wait ends earlier with the packet that has the marker bit, or before a packet of the next frame; this bound only matters when …
  • constPAUSED_REPETITIONSfrom pause_resume::PAUSED_REPETITIONSHow often PAUSED is repeated after the first one: "PAUSED MUST also be included in (at least) the next two regular RTCP reports" (section 8.2).
  • constPENDING_REQUEST_LIFETIMEfrom nack::responder::PENDING_REQUEST_LIFETIMEA request that waits for room is dropped when the receiver has not asked for the packet again within this long, or within two round trips when that is longer: a receiver asks again every round trip while the packet is missing, so one that stopped asking has the packet or no longer wants it.
  • constPER_FRAME_INTERVALfrom cc::feedback_cadence::PER_FRAME_INTERVALdraft-ietf-rmcat-gcc-02 section 3: "at least once every 30 ms if audio-only or multi-stream".
  • constPER_FRAME_MAX_INTERVALfrom cc::feedback_cadence::PER_FRAME_MAX_INTERVALdraft-ietf-rmcat-gcc-02 section 3: "If the feedback overhead needs to be limited this interval can be increased to 100 ms".
  • constPROBE_AFTER_DROP_TIMEOUTfrom cc::probe::PROBE_AFTER_DROP_TIMEOUTHow long after a large drop the old rate is probed for.
  • constPROBE_APPLICATION_LIMITED_INTERVALfrom cc::probe::PROBE_APPLICATION_LIMITED_INTERVALHow often a cluster is sent while the application sends less than the target.
  • constPROBE_DROP_MEMORYfrom cc::probe::PROBE_DROP_MEMORYHow long the rate before a large drop is remembered as the rate the path had, for recovery probing (ProbeController::with_recovery_probing): the highest such rate of this long.
  • constPROBE_MAX_OCTETSfrom cc::probe::PROBE_MAX_OCTETSThe most a cluster asks for, whatever its rate.
  • constPROBE_MIN_DURATIONfrom cc::probe::PROBE_MIN_DURATIONHow long a cluster lasts at its rate, at least.
  • constPROBE_MIN_PACKETSfrom cc::probe::PROBE_MIN_PACKETSHow many packets a cluster has, at least.
  • constPROBE_PADDING_OCTETSfrom nack::responder::PROBE_PADDING_OCTETSThe padding octets of one probe packet: the most RFC 3550 section 5.1 padding holds (its count is one octet).
  • constPROBE_RECOVERY_INTERVALfrom cc::probe::PROBE_RECOVERY_INTERVALHow often a recovery cluster is sent while the target is below the remembered rate (ProbeController::with_recovery_probing).
  • constPROBE_RESULT_TIMEOUTfrom cc::probe::PROBE_RESULT_TIMEOUTHow long a cluster's reports are waited for before it is given up.
  • constQUEUE_AT_LIMIT_MIN_DELAYfrom gcc::queue_limit::QUEUE_AT_LIMIT_MIN_DELAYAnd at least this much queueing delay: below it there is no queue to speak of, and loss is loss on the way (a radio link, a policer), which the loss-based controller is for.
  • constQUEUE_AT_LIMIT_SHAREfrom gcc::queue_limit::QUEUE_AT_LIMIT_SHAREA batch whose packets all met at least this share of the recent highest queueing delay arrived out of a queue at its limit.
  • constQUEUE_BASE_WINDOWfrom gcc::queue_limit::QUEUE_BASE_WINDOWHow far back the lowest one-way delay is looked for: the path's delay with an empty queue.
  • constQUEUE_HIGH_WINDOWfrom gcc::queue_limit::QUEUE_HIGH_WINDOWHow far back the highest queueing delay is looked for: where the queue overflows.
  • constRED_AUDIO_DEFAULT_MAX_PAYLOAD_SIZEfrom audio_red::RED_AUDIO_DEFAULT_MAX_PAYLOAD_SIZEThe largest RED payload the sender builds by default: redundant blocks that would make the payload larger are left out (an Opus packet is far smaller), so that a RED packet stays within the path MTU the application sized the primary for, with the header, its extensions and the SRTP tag.
  • constRED_AUDIO_DEFAULT_REDUNDANCYfrom audio_red::RED_AUDIO_DEFAULT_REDUNDANCYHow many earlier primaries a RED packet carries by default: one, as Chromium sends Opus RED.
  • constRED_AUDIO_LOSS_ONfrom audio_red::RED_AUDIO_LOSS_ONThe smoothed loss at which a stream sent in RED on loss (RedAudioBuilder::with_redundancy_on_loss) goes in RED: the loss under which the FEC senders send no repair (FEC_MIN_LOSS). It goes back to the primary under half of it.
  • constREMB_DECREASE_TRIGGERfrom gcc::remb::REMB_DECREASE_TRIGGERAn estimate below this share of the last one sent is news (congestion) and goes out at once, as libwebrtc's kSendThresholdPercent has it.
  • constREMB_GENERATOR_SLOTfrom gcc::remb::REMB_GENERATOR_SLOTWhere the default interceptor set puts the RembGeneratorInterceptor (Slot::Custom(REMB_GENERATOR_SLOT)): with the other arrival recorders, after the RFC 8888 one (9_000) and before the receiver report (10_000).
  • constREMB_INITIALIZATION_TIMEfrom gcc::remb::REMB_INITIALIZATION_TIMEHow long arrivals are watched before the first estimate is made from what they carry.
  • constREMB_MAX_INTERVALfrom gcc::remb::REMB_MAX_INTERVALThe longest a REMB waits when nothing has changed (section 3: "at least once per second").
  • constREMB_TIMEOUTfrom cc::interceptor::REMB_TIMEOUTHow long a REMB keeps bounding the target after it was received.
  • constREMB_UPDATE_INTERVALfrom gcc::remb::REMB_UPDATE_INTERVALHow often the arrivals are given to the estimator.
  • constRETRANSMISSION_RATE_WINDOWfrom nack::responder::RETRANSMISSION_RATE_WINDOWThe window RetransmissionRateLimit measures the rates over (libwebrtc's kRetransmitWindowSizeMs).
  • constRETRANSMISSION_REPORT_HORIZONfrom twcc::sender::RETRANSMISSION_REPORT_HORIZONHow long after a retransmission was made the feedback on it still counts: longer than the pacer's queue time bound (2 s by default) and a round trip of a path in real-time use together. The clock is the engine's (the instant on every packet and timeout that passes), not the arrival of a later report: a number whose feedback was lost is forgotten all the same.
  • constRTCP_FB_CCM_PAUSEfrom pause_resume::RTCP_FB_CCM_PAUSEThe ccm parameter of a=rtcp-fb that negotiates the messages (RFC 7728 section 9).
  • constRTCP_FB_NACK_ECNfrom xr::RTCP_FB_NACK_ECNThe nack parameter of the RFC 6679 RTCP ECN Feedback packet (a=rtcp-fb:<pt> nack ecn, section 6.2). The RTCP session writes the packet.
  • constRTCP_FB_RRTRfrom report::receiver::RTCP_FB_RRTRThe RTCP feedback type (a=rtcp-fb:<pt> rrtr) that asks the receiver of a stream to send RTCP XR receiver reference time blocks (RFC 3611 section 4.4), libwebrtc's name for it.
  • constRTCP_FB_XRfrom xr::RTCP_FB_XRThe RTCP feedback type a stream's negotiated a=rtcp-xr unilateral formats arrive under (one entry per format, the format as its parameter).
  • constRTCP_SESSION_DEFAULT_MTUfrom rtcp_session::RTCP_SESSION_DEFAULT_MTUThe default of RtcpSessionBuilder::with_mtu: the size a compound RTCP packet is kept under, SRTCP and lower layers not counted.
  • constRTCP_SESSION_DEFAULT_T_RR_INTERVALfrom rtcp_session::RTCP_SESSION_DEFAULT_T_RR_INTERVALThe default of RtcpSessionBuilder::with_t_rr_interval.
  • constRTCP_SESSION_MIN_BANDWIDTHfrom rtcp_session::RTCP_SESSION_MIN_BANDWIDTHThe session bandwidth assumed while none is configured and no media has been measured: one audio stream.
  • constRTCP_SESSION_NOMINAL_AUDIO_BANDWIDTHfrom rtcp_session::RTCP_SESSION_NOMINAL_AUDIO_BANDWIDTHThe session bandwidth assumed for audio while none was signalled: 64 kbit/s, an Opus stream at its high end for speech and the floor the session has always had.
  • constRTCP_SESSION_NOMINAL_VIDEO_BANDWIDTHfrom rtcp_session::RTCP_SESSION_NOMINAL_VIDEO_BANDWIDTHThe session bandwidth assumed for video at the start, while no b= line gave one and the media has not yet had its two seconds to be measured: 1 Mbit/s, a camera stream at standard definition.
  • constRTCP_XR_ECN_SUMMARYfrom xr::RTCP_XR_ECN_SUMMARYThe xr-format of the RFC 6679 ECN Summary Report block (a=rtcp-xr:ecn-sum, section 6.3). The RTCP session writes the block (RtcpSessionInterceptor).
  • constTMMBR_OWNER_TIMEOUTfrom cc::tmmbr::TMMBR_OWNER_TIMEOUTHow long the owner of a tuple may stay silent before it has left: five reporting intervals of five seconds, the RTP participant timeout (RFC 3550 section 6.3.5).
  • constTMMBR_REPEAT_INTERVALfrom cc::tmmbr_request::TMMBR_REPEAT_INTERVALHow long an unacknowledged TMMBR waits before it is sent again (RFC 5104 section 4.2.1.2): about a regular RTCP reporting interval of a WebRTC session.
  • constULPFEC_DEFAULT_NUM_FEC_PACKETSfrom ulpfec::sender::ULPFEC_DEFAULT_NUM_FEC_PACKETSFEC packets produced per block of media.
  • constULPFEC_DEFAULT_NUM_MEDIA_PACKETSfrom ulpfec::sender::ULPFEC_DEFAULT_NUM_MEDIA_PACKETSMedia packets gathered before FEC is produced for them.
  • constULPFEC_MAX_HELD_FECfrom ulpfec::decoder::ULPFEC_MAX_HELD_FECThe most FEC packets held while they still have something to recover.
  • constULPFEC_MAX_HELD_FEC_PACKETSfrom ulpfec::sender::ULPFEC_MAX_HELD_FEC_PACKETSThe most FEC packets held back for the end of a frame (UlpfecSendBuilder::with_fec_after_frame). A stream that never sets the marker bit, or a frame of more packets than this many FEC packets protect, gets them where the count is reached.
  • constULPFEC_MEDIA_WINDOWfrom ulpfec::decoder::ULPFEC_MEDIA_WINDOWHow far behind (and ahead of) the newest media sequence number packets are kept.
  • useAdaptiveJitterBufferBuilderfrom adaptive_jitter_buffer::JitterBufferBuilderBuilder for JitterBufferInterceptor (exported as AdaptiveJitterBufferBuilder and AdaptiveJitterBufferInterceptor).
  • useAdaptiveJitterBufferInterceptorfrom adaptive_jitter_buffer::JitterBufferInterceptorReceiver-side jitter buffer interceptor.
  • useCIRCUIT_BREAKER_NON_REPORTING_THRESHOLDfrom circuit_breaker::DEFAULT_NON_REPORTING_THRESHOLDThe non-reporting threshold k: the RECOMMENDED value (RFC 8083 section 4.2).
  • useCIRCUIT_BREAKER_RTCP_INTERVALfrom circuit_breaker::DEFAULT_RTCP_INTERVALThe fixed minimum RTCP interval the RTCP timeout is computed with (Tmin, RFC 8083 section 4.1).
  • useCircuitBreakerPacketSizefrom circuit_breaker::PacketSizeHow the congestion breaker takes s, the packet size of the TCP throughput equation (RFC 8083 section 4.3).
  • useCONGESTION_CONTROL_DEFAULT_PRUNE_HORIZONfrom cc::interceptor::DEFAULT_PRUNE_HORIZONHow long an unacknowledged packet is kept before it is written off.
  • usedepacketize_red_for_ulpfecfrom ulpfec::depacketize_redTake a RED payload (RFC 2198) apart for ULPFEC (RFC 5109 14.2): the blocks of fec_payload_type are FEC payloads, the primary block is the media.
  • useECN_CONFIRMATIONSfrom rfc8888::ecn::CONFIRMATIONSProbes reported received with an ECN-capable marking that make the initiation succeed.
  • useECN_DEFAULT_RETRY_AFTERfrom rfc8888::ecn::DEFAULT_RETRY_AFTERHow long after a failed initiation the next one starts (RFC 6679 section 7.4.1 option 1).
  • useECN_PROBE_INTERVALfrom rfc8888::ecn::PROBE_INTERVALDuring initiation a probe is sent at least this often (given an unmarked packet since the last one): two per RTCP reporting interval at the shortest regular interval RFC 3550 section 6.2 allows a reduced-minimum sender (360 / session kbit/s seconds) is met for any session above 720 kbit/s by the spacing, and below by this.
  • useECN_PROBE_SPACINGfrom rfc8888::ecn::PROBE_SPACINGDuring initiation one packet in this many is a probe sent ECT.
  • useFEC_MIN_LOSSfrom cc::fec_rate::MIN_LOSSSmoothed loss under which no repair packet is sent: it would not help recover anything.
  • useFecLossPatternfrom cc::fec_rate::LossPatternWhat the recent losses of the path looked like (RFC 8627 sections 1.1.3, 1.1.4 and 8).
  • useFecSessionPacketfrom ulpfec::FecSessionPacketMarks an RTP packet as a FEC packet that arrived in a FEC session of its own (RFC 5109 section 14.1), for a binder that learns which stream a FEC session protects only as its packets arrive. Carried as Attribute::Custom.
  • useFLEXFEC03_MAX_MEDIA_PACKETSfrom flexfec::draft03::encoder::DRAFT03_MAX_MEDIA_PACKETSThe most media packets one draft-03 repair packet can describe: 15 + 31 + 63 mask bits (draft-ietf-payload-flexible-fec-scheme-03, section 4.2).
  • useFLEXFEC03_MAX_REPAIR_PACKET_SIZEfrom flexfec::draft03::encoder::DRAFT03_MAX_REPAIR_PACKET_SIZEThe largest repair packet (RTP header, FlexFEC header and repair payload) a draft-03 encoder builds by default: what an Ethernet path MTU of 1500 octets leaves for an RTP packet under IPv6 (40), UDP (8) and the longest SRTP authentication tag of the DTLS-SRTP profiles (16).
  • useFlexFecParseErrorfrom flexfec::draft03::decoder::ParseErrorWhy a repair packet could not be used.
  • useGCC_DECREASE_FACTORfrom gcc::rate_control::DEFAULT_DECREASE_FACTORMultiplier applied to the received rate when backing off (beta, section 5.5).
  • useGCC_DEFAULT_BURST_INTERVALfrom gcc::arrival_group::DEFAULT_BURST_INTERVALPackets sent within this of each other are one burst.
  • useGCC_DEFAULT_OVERUSE_TIMEfrom gcc::overuse::DEFAULT_OVERUSE_TIMEHow long the trend must stay outside the threshold before overuse is declared.
  • useGCC_HIGH_LOSSfrom gcc::loss::DEFAULT_HIGH_LOSSAbove this the path is considered congested and the rate must fall.
  • useGCC_INCREASE_FACTORfrom gcc::rate_control::DEFAULT_INCREASE_FACTORMultiplicative growth per second while far from convergence (the 1.08 of eta, section 5.5).
  • useGCC_INITIAL_BITRATEfrom gcc::estimator::DEFAULT_INITIAL_BITRATERate to start from when nothing is known yet.
  • useGCC_LOSS_INTERVALfrom gcc::loss::DEFAULT_LOSS_INTERVALHow long between changes, so each is observed before the next.
  • useGCC_LOW_LOSSfrom gcc::loss::DEFAULT_LOW_LOSSBelow this loss fraction the path is considered healthy and the rate may climb.
  • useGCC_MAX_BITRATEfrom gcc::estimator::DEFAULT_MAX_BITRATECeiling.
  • useGCC_MIN_BITRATEfrom gcc::estimator::DEFAULT_MIN_BITRATEFloor. Below this a video call is not worth having.
  • useGCC_RATE_CONTROL_INTERVALfrom gcc::rate_control::DEFAULT_RATE_CONTROL_INTERVALThe step the first update of a controller is taken to cover, before there is a previous update to measure from.
  • useGCC_RATE_WINDOWfrom gcc::rate_calc::DEFAULT_WINDOWHow far back the received rate is measured over.
  • useGCC_THRESHOLD_INITIAL_MSfrom gcc::threshold::DEFAULT_INITIAL_MSStarting threshold, in milliseconds — draft-ietf-rmcat-gcc-02 §5.4.
  • useinterceptorfrom interceptor_derive::interceptor
  • useInterceptorfrom interceptor_derive::Interceptor
  • useINTERVAL_PLI_DEFAULT_INTERVALfrom intervalpli::generator::DEFAULT_INTERVALHow often a keyframe is requested when no interval is configured.
  • useJITTER_BUFFER_DEFAULT_CAPACITYfrom jitterbuffer::receiver::DEFAULT_CAPACITYDefault cap on packets held per stream, so a stalled or hostile stream cannot grow without bound while its deadline is still in the future.
  • useJITTER_BUFFER_DEFAULT_DEPTHfrom jitterbuffer::receiver::DEFAULT_DEPTHDefault playout depth: enough to absorb ordinary network jitter without adding audible delay.
  • useJitterBufferStatefrom jitterbuffer::buffer::StateWhether the buffer is still filling or is handing packets out.
  • useNACK_MAX_REPAIR_AGEfrom nack::responder::MAX_REPAIR_AGEHow old a packet may be and still be repaired, by default (NackResponderBuilder::with_max_repair_age): two seconds, the pacer's queue time bound, past which the pacer itself drops what waits as stale. One second (libwebrtc's shortest packet history) was measured and is too short: behind a path queue of a second a NACK for a packet still wanted arrives later than that.
  • useNACK_REPAIR_BACKLOG_BOUNDfrom nack::responder::REPAIR_BACKLOG_BOUNDThe backlog of repairs given up after the target halved, by default (NackResponderBuilder::with_repair_backlog_bound): what would take two seconds or more to leave at the target. One second was measured and gives up too early: the key frame asked for goes into a path queue that is still full (200 calls per cell: 8 and 24 with no frame for over 2 s behind queues of 100 ms and 1 s, against …
  • useNACK_SUGGESTED_MAX_NACKS_PER_PACKETfrom nack::generator::SUGGESTED_MAX_NACKS_PER_PACKETA limit for NackGeneratorBuilder::with_max_nacks_per_packet: ten requests, the generator's default from v0.22.0+brainwires.6 until requests became unlimited. Not libwebrtc's: its kMaxNackRetries is 100 (modules/video_coding/nack_requester.cc at a222406d, line 39), the limit of the Chrome behaviour profile. Not the default (see the method).
  • useNACK_SUGGESTED_MAX_PACKET_AGEfrom nack::generator::SUGGESTED_MAX_PACKET_AGEA limit for NackGeneratorBuilder::with_max_packet_age, for a receiver that plays a packet out within two seconds of its loss. Not the default (see the method).
  • usePACER_BURST_TIMEfrom pacing::pacer::BURST_TIMEThe pacing interval: a group of packets leaves every 5 ms (draft-ietf-rmcat-gcc-02 section 4).
  • usePACER_DEFAULT_BITRATEfrom pacing::sender::DEFAULT_BITRATERate used when none is configured: 1 Mb/s.
  • usePACER_DEFAULT_QUEUE_LIMITfrom pacing::sender::DEFAULT_QUEUE_LIMITPackets held before the queue overflows (see QueueOverflow).
  • usePACER_DEFAULT_QUEUE_TIME_LIMITfrom pacing::sender::DEFAULT_QUEUE_TIME_LIMITHow long a packet may wait in the queue by default (libwebrtc's kMaxExpectedQueueLength, 2 s); what happens to one that would wait longer is QueueOverflow's.
  • usePACER_MIN_BURST_BITSfrom pacing::pacer::MIN_BURST_BITSSmallest burst any pacer allows, in bits.
  • usePacerBacklogfrom pacing::sender::BacklogWhat the pacer does with what it holds when the path's capacity collapses: the target has fallen to half or less of what it was when the queued media was written or within the queue time bound, and the queue would now take half the queue time bound or more to leave (see "A capacity collapse" on PacerInterceptor). It applies with QueueOverflow::Drop; QueueOverflow::Drain never discards.
  • usePacerQueueOverflowfrom pacing::sender::QueueOverflowWhat the pacer does with media the target has no room for: a packet that has waited the queue time limit, or the oldest one when a packet arrives at a full queue. It happens only when the application writes faster than the congestion controller's target for longer than the limit.
  • useRedFecPayloadfrom ulpfec::RedFecPayloadWhat a RED payload of a ULPFEC-protected stream holds.
  • useRedPlacementfrom ulpfec::RedPlacementWhere FEC data goes in a RED stream.
  • useRFC8888_DEFAULT_INTERVALfrom rfc8888::sender::DEFAULT_INTERVALHow often feedback is sent when no interval is configured.
  • useRFC8888_DEFAULT_MAX_REPORT_SIZEfrom rfc8888::sender::DEFAULT_MAX_REPORT_SIZEByte budget for one report, chosen to sit inside a conservative path MTU.
  • useSTABLE_FEEDBACK_JITTERfrom cc::feedback_cadence::STABLE_JITTERThe interarrival jitter (RFC 3550 section 6.4.1, of frame starts) under which the path counts as stable, with no packet missing.
  • useSTABLE_FEEDBACK_MAX_INTERVALfrom cc::feedback_cadence::STABLE_MAX_INTERVALThe longest a stretched interval goes to.
  • useSTABLE_FEEDBACK_QUEUEfrom cc::feedback_cadence::STABLE_QUEUEThe queueing delay (the frame starts' transit time above the lowest seen) under which the path counts as stable: a queue that builds slowly and evenly has little jitter, and is not an equilibrium.
  • useSTABLE_FEEDBACK_REPORTSfrom cc::feedback_cadence::STABLE_REPORTSRFC 8836 section 2, requirement 8c, with TwccReceiverBuilder::with_stability_stretch: how many reports in a row must see a stable path before the interval stretches.
  • useSTABLE_FEEDBACK_STRETCHfrom cc::feedback_cadence::STABLE_STRETCHHow much longer the interval is while the path is stable.
  • useULPFEC_HEADER_LENGTHfrom ulpfec::FEC_HEADER_LENGTHOctets of the FEC header (RFC 5109 7.3).
  • useULPFEC_LONG_MASK_BITSfrom ulpfec::LONG_MASK_BITSPackets a long mask describes (L = 1).
  • useULPFEC_MAX_LEVELSfrom ulpfec::MAX_LEVELSThe most protection levels read from one FEC packet.
  • useulpfec_one_level_only_from_fmtpfrom ulpfec::one_level_only_from_fmtpThe value of the onelevelonly media type parameter in an a=fmtp parameter string (RFC 5109 13): true for onelevelonly=1, false for 0, for an absent parameter (its default) and for any other value.
  • useULPFEC_SHORT_MASK_BITSfrom ulpfec::SHORT_MASK_BITSPackets a short mask describes (L = 0).
  • useUlpfecDecoderfrom ulpfec::UlpfecDecoderRecovers lost media packets of one stream from ULPFEC packets.
  • useUlpfecDecoderStatsfrom ulpfec::UlpfecDecoderStatsWhat a decoder has done so far.
  • useUlpfecEncoderfrom ulpfec::UlpfecEncoderGenerates ULPFEC payloads.
  • useUlpfecLevelfrom ulpfec::UlpfecLevelOne protection level of a FEC packet: its mask and its payload (RFC 5109 7.4).
  • useUlpfecPacketfrom ulpfec::UlpfecPacketA parsed ULPFEC payload: what follows the RTP header of a FEC packet, or what a RED block of the FEC payload type holds.
  • useUlpfecProtectionLevelfrom ulpfec::ProtectionLevelOne protection level to generate: how many octets it covers and which packets it protects.
  • useUlpfecReceiveBuilderfrom ulpfec::UlpfecReceiveBuilderBuilder for UlpfecReceiveInterceptor.
  • useUlpfecReceiveInterceptorfrom ulpfec::UlpfecReceiveInterceptorRecovers media lost from streams protected by ULPFEC (RFC 5109).
  • useUlpfecReceiveStatsfrom ulpfec::UlpfecReceiveStatsWhat the ULPFEC decoder of one protected stream has received and done so far.
  • useUlpfecRepairfrom ulpfec::UlpfecRepairMarks an RTP packet that carried only FEC in a RED stream.
  • useUlpfecSendBuilderfrom ulpfec::UlpfecSendBuilderBuilder for UlpfecSendInterceptor.
  • useUlpfecSendInterceptorfrom ulpfec::UlpfecSendInterceptorProduces ULPFEC (RFC 5109) for outgoing media.
  • useUlpfecStreamPacketizerfrom ulpfec::UlpfecStreamPacketizerBuilds the RTP packets of a FEC stream sent apart from the media (RFC 5109 7.2, 14.1).
  • usevalidate_ulpfec_schemefrom ulpfec::validate_schemeCheck the mask rules of RFC 5109 7.4 that relate the FEC packets of one group.
  • useXR_DEFAULT_GMINfrom xr::DEFAULT_GMINThe Gmin of the VoIP Metrics burst model (RFC 3611 section 4.7.2 recommends 16).
  • useXR_DEFAULT_INTERVALfrom xr::DEFAULT_INTERVALHow often the blocks are written when no interval is configured: about once per regular RTCP report of a video session.
  • useXR_DEFAULT_MAX_BLOCK_SIZEfrom xr::DEFAULT_MAX_BLOCK_SIZEThe largest size, in octets, of a Loss RLE, Duplicate RLE or Packet Receipt Times block when the stream's xr-format gives none, and the default of XrReportBuilder::with_max_block_size. RFC 3611 section 7: "applications SHOULD place an upper limit on the size of the XR report blocks they employ", and "the "thinning" techniques described in Section 4.1 permit the packet-by-packet report …

Generated from the sources of rtci-interceptor 0.5.0 at its release tag. Items made by macros and methods are on docs.rs.