<?xml version="1.0" encoding="us-ascii"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<!--

The source for this document is at https://github.com/mattmathis/draft-ietf-ippm-mbm .

Please see the README file for additional information.

-->
<!-- draft-ietf-ippm-model-based-bulk-capacity-xx.txt -->
<?rfc toc="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="yes"?>
<?rfc tocdepth="6"?>
<?rfc symrefs="yes"?>
<rfc ipr="trust200902" category="exp"
docName="draft-ietf-ippm-model-based-metrics-13.txt">
  <front>
    <title abbrev="Model Based Metrics">Model Based Metrics for
    Bulk Transport Capacity</title>
    <author fullname="Matt Mathis" initials="M." surname="Mathis">
      <organization>Google, Inc</organization>
      <address>
        <postal>
          <street>1600 Amphitheater Parkway</street>
          <city>Mountain View</city>
          <code>94043</code>
          <region>California</region>
          <country>USA</country>
        </postal>
        <email>mattmathis@google.com</email>
      </address>
    </author>
    <author fullname="Al Morton" initials="A." surname="Morton">
      <organization>AT&amp;T Labs</organization>
      <address>
        <postal>
          <street>200 Laurel Avenue South</street>
          <city>Middletown</city>
          <region>NJ</region>
          <code>07748</code>
          <country>USA</country>
        </postal>
        <phone>+1 732 420 1571</phone>
        <email>acmorton@att.com</email>
      </address>
    </author>
    <date month="September" day="15" year="2017" />
    <area>Operations Area</area>
    <workgroup>IP Performance Working Group</workgroup>
    <!-- ======================================================== -->
    <abstract>

      <t>We introduce a new class of Model Based Metrics designed
      to assess if a complete Internet path can be expected to meet
      a predefined Target Transport Performance by applying a suite
      of IP diagnostic tests to successive subpaths. The
      subpath-at-a-time tests can be robustly applied to critical
      infrastructure, such as network interconnections or even individual
      devices, to accurately detect if any part of the
      infrastructure will prevent paths traversing it from meeting
      the Target Transport Performance.</t>

      <t>Model Based Metrics rely on mathematical models
      to specify a Targeted Suite of IP Diagnostic tests, designed to
      assess whether common transport protocols can be expected to meet a
      predetermined Target Transport Performance over an Internet path.</t>

      <t>For Bulk Transport Capacity the IP diagnostics are built
      using test streams and
      statistical criteria for evaluating the packet transfer
      that mimic TCP over the complete path.
      The temporal structure of the
      test stream (bursts, etc) mimic TCP or other transport
      protocol carrying bulk data over a long path.  However they are
      constructed to be independent of the details of the subpath
      under test, end systems or applications. Likewise the success
      criteria evaluates the packet transfer statistics of the
      subpath against criteria determined by protocol performance
      models applied to the Target Transport Performance of the
      complete path. The success criteria also does not depend on
      the details of the subpath, end systems or application.</t>

      <!--  Comment out to publish

<t>Interim DRAFT Formatted: Fri Sep 15 15:07:50 PDT 2017</t>
-->
    </abstract>
  </front>
  <middle>
    <!-- ======================================================== 1. -->
    <section anchor="introduction" title="Introduction">

      <t>Model Based Metrics (MBM) rely on peer-reviewed
      mathematical models to
      specify a Targeted Suite of IP Diagnostic tests, designed to
      assess whether common transport protocols can be expected to
      meet a predetermined Target Transport Performance over an
      Internet path. This note describes the modeling framework to
      derive the test parameters for assessing an Internet path's
      ability to support a predetermined Bulk Transport
      Capacity.</t>

      <t>Each test in the Targeted IP Diagnostic Suite (TIDS)
      measures some aspect of IP packet transfer needed to meet the
      Target Transport Performance. For Bulk Transport Capacity the
      TIDS includes IP diagnostic tests to verify that there is:
      sufficient IP capacity (data rate); sufficient queue space at
      bottlenecks to absorb and deliver typical transport bursts;
      and that the background packet loss ratio is low enough not
      to interfere with congestion control; and other properties
      described below. Unlike typical IPPM metrics which yield
      measures of network properties, Model Based Metrics nominally
      yield pass/fail evaluations of the ability of standard 
      transport protocols to meet the specific performance
      objective over some network path.</t>

      <t>In most cases, the IP diagnostic tests can be implemented
      by combining existing IPPM metrics with additional controls
      for generating test streams having a specified temporal
      structure (bursts or standing queues caused by constant 
      bit rate streams, etc.) and statistical
      criteria for evaluating packet transfer. The temporal
      structure of the test streams mimic transport protocol
      behavior over the complete path; the statistical criteria
      models the transport protocol's response to less than ideal
      IP packet transfer.  In control theory terms, the tests are
      "open loop".
      Note that running a test requires the coordinated activity of
      sending and receiving measurement points.
      </t>

      <t>This note addresses Bulk Transport Capacity.  It
      describes an alternative to the approach
      presented in "A Framework for Defining Empirical Bulk
      Transfer Capacity Metrics" 
      <xref target="RFC3148" />. Other Model Based
      Metrics may cover other applications and transports, such as
      VoIP over UDP and RTP, and new transport protocols.</t>

      <t>This note assumes a traditional Reno TCP style self clocked,
      window controlled transport protocol that uses
      packet loss and ECN CE marks for congestion feedback.
      There are currently some experimental protocols
      and congestion control algorithms that are rate based
      or otherwise fall outside of these assumptions.
      In the future these new protocols and algorithms
      may call for revised models.</t>

      <t>The MBM approach, mapping Target Transport Performance to
      a Targeted IP Diagnostic Suite (TIDS) of IP tests, solves
      some intrinsic problems with using TCP or other throughput
      maximizing protocols for measurement. In particular all
      throughput maximizing protocols (and TCP congestion control
      in particular) cause some level of congestion in order to
      detect when they have reached the available capacity 
      limitation of the network. This self inflicted
      congestion obscures the network properties of interest and
      introduces non-linear dynamic equilibrium behaviors that make any
      resulting measurements useless as metrics because they have
      no predictive value for conditions or paths different than
      that of the measurement itself.  In order to prevent these
      effects it is necessary to avoid the effects of TCP congestion 
      control in the measurement method.
      These issues are discussed at length in 
      <xref target="background" />.  Readers whom are unfamiliar with
      basic properties of TCP and TCP-like congestion control may
      find it easier to start at <xref target="background" />
      or <xref target="tcp" />.
</t>

      <t>A Targeted IP Diagnostic Suite does not have such
      difficulties. IP diagnostics can be constructed such that
      they make strong statistical statements about path properties
      that are independent of the measurement details, such as
      vantage and choice of measurement points.
<!-- Model Based Metrics
      are designed to bridge the gap between empirical IP
      measurements and expected TCP performance for multiple 
      standardized versions of TCP. --></t>
      <section title="Version Control">

        <t>RFC Editor: Please remove this entire subsection prior
        to publication.</t>

	<t>REF Editor: The reference to draft-ietf-tcpm-rack is to attribute
	an idea.  This document should not block waiting for the completion of
	that one.</t>

        <t>Please send comments about this draft to ippm@ietf.org.
        See http://goo.gl/02tkD for more information including:
        interim drafts, an up to date todo list and information on
        contributing.</t>

        <t>Formatted: Fri Sep 15 15:07:50 PDT 2017</t>

	<t>Changes since -11 draft:
	<list style="symbols">
	  <t>(From IESG review comments.)</t>
	  <t>Ben Campbell: Shorten the Abstract.</t>
	  <t>Mirja Kuhlewind: Reduced redundancy. (See message)</t>
	  <t>MK: Mention open loop in the introduction.</t>
	  <t>MK: Spelled out ECN and reference RFC3168.</t>
	  <t>MK: Added a paragraph to the introduction about assuming a traditional self clocked,
	  window controlled transport protocol.</t>
	  <t>MK: Added language about initial window to the list at about bursts at the end of section 4.1.</t>
	  <t>MK: Network power is defined in the terminology section.</t>
	  <t>MK: The introduction mention coordinated activity of both endpoints.</t>
	  <t>MK: The security section restates that some of the tests are not intended
	  for frequent monitoring tests as the high load can impact other traffic
	  negatively.</t>
	  <t>MK: Restored "Informative References" section name.</t>
	  <t>And a few minor nits.</t>
	  
	</list></t>
  
	<t>Changes since -10 draft:
	<list style="symbols">
	  <t>A few more nits from various sources.</t>
	  <t>(From IETF LC review comments.)</t>
	  <t>David Mandelberg: design metrics to prevent DDOS.</t>
	  <t>From Robert Sparks:<list style="symbols">
	    <t>Remove all legacy 2119 language.</t>
	    <t>Fixed Xr notation inconsistency.</t>
	    <t>Adjusted abstract: tests are only partially specified.</t>
	    <t>Avoid rather than suppress the effects of congestion control</t>
	    <t>Removed the unnecessary, excessively abstract and unclear thought
	    about IP vs TCP measurements.</t>
	    <t>Changed "thwarted" to "not fulfilled".</t>
	    <t>Qualified language about burst models.</t>
	    <t>Replaced "infinitesimal" with other language.</t>
	    <t>Added citations for the reordering strawman.</t>
	    <t>Pointed out that pseudo CBR tests depend on self clock.</t>
	    <t>Fixed some run on sentences.</t>
	    </list></t>
	  <t>Update language to reflect RFC7567, AQM recommendations.</t>
	  <t>Suggestion from Merry Mou (MIT)</t>
        </list></t>

	<t>Changes since -09 draft:
	<list style="symbols">
	  <t>Five last minute editing nits.</t>
        </list></t>

	<t>Changes since -08 draft:
	<list style="symbols">
	  <t>Language, spelling and usage nits.</t>
	  <t>Expanded the abstract describe the models.</t>
	  <t>Remove superfluous standards like language</t>  
	  <t>Remove superfluous "future technology" language.</t>
	  <t>Interconnects -> network interconnections.</t>
	  <t>Added more labels to Figure 1.</t>
	  <t>Defined Bulk Transport.</t>
	  <t>Clarified "implied bottleneck IP capacity"</t>
	  <t>Clarified the history of the BTC metrics.</t>
	  <t>Clarified stochastic vs non-stochastic test traffic generation.</t>
	  <t>Reworked Fig 2 and 6.1 "Mimicking slowstart"</t>
	  <t>Described the unsynchronized parallel stream failure case.</t>
	  <t>Discussed how to measure devices that use virtual queues.</t>	
          <t>Changed section 8.5.2 (Streaming Media) to be Passive Measurements.</t>
        </list></t>

	<t>Changes since -07 draft: 
        <list style="symbols">
	  <t>Sharpened the use of "statistical criteria"</t>

	  <t>Sharpened the definition of test_window, and
	  removed related redundant text in several places</t>

	  <t>Clarified "equilibrium" as "dynamic equilibrium,
	  similar to processes observed in chemistry"</t>

	  <t>Properly explained "Heisenberg" as "observer effect"</t>

	  <t>Added the observation from RFC 6576 that HW and SW
	  congestion control implementations do not generally give the
	  same results.</t>

	  <t>Noted that IP and application metrics differ as to how
	  overhead is handled.  MBM is explicit about how it handles
	  overhead.</t>

	  <t>Clarified the language and added a new reference about
	  the problems caused by token bucket policers.</t>

	  <t>Added an subsection in the example that comments on some of
	  issues that need to be mentioned in a future usage or
	  applicability doc.</t>

	  <t>Updated ippm-2680-bis to RFC7680</t>
	  
	  <t>Many terminology, punctuation and spelling nits.</t>
        </list></t>

        <t>Changes since -06 draft: 
        <list style="symbols">

          <t>More language nits:
          <list style="symbols">

            <t>"Targeted IP Diagnostic Suite (TIDS)" replaces
            "Targeted Diagnostic Suite (TDS)".</t>

            <t>"implied bottleneck IP capacity" replaces "implied
            bottleneck IP rate".</t>

            <t>Updated to ECN CE Marks.</t>

            <t>Added "specified temporal structure"</t>

            <t>"test stream" replaces "test traffic"</t>

            <t>"packet transfer" replaces "packet delivery"</t>

            <t>Reworked discussion of slowstart, bursts and
            pacing.</t>

            <t>RFC 7567 replaces RFC 2309.</t>
          </list></t>
        </list></t>

        <t>Changes since -05 draft: 
        <list style="symbols">

          <t>Wordsmithing on sections overhauled in -05 draft.</t>

          <t>Reorganized the document:
          <list style="symbols">

            <t>Relocated subsection "Preconditions".</t>

            <t>Relocated subsection "New Requirements relative to
            RFC 2330".</t>
          </list></t>

          <t>Addressed nits and not so nits by Ruediger Geib.
          (Thanks!)</t>

          <t>Substantially tightened the entire definitions
          section.</t>

          <t>Many terminology changes, to better conform to other
          docs :
          <list style="symbols">

            <t>IP rate and IP capacity (following RFC 5136)
            replaces various forms of link data rate.</t>

            <t>subpath replaces link.</t>

            <t>target_window_size replaces target_pipe_size.</t>

            <t>implied bottleneck IP rate replaces effective
            bottleneck link rate.</t>

            <t>Packet delivery statistics replaces delivery
            statistics.</t>
          </list></t>
        </list></t>

        <t>Changes since -04 draft: 
        <list style="symbols">

          <t>The introduction was heavily overhauled: split into a
          separate introduction and overview.</t>

          <t>The new shorter introduction: 
          <list style="symbols">

            <t>Is a problem statement;</t>

            <t>This document provides a framework;</t>

            <t>That it replaces TCP measurement by IP tests;</t>

            <t>That the results are pass/fail.</t>
          </list></t>

          <t>Added a diagram of the framework to the overview</t>

          <t>and introduces all of the elements of the
          framework.</t>

          <t>Renumbered sections, reducing the depth of some
          section numbers.</t>

          <t>Updated definitions to better agree with other
          documents: 
          <list style="symbols">

            <t>Reordered section 2</t>

            <t>Bulk [data] performance -&gt; Bulk Transport
            Capacity, everywhere including the title.</t>

            <t>loss rate and loss probability -&gt; packet loss
            ratio</t>

            <t>end-to-end path -&gt; complete path</t>

            <t>[end-to-end][target] performance -&gt; Target
            Transport Performance</t>

            <t>load test -&gt; capacity test</t>
          </list></t>
        </list></t>
      </section>
    </section>
    <section anchor="overview" title="Overview">

      <t>This document describes a modeling framework for deriving
      a Targeted IP Diagnostic Suite from a predetermined Target
      Transport Performance. It is not a complete specification,
      and relies on other standards documents to define important
      details such as packet Type-P selection, sampling techniques,
      vantage selection, etc. We imagine Fully Specified - Targeted
      IP Diagnostic Suites (FS-TIDS), that define all of these
      details. We use Targeted IP Diagnostic Suite (TIDS) to refer
      to the subset of such a specification that is in scope for
      this document.  This terminology is defined in 
      <xref target="terminology" />.</t>

      <t><xref target="background" /> describes some key aspects of TCP
      behavior and what they imply about the requirements for IP
      packet transfer. Most of the IP diagnostic tests needed to
      confirm that the path meets these properties can be built on
      existing IPPM metrics, with the addition of statistical
      criteria for evaluating packet transfer and in a few cases,
      new mechanisms to implement the required temporal structure.
      (One group of tests, the standing queue tests described in 
      <xref target="standing_queue" />, don't correspond to
      existing IPPM metrics, but suitable new IPPM metrics can be patterned
      after the existing definitions.)</t>

      <t><xref target="fig1" /> shows the MBM modeling and measurement
      framework. The Target Transport Performance, at the top of
      the figure, is determined by the needs of the user or
      application, outside the scope of this document. For Bulk
      Transport Capacity, the main performance parameter of
      interest is the Target Data Rate. However, since TCP's
      ability to compensate for less than ideal network conditions
      is fundamentally affected by the Round Trip Time (RTT) and
      the Maximum Transmission Unit (MTU) of the complete path,
      these parameters must also be specified in advance based on
      knowledge about the intended application setting. They may
      reflect a specific application over a real path through the
      Internet or an idealized application and hypothetical path
      representing a typical user community. 
      <xref target="all_models" /> describes the common parameters
      and models derived from the Target Transport Performance.</t>




