rtciv0.5.0

rtci-rtcp

RTCP packet parsing and serialization (RFC 3550, RFC 4585, RFC 5104, RFC 3611, RFC 8888) for WebRTC. 38 public modules, 174 items at 0.5.0.

README

RTCP packet parsing and serialization: sender and receiver reports, source description, BYE, application-defined packets, the transport-layer and payload-specific feedback messages (NACK, TWCC, PLI, FIR, REMB and others), extended reports and congestion control feedback, and compound packets.

Specifications

  • RFC 3550, RTCP packet formats; RFC 5506, reduced-size RTCP
  • RFC 4585, RTP/AVPF feedback; RFC 5104, codec control messages
  • RFC 3611, RTCP extended reports; RFC 6679, ECN feedback
  • RFC 8888, RTCP congestion control feedback; RFC 7728, pause and resume

Clause-by-clause status, with the test that proves each clause: rfc3550, rfc4585, rfc5104, rfc3611, rfc6679, rfc8888.

Use

rtci_rtcp::packet::unmarshal parses a (compound) RTCP datagram into packets; every packet type implements rtci-shared's Marshal / Unmarshal. The RTCP session logic (when to send what) is in rtci-interceptor.

Sans-I/O

A codec only: bytes in, typed packets out, and back. It holds no state between packets and reads no clock.

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_rtcp

Package rtcp implements encoding and decoding of RTCP packets according to RFCs 3550 and 5506, with the feedback messages of RFC 4585 and RFC 5104, the extended reports of RFC 3611 and the congestion control feedback of RFC 8888.

  • modapplication_definedThe APP packet: application-defined data under a four-character name.
  • modcompound_packetCompound RTCP packets — the several reports that share one datagram.
  • modextended_reportExtended reports (XR, [RFC 3611]): loss/discard run lengths, receipt times and per-block statistics.
  • modgoodbyeThe BYE packet, by which a source announces it is leaving.
  • modheaderThe four-byte header common to every RTCP packet.
  • modpacketThe Packet trait every RTCP packet type implements.
  • modpayload_feedbacksPayload-specific feedback (PT 206): PLI, SLI, RPSI, FIR, TSTR, TSTN, VBCM, LRR, REMB and other application layer feedback.
  • modraw_packetAn unparsed packet, used for types this crate does not model.
  • modreceiver_reportThe Receiver Report (RR), which reports reception quality back to a sender.
  • modreception_reportThe reception report block carried inside SR and RR packets.
  • modsender_reportThe Sender Report (SR), which carries a sender's timing and packet counts.
  • modsource_descriptionThe SDES packet, which carries CNAME and other source metadata.
  • modtransport_feedbacksTransport-specific feedback (PT 205): NACK, TMMBR, TMMBN, rapid resynchronisation, transport-wide congestion control and RFC 8888 feedback.
  • useHeaderfrom header::HeaderA Header is the common header shared by all RTCP packets
  • usePacketfrom packet::PacketPacket represents an RTCP packet, a protocol used for out-of-band statistics and control information for an RTP session

rtci_rtcp::application_defined

The APP packet: application-defined data under a four-character name.

  • structApplicationDefinedAn APP packet: experimental or application-specific data that needs no registered packet type.

rtci_rtcp::compound_packet

Compound RTCP packets — the several reports that share one datagram.

  • structCompoundPacketA CompoundPacket is a collection of RTCP packets transmitted as a single packet with the underlying protocol (for example UDP).
  • fnvalidate_compoundChecks that raw, one datagram, is a compound RTCP packet as RFC 3550 defines it.
  • fnvalidate_compound_headersThe header checks of RFC 3550 Appendix A.2 on raw, one datagram, as a compound packet: every packet is version 2, the first is an SR or an RR with the padding bit clear, the lengths add up to the datagram, and only the last packet is padded (section 6.4.1).
  • fnvalidate_reduced_sizeChecks that raw, one datagram, is acceptable as reduced-size RTCP (RFC 5506 §4.1): one or more RTCP packets of any type, with no SR or RR in front and no SDES required.

rtci_rtcp::extended_report

Extended reports (XR, [RFC 3611]): loss/discard run lengths, receipt times and per-block statistics.

  • moddlrrDelay Since Last Receiver Report blocks, for round-trip time between receivers.
  • modecnECN Summary Report blocks (RFC 6679 section 5.2).
  • modprtPacket Receipt Times blocks.
  • modrleLoss and Duplicate RLE report blocks.
  • modrrtReceiver Reference Time blocks, which anchor DLRR round-trip calculations.
  • modssrStatistics Summary blocks: loss, duplicate, jitter and TTL ranges.
  • modunknownAn unparsed block, for types this crate does not model.
  • modvmVoIP Metrics blocks, which carry call-quality estimates.
  • structExtendedReportThe ExtendedReport packet is an Implementation of RTCP Extended reports defined in RFC 3611. It is used to convey detailed information about an RTP stream. Each packet contains one or more report blocks, each of which conveys a different kind of information.
  • structXRHeaderXRHeader defines the common fields that must appear at the start of each report block. In typical cases, users of ExtendedReports shouldn't need to access this. For locally-constructed report blocks, these values will not be accurate until the corresponding packet is marshaled.
  • enumBlockTypeBlockType specifies the type of report in a report block Extended Report block types from RFC 3611.
  • typeTypeSpecificFieldTypeSpecificField as described in RFC 3611 section 4.5. In typical cases, users of ExtendedReports shouldn't need to access this, and should instead use the corresponding fields in the actual report blocks themselves.
  • useChunkfrom rle::ChunkChunk as defined in RFC 3611, section 4.1. These represent information about packet losses and packet duplication. They have three representations:
  • useChunkTypefrom rle::ChunkTypeChunkType enumerates the three kinds of chunks described in RFC 3611 section 4.1.
  • useDLRRReportfrom dlrr::DLRRReportDLRRReport encodes a single report inside a DLRRReportBlock.
  • useDLRRReportBlockfrom dlrr::DLRRReportBlockDLRRReportBlock encodes a DLRR Report Block as described in RFC 3611 section 4.5.
  • useDuplicateRLEReportBlockfrom rle::DuplicateRLEReportBlockDuplicateRLEReportBlock is used to report information about packet duplication, as described in RFC 3611, section 4.1 make sure to set is_loss_rle = false
  • useEcnSummaryReportfrom ecn::EcnSummaryReportThe counters of one media sender in an EcnSummaryReportBlock.
  • useEcnSummaryReportBlockfrom ecn::EcnSummaryReportBlockThe RTCP XR ECN Summary Report block (RFC 6679 section 5.2): BT 13, one data block per media sender. Negotiated with a=rtcp-xr:ecn-sum (section 6.3); an ECN-capable receiver includes one in every regular compound RTCP packet (section 7.3.2), with no data block when no SSRC counts as a sender (block length zero).
  • useLossRLEReportBlockfrom rle::LossRLEReportBlockLossRLEReportBlock is used to report information about packet losses, as described in RFC 3611, section 4.1 make sure to set is_loss_rle = true
  • usePacketReceiptTimesReportBlockfrom prt::PacketReceiptTimesReportBlockPacketReceiptTimesReportBlock represents a Packet Receipt Times report block, as described in RFC 3611 section 4.3.
  • useReceiverReferenceTimeReportBlockfrom rrt::ReceiverReferenceTimeReportBlockReceiverReferenceTimeReportBlock encodes a Receiver Reference Time report block as described in RFC 3611 section 4.4.
  • usereported_sequence_numbersfrom rle::reported_sequence_numbersThe sequence numbers of begin_seq..end_seq (modulo 2^16) a block with thinning t reports on: those that are a multiple of 2^t (RFC 3611 section 4.1).
  • useRLEReportBlockfrom rle::RLEReportBlockRleReportBlock defines the common structure used by both Loss RLE report blocks (RFC 3611 §4.1) and Duplicate RLE report blocks (RFC 3611 §4.2).
  • useStatisticsSummaryReportBlockfrom ssr::StatisticsSummaryReportBlockStatisticsSummaryReportBlock encodes a Statistics Summary Report Block as described in RFC 3611, section 4.6.
  • useTTLorHopLimitTypefrom ssr::TTLorHopLimitTypeTTLorHopLimitType encodes values for the ToH field in a StatisticsSummaryReportBlock
  • useUnknownReportBlockfrom unknown::UnknownReportBlockUnknownReportBlock stores a report block that is not parsed: one of a type this crate does not model, or one of a known type that is malformed.
  • useVoIPMetricsReportBlockfrom vm::VoIPMetricsReportBlockVoIPMetricsReportBlock encodes a VoIP Metrics Report Block as described in RFC 3611, section 4.7.

rtci_rtcp::extended_report::dlrr

Delay Since Last Receiver Report blocks, for round-trip time between receivers.

  • structDLRRReportDLRRReport encodes a single report inside a DLRRReportBlock.
  • structDLRRReportBlockDLRRReportBlock encodes a DLRR Report Block as described in RFC 3611 section 4.5.

rtci_rtcp::extended_report::ecn

ECN Summary Report blocks (RFC 6679 section 5.2).

  • structEcnSummaryReportThe counters of one media sender in an EcnSummaryReportBlock.
  • structEcnSummaryReportBlockThe RTCP XR ECN Summary Report block (RFC 6679 section 5.2): BT 13, one data block per media sender. Negotiated with a=rtcp-xr:ecn-sum (section 6.3); an ECN-capable receiver includes one in every regular compound RTCP packet (section 7.3.2), with no data block when no SSRC counts as a sender (block length zero).

rtci_rtcp::extended_report::prt

Packet Receipt Times blocks.

  • structPacketReceiptTimesReportBlockPacketReceiptTimesReportBlock represents a Packet Receipt Times report block, as described in RFC 3611 section 4.3.

rtci_rtcp::extended_report::rle

Loss and Duplicate RLE report blocks.

  • structChunkChunk as defined in RFC 3611, section 4.1. These represent information about packet losses and packet duplication. They have three representations:
  • structRLEReportBlockRleReportBlock defines the common structure used by both Loss RLE report blocks (RFC 3611 §4.1) and Duplicate RLE report blocks (RFC 3611 §4.2).
  • enumChunkTypeChunkType enumerates the three kinds of chunks described in RFC 3611 section 4.1.
  • fnreported_sequence_numbersThe sequence numbers of begin_seq..end_seq (modulo 2^16) a block with thinning t reports on: those that are a multiple of 2^t (RFC 3611 section 4.1).
  • typeDuplicateRLEReportBlockDuplicateRLEReportBlock is used to report information about packet duplication, as described in RFC 3611, section 4.1 make sure to set is_loss_rle = false
  • typeLossRLEReportBlockLossRLEReportBlock is used to report information about packet losses, as described in RFC 3611, section 4.1 make sure to set is_loss_rle = true
  • constBIT_VECTOR_LENGTHThe packets one bit-vector chunk describes (RFC 3611 section 4.1.2).
  • constMAX_RUN_LENGTHThe longest run a run-length chunk holds (RFC 3611 section 4.1.1: 14 bits, 1 to 16,383).

rtci_rtcp::extended_report::rrt

Receiver Reference Time blocks, which anchor DLRR round-trip calculations.

rtci_rtcp::extended_report::ssr

