PhanLeHau Lab2a
PhanLeHau Lab2a
MSSV: 2210969
LỚP: L01
Question 02. What languages (if any) does your browser indicate that it can accept to the server?
ANSWER
My browser indicates that it will accept English-US and English-CA languages from the server
Question 03. What is the IP address of your computer? Of the gaia.cs.umass.edu server?
ANSWER
The server did explicitly return the contents of the file. Wireshark includes a section titled “Line-
Based Text Data” which shows what the server sent back to my browser which is specifically
what the website showed when I brought it up on my browser.
Question 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
Yes in the second HTTP message an IF-MODIFIED-SINCE line is included. The information that
follows is the date and time that I last accessed the webpage.
Question 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 is “304: Not Modified”
The server did not return the contents of the file because the browser simply retrieved the
contents from its cache. Had the file been modified since it was last accessed, it would have
returned the contents of the file, instead it simply told my browser to retrieve the old file from its
cached memory.
Question 12. How many HTTP GET request messages did your browser send? Which packet number in
the trace contains the GET message for the Bill or Rights?
ANSWER
My browser only sent 1 HTTP GET request to the server. The Packet that contained the GET
message was packet number 9.
Question 13. Which packet number in the trace contains the status code and phrase associated with the
response to the HTTP GET request?
ANSWER
The packet that contains the status code and phrase which the server sent in response to the GET message
was packet number 13.
Question 14. What is the status code and phrase in the response?
ANSWER
Question 16. How many HTTP GET request messages did your browser send? To which Internet
addresses were these GET requests sent?
ANSWER
My browser sent 3 http GET message requests. One each to each for each of
the following: The initial page, the Pearson logo, and the cover of the Pearson book.
The initial page: 128.119.245.12
Pearson logo: 128.119.245.12
Cover of the Pearson book: 178.79.137.164
Question 17. Can you tell whether your browser downloaded the two images serially, or whether they
were downloaded from the two web sites in parallel? Explain.
ANSWER
The browser downloaded the two images in serially. I believe this to be the case because the first
image was requested and sent before the second image was requested by the browser. Had they
been running in parallel, both files would have been requested then would have returned in the
same time period. In this case however, the second image was only requested after the first image
came back.
Question 18. What is the server’s response (status code and phrase) in response to the initial HTTP
GET message from your browser?
ANSWER