<?xml version="1.0"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?rfc toc="yes" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no"?>
<?rfc sortrefs="yes" ?>
<?rfc symrefs="yes" ?>
<?rfc rfcedstyle="yes" ?>
<rfc docName="draft-ietf-clue-protocol-10"  submissionType="IETF"  
consensus="yes" category="std" ipr="trust200902">
<front> 
<title abbrev="draft-ietf-clue-protocol-10">
CLUE protocol 
</title>
<author initials="R." surname="Presta" fullname="Roberta Presta">
	  <organization>University of Napoli</organization>
	  <address> 
		  <postal>
			  <street>Via Claudio 21</street>
			  <code>80125</code> 
			  <city>Napoli</city> 
			  <country>Italy</country>
		  </postal>
		  <email>roberta.presta@unina.it</email>
	  </address>
</author>
<author initials="S. P." surname="Romano" fullname="Simon Pietro Romano">
		<organization>University of Napoli</organization>
		<address>
			<postal>
				<street>Via Claudio 21</street>
				<code>80125</code> 
				<city>Napoli</city> 
				<country>Italy</country>
			</postal>
			<email>spromano@unina.it</email>
		</address>
</author>
<date month="November" year="2016"/>  
<area>ART</area>
<workgroup>CLUE Working Group</workgroup>

<!-- [rfced] Please insert any keywords (beyond those that appear in
the title) for use on http://www.rfc-editor.org/rfcsearch.html. -->
<keyword>CLUE</keyword>
<keyword>Telepresence</keyword>
<keyword>Protocol</keyword>
<keyword>Framework</keyword>
	
<abstract>
<t>
<!-- 
The CLUE protocol is an application protocol conceived for the 
description and negotiation of a CLUE telepresence session.
The design of the CLUE protocol takes into account the 
requirements and the framework defined, respectively, in 
<xref target="I-D.ietf-clue-framework"/> and 
<xref target="RFC7262"/>.
The companion document <xref target="I-D.ietf-clue-signaling"/> delves 
into CLUE signaling details, as well as on the SIP/SDP session 
establishment phase.
CLUE messages flow upon the CLUE data channel, based on reliable and 
ordered SCTP over DTLS transport, as described in 
<xref target="I-D.ietf-clue-datachannel"/>. 
Message details, together with the behavior of CLUE Participants 
acting as Media Providers and/or Media Consumers, are herein discussed.
 -->

The CLUE protocol is an application protocol conceived for the 
description and negotiation of a telepresence session.
The design of the CLUE protocol takes into account the 
requirements and the framework defined within the IETF CLUE working 
group.
A companion document delves into CLUE signaling details, as well as on 
the SIP/SDP session establishment phase.
CLUE messages flow upon the CLUE data channel, based on reliable and 
ordered SCTP over DTLS transport. 
Message details, together with the behavior of CLUE Participants 
acting as Media Providers and/or Media Consumers, are herein discussed. 
  
</t>
</abstract>
</front>

<middle>
<!-- Introduction -->
<section title="Introduction" anchor="sec-intro">
<t>
The CLUE protocol is an application protocol used 
by two CLUE Participants to enhance the experience of a multimedia
telepresence session.
The main goals of the CLUE protocol are:
<list style="numbers">
<t>
enabling a Media Provider (MP) to properly announce its current 
telepresence capabilities to a Media Consumer (MC) in terms of available
 media captures, groups of encodings, simultaneity constraints and other 
 information envisioned in <xref target="I-D.ietf-clue-framework"/>;
</t>
<t>enabling an MC to request the desired multimedia streams from the 
offering MP.</t>
</list>		
</t>		
<t>
CLUE-capable endpoints are connected by means of the CLUE data channel, 
an SCTP over DTLS channel which is opened and established as described 
in <xref target="I-D.ietf-clue-signaling"/> and 
<xref target="I-D.ietf-clue-datachannel"/>.
CLUE protocol messages flowing upon such a channel are detailed in this 
document, both syntactically and semantically. 		  
</t>
<t>
In <xref target="sec-overview"/> we provide a general overview of the 
CLUE protocol.
CLUE protocol messages are detailed in <xref target="sec-messages"/>.
The CLUE Participant state machines are introduced in 
<xref target="sec-sm"/>.
Versioning and extensions are discussed 
in <xref target="sec-versioning"/> and <xref target="sec-ext"/>, 
respectively. The XML schema defining the CLUE messages is reported in 
<xref target="sec-schema"/>. 
</t>
</section>
	
		
<!-- Terminology -->
<section title="Terminology" anchor="sec-teminology">		
<t>	This document refers to the same terminology used in 
<xref target="I-D.ietf-clue-framework"/> and in 
<xref target="RFC7262"/>. 
We briefly recall herein some of the main terms used in the document.
The definition of "CLUE Participant" herein proposed is not imported 
from any of the above documents.
</t>
<t>
<list style="hanging">
<t hangText="CLUE Participant (CP):"> An entity able to use the CLUE 
protocol within a telepresence session. 
It can be an endpoint or an MCU able to use the CLUE protocol.
</t>

<t hangText="CLUE-capable device:"> 
A device that supports the CLUE data channel 
<xref target="I-D.ietf-clue-datachannel"/>, the CLUE protocol 
and the principles of CLUE negotiation, and seeks CLUE-enabled calls.
</t>

<t hangText="Endpoint:">The logical point of final termination through
receiving, decoding and rendering, and/or initiation through
capturing, encoding, and sending of media streams.  An endpoint
consists of one or more physical devices which source and sink
media streams, and exactly one <xref target="RFC4353"/> Participant 
(which, in turn, includes exactly one SIP User Agent). Endpoints can be 
anything from multiscreen/multicamera room controllers to handheld 
devices.</t>
<t hangText="MCU:">Multipoint Control Unit (MCU) - a device that 
connects two or more endpoints together into one single multimedia 
conference
<xref target="RFC7667"/>.  An MCU may include a Mixer 
<xref target="RFC4353"/>.</t>
<t hangText="Media:"> Any data that, after suitable encoding, can be 
conveyed over RTP, including audio, video or timed text.</t>
<t hangText="Media Capture:">A "Media Capture", or simply "Capture", is 
a source of Media.</t>
<t hangText="Media Consumer (MC):">A CLUE Participant (i.e., an Endpoint
 or an MCU) able to receive Media Streams.</t>
<t hangText="Capture Encoding:">A specific encoding of a Media Capture, 
to be sent via RTP <xref target="RFC3550"/>.</t>
<t hangText="Media Provider (MP):">A CLUE Participant (i.e., an Endpoint 
or an MCU) able to send Media Streams.</t>      
<t hangText="Media Stream:">The term "Media Stream", or simply "Stream", 
is used as a synonym of Capture Encoding.</t>      
</list>
</t>
</section>

<section title="Conventions">

<t>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in BCP 14, RFC 2119 
<xref target="RFC2119"></xref>.</t>
      
</section>
	
<!-- Overview of the protocol architecture -->
<section 
  title="Overview of the CLUE protocol" 
  anchor="sec-overview">
<t>
The CLUE protocol is conceived to enable CLUE telepresence sessions.
It is designed in order to address SDP limitations in terms of the 
description of some information about the multimedia streams that are 
involved in a real-time multimedia conference.
Indeed, by simply using SDP we are not able to convey information
about the features of the flowing multimedia streams that are needed 
to enable a "being there" rendering experience.
Such information is designed in the CLUE framework document and formally 
defined and described in the CLUE data model document.
The CLUE protocol represents the mechanism for the exchange of CLUE
information between CLUE Participants.   
It mainly provides the messages to enable a Media Provider to advertise 
its telepresence capabilities and to enable a Media Consumer to select 
the desired telepresence options.
</t>
<t>
The CLUE protocol, as defined in the following, is a stateful, 
client-server, XML-based application protocol.
CLUE protocol messages flow on a reliable and ordered SCTP over DTLS 
transport channel connecting two CLUE Participants.
Messages carry information taken from the XML-based CLUE data model 
(<xref target="I-D.ietf-clue-data-model-schema"/>).  
Three main communication layers can be identified:
<list style="numbers">
<t>
Establishment of the CLUE data channel: in this phase, the CLUE data 
channel setup takes place. If it completes successfully, the CPs are 
able to communicate and start the initiation phase.
</t>
<t>
Negotiation of the CLUE protocol version and options (initiation phase): 
the CPs connected via the CLUE data channel agree on the version and on 
the options to be used during the telepresence session. Special CLUE 
messages are used for such a task (OPTIONS and OPTIONS RESPONSE). 
The version and options negotiation can be performed once and only at 
this stage.
At the end of that basic negotiation, each CP starts its activity as a 
CLUE MP and/or CLUE MC.
</t>
<t>
CLUE telepresence capabilities description and negotiation: in this 
phase, the MP-MC dialogues take place on the data channel by means of 
the CLUE protocol messages.
</t>
</list>
</t>
<t>
As soon as the channel is ready, the CLUE Participants must agree on the 
protocol version and extensions to be used within the telepresence session.
CLUE protocol version numbers are characterized by a major version 
number (single digit) and a minor version number (single digit), both 
unsigned integers, separated by a dot. 
While minor version numbers denote backward compatible changes in the 
context of a given major version, different major version numbers 
generally indicate a lack of interoperability between the protocol 
implementations. 
In order to correctly establish a CLUE dialogue, the involved CPs MUST 
have in common a major version number (see <xref target="sec-versioning"/> 
for further details).
The subset of the protocol options and extensions that are allowed 
within the CLUE session is also determined in the initiation phase, such 
subset being the one including only the options that are supported by 
both parties.   
A mechanism for the negotiation of the CLUE protocol version and 
extensions is is part of the initial phase.
According to such a solution, the CP which is the CLUE Channel  
initiator (CI) issues a proper CLUE message (OPTIONS) 
to the CP which is the Channel Receiver (CR) specifying the supported 
version and extensions. 
The CR then answers by selecting the subset of the CI extensions 
that it is able to support and determines the protocol version to 
be used.
</t>
<t>
After that negotiation phase is completed, CLUE Participants describe 
and agree on the media flows to be exchanged. 
In many cases CPs will seek to both transmit and receive media. Hence 
in a call between two CPs, A and B, there would be two separate dialogs, 
as follows:
</t>
<t>
<list style="numbers">
<t>the one needed to describe and set up the media streams sent from 
A to B, i.e., the dialogue between A's Media Provider side and B's Media 
Consumer side</t> 
<t>the one needed to describe and set up the media streams sent from B 
to A, i.e., the dialogue between B's Media Provider side and A's Media 
Consumer side</t>
</list>
</t>
<t>
 CLUE messages for the media session description and negotiation are 
 designed  by considering the MP side as the server side of the 
 protocol, since it  produces and provides media streams, and the MC 
 side as the client side of the protocol, since it requests and receives 
 media streams.
 The messages that are exchanged to set up the telepresence media 
 session are described by focusing on a single MP-MC dialogue.  
 </t>    
 <t>  
 The MP first advertises its available media captures and encoding 
 capabilities to the MC, as well as its simultaneity constraints,  
 according to the information model defined in 
 <xref target="I-D.ietf-clue-framework"/>.
 The CLUE message conveying the MP's multimedia offer is the 
 ADVERTISEMENT message. 
 Such message leverages the XML data model definitions provided in 
  <xref target="I-D.ietf-clue-data-model-schema"/>.   
  </t>
  <t>
  The MC selects the desired streams of the MP by using the CONFIGURE 
  message, which makes reference to the information carried in the 
  previously received ADVERTISEMENT.
  </t>
  <t>
  Besides ADVERTISEMENT and CONFIGURE, 
  other messages have been conceived in order to provide all the needed 
  mechanisms and operations. Such messages will be detailed in the 
  following sections.
  </t>
</section>

<section title="Protocol messages" anchor="sec-messages">
<t>
CLUE protocol messages are textual, XML-based messages that enable the 
configuration of the telepresence session. 
The formal definition of such messages is provided in the XML Schema 
provided at the end of this document (<xref target="sec-schema"/>). 
</t>
<t>
The XML definitions of the CLUE information provided in 
<xref target="I-D.ietf-clue-data-model-schema"/> are included 
within some CLUE protocol messages 
(namely the ADVERTISEMENT and the CONFIGURE messages), in 
order to use the concepts defined in <xref target="I-D.ietf-clue-framework"/>.  
</t>
<t>
The CLUE protocol messages are the following:
</t>
<t>
  <list style="symbols">
  <t>OPTIONS</t>
  <t>OPTIONS RESPONSE</t>
  <t>ADVERTISEMENT (ADV)</t>
  <t>ADVERTISEMENT ACKNOWLEDGEMENT (ACK)</t>
  <t>CONFIGURE (CONF)</t>
  <t>CONFIGURE RESPONSE (CONF RESPONSE)</t>
  </list>
</t>
<t>
While the OPTIONS and OPTIONS RESPONSE messages are exchanged in the 
initiation phase between the CPs, the other messages are involved in 
MP-MC dialogues.
</t>
<t>
Each CLUE message inherits a basic structure depicted in the following 
excerpt: 
</t>
<t>
<figure>
<artwork>
<![CDATA[
<!-- CLUE MESSAGE TYPE -->
<xs:complexType name="clueMessageType" abstract="true">
<xs:sequence>
<xs:element name="clueId" type="xs:string"/>
<xs:element name="sequenceNr" type="xs:positiveInteger"/>
</xs:sequence>
<xs:attribute name="protocol" type="xs:string" fixed="CLUE" 
	use="required"/>
<xs:attribute name="v" type="versionType" use="required"/>
</xs:complexType>

<!-- VERSION TYPE -->
<xs:simpleType name="versionType">
<xs:restriction base="xs:string">
<xs:pattern value="[0-9]\.[0-9]"></xs:pattern>
</xs:restriction>
</xs:simpleType>
]]>
</artwork>
</figure>
</t>
<t>
The basic structure determines the mandatory information that is 
carried within each CLUE message.
Such an information is made by:
</t>
<t>
<list style="symbols">
<t>clueId: an XML element containing the identifier (in the form of a 
generic string) of the CP within the telepresence system;</t>
<t>sequenceNr: an XML element containing the local message sequence 
number.
The sender must increment the sequence numbers by one for each new 
message sent, 
the receiver must remember the most recent sequence number received and 
send back 
a 402 error if it receives a message with an unexpected sequence number. 
The initial sequence number can be chosen randomly by each party;</t>
<t>protocol: a mandatory attribute set to "CLUE", identifying the 
procotol the messages refer to;</t>
<t>v: a mandatory attribute carrying the version of the protocol. 
The content of the "v" attribute is composed by the major version number 
followed by a dot and then by the minor version number of the CLUE 
protocol in use. 
Allowed values are of this kind: "1.3", "2.4", etc.</t> 
</list>
</t>
<t>
Each CP MUST be able to manage up to three (independent) streams of 
sequence numbers: 
(i) one for the messages exchanged in the initiation phase, 
(ii) one for the messages exchanged as MP, and
(iii) one for the messages exchanged as MC. 
</t>


<section title="OPTIONS" anchor="subsec-options">
<t>
The OPTIONS message is sent by the CP which is the CI to the CP which is 
the CR as soon as the CLUE data channel is ready.
Besides the information envisioned in the basic structure, it specifies: 
</t>
<t>
<list style="symbols">
<t>mediaProvider: a mandatory boolean field set to "true" if the CP is 
able to act as a MP</t>
<t>mediaConsumer: a mandatory boolean field set to "true" if the CP is 
able to act as a MC</t>
<t>supportedVersions: the list of the supported versions</t>
<t>supportedOptions: the list of the supported options</t>
</list>
</t>
<t>
The XML Schema of such a message is reported below:
</t>
<t>
<figure>
<artwork>
<![CDATA[
<!-- CLUE OPTIONS -->
<xs:complexType name="optionsMessageType">
<xs:complexContent>
<xs:extension base="clueMessageType">
<xs:sequence>
<xs:element name="mediaProvider" type="xs:boolean"/>
<xs:element name="mediaConsumer" type="xs:boolean"/>
<xs:element name="supportedVersions" type="versionsListType" 
 minOccurs="0"/>
<xs:element name="supportedOptions" type="optionsListType" 
 minOccurs="0"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

<!-- VERSIONS LIST TYPE -->
<xs:complexType name="versionsListType">
<xs:sequence>
<xs:element name="version" type="versionType" minOccurs="1" 
 maxOccurs="unbounded"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>

<!-- OPTIONS LIST TYPE -->
<xs:complexType name="optionsListType">
<xs:sequence>
<xs:element name="option" type="optionType" minOccurs="1" 
 maxOccurs="unbounded"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
 
<!-- OPTION TYPE -->
<xs:complexType name="optionType">
<xs:sequence>
<xs:element name="name" type="xs:string" />
<xs:element name="schemaRef" type="xs:anyURI" minOccurs="0"/>
<xs:element name="version" type="versionType" minOccurs="0"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
]]>
</artwork>
</figure>
</t>
<t>
&lt;supportedVersions&gt; contains the list of the versions that are 
supported by the CI,
each one represented in a child &lt;version&gt; element.
The content of each &lt;version&gt; element is a string made by the 
major version number
followed by a dot and then by the minor version number (e.g., 1.3 or 
2.4).
Exactly one &lt;version&gt; element MUST be provided 
for each major version supported, containing the maximum minor version 
number of such a version, since all minor versions are backward 
compatible.
If no &lt;supportedVersions&gt; is carried within the OPTIONS message, 
the CI supports only the version declared in the "v" attribute
and all the versions having the same major version number and lower 
minor version number.
For example, if the "v" attribute has a  value of "3.4" and there is no 
&lt;supportedVersions&gt; tag in the OPTIONS message, 
it means the CI supports only major version 3 with 
all the minor versions comprised between 3.0 and 3.4, with version 3.4 
included.
If a &lt;supportedVersion&gt; is provided, 
at least one &lt;version&gt; tag MUST be included.
</t>

<t>
The &lt;supportedOptions&gt; element specifies the list of options 
supported by the CI.
If there is no &lt;supportedOptions&gt; in the OPTIONS message, the CI 
does not support anything other than what is envisioned in the versions 
it supports.
For each option, an &lt;option&gt; element is provided.
An option is characterized by a name, an XML schema of reference where 
the option is defined, and the version of the protocol which the option 
refers to.
</t>
</section>

<section title="OPTIONS RESPONSE" anchor="subsec-options-response">
<t>
The OPTIONS RESPONSE is sent by a CR to a CI as a reply to the OPTIONS 
message.
As depicted in the figure below, the OPTIONS RESPONSE contains 
mandatorily a response code and a reason string indicating 
the processing result of the OPTIONS message.
If the responseCode is of the type 2xx 
the response MUST also include &lt;mediaProvider&gt;,  
&lt;mediaConsumer&gt;, &lt;version&gt; and &lt;commonOptions&gt; 
elements; it MAY include them for any other response code.
&lt;mediaProvider&gt; and &lt;mediaConsumer&gt; 
elements are associated with the supported roles 
(in terms of, respectively MP and MC), 
similarly to what the CI does in the OPTIONS message. 
The &lt;version&gt; field indicates the highest commonly supported 
version number.  
The content of the &lt;version&gt; 
element MUST be a string made of the major version number 
followed by a dot and then by the minor version number (e.g., 1.3 or 
2.4).
Finally, the commonly supported options are copied in the the 
&lt;commonOptions&gt; field.
</t>
<t>
<figure>
<artwork>
<![CDATA[
<!-- CLUE OPTIONS RESPONSE -->
<xs:complexType name="optionsResponseMessageType">
<xs:complexContent>
<xs:extension base="clueMessageType">
<xs:sequence>
<xs:element name="responseCode" type="xs:short"/>
<xs:element name="reasonString" type="xs:string"/>
<xs:element name="mediaProvider" type="xs:boolean" minOccurs="0"/>
<xs:element name="mediaConsumer" type="xs:boolean" minOccurs="0"/>
<xs:element name="version" type="versionType" minOccurs="0"/>
<xs:element name="commonOptions" type="optionsListType" minOccurs="0"/> 
<xs:any namespace="##other"
processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
]]>
</artwork>
</figure>
</t>
<t>
After the reception of such a message, the version to be used is 
determined by each part of the conversation. 
Indeed, it is the one provided in the &lt;version&gt; tag of the 
OPTIONS RESPONSE message. 
The following CLUE messages MUST use such a version number in the "v" 
attribute.
The allowed options in the CLUE dialogue will be those 
indicated in the &lt;commonOptions&gt; of the OPTIONS RESPONSE message.
</t>
</section>

<section title="ADVERTISEMENT" anchor="subsec-adv">
<t> 
The ADVERTISEMENT message (ADV) is used by the MP to advertise the 
available media captures and related information  to the MC.
The MP sends to the MC an ADV as soon as it is ready after the 
successful completion of the initiation phase, i.e., as soon as the 
version and the options of the CLUE protocol are agreed between the CPs.

During a single CLUE session, an MP may send new ADV messages to replace
 the previously advertised options, if, for instance, its media CLUE 
telepresence capabilities change mid-call. A new ADV completely 
invalidates the previous ADV.

 </t>
<t>
The ADV structure is defined in the picture below.
The ADV contains elements compliant with the CLUE data model that 
characterize the MP's telepresence offer. 
Namely, such elements are: 
the list of the media captures (&lt;mediaCaptures&gt;),
 of the encoding groups (&lt;encodingGroups&gt;), 
 of the capture scenes (&lt;captureScenes&gt;),
 of the simultaneous sets (&lt;simultaneousSets&gt;),  
 of the global views (&lt;globalViews&gt;), 
 and of the represented participants (&lt;people&gt;). 
 Each of them is fully described in the CLUE framework document 
 and formally defined in the CLUE data model document.
 </t>
 <t>
 <figure>
 <artwork>
 <![CDATA[ 
<!-- CLUE ADVERTISEMENT MESSAGE TYPE -->
<xs:complexType name="advertisementMessageType">
<xs:complexContent>
<xs:extension base="clueMessageType">
<xs:sequence>
<!-- mandatory -->
<xs:element name="mediaCaptures" type="dm:mediaCapturesType"/>                 
<xs:element name="encodingGroups" type="dm:encodingGroupsType"/>
<xs:element name="captureScenes" type="dm:captureScenesType"/>
<!-- optional -->
<xs:element name="simultaneousSets" type="dm:simultaneousSetsType" 
 minOccurs="0"/>                
<xs:element name="globalViews" type="dm:globalViewsType"
 minOccurs="0"/>
<xs:element name="people" type="dm:peopleType" minOccurs="0"/>                                     
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
 ]]>
 </artwork>
 </figure>
 </t>
  </section>

<section title="ADVERTISEMENT ACKNOWLEDGEMENT" anchor="sec-adv-ack">
<t>
The ADVERTISEMENT ACKNOWLEDGEMENT message (ACK) 
is sent by a MC to a MP to acknowledge an ADV message.
As it can be seen from the message schema provided in the following, 
the ACK contains a response code and a reason string for describing 
the processing result of the ADV.
The &lt;advSequenceNr&gt; carries the sequence number of 
the ADV the ACK refers to.
</t>
<t>
<figure>
<artwork>
<![CDATA[
<!-- ADV ACK MESSAGE TYPE -->
<xs:complexType name="advAcknowledgementMessageType">
<xs:complexContent>
<xs:extension base="clueMessageType">
<xs:sequence>
<xs:element name="responseCode" type="xs:short"/>
<xs:element name="reasonString" type="xs:string"/>
<xs:element name="advSequenceNr" type="xs:positiveInteger"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
]]>
</artwork>
</figure>
</t>
</section>


  <section title="CONFIGURE" anchor="sec-conf">
<t>
The CONFIGURE message (CONF) is sent from a MC to a MP 
to list the advertised captures the MC wants to receive.
The MC can send a CONF after the reception of an ADV or each time it 
wants to request other captures that have been previously advertised by 
the MP.
The content of the CONF message is shown below.
</t>
  <t>
<figure>
 <artwork>
  <![CDATA[
 <!-- CLUE CONFIGURE MESSAGE TYPE -->
<xs:complexType name="configureMessageType">
<xs:complexContent>
<xs:extension base="clueMessageType">
<xs:sequence>
<!-- mandatory fields -->
<xs:element name="advSequenceNr" type="xs:positiveInteger"/>
<xs:element name="ack" type="xs:boolean" minOccurs="0" fixed="true"/>
<xs:element name="captureEncodings" type="dm:captureEncodingsType" 
 minOccurs="0"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
]]>
   </artwork>
  </figure>
  </t>
<t>
The &lt;advSequenceNr&gt; element contains the sequence number of 
the ADV message the CONF refers to.
</t>
<t>
The optional boolean &lt;ack&gt; element, set to "true" when present, 
indicates that the CONF message also acknowledges with success the 
referred advertisement (CONF + ACK message), 
by applying in that way a piggybacking mechanism 
for simultaneously acknowledging and replying to the ADV message.
 
The &lt;ack&gt; element MUST NOT be present if an ACK message has been 
already sent back to the MP.

</t>
<t>
The most important content of the CONFIGURE message is the list of the 
capture encodings provided in the &lt;captureEncodings&gt; element. 
Such an element contains a sequence of capture encodings,
representing the streams to be instantiated.
</t>

  </section>  
  <section title="CONFIGURE RESPONSE" anchor="sec-conf-resp">
  <t>
<figure>
 <artwork>
  <![CDATA[
  
<!-- CONFIGURE RESPONSE MESSAGE TYPE -->
<xs:complexType name="configureResponseMessageType">
<xs:complexContent>
<xs:extension base="clueMessageType">
<xs:sequence>
<xs:element name="responseCode" type="xs:short"/>
<xs:element name="reasonString" type="xs:string"/>
<xs:element name="confSequenceNr" type="xs:positiveInteger"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
 ]]>
   </artwork>
  </figure>
  </t>
    <t>
The CONFIGURE RESPONSE message (CONF RESPONSE) is sent from the MP to 
the MC to communicate 
the processing result of requests carried in the previously received 
CONF message.
It contains a response code with a reason string indicating either the 
success or the failure (along with failure details) of a CONF request 
processing. 
Following, the &lt;confSequenceNr&gt; field contains 
the sequence number of the CONF message the response refers to.
</t>
</section>

