Skip to content

Multicast BBR controller - #7

Draft
sleepybishop wants to merge 4 commits into
mainfrom
mcbbr
Draft

sleepybishop wants to merge 4 commits into
mainfrom
mcbbr

Conversation

@sleepybishop

@sleepybishop sleepybishop commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

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
Loading

@sleepybishop
sleepybishop force-pushed the mcbbr branch 3 times, most recently from 5613425 to 39db9da Compare November 26, 2026 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant