This document defines a Jingle transport method that results in sending data using the Real-time Transport Protocol (RTP) over a raw User Datagram Protocol (UDP) connection.
WARNING: This Standards-Track JEP is Experimental. Publication as a Jabber Enhancement Proposal does not imply approval of this proposal by the Jabber Software Foundation. Implementation of the protocol described herein is encouraged in exploratory implementations, but production systems should not deploy implementations of this protocol until it advances to a status of Draft.
Status: Experimental
Type: Standards Track
Number: 0177
Version: 0.1
Last Updated: 2006-03-01
JIG: Standards JIG
Approving Body: Jabber Council
Dependencies: XMPP Core, JEP-0166
Supersedes: None
Superseded By: None
Short Name: raw-udp
Wiki Page: <http://wiki.jabber.org/index.php/Jingle Raw UDP Transport (JEP-0177)>
Email:
jbeda@google.com
JID:
jbeda@google.com
Email:
stpeter@jabber.org
JID:
stpeter@jabber.org
Email:
scottlu@google.com
JID:
scottlu@google.com
Email:
jhildebrand@jabber.com
JID:
hildjj@jabber.org
This Jabber Enhancement Proposal 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.jabber.org/jsf/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 JEP 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 keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
Jingle [1] defines a framework for negotiating and managing out-of-band multimedia sessions over XMPP. In order to provide a flexible framework, the base Jingle specification defines neither data transport methods nor media (session) types, leaving that up to separate specifications. The current document defines a transport method for establishing and managing Real-time Transport Protocol (RTP; see RFC 3550 [2]) streams between XMPP entities using a raw User Datagram Protocol (UDP) connection (see RFC 768 [3]).
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 JEP-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.
This <transport/> element MUST include one and only 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 JEP-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 [4], which will be an address on the outside of the firewall or NAT.
<iq to='juliet@capulet.com/balcony' from='romeo@montague.net/orchard' id='jingle1' type='set'> <jingle xmlns='http://jabber.org/protocol/jingle' action='session-initiate' initiator='romeo@montague.net/orchard' sid='a73sjjvkla37jfea'> <description ...> <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).
As described in JEP-0166, to provisionally accept the session initiation request, the target entity returns an IQ-result:
<iq type='result' from='juliet@capulet.com/balcony' to='romeo@montague.net/orchard' id='jingle1'/>
To accept the Raw UDP transport method, the target entity MUST send a <jingle/> element with an action of 'transport-accept', specifying the transport method desired.
<iq type='set' from='juliet@capulet.com/balcony' to='romeo@montague.net/orchard' id='jingle2'> <jingle xmlns='http://jabber.org/protocol/jingle' action='transport-accept' initiator='romeo@montague.net/orchard' sid='a73sjjvkla37jfea'> <transport xmlns='http://jabber.org/protocol/jingle/transport/raw-udp'> <candidate ip='10.1.1.104' port='13540'/> </transport> </jingle> </iq>
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 native RTP encryption methods, such as ZRTP [5] or RTP Over DTLS [6].
This JEP requires no interaction with the Internet Assigned Numbers Authority (IANA) [7].
The Jabber Registrar [8] shall include 'http://jabber.org/protocol/jingle/transport/raw-udp' in its registry of protocol namespaces.
The Jabber 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 Jabber Enhancement Proposal or send it to the email address <registrar@jabber.org>:
<transport> <name>raw-udp</name> <desc>A method for exchanging RTP streams over a raw UDP connection.</desc> <doc>JEP-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/transports/raw-udp' xmlns='http://jabber.org/protocol/jingle/transports/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='IPaddress' use='required'/> <xs:attribute name='port' type='xs:unsignedShort' use='required'/> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> <xs:simpleType name='IPaddress'> <xs:restriction base='xs:string'> <xs:pattern value='((1?[0-9]?[0-9]|2[0-4][0-9]|25[0-5]).){3}(1?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])'/> </xs:restriction> </xs:simpleType> <xs:simpleType name='empty'> <xs:restriction base='xs:string'> <xs:enumeration value=''/> </xs:restriction> </xs:simpleType> </xs:schema>
1. JEP-0166: Jingle <http://www.jabber.org/jeps/jep-0166.html>.
2. RFC 3550: RTP: A Transport Protocol for Real-Time Applications <http://www.ietf.org/rfc/rfc3550.txt>.
3. RFC 768: User Datagram Protocol <http://www.ietf.org/rfc/rfc0768.txt>.
4. RFC 3489: STUN - Simple Traversal of User Datagram Protocol (UDP) Through Network Address Translators (NATs) <http://www.ietf.org/rfc/rfc3489.txt>.
5. ZRTP: Extensions to RTP for Diffie-Hellman Key Agreement for SRTP <http://www.ietf.org/internet-drafts/draft-zimmermann-avt-zrtp-01.txt>. Work in progress.
6. Real-Time Transport Protocol (RTP) over Datagram Transport Layer Security (DTLS) <http://scm.sipfoundry.org/rep/ietf-drafts/ekr/draft-tschofenig-avt-rtp-dtls-00.txt>. Work in progress.
7. 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/>.
8. The Jabber Registrar maintains a list of reserved Jabber protocol namespaces as well as registries of parameters used in the context of protocols approved by the Jabber Software Foundation. For further information, see <http://www.jabber.org/registrar/>.
END