TWCC tweaks (#3282)

* SSBWE experimentation

* dqr hysteresis

* fixes

* fmt

* more relaxed DQR

* pps proportional to duration

* clean up

* clean up

* don't need gratuitous up allocation
This commit is contained in:
Raja Subramanian
2024-12-21 23:08:38 +05:30
committed by GitHub
parent 8fa1127724
commit 6e9964e80b
5 changed files with 185 additions and 145 deletions
-6
View File
@@ -36,9 +36,7 @@ type CongestionState int
const (
CongestionStateNone CongestionState = iota
CongestionStateEarlyWarning
CongestionStateEarlyWarningHangover
CongestionStateCongested
CongestionStateCongestedHangover
)
func (c CongestionState) String() string {
@@ -47,12 +45,8 @@ func (c CongestionState) String() string {
return "NONE"
case CongestionStateEarlyWarning:
return "EARLY_WARNING"
case CongestionStateEarlyWarningHangover:
return "EARLY_WARNING_HANGOVER"
case CongestionStateCongested:
return "CONGESTED"
case CongestionStateCongestedHangover:
return "CONGESTED_HANGOVER"
default:
return fmt.Sprintf("%d", int(c))
}