Repository navigation
Multicast BBR controller - #7
Draft
sleepybishop wants to merge 4 commits into
Draft
sleepybishop wants to merge 4 commits into
sleepybishop wants to merge 4 commits into
Conversation
sleepybishop
force-pushed
the
mcbbr
branch
3 times, most recently
from
November 26, 2026 01:11
5613425 to
39db9da
Compare
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.
Adds opt-in multicast BBR congestion control for connected Flexicast publishers.
flowchart TD hints["Active tracks, median pacing rate<br/>and optional publisher cap"] --> budget["MCBBR sets track rate and burst allowance"] budget --> pacer["Pacer checks track credit and any shared credit"] pacer -->|Insufficient credit| wait["Wait for refill"] wait --> pacer pacer -->|Credit available| mode{"Delivery mode?"} mode -->|Native multicast| native["Send one datagram to the group"] mode -->|Replicated unicast| replicas["Send one copy per eligible receiver<br/>as credit allows"] native --> sent["Charge bytes and record send time,<br/>pacing rate and fanout for each send"] replicas --> sent sent -->|Receiver ACKs| samples["Quicly reports per-receiver RTT,<br/>delivery rate, loss and ECN"] samples --> ce{"ECN congestion-experienced mark?"} ce -->|Yes, cut due| marked["Back off to 85% of the current pace"] ce -->|Yes, still in cooldown| hold["Hold rate"] ce -->|No| loss{"Packet loss with a measured<br/>group delivery shortfall?"} loss -->|Yes, cut due| service["Back off toward measured service.<br/>Cut at most 12.5% at flat RTT.<br/>Drain harder when RTT shows a standing queue."] loss -->|Otherwise| flat{"Heavy loss and poor delivery across<br/>three qualifying samples at flat RTT?"} flat -->|Yes, diagnostic cut due| test["Try a 15% cut. If goodput holds and the<br/>delivery fraction improves, cap near measured goodput."] flat -->|Otherwise| queue{"Repeated RTT rises indicate a queue,<br/>or delivery falls under queue or shared-load pressure?"} queue -->|Corroborated queue or capacity drop, cut due| drain["Back off to drain the queue or match the lower capacity"] queue -->|Otherwise, including baseline loss at calm RTT| grow{"Is an ACK-backed increase due,<br/>with no drain, service limit or hold cooldown blocking it?"} grow -->|Stable delivery or eligible startup or recovery| probe["Probe upward within the pacing cap"] grow -->|Weak evidence, new congestion loss, or growth blocked| hold sent -.->|Three unanswered timeouts with delivery outstanding| silent["Halve the pace down to the effective rate floor"] marked --> budget service --> budget test --> budget drain --> budget probe --> budget hold --> budget silent --> budget