Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't update RTT for ack-only packets #984

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions draft-ietf-quic-recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -577,15 +577,23 @@ Pseudocode for OnPacketSent follows:

### On Ack Receipt

When an ack is received, it may acknowledge 0 or more packets.
When an acknowledgment is received, it may acknowledge 0 or more packets.

The first acknowledgment received for the largest acknowledged packet is used to
update the estimate of minimum and smoothed RTT. However, if the largest
acknowledged packet would not have caused an acknowledgment to be sent, RTT
estimates MUST NOT be updated, because the acknowledgment could be significantly
delayed.

Pseudocode for OnAckReceived and UpdateRtt follow:

~~~
OnAckReceived(ack):
largest_acked_packet = ack.largest_acked
// If the largest acked is newly acked, update the RTT.
if (sent_packets[ack.largest_acked]):
// If the largest acked is newly acked and is a packet
// that would normally cause an ack, update the RTT.
if (sent_packets[ack.largest_acked] and
is_ackable(sent_packets[ack.largest_acked])):
latest_rtt = now - sent_packets[ack.largest_acked].time
UpdateRtt(latest_rtt, ack.ack_delay)
// Find all newly acked packets.
Expand Down