From e41defb7113eac41aa02ef6119690f595c1bd463 Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Wed, 12 Dec 2018 22:12:30 -0800 Subject: [PATCH] Process ECN before forgetting newly acked packets --- draft-ietf-quic-recovery.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/draft-ietf-quic-recovery.md b/draft-ietf-quic-recovery.md index 14c4df441c..dfc6cae97c 100644 --- a/draft-ietf-quic-recovery.md +++ b/draft-ietf-quic-recovery.md @@ -723,6 +723,10 @@ Pseudocode for OnAckReceived and UpdateRtt follow: latest_rtt = now - sent_packets[ack.largest_acked].time UpdateRtt(latest_rtt, ack.ack_delay) + // Process ECN information if present. + if (ACK frame contains ECN information): + ProcessECN(ack) + // Find all newly acked packets in this ACK frame newly_acked_packets = DetermineNewlyAckedPackets(ack) for acked_packet in newly_acked_packets: @@ -744,10 +748,6 @@ Pseudocode for OnAckReceived and UpdateRtt follow: DetectLostPackets(ack.acked_packet) SetLossDetectionTimer() - // Process ECN information if present. - if (ACK frame contains ECN information): - ProcessECN(ack) - UpdateRtt(latest_rtt, ack_delay): // min_rtt ignores ack delay.