Skip to content

Improvements for TCP PMTU

Fan Du netdev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest4 patches 2 repliesIn review
  2. v43 patches 10 repliesSuperseded
  3. v34 patches 6 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches5 repliesSuperseded
v13 patches10 repliesSuperseded

Changes in v5 from the cover letter

- Zero probe_size before resetting search range.
- Update ip-sysctl.txt for new sysctl knobs.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ipv4: Raise tcp PMTU probe mss base sizeinclude/net/tcp.h+1 -10 replies
2/4ipv4: Use binary search to choose tcp PMTU probe_sizeinclude/net/netns/ipv4.h include/net/tcp.h net/ipv4/sysctl_net_ipv4.c +2 more+23 -30 replies
3/4ipv4: Create probe timer for tcp PMTU as per RFC4821include/net/inet_connection_sock.h include/net/netns/ipv4.h include/net/tcp.h +4 more+51 -21 reply
4/4ipv4: Documenting two sysctls for tcp PMTU probeDocumentation/networking/ip-sysctl.txt+10 -00 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchJohn Heffner
1/4A-b
2/4A-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCHv5 net-next 0/4] Improvements for TCP PMTU

Hi,

This patchset performs some improvements and enhancement for current TCP PMTU as per RFC4821 with the aim to find optimal mms size quickly, and also be adaptive to route changes like enlarged path MTU. Then TCP PMTU could be used to probe a effective pmtu in absence of ICMP message for tunnels(e.g. vxlan) across different networking stack.

Patch1/4: Set probe mss base to 1024 Bytes per RFC4821 Patch2/4: Do not double probe_size for each probing,
use a simple binary search to gain maximum performance. mss for next probing.
Patch3/4: Create a probe timer to detect enlarged path MTU. Patch4/4: Update ip-sysctl.txt for new sysctl knobs.

Changelog:
v5:
- Zero probe_size before resetting search range.
- Update ip-sysctl.txt for new sysctl knobs.
v4:
- Convert probe_size to mss, not directly from search_low/high
- Clamp probe_threshold
- Don't adjust search_high in blackhole probe, so drop orignal patch3
v3:
- Update commit message for patch2
- Fix pseudo timer delta calculation in patch4
v2:
- Introduce sysctl_tcp_probe_threshold to control when probing will stop, as suggested by John Heffner.
- Add patch3 to shrink current mss value for search low boundary.
- Drop cannonical timer usages, implements pseudo timer based on 32bits jiffies tcp_time_stamp, as suggested by Eric Dumazet.

Fan Du (4):
ipv4: Raise tcp PMTU probe mss base size
ipv4: Use binary search to choose tcp PMTU probe_size
ipv4: Create probe timer for tcp PMTU as per RFC4821
ipv4: Documenting two sysctls for tcp PMTU probe

 Documentation/networking/ip-sysctl.txt |   10 ++++++
 include/net/inet_connection_sock.h     |    2 +
 include/net/netns/ipv4.h               |    2 +
 include/net/tcp.h                      |    8 ++++-
 net/ipv4/sysctl_net_ipv4.c             |   14 +++++++++
 net/ipv4/tcp_ipv4.c                    |    2 +
 net/ipv4/tcp_output.c                  |   50 +++++++++++++++++++++++++++++--
 net/ipv4/tcp_timer.c                   |    1 +
 8 files changed, 84 insertions(+), 5 deletions(-)