1// SPDX-License-Identifier: GPL-2.0 2// Test PRR-slowstart implementation. The sender sends 20 packets. Packet 3// 1 to 4 are lost. The sender writes another 10 packets. 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// Send 20 data segments. 19 +0 write(4, ..., 10000) = 10000 20 +0 > P. 1:10001(10000) ack 1 21 22// Lost packet 1,2,3,4 23 +.01 < . 1:1(0) ack 1 win 320 <sack 4001:5001,nop,nop> 24+.002 < . 1:1(0) ack 1 win 320 <sack 4001:6001,nop,nop> 25 +0 < . 1:1(0) ack 1 win 320 <sack 4001:7001,nop,nop> 26 +0 > . 1:1001(1000) ack 1 27 +0 < . 1:1(0) ack 1 win 320 <sack 4001:8001,nop,nop> 28 +0 > . 1001:2001(1000) ack 1 29 +0 < . 1:1(0) ack 1 win 320 <sack 4001:9001,nop,nop> 30 +0 > . 2001:3001(1000) ack 1 31 +0 < . 1:1(0) ack 1 win 320 <sack 4001:10001,nop,nop> 32 +0 > . 3001:4001(1000) ack 1 33 34// Receiver ACKs all data. 35 +.01 < . 1:1(0) ack 1001 win 320 <sack 4001:10001,nop,nop> 36 +0 < . 1:1(0) ack 2001 win 320 <sack 4001:10001,nop,nop> 37 +0 < . 1:1(0) ack 3001 win 320 <sack 4001:10001,nop,nop> 38 +0 < . 1:1(0) ack 10001 win 320 39 40// Writes another 10 packets, which the ssthresh*mss amount 41// should be sent right away 42 +.01 write(4, ..., 10000) = 10000 43 +0 > . 10001:17001(7000) ack 1 44