What connection type does HTTP use?
TCP
Don’t want to lose data
What is the life cycle of HTTP?
What is RTT?
Round trip time
Time between initiating request and receiving response
What is the RTT for HTTP?
1 RTT for initiating TCP connection
1 RTT for HTTP request and 1st few bytes
Total time = 2RTT + object transmission time
What is persistent HTTP and it’s RTT?
One object fetched per socket
22RTT + object transmission time
What is non-persistent HTTP and it’s RTT?
Multiple objects sent over single persistent HTTP connection
12RTT + object transmission time
What are the 2 HTTP message structures?
Request and response
What are the 5 types of HTTP request messages and their functions?
GET: retrieve info POST: submit data to server PUT: save object at location DELETE: delete object at location HEAD: retrieve resource info
What are the 2 ways of optimising HTTP?
What are cookies?
Stored on client side
Have ID
Stored on server side in backend database
Helps track state of exchange
What is a web cache?
Used if web server at a big distance from client
Browser points to cache, if object in cache return request, if not go to main web server
What is a conditional GET?
Only fetches object is modified past a certain date
Avoids sending original object if updates version exists in cache
If not updated, updated version sent to cache then cache updates and sends on