<!-- 6789112345678921234567893123456789412345678951234567896123456789712 -->
<figure anchor="fig1">
<artwork><![CDATA[
            Target Transport Performance  
  (Target Data Rate, Target RTT and Target MTU)
                         |
                 ________V_________
                 |  mathematical  |
                 |     models     |
                 |                |
                 ------------------
Traffic parameters |            | Statistical criteria
                   |            |
            _______V____________V____Targeted_______
           |       |   * * *    | Diagnostic Suite  |
      _____|_______V____________V________________   |
    __|____________V____________V______________  |  |
    |           IP diagnostic tests            | |  |
    |              |            |              | |  |
    | _____________V__        __V____________  | |  |
    | |   traffic    |        |   Delivery  |  | |  |
    | |   pattern    |        |  Evaluation |  | |  |
    | |  generation  |        |             |  | |  |
    | -------v--------        ------^--------  | |  |
    |   |    v    test stream via   ^      |   | |--
    |   |  -->======================>--    |   | |
    |   |       subpath under test         |   |-
    ----V----------------------------------V--- |
        | |  |                             | |  |
        V V  V                             V V  V
    fail/inconclusive            pass/fail/inconclusive  
(traffic generation status)           (test result)  
]]></artwork>
<postamble>Overall Modeling Framework</postamble></figure>

      <t>Mathematical TCP models are used to determine Traffic 
	  parameters and subsequently to design traffic
      patterns that mimic TCP or other transport protocol
      delivering bulk data and operating at the Target Data Rate,
      MTU and RTT over a full range of conditions, including flows
      that are bursty at multiple time scales. The traffic patterns
      are generated based on the three Target parameters of
      complete path and independent of the properties of individual
      subpaths using the techniques described in 
      <xref target="generation" />. As much as possible the
      test streams are generated deterministically
      (precomputed) to minimize the extent to which test
      methodology, measurement points, measurement vantage or path
      partitioning affect the details of the measurement
      traffic.</t>

      <t>
      <xref target="results" /> describes packet transfer statistics
      and methods to test them against the statistical criteria provided by the
      mathematical models. Since the statistical criteria typically
      apply to the complete path (a composition of subpaths)
      <xref target="RFC6049" />, in situ testing requires that the
      end-to-end statistical criteria be apportioned as separate
      criteria for each subpath. Subpaths that are expected to be
      bottlenecks would then be permitted to contribute a larger
      fraction of the end-to-end
      packet loss budget. In compensation,
      subpaths that are not expected to exhibit bottlenecks must be constrained to contribute less packet
      loss. Thus the statistical criteria for each subpath in each test of a
      TIDS is an apportioned share of the end-to-end statistical criteria
      for the complete path which was determined by the mathematical model.
      </t>

      <t>
      <xref target="tests" /> describes the suite of individual
      tests needed to verify all of required IP delivery
      properties. A subpath passes if and only if all of the
      individual IP diagnostic tests pass. Any subpath that fails
      any test indicates that some users are likely to fail to attain
      their Target Transport Performance under some conditions. In
      addition to passing or failing, a test can be deemed to be
      inconclusive for a number of reasons including: the
      precomputed traffic pattern was not accurately generated; the
      measurement results were not statistically significant; and
      others such as failing to meet some required test
      preconditions. If all tests pass but some are
      inconclusive, then the entire suite is deemed to be
      inconclusive.</t>

      <t>In 
      <xref target="examples" /> we present an example TIDS that
      might be representative of High Definition (HD) video, and illustrate how Model
      Based Metrics can be used to address difficult measurement
      situations, such as confirming that inter-carrier exchanges
      have sufficient performance and capacity to deliver HD video
      between ISPs.</t>

      <t>Since there is some uncertainty in the modeling process, 
      <xref target="validation" /> describes a validation procedure
      to diagnose and minimize false positive and false negative
      results.</t>
      <!--

<t>A TIDS includes the target parameters, documentation of the models and assumptions used to derive the IP diagnostic test parameters, specifications for the traffic patterns and packet transfer statistics for the tests themselves, and a description of a test setup that can be used to validate the tests and models.</t>
-->
    </section>
    <!-- ===================================================== 2 -->
    <section anchor="terminology" title="Terminology">
      <!--  copy:          <t hangText=""></t>                 -->

<!--
      <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" />.</t>
-->
      <t>Terms containing underscores (rather than spaces) appear in equations
      and typically have algorithmic definitions.
      </t>

      <t>General Terminology:</t>

      <t>
        <list style="hanging">
          <t hangText="Target:">A general term for any parameter
          specified by or derived from the user's application or
          transport performance requirements.</t>
          <t hangText="Target Transport Performance:">Application
          or transport performance target values for the complete path. For
          Bulk Transport Capacity defined in this note the Target
          Transport Performance includes the Target Data Rate,
          Target RTT and Target MTU as described below.</t>
          <t hangText='Target Data Rate:'>The specified application
          data rate required for an application's proper operation.
          Conventional Bulk Transport Capacity (BTC) metrics are focused on the Target Data
          Rate, however these metrics had little or no predictive
          value because they do not consider the effects of the
          other two parameters of the Target Transport Performance,
          the RTT and MTU of the complete paths.</t>
          <t hangText='Target RTT (Round Trip Time):'>The specified
          baseline (minimum) RTT of the longest complete path over
          which the user expects to be able to meet the target
          performance. TCP and other transport protocol's ability
          to compensate for path problems is generally proportional
          to the number of round trips per second. The Target RTT
          determines both key parameters of the traffic patterns
          (e.g. burst sizes) and the thresholds on acceptable IP
          packet transfer statistics. The Target RTT must be
          specified considering appropriate packets sizes: MTU
          sized packets on the forward path, ACK sized packets
          (typically header_overhead) on the return path. Note that
          Target RTT is specified and not measured, MBM measurements
	  derived for a given target_RTT will be applicable to
	  any path with a smaller RTTs.</t>
          <t hangText='Target MTU (Maximum Transmission Unit):'>The
          specified maximum MTU supported by the complete path the
          over which the application expects to meet the target
          performance. In this document assume a 1500 Byte MTU unless otherwise
          specified. If some subpath has a smaller MTU, then it
          becomes the Target MTU for the complete path, and all
          model calculations and subpath tests must use the same
          smaller MTU.</t>
          <t hangText="Targeted IP Diagnostic Suite (TIDS):">A set
          of IP diagnostic tests designed to determine if an
          otherwise ideal complete path containing the subpath
          under test can sustain flows at a specific
          target_data_rate using target_MTU sized packets when the
          RTT of the complete path is target_RTT.</t>
          <t hangText="Fully Specified Targeted IP Diagnostic Suite (FS-TIDS):">
          A TIDS together with additional specification such as measurement packet type
          ("type-p" <xref target="RFC2330" />), etc. which are out of scope for this document,
          but need to be drawn from other standards documents.</t>
          <t hangText="Bulk Transport Capacity:">Bulk Transport
          Capacity Metrics evaluate an Internet path's ability to
          carry bulk data, such as large files, streaming (non-real
          time) video, and under some conditions, web images and
          other content. Prior efforts to define BTC metrics have
          been based on 
          <xref target="RFC3148" />, which predates our
          understanding of TCP and the requirements described in 
          <xref target="background" />.
	  In general "Bulk Transport" indicates that performance is
	  determined by the interplay between the network, cross
	  traffic and congestion control in the transport protocol.
	  It excludes situations where
	  performance is dominated by the RTT alone (e.g. transactions)
	  or bottlenecks elsewhere, such as in the application itself.
	  </t>
          <t hangText="IP diagnostic tests:">Measurements or
          diagnostics to determine if packet transfer statistics
          meet some precomputed target.</t>
          <t hangText="traffic patterns:">The temporal patterns or
          burstiness of traffic generated by applications over
          transport protocols such as TCP. There are several
          mechanisms that cause bursts at various time scales as
          described in 
          <xref target="tcp" />. Our goal here is to mimic the
          range of common patterns (burst sizes and rates, etc),
          without tying our applicability to specific applications,
          implementations or technologies, which are sure to become
          stale.</t>
	  <t hangText="Explicit Congestion Notification (ECN):">See <xref target="RFC3168" />.</t>
          <t hangText="packet transfer statistics:">Raw, detailed
          or summary statistics about packet transfer properties of
          the IP layer including packet losses, ECN Congestion
          Experienced (CE) marks, reordering, or any other
          properties that may be germane to transport
          performance.</t>
          <t hangText="packet loss ratio:">As defined in 
          <xref target="RFC7680" />.</t>
          <t hangText="apportioned:">To divide and allocate, for
          example budgeting packet loss across multiple subpaths
          such that the losses will accumulate to less than a
          specified end-to-end loss ratio. Apportioning metrics is
          essentially the inverse of the process described in 
          <xref target="RFC5835" />.</t>
          <t hangText="open loop:">A control theory term used to
          describe a class of techniques where systems that
          naturally exhibit circular dependencies can be analyzed
          by suppressing some of the dependencies, such that the
          resulting dependency graph is acyclic.</t>
          <!--  copy:
