Skip to content

Multipath TCP part 2: Single subflow & RFC8684 support

Christoph Paasch mptcp netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest19 patches 2 repliesIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19mptcp: Add MPTCP socket stubsMAINTAINERS include/net/mptcp.h net/Kconfig +7 more+212 -00 replies
2/19mptcp: Handle MPTCP TCP optionsinclude/linux/tcp.h include/net/mptcp.h net/ipv4/tcp_input.c +4 more+181 -10 replies
3/19mptcp: Associate MPTCP context with TCP socketinclude/linux/tcp.h net/mptcp/Makefile net/mptcp/protocol.c +2 more+275 -70 replies
4/19mptcp: Handle MP_CAPABLE options for outgoing connectionsinclude/linux/tcp.h include/net/mptcp.h net/ipv4/tcp_input.c +6 more+663 -241 reply
5/19mptcp: Create SUBFLOW socket for incoming connectionsnet/mptcp/protocol.c+231 -50 replies
6/19mptcp: Add key generation and token treenet/mptcp/Makefile net/mptcp/crypto.c net/mptcp/protocol.c +3 more+428 -80 replies
7/19mptcp: Add shutdown() socket operationnet/mptcp/protocol.c+66 -00 replies
8/19mptcp: Add setsockopt()/getsockopt() socket operationsnet/mptcp/protocol.c+58 -00 replies
9/19mptcp: Write MPTCP DSS headers to outgoing data packetsinclude/net/mptcp.h net/mptcp/options.c net/mptcp/protocol.c +1 more+286 -60 replies
10/19mptcp: Implement MPTCP receive pathinclude/linux/tcp.h include/net/mptcp.h net/ipv4/tcp_input.c +4 more+609 -50 replies
11/19mptcp: add subflow write space signalling and mptcp_pollnet/mptcp/protocol.c net/mptcp/protocol.h net/mptcp/subflow.c+57 -00 replies
12/19mptcp: recvmsg() can drain data from multiple subflowsnet/mptcp/protocol.c+168 -100 replies
13/19mptcp: allow collapsing consecutive sendpages on the same substreamnet/mptcp/protocol.c+60 -150 replies
14/19mptcp: new sysctl to control the activation per NSnet/mptcp/Makefile net/mptcp/ctrl.c net/mptcp/protocol.c +1 more+146 -50 replies
15/19mptcp: add basic kselftest for mptcpMAINTAINERS tools/testing/selftests/Makefile tools/testing/selftests/net/mptcp/.gitignore +5 more+1449 -00 replies
16/19mptcp: move from sha1 (v0) to sha256 (v1)net/mptcp/Kconfig net/mptcp/crypto.c net/mptcp/options.c +1 more+104 -590 replies
17/19mptcp: parse and emit MP_CAPABLE option according to v1 specinclude/linux/tcp.h include/net/mptcp.h net/ipv4/tcp_input.c +4 more+160 -460 replies
18/19mptcp: process MP_CAPABLE data optionnet/mptcp/options.c net/mptcp/protocol.c net/mptcp/protocol.h +1 more+95 -270 replies
19/19mptcp: cope with later TCP fallbacknet/mptcp/protocol.c net/mptcp/protocol.h+103 -170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH net-next v3 00/19] Multipath TCP part 2: Single subflow & RFC8684 support

v2 -> v3: Added RFC8684-style handshake (see below fore more details) and some minor fixes v1 -> v2: Rebased on latest "Multipath TCP: Prerequisites" v3 series

This set adds MPTCP connection establishment, writing & reading MPTCP options on data packets, a sysctl to allow MPTCP per-namespace, and self tests. This is sufficient to establish and maintain a connection with a MPTCP peer, but will not yet allow or initiate establishment of additional MPTCP subflows.

We also add the necessary code for the RFC8684-style handshake. RFC8684 obsoletes the experimental RFC6824 and makes MPTCP move-on to version 1.

Originally our plan was to submit single-subflow and RFC8684 support in two patchsets, but to simplify the merging-process and ensure that a coherent MPTCP-version lands in Linux we decided to merge the two sets into a single one.

The MPTCP patchset exclusively supports RFC 8684. Although all MPTCP deployments are currently based on RFC 6824, future deployments will be migrating to MPTCP version 1. 3GPP's 5G standardization also solely supports RFC 8684. In addition, we believe that this initial submission of MPTCP will be cleaner by solely supporting RFC 8684. If later on support for the old MPTCP-version is required it can always be added in the future.

The major difference between RFC 8684 and RFC 6824 is that it has a better support for servers using TCP SYN-cookies by reliably retransmitting the MP_CAPABLE option.

Before ending this cover letter with some refs, it is worth mentioning that we promise David Miller that merging this series will be rewarded by Twitter dopamine hits :-D

Clone/fetch:
https://github.com/multipath-tcp/mptcp_net-next.git (tag: netdev-v3-part2)

Browse:
https://github.com/multipath-tcp/mptcp_net-next/tree/netdev-v3-part2

Thank you for your review. You can find us at mptcp(a)lists.01.org and
https://is.gd/mptcp_upstream

Christoph Paasch (2):
mptcp: parse and emit MP_CAPABLE option according to v1 spec
mptcp: process MP_CAPABLE data option

Florian Westphal (2):
mptcp: add subflow write space signalling and mptcp_poll
mptcp: add basic kselftest for mptcp

Mat Martineau (3):
mptcp: Add MPTCP socket stubs
mptcp: Write MPTCP DSS headers to outgoing data packets
mptcp: Implement MPTCP receive path

Matthieu Baerts (1):
mptcp: new sysctl to control the activation per NS

Paolo Abeni (4):
mptcp: recvmsg() can drain data from multiple subflows
mptcp: allow collapsing consecutive sendpages on the same substream
mptcp: move from sha1 (v0) to sha256 (v1)
mptcp: cope with later TCP fallback

Peter Krystad (7):
mptcp: Handle MPTCP TCP options
mptcp: Associate MPTCP context with TCP socket
mptcp: Handle MP_CAPABLE options for outgoing connections
mptcp: Create SUBFLOW socket for incoming connections
mptcp: Add key generation and token tree
mptcp: Add shutdown() socket operation
mptcp: Add setsockopt()/getsockopt() socket operations

 MAINTAINERS                                   |    2 +
 include/linux/tcp.h                           |   35 +
 include/net/mptcp.h                           |  105 +-
 net/Kconfig                                   |    1 +
 net/Makefile                                  |    1 +
 net/ipv4/tcp.c                                |    2 +
 net/ipv4/tcp_input.c                          |   19 +-
 net/ipv4/tcp_output.c                         |   57 +
 net/ipv6/tcp_ipv6.c                           |   13 +
 net/mptcp/Kconfig                             |   26 +
 net/mptcp/Makefile                            |    4 +
 net/mptcp/crypto.c                            |  152 ++
 net/mptcp/ctrl.c                              |  130 ++
 net/mptcp/options.c                           |  586 ++++++++
 net/mptcp/protocol.c                          | 1244 +++++++++++++++++
 net/mptcp/protocol.h                          |  240 ++++
 net/mptcp/subflow.c                           |  860 ++++++++++++
 net/mptcp/token.c                             |  195 +++
 tools/testing/selftests/Makefile              |    1 +
 tools/testing/selftests/net/mptcp/.gitignore  |    2 +
 tools/testing/selftests/net/mptcp/Makefile    |   13 +
 tools/testing/selftests/net/mptcp/config      |    4 +
 .../selftests/net/mptcp/mptcp_connect.c       |  832 +++++++++++
 .../selftests/net/mptcp/mptcp_connect.sh      |  595 ++++++++
 tools/testing/selftests/net/mptcp/settings    |    1 +
 25 files changed, 5118 insertions(+), 2 deletions(-)
 create mode 100644 net/mptcp/Kconfig
 create mode 100644 net/mptcp/Makefile
 create mode 100644 net/mptcp/crypto.c
 create mode 100644 net/mptcp/ctrl.c
 create mode 100644 net/mptcp/options.c
 create mode 100644 net/mptcp/protocol.c
 create mode 100644 net/mptcp/protocol.h
 create mode 100644 net/mptcp/subflow.c
 create mode 100644 net/mptcp/token.c
 create mode 100644 tools/testing/selftests/net/mptcp/.gitignore
 create mode 100644 tools/testing/selftests/net/mptcp/Makefile
 create mode 100644 tools/testing/selftests/net/mptcp/config
 create mode 100644 tools/testing/selftests/net/mptcp/mptcp_connect.c
 create mode 100755 tools/testing/selftests/net/mptcp/mptcp_connect.sh
 create mode 100644 tools/testing/selftests/net/mptcp/settings
Signature · 1 line
2.23.0