One document matched: draft-jennings-rtcweb-plan-00.xml


<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>

<?rfc toc="yes" ?>
<?rfc symrefs="yes" ?>
<?rfc strict="yes" ?>
<?rfc compact="no" ?>
<?rfc sortrefs="yes" ?>
<?rfc colonspace="no" ?>
<?rfc rfcedstyle="no" ?>
<?rfc tocdepth="4"?>

<rfc category="info" docName="draft-jennings-rtcweb-plan-00"
     ipr="noDerivativesTrust200902">
  <front>
    <title abbrev="RTCWeb Plan">Proposed Plan for Usage of SDP and RTP</title>

    <author fullname="Cullen Jennings" initials="C." surname="Jennings">
      <organization>Cisco</organization>

      <address>
        <postal>
          <street>400 3rd Avenue SW, Suite 350</street>

          <city>Calgary</city>

          <region>AB</region>

          <code>T2P 4H2</code>

          <country>Canada</country>
        </postal>

        <email>fluffy@iii.ca</email>
      </address>
    </author>
    
    <date day="18" month="February" year="2013" />

    <area>RAI</area>

    <abstract>
      <t>This draft outlines a bunch of the remaining issues in RTCWeb related
      to how the the W3C APIs map to various usages of RTP and the associated
      SDP. It proposes one possible solution to that problem and outlines
      several chunks of work that would need to be put into other drafts or
      result in new drafts being written. The underlying design guideline is to,
      as much as possible, re-use what is already defined in existing SDP
      [RFC4566] and RTP [RFC3550] specifications.</t>

      <t>This draft is not intended to become an specification but is meant for
      working group discussion to help build the specifications. It is being
      discussed on the webrtc@ietf.org mailing list though it has topics
      relating to the CLUE WG, MMUSIC WG, AVT* WG, and WebRTC WG at W3C. </t>
    </abstract>
  </front>

  <middle>
    <section title="Introduction">
      <t>The reoccurring theme of this draft is that SDP <xref
      target="RFC4566"></xref> already has a way of solving the problems being
      discussed at the RTCWeb WG and we not try to invent something new
      but rather re-use the existing methods instead.</t>

      <t>This does results in lots of m lines but all the alternatives resulted
      in an nearly equivalent number of SSRC lines with a possibility of
      redefining most of the media level attributes. So it's really hard to see
      the big difference.This assumes that it is perfectly feasible to transport
      SDP that much larger than a single MTU. The SIP <xref
      target="RFC3261"></xref> usage of SDP has successfully passed over this
      long ago. In the cases where the SDP is passed over web mechanisms, it is
      easy to use compression and it is more of an optimization criteria than a
      limiting issue.</t>

    </section>

    <section title="Terminology">
      <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHOULD", "SHOULD NOT",
      "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be
      interpreted as described in <xref target="RFC2119"></xref>.</t>

      <t>This draft uses the API and terminology described in <xref
      target="webrtc-api"></xref>.</t>

      <t>Transport-Flow: 5 Tuple representing a RTP association.</t>

      <t>5-tuple: A collection of the following values: source IP address,
      source transport port, destination IP address, destination transport port
      and transport protocol.</t>

      <t>PC-Track: A source of media (audio and/or video) that is contained in a
      PC-Stream. A PC-Track represents content comprising one or more
      PC-Channels.</t>

      <t>PC-Channel: Smallest unit of a PC-Track representing inter-related
      media aspects such as stereo or 5.1 audio signal</t>

      <t>PC-Stream: Represents stream of data of audio and/or video added to a
      Peer Connection by local or remote media source(s). A PC-Stream is made up
      of zero or more PC-Tracks.</t>

      <t>m-line: An <xref target="RFC4566">RFC4566</xref> media description
      identifier that starts with "m=" field and conveys following values:media
      type,transport port,transport protocol and media format descriptions.</t>

      <t>m-block: An <xref target="RFC4566">RFC4566</xref> media description
      that starts with an m-line and is terminated by either the next m-line or
      by the end of the session description.</t>

      <t>Offer: An <xref target="RFC3264"></xref> SDP message generated by the
      participant who wishes to initiate a multimedia communication session.
      An Offer describes participants capabilities for engaging in a multimedia
      session.</t>

      <t>Answer: An <xref target="RFC3264"></xref> SDP message generated by the
      participant in response to an Offer. An Answer describes participants
      capabilities in continuing with the multimedia session with in the
      constraints of the Offer.</t>

      <t hangText="Note">This draft avoids using terms that implementors do
      not have a clear idea of exactly what they are - for example RTP
      Session.</t>
    </section>

    <section anchor="sec-req" title="Requirements">
      <t>The requirements listed here are a collection of requirements that
      have come from WebRTC, CLUE, and the general community that uses RTP for
      interactive communications based on Offer/Answer. It does not try to
      meet the needs of streaming usages or usages involving multicast. This
      list does not also try to list every possible requirement but instead
      outlines the ones that might influence the design. <list style="symbols">
          <t>Devices with multiple cameras</t>

          <t>Devices that display multiple streams of video</t>

          <t>Simulcast, wherein a video from a single camera is sent in a few
          independent video streams typically at different resolutions and
          frame rates.</t>

          <t>Layered Codec such as H.264 SVC</t>

          <t>One way media flows and bi-directional media flows</t>

          <t>Mapping W3C PeerConnection (PC) aspects into SDP and RTP. It is
          important that the SDP be descriptive enough that both sides can get
          the same view of various identifiers for PC-Tracks, PC-Streams and
          their relationships.</t>

          <t>Support of Interactive Connectivity Establishment (ICE) <xref
          target="RFC5245"></xref></t>

          <t>Support of Multiplexing.</t>

          <t>Synchronization - It needs to be clear how implementations deal
          with synchronization, in particular usages of both CNAME and LS group.
          The sender needs be able to indicate which Media Flows are intended 
          to be synchronized and which are not.</t>

          <t>Redundant codings - The ability to send some media, such as the
          audio from a microphone, multiple times. For example it may be sent
          with a high quality wideband codec and a low bandwidth codec. If
          packets are lost from the high bandwidth steam, the low bandwidth
          stream can be used to fill in the missing gaps of audio. This is
          very similar to simulcast.</t>

          <t>Forward Error Correction - Support for various RTP FEC
          schemes.</t>

          <t>RSVP QoS - Ability to signal various QoS mechanism such SRF
          group</t>

          <t>Desegregated Media (FID group) - There is a growing desire to
          deal with endpoints that are distributed - for example a video phone
          where the incoming video is displayed on the an IP TV but the
          outgoing video comes from a tablet computer. This results in
          situations where the SDP sets up a session with not all the media
          transmitted to a single IP address.</t>

          <t>In flight change of codec: Support for system that can negotiate
          the uses of more than one codec for a given media flow and then the
          sender can arbitrarily switch between them when they are sending but
          they only send with one codec as at time.</t>

          <t>Support for Sequential and Parallel forking at the SIP level</t>

          <t>Support for Early Media</t>

          <t>Conferencing environments with Transcoding MCU that
          decodes/mixes/recodes the media</t>

          <t>Conferencing environments with Switching MCU where the MCU mucks
          the header information of the media and do not decode/recode all the
          media</t>

        </list></t>
    </section>

    <section anchor="sec-solutions" title="Solutions">
      <t>This section outlines a set of rules for the usage of SDP and RTP that
      seems to deal with the various problems and issues that have been
      discussed. Most of these are not new and are pretty much how many systems
      do it today. Some of them are new, but all the items requiring new
      standardization work are called out in the <xref target="sec-tasks"/>. </t>
      <t>
        Approach:
        <list
          style="numbers">
          <t>If a system wants to offer to send two cameras, it MUST use a
          separate m-block for each camera. In cases such as FEC, simulcast, SVC, it will use more than one m-block per camera. </t>

          <t>If a systems wants to receive two streams of video to display in
          two different windows or screens, it MUST user separate m-blocks for
          each unless explicitly signaled to otherwise (see <xref
          target="sec-multi-render"/>). </t>

          <t>Unless explicitly signaled otherwise (see <xref
          target="sec-multi-render"/>), if a given m-line receives media from
          multiple SSRCs, only media from the most recently received SSRC SHOULD
          be rendered and other SSRC SHOULD NOT and if it is video it SHOULD be
          rendered in the same window or screen.</t>

          <t>Each PC-Track corresponds to one or more m-blocks.</t>

          <t>If a camera is sending simulcast video and three resolutions, each
          resolution MUST get its own m-block and all the three m-blocks will
          be grouped. Open Issues: use FID or define a new group? </t>

          <t>If a camera is using a layered codec with three layers, there
          MUST be an m-block for each, and they will be grouped using
          standard SDP for grouping layers.</t>

          <t>To aid in synchronized playback, there is exactly one, and only one, LS
          group for each PC-Stream. All the m-blocks for all the PC-Tracks in a
          given PC-Stream are synchronized so they are all put in one LS
          group. All the PC-Tracks in a given PC-Stream have the same CNAME.  If
          a PC-Track appears in more than one PC-Stream, then all the PC-Streams 
          with that PC-Track MUST have the same CNAME. </t>

          <t>One way media MUST use the sendonly or recvonly attributes.</t>

          <t>Media lines that are not currently in use but may be used later, so that
          the resources need to be kept allocated, SHOULD use the inactive
          attribute.</t>

          <t>If an m-line will not be used, or it is rejected, it MUST have its
          port set to zero.</t>

          <t>If a video switching MCU produces a virtual "active speaker" media
          flow, that media flow should have its own SSRC but include the SSRC
          of the current speaker's video in the CSRC packets it produces.</t>

          <t>For each PC-Track, the W3C API MUST provide a way to set and read
          the CSRC list, set and read the content RFC 4574 "label", and read the SSRC of last packet received on
          a PC-Track.</t>

          <t>The W3C api should have a constraint or API method to allow a
          PC-Stream to indicate the number of multi-render video streams it
          can accept. Each time a new steam is received up to the maximum, a
          new PC-Track will be created.</t>

          <t>Applications MAY signal all the SSRC they intend to send using the
          RFC 5576, but receivers need to be careful in their usage of the SSRC in signaling, as the SSRC
          can change when there is a collision and it takes time before that will be updated in signaling. </t>

          <t>Applications can get out of band "roster information" that maps the
          names of various speakers or other information to the MSID and/or SSRCs
          that a user is using</t>

          <t>Applications SHOULD use the RFC 4574 content labels to indicate the
          purpose of the video. The additional content types, main-left and
          main-right, need to be added to support two- and three-screen systems.</t>

          <t>The CLUE WG might want to consider SDP to signal the 3D
          location and field of view parameters for captures and
          renderers.</t> 

          <t> The W3C API allows a "label" to be set for the PC-Track. This MUST
          be mapped to the SDP label attribute. </t>

        </list></t>

        <section anchor="sec-msid" title="Correlation and Multiplexing">

          <t> The port number that RTP is received on provides the primary
          mechanism for correlating it to the correct m-line. However, when the port does not uniquely male the RTP packet to the correct m-block (such as in multiplexing and other cases), the next thing that can be looked at is the PT
          number. Finally there are cases where SSRC can be used if that was
          signaled. </t>

          <t> There are some complications when using SSRC for correlation with
          signaling. First, the offerer may end up receiving RTP packets before
         receiving the signaling with the SSRC correlation
          information. This is because the sender of the RTP chooses the SSRC;
          there is no way for the receiver to signal how some of the bits
          in the SSRC should be set. Numerous attempts to
          provide a way to do this have been made, but they have all been rejected for various
          reasons, so this situation is unlikely to change. The second issue is that the
          signaled SSRC can change, particularly in collision cases, and there
          is no good way to know when SSRC are changing, such that the currently
          signaled SSRC usage maps to the actual RTP SSRC usage. Finally SSRC
          does not always provide correlation information between media flows - take for
          example trying to look at SSRC to tell that an audio media flow and
          video media flow came from the same camera. The nice thing about SSRC
          is that they are also included in the RTP. </t>

          <t> The proposal here is to extend the MSID draft to meet these needs:
          each media flow would have a unique MSID and the MSID would have some
          level of internal structure, which would allow various forms of correlation,
          including what WebRTC needs to be able to recreate the MS-Stream /
          MS-Track hierarchy to be the same on both sides. In addition, this work
          proposes creating an optional RTP header extension that could be used
          to carry the MSID for a media flow in the RTP packets. This is not
          absolutely needed for the WebRTC use cases but it helps in the case
          where media arrives before signaling and it helps resolve a
          broader category of web conferencing use cases. </t>

          <t> The MSID consists of three things and can extended to have
          more. It has a device identifier, which corresponds to a unique
          identifier of the device that created the offer; one or more
          synchronization context identifiers, which is a number that helps
          correlate different synchronized media flows; and a media flow
          identifier. The synchronization identifier and flow identifier are
          scoped within the context of the device identifier, but the device
          identifier is globally unique. The suggested device identifier is a
          64-bit random number. The synchronization group is an integer that is
          the same for all media flows that have this device identifier and are
          meant to be synchronized. Right now there can be more than one
          synchronization identifier, but the open issues suggest that one would
          be preferable. The flow identifier is an integer that uniquely
          identifies this media flow within the context of the device
          identifier.  </t>
          <t>
            An example MSID for a device identifier of 12345123451234512345,
            synchronization group of 1, and a media flow id of 3 would be:
            <list> 
              <t> a=msid:12345123451234512345 s:1 f:3 </t>
            </list>
          </t>
          <t> When the MSID is used in an answer, the MSID also has the remote
          device identifier included. In the case where the device ID of
          the device sending the answer was 22222333334444455555, the MSID would
          look like:  <list> 
              <t> a=msid:12345123451234512345 s:1 f:3 r:22222333334444455555</t>
            </list>
          </t>

          <t> Note: The 64 bit size for the device identifier was chosen as it
          allows less than a one in a million chance of collision with greater than
          10,000 flows (actually it allows this probability with more like 6 million
          flows). Much smaller numbers could be used but 32 bits is probably too
          small. More discussion on the size of this and the color of the bike
          shed is needed. </t> 

          <t> When used in the WebRTC context, each PeerConnection should
          generate a unique device identifier. Each PC-Stream in the
          PeerConnection will get a a unique synchronization group identifier,
          and each PC-Track in the Peer Connection will get a unique flow
          identifier. Together these will be used to form the MSID. The MSID MUST
          be included in the SDP offer or answer so that the WebRTC
          connection on the remote side can form the correct structure of remote
          PC-Streams and PC-Tracks. If a WebRTC client receives an Offer with no
          MSID information and no LS group information, it MUST put all the
          remote PC-Tracks into a single PC-Stream. If there is LS group
          information but no MSID, a PC-Stream for each LS group MUST be created
          and the PC-Tracks put in the appropriate PC-Stream.  </t>

          <t> The W3C specs should be updated to have the ID attribute of the
          MS-Stream be the MSID with no flow identifier, and the ID attribute
          of the MS-Track be the MSID. </t>

        </section>

      <section anchor="sec-multi-render" title="Multiple Render">
        <t>There are cases - such as a grid of security cameras or thumbnails in a video conference - where a receiver is willing to receive and display
        several media flows of video. The proposal
        here is to create a new media level attribute called multiple-render that
        includes an integer that indicates how many streams can be rendered at
        the same time.</t>

        <t>As an example, a system that could display 16 thumbnails at the same
        time and was willing to receive H261 or H264 might offer</t>
        <figure>
          <artwork align="left" alt="" height="" name="" type="" width=""
                   xml:space="preserve"><![CDATA[

SDP Offer 
 m=video 52886 RTP/AVP 98 99 
 a=muliple-render:16 
 a=rtpmap:98 H261/90000
 a=rtpmap:99 H264/90000 
 a=fmtp:99 profile-level-id=4de00a;
        packetization-mode=0; mst-mode=NI-T;
        sprop-parameter-sets={sps0},{pps0};
 ]]></artwork>
        </figure>      
       
        <t>When combining this muliple-render feature with multiplexing, the answer will might not
        know all the SSRC that will send to this m-block so it is best to use payload
        type (PT) numbers that are unique for the SDP: the demultiplexing may
        have to only use the PT if the SSRC are unknown.</t>

        <t>The receiver displays, in different windows, the video from the most
        recent 16 SSRC to send video to m-block.</t>

        <t>This allows a switching MCU to know how many thumbnail type streams
        would be appropriate to send to this endpoint.</t>
      </section>

      <section anchor="sec-dirt" title="Dirty Little Secrets">
        <t>If SDP offer/answers are of type AVP or AVPF but contain a crypto
        of fingerprint attribute, they should be treated as if they were SAVP or
        SAVPF respectively. The Answer should have the same type as the offer
        but for all practical purposes the implementation should treat it as the
        secure variant.</t>

        <t>If SDP offer/answers are of type AVP or SAVP, but contain a rtcp
        attribute, they should be treated as if they were AVPF or SAVPF
        respectively. The SDP Answer should have the same type as the Offer but
        for all practical purposes the implementation should treat it as the
        feedback variant.</t>

        <t>If an SDP Offer has both a fingerprint and a crypto attribute, it means
        the Offerer supports both DTLS-SRTP and SDES and the answer should select
        one and return an Answer with only an attribute for the selected keying
        mechanism.</t>
      </section>

<!-- 
      <section anchor="sec-issues" title="Issues">
      
        <t>What do do with unrecognized media received at PC level</t>

      </section>
-->

    </section>

    <section anchor="sec-examples" title="Examples">


      <t>Example of a video client joining a video conference. The client can
      produce and receive two streams of video, one from the slides and the other
      of the person. The video of the person is synchronized with the
      audio. In addition, the client can display up to 10 thumbnails of video.
      The main video is simulcast at HD size and a thumbnail size.</t>

      <t>
        SDP Offer - Client send simulcast video with 2 resolutions in 2 m-blocks
        indicated by a=group:simulcast and indicating lip-sync for the audio and video
        m-blocks. Also indicating it can accept 10 streams for rendering with
        a=multi-render
      </t>

      <figure>
        <artwork align="left" alt="" height="" name="" type="" width=""
                   xml:space="preserve"><![CDATA[
[TODO - populate proper fmtp values for thumbnail size] or 

     v=0
     o=alice 2890844526 2890844527 IN IP4 host.atlanta.example.com
     s=
     c=IN IP4 host.atlanta.example.com
     t=0 0
     a=group:LS 1,2,3
     a=group:simulcast 2,3
     m=audio 49170 RTP/AVP 99
     a=mid:1
     a=rtpmap:99 iLBC/8000
     m=video 51372 RTP/AVP 96
     a=mid:2
     a=rtpmap:96 H264/90000
     a=fmtp:96 profile-level-id=428014; 
       max-fs=3600; max-mbps=108000; max-br=14000
     m=video 51372 RTP/AVP 97
     a=mid:3
     a=multi-render:10
     a=rtpmap:97 H264/90000
     a=fmtp:97 profile-level-id=428014; max-fs=3600l 
       max-mbps=108000; max-br=14000
]]></artwork>
      </figure>
    
      <t>
        SDP Answer from the server indicating two video stream with the speaker and the 
        slides. Also signaled is the lip-sync for speakers audio and video streams.
      </t>
      
      <figure>
        <artwork align="left" alt="" height="" name="" type="" width=""
                   xml:space="preserve"><![CDATA[

     v=0
     o=bob 2808844564 2808844565 IN IP4 host.biloxi.example.com
     s=
     c=IN IP4 host.biloxi.example.com
     t=0 0
     a=group:LS a,b
     m=audio 49172 RTP/AVP 99
     a=mid:a
     a=rtpmap:99 iLBC/8000
     m=video 51374 RTP/AVP 96
     a=mid:b
     a=content:speaker
     a=rtpmap:96 H264/90000
     m=video 51376 RTP/AVP 97
     a=mid:c
     a=content:slides
     a=rtpmap:97 H264/90000

]]></artwork>
      </figure>
      
      <t>Example of a three-screen video endpoint connecting to a two-screen
      system which ends up selecting the left and middle screens.</t>
  
      <figure>
        <artwork align="left" alt="" height="" name="" type="" width=""
                   xml:space="preserve"><![CDATA[

SDP Offer

     v=0
     o=alice 2890844526 2890844527 IN IP4 host.atlanta.example.com
     s=
     c=IN IP4 host.atlanta.example.com
     t=0 0
     a=rtcp-fb
     m=audio 49170 RTP/SAVPF 99
     a=content:left
     a=rtpmap:99 iLBC/8000
     m=video 51372 RTP/SAVPF 31
     a=content:main
     a=rtpmap:96 H261/90000
     m=video 51374 RTP/SAVPF 31
     a=content:right
     a=rtpmap:96 H261/90000
    
SDP Answer 

     v=0
     o=bob 2808844564 2808844565 IN IP4 host.biloxi.example.com
     s=
     c=IN IP4 host.biloxi.example.com
     t= 0 0
     a=rtcp-fb
     m=audio 49170 RTP/SAVPF 99
     a=content:left
     a=rtpmap:99 iLBC/8000
     m=video 51372 RTP/SAVPF 31
     a=content:main
     a=rtpmap:96 H261/90000
     m=video 0 RTP/SAVPF 31
     a=content:right
     a=rtpmap:96 H261/90000
    
]]></artwork>
      </figure>

      <t>Example of a client that supports SRTP-DTLS and SDES connecting
      to a client that supports SRTP-DTLS.</t>

      <figure>
        <artwork align="left" alt="" height="" name="" type="" width=""
                   xml:space="preserve"><![CDATA[

SDP Offer - with support for SRTP-DTLS and SDES signaled

[TODO - populate proper fmtp values for thumbnail size] 
     v=0
     o=alice 2890844526 2890844527 IN IP4 host.atlanta.example.com
     s=
     c=IN IP4 host.atlanta.example.com
     t=0 0
     m=audio 49170 RTP/AVP 99
     a=fingerprint:sha-1 99:41:49:83:4a:97:0e:1f:ef:6d
                         :f7:c9:c7:70:9d:1f:66:79:a8:07
     a=crypto:1 AES_CM_128_HMAC_SHA1_80
       inline:d0RmdmcmVCspeEc3QGZiNWpVLFJhQX1cfHAwJSoj|2^20|1:32
     a=rtpmap:99 iLBC/8000
     m=video 51372 RTP/AVP 31
     a=fingerprint:sha-1 92:81:49:83:4a:23:0a:0f:1f:9d:f7:
                          c0:c7:70:9d:1f:66:79:a8:07
     a=crypto:1 AES_CM_128_HMAC_SHA1_32
       inline:NzB4d1BINUAvLEw6UzF3WSJ+PSdFcGdUJShpX1Zj|2^20|1:32
     a=rtpmap:96 H261/90000
     
    
SDP Answer signaling only SDES 

     v=0
     o=bob 2808844564 2808844565 IN IP4 host.biloxi.example.com
     s=
     c=IN IP4 host.biloxi.example.com
     t=0 0
     m=audio 49172 RTP/AVP 99
     a=crypto:1 AES_CM_128_HMAC_SHA1_80
       inline:d0RmdmcmVCspeEc3QGZiNWpVLFJhQX1cfHAwJSoj|2^20|1:32
     a=rtpmap:99 iLBC/8000
     m=video 51374 RTP/AVP 31
     a=crypto:1 AES_CM_128_HMAC_SHA1_80
       inline:d0RmdmcmVCspeEc3QGZiNWpVLFJhQX1cfHAwJSoj|2^20|1:32
     a=rtpmap:96 H261/90000

]]></artwork>
      </figure>
    </section>

    <section anchor="sec-tasks" title="Tasks">
      
      <t> This section outlines work that needs to be done in various
      specifications to make the proposal here actually happen. </t>

      <t>Tasks:
      <list style="numbers">
        <t>
          Write a draft to add left, right to the SDP content attribute. Add the
          stuff to the W3C API to read and write this on a track.
        </t>

        <t>
          Extend the W3C API to be able to set and read the CSRC list for a PC-Track.
        </t>

        <t>
           Extend the W3C API to be able to read SSRC of last RTP packed received.
        </t>

        <t>
          Write an RTP Header Extension draft to carey MSID. 
        </t>

        <t>
          Fix up MSID draft to align with this proposal. 
        </t>

        <t>
          Add a SDP group to signal multiple m-block as are simulcast of same video content. 
        </t>

        <t>
          Complete the bundle draft. </t>

          <t> Provide guidance for ways to use SDP for reduced glare when adding
          of one way media streams.</t>

      </list>
      </t>
      
    </section>

    <section anchor="sec-sec" title="Security Considerations">
      <t>TBD</t>
    </section>

    <section title="IANA Considerations">
      <t>This document requires no actions from IANA.</t>
    </section>

    <section title="Acknowledgments">
      <t> I would like to thank Suhas Nandakumar, Eric Rescorla, and Lyndsay
      Campbell for help with this draft. </t>
    </section>

    <section title="Open Issues">
      <t> The overall solution is complicated considerably by the fact that
      WebRTC allows a PC-Track to be used in more than one PC-Stream but
      requires only one copy of the RTP data for the track to be sent.  I am not
      aware of any use case for this and think it should be removed. If a
      PC-Track needs to be synchronized with two different things, they should
      all go in one PC-Stream instead of two. </t>
    </section>

    <section anchor="sec-existing" title="Existing SDP">
      <t>The following shows some examples of SDP today that any new system
      needs to be able to receive and work with in a backwards compatible
      way.</t>

      <section anchor="sec-mulenc" title="Multiple Encodings">
        <t>Multiple codecs accepted on same m-line.</t>

        <figure>
          <artwork align="left" alt="" height="" name="" type="" width=""
                   xml:space="preserve"><![CDATA[

SDP Offer 

     v=0
     o=alice 2890844526 2890844527 IN IP4 host.atlanta.example.com
     s=
     c=IN IP4 host.atlanta.example.com
     t=0 0
     m=audio 49170 RTP/AVP 99
     a=rtpmap:99 iLBC/8000
     m=video 51372 RTP/AVP 31 32
     a=rtpmap:31 H261/90000
     a=rtpmap:32 MPV/90000
    
]]></artwork>
        </figure>

        <figure>
          <artwork align="left" alt="" height="" name="" type="" width=""
                   xml:space="preserve"><![CDATA[

SDP Answer 

     v=0
     o=bob 2808844564 2808844565 IN IP4 host.biloxi.example.com
     s=
     c=IN IP4 host.biloxi.example.com
     t=0 0
     m=audio 49172 RTP/AVP 99
     a=rtpmap:99 iLBC/8000
     m=video 51374 RTP/AVP 31 32
     a=rtpmap:31 H261/90000
     a=rtpmap:32 MPV/90000
    
]]></artwork>
        </figure>

        <t>This means that a sender can switch back and forth between H261
        and MVP without any further signaling. The receiver MUST be capable
        of receiving both formats. At any point in time, only one video format is
        sent, thus implying that only one video is meant to be displayed. </t>

      </section>

      <section anchor="sec-fec" title="Forward Error Correction">
        <t>Multiple m-blocks identified with respective "mid" grouped to
        indicate FEC operation.</t>

        <figure>
          <artwork align="left" alt="" height="" name="" type="" width=""
                   xml:space="preserve"><![CDATA[

SDP Offer 

    v=0
    o=ali 1122334455 1122334466 IN IP4 fec.example.com
    s=Raptor RTP FEC Example
    t=0 0
    a=group:FEC-FR S1 R1
    m=video 30000 RTP/AVP 100
    c=IN IP4 233.252.0.1/127
    a=rtpmap:100 MP2T/90000
    a=fec-source-flow: id=0
    a=mid:S1
    m=application 30000 RTP/AVP 110
    c=IN IP4 233.252.0.2/127
    a=rtpmap:110 raptorfec/90000
    a=fmtp:110 raptor-scheme-id=1; Kmax=8192; T=128;
    P=A; repair-window=200000
    a=mid:R1
    
]]></artwork>
        </figure>
      </section>

      <section anchor="sec-samecodecdiffsettings"
               title="Same Video Codec With Different Settings">
        <t>This example shows a single codec,say H.264, signaled with
        different settings.</t>

        <figure>
          <artwork align="left" alt="" height="" name="" type="" width=""
                   xml:space="preserve"><![CDATA[

SDP Offer 

    v=0
    m=video 49170 RTP/AVP 100 99 98
    a=rtpmap:98 H264/90000
    a=fmtp:98 profile-level-id=42A01E; packetization-mode=0;
    sprop-parameter-sets=Z0IACpZTBYmI,aMljiA==
    a=rtpmap:99 H264/90000
    a=fmtp:99 profile-level-id=42A01E; packetization-mode=1;
    sprop-parameter-sets=Z0IACpZTBYmI,aMljiA==
    a=rtpmap:100 H264/90000
    a=fmtp:100 profile-level-id=42A01E; packetization-mode=2;
    sprop-parameter-sets=Z0IACpZTBYmI,aMljiA==;
    sprop-interleaving-depth=45; sprop-deint-buf-req=64000;
    sprop-init-buf-time=102478; deint-buf-cap=128000
]]></artwork>
        </figure>
      </section>

      <section anchor="sec-diffcodecdiffresolutions"
               title="Different Video Codecs With Different Resolutions Formats">
        <t>The SDP below shows various ways to specify resolutions for video
        codecs signaled.</t>

        <figure>
          <artwork align="left" alt="" height="" name="" type="" width=""
                   xml:space="preserve"><![CDATA[

SDP Offer 

    m=video 49170/2 RTP/AVP 31
    a=rtpmap:31 H261/90000
    a=fmtp:31 CIF=2;QCIF=1;D=1
    
    m=video 49170/2 RTP/AVP 98 99
    a=rtpmap:98 jpeg2000/27000000
    a=rtpmap:99 jpeg2000/90000
    a=fmtp:98 sampling=YCbCr-4:2:0;width=128;height=128
    a=fmtp:99 sampling=YCbCr-4:2:0;width=128;height=128
    

]]></artwork>
        </figure>
      </section>

      <section anchor="sec-rtx" title="Retransmission">
        <t><xref target="RFC4588"></xref> retransmission flow example.</t>

        <figure>
          <artwork align="left" alt="" height="" name="" type="" width=""
                   xml:space="preserve"><![CDATA[

SDP Offer 

    v=0
    o=mascha 2980675221 2980675778 IN IP4 host.example.net
    c=IN IP4 192.0.2.0
    a=group:FID 1 2
    a=group:FID 3 4
    m=audio 49170 RTP/AVPF 96
    a=rtpmap:96 AMR/8000
    a=fmtp:96 octet-align=1
    a=rtcp-fb:96 nack
    a=mid:1
    m=audio 49172 RTP/AVPF 97
    a=rtpmap:97 rtx/8000
    a=fmtp:97 apt=96;rtx-time=3000
    a=mid:2
    m=video 49174 RTP/AVPF 98
    a=rtpmap:98 MP4V-ES/90000
    a=rtcp-fb:98 nack
    a=fmtp:98 profile-level-id=8;config=01010000012000884006682C209\
    0A21F
    a=mid:3
    m=video 49176 RTP/AVPF 99
    a=rtpmap:99 rtx/90000
    a=fmtp:99 apt=98;rtx-time=3000
    a=mid:4
]]></artwork>
        </figure>
      </section>

      <section anchor="sec-lipsync" title="Lip Sync Group">
        <t><xref target="RFC5888"></xref> grouping semantics for Lip
        Synchronization between audio and video</t>

        <figure>
          <artwork align="left" alt="" height="" name="" type="" width=""
                   xml:space="preserve"><![CDATA[

SDP Offer 

    v=0
    o=Laura 289083124 289083124 IN IP4 one.example.com
    c=IN IP4 192.0.2.1
    t=0 0
    a=group:LS 1 2
    m=audio 30000 RTP/AVP 0
    a=mid:1
    m=video 30002 RTP/AVP 31
    a=mid:2
]]></artwork>
        </figure>
      </section>

      <section anchor="sec-bfcp" title="BFCP">
        <figure>
          <artwork align="left" alt="" height="" name="" type="" width=""
                   xml:space="preserve"><![CDATA[

SDP Offer 

    m=application 50000 TCP/TLS/BFCP *
    a=setup:passive
    a=connection:new
    a=fingerprint:SHA-1 \
    4A:AD:B9:B1:3F:82:18:3B:54:02:12:DF:3E:5D:49:6B:19:E5:7C:AB
    a=floorctrl:s-only
    a=confid:4321
    a=userid:1234
    a=floorid:1 m-stream:10
    a=floorid:2 m-stream:11
    m=audio 50002 RTP/AVP 0
    a=label:10
    m=video 50004 RTP/AVP 31
    a=label:11
  
]]></artwork>
        </figure>

        <t>Thought not yet defined, it's easy to imaging that BFCP over SCTP
        over DTLS might look like</t>

        <figure>
          <artwork align="left" alt="" height="" name="" type="" width=""
                   xml:space="preserve"><![CDATA[    m=application 50000 TCP/TLS/BFCP *
    a=setup:passive
    a=connection:new
    a=fingerprint:SHA-1 \
    4A:AD:B9:B1:3F:82:18:3B:54:02:12:DF:3E:5D:49:6B:19:E5:7C:AB
    a=floorctrl:s-only
    a=confid:4321
    a=userid:1234
    a=floorid:1 m-stream:10
    a=floorid:2 m-stream:11
    m=audio 50002 RTP/AVP 0
    a=label:10
    m=video 50004 RTP/AVP 31
    a=label:11
    
]]></artwork>
        </figure>
      </section>

      <section anchor="sec-llc" title="Layered coding dependency">
        <t><xref target="RFC5583"></xref> "depend" attribute is shown here to
        indicate dependency between layers represented by the individual
        m-blocks</t>

        <figure>
          <artwork align="left" alt="" height="" name="" type="" width=""
                   xml:space="preserve"><![CDATA[

SDP Offer 

    a=group:DDP L1 L2 L3
    m=video 20000 RTP/AVP 96 97 98
    a=rtpmap:96 H264/90000
    a=fmtp:96 profile-level-id=4de00a; packetization-mode=0;
    mst-mode=NI-T; sprop-parameter-sets={sps0},{pps0};
    a=rtpmap:97 H264/90000
    a=fmtp:97 profile-level-id=4de00a; packetization-mode=1;
    mst-mode=NI-TC; sprop-parameter-sets={sps0},{pps0};
    a=rtpmap:98 H264/90000
    a=fmtp:98 profile-level-id=4de00a; packetization-mode=2;
    mst-mode=I-C; init-buf-time=156320;
    sprop-parameter-sets={sps0},{pps0};
    a=mid:L1
    m=video 20002 RTP/AVP 99 100
    a=rtpmap:99 H264-SVC/90000
    a=fmtp:99 profile-level-id=53000c; packetization-mode=1;
    mst-mode=NI-T; sprop-parameter-sets={sps1},{pps1};
    a=rtpmap:100 H264-SVC/90000
    a=fmtp:100 profile-level-id=53000c; packetization-mode=2;
    mst-mode=I-C; sprop-parameter-sets={sps1},{pps1};
    a=mid:L2
    a=depend:99 lay L1:96,97; 100 lay L1:98
    m=video 20004 RTP/AVP 101
    a=rtpmap:101 H264-SVC/90000
    a=fmtp:101 profile-level-id=53001F; packetization-mode=1;
    mst-mode=NI-T; sprop-parameter-sets={sps2},{pps2};
    a=mid:L3
    a=depend:101 lay L1:96,97 L2:99
]]></artwork>
        </figure>
      </section>

      <section anchor="sec-ssrc" title="SSRC Signaling">
        <figure>
          <artwork align="left" alt="" height="" name="" type="" width=""
                   xml:space="preserve"><![CDATA[

SDP Offer 

    m=video 49170 RTP/AVP 96
    a=rtpmap:96 H264/90000
    a=ssrc:12345 cname:user@example.com
    a=ssrc:67890 cname:user@example.com
]]></artwork>
        </figure>

        <t>This indicates what the sender will send. It's at best a guess
        because in the case of SSRC collision, it's all wrong. It does not
        allow one to reject a stream. It does not mean that both streams are
        displayed at the same time.</t>
      </section>

      <section anchor="sec-content" title="Content Signaling">
        <t><xref target="RFC4796"></xref> "content" attribute is used to
        specify the semantics of content represented by the video streams.</t>

        <figure>
          <artwork align="left" alt="" height="" name="" type="" width=""
                   xml:space="preserve"><![CDATA[

SDP Offer 
 v=0
    o=Alice 292742730 29277831 IN IP4 131.163.72.4
    s=Second lecture from information technology
    c=IN IP4 131.164.74.2
    t=0 0
    m=video 52886 RTP/AVP 31
    a=rtpmap:31 H261/9000
    a=content:slides
    m=video 53334 RTP/AVP 31
    a=rtpmap:31 H261/9000
    a=content:speaker
    m=video 54132 RTP/AVP 31
    a=rtpmap:31 H261/9000
    a=content:sl
]]></artwork>
        </figure>
      </section>
    </section>

  </middle>

  <back>
    <references title="Normative References">
      <reference anchor="RFC3264">
        <front>
          <title>An Offer/Answer Model with Session Description Protocol
          (SDP)</title>

          <author fullname="J. Rosenberg" initials="J." surname="Rosenberg">
            <organization></organization>
          </author>

          <author fullname="H. Schulzrinne" initials="H."
                  surname="Schulzrinne">
            <organization></organization>
          </author>

          <date month="June" year="2002" />
        </front>

        <seriesInfo name="RFC" value="3264" />

        <format octets="60854"
                target="http://www.rfc-editor.org/rfc/rfc3264.txt" type="TXT" />
      </reference>

      <reference anchor="RFC2119">
        <front>
          <title abbrev="RFC Key Words">Key words for use in RFCs to Indicate
          Requirement Levels</title>

          <author fullname="Scott Bradner" initials="S." surname="Bradner">
            <organization>Harvard University</organization>

            <address>
              <postal>
                <street>1350 Mass. Ave.</street>

                <street>Cambridge</street>

                <street>MA 02138</street>
              </postal>

              <phone>- +1 617 495 3864</phone>

              <email>sob@harvard.edu</email>
            </address>
          </author>

          <date month="March" year="1997" />

          <area>General</area>

          <keyword>keyword</keyword>
        </front>

        <seriesInfo name="BCP" value="14" />

        <seriesInfo name="RFC" value="2119" />

        <format octets="4723"
                target="http://www.rfc-editor.org/rfc/rfc2119.txt" type="TXT" />

        <format octets="17491"
                target="http://xml.resource.org/public/rfc/html/rfc2119.html"
                type="HTML" />

        <format octets="5777"
                target="http://xml.resource.org/public/rfc/xml/rfc2119.xml"
                type="XML" />
      </reference>

      <reference anchor="RFC4566">
        <front>
          <title>SDP: Session Description Protocol</title>

          <author fullname="M. Handley" initials="M." surname="Handley">
            <organization></organization>
          </author>

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

          <author fullname="C. Perkins" initials="C." surname="Perkins">
            <organization></organization>
          </author>

          <date month="July" year="2006" />
        </front>

        <seriesInfo name="RFC" value="4566" />

        <format octets="108820"
                target="http://www.rfc-editor.org/rfc/rfc4566.txt" type="TXT" />
      </reference>
    </references>

    <references title="Informative References">
      <reference anchor="webrtc-api">
        <front>
          <title>WebRTC 1.0: Real-time Communication Between Browsers</title>

          <author fullname="W3C editors"
                  surname="Bergkvist, Burnett, Jennings, Narayanan">
            <organization>W3C</organization>
          </author>

          <date day="4" month="October" year="2011" />
        </front>

        <annotation>Available at
        http://dev.w3.org/2011/webrtc/editor/webrtc.html</annotation>
      </reference>

      <reference anchor="I-D.ietf-rtcweb-use-cases-and-requirements">
        <front>
          <title>Web Real-Time Communication Use-cases and
          Requirements</title>

          <author fullname="Christer Holmberg" initials="C" surname="Holmberg">
            <organization></organization>
          </author>

          <author fullname="Stefan Hakansson" initials="S" surname="Hakansson">
            <organization></organization>
          </author>

          <author fullname="Goran Eriksson" initials="G" surname="Eriksson">
            <organization></organization>
          </author>

          <date day="4" month="October" year="2011" />

          <abstract>
            <t>This document describes web based real-time communication
            use-cases. Based on the use-cases, the document also derives
            requirements related to the browser, and the API used by web
            applications to request and control media stream services provided
            by the browser.</t>
          </abstract>
        </front>

        <seriesInfo name="Internet-Draft"
                    value="draft-ietf-rtcweb-use-cases-and-requirements-10" />

        <format target="http://www.ietf.org/internet-drafts/draft-ietf-rtcweb-use-cases-and-requirements-10.txt"
                type="TXT" />
      </reference>

      <reference anchor="RFC3550">
        <front>
          <title>RTP: A Transport Protocol for Real-Time Applications</title>

          <author fullname="H. Schulzrinne" initials="H."
                  surname="Schulzrinne">
            <organization></organization>
          </author>

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

          <author fullname="R. Frederick" initials="R." surname="Frederick">
            <organization></organization>
          </author>

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

          <date month="July" year="2003" />
        </front>

        <seriesInfo name="STD" value="64" />

        <seriesInfo name="RFC" value="3550" />

        <format octets="259985"
                target="http://www.rfc-editor.org/rfc/rfc3550.txt" type="TXT" />

        <format octets="630740"
                target="http://www.rfc-editor.org/rfc/rfc3550.ps" type="PS" />

        <format octets="504117"
                target="http://www.rfc-editor.org/rfc/rfc3550.pdf" type="PDF" />
      </reference>

      <reference anchor="RFC3261">
        <front>
          <title>SIP: Session Initiation Protocol</title>

          <author fullname="J. Rosenberg" initials="J." surname="Rosenberg">
            <organization></organization>
          </author>

          <author fullname="H. Schulzrinne" initials="H."
                  surname="Schulzrinne">
            <organization></organization>
          </author>

          <author fullname="G. Camarillo" initials="G." surname="Camarillo">
            <organization></organization>
          </author>

          <author fullname="A. Johnston" initials="A." surname="Johnston">
            <organization></organization>
          </author>

          <author fullname="J. Peterson" initials="J." surname="Peterson">
            <organization></organization>
          </author>

          <author fullname="R. Sparks" initials="R." surname="Sparks">
            <organization></organization>
          </author>

          <author fullname="M. Handley" initials="M." surname="Handley">
            <organization></organization>
          </author>

          <author fullname="E. Schooler" initials="E." surname="Schooler">
            <organization></organization>
          </author>

          <date month="June" year="2002" />

          <abstract>
            <t>This document describes Session Initiation Protocol (SIP), an
            application-layer control (signaling) protocol for creating,
            modifying, and terminating sessions with one or more participants.
            These sessions include Internet telephone calls, multimedia
            distribution, and multimedia conferences. [STANDARDS-TRACK]</t>
          </abstract>
        </front>

        <seriesInfo name="RFC" value="3261" />

        <format octets="647976"
                target="http://www.rfc-editor.org/rfc/rfc3261.txt" type="TXT" />
      </reference>

      <reference anchor="RFC5245">
        <front>
          <title>Interactive Connectivity Establishment (ICE): A Protocol for
          Network Address Translator (NAT) Traversal for Offer/Answer
          Protocols</title>

          <author fullname="J. Rosenberg" initials="J." surname="Rosenberg">
            <organization></organization>
          </author>

          <date month="April" year="2010" />

          <abstract>
            <t>This document describes a protocol for Network Address
            Translator (NAT) traversal for UDP-based multimedia sessions
            established with the offer/answer model. This protocol is called
            Interactive Connectivity Establishment (ICE). ICE makes use of the
            Session Traversal Utilities for NAT (STUN) protocol and its
            extension, Traversal Using Relay NAT (TURN). ICE can be used by
            any protocol utilizing the offer/answer model, such as the Session
            Initiation Protocol (SIP). [STANDARDS-TRACK]</t>
          </abstract>
        </front>

        <seriesInfo name="RFC" value="5245" />

        <format octets="285120"
                target="http://www.rfc-editor.org/rfc/rfc5245.txt" type="TXT" />
      </reference>

      <reference anchor="RFC4588">
        <front>
          <title>RTP Retransmission Payload Format</title>

          <author fullname="J. Rey" initials="J." surname="Rey">
            <organization></organization>
          </author>

          <author fullname="D. Leon" initials="D." surname="Leon">
            <organization></organization>
          </author>

          <author fullname="A. Miyazaki" initials="A." surname="Miyazaki">
            <organization></organization>
          </author>

          <author fullname="V. Varsa" initials="V." surname="Varsa">
            <organization></organization>
          </author>

          <author fullname="R. Hakenberg" initials="R." surname="Hakenberg">
            <organization></organization>
          </author>

          <date month="July" year="2006" />

          <abstract>
            <t>RTP retransmission is an effective packet loss recovery
            technique for real-time applications with relaxed delay bounds.
            This document describes an RTP payload format for performing
            retransmissions. Retransmitted RTP packets are sent in a separate
            stream from the original RTP stream. It is assumed that feedback
            from receivers to senders is available. In particular, it is
            assumed that Real-time Transport Control Protocol (RTCP) feedback
            as defined in the extended RTP profile for RTCP-based feedback
            (denoted RTP/AVPF) is available in this memo.
            [STANDARDS-TRACK]</t>
          </abstract>
        </front>

        <seriesInfo name="RFC" value="4588" />

        <format octets="76630"
                target="http://www.rfc-editor.org/rfc/rfc4588.txt" type="TXT" />
      </reference>

      <reference anchor="RFC5888">
        <front>
          <title>The Session Description Protocol (SDP) Grouping
          Framework</title>

          <author fullname="G. Camarillo" initials="G." surname="Camarillo">
            <organization></organization>
          </author>

          <author fullname="H. Schulzrinne" initials="H."
                  surname="Schulzrinne">
            <organization></organization>
          </author>

          <date month="June" year="2010" />

          <abstract>
            <t>In this specification, we define a framework to group "m" lines
            in the Session Description Protocol (SDP) for different purposes.
            This framework uses the "group" and "mid" SDP attributes, both of
            which are defined in this specification. Additionally, we specify
            how to use the framework for two different purposes: for lip
            synchronization and for receiving a media flow consisting of
            several media streams on different transport addresses. This
            document obsoletes RFC 3388. [STANDARDS-TRACK]</t>
          </abstract>
        </front>

        <seriesInfo name="RFC" value="5888" />

        <format octets="43924"
                target="http://www.rfc-editor.org/rfc/rfc5888.txt" type="TXT" />
      </reference>

      <reference anchor="RFC5583">
        <front>
          <title>Signaling Media Decoding Dependency in the Session
          Description Protocol (SDP)</title>

          <author fullname="T. Schierl" initials="T." surname="Schierl">
            <organization></organization>
          </author>

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

          <date month="July" year="2009" />

          <abstract>
            <t>This memo defines semantics that allow for signaling the
            decoding dependency of different media descriptions with the same
            media type in the Session Description Protocol (SDP). This is
            required, for example, if media data is separated and transported
            in different network streams as a result of the use of a layered
            or multiple descriptive media coding process.</t><t> A
            new grouping type "DDP" -- decoding dependency -- is defined, to
            be used in conjunction with RFC 3388 entitled "Grouping of Media
            Lines in the Session Description Protocol". In addition, an
            attribute is specified describing the relationship of the media
            streams in a "DDP" group indicated by media identification
            attribute(s) and media format description(s).
            [STANDARDS-TRACK]</t>
          </abstract>
        </front>

        <seriesInfo name="RFC" value="5583" />

        <format octets="40214"
                target="http://www.rfc-editor.org/rfc/rfc5583.txt" type="TXT" />
      </reference>

      <reference anchor="RFC4796">
        <front>
          <title>The Session Description Protocol (SDP) Content
          Attribute</title>

          <author fullname="J. Hautakorpi" initials="J." surname="Hautakorpi">
            <organization></organization>
          </author>

          <author fullname="G. Camarillo" initials="G." surname="Camarillo">
            <organization></organization>
          </author>

          <date month="February" year="2007" />

          <abstract>
            <t>This document defines a new Session Description Protocol (SDP)
            media- level attribute, 'content'. The 'content' attribute defines
            the content of the media stream to a more detailed level than the
            media description line. The sender of an SDP session description
            can attach the 'content' attribute to one or more media streams.
            The receiving application can then treat each media stream
            differently (e.g., show it on a big or small screen) based on its
            content. [STANDARDS-TRACK]</t>
          </abstract>
        </front>

        <seriesInfo name="RFC" value="4796" />

        <format octets="22886"
                target="http://www.rfc-editor.org/rfc/rfc4796.txt" type="TXT" />
      </reference>
    </references>
  </back>
</rfc>

PAFTECH AB 2003-20262026-04-23 14:22:35