FastRecoveryCwnd.seq - The ssthresh and cwnd SHOULD NOT change while in Fast Recovery
To check that while in Fast Recovery, the ssthresh and cwnd SHOULD NOT change for any destinations due to a subsequent Fast Recovery event.
./FastRecoveryCwnd.seq [-tooloption ...] -pkt ./FastRecoveryCwnd.def -tooloption : v6eval tool option See Also: ../common/STD_PKT_COMMON.def ../common/SCTP_COMMON.def
Association is established between endpoint A and B. Arrange data in endpoint B such that messages is sent to endpoint A.
Endpoint A Endpoint B ULP (ESTABLISHED) (ESTABLISHED)
<----------------- DATA 1
<----------------- DATA 2
<----------------- DATA 3
<----------------- DATA 4
<----------------- DATA 5
SACK -----------------> (From DATA 1 to DATA 5) <----------------- DATA 1
<----------------- DATA 2
<----------------- DATA 3
<----------------- DATA 4
<----------------- DATA 5
<----------------- DATA 6
SACK -----------------> (From DATA 1 to DATA 6) <----------------- DATA 1
<----------------- DATA 2
<----------------- DATA 3
<----------------- DATA 4
<----------------- DATA 5
<----------------- DATA 6
<----------------- DATA 7
SACK -----------------> (From DATA 1 to DATA 7) <----------------- DATA 1
<----------------- DATA 2
<----------------- DATA 3
<----------------- DATA 4
<----------------- DATA 5
<----------------- DATA 6
<----------------- DATA 7
<----------------- DATA 8
SACK -----------------> (From DATA 1 to DATA 8) <----------------- DATA 1
<----------------- DATA 2
<----------------- DATA 3
<----------------- DATA 4
<----------------- DATA 5
<----------------- DATA 6
<----------------- DATA 7
<----------------- DATA 9
SACK -----------------> (From DATA 1 to DATA 9) <----------------- DATA 1
<----------------- DATA 2
<----------------- DATA 3
<----------------- DATA 4
<----------------- DATA 5
<----------------- DATA 6
<----------------- DATA 7
<----------------- DATA 10
SACK -----------------> (From DATA 1 to DATA 10) <----------------- DATA 1
<----------------- DATA 2
<----------------- DATA 3
<----------------- DATA 4
<----------------- DATA 5
<----------------- DATA 6
<----------------- DATA 7
<----------------- DATA 11
SACK -----------------> (From DATA 1 to DATA 11) <----------------- DATA 1
<----------------- DATA 2
<----------------- DATA 3
<----------------- DATA 4
<----------------- DATA 5
<----------------- DATA 6
<----------------- DATA 7
<----------------- DATA 12
SACK -----------------> (From DATA 1 to DATA 12) <----------------- DATA 1
<----------------- DATA 2
<----------------- DATA 3
<----------------- DATA 4
<----------------- DATA 5
<----------------- DATA 6
<----------------- DATA 7
<----------------- DATA 12
SACK -----------------> (For DATA 1) SACK -----------------> (For DATA 1, DATA4) SACK -----------------> (For DATA 1, DATA4, DATA5) SACK -----------------> (For DATA 1, DATA4, DATA5, DATA6) <----------------- DATA 2 (Fast Retransmit) SACK -----------------> (For DATA 2, DATA4, DATA5, DATA6) <----------------- DATA 3 (Fast Recovery) SACK -----------------> (Form DATA 2 to DATA12) <----------------- DATA 13
SACK -----------------> (For DATA 13)
TEST DESCRIPTION:
1. Check A: the initial cwnd before DATA transmission is set to 4380. 2. From endpoint B, send valid DATA message 69 times to endpoint A, when there is association between them. 3. From endpoint A, receive DATA message 5 times and send SACK of the 5 DATA messages to endpoint B. 4. Check B: the initial cwnd after DATA transmission is set to 5880. 5. From endpoint A, receive DATA message 6 times and send SACK of the 6 DATA messages to endpoint B. 6. Check C: the initial cwnd after DATA transmission is set to 7380. 7. From endpoint A, receive DATA message 7 times and send SACK of the 7 DATA messages to endpoint B. 8. Check D: the initial cwnd after DATA transmission is set to 8880. 9. From endpoint A, receive DATA message 8 times and send SACK of the 8 DATA messages to endpoint B. 10.Check E: the initial cwnd after DATA transmission is set to 10380. 11.From endpoint A, receive DATA message 9 times and send SACK of the 9 DATA messages to endpoint B. 12.Check F: the initial cwnd after DATA transmission is set to 11880. 13.From endpoint A, receive DATA message 10 times and send SACK of the 10 DATA messages to endpoint B. 14.Check G: the initial cwnd after DATA transmission is set to 13380. 15.From endpoint A, receive DATA message 11 times and send SACK of the 11 DATA messages to endpoint B. 16.Check H: the initial cwnd after DATA transmission is set to 14880. 17.From endpoint A, receive DATA message 12 times. 18.From endpoint A, send SACK of the 1st DATA message to endpoint B. 19.From endpoint A, send SACK of the 1st, 4th DATA messages to endpoint B, report the 2nd and 3rd messages are missing. 20.From endpoint A, send SACK of the 1st, 4th and 5th DATA messages to endpoint B, report the 2nd and 3rd messages are missing. 21.From endpoint A, send SACK of the 1st, 4th to 6th DATA messages to endpoint B, report the 2nd and 3rd messages are missing. 22.The 2nd DATA messages is send again immediately. 23.Check H: the initial cwnd after DATA transmission is set to 7440. 24.From endpoint A, send SACK of the 2nd, 4th to 6th DATA messages to endpoint B, report the 3rd message is missing. 25.The 3rd DATA messages is send again immediately. 26.Check I: the initial cwnd SHOULD NOT change. 27.From endpoint A, send SACK of all the received DATA messages.
None
RFC 4960
7.2.4. Fast Retransmit on Gap Reports
When the third consecutive miss indication is received for a TSN(s), the data sender shall do the following:
1) Mark the DATA chunk(s) with three miss indications for retransmission.
2) If not in Fast Recovery, adjust the ssthresh and cwnd of the destination address(es) to which the missing DATA chunks were last sent, according to the formula described in Section 7.2.3.
3) Determine how many of the earliest (i.e., lowest TSN) DATA chunks marked for retransmission will fit into a single packet, subject to constraint of the path MTU of the destination transport address to which the packet is being sent. Call this value K. Retransmit those K DATA chunks in a single packet. When a Fast Retransmit is being performed, the sender SHOULD ignore the value of cwnd and SHOULD NOT delay retransmission for this single packet.
4) Restart the T3-rtx timer only if the last SACK acknowledged the lowest outstanding TSN number sent to that address, or the endpoint is retransmitting the first outstanding DATA chunk sent to that address.
5) Mark the DATA chunk(s) as being fast retransmitted and thus ineligible for a subsequent Fast Retransmit. Those TSNs marked for retransmission due to the Fast-Retransmit algorithm that did not fit in the sent datagram carrying K other TSNs are also marked as ineligible for a subsequent Fast Retransmit. However, as they are marked for retransmission they will be retransmitted later on as soon as cwnd allows.
6) If not in Fast Recovery, enter Fast Recovery and mark the highest outstanding TSN as the Fast Recovery exit point. When a SACK acknowledges all TSNs up to and including this exit point, Fast Recovery is exited. While in Fast Recovery, the ssthresh and cwnd SHOULD NOT change for any destinations due to a subsequent Fast Recovery event (i.e., one SHOULD NOT reduce the cwnd further due to a subsequent Fast Retransmit).
Note: Before the above adjustments, if the received SACK also acknowledges new DATA chunks and advances the Cumulative TSN Ack Point, the cwnd adjustment rules defined in Section 7.2.1 and Section 7.2.2 must be applied first.
A straightforward implementation of the above keeps a counter for each TSN hole reported by a SACK. The counter increments for each consecutive SACK reporting the TSN hole. After reaching 3 and starting the Fast-Retransmit procedure, the counter resets to 0.