Sie sind auf Seite 1von 7

Computer Networks - Lab Assignment 2

For this lab assignment, you will learn about MS-DOS TCP/IP Network Commands and solve
problems based it.

Submitting this Assignment:


You will submit this assignment to course TAs - Write your answer and paste screenshots after each
question in this document.

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

1. Type ipconfig /all on Windows command prompt of your Desktop machine.


a. What is complete name of your computer?

b. What is your 32-bit IPv4 address?

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?

f. What is the address of your default router (gateway)?

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)?

i. Check other options of ipconfig by giving the command ipconfig /?


Computer Networks - Lab Assignment 2

2. Type ping /? on the command prompt to check flags/options for ping


a. Using ping with appropriate flag to send just one ICMP_ECHO request packet to
www.google.com. What is round trip time (RTT) taken by ICMP_ECHO request and
reply?

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

c. Measure average RTT by pinging to the following sites:


i. www.snu.edu.in (Noida)

ii. www.iitd.ac.in (New Delhi)

iii. www.iitkgp.ac.in (Kharagpur)

iv. www.iitg.ac.in (Guwahati)

v. www.baidu.com (Beijing, China)

vi. www.u-tokyo.ac.jp (Tokyo, Japan)


Computer Networks - Lab Assignment 2

vii. www.yandex.ru (Moscow, Russia)

viii. www.lse.ac.uk (London, UK)

ix. www.uct.ac.za (Cape town, South Africa)

x. www.mit.edu (Cambridge, Massachusetts, USA)

xi. www.unsw.edu (New South Wales, Australia)

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?

Bandwidth, throughput, Latency

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.

Type tracert /? on the command prompt to check flags/options


a. Trace a path from your Desktop to your default Router address obtained in 1(f)
above. How many hops does it take? Why?

b. Type tracert h 1 library.snu.edu.in. Whether your 3 probes reach to the library


server? If not, run the same command without h 1
Computer Networks - Lab Assignment 2

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?

b. Check if we switch to other name-server whether IP address of SNU remains same?


nslookup www.snu.edu.in 10.3.0.3

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

Type exit on > prompt to come back to DOS command prompt

Reference

1. Overview of TCP/IP Troubleshooting Tools (http://technet.microsoft.com/en-


us/library/cc958878.aspx)

Das könnte Ihnen auch gefallen