Repository navigation
Fix reliable latency under bursty loss and RTT swings - #13
Merged
Merged
Conversation
…h changes - Unreliable sends are dropped while SCTP holds more than 2400 B it can't send (cwnd full). After loss collapses cwnd, unreliable used to pile up unsent ahead of reliable, which then waited behind it. - Pacer: if two drain samples don't bring srtt down, the RTT rise is the path, not our queue: take srtt as the new base instead of draining to the floor. Delivery samples are capped at 500 ms so a fast-growing queue can't keep the controller from running. - Sims for network-side bufferbloat and a 200-600 ms RTT swing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the two weak spots from the bench scenarios.
Root cause
In both scenarios, SCTP's cwnd collapses after a loss (15 KB → 5 KB). The gate only capped total outstanding at 64 KiB, so unreliable kept getting admitted. It then sat unsent in SCTP's queue ahead of reliable, and reliable waited behind it.
Changes
unreliableLimitis on.Bench (1 seed × 20 s each, Chrome, vs 04-scenarios)
Tradeoff: on cwnd-limited links (high RTT plus loss), less unreliable gets through, but what does arrive is fresh. The remaining limit at 400-600 ms RTT is SCTP's loss-based congestion control: about 24 KB/s at 600 ms with 1% loss. Fixing that is a congestion control change in the rtc fork, not part of this PR.
Tests
Rust: 12 pass, including new bufferbloat and RTT-swing sims. e2e: all pass.