Repository navigation
Keep SCTP cwnd at the pacer's rate on random loss; re-run scenarios - #16
Merged
Merged
Conversation
- Uses the rtc fork's new cwnd floor (9e4c4bf): while RTT hasn't grown over the lowest seen, a loss-driven cwnd cut stops at rate x (base RTT + 40 ms). Random loss at high RTT no longer halves cwnd to 4 MTU; congestion (RTT growth) still gets the normal cut. - 04-scenarios.md: re-run after #13 and the floor. rtt400 unreliable 4 -> 25.8 KB/s, random 5% 13 -> 26 KB/s, bursty reliable p95 104 ms.
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.
Problem
At 400 ms RTT with 2% loss, unreliable got 4 KB/s with 83% dropped. The pacer wasn't the limit: its budget was full. SCTP's Reno cwnd was: every reliable loss halved it, down to the 4 MTU minimum, every 1–2 s. That gives about cwnd/RTT ≈ 15 KB/s, and reliable takes 12 of it.
Fix
9e4c4bfonlagless): newAssociation::set_cwnd_floor/RTCPeerConnection::set_sctp_cwnd_floor. Fast recovery and RACK cuts stop at the floor. It never raises cwnd, and an RTO still collapses cwnd to 1 MTU. The default 0 keeps RFC behaviour. rtc-sctp tests: 215 pass.Bench (Chrome, 1 seed × 20 s)
A first version without the RTT-growth check broke bloat (ping p95 1.1 s), so the check stays.
Still open: during RTT swings the floor is off, because it can't tell the swing from a queue, so no gain there.
Tests
Rust: 14 pass, including a new floor test. e2e: all pass.