8000 Make more tests stack agnostic and improve consistentcy. · freebsd-net/tcp-testsuite@e525ee6 · GitHub
[go: up one dir, main page]

Skip to content

Commit e525ee6

Browse files
committed
Make more tests stack agnostic and improve consistentcy.
1 parent e1bbf73 commit e525ee6

10 files changed

+123
-135
lines changed

snd-syn/snd-syn-with-ecn-alt-maxretries-ipv4.pkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@
5555
+1.00 > S 0:0(0) win 65535 <mss 1460,nop,wscale 6,sackOK,TS val 1100 ecr 0>
5656
+2.20 > S 0:0(0) win 65535 <mss 1460,nop,wscale 6,sackOK,TS val 3300 ecr 0>
5757
// Finally cleanup
58-
5.00 `sysctl -w net.inet.tcp.ecn.enable=2`
58+
7.00 close(3) = 0
59+
+0.00 `sysctl -w net.inet.tcp.ecn.enable=2`
5960
+0.00 `sysctl -w net.inet.tcp.ecn.maxretries=1`
60-
+0.00 close(3) = 0

snd-syn/snd-syn-with-ecn-alt-maxretries-ipv6.pkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@
5555
+1.00 > S 0:0(0) win 65535 <mss 1440,nop,wscale 6,sackOK,TS val 1100 ecr 0>
5656
+2.20 > S 0:0(0) win 65535 <mss 1440,nop,wscale 6,sackOK,TS val 3300 ecr 0>
5757
// Finally cleanup
58-
6.00 `sysctl -w net.inet.tcp.ecn.enable=2`
58+
7.00 close(3) = 0
59+
+0.00 `sysctl -w net.inet.tcp.ecn.enable=2`
5960
+0.00 `sysctl -w net.inet.tcp.ecn.maxretries=1`
60-
+0.00 close(3) = 0

snd-syn/snd-syn-with-ecn-ipv4.pkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@
5454
+1.00 > SEW 0:0(0) win 65535 <mss 1460,nop,wscale 6,sackOK,TS val 1100 ecr 0>
5555
+2.20 > S 0:0(0) win 65535 <mss 1460,nop,wscale 6,sackOK,TS val 3300 ecr 0>
5656
// Finally cleanup
57-
6.00 `sysctl -w net.inet.tcp.ecn.enable=2`
58-
+0.00 close(3) = 0
57+
7.00 close(3) = 0
58+
+0.00 `sysctl -w net.inet.tcp.ecn.enable=2`

snd-syn/snd-syn-with-ecn-ipv6.pkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@
5454
+1.00 > SEW 0:0(0) win 65535 <mss 1440,nop,wscale 6,sackOK,TS val 1100 ecr 0>
5555
+2.20 > S 0:0(0) win 65535 <mss 1440,nop,wscale 6,sackOK,TS val 3300 ecr 0>
5656
// Finally cleanup
57-
6.00 `sysctl -w net.inet.tcp.ecn.enable=2`
58-
+0.00 close(3) = 0
57+
7.00 close(3) = 0
58+
+0.00 `sysctl -w net.inet.tcp.ecn.enable=2`

snd-syn/snd-syn-with-max-ws-ipv4.pkt

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,32 +28,30 @@
2828
// with the maximum WS value.
2929

3030
--ip_version=ipv4
31-
--tolerance_usecs=200000
31+
--tolerance_usecs=150000
3232

