Skip to content

feat(bbr3): add configurable loss_thresh and lower-bound gating on Bbr3Config - #5

Merged
CommaBot merged 1 commit into
stillfail-v1.3from
fix/bbr3-configurable-loss-thresh
Nov 22, 2026
Merged

CommaBot merged 1 commit into
stillfail-v1.3from
fix/bbr3-configurable-loss-thresh

Conversation

@CommaBot

Copy link
Copy Markdown
Collaborator

Summary

Adds two backward-compatible opt-in configuration knobs to Bbr3Config (Bbr3Config::default() retains standard BBRv3 LOSS_THRESH = 0.02 and ungated lower-bound adaptation):

  • Bbr3Config::loss_thresh(f64): configurable per-round-trip packet loss threshold (clamped to [0.001, 0.99] in Bbr3::new), used in both is_inflight_too_high() and inflight_at_loss().
  • Bbr3Config::gate_lower_bounds_on_loss_thresh(bool): when true, adapt_lower_bounds_from_congestion() only reduces short-term lower bounds (bw_shortterm/inflight_shortterm) on loss rounds exceeding loss_thresh.

Regression Tests (noq-proto/src/congestion/bbr3/mod.rs)

  • loss_thresh_config_prevents_high_loss_collapse: verifies over a real Pair (80ms RTT, 10 MB/s, 15% s2c / 1% c2s loss, 256 KiB initial_window) that loss_thresh(0.30).gate_lower_bounds_on_loss_thresh(true) sustains >= 2 MB/s across back-to-back 4 MB transfers without collapsing cwnd to min_pipe_cwnd, while default Bbr3Config preserves standard 2% loss protection.
  • loss_thresh_config_respects_shallow_buffer_congestion: verifies over a real Pair (80ms RTT, 2 MB/s + 64 KB shallow FIFO, 0% random loss) that steady-state retransmission stays < 2% with throughput >= 1.5 MB/s.

@CommaBot
CommaBot merged commit 1a98471 into stillfail-v1.3 Nov 22, 2026
3 checks passed
@CommaBot
CommaBot deleted the fix/bbr3-configurable-loss-thresh branch November 22, 2026 09:35
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