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

Issue 1417663004: Create an experiment to study whether too many bindings cause NAT failure (Closed)

Created:
5 years, 2 months ago by guoweis_left_chromium
Modified:
5 years, 1 month ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create an experiment to study whether too many bindings cause NAT failure. In this experiment, we're trying to study the impact to NAT by the number of bindings created in short intervals. The stunprober will send 1 ping to each server. There will be total |rounds| of probers. They will be grouped into batches. For example, we'll have the first N probers reporting the success rate of total recv over total send as the first batch, the next N as the 2nd batch. Each batch will report its own UMA. This way, we could observe whether the later batch has higher failure rate than the initial ones. The list of important parameters will be 1. the interval b/w the pings 2. the batch size 3. the total rounds This depends on ongoing CL https://codereview.webrtc.org/1422593002 BUG=549639 Committed: https://crrev.com/cd60d52ce5a94f47e966744245c3ca1567d49d85 Cr-Commit-Position: refs/heads/master@{#357293}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 21

Patch Set 5 : fix a race condition where network doesn't have info yet. #

Patch Set 6 : update the histograms.xml #

Patch Set 7 : fix test cases #

Patch Set 8 : fix windows build. #

Total comments: 12

Patch Set 9 : address Peter's comments. #

Patch Set 10 : adjust the experiment design. #

Total comments: 8

Patch Set 11 : address Alexei comments. #

Total comments: 19

Patch Set 12 : address Alexei comments. Still need to change test code. #

Total comments: 8

Patch Set 13 : Remove StunProberWithWeakPtr and replace with a timer #

Total comments: 16

Patch Set 14 : address sergeyu's comments. #

Total comments: 1

Patch Set 15 : clarify comments. #

Patch Set 16 : rename vars #

Patch Set 17 : update UMA name in code to match with histograms.xml #

Unified diffs Side-by-side diffs Delta from patch set Stats (+335 lines, -150 lines) Patch
M chrome/browser/chrome_browser_field_trials_desktop.cc View 1 2 3 4 5 1 chunk +7 lines, -5 lines 0 comments Download
M content/renderer/media/webrtc/peer_connection_dependency_factory.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webrtc/peer_connection_dependency_factory.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -5 lines 0 comments Download
M content/renderer/media/webrtc/stun_field_trial.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +73 lines, -19 lines 0 comments Download
M content/renderer/media/webrtc/stun_field_trial.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +184 lines, -92 lines 0 comments Download
M content/renderer/media/webrtc/stun_field_trial_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +26 lines, -28 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 3 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (19 generated)
guoweis_left_chromium
Peter, I haven't fully tested this yet but you might want to take a first ...
5 years, 2 months ago (2015-10-21 21:26:51 UTC) #4
pthatcher2
https://codereview.chromium.org/1417663004/diff/60001/content/renderer/media/webrtc/stun_field_trial.cc File content/renderer/media/webrtc/stun_field_trial.cc (right): https://codereview.chromium.org/1417663004/diff/60001/content/renderer/media/webrtc/stun_field_trial.cc#newcode39 content/renderer/media/webrtc/stun_field_trial.cc:39: StunProberWithWeakPtr* prober_head = nullptr; Instead of having global state, ...
5 years, 2 months ago (2015-10-22 05:27:52 UTC) #5
guoweis_left_chromium
PTAL. https://codereview.chromium.org/1417663004/diff/60001/content/renderer/media/webrtc/stun_field_trial.cc File content/renderer/media/webrtc/stun_field_trial.cc (right): https://codereview.chromium.org/1417663004/diff/60001/content/renderer/media/webrtc/stun_field_trial.cc#newcode78 content/renderer/media/webrtc/stun_field_trial.cc:78: int current_batch, On 2015/10/22 05:27:51, pthatcher2 wrote: > ...
5 years, 1 month ago (2015-10-27 17:19:06 UTC) #12
guoweis_left_chromium
On 2015/10/27 17:19:06, guoweis_chromium wrote: > PTAL. > > https://codereview.chromium.org/1417663004/diff/60001/content/renderer/media/webrtc/stun_field_trial.cc > File content/renderer/media/webrtc/stun_field_trial.cc (right): > ...
5 years, 1 month ago (2015-10-27 17:19:31 UTC) #13
guoweis_left_chromium
rkaplow@chromium.org: Please review changes in histograms.xml tommi@chromium.org: Please review changes in the rest.
5 years, 1 month ago (2015-10-27 19:28:29 UTC) #15
tommi (sloooow) - chröme
Peter can you review? I don't know all the details but can rubber stamp
5 years, 1 month ago (2015-10-28 07:14:05 UTC) #16
pthatcher2
lgtm Mostly nits and grammar. Don't let it block progress, especially since my reviews are ...
5 years, 1 month ago (2015-10-29 14:13:13 UTC) #17
guoweis_webrtc
asvitkine@chromium.org: Please review changes in chrome/browser/chrome_browser_field_trials_desktop.cc https://codereview.chromium.org/1417663004/diff/250001/chrome/browser/chrome_browser_field_trials_desktop.cc File chrome/browser/chrome_browser_field_trials_desktop.cc (right): https://codereview.chromium.org/1417663004/diff/250001/chrome/browser/chrome_browser_field_trials_desktop.cc#newcode59 chrome/browser/chrome_browser_field_trials_desktop.cc:59: "/" + params["server5"] ...
5 years, 1 month ago (2015-10-29 21:45:30 UTC) #19
guoweis_webrtc
+sergeyu@ to review the stun trial change.
5 years, 1 month ago (2015-10-29 22:39:37 UTC) #22
Alexei Svitkine (slow)
This change is large enough that it should have an associated crbug https://codereview.chromium.org/1417663004/diff/300001/content/renderer/media/webrtc/stun_field_trial.h File content/renderer/media/webrtc/stun_field_trial.h ...
5 years, 1 month ago (2015-10-30 15:49:39 UTC) #23
Alexei Svitkine (slow)
Also, please don't use "Finch" in the CL description, since that's an internal codename. On ...
5 years, 1 month ago (2015-10-30 15:54:06 UTC) #24
guoweis_webrtc
PTAL. https://codereview.chromium.org/1417663004/diff/300001/content/renderer/media/webrtc/stun_field_trial.h File content/renderer/media/webrtc/stun_field_trial.h (right): https://codereview.chromium.org/1417663004/diff/300001/content/renderer/media/webrtc/stun_field_trial.h#newcode36 content/renderer/media/webrtc/stun_field_trial.h:36: StunProberWithWeakPtr(StunProber* prober); On 2015/10/30 15:49:39, Alexei Svitkine (slow) ...
5 years, 1 month ago (2015-10-30 16:34:13 UTC) #26
Alexei Svitkine (slow)
https://codereview.chromium.org/1417663004/diff/320001/content/renderer/media/webrtc/stun_field_trial.cc File content/renderer/media/webrtc/stun_field_trial.cc (right): https://codereview.chromium.org/1417663004/diff/320001/content/renderer/media/webrtc/stun_field_trial.cc#newcode97 content/renderer/media/webrtc/stun_field_trial.cc:97: if (next_prober_) { Nit: No {}'s https://codereview.chromium.org/1417663004/diff/320001/content/renderer/media/webrtc/stun_field_trial.cc#newcode98 content/renderer/media/webrtc/stun_field_trial.cc:98: base::MessageLoop::current()->DeleteSoon(FROM_HERE, ...
5 years, 1 month ago (2015-10-30 17:32:19 UTC) #27
guoweis_webrtc
On 2015/10/30 17:32:19, Alexei Svitkine (slow) wrote: > https://codereview.chromium.org/1417663004/diff/320001/content/renderer/media/webrtc/stun_field_trial.cc > File content/renderer/media/webrtc/stun_field_trial.cc (right): > > ...
5 years, 1 month ago (2015-10-30 18:02:44 UTC) #28
Sergey Ulanov
https://codereview.chromium.org/1417663004/diff/320001/content/renderer/media/webrtc/stun_field_trial.cc File content/renderer/media/webrtc/stun_field_trial.cc (right): https://codereview.chromium.org/1417663004/diff/320001/content/renderer/media/webrtc/stun_field_trial.cc#newcode90 content/renderer/media/webrtc/stun_field_trial.cc:90: next_prober_->GetWeakPtr(), observer), So if I understand correctly the reason ...
5 years, 1 month ago (2015-10-30 18:27:49 UTC) #29
Alexei Svitkine (slow)
lgtm % remaining comments addressed https://codereview.chromium.org/1417663004/diff/340001/content/renderer/media/webrtc/stun_field_trial.cc File content/renderer/media/webrtc/stun_field_trial.cc (right): https://codereview.chromium.org/1417663004/diff/340001/content/renderer/media/webrtc/stun_field_trial.cc#newcode297 content/renderer/media/webrtc/stun_field_trial.cc:297: &total_batches, &servers); Per my ...
5 years, 1 month ago (2015-10-30 18:39:48 UTC) #30
guoweis_left_chromium
Thanks both of you for the comments. It's nicer and simpler now. PTAL. https://codereview.chromium.org/1417663004/diff/320001/content/renderer/media/webrtc/stun_field_trial.cc File ...
5 years, 1 month ago (2015-10-30 21:47:13 UTC) #33
Sergey Ulanov
https://codereview.chromium.org/1417663004/diff/400001/content/renderer/media/webrtc/stun_field_trial.cc File content/renderer/media/webrtc/stun_field_trial.cc (right): https://codereview.chromium.org/1417663004/diff/400001/content/renderer/media/webrtc/stun_field_trial.cc#newcode296 content/renderer/media/webrtc/stun_field_trial.cc:296: timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds( I'm not sure I understand the reason ...
5 years, 1 month ago (2015-10-30 22:50:06 UTC) #34
guoweis_left_chromium
PTAL https://codereview.chromium.org/1417663004/diff/400001/content/renderer/media/webrtc/stun_field_trial.cc File content/renderer/media/webrtc/stun_field_trial.cc (right): https://codereview.chromium.org/1417663004/diff/400001/content/renderer/media/webrtc/stun_field_trial.cc#newcode296 content/renderer/media/webrtc/stun_field_trial.cc:296: timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds( On 2015/10/30 22:50:06, Sergey Ulanov wrote: ...
5 years, 1 month ago (2015-10-30 23:15:00 UTC) #35
Sergey Ulanov
lgtm https://codereview.chromium.org/1417663004/diff/420001/content/renderer/media/webrtc/stun_field_trial.cc File content/renderer/media/webrtc/stun_field_trial.cc (right): https://codereview.chromium.org/1417663004/diff/420001/content/renderer/media/webrtc/stun_field_trial.cc#newcode103 content/renderer/media/webrtc/stun_field_trial.cc:103: int total_recv = 0; Maybe call these total_requests_sent ...
5 years, 1 month ago (2015-10-30 23:34:21 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417663004/460001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417663004/460001
5 years, 1 month ago (2015-11-01 19:53:59 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417663004/480001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417663004/480001
5 years, 1 month ago (2015-11-01 21:03:05 UTC) #41
commit-bot: I haz the power
Committed patchset #17 (id:480001)
5 years, 1 month ago (2015-11-01 22:05:53 UTC) #42
commit-bot: I haz the power
5 years, 1 month ago (2015-11-01 22:06:48 UTC) #43
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/cd60d52ce5a94f47e966744245c3ca1567d49d85
Cr-Commit-Position: refs/heads/master@{#357293}

Powered by Google App Engine
This is Rietveld 408576698