3333
// Ensure that all relevant sysctl variables have their default variables.
34-
0.00 `sysctl -w net.inet.tcp.rfc1323=1`
35-
+ 0.00 `sysctl -w net.inet.tcp.sack.enable=1`
36-
+ 0.00 `sysctl -w net.inet.tcp.ecn.enable=2`
37-
+ 0.00 `sysctl -w net.inet.tcp.rexmit_initial=1000`
38-
+ 0.00 `sysctl -w net.inet.tcp.rexmit_slop=200`
39-
+ 0.00 `sysctl -w net.inet.tcp.rexmit_drop_options=0`
40-
+ 0.00 `sysctl -w kern.ipc.maxsockbuf=2097152`
41-
+ 0.00 `sysctl -w net.inet.tcp.recvspace=65536`
34+
0.00 `sysctl -w net.inet.tcp.rfc1323=1`
35+
+0.00 `sysctl -w net.inet.tcp.sack.enable=1`
36+
+0.00 `sysctl -w net.inet.tcp.ecn.enable=2`
37+
+0.00 `sysctl -w net.inet.tcp.rexmit_initial=1000`
38+
+0.00 `sysctl -w net.inet.tcp.rexmit_slop=200`
39+
+0.00 `sysctl -w net.inet.tcp.rexmit_drop_options=0`
40+
+0.00 `sysctl -w kern.ipc.maxsockbuf=2097152`
41+
+0.00 `sysctl -w net.inet.tcp.recvspace=65536`
4242
// Flush host cache.
43-
+ 0.00 `sysctl -w net.inet.tcp.hostcache.purgenow=1`
43+
+0.00 `sysctl -w net.inet.tcp.hostcache.purgenow=1`
4444
// Ensure that the relevant sysctl variables have their value.
45-
+ 0.00 `sysctl -w kern.ipc.maxsockbuf=4294967295`
45+
+0.00 `sysctl -w kern.ipc.maxsockbuf=4294967295`
4646
// Create a blocking TCP/IPv4 socket
47-
+ 0.00 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
48-
// Limit the retransmissions of the SYN segment to 17 seconds.
49-
+ 0.00 setsockopt(3, IPPROTO_TCP, TCP_KEEPINIT, [17], 4) = 0
47+
+0.00 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
48+
// Limit the retransmissions of the SYN segment to 5 seconds.
49+
+0.00 setsockopt(3, IPPROTO_TCP, TCP_KEEPINIT, [5], 4) = 0
5050
// Try to establish a TCP connection.
51-
1.00...18.00 connect(3, ..., ...) = -1 ETIMEDOUT (Operation timed out)
52-
+ 0.00 > S 0:0(0) win 65535 <mss 1460,nop,wscale 14,sackOK,TS val 100 ecr 0>
51+
1.00...6.00 connect(3, ..., ...) = -1 ETIMEDOUT (Operation timed out)
52+
+ 0.00 > S 0:0(0) win 65535 <mss 1460,nop,wscale 14,sackOK,TS val 100 ecr 0>
5353
+ 1.00 > S 0:0(0) win 65535 <mss 1460,nop,wscale 14,sackOK,TS val 1100 ecr 0>
5454
+ 2.20 > S 0:0(0) win 65535 <mss 1460,nop,wscale 14,sackOK,TS val 3300 ecr 0>
55-
+ 4.20 > S 0:0(0) win 65535 <mss 1460,nop,wscale 14,sackOK,TS val 7500 ecr 0>
56-
+ 8.20 > S 0:0(0) win 65535 <mss 1460,nop,wscale 14,sackOK,TS val 15700 ecr 0>
5755
// Finally cleanup
58-
19.00 `sysctl -w kern.ipc.maxsockbuf=2097152`
59-
+ 0.00 close(3) = 0
56+
7.00 close(3) = 0
57+
+0.00 `sysctl -w kern.ipc.maxsockbuf=2097152`

snd-syn/snd-syn-with-max-ws-ipv6.pkt

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,27 @@
3131
--tolerance_usecs=200000
3232

3333
// Ensure that all relevant sysctl variables have their default variables.
34-
0.00 `sysctl -w net.inet.tcp.rfc1323=1`
35-
+ 0.00 `sysctl -w net.inet.tcp.sack.enable=1`
36-
+ 0.00 `sysctl -w net.inet.tcp.ecn.enable=2`
37-
+ 0.00 `sysctl -w net.inet.tcp.rexmit_initial=1000`
38-
+ 0.00 `sysctl -w net.inet.tcp.rexmit_slop=200`
39-
+ 0.00 `sysctl -w net.inet.tcp.rexmit_drop_options=0`
40-
+ 0.00 `sysctl -w kern.ipc.maxsockbuf=2097152`
41-
+ 0.00 `sysctl -w net.inet.tcp.recvspace=65536`
34+
0.00 `sysctl -w net.inet.tcp.rfc1323=1`
35+
+0.00 `sysctl -w net.inet.tcp.sack.enable=1`
36+
+0.00 `sysctl -w net.inet.tcp.ecn.enable=2`
37+
+0.00 `sysctl -w net.inet.tcp.rexmit_initial=1000`
38+
+0.00 `sysctl -w net.inet.tcp.rexmit_slop=200`
39+
+0.00 `sysctl -w net.inet.tcp.rexmit_drop_options=0`
40+
+0.00 `sysctl -w kern.ipc.maxsockbuf=2097152`
41+
+0.00 `sysctl -w net.inet.tcp.recvspace=65536`
4242
// Flush host cache.
43-
+ 0.00 `sysctl -w net.inet.tcp.hostcache.purgenow=1`
43+
+0.00 `sysctl -w net.inet.tcp.hostcache.purgenow=1`
4444
// Ensure that the relevant sysctl variables have their value.
45-
+ 0.00 `sysctl -w kern.ipc.maxsockbuf=4294967295`
45+
+0.00 `sysctl -w kern.ipc.maxsockbuf=4294967295`
4646
// Create a blocking TCP/IPv4 socket
47-
+ 0.00 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
48-
// Limit the retransmissions of the SYN segment to 17 seconds.
49-
+ 0.00 setsockopt(3, IPPROTO_TCP, TCP_KEEPINIT, [17], 4) = 0
47+
+0.00 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
48+
// Limit the retransmissions of the SYN segment to 5 seconds.
49+
+0.00 setsockopt(3, IPPROTO_TCP, TCP_KEEPINIT, [5], 4) = 0
5050
// Try to establish a TCP connection.
51-
1.00...18.00 connect(3, ..., ...) = -1 ETIMEDOUT (Operation timed out)
52-
+ 0.00 > S 0:0(0) win 65535 <mss 1440,nop,wscale 14,sackOK,TS val 100 ecr 0>
53-
+ 1.00 > S 0:0(0) win 65535 <mss 1440,nop,wscale 14,sackOK,TS val 1100 ecr 0>
54-
+ 2.20 > S 0:0(0) win 65535 <mss 1440,nop,wscale 14,sackOK,TS val 3300 ecr 0>
55-
+ 4.20 > S 0:0(0) win 65535 <mss 1440,nop,wscale 14,sackOK,TS val 7500 ecr 0>
56-
+ 8.20 > S 0:0(0) win 65535 <mss 1440,nop,wscale 14,sackOK,TS val 15700 ecr 0>
51+
1.00...6.00 connect(3, ..., ...) = -1 ETIMEDOUT (Operation timed out)
52+
+0.00 > S 0:0(0) win 65535 <mss 1440,nop,wscale 14,sackOK,TS val 100 ecr 0>
53+
+1.00 > S 0:0(0) win 65535 <mss 1440,nop,wscale 14,sackOK,TS val 1100 ecr 0>
54+
+2.20 > S 0:0(0) win 65535 <mss 1440,nop,wscale 14,sackOK,TS val 3300 ecr 0>
5755
// Finally cleanup
58-
19.00 `sysctl -w kern.ipc.maxsockbuf=2097152`
59-
+ 0.00 close(3) = 0
56+
7.00 close(3) = 0
57+
+0.00 `sysctl -w kern.ipc.maxsockbuf=2097152`

snd-syn/snd-syn-with-min-ws-ipv4.pkt

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,32 +28,30 @@
2828
// with the minimum WS value.
2929

3030
--ip_version=ipv4
31-
--tolerance_usecs=200000
31+
--tolerance_usecs=150000
3232

3333
// Ensure that all relevant sysctl variables have their default variables.
34-
0.00 `sysctl -w net.inet.tcp.rfc1323=1`
35-
+ 0.00 `sysctl -w net.inet.tcp.sack.enable=1`
36-
+ 0.00 `sysctl -w net.inet.tcp.ecn.enable=2`
37-
+ 0.00 `sysctl -w net.inet.tcp.rexmit_initial=1000`
38-
+ 0.00 `sysctl -w net.inet.tcp.rexmit_slop=200`
39-
+ 0.00 `sysctl -w net.inet.tcp.rexmit_drop_options=0`
40-
+ 0.00 `sysctl -w kern.ipc.maxsockbuf=2097152`
41-
+ 0.00 `sysctl -w net.inet.tcp.recvspace=65536`
34+
0.00 `sysctl -w net.inet.tcp.rfc1323=1`
35+
+0.00 `sysctl -w net.inet.tcp.sack.enable=1`
36+
+0.00 `sysctl -w net.inet.tcp.ecn.enable=2`
37+
+0.00 `sysctl -w net.inet.tcp.rexmit_initial=1000`
38+
+0.00 `sysctl -w net.inet.tcp.rexmit_slop=200`
39+
+0.00 `sysctl -w net.inet.tcp.rexmit_drop_options=0`
40+
+0.00 `sysctl -w kern.ipc.maxsockbuf=2097152`
41+
+0.00 `sysctl -w net.inet.tcp.recvspace=65536`
4242
// Flush host cache.
43-
+ 0.00 `sysctl -w net.inet.tcp.hostcache.purgenow=1`
43+
+0.00 `sysctl -w net.inet.tcp.hostcache.purgenow=1`
4444
// Ensure that the relevant sysctl variables have their value.
45-
+ 0.00 `sysctl -w kern.ipc.maxsockbuf=73728`
45+
+0.00 `sysctl -w kern.ipc.maxsockbuf=73728`
4646
// Create a blocking TCP/IPv4 socket
47-
+ 0.00 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
48-
// Limit the retransmissions of the SYN segment to 17 seconds.
49-
+ 0.00 setsockopt(3, IPPROTO_TCP, TCP_KEEPINIT, [17], 4) = 0
47+
+0.00 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
48+
// Limit the retransmissions of the SYN segment to 5 seconds.
49+
+0.00 setsockopt(3, IPPROTO_TCP, TCP_KEEPINIT, [5], 4) = 0
5050
// Try to establish a TCP connection.
51-
1.00...18.00 connect(3, ..., ...) = -1 ETIMEDOUT (Operation timed out)
52-
+ 0.00 > S 0:0(0) win 65535 <mss 1460,nop,wscale 1,sackOK,TS val 100 ecr 0>
53-
+ 1.00 > S 0:0(0) win 65535 <mss 1460,nop,wscale 1,sackOK,TS val 1100 ecr 0>
54-
+ 2.20 > S 0:0(0) win 65535 <mss 1460,nop,wscale 1,sackOK,TS val 3300 ecr 0>
55-
+ 4.20 > S 0:0(0) win 65535 <mss 1460,nop,wscale 1,sackOK,TS val 7500 ecr 0>
56-
+ 8.20 > S 0:0(0) win 65535 <mss 1460,nop,wscale 1,sackOK,TS val 15700 ecr 0>
51+
1.00...6.00 connect(3, ..., ...) = -1 ETIMEDOUT (Operation timed out)
52+
+0.00 > S 0:0(0) win 65535 <mss 1460,nop,wscale 1,sackOK,TS val 100 ecr 0>
53+
+1.00 > S 0:0(0) win 65535 <mss 1460,nop,wscale 1,sackOK,TS val 1100 ecr 0>
54+
+2.20 > S 0:0(0) win 65535 <mss 1460,nop,wscale 1,sackOK,TS val 3300 ecr 0>
5755
// Finally cleanup
58-
19.00 `sysctl -w kern.ipc.maxsockbuf=2097152`
59-
+ 0.00 close(3) = 0
56+
7.00 close(3) = 0
57+
+0.00 `sysctl -w kern.ipc.maxsockbuf=2097152`

snd-syn/snd-syn-with-min-ws-ipv6.pkt

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,32 +28,30 @@
2828
// with the minimum WS value.
2929

