Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

COMPUTER NETWORK

ASSIGNMENT NO. – 5

NAME : SAHIL SHILE


PRN : 21510098
BATCH : S6
Title : Wireshark Lab : HTTP.

1.The Basic HTTP GET/response interaction

By looking at the information in the HTTP GET and response messages, answer
the following questions. When answering 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 you’ve
found the information that answers the following questions.
1. Is your browser running HTTP version 1.0 or 1.1? What version
of HTTP is the server running?

My browser is running – HTTP 1.1 version.


Server running version – HTTP 1.1 Version.

2. What languages (if any) does your browser indicate that it can
accept to the server?

Accept Lnguage – en – US ( US English )

3.What is the IP address of your computer? Of the


gaia.cs.umass.edu server?

SOURCE DEST.

IP address of my computer is - 10.7.3.208


IP address of gaia.cs.umass.edu is – 128.119.245.12
4. What is the status code returned from the server to your browser?

Status code returned from the server to my browser is 200 OK.

5. When was the HTML file that you are retrieving last modified at the
server?

We can filter messages by http.last_modified and we see that the HTTP response I received for the
html 1 file doesn’t show this field. We do have a http.last_modified field in the favicon response
however, as shown in the screenshot above. This says the favicon was last modified on 12 March
2023.

6. How many bytes of content are being returned to your browser?


Content-length = 715 bytes. See screenshot above.

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.
No. The raw data appears to match up exactly with what is shown in the packet-
listing window.

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?

No.

9. Inspect the contents of the server response. Did the server explicitly
return the contents of the file? How can you tell?
Text – Microsoft Connect Test.
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?
Yes. The information followed is: Mon, 27 Mar 2023 05:59:01 GMT\r\n which is the date
of the last modification of the file from the previous get request.

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.
- The status code and phrase returned from the server is HTTP/1.1 304 Not Modified. The
server didn’t return the contents of the file since the browser loaded it from its cache.
3. Retrieving Long Documents
Answer the following questions:

12. How many HTTP GET request messages were sent by your browser?
- There was 1 HTTP GET request message sent by my browser as seen in the screenshot.

13. How many data-containing TCP segments were needed to carry the
single HTTP response?
- There were 4 data containing TCP segments containing 1460, 1460, 1460 and 481 bytes
respectively for a total of 4861 bytes.

14. What is the status code and phrase associated with the response to the
HTTP GET request?
200 OK
15. Are there any HTTP status lines in the transmitted data associated
with a TCP induced “Continuation”?
- No there are not. The subsequent TCP packets only contain the data of the file.

You might also like