next up previous contents
Next: The Server Up: Common Components Previous: MessageParser   Contents

NetMeasure

In order to be a fair test of server responsiveness, the connection to every server should (as far as possible) be made simultaneously. The first version of this class used asynchronous I/O to do this, but initial results indicated there might have been some bias towards whichever machine appeared first in the list. It was also suggested that threads or processes might be a better method of obtaining concurrency, so two methods were added to NetMeasure to calculate the RTTs using multiple processes and multiple threads. The three methods were then evaluated for 5 hosts on the Cambridge network. Each test was run 500 times4.1 at 3 second intervals and a mean taken.


Table 4.1: RTTs for different hosts, measured using three different methods
  Asynchronous I/O Processes Threads
athena.jesus 3.49 9.442 7.020
localhost (astronomican.jesus) 0.956 4.71 2.424
gloves.thor 9.044 17.838 12.552
potato.newn 19.4 41.098 16.419
student.cusu 18.108 28.578 16.946


Table 4.1 shows the mean round-trip-times, in milliseconds, from astronomican.jesus to five hosts, measured using three different methods. For each method the results place the hosts in approximately the same order. Given the positions of the hosts on the network, this is the expected ordering, confirming that each of the methods works correctly. It also appears the overhead of the method used makes quite a difference to the actual RTT value. Although asynchronous I/O had the lowest overhead of the three methods, the code had come almost directly from [CS96] and was not as well understood as the thread code that had been written from scratch, so the threaded method was used in the final implementation.


next up previous contents
Next: The Server Up: Common Components Previous: MessageParser   Contents
Nathan Dimmock 2001-06-20