CS2005 - Lecture 3 - Application Layer II Flashcards

(38 cards)

1
Q

What does HTTP stand for?

A

Hypertext Transfer Protocol.

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

What port does HTTP use?

A

Port 80.

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

Which RFCs define HTTP 1.0 and HTTP 1.1?

A

RFC 1945 (HTTP/1.0) and RFC 2616 (HTTP/1.1).

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

What are some typical objects found in a web page?

A

HTML, JavaScript, Java Applets, and audio files.

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

How are web page objects referenced?

A

By a URL.

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

What type of protocol is HTTP?

A

A client/server protocol.

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

What is the role of a browser in HTTP communication?

A

Acts as the client to request, receive, and display web objects.

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

What does it mean that an HTTP server is stateless?

A

It does not retain information about past client requests.

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

Which transport protocol does HTTP use?

A

TCP.

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

How does the HTTP client initiate communication?

A

By initiating a TCP connection to the server.

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

What messages does an HTTP client send and receive?

A

HTTP request and response messages.

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

What are the two types of HTTP connections?

A

Non-persistent and persistent HTTP.

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

What characterizes non-persistent HTTP?

A

Only one object is sent over a TCP connection before it is closed.

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

What is required to download multiple objects with non-persistent HTTP?

A

Multiple TCP connections.

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

What characterizes persistent HTTP?

A

Multiple objects can be sent over a single TCP connection.

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

In non-persistent HTTP, what is the sequence to transfer a web page with 10 JPEGs?

A

Client requests HTML → Server sends HTML & closes TCP → Client finds 10 references → Repeats for each JPEG.

17
Q

What does RTT stand for in HTTP?

A

Round Trip Time.

18
Q

What factors contribute to RTT?

A

Packet propagation, queuing, and processing delays.

19
Q

What is the response time for non-persistent HTTP?

A

2 RTTs + file transmission time.

20
Q

How does persistent HTTP improve performance?

A

Uses a single TCP connection for multiple requests, reducing the number of RTTs.

21
Q

What mechanism maintains user state in HTTP?

22
Q

What components make up an HTTP cookie?

A

Cookie header in HTTP response, Cookie header in HTTP request, Cookie file on client system.

23
Q

Why are cookies useful?

A

They help identify users and restrict access or personalize content.

24
Q

What is the purpose of a web cache (proxy server)?

A

To satisfy HTTP requests on behalf of the origin server, reducing response time and network traffic.

25
How is stale data avoided in web caching?
Using conditional GET with headers like ‘If-Modified-Since’ or ‘Last-Modified’.
26
What are the three main components of an email system?
User agents, Mail servers, SMTP protocol.
27
What functions do user agents provide?
Compose, edit, read, and store emails.
28
What does SMTP stand for and what does it do?
Simple Mail Transfer Protocol; sends email between mail servers.
29
What port does SMTP use?
Port 25.
30
What are the three phases of SMTP communication?
Handshaking, Message transfer, Closure.
31
What format must SMTP messages follow?
7-bit ASCII.
32
What are the components of a mail message format?
Headers (to, from, subject) Body separated by blank line (CRLF).
33
Why can’t SMTP be used to retrieve emails?
It is a push protocol; message retrieval is a pull operation.
34
What protocols are used to access mail?
IMAP, POP3, HTTP.
35
What are the three phases of POP3?
Authorization (username + password) Transaction (retrieve and manage messages) Update (apply deletions).
36
What operations can be performed during the POP3 transaction phase?
Retrieve messages, Mark/unmark messages for deletion, Obtain mail statistics.
37
How does HTTP differ from SMTP in terms of request handling?
HTTP is pull-based; SMTP is push-based.
38
What protocol do web clients use to retrieve emails?
IMAP, POP3, or HTTP.