<t hangText="@">@ @</t>
-->
        </list>
      </t>

      <t>Terminology about paths, etc. See 
      <xref target="RFC2330" /> and 
      <xref target="RFC7398" /> for existing terms and definitions.</t>

      <t>
        <list style="hanging">
          <t hangText="data sender:">Host sending data and
          receiving ACKs.</t>
          <t hangText="data receiver:">Host receiving data and
          sending ACKs.</t>
          <t hangText="complete path:">The end-to-end path from the
          data sender to the data receiver.</t>
          <t hangText="subpath:">A portion of the complete path.
          Note that there is no requirement that subpaths be
          non-overlapping. A subpath can be a small as a single
          device, link or interface.</t>
          <t hangText="measurement point:">Measurement points as
          described in 
          <xref target="RFC7398" />.</t>
          <t hangText="test path:">A path between two measurement
          points that includes a subpath of the complete path under
          test. If the measurement points are off path, the test
          path may include "test leads" between the measurement
          points and the subpath.</t>
          <t hangText="dominant bottleneck:">The bottleneck that
          generally determines most of packet transfer statistics
          for the entire path. It typically determines a flow's
          self clock timing, packet loss and ECN Congestion
          Experienced (CE) marking rate, with other potential
          bottlenecks having less effect on the packet transfer
          statistics. See 
          <xref target="tcp" /> on TCP properties.</t>
          <t hangText="front path:">The subpath from the data
          sender to the dominant bottleneck.</t>
          <t hangText="back path:">The subpath from the dominant
          bottleneck to the receiver.</t>
          <t hangText="return path:">The path taken by the ACKs
          from the data receiver to the data sender.</t>
          <t hangText="cross traffic:">Other, potentially
          interfering, traffic competing for network resources
          (bandwidth and/or queue capacity).</t>
        </list>
      </t>

      <t>Properties determined by the complete path and
      application. These are described in more detail in 
      <xref target="target" />.</t>

      <t>
        <list style="hanging">
          <t hangText="Application Data Rate:">General term for the
          data rate as seen by the application above the transport
          layer in bytes per second. This is the payload data rate,
          and explicitly excludes transport and lower level headers
          (TCP/IP or other protocols), retransmissions and other
          overhead that is not part to the total quantity of data
          delivered to the application.</t>
          <t hangText="IP rate:">The actual number of IP-layer
          bytes delivered through a subpath, per unit time,
          including TCP and IP headers, retransmits and other
          TCP/IP overhead. Follows from IP-type-P Link Usage 
          <xref target="RFC5136" />.</t>
          <t hangText="IP capacity:">The maximum number of IP-layer
          bytes that can be transmitted through a subpath, per unit
          time, including TCP and IP headers, retransmits and other
          TCP/IP overhead. Follows from IP-type-P Link Capacity 
          <xref target="RFC5136" />.</t>
          <t hangText="bottleneck IP capacity:">The IP capacity of
          the dominant bottleneck in the forward path. All
          throughput maximizing protocols estimate this capacity by
          observing the IP rate delivered through the bottleneck.
          Most protocols derive their self clocks from the timing
          of this data. See 
          <xref target="tcp" /> and 
          <xref target="complex" /> for more details.</t>
          <t hangText="implied bottleneck IP capacity:">This is the
          bottleneck IP capacity implied by the ACKs returning from
          the receiver. It is determined by looking at how much
          application data the ACK stream at the sender reports
          delivered to the data receiver per unit time at various
          time scales. If the return path is thinning, batching or
          otherwise altering the ACK timing the implied bottleneck
          IP capacity over short time scales might be substantially
          larger than the bottleneck IP capacity averaged over a
          full RTT. Since TCP derives its clock from the data
          delivered through the bottleneck, the front path must have
          sufficient buffering to absorb any data bursts at the
          dimensions (size and IP rate) implied by the ACK
          stream, which are potentially doubled during slowstart. If the
          return path is not altering the ACK stream, then the
          implied bottleneck IP capacity will be the same as the
          bottleneck IP capacity. See 
          <xref target="tcp" /> and 
          <xref target="complex" /> for more details.</t>
          <t hangText="sender interface rate:">The IP rate which
          corresponds to the IP capacity of the data sender's
          interface. Due to sender efficiency algorithms including
          technologies such as TCP segmentation offload (TSO),
          nearly all modern servers deliver data in bursts at full
          interface link rate. Today 1 or 10 Gb/s are typical.</t>
          <t hangText="Header_overhead:">The IP and TCP header
          sizes, which are the portion of each MTU not available
          for carrying application payload. Without loss of
          generality this is assumed to be the size for returning
          acknowledgments (ACKs). For TCP, the Maximum Segment
          Size (MSS) is the Target MTU minus the
          header_overhead.</t>
        </list>
      </t>

      <t>Basic parameters common to models and subpath tests are
      defined here are described in more detail in 
      <xref target="models" />. Note that these are mixed between
      application transport performance (excludes headers) and IP
      performance (which include TCP headers and retransmissions as
      part of the IP payload).</t>

      <t>
        <list style="hanging">
	  <t hangText="Network power:">The observed data rate 
	  divided by the observed RTT.  Network power indicates
	  how effectively a transport protocol is filling a network.
	  </t>
          <t hangText="Window [size]:">The total quantity of data
          carried by packets in-flight 
          plus the data represented by ACKs circulating in the
          network is referred to as the window. See 
          <xref target="tcp" />. Sometimes used with other
          qualifiers (congestion window, cwnd or receiver window)
          to indicate which mechanism is controlling the
          window.</t>
          <t hangText="pipe size:">A general term for number of
          packets needed in flight (the window size) to exactly
          fill some network path or subpath. It corresponds to the
          window size which maximizes network power. Often used with
          additional qualifiers to specify which path, or under
          what conditions, etc.</t>
          <t hangText="target_window_size:">The average number of
          packets in flight (the window size) needed to meet the
          Target Data Rate, for the specified Target RTT, and MTU.
          It implies the scale of the bursts that the network might
          experience.</t>
          <t hangText="run length:">A general term for the
          observed, measured, or specified number of packets that
          are (expected to be) delivered between losses or ECN
          Congestion Experienced (CE) marks. Nominally one over the
          sum of the loss and ECN CE marking probabilities, if
          there are independently and identically distributed.</t>
          <t hangText="target_run_length:">The target_run_length is
          an estimate of the minimum number of non-congestion
          marked packets needed between losses or ECN Congestion
          Experienced (CE) marks necessary to attain the
          target_data_rate over a path with the specified
          target_RTT and target_MTU, as computed by a mathematical
          model of TCP congestion control. A reference calculation
          is shown in 
          <xref target="models" /> and alternatives in 
          <xref target="derive" /></t>
          <t hangText="reference target_run_length:">
          target_run_length computed precisely by the method in 
          <xref target="models" />. This is likely to be
          slightly more conservative than required by modern TCP
          implementations.</t>
        </list>
      </t>

      <t>Ancillary parameters used for some tests:</t>

      <t>
        <list style="hanging">
          <t hangText="derating:">Under some conditions the
          standard models are too conservative. The modeling
          framework permits some latitude in relaxing or "derating"
          some test parameters as described in 
          <xref target="derate" /> in exchange for a more stringent
          TIDS validation procedures, described in 
          <xref target="validation" />.
	  Models can be derated by including a multiplicative
	  derating factor to make tests less stringent.
	  </t>
          <t hangText="subpath_IP_capacity:">The IP capacity of a
          specific subpath.
	  </t>
          <t hangText="test path:">A subpath of a complete path
          under test.</t>
          <t hangText="test_path_RTT:">The RTT observed between two
          measurement points using packet sizes that are consistent
          with the transport protocol.
	  This is generally MTU sized packets
          of the forward path, header_overhead sized packets on the
          return path.</t>
          <t hangText="test_path_pipe:">The pipe size of a test
          path. Nominally the test_path_RTT times the test path
          IP_capacity.</t>
          <t hangText="test_window:">The smallest window sufficient
	  to meet or exceed
          the target_rate when operating with a pure self clock over a test path.
	  The test_window is typically given by
          ceiling(target_data_rate*test_path_RTT/(target_MTU-header_overhead))
	  but see the discussion in <xref target="complex" /> about
	  the effects of channel scheduling on RTT.
	  On some test paths the test_window may need to be
	  adjusted slightly to compensate for the RTT being
	  inflated by the devices that schedule packets.</t>
          <!-- <t hangText="@:">@ @</t> -->
        </list>
      </t>

      <t>The terminology below is used to define temporal patterns
      for test stream. These patterns are designed to mimic TCP
      behavior, as described in 
      <xref target="tcp" />. 
      <list style="hanging">
        <t hangText="packet headway:">Time interval between
        packets, specified from the start of one to the start of
        the next. e.g. If packets are sent with a 1 mS headway,
        there will be exactly 1000 packets per second.</t>
        <t hangText="burst headway:">Time interval between bursts,
        specified from the start of the first packet one burst to
        the start of the first packet of the next burst. e.g. If 4
        packet bursts are sent with a 1 mS burst headway, there
        will be exactly 4000 packets per second.</t>
        <t hangText="paced single packets:">Send individual packets
        at the specified rate or packet headway.</t>
        <t hangText="paced bursts:">Send bursts on a timer. Specify
        any 3 of: average data rate, packet size, burst size
        (number of packets) and burst headway (burst start to
        start). By default the bursts are assumed to occur at full sender
        interface rate, such that the packet headway within each
        burst is the minimum supported by the sender's interface.
        Under some conditions it is useful to explicitly specify
        the packet headway within each burst.</t>
        <t hangText="slowstart rate:">Mimic TCP slowstart by
        sending 4 packet paced bursts at an average data rate equal
        to twice the implied bottleneck IP capacity (but not more
        than the sender interface rate). This is a two level burst
        pattern described in more detail in 
        <xref target="paced" />. If the implied bottleneck IP
        capacity is more than half of the sender interface rate,
        slowstart rate becomes sender interface rate.</t>
        <t hangText="slowstart burst:">Mimic one round of TCP
        slowstart by sending a specified number of packets packets
        in a two level burst pattern that resembles slowstart.</t>
        <t hangText="repeated slowstart bursts:">Repeat Slowstart
        bursts once per target_RTT. For TCP each burst would be
        twice as large as the prior burst, and the sequence would
        end at the first ECN CE mark or lost packet. For
        measurement, all slowstart bursts would be the same size
        (nominally target_window_size but other sizes might be
        specified), and the ECN CE marks and lost packets are
        counted.</t>
      </list></t>

      <t>The tests described in this note can be grouped according
      to their applicability.</t>

      <t>
        <list style="hanging">
          <t hangText="Capacity tests:">Capacity tests determine if
          a network subpath has sufficient capacity to deliver the
          Target Transport Performance. As long as the test stream
          is within the proper envelope for the Target Transport
          Performance, the average packet losses or ECN Congestion
          Experienced (CE) marks must be below the statistical criteria
          computed by the model. As such, capacity tests reflect
          parameters that can transition from passing to failing as
          a consequence of cross traffic, additional presented load
          or the actions of other network users. By definition,
          capacity tests also consume significant network resources
          (data capacity and/or queue buffer space), and the test
          schedules must be balanced by their cost.</t>
          <t hangText="Monitoring tests:">Monitoring tests are
          designed to capture the most important aspects of a
          capacity test, but without presenting excessive ongoing
          load themselves. As such they may miss some details of
          the network's performance, but can serve as a useful
          reduced-cost proxy for a capacity test, for example to
          support continuous production network monitoring.</t>
          <t hangText="Engineering tests:">Engineering tests
          evaluate how network algorithms (such as AQM and channel
          allocation) interact with TCP-style self clocked
          protocols and adaptive congestion control based on packet
          loss and ECN Congestion Experienced (CE) marks. These
          tests are likely to have complicated interactions with
          cross traffic and under some conditions can be inversely
          sensitive to load. For example a test to verify that an
          AQM algorithm causes ECN CE marks or packet drops early
          enough to limit queue occupancy may experience a false
          pass result in the presence of cross traffic. It is
          important that engineering tests be performed under a
          wide range of conditions, including both in situ and
          bench testing, and over a wide variety of load
          conditions. Ongoing monitoring is less likely to be
          useful for engineering tests, although sparse in situ
          testing might be appropriate.</t>
        </list>
      </t>
    </section>
    <!-- ======================================================== 4 -->
    <section anchor="background" title="Background">

      <t>
      At the time the "Framework for IP Performance Metrics" 
      <xref target="RFC2330" /> was published (1998),
      sound Bulk
      Transport Capacity (BTC) measurement was known to be well beyond
      our capabilities. Even when Framework for Empirical 
      BTC Metrics 
      <xref target="RFC3148" /> was published, we knew that we didn't
      really understand the problem. Now, by hindsight we understand
      why assessing BTC is such a hard problem:
      <list style="symbols">

        <t>TCP is a control system with circular dependencies -
        everything affects performance, including components that
        are explicitly not part of the test (for example, the host 
        processing power is not in-scope of path performance tests).</t>

        <t>Congestion control is a dynamic equilibrium process,
	similar to processes observed in chemistry and other fields.
        The network and transport protocols find an operating point
	which balances between opposing forces:
	the transport protocol pushing harder
	(raising the data rate and/or window)
	while the network pushes back
	(raising packet loss ratio, RTT and/or ECN CE marks).
        By design TCP congestion control keeps
        raising the data rate until the network gives some
        indication that its capacity has been exceeded by dropping 
        packets or adding ECN CE marks. If a TCP sender accurately fills a
	path to its IP capacity, (e.g. the bottleneck is 100% utilized),
 
        then packet losses and ECN CE marks are mostly determined by 
        the TCP sender and how aggressively it seeks additional capacity,
        and not the network itself, since the network
	must send exactly the signals that TCP needs to set its rate.</t>

        <t>TCP's ability to compensate for network impairments (such as 
        loss, delay and delay variation, outside of those caused by TCP 
        itself) is directly proportional to the number of send-ACK round trip
        exchanges per second (i.e. inversely proportional to the RTT). As a
        consequence an impaired subpath may pass a short RTT local test even
        though it fails when the subpath is extended by an effectively 
        perfect network to some larger RTT.</t>

        <t>TCP has an extreme form of the Observer Effect
	(colloquially know as the Heisenberg effect).
        Measurement and cross traffic interact in unknown and ill
        defined ways.
        The situation is actually worse than the
        traditional physics problem where you can at least estimate
        bounds on the relative momentum of the measurement and
        measured particles. For network measurement you can not in
        general determine even the order of magnitude of the effect.
	It is possible to construct measurement scenarios where
	the measurement traffic starves real user traffic, yielding
	an overly inflated measurement.  The inverse is also possible:
	the user traffic can fill the network, such that the
	measurement traffic detects only minimal available capacity.
	You can not in general determine which scenario might be
	in effect, so you can not gauge the
        relative magnitude of the uncertainty
        introduced by interactions with other network traffic.</t>

        <t>As a consequence of the properties listed above
	it is difficult, if not impossible, for two independent
        implementations (HW or SW) of TCP congestion control to produce 
        equivalent performance results <xref target="RFC6576" />
        under the same network conditions,  </t>
      </list></t>

      <!-- @@@@ Archaic language, consider redoing -->
      <t>These properties are a consequence of the dynamic equilibrium
      behavior intrinsic to how all throughput maximizing protocols
      interact with the Internet. These protocols rely on control
      systems based on estimated network metrics to regulate the
      quantity of data to send into the network. The packet sending 
      characteristics in turn alter the network properties
      estimated by the control system metrics, such that there are 
      circular dependencies between every transmission characteristic
      and every estimated metric. Since some of these dependencies
      are nonlinear, the entire system is nonlinear, and any change 
      anywhere causes a difficult to predict response in
      network metrics.   As a consequence Bulk Transport
      Capacity metrics have not fulfilled the analytic framework
      envisioned in <xref target="RFC2330" /></t>

      <t>Model Based Metrics overcome these problems by making the
      measurement system open loop: the packet transfer statistics
      (akin to the network estimators) do not affect the traffic or
      traffic patterns (bursts), which are computed on the basis of the
      Target Transport Performance. A path or subpath meeting the Target 
      Transfer Performance requirements would exhibit packet transfer 
      statistics and estimated metrics that would not cause the control
      system to slow the traffic below the Target Data Rate.</t>
      <section anchor="tcp" title="TCP properties">

        <t>TCP and other self clocked protocols (e.g. SCTP) carry the
        vast majority of all Internet data. Their dominant bulk data
	transport behavior
        is to have an approximately fixed quantity of data and
        acknowledgments (ACKs) circulating in the network. The
        data receiver reports arriving data by returning ACKs to
        the data sender, the data sender typically responds by
        sending approximately the same quantity of data back into the
        network. The total quantity of data plus the data
        represented by ACKs circulating in the network is referred
        to as the window. The mandatory congestion control
        algorithms incrementally adjust the window by sending
        slightly more or less data in response to each ACK. The
        fundamentally important property of this system is that it
        is self clocked: The data transmissions are a reflection of
        the ACKs that were delivered by the network, the ACKs are a
        reflection of the data arriving from the network.</t>

        <t>A number of protocol features cause bursts of data, even
        in idealized networks that can be modeled as simple
        queuing systems.</t>

        <t>During slowstart the IP rate is doubled on each RTT by
        sending twice as much data as was delivered to the receiver
        during the prior RTT. Each returning ACK causes the sender
        to transmit twice the data the ACK reported arriving at the
        receiver. For slowstart to be able to fill the pipe, the
        network must be able to tolerate slowstart bursts up to the
        full pipe size inflated by the anticipated window reduction
        on the first loss or ECN CE mark. For example, with classic
        Reno congestion control, an optimal slowstart has to end
        with a burst that is twice the bottleneck rate for one RTT
        in duration. This burst causes a queue which is equal to
        the pipe size (i.e. the window is twice the pipe size) so
        when the window is halved in response to the first packet
        loss, the new window will be the pipe size.</t>

        <t>Note that if the bottleneck IP rate is less that half of
        the capacity of the front path (which is almost always the
        case), the slowstart bursts will not by themselves cause
        significant queues anywhere else along the front path; they
        primarily exercise the queue at the dominant
        bottleneck.</t>

        <t>Several common efficiency algorithms also cause bursts.
        The self clock is typically applied to groups of packets:
        the receiver's delayed ACK algorithm generally sends only
        one ACK per two data segments. Furthermore the modern
        senders use TCP segmentation offload (TSO) to reduce CPU
        overhead. The sender's software stack builds super sized TCP
        segments that the TSO hardware splits into MTU sized
        segments on the wire. The net effect of TSO, delayed ACK
        and other efficiency algorithms is to send bursts of
        segments at full sender interface rate.</t>

        <t>Note that these efficiency algorithms are almost always
        in effect, including during slowstart, such that slowstart
        typically has a two level burst structure. 
        <xref target="paced" /> describes slowstart in more
        detail.</t>

        <t>Additional sources of bursts include TCP's initial
        window 
        <xref target="RFC6928" />, application pauses, channel
        allocation mechanisms and network devices that schedule
        ACKs. 
        <xref target="complex" /> describes these last two items. If
        the application pauses (stops reading or writing data) for
        some fraction of an RTT, many TCP implementations catch up
        to their earlier window size by sending a burst of data at
        the full sender interface rate. To fill a network with a
        realistic application, the network has to be able to
        tolerate sender interface rate bursts large enough to
        restore the prior window following application pauses.</t>

        <t>Although the sender interface rate bursts are typically
        smaller than the last burst of a slowstart, they are at a
        higher IP rate so they potentially exercise queues at
        arbitrary points along the front path from the data sender
        up to and including the queue at the dominant bottleneck.
	It is known that these bursts can hurt network performance,
	especially in conjunction with other queue pressure, however
        we are not aware of any models for how frequent sender rate
	bursts the network should be able to
	tolerate at various burst sizes.</t>

        <t>In conclusion, to verify that a path can meet a Target
        Transport Performance, it is necessary to independently
        confirm that the path can tolerate bursts at the scales
        that can be caused by the above mechanisms. Three cases are
        believed to be sufficient:</t>

        <t>
          <list style="symbols">

            <t>Two level slowstart bursts sufficient to get
            connections started properly.</t>

            <t>Ubiquitous sender interface rate bursts caused by
            efficiency algorithms. We assume 4 packet bursts to be
            the most common case, since it matches the effects of
            delayed ACK during slowstart. These bursts should be
            assumed not to significantly affect packet transfer
            statistics.</t>

            <t>Infrequent sender interface rate bursts that are
            the maximum of the full target_window_size and the
	    initial window size (10 segments in <xref target="RFC6928" />).
	    The Target_run_length may be
            derated for these large fast bursts.</t>
          </list>
        </t>

        <t>If a subpath can meet the required packet loss ratio for
        bursts at all of these scales then it has sufficient
        buffering at all potential bottlenecks to tolerate any of
        the bursts that are likely introduced by TCP or other
        transport protocols.</t>
      </section>
      <section anchor="approach" title="Diagnostic Approach">
        <!--

