forked from multipath-tcp/packetdrill
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mptcp: mpc: check fallback to TCP in case of drop
After 3 failed attempts, there is a fallback to TCP. Link: multipath-tcp/mptcp_net-next#477 Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
gtests/net/mptcp/mp_capable/v1_mp_capable_connect_drop_fallback.pkt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--tolerance_usecs=100000 | ||
`../common/defaults.sh` | ||
|
||
0.0 socket(..., SOCK_STREAM, IPPROTO_MPTCP) = 3 | ||
+0.0 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 | ||
+0.0 getsockopt(3, SOL_TCP, TCP_IS_MPTCP, [1], [4]) = 0 | ||
+0.0 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR) | ||
+0.0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 | ||
|
||
// Establish connection and verify that there is a fallback to TCP. | ||
|
||
+0 `nstat -n` | ||
+0.0 connect(3, ..., ...) = -1 EINPROGRESS (Operation now in progress) | ||
+0.0 > S 0:0(0) <mss 1460, sackOK, TS val 100 ecr 0, nop, wscale 8, mpcapable v1 flags[flag_h] nokey> | ||
+1.0 > S 0:0(0) <mss 1460, sackOK, TS val 100 ecr 0, nop, wscale 8, mpcapable v1 flags[flag_h] nokey> | ||
+1.0 > S 0:0(0) <mss 1460, sackOK, TS val 100 ecr 0, nop, wscale 8, mpcapable v1 flags[flag_h] nokey> | ||
|
||
+1.0 > S 0:0(0) <mss 1460, sackOK, TS val 100 ecr 0, nop, wscale 8> | ||
+0.01 < S. 0:0(0) ack 1 win 65535 <mss 1460, sackOK, TS val 700 ecr 100, nop, wscale 8> | ||
+0.0 > . 1:1(0) ack 1 <nop, nop, TS val 100 ecr 700> | ||
|
||
+0.200 getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 | ||
|
||
// Check for fallback | ||
+0.0 getsockopt(3, SOL_TCP, TCP_IS_MPTCP, [0], [4]) = 0 | ||
+0.01 `test $(nstat -zjs | jq '.kernel.MPTcpExtMPCapableSYNTXDrop') -eq 1` | ||
+0.01 `test $(nstat -zjs | jq '.kernel.MPTcpExtBlackhole') -eq 1` |