[jdev] udp for s2s connection

David Waite dwaite at gmail.com
Fri Sep 30 23:21:14 CDT 2005

On 9/30/05, Wendell Turner <wendell at adsi-m4.com> wrote:
> I would like to use UDP between two servers, instead of the
> current tcp.  How difficult is this going to be?  (I'm
> experimenting with jabberd1.4 now.)
The protocol assumes the features TCP supplies. In particular:
- Messages are allowed to be larger than the MTU, meaning you may need
to fragment messages across multiple UDP packets.
- Messages are required to be processed in-order, and it could be said
they are required to be delivered in-order (since XMPP only defines
TCP which gives a stream, this is not stated explicitly)

> 2) I see references to tcp in the jabberd1.4 config file
> (service="_xmpp-server._tcp), but _tcp seems to be the only
> option.  Is there already a way to specify another method that
> tcp?
There is no standard for udp, so you are on your own. P

> 3) Can this be a plugin, or do I have to bash the server code
> itself?
To say you will have to get your hands dirty will be an understatement.

> 4) Is there some other ideas for running the servers on a
> limited-bandwidth s2s link?
Use a SSL connection and negotiate compression?

-David Waite

More information about the JDev mailing list