Lab 2a Computer Network
Lab 2a Computer Network
Wireshark Lab:
HTTP v8.0
1. The Basic HTTP GET/response interaction
1. Is your browser running HTTP version 1.0 or 1.1? What version of HTTP is the
server running?
Answer: My browser is running HTTP version 1.1, the server is also running
HTTP version 1.1.
2. What languages (if any) does your browser indicate that it can accept to the
server?
Answer: The language accepted is en-US.
3. What is the IP address of your computer? Of the gaia.cs.umass.edu server?
Answer: The IP address of my computer is 10.28.129.75. The IP address of
gaia.cs.umass.edu server is 128.119.245.12
4. What is the status code returned from the server to your browser?
Answer: The status code returned from the server to my browser is 200.
5. When was the HTML file that you are retrieving last modified at the server?
Answer: The HTML was last modified at 5:59:01 GMT.
6. How many bytes of content are being returned to your browser?
Answer: 128 bytes.
7. By inspecting the raw data in the packet content window, do you see any
headers within the data that are not displayed in the packet-listing window? If so,
name one.
Answer: I don’t see any headers within the data that are not displayed in the
message below.
Figure 1. GET Message
Gaiacomputer’s
My server’s IPIPaddress
address
Accepted language
Return status
Content’s length
2. The HTTP CONDITIONAL GET/response interaction
8. 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?
Answer: There is no “IF-MODIFIED-SINCE” line in the first HTTP GET
9. Inspect the contents of the server response. Did the server explicitly return the
contents of the file? How can you tell?
Answer: The server did explicitly return the content of the file, the content of the
file can be found at the response message (marked with blue highlight in the figure
below):
10. 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?
Answer: I see an “IF-MODIFIED-SINCE” line in the HTTP GET, “IF-
MODIFIED-SINCE” followed by a specific time and date.
Figure 4. Second GET Message
11. 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.
Answer: The HTTP status code and phrase returned from the server in response to
the second HTTP GET was “HTTP/1.1 304 Not Modified\r\n” (without quotation
mark). The server didn’t return the contents of the file since the content fetched
from the server in the first HTTP GET wasn’t satisfied the condition stated at the
first HTML response.
3. Retrieving Long Documents
Figure 5. The captured package
12. How many HTTP GET request messages did your browser send? Which packet
number in the trace contains the GET message for the Bill of Rights?
Answer: 1 HTTP GET request was sent from my browser. The package number in
the trace contains the GET message for the Bill of Rights was 114.
13. Which packet number in the trace contains the status code and phrase
associated with the response to the HTTP GET request?
Answer: The package number contains the status code and phrase associated with
the response to the HTTP GET request was 127.
14. What is the status code and phrase in the response?
Answer: The status code and phrase in the response is HTTP/1.1 200 OK.
15. How many data-containing TCP segments were needed to carry the single
HTTP response and the text of the Bill of Rights?
Answer: It needs 3 data-containing TCP segments to carry the single HTTP
response and the text of the Bill of Rights (122, 123 and 126).
4. HTML Documents with Embedded Objects
16. How many HTTP GET request messages did your browser send? To which
Figure 6. The captured packages
18. What is the server’s response (status code and phrase) in response to the initial
HTTP GET message from your browser?
Answer: The server’s reponse in response to the initial HTTP GET message was
HTTP/1.1 401 Unauthorized (text/html)
19. When your browser’s sends the HTTP GET message for the second time, what
new field is included in the HTTP GET message?
Answer: The field Authorization, Basic and Cache-Control field was included in
the HTTP GET message.