<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE rfc SYSTEM "rfc2629.dtd">

<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>

<rfc category="std" ipr="trust200902" docName="draft-ietf-bfcpbis-rfc4583bis-14" obsoletes="4583">

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

<front>
  <title abbrev="BFCP">Session Description Protocol (SDP) Format for Binary Floor Control Protocol (BFCP) Streams</title>

  <author initials="G." surname="Camarillo" fullname="Gonzalo Camarillo">
    <organization>Ericsson</organization>
    <address>
      <postal>
        <street>Hirsalantie 11</street>
	<city>FI-02420 Jorvas</city>
	<country>Finland</country>
      </postal>
      <email>Gonzalo.Camarillo@ericsson.com</email>
    </address>
  </author>

  <author fullname="Tom Kristensen" initials="T." surname="Kristensen">
    <organization>Cisco</organization>
    <address>
      <postal>
        <street>Philip Pedersens vei 1</street>
        <city>NO-1366 Lysaker</city>
	<country>Norway</country>
      </postal>
      <email>tomkrist@cisco.com, tomkri@ifi.uio.no</email>
    </address>
  </author>

  <author fullname="Paul E. Jones" initials="P.E." surname="Jones">
    <organization>Cisco</organization>
    <address>
      <postal>
        <street>7025 Kit Creek Rd.</street>
        <city>Research Triangle Park, NC 27709</city>
        <country>USA</country>
      </postal>
      <email>paulej@packetizer.com</email>
    </address>
  </author>

  <date/>

  <area>Real-time Applications and Infrastructure</area>
  <workgroup>BFCPbis Working Group</workgroup>

  <keyword>floor control</keyword>
  <keyword>BFCP</keyword>
  <keyword>SDP</keyword>

  <abstract>
    <t>This document specifies how to describe Binary Floor Control Protocol (BFCP) streams in Session Description Protocol (SDP) descriptions. User agents using the offer/answer model to establish BFCP streams use this format in their offers and answers.</t>
    <t>This document obsoletes RFC 4583. Changes from RFC 4583 are summarized in Section 14.</t>
    <!--                                 Ensure correct section #, as xref is not allowed in abstract -->
  </abstract>
</front>

<middle>
  <section title="Introduction">
    <t>As discussed in the BFCP (Binary Floor Control Protocol) specification <xref target="I-D.ietf-bfcpbis-rfc4582bis"/>, a given BFCP client needs a set of data in order to establish a BFCP connection to a floor control server. This data includes the transport address of the server, the conference identifier, and the user identifier.</t>
    <t>One way for clients to obtain this information is to use an SDP offer/answer <xref target="RFC3264"/> exchange. This document specifies how to encode this information in the SDP session descriptions that are part of such an offer/answer exchange.</t>
    <t>User agents typically use the offer/answer model to establish a number of media streams of different types. Following this model, a BFCP connection is described as any other media stream by using an SDP 'm' line, possibly followed by a number of attributes encoded in 'a' lines.</t>
  </section>

  <section title="Terminology" anchor="sec:terminology">
    <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14, <xref target="RFC2119">RFC 2119</xref> and indicate requirement levels for compliant implementations.</t>
  </section>

  <section title="Fields in the 'm' Line" anchor="sec-m-line">
    <t>This section describes how to generate an 'm' line for a BFCP stream.</t>
    <t>According to the SDP specification <xref target="RFC4566"/>, the 'm' line format is the following:</t>
    <t><list style="hanging">
        <t><![CDATA[m=<media> <port> <proto> <fmt> ...]]></t>
    </list></t>
    <t>The media field MUST have a value of "application".</t>
    <t>The port field is set depending on the value of the proto field, as explained below.  A port field value of zero has the standard SDP meaning (i.e., rejection of the media stream) regardless of the proto field.</t>
    <t><list style="hanging">
        <t>When TCP is used as the transport, the port field is set following the rules in <xref target="RFC4145"/>. Depending on the value of the 'setup' attribute (discussed in <xref target="sec-tcp-connection"/>), the port field contains the port to which the remote endpoint will direct BFCP messages or is irrelevant (i.e., the endpoint will initiate the connection towards the remote endpoint) and should be set to a value of 9, which is the discard port.</t>
        <t>When UDP is used as the transport, the port field contains the port to which the remote endpoint will direct BFCP messages regardless of the value of the 'setup' attribute.</t>
    </list></t>
    <t>This document defines four values for the proto field: TCP/BFCP, TCP/TLS/BFCP, UDP/BFCP, and UDP/TLS/BFCP. TCP/BFCP is used when BFCP runs directly on top of TCP, TCP/TLS/BFCP is used when BFCP runs on top of TLS, which in turn runs on top of TCP. Similarly, UDP/BFCP is used when BFCP runs directly on top of UDP, and UDP/TLS/BFCP is used when BFCP runs on top of DTLS <xref target="RFC6347"/>, which in turn runs on top of UDP.</t>
    <t>The fmt (format) list is not applicable to BFCP. The fmt list of 'm' lines in the case of any proto field value related to BFCP SHOULD contain a single "*" character. If the the fmt list contains any other value it is ignored.</t>
    <t>The following is an example of an 'm' line for a BFCP connection:</t>
    <figure>
      <artwork>
   m=application 50000 TCP/TLS/BFCP *
      </artwork>
    </figure>
  </section>

  <section title="Floor Control Server Determination" anchor="sec:server-determination">
    <t>When two endpoints establish a BFCP stream, they need to determine which of them acts as a floor control server. In the most common scenario, a client establishes a BFCP stream with a conference server that acts as the floor control server. Floor control server determination is straight forward because one endpoint can only act as a client and the other can only act as a floor control server.</t>
    <t>However, there are scenarios where both endpoints could act as a floor control server. For example, in a two-party session that involves an audio stream and a shared whiteboard, the endpoints need to decide which party will be acting as the floor control server.</t>
    <t>Furthermore, there are situations where both the offerer and the answerer act as both clients and floor control servers in the same session. For example, in a two-party session that involves an audio stream and a shared whiteboard, one party acts as the floor control server for the audio stream and the other acts as the floor control server for the shared whiteboard.</t>
    <section title="SDP 'floorctrl' Attribute" anchor="sdp-floorctrl-attr">
      <t>This document defines the 'floorctrl' SDP media-level attribute to perform floor control server determination. Its Augmented BNF syntax <xref target="RFC5234"/> is:</t>
      <figure>
        <artwork type='abnf'>
floor-control-attribute  = "a=floorctrl:" role *(SP role)
role                     = "c-only" / "s-only" / "c-s"
        </artwork>
      </figure>

      <t>The offerer includes this attribute to state all the roles it would be willing to perform:</t>
      <t><list style="hanging">
          <t hangText="c-only:">The offerer would be willing to act as a floor control client only.</t>
          <t hangText="s-only:">The offerer would be willing to act as a floor control server only.</t>
          <t hangText="c-s:">The offerer would be willing to act both as a floor control client and as a floor control server.</t>
      </list></t>
      <t>If an SDP media description in an offer contains a 'floorctrl' attribute, the answerer accepting that media MUST include a 'floorctrl' attribute in the corresponding media description of the answer. The answerer includes this attribute to state which role the answerer will perform. That is, the answerer chooses one of the roles the offerer is willing to perform and generates an answer with the corresponding role for the answerer. <xref target="tab-roles"/> shows the corresponding roles for an answerer, depending on the offerer's role.</t>

      <texttable title="Roles" anchor="tab-roles">
        <ttcol align="center">Offerer</ttcol>
        <ttcol align="center">Answerer</ttcol>

        <c>c-only</c>
        <c>s-only</c>

        <c>s-only</c>
        <c>c-only</c>

        <c>c-s</c>
        <c>c-s</c>
      </texttable>

      <t>The following are the descriptions of the roles when they are chosen by an answerer:</t>
      <t><list style="hanging">
          <t hangText="c-only:">The answerer will act as a floor control client. Consequently, the offerer will act as a floor control server.</t>
          <t hangText="s-only:">The answerer will act as a floor control server. Consequently, the offerer will act as a floor control client.</t>
          <t hangText="c-s:">The answerer will act both as a floor control client and as a floor control server. Consequently, the offerer will also act both as a floor control client and as a floor control server.</t>
      </list></t>
      <t>Endpoints that use the offer/answer model to establish BFCP connections MUST support the 'floorctrl' attribute. A floor control server acting as an offerer or as an answerer SHOULD include this attribute in its session descriptions.</t>
      <t>If the 'floorctrl' attribute is not used in an offer/answer exchange, by default the offerer and the answerer will act as a floor control client and as a floor control server, respectively.</t>
      <t>The following is an example of a 'floorctrl' attribute in an offer. When this attribute appears in an answer, it only carries one role:</t>
      <figure>
        <artwork>
          a=floorctrl:c-only s-only c-s
        </artwork>
      </figure>
    </section>
  </section>

  <section title="SDP 'confid' and 'userid' Attributes" anchor="sec-confid-userid-attr">
    <t>This document defines the 'confid' and the 'userid' SDP media-level attributes. These attributes are used by a floor control server to provide a client with a conference ID and a user ID, respectively. Their Augmented BNF syntax <xref target="RFC5234"/> is:</t>
    <figure>
      <artwork type='abnf'>
confid-attribute      = "a=confid:" conference-id
conference-id         = token
userid-attribute      = "a=userid:" user-id
user-id               = token

token-char            = %x21 / %x23-27 / %x2A-2B / %x2D-2E / %x30-39
                        / %x41-5A / %x5E-7E
token                 = 1*(token-char)
      </artwork>
    </figure>
    <t>The 'confid' and the 'userid' attributes carry the decimal integer representation of a conference ID and a user ID, respectively.</t>
    <t>The token-char and token elements are defined in <xref target="RFC4566"/> but included here to provide support for the implementor of this SDP feature.</t>
    <t>Endpoints that use the offer/answer model to establish BFCP connections MUST support the 'confid' and the 'userid' attributes. A floor control server acting as an offerer or as an answerer MUST include these attributes in its session descriptions.</t>
  </section>

  <section title="SDP 'floorid' Attribute" anchor="sec-floorid-association">
    <t>This document defines the 'floorid' SDP media-level attribute. This attribute is used to provide an association between media streams and floors. Its Augmented BNF syntax <xref target="RFC5234"/> is:</t>
    <figure>
      <artwork type='abnf'>
floor-id-attribute = "a=floorid:" token [" mstrm:" token *(SP token)]
      </artwork>
    </figure>
    <t>The 'floorid' attribute is used in the SDP media description for BFCP media. It defines a floor identifier and, possibly, associates it with one or more media streams. The token representing the floor ID is the integer representation of the Floor ID to be used in BFCP. The token representing the media stream is a pointer to the media stream, which is identified by an SDP label attribute <xref target="RFC4574"/>.</t>
    <t>Endpoints that use the offer/answer model to establish BFCP connections MUST support the 'floorid' and the 'label' attributes. A floor control server acting as an offerer or as an answerer MUST include these attributes in its session descriptions.</t>
    <t><list style="empty">
        <t>Note: In <xref target="RFC4583"/> 'm-stream' was erroneously used in <xref target="sec-example"/>. Although the example was non-normative, it is implemented by some vendors and occurs in cases where the endpoint is willing to act as an server. Therefore, it is RECOMMENDED to support parsing and interpreting 'm-stream' the same way as 'mstrm' when receiving.</t>
    </list></t>
  </section>

  <section title="SDP 'bfcpver' Attribute" anchor="sec-bfcp-version">
    <t>This document defines the 'bfcpver' SDP media-level attribute. This attribute is used for BFCP version negotiation. Its Augmented BNF syntax <xref target="RFC5234"/> is:</t>
    <figure>
      <artwork type='abnf'>
bfcp-version-attribute = "a=bfcpver:" bfcp-version *(SP bfcp-version)
bfcp-version           = token
      </artwork>
    </figure>
    <t>The 'bfcpver' attribute defines the list of the versions of BFCP supported by the endpoint. Tokens representing versions MUST be integers matching the "Version" field that would be presented in the BFCP COMMON-HEADER <xref target="I-D.ietf-bfcpbis-rfc4582bis"/>. The version of BFCP to be used will then be confirmed with a BFCP-level Hello/HelloAck.</t>
    <t>Endpoints that use the offer/answer model to establish BFCP connections SHOULD support the 'bfcpver' attribute. A floor control server acting as an offerer or as an answerer SHOULD include this attribute in its session descriptions.   However, endpoints that support RFC XXXX, and not only the <xref target="RFC4583"/> subset, are REQUIRED to support and, when acting as a floor control server, to use the 'bfcpver' attribute.</t>
    <t>If a 'bfcpver' attribute is not present, default values are inferred from the transport specified in the 'm' line (<xref target="sec-m-line"/>). In accordance with definition of the Version field in <xref target="I-D.ietf-bfcpbis-rfc4582bis"/>, when used over a reliable transport the default value is "1", and when used over an unreliable transport the default value is "2".</t>
  </section>

  <section title="BFCP Connection Management" anchor="sec-bfcp-connection">
    <t>BFCP connections can use TCP or UDP as the underlying transport. BFCP entities exchanging BFCP messages over UDP direct the BFCP messages to the peer side connection address and port provided in the SDP 'm' line. TCP connection management is more complicated and is described below.</t>
    <section title="TCP Connection Management" anchor="sec-tcp-connection">
      <t>The management of the TCP connection used to transport BFCP is performed using the 'setup' and 'connection' attributes, as defined in <xref target="RFC4145"/>.</t>
      <t>The 'setup' attribute indicates which of the endpoints (client or floor control server) initiates the TCP connection. The 'connection' attribute handles TCP connection reestablishment.</t>
      <t>The BFCP specification <xref target="I-D.ietf-bfcpbis-rfc4582bis"/> describes a number of situations when the TCP connection between a client and the floor control server needs to be reestablished. However, that specification does not describe the reestablishment process because this process depends on how the connection was established in the first place. BFCP entities using the offer/answer model follow the following rules.</t>
      <t>When the existing TCP connection is closed and reestablished following the rules in <xref target="I-D.ietf-bfcpbis-rfc4582bis"/>, the client MUST generate an offer towards the floor control server in order to reestablish the connection. If a TCP connection cannot deliver a BFCP message and times out, the entity that attempted to send the message (i.e., the one that detected the TCP timeout) MUST generate an offer in order to reestablish the TCP connection.</t>
      <t>Endpoints that use the offer/answer model to establish TCP connections MUST support the 'setup' and 'connection' attributes.</t>
    </section>
  </section>

  <section title="Authentication" anchor="sec-authentication">
    <t>When a BFCP connection is established using the offer/answer model, it is assumed that the offerer and the answerer authenticate each other using some mechanism. TLS/DTLS is the preferred mechanism, but other mechanisms are possible and outside the scope of this document.  Once this mutual authentication takes place, all the offerer and the answerer need to ensure is that the entity they are receiving BFCP messages from is the same as the one that generated the previous offer or answer.</t>
    <t>When SDP is used to perform an offer/answer exchange, the initial mutual authentication takes place at the SIP level. Additionally, SIP uses S/MIME <xref target="RFC5750"/> to provide an integrity-protected channel with optional confidentiality for the offer/answer exchange. BFCP takes advantage of this integrity-protected offer/answer exchange to perform authentication. Within the offer/answer exchange, the offerer and answerer exchange the fingerprints of their self-signed certificates. These self-signed certificates are then used to establish the TLS/DTLS connection that will carry BFCP traffic between the offerer and the answerer.</t>
    <t>BFCP clients and floor control servers follow the rules in <xref target="RFC4572"/> regarding certificate choice and presentation. This implies that unless a 'fingerprint' attribute is included in the session description, the certificate provided at the TLS-/DTLS-level MUST either be directly signed by one of the other party's trust anchors or be validated using a certification path that terminates at one of the other party's trust anchors <xref target="RFC5280"/>. Endpoints that use the offer/answer model to establish BFCP connections MUST support the 'fingerprint' attribute and MUST include it in their session descriptions.</t>
    <t>When TLS is used with TCP, once the underlying connection is established, the answerer which may be the client or the floor control server acts as the TLS server regardless of its role (passive or active) in the TCP establishment procedure.  If the TCP connection is lost, the active endpoint is responsible for re-establishing the TCP connection. Unless a new TLS session is negotiated, subsequent SDP offers and answers will not impact the previously negotiated TLS roles.</t>
    <t>When DTLS is used with UDP, the requirements specified in Section 5 of <xref target="RFC5763"/> MUST be followed.</t>
    <t><list style="empty">
        <t>Informational note: How to determine which endpoint initiates the TLS/DTLS association depends on the selected underlying transport. It was decided to keep the original semantics in <xref target="RFC4583"/> for TCP to retain backwards compatibility. When using UDP, the procedure above was preferred since it adheres to <xref target="RFC5763"/> as used for DTLS-SRTP, it does not overload offer/answer semantics, and it works for offerless INVITE in scenarios with B2BUAs.</t>
    </list></t>
  </section>

  <section title="SDP Offer/Answer Procedures" anchor="oa-offer-answer-proc">
    <t>This section defines the SDP offer/answer <xref target="RFC3264"/> procedures for negotiating and establishing a BFCP connection. The generic procedures for DTLS are defined in <xref target="RFC5763"/>, the specific BFCP parts are specified here.</t>
    <t>If the 'm' line 'proto' value is 'TCP/TLS/BFCP' or 'UDP/TLS/BFCP', each endpoint MUST provide a certificate fingerprint, using the SDP 'fingerprint' attribute <xref target="RFC4145"/>, if the endpoint supports, and is willing to use, a cipher suite with an associated certificate.</t>
    <t>The authentication certificates are interpreted and validated as defined in <xref target="RFC4572"/>.  Self-signed certificates can be used securely, provided that the integrity of the SDP description is assured as defined in <xref target="RFC4572"/>.</t>
    <t><list style="empty">
      <t>Note: The procedures apply to a specific 'm' line describing a BFCP connection.  If an offer or answer contains multiple 'm' lines describing BFCP connections, the procedures are applied separately to each 'm' line.</t>
    </list></t>
    <t>Media multiplexing as defined in BUNDLE <xref target="I-D.ietf-mmusic-sdp-bundle-negotiation"/> is NOT RECOMMENDED for BFCP 'm' lines following this specification.</t>
    <t><list style="empty">
      <t>Informational note: The use of source-specific parameters in SDP, as defined in <xref target="RFC5576"/>, is not applicable to BFCP.</t>
    </list></t>
    
    <section title="Generating the Initial SDP Offer" anchor="oa-gen-initial-offer">
      <t>When the offerer creates an initial offer, the offerer:</t>
      <t><list style="symbols">
          <t>MUST, if the 'm' line proto value is 'TCP/BFCP', 'TCP/TLS/BFCP' or 'UDP/TLS/BFCP', associate an SDP setup attribute, with an 'actpass' value, with the 'm' line;</t>
          <t>MUST, if the 'm' line proto value is 'TCP/BFCP' or 'TCP/TLS/BFCP', associate an SDP 'connection' attribute, with a 'new' value, with the 'm' line; and</t>
      </list></t>
      <t>In addition, if the offerer acts as the floor control server, the offerer:</t>
      <t><list style="symbols">
          <t>SHOULD associate an SDP 'floorctrl' attribute defined in <xref target="sdp-floorctrl-attr"/>, with the 'm' line;</t>
          <t>MUST associate an SDP 'confid' attribute defined in <xref target="sec-confid-userid-attr"/>, with the 'm' line;</t>
          <t>MUST associate an SDP 'userid' attribute defined in <xref target="sec-confid-userid-attr"/>, with the 'm' line;</t>
          <t>MUST associate an SDP 'floorid' attribute defined in <xref target="sec-floorid-association"/>, with the 'm' line;</t>
          <t>MUST associate an SDP 'label' attribute as described in <xref target="sec-floorid-association"/>, with the 'm' line; and</t>
          <t>SHOULD, if it supports only the RFC 4583 subset and MUST, if it supports RFC XXXX associate an SDP 'bfcpver' attribute defined in <xref target="sec-bfcp-version"/>, with the 'm' line.</t>
      </list></t>
    </section>

    <section title="Generating the SDP Answer" anchor="oa-gen-answer">
      <t>When the answerer receives an offer, which contains an 'm' line describing a BFCP connection, if the answerer accepts the 'm' line it:</t>
      <t><list style="symbols">
          <t>MUST insert a corresponding 'm' line in the answer, with an identical 'm' line proto value <xref target="RFC3264"/>; and</t>
          <t>MUST, if the 'm' line proto value is 'TCP/BFCP', 'TCP/TLS/BFCP' or 'UDP/TLS/BFCP', associate an SDP setup attribute, with an 'active' or 'passive' value, with the 'm' line;</t>
      </list></t>
      <t>In addition, if the answerer acts as the floor control server, the answerer:</t>
      <t><list style="symbols">
          <t>MUST, if the offer contains a 'floorctrl' attribute or else it SHOULD associate an SDP 'floorctrl' attribute defined in <xref target="sdp-floorctrl-attr"/>, with the 'm' line;</t>
          <t>MUST associate an SDP 'confid' attribute defined in <xref target="sec-confid-userid-attr"/>, with the 'm' line;</t>
          <t>MUST associate an SDP 'userid' attribute defined in <xref target="sec-confid-userid-attr"/>, with the 'm' line;</t>
          <t>MUST associate an SDP 'floorid' attribute defined in <xref target="sec-floorid-association"/>, with the 'm' line; and</t>
          <t>MUST associate an SDP 'label' attribute as described in <xref target="sec-floorid-association"/>, with the 'm' line.</t>
          <t>SHOULD, if it supports only the RFC 4583 subset and MUST, if it supports RFC XXXX associate an SDP 'bfcpver' attribute defined in <xref target="sec-bfcp-version"/>, with the 'm' line.</t>
      </list></t>
      <t>Once the answerer has sent the answer, the answerer:</t>
      <t><list style="symbols">
          <t>MUST, if the answerer is the 'active' endpoint, and if a TCP connection associated with the 'm' line is to be established (or re-established), initiate the establishing of the TCP connection; and</t>
          <t>MUST, if the answerer is the 'active' endpoint, and if an TLS/DTLS connection associated with the 'm' line is to be established (or re-established), initiate the establishing of the TLS/DTLS connection (by sending a ClientHello message).</t>
      </list></t>
      <t>If the answerer does not accept the 'm' line in the offer, it MUST assign a zero port value to the corresponding 'm' line in the answer. In addition, the answerer MUST NOT establish a TCP connection or a TLS/DTLS connection associated with the 'm' line.</t>
    </section>

    <section title="Offerer Processing of the SDP Answer" anchor="oa-offerer-processing-answer">
      <t>When the offerer receives an answer, which contains an 'm' line with a non-zero port value, describing a BFCP connection, the offerer:</t>
      <t><list style="symbols">
          <t>MUST, if the offer is the 'active' endpoint, and if a TCP connection associated with the 'm' line is to be established (or re-established), initiate the establishing of the TCP connection; and</t>
          <t>MUST, if the offerer is the 'active' endpoint, and if an TLS/DTLS connection associated with the 'm' line is to be established (or re-established), initiate the establishing of the TLS/DTLS connection (by sending a ClientHello message).</t>
      </list></t>
      <t>If the 'm' line in the answer contains a zero port value, the offerer MUST NOT establish a TCP connection or a TLS/DTLS connection associated with the 'm' line.</t>
    </section>

    <section title="Modifying the Session" anchor="oa-mod-session">
      <t>When an offerer sends an updated offer, in order to modify a previously established BFCP connection, it follows the procedures in <xref target="oa-gen-initial-offer"/>, with the following exceptions:</t>
      <t><list style="symbols">
          <t>If the BFCP connection is carried on top of TCP, and unless the offerer wants to re-establish an existing TCP connection, the offerer MUST associate an SDP connection attribute, with an 'existing' value, with the 'm' line; and</t>
          <t>If the offerer wants to disable a previously established BFCP connection, it MUST assign a zero port value to the 'm' line associated with the BFCP connection, following the procedures in <xref target="RFC3264"/>.</t>
      </list></t>
    </section>

    <section title="DTLS Role Determination" anchor="oa-dtls-role">
      <t>If the 'm' line proto value is 'UDP/TLS/BFCP', the 'active/passive' status is used to determine the TLS roles. Following the procedures in <xref target="RFC4572"/>, the 'active' endpoint will take the TLS client role.</t>
      <t>Once a DTLS connection has been established, if the 'active/passive' status of the endpoints change during a session, a new DTLS connection MUST be established.  Therefore, endpoints SHOULD NOT change the 'active/passive' status in subsequent offers and answers, unless they want to establish a new DTLS connection.</t>
      <t>The conditions above, and additional conditions under which endpoints MUST establish a new DTLS connection, are the same as defined for DTLS-SRTP in <xref target="RFC5763"/>.</t>
    </section>
  </section>

  <section title="Examples" anchor="sec-example">
    <t>For the purpose of brevity, the main portion of the session description is omitted in the examples, which only show 'm' lines and their attributes.</t>
    <t>The following is an example of an offer sent by a conference server to a client.</t>
    <figure>
      <artwork>
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 mstrm:10
a=floorid:2 mstrm:11
a=bfcpver:1
m=audio 50002 RTP/AVP 0
a=label:10
m=video 50004 RTP/AVP 31
a=label:11
      </artwork>
    </figure>
    <t>Note that due to RFC formatting conventions, this document splits SDP across lines whose content would exceed 72 characters. A backslash character marks where this line folding has taken place. This backslash and its trailing CRLF and whitespace would not appear in actual SDP content.</t>
    <t>The following is the answer returned by the client.</t>
    <figure>
      <artwork>
m=application 9 TCP/TLS/BFCP *
a=setup:active
a=connection:new
a=fingerprint:SHA-1 \
     3D:B4:7B:E3:CC:FC:0D:1B:5D:31:33:9E:48:9B:67:FE:68:40:E8:21
a=floorctrl:c-only
a=bfcpver:1
m=audio 55000 RTP/AVP 0
m=video 55002 RTP/AVP 31
      </artwork>
    </figure>

<t>A similar example using unreliable transport and DTLS is shown below, where the offer is sent from a client.</t>
    <figure>
      <artwork>
m=application 50000 UDP/TLS/BFCP *
a=setup:actpass
a=dtls-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:c-only s-only
a=confid:4321
a=userid:1234	
a=floorid:1 mstrm:10
a=floorid:2 mstrm:11
a=bfcpver:2
m=audio 50002 RTP/AVP 0
a=label:10
m=video 50004 RTP/AVP 31
a=label:11
      </artwork>
    </figure>
    <t>The following is the answer returned by the server.</t>
    <figure>
      <artwork>
m=application 55000 UDP/TLS/BFCP *
a=setup:active
a=dtls-connection:new
a=fingerprint:SHA-1 \
     3D:B4:7B:E3:CC:FC:0D:1B:5D:31:33:9E:48:9B:67:FE:68:40:E8:21
a=floorctrl:s-only
a=confid:4321
a=userid:1234	
a=floorid:1 mstrm:10
a=floorid:2 mstrm:11
a=bfcpver:2
m=audio 55002 RTP/AVP 0
m=video 55004 RTP/AVP 31
      </artwork>
    </figure>
  </section>

  <section title="Security Considerations" anchor="sec:security">
    <t>The BFCP <xref target="I-D.ietf-bfcpbis-rfc4582bis"/>, SDP <xref target="RFC4566"/>, and offer/answer <xref target="RFC3264"/> specifications discuss security issues related to BFCP, SDP, and offer/answer, respectively. In addition, <xref target="RFC4145"/> and <xref target="RFC4572"/> discuss security issues related to the establishment of TCP and TLS connections using an offer/answer model. 
      Furthermore, when using DTLS over UDP, considerations for its use with RTP and RTCP are presented in <xref target="RFC5763"/>.  The requirements for the offer/answer exchange, as listed in Section 5 of <xref target="RFC5763"/>, MUST be followed.</t>
    <t>An initial integrity-protected channel is REQUIRED for BFCP to exchange self-signed certificates between a client and the floor control server. For session descriptions carried in SIP <xref target="RFC3261"/>, S/MIME <xref target="RFC5750"/> is the natural choice to provide such a channel.</t>
  </section>

  <section title="IANA Considerations" anchor="sec:iana">
    <t><list style="empty">
        <t>[Editorial note: The changes in <xref target="sec:proto-reg"/> instruct the IANA to register the two new values UDP/BFCP and UDP/TLS/BFCP for the SDP 'proto' field. The new section <xref target="sec:bfcpver-reg"/> registers a new SDP "bfcpver" attribute. The rest is unchanged from <xref target="RFC4582"/>.]</t>
    </list></t>

    <section title="Registration of SDP 'proto' Values" anchor="sec:proto-reg">
      <t>The IANA has registered the following values for the SDP 'proto' field under the Session Description Protocol (SDP) Parameters registry:</t>

      <texttable title="Values for the SDP 'proto' field" anchor="tab:proto-iana">
        <ttcol>Value</ttcol>
        <ttcol align="center">Reference</ttcol>

        <c>TCP/BFCP</c>
        <c>[RFC XXXX]</c>

        <c>TCP/TLS/BFCP</c>
        <c>[RFC XXXX]</c>

        <c>UDP/BFCP</c>
        <c>[RFC XXXX]</c>

        <c>UDP/TLS/BFCP</c>
        <c>[RFC XXXX]</c>
      </texttable>
    </section>

    <section title="Registration of the SDP 'floorctrl' Attribute">
      <t>The IANA has registered the following SDP att-field under the Session Description Protocol (SDP) Parameters registry:</t>
      <t><list style="hanging">
          <t hangText="Contact name:             ">Gonzalo.Camarillo@ericsson.com</t>
          <t hangText="Attribute name:           ">floorctrl</t>
          <t hangText="Long-form attribute name: ">Floor Control</t>
          <t hangText="Type of attribute:        ">Media level</t>
          <t hangText="Subject to charset:       ">No</t>
          <t hangText="Purpose of attribute:     ">The 'floorctrl' attribute is used to perform floor control server determination.</t>
          <t hangText="Allowed attribute values: "> 1*("c-only" / "s-only" / "c-s")</t>
      </list></t>
    </section>

    <section title="Registration of the SDP 'confid' Attribute">
      <t>The IANA has registered the following SDP att-field under the Session Description Protocol (SDP) Parameters registry:</t>
      <t><list style="hanging">
          <t hangText="Contact name:             ">Gonzalo.Camarillo@ericsson.com</t>
          <t hangText="Attribute name:           ">confid</t>
          <t hangText="Long-form attribute name: ">Conference Identifier</t>
          <t hangText="Type of attribute:        ">Media level</t>
          <t hangText="Subject to charset:       ">No</t>
          <t hangText="Purpose of attribute:     ">The 'confid' attribute carries the integer representation of a Conference ID.</t>
          <t hangText="Allowed attribute values: ">A token</t>
      </list></t>
    </section>

    <section title="Registration of the SDP 'userid' Attribute">
      <t>The IANA has registered the following SDP att-field under the Session Description Protocol (SDP) Parameters registry:</t>
      <t><list style="hanging">
          <t hangText="Contact name:             ">Gonzalo.Camarillo@ericsson.com</t>
          <t hangText="Attribute name:           ">userid</t>
          <t hangText="Long-form attribute name: ">User Identifier</t>
          <t hangText="Type of attribute:        ">Media level</t>
          <t hangText="Subject to charset:       ">No</t>
          <t hangText="Purpose of attribute:     ">The 'userid' attribute carries the integer representation of a User ID.</t>
          <t hangText="Allowed attribute values: ">A token</t>
      </list></t>
    </section>

    <section title="Registration of the SDP 'floorid' Attribute">
      <t>The IANA has registered the following SDP att-field under the Session Description Protocol (SDP) Parameters registry:</t>
      <t><list style="hanging">
          <t hangText="Contact name:             ">Gonzalo.Camarillo@ericsson.com</t>
          <t hangText="Attribute name:           ">floorid</t>
          <t hangText="Long-form attribute name: ">Floor Identifier</t>
          <t hangText="Type of attribute:        ">Media level</t>
          <t hangText="Subject to charset:       ">No</t>
          <t hangText="Purpose of attribute:     ">The 'floorid' attribute associates a floor with one or more media streams.</t>
          <t hangText="Allowed attribute values: ">Tokens</t>
      </list></t>
    </section>
 
    <section title="Registration of the SDP 'bfcpver' Attribute" anchor="sec:bfcpver-reg">
      <t>The IANA has registered the following SDP att-field under the Session Description Protocol (SDP) Parameters registry:</t>
      <t><list style="hanging">
          <t hangText="Contact name:             ">Gonzalo.Camarillo@ericsson.com</t>
          <t hangText="Attribute name:           ">bfcpver</t>
          <t hangText="Long-form attribute name: ">BFCP Version</t>
          <t hangText="Type of attribute:        ">Media level</t>
          <t hangText="Subject to charset:       ">No</t>
          <t hangText="Purpose of attribute:     ">The 'bfcpver' attribute lists supported BFCP versions.</t>
          <t hangText="Allowed attribute values: ">Tokens</t>
      </list></t>
    </section>
  </section>

  <section title="Changes from RFC 4583" anchor="sec:changes">
    <t>Following is the list of technical changes and other fixes from <xref target="RFC4583"/>.</t>
    <t>Main purpose of this work was to add signaling support necessary to support BFCP over unreliable transport, as described in <xref target="I-D.ietf-bfcpbis-rfc4582bis"/>, resulting in the following changes:</t>
    <t><list style="numbers">
        <t>Fields in the 'm' line (<xref target="sec-m-line"/>):<vspace/>
          The section is re-written to remove reference to the exclusivity of TCP as a transport for BFCP streams. The proto field values UDP/BFCP and UDP/TLS/BFCP added.</t>
        <t>Authentication (<xref target="sec-authentication"/>):<vspace/>
          In last paragraph, made clear that a TCP connection was described.</t>
        <t>Security Considerations (<xref target="sec:security"/>):<vspace/>
          For the DTLS over UDP case, mention existing considerations and requirements for the offer/answer exchange in <xref target="RFC5763"/>.</t>
        <t>Registration of SDP 'proto' Values (<xref target="sec:proto-reg"/>):<vspace/>
          Register the two new values UDP/BFCP and UDP/TLS/BFCP in the SDP parameters registry.</t>
        <t>BFCP Version Negotiation (<xref target="sec-bfcp-version"/>):<vspace/>
          A new 'bfcpver' SDP media-level attribute is added in order to signal supported version number.</t>
    </list></t>
    <t>Clarification and bug fixes:</t>
    <t><list style="numbers">
        <t>Errata ID: 712 (<xref target="sec:server-determination"/> and <xref target="sec-floorid-association"/>):<vspace/>
          Language clarification. Don't use terms like an SDP attribute is "used in an 'm' line", instead make clear that the attribute is a media-level attribute.</t>
        <t>Fix typo in example (<xref target="sec-example"/>):<vspace/>
          Do not use 'm-stream' in the SDP example, use the correct 'mstrm' as specified in <xref target="sec-example"/>. Recommend interpreting 'm-stream' if it is received, since it is present in some implementations.</t>
        <t>Assorted clarifications (Across the document):<vspace/>
          Language clarifications as a result of reviews. Also, the normative language where tightened where appropriate, i.e. changed from SHOULD strength to MUST in a number of places.</t>
    </list></t>
  </section>

  <section title="Acknowledgements" anchor="sec:acks">
    <t>Joerg Ott, Keith Drage, Alan Johnston, Eric Rescorla, Roni Even, and Oscar Novo provided useful ideas for the original <xref target="RFC4583"/>. The authors also acknowledge contributions to the revision of BFCP for use over an unreliable transport from Geir Arne Sandbakken, Charles Eckel, Alan Ford, Eoin McLeod and Mark Thompson. Useful and important final reviews were done by Ali C. Begen, Mary Barnes and Charles Eckel.</t>
  </section>
</middle>

<back>
  <references title="Normative References">
    <?rfc include="reference.RFC.2119" ?>
    <?rfc include="reference.RFC.5234" ?>
    <?rfc include="reference.RFC.3261" ?>
    <?rfc include="reference.RFC.3264" ?>
    <?rfc include="reference.RFC.5280" ?>
    <?rfc include="reference.RFC.5750" ?>
    <?rfc include="reference.RFC.4145" ?>
    <?rfc include="reference.I-D.draft-ietf-bfcpbis-rfc4582bis-16" ?>    <!-- TBD increase version! -->
    <?rfc include="reference.RFC.4574" ?>
    <?rfc include="reference.RFC.4572" ?>
    <?rfc include="reference.RFC.4566" ?>
    <?rfc include="reference.RFC.6347" ?>
    <?rfc include="reference.RFC.5763" ?>
    <?rfc include="reference.RFC.4582" ?>
    <?rfc include="reference.RFC.4583" ?>
    <?rfc include="reference.I-D.draft-ietf-mmusic-sdp-bundle-negotiation-31" ?>
  </references>
  <references title="Informational References">
    <?rfc include="reference.RFC.5576" ?>
  </references>
</back>
</rfc>
