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

Issue 1944003002: Increase the stun ping interval. (Closed)

Created:
4 years, 7 months ago by Zhi Huang
Modified:
4 years, 2 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Increase the stun ping interval. Writable connections are pinged at a slower rate. The function IsPingable will filter out the writable connections. The interval for slower ping rate by default is WRITABLE_CONNECTION_PING_INTERVAL(2500ms) and can be set with the configuration. BUG=webrtc:1161 Committed: https://crrev.com/8f7a5aad55a64f0d81b6436a22ffbdfcdcde91e0 Committed: https://crrev.com/435264a183e16572c99e8dd46171163b6fd33d59 Cr-Original-Commit-Position: refs/heads/master@{#12736} Cr-Commit-Position: refs/heads/master@{#13241}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Changes based on the code review. #

Total comments: 4

Patch Set 3 : Remove the hard code in IsPingable(); Renaming. #

Patch Set 4 : typo #

Total comments: 1

Patch Set 5 : Remove useless comments. #

Patch Set 6 : First Serveral pings are sent at faster rate. #

Total comments: 9

Patch Set 7 : Merge with Issue 2009763002. #

Total comments: 17

Patch Set 8 : Modified IsPingable(). #

Patch Set 9 : Minor format change. #

Total comments: 4

Patch Set 10 : Add a helper function to calculate ping interval. #

Total comments: 4

Patch Set 11 : Add unit test with fake clock. #

Total comments: 2

Patch Set 12 : Modified TestInitialPingInterval. #

Total comments: 12

Patch Set 13 : Merge the unit tests. Add stable() function to Connection. #

Patch Set 14 : Fix minor mistakes. #

Total comments: 2

Patch Set 15 : Fix naming issue in unit test before committing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -51 lines) Patch
M webrtc/p2p/base/p2ptransportchannel.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -0 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +54 lines, -16 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 22 chunks +117 lines, -25 lines 0 comments Download
M webrtc/p2p/base/port.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +10 lines, -1 line 0 comments Download
M webrtc/p2p/base/port.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +25 lines, -3 lines 0 comments Download
M webrtc/p2p/base/transport.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -6 lines 0 comments Download

Messages

