]> git.dujemihanovic.xyz Git - linux.git/commit
mptcp: disable active MPTCP in case of blackhole
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Mon, 9 Sep 2024 20:09:23 +0000 (22:09 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Sep 2024 22:57:50 +0000 (15:57 -0700)
commit27069e7cb3d1cea9377069266acf19b9cc5ad0ae
treeb2b59e53ce7fee633efeb019b4903cba0b649ac8
parent6982826fe5e53ef115836de7dd397bd970030937
mptcp: disable active MPTCP in case of blackhole

An MPTCP firewall blackhole can be detected if the following SYN
retransmission after a fallback to "plain" TCP is accepted.

In case of blackhole, a similar technique to the one in place with TFO
is now used: MPTCP can be disabled for a certain period of time, 1h by
default. This time period will grow exponentially when more blackhole
issues get detected right after MPTCP is re-enabled and will reset to
the initial value when the blackhole issue goes away.

The blackhole period can be modified thanks to a new sysctl knob:
blackhole_timeout. Two new MIB counters help understanding what's
happening:

- 'Blackhole', incremented when a blackhole is detected.
- 'MPCapableSYNTXDisabled', incremented when an MPTCP connection
  directly falls back to TCP during the blackhole period.

Because the technique is inspired by the one used by TFO, an important
part of the new code is similar to what can find in tcp_fastopen.c, with
some adaptations to the MPTCP case.

Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/57
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20240909-net-next-mptcp-fallback-x-mpc-v1-3-da7ebb4cd2a3@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/mptcp-sysctl.rst
net/mptcp/ctrl.c
net/mptcp/mib.c
net/mptcp/mib.h
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/subflow.c