next up previous contents
Next: Server-Database Synchronisation Up: Problems to be addressed Previous: Problems to be addressed   Contents

Network Structure

There are three ways to structure a server network:
  1. Hierarchical. Servers are arranged into a tree-like structure based on some geographical similarity. Messages are passed up the hierarchy, so a node at level $n$ receiving a message from a client broadcasts it to nodes at level $n+1$ and then forwards it to level $n-1$.
  2. Total-Interconnect. Each time a server wishes to, for example, inform all the other servers that a user has updated their status, they contact all the other currently up servers and send them the message.
  3. Fixed Network. Each server is permanently connected to a few other servers(known as their peer-servers). Each time they want to send a message, they send it to their peer-servers who forward it to their peer-servers, until it has been propagated throughout the network.

A total-interconnect would be easy to implement but would scale poorly as the network grew2.2. A hierarchy would require some sort of organisation and administration and would be hard to implement automatically, but a fixed network also requires some administration in choosing the fixed connections. This problem was solved by considering the network as a graph with the round-trip-times (RTT) between servers as the weights of the arcs and then using the minimum spanning tree as the set of connections to form. This method has the useful property that it can be used completely dynamically: as soon as a server goes down, the network recalculates the minimum spanning tree and forms the new connections. Therefore, the architecture chosen for the system was the fixed network.

Because the propagation of messages between nodes is similar to the way in which rumour travels in human society, it was decided to call this instant messaging system Gossip.


next up previous contents
Next: Server-Database Synchronisation Up: Problems to be addressed Previous: Problems to be addressed   Contents
Nathan Dimmock 2001-06-20