Fix bandwidth probation dead state #1031
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Running some tests with high packet loss (~20%), in most cases the server stops sending any video packet and we never exit from that state, even if the network link improves.
Looking at the ALR detector (that should be activated when there are no RTP packets sent over the transport), it seems that it is falling into a dead state:
NetworkControlUpdate GoogCcNetworkController::OnProcessInterval
we periodically callstart_time_ms = alr_detector_->GetApplicationLimitedRegionStartTime()
setting the output value toprobe_controller_->SetAlrStartTimeMs(start_time_ms)
AlrDetector::OnBytesSent
, so when the transport stops sending packets, we could end up in this state:GoogCcNetworkController::OnProcessInterval
callsprobe_controller_->SetAlrStartTimeMs(<empty value>)
with this empty value set into theProbeController
, and theProbeController::Process
never callsInitiateProbing
, so no more probing is created;With this PR we use a
alr_timeout_
value (set to 3s by default). After that timeout, the ALR resumes sending probes.