HTTP Of Application Layer Flashcards

1
Q

What connection type does HTTP use?

A

TCP

Don’t want to lose data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the life cycle of HTTP?

A
  1. TCP connection established
  2. Server accepts connection
  3. HTTP messages exchanged
  4. Connection closed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is RTT?

A

Round trip time

Time between initiating request and receiving response

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the RTT for HTTP?

A

1 RTT for initiating TCP connection
1 RTT for HTTP request and 1st few bytes

Total time = 2RTT + object transmission time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is persistent HTTP and it’s RTT?

A

One object fetched per socket

22RTT + object transmission time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is non-persistent HTTP and it’s RTT?

A

Multiple objects sent over single persistent HTTP connection

12RTT + object transmission time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the 2 HTTP message structures?

A

Request and response

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the 5 types of HTTP request messages and their functions?

A
GET: retrieve info
POST: submit data to server
PUT: save object at location 
DELETE: delete object at location
HEAD: retrieve resource info
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the 2 ways of optimising HTTP?

A
  1. Pipelining persistent HTTP: allows multiple requests at once with parallel sockets for each member of queue
  2. Multiplexing: sending different requests/responses on same TCP connection
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are cookies?

A

Stored on client side
Have ID
Stored on server side in backend database
Helps track state of exchange

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a web cache?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a conditional GET?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly