[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1335217101.5205.79.camel@edumazet-glaptop>
Date: Mon, 23 Apr 2012 23:38:21 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: David Miller <davem@...emloft.net>
Cc: rick.jones2@...com, netdev@...r.kernel.org, therbert@...gle.com,
ncardwell@...gle.com, maze@...gle.com, ycheng@...gle.com,
ilpo.jarvinen@...sinki.fi
Subject: Re: [PATCH 2/2 net-next] tcp: sk_add_backlog() is too agressive
for TCP
On Mon, 2012-04-23 at 17:01 -0400, David Miller wrote:
> From: Eric Dumazet <eric.dumazet@...il.com>
> Date: Mon, 23 Apr 2012 22:37:26 +0200
>
> > We could try to coalesce ACKs before backlogging them. I'll work on
> > this.
>
> Great idea, although I wonder about the effect this could have on RTT
> measurements. Instead of having N RTT measurements, we'd have just
> one.
>
> Granted, what happens right now wrt. RTT measurements with such huge
> ACK backlogs isn't all that nice either.
>
> Ideally, perhaps, we'd do a timestamp diff at the time we insert the
> packet into the backlog. That way we wouldn't gain the RTT inaccuracy
> introduced by such queueing delays and ACK backlogs.
>
> Another way to look at it is that the coalesced scheme would actually
> improve RTT measurements, since the most accurate (and least
> "delayed") of the timestamps would be the only one processed :-)
The big part of the work is not doing the coalesce, but also counting
the number of ACKS that are going to be carried into TCP stack if we
want cwnd being updated correctly.
Basically I'll have to add a new skb field (in cb[]) to properly count
number of ACKS 'included' in a single packet.
About the RTT, some congestion modules need TCP_CONG_RTT_STAMP but time
is taken when backlog processing is done, that is after backlog in/out
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists