Skip to content

tcp: RACK fast recovery

Yuchung Cheng netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 1 replyIn review
  2. v113 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13tcp: new helper function for RACK loss detectionnet/ipv4/tcp_recovery.c+14 -70 replies
2/13tcp: new helper for RACK to detect lossinclude/net/tcp.h net/ipv4/tcp_input.c net/ipv4/tcp_recovery.c+22 -150 replies
3/13tcp: record most recent RTT in RACK loss detectioninclude/linux/tcp.h include/net/tcp.h net/ipv4/tcp_input.c +1 more+50 -350 replies
4/13tcp: add reordering timer in RACK loss detectioninclude/net/inet_connection_sock.h include/net/tcp.h net/ipv4/inet_diag.c +6 more+68 -120 replies
5/13tcp: use sequence to break TS ties for RACK loss detectioninclude/linux/tcp.h include/net/tcp.h net/ipv4/tcp_input.c +1 more+19 -60 replies
6/13tcp: check undo conditions before detecting lossesnet/ipv4/tcp_input.c+20 -130 replies
7/13tcp: enable RACK loss detection to trigger recoveryinclude/net/tcp.h net/ipv4/tcp_input.c net/ipv4/tcp_recovery.c+35 -210 replies
8/13tcp: extend F-RTO to catch more spurious timeoutsnet/ipv4/tcp_input.c+19 -140 replies
9/13tcp: remove forward retransmit featureinclude/linux/tcp.h net/ipv4/tcp_input.c net/ipv4/tcp_output.c+3 -640 replies
10/13tcp: remove early retransmitDocumentation/networking/ip-sysctl.txt include/linux/tcp.h include/net/tcp.h +9 more+12 -1110 replies
11/13tcp: remove RFC4653 NCRnet/ipv4/tcp_input.c+0 -150 replies
12/13tcp: remove thin_dupack featureDocumentation/networking/ip-sysctl.txt include/linux/tcp.h net/ipv4/sysctl_net_ipv4.c +2 more+3 -370 replies
13/13tcp: disable fack by defaultnet/ipv4/tcp_input.c+3 -20 replies

Reviews trailers per patch

All 13 patches have a Reviewed-by or Acked-by.

PatchEric Dumazet
1/13A-b
2/13A-b
3/13A-b
4/13A-b
5/13A-b
6/13A-b
7/13A-b
8/13A-b
9/13A-b
10/13A-b
11/13A-b
12/13A-b
13/13A-b

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

Read the v2 thread

Cover letter [PATCH net-next v2 00/13] tcp: RACK fast recovery

The patch set enables RACK loss detection (draft-ietf-tcpm-rack-01) to trigger fast recovery with a reordering timer.

Previously RACK has been running in auxiliary mode where it is used to detect packet losses once the recovery has triggered by other algorithms (e.g., FACK). By inspecting packet timestamps, RACK can start ACK-driven repairs timely. A few similar heuristics are no longer needed and are either removed or disabled to reduce the complexity of the Linux TCP loss recovery engine:

1. FACK (Forward Acknowledgement)
2. Early Retransmit (RFC5827)
3. thin_dupack (fast recovery on single DUPACK for thin-streams)
4. NCR (Non-Congestion Robustness RFC4653) (RFC4653)
5. Forward Retransmit

After this change, Linux's loss recovery algorithms consist of
1. Conventional DUPACK threshold approach (RFC6675)
2. RACK and Tail Loss Probe (draft-ietf-tcpm-rack-01)
3. RTO plus F-RTO extension (RFC5682)

The patch set has been tested on Google servers extensively and presented in several IETF meetings. The data suggests that RACK successfully improves recovery performance:
https://www.ietf.org/proceedings/97/slides/slides-97-tcpm-draft-ietf-tcpm-rack-01.pdf
https://www.ietf.org/proceedings/96/slides/slides-96-tcpm-3.pdf

Yuchung Cheng (13):
tcp: new helper function for RACK loss detection
tcp: new helper for RACK to detect loss
tcp: record most recent RTT in RACK loss detection
tcp: add reordering timer in RACK loss detection
tcp: use sequence to break TS ties for RACK loss detection
tcp: check undo conditions before detecting losses
tcp: enable RACK loss detection to trigger recovery
tcp: extend F-RTO to catch more spurious timeouts
tcp: remove forward retransmit feature
tcp: remove early retransmit
tcp: remove RFC4653 NCR
tcp: remove thin_dupack feature
tcp: disable fack by default

 Documentation/networking/ip-sysctl.txt |  31 +----
 include/linux/tcp.h                    |   8 +-
 include/net/inet_connection_sock.h     |   4 +-
 include/net/tcp.h                      |  40 ++----
 net/ipv4/inet_diag.c                   |   2 +-
 net/ipv4/sysctl_net_ipv4.c             |   7 --
 net/ipv4/tcp.c                         |   9 +-
 net/ipv4/tcp_input.c                   | 224 +++++++++++++--------------------
 net/ipv4/tcp_ipv4.c                    |   2 +-
 net/ipv4/tcp_metrics.c                 |   1 -
 net/ipv4/tcp_minisocks.c               |   1 -
 net/ipv4/tcp_output.c                  |  75 ++---------
 net/ipv4/tcp_recovery.c                | 148 ++++++++++++++++------
 net/ipv4/tcp_timer.c                   |   4 +-
 net/ipv6/tcp_ipv6.c                    |   2 +-
 15 files changed, 237 insertions(+), 321 deletions(-)
Signature · 1 line
2.11.0.483.g087da7b7c-goog