Pengcheng Yang
a71df406a6
tcp: fix F-RTO may not work correctly when receiving DSACK
[ Upstream commit d9157f6806d1499e173770df1f1b234763de5c79 ]
Currently DSACK is regarded as a dupack, which may cause
F-RTO to incorrectly enter "loss was real" when receiving
DSACK.
Packetdrill to demonstrate:
// Enable F-RTO and TLP
0 `sysctl -q net.ipv4.tcp_frto=2`
0 `sysctl -q net.ipv4.tcp_early_retrans=3`
0 `sysctl -q net.ipv4.tcp_congestion_control=cubic`
// Establish a connection
+0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
+0 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
+0 bind(3, ..., ...) = 0
+0 listen(3, 1) = 0
// RTT 10ms, RTO 210ms
+.1 < S 0:0(0) win 32792 <mss 1000,sackOK,nop,nop,nop,wscale 7>
+0 > S. 0:0(0) ack 1 <...>
+.01 < . 1:1(0) ack 1 win 257
+0 accept(3, ..., ...) = 4
// Send 2 data segments
+0 write(4, ..., 2000) = 2000
+0 > P. 1:2001(2000) ack 1
// TLP
+.022 > P. 1001:2001(1000) ack 1
// Continue to send 8 data segments
+0 write(4, ..., 10000) = 10000
+0 > P. 2001:10001(8000) ack 1
// RTO
+.188 > . 1:1001(1000) ack 1
// The original data is acked and new data is sent(F-RTO step 2.b)
+0 < . 1:1(0) ack 2001 win 257
+0 > P. 10001:12001(2000) ack 1
// D-SACK caused by TLP is regarded as a dupack, this results in
// the incorrect judgment of "loss was real"(F-RTO step 3.a)
+.022 < . 1:1(0) ack 2001 win 257 <sack 1001:2001,nop,nop>
// Never-retransmitted data(3001:4001) are acked and
// expect to switch to open state(F-RTO step 3.b)
+0 < . 1:1(0) ack 4001 win 257
+0 %{ assert tcpi_ca_state == 0, tcpi_ca_state }%
Fixes: e33099f96d ("tcp: implement RFC5682 F-RTO")
Signed-off-by: Pengcheng Yang <[email protected]>
Acked-by: Neal Cardwell <[email protected]>
Tested-by: Neal Cardwell <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
|
2022-05-09 09:03:26 +02:00 |
| .. |
|
bpfilter
|
|
|
|
netfilter
|
netfilter: ipt_CLUSTERIP: fix refcount leak in clusterip_tg_check()
|
2022-01-27 09:19:35 +01:00 |
|
af_inet.c
|
gso: do not skip outer ip header in case of ipip and net_failover
|
2022-03-02 11:41:06 +01:00 |
|
ah4.c
|
|
|
|
arp.c
|
ipv4: Invalidate neighbour for broadcast address upon address addition
|
2022-04-15 14:18:33 +02:00 |
|
cipso_ipv4.c
|
|
|
|
datagram.c
|
|
|
|
devinet.c
|
net: return correct error code
|
2021-12-08 09:01:09 +01:00 |
|
esp4.c
|
esp: Fix possible buffer overflow in ESP transformation
|
2022-03-28 08:46:44 +02:00 |
|
esp4_offload.c
|
|
|
|
fib_frontend.c
|
ipv4: Invalidate neighbour for broadcast address upon address addition
|
2022-04-15 14:18:33 +02:00 |
|
fib_lookup.h
|
|
|
|
fib_notifier.c
|
|
|
|
fib_rules.c
|
ipv6: fix memory leak in fib6_rule_suppress
|
2021-12-08 09:01:13 +01:00 |
|
fib_semantics.c
|
net: ipv4: fix route with nexthop object delete warning
|
2022-04-15 14:18:37 +02:00 |
|
fib_trie.c
|
|
|
|
fou.c
|
|
|
|
gre_demux.c
|
|
|
|
gre_offload.c
|
|
|
|
icmp.c
|
ipv4/icmp: l3mdev: Perform icmp error route lookup on source device routing table (v2)
|
2021-09-12 08:56:40 +02:00 |
|
igmp.c
|
igmp: Add ip_mc_list lock in ip_check_mc_rcu
|
2021-09-12 08:56:40 +02:00 |
|
inet_connection_sock.c
|
tcp: fix race condition when creating child sockets from syncookies
|
2022-04-27 13:50:45 +02:00 |
|
inet_diag.c
|
inet_diag: fix kernel-infoleak for UDP sockets
|
2021-12-22 09:29:36 +01:00 |
|
inet_fragment.c
|
inet: frags: annotate races around fqdir->dead and fqdir->high_thresh
|
2022-01-27 09:19:54 +01:00 |
|
inet_hashtables.c
|
tcp: fix race condition when creating child sockets from syncookies
|
2022-04-27 13:50:45 +02:00 |
|
inet_timewait_sock.c
|
|
|
|
inetpeer.c
|
|
|
|
ip_forward.c
|
|
|
|
ip_fragment.c
|
inet: frags: annotate races around fqdir->dead and fqdir->high_thresh
|
2022-01-27 09:19:54 +01:00 |
|
ip_gre.c
|
ip_gre: Make o_seqno start from 0 in native mode
|
2022-05-09 09:03:25 +02:00 |
|
ip_input.c
|
|
|
|
ip_options.c
|
|
|
|
ip_output.c
|
ipv4: tcp: send zero IPID in SYNACK messages
|
2022-02-01 17:24:39 +01:00 |
|
ip_sockglue.c
|
|
|
|
ip_tunnel.c
|
net: Set true network header for ECN decapsulation
|
2021-08-04 12:27:39 +02:00 |
|
ip_tunnel_core.c
|
|
|
|
ip_vti.c
|
|
|
|
ipcomp.c
|
|
|
|
ipconfig.c
|
|
|
|
ipip.c
|
|
|
|
ipmr.c
|
ipmr,ip6mr: acquire RTNL before calling ip[6]mr_free_table() on failure path
|
2022-02-16 12:52:51 +01:00 |
|
ipmr_base.c
|
|
|
|
Kconfig
|
|
|
|
Makefile
|
|
|
|
metrics.c
|
|
|
|
netfilter.c
|
|
|
|
netlink.c
|
|
|
|
nexthop.c
|
net: nexthop: release IPv6 per-cpu dsts when replacing a nexthop group
|
2021-12-01 09:23:33 +01:00 |
|
ping.c
|
ping: remove pr_err from ping_lookup
|
2022-03-02 11:41:05 +01:00 |
|
proc.c
|
|
|
|
protocol.c
|
|
|
|
raw.c
|
ipv4: raw: lock the socket in raw_bind()
|
2022-02-01 17:24:39 +01:00 |
|
raw_diag.c
|
|
|
|
route.c
|
ipv4: use siphash instead of Jenkins in fnhe_hashfun()
|
2021-11-02 19:46:11 +01:00 |
|
syncookies.c
|
|
|
|
sysctl_net_ipv4.c
|
|
|
|
tcp.c
|
tcp: make tcp_read_sock() more robust
|
2022-03-19 13:40:17 +01:00 |
|
tcp_bbr.c
|
tcp_bbr: fix u32 wrap bug in round logic if bbr_init() called after 2B packets
|
2021-08-18 08:57:01 +02:00 |
|
tcp_bic.c
|
|
|
|
tcp_bpf.c
|
bpf, sockmap: Fix double uncharge the mem of sk_msg
|
2022-04-15 14:18:16 +02:00 |
|
tcp_cdg.c
|
|
|
|
tcp_cong.c
|
|
|
|
tcp_cubic.c
|
tcp_cubic: fix spurious Hystart ACK train detections for not-cwnd-limited flows
|
2021-12-01 09:23:33 +01:00 |
|
tcp_dctcp.c
|
|
|
|
tcp_dctcp.h
|
|
|
|
tcp_diag.c
|
|
|
|
tcp_fastopen.c
|
tcp: enable data-less, empty-cookie SYN with TFO_SERVER_COOKIE_NOT_REQD
|
2021-09-22 12:26:33 +02:00 |
|
tcp_highspeed.c
|
|
|
|
tcp_htcp.c
|
|
|
|
tcp_hybla.c
|
|
|
|
tcp_illinois.c
|
|
|
|
tcp_input.c
|
tcp: fix F-RTO may not work correctly when receiving DSACK
|
2022-05-09 09:03:26 +02:00 |
|
tcp_ipv4.c
|
tcp: Fix potential use-after-free due to double kfree()
|
2022-04-27 13:50:46 +02:00 |
|
tcp_lp.c
|
|
|
|
tcp_metrics.c
|
|
|
|
tcp_minisocks.c
|
tcp: md5: incorrect tcp_header_len for incoming connections
|
2022-05-09 09:03:24 +02:00 |
|
tcp_nv.c
|
|
|
|
tcp_offload.c
|
net, gro: Set inner transport header offset in tcp/udp GRO hook
|
2021-08-12 13:20:56 +02:00 |
|
tcp_output.c
|
tcp: fix potential xmit stalls caused by TCP_NOTSENT_LOWAT
|
2022-05-09 09:03:25 +02:00 |
|
tcp_rate.c
|
tcp: ensure to use the most recently sent skb when filling the rate sample
|
2022-05-09 09:03:24 +02:00 |
|
tcp_recovery.c
|
|
|
|
tcp_scalable.c
|
|
|
|
tcp_timer.c
|
|
|
|
tcp_ulp.c
|
|
|
|
tcp_vegas.c
|
|
|
|
tcp_vegas.h
|
|
|
|
tcp_veno.c
|
|
|
|
tcp_westwood.c
|
|
|
|
tcp_yeah.c
|
|
|
|
tunnel4.c
|
|
|
|
udp.c
|
udp: call udp_encap_enable for v6 sockets when enabling encap
|
2022-04-15 14:18:01 +02:00 |
|
udp_diag.c
|
|
|
|
udp_impl.h
|
|
|
|
udp_offload.c
|
net, gro: Set inner transport header offset in tcp/udp GRO hook
|
2021-08-12 13:20:56 +02:00 |
|
udp_tunnel.c
|
|
|
|
udplite.c
|
|
|
|
xfrm4_input.c
|
|
|
|
xfrm4_output.c
|
|
|
|
xfrm4_policy.c
|
|
|
|
xfrm4_protocol.c
|
|
|
|
xfrm4_state.c
|
|
|
|
xfrm4_tunnel.c
|
|
|