rtciv0.5.0

rtci 0.1.0

Released 2026-11-24.

From CHANGELOG.md of rtci at its release tag.

The first release under the rtci names: the fork's rtc / rtc-* crates are rtci / rtci-* (see "Crate rename" below and docs/rename.md), the repository is Brainwires/rtci, and the version line restarts at 0.1.0 (crates.io ignores the +brainwires.N build metadata of the 0.22.0+brainwires.N line, whose tags stay). Since 0.22.0+brainwires.6: trains 11 to 19 of the clause-by-clause conformance work (the audit's open MUST rows down to 16, every one classified), behaviour profiles (Rfc, StrictRfc, Chrome, Performance) that govern 49 settings, one draft-conforming congestion estimator with the RFC 4588 section 7 retransmission rule as the default, a pacer whose queue time is bounded and which pauses a source that follows the target, SRTP re-keying that keeps the call when both sides' offers cross and loses no packet, and data channels reopened on a just-closed stream that deliver every message.

  • Breaking changes: the crate rename, and the API changes listed below by area (the GCC interceptor runs the default estimator behind the same GccHandle, retransmissions are held within the target by default, and more).
  • Known limits (below): the cost of a capacity drop that meets the estimate at a higher rate (about 1.4 Mbit/s), the picture's age after a sudden drop with the pacer, the delay-side detector's blind interval after a sudden drop, and the margin a short SRTP key lifetime leaves for a re-keying.
  • Fixed since brainwires.6's known issues: the pacer's unbounded queue, the circuit breaker's missing verdict for video flows, simulcast packets without RID or MID on SSRCs declared in a section with a=rid, video freezing for seconds after a capacity drop, STUN SOFTWARE that could not be turned off, and sender reports after a clock-rate switch on one SSRC.

Crate rename

  • Breaking: the crates are renamed from rtc / rtc-* to rtci / rtci-*, and the version line restarts at 0.1.0. The root crate rtc is now rtci (use rtci::...), every rtc-<x> crate is rtci-<x> (library paths rtc_<x> -> rtci_<x>), the crate directories follow, and the repository becomes Brainwires/rtci. crates.io ignores the +brainwires.N build metadata of the old line, so it could not order those releases; the new line starts at 0.1.0 (tag v0.1.0) and the old tags stay. Cargo feature names are unchanged; W3C and IETF names (RTCPeerConnection, RTCP) are unchanged. Made by scripts/rename-to-rtci.py; docs/rename.md says what a dependent changes.

