From: David Miller <davem@davemloft.net>
To: jheffner@psc.edu
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] apply cwnd rules to FIN packets with data
Date: Mon, 05 Feb 2007 15:08:15 -0800 (PST) [thread overview]
Message-ID: <20070205.150815.112291591.davem@davemloft.net> (raw)
In-Reply-To: <45C7B77B.9060506@psc.edu>
From: John Heffner <jheffner@psc.edu>
Date: Mon, 05 Feb 2007 18:02:19 -0500
> David Miller wrote:
> > From: John Heffner <jheffner@psc.edu>
> > Date: Mon, 05 Feb 2007 16:58:18 -0500
> >
> >> This is especially important with TSO enabled. Currently, it will send
> >> a burst of up to 64k at the end of a connection, even when cwnd is much
> >> smaller than 64k. This patch still lets out empty FIN packets, but does
> >> not apply the special case to FINs carrying data.
> >
> > Good catch John.
> >
> > But I think the correct test on skb->len would be to just make
> > sure that it is <= REAL_MSS.
> >
> > What do you think about that? This would match the original intention
> > of the logic in the pre-TSO days.
>
> What was the intention of that logic?
Because a packet is a packet is a packet.
If we let a FIN out it's basically equivalent to a FIN+data
as far as the routers are concerned. Either they will drop
the packet or they won't. And they will do this regardless
of whether data is attached to the FIN.
Getting FINs out fast is important for another reason, the
faster the session closes the faster "smart" intermediate
routers can teardown cached routing or firewall tracking
entries for the flow.
> Actually, I think it would be better to leave the Nagle test as it was
> (which is implicitly < real_mss), because there is obviously no point in
> doing the nagle test when you know there is no more data that will be
> sent.
True.
> However, I can't think of any reason why the cwnd test should not
> apply.
Care to elaborate here? You can view the FIN special case as an off
by one error in the CWND test, it's not going to melt the internet.
:-)
next prev parent reply other threads:[~2007-02-05 23:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-05 21:58 [PATCH] apply cwnd rules to FIN packets with data John Heffner
2007-02-05 22:56 ` David Miller
2007-02-05 23:02 ` John Heffner
2007-02-05 23:08 ` David Miller [this message]
2007-02-06 0:11 ` John Heffner
2007-02-06 0:20 ` Rick Jones
2007-02-06 0:25 ` John Heffner
2007-02-06 1:54 ` David Miller
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=20070205.150815.112291591.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=jheffner@psc.edu \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).