Skip to content

Commit

Permalink
Change backoff/recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
nodughere committed Mar 8, 2023
1 parent 9f8ae9f commit 36382e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/congestion/cubic_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const (
// Used in QUIC for congestion window computations in bytes.
initialMaxDatagramSize = protocol.ByteCount(protocol.InitialPacketSizeIPv4)
maxBurstPackets = 3
renoBeta = 0.98 // Reno backoff factor.
renoBeta = 0.97 // Reno backoff factor.
minCongestionWindowPackets = 2
initialCongestionWindow = 32
)
Expand Down Expand Up @@ -242,7 +242,7 @@ func (c *cubicSender) maybeIncreaseCwnd(
// Classic Reno congestion avoidance.
c.numAckedPackets++
if c.numAckedPackets >= uint64((c.congestionWindow/c.maxDatagramSize)/4) {
c.congestionWindow += (c.maxDatagramSize * 2)
c.congestionWindow += (c.maxDatagramSize * 5)
c.numAckedPackets = 0
}
} else {
Expand Down

0 comments on commit 36382e5

Please sign in to comment.