<section title="Response codes and reason strings" anchor="sec-resp-codes">
  <t> 
  Response codes are defined as a sequence of three digits.
  A well-defined meaning is associated with the first digit.
 Response codes beginning with "2" are associated with successful 
 responses.
 Response codes beginning with "1" will represent a delayed or 
 incomplete response.
 Response codes that do not begin with either "2" or "1" indicate an 
 error response, i.e., that an error occurred while processing a CLUE 
 request.
 In particular, response codes beginning with "3" indicate problems 
 with the XML content of the message (""Bad syntax", "Invalid value", 
 etc.), while response codes beginning with "4" refer to problems 
 related to CLUE protocol semantics ("Invalid sequencing", "Version not 
 supported", etc.).
 100, 200, 300 and 400 codes are considered catch-alls.
 Further response codes can be designed in future versions of the 
 protocol, provided they do not overwrite the ones here defined and they 
 respect the semantics of the first code digit.
</t>
<t>
The response codes and strings defined for use with CLUE are as follows:	
</t>
  
  <t>
  <figure>
 <artwork>
  <![CDATA[
  
 +-----------------+----------------------+--------------------------+
 |                 |                      |                          |
 |  Response code  |  Reason string       |       Description        |
 |                 |                      |                          |
 +-----------------+----------------------+--------------------------+
 |                 |                      |                          |
 |   200           |  Success             |  The request has been    |
 |                 |                      |  successfully processed. | 
 |                 |                      |                          |
 +-----------------+----------------------+--------------------------+
 |                 |                      |                          |
 |   300           |  Syntax errors or    |  The XML syntax of the   |
 |                 |  inconsistencies     |  message is not correct  | 
 |                 |                      |  or there are invalid    |
 |                 |                      |  values.                 |
 +-----------------+----------------------+--------------------------+
 |                 |                      |                          |
 |   301           |  Bad syntax          |  The XML syntax of the   |
 |                 |                      |  message is not correct. | 
 +-----------------+----------------------+--------------------------+
 |                 |                      |                          |
 |   302           |  Invalid value       |  The message             |
 |                 |                      |  contains an invalid     |
 |                 |                      |  parameter value.        |
 +-----------------+----------------------+--------------------------+
 |                 |                      |                          |
 |   302           |  Conflicting values  |  The message             |
 |                 |                      |  contains values that    |
 |                 |                      |  cannot be used together.|
 +-----------------+----------------------+--------------------------+
 |                 |                      |                          |
 |   400           | Semantic errors      |  Semantic errors in the  |
 |                 |                      |  received CLUE protocol  |
 |                 |                      |  message.                |
 |                 |                      |                          |
 +-----------------+----------------------+--------------------------+
 |                 |                      |                          |
 |   401           | Version not supported|  The protocol version    |
 |                 |                      |  used in the message     |
 |                 |                      |  is not supported.       |
 |                 |                      |                          |
 +-----------------+----------------------+--------------------------+
 |                 |                      |                          |
 |   402           |  Invalid sequencing  |  The sequence number of  |
 |                 |                      |  the message is out      |  
 |                 |                      |  of date.                |
 +-----------------+----------------------+--------------------------+
 |                 |                      |                          |
 |   403           |  Invalid identifier  |  The identifier used in  |
 |                 |                      |  the message is          |
 |                 |                      |  not valid or unknown.   |
 +-----------------+----------------------+--------------------------+
 |                 |                      |                          |
 |   404           |  ADV Expired         |  The number of the ADV   |
 |                 |                      |  the CONF refers to is   |
 |                 |                      |  out of date.            |
 +-----------------+----------------------+--------------------------+
 |                 |                      |                          |
 |   405           |  Subset choice not   |  The subset choice is not|
 |                 |  allowed             | allowed for the specified|  
 |                 |                      |  MCC                     |
 +-----------------+----------------------+--------------------------+
       
]]>
   </artwork>
  </figure>
  </t>

</section>
</section><!-- protocol messages -->

<section title="Protocol state machines" anchor="sec-sm">

<t>
  
The CLUE protocol is an application protocol used between two CPs 
in order to properly configure a multimedia telepresence session.

CLUE protocol messages flow upon the CLUE Data Channel, 
a DTLS/SCTP channel established as depicted in <xref target="I-D.ietf-clue-datachannel"/>.
		
We herein discuss the state machines associated, respectively, with the
CLUE Participant, with the MC process and with the MP process.
		
Endpoints often wish to both send and receive media, i.e., act as both 
MP and MC. 
As such there will often be two sets of messages flowing in opposite 
directions; the state machines of these two flows do not interact with 
each other. 
		
Only the CLUE application logic is considered.
The interaction of CLUE protocol and SDP negotiations for the media 
streams exchanged is treated in <xref target="I-D.ietf-clue-signaling"/>.
		
</t>		
		
		
 <!-- </section>  -->

<!-- <section title="CLUE Participant's state machine">  -->
<t>
The main state machines focus on the behavior of the CLUE Participant 
(CP) acting as a CLUE channel initiator/receiver (CI/CR).
</t>
<t>
The initial state is the IDLE one. 
When in the IDLE state, the CLUE data channel is not established and
no CLUE-controlled media are exchanged between the two considered 
CLUE-capable devices (if there is an ongoing exchange of media streams, 
such media streams are not currently CLUE-controlled).
</t>
<t>
When the CLUE data channel set up starts ("start channel"), 
the CP moves from the IDLE state to the CHANNEL SETUP state.
</t>
<t>
If the CLUE data channel is successfully set up ("channel established"), 
the CP moves from the CHANNEL SETUP state to the OPTIONS state.
Otherwise ("channel error"), it moves back to the IDLE state.
The same transition happens if the CLUE-enabled 
telepresence session ends ("session ends"), i.e., when an 
SDP negotiation for removing the CLUE channel is performed.
</t>
<t>
When in the OPTIONS state, the CP addresses the initiation phase where 
both parts agree on the version and on the options to be used in the 
subsequent CLUE messages exchange phase.
If the CP is the Channel Initiator (CI), it sends an OPTIONS message and 
waits for the OPTIONS RESPONSE message.
If the CP is the Channel Receiver (CR), it waits for the OPTIONS message 
and, as soon as it arrives, replies with the OPTIONS RESPONSE message.
If the negotiation is successfully completed ("OPTIONS phase success"), 
the CP moves from the OPTIONS state to the ACTIVE state.
If the initiation phase fails ("OPTIONS phase failure"), the CP moves 
from the OPTIONS state to the IDLE state. 
The initiation phase might fail because of one of the following reasons: 
<list style="numbers">
<t> the CI receives an OPTIONS RESPONSE with an error response code</t>
<t> the CI does not receive any OPTIONS RESPONSE and a timeout error 
is raised</t>
<t> the CR does not receive any OPTIONS and a timeout error is raised </t>
</list>
</t>
<t>
When in the ACTIVE state, the CP starts the envisioned sub-state 
machines (i.e., the MP state machine and the MC state machine) 
according to the roles it plays in the telepresence sessions. 
Such roles have been previously declared in the OPTIONS and OPTIONS 
RESPONSE messages involved in the initiation phase (see OPTIONS 
sections <xref target="subsec-options"/> and <xref target="subsec-options-response"/>
for the details).
When in the ACTIVE state, the CP delegates the sending and 
the processing of the CLUE messages to the appropriate MP/MC sub-state machines. 
If the CP receives a further OPTIONS/OPTIONS RESPONSE message, 
it MUST ignore the message and stay in the ACTIVE state. 
</t>
<t>
The CP moves from the ACTIVE state to the IDLE one when the 
sub-state machines that have been activated are (both) in the relative 
TERMINATED state (see sections <xref target="sec-mp"/> 
and <xref target="sec-mc"/>).
</t>

<t>
<figure>
<artwork>
<![CDATA[
                               +----+
       +---------------------->|IDLE|<----------------------------+
       |                       +-+--+                             |
       |                         |                                |
       |                         |  start                         |
       |                         |  channel                       |
       |                         v                                |
       |  channel error/      +--------+                          |
       |  session ends        | CHANNEL|                          |
       +----------------------+ SETUP  |                          |
       |                      +--+-----+                          |
       |                         |                                |
       |                         |  channel                       |
       |                         |  established                   |
       |  channel error/         v                 OPTIONS phase  |
       |  session ends         +-------+           failure        |
       +-----------------------+OPTIONS+--------------------------+
       |                       +-+-----+                          |
       |                         |                                |
       |                         |  OPTIONS phase                 |
       |                         |  success                       |
       |                         v                                |
       |   channel error/     +---------+                         |
       |   session ends       | ACTIVE  |                         |
       +----------------------+         |                         |
                              | +----+  +------------------+      |
                              | | MP |  |    send/receive  |      |
                              | +----+  |    CLUE messages |      |
                              |         |<-----------------+      |
                              | +----+  |                         |
                              | | MC |  |both sub state machines  |
                              | +----+  |terminated               |
                              |         |                         |
                              +---------+-------------------------+                               
                               
                               
]]>
</artwork>
</figure>
</t><section title="Media Provider's state machine" anchor="sec-mp">
<t>
As soon as the sub-state machine of the MP is activated, it is in the ADV state.
In the ADV state, the MP is preparing the ADV message reflecting its actual
telepresence capabilities.</t>
<t>
After the ADV has been sent ("ADV sent"), 
the MP moves from the ADV state to the WAIT FOR ACK state.
If an ACK message with a successful response code arrives ("ACK received"), 
the MP moves to the WAIT FOR CONF state.
If a NACK arrives (i.e., an ACK message with an error response code), and the number of
NACKs for the issued ADV is under the retry threshold 
("NACK received &amp;&amp; retry not expired"), the MP moves back to the ADV
state for preparing a new ADV. 
If a NACK arrives and the number of received NACKs for that ADV
overcomes the threshold ("NACK received and &amp;&amp; retry expired"), the
MP goes to the MP-TERMINATED state.

The same happens if the waiting time for the ACK is fired 
a number of times under the retry threshold ("timeout &amp;&amp; retry not expired"): 
also in this case, the MP goes back to the ADV state to send a new copy of the ADV. 
If the number of retries overcomes the threshold ("timeout &amp;&amp; retry expired"), 
the MP moves from the WAIT FOR ACK state to the MP-TERMINATED state.

When in the WAIT FOR ACK state, if a CONFIGURE message with the &lt;ack&gt; element set 
to TRUE arrives ("CONF+ACK received"), 
the MP goes directly to the CONF RESPONSE state. 
CONF+ACK messages referring to out-of-date (i.e., having a sequence number equal to or 
less than the highest seen so far) ADVs MUST be ignored, i.e., they do not trigger any 
state transition.

If the telepresence settings of the MP change while 
in the WAIT FOR ACK state ("changed telepresence settings"), 
the MP switches from the WAIT FOR ACK state 
to the ADV state to create a new ADV.
</t>
<t>
When in the WAIT FOR CONF state, the MP listens to the channel for a CONF request 
coming from the MC. 
If a CONF arrives ("CONF received"), the MP switches to the CONF RESPONSE state.
If the CONF does not arrive within the timeout interval and 
the retry threshold has not been overcome 
("timeout &amp;&amp; retry not expired"), the MP moves back to the ADV state. 
When the retry expires ("timeout &amp;&amp; retry expired") the
MP moves to the MP TERMINATED state.
If the telepresence settings change in the meanwhile ("changed telepresence settings"), 
the MP moves from the WAIT FOR CONF back to the ADV state to create the new ADV to be sent 
to the  MC.
</t>
<t>
The MP in the CONF RESPONSE state processes the received CONF in order to
produce a CONF RESPONSE message. 
If the MP successfully processes the MC's configuration, then it sends a 200 CONF RESPONSE 
("success CONF RESPONSE sent") and moves to the ESTABLISHED state.
If there are errors in the CONF processing, then the MP issues a CONF RESPONSE
carrying an error response code and, if under the retry treshold
("error CONF RESPONSE sent &amp;&amp; retry not expired"), 
it goes back to the WAIT FOR CONF state to wait for a new  
configuration request. 
If the number of trials exceeds the retry threshold 
("error CONF RESPONSE sent &amp;&amp; retry expired"),
the state MP TERMINATED is reached.
Finally, if there are changes in the MP's telepresence settings
("changed telepresence settings"), 
the MP switches to the ADV state. 
</t>
<t>
The MP in the ESTABLISHED state has successfully negotiated the media streams with the
MC by  means of the CLUE messages. 
If there are changes in the MP's telepresence settings ("changed telepresence settings"), 
the MP moves back to the ADV state.
In the ESTABLISHED state, the CLUE-controlled media streams of the session 
are those described in the last successfully processed CONF message.
</t>
<t>
<figure>
 <artwork>
  <![CDATA[
+------------------------->+-----+<---------------------------+
|            +------------>| ADV |<-------------------+       |
|            |             +-+---+                    |       |timeout
|            |               |       NACK received    |       |&&
|            |       ADV sent|             &&         |       |retry
|            |               v       retry not expired|       |not
|     changed|             +--------+                 |       |expired
|telepresence+-------------+WAIT FOR+-----------------+       |
|    settings|   +---------+  ACK   +-------------------------+
|            |   |CONF+ACK +-+------+----------------------------------+
|            |   |received   |                        NACK received && |
|            |   |           |ACK received               retry expired,|
|            |   |           v                 timeout && retry expired|
+------------|-------------+--------+                                  |
timeout      +-------------+WAIT FOR| timeout && retry expired         |
&&           |   |         |  CONF  +----------------------------------+
retry        |   |         +-+------+<-----------------------------+   |
not expired  |   |           |                                     |   |
             |   |           |CONF received                        |   |
             |   |           v             error CONF RESPONSE sent|   |
             |   +-------->+---------+      && retry not expired   |   |
             +-------------+CONF     |-----------------------------+   |
    +--------------------->|RESPONSE +---------------------------------+
    |        |             +-+-------+         error CONF RESPONSE sent|
    |        |               |                         && retry expired|
    |        |               |  success                                |
    |        |               |  CONF RESPONSE                          |
    |        |               |  sent                                   |
    |        |               |                                         |
    |        |               |                                         |
    |CONF    |               |                                         |
    |received|               v                                         |
    |        |             +------------+                              |
    |        +-------------+ESTABLISHED |                              |
    +----------------------+------------+                              |
                                                                       |
                                                                       |
                                                                       |
                           +-----------+                               |
                           !    MP     |                               |
                           |TERMINATED |                               |
                           +-----------+<------------------------------+

                           ]]>
   </artwork>
  </figure>


</t>
  </section>

  
<section title="Media Consumer's state machine" anchor="sec-mc">
<t>
As soon as the sub-state machine of the MC is activated, it is in the WAIT FOR 
ADV state.
An MC in the WAIT FOR ADV state is waiting for an ADV coming from the MP.
If the ADV arrives ("ADV received"), the MC reaches the ADV PROCESSING state.
Otherwise, the MC is stuck in the WAIT FOR ADV state.
</t>

<t>
In the ADV PROCESSING state, the ADV is parsed by the MC.
If the ADV is successfully processed, there are two possibilities.
According to the first one,  the MC issues a successful ACK message to the MP ("ACK sent") 
and moves to the CONF state.
In the second one, the MC prepares and sends a CONF message with the &lt;ack&gt; field set to "true"
("CONF+ACK sent") and goes directly to the WAIT FOR CONF RESPONSE state.
</t>
<t> 
If the ADV elaboration is unsuccessful (bad syntax, missing XML elements, etc.), 
and the number of times this has happened is under the retry treshold, 
the MC sends a NACK message (i.e., an ACK with an error response code) 
to the MP describing the problem via a proper reason phrase. 
By this way ("NACK sent &amp;&amp; retry not expired"), the MC
switches back to the WAIT FOR ADV state, waiting for a new ADV.
If the NACK retry expires ("NACK sent &amp;&amp; retry expired"), 
the MC moves to the MC TERMINATED state.
</t>
<t>
When in the CONF state, the MC is preparing the CONF request to be issued to the MP
on the basis of the previously ACK-ed ADV.
When the CONF has been sent ("CONF sent"), the MC moves to the WAIT FOR CONF RESPONSE
state.
If a new ADV arrives in the meanwhile ("ADV received"), 
the MC goes back to the ADV PROCESSING state.
</t>
<t> 
In the WAIT FOR CONF RESPONSE state, the MC is waiting for the MP's response to the 
issued CONF or CONF+ACK.
If a 200 CONF RESPONSE message is received ("successful CONF RESPONSE received"), 
it means that the MP and the MC have successfully agreed on the media streams to be shared.
Then, the MC can move to the ESTABLISHED state.
On the other hand, if an error response is received and the associated retry counter does not
overcome the threshold ("error CONF RESPONSE received &amp;&amp; retry not expired"), the MC 
moves back to the CONF state to prepare a new CONF request.
In case of "error CONF RESPONSE received &amp;&amp; retry expired", 
the MC moves to the MC TERMINATED state.
If no CONF RESPONSE arrives and the number of timeouts is under the threshold
("timeout &amp;&amp; retry not expired"), 
the MC moves to the CONF state and sends again the CONF message.
If no CONF RESPONSE arrives and the number of timeouts is over the threshold
("timeout &amp;&amp; retry expired"), 
the MC moves to the MC TERMINATED state.
If a new ADV is received in the WAIT FOR CONF RESPONSE state, 
the MC switches to the ADV PROCESSING state.
</t>
<t>
When the MC is in the ESTABLISHED state, the telepresence session
configuration has been set up at the CLUE application level 
according to the MC's preferences. 
Both the MP and the MC have agreed on (and are aware of) the CLUE-controlled media streams 
to be exchanged within the call.
While in the ESTABLISHED state, it might happen that the MC decides 
to change something in the call settings.
The MC then issues a new CONF ("CONF sent") and goes to wait for the new CONF RESPONSE in
the WAIT FOR CONF RESPONSE state. 
On the other hand, in the ESTABLISHED state, 
if a new ADV arrives from the MP ("ADV received"), it means that something has
changed on the MP's side. The MC then moves to the ADV PROCESSING state.
</t>
<t>
<figure>
 <artwork>
  <![CDATA[
                        +----------+
                        | WAIT FOR |
                        |   ADV    |
                        +----+-----+<--------+
                             |               |
                     ADV     |      NACK sent|
                     received|      && retry |
                             v    not expired|    NACK sent &&
                        +-----------+--------+    retry expired
                        |  ADV      +---------------------------+
                        | PROCESSING|<-----------------------+  |
                        +-+-----+---+                        |  |
                          |     |                            |  |
                CONF+ACK  |     |  ACK                       |  |
                  sent    |     |  sent                      |  |
                          |     v                            |  |
                          |  +-----+                         |  |
                          |  |CONF |            ADV received |  |
    +----------------------->|     +-------------------------+  |
    |                     |  +--+--+                         |  |
    |error CONF RESPONSE  |     |        error CONF RESPONSE |  |
    |received &&          |     | CONF   received &&         |  |
    |retry not expired,   |     | sent   retry expired       |  |
    |timeout &&           |     |      +------------------------+
    |retry not expired    v     v      |                     |  |
    +------------------+---------------+        ADV received |  |
            +--------->|   WAIT FOR    +---------------------+  |
            |          |  CONF RESPONSE+------------------------+
            |          +-------+-------+       timeout&&     |  |
            |                  |             retry expired   |  |
            |                  |                             |  |
            |                  |successful                   |  |
            |                  |CONF RESPONSE                |  |
            |                  |received                     |  |
            |                  v                             |  |
            |CONF sent   +-----------+           ADV received|  |
            +------------+ESTABLISHED+-----------------------+  |
                         +-----------+                          |
                                                                |
                                                                |
                                                                |
                          +-----------+                         |
                          |   MC      |<------------------------+
                          |TERMINATED |
                          +-----------+
 ]]>
   </artwork>
  </figure>

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

<section title="Versioning" 
anchor="sec-versioning">
<t>
CLUE protocol messages are XML messages compliant to the CLUE protocol XML schema 
<xref target="I-D.ietf-clue-data-model-schema"/>.
The version of the protocol corresponds to the version of the schema.
Both client and server have to test the compliance of the received messages with 
the XML schema of the CLUE protocol.
If the compliance is not verified, the message cannot be processed further.
</t>
<t>
Obviously, client and server cannot communicate if they do not share exactly 
the same XML schema.
Such a schema associated with the CLUE URN "urn:ietf:params:xml:ns:clue-protocol".
If all CLUE-enabled devices use that schema 
there will be no interoperability problems due to schema issues.
</t>
<t>The version of the XML schema contained in the standard document deriving
from this draft will be 1.0. The version usage is similar in philosophy to XMPP 
(<xref target="RFC6120"/>). 
A version number has major and minor components, each a non-negative integer.
Major version changes denote non-interoperable changes. 
Minor version changes denote schema changes that are backward compatible 
by ignoring unknown XML elements, or other backward compatible changes.
</t><t>
The minor versions of the XML schema MUST be backward compatible, 
not only in terms of schema but also semantically and procedurally as well. 
This means that they should define further features and functionality besides 
those defined in the previous versions, in an incremental way, without impacting 
the basic rules defined in the previous version of the schema.
In this way, if a MP is able to speak, e.g., version 1.5 of the protocol while the 
MC only understands version 1.4, 
the MP should have no problem in reverting the dialogue back to version 1.4
without exploiting 1.5 features and functionality.
Version 1.4 is 
the one to be spoken and has to appear in the "v" 
attribute of the subsequent CLUE messages. 
In other words, in this example, the  MP 
MUST use version 1.4 and downgrade to the lower version.
This said, and coherently with the general IETF 
"protocol robustness principle" stating that 
"an implementation must be conservative in its sending behavior, 
and liberal in its receiving behavior" <xref target="RFC1122"/>, 
Clue Participants 
MUST ignore unknown elements or attributes that are not envisioned 
in the negotiated protocol version and related options.
</t>
<!-- 
<t>
It is expected that, before the CLUE protocol XML schema reaches a steady state,  
prototypes developed by different organizations will conduct interoperability testing.
In that case, in order to interoperate, they have to be compliant to the 
current version of the XML schema, i.e., the one copied in the most up-to-date 
version of the draft defining the CLUE protocol.
The versions of the non-standard XML schema will be numbered as 0.01, 0.02, and so on. 
During the standard development phase, the versions of the XML schema will probably not be 
backward compatible so it is left to prototype implementers the responsibility of keeping their products
up to date.
</t>
 -->
<!-- 
<t>
Even though strongly discouraged, if a future version of the protocol 
is designed which breaks the backward compatibility constraint, this aspect MUST
be explicitly advertised in the corresponding new RFC document. In such a case, it would 
be up to developers to update their systems accordingly.
</t>
 -->
</section>

<section title="Extensions and options" 
anchor="sec-ext">
<t>
Although the standard version of the CLUE protocol XML schema is designed 
to thoroughly cope with the requirements emerging from the application domain,
new needs might arise and extensions can be designed.
Extensions specify information and behaviors 
that are not described in a certain version of the protocol.
They can relate to:
</t>

<t>
<list style="numbers">
<t>
    new information, to be carried in the existing messages.
    For example, we may want to add more fields within an existing message;
</t>
<t>
    new messages. 
    This is the case if there is no proper message for a certain task, 
    so a brand new CLUE message needs to be defined.
</t>
</list>
</t>

<t>
As to the first type of extensions, it is possible to distinguish between
protocol-specific and data model information.
Indeed, CLUE messages are envelopes carrying both:
</t>

<t>
<list style="symbols">
<t> (i) XML elements defined within the CLUE protocol XML schema itself 
(protocol-specific information)</t>
<t>  (ii) other XML elements compliant to the CLUE data model schema 
(data model information)</t>
</list>
</t>

<t>
When new protocol-specific information is needed somewhere in the protocol 
messages, it can be added in place of the &lt;any&gt; elements and 
&lt;anyAttribute&gt; elements envisioned by the protocol schema.
The policy currently defined in the protocol schema for handling 
&lt;any&gt; and &lt;anyAttribute&gt; elements is:
</t>


<t>
<list style="symbols">
<t> elementFormDefault="qualified"</t>
<t> attributeFormDefault="unqualified"</t>
</list>
</t>

<t>    
In that case, the new information must be qualified by namespaces 
other than "urn:ietf:params:xml:ns:clue-protocol" (the protocol URN) 
and "urn:ietf:params:xml:ns:clue-info" (the data model URN). 
Elements or attributes from unknown namespaces MUST be ignored.  
</t>

<t>
The other matter concerns data model information.
Data model information is defined by the XML schema associated 
with the URN "urn:ietf:params:xml:ns:clue-info".
Also for the XML elements defined in such a schema there are extensibility issues.
Those issues are overcome by using &lt;any&gt; and &lt;anyAttribute&gt; 
placeholders.
Similarly to what said before, new information within data model elements can be added in place
of &lt;any&gt; and &lt;anyAttribute&gt; schema elements, as long as they are properly namespace qualified.
</t>
<t>On the other hand (second type of extensions), "extra" CLUE protocol messages, 
i.e., messages not envisioned in the latest standard version of the schema, can be needed.
In that case, the messages and the associated behavior should be defined in 
external documents that both communication parties must be aware of.
</t>
<t>
Both types of extensions, i.e., new information and new messages, can
be characterized by:
</t>

<t>
<list style="symbols">
<t>a name;</t>
<t>an external XML Schema defining the XML information and/or the XML messages representing the extension;</t>
<t>the standard version of the protocol the extension refers to.</t>
</list>
</t>

<t>
For that reason, the extensions can be represented by means of the &lt;option&gt; element as defined below,
which is carried within the OPTIONS and OPTIONS RESPONSE messages to represent the extensions supported 
by the CI and by the CR.
</t>
<t>
<figure>
<artwork>
<![CDATA[
<!-- OPTION TYPE -->
<xs:complexType name="optionType">
<xs:sequence>
<xs:element name="name" type="xs:string" />
<xs:element name="schemaRef" type="xs:anyURI" minOccurs="0"/>
<xs:element name="version" type="versionType" minOccurs="0"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
]]>
</artwork>
</figure>
</t>

<!-- 
<t>
A data model extension is a set of XML definitions related to the description of
telepresence capabilities that is contained in an XML schema and which
is different from the normative CLUE data model schema.
Such XML definitions can represent further entities not envisioned in the CLUE
framework at the time of writing of the data model draft. 
The entities defined in a data model extension can appear in place of the 
&lt;any&gt; and &lt;anyAttribute&gt; elements included in the data model document.
A data model extension is then represented by a reference to the defining XML schema.
The schema reference is represented by a URI defining the schema location. [TBC]   
If a data model extension is supported by both a CR and a CI, it means that
both are aware of the associated XML schema and of the meanings of the 
elements defined within it.
</t>
<t>
A protocol extension is a set of XML definitions related to the CLUE protocol 
that is contained in an XML schema which
is different from the normative CLUE protocol schema.
Such definitions can represent: (i) information to be carried within the 
existing messages in place of &lt;any&gt; and &lt;anyAttribute&gt; elements;
(ii) new messages designed for the CLUE telepresence control. 
Such XML definitions refer to information not envisioned during the CLUE protocol
design phase.
A protocol extension is then represented by a reference to the defining XML schema.  
If a protocol extension is supported by both a CI and a CR, it means that
both are aware of the associated XML schema and of the meanings of the 
elements defined within it.
</t>
 -->

</section>
   
   
<section title="XML Schema" anchor="sec-schema">
<t>
In this section, the XML schema defining the CLUE messages is provided.
</t>
<t>
<figure>
 <artwork>
  <![CDATA[
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema
version="1.0"
targetNamespace="urn:ietf:params:xml:ns:clue-protocol"
xmlns:tns="urn:ietf:params:xml:ns:clue-protocol"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:dm="urn:ietf:params:xml:ns:clue-info"
xmlns="urn:ietf:params:xml:ns:clue-protocol"
elementFormDefault="qualified"
attributeFormDefault="unqualified">

<!-- Import data model schema -->
<xs:import namespace="urn:ietf:params:xml:ns:clue-info"
schemaLocation="data-model-schema-12.xsd"/>

<!-- ELEMENT DEFINITIONS -->
<xs:element name="options" type="optionsMessageType"/>
<xs:element name="optionsResponse" type="optionsResponseMessageType"/>
<xs:element name="advertisement" type="advertisementMessageType"/>
<xs:element name="ack" type="advAcknowledgementMessageType"/>
<xs:element name="configure" type="configureMessageType"/>
<xs:element name="configureResponse" 
 type="configureResponseMessageType"/>

<!-- CLUE MESSAGE TYPE -->
<xs:complexType name="clueMessageType" abstract="true">
<xs:sequence>
<xs:element name="clueId" type="xs:string"/>
<xs:element name="sequenceNr" type="xs:positiveInteger"/>
</xs:sequence>
<xs:attribute name="protocol" type="xs:string" fixed="CLUE" 
 use="required"/>
<xs:attribute name="v" type="versionType" use="required"/>
</xs:complexType>

<!-- VERSION TYPE -->
<xs:simpleType name="versionType">
<xs:restriction base="xs:string">
<xs:pattern value="[0-9]\.[0-9]"></xs:pattern>
</xs:restriction>
</xs:simpleType>


<!-- RESPONSE CODE TYPE -->
<xs:simpleType name="responseCodeType">
  <xs:restriction base="xs:integer">
   <xs:pattern value="[1-9][0-9][0-9]"/>
  </xs:restriction>
</xs:simpleType>
 

<!-- CLUE OPTIONS -->
<xs:complexType name="optionsMessageType">
<xs:complexContent>
<xs:extension base="clueMessageType">
<xs:sequence>
<xs:element name="mediaProvider" type="xs:boolean"/>
<xs:element name="mediaConsumer" type="xs:boolean"/>
<xs:element name="supportedVersions" type="versionsListType" 
 minOccurs="0"/>
<xs:element name="supportedOptions" type="optionsListType" 
 minOccurs="0"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

<!-- VERSIONS LIST TYPE -->
<xs:complexType name="versionsListType">
<xs:sequence>
<xs:element name="version" type="versionType" minOccurs="1" 
 maxOccurs="unbounded"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>

<!-- OPTIONS LIST TYPE -->
<xs:complexType name="optionsListType">
<xs:sequence>
<xs:element name="option" type="optionType" minOccurs="1" 
 maxOccurs="unbounded"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
 
<!-- OPTION TYPE -->
<xs:complexType name="optionType">
<xs:sequence>
<xs:element name="name" type="xs:string" />
<xs:element name="schemaRef" type="xs:anyURI" minOccurs="0"/>
<xs:element name="version" type="versionType" minOccurs="0"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>

<!-- CLUE OPTIONS RESPONSE -->
<xs:complexType name="optionsResponseMessageType">
<xs:complexContent>
<xs:extension base="clueMessageType">
<xs:sequence>
<xs:element name="responseCode" type="responseCodeType"/>
<xs:element name="reasonString" type="xs:string"/>
<xs:element name="mediaProvider" type="xs:boolean" minOccurs="0"/>
<xs:element name="mediaConsumer" type="xs:boolean" minOccurs="0"/>
<xs:element name="version" type="versionType" minOccurs="0"/>
<xs:element name="commonOptions" type="optionsListType" minOccurs="0"/> 
<xs:any namespace="##other"
processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

<!-- CLUE ADVERTISEMENT MESSAGE TYPE -->
<xs:complexType name="advertisementMessageType">
<xs:complexContent>
<xs:extension base="clueMessageType">
<xs:sequence>
<!-- mandatory -->
<xs:element name="mediaCaptures" type="dm:mediaCapturesType"/>                 
<xs:element name="encodingGroups" type="dm:encodingGroupsType"/>
<xs:element name="captureScenes" type="dm:captureScenesType"/>
<!-- optional -->
<xs:element name="simultaneousSets" type="dm:simultaneousSetsType" 
 minOccurs="0"/>                
<xs:element name="globalViews" type="dm:globalViewsType"
 minOccurs="0"/>
<xs:element name="people" type="dm:peopleType" minOccurs="0"/>                                     
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

<!-- ACK MESSAGE TYPE -->
<xs:complexType name="advAcknowledgementMessageType">
<xs:complexContent>
<xs:extension base="clueMessageType">
<xs:sequence>
<xs:element name="responseCode" type="responseCodeType"/>
<xs:element name="reasonString" type="xs:string"/>
<xs:element name="advSequenceNr" type="xs:positiveInteger"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

<!-- CLUE CONFIGURE MESSAGE TYPE -->
<xs:complexType name="configureMessageType">
<xs:complexContent>
<xs:extension base="clueMessageType">
<xs:sequence>
<xs:element name="advSequenceNr" type="xs:positiveInteger"/>
<xs:element name="ack" type="xs:boolean" 
 minOccurs="0" fixed="true"/>
<xs:element name="captureEncodings" type="dm:captureEncodingsType" 
 minOccurs="0"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

<!-- CONFIGURE RESPONSE MESSAGE TYPE -->
<xs:complexType name="configureResponseMessageType">
<xs:complexContent>
<xs:extension base="clueMessageType">
<xs:sequence>
<xs:element name="responseCode" type="responseCodeType"/>
<xs:element name="reasonString" type="xs:string"/>
<xs:element name="confSequenceNr" type="xs:positiveInteger"/>
<xs:any namespace="##other" processContents="lax" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

</xs:schema>
]]>
</artwork>
</figure>
</t>
</section>

<section title="Examples">
<t>
In the following we provide an example of ADVERTISEMENT representing 
the telepresence environment described in 
<xref target="I-D.ietf-clue-data-model-schema" />, Section "Sample XML file" and
Section "MCC example" respectively.
</t>
<section title="Simple ADV">
<t>The associated Media Provider's telepresence capabilities are described in 
<xref target="I-D.ietf-clue-data-model-schema" />, Section "Sample XML file".
</t>
<t>
<figure>
 <artwork>
  <![CDATA[
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<advertisement xmlns="urn:ietf:params:xml:ns:clue-protocol" 
               xmlns:ns2="urn:ietf:params:xml:ns:clue-info" 
               xmlns:ns3="urn:ietf:params:xml:ns:vcard-4.0" 
               protocol="CLUE" v="0.4">
    <clueId>Napoli</clueId>
    <sequenceNr>45</sequenceNr>
    <mediaCaptures>
        <ns2:mediaCapture 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:type="ns2:videoCaptureType"  
         captureID="AC0" mediaType="video">            
            <ns2:captureSceneIDREF>CS1</ns2:captureSceneIDREF>
            <ns2:encGroupIDREF>EG1</ns2:encGroupIDREF>
            <ns2:spatialInformation>
                <ns2:capturePoint>
                    <ns2:x>0.5</ns2:x>
                    <ns2:y>1.0</ns2:y>
                    <ns2:z>0.5</ns2:z>
                    <ns2:lineOfCapturePoint>
                        <ns2:x>0.5</ns2:x>
                        <ns2:y>0.0</ns2:y>
                        <ns2:z>0.5</ns2:z>
                    </ns2:lineOfCapturePoint>
                </ns2:capturePoint>
            </ns2:spatialInformation>
            <ns2:individual>true</ns2:individual>
            <ns2:description lang="en">
             main audio from the room</ns2:description>
            <ns2:priority>1</ns2:priority>
            <ns2:lang>it</ns2:lang>
            <ns2:mobility>static</ns2:mobility>
            <ns2:view>room</ns2:view>
            <ns2:capturedPeople>
                <ns2:personIDREF>alice</ns2:personIDREF>
                <ns2:personIDREF>bob</ns2:personIDREF>
                <ns2:personIDREF>ciccio</ns2:personIDREF>
            </ns2:capturedPeople>
        </ns2:mediaCapture>
        <ns2:mediaCapture 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:type="ns2:videoCaptureType" 
         mediaType="video" captureID="VC0">            
            <ns2:captureSceneIDREF>CS1</ns2:captureSceneIDREF>
            <ns2:encGroupIDREF>EG0</ns2:encGroupIDREF>
            <ns2:spatialInformation>
                <ns2:capturePoint>
                    <ns2:x>0.5</ns2:x>
                    <ns2:y>1.0</ns2:y>
                    <ns2:z>0.5</ns2:z>
                    <ns2:lineOfCapturePoint>
                        <ns2:x>0.5</ns2:x>
                        <ns2:y>0.0</ns2:y>
                        <ns2:z>0.5</ns2:z>
                    </ns2:lineOfCapturePoint>
                </ns2:capturePoint>
            </ns2:spatialInformation>
            <ns2:individual>true</ns2:individual>
            <ns2:description lang="en">left camera video capture
            </ns2:description>
            <ns2:priority>1</ns2:priority>
            <ns2:lang>it</ns2:lang>
            <ns2:mobility>static</ns2:mobility>
            <ns2:view>individual</ns2:view>
            <ns2:capturedPeople>
                <ns2:personIDREF>ciccio</ns2:personIDREF>
            </ns2:capturedPeople>
        </ns2:mediaCapture>
        <ns2:mediaCapture 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:type="ns2:videoCaptureType" 
         mediaType="video" captureID="VC1">            
            <ns2:captureSceneIDREF>CS1</ns2:captureSceneIDREF>
            <ns2:encGroupIDREF>EG0</ns2:encGroupIDREF>
            <ns2:spatialInformation>
                <ns2:capturePoint>
                    <ns2:x>0.5</ns2:x>
                    <ns2:y>1.0</ns2:y>
                    <ns2:z>0.5</ns2:z>
                    <ns2:lineOfCapturePoint>
                        <ns2:x>0.5</ns2:x>
                        <ns2:y>0.0</ns2:y>
                        <ns2:z>0.5</ns2:z>
                    </ns2:lineOfCapturePoint>
                </ns2:capturePoint>
            </ns2:spatialInformation>
            <ns2:individual>true</ns2:individual>
            <ns2:description lang="en">central camera video capture
            </ns2:description>
            <ns2:priority>1</ns2:priority>
            <ns2:lang>it</ns2:lang>
            <ns2:mobility>static</ns2:mobility>
            <ns2:view>individual</ns2:view>
            <ns2:capturedPeople>
                <ns2:personIDREF>alice</ns2:personIDREF>
            </ns2:capturedPeople>
        </ns2:mediaCapture>
        <ns2:mediaCapture 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:type="ns2:videoCaptureType" 
         mediaType="video" captureID="VC2">            
            <ns2:captureSceneIDREF>CS1</ns2:captureSceneIDREF>
            <ns2:encGroupIDREF>EG0</ns2:encGroupIDREF>
            <ns2:spatialInformation>
                <ns2:capturePoint>
                    <ns2:x>0.5</ns2:x>
                    <ns2:y>1.0</ns2:y>
                    <ns2:z>0.5</ns2:z>
                    <ns2:lineOfCapturePoint>
                        <ns2:x>0.5</ns2:x>
                        <ns2:y>0.0</ns2:y>
                        <ns2:z>0.5</ns2:z>
                    </ns2:lineOfCapturePoint>
                </ns2:capturePoint>
            </ns2:spatialInformation>
            <ns2:individual>true</ns2:individual>
            <ns2:description lang="en">right camera video capture
            </ns2:description>
            <ns2:priority>1</ns2:priority>
            <ns2:lang>it</ns2:lang>
            <ns2:mobility>static</ns2:mobility>
            <ns2:view>individual</ns2:view>
            <ns2:capturedPeople>
                <ns2:personIDREF>bob</ns2:personIDREF>
            </ns2:capturedPeople>
        </ns2:mediaCapture>
        <ns2:mediaCapture 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:type="ns2:videoCaptureType" 
         mediaType="video" captureID="VC3">            
            <ns2:captureSceneIDREF>CS1</ns2:captureSceneIDREF>
            <ns2:encGroupIDREF>EG0</ns2:encGroupIDREF>
            <ns2:nonSpatiallyDefinable>true</ns2:nonSpatiallyDefinable>
            <ns2:composed>false</ns2:composed>
            <ns2:switched>true</ns2:switched>
            <ns2:policy>Soundlevel:0</ns2:policy>
            <ns2:maxCaptures>1</ns2:maxCaptures>
            <ns2:description lang="en">
             loudest room segment</ns2:description>
            <ns2:priority>1</ns2:priority>
            <ns2:lang>it</ns2:lang>
            <ns2:mobility>static</ns2:mobility>
            <ns2:view>individual</ns2:view>
        </ns2:mediaCapture>
        <ns2:mediaCapture 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:type="ns2:videoCaptureType" 
         mediaType="video" captureID="VC4">            
            <ns2:captureSceneIDREF>CS1</ns2:captureSceneIDREF>
            <ns2:encGroupIDREF>EG0</ns2:encGroupIDREF>
            <ns2:spatialInformation>
                <ns2:capturePoint>
                    <ns2:x>0.5</ns2:x>
                    <ns2:y>1.0</ns2:y>
                    <ns2:z>0.5</ns2:z>
                    <ns2:lineOfCapturePoint>
                        <ns2:x>0.5</ns2:x>
                        <ns2:y>0.0</ns2:y>
                        <ns2:z>0.5</ns2:z>
                    </ns2:lineOfCapturePoint>
                </ns2:capturePoint>
            </ns2:spatialInformation>
            <ns2:individual>true</ns2:individual>
            <ns2:description lang="en">zoomed out view of all people in 
            the room
            </ns2:description>
            <ns2:priority>1</ns2:priority>
            <ns2:lang>it</ns2:lang>
            <ns2:mobility>static</ns2:mobility>
            <ns2:view>room</ns2:view>
            <ns2:capturedPeople>
                <ns2:personIDREF>alice</ns2:personIDREF>
                <ns2:personIDREF>bob</ns2:personIDREF>
                <ns2:personIDREF>ciccio</ns2:personIDREF>
            </ns2:capturedPeople>
        </ns2:mediaCapture>
    </mediaCaptures>
    <encodingGroups>
        <ns2:encodingGroup encodingGroupID="EG0">
            <ns2:maxGroupBandwidth>600000</ns2:maxGroupBandwidth>
            <ns2:encodingIDList>
                <ns2:encID>ENC1</ns2:encID>
                <ns2:encID>ENC2</ns2:encID>
                <ns2:encID>ENC3</ns2:encID>
            </ns2:encodingIDList>
        </ns2:encodingGroup>
        <ns2:encodingGroup encodingGroupID="EG1">
            <ns2:maxGroupBandwidth>300000</ns2:maxGroupBandwidth>
            <ns2:encodingIDList>
                <ns2:encID>ENC4</ns2:encID>
                <ns2:encID>ENC5</ns2:encID>
            </ns2:encodingIDList>
        </ns2:encodingGroup>
    </encodingGroups>
    <captureScenes>
        <ns2:captureScene scale="unknown" sceneID="CS1">
            <ns2:sceneViews>
                <ns2:sceneView sceneViewID="SE1">
                    <ns2:mediaCaptureIDs>
                        <ns2:captureIDREF>VC0</ns2:captureIDREF>
                        <ns2:captureIDREF>VC1</ns2:captureIDREF>
                        <ns2:captureIDREF>VC2</ns2:captureIDREF>
                    </ns2:mediaCaptureIDs>
                </ns2:sceneView>
                <ns2:sceneView sceneViewID="SE2">
                    <ns2:mediaCaptureIDs>
                        <ns2:captureIDREF>VC3</ns2:captureIDREF>
                    </ns2:mediaCaptureIDs>
                </ns2:sceneView>
                <ns2:sceneView sceneViewID="SE3">
                    <ns2:mediaCaptureIDs>
                        <ns2:captureIDREF>VC4</ns2:captureIDREF>
                    </ns2:mediaCaptureIDs>
                </ns2:sceneView>
                <ns2:sceneView sceneViewID="SE4">
                    <ns2:mediaCaptureIDs>
                        <ns2:captureIDREF>VC4</ns2:captureIDREF>
                    </ns2:mediaCaptureIDs>
                </ns2:sceneView>
            </ns2:sceneViews>
        </ns2:captureScene>
    </captureScenes>
    <simultaneousSets>
        <ns2:simultaneousSet setID="SS1">
            <ns2:mediaCaptureIDREF>VC3</ns2:mediaCaptureIDREF>
            <ns2:sceneViewIDREF>SE1</ns2:sceneViewIDREF>
        </ns2:simultaneousSet>
        <ns2:simultaneousSet setID="SS2">
            <ns2:mediaCaptureIDREF>VC0</ns2:mediaCaptureIDREF>
            <ns2:mediaCaptureIDREF>VC2</ns2:mediaCaptureIDREF>
            <ns2:mediaCaptureIDREF>VC4</ns2:mediaCaptureIDREF>
            <ns2:mediaCaptureIDREF>VC3</ns2:mediaCaptureIDREF>
        </ns2:simultaneousSet>
    </simultaneousSets>
    <people>
        <ns2:person personID="bob">
            <ns2:personInfo>
                <ns3:fn>
                    <ns3:text>Bob</ns3:text>
                </ns3:fn>
            </ns2:personInfo>
            <ns2:personType>minute taker</ns2:personType>
        </ns2:person>
        <ns2:person personID="alice">
            <ns2:personInfo>
                <ns3:fn>
                    <ns3:text>Alice</ns3:text>
                </ns3:fn>
            </ns2:personInfo>
            <ns2:personType>presenter</ns2:personType>
        </ns2:person>
        <ns2:person personID="ciccio">
            <ns2:personInfo>
                <ns3:fn>
                    <ns3:text>Ciccio</ns3:text>
                </ns3:fn>
            </ns2:personInfo>
            <ns2:personType>chairman</ns2:personType>
            <ns2:personType>timekeeper</ns2:personType>
        </ns2:person>
    </people>
</advertisement>
  
	]]>
</artwork>
</figure>
</t>

</section>
<section title="ADV with MCCs">
<t>The associated Media Provider's telepresence capabilities are described in 
<xref target="I-D.ietf-clue-data-model-schema" />, Section "MCC example".
</t>
<t>
<figure>
 <artwork>
  <![CDATA[
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<advertisement xmlns="urn:ietf:params:xml:ns:clue-protocol" 
 xmlns:ns2="urn:ietf:params:xml:ns:clue-info" 
 xmlns:ns3="urn:ietf:params:xml:ns:vcard-4.0" protocol="CLUE" v="0.4">
    <clueId>Napoli CLUE Endpoint</clueId>
    <sequenceNr>34</sequenceNr>
    <mediaCaptures>
        <ns2:mediaCapture 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:type="ns2:videoCaptureType" mediaType="video" 
         captureID="AC0">            
            <ns2:captureSceneIDREF>CS1</ns2:captureSceneIDREF>
            <ns2:encGroupIDREF>EG1</ns2:encGroupIDREF>
            <ns2:spatialInformation>
                <ns2:capturePoint>
                    <ns2:x>0.5</ns2:x>
                    <ns2:y>1.0</ns2:y>
                    <ns2:z>0.5</ns2:z>
                    <ns2:lineOfCapturePoint>
                        <ns2:x>0.5</ns2:x>
                        <ns2:y>0.0</ns2:y>
                        <ns2:z>0.5</ns2:z>
                    </ns2:lineOfCapturePoint>
                </ns2:capturePoint>
            </ns2:spatialInformation>
            <ns2:individual>true</ns2:individual>
            <ns2:description lang="en">
             main audio from the room</ns2:description>
            <ns2:priority>1</ns2:priority>
            <ns2:lang>it</ns2:lang>
            <ns2:mobility>static</ns2:mobility>
            <ns2:view>room</ns2:view>
            <ns2:capturedPeople>
                <ns2:personIDREF>alice</ns2:personIDREF>
                <ns2:personIDREF>bob</ns2:personIDREF>
                <ns2:personIDREF>ciccio</ns2:personIDREF>
            </ns2:capturedPeople>
        </ns2:mediaCapture>
        <ns2:mediaCapture 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:type="ns2:videoCaptureType" 
         captureID="VC0" mediaType="video" >            
            <ns2:captureSceneIDREF>CS1</ns2:captureSceneIDREF>
            <ns2:encGroupIDREF>EG0</ns2:encGroupIDREF>
            <ns2:spatialInformation>
                <ns2:capturePoint>
                    <ns2:x>0.5</ns2:x>
                    <ns2:y>1.0</ns2:y>
                    <ns2:z>0.5</ns2:z>
                    <ns2:lineOfCapturePoint>
                        <ns2:x>0.5</ns2:x>
                        <ns2:y>0.0</ns2:y>
                        <ns2:z>0.5</ns2:z>
                    </ns2:lineOfCapturePoint>
                </ns2:capturePoint>
            </ns2:spatialInformation>
            <ns2:individual>true</ns2:individual>
            <ns2:description lang="en">
            left camera video capture</ns2:description>
            <ns2:priority>1</ns2:priority>
            <ns2:lang>it</ns2:lang>
            <ns2:mobility>static</ns2:mobility>
            <ns2:view>individual</ns2:view>
            <ns2:capturedPeople>
                <ns2:personIDREF>ciccio</ns2:personIDREF>
            </ns2:capturedPeople>
        </ns2:mediaCapture>
        <ns2:mediaCapture 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:type="ns2:videoCaptureType" 
        captureID="VC1" mediaType="video">            
            <ns2:captureSceneIDREF>CS1</ns2:captureSceneIDREF>
            <ns2:encGroupIDREF>EG0</ns2:encGroupIDREF>
            <ns2:spatialInformation>
                <ns2:capturePoint>
                    <ns2:x>0.5</ns2:x>
                    <ns2:y>1.0</ns2:y>
                    <ns2:z>0.5</ns2:z>
                    <ns2:lineOfCapturePoint>
                        <ns2:x>0.5</ns2:x>
                        <ns2:y>0.0</ns2:y>
                        <ns2:z>0.5</ns2:z>
                    </ns2:lineOfCapturePoint>
                </ns2:capturePoint>
            </ns2:spatialInformation>
            <ns2:individual>true</ns2:individual>
            <ns2:description lang="en">central camera video capture
            </ns2:description>
            <ns2:priority>1</ns2:priority>
            <ns2:lang>it</ns2:lang>
            <ns2:mobility>static</ns2:mobility>
            <ns2:view>individual</ns2:view>
            <ns2:capturedPeople>
                <ns2:personIDREF>alice</ns2:personIDREF>
            </ns2:capturedPeople>
        </ns2:mediaCapture>
        <ns2:mediaCapture 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:type="ns2:videoCaptureType" 
        captureID="VC2" mediaType="video" >            
            <ns2:captureSceneIDREF>CS1</ns2:captureSceneIDREF>
            <ns2:encGroupIDREF>EG0</ns2:encGroupIDREF>
            <ns2:spatialInformation>
                <ns2:capturePoint>
                    <ns2:x>0.5</ns2:x>
                    <ns2:y>1.0</ns2:y>
                    <ns2:z>0.5</ns2:z>
                    <ns2:lineOfCapturePoint>
                        <ns2:x>0.5</ns2:x>
                        <ns2:y>0.0</ns2:y>
                        <ns2:z>0.5</ns2:z>
                    </ns2:lineOfCapturePoint>
                </ns2:capturePoint>
            </ns2:spatialInformation>
            <ns2:individual>true</ns2:individual>
            <ns2:description lang="en">right camera video capture
            </ns2:description>
            <ns2:priority>1</ns2:priority>
            <ns2:lang>it</ns2:lang>
            <ns2:mobility>static</ns2:mobility>
            <ns2:view>individual</ns2:view>
            <ns2:capturedPeople>
                <ns2:personIDREF>bob</ns2:personIDREF>
            </ns2:capturedPeople>
        </ns2:mediaCapture>
        <ns2:mediaCapture 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:type="ns2:videoCaptureType" 
        captureID="VC3" mediaType="video" >            
            <ns2:captureSceneIDREF>CS1</ns2:captureSceneIDREF>
            <ns2:encGroupIDREF>EG0</ns2:encGroupIDREF>
            <ns2:nonSpatiallyDefinable>true</ns2:nonSpatiallyDefinable>
            <ns2:content>
                <ns2:sceneViewIDREF>SE1</ns2:sceneViewIDREF>
            </ns2:content>
            <ns2:policy>Soundlevel:0</ns2:policy>
            <ns2:maxCaptures>1</ns2:maxCaptures>
            <ns2:allowSubsetChoice>false</ns2:allowSubsetChoice>
            <ns2:description lang="en">
            loudest room segment</ns2:description>
            <ns2:priority>1</ns2:priority>
            <ns2:lang>it</ns2:lang>
            <ns2:mobility>static</ns2:mobility>
            <ns2:view>individual</ns2:view>
        </ns2:mediaCapture>
        <ns2:mediaCapture 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:type="ns2:videoCaptureType"  
        captureID="VC4" mediaType="video">            
            <ns2:captureSceneIDREF>CS1</ns2:captureSceneIDREF>
            <ns2:encGroupIDREF>EG0</ns2:encGroupIDREF>
            <ns2:spatialInformation>
                <ns2:capturePoint>
                    <ns2:x>0.5</ns2:x>
                    <ns2:y>1.0</ns2:y>
                    <ns2:z>0.5</ns2:z>
                    <ns2:lineOfCapturePoint>
                        <ns2:x>0.5</ns2:x>
                        <ns2:y>0.0</ns2:y>
                        <ns2:z>0.5</ns2:z>
                    </ns2:lineOfCapturePoint>
                </ns2:capturePoint>
            </ns2:spatialInformation>
            <ns2:individual>true</ns2:individual>
            <ns2:description lang="en">
            zoomed out view of all people in the room
            </ns2:description>
            <ns2:priority>1</ns2:priority>
            <ns2:lang>it</ns2:lang>
            <ns2:mobility>static</ns2:mobility>
            <ns2:view>room</ns2:view>
            <ns2:capturedPeople>
                <ns2:personIDREF>alice</ns2:personIDREF>
                <ns2:personIDREF>bob</ns2:personIDREF>
                <ns2:personIDREF>ciccio</ns2:personIDREF>
            </ns2:capturedPeople>
        </ns2:mediaCapture>
        <ns2:mediaCapture 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:type="ns2:videoCaptureType"  
        captureID="VC5" mediaType="video">            
            <ns2:captureSceneIDREF>CS1</ns2:captureSceneIDREF>
            <ns2:nonSpatiallyDefinable>true</ns2:nonSpatiallyDefinable>
            <ns2:content>
                <ns2:sceneViewIDREF>SE1</ns2:sceneViewIDREF>
            </ns2:content>
            <ns2:policy>Soundlevel:1</ns2:policy>
            <ns2:maxCaptures>1</ns2:maxCaptures>
            <ns2:allowSubsetChoice>false</ns2:allowSubsetChoice>
            <ns2:description lang="en">penultimate loudest room segment
            </ns2:description>
            <ns2:priority>1</ns2:priority>
            <ns2:lang>it</ns2:lang>
            <ns2:mobility>static</ns2:mobility>
            <ns2:view>individual</ns2:view>
        </ns2:mediaCapture>
        <ns2:mediaCapture 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:type="ns2:videoCaptureType"  
        captureID="VC6" mediaType="video">            
            <ns2:captureSceneIDREF>CS1</ns2:captureSceneIDREF>
            <ns2:nonSpatiallyDefinable>true</ns2:nonSpatiallyDefinable>
            <ns2:content>
                <ns2:sceneViewIDREF>SE1</ns2:sceneViewIDREF>
            </ns2:content>
            <ns2:composed>false</ns2:composed>
            <ns2:switched>true</ns2:switched>
            <ns2:policy>Soundlevel:2</ns2:policy>
            <ns2:maxCaptures>1</ns2:maxCaptures>
            <ns2:allowSubsetChoice>false</ns2:allowSubsetChoice>
            <ns2:description lang="en">last but two loudest room segment
            </ns2:description>
            <ns2:priority>1</ns2:priority>
            <ns2:lang>it</ns2:lang>
            <ns2:mobility>static</ns2:mobility>
            <ns2:view>individual</ns2:view>
        </ns2:mediaCapture>
        <ns2:mediaCapture 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:type="ns2:videoCaptureType" 
        captureID="VC7" mediaType="video">            
            <ns2:captureSceneIDREF>CS1</ns2:captureSceneIDREF>
            <ns2:nonSpatiallyDefinable>true</ns2:nonSpatiallyDefinable>
            <ns2:content>
                <ns2:captureIDREF>VC3</ns2:captureIDREF>
                <ns2:captureIDREF>VC5</ns2:captureIDREF>
                <ns2:captureIDREF>VC6</ns2:captureIDREF>
            </ns2:content>
            <ns2:composed>true</ns2:composed>
            <ns2:switched>true</ns2:switched>
            <ns2:maxCaptures>1</ns2:maxCaptures>
            <ns2:allowSubsetChoice>false</ns2:allowSubsetChoice>
            <ns2:description lang="en">
            big picture of the current speaker + 
            pips about previous speakers</ns2:description>
            <ns2:priority>1</ns2:priority>
            <ns2:lang>it</ns2:lang>
            <ns2:mobility>static</ns2:mobility>
            <ns2:view>individual</ns2:view>
        </ns2:mediaCapture>
    </mediaCaptures>
    <encodingGroups>
        <ns2:encodingGroup encodingGroupID="EG0">
            <ns2:maxGroupBandwidth>600000</ns2:maxGroupBandwidth>
            <ns2:encodingIDList>
                <ns2:encID>ENC1</ns2:encID>
                <ns2:encID>ENC2</ns2:encID>
                <ns2:encID>ENC3</ns2:encID>
            </ns2:encodingIDList>
        </ns2:encodingGroup>
        <ns2:encodingGroup encodingGroupID="EG1">
            <ns2:maxGroupBandwidth>300000</ns2:maxGroupBandwidth>
            <ns2:encodingIDList>
                <ns2:encID>ENC4</ns2:encID>
                <ns2:encID>ENC5</ns2:encID>
            </ns2:encodingIDList>
        </ns2:encodingGroup>
    </encodingGroups>
    <captureScenes>
        <ns2:captureScene scale="unknown" sceneID="CS1">
            <ns2:sceneViews>
                <ns2:sceneView sceneViewID="SE1">
                    <ns2:description lang="en">
                    participants' individual videos
                    </ns2:description>
                    <ns2:mediaCaptureIDs>
                        <ns2:captureIDREF>VC0</ns2:captureIDREF>
                        <ns2:captureIDREF>VC1</ns2:captureIDREF>
                        <ns2:captureIDREF>VC2</ns2:captureIDREF>
                    </ns2:mediaCaptureIDs>
                </ns2:sceneView>
                <ns2:sceneView sceneViewID="SE2">
                    <ns2:description lang="en">
                    loudest segment of the room
                    </ns2:description>
                    <ns2:mediaCaptureIDs>
                        <ns2:captureIDREF>VC3</ns2:captureIDREF>
                    </ns2:mediaCaptureIDs>
                </ns2:sceneView>
                <ns2:sceneView sceneViewID="SE5">
                    <ns2:description lang="en">loudest segment 
                    of the room + pips</ns2:description>
                    <ns2:mediaCaptureIDs>
                        <ns2:captureIDREF>VC7</ns2:captureIDREF>
                    </ns2:mediaCaptureIDs>
                </ns2:sceneView>
                <ns2:sceneView sceneViewID="SE4">
                    <ns2:description lang="en">
                    room audio</ns2:description>
                    <ns2:mediaCaptureIDs>
                        <ns2:captureIDREF>AC0</ns2:captureIDREF>
                    </ns2:mediaCaptureIDs>
                </ns2:sceneView>
                <ns2:sceneView sceneViewID="SE3">
                    <ns2:description lang="en">
                    room video</ns2:description>
                    <ns2:mediaCaptureIDs>
                        <ns2:captureIDREF>VC4</ns2:captureIDREF>
                    </ns2:mediaCaptureIDs>
                </ns2:sceneView>
            </ns2:sceneViews>
        </ns2:captureScene>
    </captureScenes>
    <simultaneousSets>
        <ns2:simultaneousSet setID="SS1">
            <ns2:mediaCaptureIDREF>VC7</ns2:mediaCaptureIDREF>
            <ns2:sceneViewIDREF>SE1</ns2:sceneViewIDREF>
        </ns2:simultaneousSet>
        <ns2:simultaneousSet setID="SS2">
            <ns2:mediaCaptureIDREF>VC0</ns2:mediaCaptureIDREF>
            <ns2:mediaCaptureIDREF>VC2</ns2:mediaCaptureIDREF>
            <ns2:mediaCaptureIDREF>VC4</ns2:mediaCaptureIDREF>
            <ns2:mediaCaptureIDREF>VC7</ns2:mediaCaptureIDREF>
        </ns2:simultaneousSet>
    </simultaneousSets>
    <people>
        <ns2:person personID="bob">
            <ns2:personInfo>
                <ns3:fn>
                    <ns3:text>Bob</ns3:text>
                </ns3:fn>
            </ns2:personInfo>
            <ns2:personType>minute taker</ns2:personType>
        </ns2:person>
        <ns2:person personID="alice">
            <ns2:personInfo>
                <ns3:fn>
                    <ns3:text>Alice</ns3:text>
                </ns3:fn>
            </ns2:personInfo>
            <ns2:personType>presenter</ns2:personType>
        </ns2:person>
        <ns2:person personID="ciccio">
            <ns2:personInfo>
                <ns3:fn>
                    <ns3:text>Ciccio</ns3:text>
                </ns3:fn>
            </ns2:personInfo>
            <ns2:personType>chairman</ns2:personType>
            <ns2:personType>timekeeper</ns2:personType>
        </ns2:person>
    </people>
</advertisement>  
	]]>
</artwork>
</figure>
</t>
</section>
</section>

<section title="Security Considerations">

<t>
As a general consideration, we remark that the CLUE framework 
(and related protocol)
has been conceived at the outset by embracing the security-by-design 
paradigm.
This entails that a number of requirements have been identified and 
properly standardized as mandatory within the entire set of documents 
associated with the CLUE architecture. 

Requirements include: (i) the use of cryptography and authentication; 
(ii) protection of all sensitive fields; (iii) mutual authentication 
between CLUE endpoints; (iv) the presence of authorization mechanisms; 
(v) the presence of native defence mechanisms against malicious 
activities such as eavesdropping, selective modification, deletion, 
replay (and related combinations thereof).

Hence, security of the single components of 
the CLUE solution cannot be evaluated independently of the integrated 
view of the final architecture. 
</t>


<t>
The CLUE protocol is an application-level protocol allowing a Media 
Producer and a Media Consumer to negotiate a variegated set of 
parameters associated with the establishment of a telepresence session. 
This unavoidably exposes a CLUE-enabled telepresence system to a number 
of potential threats, most of which are extensively discussed in the 
framework document <xref target="I-D.ietf-clue-framework" />. 
The security considerations section of the mentioned document actually 
discusses issues associated with the setup and management of a 
telepresence session both in the basic case involving two CLUE endpoints
 acting, respectively, as MP and MC, and in the more advanced scenario
  envisaging the presence of an MCU.
</t>

<t>
The framework document also mentions that the information carried within CLUE 
protocol messages might contain sensitive data, which SHOULD hence be accessed 
only by authenticated endpoints. Security issues associated with the CLUE data
model schema are discussed in <xref target="I-D.ietf-clue-data-model-schema" />.
</t>

<t>
There is extra information carried by the CLUE protocol which is not 
associated with the CLUE data model schema and which exposes 
information that might be of concern.  This information is primarily 
exchanged during the options negotiation phase. 
In the Clue Participant state machine OPTIONS state, both parties 
agree on the version and on the options to be used in the subsequent 
CLUE messages exchange phase. A malicious participant might either try 
to retrieve a detailed footprint of a specific CLUE protocol 
implementation during this initial setup phase, or force the 
communicating party to use a non-up-to-date version of the protocol 
which they know how to break. 
Indeed, exposing all of the supported versions and options could 
conceivably leak information about the specific implementation of the 
protocol. In theory an implementation could choose not to announce all 
of the versions it supports if it wants to avoid such leakage, though at
 the expenses of interoperability.  
With respect to the above considerations, it is noted that the OPTIONS 
state is only reached after the CLUE data channel has been successfully 
set up. This ensures that only authenticated parties can exchange 
OPTIONS and related OPTIONS RESPONSE messages and hence drastically 
reduces the attack surface which is exposed to malicious parties.
</t>

<t>
The CLUE framework clearly states the requirement to protect CLUE 
protocol messages against threats deriving from the presence of a 
malicious agent capable to gain access to the CLUE data channel. 
Such a requirement is met by the CLUE data channel solution described 
in <xref target="I-D.ietf-clue-datachannel"/>, which ensures protection
 from both message recovery and message tampering. 

With respect to this last point, any implementation of the CLUE protocol
 compliant with the CLUE specification MUST rely on the exchange of 
messages which flow on top of a reliable and ordered SCTP over DTLS 
transport channel connecting two CLUE Participants.
</t>


<!-- Removed in version -09 based on WG mailing list discussion -->
<!--    
<t>

 As a final consideration, we remark that policy-based management of a
 CLUE-compliant telepresence architecture, though not in the scope of
 the CLUE WG charter, can easily be realized. To the purpose, common 
 Role-Based Access Control (RBAC) approaches can be leveraged.  
 In RBAC, the following elements are identified: (i) Users; (ii) Roles; 
 (iii) Objects; (iv) Operations; (v) Permissions.  
 For all of the above elements, a direct mapping exists onto the main
 CLUE entities. As an example, RBAC objects map onto CLUE data model 
 objects and RBAC operations map onto CLUE protocol operations.
 Future documents can define an RBAC framework for CLUE, by first 
 focusing on the definition of roles and then specifying the needed
 permission policy sets and role policy sets (used to associate policy
 permission sets with specific roles).  With these policies in place,
 access to information compliant with the CLUE data model can
 be appropriately controlled.  As far as assigning users to roles, the
 Users in the RBAC model relate directly to the &lt;people&gt; element in the
 CLUE object. The &lt;people&gt; element is comprised of &lt;person&gt;
 elements representing a specific user in the telepresence system.
 Each &lt;person&gt; element contains a 'personID' attribute acting as a unique
 identifier and a &lt;personType&gt; element describing their role in the CLUE
 session ("presenter", "timekeeper", "attendee", "minute taker", "translator", 
 "chairman", "vice-chairman") .  Thus, each authorized user can be associated 
 with a well-defined role in the RBAC model.

</t>
 -->

</section>


<section title="IANA Considerations">
<t>
This document registers a new XML namespace, a new XML schema  and
   the MIME type for the schema.  
This document also registers the "CLUE" Application Service tag 
and the "CLUE" Application Protocol tag and 
defines registries for the CLUE messages and response codes.
</t>
<section title="URN Sub-Namespace Registration">
<t>
This section registers a new XML namespace,
<spanx style="verb">"urn:ietf:params:xml:ns:clue-protocol"</spanx>.
</t>
<t>
URI: urn:ietf:params:xml:ns:clue-protocol
</t>
<t>
Registrant Contact: 
IETF CLUE working group (clue@ietf.org), 
Simon Pietro Romano (spromano@unina.it).
</t>
<t>
XML:
</t>
<t>
<figure>
<artwork>
<![CDATA[
BEGIN
 <?xml version="1.0"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
   <head>
     <title>CLUE Messages</title>
   </head>
   <body>
     <h1>Namespace for CLUE Messages</h1>
     <h2>urn:ietf:params:xml:ns:clue-protocol</h2>
[[NOTE TO IANA/RFC-EDITOR: Please update RFC URL and replace XXXX
    with the RFC number for this specification.]]     
     <p>See <a href="[[RFC URL]]">
        RFCXXXX</a>.</p>
   </body>
 </html>
END
]]>
</artwork>
</figure>
</t>
</section>

<section title="XML Schema registration">
<t>
This section registers an XML schema per the guidelines in <xref target="RFC3688"/>.
</t>
<t>
URI:
urn:ietf:params:xml:schema:clue-protocol
</t>
<t>
Registrant Contact:  
CLUE working group (clue@ietf.org), 
Simon Pietro Romano (spromano@unina.it).
</t>
<t>
Schema:
The XML for this schema can be found as the entirety of
<xref target="sec-schema"/> of this document.
</t>

</section>

<section title="MIME Media Type Registration for 'application/clue+xml'">
<t>This section registers the <spanx style="verb">
"application/clue+xml"</spanx> MIME type.
</t>

<t>To:  ietf-types@iana.org</t>
<t>Subject:  
Registration of MIME media type application/clue+xml
</t>
<t>MIME media type name:  
application</t>
<t>MIME subtype name:  clue+xml</t>   
<t>Required parameters:  (none)</t>
<t>Optional parameters:  charset <vspace/>
Same as the charset parameter of "application/xml" as specified in
<xref target="RFC7303"/>, Section 3.2.
</t>
<t>Encoding considerations:  
Same as the encoding considerations of
"application/xml" as specified in <xref target="RFC7303"/>, Section 3.2.
</t>   
<t>Security considerations:  
This content type is designed to carry
protocol data related to telepresence session control.  Some of the data
could be considered private.  This media type does not provide any
protection and thus other mechanisms such as those described in
Section Security are required to protect the data.  This media type does
not contain executable content.
</t>      
<t>Interoperability considerations:  None.
</t>
<t>Published specification:  
RFC XXXX 
[[NOTE TO IANA/RFC-EDITOR: 
Please replace XXXX with the RFC number for this specification.]]
</t>
<t>Applications that use this media type:  
CLUE participants.
</t>   
<t>Additional Information:  
Magic Number(s): (none), <vspace/>
File extension(s): .xml, <vspace/>
Macintosh File Type Code(s): TEXT. <vspace/>
</t>
<t>Person &amp; email address to contact for further information:  
Simon Pietro Romano (spromano@unina.it).
</t>
<t>Intended usage:  
LIMITED USE
</t>
<t>Author/Change controller:
The IETF
</t>   
<t>Other information:  
This media type is a specialization of 
application/xml <xref target="RFC7303"/>, and many of the considerations
described there also apply to application/clue+xml.
</t>

</section>

<section title="CLUE Protocol Registry">
<t>
The document requests that the IANA creates new registries for CLUE messages and response codes.
</t>
<section title="CLUE Message Types">
<t>
The following summarizes the registry for CLUE messages:
</t>
<t>
Related Registry:   CLUE Message Types Registry
</t>
<t>
Defining RFC:
RFC XXXX 
[[NOTE TO IANA/RFC-EDITOR: 
Please replace XXXX with the RFC number for this specification.]]
</t>
<t>
Registration/Assignment Procedures:  Following the policies outlined
in <xref target="RFC5226"/>, the IANA policy for assigning new values for the
CLUE message types for the CLUE protocol is Specification Required.
</t>
<t>
Registrant Contact:  
IETF CLUE working group (clue@ietf.org), 
Simon Pietro Romano (spromano@unina.it).
</t>
<t>
The initial Message table is populated using the 
CLUE messages described in <xref target="sec-messages"/>
and defined in the XML schema in <xref target="sec-schema"/>.
</t>

<texttable title="IANA-CLUE">
<ttcol>Message</ttcol>
<ttcol>Description</ttcol>
<ttcol>Reference</ttcol>
<c>options</c>
<c>"OPTIONS" in this document. Sent by the CI to the CR  in the initiation 
phase to specify the roles played by the CI, 
the supported versions and the supported protocol options.</c>
<c>RFCXXXX</c>
<c>optionsResponse</c>
<c>"OPTIONS RESPONSE" in this document. Sent by the CI to the CR in reply to an OPTIONS message 
to finally estabilsh the 
version and the options to be used in the following CLUE messages 
exchange.</c>
<c>RFCXXXX</c>
<c>advertisement</c>
<c>"ADVERTISEMENT" or "ADV" in this document. Sent by the MP to the MC to specify the telepresence capabilities
of the MP expressed according to the CLUE framework.</c>
<c>RFCXXXX</c>
<c>ack</c>
<c>"ACK" in this document. Sent by the MC to the MP to acknowledge the reception of 
an ADVERTISEMENT message.</c>
<c>RFCXXXX</c>
<c>configure</c>
<c>"CONFIGURE" or "CONF" in this document. Sent by the MC to the MP to specify the desired media captures
among those specified in the ADVERTISEMENT.</c>
<c>RFCXXXX</c>
<c>configureResponse</c>
<c>"CONFIGURE RESPONSE" or "CONF RESPONSE" in this document. Sent by the MP to the MC in reply to a CONFIGURE message to 
communicate if the configuration request has been successfully 
processed or not.</c>
<c>RFCXXXX</c>
</texttable>


</section>
<section title="CLUE Response Codes">
<t>
The following summarizes the requested registry for CLUE response codes:
</t>
<t>
Related Registry:   CLUE Response Code Registry
</t>
<t>
Defining RFC:
RFC XXXX 
[[NOTE TO IANA/RFC-EDITOR: 
Please replace XXXX with the RFC number for this specification.]]
</t>
<t>
Registration/Assignment Procedures:  Following the policies outlined
in <xref target="RFC5226"/>, the IANA policy for assigning new values for the
Response codes for CLUE shall be Specification Required.
</t>   
<t>
Registrant Contact:  
IETF CLUE working group (clue@ietf.org), 
Simon Pietro Romano (spromano@unina.it).
</t>
<t>  
The initial Response-code table is populated using the 
Response codes defined in <xref target="sec-resp-codes"/> 
as follows:
</t>

<texttable>
<ttcol>Number</ttcol>
<ttcol>Default Response String</ttcol>
<ttcol>Description</ttcol>
<ttcol>Reference</ttcol>
<c>200</c>
<c>Success</c>
<c>The request has been successfully processed.</c>
<c>RFCXXXX</c>
<c>300</c>
<c>Syntax errors and inconsistencies</c>
<c>
The XML syntax of the message
is not correct or there are 
invalid values.
</c>
<c>RFCXXXX</c>
<c>301</c>
<c>Bad syntax</c>
<c>The XML syntax of the message 
is not correct.</c>
<c>RFCXXXX</c>
<c>302</c>
<c>Invalid value</c>
<c>The message contains an 
invalid parameter value.</c>
<c>RFCXXXX</c>
<c>303</c>
<c>Conficting values</c>
<c>The message contains values
that cannot be used together.</c>
<c>RFCXXXX</c>
<c>400</c>
<c>Semantic errors</c>
<c>Semantic errors in the received
 CLUE protocol message.</c>
 <c>RFCXXXX</c>
 <c>401</c>
 <c>Version not supported</c>
 <c>The protocol version
 used in the message
 is not supported.</c>
 <c>RFCXXXX</c>
 <c>402</c>
 <c>Invalid sequencing</c>
 <c>The sequence number of the 
 message is out of date.</c>
 <c>RFCXXXX</c>
 <c>403</c>
 <c>Invalid identifier</c>
 <c>The identifier used in the 
 message is no valid
 or unknown.</c>
 <c>RFCXXXX</c>
 <c>404</c>
 <c>ADV Expired</c>
 <c>The number of the ADV
 the CONF refers to is out
 of date.</c>
 <c>RFCXXXX</c>
 <c>405</c>
 <c>Subset choice not allowed</c>
 <c>The subset choice is not allowed
 for the specified MCC.</c>
<c>RFCXXXX</c>
</texttable>

</section>
</section>
</section>

<section title="Diff with draft-ietf-clue-protocol-06">

<t>
<list style="symbols">
<t>
XML schema definition of &lt;version&gt; has been changed to 
match pattern "X.Y", where X and Y are single digits. 
</t>
<t>
100, 200, 300, 400 defined as catch-all response codes.
</t>
<t>Updates in IANA section.</t>
</list>
</t>

</section>



<section title="Diff with draft-ietf-clue-protocol-05">

<t>
<list style="symbols">
<t>
This document corrects some versioning errors of draft-ietf-clue-protocol-05.
</t>
</list>
</t>

</section>



<section title="Diff with draft-ietf-clue-protocol-04">
<t>
<list style="symbols">
<t>
The document has been revised  based on feedback recevied on the ML. 
No major modification is included in this version.
</t>
</list>
</t>
</section>


<section title="Diff with draft-ietf-clue-protocol-03">

<t>
<list style="symbols">
<t>
Response codes section updated.
</t>
<t>
maxCaptureEncodings removed from examples, allowSubsetChoice added.
</t>
<t>
State machines descriptions aligned with pictures.
</t>
<t>
Applied recommended updates indicated in Christian's review (2015-03-19).
</t>
</list>
</t>
</section>

<section title="Diff with draft-ietf-clue-protocol-02">

<t>
<list style="symbols">
<t>
CLUE Participant state machine: TERMINATED state replaced with IDLE.
</t>
<t>
MP and MC state machines: SDP O/A state removed.
</t>
<t>
Diff mechanism (and related example) removed.
</t>
<t>
Schema updates: versionType used as the data type for all versions fields, 
xs:unsignedInt used as the data type for all sequence number fields, 
diff support removed from the ADV definition.
</t>
</list>
</t>
</section>

<section title="Diff with draft-ietf-clue-protocol-01">

<t>
<list style="symbols">
<t>
The diff mechanism for the ADV message has been introduced.
</t>
<t>
READV and READV RESPONSE message have been both removed.
</t>
<t>
The state machines have been deeply reviewed and changed. 
</t>
<t>
References: references have been updated and splitted into Informative references and
Normative references as in framework v17.
</t>
<t>
Schema: &lt;globalSceneEntries&gt; changed in &lt;globalViews&gt;, &lt;participants&gt;
in &lt;people&gt;
</t>
<t>
Terminology: many definitions added.
</t>
<t>
Response codes updated.
</t>
</list>
</t>
</section>

<section title="Diff with draft-ietf-clue-protocol-00">
<t>
<list style="numbers">
<t>
The XML schema of the ADVERTISEMENT and of the READV have been aligned with the 
current definitions in <xref target="I-D.ietf-clue-data-model-schema"/>
(example of updates: 
&lt;participants&gt; --> &lt;people&gt;, 
&lt;globalCaptureEntries&gt; --> &lt;globalSceneEntries&gt;)
</t>
<t>Text has been added to clarify that, in the OPTIONS RESPONSE, 
when the response code is
not an error response code, both &lt;mediaProvider&gt; and &lt;mediaConsumer&gt;
are mandatory.</t>
<t>
The content of the "v" attribute and of the &lt;version&gt; elements carried
in the OPTIONS and OPTIONS RESPONSE messages has been described more precisely.
</t>
<t>
Advertisement examples have been added.
</t>
</list>
</t>
</section>


<section title="Diff with draft-presta-clue-protocol-04">
<t>
<list style="numbers">
<t>The response code type error in the OPTIONS response (and in other parts) 
has been corrected.</t>
</list>
</t>
</section>

<section title="Diff with draft-presta-clue-protocol-03">
<t>
<list style="numbers">
<t>The XML Schema has been deeply revised and completed.</t>
<t>The descriptions of the CLUE messages have been added.</t>
<t>The distinction between major version numbers and minor version numbers has been cut and pasted from 
<xref target="I-D.ietf-clue-signaling"/>.</t>
<t>Besides the two way one, a three way mechanism for the options negotiation has been proposed and provided to foster discussion.</t>
</list>
</t>
</section>

<section title="Diff with draft-presta-clue-protocol-02">
<t>
<list style="numbers">
<t>"Terminology" section added.</t>
<t>
Introduced the concept of "CLUE Participant" - an Endpoint or a MCU able to 
use the CLUE protocol within a telepresence session. A CLUE Participant can 
act as a Media Provider and/or as a Media Consumer.
</t>
<t>
Introduced the ACK/NACK mechanism for the ADVERTISEMENT.
</t>
<t>MP and MC state machines have been updated. 
The CP state machine has been added.</t>
</list>
</t>
</section><section title="Acknowledgments">
<t>
The authors thank all the CLUErs for their precious feedbacks and support, 
in particular Paul Kyzivat, Christian Groves and Scarlett Liuyan. 
</t>
</section>



  
</middle>
<back>
 
  <references title="Normative References"> 
  
  	<!-- RFC2119, boilerplate text -->
	<?rfc include="reference.RFC.2119"?>
   
    <!-- clue framework -->
    <?rfc include="reference.I-D.ietf-clue-framework"?> 
	
	<!-- clue signaling WG doc-->
	<?rfc include="reference.I-D.ietf-clue-signaling"?>	

	<!-- clue data channel -->
	<?rfc include="reference.I-D.ietf-clue-datachannel"?>
	
	<!-- clue data model -->
	<?rfc include="reference.I-D.ietf-clue-data-model-schema"?>
	
	<!-- RFC3550, rtp -->
	<?rfc include="reference.RFC.3550"?>

	<!-- RFC3688 -->
	<?rfc include="reference.RFC.3688"?>
	
	<!-- RFC3958 -->
	<?rfc include="reference.RFC.3958"?>
		
	<!-- RFC5226 -->
    <?rfc include="reference.RFC.5226"?>
    
    
    <!-- RFC7303 -->		
  	<?rfc include="reference.RFC.7303"?>
  </references>
  
  <references title="Informative References">

    <!-- clue requirements -->
	<?rfc include="reference.RFC.7262"?>
	

	<!-- RFC4353, sip conferencing framework -->
	<?rfc include="reference.RFC.4353"?>
	
	<!-- RFC7667, rtp topologies -->
	<?rfc include="reference.RFC.7667"?>
	
	<!-- RFC6120, XMPP -->
	<?rfc include="reference.RFC.6120"?>
	
	<!-- RFC1122, XMPP -->
	<?rfc include="reference.RFC.1122"?>
	
	
 </references>
  
  
  
</back>

</rfc>
