Week 5 Flashcards

1
Q

What are objects of a web page?

A

a file, like an HTML file, image, CCS file, addressable by a single URL.

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

What is a webpage?

A

a document that consists of one or more objects

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

What transport protocol does HTTP use? Port Number?

A

TCP

Port number 80

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

What does it mean that HTTP is “stateless”?

A

the server keeps no information about the past clients and its reqiuests

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

What are the main components of a URL?

A
  1. the host name of the server
  2. the object’s path name
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the 2 types of HTTP connections?

A
  1. Non Persistent HTTP
  2. Persistent HTTP
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Non Persistent HTTP?

A

at most one object is sent over the TCP connection.

TCP connection closes after server sends the object

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

What is Persistent HTTP?

A

A persistent TCP connection that allows to send multiple objects over a single TCP connection.

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

What is RTT?

A

Round-Trip Time for Non Persistent HTTP.

The time for a packet for client -> server -> client.Ho

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

How much RTT for non persistent HTTP?

A

2 RTT

1 RTT to establish connection

1 RTT to send/receive

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

What are the 2 types of HTTP messages?

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

Format of an HTTP Request message?

A
  1. Request Line
  2. Header Lines
  3. Blank Line
  4. Body
  • IN ASCII: human readable format
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is in the request line of a HTTP Request message?

A

Method, URL, HTTP version

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

What is the entity body used for in a HTTP Request message?

A

Other methods such as POST or PUT

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

What are the methods?

A

GET, POST, HEAD, PUT, DELETE

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

What is “user-agent”

A

the browser type making the request to the server

17
Q

Format of an HTTP Response message?

A
  1. Status Line
  2. Header Lines
  3. Blank Line
  4. Entity Body
18
Q

What is “Server” in an HTTP response message?

A

Like similar agent, the browser type

19
Q

What is “Date” in an HTTP response

A

time when the server retrieves the object.

20
Q

What is a web cache / proxy server?

A

An entity that does HTTP request on behalf of an original web server.

21
Q

How does a web cache work?

A
  • web cache has its own storage
  • keep copies of recently requested objects
  • if it doesn’t have the object it requests a TCP connection to the origin server
22
Q

Is a cache a server or client?

A

Both.

22
Q

Pros of web caching?

A

keeps copies of recently requested objects, so it saves response time and reduce costs

22
Q

What is a stale object?

A

an object that has been modified after it’s been cached.

23
Q

How to solve a stale object in web caching?

A

Use the conditional GET

24
Q

2 characteristics of a conditional get?

A
  1. request uses the GET method
  2. request has an “if-modified-since” header line