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
+2 -13
View File
@@ -727,17 +727,6 @@ func (s *StreamAllocator) handleSignalPeriodicPing(Event) {
}
}
// try up allocations in case there is available headroom,
// it is possible that a previous up allocation is waiting to settle,
// so even if there was headroom available while doing previous up allocation
// it may not have used up all available headroom,
// check before probing again as this could use available headroom and
// up allocate all tracks to their desired layers, that would avoid
// an unnecessary probe cluster
if s.state == streamAllocatorStateDeficient {
s.maybeBoostDeficientTracks()
}
// probe if necessary and timing is right
if s.state == streamAllocatorStateDeficient {
s.maybeProbe()
@@ -1439,11 +1428,11 @@ func updateStreamStateChange(track *Track, allocation sfu.VideoAllocation, updat
}
func isHoldableCongestionState(bweCongestionState bwe.CongestionState) bool {
return bweCongestionState == bwe.CongestionStateEarlyWarning || bweCongestionState == bwe.CongestionStateEarlyWarningHangover
return bweCongestionState == bwe.CongestionStateEarlyWarning
}
func isDeficientCongestionState(bweCongestionState bwe.CongestionState) bool {
return bweCongestionState == bwe.CongestionStateCongested || bweCongestionState == bwe.CongestionStateCongestedHangover
return bweCongestionState == bwe.CongestionStateCongested
}
// ------------------------------------------------