Browse files

initial version

git-svn-id: svn:// 4b5297f7-1745-476d-ba37-a9c6900126ab
  • Loading branch information...
1 parent 8b764a5 commit c100c1677308bb2273cf0957b2fdd57c1cc1bddc @stpeter stpeter committed Jun 27, 2009
Showing with 125 additions and 0 deletions.
  1. +125 −0 extensions/xep-0271.xml
@@ -0,0 +1,125 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE xep SYSTEM 'xep.dtd' [
+ <!ENTITY % ents SYSTEM 'xep.ent'>
+<?xml-stylesheet type='text/xsl' href='xep.xsl'?>
+ <title>XMPP Nodes</title>
+ <abstract>This specification more clearly defines the nature of nodes as used in the Service Discovery and Publish-Subscribe extensions to the Extensible Messaging and Presence Protocol (XMPP).</abstract>
+ <number>0271</number>
+ <status>Experimental</status>
+ <type>Informational</type>
+ <sig>Standards</sig>
+ <approver>Council</approver>
+ <dependencies>
+ <spec>XMPP Core</spec>
+ <spec>XEP-0030</spec>
+ <spec>XEP-0060</spec>
+ </dependencies>
+ <supersedes/>
+ <supersededby/>
+ <shortname>N/A</shortname>
+ &stpeter;
+ &ralphm;
+ <revision>
+ <version>0.1</version>
+ <date>2009-06-26</date>
+ <initials>psa</initials>
+ <remark><p>Initial published version; per Council discussion changed local to localpart.</p></remark>
+ </revision>
+ <revision>
+ <version>0.0.2</version>
+ <date>2008-02-08</date>
+ <initials>psa/rm</initials>
+ <remark><p>Added more examples.</p></remark>
+ </revision>
+ <revision>
+ <version>0.0.1</version>
+ <date>2008-02-07</date>
+ <initials>psa/rm</initials>
+ <remark><p>Initial version.</p></remark>
+ </revision>
+ <section1 topic='Introduction' anchor='intro'>
+ <p>Both &xep0030; and &xep0060; refer to "nodes" in relation to XMPP entities. However, the concept of an XMPP node has never been clearly specified (e.g., in &rfc3920;). This document attempts to remedy that oversight.</p>
+ </section1>
+ <section1 topic='Definition' anchor='def'>
+ <p>To clarify the nature of a node, it is first helpful to describe the architecture of XMPP systems.</p>
+ <p>Because XMPP is a client-server technology that relies on the Domain Name System, the fundamental building block of XMPP systems is the <strong>"domain"</strong>. The idea of an Internet domain is borrowed from the real world, where a domain is an area of physical territory over which an individual or organization has control (e.g., the United States of America). Similarly, an Internet domain (e.g., or is a virtual space or area that is controlled by an individual or organization (e.g., Jeremie Miller or the XMPP Standards Foundation). Given the workings of the Domain Name System, it is also possible to have subdomains such as or, which can be seen as the virtual equivalent of administrative subdivisions in the real world (e.g., a particular state within the USA, such as Colorado). In any case, a domain identifier is the primary portion of a JabberID (e.g., "" in the JID ""), and can stand alone as a complete JabberID.</p>
+ <p>A given physical domain contains particular points or places. Similarly, a given virtual domain can contain particular points or entities. These entities are often thought of as accounts (e.g., the URI represents an email account and the URI represents an XMPP account), but other entity types are possible (e.g., happens to be a &xep0045; room. Confusingly, the part of a JabberID that identifies an account or entity within the scope of an XMPP domain is called a node (e.g., the string "stpeter" in the JabberID is called a "node identifier"). Unfortunately, this usage collides with the term "node" as used in Service Discovery and Publish-Subscribe. Therefore we suggest the term <strong>"localpart"</strong> for a particular point or entity in an XMPP domain. A localpart identifier is an optional secondary portion of a JabberID (e.g., "stpeter" in the JID "").</p>
+ <p>A given domain or localpart can have various assets associated with it; in XMPP these assets are called <strong>"resources"</strong>. In the case of an account registered with an XMPP service, such resources are typically devices or connections. In the case of a multi-user chat room, such resources are usually room occupants. And so on. A resource identifier is an optional tertiary portion of a JabberID (e.g., "roundabout" in the JID "" or "psa" in the JID "").</p>
+ <p>The Service Discovery and Publish-Subscribe extensions to XMPP use an optional quaternary identifer called a <strong>"node"</strong>, which identifies a particular facet or aspect of an XMPP domain, localpart, or resource. The exact nature of a node depends on the protocol in use:</p>
+ <ul>
+ <li><p><cite>XEP-0030: Service Discovery</cite> -- Here a node is typically that facet or aspect of an XMPP entity that handles requests and provides responses related to a particular protocol or feature bundle. For example, a service discovery information request to the node "" may return all of the &xep0050; supported by the responding entity, a service discovery information request to the node "" may return all of the multi-user chat rooms in which an entity is an occupant, and a service discovery information request to the node "pubsub/nodes" may return all of the pubsub nodes that are hosted by a publish-subscribe service (thus this node acts as a kind of "meta-node").</p></li>
+ <li><p><cite>XEP-0060: Publish-Subscribe</cite> -- Here a node is a particular "channel" or "feed" hosted at a publish-subscribe service, where the nature of the channel or feed is defined in part by the characteristic payload published at the node (e.g., Atom notifications) and in part by the focus or topic of such payloads (e.g., Atom notifications related triggered by new entries at the Planet Jabber weblog aggregation site).</p></li>
+ </ul>
+ <p>As shown in the following examples, a node is not encapsulated in the JabberID but instead is communicated in protocol to indicate that the interaction is directed to or from a specific facet of a domain, a localpart, or a resource.</p>
+ <example caption="Nodes in Service Discovery: a disco#info request directed to a specific node"><![CDATA[
+&lt;iq type='get'
+ from=''
+ to='mim.shakespeare.lit'
+ id='info3'&gt;
+ &lt;query xmlns=''
+ node=''/&gt;
+ ]]></example>
+ <example caption="Nodes in Publish-Subscribe: a publish request directed to a specific node"><![CDATA[
+&lt;iq type='set'
+ from='hamlet@denmark.lit/blogbot'
+ to='pubsub.shakespeare.lit'
+ id='pub1'&gt;
+ &lt;pubsub xmlns=''&gt;
+ &lt;publish node='princely_musings'&gt;
+ &lt;item&gt;
+ &lt;entry xmlns=''&gt;
+ &lt;title&gt;Soliloquy&lt;/title&gt;
+ &lt;summary&gt;
+To be, or not to be: that is the question:
+Whether 'tis nobler in the mind to suffer
+The slings and arrows of outrageous fortune,
+Or to take arms against a sea of troubles,
+And by opposing end them?
+ &lt;/summary&gt;
+ &lt;link rel='alternate' type='text/html'
+ href='http://denmark.lit/2003/12/13/atom03'/&gt;
+ &lt;id&gt;tag:denmark.lit,2003:entry-32397&lt;/id&gt;
+ &lt;published&gt;2003-12-13T18:30:02Z&lt;/published&gt;
+ &lt;updated&gt;2003-12-13T18:30:02Z&lt;/updated&gt;
+ &lt;/entry&gt;
+ &lt;/item&gt;
+ &lt;/publish&gt;
+ &lt;/pubsub&gt;
+ ]]></example>
+ </section1>
+ <section1 topic='Use in XMPP URIs' anchor='uri'>
+ <p>As authorized by &xep0147;, the &REGISTRAR; maintains a registry of queries and key-value pairs for use in XMPP URIs at &QUERYTYPES;.</p>
+ <p>The "disco" and "pubsub" querytypes are already registered, including the "node" key.</p>
+ <p>In order to specify a node "foo" as a quaternary identifier without specifying a "disco" querytype or "pubsub" querytype, an XMPP URI can be constructed as follows:</p>
+ <example caption="XMPP URI With Node"><![CDATA[;node=foo
+ ]]></example>
+ <p>This URI can be parsed as follows:</p>
+ <ol start="1">
+ <li>Primary identifier: ""</li>
+ <li>Secondary identifier: "romeo"</li>
+ <li>Tertiary identifier: [none]</li>
+ <li>Quaternary identifier: "foo"</li>
+ </ol>
+ </section1>
+ <section1 topic='Internationalization Considerations' anchor='i18n'>
+ <p>An XMPP node can include any UTF-8 character.</p>
+ </section1>
+ <section1 topic='Security Considerations' anchor='security'>
+ <p>This specification introduces no security considerations above and beyond those discussed in <cite>RFC 3920</cite>, <cite>XEP-0030</cite>, <cite>XEP-0060</cite>.</p>
+ </section1>
+ <section1 topic='IANA Considerations' anchor='iana'>
+ <p>This document requires no interaction with &IANA;.</p>
+ </section1>
+ <section1 topic='XMPP Registrar Considerations' anchor='registrar'>
+ <p>This document requires no interaction with the &REGISTRAR;.</p>
+ </section1>

0 comments on commit c100c16

Please sign in to comment.