Problem Set 2: Due: Start of Class, Thursday September 21
Problem Set 2: Due: Start of Class, Thursday September 21
Problem Set 2
Due: Start of Class, Thursday September 21
http://gaia.cs.umass.edu/wireshark-labs/HTTP-wireshark-file1.html
Stop Wireshark packet capture. Your browser should display the very sim-
ple, one-line HTML file.
Figure 1 shows in the packet-listing window that two HTTP messages
were captured: the GET message (from your browser to the gaia.cs.umass.edu
web server) and the response message from the server to your browser. The
packet-contents window shows details of the selected message (in this case
the HTTP GET message, which is highlighted in the packet-listing win-
dow). Recall that since the HTTP message was carried inside a TCP seg-
ment, which was carried inside an IP datagram, which was carried within
an Ethernet frame. Wireshark displays the Frame, Ethernet, IP, and TCP
packet information as well. We want to minimize the amount of non-HTTP
1
Figure 1: Wireshare after remote file has been retrieved.
Exercise 1 [6] Examine the HTTP GET and response messages and an-
swer the following questions. You should print out the GET and response
messages (see the introductory Wireshark lab for an explanation of how to
do this) and indicate where in the message youve found the information
that answers the following questions. When you hand in your assignment,
annotate the output so that its clear where in the output you’re getting the
information for your answer
a [1] Is your browser running HTTP version 1.0 or 1.1? What version of
2
HTTP is the server running?
b [1] What languages (if any) does your browser indicate that it can accept
to the server?
d [1] What is the status code returned from the server to your browser?
3
Exercise 2 [6] Answer the following questions.
a [2] How many HTTP GET request messages did your browser send?
Which packet number(s) in the trace contains the GET message(s) for the
Bill or Rights?
b [2] Which packet number in the trace contains the status code and
phrase associated with the response to the HTTP GET request? What is
the status code and phrase in the response?
c [1] How many data-containing TCP segments were needed to carry the
single HTTP response and the text of the Bill of Rights?
a [2] How many HTTP GET request messages did your browser send? To
which Internet addresses were these GET requests sent?
b [2] Can you tell whether your browser downloaded the two images seri-
ally, or whether they were downloaded from the two web sites in parallel?
Explain.
4
Problems
Problem 1 [5]: WWW Basics
True or false? Briefly explain your answers.
a [1] A user requests a Web page that consists of some text and three
images. For this page the client will send one request message and receive
four response messages.
d [1] The Date: header in the HTTP response message indicates when
the object in the response was last modified.
5
Problem 3 [2]: Computer Science Humor
Archives of all xkcd comic strips can be found at http://xkcd.com/n,
where n is a positive integer that serves as an identifier for a particular comic
strip. Some of Lyn’s favorites are 123, 149, 163, 327, 388 (even though he
loves grapefruit), 394, and 426. Why does your instructor think this page
is 404 funny?
Problem 4 [4]: Cookies
Using Wireshark, capture packets as you browse three of your favorite
web sites. For each web site, list all the cookies that it uses and discuss
what you think the cookies are used for. Attached a copy of the packets
containing cookie requests to your assignment.