Fix bandwidth probation dead state#1031
Merged
jmillan merged 3 commits intoApr 14, 2023
Merged
Conversation
Member
|
Is this something available in latest libwebrtc version? You are basically changing libwebrtc. Also, we have an ongoing PR #922 upgrading to latest libwebrtc so I don't see a point in doing it in current very old version. |
Member
|
@sarumjanuch you may want to see this. |
Contributor
Author
Yes, it seems the same of the latest libwebrtc code: https://webrtc.googlesource.com/src/+/refs/heads/main/modules/congestion_controller/goog_cc/alr_detector.cc |
Contributor
Member
|
Ok, let me take a proper look on Monday and merge it in v3. But it will generate conflicts in your branch @sarumjanuch, is it ok? |
Contributor
|
Don't worry at all. My branch is already deviated a lot, both, from ms and libwebrtc. |
jmillan
approved these changes
Apr 14, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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::OnProcessIntervalwe 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::OnProcessIntervalcallsprobe_controller_->SetAlrStartTimeMs(<empty value>)with this empty value set into theProbeController, and theProbeController::Processnever 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.