From: David Miller <davem@davemloft.net>
To: nanditad@google.com
Cc: ncardwell@google.com, eric.dumazet@gmail.com, ycheng@google.com,
edumazet@google.com, ilpo.jarvinen@cs.helsinki.fi,
netdev@vger.kernel.org
Subject: Re: [PATCH net-next] tcp: remove bad timeout logic in fast recovery
Date: Sun, 19 May 2013 23:51:48 -0700 (PDT) [thread overview]
Message-ID: <20130519.235148.1765113560820850366.davem@davemloft.net> (raw)
In-Reply-To: <CAB_+Fg57tpcBzsjZQHQm9dpF+LoBVTZauc+UGrwA6U=Xqbq+fA@mail.gmail.com>
From: Nandita Dukkipati <nanditad@google.com>
Date: Fri, 17 May 2013 22:52:34 -0700
> On Fri, May 17, 2013 at 8:17 PM, Neal Cardwell <ncardwell@google.com> wrote:
>> On Fri, May 17, 2013 at 9:46 PM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
>>> On Fri, 2013-05-17 at 16:45 -0700, Yuchung Cheng wrote:
>>>> tcp_timeout_skb() was intended to trigger fast recovery on timeout,
>>>> unfortunately in reality it often causes spurious retransmission
>>>> storms during fast recovery. The particular sign is fast retransmit
>>>> over highest sacked sequence (SND.FACK).
>>>>
>>>> Currently the RTO timer re-arming (as in RFC6298) offers a nice cushion
>>>> to avoid spurious timeout: when SND.UNA advances the sender re-arms
>>>> RTO and extends the timeout by icsk_rto. The sender does not offset
>>>> the time elapsed since the packet at SND.UNA was sent.
>>>>
>>>> But if the next (DUP)ACK arrives later than ~RTTVAR and triggers
>>>> tcp_fastretrans_alert(), then tcp_timeout_skb() will mark any packet
>>>> sent before icsk_rto interval lost, including one that's above the
>>>> highest sacked sequence. Most likely a large part of scorebard will
>>>> be marked.
>>>>
>>>> If most packets are not lost then the subsequence DUPACKs with new
>>>> SACK blockes will cause the sender to continue retransmit packets
>>>> beyond SND.FACK spuriously right. Even only one packet is lost the
>>>> sender may falsely retransmit almost the entire window.
>>>>
>>>> The situation becomes common in the world of bufferbloat: the RTT
>>>> continues to grow as the queue builds up but RTTVAR remains small and
>>>> close to the minimum 200ms. If a data packet is lost and the DUPACK
>>>> triggered by the next data packet is slightly delayed, then a spurious
>>>> retransmission storm forms.
>>>>
>>>> As the original comment on tcp_timeout_skb() suggests: the usefulness
>>>> of this feature is questionable. It also wastes cycles walking the
>>>> sack scoreboard and is actually harmful because of the false recovery.
>>>> It's time to remove this.
>>>>
>>>> Signed-off-by: Yuchung Cheng <ycheng@google.com>
>>>> ---
>>>> include/linux/tcp.h | 1 -
>>>> include/net/tcp.h | 1 -
>>>> net/ipv4/tcp_input.c | 65 +---------------------------------------------------
>>>> 3 files changed, 1 insertion(+), 66 deletions(-)
>>>
>>> Acked-by: Eric Dumazet <edumazet@google.com>
>>
>> Acked-by: Neal Cardwell <ncardwell@google.com>
>
> Acked-by: Nandita Dukkipati <nanditad@google.com>
Applied, thanks everyone.
prev parent reply other threads:[~2013-05-20 6:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-17 23:45 [PATCH net-next] tcp: remove bad timeout logic in fast recovery Yuchung Cheng
2013-05-18 1:46 ` Eric Dumazet
2013-05-18 3:17 ` Neal Cardwell
2013-05-18 5:52 ` Nandita Dukkipati
2013-05-20 6:51 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130519.235148.1765113560820850366.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=eric.dumazet@gmail.com \
--cc=ilpo.jarvinen@cs.helsinki.fi \
--cc=nanditad@google.com \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=ycheng@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox