Computer Networking Lab
Computer Networking Lab
Use the http-ethereal-trace-1 packet trace to answer the questions below apply the “http”
filter
a. You have packet data that contains all protocol messages exchanged between your
computer and other network entities! The HTTP message exchanges with the
gaia.cs.umass.edu web server should appear somewhere in the listing of packets captured.
But there will be many other types of packets displayed as well.
b. Type in “http” (without the quotes, and in lower case – all protocol names are in lower
case in Wireshark) into the display filter specification window at the top of the main
Wireshark window. Then select Apply (to the right of where you entered “http”). This
will cause only HTTP message to be displayed in the packet-listing window.
c. Select the first http message shown in the packet-listing window. This should be the
HTTP GET message that was sent from your computer to the gaia.cs.umass.edu
HTTP server. When you select the HTTP GET message, the Ethernet frame, IP
datagram, TCP segment, and HTTP message header information will be displayed in the
packet-header window3. By clicking plus and- minus boxes to the left side of the packet
details window, minimize the amount of Frame, Ethernet, Internet Protocol, and
Transmission Control Protocol information displayed. Maximize the amount information
displayed about the HTTP protocol. Your Wireshark display should now look roughly as
shown in the figure above.
d. Now try to find out the packet which contains the second request you sent to the browser
and also analyze the packet which your browser received as a result of second GET
Request and answer the following questions:
By looking at the information in the HTTP GET and Response Messages for BOTH the HTTP
Requests, answer the following questions
4. Is your browser running HTTP version 1.0 or 1.1? What version of HTTP is
the server running?
HTTP 1.1
5. What languages (if any) does your browser indicate that it can accept to the
server?
English-US
8. What is sending and receiving Port Number? What does Port No. 80
represents?
Sending port: 4127
Recieving port: 80
Port 80 represents the default port.
9. What is the status code returned from the server to your browser?
Code 200 OK
10. When was the HTML file, that you are retrieving, last modified at the server?
September 23, 2003
11. How many bytes of total packet content are being returned to your browser?
Content-length as shown in above ss = 73 bytes
The HTTP CONDITIONAL GET/response interaction
Use the http-ethereal-trace-2 packet trace to answer the questions below and apply the
“http” filter
Answer the following questions:
1. Inspect the contents of the first HTTP GET request from your browser to the
server. Do you see an “IF-MODIFIED-SINCE” line in the HTTP GET?
NO
2. Inspect the contents of the server response. Did the server explicitly return the
contents of the file? How can you tell from the Packet Bytes Window?
3. Now inspect the contents of the second HTTP GET request from your browser to
the server. Do you see an “IF-MODIFIED-SINCE:” line in the HTTP GET? If so,
what information follows the “IF-MODIFIED-SINCE:” header? What is meant
by this information?
if-modified-since tell us about the first download of this resourse from server and
resourse is not changed from that time
4. What is the HTTP status code and phrase returned from the server in response to
this second HTTP GET? Did the server explicitly return the contents of the file?
Explain your answer
In the packet-listing window, you should see your HTTP GET message, followed by a multiple-
packet TCP response to your HTTP GET request. This multiple-packet response deserves a bit
of explanation. The HTTP RESPONSE MESSAGE consists of a status line, followed by
header lines, followed by a blank line, followed by the entity body. In the case of our HTTP
GET, the entity body in the response is the entire requested HTML file. In our case here, the
HTML file is rather long, and at 4500 bytes is too large to fit in one TCP packet. The single
HTTP response message is thus broken into several pieces by TCP, with each piece being
contained within a separate TCP segment. In recent versions of Wireshark, Wireshark indicates
each TCP segment as a separate packet, and the fact that the single HTTP response was
fragmented across multiple TCP packets is indicated by the “TCP segment of a reassembled
PDU” in the Info column of the Wireshark display.
Use the http-ethereal-trace-3 packet trace to answer the questions below and apply the
“http” filter
5. How many HTTP GET request messages did your browser send?
ONE
6. Which packet number in the trace contains the GET message for The Bill
of Rights?
10
7. Which packet number in the trace contains the status code and phrase
associated with the response to the HTTP GET request?
Packet number 10, 11, 13, 14
9. How many data-containing TCP segments were needed to carry the single
HTTP response and the text of the Bill of Rights? What are the numbers of
those packets?