Statistics Summary blocks: loss, duplicate, jitter and TTL ranges.

  • structStatisticsSummaryReportBlockStatisticsSummaryReportBlock encodes a Statistics Summary Report Block as described in RFC 3611, section 4.6.
  • enumTTLorHopLimitTypeTTLorHopLimitType encodes values for the ToH field in a StatisticsSummaryReportBlock

rtci_rtcp::extended_report::unknown

An unparsed block, for types this crate does not model.

  • structUnknownReportBlockUnknownReportBlock stores a report block that is not parsed: one of a type this crate does not model, or one of a known type that is malformed.

rtci_rtcp::extended_report::vm

VoIP Metrics blocks, which carry call-quality estimates.

rtci_rtcp::goodbye

The BYE packet, by which a source announces it is leaving.

  • structGoodbyeThe Goodbye packet indicates that one or more sources are no longer active.

rtci_rtcp::header

The four-byte header common to every RTCP packet.

  • structHeaderA Header is the common header shared by all RTCP packets
  • enumPacketTypePacketType specifies the type of an RTCP packet RTCP packet types registered with IANA. See: <https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-parameters-4>
  • constCOUNT_MASKBit mask of the report/source count field.
  • constCOUNT_MAXThe largest report count the 5-bit field can hold.
  • constCOUNT_SHIFTBit offset of the report/source count field.
  • constFIR_MIN_OCTET_COUNTThe smallest valid FIR packet, in bytes.
  • constFORMAT_AFBFMT of application-layer feedback (PSFB, RFC 4585 §6.4), which REMB is one kind of.
  • constFORMAT_CCFBFMT value for CCFB (Congestion Control Feedback) per RFC 8888
  • constFORMAT_ECNFMT value for the RTCP ECN Feedback packet (RFC 6679 section 5.1)
  • constFORMAT_FIRFMT of the Full Intra Request (PSFB, RFC 5104 §4.3.1).
  • constFORMAT_LRRFMT of the Layer Refresh Request (PSFB, RFC 9627 §3).
  • constFORMAT_PAUSE_RESUMEFMT of the PAUSE-RESUME message (RTPFB, RFC 7728 section 7).
  • constFORMAT_PLIFMT of the Picture Loss Indication (PSFB, RFC 4585 §6.3.1).
  • constFORMAT_REMBFMT of REMB: application-layer feedback whose payload starts with REMB.
  • constFORMAT_RPSIFMT of the Reference Picture Selection Indication (PSFB, RFC 4585 §6.3.3).
  • constFORMAT_RRRFMT of the Rapid Resynchronisation Request (RTPFB, RFC 6051 §3.2).
  • constFORMAT_SLIFMT of the Slice Loss Indication (PSFB, RFC 4585 §6.3.2).
  • constFORMAT_TCCFMT of transport-wide congestion control feedback (RTPFB). <https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#page-5>
  • constFORMAT_TLNFMT of the generic NACK (RTPFB, RFC 4585 §6.2.1).
  • constFORMAT_TMMBNFMT of the Temporary Maximum Media Stream Bit Rate Notification (RTPFB, RFC 5104 §4.2.2).
  • constFORMAT_TMMBRFMT of the Temporary Maximum Media Stream Bit Rate Request (RTPFB, RFC 5104 §4.2.1).
  • constFORMAT_TSTNFMT of the Temporal-Spatial Trade-off Notification (PSFB, RFC 5104 §4.3.3).
  • constFORMAT_TSTRFMT of the Temporal-Spatial Trade-off Request (PSFB, RFC 5104 §4.3.2).
  • constFORMAT_VBCMFMT of the Video Back Channel Message (PSFB, RFC 5104 §4.3.4).
  • constHEADER_LENGTHLength of the RTCP header in bytes.
  • constPADDING_MASKBit mask of the padding flag once shifted.
  • constPADDING_SHIFTBit offset of the padding flag.
  • constRTP_VERSIONThe RTP/RTCP version this crate speaks.
  • constSDES_MAX_OCTET_COUNTThe longest SDES item value, bounded by its one-byte length field.
  • constSSRC_LENGTHLength of an SSRC in bytes.
  • constVERSION_MASKBit mask of the version field once shifted.
  • constVERSION_SHIFTBit offset of the version field in the first header octet.

