Description:
For this experiment, the echo client sends out a packet of n bytes fifty times to the echo server. The echo server reads the length of the message first, then reads as many bytes from the input stream as specified by the message length. Afterwards, it writes the received message to the output stream. During this process, the echo client begins its benchmark with a time stamp before writing to the output stream and a time stamp after reading from the input stream. When the echo client is finished, it returns the average round-trip time over the fifty echo requests. Also, although message sizes of 10 bytes, 1,000 bytes, and 10,000 bytes were asked to be tested, those of 100 bytes, 100,000 bytes, and 1,000,000 bytes were also tested for completeness.
Results: