Skip to content

tcp: implement rb-tree based retransmit queue

Eric Dumazet netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7net: add rb_to_skb() and other rb tree helpersinclude/linux/skbuff.h net/ipv4/tcp_fastopen.c net/ipv4/tcp_input.c +1 more+37 -360 replies
2/7tcp: uninline tcp_write_queue_purge()include/net/tcp.h net/ipv4/tcp.c+15 -140 replies
3/7tcp: tcp_tx_timestamp() cleanupnet/ipv4/tcp.c+5 -30 replies
4/7tcp: tcp_mark_head_lost() optimizationnet/ipv4/tcp_input.c+4 -40 replies
5/7tcp: reduce tcp_fastretrans_alert() verbositynet/ipv4/tcp_input.c+2 -20 replies
6/7tcp: pass previous skb to tcp_shifted_skb()net/ipv4/tcp_input.c+5 -40 replies
7/7tcp: implement rb-tree based retransmit queueinclude/net/sock.h include/net/tcp.h net/ipv4/tcp.c +4 more+245 -1880 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net-next 0/7] tcp: implement rb-tree based retransmit queue

This patch series implement RB-tree based retransmit queue for TCP, to better match modern BDP.

Tested:

On receiver :
netem on ingress : delay 150ms 200us loss 1
GRO disabled to force stress and SACK storms.

for f in seq 1 10
do
./netperf -H lpaa6 -l30 -- -K bbr -o THROUGHPUT|tail -1
done | awk '{print $0} {sum += $0} END {printf "%7u\n",sum}'

Before patch :

323.87  351.48  339.59  338.62  306.72
204.07  304.93  291.88  202.47  176.88

-> 2840

After patch:

1700.83 2207.98 2070.17 1544.26 2114.76
2124.89 1693.14 1080.91 2216.82 1299.94
-> 18053

Average of 1805 Mbits istead of 284 Mbits.

Eric Dumazet (7):
net: add rb_to_skb() and other rb tree helpers
tcp: uninline tcp_write_queue_purge()
tcp: tcp_tx_timestamp() cleanup
tcp: tcp_mark_head_lost() optimization
tcp: reduce tcp_fastretrans_alert() verbosity
tcp: pass previous skb to tcp_shifted_skb()
tcp: implement rb-tree based retransmit queue

 include/linux/skbuff.h  |  18 +++++
 include/net/sock.h      |   7 +-
 include/net/tcp.h       | 100 ++++++++++++--------------
 net/ipv4/tcp.c          |  63 ++++++++++++----
 net/ipv4/tcp_fastopen.c |   8 +--
 net/ipv4/tcp_input.c    | 187 ++++++++++++++++++++++++------------------------
 net/ipv4/tcp_ipv4.c     |   2 +-
 net/ipv4/tcp_output.c   | 137 +++++++++++++++++++----------------
 net/ipv4/tcp_timer.c    |  24 ++++---
 net/sched/sch_netem.c   |  14 ++--
 10 files changed, 311 insertions(+), 249 deletions(-)
Signature · 1 line
2.14.2.920.gcf0c67979c-goog