logo

ICMP and IP Lab Report

   

Added on  2023-04-25

24 Pages2689 Words168 Views
ICMP AND IP 1
MITS4004: ICMP AND IP
Name
Instructor
Institution
Course
City
Date

ICMP AND IP 2
Introduction
This is a lab report where we will find out more about Internet Control Message Protocol
(ICMP). From lectures, ICMP protocol is used for error reporting to network devices such as
routers. The ICMP protocol sends a message to the source Internet Protocol address which
indicates to a gateway that a certain service, a host or a router cannot be reached for packet
delivery [1]. For the first part of this lab, we will be showing the ICMP messages which are
generated by the ping command. Second, we show the Trace-route command and the contents
and format of the ICMP messages. In our lab three, we will be capturing packets after executing
trace-route
Lab 1: ICMP and Ping
To start with the ping command is used by network administrators to test the ability of a
certain user computer to reach a certain destination.
Procedure
1. We started by opening the command prompt command application by first running the
run command then typing cmd.exe and clicking enter
2. We then started wire shark packet sniffer and then used the ping command by typing ping
–n 10 www.ece.ust.hk

ICMP AND IP 3
Observation
Figure 1: ICMP and Ping command
From the figure one above it shows clearly that the ping command sent ten packets, 10
packets were received, and no packet which was lost. In addition, the source address calculated
round trip time where the average time for the 10 packets was 182 milliseconds.

ICMP AND IP 4
Figure 2: Wire-shark output
Analysis from the wire-shark output
The wire-shark output is as shown by figure 2 above which is after filtering the ICMP
protocol. From the figure. From the figure two, the source IP is 192.168.164 and the destination
address is 143.89.44.246. The distance between the source IP address to the target Internet
Protocol address there 128 live hosts addresses.
Questions and answers

ICMP AND IP 5
What is the IP address of your host? What is the IP address of the destination host?
The origin Internet Protocol address as shown by screenshot above is 192.168.1.64 and the target
host has an Internet Protocol address 143.89.44.246
Why is it that an ICMP packet does not have source and destination port numbers?
As the Internet Control Message Protocol (ICMP) was specifically designed to
communicate at the network layer of the OSI model. The ICMP protocol is used to communicate
information about the hosts and the routers not between the application layers of the OSI model
[2].
Examine one of the ping request packets sent by your host. What are the ICMP type and
code numbers? What other fields does this ICMP packet have? How many bytes are the
checksum, sequence number and identifier fields?
As shown by the screen shot below (figure 3). The code # is zero as shown below
whereas the Internet Control Message Protocol type is 8. From the figure, the ICMP also has a
checksum where the status is Good, identifier, and sequence number.

ICMP AND IP 6
Figure 3: Ping request packet
Examine the corresponding ping reply packet. What are the ICMP type and the code
numbers? What other fields does this ICMP packet have? How many bytes are the
checksum, sequence number, and identifier fields?
As shown from figure four below the corresponding ping command reply packet; the
ICMP type is zero, and the code is zero. The other fields are;
The checksum where status is good,
An identifier, and
Sequence numbers.

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Networking and Communication
|14
|1369
|163

MITS4004 Research Study: Networking
|17
|2522
|493

Wireshark Lab: ICMP and Traceroute
|21
|3293
|430

ICMP Protocols with Wireshark
|17
|2228
|389

Data Communication
|18
|1719
|295

Data Communication: ICMP and Ping, ICMP and Traceroute, Captured Trace, Fragmentation
|14
|1747
|221