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

  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>
  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></email>
  24. <jid></jid>
  25. </author>
  26. <author>
  27. <firstname>Richard</firstname>
  28. <surname>Dobson</surname>
  29. <email></email>
  30. <jid></jid>
  31. </author>
  32. <author>
  33. <firstname>Florian</firstname>
  34. <surname>Jensen</surname>
  35. <email></email>
  36. <jid></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='' to=''>
  76. <query xmlns='urn:xmpp:cxfr'>
  77. <domain></domain>
  78. <server></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='' to=''>
  84. <query xmlns='urn:xmpp:cxfr'>
  85. <domain></domain>
  86. <server></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='' to=''>
  92. <query xmlns='urn:xmpp:cxfr'>
  93. <domain></domain>
  94. <server></server>
  95. </query>
  96. </iq>
  97. ]]></example>
  98. <example caption='Server tells client to simply reconnect'><![CDATA[
  99. <iq type='set' from='' to=''>
  100. <query xmlns='urn:xmpp:cxfr'>
  101. <domain></domain>
  102. <server></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>