Sie sind auf Seite 1von 10

Computer Networks - Lab Assignment 3

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. Give command route PRINT -4 to see IPv4 routing table of your host computer.
a. What is IPv4 address of your default router as per this table?

The ipv4 address is 10.13.40.1

b. Is it same as default gateway address obtained using ipconfig /all in previous


lab?
Computer Networks - Lab Assignment 3

Yes, it is same.

c. What is IPv6 address of one of the router as per IPv6 routing table?

fe80::2592:2381:cf92:8392/128
2. Type ping /? on the command prompt to check flags/options for ping
a. First try ping -4 www.google.com. What is round trip time (RTT) taken by
ICMP_ECHO request and reply?

b. Now try ping -6 www.google.com. What is IPv6 address of google.com? Why


Computer Networks - Lab Assignment 3

is echo reply not coming in case of IPv6?

ipv6 protocol is not enabled on the current network and hence we cannot ping the
website to get echo reply that the information was received on the other end.
Since ipv6 protocol is not enabled on our system as opposed to the website we are
trying to ping, we dont have common agreed protocol to communicate.

c. Find out your Link Local Address (LL Address) of Ethernet interface using
ipconfig command. Use command ping 6 <LL Address> and use
Ctrl+C after few minutes to generate statistics. Is there a packet loss? If not, why?

There is no packet loss.

d. ping to your IPv6 loopback address. Is there a difference in RTT obtained in 1(c)
above?
Computer Networks - Lab Assignment 3

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


a. Type tracert <LL Address>. How many hops does it take to reach to your
Link Local Address?
ONE

b. Now do tracert to IPv6 router address obtained in (1) above.


No change observed in 3a and 3b [% was just saying this is local link address,
not global addressable or node-local. The identifier number after %, like 11

4. The pathping tool is a route tracing tool that combines features of ping and tracert
with additional information that neither of those tools provides. pathping sends packets to
each router on the way to a final destination over a period of time, and then computes results
based on the packets returned from each hop.
a. Type pathping /? at the command prompt to check flags/options

b. Type pathping library.snu.edu.in. Compare the output with tracert


done in previous lab.
Computer Networks - Lab Assignment 3

c. Do pathping www.facebook.com. Which is most lossy link as per statistics?

5. ARP stands for Address Resolution Protocol, which is used to find the media access control
address (MAC) of an interface for a given IPv4 address.
The Address Resolution Protocol (ARP) maps internet addresses to hardware addresses. TCP/IP uses ARP to
collect and distribute the information for mapping tables. ARP is not directly available to users or applications.
When an application sends an internet packet, IP requests the appropriate address mapping. If the mapping is
not in the mapping table, an ARP broadcast packet is sent to all the hosts on the network requesting the physical
hardware address for the host.

a. Check your arp cache by typing arp -a at the command prompt. What is MAC
address of your computer? Is it same as obtained using ipconfig?
Computer Networks - Lab Assignment 3

It is not same.

b. Now ping to any one of your 4x4 neighbors IPv4 address. Check your arp cache
again. What is IPv4 and MAC address of the neighbor you pinged?
Computer Networks - Lab Assignment 3

IPv4 address is 10.13.40.19


MAC Address is70-71-bc-c2-e4-3a

c. ping library.snu.in and check arp cache again. Why is IP address of library
server not listed in arp cache? Is it possible to find MAC address of library.snu.in
using arp cache?
Computer Networks - Lab Assignment 3

It is not available in arp a.

6. netstat is used to display protocol statistics and current TCP/IP connections on your
computer. Please check options using netstat/?
a. Type netstat a. Study active connections. How many connections to web
servers are open from your machine? Hint: Just look for port 80 under Foreign
address column.
In case there are none, just open your favorite web-site in the browser and see if you
see at least one port 80 connections open.
Computer Networks - Lab Assignment 3

In case there are none, just open your favorite web-site in the browser and see if you
see at least one port 80 connections open.
7. Nbtstat is designed to help troubleshoot NetBIOS name resolution problems. When a
network is functioning normally, NetBIOS over TCP/IP (NetBT) resolves NetBIOS names to
IP addresses. It does this through several options for NetBIOS name resolution, including
local cache lookup, WINS server query, broadcast, LMHOSTS lookup, Hosts lookup, and
DNS server query.
NetBIOS over TCP/IP (NBT, or sometimes NetBT) is a networking protocol that allows
legacy computer applications relying on the NetBIOS API to be used on modern TCP/IP
networks.
Just give following two commands on command prompt and tell the relation between the two:
a. nbtstat a <your ipv4 address>
Computer Networks - Lab Assignment 3

b. nbtstat c

-c lists netbios cache of remote machines names and their addresses while
-a lists the remote machines name table given its name
Reference

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


us/library/cc958878.aspx)

Das könnte Ihnen auch gefallen