xref: /linux/tools/testing/selftests/net/packetdrill/tcp_fast_recovery_prr-ss-30pkt-lost-1_4-11_16.pkt (revision 0ad9617c78acbc71373fb341a6f75d4012b01d69)
1// SPDX-License-Identifier: GPL-2.0
2// Test PRR-slowstart implementation. The sender sends 20 packets. Packet
3// 1 to 4, and 11 to 16 are dropped.
4`./defaults.sh`
5
6// Establish a connection.
7    0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
8   +0 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
9   +0 bind(3, ..., ...) = 0
10   +0 listen(3, 1) = 0
11
12   +0 < S 0:0(0) win 32792 <mss 1000,sackOK,nop,nop,nop,wscale 7>
13   +0 > S. 0:0(0) ack 1 <mss 1460,nop,nop,sackOK,nop,wscale 8>
14
15 +.01 < . 1:1(0) ack 1 win 320
16   +0 accept(3, ..., ...) = 4
17
18// Write 20 data segments.
19   +0 write(4, ..., 20000) = 20000
20   +0 > P. 1:10001(10000) ack 1
21
22// Receive first DUPACK, entering PRR part
23 +.01 < . 1:1(0) ack 1 win 320 <sack 4001:5001,nop,nop>
24   +0 > . 10001:11001(1000) ack 1
25+.002 < . 1:1(0) ack 1 win 320 <sack 4001:6001,nop,nop>
26   +0 > . 11001:12001(1000) ack 1
27+.002 < . 1:1(0) ack 1 win 320 <sack 4001:7001,nop,nop>
28   +0 > . 1:1001(1000) ack 1
29+.002 < . 1:1(0) ack 1 win 320 <sack 4001:8001,nop,nop>
30   +0 > . 1001:2001(1000) ack 1
31+.002 < . 1:1(0) ack 1 win 320 <sack 4001:9001,nop,nop>
32   +0 > . 2001:3001(1000) ack 1
33+.002 < . 1:1(0) ack 1 win 320 <sack 4001:10001,nop,nop>
34   +0 > . 3001:4001(1000) ack 1
35// Enter PRR CRB
36+.002 < . 1:1(0) ack 1 win 320 <sack 4001:11001,nop,nop>
37   +0 > . 12001:13001(1000) ack 1
38+.002 < . 1:1(0) ack 1 win 320 <sack 4001:12001,nop,nop>
39   +0 > . 13001:14001(1000) ack 1
40// Enter PRR slow start
41 +.01 < . 1:1(0) ack 1001 win 320 <sack 4001:12001,nop,nop>
42   +0 > P. 14001:16001(2000) ack 1
43+.002 < . 1:1(0) ack 1001 win 320 <sack 2001:12001,nop,nop>
44   +0 > . 1001:2001(1000) ack 1
45   +0 > . 16001:17001(1000) ack 1
46// inflight reaches ssthresh, goes into packet conservation mode
47+.002 < . 1:1(0) ack 1001 win 320 <sack 2001:13001,nop,nop>
48   +0 > . 17001:18001(1000) ack 1
49+.002 < . 1:1(0) ack 1001 win 320 <sack 2001:14001,nop,nop>
50   +0 > . 18001:19001(1000) ack 1
51