%ents; ]>
XMPP Nodes 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). &LEGALNOTICE; 0271 Deferred Informational Standards Council XMPP Core XEP-0030 XEP-0060 N/A &stpeter; &ralphm; 0.1 2009-06-26 psa

Initial published version; per Council discussion changed local to localpart.

0.0.2 2008-02-08 psa/rm

Added more examples.

0.0.1 2008-02-07 psa/rm

Initial version.

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; or &rfc6120;). This document attempts to remedy that oversight.

To clarify the nature of a node, it is first helpful to describe the architecture of XMPP systems.

Because XMPP is a client-server technology that relies on the Domain Name System, the fundamental building block of XMPP systems is the "domain". 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., jabber.org or xmpp.org) 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 planet.jabber.org or interop.xmpp.org, 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., "jabber.org" in the JID "stpeter@jabber.org"), and can stand alone as a complete JabberID.

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 mailto:stpeter@jabber.org represents an email account and the URI xmpp:stpeter@jabber.org represents an XMPP account), but other entity types are possible (e.g., jdev@conference.jabber.org 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 stpeter@jabber.org 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 "localpart" 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 "stpeter@jabber.org").

A given domain or localpart can have various assets associated with it; in XMPP these assets are called "resources". 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 "stpeter@jabber.org/roundabout" or "psa" in the JID "jdev@conference.jabber.org/psa").

The Service Discovery and Publish-Subscribe extensions to XMPP use an optional quaternary identifer called a "node", 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:

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.

]]> Soliloquy 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? tag:denmark.lit,2003:entry-32397 2003-12-13T18:30:02Z 2003-12-13T18:30:02Z ]]>

As authorized by &xep0147;, the ®ISTRAR; maintains a registry of queries and key-value pairs for use in XMPP URIs at &QUERYTYPES;.

The "disco" and "pubsub" querytypes are already registered, including the "node" key.

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:

This URI can be parsed as follows:

  1. Primary identifier: "example.org"
  2. Secondary identifier: "romeo"
  3. Tertiary identifier: [none]
  4. Quaternary identifier: "foo"

An XMPP node can include any UTF-8 character.

This specification introduces no security considerations above and beyond those discussed in RFC 6120, XEP-0030, XEP-0060.

This document requires no interaction with &IANA;.

This document requires no interaction with the ®ISTRAR;.