Re: [aqm] think once to mark, think twice to drop: draft-ietf-aqm-ecn-benefits-02

David Collier-Brown <davec-b@rogers.com> Thu, 26 March 2015 22:49 UTC

Return-Path: <davec-b@rogers.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 6DD1D1A1A6E for <aqm@ietfa.amsl.com>; Thu, 26 Mar 2015 15:49:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001] 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 n-jaEX7eIc6l for <aqm@ietfa.amsl.com>; Thu, 26 Mar 2015 15:49:29 -0700 (PDT)
Received: from nm16-vm8.access.bullet.mail.gq1.yahoo.com (nm16-vm8.access.bullet.mail.gq1.yahoo.com [216.39.63.224]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3017A1A1A4B for <aqm@ietf.org>; Thu, 26 Mar 2015 15:49:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s2048; t=1427410168; bh=4IBtNHfvCq3bPM8gT0JqudDa35Tp81DRiRxLa7pFclY=; h=Date:From:Reply-To:To:Subject:References:In-Reply-To:From:Subject; b=MYC3oN5lnMNbsts3Ns3JF38quMnPTmos59ma+LD36PUBLqf97N8o7k45d6Q4+QVVloE9HO3WviHgYFXE2WT71mGTJEZ2llS690Gww9cDdB2V3Q1jqv4IDh8uKSY/qS9EviOq7QY7kdtppTpwRa0E8oEjmoHKA+X3Vc2oaXQHR8jC9sGG+liOWsNL6RO1ELHmgDJnGbJrHUcKjGABH+OC29SwhYevp3tz6FV4tLFmX/bRvPWp/NyskdeBpqtAjGvF2yCAn4muNcAJBD/RUHsiTaDzuackN3g6R+eD+R9KK+BFFjhEqR/ukrKSUHakIcNB+gnmCT49SqvkX6i3uUIcOw==
Received: from [216.39.60.165] by nm16.access.bullet.mail.gq1.yahoo.com with NNFMP; 26 Mar 2015 22:49:28 -0000
Received: from [98.138.226.244] by tm1.access.bullet.mail.gq1.yahoo.com with NNFMP; 26 Mar 2015 22:49:28 -0000
Received: from [127.0.0.1] by smtp115.sbc.mail.ne1.yahoo.com with NNFMP; 26 Mar 2015 22:49:28 -0000
X-Yahoo-Newman-Id: 746779.40322.bm@smtp115.sbc.mail.ne1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: GBtADZ4VM1npRRKDTI8kknjp8C_FosX3jT.CscRHVEFnUsB 1Tz04TALRfxETeFS_NS6Y_cbWTYw39FZAaXXL.gugxmqvhbHgVFL771l1Oxi uucrYb1zhRDXw5LWn1RmKr_bQxSorZCiE48hRxMJwPf8kwRM.sab6gp4Dae9 xjQBEzizywMpEZ9afD7ovQjmsnSgRJ2.9r_1T3WdNL2zyBJVS29oyANdB6Hg P8Dyp0dYlO5xmKJlrOVYXoHLRB8L3kZpt3mSMY24yZq6puuCtIn76st9tBlN E8EDpJwO3bje.G40M5.WvkXx1lcYAaVVI9XtqnsWurEto2XObnNUp_cJBgBx mNuBE5pWE3p_Sq4J77ovuNuPKbcMDB2.2kC3bEyqXtZz0Yw.f0Nwf5kgulF2 Wnatja0VS3aFFVBoLyQtGFxsg1c9n.Cdcc0B_DakplhBs0l3LyL5BgQa4g6E Ipg23OjvL2om6rsy19LR2vTplqudFAThuqfSGE40W43vsfveJ_s1r6O5sb3n LYPcDUXkMW5HW2IGP3wrlOOD_5yDEfoYGwi4MarB78XKC_PvOlJBZwjUh
X-Yahoo-SMTP: sltvjZWswBCRD.ElTuB1l9j6s9wRYPpuyTNWOE5oEg--
Message-ID: <55146DB9.7050501@rogers.com>
Date: Thu, 26 Mar 2015 16:36:09 -0400
From: David Collier-Brown <davec-b@rogers.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: aqm@ietf.org
References: <23AFEFE3-4D93-4DD9-A22B-952C63DB9FE3@cisco.com> <BF6B00CC65FD2D45A326E74492B2C19FB75BAA82@FR711WXCHMBA05.zeu.alcatel-lucent.com> <72EE366B-05E6-454C-9E53-5054E6F9E3E3@ifi.uio.no>
In-Reply-To: <72EE366B-05E6-454C-9E53-5054E6F9E3E3@ifi.uio.no>
Content-Type: multipart/alternative; boundary="------------020408060301070709070404"
Archived-At: <http://mailarchive.ietf.org/arch/msg/aqm/UkT7ZmAFVpFoSSUdy2jzFGbWFm4>
Subject: Re: [aqm] think once to mark, think twice to drop: draft-ietf-aqm-ecn-benefits-02
X-BeenThere: aqm@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: davecb@spamcop.net
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: Thu, 26 Mar 2015 22:49:31 -0000

On 03/25/2015 03:03 PM, Michael Welzl wrote:
> Hi,
>
> Below:
>
>> On 25. mar. 2015, at 13.12, De Schepper, Koen (Koen) <koen.de_schepper@alcatel-lucent.com> wrote:
>>
>> Hi all,
>>
>> Related to DCTCP and different (more) marking ECN than dropping (let's call it ECN++ in this mail), the talk I gave in iccrg (Data Center to the Home) shows that it is possible to have fairness between ECN++ flows (DCTCP, Relentless TCP, Scalable TCP, ...) and drop based Reno/Cubic flows.
>>
>> The ECN++ flows typically respond to marking proportional to 1/p (with p the marking or dropping probability), while the Reno flavors respond proportional to 1/p^0.5 (one over square root of p).
>>
>> This means that the only difference between marking and dropping is that an AQM has to think twice before it drops, and that is what we want, right? We mark fast by comparing our congestion indicator (derived from the queue size or packet sojourn time, or PI controller) with a random generated value. For a drop decision we just can compare the congestion indicator with the maximum of 2 random values (= thinking twice and is resulting in a drop probability which is the square of the marking probability). This will compensate the square root in Reno-like TCPs. If it is a problem to generate 2 random values per packet, you can keep your previous random value, as it is (pseudo) independent of the newly generated.
>>
>> As this is a very simple relation between marking and dropping, AND it gives extra advantages, it is worth considering. The EXTRA advantages are:
>> - low latency AND high throughput (compared to low latency OR high throughput)
>> - less variability in flow fairness between competing flows (because of the high marking probability, the flows get more signals and will stray of less). If you get one drop every 10 seconds, and you had bad luck that your flow got 2 drops in a row, you have reduced your throughput by 4, compared to the other flow who should have had the second mark, running still at full throughput.
>> - The marking will scale to higher throughputs, every flow will get the same signal rate independent from the throughput (preferably every millisecond). It is a solution which scales to the future.
>>
>> If we want to promote the use of ECN, let's make sure we get all the benefits, and have a solution that doesn't need to be revised after x years anyway. This is an opportunity to do it better this time, with lots of benefits which might convince people to finally use ECN.
>>
>> I propose to recommend the "think twice" concept, or at least describe its extra benefits in the draft.
> This draft is not specifying a new behavior for ECN, which is what you propose. Thus I think this is out of scope of this document.
>

I might suggest this is an implementation of a relationship between ECN 
and drop, based on an observation of how fairness might be achieved.

The implementation doesn't belong, unless you have an appendix of 
interesting implementation concerns.  The observation that

  * there is a relationship between ECN and drop
  * there are fairness problems to consider, and
  * there are values of the relationship that minimize or exclude the
    fairness problem

is new, a genuinely good thing, and arguably deserves mention as a benefit.

--dave

-- 
David Collier-Brown,         | Always do right. This will gratify
System Programmer and Author | some people and astonish the rest
davecb@spamcop.net           |                      -- Mark Twain