This document defines a Jingle transport method that results in sending data over a raw User Datagram Protocol (UDP) connection.
NOTICE: This document is currently within Last Call or under consideration by the XMPP Council for advancement to the next stage in the JSF standards process.
Type: Standards Track
Last Updated: 2006-07-12
Publishing Organization: Jabber Software Foundation
Approving Body: XMPP Council
Dependencies: XMPP Core, XEP-0166
Superseded By: None
Short Name: raw-udp
Wiki Page: <http://wiki.jabber.org/index.php/Jingle Raw UDP Transport (XEP-0177)>
This XMPP Extension Protocol is copyright 1999 - 2006 by the Jabber Software Foundation (JSF) and is in full conformance with the JSF's Intellectual Property Rights Policy <http://www.xmpp.org/extensions/ipr-policy.shtml>. This material may be distributed only subject to the terms and conditions set forth in the Creative Commons Attribution License (<http://creativecommons.org/licenses/by/2.5/>).
The preferred venue for discussion of this document is the Standards-JIG discussion list: <http://mail.jabber.org/mailman/listinfo/standards-jig>.
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) specifications contributed by the Jabber Software Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.
The following keywords as used in this document are to be interpreted as described in RFC 2119: "MUST", "SHALL", "REQUIRED"; "MUST NOT", "SHALL NOT"; "SHOULD", "RECOMMENDED"; "SHOULD NOT", "NOT RECOMMENDED"; "MAY", "OPTIONAL".
Jingle  defines a framework for negotiating and managing out-of-band data sessions over XMPP. In order to provide a flexible framework, the base Jingle specification defines neither data transport methods nor content (session) types, leaving that up to separate specifications. The current document defines a transport method for establishing and managing data between XMPP entities using a raw User Datagram Protocol (UDP) connection (see RFC 768 ).
The Jingle transport method defined herein is designed to meet the following requirements:
In order for the initiating entity in a Jingle exchange to start the negotiation, it MUST send a Jingle "session-initiate" stanza as described in XEP-0166. This stanza MUST include at least one transport methods. If the initiating entity wishes to negotiate the Raw UDP transport, it MUST include an empty <transport/> child element qualified by the 'http://jabber.org/protocol/jingle/transport/raw-udp' namespace.
<iq firstname.lastname@example.org/balcony' email@example.com/orchard' id='jingle1' type='set'> <jingle xmlns='http://jabber.org/protocol/jingle' action='session-initiate' firstname.lastname@example.org/orchard' sid='a73sjjvkla37jfea'> <description ...> <transport xmlns='http://jabber.org/protocol/jingle/transport/raw-udp'/> </jingle> </iq>
As described in XEP-0166, to provisionally accept the session initiation request, the target entity returns an IQ-result:
<iq type='result' email@example.com/balcony' firstname.lastname@example.org/orchard' id='jingle1'/>
Once the session is provisionally accepted, each entity should send one <transport/> element in a transport-info meessage, containing exactly one <candidate/> element per channel, whose 'ip' and 'port' attributes specify the IP address and port number of the candidate that the initiator has reason to believe will be most likely to succeed for that channel. (Note: In older versions of XEP-0166, this was referrred to as the "default candidate".) This is not necessarily the initiator's preferred address for communication, but instead is the "address most likely to succeed", i.e., the address that is assumed to be reachable by the vast majority of target entities. To determine reachability, the client needs classify ahead of time the permissiveness of the firewall or network address translator (NAT) it is behind, if any. If the NAT is symmetric (not permissive), the candidate SHOULD specify a relay address. Otherwise it SHOULD be an address derived via prior discovery using RFC 3489 , which will be an address on the outside of the firewall or NAT.
<iq email@example.com/balcony' firstname.lastname@example.org/orchard' id='jingle2' type='set'> <jingle xmlns='http://jabber.org/protocol/jingle' action='transport-info' email@example.com/orchard' sid='a73sjjvkla37jfea'> <transport xmlns='http://jabber.org/protocol/jingle/transport/raw-udp'> <candidate name='myvoicedata' ip='10.1.1.104' port='13540' generation='0'/> </transport> </jingle> </iq>
Note: The 'name' attribute specifies the name of the channel and the 'generation' attribute provides a tracking mechanism for determining which version of this candidate is in force (this is useful if the candidate is redefined mid-stream, for example if the port is changed).
Either entity may send this transport-info message at any time, after which the recipient should send and receive data to and from the new address.
The syntax and semantics informational message payloads specific to the Raw UDP transport method will be defined in a future version of this specification.
In order to secure the end-to-end data stream, implementations SHOULD use encryption methods appropriate to the transport method in use.
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) .
The XMPP Registrar  shall include 'http://jabber.org/protocol/jingle/transport/raw-udp' in its registry of protocol namespaces.
The XMPP Registrar shall include "http://jabber.org/protocol/jingle/transport/raw-udp" in its registry of Jingle transport methods. The registry submission is as follows:
In order to submit new values to this registry, the registrant must define an XML fragment of the following form and either include it in the relevant XMPP Extension Protocol or send it to the email address <firstname.lastname@example.org>:
<transport> <name>raw-udp</name> <desc>A method for exchanging data over a raw UDP connection.</desc> <doc>XEP-0176</doc> </transport>
<?xml version='1.0' encoding='UTF-8'?> <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' targetNamespace='http://jabber.org/protocol/jingle/transport/raw-udp' xmlns='http://jabber.org/protocol/jingle/transport/raw-udp' elementFormDefault='qualified'> <xs:element name='transport'> <xs:complexType> <xs:sequence> <xs:element ref='candidate' minOccurs='0' maxOccurs='1'/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name='candidate'> <xs:complexType> <xs:simpleContent> <xs:extension base='empty'> <xs:attribute name='generation' type='xs:unsignedByte' use='required'/> <xs:attribute name='name' type='xs:string' use='required'/> <xs:attribute name='ip' type='xs:string' use='required'/> <xs:attribute name='port' type='xs:unsignedShort' use='required'/> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> <xs:simpleType name='empty'> <xs:restriction base='xs:string'> <xs:enumeration value=''/> </xs:restriction> </xs:simpleType> </xs:schema>
4. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see <http://www.iana.org/>.
5. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the Jabber Software Foundation. For further information, see <http://www.xmpp.org/registrar/>.