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

Issue 1763823003: rtt calculation handles time go backwards (Closed)

Created:
4 years, 9 months ago by danilchap
Modified:
4 years, 9 months ago
CC:
tterriberry_mozilla.com, zhuangzesen_agora.io, stefan-webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

rtt calculation handles time go backwards CompactNtpIntervalToMs renamed to CompactNtpRttToMs and handle special cases: large values consider negative/invalid and result in value of 1. 0 result consider too small and increases to 1. BUG=590996 R=asapersson@webrtc.org, stefan@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/c1e55c7136ceaf348d4975df7ac92b480c9f7b6d

Patch Set 1 #

Total comments: 4

Patch Set 2 : Comments added #

Total comments: 7

Patch Set 3 : #

Patch Set 4 : #

Total comments: 11

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -36 lines) Patch
M webrtc/modules/rtp_rtcp/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/rtp_rtcp.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_receiver.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc View 1 2 3 4 7 chunks +19 lines, -10 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc View 1 2 3 4 chunks +71 lines, -7 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/rtp_rtcp/source/time_util.h View 1 1 chunk +3 lines, -5 lines 0 comments Download
A webrtc/modules/rtp_rtcp/source/time_util.cc View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/time_util_unittest.cc View 1 2 2 chunks +24 lines, -13 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
danilchap
Alternative (to https://codereview.webrtc.org/1761483003/), way to mitigate ntp clock go backward issue when caclulating rtt. Larger ...
4 years, 9 months ago (2016-03-04 13:30:42 UTC) #1
stefan-webrtc
Åsa, can you help review the details of this since you have done some rtt ...
4 years, 9 months ago (2016-03-04 14:07:34 UTC) #3
danilchap
https://codereview.webrtc.org/1763823003/diff/1/webrtc/modules/rtp_rtcp/source/time_util.cc File webrtc/modules/rtp_rtcp/source/time_util.cc (right): https://codereview.webrtc.org/1763823003/diff/1/webrtc/modules/rtp_rtcp/source/time_util.cc#newcode27 webrtc/modules/rtp_rtcp/source/time_util.cc:27: value = DivideRoundToNearest(value * 1000, 1 << 16); On ...
4 years, 9 months ago (2016-03-04 15:05:50 UTC) #4
åsapersson
https://codereview.webrtc.org/1763823003/diff/20001/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc File webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc (right): https://codereview.webrtc.org/1763823003/diff/20001/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc#newcode532 webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc:532: rtt = CompactNtpRttToMs(rtt_ntp); I think this will now also ...
4 years, 9 months ago (2016-03-08 12:59:44 UTC) #5
danilchap
I'm not sure I understood the issue with CallStats. Did CallStats got non-zero rtt in ...
4 years, 9 months ago (2016-03-08 15:02:02 UTC) #6
åsapersson
https://codereview.webrtc.org/1763823003/diff/20001/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc File webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc (right): https://codereview.webrtc.org/1763823003/diff/20001/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc#newcode532 webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc:532: rtt = CompactNtpRttToMs(rtt_ntp); On 2016/03/08 15:02:02, danilchap wrote: > ...
4 years, 9 months ago (2016-03-08 15:22:30 UTC) #7
danilchap
On 2016/03/08 15:22:30, åsapersson wrote: > https://codereview.webrtc.org/1763823003/diff/20001/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc > File webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc (right): > > https://codereview.webrtc.org/1763823003/diff/20001/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc#newcode532 > ...
4 years, 9 months ago (2016-03-08 16:16:08 UTC) #8
åsapersson
https://codereview.webrtc.org/1763823003/diff/60001/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc File webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc (right): https://codereview.webrtc.org/1763823003/diff/60001/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc#newcode193 webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc:193: void RTCPReceiver::SetRtcpXrRrtrStatus(bool enable) { should xr_rrtr_status_ be GUARDED_BY(_criticalSectionRTCPReceiver)? https://codereview.webrtc.org/1763823003/diff/60001/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc#newcode486 ...
4 years, 9 months ago (2016-03-09 09:00:14 UTC) #9
danilchap
https://codereview.webrtc.org/1763823003/diff/60001/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc File webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc (right): https://codereview.webrtc.org/1763823003/diff/60001/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc#newcode193 webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc:193: void RTCPReceiver::SetRtcpXrRrtrStatus(bool enable) { On 2016/03/09 09:00:13, åsapersson wrote: ...
4 years, 9 months ago (2016-03-09 09:52:53 UTC) #10
åsapersson
lgtm https://codereview.webrtc.org/1763823003/diff/60001/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc File webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc (right): https://codereview.webrtc.org/1763823003/diff/60001/webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc#newcode486 webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc:486: On 2016/03/09 09:52:53, danilchap wrote: > On 2016/03/09 ...
4 years, 9 months ago (2016-03-09 10:06:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1763823003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1763823003/80001
4 years, 9 months ago (2016-03-09 11:05:46 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_baremetal on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_baremetal/builds/9576)
4 years, 9 months ago (2016-03-09 12:41:37 UTC) #17
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/c1e55c7136ceaf348d4975df7ac92b480c9f7b6d Cr-Commit-Position: refs/heads/master@{#11928}
4 years, 9 months ago (2016-03-09 14:14:52 UTC) #20
danilchap
4 years, 9 months ago (2016-03-09 14:14:52 UTC) #21
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
c1e55c7136ceaf348d4975df7ac92b480c9f7b6d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698