next up previous contents
Next: Tools Up: Problems to be addressed Previous: Communication   Contents

Measuring the RTT Between Nodes

As stated in 2.2.1, the network structure will be determined by the round-trip-times(RTT) between nodes. Servers will need to measure the RTT between other servers so they can form a minimum spanning tree and clients will want to connect to the ``best'' server, which for the first version of the system will just be the closest one (i.e. the one with the lowest RTT).

The ping command returns the RTT of a given host by sending it IMCP ECHO requests[Pos81] which are automatically responded to by the target host. Using this method to measure RTT would be very sensible as then the server does not need to run a special daemon for the purpose. Unfortunately, using ICMP requires the program to access raw sockets that can only be opened by a superuser. This requires the client and server to be setuid root, a dangerous security hole[GM84] and so some other method of measuring the RTT will have to be devised.

The idea of using an ECHO service[Pos83] to measure the RTT came from an example program in chapter 16 of Comer & Stevens[CS96]. A small string of data is sent across the network, the server sends the same data back to the client, and the time this process takes is measured.


next up previous contents
Next: Tools Up: Problems to be addressed Previous: Communication   Contents
Nathan Dimmock 2001-06-20