Re: [aqm] CoDel on high-speed links

Steven Blake <slblake@petri-meat.com> Tue, 09 June 2015 22:07 UTC

Return-Path: <slblake@petri-meat.com>
X-Original-To: aqm@ietfa.amsl.com
Delivered-To: aqm@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4FA401A8759 for <aqm@ietfa.amsl.com>; Tue, 9 Jun 2015 15:07:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5XAzUN34FOTx for <aqm@ietfa.amsl.com>; Tue, 9 Jun 2015 15:07:08 -0700 (PDT)
Received: from relay.mailchannels.net (tkt-001-i373.relay.mailchannels.net [174.136.5.175]) by ietfa.amsl.com (Postfix) with ESMTP id 5F6511A8754 for <aqm@ietf.org>; Tue, 9 Jun 2015 15:07:07 -0700 (PDT)
X-Sender-Id: totalchoicehosting|x-authuser|slblake+petri-meat.com
Received: from elom.tchmachines.com (ip-10-229-11-165.us-west-2.compute.internal [10.229.11.165]) by relay.mailchannels.net (Postfix) with ESMTPA id 53C3060D58; Tue, 9 Jun 2015 22:07:04 +0000 (UTC)
X-Sender-Id: totalchoicehosting|x-authuser|slblake+petri-meat.com
Received: from elom.tchmachines.com (elom.tchmachines.com [10.83.15.107]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:2500 (trex/5.4.8); Tue, 09 Jun 2015 22:07:05 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: totalchoicehosting|x-authuser|slblake+petri-meat.com
X-MailChannels-Auth-Id: totalchoicehosting
X-MC-Loop-Signature: 1433887624682:3850123618
X-MC-Ingress-Time: 1433887624682
Received: from [98.122.181.13] (port=47579 helo=tachyon.blake.site) by elom.tchmachines.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.85) (envelope-from <slblake@petri-meat.com>) id 1Z2Rfe-0006JS-Vn; Tue, 09 Jun 2015 18:06:59 -0400
Message-ID: <1433887622.4324.103.camel@petri-meat.com>
From: Steven Blake <slblake@petri-meat.com>
To: David Lang <david@lang.hm>
Date: Tue, 09 Jun 2015 18:07:02 -0400
In-Reply-To: <alpine.DEB.2.02.1506091347060.13301@nftneq.ynat.uz>
References: <1433866312.4324.29.camel@petri-meat.com> <CAA93jw6eypSDqcBwaaNfXNuMjx0bBE2JbsOu_oU5H2Bpdw1wqA@mail.gmail.com> <1433882422.4324.87.camel@petri-meat.com> <alpine.DEB.2.02.1506091347060.13301@nftneq.ynat.uz>
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.12.8 (3.12.8-1.fc21)
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-AuthUser: slblake+petri-meat.com
Archived-At: <http://mailarchive.ietf.org/arch/msg/aqm/dUL4vNajViGJ1AqTZLekmI20nEg>
Cc: "aqm@ietf.org" <aqm@ietf.org>
Subject: Re: [aqm] CoDel on high-speed links
X-BeenThere: aqm@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "Discussion list for active queue management and flow isolation." <aqm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/aqm>, <mailto:aqm-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/aqm/>
List-Post: <mailto:aqm@ietf.org>
List-Help: <mailto:aqm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/aqm>, <mailto:aqm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Jun 2015 22:07:09 -0000

On Tue, 2015-06-09 at 13:52 -0700, David Lang wrote:
> On Tue, 9 Jun 2015, Steven Blake wrote:
> 
> >>
> >> Except that tcp's drop their rates by (typically) half on a drop, and
> >> a matter of debate as to when on CE.
> >
> > Ex/ 10 GE link, ~10K flows (average).  During a congestion epoch, CoDel
> > with interval = 100 msec starts dropping 257 packets/sec after 5 secs.
> > How many flows is that effectively managing?
> 
> how fast are the flows ramping back up to the prior speed?
> 
> if you have 10K flows and ~250 drops/sec, over 40 seconds each could end up with 
> one drop. If that keeps the link uncongested, it's doing it's job.

According to my calculations, with RTT = 25 msec and MTU = 1500 bytes,
you need to be going around 29 Mbps average (oscillating between 2/3 and
4/3 of this) to need to see a drop every 40 seconds.  For 1 Mbps average
you need ~1.4 secs between drops.    For 10K 1 Mbps flows you then need
to drop ~7000 packets/sec (~0.8% drop frequency for MTU-sized packets on
a 10 GE link).

Of course this all assumes uniform stationary elephants which is never
the case in real life, but you see how CoDel's drop frequency (for
interval = 100 msec) is not even in the right ballpark.

> 
> Unfortunantly, when there is a drop, the affected flow slows down a LOT, so if 
> you are near the edge of being uncongested, you may not need to slow that many 
> flows down to be uncongested. Then as the flows ramp back up, the link becomes 
> congested again and some flow needs to be slowed down. Hopefully CoDel is going 
> to slow down a different flow the next time.
> 
> With the extisting feedback that can be provided, it's not possible to slow all 
> flows down 5%, all you could do is to slow 10% of the flows by 50% to reduce 
> overall load by 5% 

The more flows you have, the more flows you need to nuke to slow things
down even a little bit.  The more flows you need to nuke, the faster you
need to drop packets.


Regards,

// Steve