[jdev] Routing

Jonathan Dickinson jonathanD at k2.com
Mon Jun 23 07:42:36 CDT 2008


Okay, so from what I can tell Tigase works as follows:

+--------+  +--------+
| ROUTER +--+ ROUTER |
+--------+  +--------+
|        |  |        |
C2S --- C2S C2S --- C2S

(Components are aware of each other, packet switched/p2p)

And jabberd2 works as follows (my diagram is a gross simplification):

+------------+ +------------+
| ROUTER /---+-+---\ ROUTER |
|       /  /-+-+-\  \       |
+------/--/--+-+--\--\------+
       |  |       |  |
      C2S C2S    C2S C2S

(Router knows the routes to each connected entity, circuit switched)

One thing I am worried about is storing routes in each router or component. You could get, in the worst case scenario, a router with every single possible route target stored (and then you might as well no longer cluster them). I was hoping to do something more along the terms of classical routing where the router has zero-knowledge: it gets a packet - sees if it should/can be routed to a connected component otherwise it sends it on.

Both are proven concepts, P2P scales really well and PSTN has been around for ages and just works. I will probably try both and see how they pan out.

> -----Original Message-----
> From: jdev-bounces at jabber.org [mailto:jdev-bounces at jabber.org] On
> Behalf Of Tomasz Sterna
> Sent: 23 June 2008 02:27 PM
> To: Jabber/XMPP software development list
> Subject: Re: [jdev] Routing
>
> Dnia 2008-06-23, pon o godzinie 13:42 +0200, Jonathan Dickinson pisze:
> > Thus each stanza would make a complete trip round the network (2 at
> > worst) before it could be sent. Does anyone have any clever ideas how
> > to get around this?
>
> In http://svn.xiaoka.com/jabberd2/branches/clustering you will find
> jabberd2 which routes packets based on full-JIDs.
>
>
> --
>   /\_./o__ Tomasz Sterna
>  (/^/(_^^' http://www.xiaoka.com/
> ._.(_.)_   im:smoku at xiaoka.com
>
> _______________________________________________
> JDev mailing list
> FAQ: http://www.jabber.org/discussion-lists/jdev-faq
> Forum: http://www.jabberforum.org/forumdisplay.php?f=20
> Info: http://mail.jabber.org/mailman/listinfo/jdev
> Unsubscribe: JDev-unsubscribe at jabber.org
> _______________________________________________


More information about the JDev mailing list