Skip to content

Commit bdd2bfe

Browse files
authored
Update pseudocode
1 parent 1099e08 commit bdd2bfe

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

draft-ietf-quic-recovery.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -959,9 +959,6 @@ kInitialWindow (default 14600 bytes):
959959
: Default limit on the initial amount of outstanding data in bytes.
960960
Taken from {{?RFC6928}}.
961961

962-
kMinimumWindow (default 2 * kDefaultMss):
963-
: Default minimum congestion window.
964-
965962
kLossReductionFactor (default 0.5):
966963
: Reduction in congestion window when a new loss event is detected.
967964

@@ -975,6 +972,9 @@ sender_mss:
975972
: The sender's maximum payload size. Does not include UDP or IP
976973
overhead. Similar to SMSS defined for TCP in {{?RFC5681}}
977974

975+
minimum_window :
976+
: Minimum congestion window. Set to 2 * sender_mss.
977+
978978
bytes_in_flight:
979979
: The sum of the size in bytes of all sent packets that contain at least
980980
one retransmittable frame, and have not been acked or declared
@@ -1001,6 +1001,7 @@ variables as follows:
10011001

10021002
~~~
10031003
congestion_window = kInitialWindow
1004+
minimum_window = 2 * sender_mss
10041005
bytes_in_flight = 0
10051006
end_of_recovery = 0
10061007
ssthresh = infinite
@@ -1037,7 +1038,7 @@ acked_packet from sent_packets.
10371038
else:
10381039
// Congestion avoidance.
10391040
congestion_window +=
1040-
kDefaultMss * acked_packet.bytes / congestion_window
1041+
sender_mss * acked_packet.bytes / congestion_window
10411042
~~~
10421043

10431044
### On Packets Lost
@@ -1056,7 +1057,7 @@ are detected lost.
10561057
if (!InRecovery(largest_lost_packet.packet_number)):
10571058
end_of_recovery = largest_sent_packet
10581059
congestion_window *= kLossReductionFactor
1059-
congestion_window = max(congestion_window, kMinimumWindow)
1060+
congestion_window = max(congestion_window, minimum_window)
10601061
ssthresh = congestion_window
10611062
~~~
10621063

@@ -1067,7 +1068,7 @@ retransmission timeout has been verified.
10671068

10681069
~~~
10691070
OnRetransmissionTimeoutVerified()
1070-
congestion_window = kMinimumWindow
1071+
congestion_window = minimum_window
10711072
~~~
10721073

10731074
# IANA Considerations

0 commit comments

Comments
 (0)