Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3 ICMPv 4 uses two categories of packets, error - reporting and query. Figure 1 9 . 8 in the textbook gives the general format
ICMPv uses two categories of packets, errorreporting and query. Figure in
the textbook gives the general format for each category. We also recommend to check
the extra materials for Chapter at the book website if you need to find the exact for
mat for each type of packet.
In this assignment, our goal is to capture and analyze ICMPv packets both error
reporting and query types We can easily create ICMPv query messages using a pro
gram called ping as shown in Example on Page of the textbook. Creating
errorreporting packets is more tricky. These packets are created automatically when
there is an error in the path. We cannot wait for an error to occur in the path, but we can
artificially force a condition to make IP create an errorreporting ICMP packet. This
can be done using a program called traceroute in Unixlike environment or a tracert
in Windows environment as shown in Figure on Page of the textbook. We
use the ping and tracert in this document to capture ICMP packets.
Using The ping Utility
In this section of the assignment, we use the ping utility to capture ICMPv query
packets: echo request and echo reply See the extra materials for Chapter at the book
website for more information The ping utility is in fact, a clientserver program. The
client program, which needs to be invoked at the command prompt, triggers an echo
request packets; the server program, which is running at the background all the time,
waits for a signal from an echo request message, and triggers an echo reply message.
The ping program, however, does not insert a message in the ICMPv packets, it just
simply triggers its creation and provides the values for identification and the sequence
number fields.
We have divided this section into two parts: Part I and Part II In Part I, we want to
see the messages exchanged at the ping level. In part II we want to capture frames car
rying ICMPv packet, which are encapsulated in an IPv packet.
Part I: Analyzing Ping
Open the Wireshark and start packet capturing. Although, we are not using the
these frames Part I, we will use them in Part II of the assignment section.
Open Command Prompt and type ping hostname. The hostname can be the domain
name or the IP address of a site you know be sure that there is no firewall to filter
out the packets An example of the result of the ping command in the Command
Prompt window looks as shown in Figure
Return to the Wireshark window, stop packet capturing, and save the captured file.
Questions
Using the result of the ping command in the Command Prompt window, answer the fol
lowing questions in your lab report.
What is the destination IP address?
How many ping messages are sends?
How many bytes of data are in each ping message?
What is the roundtrip time for each packet?
What are the minimum, average, and maximum round trip times?
Part II: Wireshark Capture of Ping Commands
Open the file you captured in Part I.
In the Filter field of the Wireshark window type icmp lower case and click
Apply.
Questions
Using the result of the information in the captured file, answer the following questions
in your labreport sheet.
What is the destination IP address of Echo request ICMP messages? Does the
result agree with the information in Part I of the lab?
How many Echo request ICMP packet are in the packet list pane? How many Echo
reply ICMP packets are in the packet list pane? Does the result agree with the
information in Part I of the lab?
How many bytes of data are carried by each ICMP packet? Does the result agree
with the information in Part I of the lab?
Evaluate the difference between the time the first Echo message was sent and the
time the first reply message was received. Does the result agree with the informa
tion in Part I of the lab?
Comparing Echo request ICMP messages with Echo reply ICMP message, deter
mine
a What fields are the same? Explain the reason.
b What fields are different? Explain the reason.
Comparing all Echo request ICMP messages, determine
a What fields are the same? Explain the reason.
Figure Example of using ping
b What fields are different? Explain the reason.
Using traceroute or tracert Utility
To capture some ICMPv errorreporting packets, we can use either the traceroute util
ity in Unixlike environment or the tracert utility in the Windows environment The
traceroute utility is a clientserver at the application layer that uses the services of
UDP; the tracert utility is a clientserver program that uses the services of IP In this
assignment, we use tracert, but the ass
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started