Assignment 1
Assignment 1
1)Hostname
a. Find the name of your system?
ANS: The host name of my PC is “Piyush”
2. ipconfig
a. Find out the MAC address of the network interface card of your system?
ANS: Here 5 adapters are present at their mac address is shown as “Physical Address”
Eg for wireless LAN adapter
b. Find the host IP address of your system?
ANS: In the above picture the IP address of my system in IPV4 address given for “Wireless
LAN adapter Wi-Fi”
As you see here all network adapter connected to system are displayed along with it MAC
address
3. ping
a. Find the IP address of www.vit.ac.in ?
b. Indicate what percentage of packets sent resulted in a successful response. For the packets
from which you received a response, write down the minimum, average, and maximum round
trip times in milliseconds. Note that ping reports these times to you if you tell it how many
packets to send on the command line. Explain the differences in minimum round-trip time to
each of these hosts
ANS :100% of packets sent resulted in successful response.
The minimum roundtrip trip time differs with the distance from the source. The further the
destination is from source, the longer the propagation time.
Therefore the minimum roundtrip times are different here.
c. Now send pings with 56, 512 and 1024 byte packets to the 4 hosts above. Write down the
minimum, average, and maximum round trip times in milliseconds for each of the 12 pings. Why
are the minimum round-trip times to the same hosts different when using 56, 512, and 1024 byte
packets
ANS:a) www.vit.ac.in
**56 bytes
** 512 bytes
** 1024 bytes
b)www.google.com
**56 bytes
**512 bytes
**1024 bytes
c)youtube.com
**56 bytes **512bytes **1024 bytes
d)reddit.com
**56 bytes **512 bytes **1024 bytes
Larger packets have a longer transmission delay since the sending and receiving machines must
spend more time just getting the packet on and off the network. The time it takes to put the
packet onto the network is determined by the bandwidth and the amount of data being
transmitted. However, the transmission delay is small compared to the latency caused by the
propagation delay. Hence the amount of additional time for larger packets is small compared to
pithe round trip time for small packets.
d. For the following hosts, intranet.vit.ac.in, send 100 packets that have a length of 56 data
bytes. Indicate what percentage of the packets resulted in a successful response.
(since intranet.vit.ac.in is not working ,so I will be sending to www.vit.ac.in)
99% is successful and 1% was loss
e. For some of the hosts, you may not have received any responses for the packets you sent.
What are some reasons as to why you might have not gotten a response
Neither of any machines send back any ping responses. A few possible reasons:
Saving of resources: The sites might be trying to minimize the number of services on its web site
so that the system can focus on serving web requests.
Security: By providing fewer services, fewer security "holes" are likely to exist. People have
been known to use ping to send very large packets to hosts. These packets cause the servers'
buffers to overflow and crash the system.
Firewall: The www.microsoft.com machine could be hidden behind a firewall which only allows
http requests to pass. Hence ICMP packets never make it to www.microsoft.com.
Crash: The system on the other end might have crashed.
Temporary Congestion: The network may be dropping packets because of congestion.
Network failure: The network connection to or from a host may have failed.
Hacked Machine: A machine was modified to behave by dropping packets.
f. For the following hosts, send pings and write down the minimum, average, and maximum
round trip times in milliseconds.
(1) vit.ac.in
2) google.com
3)reddit.com
4. Netstat
a. List Various Listening Ports.
b. List TCP Ports connections
c. List UDP Ports connections
d. List all the LISTENING Connections
e. Find the statistics of all protocols.
f. Display Kernel IP routing table.
.
h. By simply opening a browser connection to HTTP (port 80) server (while still offline!) what
will be status of netstat command?
6. ARP
a. How do you show the full ARP table for your machine? Capture a printout of what it is.
Explain each column of what is printed.
The ARP has table that contains are used to store IP addresses ( internet address) and their
resolved Ethernet or Token Ring physical addresses, type is how allocation is happens when
dynamic or static.
b. Try ping a couple of local addresses and a website. Then re-run the arp command. Which
addresses are listed?
7. nslookup
a. What is the IP address and name of the machine vit.ac.in and mail.vit.ac.in?
b. What local machine is this information coming from? Why is it coming from this machine?