Skip to contentSkip to conversation

MoM - 28th of May 2024

Weekly meetings Matthieu Baerts 1 participant 1 message Jun 4, 2024 Networking MPTCP

lore
Share & tools
lore

Matthieu Baerts

author maintainer
#0 lore raw

Hello everyone,

Last week, we had our new meeting with Mat (Cruise), Paolo, Davide (Redhat), Christoph (Apple), Gregory (Tessares), and myself (NGI0 Core).

Thanks again for this new good meeting!

Here are the minutes of the meeting:

Accepted patches:

- The list of accepted patches can be seen on PatchWork:
https://patchwork.kernel.org/project/mptcp/list/?state=3

netdev (if mptcp ML is in cc) (by: Matthieu Baerts):

13663515: [5.10.y] mptcp: ensure snd_nxt is properly initialized on connect:
- Submitter: Matthieu Baerts
- URL:
https://patchwork.kernel.org/project/mptcp/patch/[email protected]/

13673304: [net,1/4] selftests: mptcp: lib: support flaky subtests 13673305: [net,2/4] selftests: mptcp: simult flows: mark 'unbalanced' tests as flaky
13673306: [net,3/4] selftests: mptcp: join: mark 'fastclose' tests as flaky 13673307: [net,4/4] selftests: mptcp: join: mark 'fail' tests as flaky:
- Series: selftests: mptcp: mark unstable subtests as flaky
- Submitter: Matthieu Baerts
- URL:
https://patchwork.kernel.org/project/mptcp/list/?series=855743&state=*&archive=both

our repo (by: Matthieu Baerts):

13670735: [mptcp-net,v3,1/4] selftests: mptcp: lib: support flaky subtests 13670736: [mptcp-net,v3,2/4] selftests: mptcp: simult flows: mark 'unbalanced' tests as flaky
13670737: [mptcp-net,v3,3/4] selftests: mptcp: join: mark 'fastclose' tests as flaky
13670738: [mptcp-net,v3,4/4] selftests: mptcp: join: mark 'fail' tests as flaky:
- Series: selftests: mptcp: mark unstable subtests as flaky
- Submitter: Matthieu Baerts
- URL:
https://patchwork.kernel.org/project/mptcp/list/?series=855015&state=*&archive=both

Pending patches:
- The list of pending patches can be seen on PatchWork:
https://patchwork.kernel.org/project/mptcp/list/?state=*

netdev (if mptcp ML is in cc) (by: Geliang Tang, John Hubbard,
Matthieu Baerts, Yunsheng Lin):

13659842: [bpf-next,v2,1/2] selftests/bpf: Add mptcp subflow example 13659843: [bpf-next,v2,2/2] selftests/bpf: Add mptcp subflow subtest:
- Series: selftests/bpf: new MPTCP subflow subtest
- Submitter: Matthieu Baerts
- URL:
https://patchwork.kernel.org/project/mptcp/list/?series=851945&state=*&archive=both
- Changed requested, but blocked by "add netns helpers": not
urgent, we will wait.

13676647: [net-next,v5,11/13] net: replace page_frag with page_frag_cache:
- Mat reviewed the MPTCP part

13665604: [v2] checkpatch: skip warnings for symbol links:
- Submitter: Geliang Tang
- URL:
https://patchwork.kernel.org/project/mptcp/patch/8e5cdb8e4eb6d964ec3ffe961ab8e65b8788584f.1715815795.git.tanggeliang@kylinos.cn/
- probably best to resend it after the merge window.

13665648: [bpf-next,v2,1/8] selftests/bpf: Add unshare_netns helper 13665649: [bpf-next,v2,2/8] selftests/bpf: Use unshare_netns helper 13665650: [bpf-next,v2,3/8] selftests/bpf: Drop duplicate create_netns 13665651: [bpf-next,v2,4/8] selftests/bpf: Export create_netns helper 13665652: [bpf-next,v2,5/8] selftests/bpf: Use create_netns helper 13665653: [bpf-next,v2,6/8] selftests/bpf: Export cleanup_netns helper 13665654: [bpf-next,v2,7/8] selftests/bpf: Use cleanup_netns helper 13665655: [bpf-next,v2,8/8] selftests/bpf: Use netns helpers in lwt tests:
- Series: add netns helpers
- Submitter: Geliang Tang
- URL:
https://patchwork.kernel.org/project/mptcp/list/?series=853539&state=*&archive=both
- modifications needed from BPF maintainers. If it becomes too
complicated, we can check to send "selftests/bpf: new MPTCP subflow subtest" first, but no urgency, we have a ~2 months

