computer networks hw 1

9
P art : 1 1) Browser is running HTTP version 1.1 and server is also running HTTP version 1.1

Upload: ashok

Post on 21-Nov-2015

16 views

Category:

Documents


0 download

DESCRIPTION

Computer Networks HW 1

TRANSCRIPT

Part : 11) Browser is running HTTP version 1.1 and server is also running HTTP version 1.1

2. Browser indicated that it accepts English-US and English.

3. IP address of my computer is 172.27.146.52 and IP address of gaia.cs.umass.edu server is 128.119.245.12

4. Status code returned from the server is 200 OK.

5. The HTML file retrieved from the server was last modified on 09/15/2014(Monday) 04:08:01 GMT.

6. 482 Bytes of content was returned from the server to the browser.

Part 2 :1. No, an "IF-MODIFIED-SINCE" line is not in the first HTTP GET.2. The content in the file is returned by the server. The HTTP status code for the first response is "200 OK" which means that the server fulfilled the request and sent response back to the browser.3. The "IF-MODIFIED-SINCE:" is in the second HTTP GET request. The "IF-MODIFIED-SINCE:" header is followed by the day, date and time in GMT.

4. The server responded with "304 Not Modified" status code and phrase. The server did not send the contents of the file because the file was not modified since the last cache and file in the cache with Etag is returned to the browser. Part 4 :1. Browser sent four HTTP GET request messages.

2. Below are the internet addresses the browser sent GET requests.128.119.245.12gaia.cs.umass.edu/wireshark-labs/HTTP-wireshark-file4.html165.193.140.14 www.pearsonhighered.com/assets/hip/us/hip_us_pearsonhighered/images/pearson_logo.gif128.119.240.90manic.cs.umass.edu/~kurose/cover_5th_ed.jpgcaite.cs.umass.edu/~kurose/cover_5th_ed.jpg

Part 4 :

a) It takes 25 sec for B to receive all 3 packets from A.

b) It takes 5(n+2) sec for B to receive all n packets from A.