Re: [aqm] PIE vs. RED

"Rong Pan (ropan)" <ropan@cisco.com> Fri, 14 August 2015 18:26 UTC

Return-Path: <ropan@cisco.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 A33A41A032D for <aqm@ietfa.amsl.com>; Fri, 14 Aug 2015 11:26:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.511
X-Spam-Level:
X-Spam-Status: No, score=-14.511 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_DKIM_WL=-7.5] 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 P4jbIYNdSFZt for <aqm@ietfa.amsl.com>; Fri, 14 Aug 2015 11:26:30 -0700 (PDT)
Received: from alln-iport-1.cisco.com (alln-iport-1.cisco.com [173.37.142.88]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4306C1A026C for <aqm@ietf.org>; Fri, 14 Aug 2015 11:26:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=8082; q=dns/txt; s=iport; t=1439576790; x=1440786390; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=lpaHj3rsADyo5pdR4k9dyu9Y9+JBBAxICzNzJJyUHGU=; b=WQhWXZsIqaYFeK3VlCz5VX1vXhW8z+6NEiYlKWrhV8o4XVoEkM/qtbwA KxMh8AXlG9ewvIoF5DOBH4deAd5EaWOZNI4wKKNgWX30vo2SUowmb6bWA dp9j8tg98NLbk3sIHrCL0IbMYEOtBmLlYeTzYqr1tdo4hY57y1vt/wdB0 k=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CRAgDeMc5V/4sNJK1dDoMNVGkGvgIBCYFrCoV5AoFKOBQBAQEBAQEBgQqEIwEBAQQBAQFrCwwEAgEIEQQBAQEnBycLFAkIAgQBDQWILg3QBwEBAQEBAQEBAQEBAQEBAQEBAQEBARMEi1OEVjMHBoQmAQSNFIR6gw0BhQOCbIR8gUqEK5BIg2cmgg4cgRU+cQGBR4EEAQEB
X-IronPort-AV: E=Sophos;i="5.15,679,1432598400"; d="scan'208";a="178817145"
Received: from alln-core-6.cisco.com ([173.36.13.139]) by alln-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 14 Aug 2015 18:26:29 +0000
Received: from XCH-RCD-002.cisco.com (xch-rcd-002.cisco.com [173.37.102.12]) by alln-core-6.cisco.com (8.14.5/8.14.5) with ESMTP id t7EIQTkk023557 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 14 Aug 2015 18:26:29 GMT
Received: from xch-rcd-002.cisco.com (173.37.102.12) by XCH-RCD-002.cisco.com (173.37.102.12) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Fri, 14 Aug 2015 13:26:28 -0500
Received: from xhc-rcd-x09.cisco.com (173.37.183.83) by xch-rcd-002.cisco.com (173.37.102.12) with Microsoft SMTP Server (TLS) id 15.0.1104.5 via Frontend Transport; Fri, 14 Aug 2015 13:26:28 -0500
Received: from xmb-aln-x15.cisco.com ([169.254.9.148]) by xhc-rcd-x09.cisco.com ([173.37.183.83]) with mapi id 14.03.0248.002; Fri, 14 Aug 2015 13:26:27 -0500
From: "Rong Pan (ropan)" <ropan@cisco.com>
To: "Francini, Andrea (Andrea)" <andrea.francini@alcatel-lucent.com>, Roland Bless <roland.bless@kit.edu>, Jonathan Morton <chromatix99@gmail.com>
Thread-Topic: [aqm] PIE vs. RED
Thread-Index: AQHQ1cOW6XwN55X4f0i0l/eZceHInZ4KhVKAgABUxACAAAfBgP//jQMAgACI54D//6QDgIABTAEA///InwA=
Date: Fri, 14 Aug 2015 18:26:27 +0000
Message-ID: <D1F37F18.658D%ropan@cisco.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> <1BFAC0A1D7955144A2444E902CB628F865B081EF@US70TWXCHMBA12.zam.alcatel-lucent.com>
In-Reply-To: <1BFAC0A1D7955144A2444E902CB628F865B081EF@US70TWXCHMBA12.zam.alcatel-lucent.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/14.5.2.150604
x-originating-ip: [173.37.102.11]
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <9CF2AC1163ABF044B43771443EC026FB@emea.cisco.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/aqm/kJ4c5h54ga5ZaDC52goPEdQZzV4>
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 18:26:32 -0000

Please see inline.

Rong


On 8/14/15, 7:44 AM, "Francini, Andrea (Andrea)"
<andrea.francini@alcatel-lucent.com> wrote:

>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?

Yes, our queueing delay is calculated so there is an uptick in the
artificial delay at the beginning of the simulation when the draining rate
is just start to be calculated.



>
>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?

This is an omission in the paper, which we should specify. This simulation
is done with 10Mbps link with 200KB of buffer. We did size our buffers
according to the BDP. As Jonathan rightly pointed out, "the queue size is
tuned for the maximum capability of the device and a pessimistic value for
RTTĀ². Figure 7 is intended to show that in reality link speed may not get
to the max capacity, and hence well-intended BDP buffer sizing may cause
extreme delays, the time between 50-100s in the plot.



>
>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
>>
>