13675013: Patch "mptcp: implement TCP_NOTSENT_LOWAT support" has been added to the 6.8-stable tree:
- Series: Patch "mptcp: implement TCP_NOTSENT_LOWAT support" has
been added to the 6.8-stable tree
- Submitter: Matthieu Baerts
- URL:
https://patchwork.kernel.org/project/mptcp/list/?series=856110&state=*&archive=both
- TODO: Matth: validate that: 6.8 is going to be EOL soon, we
don't want them to insert a broken feature → Done: it's OK
- Otherwise, it looks OK

13675903: [v2] selftests/net: suppress clang's "variable-sized type not at the end" warning:
- Submitter: John Hubbard
- URL:
https://patchwork.kernel.org/project/mptcp/patch/[email protected]/
- handled by others

13676260: [net-next,v2,1/3] doc: mptcp: add missing 'available_schedulers' entry
13676261: [net-next,v2,2/3] doc: mptcp: alphabetical order 13676262: [net-next,v2,3/3] doc: new 'mptcp' page in 'networking':
- Series: doc: mptcp: new general doc and fixes
- Submitter: Matthieu Baerts
- URL:
https://patchwork.kernel.org/project/mptcp/list/?series=856409&state=*&archive=both
- from -net to net-next

our repo (by: Geliang Tang, Gregory Detal, Matthieu Baerts,
YonglongLi, Yunsheng Lin):

12282219: [RESEND,RFC,2/4] tcp: move selected mptcp helpers to tcp.h/mptcp.h 12282221: [RESEND,RFC,4/4] tcp: parse tcp options contained in reset packets:
12282223: [RESEND,RFC,mptpcp-next] mptcp: add ooo prune support:
12282225: [RESEND,1/5] tcp: make two mptcp helpers available to tcp stack 12282227: [RESEND,5/5] mptcp: send fastclose if userspace closes socket with unread data:

13070467: [mptcp-next,v4,1/2] mptcp: update mptcp_push_release 13070468: [mptcp-next,v4,2/2] mptcp: retrans for redundant sends:
- State: Changes requested
- Series: BPF redundant scheduler, part 3
- Submitter: Geliang Tang
- URL:
https://patchwork.kernel.org/project/mptcp/list/?series=703615&state=*&archive=both
- Status: same as last time

13305089: [mptcp-next,1/6] mptcp: sockopt: move tcp_inq code to a dedicated function
13305091: [mptcp-next,2/6] mptcp: sockopt: update supported list 13305093: [mptcp-next,3/6] mptcp: sockopt: get val in a generic way 13305090: [mptcp-next,4/6] mptcp: sockopt: add missing getsockopt() options 13305094: [mptcp-next,5/6] mptcp: sockopt: set val in a generic way 13305092: [mptcp-next,6/6] mptcp: sockopt: support IP_TTL & IPV6_UNICAST_HOPS:
- State: Changes requested
- Series: mptcp: sockopt: uniform code to get/set values
- Submitter: Matthieu Baerts
- URL:
https://patchwork.kernel.org/project/mptcp/list/?series=763505&state=*&archive=both
- Status: same as last time

13583230: [RFC] mptcp: react scheduler when subflow events pop up:
- State: Changes requested
- Submitter: Geliang Tang
- URL:
https://patchwork.kernel.org/project/mptcp/patch/433320c3a9db77bea53a34fc9c43a3c7e3320399.1709693691.git.tanggeliang@kylinos.cn/
- Status: same as last time

