Re: [aqm] PIE vs. RED

"Francini, Andrea (Andrea)" <andrea.francini@alcatel-lucent.com> Fri, 14 August 2015 14:44 UTC

Return-Path: <andrea.francini@alcatel-lucent.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 C28231A21AB for <aqm@ietfa.amsl.com>; Fri, 14 Aug 2015 07:44:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.91
X-Spam-Level:
X-Spam-Status: No, score=-6.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, T_RP_MATCHES_RCVD=-0.01] 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 YkYOONtQ-AI1 for <aqm@ietfa.amsl.com>; Fri, 14 Aug 2015 07:44:43 -0700 (PDT)
Received: from smtp-fr.alcatel-lucent.com (fr-hpida-esg-02.alcatel-lucent.com [135.245.210.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0D6901A21B9 for <aqm@ietf.org>; Fri, 14 Aug 2015 07:44:42 -0700 (PDT)
Received: from us70uusmtp3.zam.alcatel-lucent.com (unknown [135.5.2.65]) by Websense Email Security Gateway with ESMTPS id B4678146D1835; Fri, 14 Aug 2015 14:44:37 +0000 (GMT)
Received: from US70UWXCHHUB02.zam.alcatel-lucent.com (us70uwxchhub02.zam.alcatel-lucent.com [135.5.2.49]) by us70uusmtp3.zam.alcatel-lucent.com (GMO) with ESMTP id t7EEiblb017306 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 14 Aug 2015 14:44:37 GMT
Received: from US70TWXCHMBA12.zam.alcatel-lucent.com ([169.254.6.242]) by US70UWXCHHUB02.zam.alcatel-lucent.com ([135.5.2.49]) with mapi id 14.03.0195.001; Fri, 14 Aug 2015 10:44:37 -0400
From: "Francini, Andrea (Andrea)" <andrea.francini@alcatel-lucent.com>
To: "Rong Pan (ropan)" <ropan@cisco.com>, Roland Bless <roland.bless@kit.edu>, Jonathan Morton <chromatix99@gmail.com>
Thread-Topic: [aqm] PIE vs. RED
Thread-Index: AQHQ1hj1JNTnP9Wpi0Omyy4DEGnv6J4KhuYQgABL4ID//8cFIIAAZecAgABuF+A=
Date: Fri, 14 Aug 2015 14:44:36 +0000
Message-ID: <1BFAC0A1D7955144A2444E902CB628F865B081EF@US70TWXCHMBA12.zam.alcatel-lucent.com>
References: <55CC8D6B.7030007@kit.edu> <CAJq5cE2sNFvLPvrB82dRrN+nbZLNRuo+TmCVgSYCp4TumN70Sw@mail.gmail.com> <55CD1C9A.9040406@kit.edu> <1BFAC0A1D7955144A2444E902CB628F865B08093@US70TWXCHMBA12.zam.alcatel-lucent.com> <D1F2716B.654D%ropan@cisco.com> <1BFAC0A1D7955144A2444E902CB628F865B080C1@US70TWXCHMBA12.zam.alcatel-lucent.com> <D1F297FC.6569%ropan@cisco.com>
In-Reply-To: <D1F297FC.6569%ropan@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [135.5.27.18]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/aqm/r0T6YQCX1nStWMbsy_3oQ_sYYK0>
Cc: "aqm@ietf.org" <aqm@ietf.org>
Subject: Re: [aqm] PIE vs. RED
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: <https://mailarchive.ietf.org/arch/browse/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: Fri, 14 Aug 2015 14:44:45 -0000

Hi Rong, 

Thank you for pointing to Figure 8 in your HPSR 2013 paper.

At first glance it exemplifies well the stability vs. variability of the equilibrium point established by the two schemes as the traffic intensity (number of concurrent flows) changes.

However, there are two things I cannot explain after a closer look:

1. At the very beginning the PIE curve shows a delay peak at about 240ms. With 2MB buffer size and 100Mbps rate, the maximum delay I would expect is 160ms (as indeed shown by the RED curve). Do you know where the extra 80ms come from in the PIE case? It really looks like it is a single delay sample, so maybe it is just an issue with the initialization of the variables used in the delay measurements?

2. If I understand correctly the RED configuration used for the plot, min_th is set at 32ms (20% of 2MB) and max_th is set at 128ms (80%). In the plot the RED delay rightly oscillates within this two bounds. However, if I compute the theoretical packet drop rate p using the formula  p = (1.22 * MSS / BW * RTT)^2 in the case with 50 flows (corresponding to the 100s-150s interval in the experiment) I get a drop rate value around 0.5%. Since you used a max_p of 0.1 (or 10%), your delay plot places the drop probability well above 5%. With the theoretical value of 0.5% from the formula the average delay would be only 1/20 of the way between min_th and max_th, or about 37ms, much lower than the almost 100ms of the plot. I ran an ns2 simulation with the parameters of the paper, getting steady-state average and maximum delays of 36ms and 47ms and a drop rate of 0.29% (with PIE I get 20.1ms, 39.4ms, and 0.38%). The only way I can explain the larger RED delay of your plot is with a lower value of max_p (e.g., with max_p = 1% instead of 10% my simulation yields 62.3ms and 71.9ms for the average and maximum delay, with 0.2% average drop rate; the delay is still not at the level of Figure 8, but getting closer). Note that with thresholds tuned around the 20ms delay target of PIE (min_th = 16ms, max_th = 128ms) and max_p = 5%, the simulation yields Avg/Max delay of 17.8ms/29.5ms, pretty much the same as PIE. Overall, can you explain the discrepancy between expected and plotted delay for RED in Figure 8?

Thank you,

Andrea

-----Original Message-----
From: Rong Pan (ropan) [mailto:ropan@cisco.com] 
Sent: Thursday, August 13, 2015 9:56 PM
To: Francini, Andrea (Andrea); Roland Bless; Jonathan Morton
Cc: aqm@ietf.org
Subject: Re: [aqm] PIE vs. RED

>>That's my point (and I believe also Roland's): In a direct experimental
>>comparison, this good property of PIE would be better emphasized against
>>a >>configuration of RED where the queue length thresholds are not
>>grossly oversized.


In our PIE paper (attached), Figure 8 shows the max latency of RED is
around 100ms (which is very reasonable). PIE controls latency regardless
of traffic intensity. It is the plot that you want.

Thanks,

Rong

On 8/13/15, 5:25 PM, "Francini, Andrea (Andrea)"
<andrea.francini@alcatel-lucent.com> wrote:

>> Delayed-based RED still would associate latency with drop probability:
>> drop probability will only go up when queueing latency goes up. A higher
>> drop probability can only be achieved via higher queueing latency.  As
>>we
>> proved in PIE, the two can be made independent. We can maintain low
>> latency regardless of traffic intensity.
>> 
>> Rong
>
>That's my point (and I believe also Roland's): In a direct experimental
>comparison, this good property of PIE would be better emphasized against
>a configuration of RED where the queue length thresholds are not grossly
>oversized.
>
>By the way, Global Synchronization Protection (GSP) also drops/marks at a
>fixed delay level independently of the drop/mark rate that keeps the
>queue stable. The draft that describes it
>(https://tools.ietf.org/id/draft-lauten-aqm-gsp-02.txt) is still active.
>I have seen only marginal comments about GSP. Any specific reason why?
>
>Andrea 
>
>
>On 8/13/15, 4:07 PM, "aqm on behalf of Francini, Andrea (Andrea)"
><aqm-bounces@ietf.org on behalf of andrea.francini@alcatel-lucent.com>
>wrote:
>
>>To second Roland's point, the advantage of PIE over RED should not be
>>entirely in the use of delay-based thresholds instead of queue-length
>>ones, otherwise it could be argued that a version of RED with delay-based
>>thresholds is not too hard to design (Wolfram easily did it for his GSP
>>scheme). 
>>
>>With such a RED version in place, hopefully PIE would still show better
>>performance, so the same superiority should also emerge when the
>>queue-length thresholds of conventional RED are reasonably tuned around
>>the traffic scenario of each experiment.
>>
>>Andrea
>>
>>-----Original Message-----
>>From: aqm [mailto:aqm-bounces@ietf.org] On Behalf Of Roland Bless
>>Sent: Thursday, August 13, 2015 6:39 PM
>>To: Jonathan Morton
>>Cc: aqm@ietf.org
>>Subject: Re: [aqm] PIE vs. RED
>>
>>Hi Jonathan,
>>
>>Am 13.08.2015 um 19:35 schrieb Jonathan Morton:
>>> In the real world, the hardware buffer size is rarely matched to the
>>> real BDP.  There are several reasons for this, but a couple of
>>> fundamental ones are:
>>> 
>>> - BDP varies with RTT, which is in general different for flows
>>> simultaneously using the same link/queue to reach different remote
>>> hosts, and therefore cannot be accurately predicted by a hardware
>>>vendor.
>>
>>Yep, sure. My point was not to promote setting the buffers according to
>>"the BDP", but rather arguing that one should use comparable target
>>settings when comparing AQMs, see below...
>>
>>> - Frequently, the queue size is tuned for the maximum capability of the
>>> device and a pessimistic value for RTT, but the same hardware is more
>>> often used (at least initially) at lower link speeds and thebqueue size
>>> is not adjusted to compensate.  Eg. DOCSIS 2 cable but DOCSIS 3 modem,
>>> Ethernet NIC or switch capable of 1000Mbps but operating at 100 or even
>>> 10, 802.11ac wifi struggling with a marginal 802.11g link...
>>> 
>>> Thus substantially oversized raw buffers are quite normal.  It is AQM's
>>> job to keep the *actual* queue occupancy low; with a properly
>>> functioning AQM, the effects of an oversized raw queue are nil.
>>
>>That's correct. However, IMHO if one compares AQMs one should set/tune
>>the individual parameters of the AQMs so that they achieve a similar
>>target value (and not more than an order of magnitude apart).
>>This is probably relevant for the aqm eval guidelines, but
>>I'll come up with a detailed review for the draft within the next days...
>>
>>Regards,
>> Roland
>>
>>_______________________________________________
>>aqm mailing list
>>aqm@ietf.org
>>https://www.ietf.org/mailman/listinfo/aqm
>>
>>_______________________________________________
>>aqm mailing list
>>aqm@ietf.org
>>https://www.ietf.org/mailman/listinfo/aqm
>