<t>Reinstate? @@@@   Therefore each subpath's contribution to the end-to-end packet transfer statistics can be assumed to be independent, and spatial composition techniques such as <xref target="RFC5835" /> and <xref target="RFC6049" /> apply. </t> -->

        <t>A complete path of a given RTT and MTU, which are equal
        to or smaller than the Target RTT and equal to or larger
        than the Target MTU respectively, is expected to be able to
        attain a specified Bulk Transport Capacity when all of the
        following conditions are met:
        <list style="numbers">

          <t>The IP capacity is above the Target Data Rate by
          sufficient margin to cover all TCP/IP overheads. This can
          be confirmed by the tests described in 
          <xref target="basicdata" /> or any number of IP capacity
          tests adapted to implement MBM.</t>

          <t>The observed packet transfer statistics are better
          than required by a suitable TCP performance model (e.g.
          fewer packet losses or ECN CE marks). See 
          <xref target="basicdata" /> or any number of low or fixed rate
          packet loss tests outside of MBM.</t>

          <t>There is sufficient buffering at the dominant
          bottleneck to absorb a slowstart bursts large enough to
          get the flow out of slowstart at a suitable window size.
          See 
          <xref target="slowstart" />.</t>

          <t>There is sufficient buffering in the front path to
          absorb and smooth sender interface rate bursts at all
          scales that are likely to be generated by the
          application, any channel arbitration in the ACK path or
          any other mechanisms. See 
          <xref target="sender_rate" />.</t>

          <t>When there is a slowly rising standing queue at the
          bottleneck the onset of packet loss has to be at an
          appropriate point (time or queue depth) and progressive 
          <xref target="RFC7567" />. See 
          <xref target="standing_queue" />.</t>

          <t>When there is a standing queue at a bottleneck for a
          shared media subpath (e.g. half duplex), there must be a
          suitable bounds on the interaction between ACKs and data,
          for example due to the channel arbitration mechanism. See
          
          <xref target="self_interference" />.</t>
        </list></t>

        <t>Note that conditions 1 through 4 require capacity tests
        for validation, and thus may need to be monitored on an
        ongoing basis. Conditions 5 and 6 require engineering
        tests, which are best performed in controlled environments
        such as a bench test. They won't generally fail due to
        load, but may fail in the field due to configuration
        errors, etc. and should be spot checked.</t>

        <t>A tool that can perform many of the
        tests is available from  
        <xref target="MBMSource" />.</t>
        <!-- @@ move? -->
      </section>
      <section anchor="requirements"
      title="New requirements relative to RFC 2330">

        <t>Model Based Metrics are designed to fulfill some
        additional requirements that were not recognized at the
        time RFC 2330 was written 
        <xref target="RFC2330" />. These missing requirements may
        have significantly contributed to policy difficulties in
        the IP measurement space. Some additional requirements are:
        <list style="symbols">

          <t>IP metrics must be actionable by the ISP - they have
          to be interpreted in terms of behaviors or properties at
          the IP or lower layers, that an ISP can test, repair and
          verify.</t>

          <t>Metrics should be spatially composable, such that
          measures of concatenated paths should be predictable from
          subpaths. 
          <!-- Ideally they should also be differentiable: the metrics of a subpath should be  @@ oops  --></t>

          <t>Metrics must be vantage point invariant over a
          significant range of measurement point choices, including
          off path measurement points. The only requirements on MP
          selection should be that the RTT between the MPs is below
          some reasonable bound, and that the effects of the "test
          leads" connecting MPs to the subpath under test can be
          can be calibrated out of the measurements. The latter
          might be be accomplished if the test leads are
          effectively ideal or their properties can be deducted
          from the measurements between the MPs. While many of
          tests require that the test leads have at least as much
          IP capacity as the subpath under test, some do not, for
          example Background Packet Transfer Tests described in 
          <xref target="backloss" />.</t>

          <t>Metric measurements should be repeatable by multiple
          parties with no specialized access to MPs or diagnostic
          infrastructure.
          It should be possible for different parties
          to make the same measurement and observe the same
          results. In particular it is specifically important that
          both a consumer (or their delegate) and ISP be able to
          perform the same measurement and get the same result.
          Note that vantage independence is key to meeting this
          requirement.</t>
        </list></t>
      </section>
    </section>
    <!-- ===================================================== 5 -->
    <section anchor="all_models"
    title="Common Models and Parameters">
      <section anchor="target"
      title="Target End-to-end parameters">

        <t>The target end-to-end parameters are the Target Data
        Rate, Target RTT and Target MTU as defined in 
        <xref target="terminology" />. These parameters are
        determined by the needs of the application or the ultimate
        end user and the complete Internet path over which the
        application is expected to operate. The target parameters
        are in units that make sense to upper layers: payload bytes
        delivered to the application, above TCP. They exclude
        overheads associated with TCP and IP headers, retransmits
        and other protocols (e.g. DNS). Note that IP-based network 
        services include TCP headers and retransmissions as part of 
        delivered payload, and this difference is recognized in 
        calculations below (header_overhead). </t>

        <t>Other end-to-end parameters defined in 
        <xref target="terminology" /> include the effective
        bottleneck data rate, the sender interface data rate and
        the TCP and IP header sizes.</t>

        <t>The target_data_rate must be smaller than all subpath IP
        capacities by enough headroom to carry the transport
        protocol overhead, explicitly including retransmissions and
        an allowance for fluctuations in TCP's actual data rate.
        Specifying a target_data_rate with insufficient headroom is
        likely to result in brittle measurements having little
        predictive value.</t>

        <t>Note that the target parameters can be specified for a
        hypothetical path, for example to construct TIDS designed
        for bench testing in the absence of a real application; or
        for a live in situ test of production infrastructure.</t>

        <t>The number of concurrent connections is explicitly not a
        parameter to this model. If a subpath requires multiple
        connections in order to meet the specified performance,
        that must be stated explicitly and the procedure described
        in 
        <xref target="channelized" /> applies.</t>
      </section>
      <section anchor="models" title="Common Model Calculations">

        <t>The Target Transport Performance is used to derive the
        target_window_size and the reference target_run_length.</t>

        <t>The target_window_size, is the average window size in
        packets needed to meet the target_rate, for the specified
        target_RTT and target_MTU. It is given by:</t>

        <t>target_window_size = ceiling( target_rate * target_RTT /
        ( target_MTU - header_overhead ) )</t>

        <t>Target_run_length is an estimate of the minimum required
        number of unmarked packets that must be delivered between
        losses or ECN Congestion Experienced (CE) marks, as
        computed by a mathematical model of TCP congestion control.
        The derivation here follows 
        <xref target="MSMO97" />, and by design is quite
        conservative.</t>

        <t>Reference target_run_length is derived as follows:
        assume the subpath_IP_capacity is infinitesimally larger
        than the target_data_rate plus the required
        header_overhead. Then target_window_size also predicts the
        onset of queuing. A larger window will cause a standing
        queue at the bottleneck.</t>

        <t>Assume the transport protocol is using standard Reno
        style Additive Increase, Multiplicative Decrease (AIMD)
        congestion control 
        <xref target="RFC5681" /> (but not Appropriate Byte Counting
        
        <xref target="RFC3465" />) and the receiver is using
        standard delayed ACKs. Reno increases the window by one
        packet every pipe_size worth of ACKs. With delayed ACKs
        this takes 2 Round Trip Times per increase. To exactly fill
        the pipe, the spacing of losses must be no closer than when the peak of
        the AIMD sawtooth reached exactly twice the
        target_window_size.  Otherwise, the multiplicative window
        reduction triggered by the loss would cause the network to
        be under-filled. Following 
        <xref target="MSMO97" /> the number of packets between
        losses must be the area under the AIMD sawtooth. They must
        be no more frequent than every 1 in
        ((3/2)*target_window_size)*(2*target_window_size) packets,
        which simplifies to:</t>

        <t>target_run_length = 3*(target_window_size^2)</t>

        <t>Note that this calculation is very conservative and is
        based on a number of assumptions that may not apply. 
        <xref target="derive" /> discusses these assumptions and
        provides some alternative models. If a different model is
        used, a FS-TIDS must document the
        actual method for computing target_run_length and ratio
        between alternate target_run_length and the reference
        target_run_length calculated above, along with a discussion
        of the rationale for the underlying assumptions.</t>

        <t>These two parameters, target_window_size and
        target_run_length, directly imply most of the individual
        parameters for the tests in 
        <xref target="tests" />.</t>
      </section>
      <section anchor="derate" title="Parameter Derating">

        <t>Since some aspects of the models are very conservative,
        the MBM framework permits some latitude in derating test
        parameters. Rather than trying to formalize more
        complicated models we permit some test parameters to be
        relaxed as long as they meet some additional procedural
        constraints: 
        <list style="symbols">

          <t>The FS-TIDS must document and justify the
          actual method used to compute the derated metric
          parameters.</t>

          <t>The validation procedures described in 
          <xref target="validation" /> must be used to demonstrate
          the feasibility of meeting the Target Transport
          Performance with infrastructure that just barely 
          passes the derated tests.</t>

          <t>The validation process for a FS-TIDS itself must be
          documented is such a way that other researchers can
          duplicate the validation experiments.</t>
        </list></t>

        <t>Except as noted, all tests below assume no derating.
        Tests where there is not currently a well established model
        for the required parameters explicitly include derating as
        a way to indicate flexibility in the parameters.</t>
      </section>
      <section anchor="qualifications" title="Test Preconditions">

        <t>Many tests have preconditions which are required to
        assure their validity. Examples include: the presence or
        non-presence of cross traffic on specific subpaths;
        negotiating ECN; and appropriate preamble packet stream 
        to testing to put reactive
        network elements into the proper states 
        <xref target="RFC7312" />. If preconditions are not
        properly satisfied for some reason, the tests should be
        considered to be inconclusive. In general it is useful to
        preserve diagnostic information as to why the preconditions
        were not met, and any test data that was collected even if
        it is not useful for the intended test. Such diagnostic
        information and partial test data may be useful for
        improving the test or test procedures themselves.</t>

        <t>It is important to preserve the record that a test was
        scheduled, because otherwise precondition enforcement
        mechanisms can introduce sampling bias. For example,
        canceling tests due to cross traffic on subscriber access
        links might introduce sampling bias in tests of the rest of
        the network by reducing the number of tests during peak
        network load.</t>

        <t>Test preconditions and failure actions must be specified
        in a FS-TIDS.</t>
      </section>
    </section>
    <!-- ======================================================== 6 -->
    <section anchor="generation" title="Generating test streams">

      <t>Many important properties of Model Based Metrics, such as
      vantage independence, are a consequence of using test streams
      that have temporal structures that mimic TCP or other
      transport protocols running over a complete path. As
      described in 
      <xref target='tcp' />, self clocked protocols naturally have
      burst structures related to the RTT and pipe size of the
      complete path. These bursts naturally get larger (contain
      more packets) as either the Target RTT or Target Data Rate
      get larger, or the Target MTU gets smaller. An implication of
      these relationships is that test streams generated by running
      self clocked protocols over short subpaths may not adequately
      exercise the queuing at any bottleneck to determine if the
      subpath can support the full Target Transport Performance
      over the complete path.</t>

      <t>Failing to authentically mimic TCP's temporal structure is
      part of the reason why simple performance tools such as iPerf,
      netperf, nc, etc have the reputation of yielding false pass
      results over short test paths, even when some subpath has a
      flaw.</t>

      <t>The definitions in 
      <xref target="terminology" /> are sufficient for most test
      streams. We describe the slowstart and standing queue test
      streams in more detail.</t>

      <t>In conventional measurement practice stochastic processes
      are used to eliminate many unintended correlations and sample
      biases. However MBM tests are designed to explicitly mimic
      temporal correlations caused by network or protocol elements
      themselves. Some portions of these systems, such as
      traffic arrival (test scheduling) are naturally stochastic.
      Other behaviors, such as back-to-back packet transmissions,
      are dominated by implementation specific deterministic effects.
      Although these behaviors always contain 
      non-deterministic elements and might be modeled
      stochastically, these details typically do not
      contribute significantly to the overall system behavior.
      Furthermore, it is known that real protocols are subject to 
      failures caused by network property estimators suffering from
      bias due to correlation in their own traffic. For
      example TCP's RTT estimator used to determine the Retransmit
      Time Out (RTO), can be fooled by periodic cross traffic or
      start-stop applications.  For these reasons many details of the
      test streams are specified deterministically.
      </t>

      <t>It may  prove useful to introduce
      fine grained noise sources into the models used for
      generating test streams in an update of Model Based Metrics,
      but the complexity is not warranted at the
      time this document was written.</t>
      <section anchor="paced" title="Mimicking slowstart">

        <t>TCP slowstart has a two level burst structure as shown
        in 
        <xref target="fig2" />. The fine time structure is caused
	by efficiency algorithms that deliberately batch work
	(CPU, channel allocation, etc) to better amortize
	certain network and host overheads.
	ACKs passing through the return path
        typically cause the sender to transmit small bursts of data at
        full sender interface rate.
	For example TCP Segmentation Offload (TSO) and Delayed
	Acknowledgment both contribute to this effect.
	During slowstart these bursts are
	at the same headway as the
        returning ACKs, but are typically twice as large (e.g.
	having twice as much data) as the ACK
        reported was delivered to the receiver. Due to variations
        in delayed ACK and algorithms such as Appropriate Byte
        Counting 
        <xref target="RFC3465" />, different pairs of senders and
        receivers produce slightly different burst patterns. Without loss of
        generality, we assume each ACK causes 4 packet sender interface rate bursts at an
        average headway equal to the ACK headway, and corresponding
        to sending at an average rate equal to twice the effective
        bottleneck IP rate.  Each slowstart burst consists of a series of
	4 packet sender interface rate bursts such that the total number of packets
	is the current window size (as of the last packet in the burst).</t>

        <t>The coarse time structure is due to each RTT being a
	reflection of the prior RTT.
        For real transport protocols,
	each slowstart burst is twice as
        large (twice the window) as the previous burst but is
	spread out in time by the network bottleneck, such that each successive RTT
	exhibits the same effective bottleneck IP rate.
	The slowstart phase ends on the first lost packet or ECN mark, which is
	intended to happen after successive slowstart bursts merge in time:
	the next burst starts before the bottleneck queue is fully drained
	and the prior burst is complete.</t>

	<t>For diagnostic tests
        described below we preserve the fine time structure but
        manipulate the coarse structure of the slowstart bursts
	(burst size and headway) to measure the
        ability of the dominant bottleneck to absorb and smooth
        slowstart bursts.</t>

        <t>Note that a stream of repeated slowstart bursts has
        three different average rates, depending on the averaging
        time interval. At the finest time scale (a few packet times at
        the sender interface) the peak of the average IP rate is
        the same as the sender interface rate; at a medium
        timescale (a few ACK times at the dominant bottleneck)
        the peak of the average IP rate is twice the implied
        bottleneck IP capacity; and at time scales longer than the
        target_RTT and when the burst size is equal to the
        target_window_size, the average rate is equal to the
        target_data_rate. This pattern corresponds to repeating the
        last RTT of TCP slowstart when delayed ACK and sender side
        byte counting are present but without the limits specified
        in Appropriate Byte Counting 
        <xref target="RFC3465" />.</t>
        <!-- 6789112345678921234567893123456789412345678951234567896123456789712 -->
        <figure anchor="fig2">
          <artwork>
            <![CDATA[
time ==>    ( - equals one packet)

Fine time structure of the packet stream:
 
----  ----  ----  ----  ----

|<>| sender interface rate bursts (typically 3 or 4 packets)
|<===>| burst headway (from the ACK headway)

\____repeating sender______/
       rate bursts

Coarse (RTT level) time structure of the packet stream:

----  ----  ----  ----  ----                     ----  ---- ...

|<========================>| slowstart burst size (from the window) 
|<==============================================>| slowstart headway
                                                    (from the RTT)
\__________________________/                     \_________ ...
    one slowstart burst                     Repeated slowstart bursts
]]></artwork>
<postamble>Multiple levels of Slowstart Bursts</postamble>
</figure>
      </section>
      <section anchor="constant_window"
      title="Constant window pseudo CBR">

        <t>Implement pseudo constant bit rate by running a standard
        self clocked protocol such as TCP with a fixed window size.
	If that window size is test_window, the data rate will be
	slightly above the target_rate.</t>

        <t>Since the test_window is constrained to be an integer
        number of packets, for small RTTs or low data rates there
        may not be sufficiently precise control over the data rate.
        Rounding the test_window up (as defined above) is likely to
        result in data rates that are higher than the target rate,
        but reducing the window by one packet may result in data
        rates that are too small. Also cross traffic potentially
        raises the RTT, implicitly reducing the rate. Cross traffic
        that raises the RTT nearly always makes the test more
        strenuous (more demanding for the network path).</t>

        <t>Note that Constant window pseudo CBR (and Scanned window
        pseudo CBR in the next section) both rely on a self clock
        which is at least partially derived from the properties of the
        subnet under test.  This introduces the possibility that the
        subnet under test exhibits behaviors such as extreme RTT
        fluctuations that prevent these algorithms from accurately
        controlling data rates.</t>
	
	<t>
        A FS-TIDS specifying a constant window CBR test
        must explicitly indicate under what conditions errors in
        the data rate cause tests to be inconclusive.
	Conventional paced
	measurement traffic may be more appropriate for these
	environments. </t>
      </section>
      <section anchor="scanned_window"
      title="Scanned window pseudo CBR">

        <t>Scanned window pseudo CBR is similar to the constant
        window CBR described above, except the window is scanned
        across a range of sizes designed to include two key events,
        the onset of queuing and the onset of packet loss or ECN
        CE marks. The window is scanned by incrementing it by one
        packet every 2*target_window_size delivered packets. This
        mimics the additive increase phase of standard Reno TCP
        congestion avoidance when delayed ACKs are in effect.
        Normally the window increases separated by intervals
        slightly longer than twice the target_RTT.</t>

        <t>There are two ways to implement this test: one built by
        applying a window clamp to standard congestion control in a
        standard protocol such as TCP and the other built by
        stiffening a non-standard transport protocol. When standard
        congestion control is in effect, any losses or ECN CE marks
        cause the transport to revert to a window smaller than the
        clamp such that the scanning clamp loses control the window
        size. The NPAD pathdiag tool is an example of this class of
        algorithms 
        <xref target="Pathdiag" />.</t>

        <t>Alternatively a non-standard congestion control
        algorithm can respond to losses by transmitting extra data,
        such that it maintains the specified window size
        independent of losses or ECN CE marks. Such a stiffened
        transport explicitly violates mandatory Internet congestion
        control 
        <xref target="RFC5681" /> and is not suitable for in situ
        testing. It is only appropriate for engineering testing
        under laboratory conditions. The Windowed Ping tool
        implements such a test 
        <xref target="WPING" />. The tool described in the paper
        has been updated.<xref target="mpingSource" /></t>

        <t>The test procedures in 
        <xref target="standing_queue" /> describe how to the
        partition the scans into regions and how to interpret the
        results.</t>
      </section>
      <section anchor="channelized"
      title="Concurrent or channelized testing">

        <t>The procedures described in this document are only
        directly applicable to single stream measurement, e.g. one
        TCP connection or measurement stream. In an ideal world, we
        would disallow all performance claims based multiple
        concurrent streams, but this is not practical due to at
        least two issues. First, many very high rate link
        technologies are channelized and at last partially pin the
        flow to channel mapping to minimize packet reordering
        within flows. Second, TCP itself has scaling limits.
        Although the former problem might be overcome through
        different design decisions, the later problem is more
        deeply rooted.</t>

        <t>All congestion control algorithms that are
        philosophically aligned with the standard 
        <xref target="RFC5681" /> (e.g. claim some level of TCP
        compatibility, friendliness or fairness) have scaling
        limits, in the sense that as a long fast network (LFN) with
        a fixed RTT and MTU gets faster, these congestion control
        algorithms get less accurate and as a consequence have
        difficulty filling the network <xref target="CCscaling" />.
        These properties are a
        consequence of the original Reno AIMD congestion control
        design and the requirement in 
        <xref target="RFC5681" /> that all transport protocols have
        similar responses to congestion.</t>

        <t>There are a number of reasons to want to specify
        performance in terms of multiple concurrent flows, however
        this approach is not recommended for data rates below
        several megabits per second, which can be attained with run
        lengths under 10000 packets on many paths. Since the
        required run length goes as the square of the data rate, at
        higher rates the run lengths can be unreasonably large, and
        multiple flows might be the only feasible approach.</t>

        <t>If multiple flows are deemed necessary to meet aggregate
        performance targets then this must be stated in both the
        design of the TIDS and in any claims about network
        performance. The IP diagnostic tests must be performed
        concurrently with the specified number of connections. For
        the tests that use bursty test streams, the bursts
        should be synchronized across streams unless there is
	a priori knowledge that the applications have some explicit mechanism
	to stagger their own bursts.  In the absences of an
	explicit mechanism to stagger bursts many network and
	application artifacts will sometimes implicitly
	synchronize bursts.
	A test that does not control burst synchronization may
	be prone to false pass results for some applications.
	</t>
      </section>
    </section>
    <section anchor="results" title="Interpreting the Results">
      <section anchor="score" title="Test outcomes">

        <t>To perform an exhaustive test of a complete network
        path, each test of the TIDS is applied to each subpath of
        the complete path. If any subpath fails any test then a
        standard transport protocol running over the complete path
        can also be expected to fail to attain the Target Transport
        Performance under some conditions.</t>

        <t>In addition to passing or failing, a test can be deemed
        to be inconclusive for a number of reasons. Proper
        instrumentation and treatment of inconclusive outcomes is
        critical to the accuracy and robustness of Model Based
        Metrics. Tests can be inconclusive if the precomputed
        traffic pattern or data rates were not accurately
        generated; the measurement results were not statistically
        significant; and others causes such as failing to meet some
        required preconditions for the test. See 
        <xref target="qualifications" /></t>

        <t>For example consider a test that implements Constant
        Window Pseudo CBR (<xref target="constant_window" />)
	by adding rate controls
        and detailed IP packet transfer instrumentation to TCP
        (e.g. 
        <xref target="RFC4898" />). TCP includes built in control
        systems which might interfere with the sending data rate.
        If such a test meets the required packet transfer
        statistics (e.g. run length) while failing to attain the
        specified data rate it must be treated as an inconclusive
        result, because we can not a priori determine if the
        reduced data rate was caused by a TCP problem or a network
        problem, or if the reduced data rate had a material effect
        on the observed packet transfer statistics.</t>

        <t>Note that for capacity tests, if the observed packet
        transfer statistics meet the statistical criteria for
        failing (accepting hypnosis H1 in 
        <xref target="statistics" />), the test can can be
        considered to have failed because it doesn't really matter
        that the test didn't attain the required data rate.</t>

        <t>The really important new properties of MBM, such as
        vantage independence, are a direct consequence of opening
        the control loops in the protocols, such that the test
        stream does not depend on network conditions or IP packets
        received. Any mechanism that introduces feedback between
        the path's measurements and the test stream generation is
        at risk of introducing nonlinearities that spoil these
        properties. Any exceptional event that indicates that such
        feedback has happened should cause the test to be
        considered inconclusive.</t>

        <t>One way to view inconclusive tests is that they reflect
        situations where a test outcome is ambiguous between
        limitations of the network and some unknown limitation of
        the IP diagnostic test itself, which may have been caused
        by some uncontrolled feedback from the network.</t>

        <t>Note that procedures that attempt to search the target
        parameter space to find the limits on some parameter such
        as target_data_rate are at risk of breaking the location
        independent properties of Model Based Metrics, if any part
        of the boundary between passing and inconclusive or failing
	results is
        sensitive to RTT (which is normally the case).  For example
	the maximum data rate for a marginal link (e.g.
	exhibiting excess errors) is likely to be sensitive to the
	test_path_RTT.  The maximum observed data rate over the test
	path has very little value for predicting the maximum rate over a
	different path.
	</t>

        <t>One of the goals for evolving TIDS designs will be to
        keep sharpening distinction between inconclusive, passing
        and failing tests. The criteria for for passing, failing
        and inconclusive tests must be explicitly stated for every
        test in the TIDS or FS-TIDS.</t>

        <t>One of the goals of evolving the testing process,
        procedures, tools and measurement point selection should be
        to minimize the number of inconclusive tests.</t>

        <t>It may be useful to keep raw packet transfer statistics
        and ancillary metrics 
        <xref target="RFC3148" /> for deeper study of the behavior
        of the network path and to measure the tools themselves.
        Raw packet transfer statistics can help to drive tool
        evolution. Under some conditions it might be possible to
        re-evaluate the raw data for satisfying alternate Target
        Transport Performance. However it is important to guard
        against sampling bias and other implicit feedback which can
        cause false results and exhibit measurement point vantage
        sensitivity. Simply applying different delivery criteria
        based on a different Target Transport Performance is
        insufficient if the test traffic patterns (bursts, etc.)
        does not match the alternate Target Transport
        Performance.</t>
      </section>
      <section anchor="statistics"
      title="Statistical criteria for estimating run_length">

        <t>When evaluating the observed run_length, we need to
        determine appropriate packet stream sizes and acceptable
        error levels for efficient measurement. In practice, can we
        compare the empirically estimated packet loss and ECN
        Congestion Experienced (CE) marking ratios with the targets
        as the sample size grows? How large a sample is needed to
        say that the measurements of packet transfer indicate a
        particular run length is present?</t>

        <t>The generalized measurement can be described as
        recursive testing: send packets (individually or in
        patterns) and observe the packet transfer performance
        (packet loss ratio or other metric, any marking we
        define).</t>

        <t>As each packet is sent and measured, we have an ongoing
        estimate of the performance in terms of the ratio of packet
        loss or ECN CE mark to total packets (i.e. an empirical
        probability). We continue to send until conditions support
        a conclusion or a maximum sending limit has been
        reached.</t>

        <t>We have a target_mark_probability, 1 mark per
        target_run_length, where a "mark" is defined as a lost
        packet, a packet with ECN CE mark, or other signal. This
        constitutes the null Hypothesis:</t>

        <t>
          <list style="hanging">
            <t hangText="H0:">no more than one mark in
            target_run_length = 3*(target_window_size)^2
            packets</t>
          </list>
        </t>

        <t>and we can stop sending packets if on-going measurements
        support accepting H0 with the specified Type I error =
        alpha (= 0.05 for example).</t>

        <t>We also have an alternative Hypothesis to evaluate: if
        performance is significantly lower than the
        target_mark_probability. Based on analysis of typical
        values and practical limits on measurement duration, we
        choose four times the H0 probability:</t>

        <t>
          <list style="hanging">
            <t hangText="H1:">one or more marks in
            (target_run_length/4) packets</t>
          </list>
        </t>

        <t>and we can stop sending packets if measurements support
        rejecting H0 with the specified Type II error = beta (=
        0.05 for example), thus preferring the alternate hypothesis
        H1.</t>

        <t>H0 and H1 constitute the Success and Failure outcomes
        described elsewhere in the memo, and while the ongoing
        measurements do not support either hypothesis the current
        status of measurements is inconclusive.</t>

        <t>The problem above is formulated to match the Sequential
        Probability Ratio Test (SPRT) 
	<xref target="Wald45" /> and 
        <xref target="Montgomery90" />. Note that as originally framed
        the events under consideration were all manufacturing
        defects. In networking, ECN CE marks and lost packets are
        not defects but signals, indicating that the transport
        protocol should slow down.</t>

        <t>The Sequential Probability Ratio Test also starts with a
        pair of hypothesis specified as above:</t>

        <t>
        <list style="hanging">
          <t hangText="H0:">p0 = one defect in
          target_run_length</t>
          <t hangText="H1:">p1 = one defect in
          target_run_length/4</t>
        </list>As packets are sent and measurements collected, the
        tester evaluates the cumulative defect count against two
        boundaries representing H0 Acceptance or Rejection (and
        acceptance of H1):</t>

        <t>
        <list style="hanging">
          <t hangText="Acceptance line:">Xa = -h1 + s*n</t>
          <t hangText="Rejection line:">Xr = h2 + s*n</t>
        </list>where n increases linearly for each packet sent
        and</t>

        <t>
        <list style="hanging">
          <t hangText="h1 =">{ log((1-alpha)/beta) }/k</t>
          <t hangText="h2 =">{ log((1-beta)/alpha) }/k</t>
          <t hangText="k  =">log{ (p1(1-p0)) / (p0(1-p1)) }</t>
          <t hangText="s  =">[ log{ (1-p0)/(1-p1) } ]/k</t>
        </list>for p0 and p1 as defined in the null and alternative
        Hypotheses statements above, and alpha and beta as the Type
        I and Type II errors.</t>

        <t>The SPRT specifies simple stopping rules:</t>

        <t>
          <list style="symbols">

            <t>Xa &lt; defect_count(n) &lt; Xr: continue
            testing</t>

            <t>defect_count(n) &lt;= Xa: Accept H0</t>

            <t>defect_count(n) &gt;= Xr: Accept H1</t>
          </list>
        </t>

        <t>The calculations above are implemented in the R-tool for
        Statistical Analysis 
        <xref target="Rtool" /> , in the add-on package for
        Cross-Validation via Sequential Testing (CVST) 
        <xref target="CVST" />.</t>

        <t>Using the equations above, we can calculate the minimum
        number of packets (n) needed to accept H0 when x defects
        are observed. For example, when x = 0:</t>

        <t>
          <list style="hanging">
            <t hangText="Xa = 0">= -h1 + s*n</t>
            <t hangText="and">n = h1 / s</t>
          </list>
        </t>

	<t>
	  Note that the derivations in <xref target="Wald45" /> and
	  <xref target="Montgomery90" /> differ.  Montgomery's
	  simplified derivation of SPRT may assume a Bernoulli processes,
	  where the packet loss probabilities are independent and
	  identically distributed, making the SPRT more
	  accessible.  Wald's seminal paper showed that this
	  assumption is not necessary.  It helps to remember that
	  the goal of SPRT is not to estimate the value of the packet
	  loss rate, but only whether or not the packet loss ratio is
	  likely low enough (when we accept the H0 null hypothesis)
	  yielding success; or too high (when we accept the H1
	  alternate hypothesis) yielding failure.
	</t>

      </section>
      <section anchor="reordering" title="Reordering Tolerance">

        <t>All tests must be instrumented for packet level
        reordering 
        <xref target="RFC4737" />. However, there is no consensus
        for how much reordering should be acceptable. Over the last
        two decades the general trend has been to make protocols
        and applications more tolerant to reordering (see for
        example 
        <xref target="RFC4015" />), in response to the gradual
        increase in reordering in the network. This increase has
        been due to the deployment of technologies such as
	multithreaded routing lookups and Equal Cost MultiPath (ECMP)
        routing. These techniques increase parallelism in network
        and are critical to enabling overall Internet growth to
        exceed Moore's Law.</t>

        <t>Note that transport retransmission strategies can trade
        off reordering tolerance vs how quickly they can repair
        losses vs overhead from spurious retransmissions. In
        advance of new retransmission strategies we propose the
        following strawman: Transport protocols should be able to
        adapt to reordering as long as the reordering extent is not
        more than the maximum of one quarter window or 1 mS,
        whichever is larger.  (These values come from experience
	prototyping Early Retransmit <xref target="RFC5827" /> and
	related algorithms. They agree with the values being proposed
	for "RACK: a time-based fast loss detection
	algorithm" <xref target="I-D.ietf-tcpm-rack" />.)
	Within this limit on reorder extent,
        there should be no bound on reordering density.</t>

        <t>By implication, recording which is less than these
        bounds should not be treated as a network impairment.
        However 
        <xref target="RFC4737" /> still applies: reordering should
        be instrumented and the maximum reordering that can be
        properly characterized by the test (because of the bound on history
        buffers) should be recorded with the measurement
        results.</t>

        <t>Reordering tolerance and diagnostic limitations, such as
        the size of the history buffer used to diagnose packets
        that are way out-of-order, must be specified in a
        FSTIDS.</t>
        <!--

<t>Section 5 of <xref target="RFC4737" /> proposed a metric that may be sufficient to designate isolated reordered packets as effectively lost, because TCP's retransmission response would be the same.</t>

-->
      </section>
    </section>
    <!-- ======================================================== 7 -->
    <section anchor="tests" title="IP Diagnostic Tests">

      <t>The IP diagnostic tests below are organized 
      according to the technique
      used to generate the test stream as described
      in <xref target="generation" />.

      All of the results are evaluated in accordance
      with <xref target="results" />, possibly with additional
      test specific critera.</t>

       <t> We
      also introduce some combined tests which are more efficient
      when networks are expected to pass, but conflate diagnostic
      signatures when they fail.</t>

<!-- DO WE NEED THIS AT ALL? -MM
      <t>There are a number of test details which are not fully
      defined here. They must be fully specified in a FS-TIDS. From
      a standardization perspective, this lack of specificity will
      weaken this version of Model Based Metrics, however it is
      anticipated that this weakness is than offset by the extent to
      which MBM suppresses the problems caused by using transport
      protocols for measurement. e.g. non-specific MBM metrics are
      likely to have better repeatability than many existing BTC
      like metrics. Once we have good field experience, the missing
      details can be fully specified.</t>
-->
      <section anchor="basicdata"
      title="Basic Data Rate and Packet Transfer Tests">

        <t>We propose several versions of the basic data rate and
        packet transfer statistics test that differ in how the
	data rate is
        controlled. The data can be paced on a timer, or window
        controlled (and self clocked). The first two tests
        implicitly confirm that sub_path has sufficient raw
        capacity to carry the target_data_rate. They are recommended
        for relatively infrequent testing, such as an installation
        or periodic auditing process. The third, background packet
        transfer statistics, is a low rate test designed for
        ongoing monitoring for changes in subpath quality.</t>

        <section anchor="fullrate" title="Delivery Statistics at Paced Full Data Rate">


          <t>Confirm that the observed run length is at least the
          target_run_length while relying on timer to send data at
          the target_rate using the procedure described in in 
          <xref target="paced" /> with a burst size of 1 (single
          packets) or 2 (packet pairs).</t>

          <t>The test is considered to be inconclusive if the
          packet transmission can not be accurately controlled for
          any reason.</t>

          <t>RFC 6673 
          <xref target="RFC6673" /> is appropriate for measuring
          packet transfer statistics at full data rate.</t>
        </section>
        <section anchor="windowed_rate"
        title="Delivery Statistics at Full Data Windowed Rate">

          <t>Confirm that the observed run length is at least the
          target_run_length while sending at an average rate
          approximately equal to the target_data_rate, by
          controlling (or clamping) the window size of a
          conventional transport protocol to test_window.</t>

          <t>Since losses and ECN CE marks cause transport
          protocols to reduce their data rates, this test is
          expected to be less precise about controlling its data
          rate. It should not be considered inconclusive as long as
          at least some of the round trips reached the full
          target_data_rate without incurring losses or ECN CE
          marks. To pass this test the network must deliver
          target_window_size packets in target_RTT time without any
          losses or ECN CE marks at least once per two
          target_window_size round trips, in addition to meeting
          the run length statistical test.</t>
        </section>
        <section anchor="backloss"
        title="Background Packet Transfer Statistics Tests">

          <t>The background run length is a low rate version of the
          target target rate test above, designed for ongoing
          lightweight monitoring for changes in the observed
          subpath run length without disrupting users. It should be
          used in conjunction with one of the above full rate tests
          because it does not confirm that the subpath can support
          raw data rate.</t>

          <t>RFC 6673 
          <xref target="RFC6673" /> is appropriate for measuring
          background packet transfer statistics.</t>
        </section>
      </section>
      <section anchor="standing_queue"
      title="Standing Queue Tests">

        <t>These engineering tests confirm that the bottleneck is
        well behaved across the onset of packet loss, which
        typically follows after the onset of queuing. Well behaved
        generally means lossless for transient queues, but once the
        queue has been sustained for a sufficient period of time
        (or reaches a sufficient queue depth) there should be a
        small number of losses or ECN CE marks to signal to the
	transport protocol
        that it should reduce its window or data rate. Losses that are too early
        can prevent the transport from averaging at the
        target_data_rate. Losses that are too late indicate that
        the queue might not have an appropriate AQM <xref target="RFC7567" />
	and as a consequence subject to bufferbloat 
        <xref target="wikiBloat" />. Queues without AQM have the potential
	to inflict excess
        delays on all flows sharing the bottleneck. Excess
        losses (more than half of the window) at the onset of
        loss make loss recovery problematic for the transport
        protocol. Non-linear, erratic or excessive RTT increases
        suggest poor interactions between the channel acquisition
        algorithms and the transport self clock. All of the tests
        in this section use the same basic scanning algorithm,
        described here, but score the link or subpath on the basis
        of how well it avoids each of these problems.</t>

        <t>Some network technologies rely on virtual queues or
	other techniques to meter traffic without adding any
	queuing delay,
	in which case the data rate will vary
        with the window size all the way up to the onset of load
        induced packet loss or ECN CE marks. For these
        technologies, the discussion of queuing
	in <xref target="scanned_window"/> does not apply,
        but it is still necessary to confirm that the onset of losses or ECN CE
        marks be at an appropriate point and progressive.
	If the network bottleneck does not introduce significant queuing delay,
	modify the procedure described in <xref target="scanned_window"/> to start
	the scan at a window equal to or slightly smaller than
	the test_window.</t>

        <t>Use the procedure in 
        <xref target="scanned_window" /> to sweep the window across
        the onset of queuing and the onset of loss. The tests
        below all assume that the scan emulates standard additive
        increase and delayed ACK by incrementing the window by one
        packet for every 2*target_window_size packets delivered. A
        scan can typically be divided into three regions: below the
        onset of queuing, a standing queue, and at or beyond the
        onset of loss.</t>

        <t>Below the onset of queuing the RTT is typically fairly
        constant, and the data rate varies in proportion to the
        window size. Once the data rate reaches the subpath IP
        rate, the data rate becomes fairly constant, and the RTT
        increases in proportion to the increase in window size. The
        precise transition across the start of queuing can be
        identified by the maximum network power, defined to be the
        ratio data rate over the RTT. The network power can be
        computed at each window size, and the window with the
        maximum is taken as the start of the queuing region.</t>

        
        <t>If there is random background loss (e.g. bit errors,
        etc), precise determination of the onset of queue induced
        packet loss may require multiple scans. Above the onset of
        queuing loss, all transport protocols are expected to
        experience periodic losses determined by the interaction
        between the congestion control and AQM algorithms. For
        standard congestion control algorithms the periodic losses
        are likely to be relatively widely spaced and the details
        are typically dominated by the behavior of the transport
        protocol itself. For the stiffened transport protocols case
        (with non-standard, aggressive congestion control
        algorithms) the details of periodic losses will be
        dominated by how the window increase function responds
        to loss. 
        <!-- One more sentence @@ --></t>
        <section anchor="congestion_avoidance"
        title="Congestion Avoidance">

          <t>A subpath passes the congestion avoidance standing
          queue test if more than target_run_length packets are
          delivered between the onset of queuing (as determined by
          the window with the maximum network power as described
	  above) and the first
          loss or ECN CE mark. If this test is implemented using a
          standard congestion control algorithm with a clamp, it
          can be performed in situ in the production internet as a
          capacity test. For an example of such a test see 
          <xref target="Pathdiag" />.</t>

          <t>For technologies that do not have conventional queues,
          use the test_window in place of the onset of queuing.
          i.e. A subpath passes the congestion avoidance standing
          queue test if more than target_run_length packets are
          delivered between start of the scan at test_window and
          the first loss or ECN CE mark.</t>
        </section>
        <section anchor="buffer_bloat" title="Bufferbloat">

          <t>This test confirms that there is some mechanism to
          limit buffer occupancy (e.g. that prevents bufferbloat).
          Note that this is not strictly a requirement for single
          stream bulk transport capacity, however if there is no
          mechanism to limit buffer queue occupancy then a single
          stream with sufficient data to deliver is likely to cause
          the problems described in 
          <xref target="RFC7567" />, and 
          <xref target='wikiBloat' />. This may cause only minor
          symptoms for the dominant flow, but has the potential to
          make the subpath unusable for other flows and
          applications.</t>

          <t>Pass if the onset of loss occurs before a standing
          queue has introduced more delay than than twice
          target_RTT, or other well defined and specified limit.
          Note that there is not yet a model for how much standing
          queue is acceptable. The factor of two chosen here
          reflects a rule of thumb. In conjunction with the
          previous test, this test implies that the first loss
          should occur at a queuing delay which is between one and
          two times the target_RTT.</t>

          <t>Specified RTT limits that are larger than twice the
          target_RTT must be fully justified in the FS-TIDS.</t>
        </section>
        <section anchor="excessive" title="Non excessive loss">

          <t>This test confirms that the onset of loss is not
          excessive. Pass if losses are equal or less than the
          increase in the cross traffic plus the test stream window
          increase since the previous RTT. This could be restated as
          non-decreasing total throughput of the subpath at the onset of loss.
          (Note that when there
          is a transient drop in subpath throughput and there is
	  not already a 
          standing queue, a subpath that passes other queue
          tests in this document will have sufficient queue space
          to hold one full RTT worth of data).</t>

          <t>Note that token bucket
	  policers will not pass this test, which is as intended.
	  TCP often stumbles badly if more than a small fraction
	  of the packets are dropped in one RTT.
	  Many TCP implementations will require a timeout and
	  slowstart to recover their self clock.
	  Even if they can recover from the massive losses the
	  sudden change in available capacity
	  at the bottleneck wastes serving and front path capacity
	  until TCP can adapt to the new
	  rate <xref target="Policing" />. 
          </t>
        </section>
        <section anchor="self_interference"
        title="Duplex Self Interference">

          <t>This engineering test confirms a bound on the
          interactions between the forward data path and the ACK
          return path when they share a half duplex link.</t>

          <t>Some historical half duplex technologies had the
          property that each direction held the channel until it
          completely drained its queue. When a self clocked
          transport protocol, such as TCP, has data and ACKs
          passing in opposite directions through such a link, the
          behavior often reverts to stop-and-wait. Each additional
          packet added to the window raises the observed RTT by two
          packet times, once as the additional packet passes through the data path,
          and once for the additional delay incurred by the ACK
          waiting on the return path.</t>

          <t>The duplex self interference test fails if the RTT
          rises by more than a fixed bound above the expected
          queuing time computed from the excess window
          divided by the subpath IP Capacity. This bound must be
          smaller than target_RTT/2 to avoid reverting to stop and
          wait behavior. (e.g. Data packets and ACKs both have to
          be released at least twice per RTT.)</t>
          <!--  @ @ This needs further testing. -->
        </section>
      </section>
      <section anchor="slowstart" title="Slowstart tests">

        <t>These tests mimic slowstart: data is sent at twice the
        effective bottleneck rate to exercise the queue at the
        dominant bottleneck.</t>
        <section title="Full Window slowstart test">

          <t>This is a capacity test to confirm that slowstart is
          not likely to exit prematurely. Send slowstart bursts
          that are target_window_size total packets.</t>

          <t>Accumulate packet transfer statistics as described in 
          <xref target="statistics" /> to score the outcome. Pass if
          it is statistically significant that the observed number
          of good packets delivered between losses or ECN CE marks
          is larger than the target_run_length. Fail if it is
          statistically significant that the observed interval
          between losses or ECN CE marks is smaller than the
          target_run_length.</t>

          <t>It is deemed inconclusive if the elapsed time to send
          the data burst is not less than half of the time to
          receive the ACKs.
	  (i.e. It is acceptable to send data too fast, but
          sending it slower than twice the actual bottleneck rate
          as indicated by the ACKs is deemed inconclusive). The
          headway for the slowstart bursts should be the
          target_RTT.</t>

          <t>Note that these are the same parameters as the Sender
          Full Window burst test, except the burst rate is at
          slowstart rate, rather than sender interface rate.</t>
        </section>
        <section title="Slowstart AQM test">

          <t>Do a continuous slowstart (send data continuously at
          twice the implied IP bottleneck capacity), until the
          first loss, stop, allow the network to drain and repeat,
          gathering statistics on how many packets were delivered
          before the loss, the pattern of losses, maximum observed
          RTT and window size. Justify the results. There is not
          currently sufficient theory justifying requiring any
          particular result, however design decisions that affect
          the outcome of this tests also affect how the network
          balances between long and short flows (the "mice vs
          elephants" problem). The queue sojourn time for the
	  first packet delivered after the first
          loss should be at least one half of the target_RTT.</t>

          <t>This is an engineering test: It should be performed on a
          quiescent network or testbed, since cross traffic has the
          potential to change the results in ill defined ways.</t>
        </section>
      </section>

      <section anchor="sender_rate"
      title="Sender Rate Burst tests">

        <t>These tests determine how well the network can deliver
        bursts sent at sender's interface rate. Note that this test
        most heavily exercises the front path, and is likely to
        include infrastructure may be out of scope for an access
        ISP, even though the bursts might be caused by ACK
        compression, thinning or channel arbitration in the access
        ISP. See 
        <xref target="complex" />.</t>

	<t>Also, there are a several details about sender interface
	rate bursts that are not fully defined here.
	These details, such as the assumed sender interface rate,
	should be explicitly stated is a FS-TIDS.</t>

        <t>Current standards permit TCP to send full window
        bursts following an application pause. (Congestion Window
        Validation <xref target="RFC2861" /> and updates to support
	Rate-Limited Traffic 
        <xref target="RFC7661" />, are not required).
	Since full window bursts are
        consistent with standard behavior, it is desirable that the
        network be able to deliver such bursts, otherwise
        application pauses will cause unwarranted losses. Note that
        the AIMD sawtooth requires a peak window that is twice
        target_window_size, so the worst case burst may be
        2*target_window_size.</t>

        <t>It is also understood in the application and serving
        community that interface rate bursts have a cost to the
        network that has to be balanced against other costs in the
        servers themselves. For example TCP Segmentation Offload
        (TSO) reduces server CPU in exchange for larger network
        bursts, which increase the stress on network buffer memory.
        Some newer TCP implementations can pace traffic at scale 
        <xref target="TSO_pacing" /><xref target="TSO_fq_pacing" />.
	It remains to be
        determined if and how quickly these changes will be
        deployed.</t>

        <t>There is not yet theory to unify these costs or to
        provide a framework for trying to optimize global
        efficiency. We do not yet have a model for how much
	server rate bursts should be tolerated by the
        network. Some bursts
        must be tolerated by the network, but it is probably
        unreasonable to expect the network to be able to
        efficiently deliver all data as a series of bursts.</t>

        <t>For this reason, this is the only test for which we
        encourage derating. A TIDS could include a table of pairs
        of derating parameters: burst sizes and how much each burst
        size is permitted to reduce the run length, relative to to
        the target_run_length.</t>
      </section>
      <section anchor="combined"
      title="Combined and Implicit Tests">

        <!-- <t>@@ @@ and implicit </t>  -->

        <t>Combined tests efficiently confirm multiple network
        properties in a single test, possibly as a side effect of
        normal content delivery. They require less measurement
        traffic than other testing strategies at the cost of
        conflating diagnostic signatures when they fail. These are
        by far the most efficient for monitoring networks that are
        nominally expected to pass all tests.</t>
        <section anchor="sustained_burst"
        title="Sustained Bursts Test">

          <t>The sustained burst test implements a combined worst
          case version of all of the capacity tests above. It is
          simply:</t>

          <t>Send target_window_size bursts of packets at server
          interface rate with target_RTT burst headway (burst start
          to next burst start). Verify that the observed packet transfer
          statistics meets the target_run_length.</t>

          <t>Key observations:
          <list style="symbols">

            <t>The subpath under test is expected to go idle for
            some fraction of the time, determined
	    by the difference between the time to drain the queue
	    at the subpath_IP_capacity, and the target_RTT.
	    If the
	    queue does not drain completely it may be an indication
	    that the the subpath has insufficient IP capacity or
	    that there is some other problem with the test
	    (e.g. inconclusive).
	    </t>

            <t>The burst sensitivity can be derated by sending
            smaller bursts more frequently. E.g. send
            target_window_size*derate packet bursts every
            target_RTT*derate, where "derate" is less than one.
	    </t>

            <t>When not derated, this test is the most strenuous
            capacity test.</t>

            <t>A subpath that passes this test is likely to be able
            to sustain higher rates (close to subpath_IP_capacity)
            for paths with RTTs significantly smaller than the
            target_RTT.</t>

            <t>This test can be implemented with instrumented TCP 
            <xref target="RFC4898" />, using a specialized
            measurement application at one end 
            <xref target="MBMSource" /> and a minimal service at the
            other end 
            <xref target="RFC0863" />
            <xref target="RFC0864" />.</t>

            <t>This test is efficient to implement, since it does
            not require per-packet timers, and can make use of TSO
            in modern NIC hardware.</t>

            <t>If a subpath is known to pass the Standing Queue
            engineering tests (particularly that it has a
            progressive onset of loss at an appropriate queue
            depth), then the Sustained Burst Test is sufficient to
            assure that the subpath under test will not impair Bulk
            Transport Capacity at the target performance under all
            conditions. See 
            <xref target="standing_queue" /> for a discussion of the
            standing queue tests.</t>
          </list></t>

          <t>Note that this test is clearly independent of the
          subpath RTT, or other details of the measurement
          infrastructure, as long as the measurement infrastructure
          can accurately and reliably deliver the required bursts
          to the subpath under test.</t>
        </section>
        <section anchor="streaming_media" title="Passive Measurements">

         <t>
	  Any non-throughput maximizing application,
	  such as fixed rate streaming media,
	  can be used to implement passive or hybrid 
      (defined in <xref target="RFC7799" />) versions of 
	  Model Based Metrics with some additional instrumentation 
	  and possibly a traffic shaper or other controls in the servers.
	  The essential
          requirement is that the data transmission be constrained such
          that even with arbitrary application pauses and bursts,
          the data rate and burst sizes stay within the envelope
          defined by the individual tests described above.

<!-- @@@@ I suspect this is a difficult constraint to meet in the wild, because
of strategies to send at a "higher than playout" rate to fill the
initial buffer faster, and rate adaptation which is apparently 
widespread now (DASH). Another issue is "double chunking"
where the player downloads two chunks for the same time period,
possibly at different quality levels (different rates). - ACM
I considered adding a reference here, but it would have to be OS
specific, and not really relevant in a standard.  e.g.
search: pkt_sched fq Fair Queue packet scheduler
- MM
-->
</t>

          <t>If the application's serving data rate can be
	  constrained to be less than or
          equal to the target_data_rate and the serving_RTT (the
          RTT between the sender and client) is less than the
          target_RTT, this constraint is most easily implemented by
          clamping the transport window size to serving_window_clamp,
	  set to the test_window,
	  computed for the actual serving path.
	  </t>

          <t>Under the above constraints the serving_window_clamp
          will limit the both the serving data rate and burst sizes
          to be no larger than the procedures in 
          <xref target="windowed_rate" /> and 
          <xref target="sender_rate" /> or 
          <xref target="sustained_burst" />. Since the serving RTT
          is smaller than the target_RTT, the worst case bursts
          that might be generated under these conditions will be
          smaller than called for by 
          <xref target="sender_rate" /> and the sender rate burst
          sizes are implicitly derated by the serving_window_clamp
          divided by the target_window_size at the very least.
          (Depending on the application behavior, the data might be
          significantly smoother than specified by any of the burst
          tests.)</t>

          <t>In an alternative implementation the data rate and
          bursts might be explicitly controlled by a programmable
          traffic shaper or pacing at the sender. This would
          provide better control over transmissions but is more
	  complicated to implement, although the required technology is
	  available <xref target="TSO_pacing" /><xref target="TSO_fq_pacing" />.
	  </t>

          <t>Note that these techniques can be applied to any
          content delivery that can operated at a constrained data
          rate to inhibit TCP equilibrium behavior.</t>

	  <t>Furthermore note that Dynamic Adaptive Streaming over HTTP (DASH)
	  is generally in conflict with passive 
	  Model Based Metrics measurement,
	  because it is a rate maximizing protocol.
	  It can still meet the requirement here if the rate can be capped, for example by 
	  knowing a priori the maximum rate needed to deliver
	  a particular piece of content.
	  </t>
        </section>
      </section>
    </section>
    <!-- ======================================================== 9 -->
    <section anchor="examples" title="An Example">

      <t>In this section we illustrate a TIDS designed to confirm
      that an access ISP can reliably deliver HD video from
      multiple content providers to all of their customers. With
      modern codecs, minimal HD video (720p) generally fits in 2.5
      Mb/s. Due to their geographical size, network topology and
      modem characteristics the ISP determines that most content is within
      a 50 mS RTT of their users (This example RTT is a sufficient to cover
      the propagation delay to continental Europe or either US coast
      with low delay modems or somewhat smaller geographical regions if the modems
      require additional delay to implement advanced compression and
      error recovery).
      </t>

      <texttable anchor="HDvideo_table">
        <preamble>2.5 Mb/s over a 50 ms path</preamble>
        <ttcol>End-to-End Parameter</ttcol>
        <ttcol>value</ttcol>
        <ttcol>units</ttcol>
        <c>target_rate</c>
        <c>2.5</c>
        <c>Mb/s</c>
        <c>target_RTT</c>
        <c>50</c>
        <c>ms</c>
        <c>target_MTU</c>
        <c>1500</c>
        <c>bytes</c>
        <c>header_overhead</c>
        <c>64</c>
        <c>bytes</c>
        <c></c>
        <c></c>
        <c></c>
        <c>target_window_size</c>
        <c>11</c>
        <c>packets</c>
        <c>target_run_length</c>
        <c>363</c>
        <c>packets</c>
      </texttable>

      <t>Table 1 shows the default TCP model with no derating, and
      as such is quite conservative. The simplest TIDS would be to
      use the sustained burst test, described in 
      <xref target="sustained_burst" />. Such a test would send 11
      packet bursts every 50mS, and confirming that there was no
      more than 1 packet loss per 33 bursts (363 total packets in
      1.650 seconds).</t>

      <t>Since this number represents is the entire end-to-end loss
      budget, independent subpath tests could be implemented by
      apportioning the packet loss ratio across subpaths. For
      example 50% of the losses might be allocated to the access or
 
      last mile link to the user, 40% to the network interconnections with
 
      other ISPs and 1% to each internal hop (assuming no more than
 
      10 internal hops). Then all of the subpaths can be tested
      independently, and the spatial composition of passing
      subpaths would be expected to be within the end-to-end loss
      budget.
      </t>

      <!-- @@@@ move elsewhere or new doc? -->
      <section anchor="applicability" title="Observations about applicability">

	<t>Guidance on deploying and using MBM belong in a
	future document.  However this example illustrates some
	the issues that may need to be considered.</t>

      <t>Note that another ISP, with different geographical
      coverage, topology or modem technology may need to assume
      a different target_RTT, and as a consequence different
      target_window_size and target_run_length, even for the
      same target_data rate.
      One of the implications of this is that infrastructure
      shared by multiple ISPs, such as inter-exchange points (IXPs) and
      other interconnects may need to be evaluated on the basis
      of the most stringent target_window_size and
      target_run_length of any participating ISP.
      One way to do this might be to choose target parameters for
      evaluating such shared infrastructure on the basis of a
      hypothetical reference path that does not necessarily
      match any actual paths.
      </t>

      <t>Testing interconnects has generally been problematic:
      conventional performance tests run between measurement points
      adjacent to either side of the interconnect are not
      generally useful. Unconstrained TCP tests, such as iPerf 
      <xref target="iPerf" /> are usually overly aggressive due
      to the small RTT (often less than 1 mS). With a short RTT
      these tools are likely to report inflated data rates because on a
      short RTT these tools can tolerate very high packet loss
      ratios and can push other cross traffic off of the network.
      As a consequence these measurements are useless for predicting actual user
      performance over longer paths, and may themselves be quite
      disruptive. Model
      Based Metrics solves this problem. The interconnect can be
      evaluated with the same TIDS as other subpaths.
      Continuing our example, if the interconnect is
      apportioned 40% of the losses, 11
 
      packet bursts sent every 50mS should have fewer than one loss
      per 82 bursts (902 packets).</t>

      </section>

      <!-- <t> @@ SPRT example here, or remove reference above </t> -->
      <!--   @@ consider 10 or 20 mS RTT. -->
      <!--
<section anchor="SDvideo" title="Far serving SD streaming video">

<t>Standard Quality video typically fits in 1 Mb/s [@@SDvideo].   This can be reasonably delivered via longer paths with larger.   We assume 100mS.</t>


<texttable anchor="SDvideo_table">
<preamble>1 Mb/s over a 100 ms path</preamble>
<ttcol>End-to-End Parameter </ttcol>
<ttcol>Value</ttcol>
<ttcol>units</ttcol>
<c>target_rate</c><c>1</c><c>Mb/s</c>
<c>target_RTT</c><c>100</c><c>ms</c>
<c>target_MTU</c><c>1500</c><c>bytes</c>


<c>target_window_size</c><c>9</c><c>packets</c>
<c>target_run_length</c><c>243</c><c>packets</c>
</texttable>

<t>This example uses the most conservative TCP model and no derating.</t>


</section>
<section anchor="BulkData" title="Bulk delivery of remote scientific data">

<t>This example corresponds to 100 Mb/s bulk scientific data over a moderately long RTT.  Note that the target_run_length is infeasible for most networks.</t>


<texttable anchor="Bulk
Data_table">
<preamble>100 Mb/s over a 200 ms path</preamble>
<ttcol>End-to-End Parameter </ttcol>
<ttcol>Value</ttcol>
<ttcol>units</ttcol>
<c>target_rate</c><c>100</c><c>Mb/s</c>
<c>target_RTT</c><c>200</c><c>ms</c>
<c>target_MTU</c><c>1500</c><c>bytes</c>


<c>target_window_size</c><c>1741</c><c>packets</c>
<c>target_run_length</c><c>9093243</c><c>packets</c>
</texttable>








</section>
-->
    </section>
    <!-- ======================================================== 9 -->
    <section anchor="validation" title="Validation">

      <t>Since some aspects of the models are likely to be too
      conservative, 
      <xref target="models" /> permits alternate protocol models and
      
      <xref target="derate" /> permits test parameter derating. If
      either of these techniques are used, we require
      demonstrations that such a TIDS can robustly detect subpaths
      that will prevent authentic applications using
      state-of-the-art protocol implementations from meeting the
      specified Target Transport Performance. This correctness
      criteria is potentially difficult to prove, because it
      implicitly requires validating a TIDS against all possible
      paths and subpaths. The procedures described here are
      still experimental.</t>

      <t>We suggest two approaches, both of which should be
      applied: first, publish a fully open description of the TIDS,
      including what assumptions were used and and how it was
      derived, such that the research community can evaluate the
      design decisions, test them and comment on their
      applicability; and second, demonstrate that applications
      do meet the Target Transport Performance when
      running over a network testbed which has the tightest
      possible constraints that still allow the tests in the TIDS to pass.</t>

      <t>This procedure resembles an
      epsilon-delta proof in calculus. Construct a test network
      such that all of the individual tests of the TIDS pass by
      only small (infinitesimal) margins, and demonstrate that a
      variety of authentic applications running over real TCP
      implementations (or other protocols as appropriate) meets the
      Target Transport Performance over such a network. The
      workloads should include multiple types of streaming media
      and transaction oriented short flows (e.g. synthetic web
      traffic).</t>

      <t>For example, for the HD streaming video TIDS described in 
      <xref target="examples" />, the IP capacity should be exactly
      the header_overhead above 2.5 Mb/s, the per packet random
      background loss ratio should be 1/363, for a run length of
      363 packets, the bottleneck queue should be 11 packets and
      the front path should have just enough buffering to withstand
      11 packet interface rate bursts. We want every one of the
      TIDS tests to fail if we slightly increase the relevant test
      parameter, so for example sending a 12 packet burst should
      cause excess (possibly deterministic) packet drops at the
      dominant queue at the bottleneck. This network has the tightest
      possible constraints that can be expected to pass the TIDS,
      yet it should be possible for a real application
      using a stock TCP implementation in the vendor's default
      configuration to attain 2.5 Mb/s over an 50 mS path.</t>

      <t>The most difficult part of setting up such a testbed is
      arranging for it to have the tightest possible constraints
      that still allow it to pass the individual
      tests. Two approaches are suggested: 
      constraining (configuring) the network devices not
      to use all available resources (e.g. by limiting available
      buffer space or data rate); and pre-loading subpaths with
      cross traffic. Note that is it important that a single
      tightly constrained environment just barely passes all
      tests, otherwise there is a chance that TCP
      can exploit extra latitude in some parameters (such as data
      rate) to partially compensate for constraints in other
      parameters (queue space, or vice-versa).</t>

      <t>To the extent that a TIDS is used to inform public dialog
      it should be fully publicly documented, including the details
      of the tests, what assumptions were used and how it was
      derived. All of the details of the validation experiment
      should also be published with sufficient detail for the
      experiments to be replicated by other researchers. All
      components should either be open source of fully described
      proprietary implementations that are available to the
      research community.</t>
    </section>
    <section anchor="security" title="Security Considerations">

      <t>Measurement is often used to inform business and policy
      decisions, and as a consequence is potentially subject to
      manipulation. Model Based Metrics are expected to be a huge
      step forward because equivalent measurements can be performed
      from multiple vantage points, such that performance claims
      can be independently validated by multiple parties.</t>

      <t>Much of the acrimony in the Net Neutrality debate is due
      to the historical lack of any effective vantage independent
      tools to characterize network performance. Traditional
      methods for measuring Bulk Transport Capacity are sensitive
      to RTT and as a consequence often yield very different
      results when run local to an ISP or interconnect and when
      run over a customer's complete path. Neither the ISP nor
      customer can repeat the others measurements, leading to high
      levels of distrust and acrimony. Model Based Metrics are
      expected to greatly improve this situation.</t>

      <t>Note that in situ measurements sometimes requires sending
      synthetic measurement traffic between arbitrary locations in the
      network, and as such are potentially attractive platforms for
      launching DDOS attacks.  All active measurement tools and
      protocols must be designed to minimize the opportunities for
      these misuses.   See the discussion in section 7
      of <xref target="RFC7594" />.</t>

      <t>Some of the tests described in the note are not intended for frequent
      network monitoring since they have the potential to
      cause high network loads and might adversely affect other traffic.
      </t>

      <t>This document only describes a framework for designing
      Fully Specified Targeted IP Diagnostic Suite. Each FS-TIDS
      must include its own security section.</t>

    </section>
    <!-- ======================================================== 10 -->
    <section anchor="acknowledgments" title="Acknowledgments">

      <t>Ganga Maguluri suggested the statistical test for
      measuring loss probability in the target run length. Alex
      Gilgur and Merry Mou for helping with the statistics.</t>

      <t>Meredith Whittaker for improving the clarity of the
      communications.</t>

      <t>Ruediger Geib provided feedback which greatly improved the
      document.</t>

      <t>This work was inspired by Measurement Lab: open tools
      running on an open platform, using open tools to collect open
      data. See http://www.measurementlab.net/</t>
    </section>
    <section anchor="IANA" title="IANA Considerations">

      <t>This document has no actions for IANA.</t>
    </section>
  </middle>
  <back>
    <!-- ======================================================== 11 -->
<!--
    <references title='Normative References'>
      <?rfc include="References/reference.RFC.2119"?>
    </references>
-->
    <references title='Informative References'>
      <?rfc include="References/reference.RFC.0863.xml"?>
      <?rfc include="References/reference.RFC.0864.xml"?>
      <!-- <?rfc include="References/reference.RFC.2309.xml"?> -->
      <?rfc include="References/reference.RFC.2330.xml"?>
      <?rfc include="References/reference.RFC.2861.xml"?>
      <?rfc include="References/reference.RFC.3148.xml"?>
      <?rfc include="References/reference.RFC.3168.xml"?>
      <?rfc include="References/reference.RFC.3465.xml"?>
      <?rfc include="References/reference.RFC.4015.xml"?>
      <?rfc include="References/reference.RFC.4737.xml"?>
      <?rfc include="References/reference.RFC.4898.xml"?>
      <?rfc include="References/reference.RFC.5136.xml"?>
      <?rfc include="References/reference.RFC.5681.xml"?>
      <?rfc include="References/reference.RFC.5827.xml"?>
      <?rfc include="References/reference.RFC.5835.xml"?>
      <?rfc include="References/reference.RFC.6049.xml"?>
      <?rfc include="References/reference.RFC.6576.xml"?>
      <?rfc include="References/reference.RFC.6673.xml"?>
      <?rfc include="References/reference.RFC.6928.xml"?>
      <?rfc include="References/reference.RFC.7312.xml"?>
      <?rfc include="References/reference.RFC.7398.xml"?>
      <?rfc include="References/reference.RFC.7567.xml"?>
      <?rfc include="References/reference.RFC.7594.xml"?>
      <?rfc include="References/reference.RFC.7661.xml"?>
      <?rfc include="References/reference.RFC.7680.xml"?>
      <?rfc include="References/reference.RFC.7799.xml"?>
      <!-- <?rfc include="References/reference.I-D.draft-ietf-ippm-2680-bis.xml"?> -->
      <!-- <?rfc include="References/reference.I-D.draft-ietf-aqm-recommendation.xml"?> -->
      <!-- Note that the tcp-rack reference is citing the origin of an idea,
      RFC editor, please do not block this document on RACK's progress -->
      <?rfc include="References/reference.I-D.draft-ietf-tcpm-rack-02.xml"?>
      <reference anchor='MSMO97'>
	<front>
	  <title abbrev='Macroscopic Model'>The Macroscopic Behavior of the TCP Congestion Avoidance Algorithm</title>
	  <author initials='M.' surname='Mathis' ></author>
	  <author initials='J.' surname='Semke' ></author>
	  <author initials='J.' surname='Mahdavi' ></author>
	  <author initials='T.' surname='Ott' ></author>
	  <date year='1997' month='July' />
	</front>
	<seriesInfo name='Computer Communications Review' value='volume 27, number3' />
      </reference>
      <reference anchor='WPING'>
        <front>
          <title>Windowed Ping: An IP Level Performance
          Diagnostic</title>
          <!-- abbrev='TITLE' -->
          <author initials='M.' surname='Mathis'>
            <!-- fullname='Matt Mathis' -->
          </author>
          <date year='1994' month='June' />

          <!-- <abstract><t>This memo.... </t></abstract> -->
        </front>
        <seriesInfo name='INET' value='94' />
      </reference>
      <reference anchor='mpingSource'
      target='https://github.com/m-lab/mping'>
        <front>
         <title>Git Repository for mping: An IP Level Performance
          Diagnostic</title>
          <!-- abbrev='TITLE' -->
          <author initials='X.' surname='Fan'>
            <!-- fullname='Xun Fan' -->
          </author>
          <author initials='M.' surname='Mathis'>
            <!-- fullname='Matt Mathis' -->
          </author>
          <author initials='D.' surname='Hamon'>
            <!-- fullname='Dominic Hamon' -->
          </author>
          <date year='2013' month='Sept' />

          <!-- <abstract><t>This memo.... </t></abstract> -->
        </front>
      </reference>
      <reference anchor='MBMSource'
      target='https://github.com/m-lab/MBM'>
        <front>
          <title>Git Repository for Model Based Metrics</title>
          <!-- abbrev='TITLE' -->
          <author initials='D.' surname='Hamon'>
            <!-- fullname='Dominic Hamon' -->
          </author>
          <author initials='S.' surname='Stuart'>
            <!-- fullname='Stephen Stuart' -->
          </author>
          <author initials='H.' surname='Chen'>
            <!-- fullname='Hung-li Chen' -->
          </author>
          <date year='2013' month='Sept' />

          <!-- <abstract><t>This memo.... </t></abstract> -->
        </front>
      </reference>
      <reference anchor='Pathdiag'>
        <front>
          <title>Pathdiag: Automated TCP Diagnosis</title>
          <!-- abbrev='TITLE' -->
          <author initials='M.' surname='Mathis'></author>
          <author initials='J.' surname='Heffner'></author>
          <author initials='P.' surname="O'Neil"></author>
          <author initials='P.' surname='Siemsen'></author>
          <date year='2008' month='June' />

          <!-- <abstract><t>This memo.... </t></abstract> -->
        </front>
        <seriesInfo name='Passive and Active Measurement'
        value="" />
      </reference>
      <reference anchor='iPerf'
      target="http://en.wikipedia.org/w/index.php?title=Iperf&amp;oldid=649720021">

        <front>
          <title>iPerf</title>
          <author surname='Wikipedia Contributors'></author>
          <date year='2015' month='cited March' />
        </front>
        <seriesInfo name='Wikipedia, The Free Encyclopedia'
        value="" />
      </reference>
      <!--
<reference anchor='BScope' target="http://www.browserscope.org/?category=network">
<front>
<title>Browserscope Network tests</title>
<author surname='Broswerscope' >
</author>
<date year='2012' month='Sept' />
</front>
<annotation>See Max Connections column</annotation>
</reference>
-->
      <reference anchor='Wald45'>
	<front>
	  <title >Sequential Tests of Statistical Hypotheses</title> <!-- abbrev='TITLE' -->
	  <author initials='A.' surname='Wald' > <!-- fullname='Matt Mathis' -->
	  </author>
	  <date year='1945' month='June' />
	</front>
	<seriesInfo
	  name="The Annals of Mathematical Statistics,"
	  value="Vol. 16, No. 2, pp. 117-186"
	/>
	<seriesInfo
	  name="Published by:  Institute of Mathematical Statistics,"
	  value="Stable URL: http://www.jstor.org/stable/2235829"
	/>
      </reference>
      <reference anchor="Montgomery90">
        <front>
          <title>Introduction to Statistical Quality Control - 2nd
          ed.</title>
          <author fullname="Douglas C. Montgomery" initials="D."
          surname="Montgomery">
            <!-- fullname="D.C.Montgomery" -->
            <organization abbrev=""></organization>
          </author>
          <date month="" year="1990" />
        </front>
        <seriesInfo name="ISBN" value="0-471-51988-X" />
      </reference>
      <reference anchor="Rtool">
        <front>
          <title>R: A language and environment for statistical
          computing. R Foundation for Statistical Computing,
          Vienna, Austria. ISBN 3-900051-07-0, URL
          http://www.R-project.org/</title>
          <author fullname="R Development Core Team" initials=""
          surname="R Development Core Team"></author>
          <date month="" year="2011" />
        </front>
        <seriesInfo name="" value="" />
      </reference>
      <reference anchor="CVST">
        <front>
          <title>R package: Fast Cross-Validation via Sequential
          Testing</title>
          <author fullname="Tammo Krueger" initials="T."
          surname="Krueger">
            <organization abbrev="TU">Technical University -
            Berlin</organization>
          </author>
          <author fullname="Mikio Braun" initials="M."
          surname="Braun"></author>
          <date month="11" year="2012" />
        </front>
        <seriesInfo name="version" value="0.1" />
      </reference>
      <!--
<reference anchor="CUBIC">
<front>
<title >CUBIC: a new TCP-friendly high-speed TCP variant</title> 
<author initials='S.' surname='Ha' ></author>
<author initials='I.' surname='Rhee' ></author>
<author initials='L.' surname='Xu' ></author>
<date year='2008' month='July' />
</front>
<seriesInfo name='SIGOPS Oper. Syst. Rev.' value='42, 5' />
</reference>


<reference anchor="LMCUBIC">
            <front>
              <title>A Deterministic Loss Model Based Analysis of CUBIC, IEEE
              International Conference on Computing, Networking and Communications
              (ICNC), E-ISBN : 978-1-4673-5286-4</title>


              <author fullname="R.I. Ledesma Goyzueta" initials="R.I."
                      surname="Ledesma Goyzueta">
                <organization/>
              </author>


              <author fullname="Yu Chen" initials="Y." surname="Chen">
                <organization/>
              </author>


              <date day="28" month="January" year="2013"/>
            </front>
          </reference>
-->
      <reference anchor='AFD'>
        <front>
          <title>Approximate fairness through differential
          dropping</title>
          <author initials='R.' surname='Pan'></author>
          <author initials='L.' surname='Breslau'></author>
          <author initials='B.' surname='Prabhakar'></author>
          <author initials='S.' surname='Shenker'></author>
          <date year='2003' month='April' />
        </front>
        <seriesInfo name='SIGCOMM Comput. Commun. Rev.'
        value='33, 2' />
      </reference>
      <reference anchor='wikiBloat'>
        <front>
          <title>Bufferbloat</title>
          <author surname='Wikipedia'></author>
          <date year='2015' month='March' />
        </front>
        <seriesInfo name='http://en.wikipedia.org/w/'
        value='index.php?title=Bufferbloat&amp;oldid=608805474' />
      </reference>
      <reference anchor='CCscaling'>
        <front>
          <title>Scalable laws for stable network congestion
          control</title>
          <author initials='F.' surname='Fernando'></author>
          <author initials='J. C.' surname='Doyle'></author>
          <author initials='S. H.' surname='Steven'></author>
          <date year='2001' month="December" />
        </front>
        <seriesInfo name='Proceedings of Conference on Decision and Control,'
        value="http://www.ee.ucla.edu/~paganini" />
      </reference>
      <reference anchor='TSO_pacing'>
        <front>
          <title>TSO sizing and the FQ scheduler</title>
          <author initials='J.' surname='Corbet'></author>
          <date year='2013' month='Aug' />
        </front>
        <seriesInfo name='LWN.net'
        value='https://lwn.net/Articles/564978/' />
      </reference>
      <reference anchor='TSO_fq_pacing'>
        <front>
          <title>TSO, fair queuing, pacing: three's a charm</title>
          <author initials='E.' surname='Dumazet'></author>
          <author initials='Y.' surname='Chen'></author>
          <date year='2013' month='Nov' />
        </front>
        <seriesInfo name='Proceedings of IETF 88, TCPM WG'
        value='https://www.ietf.org/proceedings/88/slides/slides-88-tcpm-9.pdf' />
      </reference>
      <reference anchor='Policing'>
	<front>
	  <title>An Internet-Wide Analysis of Traffic Policing</title>
	  <author initials='T.' surname='Flach' > </author>
	  <author initials='P.' surname='Papageorge' > </author>
	  <author initials='A.' surname='Terzis' > </author>
	  <author initials='L. D.' surname='Pedrosa' > </author>
	  <author initials='Y.' surname='Cheng' > </author>
	  <author initials='T.' surname='Karim' > </author>
	  <author initials='E.' surname='Katz-Bassett' > </author>
	  <author initials='R.' surname='Govindan' > </author>
	  <date year='2016' month='August' />
	</front>
	<seriesInfo name='ACM SIGCOMM' value=''/>  <!-- @@@@ incomplete -->
      </reference>
      <!--
<reference anchor='EmptyRef'><front>
<title >TITLE</title>
<author initials='.' surname='' > </author>
<date year='2012' month='Sept' />
</front>
<seriesInfo name='RFC' value='0000' />
</reference>
-->
    </references>
    <!-- ======================================================== A -->
    <section anchor="derive" title="Model Derivations">
      <!-- @@ @@ review language against the models section -->

      <t>The reference target_run_length described in 
      <xref target="models" /> is based on very conservative
      assumptions: that all excess data in flight (window) above the target_window_size
      contributes to a standing queue that raises the RTT, and that
      classic Reno congestion control with delayed ACKs are in
      effect. In this section we provide two alternative
      calculations using different assumptions.</t>

      <t>It may seem out of place to allow such latitude in a
      measurement method, but this section provides offsetting
      requirements.</t>

      <t>The estimates provided by these models make the most sense
      if network performance is viewed logarithmically. In the
      operational Internet, data rates span more than 8 orders of
      magnitude, RTT spans more than 3 orders of magnitude, and
      packet loss ratio spans at least 8 orders of magnitude if not
      more. When viewed logarithmically (as in decibels), these
      correspond to 80 dB of dynamic range. On an 80 dB scale, a 3
      dB error is less than 4% of the scale, even though it
 
      represents a factor of 2 in untransformed parameter.</t>

      <t>This document gives a lot of latitude for calculating
      target_run_length, however people designing a TIDS should
      consider the effect of their choices on the ongoing tussle
      about the relevance of "TCP friendliness" as an appropriate
      model for Internet capacity allocation. Choosing a
      target_run_length that is substantially smaller than the
      reference target_run_length specified in 
      <xref target="models" /> strengthens the argument that it may
      be appropriate to abandon "TCP friendliness" as the Internet
      fairness model. This gives developers incentive and
      permission to develop even more aggressive applications and
      protocols, for example by increasing the number of
      connections that they open concurrently.</t>
      <section anchor="reno_aggregate" title="Queueless Reno">

        <t>In 
        <xref target="models" /> models were derived based on the
        assumption that the subpath IP rate matches the target rate
        plus overhead, such that the excess window needed for the
        AIMD sawtooth causes a fluctuating queue at the
        bottleneck.</t>

        <t>An alternate situation would be a bottleneck where there
        is no significant queue and losses are caused by some
        mechanism that does not involve extra delay, for example by
        the use of a virtual queue as done in Approximate Fair
        Dropping 
        <xref target="AFD" />. A flow controlled by such a
        bottleneck would have a constant RTT and a data rate that
        fluctuates in a sawtooth due to AIMD congestion control.
        Assume the losses are being controlled to make the average
        data rate meet some goal which is equal or greater than the
        target_rate. The necessary run length to meet the
        target_rate can be computed as follows:</t>

        <t>For some value of Wmin, the window will sweep from Wmin
        packets to 2*Wmin packets in 2*Wmin RTT (due to delayed
        ACK). Unlike the queuing case where Wmin =
        target_window_size, we want the average of Wmin and 2*Wmin
        to be the target_window_size, so the average data rate is
        the target rate. Thus we want Wmin =
        (2/3)*target_window_size.</t>

        <t>Between losses each sawtooth delivers
        (1/2)(Wmin+2*Wmin)(2Wmin) packets in 2*Wmin round trip
        times.</t>

        <t>Substituting these together we get:</t>

        <t>target_run_length = (4/3)(target_window_size^2)</t>

        <t>Note that this is 44% of the reference_run_length
 
        computed earlier. This makes sense because under the
        assumptions in 
        <xref target="models" /> the AMID sawtooth caused a queue at
        the bottleneck, which raised the effective RTT by 50%.</t>
 
      </section>
      <!--
<section anchor="cubic" title="CUBIC">







            <t>CUBIC has three operating regions. The model for the expected value
            of window size derived in <xref target="LMCUBIC"/> assumes operation
            in the "concave" region only, which is a non-TCP friendly region for
            long-lived flows. The authors make the following assumptions: packet
            loss probability, p, is independent and periodic, losses occur one at a
            time, and they are true losses due to tail drop or corruption. This
            definition of p aligns very well with our definition of
            target_run_length and the requirement for progressive loss (AQM).</t>



            <t>Although CUBIC window increase depends on continuous time, the
            authors transform the time to reach the maximum Window size in terms
            of RTT and a parameter for the multiplicative rate decrease on
            observing loss, beta (whose default value is 0.2 in CUBIC). The
            expected value of Window size, E[W], is also dependent on C, a
            parameter of CUBIC that determines its window-growth aggressiveness
            (values from 0.01 to 4).</t>



            <t>E[W] = ( C*(RTT/p)^3 * ((4-beta)/beta) )^-4</t>



            <t>and, further assuming Poisson arrival, the mean throughput, x,
            is</t>



            <t>x = E[W]/RTT</t>



            <t>We note that under these conditions (deterministic single losses),
            the value of E[W] is always greater than 0.8 of the maximum window
            size ~= reference_run_length.</t>



 <t>This needs one more equation and a closing paragraph  @ @ @ @</t>




</section>
 -->
    </section>
    <!-- ======================================================== B -->
    <section anchor="complex"
    title="The effects of ACK scheduling">

      <t>For many network technologies simple queuing models don't
      apply: the network schedules, thins or otherwise alters the
      timing of ACKs and data, generally to raise the efficiency of
      the channel allocation algorithms when confronted with
      relatively widely spaced small ACKs. These efficiency
      strategies are ubiquitous for half duplex, wireless and
      broadcast media.</t>

      <t>Altering the ACK stream by holding or thinning ACKs
      typically has two consequences: it raises the implied
      bottleneck IP capacity, making the fine grained slowstart
      bursts either faster or larger and it raises the effective
      RTT by the average time that the ACKs and data are delayed.
      The first effect can be partially mitigated by re-clocking
      ACKs once they are beyond the bottleneck on the return path
      to the sender, however this further raises the effective
      RTT.</t>

      <t>The most extreme example of this sort of behavior would be
      a half duplex channel that is not released as long as the
      endpoint currently holding the channel has more traffic (data
      or ACKs) to send. Such environments cause self clocked
      protocols under full load to revert to extremely inefficient
      stop and wait behavior. The channel constrains the protocol
      to send an entire window of data as a single contiguous burst
      on the forward path, followed by the entire window of ACKs on
      the return path.</t>

      <t>If a particular return path contains a subpath or device
      that alters the timing of the ACK stream, then the entire
      front path from the sender up to the bottleneck must be
      tested at the burst parameters implied by the ACK scheduling
      algorithm. The most important parameter is the Implied
      Bottleneck IP Capacity, which is the average rate at which
      the ACKs advance snd.una. Note that thinning the ACK stream
      (relying on the cumulative nature of seg.ack to permit
      discarding some ACKs) causes most TCP implementations to send
      interface rate bursts
      to offset the longer times between ACKs in order to maintain
      the average data rate.</t>

      <t>Note that due to ubiquitous self
      clocking in Internet protocols, ill conceived channel
      allocation mechanisms are likely to
      increases the queuing stress on the
      front path because they cause larger full sender rate data
      bursts.</t>

      <t>Holding data or ACKs for channel allocation or other
      reasons (such as forward error correction) always raises the
      effective RTT relative to the minimum delay for the path.
      Therefore it may be necessary to replace target_RTT in the
      calculation in 
      <xref target="models" /> by an effective_RTT, which includes
      the target_RTT plus a term to account for the extra delays
      introduced by these mechanisms.</t>
    </section>
    <!-- ======================================================== C -->
    <section title="Version Control">

      <t>This section to be removed prior to publication.</t>

      <t>Formatted: Thu Apr 7 18:12:37 PDT 2016</t>
    </section>
  </back>
</rfc>
