Microsoft Word - Assign2-HTTP.docx Assignment2–HTTP ü SubmitONLYanswersasaSINGLEPDFfile.Checkblackboardfortheduedate. ü Total3questions,120points. 1. HTTPCaching(20points)...

1 answer below »
Check the PDF for assignment.


Microsoft Word - Assign2-HTTP.docx Assignment2–HTTP ü SubmitONLYanswersasaSINGLEPDFfile.Checkblackboardfortheduedate. ü Total3questions,120points. 1. HTTPCaching(20points) Readthislinkregarding“differentkindsofcahces”.Youcanalsodoadditionalresearchingregardingthe typesofHTTPcaching.INYOUROWNWORDS,summarizewhatyouhavereadonthetypesofHTTP caching(mainly,PrivatebrowsercachesandSharedproxycaches).Youcanjustusewords,draw diagramsetc.Also,mentionforthetypesofHTTPcachingwhatwouldbetheprosandconsforeach. ThefigurebelowisforProblems2and3.(Total100points) 2. TheHTTPGETmessage(Total40points) Considerthefigureabove,whereaclientissendinganHTTPGETmessagetoawebserver, www.kean.edu.Supposetheclient-to-serverHTTPGETmessageisthefollowing: GET http://kean.edu/~compsci/people/faculty.html HTTP/1.1 Host: www.kean.edu Accept: text/plain, text/html, image/png, image/gif, audio/mp4, audio/mpeg, video/wmv, video/mpeg Accept-Language: en-us;q=0.8, en-gb;q=0.5, fr;q=0.2, fr-ch;q=0.2, zh;q=0.1, de;q=0.1, ar;q=0.1, cs;q=0.1 If-Modified-Since: Mon, 25 Feb 2018 09:00:00 -0800 User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 Answerthefollowingquestions: A. WhatisthenameofthefilethatisbeingretrievedinthisGETmessage?(2pnts) B. WhatversionofHTTPistheclientrunning?(2pnts) C. Whatformatsoftext,images,audio,andvideodoestheclientbrowserprefertoreceive?[Note:for thisandthefollowingquestionsonbrowsermediaandlanguagepreferences,youwillneedtodoa bitofadditionalreadingontheWeb.Hereisagoodplacetostart.](4pnts) D. Whatlanguagesisthebrowserindicatingthatitiswillingtoaccept?(4pnts) E. Whatisthemeaningofthe"relativequalityfactor,"q,associatedwiththevariousversionof English?[Note:HereandHereisagoodplacetostart.SeealsoRFC2616](8pnts) F. Whatistheclient'spreferredversionofEnglish?Why.(4pnts) G. DoestheclientpreferSwissFrenchovertraditionalFrench?Why.(4pnts) H. Doestheclientalreadyhavea(possiblyout-of-date)copyoftherequestedfile?Explain.Ifso, approximatelyhowlongagodidtheclientreceivethefile,assumingtheGETrequesthasbeen issuedwhenyouaresolvingthisproblem?(8pnts) I. Whatisthetypeofclientbrowserandtheclient'soperatingsystem?[Note:Toanswerthis,you'll needtounderstandtheUserAgent:headerfield.Hereisagoodplacetostart.](4pnts) 3. TheHTTPRESPONSEmessage(Total60points) Considerthefigureabove,wheretheserverissendingaHTTPRESPONSEmessagebacktheclient. Supposetheserver-to-clientHTTPRESPONSEmessageisthefollowing: HTTP/1.1 200 OK Date: Mon, 25 Feb 2018 18:00:00 +0000 Server: Apache/2.2.3 (CentOS) Last-Modified: Thu, 01 Feb 2018 18:00:00 +0000 ETag: “12345-abc-67890” Content-Length: 2635 Keep-Alive: timeout=23, max=10 Connection: Keep-alive Content-type: text/html Answerthefollowingquestions: A. WhatversionofHTTPistheresponse?(3pnts) B. Wastheserverabletosendthedocumentsuccessfully?Explain(3pnts) C. Atwhatdateandtimewasthisresponsesent?(3pnts) D. Whenwasthefilelastmodifiedontheserver?(3pnts) E. Howmanybytesarethereinthedocumentbeingreturnedbytheserver?(3pnts) F. WhatisthedefaultmodeofconnectionforHTTPprotocol?Istheconnectioninthereplypersistent ornon-persistent?Explain.(6pnts) G. Whatisthetypeoffilebeingsentbytheserverinresponse?(3pnts) H. Whatisthenameoftheserveranditsversion?(3pnts) I. Whatisthetimeoutvaluefortheresponsemessage?(3pnts) J. Istheconnectiondroppedorkeptopenafterthetimeout?(3pnts) K. Whatarethemaximumnumberofrequestsandresponsestheserverhasallowed?Whathappens whenthemaximumnumberofrequestsandresponsesaresent?(3pnts) L. WhatisETagintheresponsemessage?Stateitssignificance?[Note:Toanswerthisandthe questionbelow,you'llneedtohavebasicunderstandingofETag.Here,Here(First7paragraphsfor HTTPCachingandETag),Here(section‘Differentkindsofcaches’andsection‘ETag’),Video(First5 minutes)isagoodplacetostart.](12pnts) M. AssumetheclienthostrequeststhesamepageandsentaHTTPGETrequestwithIf-None- Match: “12345-abc-67890” andtheserverresources(ETag)didnotchange.Theserverwill thenreplywithstatuscode304 Not Modified andContent-Length: 0.Whatdoesthis meanandwhyisitbeneficial?[Note:Here(presscanceliflinkasksforcredentials)andHerewill help.](12pnts)
Answered Same DayFeb 17, 2021

Answer To: Microsoft Word - Assign2-HTTP.docx Assignment2–HTTP ü...

Neha answered on Feb 21 2021
141 Votes
Q1) HTTP Caching
Private Browser caches
This type of cache is dedicated to a single user only. This cache holds all
the documents downloaded from the browser by user. This cache allows the user to navigate back and forward, save, view as source and many other operations on the available data without adding any extra trip to the server. It also improves the offline browsing experience.
The disadvantages of this caching are that it does not utilize some inbuilt features of the browser. The computer is always visible to the sites we visit and there is nothing to be called as private.
Shared Proxy caches
This cache stores the responses which can be reused by multiple users. This helps in reducing the network traffic and latency. For example, an ISP set up a web proxy which serve multiple users so that popular resources can be used n number of times.
The cons of this caches are that the data can be leaked using TLS and SSL techniques and blocked websites can be accessed.
Q2)
A) Name of the file – http://kean.edu/~compsci/people/faculty.html
B) Version - HTTP 1.1
C) Text -plain, html
Image – png, gif
Audio – mp4, mpeg
Video – wmv, mpeg
D) en-US...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here