rtci_rtcp::packet

The Packet trait every RTCP packet type implements.

  • traitPacketPacket represents an RTCP packet, a protocol used for out-of-band statistics and control information for an RTP session
  • fnmarshalmarshal takes an array of Packets and serializes them to a single buffer
  • fnunmarshalUnmarshal takes an entire udp datagram (which may consist of multiple RTCP packets) and returns the unmarshaled packets it contains.
  • fnunmarshal_lenientLike unmarshal, but a packet of a known type that fails its own parse does not cost the datagram: it comes back as a RawPacket with its bytes, and the packets around it are parsed as usual.

rtci_rtcp::payload_feedbacks

Payload-specific feedback (PT 206): PLI, SLI, RPSI, FIR, TSTR, TSTN, VBCM, LRR, REMB and other application layer feedback.

rtci_rtcp::payload_feedbacks::application_layer_feedback

AFB: application layer feedback that is not REMB.

  • structApplicationLayerFeedbackApplication layer feedback (PSFB FMT=15): a message from one application to its peer that RTCP only carries.

rtci_rtcp::payload_feedbacks::full_intra_request

FIR: asks a sender for a full intra frame, used when a receiver joins or resyncs.

  • structFirEntryA FIREntry is a (ssrc, seqno) pair, as carried by FullIntraRequest.
  • structFullIntraRequestThe FullIntraRequest packet is used to reliably request an Intra frame in a video stream. See RFC 5104 Section 3.5.1. This is not for loss recovery, which should use PictureLossIndication (PLI) instead.

rtci_rtcp::payload_feedbacks::layer_refresh_request

LRR: asks the encoder of a scalable stream for a layer refresh point.

rtci_rtcp::payload_feedbacks::picture_loss_indication

PLI: tells a sender the receiver lost picture and needs a keyframe.

  • structPictureLossIndicationThe PictureLossIndication packet informs the encoder about the loss of an undefined amount of coded video data belonging to one or more pictures

rtci_rtcp::payload_feedbacks::receiver_estimated_maximum_bitrate

REMB: the receiver's estimate of the bitrate the path can carry.

rtci_rtcp::payload_feedbacks::reference_picture_selection_indication

RPSI: names a reference picture in the codec's own terms.

  • structReferencePictureSelectionIndicationReference Picture Selection Indication (PSFB FMT=3): the receiver names a reference picture in the codec's own terms. Exactly one indication per packet.

rtci_rtcp::payload_feedbacks::slice_loss_indication

SLI: reports individual lost slices, for finer-grained repair than PLI.

  • structSliceLossIndicationThe SliceLossIndication packet informs the encoder about the loss of a picture slice
  • structSliEntrySLIEntry represents a single entry to the SLI packet's list of lost slices.

rtci_rtcp::payload_feedbacks::temporal_spatial_tradeoff

TSTR and TSTN: the trade-off between frame rate and picture quality, asked and answered.

  • structTstEntryOne FCI entry of a TSTR or a TSTN.

rtci_rtcp::payload_feedbacks::video_back_channel_message

VBCM: an H.271 video back channel message.

  • structVbcmEntryOne FCI entry of a VBCM: an H.271 message for one media sender.
  • structVideoBackChannelMessageH.271 Video Back Channel Message (VBCM, PSFB FMT=7, RFC 5104 §4.3.4).

rtci_rtcp::raw_packet

An unparsed packet, used for types this crate does not model.

  • structRawPacketRawPacket represents an unparsed RTCP packet. It's returned by Unmarshal when a packet with an unknown type is encountered.

rtci_rtcp::receiver_report

