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

Define largest_sent_packet and largest_acked_packet #646

Merged
merged 1 commit into from
Jun 21, 2017
Merged
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
11 changes: 10 additions & 1 deletion draft-ietf-quic-recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,12 @@ largest_sent_before_rto:
time_of_last_sent_packet:
: The time the most recent packet was sent.

largest_sent_packet:
: The packet number of the most recently sent packet.

largest_acked_packet:
: The largest packet number acknowledged in an ack frame.

latest_rtt:
: The most recent RTT measurement made when receiving an ack for
a previously unacked packet.
Expand Down Expand Up @@ -309,6 +315,7 @@ follows:
rttvar = 0
largest_sent_before_rto = 0
time_of_last_sent_packet = 0
largest_sent_packet = 0
~~~

### On Sending a Packet
Expand All @@ -331,7 +338,8 @@ Pseudocode for OnPacketSent follows:

~~~
OnPacketSent(packet_number, is_retransmittable, sent_bytes):
time_of_last_sent_packet = now;
time_of_last_sent_packet = now
largest_sent_packet = packet_number
sent_packets[packet_number].packet_number = packet_number
sent_packets[packet_number].time = now
if is_retransmittable:
Expand All @@ -347,6 +355,7 @@ 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]):
latest_rtt = now - sent_packets[ack.largest_acked].time
Expand Down