Skip to content

About

BBRv3 congestion control for quic-go pluggable CC

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pluggable-BBRv3

A BBRv3 congestion control algorithm for quic-go, implemented as an external package using the pluggable CC interface proposed in dkokkino/quic-go — JSC-71547.

What this is

This package demonstrates that a full-featured CC algorithm — one that needs ACK event boundaries, ECN feedback, PTO signals, spurious loss detection, connection migration, and app-limited tracking — can live entirely outside the quic-go module with no internal/ imports. It depends only on the public quic.CongestionController interface and the 7 optional interfaces proposed in the pluggable CC PR.

Usage

import (
    bbrv3 "github.com/dkokkino/pluggable-BBRv3"
    "github.com/quic-go/quic-go"
)

quic.Config{
    Congestion: bbrv3.NewBBRv3Factory(),
}

Dependency

This package currently depends on dkokkino/quic-go JSC-71547 — the fork implementing the pluggable CC proposal. Once the proposal is merged upstream, the replace directive in go.mod can be removed and the dependency updated to the upstream release.

Algorithm

BBRv3 is a model-based congestion control algorithm developed at Google. It estimates bottleneck bandwidth and round-trip propagation time, and uses these estimates to set the pacing rate and congestion window. Unlike loss-based algorithms, BBRv3 targets the operating point of maximum throughput with minimum queue delay.

This implementation uses all 7 optional interfaces:

Interface Used for
AckEventHandler Batch bandwidth samples per ACK frame
LossDetectionHandler Reset per-pass loss counters before each detection pass
ECNCongestionHandler React to CE marks directly without quic-go's simplified signal
AppLimitedHandler Exclude app-limited periods from bandwidth estimation
SpuriousLossHandler Undo spurious cwnd reductions
PTOHandler React to PTO timeouts
ConnectionMigrationHandler Reset BBR state on path migration

About

BBRv3 congestion control for quic-go pluggable CC

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages