Abstract: | This document defines a DNS TXT Resource Record format for use in discovering alternative methods of connecting to an XMPP server. |
Authors: | Joe Hildebrand, Peter Saint-Andre |
Copyright: | © 1999 - 2013 XMPP Standards Foundation. SEE LEGAL NOTICES. |
Status: | Draft |
Type: | Standards Track |
Version: | 1.0 |
Last Updated: | 2007-06-12 |
NOTICE: The protocol defined herein is a Draft Standard of the XMPP Standards Foundation. Implementations are encouraged and the protocol is appropriate for deployment in production systems, but some changes to the protocol are possible before it becomes a Final Standard.
1. Introduction
2. Record Format
3. Business Rules
4. Examples
5. Security Considerations
6. IANA Considerations
7. XMPP Registrar Considerations
7.1. Alternative Connection Methods Registry
7.1.1. Process
7.1.2. Initial Registration
Appendices
A: Document Information
B: Author Information
C: Legal Notices
D: Relation to XMPP
E: Discussion Venue
F: Requirements Conformance
G: Notes
H: Revision History
Although XMPP Core [1] specifies the use of TCP as the method of connecting to an XMPP server, alternative connection methods exist, including the BOSH (XEP-0124) [2] method for which XMPP Over BOSH (XEP-0206) [3] is the XMPP profile, the Jabber HTTP Polling (XEP-0025) [4] method (now deprecated), and less common methods such as Wireless Access Protocol (WAP) [5]. For some of these methods, it is necessary to discover further parameters before connecting, such as the HTTP URL of an alternative connection manager. Currently, if a client application needs to discover alternative connection methods before connecting to an XMPP service, the relevant information needs to be provided manually by a human user, which is cumbersome and error-prone. Thankfully, there are several potential ways to complete this pre-connection service discovery in an automated fashion:
Define a WSDL [6] definition (or other XML file format) and a canonical URL for that definition at a domain that offers XMPP services. Unfortunately, this approach requires access to the HTTP server for the domain (and quite possibly to the root directory thereof), which can be difficult for XMPP server administrators to arrange. In addition, it requires a client to retrieve the relevant file via HTTP before performing DNS lookups and XMPP connection; it would be more efficient to use recognized DNS methods since DNS lookups are already required by RFC 6120.
Define a way to specify alternative connection methods as part of the existing DNS SRV records (see RFC 2782 [7]) for a domain that offers XMPP services. While this approach sounds promising, it is not feasible since the DNS SRV Target field can be used only to specify domain names and cannot be used to specify full URIs (such as the URL for an HTTP connection manager).
Define a way to specify alternative connection methods using the "straightforward NAPTR" (S-NAPTR) profile of the Dynamic Delegation Discovery System (see RFC 3958 [8] and RFC 3401 [9]). Unfortunately, S-NAPTR also does not allow inclusion of full URIs, and thus does not meet the requirements for discovery of alternative connection methods.
Define a way to specify alternative connection methods using the "URI-enabled NAPTR" (U-NAPTR) profile of the Dynamic Delegation Discovery System (see RFC 4848 [10]). While this is a valid approach that is worth pursuing, the authors are concerned about the deployability of such an approach given the rarity of support for DDDS and U-NAPTR, especially in client-side applications (the main focus of this specification).
Define a way to specify alternative connection methods via properly-formatted DNS TXT records (see RFC 1464 [11]). While this approach requires an update to the DNS records for the server domain, that is usually necessary in order to establish XMPP services in the first place. Furthermore, although there are some perils to be avoided in the use of DNS TXT records (e.g., wildcards), the technology is well understood and widely deployed (e.g., it is used by the Sender Policy Framework and SenderID email server verification technologies).
This document defines a way to encapsulate information about alternative connection methods in DNS TXT resource records. However, the authors will monitor the availability of DDDS-based systems supporting U-NAPTR, and might request deprecation of the DNS TXT methods defined in this document at some point in the future.
The following format for DNS TXT resource records is specified in RFC 1464:
<owner> <class> <ttl> <TXT> <"attribute name=attribute value">
This document specifies that the following additional rules apply for DNS TXT resource records used to specify alternative connection methods:
The following business rules apply:
The following examples show two DNS TXT resource records: the first indicates support for the XMPP Over BOSH connection method defined in XEP-0124 and XEP-0206 and the second indicates support for WAP connections (the latter connection method is not yet defined).
_xmppconnect IN TXT "_xmpp-client-xbosh=https://bosh.jabber.org:5280/bind" _xmppconnect IN TXT "_xmpp-client-wap=http://wap.jabber.org/connector"
It is possible that advertisement of alternative connection methods can introduce security vulnerabilities, since a connecting entity (usually a client) might deliberately seek to connect using the method with the weakest security mechanisms (e.g., no channel encryption or relatively weak authentication). Care needs to be taken in determining which alternative connection methods are appropriate to advertise.
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [13].
The XMPP Registrar [14] maintains a registry of attributes for use in DNS TXT resource records that advertise alternative XMPP connection methods (see <http://xmpp.org/registrar/alt-connections.html>).
In order to submit new values to this registry, the registrant shall 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 <registrar@xmpp.org>:
<method> <name>the name of the attribute to be used in DNS TXT records</name> <desc>a natural-language description of the alternative connection method</desc> <syntax>the syntax of the DNS TXT record attribute value</syntax> <doc>the document in which the alternative connection method is specified</doc> </method>
The registrant can register more than one attribute at a time, each contained in a separate <method/> element.
<method> <name>_xmpp-client-httppoll</name> <desc>HTTP Polling connection method</desc> <syntax> The http: or https: URL at which to contact the HTTP Polling connection manager or proxy </syntax> <doc>XEP-0025</doc> </method> <method> <name>_xmpp-client-xbosh</name> <desc>XMPP Over Bosh connection method</desc> <syntax> The http: or https: URL at which to contact the HTTP Binding connection manager or proxy </syntax> <doc>XEP-0206</doc> </method>
Series: XEP
Number: 0156
Publisher: XMPP Standards Foundation
Status:
Draft
Type:
Standards Track
Version: 1.0
Last Updated: 2007-06-12
Approving Body: XMPP Council
Dependencies: XMPP Core, RFC 1464
Supersedes: None
Superseded By: None
Short Name: alt-connections
Registry:
<http://xmpp.org/registrar/alt-connections.html>
Source Control:
HTML
This document in other formats:
XML
PDF
Email:
jhildebr@cisco.com
JabberID:
hildjj@jabber.org
Email:
stpeter@jabber.org
JabberID:
stpeter@jabber.org
URI:
https://stpeter.im/
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 6120) and XMPP IM (RFC 6121) specifications contributed by the XMPP Standards 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 primary venue for discussion of XMPP Extension Protocols is the <standards@xmpp.org> discussion list.
Discussion on other xmpp.org discussion lists might also be appropriate; see <http://xmpp.org/about/discuss.shtml> for a complete list.
Given that this XMPP Extension Protocol normatively references IETF technologies, discussion on the <xsf-ietf@xmpp.org> list might also be appropriate.
Errata can be sent to <editor@xmpp.org>.
The following requirements 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".
1. RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core <http://tools.ietf.org/html/rfc6120>.
2. XEP-0124: Bidirectional-streams Over Synchronous HTTP <http://xmpp.org/extensions/xep-0124.html>.
3. XEP-0206: XMPP Over BOSH <http://xmpp.org/extensions/xep-0206.html>.
4. XEP-0025: Jabber HTTP Polling <http://xmpp.org/extensions/xep-0025.html>.
5. Wireless Access Protocol (WAP) <http://www.wapforum.org/>.
6. WSDL 1.1 Specification <http://www.w3.org/TR/wsdl>.
7. RFC 2782: A DNS RR for specifying the location of services (DNS SRV) <http://tools.ietf.org/html/rfc2782>.
8. RFC 3958: Domain-Based Application Service Location Using SRV RRs and the Dynamic Delegation Discovery Service (DDDS) <http://tools.ietf.org/html/rfc3958>.
9. RFC 3401: Dynamic Delegation Discovery System (DDDS) Part One: The Comprehensive DDDS <http://tools.ietf.org/html/rfc3401>.
10. RFC 4848: Domain-Based Application Service Location Using URIs and the Dynamic Delegation Discovery Service (DDDS) <http://tools.ietf.org/html/rfc4848>.
11. RFC 1464: Using the Domain Name System To Store Arbitrary String Attributes <http://tools.ietf.org/html/rfc1464>.
12. The point of this rule is to prevent someone from defining a new XEP-0156 connection method like "_xmpp-client-tcp" to override the SRV records defined in the core XMPP specification.
13. 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/>.
14. 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 XMPP Standards Foundation. For further information, see <http://xmpp.org/registrar/>.
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/
Per a vote of the XMPP Council, advanced status to Draft; XMPP Registrar assigned alt-connections shortname and created appropriate registry.
(psa)Updated to reflect renaming of HTTP Binding to XMPP Over BOSH.
(psa)Finally and definitively removed _xmpp-client-tcp and _xmpp-server-tcp attributes since clients and servers should use either SRV records or standard XMPP ports (5222 or 5269).
(psa)Removed _xmpp-client-tcpssl attribute since use of the old-style SSL-only port is discouraged.
(psa)Added _xmpp-client-tcpssl for old-style SSL connections; added discussion of IETF U-NAPTR technology.
(psa)Clarified order of lookups; restored _xmpp-client-tcp and added _xmpp-server-tcp as optional records if SRV is not supported or accessible.
(psa)Removed _xmpp-client-tcp from TXT records (belongs in SRV records only).
(psa)Initial version.
(psa)More fully specified the rationale for using DNS TXT records.
(psa)Added security considerations and registrar considerations.
(psa)First draft.
(psa/jh)END