Quiz 2 - CPSC 4240/6240 Spring 2017 Solution

last update: 2/23/2017

Step 1 - download, unpack and build the UDPEcho2 package

On your VM,

(If you don't have wget, issue 'sudo apt-get install wget' )

Unpack and build:

 

Step 2. Get familiar with the client and server - source code, usage, make several extensions

Read the readme.txt and look over the client and server code - see https://people.cs.clemson.edu/~jmarty/courses/Spring-2017/CPSC424/code/UDPEcho2/

Please make the following changes

 

Step 3 Collect Data - Perform two experiments

For both experiments, the following holds:

Run the server : ./server 5000

Run the client : ./client localhost 5000 100000 1000 5000 > exp*Results.dat ; 5000 iterations, 0.100 seconds (100000 useconds) iteration delay, 1000 byte msg size, 5000 iterations

Develop a simple bash script that uses awk and processes the file as follows:

Finally, use matlab, octave, excel, (or any tool you want) to plot the probability distribution of the data set of RTTs.

 

This is a matlab script that reads an input file (currently set to ping.dat, modify that line to read in your data file, with a timeseries of data (1 field per line representing the number of milliseconds) ), it does a pass through the data to deal with outliers (defines a maxValue - you would need to adjust this to fit your data set), and then generates a probability distribution. In matlab, this is done in two steps - first the data is binned to create a historgram; second that data is normalized by modifying the y axis data to be a frequency of occurrence which when plotted with an X axis of the possible values in the data set produces the probability distribution. If you just plot the histogram that is OK for the quiz but for future questions make sure you refresh your memory related to probability distributions.

Step 4. Submission: two components

 

Solution: The modified UDPEcho2 is in the package UDPEchoV1-2.tar.gz

 

We ran the server on a Mac and two clients on two different Linux machines. All three Hosts were connected by WiFi.

Both clients were run on a VM on two diffferent laptops. Client 1 on as follows: ./client 192.168.0.9 5000 1000000 1000 2000 130
The server : ./server 5000 130

MacOS ---- ./server 5000 130 ----- wifi ----|---->two Linux Hosts (client1 and client2)

 

 

RTT data analysis.