Skip to content

Commit

Permalink
Script updating gh-pages from 4b07e21. [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
ID Bot committed Apr 13, 2019
1 parent 38151e8 commit cdba630
Show file tree
Hide file tree
Showing 3 changed files with 1,307 additions and 1,305 deletions.
22 changes: 12 additions & 10 deletions draft-ietf-quic-recovery.html
Expand Up @@ -1252,22 +1252,24 @@ <h2 id="rfc.appendix.A.6">


UpdateRtt(latest_rtt, ack_delay):
if (smoothed_rtt == 0):
// First RTT sample.
min_rtt = latest_rtt
smoothed_rtt = latest_rtt
rttvar = latest_rtt / 2
return

// min_rtt ignores ack delay.
min_rtt = min(min_rtt, latest_rtt)
// Limit ack_delay by max_ack_delay
ack_delay = min(ack_delay, max_ack_delay)
// Adjust for ack delay if it's plausible.
// Adjust for ack delay if plausible.
adjusted_rtt = latest_rtt
if (latest_rtt - min_rtt &gt; ack_delay):
if (latest_rtt &gt; min_rtt + ack_delay):
adjusted_rtt = latest_rtt - ack_delay
// First RTT sample.
if (smoothed_rtt == 0):
smoothed_rtt = latest_rtt
rttvar = latest_rtt / 2
else:
rttvar_sample = abs(smoothed_rtt - adjusted_rtt)
rttvar = 3/4 * rttvar + 1/4 * rttvar_sample
smoothed_rtt = 7/8 * smoothed_rtt + 1/8 * adjusted_rtt

rttvar = 3/4 * rttvar + 1/4 * abs(smoothed_rtt - adjusted_rtt)
smoothed_rtt = 7/8 * smoothed_rtt + 1/8 * adjusted_rtt
</pre>
<h2 id="rfc.appendix.A.7">
<a href="#rfc.appendix.A.7">A.7.</a> <a href="#on-packet-acknowledgment" id="on-packet-acknowledgment">On Packet Acknowledgment</a>
Expand Down
24 changes: 12 additions & 12 deletions draft-ietf-quic-recovery.txt
Expand Up @@ -1523,22 +1523,24 @@ Internet-Draft QUIC Loss Detection April 2019


UpdateRtt(latest_rtt, ack_delay):
if (smoothed_rtt == 0):
// First RTT sample.
min_rtt = latest_rtt
smoothed_rtt = latest_rtt
rttvar = latest_rtt / 2
return

// min_rtt ignores ack delay.
min_rtt = min(min_rtt, latest_rtt)
// Limit ack_delay by max_ack_delay
ack_delay = min(ack_delay, max_ack_delay)
// Adjust for ack delay if it's plausible.
// Adjust for ack delay if plausible.
adjusted_rtt = latest_rtt
if (latest_rtt - min_rtt > ack_delay):
if (latest_rtt > min_rtt + ack_delay):
adjusted_rtt = latest_rtt - ack_delay
// First RTT sample.
if (smoothed_rtt == 0):
smoothed_rtt = latest_rtt
rttvar = latest_rtt / 2
else:
rttvar_sample = abs(smoothed_rtt - adjusted_rtt)
rttvar = 3/4 * rttvar + 1/4 * rttvar_sample
smoothed_rtt = 7/8 * smoothed_rtt + 1/8 * adjusted_rtt

rttvar = 3/4 * rttvar + 1/4 * abs(smoothed_rtt - adjusted_rtt)
smoothed_rtt = 7/8 * smoothed_rtt + 1/8 * adjusted_rtt

A.7. On Packet Acknowledgment

Expand All @@ -1563,8 +1565,6 @@ A.7. On Packet Acknowledgment





Iyengar & Swett Expires October 15, 2019 [Page 28]

Internet-Draft QUIC Loss Detection April 2019
Expand Down

0 comments on commit cdba630

Please sign in to comment.