13656189: [mptcp-net,v2] mptcp: fix the default value of scaling_ratio:
- State: Changes requested
- Submitter: Geliang Tang
- URL:
https://patchwork.kernel.org/project/mptcp/patch/0ccc1c26d27d6ee7be22806a97983d37c6ca548c.1715053270.git.tanggeliang@kylinos.cn/
- Status: same as last time
- to be investigated

13665855: [mptcp-next,v3,1/2] Squash to "selftests/bpf: Add mptcp subflow subtest"
13665856: [mptcp-next,v3,2/2] Squash to "selftests/bpf: Add bpf scheduler test":
- State: Awaiting upstream
- Series: fixes for create_netns
- Submitter: Geliang Tang
- URL:
https://patchwork.kernel.org/project/mptcp/list/?series=853620&state=*&archive=both
- Status: same as last time

13672978: mptcp: update add_addr_accepted and accept_add after subflow added:
- State: Changes requested
- Series: mptcp: update add_addr_accepted and accept_add after
subflow added
- Submitter: YonglongLi
- URL:
https://patchwork.kernel.org/project/mptcp/list/?series=855647&state=*&archive=both

13675031: [mptcp-next,v6,1/9] selftests: net: lib: set 'i' as local 13675032: [mptcp-next,v6,2/9] selftests: net: lib: support errexit with busywait
13675033: [mptcp-next,v6,3/9] selftests: net: lib: avoid error removing empty netns name
13675034: [mptcp-next,v6,4/9] selftests: net: lib: ignore possible error 13675035: [mptcp-next,v6,5/9] selftests: net: lib: remove ns from list after clean-up
13675036: [mptcp-next,v6,6/9] selftests: net: lib: do not set ns var as readonly
13675037: [mptcp-next,v6,7/9] selftests: net: lib: remove 'ns' var in setup_ns
13675038: [mptcp-next,v6,8/9] selftests: mptcp: lib: use setup/cleanup_ns helpers
13675039: [mptcp-next,v6,9/9] selftests: mptcp: lib: use wait_local_port_listen helper:
- State: New
- Series: use helpers in lib.sh and net_helpers.sh
- Submitter: Matthieu Baerts
- URL:
https://patchwork.kernel.org/project/mptcp/list/?series=856116&state=*&archive=both
- Updating a series started by Geliang

13675217: [mptcp-next,RFC,1/4] mptcp: add push sched callback 13675218: [mptcp-next,RFC,2/4] mptcp: use new push callback to schedule chunks
13675219: [mptcp-next,RFC,3/4] mptcp: bpf: allow to write to mptcp_sched_chunk
13675220: [mptcp-next,RFC,4/4] selftests/bpf: mptcp RR: send 1 MSS on each subflow:
- State: RFC
- Series: mptcp: update scheduler API
- Submitter: Gregory Detal
- URL:
https://patchwork.kernel.org/project/mptcp/list/?series=856158&state=*&archive=both
- Current limitations of the sched API:
- not flexible enough to be extended
- some use cases might be hard to implement with the current API

- 2 proposals:
- the one linked to the series ↑:
- extending the current API: new hook to stop pushing on
the same subflow
- "simple" modification, perf impact is very low
- but it might be more complex to use: first stop it, then
do another action linked to that

- or a "more natural API":
- similar to what was in mptcp.org; where to send the next
segment
- But can hurt the perf, and maybe not (easily) possible
with BPF,
- e.g. we receive an ACK from one subflow, we might need
to schedule to another subflow
→ To send data over another subflow, we need to lock the
MPTCP lock and subflow lock
→ Typically, when we receive an ACK from one subflow, we
can lock the current subflow, and the MPTCP one, that's OK. The NAPI allows switching to another subflow doing that in the right sequence
→ If we want this 2nd proposals, we would need to change
the way the locks are handled: Paolo tried to simplify it, but it seems difficult. It is not possible to do something like in mptcp.org
→ using a worker (or one per CPU?) could work, but will
impact the perf:
→ Benchmark would be required, but we need virtual and
non-virtual HW: e.g. the way the SKB are allocated are completely different, especially on the recv part.
→ using a "delegated" mechanism (certainly NAPI), might
help, but it looks like it is a big rework
→ Matth will help for the benchmarking
→ There are different aspects that are hard to predict,
e.g. contention, in case of latency, etc.

- It would be good to check that, as it is better to break the
API as we can. Gregory will look at that.

- note: the current Sched is a BLES like one, but not fully
implemented

13675549: [mptcp-next,v2] mptcp: increment RmAddr MIB counter once per RM_ADDR:
- State: Queued
- Submitter: Matthieu Baerts
- URL:
https://patchwork.kernel.org/project/mptcp/patch/[email protected]/
- TODO: to be applied

Issues on GitHub:
https://github.com/multipath-tcp/mptcp_net-next/issues/

Recently opened (latest from the last meeting: 491):

494 [syzkaller] WARNING in __skb_flow_dissect [bug] [syzkaller] 493 [syzkaller] WARNING in __mptcp_clean_una [bug] [syzkaller]

492 userspace pm: subflows counter: not updated when a subflows is
removed from the other end [bug]

Bugs (opened, flagged as "bug" and assigned)

487 BPF selftests fails with EAGAIN [bug] [selftests] [bpf] @geliangtang
- to be investigated, can be reproduced without BPF sched

  477  Client: fallback to TCP after X MPC [bug] @matttbe
  445  MPTCP Info counters: start seq numbers ones from 0 [bug] @geliangtang
  403  userspace pm: only remove entry from `local_addr_list` when

sending a REMOVE_ADDR [bug] [pm] @geliangtang
343 scheduler: react when subflow-level events pop up (ACK/RTO) [bug]
[sched] @geliangtang

Bugs (opened and flagged as "bug" and not assigned)

  494  [syzkaller] WARNING in `__skb_flow_dissect` [bug] [syzkaller]
  493  [syzkaller] WARNING in `__mptcp_clean_una` [bug] [syzkaller]
  492  userspace pm: subflows counter: not updated when a subflows is

removed from the other end [bug]
491 selftests: mptcp_join: tests Infinite map & MP_FAIL MP_RST
are unstable [bug] [selftests]
484 BPF: setsockopt on an MPTCP socket: check support [bug] [bpf] 483 [6.1] selftests: mptcp_connect.sh failures with
copyfd_io_poll: poll timed out errors [bug] [selftests]
476 packetdrill: coalescing feature doesn't take into account MPTCP
options [bug] [packetdrill]
475 simult_flows: unbalanced bwidth tests are unstable [bug]
[selftests]

  439  mptcp vs net.ipv4.tcp_shrink_window [bug]
  416  No new subflow when removing an endpoint and adding a new one [bug]
  336  Issues with BPF packet scheduler [bug] [sched] [bpf]
  325  selftests: `mptcp_join`: test 18 `signal addresses race test` is

sometimes failing [bug] [selftests]
324 selftests: mptcp_join: tests fastclose test & `fastclose
server test` are sometimes failing [bug] [selftests]
315 Issues with backup flow [bug]

In Progress (opened, new feature and assigned)

  480  MPTCP and KTLS support [enhancement] @geliangtang
  434  in-kernel PM: increase subflows limit [enhancement] [pm] @matttbe
  353  sockopt: uniform code to get/set values [enhancement] @matttbe
  349  scheduler: (un)mark a subflow as "stale" [enhancement] [sched]

@geliangtang
296 Support IP_TTL & IPV6_UNICAST_HOPS [enhancement] @matttbe 234 Packetdrill: Support MPC+DATA+checksum error [enhancement]
[packetdrill] @spoorva
167 packetdrill: add coverage for RM_ADDR [enhancement] [packetdrill]
@dcaratti
75 BPF: packet scheduler [enhancement] [sched] [bpf] @geliangtang 74 BPF: path manager [enhancement] [pm] [bpf] @geliangtang

Assigned Questions (opened, questions and assigned)

None.

Open questions (opened, questions and not assigned)

459 Are the endpoint flags signal and subflow meant to be
exclusive? or how to get MPTCP to work for both directions? [question]
452 mptcp causes the network to become very slow [question] 412 shadowsocks-libev not working, need guidance for PM configuration
[question]
411 Problem with IPROTO [question]

For later (opened and not assigned)

  489  IPv6 Rejoin Subflow
  481  remove refcount on TCP sockets for the timers [enhancement]
  469  CI: add code coverage support [enhancement] [CI]
  467  Scheduler: add redundant scheduler support in BPF [enhancement]
[sched]
  462  selftests: print (and set?) random seed [enhancement] [selftests]
  461  Protocol: extend Data-Level Length field [enhancement] [protocol]
  448  Allow sending ADD_ADDR IPv6 with port-number if TCP-timestamps

are enabled [enhancement]
441 optimize established options generation [enhancement] 440 in-kernel PM: re-establish subflows after "network" errors
[enhancement] [pm]
426 selftests: validate listener sockets with multiple accepts
[enhancement] [selftests]
397 Doc and guidance for users [enhancement] [documentation] 396 ci: periodically run selftests from the export branch on stable
kernels [enhancement] [selftests]
389 packetdrill: increase coverage for "early close()" cases
[enhancement] [packetdrill]
350 scheduler: API changes (tasks) [enhancement] [sched] 348 scheduler: frequently probe "stale" subflow with reinjected data
[enhancement] [sched]
345 scheduler: "penalise" some subflows by sending less than their
cwnd [enhancement] [sched]
344 scheduler: new callback to initiate optimisations [enhancement]
[sched]
337 in-kernel PM: listen socket: support "behind a NAT" use case
[enhancement] [pm]
335 Server to Client subflows: option to allow joining the initial
address and port [enhancement] [pm]
334 PM: in-kernel: send >1 ADD_ADDR before the establishment of a new
subflow [enhancement] [pm]
333 New MIBs to help understanding issues when PM cannot create new
subflows [enhancement] [pm]
332 scheduler: implement a "opportunistic retransmission"
[enhancement] [sched]

  298  CG Memory accounting for passive MPTCP socket [enhancement]
  289  mptcp: audit comments for non inclusive language [enhancement]
  273  Packetdrill: test outgoing MP_FASTCLOSE [enhancement] [packetdrill]
  266  Packetdrill: add MP_FAIL coverage [packetdrill]
  236  Review supported sockopts list [enhancement]
  222  Netlink event API: add SUBFLOW_CREATED event [enhancement]
  215  TCP Urgent pointer and MPTCP [enhancement]
  213  add MPTCP man page [enhancement]
  208  better handing of ssk memory pressure in the TX path [enhancement]
  202  Add sendmsg support for ancillary data [enhancement]
  197  more mibs needed [enhancement]
  180  Get an update when MPTCP fall back to TCP [enhancement]
  177  improve retransmit subflow selection [enhancement]
  169  packetdrill: add coverage for ADD_ADDR and MP_JOIN on a different

port [enhancement] [packetdrill]
150 remove completely workqueue usage [enhancement]
141 avoid acquiring mptcp_data_lock() twice in the receive path
[enhancement]
78 notify the application (userspace) when a subflow is
added/removed [enhancement]
57 After a few attempts of failed MPTCP, directly fallback to TCP
for new connections [enhancement]
41 reduce indirect call usage [enhancement]
24 Revisit layout of struct mptcp_subflow_context [enhancement]

    Recently closed (since 2024-05-21)

490 syzkaller: WARNING in __inet_accept [bug] [syzkaller]
[reproducer] [bisected] @pabeni

Packetdrill PRs

145  4 days ago   matttbe   mptcp: fastopen: client no cook: uniform delays
144  4 days ago   matttbe   mptcp: dss: ssn spec serv: slow down connection
143  4 days ago   matttbe   mptcp: join: client: slow down connection:

- avoiding the kernel to estimate RTTs that are too small. Small
RTTs means TCP retransmission that happen too soon. Davide will look at them.

52 2 years ago dcaratti Add initial coverage for RM_ADDR

FYI: Current Roadmap:
- Bugs:
https://github.com/multipath-tcp/mptcp_net-next/issues?q=is%3Aissue+is%3Aopen+label%3Abug
- Current/Coming merge window (6.11):
https://github.com/orgs/multipath-tcp/projects/9
- For later: https://github.com/orgs/multipath-tcp/projects/1

Patches to send to NetDev:

- Fixes for -net:

- [b1b10b5aa11f] doc: mptcp: add missing 'available_schedulers'
entry (Matthieu Baerts (NGI0))
- [847bef5b1d73] doc: mptcp: alphabetical order (Matthieu Baerts
(NGI0))
- [c86fe75c381d] doc: new 'mptcp' page in 'networking' (Matthieu
Baerts (NGI0)):
- sent to net-next instead

- Fixes for net-next: /

- Features for net-next:

- [956fd1c0357b] mptcp: use mptcp_win_from_space helper (Geliang
Tang)
- [04bb9a298762] mptcp: add mptcp_space_from_win helper (Geliang
Tang)
- [43124b21c420] mptcp: refer to 'MPTCP' socket in comments
(Davide Caratti):
- TODO: Matth: send that

- Features for net-next (next): /

- Features for other trees:

- [5241db64b229] mptcp: add sched_data helpers (Geliang Tang)
- [0780146a426b] bpf: Add bpf_mptcp_sched_ops (Geliang Tang)
- [e43cf5beaa57] bpf: Add bpf_mptcp_sched_kfunc_set (Geliang Tang)
- [63a09eae945d] selftests/bpf: Add mptcp subflow example
(Nicolas Rybowski)
- [73dbcb149bca] selftests/bpf: Add mptcp pm_nl_ctl link
(Geliang Tang)
- [f43122d29f1a] selftests/bpf: Add mptcp subflow subtest
(Geliang Tang)
- [407e7b1359b1] selftests/bpf: Add bpf scheduler test (Geliang
Tang)
- [6bd6d9beafe8] selftests/bpf: Add bpf_first scheduler & test
(Geliang Tang)
- [7a2eb8374816] selftests/bpf: Add bpf_bkup scheduler & test
(Geliang Tang)
- [bdf0108e2f38] selftests/bpf: Add bpf_rr scheduler & test
(Geliang Tang)
- [fa6ff9007256] selftests/bpf: Add bpf_red scheduler & test
(Geliang Tang)
- [83f3584ef4c1] bpf: Export more bpf_burst related functions
(Geliang Tang)
- [cd6fbbd7206f] selftests/bpf: Add bpf_burst scheduler & test
(Geliang Tang):
- status is the same: waiting for sched refactoring

Extra tests:
- news about Syzkaller? (Christoph):
- /

- news about interop with mptcp.org/other stacks? (?):
- /

- Packetdrill (Davide):
- New PR to reduce unstable tests

- Patchew (Davide):
- Still OK

- CI (Matth):
- https://ci-results.mptcp.dev/flakes.html
- Still OK, hopefully soon less issues with packetdrill tests

Other topics:
- Netdev Conf registration is open:
- https://netdevconf.info/0x18/pages/registration.html
- Early bird rate until 03-Jun-2024

- LPC registration is open as well:
- https://lpc.events/event/18/page/226-attend

- 'ss' bug in Fedora 40:
- there is a bug;
https://bugzilla.redhat.com/show_bug.cgi?id=2279920
- there is a patch
- but no activity
- Matth: check with Davide what can be done: Done

- MPTCP in systemd:
- https://github.com/systemd/systemd/pull/32958
- for the next next version even if it is just a whitelisting

Next meeting:
- /!\ Next one back on Wednesday, the 5th of June.
- 17:30 UTC (8.30am PDT, 5.30pm CEST, 11.30pm CST)
- Still open to everyone!
- https://annuel2.framapad.org/p/mptcp_upstreaming_20240605

Feel free to comment on these topics and suggest new ones for the next meeting!

Talk to you on Wednesday,
Matt

Signature · 1 line
Sponsored by the NGI0 Core fund.