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: tfo: add basic server side coverage #104

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

matttbe
Copy link
Member

@matttbe matttbe commented Nov 25, 2022

These tests are similar to the ones for the client side: a first connection is established without DATA in the SYN to request a key, then new connections can send DATA in the SYN with the cookie it previously received.

Ideally we would like to validate a second connection in the same test but we are limited by Packetdrill here which cannot understand the new SYN is for a new connection.

So this test is split in two parts:

  • server-TCP_FASTOPEN-cookie-req: the first connection, cookie request
  • server-TCP_FASTOPEN-cookie-data: the cookie has already been exchanged, data can be sent with the cookie.

Note that we can also not use the cookie by setting a sysctl and directly send data, that's what "server-tfo-no-cookie" is doing.

Equivalent tests for (plain) TCP are also added.

Note that kernel patches are required to get the expected cookie in IPv6, see:

multipath-tcp/mptcp_net-next#317

These tests are similar to the ones for the client side: a first
connection is established without DATA in the SYN to request a key, then
new connections can send DATA in the SYN with the cookie it previously
received.

Ideally we would like to validate a second connection in the same test
but we are limited by Packetdrill here which cannot understand the new
SYN is for a new connection.

So this test is split in two parts:

- server-TCP_FASTOPEN-cookie-req: the first connection, cookie request
- server-TCP_FASTOPEN-cookie-data: the cookie has already been
  exchanged, data can be sent with the cookie.

Note that we can also not use the cookie by setting a sysctl and
directly send data, that's what "server-tfo-no-cookie" is doing.

Equivalent tests for (plain) TCP are also added.

Note that kernel patches are required to get the expected cookie in
IPv6, see:

  multipath-tcp/mptcp_net-next#317

Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
@dcaratti dcaratti merged commit 10c47ca into multipath-tcp:mptcp-net-next Dec 2, 2022
@matttbe
Copy link
Member Author

matttbe commented Dec 2, 2022

Thank you for the reviews!

I hope you don't mind if I revert this one because we need a fix in the kernel, see:

I will re-apply them when merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants