You are on page 1of 30

School of Information Technology and Engineering

Fall Semester 2021-22

SWE2002 -Computer Networks Lab

Name: SUNIL R

Registration Number: 19MIS0123

Slot:L11+L12
A. ) PING

i) What is the IP address of www.vit.ac.in ?

ii) Check whether TCP/IP is properly installed and


functioning in your system.

Yes, the TCP/IP is properly installed and functioning in my


system.
iii) 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.

Packets sent: 4, Packets received:4, Lost : 0, so loss = 0% and


thus percentage of packets sent resulted in a successful
response = 100% minimum round trip time = 74 ms average
round trip time = 125 ms maximum round trip time = 190 ms
iv) Increase or Decrease the Time Interval between Packets.
Write the response.

The above command increases the time interval between any


two packets by 5 seconds I.e after receiving one packet the server
waits for 5 seconds before sending the next packet.

v)Send 6 packets .Indicate what percentage of the packets


resulted in a successful response.
vi) Change Ping Packet Size of 512, 1024 bytes of data. Write
the response.

vii) For some of the hosts, you may not have received any
responses for the packets you have sent. What are the
reasons for not getting a response?
 It means that your ICMP packet (ping) was silently discarded

with no response sent.


 Probably disabled ping response for security reasons.
It means that your ICMP packet (ping) was silently discarded
with no response sent. That might happen for several reasons:

Ping is disabled on router or (more likely) end point.

Networks is congested or misconfigured. In most cases, ping does


not work because of firewall settings. Also do not forget that
normally ping returns Connection timeout.

 We have been dropped or lost the packet so that we may not


receive any responses from the host.

 We have lost the connection with the host or connection with


the host is not proper.

 The host server took too long to respond or the request timed
out

 The host system is not updated or the ping server is not


updated

B.) IFCONFIG

i) What is the MAC address of the network interface card of your


system?
MAC address : Physical Address is
considered as MAC address in windows
the address is B6-8625-1F-D9-9A
IFCONFIG doesn’t run on windows.
ii) What is the IP address of your system?
IP:192.168.61.243
iii) Find out all the network interfaces connected to your
system.
All network interface that are connected.

iv) Display the Network Settings of Specific Interface.


C.) HOSTNAME

i) Find the name of your system?

ii) What is the significance of the name?

A hostname is a label that is assigned to a device connected to


a computer network and that is used to identify the device in
various forms of electronic communication, such as the World
Wide Web.
D.) NETSTAT

i. List Various Listening Ports.


ii. List TCP Ports connections
iii. List UDP Ports connections

iv. List all the LISTENING Connections


v. Find the statistics of all protocols.
vi) Display Kernel IP routing table.
vii) By simply opening a browser connection to HTTP (port80)
server (while still offline!) what will be status of netstat
command?
AFTER OFFLINE
viii) Display Service name with PID
E.) TRACEROUTE or TRACERT

i) Write the function of this command.

The tracert command displays a list of all the routers that a


packet must go through to get from the computer where tracert
is run to any other computer on the internet.

F.) NSLOOKUP

i) What is the IP address and name of the machine


www.google.com?
G.) ARP

i) 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.

Using the arp command allows you to display and modify the
Address Resolution Protocol (ARP) cache.
• An ARP cache is a simple mapping of IP addresses to MAC
addresses.
• Each time a computer’s TCP/IP stack uses ARP to
determine the Media
Access Control (MAC) address for an IP address,
Column explaination:
• physical (MAC) address :the address of the receiver
hardware in the network, The Layer 3 device on the destination
device network uses ARP to obtain the MAC address of the
destination device and delivers the packet.
• Internet address: the IP address of the receiver on the sender
side Layer 3 devices need ARP to map IP network addresses
to MAC hardware addresses so that IP packets can be sent
across networks.

• Connection type:

1)static : Static routing requires an administrator to


manually enter IP addresses, subnet masks, gateways, and
corresponding media access control (MAC) addresses for each
interface of each device into a table.
2)dynamic: Dynamic routing uses protocols that enable
the devices in a network to exchange routing table
information with each other. The table is built and changed
automatically. No administrative tasks are needed unless a
time limit is added.
H. ) PATHPING

i) Execute the pathping command and write the difference w.r.t


trarcert command.
Pathping does a traceroute to the destination,and then uses
ICMP to ping each hop in the path 100 times.This means
pathping give more accurate latency information.

I) GETMAC

i) Write the MAC of your device.

The mac of this device

You might also like