Skip to content

Commit

Permalink
Update constant values
Browse files Browse the repository at this point in the history
Summary:
This stack updates the bbr2 implementation to match BBRv3 and latest updates to the draft.

This change uses new values for cwndGain for ProbeBW_UP and changes the drain pacing gain to the derived value in the draft.

Reviewed By: sharmafb

Differential Revision: D65922700

fbshipit-source-id: 0e0824f191da653f4717dd7f976138916d969b3e
  • Loading branch information
jbeshay authored and facebook-github-bot committed Nov 18, 2024
1 parent 57d5c04 commit 67794c5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions quic/congestion_control/Bbr2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <sys/types.h>
#include <chrono>
#include <cstdint>
#include <cstdlib>
#include <limits>

namespace quic {
Expand All @@ -24,15 +23,16 @@ constexpr uint64_t kMaxExtraAckedFilterLen =
10; // Measured in packet-timed round trips

constexpr float kStartupPacingGain = 2.89; // 2 / ln(2)
constexpr float kDrainPacingGain = 1 / kStartupPacingGain;
constexpr float kDrainPacingGain = 0.5;
constexpr float kProbeBwDownPacingGain = 0.9;
constexpr float kProbeBwCruiseRefillPacingGain = 1.0;
constexpr float kProbeBwUpPacingGain = 1.25;
constexpr float kProbeRttPacingGain = 1.0;

constexpr float kStartupCwndGain = 2.89;
constexpr float kProbeBwCruiseRefillCwndGain = 2.0;
constexpr float kProbeBwUpDownCwndGain = 2.0;
constexpr float kProbeBwDownCwndGain = 2.0;
constexpr float kProbeBwUpCwndGain = 2.25;
constexpr float kProbeRttCwndGain = 0.5;

constexpr float kBeta = 0.7;
Expand Down Expand Up @@ -979,11 +979,11 @@ void Bbr2CongestionController::updatePacingAndCwndGain() {
break;
case State::ProbeBw_Up:
pacingGain_ = kProbeBwUpPacingGain;
cwndGain_ = kProbeBwUpDownCwndGain;
cwndGain_ = kProbeBwUpCwndGain;
break;
case State::ProbeBw_Down:
pacingGain_ = kProbeBwDownPacingGain;
cwndGain_ = kProbeBwUpDownCwndGain;
cwndGain_ = kProbeBwDownCwndGain;
break;
case State::ProbeBw_Cruise:
case State::ProbeBw_Refill:
Expand Down

0 comments on commit 67794c5

Please sign in to comment.