0% found this document useful (0 votes)
1K views

Assignment 1

This document contains the results of running various networking commands on a system to test their functionality and display the output. It includes the output of commands like hostname, ipconfig, ping, traceroute, netstat, ARP, and nslookup run on the system. The key information gathered includes the host name, IP address, MAC addresses of network interfaces, DNS lookups of domain names, routing tables, listening ports, connections, and performance of connections to other hosts on the network.

Uploaded by

Piyush Sahu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

Assignment 1

This document contains the results of running various networking commands on a system to test their functionality and display the output. It includes the output of commands like hostname, ipconfig, ping, traceroute, netstat, ARP, and nslookup run on the system. The key information gathered includes the host name, IP address, MAC addresses of network interfaces, DNS lookups of domain names, routing tables, listening ports, connections, and performance of connections to other hosts on the network.

Uploaded by

Piyush Sahu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

ITE3001 – DATA COMMUNICATION AND COMPUTER NETWORKS

Winter Semester 2020-21


ASSESSMENT 1
SLOT:L17+L18
Study and test the functionality of basic networking commands and
display the results of them
By-Piyush Sahu
19BIT0038

1)Hostname
a. Find the name of your system?
ANS: The host name of my PC is “Piyush”

b. What is the significance of the name?


ANS: Hostname is name assigned to computer connected to a network. It uniquely identifies it
and allows us to address the computer without IP address as addressing using IP address is
difficult, thus hostname makes it easier it do so.

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”

c. Find out all the network interfaces connected to your system


ANS:

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 ?

ANS: from above command IP address of www.vit.ac.in is : 136.233.9.13

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.

g. Show the Kernel interface table, similar to ifconfig command

.
h. By simply opening a browser connection to HTTP (port 80) server (while still offline!) what
will be status of netstat command?

i. Display Service name with PID.


5. traceroute
a. How traceroute works?
Traceroute uses the TTL (Time to Live) field in the IP packet header. Normally, TTL is used to
prevent packets from being forwarded forever when there is a routing loop. Whenever an IP
packet is forwarded by a router, the TTL is decreased by one. When the TTL is zero, the IP
packet will be discarded.
b. What kind of information can be obtained by the traceroute command?
The following are information can be obtained using traceroute:
Time measured in milliseconds that it takes a packet to travel between nodes
The IP and URL for each network node it accesses
Which network nodes do not respond to ICMP ping requests
c. Perform a traceroute from your machine to www.vit.ac.in. Include a copy of the output and
explain what happened including a description of what each of the fields means
The first hop is to a routing device upstream of the computer - it returns a response quickly.
The second hop is to the N4L Managed Router on site at the school, on its internal IP address
The third through seventh hops are to routers external to the school. The responses take slightly
longer as the hops are located on the other side of the route (2 - 16ms).
The remaining hops show Request Timed Out - including the final hop - no packets reach the
destination IP address.
This indicates that no route for traffic to this destination can be found outside of N4L's Managed
Network (in this case because there is a problem with the destination
d. Perform a traceroute for the following machines within 5 hops: www.google.co.in

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?

You might also like