next up previous contents
Next: Message Data Format Up: Specification Previous: Specification   Contents

System Operation

Figure 3.1: Sequence diagrams for a server or client joining the network
\includegraphics[]{graphics/operation1.eps}

Figure 3.1 shows the sequence of interactions that take place when a server or client joins the network. They make their initial connection to the network by using a list of servers supplied in a configuration file by the user. It is envisioned that the user would obtain this list via some other communications channel, e.g. the website where they learnt about the system.

Once the server is part of the network, there is a continuous flow of messages so its user database and list of servers is kept up to date. The client also receives messages informing it of new servers and servers which have gone down plus messages concerning the status of any users on their contact list.

Figure 3.2: Sequence diagram for a user sending a message to another user
\includegraphics[]{graphics/operation2.eps}

As shown in figure 3.2, when a user wishes to send a message to another user, they first contact the server to obtain the IP address of the user and the port on which they are listening for incoming messages. They then initiate a TCP connection to that client and send the message.


Table 3.1: Server to Server Interface
Type of Message Arguments XML Tagname
Connect IP address, Port serverID
Request server list   reqServerlist
Send server list Server list and RTTs serverlist
Request changed database entries Current user database state. eventCounts
User database Entries Requested database entries changedEntries
Add server Name and port of new server addServer
Delete server Name of server deleteServer
User info updated UserID, new user information UserInfo
Contact list updated UserID, new contact list ChangeCL
New user New user information newuser
Disconnect Reason for disconnection disconnect


Table 3.1 shows the communications interface between servers. The connect message sends the identity of the server that is originating the message so the recipient server can tell the rest of the network about the new server. The new user message is used to inform other servers about the creation of a new user account.


Table 3.2: Server to Client Interface
Type of Message Arguments XML Tagname
Send server list Server list serverlist
Server Message Message servermsg
Error Reason for error error
Add server Name and port of new server addServer
Delete server Name of server deleteServer
User information UserID, new user information UserInfo
Contact list The user's contact list contactlist
Disconnect Reason for disconnection disconnect


Table 3.2 shows the messages that a server can send to a client. The error message is to indicate when a client request cannot be serviced for some reason. Server message is for informing a user about server or network news (for example a message of the day). The user information message is used to send any information relating to a particular user to the client, e.g. a status change or their IP address and port if the client wishes to contact them.


Table 3.3: Client to Server Interface
Type of Message Arguments XML Tagname
Login UserID, Authentication Token(s) authenticate
Request server list   reqserverlist
Request user information UserID reqUserInfo
Request our contact list   reqContactList
Info updated New user information UserInfo
Contact list updated New contact list ChangeCL
Register new user New user information regNewUser
Disconnect Reason for disconnection disconnect


Table 3.3 shows the messages that a client can send to the server.


next up previous contents
Next: Message Data Format Up: Specification Previous: Specification   Contents
Nathan Dimmock 2001-06-20