Lab 2
Lab 2
Lab 2
For this lab assignment, you will learn about MS-DOS TCP/IP Network Commands and solve
problems based it.
Grading Criteria:
Correct and to-the-point answers will be awarded full points. This assignment has 0 points (with
weightage of 0% in your overall 100 points). However, you are required to complete and get it
checked by course TAs before the next lab.
Questions
c. Go to What Is My IP to see your IPv4 address. What is your IPv4 address now?
d. Are IP addresses obtained in the above two steps are same? If not, what could be the
reason for this? (Refer to RFC 1918 and RFC 1631)
The IP address shown on the What Is My IP home page is your public IP also referred to as
your external IP. If your internet connection connects straight in to your computer, then your
computer is assigned the external IP address. However, if your computer connects to a router
then the computer will most likely get an internal IP address like 192.168.1.100 and your
router will get the external IP address.
Ip address in section c is the provided by the snu network.
e. What is your 48-bit MAC address?
g. What is the address of your DHCP server? What is Lease duration provided by DHCP
server in hours?
It is not enabled, so no lease is provided.
h. Write down the address (es) of your DNS server(s)?
b. Type ping iitk.ac.in. What is % packet loss for IIT-K webserver? Type iitk.ac.in in the
address bar of your web browser. Since web server is up and running, what could be
the reason for not returning ICMP_ECHO reply when you ping to the server?
Computer Networks - Lab Assignment 2
d. Plot approximate distance (in Km) versus average RTT (in ms). Whether RTT
increases with distance? If not, then why?
Computer Networks - Lab Assignment 2
e. Write down at least three network parameters which could be measured using ping
utility?
3. tracert displays the path that the signal took as it traveled around the Internet to the website. It
also displays times which are the response times that occurred at each stop along the route. If
there is a connection problem or latency connecting to a site, it will show up in these times.
c. Can you find out what could be maximum separation between two hosts (in terms of
number of hops) using h flag of tracert?
d. tracert to all the web-sites listed in 2(c) above and note-down average RTT.
e. Plot number of hops to the destination address versus average RTT.
4. nslookup is a program to query Internet domain name servers. nslookup displays information
that you can use to diagnose Domain Name System (DNS) infrastructure. nslookup has two
modes: interactive and non-interactive. Interactive mode allows the user to query name
servers for information about various hosts and domains or to print a list of hosts in a domain.
Non-interactive mode is used to print just the name and requested information for a host or
domain. Type nslookup /? Study the options
a. Find out IP address of www.snu.edu.in by giving the command:
nslookup www.snu.edu.in
What is the IP address of the name server used to resolve your query?
Is it one of those obtained in 1(h) above?
c. Lets use nslookup in interactive mode now. Just type nslookup on command prompt
and press enter:
You should get > as your prompt now.
Type your computer name as obtained in 1(a) earlier on this prompt. Whether IP
address is same as obtained in 1(b)?
d. Type www.google.com on > prompt. How many IPv4 addresses do you get? And now
query for www.facebook.com , how many IPv4 addresses do you get now?
We get 6 ipv4 addresses in first case, whereas in second case we only get one
ipv4 address.
Computer Networks - Lab Assignment 2
Reference