The Receiver Report (RR), which reports reception quality back to a sender.

  • structReceiverReportA ReceiverReport (RR) packet provides reception quality feedback for an RTP stream

rtci_rtcp::reception_report

The reception report block carried inside SR and RR packets.

  • structReceptionReportA ReceptionReport block conveys statistics on the reception of RTP packets from a single synchronization source.

rtci_rtcp::sender_report

The Sender Report (SR), which carries a sender's timing and packet counts.

  • structSenderReportA SenderReport (SR) packet provides reception quality feedback for an RTP stream

rtci_rtcp::source_description

The SDES packet, which carries CNAME and other source metadata.

  • structSourceDescriptionA SourceDescription (SDES) packet describes the sources in an RTP stream.
  • structSourceDescriptionChunkA SourceDescriptionChunk contains items describing a single RTP source
  • structSourceDescriptionItemA SourceDescriptionItem is a part of a SourceDescription that describes a stream.
  • enumSdesTypeSDESType is the item type used in the RTCP SDES control packet. RTP SDES item types registered with IANA. See: <https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-parameters-5>

rtci_rtcp::transport_feedbacks

Transport-specific feedback (PT 205): NACK, TMMBR, TMMBN, rapid resynchronisation, transport-wide congestion control and RFC 8888 feedback.

  • modcc_feedback_reportRFC 8888 congestion control feedback: per-packet arrival, ECN and arrival-time offsets.
  • modecn_feedbackRFC 6679 ECN feedback: cumulative ECT, ECN-CE, not-ECT, loss and duplicate counters.
  • modpause_resumeRFC 7728 PAUSE-RESUME: PAUSE and RESUME requests, PAUSED and REFUSED answers.
  • modrapid_resynchronization_requestRRR: asks a sender to resynchronize as quickly as it can.
  • modtmmbTMMBR and TMMBN: a temporary bit rate limit, asked and announced.
  • modtransport_layer_ccTransport-wide congestion control feedback: per-packet arrival status and deltas.
  • modtransport_layer_nackGeneric NACK, which lists sequence numbers the receiver did not get.

rtci_rtcp::transport_feedbacks::cc_feedback_report

RFC 8888 congestion control feedback: per-packet arrival, ECN and arrival-time offsets.

  • structCcFeedbackMetricBlockOne packet's fate, in two bytes: whether it arrived, its ECN marking, and when.
  • structCcFeedbackReportAn RTCP Congestion Control Feedback report ([RFC 8888]).
  • structCcFeedbackReportBlockThe packets of one media stream that a report describes.
  • enumEcnThe two ECN bits of the IP header, as reported for a received packet ([RFC 3168] §5).

rtci_rtcp::transport_feedbacks::ecn_feedback

RFC 6679 ECN feedback: cumulative ECT, ECN-CE, not-ECT, loss and duplicate counters.

  • structEcnCountersThe cumulative ECN counters of one RTP source as a receiver keeps them (RFC 6679 section 5.1). The two ECT counters are 32 bits on the wire, the others the 16 least significant bits of the receiver's count ("the field will wrap if more than 65535 ... have been received"). "The counters SHALL be initiated to 0 for each new SSRC received."
  • structEcnFeedbackThe RTP/AVPF transport-layer ECN Feedback packet (RFC 6679 section 5.1): RTPFB, FMT 8, one ECN Feedback Report about one RTP source. Negotiated with a=rtcp-fb:<pt> nack ecn (section 6.2); sent early or immediately when ECN-CE marks or losses need to reach the sender quickly.
  • constECN_COUNTERS_LENGTHThe octets of the counters an ECN Feedback Report and an ECN Summary Report data block share (RFC 6679 sections 5.1 and 5.2): ECT(0), ECT(1), ECN-CE, not-ECT, lost, duplicates.
  • constECN_FEEDBACK_REPORT_LENGTHThe octets of an ECN Feedback Report (RFC 6679 section 5.1, Figure 2): the extended highest sequence number and the counters.

