<?xml version="1.0" encoding="US-ASCII"?>
<!-- This template is for creating an Internet Draft using xml2rfc,
    which is available here: http://xml.resource.org. -->
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!-- One method to get references from the online citation libraries.
    There has to be one entity for each item to be referenced. 
    An alternate method (rfc include) is described in the references. -->
<!ENTITY RFC2119 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC0970 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.0970.xml">
<!ENTITY RFC2309 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2309.xml">
<!ENTITY RFC3246 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.3246.xml">
<!ENTITY RFC3168 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.3168.xml">
<!ENTITY RFC3649 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.3649.xml">
<!ENTITY RFC4774 SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.4774.xml">
<!ENTITY I-D.ietf-tcpm-accecn-reqs SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-tcpm-accecn-reqs.xml">
<!ENTITY I-D.ietf-aqm-pie SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-aqm-pie.xml">
<!ENTITY I-D.ietf-aqm-fq-codel SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-aqm-fq-codel.xml">
<!ENTITY I-D.bensley-tcpm-dctcp SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.bensley-tcpm-dctcp.xml">
<!ENTITY I-D.zimmermann-tcpm-cubic SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.zimmermann-tcpm-cubic.xml">
<!ENTITY I-D.sridharan-tcpm-ctcp SYSTEM "http://xml2rfc.ietf.org/public/rfc/bibxml3/reference.I-D.sridharan-tcpm-ctcp.xml">
]>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<!-- used by XSLT processors -->
<!-- For a complete list and description of processing instructions (PIs), 
    please see http://xml.resource.org/authoring/README.html. -->
<!-- Below are generally applicable Processing Instructions (PIs) that most I-Ds might want to use.
    (Here they are set differently than their defaults in xml2rfc v1.32) -->
<?rfc strict="yes" ?>
<!-- give errors regarding ID-nits and DTD validation -->
<!-- control the table of contents (ToC) -->
<?rfc toc="yes"?>
<!-- generate a ToC -->
<?rfc tocdepth="4"?>
<!-- the number of levels of subsections in ToC. default: 3 -->
<!-- control references -->
<?rfc symrefs="yes"?>
<!-- use symbolic references tags, i.e, [RFC2119] instead of [1] -->
<?rfc sortrefs="yes" ?>
<!-- sort the reference entries alphabetically -->
<!-- control vertical white space 
    (using these PIs as follows is recommended by the RFC Editor) -->
<?rfc compact="yes" ?>
<!-- do not start each main section on a new page -->
<?rfc subcompact="no" ?>
<!-- keep one blank line between list items -->
<!-- end of list of popular I-D processing instructions -->
<rfc category="std" docName="draft-briscoe-aqm-dualq-coupled-00"
     ipr="trust200902" updates="">
  <!-- category values: std, bcp, info, exp, and historic
    ipr values: trust200902, noModificationTrust200902, noDerivativesTrust200902,
       or pre5378Trust200902
    you can add the attributes updates="NNNN" and obsoletes="NNNN" 
    they will automatically be output with "(if approved)" -->

  <!-- ***** FRONT MATTER ***** -->

  <front>
    <!-- The abbreviated title is used in the page header - it is only necessary if the 
       full title is longer than 39 characters -->

    <title abbrev="DualQ Coupled AQM">DualQ Coupled AQM for Low Latency, Low
    Loss and Scalable Throughput</title>

    <author fullname="Koen De Schepper" initials="K." surname="De Schepper">
      <organization>Bell Labs</organization>

      <address>
        <postal>
          <street/>

          <city>Antwerp</city>

          <country>Belgium</country>
        </postal>

        <email>koen.de_schepper@alcatel-lucent.com</email>

        <uri>https://www.bell-labs.com/usr/koen.de_schepper</uri>
      </address>
    </author>

    <author fullname="Bob Briscoe" initials="B." role="editor"
            surname="Briscoe">
      <organization>Independent</organization>

      <address>
        <postal>
          <street/>
        </postal>

        <email>ietf@bobbriscoe.net</email>

        <uri>http://bobbriscoe.net/</uri>
      </address>
    </author>

    <author fullname="Olga Bondarenko" initials="O." surname="Bondarenko">
      <organization>Simula Research Lab</organization>

      <address>
        <postal>
          <street/>

          <city>Lysaker</city>

          <country>Norway</country>
        </postal>

        <email>olgabnd@gmail.com</email>

        <uri>https://www.simula.no/people/olgabo</uri>
      </address>
    </author>

    <author fullname="Ing-jyh Tsang" initials="I." surname="Tsang">
      <organization>Bell Labs</organization>

      <address>
        <postal>
          <street/>

          <city>Antwerp</city>

          <country>Belgium</country>
        </postal>

        <email>ing-jyh.tsang@alcatel-lucent.com</email>
      </address>
    </author>

    <date day="07" month="August" year="2015"/>

    <area>Transport</area>

    <workgroup>Active Queue Management (aqm)</workgroup>

    <keyword>Internet-Draft</keyword>

    <keyword>I-D</keyword>

    <abstract>
      <t>Data Centre TCP (DCTCP) was designed to provide predictably low
      queuing latency, near-zero loss, and throughput scalability using
      explicit congestion notification (ECN) and an extremely simple marking
      behaviour on switches. However, DCTCP does not co-exist with existing
      TCP traffic---throughput starves. So, until now, DCTCP could only be
      deployed where a clean-slate environment could be arranged, such as in
      private data centres. This specification defines `DualQ Coupled Active
      Queue Management (AQM)' to allow scalable congestion controls like DCTCP
      to safely co-exist with classic Internet traffic. The Coupled AQM
      ensures that a flow runs at about the same rate whether it uses DCTCP or
      TCP Reno/Cubic, but without inspecting transport layer flow identifiers.
      When tested in a residential broadband setting, DCTCP achieved
      sub-millisecond average queuing delay and zero congestion loss under a
      wide range of mixes of DCTCP and `Classic' broadband Internet traffic,
      without compromising the performance of the Classic traffic. The
      solution also reduces network complexity and eliminates network
      configuration.</t>
    </abstract>
  </front>

  <middle>
    <section anchor="dualq_intro" title="Introduction">
      <t/>

      <section anchor="dualq_problem" title="Problem and Scope">
        <t>Latency is becoming the critical performance factor for many
        (most?) applications on the public Internet, e.g. Web, voice,
        conversational video, gaming and finance apps. In the developed world,
        further increases in access network bit-rate offer diminishing
        returns, whereas latency is still a multi-faceted problem. In the last
        decade or so, much has been done to reduce propagation time by placing
        caches or servers closer to users. However, queuing remains a major
        component of latency.</t>

        <t>The Diffserv architecture provides Expedited Forwarding&nbsp;<xref
        target="RFC3246"/>, so that low latency traffic can jump the queue of
        other traffic. However, on access links dedicated to individual sites
        (homes, small enterprises or mobile devices), often all traffic at any
        one time will be latency-sensitive. Then Diffserv is of little use.
        Instead, we need to remove the causes of any unnecessary delay.</t>

        <t>The bufferbloat project has shown that excessively-large buffering
        (`bufferbloat') has been introducing significantly more delay than the
        underlying propagation time. These delays appear only
        intermittently&mdash;only when a capacity-seeking (e.g. TCP) flow is
        long enough for the queue to fill the buffer, making every packet in
        other flows sharing the buffer sit through the queue.</t>

        <t>Active queue management (AQM) was originally developed to solve
        this problem (and others). Unlike Diffserv, AQM controls latency for
        <spanx style="emph">all</spanx> traffic in a class. In general, AQMs
        introduce an increasing level of discard from the buffer the longer
        the queue persists above a shallow threshold. This gives sufficient
        signals to capacity-seeking (aka. greedy) flows to keep the buffer
        empty for its intended purpose: absorbing bursts. However,
        RED&nbsp;<xref target="RFC2309"/> and other algorithms from the 1990s
        were sensitive to their configuration and hard to set correctly. So,
        AQM was not widely deployed. More recent state-of-the-art AQMs, e.g.
        fq_CoDel&nbsp;<xref target="I-D.ietf-aqm-fq-codel"/>, PIE&nbsp;<xref
        target="I-D.ietf-aqm-pie"/>, Adaptive RED&nbsp;<xref
        target="ARED01"/>, define the threshold in time not bytes, so it is
        invariant for different link rates.</t>

        <t>It seems that further changes to the network alone will now yield
        diminishing returns. Data Centre TCP (DCTCP&nbsp;<xref
        target="I-D.bensley-tcpm-dctcp"/>) teaches us that a small but radical
        change to TCP is needed to cut two major outstanding causes of queuing
        delay variability: <list counter="ctr:problem" style="format %d.">
            <t>the `sawtooth' varying rate of TCP itself;</t>

            <t>the smoothing delay deliberately introduced into AQMs to permit
            bursts without triggering losses.</t>
          </list>The former causes a flow's round trip time (RTT) to vary from
        about 1 to 2 times the base RTT between the machines in question. The
        latter delays the system's response to change by a worst-case
        (transcontinental) RTT, which could be hundreds of times the actual
        RTT of typical traffic from localized CDNs.</t>

        <t>Latency is not our only concern:<list counter="ctr:problem"
            style="format %d.">
            <t>It was known when TCP was first developed that it would not
            scale to high bandwidth-delay products.</t>
          </list>Given regular broadband bit-rates over WAN distances are
        already&nbsp;<xref target="RFC3649"/> beyond the scaling range of
        `classic' TCP Reno, `less unscalable' Cubic&nbsp;<xref
        target="I-D.zimmermann-tcpm-cubic"/> and Compound&nbsp;<xref
        target="I-D.sridharan-tcpm-ctcp"/> variants of TCP have been
        successfully deployed. However, these are now approaching their
        scaling limits. Unfortunately, fully scalable TCPs such as DCTCP cause
        `classic' TCP to starve itself, which is why they have been confined
        to private data centres or research testbeds (until now).</t>

        <t>This document specifies a `DualQ Coupled AQM' that solves the
        problem of coexistence between DCTCP and classic flows, without having
        to inspect flow identifiers. The AQM is not like flow-queuing
        approaches <xref target="I-D.ietf-aqm-fq-codel"/> that classify
        packets by flow identifier into numerous separate queues in order to
        isolate sparse flows from the higher latency in the queues assigned to
        heavier flow. In contrast, the AQM exploits the behaviour of scalable
        congestion controls like DCTCP so that every packet in every flow
        sharing the queue for DCTCP-like traffic can be served with very low
        latency.</t>

        <t>The AQM needs fewer operations per packet than RED uses. Also, no
        network configuration is needed for a wide range of scenarios where
        the range of RTTs is typical for the public Internet. Therefore it is
        believed the Coupled AQM would be applicable and easy to deploy in all
        types of buffers; buffers in cost-reduced mass-market residential
        equipment; buffers in end-system stacks; buffers in carrier-scale
        equipment including remote access servers, routers, firewalls and
        Ethernet switches; buffers in network interface cards, buffers in
        virtualized network appliances, hypervisors, and so on.</t>

        <t>The supporting paper <xref target="DCttH15"/> gives the full
        rationale for the AQM's design, both discursively and in more precise
        mathematical form.</t>
      </section>

      <section anchor="dualq_Terminology" title="Terminology">
        <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
        "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
        document are to be interpreted as described in <xref
        target="RFC2119"/>. In this document, these words will appear with
        that interpretation only when in ALL CAPS. Lower case uses of these
        words are not to be interpreted as carrying RFC-2119 significance.</t>

        <t>The DualQ Coupled AQM uses two queues for two services. Each of the
        following terms identifies both the service and the queue that
        provides the service:<list style="hanging">
            <t hangText="Classic (denoted by subscript C):">The `Classic'
            service is intended for all the behaviours that currently co-exist
            with TCP Reno (TCP Cubic, Compound, SCTP, etc).</t>

            <t
            hangText="Low-Latency, Low-Loss and Scalable (L4S, denoted by subscript L):">The
            `L4S' service is intended for DCTCP traffic but it is also more
            general&mdash;it will allow a set of congestion controls with
            similar scaling properties to DCTCP (e.g. Relentless&nbsp;<xref
            target="Mathis09"/>) to evolve.</t>
          </list></t>

        <t>Either service can cope with a proportion of unresponsive or
        less-responsive traffic as well (e.g. DNS, VoIP, etc).</t>
      </section>

      <section title="Features">
        <t>The AQM couples marking and/or dropping across the two queues such
        that a flow will get roughly the same throughput whichever it uses.
        Therefore both queues can feed into the full capacity of a link and no
        rates need to be configured for the queues. The L4S queue enables
        scalable congestion controls like DCTCP to give stunningly low and
        predictably low latency, without compromising the performance of
        competing 'Classic' Internet traffic. Thousands of tests have been
        conducted in a typical fixed residential broadband setting. Typical
        experiments used a base round trip delay of 7ms between the data
        centre and home network, and large amounts of background traffic in
        both queues. For every L4S packet, the AQM kept the 99th percentile of
        queuing delay to about 1ms, and no losses at all were introduced by
        the AQM. Details of the extensive experiments will be made
        available&nbsp;<xref target="DCttH15"/>.</t>

        <t>Subjective testing was also conducted using a demanding panoramic
        interactive video application run over a stack with DCTCP enabled and
        deployed on the testbed. Each user could pan or zoom their own high
        definition (HD) sub-window of a larger video scene from a football
        match. Even though the user was also downloading large amounts of L4S
        and Classic data, latency was so low that the picture appeared to
        stick to their finger on the touchpad (all the L4S data achieved the
        same ultra-low latency). With an alternative AQM, the video noticeably
        lagged behind the finger gestures.</t>

        <t>Unlike Diffserv Expedited Forwarding, the L4S queue does not have
        to be limited to a small proportion of the link capacity in order to
        achieve low delay. The L4S queue can be filled with a heavy load of
        capacity-seeking flows like DCTCP and still achieve low delay. The L4S
        queue does not rely on the presence of other traffic in the Classic
        queue that can be 'overtaken'. It gives low latency to L4S traffic
        whether or not there is Classic traffic, and the latency of Classic
        traffic does not suffer when a proportion of the traffic is L4S. The
        two queues are only necessary because DCTCP-like flows cannot keep
        latency predictably low and keep utilization high if they are mixed
        with legacy TCP flows,</t>

        <t>The experiments used the Linux implementation of DCTCP that is
        deployed in private data centres, without any modification despite its
        known deficiencies. Nonetheless, certain modifications will be
        necessary before DCTCP is safe to use on the Internet, which are
        recorded for now in <xref target="dualq_DCTCP_Safety_Mods"/>. However,
        the focus of this specification is to get the network service in
        place. Then, without any management intervention, applications can
        exploit it by migrating to scalable controls like DCTCP, which can
        then evolve <spanx style="emph">while</spanx> their benefits are being
        enjoyed by everyone on the Internet.</t>
      </section>
    </section>

    <section anchor="dualq_algo" title="DualQ Coupled AQM Algorithm">
      <t>There are two main aspects to the algorithm:<list style="symbols">
          <t>the Coupled AQM that addresses throughput equivalence between
          Classic (e.g. Reno, Cubic) flows and L4S (e.g. DCTCP) flows</t>

          <t>the Dual Queue structure that provides latency separation for L4S
          flows to isolate them from the typically large Classic queue.</t>
        </list></t>

      <section anchor="dualq_coupled" title="Coupled AQM">
        <t>In the 1990s, the `TCP formula' was derived for the relationship
        between TCP's congestion window, cwnd, and its drop probability, p. To
        a first order approximation, cwnd of TCP Reno is inversely
        proportional to the square root of p. TCP Cubic implements a
        Reno-compatibility mode, which is the only relevant mode for typical
        RTTs under 20ms, while the throughput of a single flow is less than
        about 500Mb/s. Therefore we can assume that Cubic traffic behaves
        similar to Reno (but with a slightly different constant of
        proportionality), and we shall use the term 'Classic' for the
        collection of Reno and Cubic in Reno mode.</t>

        <t>In our supporting paper <xref target="DCttH15"/>, we derive the
        equivalent rate equation for DCTCP, for which cwnd is inversely
        proportional to p (not the square root), where in this case p is the
        ECN marking probability. DCTCP is not the only congestion control that
        behaves like this, so we use the term 'L4S' traffic for all similar
        behaviour.</t>

        <t>In order to make a DCTCP flow run at roughly the same rate as a
        Reno TCP flow (all other factors being equal), we make the drop
        probability for Classic traffic, p_C distinct from the marking
        probability for L4S traffic, p_L (in contrast to RFC3168 which
        requires them to be the same). We make the Classic drop probability
        p_C proportional to the square of the L4S marking probability p_L.
        This is because we need to make the Reno flow rate equal the DCTCP
        flow rate, so we have to square the square root of p_C in the Reno
        rate equation to make it the same as the straight p_L in the DCTCP
        rate equation.</t>

        <t>There is a really simple way to implement the square of a
        probability - by testing the queue against two random numbers not one.
        This is the approach adopted in <xref target="dualq_Ex_algo"/>.</t>

        <t>Stating this as a formula, the relation between Classic drop
        probability, p_C, and L4S marking probability, p_L needs to take the
        form:<figure>
            <artwork><![CDATA[    p_C = ( p_L / 2^k )^2                  (1)]]></artwork>
          </figure></t>

        <t>where 2^k is the constant of proportionality, which is expressed as
        a power of 2 so that implementations can avoid costly division by
        shifting p_L by k bits to the right.</t>
      </section>

      <section title="Dual Queue">
        <t>Classic traffic builds a large queue, so a separate queue is
        provided for L4S traffic, and it is scheduled with strict priority.
        Nonetheless, coupled marking ensures that giving priority to L4S
        traffic still leaves the right amount of spare scheduling time for
        Classic flows to each get equivalent throughput to DCTCP flows (all
        other factors such as RTT being equal). The algorithm achieves this
        without having to inspect flow identifiers.</t>
      </section>

      <section title="Traffic Classification">
        <t>Both the Coupled AQM and DualQ mechanisms need an identifier to
        distinguish L4S and C packets, which will need to be standardized. In
        our tests we used a cleared ECN field to indicate C packets and L4S
        otherwise. The ECN specification&nbsp;<xref target="RFC3168"/>
        currently defines a mark as equivalent to a drop. However, it says
        <list style="empty">
            <t>"An environment where all end nodes were ECN-Capable could
            allow new criteria to be developed for setting the CE codepoint,
            and new congestion control mechanisms for end-node reaction to CE
            packets. However, this is a research issue, and as such is not
            addressed in this document."</t>
          </list></t>

        <t>and <xref target="RFC4774"/>} gives valid ways to alter ECN's
        semantics without harming interoperability.</t>

        <t>Since publication in 2001,deployment of RFC3168 ECN has been dogged
        by bugs and misunderstandings. In recent years RFC3168 ECN has been
        deployed quite successfully on servers <xref target="ECN_Deploy"/>,
        and until recently it was deployed but not enabled on a fair
        proportion of user machines. Recently one major developer of client
        devices has configured ECN on-by-default in its beta releases. However
        although some network equipment vendors and developers have
        implemented ECN, there is little evidence that any public network
        operator is considering or has deployed ECN-capable AQMs on network
        equipment yet.</t>

        <t>A number of private data centre operators have deployed ECN, but
        not RFC3168 ECN. Instead, they are using DCTCP to get predictable
        ultra-low latency, and they are either ensuring that there is no
        non-DCTCP traffic <xref target="I-D.bensley-tcpm-dctcp"/>, or they are
        segregating such traffic from DCTCP using Diffserv <xref
        target="DCTCP_Pitfalls"/>. The RFC3168 approach merely prevents drop,
        whereas the DCTCP approach provides scalable throughput and ultra-low
        latency as well as avoiding drop. Consequently it has been questioned
        whether the RFC3168 approach offers enough performance improvement for
        an operator to countenance the cost and risk of deployment. There has
        been some discussions at the IETF on changing the meaning of an ECN
        mark to move towards the DCTCP approach.The performance results from
        our experiments with DCTCP for broadband residential users are
        certainly significant enough to warrant interest from operators.</t>

        <t>For those who have managed to get classic ECN widely deployed on
        end-systems, moving the goalposts at this stage would be harsh. If the
        meaning of ECN cannot be changed from "equivalent to drop", it would
        be possible to identify the L4S service in another way, e.g. a
        combination of ECN and Diffserv, or using the ECT(1) codepoint. The
        Diffserv codepoint is not ideal, because L4S is an end-to-end service
        and a DSCP is not preserved end-to-end. However, combining ECN and
        Diffserv may be sufficient for initial deployment, while confined to
        controlled sets of networks, during which time any users of classic
        ECN can upgrade to L4S. The ECT(1) codepoint is perhaps less ideal,
        because two separate uses of ECN really need two codepoints each, and
        anyway it could be argued that the last ECN codepoint should not be
        burned when the current one is not being used.</t>

        <t>This draft does not currently recommend an approach for identifying
        for the L4S service, which is initially left open for discussion
        within the IETF.</t>
      </section>

      <section anchor="dualq_norm_reqs" title="Normative Requirements">
        <t>In the Dual Queue, L4S packets MUST be given priority over Classic,
        although strict priority MAY not be appropriate.</t>

        <!--The above may need to be changed if/when L2S is specified.-->

        <t>All L4S traffic MUST be ECN-capable, although some Classic traffic
        MAY also be ECN-capable.</t>

        <t>Whatever identifier is used for L4S traffic, it will still be
        necessary to agree on the meaning of an ECN marking on L4S traffic,
        relative to a drop of Classic traffic. In order to prevent starvation
        of Classic traffic by scalable L4S traffic (e.g. DCTCP) the drop
        probability of Classic traffic MUST be proportional to the square of
        the marking probability of L4S traffic, In other words, the power to
        which p_L is raised in Eqn. (1) MUST be 2.</t>

        <t>The constant of proportionality, k, in Eqn (1) determines the
        relative flow rates of Classic and L4S flows when the AQM concerned is
        the bottleneck (all other factors being equal). k does not have to be
        standardized because differences do not prevent interoperability.
        However, k has to take some value, and each operator can make that
        choice.</t>

        <t>A value of k=0 is RECOMMENDED as the default for public Internet
        access networks, assuming the DCTCP algorithm remains similar to that
        in <xref target="I-D.bensley-tcpm-dctcp"/>. Nonetheless choice of k is
        a matter of operator policy, and operators MAY choose a different
        value using <xref target="dualq_tab_k_policy"/> and the guidelines in
        <xref target="dualq_Choosing_k"/>.</t>

        <t>Typically, access network operators isolate customers from each
        other with some form of layer-2 multiplexing (TDM in DOCSIS, CDMA in
        3G) or L3 scheduling (WRR in broadband), rather than relying on TCP to
        share capacity between customers <xref target="RFC0970"/>. In such
        cases, the choice of k will solely affect relative flow rates within
        the customer's access capacity, not between customers. Also, k would
        not affect rates of small flows, nor long flows at any times when they
        are all Classic or all L4S.</t>

        <t>An example DualQ Coupled AQM algorithm is given in <xref
        target="dualq_Ex_algo"/>. Marking and dropping in each queue is based
        on an AQM called Curvy RED, which is intended to improve on RED, PIE
        and CoDel. We have found that Curvy RED offers good performance,
        requires less operations per packet than RED and is insensitive to
        configuration. Nonetheless, it would be possible to control each queue
        with an alternative AQM, as long as the above normative requirements
        (those expressed in capitals) are observed, which are intended to be
        independent of the specific AQM.</t>

        <t>{ToDo: Add management and monitoring requirements}</t>
      </section>
    </section>

    <section anchor="dualq_IANA" title="IANA Considerations">
      <t>This specification contains no IANA considerations.</t>
    </section>

    <section anchor="dualq_Security_Considerations"
             title="Security Considerations">
      <t/>

      <section anchor="dualq_Overload" title="Overload Handling">
        <t>Where the interests of users or flows might conflict, it could be
        necessary to police traffic to isolate any harm to performance. This
        is a policy issue that needs to be separable from a basic AQM, but the
        scheme does need to handle overload. A trade-off needs to be made
        between complexity and the risk of either class harming the other. It
        is an operator policy to define what must happen if the service time
        of the classic queue becomes too great. In the following subsections
        three optional non-exclusive overload protections are defined. Their
        objective is for the overload behaviour of the DualQ AQM to be similar
        to a single queue AQM. Other overload protections can be
        envisaged:<list style="hanging">
            <t anchor="dualq_Minimum_Service"
            hangText="Minimum throughput service: ">By replacing the priority
            scheduler with a weighted round robin scheduler, a minimum
            throughput service can be guaranteed for Classic traffic.
            Typically the scheduling weight of the Classic queue will be small
            (e.g. 5%) to avoid interference with the coupling but big enough
            to avoid complete starvation of Classic traffic.</t>

            <t anchor="dualq_Drop_Overload" hangText="Drop on overload:">On
            severe overload, e.g. due to non responsive traffic, queues will
            typically overflow and packet drop will be unavoidable when the
            queues reach their limits. The drop-limit of each queue should be
            configured by specifying the maximum supported load and
            determining the expected maximum size of each queue when that load
            is separately applied to each queue. The Classic queue limit will
            typically be larger than the L4S queue limit. Overflow of one
            traffic type will automatically result in drop in its respective
            queue. <!--When there is load on both queues, the Classic queue will always overflow due to the priority scheduling. [Bob: Deleted since not nec. true if unresponsive 
load is in L4S, and limit in L4S is shallower]-->Both traffic types will get a
            high congestion signal, due to the coupled marking, which will
            result in similar starvation of responsive traffic in both queues.
            Thus, the behaviour will be like a single queue AQM. To further
            improve the arrival fairness of a single queue an extra overall
            AQM limit can be applied, which is a limit to the sum of both
            queues. To be effective, it should be configured to be less than
            the sum of the limits of both queues, but greater than the maximum
            individual queue limit. It ensures that the drop probability of
            unresponsive traffic will be independent of its traffic type.</t>

            <t anchor="dualq_Delay_Overload" hangText="Delay on overload:">To
            control milder overload of responsive traffic, particularly when
            close to the maximum congestion signal, delay can be used as an
            alternative congestion control mechanism. The Dual Queue Coupled
            AQM can be made to behave like a single FIFO queue with
            differentiated service times by replacing the priority scheduler
            with a very simple "biased longest sojourn time first scheduler".
            The bias is defined as a maximum sojourn time difference (T_m)
            between the Classic and L4S packets. The scheduler adds T_m to the
            sojourn time of the next L4S packet, before comparing it with the
            timestamp of the next Classic packet, then it selects the packet
            with the <!--smallest [Bob: replaced smallest with greater!]-->greater
            adjusted sojourn time. This time shifted FIFO queue behaves just
            like a single FIFO queue under moderate and high overload.</t>
          </list></t>
      </section>
    </section>

    <section title="Acknowledgements">
      <t>Thanks to Anil Agarwal for detailed review comments and suggestions
      on how to make our explanation clearer.</t>

      <t>The authors' contributions are part-funded by the European Community
      under its Seventh Framework Programme through the Reducing Internet
      Transport Latency (RITE) project (ICT-317700). The views expressed here
      are solely those of the authors.</t>
    </section>
  </middle>

  <!--  *****BACK MATTER ***** -->

  <back>
    <references title="Normative References">
      &RFC2119;
    </references>

    <references title="Informative References">
      &RFC0970;

      &RFC2309;

      &RFC3246;

      &RFC3168;

      &RFC3649;

      &RFC4774;

      &I-D.ietf-tcpm-accecn-reqs;

      &I-D.ietf-aqm-pie;

      &I-D.ietf-aqm-fq-codel;

      <reference anchor="ARED01" target="http://www.icir.org/floyd/red.html">
        <front>
          <title>Adaptive RED: An Algorithm for Increasing the Robustness of
          RED's Active Queue Management</title>

          <author fullname="Sally Floyd" initials="S." surname="Floyd">
            <organization>ACIRI</organization>
          </author>

          <author fullname="Ramakrishna Gummadi" initials="R."
                  surname="Gummadi">
            <organization>ACIRI</organization>
          </author>

          <author fullname="S. Shenker" initials="S." surname="Shenker">
            <organization>ACIRI</organization>
          </author>

          <date month="August" year="2001"/>
        </front>

        <seriesInfo name="ACIRI Technical Report" value=""/>

        <format target="http://www.icir.org/floyd/red.html" type="PDF"/>
      </reference>

      &I-D.bensley-tcpm-dctcp;

      &I-D.zimmermann-tcpm-cubic;

      &I-D.sridharan-tcpm-ctcp;

      <reference anchor="Mathis09"
                 target="http://www.hpcc.jp/pfldnet2009/Program_files/1569198525.pdf">
        <front>
          <title>Relentless Congestion Control</title>

          <author fullname="Matt Mathis" initials="M." surname="Mathis">
            <organization>PSC</organization>
          </author>

          <date month="May" year="2009"/>
        </front>

        <seriesInfo name="PFLDNeT'09" value=""/>

        <format target="http://www.hpcc.jp/pfldnet2009/Program_files/1569198525.pdf"
                type="PDF"/>
      </reference>

      <!--{ToDo: DCttH ref will need to be updated, once stable}-->

      <reference anchor="DCttH15"
                 target="http://www.bobbriscoe.net/projects/latency/dctth_preprint.pdf">
        <front>
          <title>`Data Centre to the Home': Ultra-Low Latency for All</title>

          <author fullname="Koen De Schepper" initials="K."
                  surname="De Schepper">
            <organization>Bell Labs</organization>
          </author>

          <author fullname="Olga Bondarenko" initials="O."
                  surname="Bondarenko">
            <organization>Simula Research Lab</organization>
          </author>

          <author fullname="Bob Briscoe" initials="B." surname="Briscoe">
            <organization>BT</organization>
          </author>

          <author fullname="Ing-jyh Tsang" initials="I." surname="Tsang">
            <organization>Bell Labs</organization>
          </author>

          <date year="2015"/>
        </front>

        <annotation>(Under submission)</annotation>
      </reference>

      <reference anchor="ECN_Deploy" target="http://ecn.ethz.ch/ecn-pam15.pdf">
        <front>
          <title>Enabling Internet-Wide Deployment of Explicit Congestion
          Notification</title>

          <author fullname="Brian Trammell" initials="B." surname="Trammell">
            <organization>ETHZ</organization>
          </author>

          <author fullname="Mirja Kuehlewind" initials="M."
                  surname="Kuehlewind">
            <organization>ETHZ</organization>
          </author>

          <author fullname="Damiano Boppart" initials="D." surname="Boppart">
            <organization>ETHZ</organization>
          </author>

          <author fullname="Iain Learmonth" initials="I." surname="Learmonth">
            <organization>Uni Aberdeen</organization>
          </author>

          <author fullname="Gorry Fairhurst" initials="G." surname="Fairhurst">
            <organization>Uni Aberdeen</organization>
          </author>

          <author fullname="Richard Scheffenegger" initials="R."
                  surname="Scheffenegger">
            <organization>NetApp</organization>
          </author>

          <date month="" year="2015"/>
        </front>

        <seriesInfo name="Proc Passive &amp; Active Measurement (PAM'15) Conference"
                    value=""/>

        <format target="http://ecn.ethz.ch/ecn-pam15.pdf" type="PDF"/>
      </reference>

      <reference anchor="DCTCP_Pitfalls"
                 target="http://blogs.usenix.org/conference/nsdi15/technical-sessions/presentation/judd">
        <front>
          <title>Attaining the Promise and Avoiding the Pitfalls of TCP in the
          Datacenter</title>

          <author fullname="Glenn Judd" initials="G." surname="Judd">
            <organization>Morgan Stanley</organization>
          </author>

          <date month="May" year="2015"/>
        </front>

        <seriesInfo name="12th USENIX Symposium on Networked Systems Design and Implementation (NSDI 15)"
                    value="145--157"/>

        <format target="http://blogs.usenix.org/conference/nsdi15/technical-sessions/presentation/judd"
                type="PDF"/>
      </reference>

      <reference anchor="CRED_Insights"
                 target="http://www.bobbriscoe.net/projects/latency/credi_tr.pdf">
        <front>
          <title>Insights from Curvy RED (Random Early Detection)</title>

          <author fullname="Bob Briscoe" initials="B." surname="Briscoe">
            <organization>BT</organization>
          </author>

          <date day="" month="July" year="2015"/>
        </front>

        <seriesInfo name="BT Technical Report" value="TR-TUB8-2015-003"/>

        <format target="http://www.bobbriscoe.net/projects/latency/credi_tr.pdf"
                type="PDF"/>
      </reference>

      <reference anchor="TCP-sub-mss-w"
                 target="http://www.bobbriscoe.net/projects/latency/sub-mss-w.pdf">
        <front>
          <title>Scaling TCP's Congestion Window for Small Round Trip
          Times</title>

          <author fullname="Bob Briscoe" initials="B." surname="Briscoe">
            <organization>BT</organization>
          </author>

          <author fullname="Koen De Schepper" initials="K."
                  surname="De Schepper">
            <organization>Bell Labs</organization>
          </author>

          <date month="May" year="2015"/>
        </front>

        <seriesInfo name="BT Technical Report" value="TR-TUB8-2015-002"/>

        <format target="http://www.bobbriscoe.net/projects/latency/sub-mss-w.pdf"
                type="PDF"/>
      </reference>

      <reference anchor="CoDel"
                 target="http://queue.acm.org/issuedetail.cfm?issue=2208917">
        <front>
          <title>Controlling Queue Delay</title>

          <author fullname="Kathleen Nichols" initials="K." surname="Nichols">
            <organization>PARC</organization>
          </author>

          <author fullname="Van Jacobson" initials="V." surname="Jacobson">
            <organization>Pollere Inc</organization>
          </author>

          <date month="May" year="2012"/>
        </front>

        <seriesInfo name="ACM Queue" value="10(5)"/>

        <format target="http://queue.acm.org/issuedetail.cfm?issue=2208917"
                type="HTML"/>
      </reference>
    </references>

    <section anchor="dualq_Ex_algo" title="Example DualQ Coupled Algorithm">
      <t>As a concrete example, the pseudocode below gives the DualQ Coupled
      AQM algorithm we used in testing. Although we designed the AQM to be
      efficient in integer arithmetic, to aid understanding it is first given
      using real-number arithmetic. Then, one possible optimization for
      integer arithmetic is given, also in pseudocode. To aid comparison, the
      line numbers are kept in step between the two by using letter suffixes
      where the longer code needs extra lines.</t>

      <figure anchor="dualq_fig_Algo_Real"
              title="Example Dequeue Pseudocode for Coupled DualQ AQM">
        <artwork><![CDATA[1:  dualq_dequeue(lq, cq) {  % Couples L4S & Classic queues, lq & cq
2:     if ( lq.dequeue(pkt) ) {
3a:       p_L = cq.sec() / 2^S_L
3b:       if ( lq.byt() > T )
3c:           mark(pkt)
3d:        elif ( p_L > maxrand(U) )
4:           mark(pkt)
5:        return(pkt)              % return the packet and stop here
6:     }
7:     while ( cq.dequeue(pkt) ) {
8a:       alpha = 2^(-f_C)
8b:       Q_C = alpha * pkt.sec() + (1-alpha)* Q_C % Classic Q EWMA
9a:       sqrt_p_C = Q_C / 2^S_C
9b:       if ( sqrt_p_C > maxrand(2*U) )
10:          drop(pkt)                     % Squared drop, redo loop
11:       else
12:          return(pkt)           % return the packet and stop here
13:    }
14:    return(NULL)                           % no packet to dequeue
15: }

16: maxrand(u) {                % return the max of u random numbers
17:     maxr=0
18:     while (u-- > 0)
19:         maxr = max(maxr, rand())               % 0 <= rand() < 1
20:     return(maxr)
21: }
]]></artwork>
      </figure>

      <t>Packet classification code is not shown, as it is no different from
      regular packet classification. Potential classification schemes are
      discussed in <xref target="dualq_algo"/>. Overload protection code will
      be included in a future draft {ToDo}.</t>

      <t>At the outer level, the structure of dualq_dequeue() implements
      strict priority scheduling. The code is written assuming the AQM is
      applied on dequeue (Note <xref format="counter"
      target="dualq_note_dequeue"/>) . Every time dualq_dequeue() is called,
      the if-block in lines 2-6 determines whether there is an L4S packet to
      dequeue by calling lq.dequeue(pkt), and otherwise the while-block in
      lines 7-13 determines whether there is a Classic packet to dequeue, by
      calling cq.dequeue(pkt). (Note <xref format="counter"
      target="dualq_note_strict_priority"/>)</t>

      <t>In the lower priority Classic queue, a while loop is used so that, if
      the AQM determines that a classic packet should be dropped, it continues
      to test for classic packets deciding whether to drop each until it
      actually forwards one. Thus, every call to dualq_dequeue() returns one
      packet if at least one is present in either queue, otherwise it returns
      NULL at line 14. (Note <xref format="counter"
      target="dualq_note_while_loop"/>)</t>

      <t>Within each queue, the decision whether to drop or mark is taken as
      follows (to simplify the explanation, it is assumed that U=1):<list
          style="hanging">
          <t hangText="L4S:">If the test at line 2 determines there is an L4S
          packet to dequeue, the tests at lines 3a and 3c determine whether to
          mark it. The first is a simple test of whether the L4S queue
          (lq.byt() in bytes) is greater than a step threshold T in bytes
          (Note <xref format="counter" target="dualq_note_step"/>). The second
          test is similar to the random ECN marking in RED, but with the
          following differences: i) the marking function does not start with a
          plateau of zero marking until a minimum threshold, rather the
          marking probability starts to increase as soon as the queue is
          positive; ii) marking depends on queuing time, not bytes, in order
          to scale for any link rate without being reconfigured; iii) marking
          of the L4S queue does not depend on itself, it depends on the
          queuing time of the <spanx style="emph">other</spanx> (Classic)
          queue, where cq.sec() is the queuing time of the packet at the head
          of the Classic queue (zero if empty); iv) marking depends on the
          instantaneous queuing time (of the other queue), not a smoothed
          average; v) the queue is compared with the maximum of U random
          numbers (but if U=1, this is the same as the single random number
          used in RED).<vspace blankLines="1"/>Specifically, in line 3a the
          marking probability p_L is set to the Classic queueing time qc.sec()
          in seconds divided by the L4S scaling parameter 2^S_L, which
          represents the queuing time (in seconds) at which marking
          probability would hit 100%. Then in line 3d (if U=1) the result is
          compared with a uniformly distributed random number between 0 and 1,
          which ensures that marking probability will linearly increase with
          queueing time. The scaling parameter is expressed as a power of 2 so
          that division can be implemented as a right bit-shift (&gt;&gt;) in
          line 3 of the integer variant of the pseudocode (<xref
          target="dualq_fig_Algo_Int"/>).</t>

          <t hangText="Classic:">If the test at line 7 determines that there
          is at least one Classic packet to dequeue, the test at line 9b
          determines whether to drop it. But before that, line 8b updates Q_C,
          which is an exponentially weighted moving average (Note <xref
          format="counter" target="dualq_note_non-EWMA"/>) of the queuing time
          in the Classic queue, where pkt.sec() is the instantaneous queueing
          time of the current Classic packet and alpha is the EWMA constant
          for the classic queue. In line 8a, alpha is represented as an
          integer power of 2, so that in line 8 of the integer code the
          division needed to weight the moving average can be implemented by a
          right bit-shift (&gt;&gt; f_C).<vspace blankLines="1"/>Lines 9a and
          9b implement the drop function. In line 9a the averaged queuing time
          Q_C is divided by the Classic scaling parameter 2^S_C, in the same
          way that queuing time was scaled for L4S marking. This scaled
          queuing time is given the variable name sqrt_p_C because it will be
          squared to compute Classic drop probability, so before it is squared
          it is effectively the square root of the drop probability. The
          squaring is done by comparing it with the maximum out of two random
          numbers (assuming U=1). Comparing it with the maximum out of two is
          the same as the logical `AND' of two tests, which ensures drop
          probability rises with the square of queuing time (Note <xref
          format="counter" target="dualq_note_classic_ecn"/>). Again, the
          scaling parameter is expressed as a power of 2 so that division can
          be implemented as a right bit-shift in line 9 of the integer
          pseudocode.</t>
        </list></t>

      <t>The marking/dropping functions in each queue (lines 3 &amp; 9) are
      two cases of a new generalization of RED called Curvy RED, motivated as
      follows. When we compared the performance of our AQM with fq_CoDel and
      PIE, we came to the conclusion that their goal of holding queuing delay
      to a fixed target is misguided <xref target="CRED_Insights"/>. As the
      number of flows increases, if the AQM does not allow TCP to increase
      queuing delay, it has to introduce abnormally high levels of loss. Then
      loss rather than queuing becomes the dominant cause of delay for short
      flows, due to timeouts and tail losses.</t>

      <t>Curvy RED constrains delay with a softened target that allows some
      increase in delay as load increases. This is achieved by increasing drop
      probability on a convex curve relative to queue growth (the square curve
      in the Classic queue, if U=1). Like RED, the curve hugs the zero axis
      while the queue is shallow. Then, as load increases, it introduces a
      growing barrier to higher delay. But, unlike RED, it requires only one
      parameter, the scaling, not three.</t>

      <t>There follows a summary listing of the two parameters used for each
      of the two queues:<list style="hanging">
          <t hangText="Classic:"><list style="hanging">
              <t hangText="S_C : ">The scaling factor of the dropping function
              scales Classic queuing times in the range [0, 2^(S_C)] seconds
              into a dropping probability in the range [0,1]. To make division
              efficient, it is constrained to be an integer power of two;</t>

              <t hangText="f_C :">To smooth the queuing time of the Classic
              queue and make multiplication efficient, we use a negative
              integer power of two for the dimensionless EWMA constant, which
              we define as 2^(-f_C).</t>
            </list></t>

          <t hangText="L4S : "><list style="hanging">
              <t hangText="S_L (and k): ">As for the Classic queue, the
              scaling factor of the L4S marking function scales Classic
              queueing times in the range [0, 2^(S_L)] seconds into a
              probability in the range [0,1]. Note that S_L = S_C + k, where k
              is the coupling between the queues (<xref
              target="dualq_coupled"/>). So S_L and k count as only one
              parameter;</t>

              <t hangText="T :">The queue size in bytes at which step
              threshold marking starts in the L4S queue.</t>
            </list></t>
        </list>{ToDo: These are the raw parameters used within the algorithm.
      A configuration front-end could accept more meaningful parameters and
      convert them into these raw parameters.}</t>

      <t>From our experiments so far, recommended values for these parameters
      are: S_C = -1; f_C = 5; T = 5 * MTU for the range of base RTTs typical
      on the public Internet. <xref target="CRED_Insights"/> explains why
      these parameters are applicable whatever rate link this AQM
      implementation is deployed on and how the parameters would need to be
      adjusted for a scenario with a different range of RTTs (e.g. a data
      centre) {ToDo incorporate a summary of that report into this draft}. The
      setting of k depends on policy (see <xref target="dualq_norm_reqs"/> and
      <xref target="dualq_Choosing_k"/> respectively for its recommended
      setting and guidance on alternatives).</t>

      <t>There is also a cUrviness parameter, U, which is a small positive
      integer. It is likely to take the same hard-coded value for all
      implementations, once experiments have determined a good value. We have
      solely used U=1 in our experiments so far, but results might be even
      better with U=2 or higher.</t>

      <t>Note that the dropping function at line 9 calls maxrand(2*U), which
      gives twice as much curviness as the call to maxrand(U) in the marking
      function at line 3. This is the trick that implements the square rule in
      equation (1) (<xref target="dualq_coupled"/>). This is based on the fact
      that, given a number X from 1 to 6, the probability that two dice throws
      will both be less than X is the square of the probability that one throw
      will be less than X. So, when U=1, the L4S marking function is linear
      and the Classic dropping function is squared. If U=2, L4S would be a
      square function and Classic would be quartic. And so on.</t>

      <t>The maxrand(u) function in lines 16-21 simply generates u random
      numbers and returns the maximum (Note <xref format="counter"
      target="dualq_note_integer_scaling"/>). Typically, maxrand(u) could be
      run in parallel out of band. For instance, if U=1, the Classic queue
      would require the maximum of two random numbers. So, instead of calling
      maxrand(2*U) in-band, the maximum of every pair of values from a
      pseudorandom number generator could be generated out-of-band, and held
      in a buffer ready for the Classic queue to consume.</t>

      <figure anchor="dualq_fig_Algo_Int"
              title="Optimised Example Dequeue Pseudocode for Coupled DualQ AQM using Integer Arithmetic">
        <artwork><![CDATA[1:  dualq_dequeue(lq, cq) {  % Couples L4S & Classic queues, lq & cq
2:     if ( lq.dequeue(pkt) ) {
3:        if ((lq.byt() > T) || ((cq.ns() >> (S_L-2)) > maxrand(U)))
4:           mark(pkt)
5:        return(pkt)              % return the packet and stop here
6:     }
7:     while ( cq.dequeue(pkt) ) {
8:         Q_C += (pkt.ns() - Q_C) >> f_C           % Classic Q EWMA
9:        if ( (Q_C >> (S_C-2) ) > maxrand(2*U) )
10:          drop(pkt)                     % Squared drop, redo loop
11:       else
12:          return(pkt)           % return the packet and stop here
13:    }
14:    return(NULL)                           % no packet to dequeue
15: }
]]></artwork>
      </figure>

      <t>Notes:<list style="numbers">
          <t anchor="dualq_note_dequeue">The drain rate of the queue can vary
          if it is scheduled relative to other queues, or to cater for
          fluctuations in a wireless medium. To auto-adjust to changes in
          drain rate, the queue must be measured in time, not bytes or packets
          <xref target="CoDel"/>. In our Linux implementation, it was easiest
          to measure queuing time at dequeue. Queuing time can be estimated
          when a packet is enqueued by measuring the queue length in bytes and
          dividing by the recent drain rate.</t>

          <t anchor="dualq_note_strict_priority">An implementation has to use
          priority queueing, but it need not implement strict priority.</t>

          <t anchor="dualq_note_while_loop">If packets can be enqueued while
          processing dequeue code, an implementer might prefer to place the
          while loop around both queues so that it goes back to test again
          whether any L4S packets arrived while it was dropping a Classic
          packet.</t>

          <t anchor="dualq_note_step">In order not to change too many factors
          at once, for now, we keep the marking function for DCTCP-only
          traffic as similar as possible to DCTCP. However, unlike DCTCP, all
          processing is at dequeue, so we determine whether to mark a packet
          at the head of the queue by the byte-length of the queue <spanx
          style="emph">behind</spanx> it. We plan to test whether using
          queuing time will work in all circumstances, and if we find that the
          step can cause oscillations, we will investigate replacing it with a
          steep random marking curve.</t>

          <t anchor="dualq_note_non-EWMA">An EWMA is only one possible way to
          filter bursts; other more adaptive smoothing methods could be valid
          and it might be appropriate to decrease the EWMA faster than it
          increases.</t>

          <t anchor="dualq_note_classic_ecn">In practice at line 10 the
          Classic queue would probably test for ECN capability on the packet
          to determine whether to drop or mark the packet. However, for
          brevity such detail is omitted. All packets classified into the L4S
          queue have to be ECN-capable, so no dropping logic is necessary at
          line 3. Nonetheless, L4S packets could be dropped by overload code
          (see <xref target="dualq_Overload"/>).</t>

          <t anchor="dualq_note_integer_scaling">In the integer variant of the
          pseudocode (<xref target="dualq_fig_Algo_Int"/>) real numbers are
          all represented as integers scaled up by 2^32. In lines 3 &amp; 9
          the function maxrand() is arranged to return an integer in the range
          0 &lt;= maxrand() &lt; 2^32. Queuing times are also scaled up by
          2^32, but in two stages: i) In lines 3 and 8 queuing times cq.ns()
          and pkt.ns() are returned in integer nanoseconds, making the values
          about 2^30 times larger than when the units were seconds, ii) then
          in lines 3 and 9 an adjustment of -2 to the right bit-shift
          multiplies the result by 2^2, to complete the scaling by 2^32.</t>
        </list></t>
    </section>

    <section anchor="dualq_Choosing_k"
             title="Guidance on Controlling Throughput Equivalence">
      <texttable align="center" anchor="dualq_tab_k_policy"
                 title="Value of k for which DCTCP throughput is roughly the same as Reno or Cubic, for some example RTT ratios">
        <ttcol align="right">RTT_C / RTT_L</ttcol>

        <ttcol>Reno</ttcol>

        <ttcol>Cubic</ttcol>

        <c>1</c>

        <c>k=1</c>

        <c>k=0</c>

        <c>2</c>

        <c>k=2</c>

        <c>k=1</c>

        <c>3</c>

        <c>k=2</c>

        <c>k=2</c>

        <c>4</c>

        <c>k=3</c>

        <c>k=2</c>

        <c>5</c>

        <c>k=3</c>

        <c>k=3</c>
      </texttable>

      <t>To determine the appropriate policy, the operator first has to judge
      whether it wants DCTCP flows to have roughly equal throughput with Reno
      or with Cubic (because, even in its Reno-compatibility mode, Cubic is
      about 1.4 times more aggressive than Reno). Then the operator needs to
      decide at what ratio of RTTs it wants DCTCP and Classic flows to have
      roughly equal throughput. For example choosing the recommended value of
      k=0 will make DCTCP throughput roughly the same as Cubic, <spanx
      style="emph">if their RTTs are the same</spanx>.</t>

      <t>However, even if the base RTTs are the same, the actual RTTs are
      unlikely to be the same, because Classic (Cubic or Reno) traffic needs a
      large queue to avoid under-utilization and excess drop, whereas L4S
      (DCTCP) does not. The operator might still choose this policy if it
      judges that DCTCP throughput should be rewarded for keeping its own
      queue short.</t>

      <t>On the other hand, the operator will choose one of the higher values
      for k, if it wants to slow DCTCP down to roughly the same throughput as
      Classic flows, to compensate for Classic flows slowing themselves down
      by causing themselves extra queuing delay.</t>

      <t>The values for k in the table are derived from the formulae, which
      was developed in <xref target="DCttH15"/>:</t>

      <figure>
        <artwork><![CDATA[    2^k = 1.64 (RTT_reno / RTT_dc)                  (2)
    2^k = 1.19 (RTT_cubic / RTT_dc )                (3)
]]></artwork>
      </figure>

      <t>For localized traffic from a particular ISP's data centre, we used
      the measured RTTs to calculate that a value of k=3 would achieve
      throughput equivalence, and our experiments verified the formula very
      closely.</t>
    </section>

    <section anchor="dualq_DCTCP_Safety_Mods"
             title="DCTCP Safety Enhancements">
      <t>This Appendix is informational not normative. It records changes
      needed to DCTCP implementations so they can co-exist safely alongside
      other traffic sources. They are recorded here until a more appropriate
      draft is available to hold them.</t>

      <t>Proposed changes are listed in rough order of criticality. Therefore
      those later in the list may not be necessary:<list style="symbols">
          <t>Negotiate its altered feedback semantics, which conveys the
          extent of ECN marking, not just its existence, and this feedback
          needs to be robust to loss <xref
          target="I-D.ietf-tcpm-accecn-reqs"/>;</t>

          <t>fall back to Reno or Cubic behaviour on loss;</t>

          <t>use a packet identifier associated with the L4S service;</t>

          <t>average ECN feedback over its own RTT, not the hard-coded RTT
          suitable only for data-centres, perhaps like Relentless
          TCP&nbsp;<xref target="Mathis09"/>;</t>

          <t>handle a window of less than 2 when the RTT is low, rather than
          increase the queue <xref target="TCP-sub-mss-w"/>.</t>

          <t>test heuristically whether ECN marking is emanating from an
          RFC3168 AQM.</t>
        </list>Other, non-essential enhancements to DCTCP can be
      envisaged.</t>
    </section>

    <!--    <section title="Change Log (to be Deleted before Publication)">
      <t>A detailed version history can be accessed at
      &lt;http://datatracker.ietf.org/doc/draft-briscoe-aqm-ecn-roadmap/history/&gt;</t>

      <t><list style="hanging">
          <t hangText="From briscoe-...-00 to briscoe-...-01:">Technical
          changes:<list style="symbols">
              <t/>
            </list>Editorial changes:<list style="symbols">
              <t/>
            </list></t>
        </list></t>
    </section>
-->
  </back>
</rfc>
