All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] mptcp: improve mptcp-level window tracking
@ 2022-04-15 14:48 Paolo Abeni
  2022-04-15 14:48 ` [PATCH net-next 1/5] mptcp: really share subflow snd_wnd Paolo Abeni
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Paolo Abeni @ 2022-04-15 14:48 UTC (permalink / raw)
  To: mptcp

I've been chasing bad/unstable performances with multiple subflows
on very high speed links.

It looks like the root cause is due to the current mptcp-level
congestion window handling. There are apparently a few different
sub-issues:

- the rcv_wnd is not effectively shared on the tx side, as each
  subflow takes in account only the value received by the underlaying
  TCP connection. This is addressed in patch 1/4

- The mptcp-level offered wnd right edge is currently allowed to shrink.
  Reading section 3.3.4.:

"""
   The receive window is relative to the DATA_ACK.  As in TCP, a
   receiver MUST NOT shrink the right edge of the receive window (i.e.,
   DATA_ACK + receive window).  The receiver will use the data sequence
   number to tell if a packet should be accepted at the connection
   level.
"""

I read the above as we need to reflect window right-edge tracking
on the wire, see patch 3/4.

- The offered window right edge tracking can happen concurrently on
  multiple subflows, but there is no mutex protection. We need an
  additional atomic operation - still patch 3/4

This series additionally bump a few new MIBs to track all the above
(ensure/observe that the suspected races actually take place).

I could not access again the host where the issue was su much
noticeable, still in the current setup the tput changes from
[6-18] Gbps to 19Gbps very stable.

RFC -> v1:
 - added patch 3/5 to address Mat's comment, and rebased the
   following on top of it - I hope Eric may tolerate that, it's
   more an hope than guess ;)

Paolo Abeni (5):
  mptcp: really share subflow snd_wnd
  mptcp: add mib for xmit window sharing
  tcp: allow MPTCP to update the announced window.
  mptcp: never shrink offered window
  mptcp: add more offered MIBs counter.

 include/net/mptcp.h   |  2 +-
 net/ipv4/tcp_output.c | 13 +++++-----
 net/mptcp/mib.c       |  4 +++
 net/mptcp/mib.h       |  6 +++++
 net/mptcp/options.c   | 58 +++++++++++++++++++++++++++++++++++++------
 net/mptcp/protocol.c  | 24 ++++++++++++------
 6 files changed, 84 insertions(+), 23 deletions(-)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 17+ messages in thread
* [PATCH net-next 0/5] mptcp: Improve MPTCP-level window tracking
@ 2022-05-04 21:54 Mat Martineau
  2022-05-04 22:05 ` Mat Martineau
  2022-05-06  2:20 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 17+ messages in thread
From: Mat Martineau @ 2022-05-04 21:54 UTC (permalink / raw)
  To: netdev; +Cc: Mat Martineau, davem, kuba, pabeni, edumazet, matthieu.baerts,
	mptcp

This series improves MPTCP receive window compliance with RFC 8684 and
helps increase throughput on high-speed links. Note that patch 3 makes a
change in tcp_output.c

For the details, Paolo says:

I've been chasing bad/unstable performance with multiple subflows
on very high speed links.

It looks like the root cause is due to the current mptcp-level
congestion window handling. There are apparently a few different
sub-issues:

- the rcv_wnd is not effectively shared on the tx side, as each
  subflow takes in account only the value received by the underlaying
  TCP connection. This is addressed in patch 1/4

- The mptcp-level offered wnd right edge is currently allowed to shrink.
  Reading section 3.3.4.:

"""
   The receive window is relative to the DATA_ACK.  As in TCP, a
   receiver MUST NOT shrink the right edge of the receive window (i.e.,
   DATA_ACK + receive window).  The receiver will use the data sequence
   number to tell if a packet should be accepted at the connection
   level.
"""

I read the above as we need to reflect window right-edge tracking
on the wire, see patch 4/5.

- The offered window right edge tracking can happen concurrently on
  multiple subflows, but there is no mutex protection. We need an
  additional atomic operation - still patch 3/4

This series additionally bumps a few new MIBs to track all the above
(ensure/observe that the suspected races actually take place).

I could not access again the host where the issue was so
noticeable, still in the current setup the tput changes from
[6-18] Gbps to 19Gbps very stable.


Paolo Abeni (5):
  mptcp: really share subflow snd_wnd
  mptcp: add mib for xmit window sharing
  tcp: allow MPTCP to update the announced window
  mptcp: never shrink offered window
  mptcp: add more offered MIBs counter

 include/net/mptcp.h   |  2 +-
 net/ipv4/tcp_output.c | 14 ++++++-----
 net/mptcp/mib.c       |  4 +++
 net/mptcp/mib.h       |  6 +++++
 net/mptcp/options.c   | 58 +++++++++++++++++++++++++++++++++++++------
 net/mptcp/protocol.c  | 32 +++++++++++++++---------
 net/mptcp/protocol.h  |  2 +-
 7 files changed, 90 insertions(+), 28 deletions(-)


base-commit: a37f37a2e7f5ea3ae2a1278f552aa21a8e32c221
-- 
2.36.0


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-05-06  2:20 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-15 14:48 [PATCH net-next 0/5] mptcp: improve mptcp-level window tracking Paolo Abeni
2022-04-15 14:48 ` [PATCH net-next 1/5] mptcp: really share subflow snd_wnd Paolo Abeni
2022-04-15 14:48 ` [PATCH net-next 2/5] mptcp: add mib for xmit window sharing Paolo Abeni
2022-04-15 14:48 ` [PATCH net-next 3/5] tcp: allow MPTCP to update the announced window Paolo Abeni
2022-04-19  0:11   ` Mat Martineau
2022-04-19 10:42     ` Paolo Abeni
2022-04-20 16:18       ` Paolo Abeni
2022-04-15 14:48 ` [PATCH net-next 4/5] mptcp: never shrink offered window Paolo Abeni
2022-04-19  0:29   ` Mat Martineau
2022-04-19 10:40     ` Paolo Abeni
2022-04-15 14:48 ` [PATCH net-next 5/5] mptcp: add more offered MIBs counter Paolo Abeni
2022-04-15 15:10   ` mptcp: add more offered MIBs counter.: Build Failure MPTCP CI
2022-04-15 16:39     ` Matthieu Baerts
2022-04-15 16:54   ` mptcp: add more offered MIBs counter.: Tests Results MPTCP CI
  -- strict thread matches above, loose matches on Subject: below --
2022-05-04 21:54 [PATCH net-next 0/5] mptcp: Improve MPTCP-level window tracking Mat Martineau
2022-05-04 22:05 ` Mat Martineau
2022-05-06  2:20 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.