Total messages: 60 (19 generated)
Zhi Huang
4 years, 7 months ago (2016-05-03 18:37:36 UTC) #2
honghaiz3
https://codereview.webrtc.org/1944003002/diff/1/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1944003002/diff/1/webrtc/p2p/base/p2ptransportchannel.cc#newcode1285 webrtc/p2p/base/p2ptransportchannel.cc:1285: if (rtc::TimeMillis() >= last_ping_sent_ms_ + weak_ping_interval_) { Now after ...
4 years, 7 months ago (2016-05-03 19:15:22 UTC) #3
honghaiz3
https://codereview.webrtc.org/1944003002/diff/1/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1944003002/diff/1/webrtc/p2p/base/p2ptransportchannel.cc#newcode1285 webrtc/p2p/base/p2ptransportchannel.cc:1285: if (rtc::TimeMillis() >= last_ping_sent_ms_ + weak_ping_interval_) { On 2016/05/03 ...
4 years, 7 months ago (2016-05-03 19:59:17 UTC) #4
Taylor Brandstetter
https://codereview.webrtc.org/1944003002/diff/1/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1944003002/diff/1/webrtc/p2p/base/p2ptransportchannel.cc#newcode215 webrtc/p2p/base/p2ptransportchannel.cc:215: static const int STRONG_PING_INTERVAL = 1000 * PING_PACKET_SIZE / ...
4 years, 7 months ago (2016-05-04 17:58:08 UTC) #5
Zhi Huang
Some changes based on the comments.
4 years, 7 months ago (2016-05-04 18:42:17 UTC) #6
pthatcher1
https://codereview.webrtc.org/1944003002/diff/20001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1944003002/diff/20001/webrtc/p2p/base/p2ptransportchannel.cc#newcode221 webrtc/p2p/base/p2ptransportchannel.cc:221: // also try hard to make sure it is ...
4 years, 7 months ago (2016-05-05 20:46:13 UTC) #8
Zhi Huang
https://codereview.webrtc.org/1944003002/diff/20001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1944003002/diff/20001/webrtc/p2p/base/p2ptransportchannel.cc#newcode221 webrtc/p2p/base/p2ptransportchannel.cc:221: // also try hard to make sure it is ...
4 years, 7 months ago (2016-05-06 01:43:39 UTC) #9
pthatcher1
lgtm, with a nit https://codereview.webrtc.org/1944003002/diff/60001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1944003002/diff/60001/webrtc/p2p/base/p2ptransportchannel.cc#newcode251 webrtc/p2p/base/p2ptransportchannel.cc:251: WRITABLE_CONNECTION_PING_INTERVAL /* max_strong_interval */) { ...
4 years, 7 months ago (2016-05-06 23:34:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1944003002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1944003002/80001
4 years, 7 months ago (2016-05-11 22:12:40 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/13200)
4 years, 7 months ago (2016-05-11 22:22:17 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1944003002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1944003002/80001
4 years, 7 months ago (2016-05-13 17:31:04 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-13 19:23:04 UTC) #22
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/8f7a5aad55a64f0d81b6436a22ffbdfcdcde91e0 Cr-Commit-Position: refs/heads/master@{#12736}
4 years, 7 months ago (2016-05-13 19:23:17 UTC) #24
juberti2
not lgtm If we do this, I think we need to update the RTT calculation ...
4 years, 7 months ago (2016-05-13 19:33:35 UTC) #25
juberti2
On 2016/05/13 19:33:35, juberti2 wrote: > not lgtm > > If we do this, I ...
4 years, 7 months ago (2016-05-13 19:50:14 UTC) #26
Zhi Huang
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.webrtc.org/1979573003/ by zhihuang@webrtc.org. ...
4 years, 7 months ago (2016-05-13 19:53:28 UTC) #27
pthatcher1
On 2016/05/13 19:50:14, juberti2 wrote: > On 2016/05/13 19:33:35, juberti2 wrote: > > not lgtm ...
4 years, 7 months ago (2016-05-13 20:37:03 UTC) #28
Taylor Brandstetter
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.webrtc.org/1982713002/ by deadbeef@webrtc.org. ...
4 years, 7 months ago (2016-05-16 18:16:04 UTC) #29
Zhi Huang
First N pings are sent with a faster rate so that it will not take ...
4 years, 7 months ago (2016-05-20 18:13:22 UTC) #31
pthatcher1
Taylor, can you re-review this? https://codereview.webrtc.org/1944003002/diff/100001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1944003002/diff/100001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1332 webrtc/p2p/base/p2ptransportchannel.cc:1332: // The best_connection need ...
4 years, 6 months ago (2016-05-27 17:36:32 UTC) #32
honghaiz3
On 2016/05/27 17:36:32, pthatcher1 wrote: > Taylor, can you re-review this? > > https://codereview.webrtc.org/1944003002/diff/100001/webrtc/p2p/base/p2ptransportchannel.cc > ...
4 years, 6 months ago (2016-05-27 18:13:47 UTC) #33
Taylor Brandstetter
https://codereview.webrtc.org/1944003002/diff/100001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1944003002/diff/100001/webrtc/p2p/base/p2ptransportchannel.cc#newcode222 webrtc/p2p/base/p2ptransportchannel.cc:222: // connection may get starved. "connection" -> "connections" Also, ...
4 years, 6 months ago (2016-05-27 20:11:00 UTC) #34
zhihuang1
https://codereview.webrtc.org/1944003002/diff/100001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1944003002/diff/100001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1343 webrtc/p2p/base/p2ptransportchannel.cc:1343: now); On 2016/05/27 17:36:31, pthatcher1 wrote: > This would ...
4 years, 6 months ago (2016-06-01 21:15:01 UTC) #36
pthatcher1
Taylor and Honghai, Can you both review the code I just wrote in a comment ...
4 years, 6 months ago (2016-06-01 23:22:03 UTC) #37
honghaiz3
https://codereview.webrtc.org/1944003002/diff/120001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1944003002/diff/120001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1380 webrtc/p2p/base/p2ptransportchannel.cc:1380: bool P2PTransportChannel::NeedToPingFast(Connection* conn) { On 2016/06/01 23:22:02, pthatcher1 wrote: ...
4 years, 6 months ago (2016-06-02 00:03:57 UTC) #38
honghaiz3
https://codereview.webrtc.org/1944003002/diff/120001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1944003002/diff/120001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1414 webrtc/p2p/base/p2ptransportchannel.cc:1414: On 2016/06/02 00:03:57, honghaiz3 wrote: > On 2016/06/01 23:22:02, ...
4 years, 6 months ago (2016-06-02 17:06:25 UTC) #39
pthatcher1
https://codereview.webrtc.org/1944003002/diff/120001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1944003002/diff/120001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1380 webrtc/p2p/base/p2ptransportchannel.cc:1380: bool P2PTransportChannel::NeedToPingFast(Connection* conn) { On 2016/06/02 00:03:57, honghaiz3 wrote: ...
4 years, 6 months ago (2016-06-02 18:03:02 UTC) #40
honghaiz3
https://codereview.webrtc.org/1944003002/diff/120001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1944003002/diff/120001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1380 webrtc/p2p/base/p2ptransportchannel.cc:1380: bool P2PTransportChannel::NeedToPingFast(Connection* conn) { On 2016/06/02 18:03:02, pthatcher1 wrote: ...
4 years, 6 months ago (2016-06-02 19:20:26 UTC) #41
pthatcher1
> https://codereview.webrtc.org/1944003002/diff/120001/webrtc/p2p/base/p2ptransportchannel.cc > File webrtc/p2p/base/p2ptransportchannel.cc (right): > > https://codereview.webrtc.org/1944003002/diff/120001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1380 > webrtc/p2p/base/p2ptransportchannel.cc:1380: bool > P2PTransportChannel::NeedToPingFast(Connection* conn) ...
4 years, 6 months ago (2016-06-03 00:13:23 UTC) #42
Zhi Huang
4 years, 6 months ago (2016-06-03 20:32:34 UTC) #44
Zhi Huang
On 2016/06/03 00:13:23, pthatcher1 wrote: > > > https://codereview.webrtc.org/1944003002/diff/120001/webrtc/p2p/base/p2ptransportchannel.cc > > File webrtc/p2p/base/p2ptransportchannel.cc (right): > ...
4 years, 6 months ago (2016-06-03 20:36:38 UTC) #45
honghaiz3
https://codereview.webrtc.org/1944003002/diff/160001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1944003002/diff/160001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1430 webrtc/p2p/base/p2ptransportchannel.cc:1430: config_.stable_writable_connection_ping_interval) Should this be the same as the ping_interval ...
4 years, 6 months ago (2016-06-03 22:54:07 UTC) #46
Zhi Huang
https://codereview.webrtc.org/1944003002/diff/160001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1944003002/diff/160001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1430 webrtc/p2p/base/p2ptransportchannel.cc:1430: config_.stable_writable_connection_ping_interval) On 2016/06/03 22:54:07, honghaiz3 wrote: > Should this ...
4 years, 6 months ago (2016-06-03 23:56:22 UTC) #47
pthatcher1
I like the mitigations. It's not mostly style/readability. And don't we need to add quite ...
4 years, 6 months ago (2016-06-08 17:53:17 UTC) #48
Zhi Huang
https://codereview.chromium.org/1944003002/diff/200001/webrtc/p2p/base/p2ptransportchannel_unittest.cc File webrtc/p2p/base/p2ptransportchannel_unittest.cc (right): https://codereview.chromium.org/1944003002/diff/200001/webrtc/p2p/base/p2ptransportchannel_unittest.cc#newcode2097 webrtc/p2p/base/p2ptransportchannel_unittest.cc:2097: EXPECT_TRUE(duration >= 100 && duration <= 200); The duration ...
4 years, 6 months ago (2016-06-10 20:39:02 UTC) #49
pthatcher1
OK, really close :) https://codereview.webrtc.org/1944003002/diff/220001/webrtc/p2p/base/p2ptransportchannel.cc File webrtc/p2p/base/p2ptransportchannel.cc (right): https://codereview.webrtc.org/1944003002/diff/220001/webrtc/p2p/base/p2ptransportchannel.cc#newcode1436 webrtc/p2p/base/p2ptransportchannel.cc:1436: } If we use the ...
4 years, 6 months ago (2016-06-14 00:44:28 UTC) #50
Zhi Huang
https://codereview.webrtc.org/1944003002/diff/200001/webrtc/p2p/base/p2ptransportchannel_unittest.cc File webrtc/p2p/base/p2ptransportchannel_unittest.cc (right): https://codereview.webrtc.org/1944003002/diff/200001/webrtc/p2p/base/p2ptransportchannel_unittest.cc#newcode2097 webrtc/p2p/base/p2ptransportchannel_unittest.cc:2097: EXPECT_TRUE(duration >= 100 && duration <= 200); On 2016/06/10 ...
4 years, 6 months ago (2016-06-20 17:18:17 UTC) #52
pthatcher1
lgtm https://codereview.webrtc.org/1944003002/diff/260001/webrtc/p2p/base/p2ptransportchannel_unittest.cc File webrtc/p2p/base/p2ptransportchannel_unittest.cc (right): https://codereview.webrtc.org/1944003002/diff/260001/webrtc/p2p/base/p2ptransportchannel_unittest.cc#newcode2114 webrtc/p2p/base/p2ptransportchannel_unittest.cc:2114: // converge the RTT. become => becomes https://codereview.webrtc.org/1944003002/diff/260001/webrtc/p2p/base/p2ptransportchannel_unittest.cc#newcode2901 ...
4 years, 6 months ago (2016-06-21 07:28:26 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1944003002/280001
4 years, 6 months ago (2016-06-21 17:21:04 UTC) #56
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 6 months ago (2016-06-21 18:28:43 UTC) #58
commit-bot: I haz the power
4 years, 6 months ago (2016-06-21 18:28:55 UTC) #60
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/435264a183e16572c99e8dd46171163b6fd33d59
Cr-Commit-Position: refs/heads/master@{#13241}

Powered by Google App Engine
This is Rietveld 408576698