CN Assignment 1 2020
CN Assignment 1 2020
CN Assignment 1 2020
Assignment-I
Objective: To get familiar with the basic networking tools: ping, traceroute, ifconfig,
netstat, nslookup, traceroute/tracpath/tracert, ssh.
To open a terminal window in Ubuntu/Fedora, double-click the Terminal icon on your desktop, or click the
Dash Home icon and then type Terminal.
nslookup
Use the nslookup command from the "Tools of the Trade" and answer the following questions:
1.1 Which is the IP address of the Google site (www.google.com)? In your opinion, what is the reason of
having several IP addresses as an output?
1.2 Find out name of the IP address 127.0.0.1. What is special about this IP address?
1.3 (Optional) Perform the same steps as above, but this time use the dig and/or the host command instead of
nslookup. Observe the different types of output for each of these commands. Even though it seems obscure for
the moment, you will soon find out how all these details help DNS troubleshooting (TP4:Domain Name System
and Spam)
ifconfig
2.1 What is the IP address of your station?
2.2 What are the interfaces on your station?
ping
3.1 Are the following machines reachable from your machine: www.verizon.com, www.swisscom.ch,
www.microsoft.com, www.hoola.hp, www.20min.ch, 8.8.8.8? Check if the addresses unreachable by the
command ping are reachable from the Web browser. If yes, why does this happen in your opinion?
3.2 What is the minimal, average, and maximum round trip time for the site www.kged.edu.in? (let ping return
at least 20 replies)
traceroute/tracepath
4.1 How many routers are there between your station and www.mcgill.ca? Which ones are between your
workstation and the SWITCH network? Check in the Tools of Trade how traceroute works and ask an assistant
about anything that you do not understand well. E.g. what are the stars in the output of the previous traceroute
command?
4.2 Between which routers does a packet cross the Atlantic? Hint: compare the round trip times from your
station to the routers.
4.3 Make a traceroute to the site www.epfl.ch Where is it situated?
4.4 Several servers distributed around the world provide a web interface from which you can perform a traceroute
to any other host in the Internet. Go to Server1 and/or Server2. Make traceroute from a server towards your station
and conversely. Repeat it for the two traceroute servers only, i.e., traceroute from Server1 to Server2 and back.
You can find other traceroute servers from the list at www.traceroute.org. What are the IP addresses of Server1
and Server2? Are the paths travelled by a packet from one host to another and vice versa symmetrical?
ssh
5. 1 Use the ssh command and study its characteristics.
netstat
6.1 Print TCP connections that are up and running on your system using netstat -t.
6.2 Start an ssh connection to your neighbor station. Find the TCP connection that you just established and print
out the information for that connection.
*******
Last date of submission of assignment-13th March, 2020