mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-25 02:32:18 -05:00
0.9
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@1423 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
5faa78762c
commit
38020c4a0c
57
xep-0177.xml
57
xep-0177.xml
@ -6,7 +6,7 @@
|
|||||||
<?xml-stylesheet type='text/xsl' href='xep.xsl'?>
|
<?xml-stylesheet type='text/xsl' href='xep.xsl'?>
|
||||||
<xep>
|
<xep>
|
||||||
<header>
|
<header>
|
||||||
<title>Jingle Raw UDP Transport</title>
|
<title>Jingle Raw UDP Transport Method</title>
|
||||||
<abstract>This document defines a Jingle transport method that results in sending data over a raw User Datagram Protocol (UDP) connection.</abstract>
|
<abstract>This document defines a Jingle transport method that results in sending data over a raw User Datagram Protocol (UDP) connection.</abstract>
|
||||||
&LEGALNOTICE;
|
&LEGALNOTICE;
|
||||||
<number>0177</number>
|
<number>0177</number>
|
||||||
@ -26,6 +26,12 @@
|
|||||||
&scottlu;
|
&scottlu;
|
||||||
&hildjj;
|
&hildjj;
|
||||||
&seanegan;
|
&seanegan;
|
||||||
|
<revision>
|
||||||
|
<version>0.9</version>
|
||||||
|
<date>2007-11-27</date>
|
||||||
|
<initials>psa</initials>
|
||||||
|
<remark><p>Further editorial review.</p></remark>
|
||||||
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
<version>0.8</version>
|
<version>0.8</version>
|
||||||
<date>2007-11-15</date>
|
<date>2007-11-15</date>
|
||||||
@ -100,7 +106,10 @@
|
|||||||
<section2 topic='Transport Initiation' anchor='initiate'>
|
<section2 topic='Transport Initiation' anchor='initiate'>
|
||||||
<p>In order for the initiator in a Jingle exchange to start the negotiation, it MUST send a Jingle "session-initiate" stanza as described in <cite>XEP-0166</cite>. This stanza MUST include at least one content type. If the initiator wishes to negotiate the Raw UDP transport for a given content type, it MUST include a &TRANSPORT; child element qualified by the 'http://www.xmpp.org/extensions/xep-0177.html#ns' namespace &NSNOTE;, which MUST <note>This is required to avoid a round trip and help expedite the negotiation.</note> include the initiator's Raw UDP candidate via the 'ip', 'port', 'generation', and 'name' attributes of the &CANDIDATE; element.</p>
|
<p>In order for the initiator in a Jingle exchange to start the negotiation, it MUST send a Jingle "session-initiate" stanza as described in <cite>XEP-0166</cite>. This stanza MUST include at least one content type. If the initiator wishes to negotiate the Raw UDP transport for a given content type, it MUST include a &TRANSPORT; child element qualified by the 'http://www.xmpp.org/extensions/xep-0177.html#ns' namespace &NSNOTE;, which MUST <note>This is required to avoid a round trip and help expedite the negotiation.</note> include the initiator's Raw UDP candidate via the 'ip', 'port', 'generation', and 'name' attributes of the &CANDIDATE; element.</p>
|
||||||
<example caption="Initiation"><![CDATA[
|
<example caption="Initiation"><![CDATA[
|
||||||
<iq from='romeo@montague.net/orchard' to='juliet@capulet.com/balcony' id='jingle1' type='set'>
|
<iq from='romeo@montague.net/orchard'
|
||||||
|
id='jingle1'
|
||||||
|
to='juliet@capulet.com/balcony'
|
||||||
|
type='set'>
|
||||||
<jingle xmlns='http://www.xmpp.org/extensions/xep-0166.html#ns'
|
<jingle xmlns='http://www.xmpp.org/extensions/xep-0166.html#ns'
|
||||||
action='session-initiate'
|
action='session-initiate'
|
||||||
initiator='romeo@montague.net/orchard'
|
initiator='romeo@montague.net/orchard'
|
||||||
@ -131,16 +140,19 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Permissive</td>
|
<td>Permissive</td>
|
||||||
<td>Server reflexive or peer reflexive candidate discovered via &rfc3489;</td>
|
<td>Server reflexive or peer reflexive candidate discovered via STUN (see &rfc3489; and &rfc3489bis;)</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</section2>
|
</section2>
|
||||||
<section2 topic='Responder Response' anchor='response'>
|
<section2 topic='Responder Response' anchor='response'>
|
||||||
<p>As described in <cite>XEP-0166</cite>, to provisionally accept the session initiation request, the receiver returns an IQ-result:</p>
|
<p>As described in <cite>XEP-0166</cite>, to acknowledge the session initiation request, the responder returns an IQ-result:</p>
|
||||||
<example caption="Responder provisionally accepts the session request"><![CDATA[
|
<example caption="Responder acknowledges the session-initiate request"><![CDATA[
|
||||||
<iq from='juliet@capulet.com/balcony' to='romeo@montague.net/orchard' type='result' id='jingle1'/>
|
<iq from='juliet@capulet.com/balcony'
|
||||||
|
id='jingle1'
|
||||||
|
to='romeo@montague.net/orchard'
|
||||||
|
type='result'/>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>Once the responder provisionally accepts the session, it:</p>
|
<p>Once the responder acknowledges the session initiation request, it:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>MUST attempt to send media data via UDP to the IP and port specified in the initiator's Raw UDP candidate.</li>
|
<li>MUST attempt to send media data via UDP to the IP and port specified in the initiator's Raw UDP candidate.</li>
|
||||||
<li>SHOULD send its own Raw UDP candidate to the initiator via a Jingle "transport-info" message.</li>
|
<li>SHOULD send its own Raw UDP candidate to the initiator via a Jingle "transport-info" message.</li>
|
||||||
@ -153,7 +165,10 @@
|
|||||||
<section3 topic='Sending A Candidate' anchor='response-candidate'>
|
<section3 topic='Sending A Candidate' anchor='response-candidate'>
|
||||||
<p>As noted, the responder SHOULD send its own Raw UDP candidate to the initiator by sending a transport-info message to the initiator, as shown in the following example.</p>
|
<p>As noted, the responder SHOULD send its own Raw UDP candidate to the initiator by sending a transport-info message to the initiator, as shown in the following example.</p>
|
||||||
<example caption="Responder sends its Raw UDP candidate"><![CDATA[
|
<example caption="Responder sends its Raw UDP candidate"><![CDATA[
|
||||||
<iq from='juliet@capulet.com/balcony' to='romeo@montague.net/orchard' id='jingle2' type='set'>
|
<iq from='juliet@capulet.com/balcony'
|
||||||
|
id='jingle2'
|
||||||
|
to='romeo@montague.net/orchard'
|
||||||
|
type='set'>
|
||||||
<jingle xmlns='http://www.xmpp.org/extensions/xep-0166.html#ns'
|
<jingle xmlns='http://www.xmpp.org/extensions/xep-0166.html#ns'
|
||||||
action='transport-info'
|
action='transport-info'
|
||||||
initiator='romeo@montague.net/orchard'
|
initiator='romeo@montague.net/orchard'
|
||||||
@ -168,13 +183,16 @@
|
|||||||
]]></example>
|
]]></example>
|
||||||
<p>The initiator MUST then acknowledge receipt by returning an IQ result (or a standard XMPP error).</p>
|
<p>The initiator MUST then acknowledge receipt by returning an IQ result (or a standard XMPP error).</p>
|
||||||
<example caption="Initiator acknowledges receipt of candidate"><![CDATA[
|
<example caption="Initiator acknowledges receipt of candidate"><![CDATA[
|
||||||
<iq from='romeo@montague.net/orchard' to='juliet@capulet.com/balcony' type='result' id='jingle2'/>
|
<iq from='romeo@montague.net/orchard'
|
||||||
|
id='jingle2'
|
||||||
|
to='juliet@capulet.com/balcony'
|
||||||
|
type='result'/>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>Naturally, the initiator SHOULD also attend to send media to the responder as specified above. This media too may or may not get through, but if it does then the other party SHOULD acknowledge receipt.</p>
|
<p>Naturally, the initiator SHOULD also attempt to send media to the responder as specified above. This media too may or may not get through, but if it does then the other party SHOULD acknowledge receipt.</p>
|
||||||
</section3>
|
</section3>
|
||||||
<section3 topic='Sending An Informational Message' anchor='response-info'>
|
<section3 topic='Sending An Informational Message' anchor='response-info'>
|
||||||
<p>When it attempts to send data to a Raw UDP candidate, a party SHOULD send an informational message of <trying/>.</p>
|
<p>When it attempts to send data to a Raw UDP candidate, a party SHOULD send an informational message of <trying/>.</p>
|
||||||
<example caption="Receiver sends trying message"><![CDATA[
|
<example caption="Responder sends trying message"><![CDATA[
|
||||||
<iq from='juliet@capulet.com/balcony'
|
<iq from='juliet@capulet.com/balcony'
|
||||||
id='trying1'
|
id='trying1'
|
||||||
to='romeo@montague.net/orchard'
|
to='romeo@montague.net/orchard'
|
||||||
@ -207,7 +225,7 @@
|
|||||||
</jingle>
|
</jingle>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
<example caption="Receiver acknowledges received message"><![CDATA[
|
<example caption="Responder acknowledges received message"><![CDATA[
|
||||||
<iq from='juliet@capulet.lit/balcony'
|
<iq from='juliet@capulet.lit/balcony'
|
||||||
id='received1'
|
id='received1'
|
||||||
to='romeo@montague.lit/orchard'
|
to='romeo@montague.lit/orchard'
|
||||||
@ -217,7 +235,7 @@
|
|||||||
</section2>
|
</section2>
|
||||||
|
|
||||||
<section2 topic='Informational Messages' anchor='protocol-info'>
|
<section2 topic='Informational Messages' anchor='protocol-info'>
|
||||||
<p>Informational messages MAY be sent by the either party within the context of the Raw UDP transport to communicate whether the party has attempted to send media or has received media. The informational message MUST be an IQ-set containing a &JINGLE; element of type "session-info", where the informational message is a payload element qualified by the 'http://www.xmpp.org/extensions/xep-0177.html#ns-info' namespace &NSNOTE;. The following payload elements are defined:</p>
|
<p>Informational messages MAY be sent by either party within the context of the Raw UDP transport to communicate whether the party has attempted to send media or has received media. The informational message MUST be an IQ-set containing a &JINGLE; element of type "session-info", where the informational message is a payload element qualified by the 'http://www.xmpp.org/extensions/xep-0177.html#ns-info' namespace &NSNOTE;. The following payload elements are defined:</p>
|
||||||
<table caption='Information Payload Elements'>
|
<table caption='Information Payload Elements'>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Element</th>
|
<th>Element</th>
|
||||||
@ -239,18 +257,18 @@
|
|||||||
<section1 topic='Determining Support' anchor='support'>
|
<section1 topic='Determining Support' anchor='support'>
|
||||||
<p>If an entity supports the Jingle Raw UDP transport, it MUST return a feature of "http://www.xmpp.org/extensions/xep-0177.html#ns" &NSNOTE; in response to &xep0030; information requests.</p>
|
<p>If an entity supports the Jingle Raw UDP transport, it MUST return a feature of "http://www.xmpp.org/extensions/xep-0177.html#ns" &NSNOTE; in response to &xep0030; information requests.</p>
|
||||||
<example caption="Service discovery information request"><![CDATA[
|
<example caption="Service discovery information request"><![CDATA[
|
||||||
<iq type='get'
|
<iq from='romeo@montague.net/orchard'
|
||||||
from='romeo@montague.net/orchard'
|
id='disco1'
|
||||||
to='juliet@capulet.com/balcony'
|
to='juliet@capulet.com/balcony'
|
||||||
id='disco1'>
|
type='get'>
|
||||||
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
<query xmlns='http://jabber.org/protocol/disco#info'/>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
<example caption="Service discovery information response"><![CDATA[
|
<example caption="Service discovery information response"><![CDATA[
|
||||||
<iq type='result'
|
<iq from='juliet@capulet.com/balcony'
|
||||||
from='juliet@capulet.com/balcony'
|
id='disco1'
|
||||||
to='romeo@montague.net/orchard'
|
to='romeo@montague.net/orchard'
|
||||||
id='disco1'>
|
type='result'>
|
||||||
<query xmlns='http://jabber.org/protocol/disco#info'>
|
<query xmlns='http://jabber.org/protocol/disco#info'>
|
||||||
...
|
...
|
||||||
<feature var='http://www.xmpp.org/extensions/xep-0177.html#ns'/>
|
<feature var='http://www.xmpp.org/extensions/xep-0177.html#ns'/>
|
||||||
@ -258,6 +276,7 @@
|
|||||||
</query>
|
</query>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
|
<p>Naturally, support MAY also be determined via the dynamic, presence-based profile of Service Discovery defined in &xep0115;.</p>
|
||||||
</section1>
|
</section1>
|
||||||
|
|
||||||
<section1 topic='Security Considerations' anchor='security'>
|
<section1 topic='Security Considerations' anchor='security'>
|
||||||
|
Loading…
Reference in New Issue
Block a user