XEP-0176: Jingle ICE-UDP Transport Method

XEP-0176: Jingle ICE-UDP Transport Method

XEP-0176: Jingle ICE-UDP Transport Method Joe Beda Scott Ludwig Peter Saint-Andre mailto:jbeda@google:com mailto:scottlu@google:com mailto:xsf@stpeter:im xmpp:jbeda@google:com xmpp:scottlu@google:com xmpp:peter@jabber:org http://stpeter:im/ Joe Hildebrand Sean Egan mailto:jhildebr@cisco:com mailto:seanegan@google:com xmpp:hildjj@jabber:org xmpp:seanegan@google:com Robert McQueen mailto:robert:mcqueen@collabora:co:uk xmpp:robert:mcqueen@collabora:co:uk 2021-03-04 Version 1.1.1 Status Type Short Name Draft Standards Track jingle-ice-udp This specification defines a Jingle transport method that results in sending media data using raw data- gram associations via the User Datagram Protocol (UDP). This transport method is negotiated via the In- teractive Connectivity Establishment (ICE) methodology, which provides robust NAT traversal for media traffic. Legal Copyright This XMPP Extension Protocol is copyright © 1999 – 2020 by the XMPP Standards Foundation (XSF). Permissions Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the ”Specification”), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specifi- cation, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or sub- stantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or pub- lisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation. Warranty ## NOTE WELL: This Specification is provided on an ”AS IS” BASIS, WITHOUT WARRANTIES OR CONDI- TIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ## Liability In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, includ- ing any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer fail- ure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages. Conformance This XMPP Extension Protocol has been contributed in full conformance with the XSF’s Intellectual Property Rights Policy (a copy of which can be found at <https://xmpp:org/about/xsf/ipr-policy> or obtained by writing to XMPP Standards Foundation, P.O. Box 787, Parker, CO 80134 USA). Contents 1 Introduction 1 2 Glossary 1 3 Requirements 2 4 Jingle Conformance 2 5 Protocol Description 2 5.1 Overall Flow ..................................... 2 5.2 Session Initiation ................................... 3 5.3 Syntax ........................................ 4 5.4 Response ....................................... 7 5.5 Candidate Negotiation ................................ 8 5.6 Connectivity Checks ................................. 9 5.7 Acceptance of Successful Candidate ........................ 11 5.8 Negotiating a New Candidate ............................ 12 5.9 ICE Restarts ...................................... 13 6 Fallback to Raw UDP 14 7 Determining Support 19 7.1 ICE Support ...................................... 19 7.2 SDP Offer / Answer Support ............................. 19 8 Implementation Notes 20 9 Deployment Notes 20 10 Security Considerations 21 10.1 Sharing IP Addresses ................................. 21 10.2 Encryption of Media ................................. 21 11 IANA Considerations 22 12 XMPP Registrar Considerations 22 12.1 Protocol Namespaces ................................ 22 12.2 Protocol Versioning ................................. 22 12.3 Service Discovery Features ............................. 22 12.4 Jingle Transport Methods .............................. 23 13 XML Schema 23 14 Acknowledgements 25 2 GLOSSARY 1 Introduction Jingle (XEP-0166) 1 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 application formats, leaving that up to separate specifications. The current document defines a transport method for establishing and managing data exchanges between XMPP entities over the User Datagram Protocol (see RFC 768 2), using the ICE methodology developed within the IETF and specified in RFC 5245 3 (hereafter referred to as ICE-CORE). Use of this ”ice-udp” method results in a datagram transport suitable for media applications where some packet loss is tolerable (e.g., audio and video). Note: ICE-CORE has been approved for publication as an RFC but has not yet been published as an RFC. While every effort has been made to keep this document synchronized with ICE-CORE, the interested reader is referred to ICE-CORE for a detailed description of the ICE methodology. The process for ICE negotiation is largely the same in Jingle as it is in ICE. There are several differences: • Instead of using the Session Initiation Protocol (SIP) as the signalling channel, Jingle uses XMPP as the signalling channel. • Syntax from the Session Description Protocol (see RFC 4566 4) is mapped to an XML syn- tax suitable for sending over the XMPP signalling channel. • In Jingle, lists of ”preferred” candidates are typically sent in the Jingle session-initiate and session-accept messages, in a way that is consistent with the SDP offer / answer model described in RFC 3264 5 and the process described in ICE-CORE. • Candidates can also be sent in separate transport-info messages either before sending the session-accept message (to expedite negotiation) or after media begins to flow (to find modify existing candidates, find superior candidates, or adjust to changing network conditions). 2 Glossary The reader is referred to ICE-CORE for a description of various terms used in the context of ICE. Those terms are not reproduced here. 1XEP-0166: Jingle <https://xmpp:org/extensions/xep-0166:html>. 2RFC 768: User Datagram Protocol <http://tools:ietf:org/html/rfc0768>. 3RFC 5245: Interactive Connectivity Establishment (ICE) <http://tools:ietf:org/html/rfc5245>. 4RFC 4566: SDP: Session Description Protocol <http://tools:ietf:org/html/rfc4566>. 5RFC 3264: An Offer/Answer Model with the Session Description Protocol (SDP) <http://tools:ietf:org/html/ rfc3264>. 1 5 PROTOCOL DESCRIPTION 3 Requirements The Jingle transport method defined herein is designed to meet the following requirements: 1. Make it possible to establish and manage out-of-band connections between two XMPP entities, even if they are behind Network Address Translators (NATs) or firewalls. 2. Enable use of UDP as the transport protocol. 3. Make it relatively easy to implement support in standard Jabber/XMPP clients. 4. Where communication with non-XMPP entities is needed, push as much complexity as possible onto server-side gateways between the XMPP network and the non-XMPP net- work. 4 Jingle Conformance In accordance with Section 10 of XEP-0166, this document specifies the following information related to the Jingle ice-udp transport method: 1. The transport negotiation process is defined in the Protocol Description section of this document. 2. The semantics of the <transport/> element are defined in the ICE Negotiation section of this document. 3. Successful negotiation of the ice-udp method results in use of a datagram transport that is suitable for applications where some packet loss is tolerable, such as audio and video. 4. If multiple components are to be communicated by the application type that uses the transport, the transport shall support those components and assign identifiers for them as described in the specification that defines the application type. 5 Protocol Description 5.1 Overall Flow The overall protocol flow for negotiation of the Jingle ICE-UDP Transport Method is as follows (note: many of these events happen simultaneously, not in sequence). 2 5 PROTOCOL DESCRIPTION INITIATOR RESPONDER | | | Jingle session-initiate stanza | | (with zero or more candidates) | |------------------------------------->| | Jingle ack (XMPP IQ-result) | |<-------------------------------------| | Jingle session-accept stanza | | (with one or more candidates) | |<-------------------------------------| | Jingle ack (XMPP IQ-result) | |------------------------------------->| | multiple STUN Binding Requests | |<====================================>| | multiple STUN Binding Results | |<====================================>| |<========= MEDIA NOW FLOWS============>| | optional Jingle transport-info | | stanzas (one candidate per stanaza) | |<------------------------------------>|

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    28 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us