0% found this document useful (0 votes)
144 views13 pages

Digital Assignment - 1: I) Ping

This document contains the responses to various questions related to networking commands like ping, ipconfig, netstat, traceroute, nslookup, telnet, and ARP for a lab assignment on data communication and computer networks. The student provides explanations of how to use each command to view IP addresses, MAC addresses, listening ports, TCP and UDP connections, trace routes, perform remote connections via telnet, and view the full ARP table.

Uploaded by

Karthik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
144 views13 pages

Digital Assignment - 1: I) Ping

This document contains the responses to various questions related to networking commands like ping, ipconfig, netstat, traceroute, nslookup, telnet, and ARP for a lab assignment on data communication and computer networks. The student provides explanations of how to use each command to view IP addresses, MAC addresses, listening ports, TCP and UDP connections, trace routes, perform remote connections via telnet, and view the full ARP table.

Uploaded by

Karthik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

DIGITAL ASSIGNMENT – 1

DATA COMMUNICATION AND COMPUTER NETWORKS (LAB) – ITE3001

NAME – M SRI KRISHNA KARTHIK DATE – 22-09-2021


REG NO – 19BIT0168 SLOT – L5+L6

I) ping
i) What is the IP address of www.vit.ac.in?
A) To find the answer of a particular website, we use ping <website name>

ii) Check whether TCP/IP is properly installed and functioning in your system.
A) Firstly, we use ipconfig /all, to get the IP address, subnet mask and default
gateway etc.
As the IP address isn’t either 169.254.X.X or 0.0.0.0, the IP address is correct
and TCP/IP is configured properly within the system.
Verifying it;

As we are getting a reply, on pinging the IP address, it means it is correct and


we can connect to the router.

iii) Increase or Decrease the Time Interval between Packets. Write the
response.
A) We can change ping time interval by using ping -i <time> <IP address>
Increasing ping time by waiting for 4 seconds before sending next packet
Decreasing ping time by waiting for 1 second before sending next packet

iv) Change Ping Packet Size in bytes of data. Write the response.
A) To indicate the size of each data packet, we can use
ping -l <size in bytes> <IP address>

Here size of each packet is 64 instead of the default 32.

v) Execute the Timeout option for 3 seconds


A) The command ping -w <timeout time in milliseconds> <IP address> is used
to set a timeout value

Here the timeout time is set to 3000ms.


vi) Write current version of ping command
A) ping -V is used to get the version of ping on Linux, but the same doesn’ work
on Windows.
Windows:

Linux:

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?
A) The reasons for not getting a response back may be due to the facts that
there are network restrictions in place, or the network is misconfigured. It may
also be due to too high or low ping time interval as below.

II) ipconfig
i) What is the MAC address of the network interface card of your system?
A) ipconfig /all can be used to configure all the network interfaces in the
system. The physical address of the Ethernet adapter is nothing but the MAC
address of the network interface card of the system.
Here the MAC address is C0-3E-BA-33-65-06

ii) What is the IP address of your system?


A) ipconfig can be used to find the IP address of the system.

iii) Find out all the network interfaces connected to your system
A) ipconfig /all can be used to configure all the network interfaces in the
system.
iv) Show the differences between ‘release’ and ‘renew’ options in ‘ipconfig’
A) ipconfig /release is executed to force the client to immediately give up its
lease by sending the server a DHCP release notification which updates the
server's status information and marks the old client's IP address as "available".
ipconfig /renew is executed to request a new IP address.
III) netstat
i) List Various Listening Ports.
A) netstat -l is used

ii) List TCP Ports connections


A) netstat -t is used
iii) List UDP Ports connections
A) netstat -u is used

iv) List all the LISTENING Connections


A) netstat is used

v) Find the statistics of all protocols.


A) netstat -s is used
IV) traceroute or tracert
i) Execute the function of this command.
A) tracert <IP address>

ii) Trace to www.vit.ac.in and show the differences between ‘pathping’ and
‘tracert’
A) The difference between tracert and pathping is that tracert helps to find the
actual path from the source to the destination device while pathping is a
command that provides information about network latency and network loss
at intermediate hops between the source and the destination devices.
V) nslookup
i) What is the IP address and name of the machine www.google.com?
A)

VI) Remote connection


i) Explain the commands for the connections to remote systems.
A) Telnet is a protocol to provide communication over the Internet or a LAN a
using a virtual terminal connection.
We can establish a remote connection to another system by using
telnet <address> <port>. Here, we try to establish a connection to code42.com
an online exploitable web server. The Code42 app uses port 4287.

For general, when we are accessing another system, authentication is asked to


be done for secure computers.

VII) ARP
i) Show the full ARP table for your machine? Capture and explain each column
of what is printed.
A) arp -a command is used to capture the ARP table
As shown above, we get the list of network interfaces, the target IP address
each interface is trying to reach, the physical or MAC address of each system
along with the type of ARP entry.
MAC address is a unique identifier assigned to a network interface controller
(NIC) for use as a network address in communications within a network
segment.
ARP cache can contain dynamic (learned) entries and static (user-configured)
entries.

You might also like