Breaking changes

  • interceptors (congestion control): one GCC estimator (conf/gcc-4-release). The TWCC-driven interceptor (GccInterceptorBuilder, GccHandle) had an estimator of its own that departed from draft-ietf-rmcat-gcc-02 in three places: the loss cut was applied to the delay-based estimate (section 6 has a separate loss-based estimate, raised 5% per clean feedback, the sending rate the minimum of the two), over-use multiplied the estimate by 0.85 (section 5.5: 0.85 of the received rate), and nothing held the estimate to one and a half times the received rate (section 5.5). Under a 300 kbit/s cap its estimate was cut to the floor by a second of loss and climbed back at 8% a second, and where it stood when the cap went decided the recovery: caps held 14, 17, 20, 23, 26 s gave 945, 1192, 477 to 1316, 549, 693 kbit/s twenty seconds later, the same under either retransmission rule (and on the release before). It now runs Gcc, the estimator of the default interceptors, behind the same GccHandle API (GccHandle::stats is new; GccShared has a stats field): 988 to 1352 kbit/s twenty seconds after a cap of any of those lengths, 238 to 266 kbit/s of the 300 used under the cap (145 to 200 before), longest freeze 0.83 to 1.24 s. What an application polling the handle notices: the estimate no longer runs ahead of what is sent: it is not increased past one and a half times the rate the receiver reports as arriving, and an estimate once reached is kept while less is sent (see the next entry). The estimator this interceptor had before climbed 8% a second whatever was sent: to 1.4 Mbit/s in twenty seconds of audio alone, and on to the maximum. Feedback that stops while packets are sent halves the estimate (Gcc::with_feedback_timeout, 500 ms); a REMB or a TMMBR from the peer bounds it.
  • interceptors (congestion control): an application that sends less than the estimate keeps the estimate (conf/gcc-5-app-limited). draft-ietf-rmcat-gcc-02 section 5.5 introduces A_hat(i) < 1.5 * R_hat(i) so that the estimate "does not diverge from the rate at which the sender is actually sending", and lowers the estimate for one reason: "As soon as over-use has been detected". Gcc applied the inequality as a clamp after every update, so whenever less was sent than the estimate, with nothing lost and no over-use, the estimate came down to one and a half times what was sent: on audio alone to 106 kbit/s (the floor, with lighter audio: an application was told of a weak connection on a perfect path, and video climbed from the floor at 8% a second every time a camera came back on); on an open link by a step each time a key frame left the 500 ms window of the received rate (1 Mbit/s reached after 20.3 s instead of 15.6 s); after a path change from the start rate of 300 kbit/s down to 178 kbit/s within three seconds. Now an estimate at or above the bound is not increased and is not lowered (ReceivedRateBound::LimitsIncrease, the default; libwebrtc limits the increase alike, modules/remote_bitrate_estimator/aimd_rate_control.cc lines 235 to 249 and 266); over-use, loss above 10% and feedback that stops while packets are sent lower it as before. The inequality as a clamp is ReceivedRateBound::Clamps (Gcc::with_received_rate_bound, GccInterceptorBuilder::with_received_rate_bound, DefaultInterceptorOptions::gcc_received_rate_bound; BehaviourProfile::StrictRfc selects it). Measured in tests/capacity_cap_video_rtc2rtc.rs, both chains: an open link reaches 1 Mbit/s after 15.47 to 15.52 s without a pacer (15.82 s on v0.22.0+brainwires.6) and never steps down; a call whose cameras go on and off never has an estimate under the start rate, and video that comes back starts from the estimate it left (622 to 656 kbit/s when the camera went off, 637 to 674 when it came back five seconds later, where it had fallen to 106); after a path change the estimate does not go under the start rate.
  • interceptors (congestion control): over-use lowers the estimate on every update while it lasts, as draft-ietf-rmcat-gcc-02 section 5.5 has it (A_hat = beta * R_hat in the Decrease state); the default waited a round trip (10 to 200 ms) between cuts, which is libwebrtc's form (AimdRateControl::TimeToReduceFurther) and is now the Chrome profile's (gcc.one-decrease-per-round-trip: Rfc false, Chrome true; Gcc::with_one_decrease_per_round_trip(true), DefaultInterceptorOptions::gcc_one_decrease_per_round_trip). Both forms hold every test of the workspace. Measured, the draft's form against one decrease per round trip: a 300 kbit/s cap under a sender at 1 Mbit/s freezes the video 0.56 to 1.26 s (0.85 to 1.36 s) and leaves the oldest picture 1.68 to 2.48 s old (2.33 to 2.61 s); two flows that share a 2 Mbit/s bottleneck have 0.49 / 0.49 of it (0.48 / 0.50) and keep a longer queue, 18.5 ms mean and 93 ms at the 95th percentile (2.8 ms and 10.8 ms); a flow that joins late has 0.50 after 40 s (0.49), and 0.50 without probing (0.42); beside a TCP-like transfer the share is 0.22 with a 0.2 s buffer (0.19) and 0.25 with a 0.05 s buffer (0.37) (rtci-interceptor/tests/rfc8836_multi_flow.rs).
  • statistics: availableOutgoingBitrate keeps the congestion controller's estimate through the whole of a pacer pause. While the source was paused, the NACK responder's own target announcements (sent when its retransmission reserve moved) carried the zero target without the estimate that the pacer's carry (PacerPause), and the statistic had no value until the pacer next spoke. They carry it now. (a_sender_following_the_target_is_paused_and_loses_nothing_at_the_pacer reads the statistic every 100 ms and counts a report without the member as zero.)
  • interceptors (congestion control): BandwidthEstimator::on_unreported_packet_sent (a provided method): the congestion control interceptor calls it, and no longer on_packet_sent, for a packet of a stream that negotiated no per-packet feedback (no transport-wide sequence numbers, no RFC 8888). Gcc counted such packets as "sent and nothing came back": audio without transport-wide sequence numbers, sent while the video that has them was off, halved the estimate every 500 ms down to the floor.
  • interceptors (congestion control): Gcc starts over from its starting estimate on a new path (another candidate pair selected) in the default interceptors too; it kept its estimate and restarted only the delay measurements. libwebrtc restarts likewise (call/rtp_transport_controller_send.cc:356-357, restart_bwe).
  • interceptors (pacer): the pacer tells the source to pause (a target of zero on Attribute::TargetBitrateChanged, RTCRtpSender::target_bitrates and the targetBitrate stat; availableOutgoingBitrate keeps the estimate) while the media it holds would take 1 s or more to leave at the target, and what a source that follows the pause wrote is never discarded for its age; the 2 s bound and the whole-frame discard (RTCPeerConnectionEvent::OnPacerDiscard, with a key-frame request) apply to media written into a pause. Retransmissions leave ahead of new media, a stream's oldest packet first, and none is made for a packet whose retransmission still waits in the pacer. See "Pausing the source" on PacerInterceptor for what a target of zero means and how an encoder resumes.
  • interceptors (NACK): RetransmissionRateLimit::WithinTarget (RFC 4588 section 7) is the default of NackResponderBuilder and of DefaultInterceptorOptions:: nack_retransmission_rate_limit in every behaviour profile (libwebrtc at a222406d sets no retransmission rate limiter on video and lowers the encoder target by the protection share: the RFC's form, see the profile table); UpToTarget and Unlimited are settings. Measured without a pacer (300 kbit/s cap, six seeds, three wall clocks): WithinTarget 0.83 to 1.24 s longest freeze, 43 to 66 retransmissions of which 14 to 17 were dropped at the capped link; UpToTarget 0.84 to 1.29 s, 42 to 78 and 17 to 27.
  • peer connection, interceptors: the Performance behaviour profile and the performance-defaults cargo feature (conf/rtcp-1-rate). The defaults are unchanged (the RFC values); Performance takes, for each governed behaviour, the cheaper form an RFC itself offers, never turns a capability off and never leaves what the RFCs permit (a libwebrtc value outside an RFC stays in Chrome). Measured with tests/rtcp_rate_trace_rtc2rtc.rs (two rtc peer connections, virtual time, 30 s):
    • rtcp.t-rr-interval 1 s (RFC 4585 3.4 / 3.5.3; RFC 5506 3.3 names trr-int as the remedy; kept local, not announced): at 1 Mbit/s one way the sender's regular reports fall from 13.2 to 1.4 a second (27.3 to 3.8 SR/s) and RTCP from 4.20% to 1.45% of the media; both ways 4.91% to 1.44%. Cost: report blocks reach the sender 1.2 times a second instead of 12.2 (longest gap 1.36 s instead of 214 ms), which slows the RTP circuit breaker and RR-based RTT; NACK and congestion control feedback are untouched (120 ms to the NACK either way).
    • rtcp.congestion-feedback-in-budget, rtcp.minimum-session-bandwidth 16 kbit/s, cc.feedback-share 2.5%, cc.feedback-max-interval 500 ms: congestion control feedback and regular reports share RFC 3550's 5%. 24 kbit/s audio: 12.15% to 4.49% of the media (6.06% without a=rtcp-rsize); 100 kbit/s audio and video: 5.96% to 2.75%. Cost: at those rates feedback every 500 / 400 ms instead of 250 / 137 ms (Gcc settles 0.5 s either way at 150 kbit/s, 6.0 s against 5.5 s at 500 kbit/s; a Gcc sender with probing fed by a Performance receiver reaches 2 Mbit/s in 0.62 s against 0.49 s), and a regular report only every 5 s at 24 kbit/s.
    • New settings: RtcpSessionBuilder::with_congestion_feedback_in_budget, with_minimum_session_bandwidth; TwccReceiverBuilder / Rfc8888Builder with_feedback_share, with_max_adaptive_interval; DefaultInterceptorOptions fields rtcp_congestion_feedback_in_budget, rtcp_minimum_session_bandwidth, congestion_feedback_share, congestion_feedback_max_interval. BehaviourProfile gains Performance (the enum is #[non_exhaustive]; ALL has four entries).
    • Cargo feature performance-defaults: BehaviourProfile::default() is Performance. With chrome-defaults also on, Chrome wins and the build prints a deprecation warning naming both. CI: a performance_defaults job like chrome_defaults.
    • Audit: RFC4585-3.5.4-2 is partial (was tested: the congestion control feedback sent at once is not added to avg_rtcp_size); RFC5506-4.2.1-1's note names the feedback that does travel reduced-size (transport-cc and RFC 8888 included).
    • Test environment: the RTCP cell logs the media rate it ran at (a few hundred kbit/s, not a video call's) and no longer claims the stacks report every second; the Pion peer counts each RTCP datagram once (its SRTCP session hands one datagram to every stream it names, which counted SRs several times).
    • The merge with master: rtp.ssrc-per-clock-rate follows master's default (one SSRC across clock rates, Rfc false, StrictRfc true); circuit_breaker_packet_size is listed as engine-only.
  • peer connection: behaviour profile values verified against libwebrtc's source (conf/profile-2-verified-values). The 26 unverified Chrome values were read in libwebrtc's public source (main at a222406d49ec, 2026-11-23; Chromium's glue at 8dafa8bce175, BoringSSL at 289645a45072); each row now cites the file, the symbol and the revision. 40 governed behaviours (was 35): 11 observed, 29 from the source, 0 unverified; 11 not expressible (was 10).
    • Wrong Chrome values corrected: sctp.rto is 500 ms / 400 ms / 3 s (was 500 / 220 ms / 60 s: dcsctp's rto_min is 400 ms, 220 ms is min_rtt_variance, and libwebrtc caps the timer backoff at 3 s); gcc.threshold-time-base is the new ThresholdTimeBase::ArrivalCapped (libwebrtc's TrendlineEstimator::UpdateThreshold steps over the arrival gaps, capped at 100 ms, not the departure gaps).
    • New governed behaviours: dtls.srtp-profile-order (libwebrtc offers AES_CM_128_HMAC_SHA1_80 before GCM; the engine GCM first), sctp.max-retransmissions (libwebrtc never gives up on retransmissions), and three new settings: SettingEngineBuilder::with_ice_options_in_media_sections (a=ice-options in each section, as Chromium), with_default_ice_pacing_stated (no a=ice-pacing for the default Ta, as Chromium), with_dtls_flight_interval(DtlsFlightInterval) (Rfc9147, the default, or libwebrtc's two round trips within 50 ms and 3 s). Also without_sctp_max_retransmissions. The Chrome profile's offers now place a=ice-options and leave out a=ice-pacing as Chromium's do; tests/behaviour_profiles.rs no longer accepts session-level a=ice-options or an extra a=ice-pacing under Chrome.
    • Breaking: ThresholdTimeBase (rtci-interceptor) has a third variant, ArrivalCapped; its Departure doc no longer calls it libwebrtc's.
    • Corrected notes: libwebrtc does not retransmit ICE connectivity checks at all (each is sent once, the 250 ms RTO is for server requests); DTLS 1.3 is not engine-only (libwebrtc's factory default is DTLS 1.3); flexfec-03 and RFC 8888 are behind field trials in Chromium; the doc of with_unique_transport_credentials now gives libwebrtc's rule for offers and answers (credentials per transport, shared within a BUNDLE group; its offers bundle every section whatever the policy).
  • peer connection: behaviour profiles (conf/profile-1-behaviour-profiles).
    • BehaviourProfile { Rfc, Chrome, StrictRfc } (rtci::peer_connection::configuration), applied by SettingEngineBuilder::with_behaviour_profile, MediaEngine::for_profile and DefaultInterceptorOptions::for_profile; register_default_interceptors (and _with_handles, _without_congestion_control, configure_congestion_control) take the options of the media engine's profile, and the RTCP session a peer connection installs follows the setting engine's. Rfc is the defaults unchanged. docs/behaviour-profiles.md (rendered by scripts/behaviour-profiles.py, a Python gate with --check) lists 35 governed behaviours with their clause, each profile's value and the source of each Chrome value (9 observed in the recorded Chromium descriptions or the browser matrix, 26 unverified), the settings left alone with their class, and 10 Chrome behaviours the engine cannot express.
    • Cargo feature chrome-defaults: BehaviourProfile::default(), and with it every SettingEngine::default(), SettingEngineBuilder::new(), MediaEngine::default() and DefaultInterceptorOptions::default(), is Chrome. Cargo unifies features: one crate of a build that turns it on changes the defaults of every user of rtci in that build. BehaviourProfile::compiled_default() reports it. CI: one job checks the workspace and runs the profile's tests with it.
    • New settings: SettingEngineBuilder::with_ice_software (the SOFTWARE attribute of ICE checks, RFC 8489 16.1.2), without_sctp_rto; DefaultInterceptorOptions fields rtcp_t_rr_interval, rtcp_immediate_congestion_feedback, rtcp_report_from_every_ssrc, twcc_rereport_received, gcc_threshold_time_base, gcc_one_decrease_per_round_trip, abs_send_time_on_audio, receiver_reference_time_on_audio (the struct is #[non_exhaustive]; the last two put Chromium's audio abs-send-time and a=rtcp-xr:rcvr-rtt=all in the Chrome profile's offers). SettingEngine::behaviour_profile, MediaEngine::behaviour_profile.
    • Breaking: SettingEngine, MediaEngine and DefaultInterceptorOptions implement Default by hand (the build's default profile) instead of deriving it; SctpMaxMessageSize derives Debug, PartialEq and Eq.
    • Seven Chromium descriptions of the train 9 test environment are fixtures (tests/fixtures/browser-sdp/chromium--*.sdp). One of them corrects the doc of with_unique_transport_credentials: a Chromium answer without BUNDLE gives each transport credentials of its own, so the Chrome profile does too.
    • The browser matrix has five cells with the Rust peer under Chrome (scripts/test-env/interop/profile.spec.mjs; examples/interop-peer takes ?profile=).
  • dtls, ice: a new DTLS association runs on a new 3-tuple (RFC 8842 section 5.1: "a new 3-tuple ... MUST be allocated by at least one of the endpoints"; section 6: "a completely new set of ICE candidates that were not recently used for any other DTLS association"). The ICE restart that comes with a new association (renew_dtls_association and the automatic re-keying that calls it, a data-only association replaced for SRTP, and the answer to an offer that asks for one) now drops the local candidates, and so does the new transport that replaces one an answer closed (every m= section rejected): it keeps none of the closed one's candidates, even without with_discard_local_candidates_during_ice_restart, and add_local_candidate refuses a UDP candidate on one of their transport addresses with the new Error::ErrICECandidateAddressOfPreviousDtlsAssociation until the next ICE restart that is not for a new association. The answer to such an offer lists only the candidates given for the restart, and engine-run TURN links delete their allocation and allocate again. An application gathers on new ports for the new generation. New SettingEngineBuilder::with_dtls_new_association_on_previous_addresses(true) keeps the candidates and the addresses, for an application with one fixed socket. Rows RFC8842-5.1-1, -2, -3 tested (tests/dtls_association_new_three_tuple.rs). The tests that set up a new association gather on new ports (World::regather, Pair::regather), with several transports too (renewing_the_dtls_association_renews_every_transport).
  • pacer: media the congestion controller's target has no room for is dropped by default (conf/pacer-2-combined, QueueOverflow::Drop). conf/pacer-1-queue-time raised the pacing rate above the target to keep the queue under 2 s and released the oldest packet of a full queue over the budget, so a source writing above the target put all of it on the path: in the test environment (testenv_impairment::gcc_follows_a_rate_limited_link, netem 600 kbit/s with a 200-packet queue, a 2.4 Mbit/s source) the link's queue overflowed and GCC's target fell to its 100 kbit/s floor and stayed there, against 490 to 570 kbit/s before. Now a packet that has waited the queue time limit, or the oldest one of a full queue, is dropped (PacerInterceptor::dropped), and nothing leaves above the target; the receiver counts those packets as lost, which they are. libwebrtc's behaviour is PacerBuilder::with_queue_overflow(QueueOverflow::Drain) / DefaultInterceptorOptions::pacer_queue_overflow (exported as PacerQueueOverflow), for an encoder that follows the target. tests/gcc_rate_limited_link_rtc2rtc.rs is the test environment's case on the virtual clock (three seeds, 500 to 590 kbit/s held; 100 kbit/s with Drain). PacerInterceptor::forced now also counts the overdue packets Drain releases.
  • pacer: with PacerQueueOverflow::Drop (the default) the pacer discards whole frames instead of single packets (conf/gcc-2-frame-discard). New media that waited the 2 s queue time bound, or the oldest of a full queue, goes with every queued frame of its stream (a frame: one SSRC, one RTP timestamp; nothing on the write path marks a key frame, so none is kept), and the rest of the newest discarded frame when the application writes it later. Retransmissions are still dropped one at a time; audio, audio retransmissions and padding never. PacerInterceptor::discarded_frames counts the frames, dropped still the packets. Each discard rides the read leg as PacerDiscard (exported; stream, sequence numbers, frames, octets, the target then): the NACK responder takes those packets out of its retransmission buffer, its waiting requests and its count of original packets, so a NACK for them is answered by nothing (RFC 4588 section 7), and the peer connection emits the new RTCPeerConnectionEvent::OnPacerDiscard ("the source is above the target"). A media stream also gets a Picture Loss Indication (sender SSRC 0) delivered to the application (RTCMessage::RtcpPacket, OnKeyFrameRequest), so an application that answers PLI writes a key frame at the new target. The pacer's order of service is documented: audio, audio retransmissions, video retransmissions, video and FEC, padding. Measured (tests/capacity_cap_video_rtc2rtc.rs, default chain, six seeds, run 45300292535): one discard of 120 to 202 frames per seed and freezes of 4.3 to 10.3 s, worse than the 2.1 to 3.0 s with per-packet drops that the responder resent: the receiver's sample builder waits 256 sequence numbers past a gap nothing fills. Resending the discarded packets after all gives 1.8 to 2.8 s (run 45300304592). libwebrtc discards nothing in its pacer: past an expected queue time of 2 s it pauses the encoder and drains the queue (control_handler.cc, pacing_controller.h kMaxExpectedQueueLength).
  • interceptors: the NACK generator asks for a lost packet while it is missing (a round trip between requests) instead of giving it up after ten requests or two seconds (conf/gcc-1-cap-recovery). The limits came with v0.22.0+brainwires.6 (ee4217b2) and froze calls: when a path drops to 300 kbit/s the sender loses some fifty video packets before its estimate falls, their retransmissions crowd the same full queue, and packets given up while the receiver's sample builder still waited for them left the picture frozen for 5.9 to 6.8 s until a key frame (ParolNet's m1::the_estimate_follows_a_cap_that_comes_and_goes, and tests/capacity_cap_video_rtc2rtc.rs on six of six seeds). The limits stay available: with_max_nacks_per_packet(NACK_SUGGESTED_MAX_NACKS_PER_PACKET), with_max_packet_age(Some(NACK_SUGGESTED_MAX_PACKET_AGE)); a signalled rtx-time still ends the requests. NACK_DEFAULT_MAX_NACKS_PER_PACKET and NACK_DEFAULT_MAX_PACKET_AGE are renamed NACK_SUGGESTED_* (they are not the defaults).
  • interceptors: the NACK responder holds its retransmissions to the congestion controller's target (RFC 4588 section 7), read from Attribute::TargetBitrateChanged on the read leg: NackResponderBuilder::with_rate_limit(RetransmissionRateLimit). The default is the RFC's form, both halves of section 7 (conf/gcc-2-rfc-retransmission): WithinTarget, the retransmissions take what the original packets leave of the target over the last second, and while they wait or were sent within it the target reported for the original media is lowered by a retransmission reserve (what the waiting requests need within a round trip, or the retransmission rate in use, at most half the target: with_max_reserve_fraction, MAX_RETRANSMISSION_RESERVE). The lowered target reaches the application as the TargetBitrateChanged the responder passes on (lowered in place, or on a carrier of its own when only the reserve moved) and through GccHandle::target_bitrate_bps; the estimate itself is GccHandle::estimate_bps. A request that does not fit now waits, oldest first, and leaves when the window has room (the responder's poll_timeout is that instant), while the receiver keeps asking for it (PENDING_REQUEST_LIFETIME). Near the controller's floor (the target less the reserve under the controller's minimum, which GCC now announces with MinimumTarget) the retransmissions take the window's room first. UpToTarget (a rate limiter on the retransmissions alone at the target, not lowering the original media) and Unlimited (the earlier behaviour) are settings. Without a congestion controller nothing is held back. Measured by tests/capacity_cap_video_rtc2rtc.rs (300 kbit/s cap, six seeds), longest freeze: the default 1.33 to 1.44 s with 65 to 70 retransmissions of which 11 to 14 dropped at the link; UpToTarget 1.31 to 1.43 s (61 to 65, 11 to 12 dropped); unlimited 1.04 to 1.58 s (257 to 367, three in four dropped); the RFC sharing without the lowered target 2.46 to 2.47 s, without the floor rule 2.46 to 2.47 s, with it only at the exact minimum 3.7 to 4.8 s. The test now also bounds the retransmissions (at most 100 through the cap). API: GccShared gained estimate_bps and retransmission_reserve_bps (its target_bitrate_bps is now the lowered target); new RetransmissionReserve, MinimumTarget, NackResponderInterceptor::next_release. A request the per-stream budget (one retransmission per original sent) refuses is still not kept.
  • media: open media MUST rows (conf/media-25-payload-rows).
    • One SSRC across clock rates (the default since conf/media-23-clock-rate-default): sender reports extrapolate their RTP timestamp at the clock rate of the payload type sent last, not the rate the stream was bound with (SenderStream per-payload-type rates, RFC 7160 3.2; Opus to PCMU had put 48 kHz worth of ticks on an 8 kHz stream), and the receiver places an RTP timestamp against a sender report or in-band NTP timestamp taken at another clock rate across the changes since (MediaClock, RFC 7160 4.2 continuity), so remote capture times and lip sync hold across a switch (the_remote_capture_time_holds_across_clock_rate_changes_on_one_ssrc). Reviewed and completed from the unverified conf/media-24-one-ssrc-sync commit 8cb42766.
    • RFC 7160 4.1-1 to 4.1-3, RFC 8834 4.3-6 and RFC 8108 6.1-2 are setting (with_ssrc_per_clock_rate(true), the Chromium / WebKit cells of the browser matrix).
    • RTCRtpSender::write_rtp_with_video_orientation: the CVO element (RFC 7742 4, 3GPP TS 26.114 7.4.5) on a video packet when the peer negotiated urn:3gpp:video-orientation.
    • ULPFEC send side: the carriage and payload types come from the negotiated description (RFC 5109 14 and 14.2): the section's red / ulpfec payload types, a separate stream when the description gives a ULPFEC repair flow and no RED, no FEC when no ulpfec format was negotiated. Before, the application's numbers were used whatever was negotiated. Behaviour change for an application whose configure_ulpfec numbers differ from the negotiated ones (now the negotiated ones are sent) or whose peer did not negotiate ulpfec (now no FEC is sent).
    • ECN over ICE-TCP: no RTP packet is ECN-marked on a TCP pair, and an offer made after nomination over TCP (TCP/DTLS/RTP/SAVPF) carries no a=ecn-capable-rtp (RFC 6679 6.1.3).
    • a=extmap extension attributes stay with their id (RFC 6464 4): an answer repeats the offer's (vad=off), a later offer the ones negotiated for that id; before, a peer's vad=off mapping was answered and re-offered without it, which means vad=on.
    • Tests for behaviour that already existed: DTMF bounds and all sixteen events (RFC 7874 3), bare encodings on a RED stream (RFC 2198 5), CSRC audio levels (RFC 6465 4), the default audio level extension and its V bit (RFC 6464 4), the SRTCP fields in avg_rtcp_size (RFC 5124 2, 2.3), H.264 de-interleaving order against the RFC 6184 7.2.2 procedure. H264DeinterleavingBuffer::with_literal_pdon(true): RFC 6184 7.2.2's PDON initialised to 0 (the default starts it at the DON before the earliest one buffered; RFC6184-7.2.2-1 stays partial, owner decision).
    • FLEXFEC03-4.2-17 and FLEXFEC03-5.1-5 are n/a: superseded by RFC 8627. Open MUST rows 67 to 45.
  • jsep: follow-ups to the payload type stack (conf/jsep-74-followups). The a=extmap lines of negotiated header extensions are written in id order; they were written in the order of a hash map, different from one run to the next (the ids and URIs are unchanged). The engine's answer to every recorded offer (tests/fixtures/browser-sdp/: Chromium, Firefox, WebKit, webrtc-rs 0.17; 38 offers) is pinned line by line in tests/fixtures/browser-sdp-answers/ (tests/browser_offer_answers_pinned.rs; RTC_UPDATE_ANSWER_FIXTURES=1 rewrites them): compared with the train head before the payload type stack (conf/train-11 daf14463), the 38 answers are the same line for line, the payload type numbers included, once the a=extmap lines are in id order. The umbrella RFC9429-5.1-1 is setting (every child is tested, setting or conflict).
  • jsep: the events a description causes are queued when it is applied, in the W3C order, data channels included (conf/jsep-73-dc-error-order). W3C webrtc-pc 4.4.1.4 fires signalingstatechange, then error at each channel of errorList (a channel that got no id), then the mutes, the stream changes and the track events; what the description closes is announced in tasks queued after that ("When an RTCDataChannel object's underlying data transport has been closed, the user agent MUST queue a task": error if it closed with an error, then close). Changed: (1) OnSctpTransportStateChange(Closed) for an answer that closes the SCTP association (a rejected data section, a=sctp-port:0) was queued before OnSignalingStateChangeEvent; it now follows the description's events and the OnClose of the association's channels. (2) Those channel events (OnClose; OnError then OnClose for a channel that never opened) were produced by a later poll_event, behind whatever was queued in between (the next description's signalingstatechange, say); they are now queued with the description, channel by channel in the order the channels were created. An application that relied on the SCTP event arriving first has to wait for it after the channels'. Row WEBRTC-4.4.1.4-91 tested.
  • sctp: assigning data channel ids with every id of this side's parity taken no longer overflows (a panic in debug builds for the DTLS client). The update of the data max message size on answers and provisional answers is conf/audit-5-sctp-w3c's (SctpTransport::update_max_message_size, update_sctp_max_message_size); this branch extends it to a provisional answer that initiates the association (W3C: "If description initiates the establishment of a new SCTP association ... or an SCTP association already exists"): RTCSctpTransport::max_message_size was null until the final answer then. Test: tests/sctp_transport_by_description.rs::the_max_message_size_follows_every_answer_and_provisional_answer. The umbrella WEBRTC-4.5.1-1 is tested.
  • jsep: an answer that rejects every m= section closes the transports (conf/jsep-72-transport-close). W3C webrtc-pc 4.4.1.4, once an answer made the state stable: the transports "no longer referenced by a non-stopped transceiver" are closed, "the RTCDtlsTransports and their associated RTCIceTransports. This results in events firing on these objects in a queued task"; RFC 9429 section 5.11: the ICE components of a rejected section are discarded "unless a non-rejected "m=" section is bundled with" it. With one transport this was only remembered (the next offer restarted ICE on the same agent and asked for a new DTLS association), with no close and no event; with several, the layout of such an answer was not applied at all. Now each transport is closed when the answer is applied, local or remote: its DTLS statechange to "closed", then its ICE one (the legacy variants for the default transport and OnTransportEvent with the transport's ids), after the description's own events; the connection's states follow (iceGatheringState, iceConnectionState and connectionState "new"), the ICE agent is closed and nothing more is sent. The last transport is replaced in its place by a new one, not started: a new ICE agent with credentials of its own, a new DTLS transport (a new a=tls-id, the same certificate), new transport ids, the ICE role undetermined. The next description that sets a section up starts it as the first was (no ICE restart: a=ice-ufrag / a=ice-pwd are a new generation's). The local candidates the application added are the new agent's too, unless with_discard_local_candidates_during_ice_restart(true); they are announced again when the application adds them for the new generation. Applications that waited for the state events of an ICE restart after such an exchange now see a closed transport and then a new one connecting. Row WEBRTC-4.4.1.4-82 tested.
  • jsep: payload types are kept per direction of each m= section (conf/jsep-71-pt-numbering). RFC 3264 section 5.1: "the answer might indicate different payload type numbers for the same codecs, in which case, the offerer MUST send with the payload type numbers from the answer"; section 6.1: the answerer "MUST use the payload type numbers from the offer, even if they differ from those in the answer"; RFC 9429 sections 5.10 and 5.11: "The payload type mapping from the remote description is used to determine payload types for the outgoing RTP streams". A sender's codecs (RTCRtpSender::get_parameters, what write_rtp accepts and the streams the interceptors are bound with) are now the remote section's, with its numbers, RTX apt and RED's encodings in that numbering; the receiver's (RTCRtpReceiver::get_parameters, demultiplexing, RTX and RED association, statistics) and the formats of this endpoint's own descriptions keep the numbers its descriptions gave them: a remote answer's formats are entered under the payload types of the local offer, not the answer's, and later offers keep them (RFC 3264 section 8.3.2). Behaviour changes only towards a peer that numbers a format otherwise than this endpoint: before, the first remote description's numbers were used for both directions and for every later description, so an answer that renumbered a format was sent to correctly, and what the peer then sent (with the offer's numbers) was read under the wrong ones; a later offer of the peer's with new numbers was answered and sent to with the old ones. New: SettingEngineBuilder::with_own_payload_types_in_answers(true) has an answer number the formats as this endpoint registered them (RFC 3264 section 6.1 has "SHOULD" for the offer's numbers, which stays the default). Not covered: configure_ulpfec takes one RED and one ULPFEC payload type for both directions, and an a=rid pt= list is compared by number with this endpoint's formats. Row RFC3264-5.1-8 tested; RFC3264-6.1-23 now has a test that sends.
  • sctp (sctp-15): TransportConfig::with_strict_zero_window_drop and strict_zero_window_drop are removed. The RFC 9260 6.2 drop they selected is the default for every association; with_zero_window_overcommit(true) is the escape for applications that read whole messages only. Stream::read_part (partial delivery) is how a buffer full of incomplete messages empties under it.
  • cryptex: a=cryptex under BUNDLE is read from the BUNDLE-tagged section (conf/cryptex-1-bundle-reading). RFC 9335 section 4's "MUST be present for all RTP-based m= sections" binds the writer; the same paragraph assigns the attribute to the TRANSPORT category, whose value is the tagged section's (RFC 8859 section 4.5), the only section an RFC 9143 section 7.1.3 answerer writes it in. By default a group has Cryptex when its tagged section (the first identification-tag with a port, RFC 9143 section 7.3.1) carries it, each group by its own; a section outside any group decides by its own attribute; session-level a=cryptex counts for every section, as before. An answer with a=cryptex on the tagged section only now negotiates Cryptex; the earlier strict reading (every RTP section must carry it) is SettingEngineBuilder::with_cryptex_required_on_every_bundled_section(true), default off. The engine keeps writing a=cryptex at the session level in offers and answers, so it is present for every RTP section with with_bundle_attributes_repeated either way (every_written_offer_and_answer_has_cryptex_for_every_bundled_rtp_section). Rows RFC9335-4-4, RFC9335-9.1-1 and RFC8859-A-30 tested. RFC7941-6-1 is setting (as on conf/audit-5-sctp-w3c, with its Firefox 152 test require_refuses_the_recorded_firefox_offer), not conflict: W3C webrtc-extensions 10.2 fixes only the negotiate default; that header extensions then go in the clear is in its non-normative enumeration description, so the texts can both be met and the default is kept by a peer (Firefox 152 signals neither Cryptex nor RFC 6904), not by a W3C requirement.
  • interceptors: the RTP circuit breaker's packet size follows the sending rate (conf/cb-2-breaker-packet-size). RFC 8083 section 4.3 compares the sending rate with ten times X = s / (Tr sqrt(2p/3)); section 3 takes s over "the last 4 G frames". For speech those are often 23-byte silence frames while the rate is the talkspurts', and a talking call over 1 to 5 % loss was ceased. By default s is now the mean size of the packets sent over the same last CB_INTERVAL reporting intervals the rate is measured over (bytes sent / packets sent there). The RFC form is CircuitBreakerPacketSize::LastFrames (CircuitBreakerBuilder::with_packet_size, DefaultInterceptorOptions::circuit_breaker_packet_size). Row RFC8083-3-3 is partial.
    • tests/circuit_breaker_reordering_rtc2rtc.rs reads the receiver's statistics only once every packet the application wrote has left the sender and arrived: these flows write at a fixed rate above the congestion controller's target on a reordering link (250 to 420 kbit/s for the 500 kbit/s video flow), the pacer held 11 to 25 s of media at the last write, and a receiver report taken while packets were still arriving counted one lost (RFC 3550 6.4.1 at that instant). The tests check that everything written left the sender instead of a packet rate in the last second, which the pacer spreading a talkspurt made 35 of 50.
  • interceptors: reordering is no longer taken for loss (conf/cb-1-false-trip).
    • RFC 8083 section 4.3: the RTP circuit breaker ceased a speech flow (the audio pipeline's rtc-to-rtc test, 0 % loss, 0 to 40 ms of jitter) about a second in. A packet overtaken across a report's boundary made one report's fraction lost 25/256 and the next 0 (the fraction cannot go negative, RFC 3550 A.3, while the cumulative count came back to 0); averaged over CB_INTERVAL with the 23-byte packets of the silence frames as s, ten times the TCP rate fell under the flow's rate. The breaker now uses the smaller of that average and the share of the window's packets the cumulative count says were lost, the newest report's count taken only where it gives packets back (a packet missing then may still arrive). Loss that stays lost trips the breaker as before, one report later at most.
    • RFC 3550 6.4.1: a packet older than the first one received (it was overtaken by it) extends the sequence back instead of counting as a duplicate; it left packetsLost at -1 for the whole session on a lossless reordering path.
    • RFC 4588 6.3: the NACK generator learns how late each stream's out-of-order packets come and holds a first request back that long (the last 10 s, a quarter more, at most 500 ms; with_reorder_delay is the floor). A 500 kbit/s video flow with 40 ms of reordering and no loss sent 164 NACKs a minute and had 154 packets retransmitted; now none.
    • tests/circuit_breaker_reordering_rtc2rtc.rs: the default interceptors over a link that reorders, and the sweep (-- --ignored sweep) of where the breaker fires.
  • jsep: SettingEngineBuilder::with_msid_appdata_change_renews_track (conf/jsep-69-msid-appdata, jsep17). RFC 8830 section 3's form: a remote description that names a new msid-appdata ends the receiver's track and gives it a new one with a track event. Off by default (W3C webrtc-pc 5.3: one track per receiver). RFC8830-3-6 is conflict.
  • jsep: a packet's MID moves one simulcast layer (conf/jsep-68-mid-layer, jsep17). RFC 9143 section 9.2: one layer of a several-stream receiver moves to the section the MID of a later packet names, the other layers stay. RFC9143-9.2-5 and RFC9429-6-1 are tested.
  • jsep: a=ssrc-group of any size and SIM (conf/jsep-67-ssrc-groups, jsep17). A FID or FEC-FR group of three or more ids and an a=ssrc-group:SIM (one track whose further streams are codings of its receiver) are read (RFC 5576 section 4.2, RFC 5956 section 4.1); they were ignored. RFC5576-4.2-2 is tested.
  • interceptor: RFC 7728 rows (conf/jsep-66-pause-resume, jsep17).
    • New RepeatInRegularReports attribute and RtcpSessionControl::StopRepeating: the RTCP session carries a written packet again in the next N Regular compound packets. PAUSED uses it: "the next two regular RTCP reports" (sections 6.3, 8.2); PauseResumeBuilder::with_repeats_in_regular_reports(false) keeps the report-interval timer for a chain without the session.
    • The hold-off takes the longest round trip the RTCP session measured (6.2), applies again with nowait once the received SSRCs show two CNAMEs (6.2), and a local-pause PAUSED is repeated as often as the reported loss needs (6.4: 3 to 10).
    • RFC7728-6.2-2, 6.2-4, 6.2-5, 6.3-3, 6.4-2, 8.2-4, 8.5-1 are tested.
  • rtci-sdp: o= session ids and versions of any length (conf/jsep-65-origin, jsep17). Origin::session_id and Origin::session_version are now SdpDecimal (was u64): the 1*DIGIT of RFC 8866 section 9 has no upper bound, and RFC 9429 section 5.8 has a JSEP endpoint accept compliant SDP beyond the 64 bits it generates. SdpDecimal keeps the digits as written, compares as a number, has From<u64>, PartialEq<u64>, to_u64() and incremented(). RFC9429-5.2.1-58 is tested.
  • audit: small JSEP rows (conf/jsep-64-small-rows, jsep17). No engine change.
    • RFC8851-6.3-6 and RFC9429-3.6.2-2 are n/a (coordinator decision): they bind the encoder, which is the application's; the engine's part of each stays tested. RFC7496-3.2-2 is n/a: it binds only an endpoint that offers the optional SCTP Priority policy, which neither the engine nor the W3C API offers.
    • RFC7941-4.1-2 is tested (the sender stamps MID and RtpStreamId; the note was stale), RFC7941-6-2 tested (a changed Cryptex extension block fails authentication, both AES-CM and AES-GCM), RFC7941-6-1 conflict: the require header encryption policy is RFC 7941 section 6's form, negotiate stays the default as W3C webrtc-extensions 10.2 requires.
  • jsep: audio RED by default (conf/jsep-63-red-default, jsep17).
    • register_default_codecs adds audio/red 48000/2 (payload type 63, a=fmtp:63 111/111, after Opus), as Chromium and WebKit offer it (RFC 2198, RFC 8854 section 4.2). Default offers and answers to them now list it.
    • New RedAudioInterceptor / RedAudioBuilder (rtci-interceptor), Slot::Redundancy (10_450) and configure_audio_redundancy; the peer connection installs it in any chain that does not fill the slot. A local Opus stream whose section negotiated RED is sent as RED with a copy of the previous packet; received RED is taken apart into Opus packets, a lost one recovered from the next packet's copy. A RED stream is bound with its primary codec.
    • StreamInfo has a new field, section_mime_types (struct literals need it or ..Default::default()).
    • Video red + ulpfec stay out of the defaults (FORK.md: the opt-in ULPFEC interceptors take fixed payload types, and no browser cell exercises ULPFEC in RED).
  • jsep: receive-side JSEP rows (conf/jsep-61-receive-rows, jsep16).
    • An a=rid line whose max-width, max-height or max-fs no a=imageattr set of its formats admits is discarded, in an offer and in an answer (RFC 8851 sections 6.2.2, 6.4 and 8).
    • Tested end to end: an offerer answers the answerer's connectivity checks before the answer arrives (RFC 8839 section 4.2.4; the ICE agent already verified them with its own credentials).
    • A stream the remote description declares for one m= section moves to the section a later packet's MID names (when that section's receiver has no stream), as one the engine placed already did (RFC 9143 section 9.2); a MID from a packet older than the one that moved the stream is not applied (RFC 7941 section 4.2.6).
    • rtci-ice: new Agent::replace_remote_candidates_pinning(now, candidates, local): two lite agents, the controlled one takes the local candidate an updated exchange names in a=remote-candidates (RFC 8839 section 4.4.2.2); the peer connection passes it.
    • Audit only: RFC8830-3.2.2-1 tested (stale note), 3.2.5-1 conflict (as 3-7), RFC9429-5.8-1 setting (trailing white space, for webrtc-rs 0.17), RFC9429-5.2.1-28 tested by the MUST of RFC 8854 section 7 (Opus useinbandfec=1).
  • audit: JSEP umbrella rows closed by their children (conf/jsep-60-umbrellas, jsep16). No engine change. RFC8859-4.8-1, A-7, A-29, A-33, RFC9429-5.2.1-57, 5.3.1-11, 5.5-5, 5.2-1 and WEBRTC-4.4.2-43 are tested (every child row is); RFC9429-4.1.8-1 and 5.3-1 are setting and 4.1.9-2 conflict, as their open children are.
  • jsep / sdp: small JSEP rows (conf/jsep-59-small-rows, jsep16).
    • W3C error names: Error::dom_exception_name (InvalidAccessError for the RFC 9429 section 5.8.3 refusals, OperationError for a description that does not parse, InvalidStateError, ...) and Error::rtc_error_detail (sdp-syntax-error), so an API over the engine raises what webrtc-pc 4.4.1.5 names.
    • The W3C codec dictionary match (webrtc-pc 5.4) is strict everywhere the W3C algorithms use it: an encoding's codec matches a negotiated one with ignoreAsymmetricalParameters (no mime-type-only fallback any more), setCodecPreferences and setParameters compare every parameter of the media format (defaults inferred: H.264 packetization-mode=0, ...). Breaking: an encoding whose codec names only a MIME type that the negotiated codec has with an fmtp line no longer matches it, and loses its codec after negotiation.
    • a=msid: a section that would repeat an earlier section's msid-id and appdata (one track sent by two transceivers, which W3C allows) gets its appdata suffixed -<n> (RFC 8830 section 2).
    • rtci-sdp: a=charset is read by SessionDescription::unmarshal (ISO-8859-1, US-ASCII, UTF-8; an unsupported set's text kept as octets) and SessionDescription::charset names it (RFC 8866 section 6.10). A relative u= reference is accepted (RFC 8866 section 9). Breaking: SessionDescription::uri is an Option<String> (was Option<url::Url>).
  • audit / jsep: specification conflicts get a verdict of their own (conf/jsep-58-spec-conflicts, jsep16).
    • New verdict conflict (docs/conformance/audit/RULES.md): two specifications conflict for this endpoint; the clause's form is implemented and tested as a named setting, the form of the specification that governs (W3C webrtc-pc, or RFC 9429 for a JSEP endpoint) is the default and tested too. scripts/audit-count.py checks that the note names the setting (a fn of the source), an RFC-form test and a default-form test that exist, and the governing text; COUNTS.md has a conflict column and counts it in "RFC behaviour tested", never in "tested as the default"; scripts/open-must.py lists such rows with class E. RFC8830-3-7, 3-8, RFC8839-4.4.1.2.2-2 and RFC9429-5.3.1-6 are conflict.
    • New SettingEngineBuilder::with_source_departure_ends_track(bool) (default false): with true a remote track whose SSRCs have all said BYE or timed out ends (RTCTrackEvent::OnClose), RFC 8830 section 3; by default W3C webrtc-pc 9.3 mutes it.
    • Breaking for other branches: COUNTS.md and the totals-line grammar gained conflict; regenerate with python3 scripts/audit-count.py.
  • jsep: coordinator decisions on BUNDLE attributes (conf/jsep-57-decisions, jsep16).
    • Remote fingerprints with BUNDLE (RFC 8859 sections 4.5 and appendix A, TRANSPORT category): the tagged section's are the group's, and what the other bundled sections carry is neither compared nor used. A description whose bundled sections disagree is no longer refused; SettingEngineBuilder::with_bundled_fingerprints_agreeing(true) is the old refusal (Error::ErrSessionDescriptionConflictingFingerprints) as a hardening.
    • IDENTICAL attributes (RFC 8859 section 4.3): a remote description is refused when two bundled sections carry one with different values (an absence is not: the tagged section speaks for the group, and RFC 9429 itself writes a=rtcp-mux-only in a section a later offer adds and not in the tagged one). Checked against the 183 recorded browser descriptions first: none breaks it (Firefox's tagged-only a=rtcp-rsize and a=extmap-allow-mixed are absences, which stay accepted). Breaking: an offer with different a=ecn-capable-rtp methods in two bundled sections is refused; it was answered with the tagged section's.
    • Merged conf/early-1-receive-at-offer, conf/loss-3-followups and conf/media-22-train-fixes.
  • jsep: partly implemented JSEP rows (conf/jsep-56-partial-rows, jsep15).
    • Remote descriptions: a section without c= when the session has none is refused (RFC 8866 section 5.7); bundled sections that give one payload type two a=imageattr sets are refused (RFC 8859 section 4.7); two ccm pause lines for one payload type are refused (RFC 7728 section 9); an a=msid id or appdata longer than 64 characters is ignored like any malformed a=msid (RFC 8830 section 2); an audio or video section whose protocol is not RTP (m=audio 9 udptl t38) is answered rejected in its place instead of having its formats read as payload types (RFC 8866 section 5.14); domain names in o= / c= / candidates follow the RFC 1035 label rules (rtci-sdp); with BUNDLE the DTLS role is the tagged section's a=setup (RFC 8859 section 4.5; Firefox's later answers say active in the other sections).
    • A trickled candidate (add_remote_candidate) is checked against the RFC 8839 grammar, as the candidate lines of a description are.
    • ICE (rtci-ice): application credentials are held to RFC 8839 section 5.4 (ufrag 4 to 32 ice-chars, password 22 to 256): new errors ErrLocalUfragInvalid, ErrLocalPwdInvalid; a local srflx / prflx / relay candidate without a related address is refused (ErrLocalCandidateWithoutRelatedAddress, RFC 8839 section 5.1).
    • Local descriptions: create_offer fails when a SettingEngineBuilder::with_mid_generator generator returns a mid the session has or one that is not a token (RFC 5888 section 4), and when a stream or track id cannot be written in a=msid (1 to 64 token characters, RFC 8830 section 2); offered media sections say TCP/DTLS/RTP/SAVPF when the default or selected candidate is a TCP one (RFC 9429 section 5.1.2), as the data section already said TCP/DTLS/SCTP.
    • SSRCs: a new local SSRC is drawn outside every SSRC a local description of the connection described before (RFC 5576 sections 5 and 8; bounded history of 4096).
    • Remote tracks: a remote source that times out (RFC 3550 6.3.5, the RTCP session's SourceTimedOut) mutes its track as a BYE does (W3C webrtc 9.3).
    • Browser descriptions recorded by the interop harness (train 9 round 3: Chromium, Firefox, WebKit, 42 files) are fixtures of browser_sdp_test.rs; all 183 recorded (bar the two munged-fingerprint cells) pass every check, none needs a new tolerance.
    • Breaking: the new refusals and errors above; RTCPeerConnection::add_sender_sdp-side errors surface from create_offer / create_answer.
  • audit: the open MUST rows, classified (conf/audit-2-classify). No engine change.
    • New verdict setting (docs/conformance/audit/RULES.md): the clause's behaviour is implemented and tested, selected by a named setting, and the default differs because a named browser cell or deployed peer cannot interoperate with it. scripts/audit-count.py checks every setting row's note names a setting that is a fn of the source, a test of the RFC form that exists, and the cell or peer; a totals line carries setting N / where a file has such rows. COUNTS.md has a setting column and reports "RFC behaviour tested" (tested + setting) beside "tested as the default". Twelve MUST rows became setting (bundle attributes in the tagged section only, unique transport credentials, a=msid without appdata, strict RTCP validity, use_srtp for media associations only, VP9 receiver limits).
    • New scripts/open-must.py (a Python gate of cargo.yml, with --check) writes docs/conformance/audit/OPEN-MUST.md from the tables and open-must.tsv: every open MUST row with its class (A to F), what would close it, its size and owner, and the arithmetic to 100 %. It fails on an open row without a class.
    • Breaking for other branches: a totals line or a COUNTS.md made by the old script is regenerated by python3 scripts/audit-count.py.
  • jsep: an offerer receives as its offer describes before the answer arrives (conf/early-1-receive-at-offer, early1; RFC 3264 section 5.1, RFC 9429 sections 4.1.11, 5.9 and 5.11). No signature changes; the behaviour an application sees changes:
    • From set_local_description(offer) on, each receiver whose m= section the offer lists sendrecv or recvonly takes that section's formats beside the ones negotiated before, and the offer's header extension ids are read where none is negotiated yet. Media that overtakes the answer (a later offer on a transport that is up; an offer followed by a provisional answer) is delivered at once, as RTCMessage::RtpPacket for the track of the receiver the application has from add_transceiver_* / add_track, where it used to be discarded (discarded_rtp_packets) or let through without its stream being established. RTCTrackEvent::OnOpen and OnUnmute therefore fire before the answer; the W3C track event (OnRemoteTrack) still fires when the remote description is applied. Nothing is buffered.
    • A provisional answer no longer narrows what is received: every format of the offer stays receivable until the final answer or a rollback (RFC 9429 section 4.1.11).
    • The final answer keeps a stream that arrived early (its SSRC, track and statistics) and binds it to the interceptors again only when it changes what the stream was bound with. A format that was offered and never negotiated before is bound without RTCP feedback until the answer has it (RFC 4585 section 4.2), so for a new section NACK, PLI and congestion feedback start with the answer; receiver reports of an RTP session that already exists cover the early stream. A format the answer leaves out stops being received with the answer.
    • A rollback of the offer (explicit, or the implicit one of a glare) takes back what the offer prepared: the early streams are unbound, their inbound-rtp statistics are retired, a track their media unmuted is muted again (RTCTrackEvent::OnMute), and what the peer still sends for them is unassociated media (OnUnassociatedRtpDiscarded).
    • With several transports, a section a pending local offer lists in a BUNDLE group is accepted on that group's transport as well as on the transport the offer stages for it (RFC 9143 section 7.2), until the answer says where it is.
    • While a local offer is pending, an RTX or FEC packet on an SSRC no description names yet is taken as the repair flow of the one stream its section receives (RFC 4588 section 5.3), and a repair packet that precedes its stream is dropped without being reported as unassociated media. An RTX packet on an undeclared SSRC no longer establishes a stream of codec video/rtx (at any time).

Known limits

  • interceptors (congestion control), a capacity drop that meets a higher rate: without the downward steps the estimate of an open link is at 1.41 Mbit/s after twenty seconds where it was at 0.99, and a path that drops to 300 kbit/s at that moment costs more than it did at the lower rate. Measured in tests/capacity_cap_video_rtc2rtc.rs (a_capacity_cap_that_arrives_at_a_higher_rate_costs_an_older_picture; a chain without a pacer, six seeds), against v0.22.0+brainwires.6 on the same test, whose estimator met the same drop at 1.38 Mbit/s: longest time without a usable frame 1.28 to 1.32 s (0.98 to 1.23 s), oldest picture shown 4.40 to 4.51 s (4.24 to 4.39 s), 92 to 101 retransmissions of which 23 to 32 are dropped at the path's queue (62 to 67, 11 to 12); the capped path carries 246 to 254 kbit/s (199 to 206) and the estimate is at 1086 to 1361 kbit/s twenty seconds after the capacity is back (473 to 1501: two seeds of six at 473 and 737). So three figures are behind the earlier release at this rate (the freeze by 0.1 to 0.3 s, both under 2 s; the picture's age by up to 0.3 s; half again as many retransmissions) and two are ahead. Cause: for some 0.45 s (the path's 300 ms of queue, its delay and a feedback interval) nothing can tell the sender; the first cuts follow the received rate, whose 500 ms window still holds what arrived before the drop (803, then 461, then 252 kbit/s). The earlier estimator cut its own estimate to the floor within a second and a half and sent less into that queue, at the price of 200 kbit/s under the cap and a recovery that depended on where the estimate stood when the capacity came back. The same drop met at 1 Mbit/s: 0.56 to 1.26 s, 1.68 to 2.48 s, 39 to 47 retransmissions. Traced repair by repair (hosted runs 45341865225, 45342290711, six seeds), the extra retransmissions have two causes. (1) Fresh repairs sent into a queue that is still full: 20 to 22 of the 23 to 32 dropped are repairs made 0.42 to 0.62 s after their original, in the first 0.2 s after the first NACKs, while the path's queue still holds media sent at the old rate (the delay-based detector does not read the queue filling within a feedback interval; a known limit of its own). (2) Duplicate repairs: 24 to 28 of the 92 to 101 retransmissions repeat a packet whose first repair was still in flight when the receiver asked again (it waits up to 300 ms in the path's queue); the request waits for room in the rate limit and is answered 0.01 to 0.8 s after that first repair arrived, and, oldest packet first, ahead of first repairs of newer gaps. Giving up old repairs and asking for a key frame instead does NOT help a receiver that plays in order (this test's, the engine's SampleBuilder without a time bound): measured with repairs older than 1 s declined and a key frame asked for (hosted run 45342372315), the video froze for 8.36 to 8.49 s and the oldest picture was 7.55 to 7.77 s old, because the receiver holds the gap for its whole packet window and the key frame waits behind it. Planned after this release: no repeat repair of a packet whose first repair transport-wide feedback reports received, and first repairs ahead of repeats.
  • interceptors (pacer), a sudden drop of the path's capacity: with the default interceptors (the pacer) the receiver's picture can be 5.6 to 10.2 s old for a few seconds after a sudden drop, though it never stops for more than 2 s (the repair work planned for 0.1.x, conf/rtx-1-duplicate-repairs, brings it to about 4.1 to 6.6 s). Measured in tests/capacity_cap_video_rtc2rtc.rs (a call at 2.5 Mbit/s whose path drops to 300 kbit/s; six seeds on three wall clocks): longest time without a usable frame 1.38 to 1.90 s, oldest picture shown 5.95 to 8.56 s (without a pacer: 0.83 to 1.24 s and 2.26 to 3.21 s). Cause: the path drops video packets before the estimate has followed it (55 to 62 are asked for on six seeds); they are retransmitted inside the estimate (100 to 250 kbit/s, of which the audio takes 76), ahead of the media the paused source left in the pacer, and a receiver that plays in order shows each repaired frame as it completes. It is the same under every retransmission rule: the pacer holds repairs to the estimate, where a chain without one lets them leave in a burst while the estimate is still falling. (With over-use lowering the estimate on every update, the default since: 0.97 to 1.91 s and 5.59 to 9.84 s on six seeds; 5.56 to 10.23 s on six seeds and three wall clocks, the seeded runs moving with the length of the ICE agent's SOFTWARE text.) Traced repair by repair (hosted runs 45341865225, 45342290711): 90 to 103 retransmissions, none dropped at the path, of which 35 to 41 repeat a packet whose first repair had already arrived (answered 0.01 to 1.1 s after it; the request was made while that repair was still in flight), and these share the estimate with the first repairs of newer gaps. The figure the test printed as retransmissions in this chain (250 to 420) also counted the probe clusters' padding on the RTX stream (154 to 330 packets); the test now counts the two apart. Giving up old repairs and asking for a key frame instead makes it worse for a receiver that plays in order (measured, hosted run 45342372315: frozen 8.03 to 8.53 s, oldest picture 7.15 to 7.53 s; the receiver holds the gap for its whole packet window). Planned after this release: no repeat repair of a packet whose first repair transport-wide feedback reports received, and first repairs ahead of repeats.
  • interceptors (congestion control), delay-side detection after a sudden drop: the delay-based over-use detector sees queue growth only through transport-wide feedback, so for some 0.45 s after a sudden capacity drop (the path's queue, its delay and one feedback interval) nothing tells the sender, and the first cuts follow the received rate, whose 500 ms window still holds the old rate. Fresh repairs sent in that time meet a full queue (20 to 22 of the 23 to 32 retransmissions dropped at the path in a_capacity_cap_that_arrives_at_a_higher_rate_costs_an_older_picture). On a reordering, lossless path the delay side still settles below capacity (the loss side no longer takes a packet that is only overtaken for a loss; the delay-based grouping is a proposal, docs/gcc-reordering.md).
  • peer connection (SRTP re-keying), the margin a short key lifetime leaves: the re-keying has the last sixteenth of an SRTP key's lifetime to complete (an offer and its answer through the application's signalling, ICE checks on new candidates and a DTLS handshake), and the margin is counted in packets: a lifetime short enough that a sixteenth of it lasts less than the re-keying at the stream's packet rate ends the session instead. Size a lifetime as at least 16 x packet rate x re-keying time (a 9600-packet lifetime at 188 packets a second leaves 3.2 s, and a re-keying through TURN takes about 2 s); the connection logs a warning when the margin it has is under 2 s. The profiles' lifetimes are far longer; shorter ones are for tests and constrained deployments (conf/rekey-3-server-margin).

Behaviour changes

  • peer connection: automatic SRTP re-keying has a tie-break (conf/rekey-1-glare). Two peers with the same key lifetime reached the lifetime warning on the same packet and both offered a new DTLS association, so their offers always crossed. Now the DTLS client of the association asks at the warning (a sixteenth of the lifetime left) and the DTLS server only once a thirty-second is left (RTCEventInternal::SrtpRekeyingDue), if no new association has come by then; the client's offer gives the server new keys first. One renewal at a time: no re-keying is asked for while a new association of any transport is asked for, being negotiated or being established, and one that waited is asked for when the connection is back in stable without a new association. New setting SettingEngineBuilder::with_srtp_rekeying_dtls_client_first(bool) (default true; false is the previous behaviour, both at the warning). A server whose peer does not re-key by itself now asks with half the margin it had.
  • peer connection: poll_event no longer hands out a negotiationneeded whose reason went before the application read it (W3C webrtc-pc "Updating the Negotiation-Needed flag": the queued task checks again, "If connection.[[SignalingState]] is not "stable", abort", and clears the flag when nothing is to be negotiated). Before, the event queued when a rollback brought the connection back to stable with a renewal still wanted was handed out after the answer to the peer's offer had given the renewal, and the application made a needless offer; likewise the event queued before a first exchange that the application made without reading events (tests/rtcp_session_rtc2rtc.rs::a_sender_moves_to_a_new_ssrc_after_a_collision now counts one event, the new SSRC's).
  • congestion control, peer connection: a new selected candidate pair is a new path for the congestion controllers also when the datagrams keep their addresses (conf/gcc-2-path-change). The peer connection reads PathChanged (rtci-interceptor, an empty-RTCP carrier on the read leg, tagged with the transport's RtpSession when there are several) into the chain each time a transport's ICE agent selects another pair after its first; the TWCC-driven GCC (GccInterceptor) starts over from its start rate and forgets the send times of the packets sent before, and the congestion control interceptor calls BandwidthEstimator::on_path_change and forgets its send history (History::forget_sent), so the packets sent into the old path are not counted as the new path's loss. Both controllers followed only the addresses inbound packets arrive between, and the congestion control interceptor counted the old path's packets as lost when it did see a change; that detection stays, and now forgets the history too. Why: ParolNet's an_ice_restart_follows_a_machine_to_another_network hands every datagram over with one placeholder pair, so neither detection fired: after a 4 s outage one transport-wide feedback reported a loss of 0.985 (the packets sent into the dead path), GCC cut its estimate from 437 to 242 kbit/s and the call froze 7 s. A TURN relay can keep the addresses too. libwebrtc restarts its estimate on a route change and has its feedback adapter report only the packets sent on the new route (RtpTransportControllerSend::OnNetworkRouteChanged, TransportFeedbackAdapter::SetNetworkRoute), and leaves the first connection alone, as here. Tests: tests/capacity_cap_video_rtc2rtc.rs an_ice_restart_with_the_same_addresses_starts_the_estimate_over (ParolNet's chain) and ..._counts_no_old_loss_in_the_default_chain, an ICE restart after a 4 s outage with the addresses unchanged; unit tests in gcc/twcc_gcc and tests/congestion_control_limits.rs. Measured there (hosted run 45299712792): ParolNet's chain restarts at 300 kbit/s from 638 and never goes under 300 kbit/s after the switch; without the peer connection's carrier the estimate stays at 638 kbit/s through the switch and one feedback cuts it (run 45300194903), and with the restart but the old send times kept it falls to 153 kbit/s (45300201020). The default chain counts no loss after the switch; with its history kept, a smoothed 18 % (45300207507).
  • peer connection, interceptors: behaviour profiles after the train-12 and train-13 (sctp-15, mt-9) merges (conf/profile-3-on-master). Each setting master added is classified, its libwebrtc value read at a222406d (file and lines in docs/behaviour-profiles.md):
    • pacer.queue-overflow (DefaultInterceptorOptions::pacer_queue_overflow): Drop in Rfc, StrictRfc and Performance, Drain in Chrome (libwebrtc's PacingController::MaybeUpdateMediaRateDueToLongQueue raises the rate to empty the queue within 2 s and drops nothing).
    • nack.max-requests-per-packet: new field DefaultInterceptorOptions::nack_max_nacks_per_packet (0, unlimited, by default), passed to NackGeneratorBuilder::with_max_nacks_per_packet; Chrome 100 (kMaxNackRetries in modules/video_coding/nack_requester.cc, not 10 as SUGGESTED_MAX_NACKS_PER_PACKET says). libwebrtc's limits counted in packets (a NACK age of 10,000 sequence numbers, a list of at most 1000) are listed as not expressible: the generator's age limit is a time.
    • New field DefaultInterceptorOptions::nack_retransmission_rate_limit, passed to NackResponderBuilder::with_rate_limit; UpToTarget in every profile until conf/gcc-2-rfc-retransmission changes the RFC default.
    • ice.software-attribute follows master's with_ice_software (an Option<Option<String>> field): Rfc / StrictRfc / Performance send rtci-ice / rtci-turn and their versions, Chrome sends no SOFTWARE in the ICE checks and responses and in the TURN requests either (none in libwebrtc's Connection::BuildPingRequest, SendStunBindingResponse or its TURN requests).
    • Left alone, with the reason: with_audio_redundancy (WhenPreferred, libwebrtc's rule too), with_own_payload_types_in_answers (off: libwebrtc answers with the offer's numbers), rtcp_random (an injected source), with_sctp_inbound_reassembly_limit (train 13's sctp-15: libwebrtc's dcSCTP has no partial delivery to bound; it reassembles inside its 5 MiB receive window and aborts the association when that fills with no message complete), with_dtls_new_association_on_previous_addresses (train 13's mt-9: off in every profile; libwebrtc gathers each ICE generation on new sockets too).
    • DefaultInterceptorOptions has a hand-written Debug (master's, for rtcp_random) listing every field; rtcp_random reaches the RTCP session through register_default_interceptors_with_options as on master.
    • README: the "Behaviour profiles" section says how to choose a profile at run time (from_name, for_profile) and by cargo feature, and which wins when both features are on.
  • interceptors, peer connection: audio RED is sent only when the remote side prefers it (conf/red-1-send-policy). jsep17 sent every Opus packet as RED, with a copy of the one before, whenever RED was negotiated: a 24 kbit/s audio-only call went from 38.5 to 64.5 kbit/s on the wire (hosted run 45240105038), against every browser that negotiates RED. RFC 3264 sections 5.1 and 6.1 list an m= line's formats "in order of preference" and have the sender "use the format with the highest preference"; RFC 2198 section 5 reads a section that leads with red as the sender sending "redundancy by default"; RFC 8854 recommends Opus's in-band FEC for Opus (section 4.1) and FEC only for the loss observed or on the application's request (section 8); libwebrtc sends RED only when it is "negotiated before the actual codec" (webrtc_voice_engine.cc, SetSendCodecs). Chromium and WebKit list RED after Opus in their offers and in their answers to this engine, so neither side sends RED in a call between them by default.
    • New AudioRedundancy { WhenPreferred, Always, Never } (rtci-interceptor, default WhenPreferred), RedAudioBuilder::with_audio_redundancy, SettingEngineBuilder::with_audio_redundancy and configure_audio_redundancy_with(registry, AudioRedundancy) (new API). WhenPreferred: RED when the remote description lists it ahead of the stream's codec; Always: RED whenever negotiated (the jsep17 behaviour); Never: the codec only. Received RED is taken apart in every mode. RED stays offered and answered as before.
    • A sender's streams are bound to the interceptors with their section's formats in the remote m= line's order (StreamInfo::section_mime_types); the sender's negotiated codec list itself is unchanged.
    • The interop peer reports the RTP payload types and octets on the wire in each direction (wireRtp), and the "reflect audio Opus" cell records them and asserts Opus both ways. The Chromium and WebKit answer fixtures of "Rust offers media" are refreshed from train 11's matrix (they now answer the engine's RED, after Opus).
  • peer_connection (audit-5, W3C webrtc 4.4.1.4): an answer or a provisional answer that continues the SCTP association updates maxMessageSize and what the association lets this side send from the remote a=max-message-size (it kept the first answer's). rtci_sctp::Association::set_max_message_size is public (new API).
  • dtls (audit-5, RFC 8835 section 3.5, RFC 7301): Application-Layer Protocol Negotiation in DTLS 1.2 (ServerHello) and DTLS 1.3 (EncryptedExtensions): ConfigBuilder::with_alpn_protocols, State::application_protocol (new API). A server without a protocol in common answers no_application_protocol.
  • peer_connection (audit-5, RFC 8833): the DTLS client offers webrtc and c-webrtc, the server selects webrtc; a peer without ALPN connects as before. RTCPeerConnection::dtls_application_protocol, SettingEngineBuilder::with_dtls_alpn (new API; false leaves the extension out).
  • peer_connection (audit-5, RFC 8842 section 5.2, RFC 8122 section 6.2): DTLS datagrams that arrive before ICE has a path (a ClientHello that overtook the answer) are held, at most 8, and taken once the transports start; they were dropped and only the peer's retransmission recovered the handshake.
  • sdp (audit-5, RFC 6679 section 7.1): with ECN signalled (with_ecn(true) without with_ecn_without_signalling) every audio and video format takes nack ecn and the XR ECN summary: an offer's RTP sections carry a=rtcp-fb:* nack ecn and a=rtcp-xr:ecn-sum beside a=ecn-capable-rtp, an answer keeps what the offer had of them (ack ccfb replacing nack ecn, RFC 8888 section 7). Two such peers without RFC 8888 now mark their media on RFC 6679's own reports (they marked nothing).
  • sdp (audit-5, RFC 7742 section 6.2): every H.264 fmtp line this endpoint writes has profile-level-id (a format registered without one is written with RFC 6184's default, 42000a) and none has sprop-parameter-sets (it was written as registered). An offer without profile-level-id is answered at no more than Level 1, the default it stands for (it was answered at this endpoint's own level).
  • peer_connection (audit-5, RFC 8852 section 3): the RID and RRID header extension elements are read through RtpStreamId / RepairedRtpStreamId; one that is not 1 to 255 ASCII letters and digits names no stream (its bytes were taken as the rid).
  • audit (audit-5): setting takes a second kind of evidence, "measured" (RULES.md): the RFC form has its own mutation-checked test and a named repository test measured it worse; scripts/audit-count.py --check requires the measurement test and its numbers. GCC-5.4-4 and RFC4585-3.5.2-5 are such rows, RFC7941-6-1 a setting for the recorded Firefox 152 offer; RFC9429-5.3.2-9, FLEXFEC03-5.1-5 and RFC7164-5-1 are n/a. rtci-interceptor tests congestion_feedback_rate.rs::rfc_4585_timing_of_congestion_feedback_measured_against_immediate and gcc/overuse.rs::the_drafts_threshold_adapts_over_the_uncapped_arrival_gap added.
  • sctp (sctp-14, RFC 9260 6.1 A, 6.2; travels with sec-12): a closed receive window always makes progress. With sec-12 every SACK that kept a_rwnd at 0 re-armed the one-RTO wait before the next probe, also when it acknowledged the probe just sent, so a message larger than the receiver's buffer (webrtc-rs/webrtc#822, tests/sctp_receive_buffer_deadlock.rs) arrived at one fragment per RTO (64 KiB through 16 KiB: about a minute). A SACK that acknowledges the outstanding zero window probe is now progress and the next probe goes at once; only a probe the receiver drops waits, for T3-rtx and its doubling interval. The receiver acknowledges a chunk it takes through its closed window at once instead of after the SACK delay (the test's message arrives in 1.6 s, 9.4 s on master). With I-DATA the probes finish a part-sent message before another is started, so several interleaved messages that together fill the buffer still complete one at a time; and an association that negotiated I-DATA takes the in-sequence chunk that unblocks reassembly through a closed window whatever with_zero_window_overcommit says (RFC 8260 section 6). Without that, interleaved messages that each fit the buffer but fill it together (six 16 KiB messages, 16 KiB buffer, weighted fair queueing) deadlocked: the RFC 9260 6.2 drop refused the chunk that would complete one of them, for ever. Toward peers without I-DATA (browsers) the drop is unchanged. The literal drop stays available for I-DATA associations too: TransportConfig::with_strict_zero_window_drop(true) (new, off by default; it can deadlock interleaved messages, as its documentation says). Audit: RFC9260-6.2-2 is now the association without I-DATA (tested); the I-DATA case is the new row RFC9260-6.2-34, setting (measured: 0 of 24 messages with the drop, 24 of 24 by default).
  • sctp (sec-12, RFC 9260 6.1 A): after a SACK with a_rwnd 0 the first zero window probe waits one RTO (it went at once); a SACK that keeps the window closed resets the T3-rtx expiry count and the path error count, so probes the receiver keeps answering never end the association.
  • sctp (sec-12, RFC 9260 6.2.1 B, C): chunks marked for retransmission (T3-rtx, Fast Retransmit) give their size back to the peer's rwnd, and every retransmission takes it again; T3-rtx retransmissions are limited by cwnd and by rwnd separately.
  • dtls (sec-12, RFC 9147 8): after a key update the epoch before stays readable until a record of the next arrives, so a late record of it is processed (it was dropped once a record under the new keys had been read).
  • dtls (sec-12, RFC 8446 4.4.2.4): a DTLS 1.3 endpoint that validates the peer's chain refuses a certificate signed with SHA-1 (bad_certificate). Fingerprint authentication (WebRTC) validates no certificate signature and is not affected.
  • dtls (sec-12, RFC 8446 C.2): a signature from an RSA key above 8192 bits is refused.
  • dtls (sec-12, RFC 8446 7.1): the DTLS 1.3 handshake traffic secrets are erased once both Finished are done; the key schedule keeps no copy of the application traffic secrets.
  • peer_connection (sec-12, RFC 9147 9, 11): SettingEngineBuilder::with_dtls_connection_id sets the DTLS connection id length; with connection ids in use a spare id is requested once the association is up, and a change of ICE selected pair switches to a fresh one.
  • peer_connection: renew_dtls_association() (and the automatic re-keying) renews the association of every transport of the connection, not only the first.
  • sctp (sctp-15, RFC 9260 6.9, 6.2, 11.1.7; RFC 6458 3.1.4, 6.1.7, 8.1.21; RFC 8260): partial delivery. New Stream::read_part returns a MessagePart (chunks, unordered, first, end_of_record): a complete message whole, as one part with the end of record; the in-order leading fragments of a message that has not all arrived once they reach the partial delivery point (new TransportConfig::with_partial_delivery_point, default half the receive buffer, at most the buffer), or whatever their size when the receive buffer is out of space with nothing readable whole (RFC 9260 6.9: "it SHOULD dispatch part of its inbound message through a partial delivery API"). One message per stream at a time, an ordered one only when it is due, nothing else of the stream read until its last part; several streams at once with I-DATA (RFC 8260 4.3.1). What is read leaves the receive window at once. New Stream::in_partial_delivery. A FORWARD TSN or I-FORWARD-TSN that skips the rest of a message in partial delivery raises the new StreamEvent::PartialDeliveryAborted { id, unordered, sequence } (StreamEvent is #[non_exhaustive]). read_sctp is unchanged: whole messages only.
    • The RFC 9260 6.2 drop (once a_rwnd 0 is advertised, new DATA above the largest TSN is dropped) is the default for every association again: an I-DATA association no longer takes the chunk that unblocks reassembly through a closed window. With partial delivery the drop deadlocks nothing (sctp-14's measurements, now read in parts: six interleaved 16 KiB messages into a 16 KiB buffer, 24 of 24 in 2.1 s, 0 of 24 for a reader of whole messages; one 64 KiB message through a 16 KiB buffer, 230 ms; the zero window sweep, 672 runs, 0 stalls). with_zero_window_overcommit stays, for applications that read whole messages only.
    • A window the sender sees as too small for a full chunk (the last a_rwnd less what it sent since) is announced by a SACK as soon as a read opens it (RFC 9260 6.2, "When the window opens up, an SCTP receiver SHOULD send additional SACK chunks"); it was only for a window advertised as 0. On the wire: extra window-update SACKs toward a sender that a small receive buffer blocks; none while the sender still sees room for a chunk.
  • peer_connection (sctp-15, RFC 9260 6.9, RFC 8841 6.1, RFC 8831 6.6): data channels read SCTP in parts and put messages together above the association, so the SCTP window reopens while a message is still incomplete; the application still gets whole messages (W3C). The zero window overcommit is no longer set when the advertised max-message-size is larger than the receive buffer. A message larger than the advertised maximum is dropped as before. A conforming peer has at most one message in progress per stream (RFC 8260 2.2.2), each at most that maximum, and the handler holds at most one per stream; over that product the bytes of incomplete messages held for an association have a ceiling, new SettingEngineBuilder::with_sctp_inbound_reassembly_limit (64 MiB by default, never below the advertised max-message-size; worst case per association: the receive buffer plus the ceiling, 65 MiB with the defaults). A part that would go over fails only its data channel (OnError, data-channel-failure, the message naming the limit) and resets its stream once the rest of the message has been read and dropped. 16 and 64 concurrent 64 KiB messages over I-DATA all arrive under the default. The receive window a peer sees is the same as before for messages that fit half the buffer; a message larger, or interleaved messages that fill it, keep it open instead of closing it.

Features

  • media: SampleBuilder::with_max_gap_wait(Duration), an optional wall-clock bound on a gap (off by default; behaviour unchanged without it). max_late bounds the wait for a missing packet in packets, which is a time only at one bit rate: a receiver with max_late 256 froze 8.6 s at 100 kbit/s on a gap that never filled (tests/capacity_cap_video_rtc2rtc.rs). With the bound, once the oldest missing packet has been missing that long (from the arrival of the first packet after it), the builder gives the gap up as max_late does (the incomplete sample and the missing packets dropped, counted in the next Sample::prev_dropped_packets, building resumed at the next packet that starts a sample) and raises a key-frame request (take_key_frame_request() -> bool; skipped_gaps() -> u64 counts them). Checked on push and pop with their now; poll_timeout() -> Option<Instant> names when to call pop while a gap waits (sans-I/O, no clock read). docs/receiver-gap-policy.md updated (a_gap_that_never_fills_is_skipped_at_the_bound_with_a_key_frame_request, a_gap_repaired_before_the_bound_changes_nothing, without_the_bound_a_gap_is_held_until_max_late, the_deadline_is_the_oldest_gap_plus_the_bound).
  • peer connection: RTCPeerConnection::unsent_media_packets(): RTP and RTCP written but not sent (no ICE path, or an SRTP index already used), so media the engine cannot send is counted, not lost unseen (conf/rekey-2-no-loss). rtci-stream-driver: PeerDriver::unsent_datagrams() for datagrams no socket sent.
  • rtc (conf/mt-10-gather-anew): new RTCPeerConnectionEvent::OnLocalCandidatesNeeded (RTCLocalCandidatesNeededEvent, RTCLocalCandidatesNeededReason): a transport needs a new set of local candidates, on transport addresses the previous DTLS association did not use (RFC 8842 section 5.1). It names the transport (ICE and DTLS transport ids, the mids of its sections, the first one's sdpMLineIndex), the reason (NewDtlsAssociation, SrtpRekeying on the side whose key neared its lifetime, TransportReplaced for the transport set up after an answer rejected every m= section, DiscardedBySetting for an ICE restart with with_discard_local_candidates_during_ice_restart(true)) and the refused addresses. It fires when the description that begins the transport's gathering is set locally, right before its gatheringstatechange to "gathering"; not with with_dtls_new_association_on_previous_addresses(true). Crate documentation: section "Gathering". Every route of add_local_candidate (the default transport, another one by sdp_mid) returns ErrICECandidateAddressOfPreviousDtlsAssociation unchanged for a refused address (tests below).
  • rtci-stream-driver: new peer module (feature peer, on by default; depends on rtci): PeerDriver drives a whole peer connection over sockets it owns, its UDP host sockets included (PeerDriverConfig: addresses, UDP port range, the TCP driver's settings). It gathers when a transport begins gathering, and on OnLocalCandidatesNeeded binds new UDP ports in its range, adds their candidates for the event's section and ends the generation by itself; the previous sockets stay open until a pair on a new one is selected for that transport and then for retired_socket_linger (5 s by default: the peer may still send to the previous address until its own selection switches; closing at once lost a packet on macOS), or until the transport closes. With the opt-out it keeps its sockets and gives their candidates to each new generation. Tests (examples/stream-driver/tests/peer.rs, no gathering in test code): stop_all_then_add_carries_media_on_new_sockets, automatic_srtp_re_keying_carries_every_packet_onto_new_sockets, with_the_opt_out_the_driver_keeps_its_sockets.
  • interop-peer: gathers on a new UDP socket on OnLocalCandidatesNeeded and trickles the candidate to the browser; ?previous_addresses=1 builds it with with_dtls_new_association_on_previous_addresses(true). Browser cells "transceiver stop, then a new transceiver reuses or keeps the m-line" (the default: Rust's answer lists none of the previous candidates) and its twin with the opt-out (the answer lists them again).
  • ice-tcp: test that an ICE restart does not close the selected pair's TCP connection (RFC 6544 section 9.2, an_ice_restart_does_not_close_the_selected_tcp_connection); row RFC6544-9.2-1 tested.
  • dtls: an RSASSA-PKCS1-v1_5 signature (ServerKeyExchange, CertificateVerify) whose DigestInfo has no hash parameters is accepted, as RFC 5246 section 4.7 requires ("MUST accept both without parameters and with NULL parameters"); only the NULL form was before. The providers (ring, AWS-LC) verify the NULL form and give no raw RSA public operation, so when one refuses such a signature, rtci-crypto checks the other form itself: s^e mod n with num-bigint (public values only; already in the graph through der-parser) and a whole comparison with the EMSA-PKCS1-v1_5 encoding, built, never parsed. New public functions rtci_crypto::verify_rsa_pkcs1_without_digest_parameters and rtci_crypto::rsa_pkcs1_hash. Row RFC5246-4.7-1 tested (crypto_test.rs::rsa_pkcs1_signatures_with_and_without_null_digest_parameters_are_accepted).
  • dtls: RFC 8122 section 6.2 (conf/audit-4-small-c). A peer connection's DTLS server ends a handshake whose client sends no certificate with bad_certificate, under DTLS 1.2 and 1.3 (it was handshake_failure / certificate_required). New ConfigBuilder::with_bad_certificate_for_a_missing_client_certificate (default false: the RFC 5246 7.4.6 / RFC 8446 4.4.2.4 alerts stay rtci-dtls's default) and HandshakeConfig::bad_certificate_for_a_missing_client_certificate. Closes RFC8122-6.2-5.
  • audit: open MUST rows of classes B, E and F closed (conf/audit-3-close-f-b). No engine change; new tests, each checked by mutation in the container.
    • Tests: no RFC 3550 encryption prefix under SRTCP (RFC 5124 section 2); a changed RtpStreamId fails SRTP authentication (RFC 8852 section 5); Cryptex encrypts and authenticates the CSRCs and extension elements like the payload (RFC 7941 section 6); later offers and answers keep a=cryptex, and the appbits identifier 256 is never negotiated (RFC 9335 sections 4 and 5); TCP and UDP pairs share one checklist, paced one per Ta (RFC 6544 sections 4.1 and 7); every format of a layered section keeps one dependency structure (RFC 5583 section 5.2.1).
    • Stale notes corrected where a test already held the behaviour (MID and RID stamping, the mandatory video codecs, the SAVPF profile, a=sframe signalling, telephone events received gracefully, SRTP re-keying, PR-SCTP).
    • RFC5124-3.3.1-6 was the audit's one violated MUST row: it is n/a, RFC 9429 section 5.1.2 requiring a JSEP endpoint to accept the RTP profiles RFC 5124 would reject (DTLS-SRTP is judged by a=fingerprint, other profiles are rejected, both tested). RFC8826-4.3-3 is n/a: it binds the script-facing API.
    • OPEN-MUST.md lists the rows closed since they were classified, with their class.
  • interceptors: a packet only overtaken is not a loss for congestion control (conf/pacer-1-queue-time). The feedback history counted a packet a feedback reported "not received" as lost at once and forgot it, so the later feedback reporting it received matched nothing: 500 kbit/s video over a lossless link with 40 ms of reordering had 8.2 % of its packets counted lost, and the loss-based half held the target at 100 to 190 kbit/s. A reported loss is now held for one more feedback, as libwebrtc's TransportFeedbackAdapter keeps it ("they might be reported as received by a later feedback"); History::recovered counts the packets that were. Lost packets reach the estimator one feedback later. Measured in docs/gcc-reordering.md, with a proposal for the delay-based grouping.
  • interceptors: the pacer bounds its queue time and never refuses a packet (conf/pacer-1-queue-time).
    • A packet arriving at a full queue (4096) was refused. The packets there are numbered, so each refusal was a hole in the stream that no path lost: a 2 Mbit/s source above a sub-1 Mbit/s target ended with 4419 packets "lost" on a lossless link. A full queue now releases its oldest packet over the budget instead; PacerInterceptor::dropped is replaced by forced.
    • The queue time is bounded, as in libwebrtc (PacingController, queue_time_limit 2 s, drain_large_queues): with q bits queued and the oldest packet having waited w, the pacing rate is max(target, q / (limit - w)), and a packet that has waited the limit leaves. PacerBuilder::with_queue_time_limit (DEFAULT_QUEUE_TIME_LIMIT, None for none); PacerInterceptor::queue_time. The same source above the target was queued for up to 25 s; now 2 s. The application sees that its source is above the target in the target itself (TargetBitrateChanged, RTCRtpSender::target_bitrates).
    • Audio streams are not queued behind video: their packets leave when written and are charged to the budget.
    • RFC 8083 section 4.3: the congestion breaker's "at least one RTP packet every max(Tdr, Tr)" is the sender's rate, not each report's. Reports every 10 ms against a frame every 20 ms cleared the samples at every other report, so the breaker never judged a video flow.
    • DefaultInterceptorOptions::rtcp_random: the RTCP sessions of the default set draw their random numbers (report interval variation, early-feedback dither, SSRC, CNAME) from a crypto provider's random(); with the setting engine's seeded provider a run is the same every time. Without it they come from rand, as before.
  • peer connection: SettingEngineBuilder::with_ice_software(Option<String>) sets the SOFTWARE attribute (RFC 8489 section 14.14) of every STUN message the peer connection sends: the ICE agent's connectivity checks (nominations and consent checks included) and success responses, and the requests of the TURN clients the engine runs over UDP, TCP, TLS and DTLS. None sends no SOFTWARE attribute at all, for an application that must not put an implementation fingerprint on the wire (section 16.1.2: "Implementers SHOULD make usage of the SOFTWARE attribute a configurable option"); Some(text) sends text. Without the call nothing changes: rtci-ice <version> from ICE, rtci-turn <version> from TURN. A text of 128 characters or more fails building the peer connection with ErrAttributeSizeOverflow. The server-reflexive Binding requests of the engine's gatherer carry the ICE agent's SOFTWARE too (RFC 8489 sections 6.1 and 14.14: requests SHOULD; they carried none before), under the same setting. New public field

    engine's server-reflexive Binding requests carry no SOFTWARE in any case. New public field IceBehaviour::software (a struct literal of IceBehaviour needs it).

  • interceptors, peer connection: a wall-clock anchor per peer connection (conf/det-1-wall-clock). Every interceptor that writes NTP times takes with_wall_clock(SystemInstant): RtcpSessionBuilder (sender reports, XR receiver reference times), SenderReportBuilder, ReceiverReportBuilder, Rfc8888Builder (report timestamps) and NtpTimestampBuilder (the RFC 6051 header extension); DefaultInterceptorOptions::wall_clock gives one anchor to all of them in the default set. Without it nothing changes: the process-wide SystemInstant::shared, taken at its first use, which is right for a process with one clock. Under virtual time it is not: a second run in the same process mapped its instants to NTP times later by the real time since the first run, with different fractions of a second, so two runs of one seed could differ (circuit_breaker_reordering_rtc2rtc::the_same_seed_gives_the_same_run failed 3 of 6 times on a branch whose NACK retransmission rule is sensitive to the round trip the reports give; with a per-run anchor 6 of 6 passed). The seeded harnesses (circuit_breaker_reordering_rtc2rtc, gcc_rate_limited_link_rtc2rtc) anchor each run at its start. the_same_seed_gives_the_same_bytes_after_a_pause runs one seed twice, 1.5 s of real time apart, and compares every RTP and RTCP packet both peers' chains hand to SRTP, byte for byte (the SRTP datagrams themselves are keyed by DTLS ephemeral keys no seed reaches; the CNAME, the media and RTX SSRCs and the RTX sequence numbers, which the engine draws from rand, are fixed or masked); with the process-wide anchor 473 of the sender's 482 packets differ.

Bug Fixes

  • stream-driver: a TCP connection from a socket to itself is a failed connection (conf/flake-3-self-connect). Connecting from an ephemeral port to a loopback port nothing listens on, Linux can choose that very port as the source, and simultaneous open (RFC 9293 section 3.5) connects the socket to itself; the driver reported Connected (seen in a_connection_to_a_closed_port_fails_and_a_reset_reaches_the_peer, Connected { local: 127.0.0.1:45149 } to 127.0.0.1:45149). Every stream the driver connects (ICE-TCP active and simultaneous-open candidates, TURN and STUN over TCP and TLS) goes through one connect path, which now closes such a socket and reports ConnectFailed. The test's closed port is now the local end of an established connection: refused on Linux, macOS and Windows (a bound, not listening socket is dropped silently on macOS), and no client can take it as its source port. a_socket_connected_to_itself_is_a_failed_connection connects 127.0.0.1:P to itself.
  • peer connection: a DTLS server that alone has a short SRTP key lifetime failed the call when the re-keying took longer than half the margin (conf/rekey-3-server-margin, found by ParolNet's turn_rekey::a_relay_only_call_re_keys_on_new_allocations, a relayed call: 9600 packets at 188 a second, so 3.2 s of margin, and about 2 s to re-key through TURN). The tie-break of with_srtp_rekeying_dtls_client_first had the server wait for the client's offer until a thirty-second of the lifetime was left, half the margin; lifetimes are local, so the server cannot know that the client re-keys at all. The server now waits at most 500 ms and at most an eighth of the time its keys have left at their packet rate (not at all without packets to measure it by), then asks itself; glare is resolved by rollback as before. The lifetime docs state the margin a re-keying needs (16 x packet rate x re-keying time), and a margin under 2 s at the warning is logged. Test: tests/srtp_rekeying_glare_rtc2rtc.rs::a_dtls_server_alone_with_a_short_lifetime_re_keys_in_time_on_a_slow_path.
  • stream-driver (conf/deps-1-hickory, security): the optional dns-records feature takes hickory-resolver 0.26.2 or later instead of 0.25, whose hickory-proto 0.25.2 and hickory-resolver 0.25.2 carried 17 RustSec advisories. One is reachable from the driver's lookups (A, AAAA, SRV and NAPTR from the system's name servers): RUSTSEC-2026-0491, memory amplification from the record counts of a DNS response's header, which any name server the client asks, or anyone spoofing its answers, could send (fixed in 0.26.2). Thirteen concern DNSSEC validation, which the feature does not compile in (no dnssec-* feature), and are not present in 0.26 (unaffected >= 0.26.0-beta.1); RUSTSEC-2026-0487, -0489 and -0490 parse zone files and SVCB text, a server's work (fixed in 0.26.2); RUSTSEC-2026-0119 is quadratic name compression when encoding, here only of the client's one-name queries (fixed in 0.26.1). The driver follows 0.26's API (Lookup::answers, public record fields, ResolverBuilder::build returning a Result); hickory 0.26 declares Rust 1.88, within the workspace's 1.89. New test srv_and_naptr_records_and_each_address_family_come_back_whole: the lookups against a name server on loopback, the first test of the feature. audit.yml passes --workspace to all three cargo-deny checks, the library advisory check included: they read every member's graph, not the root package's alone.
  • peer connection: one RTP packet lost per SRTP re-keying when the call ran over ICE-TCP (conf/rekey-2-no-loss; the intermittent rtci-stream-driver re-keying loss, 1 to 17% of runs). The re-keying's ICE restart moves the call to a new pair; the controlled side selects it first (on the nomination) and closed the TCP connection of the replaced pair at once (RFC 6544 section 8), while the controlling side, until its own selection one round trip later, still wrote on it. The connection of the replaced path now stays open while the agent takes data on it (Agent::retired_media_path, 5 s; RFC 8445 section 12.2). Test: tests/ice_tcp_streams_rtc2rtc.rs::moving_from_tcp_to_udp_keeps_the_tcp_connection_until_both_peers_switched.
  • peer connection: during a re-keying, SRTP packets the peer already protects with the new association's keys (it completed its handshake first) were dropped until this side's handshake completed. They are held (at most 256, for 2 s) and read with the new keys (RFC 5764 section 4.3: "store multiple SRTP keys sets during a rekey in order to avoid the need for receivers to drop packets for which they lack a key"). Test: tests/srtp_rekeying_glare_rtc2rtc.rs::packets_under_the_new_keys_before_the_handshake_completes_are_held_not_dropped.
  • peer connection: SRTP re-keying offers that cross (both peers re-key at once, glare) ended with no new DTLS association, and the call failed when the old keys ran out (conf/rekey-1-glare, reported from ParolNet's m1::srtp_re_keying_keeps_the_call). Two causes, both in the polite peer's rollback followed by its answer to the other offer (W3C perfect negotiation):
    • Agent::revert_restart announces the selected pair it goes back to. That announcement was read only after the answer had restarted ICE and installed the new association, so the DTLS client started the new handshake on the previous generation's path, where the peer's previous association answered: the client went "connected" at once, the peer's new endpoint (installed when it applied the answer) waited in "connecting", and the next key expiry failed the transport. The ICE handler now ignores a selected-pair announcement that is no longer the agent's selection (RFC 8842 section 5.1: a new association runs on a new 3-tuple).
    • A rolled-back local offer kept the a=tls-id it had staged for its new association, and the answer to the peer's offer carried it. RFC 9429 section 5.7 ("Any resources or candidates that were allocated by the abandoned local description are discarded") and RFC 8842 section 5.3 (the answer carries "a new unique attribute value"): the rollback unstages it, and an answer never takes a value an offer of this side staged (one created and not applied is put aside and back if the peer's offer is rolled back). Tests: tests/srtp_rekeying_glare_rtc2rtc.rs (explicit and implicit rollback, either side polite, staggered offers, several transports, the tie-break), transport/dtls/mod.rs::a_rolled_back_offer_takes_its_tls_id_back, and through the driver's real sockets examples/stream-driver/tests/peer.rs::crossing_re_keying_offers_are_rolled_back_and_carry_every_packet.
  • peer connection: the SRTP handler reads the events of the contexts a new handshake replaces before replacing them (a discarded packet is still reported), and drops a lifetime warning of a key that is now retired, which would have asked for a renewal the handshake had just given.
  • rtci-stream-driver: PeerDriver handles a rolled-back local offer. The offer's OnLocalCandidatesNeeded had retired the previous sockets and bound new ones; the rollback takes the restart back, but the driver kept the previous sockets marked retired (to be closed after the next selection, although they carry the media again) and the new ones open for good. Back in the stable state the driver now matches its sockets to the candidates the transports hold: a retired socket the transport holds again is not retired, a socket whose candidate the transport dropped is closed.
  • interceptors (RFC 3550 section 6.4.1, RFC 8083 section 4.3, conf/gcc-4-rr-pacer-drops): media the pacer discarded (PacerQueueOverflow::Drop, the default) was taken for path loss. Those packets were numbered by the application's packetizer before the pacer dropped them, so the receiver counts them as lost in its receiver reports, and two interceptors wire-ward of the pacer read those reports: the congestion controller gave the fraction lost to the loss-based controller while there is no per-packet feedback (Gcc backs off on it), and the circuit breaker averaged it, with the cumulative count, into the congestion breaker's loss event rate (a sender above the target could be ceased for its own discards). Each now keeps, per local SSRC, the sequence numbers it never saw leave (the gaps in what it wrote toward the wire; a number that leaves later, a retransmission without RTX, is sent after all; RTX and FEC SSRCs are their own sequence spaces), and takes them out of the loss of the interval a report covers (from the previous report's extended highest sequence number to this one's): the loss less the numbers never sent, over the packets that left. Bounded: what a report covered is forgotten, at most 8192 numbers are kept per stream, and a jump of 3000 or more (RFC 3550 A.1's MAX_DROPOUT) is not recorded. TWCC and RFC 8888 feedback, which never name a packet that did not leave, are unchanged (sequence_numbers_the_pacer_discarded_are_not_loss_to_the_loss_based_controller, sequence_numbers_discarded_across_the_wrap_are_not_loss_to_the_loss_based_controller, gcc_does_not_back_off_on_reported_loss_of_numbers_the_pacer_discarded, reported_loss_of_sequence_numbers_never_sent_does_not_trip_the_congestion_breaker, reported_loss_of_sequence_numbers_never_sent_across_the_wrap_does_not_trip_the_congestion_breaker, and the never_sent unit tests).
  • interceptors (RFC 8083 section 4.4, conf/gcc-4-release): the media-usability circuit breaker judged a flow by the loss its receiver reports, which counts the sequence numbers the pacer discarded before they left (RFC 3550 section 6.4.1), so a sender above the target could be ceased as unusable for its own discards. It now reads the same corrected loss as the congestion breaker (the loss of the interval a report covers, less the numbers never sent). Loss on the path ceases an unusable flow as before (reported_loss_of_sequence_numbers_never_sent_does_not_make_the_media_unusable).
  • sctp, data channels (RFC 6525 5.1.2 A3, 5.2.2 E2/E4; RFC 8831 6.7; conf/sctp-16-delivery-stall): a data channel opened right after another one was closed in the middle of a transfer stalled: its messages up to one Stream Sequence Number arrived and none after, all acknowledged (ParolNet file_tamper, about 1 run in 10). The peer asked to reset the stream answered with the reset of its own direction at once, bundled with the response, with a Sender's Last Assigned TSN of its next TSN minus 1, while the rest of a message written to the stream before it (and any message after it) was still in its send queue. That data then went out above the Sender's Last Assigned TSN with the stream's old numbers; the receiver, as RFC 6525 5.2.2 E2/E4 says, took it for data of the stream after the reset, and the next channel, which takes the lowest free id and so the same stream, had its message with that number put together with it, never complete, every message after it waiting behind. Three changes:
    • Sender: the answering reset leaves with the response only when nothing written to the stream waits in the send queue; otherwise it waits behind that data, as a reset this side asks for itself does (the_answering_reset_covers_the_message_half_sent_on_the_stream).
    • Receiver: a fragment that does not begin a message, when every TSN below it has arrived and none of them is held with it, can never be part of a complete message (RFC 9260 6.9 step 2; RFC 8260 2.1 for I-DATA). It is dropped (as it arrives, or when the cumulative TSN passes the TSN it lacked), stays acknowledged, makes no stream, and is logged once per run; data held for a deferred reset is released in TSN order. A peer with the old sender no longer stalls the next channel on the stream with the rest of a half-sent message (fragments_sent_after_a_reset_with_the_old_numbers_do_not_hold_the_next_channel, fragments_out_of_order_are_not_taken_for_orphans). Whole messages such a peer sends after its reset with the old numbers cannot be told from the next channel's own and are not caught.
    • Receiver: what arrives on a stream this side has closed (Stream::stop / Stream::close, the close of a data channel) is dropped, acknowledged, and what it held is dropped at the close: nothing can read it. Held, it took the receive window for good, so a peer sending the data it had queued before its reset could fill the window and never send that reset, and a complete message held the peer's reset "In progress": the close never completed and the stream id was never freed (a_channel_opened_on_the_stream_of_one_just_closed_gets_every_message). It is abandoned with the stream (RFC 8831 6.7, "delivered (or abandoned)"; W3C webrtc-pc fires no message on a channel that is closing).
    • Tests: the reported run pinned (a_channel_reopened_on_a_reset_stream_gets_every_message), a 96-run close/reopen sweep (where the close falls, DATA or I-DATA, ordered or unordered, whole or in parts, send backlog, clean or lossy and reordering link; closing_and_reopening_a_channel_on_its_stream_never_stalls), the same through two peer connections (tests/data_channel_reopen_rtc2rtc.rs) and against webrtc 0.17 sending (tests/data_channels_reopen_interop.rs, a 23rd interop target). A class guard on the SCTP sweeps: once the link is quiet and the application has drained, neither side may hold anything acknowledged and undelivered (Association::undelivered, test-only; on the 672-run zero window sweep and the close/reopen sweep).
  • ice (RFC 8445 sections 9 and 12.2, conf/mt-10-gather-anew): after an ICE restart that dropped the local candidates (a new DTLS association on new ports), the side that selected the new pair first dropped the packets the peer still sent on the previous pair before its own selection switched (the controlled side selects at the nomination request, the controlling one at its response): one packet lost at each renewal, seen through rtci-stream-driver on macOS and Windows. The previous path's data is now taken for 5 s after the new pair is selected (Agent::retired_media_path, RETIRED_MEDIA_PATH_GRACE), and routed to its transport (on_address) (data_sent_on_the_previous_pair_after_the_peer_selected_the_new_one_is_received).
  • rtc (engine-run server-reflexive gathering, RFC 8842 section 5.1): after a new DTLS association, the probe from a refused UDP base went on; a late answer to it would have been announced as a server-reflexive candidate of the new generation whose base is the previous association's socket. The probes of the refused bases now end with the restart (and with the replacement of a closed transport); the new host candidates the application adds start their own (after_a_new_association_the_engine_gathers_server_reflexive_candidates_from_the_new_port).
  • rtc (multi-transport ICE restart, conf/mt-9-restart-drops-candidates): with several transports (sections outside a BUNDLE group, several BUNDLE groups), a transport other than the default one wrote every local candidate its agent held into an offer or answer that restarts ICE on it, where the default transport lists none in the offer and, in the answer, only those of the new generation. After a restart that drops the local candidates (with_discard_local_candidates_during_ice_restart, or a new DTLS association: RFC 8842 section 6, "a completely new set of ICE candidates that were not recently used for any other DTLS association") the peer's agent of that transport took the dead candidate into the new generation, checked it first and kept the pair of the new candidates, of the same foundation, frozen behind it: the transport selected no pair within 10 s. Each transport now lists the candidates the restart rule gives it (restart_offered_local_candidates, used by offered_local_candidates and write_transport_attributes). Tests: tests/multi_transport_rtc2rtc.rs::a_restart_that_drops_the_local_candidates_reconnects_every_transport (two and three transports, shared and unique credentials), a_restart_that_drops_the_local_candidates_reconnects_bundle_groups_and_unbundled_sections, automatic_srtp_re_keying_renews_every_transport_on_new_addresses, and renewing_the_dtls_association_renews_every_transport, which now gathers on new ports.
  • rtc (multi-transport routing during an ICE restart): a datagram is routed to the transport that gathered on its local address; one on an address no transport holds a candidate on went to the default transport. After a restart that dropped the local candidates the previous selected pair still carries the data until the new generation selects a pair (RFC 8445 section 9; RFC 8839 section 4.4.3.1.1: "The agent will continue to send media using this pair"), so the data of another transport's previous path went to the default transport and was lost: two RTP packets per renewal in automatic_srtp_re_keying_renews_every_transport_on_new_addresses. The local address of a transport's media path now counts as one it is on (transport_set.rs, on_address).
  • rtc (engine-run TURN, RFC 8842 section 5.1): after a new DTLS association deleted the engine's allocation, the TURN link allocated again from the transport's first UDP base, the host candidate of the association it replaced, whose address the new association refuses. It now starts only from a base the new association may use, the one the application gathers for it. Test: tests/turn_udp.rs::a_new_dtls_association_deletes_the_engine_allocation_and_allocates_again.
  • stream-driver: a port range skips the ports the host refuses (conf/flake-2-socket-range). bind_udp_in_range and bind_tcp_listener_in_range (and the driver's tcp_port_range) gave up on the first bind error other than AddrInUse. On Windows, a port inside an excluded port range (Hyper-V, WinNAT and other reservations, netsh interface ipv4 show excludedportrange) fails with WSAEACCES (PermissionDenied), so a configured range that reaches into one failed whenever the rotating start landed on such a port, though other ports of the range were free. Such a port is now skipped like one in use; when every port is refused the error says so (PermissionDenied), and AddrInUse still means the range is full. Found by sockets_bind_inside_their_port_range_until_it_is_full, which failed on GitHub's windows-latest: the test took the ports above an ephemeral port, and Windows hands out ephemeral ports in sequence up to the start of an excluded range (54704 to 54903 for UDP on the traced runner). The tests now choose a block of ports they have verified bindable, and on_windows_a_range_reaching_into_an_excluded_range_uses_its_other_ports checks the skip against a real excluded range.
  • rtc: a stream whose SSRC the remote description declares for an m= section with a=rid / a=simulcast is received when its packets carry no RID (conf/demux-1-declared-ssrc-in-rid-section). Pion v4.2.29 offers simulcast by RID and also declares each layer with a=ssrc and a=ssrc-group:FID, then writes no MID or RID header extension (interop matrix, train 10 round 4); the engine dropped a rid section's a=ssrc lines (track_details_from_sdp) and discarded those packets as unassociated (OnUnassociatedRtpDiscarded). RFC 9143 section 9.2 associates a packet whose SSRC is in the table built "for each SSRC configured for receiving in that m= section" with the section. The section's declared SSRCs are now kept on its receiver; a packet of one that carries no RID nor RRID, and no MID naming another section, opens a stream of the section without a rid (RTCTrackEventInit::rid is None; the track is the section's), with the RTX SSRC its FID group names, and a declared RTX packet resolves to its primary. No rid is guessed from the order of the a=ssrc lines; each member of an a=ssrc-group:SIM there is a declared SSRC too. A packet that carries a RID is bound by its rid as before (Firefox, which also declares its layers' SSRCs). Tests: simulcast_repair_rtc2rtc::declared_layer_ssrcs_sent_without_mid_or_rid_are_received_as_streams_of_their_section, a_declared_layer_without_rid_is_repaired_over_its_declared_rtx_ssrc, interceptor_declared_rid_section_test.rs (Firefox 152's offer: a layer with its RID binds by rid; one without MID or RID, and a declared RTX packet, without a rid). The interop cell simulcast without MID or RID on the wire: * is no longer an expected failure for Pion. Row RFC9143-9.2-7.
  • ICE restart: an answerer's local candidates added between set_remote_description of a restart offer and set_local_description of its answer are the new generation's. The engine announced them with the new ufrag, but with with_discard_local_candidates_during_ice_restart(true) the restart dropped them and the answer listed none, so the new generation had no local candidate unless the application added each one again; and with or without that setting a candidate the agent did not hold yet was refused without an event, because the ending session had nominated a pair. Now the agent takes them (not paired in the ending session, RFC 8838 section 13), the restart keeps them, and the answer lists them (RFC 9429 section 5.3.1). The same holds for an offerer's candidates added between create_offer of a restart offer and its set_local_description. New ice::Agent::get_restart_generation_local_candidates. Tests: tests/ice_restart_answerer_candidates.rs, agent_open_rows_test.rs::test_a_candidate_gathered_for_a_staged_restart_is_kept_and_not_paired_before_it.
  • pacer: media is no longer held behind a probe cluster's padding (conf/early-2-late-last-packet). The NACK responder writes a cluster as a burst of padding-only packets when the congestion controller asks for it, and the pacer queued them in line with the media, so every packet the application wrote during the cluster waited for all of it: about 180 ms for a 6000-octet cluster at 200 kbit/s. Padding-only packets (RFC 3550 section 5.1) now wait in a queue of their own and leave only when no other packet waits; media written during a cluster leaves first, at the cluster's rate and with its mark, as in libwebrtc's pacer. This was the intermittent failure of early_media_rtc2rtc::simulcast_streams_an_offer_asks_for_are_received_before_the_answer (about 1 run in 25): the five-second application-limited probe fell on the last writes of the low layer, whose last one or two packets left 140 to 180 ms after they were written, past the test's 100 ms settle (media_leaves_ahead_of_queued_padding). With the queue time bound of conf/pacer-1-queue-time (conf/pacer-2-combined): the order of service is audio, then other media, then padding; padding never counts toward raising the pacing rate and is never released over the budget, and padding older than the bound is sent late rather than dropped (each holds an RTX sequence number, so a dropped one would read as loss at the receiver). A padding queue at the queue limit discards the arrival (PacerInterceptor::padding_discarded) (padding_never_raises_the_pacing_rate, padding_older_than_the_queue_time_limit_waits_for_spare_budget).
  • nack: what the NACK responder makes on the read leg (a retransmission a NACK asks for, a probe cluster's padding) is due at once: poll_timeout returns the instant it was made while it waits. A driver reads after it writes (poll_write, poll_event, poll_read, then poll_timeout and sleep), so these packets waited for whatever woke the driver next; in the failing run above a cluster asked for at 6053 ms left at 6096 ms, with the application's next write (a_retransmission_a_nack_asks_for_is_due_at_once, the_padding_of_a_probe_cluster_is_due_at_once).
  • interceptors: what any interceptor makes on the read leg for the write leg is due at once (conf/pacer-2-combined). An audit of every interceptor that writes while reading found four that left the packet for whatever woke the driver next: the NACK responder (a retransmission, a probe cluster's padding), the RTCP session (the Early SR answering an RTCP-SR-REQ, RFC 6051 section 3.2) and the pause/resume interceptor (PAUSED or REFUSED answering a PAUSE, RFC 7728). The chain now takes what its read leg made down the write leg after each read and reports it from poll_timeout until poll_write takes it (rtci-interceptor/tests/read_work_is_due.rs, over the reusable tests/wakeup_common helper). At the peer connection, tests/driver_wakeup_rtc2rtc.rs runs a call (ICE, DTLS, SCTP, a data channel, video with RTX, RTCP, probes) under a driver that checks at every sleep that nothing waits in poll_write: before the fix 30 RTP packets of the sender waited (probe padding), and the ICE, DTLS and SCTP handlers left nothing waiting.

Test environment and documentation

  • test-env: coturn 4.6.3 built from its release tag (conf/testenv-2-coturn-aiortc; https://github.com/coturn/coturn/archive/refs/tags/4.6.3.tar.gz, SHA-256 dc3a529fd9956dc8771752a7169c5ad4c18b9deef3ec96049de30fabf1637704) instead of the base image's 4.6.1 package, whose TLS listener picks its SSL context by the ClientHello's legacy_version: a client offering TLS 1.3 alone got handshake_failure, one offering 1.3 and 1.2 got 1.2 (fixed in coturn 4.6.2, coturn/coturn#989). The TLS 1.2 clamps of the environment's own TURN-over-TLS client (tests/testenv/mod.rs) and of the aiortc peer are gone: they negotiate TLS 1.3. Both versions are covered on purpose: testenv_turn_streams::the_engine_relays_through_turn_over_tls_1_3 (the engine offering TLS 1.3 alone) and the_engine_relays_through_turn_over_tls_1_2_to_a_server_without_tls_1_3 (the default offer to a fourth coturn, port 5350, whose libssl stops at TLS 1.2), each checking first what its server settles on. TURN over DTLS stays DTLS 1.2 (coturn's OpenSSL DTLS). The engine keeps TLS 1.2 for TURN over TLS (rustls feature tls12, on by default in TurnTlsConfig): deployed servers need it, coturn 4.6.1 being what Ubuntu 24.04 and Debian 13 ship; the comments now say so.
  • test-env: the aiortc peer runs aiortc built from upstream main at commit 0ee2bd29 (source archive by SHA-256 9f2a6308e53813eb62fb604e38619178df72f5cfd4ccdc3dbca5b7f0b2c86ca7, built offline with setuptools 84.2.1 pinned by hash) instead of sdp.py and rtp.py from the fork Brainwires/aiortc over the 1.16.0 wheel: upstream fixed both bugs, 6a76d5e0 (a=extmap extension attributes, aiortc/aiortc#1492) and 0ee2bd29 (RTCP SDES chunk alignment, aiortc/aiortc#1496), in no release yet. The whole package comes from the commit (the extmap fix also changes rtcpeerconnection.py); to be dropped for the first release with both. The overlay files and LICENSE.aiortc are removed.
  • docs: the trailing space webrtc-rs 0.17.x writes in a=rtcp-fb without parameters breaks RFC 4585 section 4.2's rtcp-fb-param (cited now); Pion fixed it in v4.1.5 (pion/webrtc#3207, PR #3218) and webrtc-rs on its default branch (rtci 718d405), so the notes name 0.17.x alone. RFC9429-5.8-1 keeps its verdict (setting); its note cites the grammar. The mDNS one-name-per-address rule is cited as draft-ietf-mmusic-mdns-ice-candidates-03 section 3.1.1 (expired). docs/conformance/w6.md and docs/interop.md link the upstream reports: algesten/str0m#1184 (TCP pairing by tcptype), webrtc-rs/rtc#339 (a=msid without appdata), aiortc #1492 and #1496 (closed as fixed), coturn #989.

Publishing readiness (crates.io)

  • Manifests: every publishable crate has a one-line description of what it implements, license = "MIT OR Apache-2.0" (SPDX; was the deprecated MIT/Apache-2.0), its own keywords and crates.io categories, a README and [package.metadata.docs.rs] (both crypto backends, which are additive; not openssl, which needs a system library). Upstream's homepage (https://webrtc.rs, not this project) and the explicit documentation URLs (docs.rs is the default) are removed. Each crate directory has the licence texts (LICENSE-MIT, LICENSE-APACHE, copies of the root files with upstream's copyright line), which cargo did not package before.
  • What is published: rtci-stream-driver, the reference tokio driver for the engine's stream transports, is now a publishable crate with a README (it was publish = false, which blocked publishing rtci: its versioned dev-dependency on the driver stays in the published manifest). rtci-signal, the examples' signalling helper, is publish = false and the root crate's dev-dependency on it is path-only, so cargo publish drops it. The root crate's package holds src/, the two test files its unit tests include, the README and the licence texts (include): 222 files and 4.9 MB uncompressed, from 848 files and 21.7 MB (the examples' media fixtures, the test environment, documentation and CI files).
  • READMEs: rtci-interceptor, rtci-interceptor-derive, rtci-mdns, rtci-media and rtci-stream-driver have one; the other crates' READMEs, which were upstream's logo and upstream's CI / crates.io / docs.rs / Discord badges, are rewritten: what the crate is, the specifications it implements (with links to their clause audits), how it is used, the sans-I/O note, the licence and the lineage. rtci-sframe's README no longer says the engine has no SFrame RTP payload format. The root README drops upstream's logo, badges and sponsors, the "What's New in 0.21" section and the links into upstream's tree; it gains a status section (the audit counts as of 2026-11-23, where the open rows and known issues are), the MSRV, the crypto and other features and a crate table; its Rust examples are compiled as doctests (#[cfg(doctest)] in src/lib.rs).
  • docs.rs: cargo doc --workspace --no-deps has no warnings (90 before, 84 distinct): module docs given both on the pub mod line and inside the module resolved the inner links in the parent's scope; the outer copy is removed. Unresolved paths, links to private items and W3C slot names in brackets ([[SignalingState]]) are fixed or escaped.
  • Release tooling: docs/releasing.md is the manual procedure (dry runs, the publication order, the wait for the index, what to do when a publish fails midway, tagging, release notes); release.yml's commented publish step lists every crate in order. semver.yml compares with the last release tag of the current line through cargo semver-checks --baseline-rev instead of crates.io, and skips (with a notice) until a plain vX.Y.Z tag exists. cliff.toml writes a release body without the file header: breaking changes first, then one section per kind in a fixed order, each capped (breaking changes at most 30, the other sections at most 15) with a link to CHANGELOG.md, commit links into this repository; the 0.22.0+brainwires.6 body renders at 24 KB instead of 90 KB.
  • Housekeeping: rtci-rtp's header_extensions fuzz target compiles again (it called marshal_size without the MarshalSize trait in scope); every fuzz workspace checks with --cfg fuzzing. SECURITY.md's supported-versions table describes the current line. oss-fuzz/project.yaml (upstream's homepage and security address) is removed: the project is not enrolled in OSS-Fuzz; oss-fuzz/README.md says what the remaining files are for. FORK.md loses 25 table rows that merges had duplicated and a blank line that split its feature table. cargo.yml's packaging comment no longer names rtci-crypto 0.21.0.
  • CI: scripts/check-changelog-released.py (cargo.yml, test inventory job) fails when a released section of CHANGELOG.md differs from that section at the latest v* tag: merges that union two CHANGELOGs had put new entries into, and repeated entries in, the released 0.22.0+brainwires.6 section. New entries go under ## [Unreleased].
  • Release preparation (conf/publish-3-release-prep): docs/releasing.md has the order of operations for 0.1.0 (merged and green, rename commit, release commit, tag, dry runs, publish, repository rename, detach from the fork network), what each workflow does on a tag (release.yml alone runs; it makes the GitHub release and publishes nothing), the brainwires.6 known issues with their state on master for the release notes, and an "after publishing" checklist (docs.rs builds, yanking, announcing the rename). The tag now comes before publishing. The README's status follows COUNTS.md (111 specifications; MUST 99.7 % RFC behaviour tested, 16 MUST rows open) and its crate table says what is not published.

Notes for integrators

  • A rolled-back offer after OnLocalCandidatesNeeded (conf/rekey-1-glare): a local offer that is rolled back takes back its ICE restart and the event it fired (RFC 9429 section 5.7). Keep the previous sockets (no longer retired), close or keep aside the ones bound for the event, and gather on the next event (the answer to the peer's colliding offer fires one when it sets up a new association). The crate's "Gathering" section says how; rtci-stream-driver's PeerDriver does it.
  • A transport that needs new candidates (conf/mt-10-gather-anew): since the RFC 8842 section 5.1 default, a new DTLS association (an ICE restart for one: renew_dtls_association, automatic SRTP re-keying, a peer's new a=tls-id; or the transport set up after an answer rejected every m= section) drops the transport's local candidates and refuses their UDP addresses. An application that does not gather again loses connectivity on that transport; the browser cell "transceiver stop, then a new transceiver" failed that way with the workspace's own interop peer. Handle OnLocalCandidatesNeeded: bind new UDP ports, add a host candidate for each with sdp_mid = the event's first mid, signal the candidates, end the generation with an empty candidate for that mid, and keep the previous sockets open until a pair on a new one is selected (SelectedCandidatePairChange on that transport) or the transport closes. Engine-run STUN and TURN gathering follow the new host candidates by themselves; the ICE-TCP listener is kept. rtci_stream_driver::peer::PeerDriver does all of it. An application with one fixed socket sets with_dtls_new_association_on_previous_addresses(true) instead (no event; the candidates and addresses are kept). W3C gathering states: a restarting transport goes to "gathering" when the description is set and to "complete" at the application's end-of-candidates; the transport that replaced a closed one starts "new" (a new RTCIceTransport) and does the same. A rolled-back local offer takes its restart back (the previous candidates and addresses are in use again): sockets bound for it may be closed.
  • Publishing order: rtci-stream-driver now depends on rtci (feature peer), and the root crate's dev-dependency on it has no version, so rtci is published before rtci-stream-driver (docs/releasing.md).
  • ICE restart, answerer: candidates gathered for the restart may be added as soon as the restart offer is applied (set_remote_description); they need not be added again after set_local_description(answer), whether or not with_discard_local_candidates_during_ice_restart is set. Only the previous generation's candidates are discarded by that setting. RTCIceCandidateInit::username_fragment is not read by add_local_candidate: a candidate added while a restart is staged is the staged generation's, otherwise the current one's.

Testing

  • rtc: the paced chain's oldest-picture bound in the capacity-cap port is 11.75 s (conf/gcc-8-paced-picture-guard). It was 10 s, 1.6 % above the most one tree measured: with the ICE agent's SOFTWARE text 14 bytes long instead of 27 (the crate rename), seed 3 of the full matrix (RTC_CAP_FULL) showed a picture 10.23 s old. Measured on six seeds and three wall clocks with either text: 5.56 to 10.23 s; the bound is that maximum and some 15 %. It guards the documented known limit (a sudden drop under the pacer, see Known limits) against gross regression; the freeze, retransmission and recovery assertions hold the call more tightly.
  • rtc: the capacity-cap port's recovery is measured over a window and, for the paced chain, against the estimate the cap left (conf/gcc-7-recovery-mean). A single reading 20 s after the cap fell on the estimate's sawtooth: renaming the crates shortened the ICE agent's STUN SOFTWARE text from 27 to 14 bytes, which moved the seeded run's packet sizes and timing, the paced chain's target at the cap's end on seed 1 from 212 to 132 kbit/s, and its reading 20 s later from 1137 to 632 kbit/s (under the 800 kbit/s bound). After the cap a source that follows its target is not application limited, so no probe is due, and the estimate climbs from where the cap left it at the 8 % a second of draft-ietf-rmcat-gcc-02 section 5.5. Every run now goes on to 25 s after the cap and records the target's lowest, mean and highest from 15 to 25 s; the 800 kbit/s bounds of the chains without a pacer are on that mean. a_sender_following_the_target_is_paused_and_loses_nothing_at_the_pacer asserts that the target never falls from 1 s after the cap on and that its mean from 15 to 25 s is at least nine tenths of the draft's climb from the target at the cap's end (measured 0.99 to 2.81 times it, six seeds on three wall clocks, with either SOFTWARE text).
  • rtc (conf/mt-10-gather-anew): rtc-to-rtc tests driven by OnLocalCandidatesNeeded: transport_close_rtc2rtc.rs::the_new_transport_asks_for_candidates_on_new_addresses_and_the_event_drives_the_gathering (stop all, then a new transceiver; the twin of the browser cell) and with_the_opt_out_the_new_transport_carries_media_on_the_previous_addresses; dtls_association_new_three_tuple.rs::a_new_association_tells_the_application_to_gather_on_new_addresses, a_restart_that_discards_the_candidates_asks_for_candidates_on_any_address, and the opt-out test now asserts no event; multi_transport_rtc2rtc.rs::automatic_srtp_re_keying_renews_every_transport_on_new_addresses gathers from the events alone (reasons SrtpRekeying / NewDtlsAssociation, every transport, the refused address offered through the section's mid).
  • ci: scripts/check-nested-locks.py in the inventory job: cargo metadata --locked on each nested workspace with a committed Cargo.lock (scripts/test-env/peers/layers, scripts/test-env/peers/str0m), so a stale lock fails early.
  • ice-tcp: with_udp_open_the_udp_pair_wins_and_the_unused_tcp_connections_are_closed no longer depends on real time (conf/flake-1-icetcp-vp8). It failed once on GitHub's windows-latest ("TCP pairs were checked too"): the stream_net peers were built at Instant::now() while the network's virtual clock starts at Net::new(), so each ICE agent's Ta grid began as much later on the virtual clock as building it took. With the second peer built 11 to 40 ms after the first (a preempted thread on a loaded runner), its second Ta slot, where the controlled peer checks the TCP pair, came after the nomination of the UDP pair, which removes the other pairs (RFC 8445 section 8.1.2), and no TCP connection was opened to prove closed. The engine is right (section 8.1.1 leaves the stopping criterion to the agent); the peers are now built at the virtual start, and the_course_of_a_run_does_not_depend_on_the_real_time_building_the_peers_took builds them 20 ms apart to hold it.
  • interceptor: the netem test vp8_file_through_nack_and_jitter_buffer asserts what NACK and the jitter buffer guarantee instead of a share of frames (conf/flake-1-icetcp-vp8). It asked for 98 % of the frames behind a 250 ms jitter buffer and failed now and then (292 and 240 of 300). Its virtual-time twin, tests/vp8_nack_jitter_buffer_rtc2rtc.rs (the same netem link, driver loop and fixture shape, seeded), traced why: at 250 ms only about 45 % of the lost packets come back in time. About half the late retransmissions had their NACK held by RFC 4585 section 3.5.2 step 6 (after an Early RTCP packet, feedback waits for the next Regular one, up to about 750 ms at this stream's RTCP bandwidth). The other half were asked for promptly, but detection, the reordering allowance on the generator's 100 ms tick and a round trip took longer than 250 ms. 43 of seeds 1 to 400 played under 98 %. With a 2 s buffer every loss the receiver can detect was repaired (1162 of 1162 over 200 seeds); the rest were the stream's first or last packet, which no receiver can detect. The netem test now uses 2 s and asserts that every frame is played whole and in order, from the first key frame read, apart from an undetectable last one. The twin asserts the same at 2 s, and at 250 ms that what is played is whole and in order, that every detectable loss is retransmitted, and that every packet read before the buffer played past its place is played.