Better naming/logging for send side bwe (#3264)

* Better naming/logging for send side bwe

* Check BWE congestion state before doing optimal allocation.

It is possible that BWE declares congestion, but the estimated bandwidth
may still be enough to accommodate all tracks. So, stream allocator
would still not in DEFICIENT state. On a new track allocation, it will
get optimal allocation although BWE is in congested state.

Take BWE congestion state into consideration before doing any track
allocation.

* get congestion state from BWE rather than caching it in stream allocator

* get states from update

* log contributing groups only when they are small in number

* get oldest group always

* notify only when estimate is dropping

* require stronger CTR down trend

* maintain min/max group

* relax thresholds to declare congestion a bit
This commit is contained in:
Raja Subramanian
2024-12-18 21:38:13 +05:30
committed by GitHub
parent 90804c553e
commit b6e99e249b
8 changed files with 177 additions and 132 deletions
+3 -1
View File
@@ -85,6 +85,8 @@ type BWE interface {
UpdateRTT(rtt float64)
CongestionState() CongestionState
CanProbe() bool
ProbeDuration() time.Duration
ProbeClusterStarting(pci ccutils.ProbeClusterInfo)
@@ -96,7 +98,7 @@ type BWE interface {
// ------------------------------------------------
type BWEListener interface {
OnCongestionStateChange(congestionState CongestionState, estimatedAvailableChannelCapacity int64)
OnCongestionStateChange(fromState CongestionState, toState CongestionState, estimatedAvailableChannelCapacity int64)
}
// ------------------------------------------------