<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc strict="yes"?>
<?rfc comments="no"?>
<?rfc inline="yes"?>
<?rfc editing="no"?>
<?rfc toc="yes"?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="3"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<?rfc rfcedstyle="yes"?>
<?rfc rfcprocack="no"?>
<?rfc tocindent="yes"?>

<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!ENTITY rfc2119 PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY rfc6390 PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.6390.xml">
<!ENTITY rfc3611 PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3611.xml">
<!ENTITY rfc4566 PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4566.xml">
<!ENTITY rfc3550 PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3550.xml">
<!ENTITY I-D.ietf-avtcore-monarch PUBLIC "" "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.ietf-avtcore-monarch.xml">
]>

<rfc category="std" docName="draft-ietf-xrblock-rtcp-xr-loss-conceal-03.txt" ipr="trust200902">

  <front>
    <title abbrev="RTCP XR Loss Concealment">RTCP XR Report Block for Loss Concealment Metric Reporting</title>

    <author fullname="Claire Bi" initials="C." surname="Bi">
      <organization abbrev="STTRI">Shanghai Research Institure of China
      Telecom Corporation Limited</organization>

      <address>
        <postal>
          <street>No.1835, South Pudong Road</street>

          <city>Shanghai</city>

          <code>200122</code>

          <country>China</country>
        </postal>

        <email>bijy@sttri.com.cn</email>
      </address>
    </author>

    <author fullname="Alan Clark" initials="A." surname="Clark">
      <organization abbrev="Telchemy">Telchemy Incorporated</organization>

      <address>
        <postal>
          <street>2905 Premiere Parkway, Suite 280</street>

          <city>Duluth</city>

          <region>GA</region>

          <code>30097</code>

          <country>USA</country>
        </postal>

        <email>alan.d.clark@telchemy.com</email>
      </address>
    </author>

    <author fullname="Geoff Hunt" initials="G." surname="Hunt">
      <organization>Unaffiliated</organization>

      <address>
        <email>r.geoff.hunt@gmail.com</email>
      </address>
    </author>
    
    <author fullname="Qin Wu" initials="Q." surname="Wu">
      <organization>Huawei</organization>

      <address>
        <postal>
          <street>101 Software Avenue, Yuhua District</street>

          <city>Nanjing</city>

          <region>Jiangsu</region>

          <code>210012</code>

          <country>China</country>
        </postal>

        <email>sunseawq@huawei.com</email>
      </address>
    </author>
    
    <author role="editor" fullname="Glen Zorn" initials="G." surname="Zorn">
      <organization>Network Zen</organization>

      <address>
        <postal>
          <street>227/358 Thanon Sanphawut</street>
          <city>Bang Na</city>
          <region>Bangkok</region>
          <code>10260</code>

          <country>Thailand</country>
        </postal>

        <phone>+66 (0) 90 920 1060</phone>

        <email>glenzorn@gmail.com</email>
      </address>
    </author>

    <date year="2012" />

    <area>Real-time Applications and Infrastructure Area</area>

    <keyword></keyword>

    <keyword>Request for Comments</keyword>

    <keyword>XR</keyword>

    <keyword>RTCP</keyword>

    <keyword>Real Time Control Protocol</keyword>

    <abstract>
      <t>
        This document defines an RTCP XR Report Block that allows the
        reporting of loss concealment metrics primarily for
        audio applications of RTP.
      </t>
    </abstract>
  </front>

  <middle>
    <section anchor="intro" title="Introduction">
      <section title="Standards Language">
        <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 RFC 2119
          <xref target="RFC2119"/>.
        </t>        
      </section>
      
      <section title="Loss Concealment Report Block">
        <t>
          This draft defines a new block type to augment those defined in
          Friedman, et al.&nbsp;<xref target="RFC3611"/>
          for use in a range of RTP applications.
        </t>

        <t>
          At any instant, the audio output at a receiver may be classified as
          either 'normal' or 'concealed'. 'Normal' refers to playout of audio
          payload received from the remote end, and also includes locally
          generated signals such as announcements, tones and comfort noise.
          Concealment refers to playout of locally-generated signals used to
          mask the impact of network impairments or to
          reduce the audibility of
          jitter buffer adaptations.
        </t>

        <t>
          The new block type provides metrics for actions taken by the
          receiver to mitigate the effect of packet loss and packet discard.
          Specifically, the first metric (On-Time Playout Duration) reports
          the duration of normal playout of data which the receiver obtained
          from the sender's stream. A second metric
          (Loss Concealment Duration)
          reports the total time during which the receiver played out media
          data
          which was manufactured locally, because the sender's data for these
          periods was not available due to packet loss or discard.
          A similar
          metric (Buffer Adjustment Concealment Duration) reports the duration
          of playout of locally-manufactured data replacing data 
          unavailable due to adaptation of an adaptive de-jitter buffer.
          Further
          metrics (Playout Interrupt Count and Mean Playout Interrupt Size)
          report the number of times normal playout was interrupted, and the
          mean duration of these interruptions.
        </t>

        <t>
          Loss Concealment Duration and Buffer Adjustment Concealment
          Duration are reported separately because buffer adjustment is
          typically arranged to occur in silence periods and so may have very little
          impact on user experience, whilst loss concealment may occur at any
          time.
        </t>

        <t>
          The metric belongs to the class of transport-related terminal
          metrics defined in
          Wu, et al.&nbsp;<xref target="I-D.ietf-avtcore-monarch"/>.
        </t>
      </section>

      <section title="RTCP and RTCP XR Reports">
        <t>
          The use of RTCP for reporting is defined in
          Schulzrinne, et al.&nbsp;<xref target="RFC3550"/>.
          Friedman, Cacares &amp; Clark <xref target="RFC3611"/> define an
          extensible structure for reporting using an RTCP Extended Report
          (XR).
          This draft defines a new Extended Report block that MUST be used as
          specified in RFC 3550 and RFC 3611.
        </t>
      </section>

      <section title="Performance Metrics Framework">
        <t>
          Clark &amp; Claise <xref target="RFC6390"/>
          provides guidance on the definition and specification of performance
          metrics. Wu, et al.&nbsp;<xref target="I-D.ietf-avtcore-monarch"/>
          provides guidelines for RTCP XR report block formats.
          The report block defined in this document is in
          accordance with those guidelines.
        </t>
      </section>

      <section title="Applicability">
        <t>
          This metric is primarily applicable to audio applications of RTP.
          EDITOR'S NOTE: are there metrics for concealment of transport errors
          for video?
        </t>
      </section>
    </section>

    <section title="Loss Concealment Block">
      <section title="Report Block Structure">
        <t>
          <figure title="Figure 1: Structure of the Loss Concealment Metrics Block">
<artwork><![CDATA[
  0                   1                   2                   3
  0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |    BT=<NLC>   | I |plc|  resv |       block length=5          |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                         SSRC of Source                        |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                 On-time Playout Duration                      |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                  Loss Concealment Duration                    |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |              Buffer Adjustment Concealment Duration           |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |    Playout Interrupt Count    |  Mean Playout Interrupt Size  |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>
          </figure>
        </t>
      </section>

      <section title="Definition of Fields in Loss Concealment Report Block">
        <t>
          <list style="hanging">
            <t hangText="Block type (BT): 8 bits">
              <vspace blankLines="1"/>
              A Loss Concealment Metrics Report Block is identified by the
              constant &lt;NLC&gt;.
              <vspace blankLines="1" />
              [Note to RFC Editor: please
              replace &lt;NLC&gt;
              with the RTCP XR block type allocated by IANA for this
              block.]
              <vspace blankLines="1" />
            </t>

            <t hangText="Interval Metric flag (I): 2 bits">
              <vspace blankLines="1" />
              This field is used to indicate whether the delay
              metrics are sampled, interval or cumulative metrics,
              that is,
              whether the reported values applies to the most
              recent measurement
              interval duration between successive metrics reports (I=10) (the
              interval duration) or to the accumulation period characteristic of
              cumulative measurements (I=11) (the cumulative duration) or is a
              sampled instantaneous value (I=01) (sampled value).
              <vspace blankLines="1" />
            </t>

            <t hangText="Packet Loss Concealment Method (plc): 2 bits">
              <vspace blankLines="1" />
              This field is used to identify the packet loss
              concealment method in use at the receiver, according to the
              following scheme:
              <list>
                <t>00 = silence insertion</t>

                <t>01 = simple replay, no attenuation</t>

                <t>10 = simple replay, with attenuation</t>

                <t>11 = enhanced</t>

              </list>
              <vspace blankLines="1" />
            </t>

            <t hangText="Reserved (resv): 4 bits">
              <vspace blankLines="1" />
              These bits are reserved. They MUST  be set to
              zero by senders and SHOULD be ignored by receivers.
              <vspace blankLines="1" />
            </t>

            <t hangText="block length: 16 bits">
              <vspace blankLines="1" />
              The length of this report block in 32-bit words, minus one.
              For the Loss Concealment block, the block length is equal to 5.
              <vspace blankLines="1" />
            </t>

            <t hangText="SSRC of source: 32 bits">
              <vspace blankLines="1" />
              As defined in Section 4.1 of RFC 3611.
              <vspace blankLines="1" /></t>

            <t hangText="On-time Playout Duration (ms): 32 bits">
              <vspace blankLines="1" />
              'On-time' playout is the uninterrupted,
              in-sequence playout of valid decoded audio information originating
              from the remote endpoint. This includes comfort noise during
              periods of remote talker silence if voice activity detection (VAD)
              is in use, and locally
              generated or regenerated tones and announcements.
              <vspace blankLines="1" />
              An equivalent definition is that on-time playout
              is playout of any signal other than those used for concealment.
              <vspace blankLines="1" />
              On-time playout duration MUST include
              both speech and silence intervals, whether VAD is used or not.
              This duration is reported in millisecond units.
            </t>

            <t>
              If the measured value exceeds 0xFFFFFFFD, the value 0xFFFFFFFE
              SHOULD be reported to indicate an over-range measurement. If the
              measurement is unavailable, the value 0xFFFFFFFF SHOULD be
              reported.
              <vspace blankLines="1" />
            </t>

            <t hangText="Loss Concealment Duration (ms): 32 bits">
              <vspace blankLines="1" />
              The duration, in milliseconds, of audio playout
              corresponding to loss-type concealment.
              <vspace blankLines="1" />
              Loss-type concealment is reactive insertion or
              deletion of samples in the audio playout stream due to effective
              frame loss at the audio decoder. "Effective frame loss" is the
              event in which a frame of coded audio is simply not present at the
              audio decoder when required. In this case, substitute audio
              samples are generally formed, at the decoder or elsewhere, to
              reduce audible impairment.
              <vspace blankLines="1" />
              If the
              measured value exceeds 0xFFFFFFFD, the value 0xFFFFFFFE SHOULD be
              reported to indicate an over-range measurement. If the measurement
              is unavailable, the value 0xFFFFFFFF SHOULD be reported.
              <vspace blankLines="1" />
            </t>

            <t hangText="Buffer Adjustment Concealment Duration (ms): 32 bits">
              <vspace blankLines="1" />
              The duration, in milliseconds, of audio playout
              corresponding to buffer adjustment concealment, if known.
              <vspace blankLines="1" />
              If the measured value exceeds 0xFFFFFFFD,
              the value 0xFFFFFFFE SHOULD be reported to indicate an over-range
              measurement. If the measurement is unavailable, the value
              0xFFFFFFFF SHOULD be reported.
              <vspace blankLines="1" />
              Buffer
              adjustment concealment is proactive or controlled insertion
              or deletion of samples in the audio playout stream due to jitter
              buffer adaptation, re-sizing or re-centering decisions within the
              endpoint.
              <vspace blankLines="1" />
              Because this insertion is
              controlled, rather than occurring randomly in response to losses,
              it is typically less audible than loss-type concealment. For
              example, jitter buffer adaptation events may be constrained to
              occur during periods of talker silence, in which case only silence
              duration is affected, or sophisticated time-stretching methods for
              insertion/deletion during favorable periods in active speech may
              be employed.
              <vspace blankLines="1" />
              Concealment events which
              cannot be classified as buffer adjustment MUST be classified
              as loss concealment.
              <vspace blankLines="1" />
            </t>

            <t hangText="Playout Interrupt Count: 16 bits">
              <vspace blankLines="1" />
              The number of interruptions to normal playout
              which occurred during the reporting period.
              <vspace blankLines="1" />
              If the measured value exceeds 0xFFFD, the value
              0xFFFE SHOULD be reported to indicate an over-range measurement.
              If the measurement is unavailable, the value 0xFFFF SHOULD be
              reported.
              <vspace blankLines="1" />
            </t>

            <t hangText="Mean Playout Interrupt Size (ms): 16 bits">
              <vspace blankLines="1" />
              The mean duration, in ms, of interruptions to
              normal playout which occurred during the reporting period.
              <vspace blankLines="1" />
              If the measured value exceeds 0xFFFD, the value
              0xFFFE SHOULD be reported to indicate an over-range measurement.
              If the measurement is unavailable, the value 0xFFFF SHOULD be
              reported.
              <vspace blankLines="1" />
            </t>
          </list>
        </t>
      </section>
    </section>

    <section title="SDP Signaling">
      <t>
        The use of the Session Description Protocol (SDP) <xref target="RFC4566"/>
        for signaling the use of XR blocks is described in RFC 3611. XR blocks
        MAY be used without prior signaling.
        <vspace blankLines="1"/>
        This section augments the SDP 
        attribute "rtcp-xr" defined in Section 5.1 of RFC 3611 by
        providing an additional value of "xr-format" to signal the use of the
        report block defined in this document.
        <figure>
<artwork>
rtcp-xr-attrib = "a=" "rtcp-xr" ":" [xr-format *(SP xr-format)] CRLF

(defined in RFC 3611)

xr-format =/ xr-conceal-block

xr-conceal-block = "loss-conceal"
</artwork>
        </figure>
      </t>
    </section>

    <section title="IANA Considerations">
      <t>
        New block types for RTCP XR are subject to IANA registration. For
        general guidelines on IANA considerations for RTCP XR, refer to RFC 3611.
      </t>

      <section title="New RTCP XR Block Type value">
        <t>
          This document assigns the block type value &lt;NLC&gt; in the IANA "RTCP XR
          Block Type Registry" to the "Loss Concealment Metrics Block".
          <vspace blankLines="1"/>
          [Note to RFC Editor: please replace &lt;NLC&gt; with the RTCP
          XR block type assigned by IANA for this block.]
        </t>
      </section>

      <section title="New RTCP XR SDP Parameter">
        <t>
          This document also registers a new parameter "loss-conceal" in the
          "RTCP XR SDP Parameters Registry".
        </t>
      </section>

      <section title="Contact Information for Registrations">
        <t>
          <figure>
<artwork>
   The contact information for the registrations is:

   Alan Clark (alan.d.clark@telchemy.com)

   2905 Premiere Parkway, Suite 280
   Duluth, GA  30097
   USA
</artwork>
          </figure>
        </t>
      </section>
    </section>

    <section title="Security Considerations">
      <t>
        It is believed that this proposed RTCP XR report block introduces no
        new security considerations beyond those described in RFC 3611.
        This block does not provide per-packet
        statistics so the risk to confidentiality documented in Section 7,
        paragraph 3 of RFC 3611 does not apply.
      </t>
    </section>

    <section title="Acknowledgements">
      <t>
        The authors gratefully acknowledge the comments and suggestions
        made by Bruce Adams, Philip Arden, Amit Arora, Bob Biskner, Kevin
        Connor, Claus Dahm, Randy Ethier, Roni Even, Jim Frauenthal, Albert
        Higashi, Tom Hock, Shane Holthaus, Paul Jones, Rajesh Kumar, Keith
        Lantz, Mohamed Mostafa, Amy Pendleton, Colin Perkins, Mike Ramalho, Ravi
        Raviraj, Albrecht Schwarz, Tom Taylor
        and Hideaki Yamada.
      </t>
    </section>
  </middle>

  <back>
    <references title="Normative References">
      &rfc2119;
      &rfc3611;
      &rfc4566;
      &rfc3550;
    </references>

    <references title="Informative References">
      &I-D.ietf-avtcore-monarch;
      &rfc6390;
    </references>
  </back>
</rfc>
