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

Issue 1981463002: Change initial DTLS retransmission timer from 1 second to 50ms. (Closed)

Created:
4 years, 7 months ago by Taylor Brandstetter
Modified:
4 years, 6 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

Change initial DTLS retransmission timer from 1 second to 50ms. This will help ensure a timely DTLS handshake when there's packet loss. It will likely result in spurious retransmissions (since the RTT is usually > 50ms), but since exponential backoff is still used, there will at most be ~4 extra retransmissions. For a time-sensitive application like WebRTC this seems like a reasonable tradeoff. R=pthatcher@webrtc.org, juberti@chromium.org, juberti@webrtc.org Committed: https://crrev.com/1e435628366fb9fed71632369f05928ed857d8ef Cr-Commit-Position: refs/heads/master@{#12853} Committed: https://chromium.googlesource.com/external/webrtc/+/4f0dfbd213aaad0b8b32b0cf0101b47aea039770

Patch Set 1 #

Patch Set 2 : Put the new method in "if boringssl", not the other way around... #

Patch Set 3 : Fixing flaky tests by using the fake clock. Also adding a new test for good measure. #

Patch Set 4 : Skip the retransmission schedule test if not built with BoringSSL. #

Total comments: 3

Patch Set 5 : Fixing typo in comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -28 lines) Patch
M webrtc/base/gunit.h View 1 2 1 chunk +14 lines, -14 lines 0 comments Download
M webrtc/base/logging.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/base/opensslstreamadapter.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/opensslstreamadapter.cc View 1 2 3 5 chunks +29 lines, -3 lines 0 comments Download
M webrtc/base/sslstreamadapter.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/sslstreamadapter.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/base/timeutils.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/base/timeutils.cc View 1 2 2 chunks +12 lines, -4 lines 0 comments Download
M webrtc/p2p/base/dtlstransportchannel_unittest.cc View 1 2 3 4 chunks +49 lines, -5 lines 0 comments Download

Messages

Total messages: 31 (12 generated)
Taylor Brandstetter
Note that a BoringSSL/Chromium roll will be needed before I can land this.
4 years, 7 months ago (2016-05-13 17:46:42 UTC) #2
Taylor Brandstetter
Also: do you still prefer a flat 50ms timer over one based on RTT?
4 years, 7 months ago (2016-05-13 17:47:19 UTC) #3
pthatcher1
lgtm Yes, I still think 50ms sounds good. It's easier, usually faster, and has practically ...
4 years, 7 months ago (2016-05-13 19:02:29 UTC) #4
Taylor Brandstetter
On 2016/05/13 19:02:29, pthatcher1 wrote: > lgtm > > Yes, I still think 50ms sounds ...
4 years, 7 months ago (2016-05-13 19:26:25 UTC) #5
Taylor Brandstetter
4 years, 7 months ago (2016-05-13 19:26:38 UTC) #7
juberti2
On 2016/05/13 19:26:38, Taylor Brandstetter wrote: Backoff results in rtx at 50, 150, 350, 750?
4 years, 7 months ago (2016-05-13 19:27:50 UTC) #8
juberti2
lgtm assuming my understanding is correct
4 years, 7 months ago (2016-05-13 19:28:33 UTC) #10
juberti1
webrtc lgtm
4 years, 7 months ago (2016-05-13 19:29:08 UTC) #11
Taylor Brandstetter
On 2016/05/13 19:27:50, juberti2 wrote: > On 2016/05/13 19:26:38, Taylor Brandstetter wrote: > > Backoff ...
4 years, 7 months ago (2016-05-13 19:29:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1981463002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1981463002/20001
4 years, 7 months ago (2016-05-23 17:29:07 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_dbg on ...
4 years, 7 months ago (2016-05-23 19:29:53 UTC) #17
Taylor Brandstetter
Committed patchset #2 (id:20001) manually as 1e435628366fb9fed71632369f05928ed857d8ef (presubmit successful).
4 years, 7 months ago (2016-05-23 19:49:06 UTC) #19
philipel
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.webrtc.org/2002403002/ by philipel@webrtc.org. ...
4 years, 7 months ago (2016-05-24 08:49:30 UTC) #21
Taylor Brandstetter
Please review again. I was able to fix the flaky tests in one line of ...
4 years, 6 months ago (2016-06-15 00:04:12 UTC) #24
pthatcher1
lgtm https://codereview.webrtc.org/1981463002/diff/60001/webrtc/base/logging.cc File webrtc/base/logging.cc (right): https://codereview.webrtc.org/1981463002/diff/60001/webrtc/base/logging.cc#newcode128 webrtc/base/logging.cc:128: // in log messages represents the real system ...
4 years, 6 months ago (2016-06-15 21:20:20 UTC) #25
Taylor Brandstetter
https://codereview.webrtc.org/1981463002/diff/60001/webrtc/base/logging.cc File webrtc/base/logging.cc (right): https://codereview.webrtc.org/1981463002/diff/60001/webrtc/base/logging.cc#newcode128 webrtc/base/logging.cc:128: // in log messages represents the real system time. ...
4 years, 6 months ago (2016-06-16 00:15:05 UTC) #26
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/4f0dfbd213aaad0b8b32b0cf0101b47aea039770 Cr-Commit-Position: refs/heads/master@{#13159}
4 years, 6 months ago (2016-06-16 00:15:41 UTC) #29
Taylor Brandstetter
Committed patchset #5 (id:80001) manually as 4f0dfbd213aaad0b8b32b0cf0101b47aea039770 (presubmit successful).
4 years, 6 months ago (2016-06-16 00:15:42 UTC) #30
Taylor Brandstetter
4 years, 6 months ago (2016-06-16 00:16:52 UTC) #31
Message was sent while issue was closed.
Oops. I forgot to switch to the API for setting the time callback. I'll get it
on a new CL.

Powered by Google App Engine
This is Rietveld 408576698