rtci_rtcp::transport_feedbacks::pause_resume

RFC 7728 PAUSE-RESUME: PAUSE and RESUME requests, PAUSED and REFUSED answers.

  • structPauseResumeThe RTP/AVPF transport-layer PAUSE-RESUME message (RFC 7728 section 7): RTPFB, FMT 9, one or more PAUSE, RESUME, PAUSED or REFUSED entries. "SSRC of media source: Not used; SHALL be set to 0. The FCI identifies the SSRC the message is targeted for." Negotiated with a=rtcp-fb:<pt> ccm pause (section 9).
  • structPauseResumeEntryOne FCI entry of a PAUSE-RESUME message (RFC 7728 section 7, Figure 6).
  • enumPauseResumeTypeThe pause feedback type of an FCI entry (RFC 7728 section 7, "Type (4 bits)").
  • constPAUSE_RESUME_ENTRY_HEADER_LENGTHThe octets of an FCI entry before its type-specific field: the target SSRC, then the type, the reserved bits, the parameter length and the PauseID (RFC 7728 section 7, Figure 6).

rtci_rtcp::transport_feedbacks::rapid_resynchronization_request

RRR: asks a sender to resynchronize as quickly as it can.

  • structRapidResynchronizationRequestThe RapidResynchronizationRequest packet informs the encoder about the loss of an undefined amount of coded video data belonging to one or more pictures

rtci_rtcp::transport_feedbacks::tmmb

TMMBR and TMMBN: a temporary bit rate limit, asked and announced.

  • structTemporaryMaximumBitrateNotificationTemporary Maximum Media Stream Bit Rate Notification (TMMBN, RTPFB FMT=4, RFC 5104 §4.2.2): a media sender announces the bounding set of limits it obeys.
  • structTemporaryMaximumBitrateRequestTemporary Maximum Media Stream Bit Rate Request (TMMBR, RTPFB FMT=3, RFC 5104 §4.2.1): a receiver asks one or more media senders to stay under a bit rate.
  • structTmmbEntryOne FCI entry of a TMMBR or a TMMBN: a bit rate limit and the per-packet overhead it was measured with.

rtci_rtcp::transport_feedbacks::transport_layer_cc

Transport-wide congestion control feedback: per-packet arrival status and deltas.

  • structRecvDeltaRecvDelta are represented as multiples of 250us small delta is 1 byte: [0,63.75]ms = [0, 63750]us = [0, 255]250us big delta is 2 bytes: [-8192.0, 8191.75]ms = [-8192000, 8191750]us = [-32768, 32767]250us <https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#section-3.1.5>
  • structReferenceTimeUnwrapperFollows the 24-bit reference time of successive transport-wide feedback packets across its wrap, which comes every 2^24 ticks of 64 ms: about 12.4 days.
  • structRunLengthChunkRunLengthChunk T=TypeTCCRunLengthChunk 0 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |T| S | Run Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  • structStatusVectorChunkStatusVectorChunk T=typeStatusVectorChunk 0 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |T|S| symbol list | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  • structTransportLayerCcTransportLayerCC for sender-BWE <https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#page-5>
  • enumPacketStatusChunkPacketStatusChunk has two kinds: RunLengthChunk and StatusVectorChunk
  • enumStatusChunkTypeTcc<https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#page-5> 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |V=2|P| FMT=15 | PT=205 | length | …
  • enumSymbolSizeTypeTccfor status vector chunk
  • enumSymbolTypeTcctype of packet status symbol and recv delta
  • constTYPE_TCC_DELTA_SCALE_FACTOR<https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#section-3.1.5>
  • constTYPE_TCC_REFERENCE_TIME_TICK_MILLISThe reference time counts 64 ms ticks.

rtci_rtcp::transport_feedbacks::transport_layer_nack

Generic NACK, which lists sequence numbers the receiver did not get.

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