Skip to content

Commit

Permalink
Add skipped packets detection to the OnAckReceived pseudocode (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-clemente authored and ianswett committed Mar 27, 2017
1 parent a1a885f commit a02b539
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions draft-ietf-quic-recovery.md
Expand Up @@ -337,6 +337,9 @@ Pseudocode for OnPacketSent follows:

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

The sender MUST abort the connection if it receives an ACK for a packet it
never sent, see {{QUIC-TRANSPORT}}.

Pseudocode for OnAckReceived and UpdateRtt follow:

~~~
Expand All @@ -347,6 +350,9 @@ Pseudocode for OnAckReceived and UpdateRtt follow:
if (rtt_sample > ack.ack_delay):
rtt_sample -= ack.delay
UpdateRtt(rtt_sample)
// The sender may skip packets for detecting optimistic ACKs
if (packets acked that the sender skipped):
abortConnection()
// Find all newly acked packets.
for acked_packet in DetermineNewlyAckedPackets():
OnPacketAcked(acked_packet.packet_number)
Expand Down

0 comments on commit a02b539

Please sign in to comment.