Attempt to reduce disruption due to probe. (#1839)

* Make congestion controller probe config

* Wait for enough estimate samples

* fixes

* format

* limit number of times a packet is ACKed

* ramp up probe duration

* go format

* correct comment

* restore default

* add float64 type to generated CLI
This commit is contained in:
Raja Subramanian
2023-06-30 11:09:46 +05:30
committed by GitHub
parent 3de1e49165
commit 69a1e572be
7 changed files with 192 additions and 102 deletions
+2 -1
View File
@@ -11,6 +11,7 @@ import (
const (
defaultRtt = 70
ignoreRetransmission = 100 // Ignore packet retransmission after ignoreRetransmission milliseconds
maxAck = 3
)
func btoi(b bool) int {
@@ -187,7 +188,7 @@ func (s *sequencer) getPacketsMeta(seqNo []uint16) []packetMeta {
continue
}
if seq.lastNack == 0 || refTime-seq.lastNack > uint32(math.Min(float64(ignoreRetransmission), float64(2*s.rtt))) {
if (seq.lastNack == 0 || refTime-seq.lastNack > uint32(math.Min(float64(ignoreRetransmission), float64(2*s.rtt)))) && seq.nacked < maxAck {
seq.nacked++
seq.lastNack = refTime