Write a test program that uses the socket interface to send messages between a pair of Unix

Question:

Write a test program that uses the socket interface to send messages between a pair of Unix workstations connected by some LAN (e.g., Ethernet, ATM, or FDDI). Use this test program to perform the following experiments.

(a) Measure the round-trip latency of TCP and UDP for different message sizes (e.g., 1 byte, 100 bytes, 200 bytes,..., 1000 bytes).

(b) Measure the throughput of TCP and UDP for 1-kB, 2-kB, 3-

kB,. . . , 32-kB messages. Plot the measured throughput as a function of message size.

(c) Measure the throughput of TCP by sending 1 MB of data from one host to another. Do this in a loop that sends a message of some size, for example, 1024 iterations of a loop that sends 1-kB messages. Repeat the experiment with different message sizes and plot the results.

Step by Step Answer:

Related Book For  answer-question

Computer Networks A Systems Approach

ISBN: 9780128182000

6th Edition

Authors: Larry L. Peterson, Bruce S. Davie

Question Posted: