No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

xep-0051.xml 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <!DOCTYPE xep SYSTEM 'xep.dtd' [
  3. <!ENTITY % ents SYSTEM "xep.ent">
  4. %ents;
  5. ]>
  6. <?xml-stylesheet type='text/xsl' href='xep.xsl'?>
  7. <xep>
  8. <header>
  9. <title>Connection Transfer</title>
  10. <abstract>This specification defines an XMPP protocol extension that enables a server to redirect connections from one connection manager or server node to another.</abstract>
  11. &LEGALNOTICE;
  12. <number>0051</number>
  13. <status>Deferred</status>
  14. <type>Standards Track</type>
  15. <sig>Standards</sig>
  16. <dependencies/>
  17. <supersedes/>
  18. <supersededby/>
  19. <shortname>N/A</shortname>
  20. <author>
  21. <firstname>Klaus</firstname>
  22. <surname>Wolf</surname>
  23. <email>wolf@bluehands.de</email>
  24. <jid>klaus@jabber.bluehands.de</jid>
  25. </author>
  26. <author>
  27. <firstname>Richard</firstname>
  28. <surname>Dobson</surname>
  29. <email>richard@dobson-i.net</email>
  30. <jid>richard@dobson-i.net</jid>
  31. </author>
  32. <author>
  33. <firstname>Florian</firstname>
  34. <surname>Jensen</surname>
  35. <email>florian@florianjensen.com</email>
  36. <jid>admin@im.flosoft.biz</jid>
  37. </author>
  38. <revision>
  39. <version>0.2</version>
  40. <date>2009-07-07</date>
  41. <initials>fj</initials>
  42. <remark><p>Rewritten to focus on the connection transfer use case only.</p></remark>
  43. </revision>
  44. <revision>
  45. <version>0.1</version>
  46. <date>2002-10-08</date>
  47. <initials>psa</initials>
  48. <remark><p>Initial version.</p></remark>
  49. </revision>
  50. <revision>
  51. <version>0.0.2</version>
  52. <date>2002-09-14</date>
  53. <initials>rd</initials>
  54. <remark><p>Added the server transfer section.</p></remark>
  55. </revision>
  56. <revision>
  57. <version>0.0.1</version>
  58. <date>2002-07-31</date>
  59. <initials>hw</initials>
  60. <remark>Initial version.</remark>
  61. </revision>
  62. </header>
  63. <section1 topic='Introduction' anchor='intro'>
  64. <p>Large XMPP deployments are often clustered. To enable more effective management of client connections to servers in the cluster, it would be useful if the server administrator could redirect XMPP traffic to another node of the cluster. This document describes a connection transfer mechanism for telling clients (or others) to reconnect to a different address.</p>
  65. <p>The following scenarios seem likely:</p>
  66. <ol start='1'>
  67. <li><p>A server needs to be shutdown for maintenance by an administrator but there are other servers available in the cluster and the administrator wants to cause the least disruption possible by having the users automatically reconnect to one of the other available servers.</p></li>
  68. <li><p>Users of an XMPP cluster are hosted on particular servers but the server the user has connected to is not the appropriate server in the cluster, so the server redirects the user to connect to the correct server.</p></li>
  69. <li><p>A new server is brought online in the cluster. To reduce the load on the other servers and to balance out the load, the other servers direct some of their users to connect to the new server.</p></li>
  70. </ol>
  71. </section1>
  72. <section1 topic='Connection Transfer Protocol' anchor='protocol'>
  73. <p>The transfer packet is addressed to the user from the domain they are logged into, it contains the server address to connect to which can be domain name or ip address, it can also contain an optional port number. There is also the domain specified just in case they have to use a different domain name when they log in or to maintain the original domain.</p>
  74. <example caption='Server tells client to connect to a different server in the cluster (by ip address)'><![CDATA[
  75. <iq type='set' from='jabber.org' to='user@jabber.org'>
  76. <query xmlns='urn:xmpp:cxfr'>
  77. <domain>jabber.org</domain>
  78. <server>123.123.123.122</server>
  79. </query>
  80. </iq>
  81. ]]></example>
  82. <example caption='Server tells client to connect to a different server in the cluster (by domain name)'><![CDATA[
  83. <iq type='set' from='jabber.org' to='user@jabber.org'>
  84. <query xmlns='urn:xmpp:cxfr'>
  85. <domain>jabber.org</domain>
  86. <server>server2.jabber.org</server>
  87. </query>
  88. </iq>
  89. ]]></example>
  90. <example caption='Server tells client to connect to a different server in the cluster (using a different port number)'><![CDATA[
  91. <iq type='set' from='jabber.org' to='user@jabber.org'>
  92. <query xmlns='urn:xmpp:cxfr'>
  93. <domain>jabber.org</domain>
  94. <server>server3.jabber.org:6222</server>
  95. </query>
  96. </iq>
  97. ]]></example>
  98. <example caption='Server tells client to simply reconnect'><![CDATA[
  99. <iq type='set' from='jabber.org' to='user@jabber.org'>
  100. <query xmlns='urn:xmpp:cxfr'>
  101. <domain>jabber.org</domain>
  102. <server>jabber.org</server>
  103. </query>
  104. </iq>
  105. ]]></example>
  106. </section1>
  107. <section1 topic='Security Considerations' anchor='security'>
  108. <p>To follow.</p>
  109. </section1>
  110. <section1 topic='IANA Considerations' anchor='iana'>
  111. <p>This document requires no action by the IANA.</p>
  112. </section1>
  113. <section1 topic='XMPP Registrar Considerations' anchor='registrar'>
  114. <p>To follow.</p>
  115. </section1>
  116. <section1 topic='XML Schema' anchor='schema'>
  117. <p>To follow.</p>
  118. </section1>
  119. </xep>