Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Issue 2458863002: Start probes only after network is connected. (Closed)

Created:
4 years, 1 month ago by Sergey Ulanov
Modified:
4 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, the sun, stefan-webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Start probes only after network is connected. Previously ProbeController was starting probing as soon as SetBitrates() is called. As result these probes would often timeout while connection is being established. Now ProbeController receives notifications about network route changes. This allows to start probing only when transport is connected. This also makes it possible to restart probing whenever transport route changes (will be done in a separate change). BUG=webrtc:6332 R=honghaiz@webrtc.org, philipel@webrtc.org, stefan@webrtc.org Committed: https://crrev.com/e2b1501101802ad8f4b7e38cad673a19bc2ff849 Committed: https://crrev.com/5c99c76255ee7bface3c742c25fb5617748ac86e Cr-Original-Commit-Position: refs/heads/master@{#15094} Cr-Commit-Position: refs/heads/master@{#15204}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 12

Patch Set 3 : simpler fix #

Total comments: 4

Patch Set 4 : address feedback #

Patch Set 5 : comment #

Total comments: 4

Patch Set 6 : . #

Total comments: 2

Patch Set 7 : . #

Patch Set 8 : fix tests #

Patch Set 9 : sync #

Patch Set 10 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -33 lines) Patch
M webrtc/call/bitrate_allocator.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M webrtc/call/call.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/media/base/videoengine_unittest.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2_unittest.cc View 1 2 3 4 5 6 7 8 9 8 chunks +8 lines, -0 lines 0 comments Download
M webrtc/modules/congestion_controller/congestion_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/congestion_controller/probe_controller.h View 1 2 3 2 chunks +11 lines, -3 lines 0 comments Download
M webrtc/modules/congestion_controller/probe_controller.cc View 1 2 3 4 5 6 7 8 9 2 chunks +42 lines, -16 lines 0 comments Download
M webrtc/modules/congestion_controller/probe_controller_unittest.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M webrtc/test/call_test.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/test/direct_transport.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/video/end_to_end_tests.cc View 1 2 3 4 5 6 7 8 9 5 chunks +10 lines, -11 lines 0 comments Download
M webrtc/video/video_send_stream_tests.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 79 (45 generated)
Sergey Ulanov
4 years, 1 month ago (2016-10-27 23:15:29 UTC) #4
stefan-webrtc
+honghaiz to comment on the change to OnNetworkRouteChanged and SignalNetworkState. https://codereview.webrtc.org/2458863002/diff/20001/webrtc/base/networkroute.h File webrtc/base/networkroute.h (right): https://codereview.webrtc.org/2458863002/diff/20001/webrtc/base/networkroute.h#newcode14 ...
4 years, 1 month ago (2016-10-31 10:48:17 UTC) #6
stefan-webrtc
Overall I think this looks like a pretty nice improvement. https://codereview.webrtc.org/2458863002/diff/20001/webrtc/modules/congestion_controller/probe_controller.cc File webrtc/modules/congestion_controller/probe_controller.cc (right): https://codereview.webrtc.org/2458863002/diff/20001/webrtc/modules/congestion_controller/probe_controller.cc#newcode71 ...
4 years, 1 month ago (2016-10-31 10:58:27 UTC) #7
Sergey Ulanov
https://codereview.webrtc.org/2458863002/diff/20001/webrtc/base/networkroute.h File webrtc/base/networkroute.h (right): https://codereview.webrtc.org/2458863002/diff/20001/webrtc/base/networkroute.h#newcode14 webrtc/base/networkroute.h:14: #include <cstdint> On 2016/10/31 10:48:17, stefan-webrtc (holmer) wrote: > ...
4 years, 1 month ago (2016-10-31 18:07:27 UTC) #8
stefan-webrtc
Philip, Honghai, please take a look. This change looks good, but I want the others ...
4 years, 1 month ago (2016-11-02 13:27:17 UTC) #9
philipel
https://codereview.webrtc.org/2458863002/diff/20001/webrtc/modules/congestion_controller/probe_controller.cc File webrtc/modules/congestion_controller/probe_controller.cc (right): https://codereview.webrtc.org/2458863002/diff/20001/webrtc/modules/congestion_controller/probe_controller.cc#newcode72 webrtc/modules/congestion_controller/probe_controller.cc:72: estimated_bitrate_bps_ != 0 && estimated_bitrate_bps_ < max_bitrate_bps && In ...
4 years, 1 month ago (2016-11-02 16:15:03 UTC) #10
Sergey Ulanov
https://codereview.webrtc.org/2458863002/diff/20001/webrtc/modules/congestion_controller/probe_controller.cc File webrtc/modules/congestion_controller/probe_controller.cc (right): https://codereview.webrtc.org/2458863002/diff/20001/webrtc/modules/congestion_controller/probe_controller.cc#newcode72 webrtc/modules/congestion_controller/probe_controller.cc:72: estimated_bitrate_bps_ != 0 && estimated_bitrate_bps_ < max_bitrate_bps && On ...
4 years, 1 month ago (2016-11-02 21:12:44 UTC) #11
honghaiz3
https://codereview.webrtc.org/2458863002/diff/20001/webrtc/call/call.cc File webrtc/call/call.cc (left): https://codereview.webrtc.org/2458863002/diff/20001/webrtc/call/call.cc#oldcode718 webrtc/call/call.cc:718: UpdateAggregateNetworkState(); I don't think it is appropriate to remove ...
4 years, 1 month ago (2016-11-03 06:10:20 UTC) #12
Sergey Ulanov
I've simplified this change to keep SignalNetworkState() for now. ProbeController gets notifications about network state ...
4 years, 1 month ago (2016-11-05 00:04:33 UTC) #14
Sergey Ulanov
ping
4 years, 1 month ago (2016-11-07 21:33:12 UTC) #16
honghaiz3
https://codereview.webrtc.org/2458863002/diff/60001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/2458863002/diff/60001/webrtc/call/call.cc#newcode284 webrtc/call/call.cc:284: congestion_controller_->SignalNetworkState(kNetworkDown); The initial values of network state in different ...
4 years, 1 month ago (2016-11-07 23:31:41 UTC) #17
Sergey Ulanov
https://codereview.webrtc.org/2458863002/diff/60001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/2458863002/diff/60001/webrtc/call/call.cc#newcode284 webrtc/call/call.cc:284: congestion_controller_->SignalNetworkState(kNetworkDown); On 2016/11/07 23:31:41, honghaiz3 wrote: > The initial ...
4 years, 1 month ago (2016-11-08 00:10:58 UTC) #18
honghaiz3
lgtm. Thanks for addressing my comments.
4 years, 1 month ago (2016-11-08 00:22:08 UTC) #19
philipel
https://codereview.webrtc.org/2458863002/diff/20001/webrtc/modules/congestion_controller/probe_controller.cc File webrtc/modules/congestion_controller/probe_controller.cc (right): https://codereview.webrtc.org/2458863002/diff/20001/webrtc/modules/congestion_controller/probe_controller.cc#newcode72 webrtc/modules/congestion_controller/probe_controller.cc:72: estimated_bitrate_bps_ != 0 && estimated_bitrate_bps_ < max_bitrate_bps && On ...
4 years, 1 month ago (2016-11-08 09:48:18 UTC) #20
Sergey Ulanov
https://codereview.webrtc.org/2458863002/diff/100001/webrtc/modules/congestion_controller/probe_controller.cc File webrtc/modules/congestion_controller/probe_controller.cc (right): https://codereview.webrtc.org/2458863002/diff/100001/webrtc/modules/congestion_controller/probe_controller.cc#newcode63 webrtc/modules/congestion_controller/probe_controller.cc:63: start_bitrate_bps_ = On 2016/11/08 09:48:18, philipel wrote: > min_bitrate_bps ...
4 years, 1 month ago (2016-11-08 16:26:01 UTC) #21
stefan-webrtc
https://codereview.webrtc.org/2458863002/diff/120001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/2458863002/diff/120001/webrtc/call/call.cc#newcode701 webrtc/call/call.cc:701: config_.bitrate_config.start_bitrate_bps, Is this a change in behavior? Did we ...
4 years, 1 month ago (2016-11-09 18:07:55 UTC) #22
Sergey Ulanov
https://codereview.webrtc.org/2458863002/diff/120001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/2458863002/diff/120001/webrtc/call/call.cc#newcode701 webrtc/call/call.cc:701: config_.bitrate_config.start_bitrate_bps, On 2016/11/09 18:07:55, stefan-webrtc (holmer) wrote: > Is ...
4 years, 1 month ago (2016-11-09 18:34:12 UTC) #23
Sergey Ulanov
Stefan: ping
4 years, 1 month ago (2016-11-10 22:45:08 UTC) #24
stefan-webrtc
lgtm
4 years, 1 month ago (2016-11-11 10:36:19 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2458863002/140001
4 years, 1 month ago (2016-11-12 00:58:10 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: android_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_rel/builds/18333) win_rel on master.tryserver.webrtc (JOB_FAILED, ...
4 years, 1 month ago (2016-11-12 02:03:17 UTC) #34
philipel
lgtm
4 years, 1 month ago (2016-11-14 12:11:13 UTC) #35
Sergey Ulanov
In the latest patchset updated tests which were previously broken because Call is now initialized ...
4 years, 1 month ago (2016-11-15 02:38:02 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2458863002/220001
4 years, 1 month ago (2016-11-15 18:15:11 UTC) #54
commit-bot: I haz the power
Failed to apply patch for webrtc/video/end_to_end_tests.cc: While running git apply --index -p1; error: patch failed: ...
4 years, 1 month ago (2016-11-15 18:17:47 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2458863002/240001
4 years, 1 month ago (2016-11-15 19:20:45 UTC) #59
commit-bot: I haz the power
Committed patchset #9 (id:240001)
4 years, 1 month ago (2016-11-15 20:25:38 UTC) #61
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/5c99c76255ee7bface3c742c25fb5617748ac86e Cr-Commit-Position: refs/heads/master@{#15094}
4 years, 1 month ago (2016-11-15 20:36:02 UTC) #63
honghaiz3
A revert of this CL (patchset #9 id:240001) has been created in https://codereview.webrtc.org/2504783002/ by honghaiz@webrtc.org. ...
4 years, 1 month ago (2016-11-15 22:38:48 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2458863002/260001
4 years, 1 month ago (2016-11-22 21:35:00 UTC) #68
commit-bot: I haz the power
Try jobs failed on following builders: android_more_configs on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_more_configs/builds/624)
4 years, 1 month ago (2016-11-22 21:53:30 UTC) #70
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2458863002/260001
4 years, 1 month ago (2016-11-22 23:22:05 UTC) #74
commit-bot: I haz the power
Try jobs failed on following builders: android_more_configs on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_more_configs/builds/629)
4 years, 1 month ago (2016-11-22 23:48:56 UTC) #76
Sergey Ulanov
4 years, 1 month ago (2016-11-23 00:08:43 UTC) #78
Message was sent while issue was closed.
Committed patchset #10 (id:260001) manually as
e2b1501101802ad8f4b7e38cad673a19bc2ff849 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698