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

Issue 1995683003: Allow FakeNetworkPipe to drop packets in bursts. (Closed)

Created:
4 years, 7 months ago by philipel
Modified:
4 years, 6 months ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, pbos-webrtc, perkj_webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Allow FakeNetworkPipe to drop packets in bursts. The fake network pipe will still only drop packets at an average rate of |loss_percent| but in bursts at an average length specified by |avg_burst_loss_length|. Also added the flag -avg_burst_loss_length to video loopback. BUG= Committed: https://crrev.com/536378bf37c7c7624832e4deabd4fcf032ebcefb Cr-Commit-Position: refs/heads/master@{#12969}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Feedback fixes, also added sanity check for avg_burst_loss_length parameter. #

Total comments: 10

Patch Set 3 : feedback fixes. #

Total comments: 6

Patch Set 4 : Fixed comment. #

Patch Set 5 : Included cmath for std::ceil. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -3 lines) Patch
M webrtc/test/fake_network_pipe.h View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M webrtc/test/fake_network_pipe.cc View 1 2 3 4 3 chunks +30 lines, -3 lines 0 comments Download
M webrtc/test/fake_network_pipe_unittest.cc View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
M webrtc/video/video_loopback.cc View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
philipel
4 years, 7 months ago (2016-05-18 18:47:04 UTC) #2
terelius
Comments based on offline discussion below. https://codereview.webrtc.org/1995683003/diff/1/webrtc/test/fake_network_pipe.cc File webrtc/test/fake_network_pipe.cc (right): https://codereview.webrtc.org/1995683003/diff/1/webrtc/test/fake_network_pipe.cc#newcode40 webrtc/test/fake_network_pipe.cc:40: prob_burst_loss_ = (static_cast<double>(config_.loss_percent) ...
4 years, 6 months ago (2016-05-30 14:00:30 UTC) #3
philipel
https://codereview.webrtc.org/1995683003/diff/1/webrtc/test/fake_network_pipe.cc File webrtc/test/fake_network_pipe.cc (right): https://codereview.webrtc.org/1995683003/diff/1/webrtc/test/fake_network_pipe.cc#newcode40 webrtc/test/fake_network_pipe.cc:40: prob_burst_loss_ = (static_cast<double>(config_.loss_percent) / On 2016/05/30 14:00:29, terelius wrote: ...
4 years, 6 months ago (2016-05-30 14:42:42 UTC) #4
stefan-webrtc
https://codereview.webrtc.org/1995683003/diff/1/webrtc/test/fake_network_pipe.cc File webrtc/test/fake_network_pipe.cc (right): https://codereview.webrtc.org/1995683003/diff/1/webrtc/test/fake_network_pipe.cc#newcode129 webrtc/test/fake_network_pipe.cc:129: if (bursting_ || random_.Rand<double>() < prob_burst_loss_) { On 2016/05/30 ...
4 years, 6 months ago (2016-05-30 15:15:10 UTC) #6
terelius
https://codereview.webrtc.org/1995683003/diff/20001/webrtc/test/fake_network_pipe.cc File webrtc/test/fake_network_pipe.cc (right): https://codereview.webrtc.org/1995683003/diff/20001/webrtc/test/fake_network_pipe.cc#newcode42 webrtc/test/fake_network_pipe.cc:42: prob_loss_bursting_ = 0; This won't really be uniform. After ...
4 years, 6 months ago (2016-05-30 15:40:23 UTC) #7
philipel
Took a quick look at gilbert-elliot model and it looks like that is what has ...
4 years, 6 months ago (2016-05-30 16:05:40 UTC) #8
terelius
https://codereview.webrtc.org/1995683003/diff/40001/webrtc/test/fake_network_pipe.h File webrtc/test/fake_network_pipe.h (right): https://codereview.webrtc.org/1995683003/diff/40001/webrtc/test/fake_network_pipe.h#newcode84 webrtc/test/fake_network_pipe.h:84: int avg_burst_loss_length = -1; I think it would be ...
4 years, 6 months ago (2016-05-30 16:26:32 UTC) #9
philipel
https://codereview.webrtc.org/1995683003/diff/40001/webrtc/test/fake_network_pipe.h File webrtc/test/fake_network_pipe.h (right): https://codereview.webrtc.org/1995683003/diff/40001/webrtc/test/fake_network_pipe.h#newcode84 webrtc/test/fake_network_pipe.h:84: int avg_burst_loss_length = -1; On 2016/05/30 16:26:32, terelius wrote: ...
4 years, 6 months ago (2016-05-30 16:29:26 UTC) #10
terelius
lgtm
4 years, 6 months ago (2016-05-30 16:29:46 UTC) #11
mflodman
LGTM with comment addressed. https://codereview.webrtc.org/1995683003/diff/40001/webrtc/test/fake_network_pipe.h File webrtc/test/fake_network_pipe.h (right): https://codereview.webrtc.org/1995683003/diff/40001/webrtc/test/fake_network_pipe.h#newcode84 webrtc/test/fake_network_pipe.h:84: int avg_burst_loss_length = -1; On ...
4 years, 6 months ago (2016-05-31 07:42:02 UTC) #12
stefan-webrtc
lgtm
4 years, 6 months ago (2016-05-31 07:47:41 UTC) #13
philipel
https://codereview.webrtc.org/1995683003/diff/40001/webrtc/test/fake_network_pipe.h File webrtc/test/fake_network_pipe.h (right): https://codereview.webrtc.org/1995683003/diff/40001/webrtc/test/fake_network_pipe.h#newcode84 webrtc/test/fake_network_pipe.h:84: int avg_burst_loss_length = -1; On 2016/05/31 07:42:02, mflodman wrote: ...
4 years, 6 months ago (2016-05-31 08:39:00 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1995683003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1995683003/60001
4 years, 6 months ago (2016-05-31 08:39:09 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_rel/builds/13767)
4 years, 6 months ago (2016-05-31 08:42:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1995683003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1995683003/80001
4 years, 6 months ago (2016-05-31 08:47:05 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-05-31 10:20:26 UTC) #23
commit-bot: I haz the power
4 years, 6 months ago (2016-05-31 10:20:35 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/536378bf37c7c7624832e4deabd4fcf032ebcefb
Cr-Commit-Position: refs/heads/master@{#12969}

Powered by Google App Engine
This is Rietveld 408576698