There are 6 labs during this course. For each student, the 5 best performing labs will contribute to your final lab mark. |
10:00 am Tuesday 28/09/2021 . You can submit as many times as you wish before the deadline. A later submission will override the earlier submission, so make sure you submit the correct file. Do not leave until the last moment to submit, as there may be technical or communications errors and you will not have time to rectify it.
Note: For all your lab exercises you are asked to put
a screenshot of your outputs (e.g., graphs,
traceroute, dig comments) in your report.
The late penalty will be applied as follows:
Note that the above penalty is applied to your final mark. For example, if you submit your lab work 2 days late and your score on the lab is 8, then your final mark will be 8 - 3.2 (40% penalty) = 4.8.
Prepare a PDF document Lab1.pdf with answers to all questions for all exercises. To include other supporting documents, create a tar archive of all the files called Lab1.tar. Submit the archive using the give or WebCMS3 interface. You can submit from a lab machine or ssh into the CSE login server. Instructions to ssh into CSE login servers are here .
You are strongly encouraged to discuss the questions
with other students in your lab. However, each student
must submit his or her own work. You may need to refer
to the material indicated above (particularly the Tools
of the Trade document) and also conduct your own
research to answer the questions.
Please note that the instructions provided herein assume that you are running the exercises on a Linux machine (similar to the CSE lab machines). These commands (and the scripts provided) may not work as prescribed on other OSes (Windows, OS X, etc.). We strongly recommend that you run these experiments on CSE machines. If you are running from off-campus, you can use VNC to connect to VLAB. We will be unable to help you diagnose any issues that may arise with OSes other than Linux.
Use the nslookup command from the "Tools of the Trade" and answer the following questions:
Are the following hosts reachable from your machine by using ping:
If you observe that some hosts are not reachable, then can you explain why? Check if the addresses unreachable by the ping command are reachable from the Web browser.
Note: Include all traceroute outputs in your report.
Note: Include all graphs in your report. You need to run the scripts (runping.sh and plot.sh) when you are physically using a lab machine or connected to a CSE server/lab machine using VLAB / VNC client. You need to ensure gnuplot and ps2pdf are available on your system if you are planning to do this exercise on your own machine.
We now use the ping utility to investigate network delay and its implications on network performance. In particular, we will analyze the dependency of packet size and delay.
There is a shell script, runping.sh , provided that you can use instead of running many pings with different packet sizes by hand. After downloading this script on your machine make sure you can execute it. If not, you will have to execute the following command in the command line: chmod u+x runping.sh . To run the ping traces you may use the runping.sh script as follows: ./runping.sh www.abc.net (or whatever other destination you want to ping). It will automatically run ping for different packet sizes and with 50 ping packets per size. Note, since a ping is sent once per second, this script will take a few minutes to finish. Basically, this script only executes the commands:
$ ping -s 22 -c 50 -i 1 www.abc.net > www.abc.net-p50 ... $ ping -s 1472 -c 50 -i 1 www.abc.net > www.abc.net-p1500
and writes the output of the pings to the corresponding files.
Use this script for the following destinations:
(i) www.uq.edu.au (ii) www.upm.edu.my (replacing www.dlsu.edu.ph as the hosting appears to have changed) and (iii) www.tu-berlin.de
In other words, execute the following commands
$ ./runping.sh www.uq.edu.au $ ./runping.sh www.upm.edu.my $ ./runping.sh www.tu-berlin.de
In case you notice one of the hosts above is not responsive, select the following alternate destinations: (i) within Australia ( www.flinders.edu.au , www.unsw.edu.au ) (ii) Asia ( www.smu.edu.sg , upd.edu.ph ) (iii) Europe ( www.aau.dk , www.uio.no )
Note that all delay values reported are in milliseconds (ms) and reflect the round trip time (RTT) between your host and the destinations.
When the runping.sh script is finished for all destinations, you can plot the results using another provided script, plot.sh , as follows:
$ ./plot.sh www.uq.edu.au-p* $ ./plot.sh www.upm.edu.my-p* $ ./plot.sh www.tu-berlin.de-p*
If you cannot execute plot.sh, then fix the permissions by executing the following command in the command line:
$ chmod u+x plot.sh
The script plot.sh will produce the following files: destination_delay.pdf, destination_scatter.pdf, and destination_avg.txt for each of the destinations (e.g., for www.uq.edu.au we have www.uq.edu.au_delay.pdf , www.uq.edu.au_scatter.pdf and www.uq.edu.au_avg.txt ).
The graph destination_delay.pdf shows how delay varies over time (different colours correspond to different packet sizes), and destination_scatter.pdf shows delay vs. packet size as a scatter plot. destination_avg.txt contains the average (2nd column) and minimum (3rd column) delay values corresponding to each packet size (1st column).
Resource created Saturday 04 September 2021, 10:47:44 AM, last modified Monday 20 September 2021, 08:52:30 PM.
give cs3331 Lab1 file1 file2 file3 ...
3331 classrun -check Lab1
3331 classrun -collect Lab1