| CPSC Home |
We will examine how "ping" works and learn to find ICMP packet information
in a trace. We will try "ping" to different hosts to see the differences in
RTT. Many hosts do not return "ping". The lab will direct you to use
certain sites. The sites chosen should allow the lab to be done either
in CL-24 or on your own machine on or off campus.
A Wireshark display filter of "icmp" will be helpful.
ping options in WindowsThe ping command has a number of options. We will be using two
options. Thus the format of "ping" is:
pings to do before stopping.
The default is 4.
ping to.
ping options in LINUXThe ping command has a number of options. We will be using two
options. Thus the format of "ping" is:
pings to do before stopping. Without this
parameter, ping will continue indefinitely until you use CTRL-c to stop it.
ping to.
There are other ways to save command line screen output in Windows, but one way is to use "powershell" with the "tee" command like this:
powershell "ping -n 5 malone.edu | tee C:\Users\Me\filea"
In LINUX, you can pipe output to the "tee" command like this:
ping -c5 earl.rodd.us | tee /tmp/a
The various lab steps show output to file with names "a" through "f". You may use a prefix to your file names but be sure they end with the "a" etc. as shown.
In this lab, you need to printout two things:
ping" command. The method of getting
the output to a file was discussed above. You can print files by editing (e.g.
notepad) and printing from the editor or your favorite ways to print.
To do this, follow these steps:
Note: Using File-->save does not do the same thing. This saves the raw binary trace data to a file. This is not printable.
The individual steps will tell you what to print. Please use the saved filenames suggested since these will be printed with the file and you (and I) can easily identify which trace is which.
For each step, first start Wireshark, then perform the "ping",
then stop the trace, then answer the questions, and finally print the
trace if you are so directed. These instructions use the Windows versions
of "ping" options using powershell and "tee" to save the output.
You should be a directory in Windows (like your home) where you have write
access.
ping, compute the RTT from the trace. _________________
ping command showed? ____________
ping's lost? ____________________
ping? __________ of the
Ping response? ___________
ping. What is the sequence number? ________
ping and response? __________
ping, what is the Identifier? __________
Is it the same in the ping reply? _______
pings have a sequence number?
_______________________________________________
ping, what is the TTL field? ________
What is the TTL field in the reply? _______________
____________________________________________________________
____________________________________________________________
pings?
____________________________________________________________
ping? ____________
ping? _________
ping time generally faster or slower than google? _________
pings? __________
______________________________________________
______________________________________
ping ends, stop Wireshark.
___________________________________________________
ping sequence 1 retransmitted? _____________________
ping requests? _____________________
ping 4.2.2.2 with a large packet so we can see
fragmentation.
________________________________________________________
________________________________________________________
________________________________________________________
________________________________________________________