Linux Netfilter development
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
	Netfilter Developer Mailing List
	<netfilter-devel@vger.kernel.org>
Subject: Re: TCP connection tracking timeout
Date: Wed, 30 Jul 2008 12:07:49 +0200	[thread overview]
Message-ID: <48903D75.2040908@trash.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0807291413350.1378@blackhole.kfki.hu>

Jozsef Kadlecsik wrote:
> Hi,
> 
> On Tue, 29 Jul 2008, Patrick McHardy wrote:
> 
>> Herbert Xu wrote:
>>> On Tue, Jul 29, 2008 at 07:00:46AM +0200, Patrick McHardy wrote:
>>>>> That sounds like a pretty neat idea. I'm testing a patch now, I'll
>>>>> send it over in a few minutes if it survives :)
>>>   
>>>> This seems to work. I'm wondering however if this will really help.
>>>> We already track retransmissions and decrease the timeout on the
>>>> 3rd retransmission, so this should only help if both the sender and
>>>> the receiver went down.
>>> The problem with requiring a 3rd retransmit is that once a socket
>>> is orphaned (closed) on Linux, we fast-track the retransmit timeout
>>> process.  In particular, if it's already maxed out the RTO prior
>>> to closing, we'll kill it straight away.
>>>
>>> This is in violation of the RFCs but it's an important optimisation.
>> Thanks for this explanation. Unless Jozsef sees something wrong with this
>> patch, I'll queue it with a proper changelog. Its small enough, so perhaps
>> we can even put this in 2.6.27.
> 
> Seems to be fine - as we cannot assume everything runs Linux (;-), the 
> only risk is that we may kill the conntrack entry too early and then it'll 
> mark packets as INVALID unnecessarily. But 5min timeout when there are 
> unacknowledged data should be enough to avoid it.

Thanks, I've queued the patch.

      reply	other threads:[~2008-07-30 10:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080729030104.GA15915@gondor.apana.org.au>
2008-07-29  4:47 ` TCP connection tracking timeout Patrick McHardy
2008-07-29  5:00   ` Patrick McHardy
2008-07-29  6:01     ` Herbert Xu
2008-07-29  6:13       ` Patrick McHardy
2008-07-29  9:07         ` Herbert Xu
2008-07-29  9:30           ` Herbert Xu
2008-07-29 12:30           ` Jozsef Kadlecsik
2008-07-29 13:34             ` Herbert Xu
2008-07-29 20:34               ` Jozsef Kadlecsik
2008-07-30  1:35                 ` Herbert Xu
2008-07-30 21:18                   ` Jozsef Kadlecsik
2008-07-31 12:19                     ` Herbert Xu
2008-07-31 19:26                       ` Jozsef Kadlecsik
2008-08-01 11:58                         ` Herbert Xu
2008-07-29 12:20         ` Jozsef Kadlecsik
2008-07-30 10:07           ` Patrick McHardy [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=48903D75.2040908@trash.net \
    --to=kaber@trash.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=kadlec@blackhole.kfki.hu \
    --cc=netfilter-devel@vger.kernel.org \
    /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