3030
--ip_version=ipv6
31-
--tolerance_usecs=200000
31+
--tolerance_usecs=150000
3232

3333
// Ensure that all relevant sysctl variables have their default variables.
34-
0.00 `sysctl -w net.inet.tcp.rfc1323=1`
35-
+ 0.00 `sysctl -w net.inet.tcp.sack.enable=1`
36-
+ 0.00 `sysctl -w net.inet.tcp.ecn.enable=2`
37-
+ 0.00 `sysctl -w net.inet.tcp.rexmit_initial=1000`
38-
+ 0.00 `sysctl -w net.inet.tcp.rexmit_slop=200`
39-
+ 0.00 `sysctl -w net.inet.tcp.rexmit_drop_options=0`
40-
+ 0.00 `sysctl -w kern.ipc.maxsockbuf=2097152`
41-
+ 0.00 `sysctl -w net.inet.tcp.recvspace=65536`
34+
0.00 `sysctl -w net.inet.tcp.rfc1323=1`
35+
+0.00 `sysctl -w net.inet.tcp.sack.enable=1`
36+
+0.00 `sysctl -w net.inet.tcp.ecn.enable=2`
37+
+0.00 `sysctl -w net.inet.tcp.rexmit_initial=1000`
38+
+0.00 `sysctl -w net.inet.tcp.rexmit_slop=200`
39+
+0.00 `sysctl -w net.inet.tcp.rexmit_drop_options=0`
40+
+0.00 `sysctl -w kern.ipc.maxsockbuf=2097152`
41+
+0.00 `sysctl -w net.inet.tcp.recvspace=65536`
4242
// Flush host cache.
43-
+ 0.00 `sysctl -w net.inet.tcp.hostcache.purgenow=1`
43+
+0.00 `sysctl -w net.inet.tcp.hostcache.purgenow=1`
4444
// Ensure that the relevant sysctl variables have their value.
45-
+ 0.00 `sysctl -w kern.ipc.maxsockbuf=73728`
45+
+0.00 `sysctl -w kern.ipc.maxsockbuf=73728`
4646
// Create a blocking TCP/IPv4 socket
47-
+ 0.00 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
48-
// Limit the retransmissions of the SYN segment to 17 seconds.
49-
+ 0.00 setsockopt(3, IPPROTO_TCP, TCP_KEEPINIT, [17], 4) = 0
47+
+0.00 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
48+
// Limit the retransmissions of the SYN segment to 5 seconds.
49+
+0.00 setsockopt(3, IPPROTO_TCP, TCP_KEEPINIT, [5], 4) = 0
5050
// Try to establish a TCP connection.
51-
1.00...18.00 connect(3, ..., ...) = -1 ETIMEDOUT (Operation timed out)
52-
+ 0.00 > S 0:0(0) win 65535 <mss 1440,nop,wscale 1,sackOK,TS val 100 ecr 0>
53-
+ 1.00 > S 0:0(0) win 65535 <mss 1440,nop,wscale 1,sackOK,TS val 1100 ecr 0>
54-
+ 2.20 > S 0:0(0) win 65535 <mss 1440,nop,wscale 1,sackOK,TS val 3300 ecr 0>
55-
+ 4.20 > S 0:0(0) win 65535 <mss 1440,nop,wscale 1,sackOK,TS val 7500 ecr 0>
56-
+ 8.20 > S 0:0(0) win 65535 <mss 1440,nop,wscale 1,sackOK,TS val 15700 ecr 0>
51+
1.00...6.00 connect(3, ..., ...) = -1 ETIMEDOUT (Operation timed out)
52+
+0.00 > S 0:0(0) win 65535 <mss 1440,nop,wscale 1,sackOK,TS val 100 ecr 0>
53+
+1.00 > S 0:0(0) win 65535 <mss 1440,nop,wscale 1,sackOK,TS val 1100 ecr 0>
54+
+2.20 > S 0:0(0) win 65535 <mss 1440,nop,wscale 1,sackOK,TS val 3300 ecr 0>
5755
// Finally cleanup
58-
19.00 `sysctl -w kern.ipc.maxsockbuf=2097152`
59-
+ 0.00 close(3) = 0
56+
7.00 close(3) = 0
57+
+0.00 `sysctl -w kern.ipc.maxsockbuf=2097152`

snd-syn/snd-syn-without-ws-and-ts-ipv4.pkt

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,29 @@
2828
// without the TCP options indicating window scaling and time stamp support.
2929

3030
--ip_version=ipv4
31-
--tolerance_usecs=200000
31+
--tolerance_usecs=150000
3232

3333
// Ensure that all relevant sysctl variables have their default variables.
34-
0.00 `sysctl -w net.inet.tcp.rfc1323=1`
35-
+ 0.00 `sysctl -w net.inet.tcp.sack.enable=1`
36-
+ 0.00 `sysctl -w net.inet.tcp.ecn.enable=2`
37-
+ 0.00 `sysctl -w net.inet.tcp.rexmit_slop=200`
38-
+ 0.00 `sysctl -w net.inet.tcp.rexmit_drop_options=0`
39-
+ 0.00 `sysctl -w kern.ipc.maxsockbuf=2097152`
40-
+ 0.00 `sysctl -w net.inet.tcp.recvspace=65536`
34+
0.00 `sysctl -w net.inet.tcp.rfc1323=1`
35+
+0.00 `sysctl -w net.inet.tcp.sack.enable=1`
36+
+0.00 `sysctl -w net.inet.tcp.ecn.enable=2`
37+
+0.00 `sysctl -w net.inet.tcp.rexmit_slop=200`
38+
+0.00 `sysctl -w net.inet.tcp.rexmit_drop_options=0`
39+
+0.00 `sysctl -w kern.ipc.maxsockbuf=2097152`
40+
+0.00 `sysctl -w net.inet.tcp.recvspace=65536`
4141
// Flush host cache.
42-
+ 0.00 `sysctl -w net.inet.tcp.hostcache.purgenow=1`
42+
+0.00 `sysctl -w net.inet.tcp.hostcache.purgenow=1`
4343
// Ensure that the relevant sysctl variables have their value.
44-
+ 0.00 `sysctl -w net.inet.tcp.rfc1323=0`
44+
+0.00 `sysctl -w net.inet.tcp.rfc1323=0`
4545
// Create a blocking TCP/IPv4 socket
46-
+ 0.00 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
47-
// Limit the retransmissions of the SYN segment to 17 seconds.
48-
+ 0.00 setsockopt(3, IPPROTO_TCP, TCP_KEEPINIT, [17], 4) = 0
46+
+0.00 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
47+
// Limit the retransmissions of the SYN segment to 5 seconds.
48+
+0.00 setsockopt(3, IPPROTO_TCP, TCP_KEEPINIT, [5], 4) = 0
4949
// Try to establish a TCP connection.
50-
1.00...18.00 connect(3, ..., ...) = -1 ETIMEDOUT (Operation timed out)
51-
+ 0.00 > S 0:0(0) win 65535 <mss 1460,sackOK,eol,eol>
52-
+ 1.00 > S 0:0(0) win 65535 <mss 1460,sackOK,eol,eol>
53-
+ 2.20 > S 0:0(0) win 65535 <mss 1460,sackOK,eol,eol>
54-
+ 4.20 > S 0:0(0) win 65535 <mss 1460,sackOK,eol,eol>
55-
+ 8.20 > S 0:0(0) win 65535 <mss 1460,sackOK,eol,eol>
50+
1.00...6.00 connect(3, ..., ...) = -1 ETIMEDOUT (Operation timed out)
51+
+0.00 > S 0:0(0) win 65535 <mss 1460,sackOK,eol,eol>
52+
+1.00 > S 0:0(0) win 65535 <mss 1460,sackOK,eol,eol>
53+
+2.20 > S 0:0(0) win 65535 <mss 1460,sackOK,eol,eol>
5654
// Finally cleanup
57-
19.00 `sysctl -w net.inet.tcp.rfc1323=1`
58-
+ 0.00 close(3) = 0
55+
7.00 close(3) = 0
56+
+0.00 `sysctl -w net.inet.tcp.rfc1323=1`

snd-syn/snd-syn-without-ws-and-ts-ipv6.pkt

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,29 @@
2828
// without the TCP options indicating window scaling and time stamp support.
2929

3030
--ip_version=ipv6
31-
--tolerance_usecs=200000
31+
--tolerance_usecs=150000
3232

3333
// Ensure that all relevant sysctl variables have their default variables.
34-
0.00 `sysctl -w net.inet.tcp.rfc1323=1`
35-
+ 0.00 `sysctl -w net.inet.tcp.sack.enable=1`
36-
+ 0.00 `sysctl -w net.inet.tcp.ecn.enable=2`
37-
+ 0.00 `sysctl -w net.inet.tcp.rexmit_slop=200`
38-
+ 0.00 `sysctl -w net.inet.tcp.rexmit_drop_options=0`
39-
+ 0.00 `sysctl -w kern.ipc.maxsockbuf=2097152`
40-
+ 0.00 `sysctl -w net.inet.tcp.recvspace=65536`
34+
0.00 `sysctl -w net.inet.tcp.rfc1323=1`
35+
+0.00 `sysctl -w net.inet.tcp.sack.enable=1`
36+
+0.00 `sysctl -w net.inet.tcp.ecn.enable=2`
37+
+0.00 `sysctl -w net.inet.tcp.rexmit_slop=200`
38+
+0.00 `sysctl -w net.inet.tcp.rexmit_drop_options=0`
39+
+0.00 `sysctl -w kern.ipc.maxsockbuf=2097152`
40+
+0.00 `sysctl -w net.inet.tcp.recvspace=65536`
4141
// Flush host cache.
42-
+ 0.00 `sysctl -w net.inet.tcp.hostcache.purgenow=1`
42+
+0.00 `sysctl -w net.inet.tcp.hostcache.purgenow=1`
4343
// Ensure that the relevant sysctl variables have their value.
44-
+ 0.00 `sysctl -w net.inet.tcp.rfc1323=0`
44+
+0.00 `sysctl -w net.inet.tcp.rfc1323=0`
4545
// Create a blocking TCP/IPv6 socket
46-
+ 0.00 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
47-
// Limit the retransmissions of the SYN segment to 17 seconds.
48-
+ 0.00 setsockopt(3, IPPROTO_TCP, TCP_KEEPINIT, [17], 4) = 0
46+
+0.00 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
47+
// Limit the retransmissions of the SYN segment to 5 seconds.
48+
+0.00 setsockopt(3, IPPROTO_TCP, TCP_KEEPINIT, [5], 4) = 0
4949
// Try to establish a TCP connection.
50-
1.00...18.00 connect(3, ..., ...) = -1 ETIMEDOUT (Operation timed out)
51-
+ 0.00 > S 0:0(0) win 65535 <mss 1440,sackOK,eol,eol>
52-
+ 1.00 > S 0:0(0) win 65535 <mss 1440,sackOK,eol,eol>
53-
+ 2.20 > S 0:0(0) win 65535 <mss 1440,sackOK,eol,eol>
54-
+ 4.20 > S 0:0(0) win 65535 <mss 1440,sackOK,eol,eol>
55-
+ 8.20 > S 0:0(0) win 65535 <mss 1440,sackOK,eol,eol>
50+
1.00...6.00 connect(3, ..., ...) = -1 ETIMEDOUT (Operation timed out)
51+
+0.00 > S 0:0(0) win 65535 <mss 1440,sackOK,eol,eol>
52+
+1.00 > S 0:0(0) win 65535 <mss 1440,sackOK,eol,eol>
53+
+2.20 > S 0:0(0) win 65535 <mss 1440,sackOK,eol,eol>
5654
// Finally cleanup
57-
19.00 `sysctl -w net.inet.tcp.rfc1323=1`
58-
+ 0.00 close(3) = 0
55+
7.00 close(3) = 0
56+
+0.00 `sysctl -w net.inet.tcp.rfc1323=1`

0 commit comments

Comments
 (0)
0