Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mptcp: add FastOpen sender tests #87

Merged
merged 2 commits into from Sep 23, 2022

Conversation

matttbe
Copy link
Member

@matttbe matttbe commented Sep 22, 2022

For the moment, only the client part is validated.

2 methods are currently tested:

  • TCP_FASTOPEN_CONNECT
  • MSG_FASTOPEN

For each method, there are two tests:

  • one without using TFO cookies
  • one where a first connection is created to validate the cookie part. Then a second connection is established with data in the SYN.

Note that it looks like Packetdrill doesn't support creating a 2nd connection on the same script yet. When we do that, Packetdrill reports the 3rd ACK of the 2nd connection doesn't contain the expected the client key. But that's alright for the moment, tests have been split: with and without cookies.

These tests can be used to validate Benjamin' series: mptcp: add support for TFO, sender side only. In the v2, MSG_FASTOPEN support has been removed as it is part of Dmytro's series.

For the moment, only the client part is validated.

2 methods are currently tested:
- TCP_FASTOPEN_CONNECT
- MSG_FASTOPEN

For each method, there are two tests:
- one without using TFO cookies
- one where a first connection is created to validate the cookie part.
  Then a second connection is established with data in the SYN.

Note that it looks like Packetdrill doesn't support creating a 2nd
connection on the same script yet. When we do that, Packetdrill reports
the 3rd ACK of the 2nd connection doesn't contain the expected the
client key. But that's alright for the moment, tests have been split:
with and without cookies.

These tests can be used to validate Benjamin' series: mptcp: add support
for TFO, sender side only. In the v2, MSG_FASTOPEN support has been
removed as it is part of Dmytro's series.

Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Similar to the one for TCP in tcp/syscall_bad_arg dir.

Differences:
  - create IPPROTO_MPTCP sockets instead of TCP ones
  - With a tolerance
  - Keep the TS
  - Swtich to the same code style as other MPTCP tests

But the rest is the same, validating the same thing but for MPTCP.

Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
@matttbe
Copy link
Member Author

matttbe commented Sep 23, 2022

I hope you don't mind, I'm going to merge this to validate patches I'm going to merge.
We can always fix anything after :-)

@matttbe matttbe merged commit 3cc8632 into multipath-tcp:mptcp-net-next Sep 23, 2022
@matttbe matttbe deleted the mptcp-fastopen-client branch September 23, 2022 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant