Lecture 3 Flashcards

1
Q

What is HTTP?

A

Hypertext Transfer Protocol (HTTP), web’s apllication layer protocol, defined in [v1.0-RFc 1945]
HTTP is a client/server protocol. The client, typically a browser requests, recivies and “displays” Web objects. The web server sends objects in response to requests. The HTTP server is stateless.

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

What does a web page consist of?

A

A web page consists of objects (e.g. HTML file, JPEG image, Java applet, audio file).
The base HTML-file includes several referenced objects , each object is addressable by a URL
(e.g. www.someschool.edu/someDept/pic.gif - host name / path name)

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

What does HTTP use as its underlying transport protocol?

A

HTTP uses TCP as its underlying transport protocol.
The HTTP client first initiatess a TCP connection with the server.
Once the connection is established, the browser and the server processes access TCP through their socket interfaces.
The client sends HTTP request messages and receives HTTP response messages. The server receives request messages and sends response messages.

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

Explain the two types of HTTP connections?

A

Persistent- where multiple objects can be sent over a single TCP connection.

Non-persistent - where at most one object sent over a TCP connection and then the connection is closed requiring multiple connections to downloading multiple objects

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

What is Round- trip time (RTT)

A

It is the time it takes for a small packet to travel from client to server and then back to the client (including delays packet-propagation delays, packet queueing delays intermediate routers and switches, and packet- processing delays).

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

What is the time needed to request and receive a HTML file?

A

The time needed to request and receive an HTML file is 2RTTs + file transmission time

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

Explain cookies

A

An HTTP server is stateless.But often it is useful that the server keeps session state information.

HTTP uses cookies for this purpose. An HTTP cookie has four components:

1) a cookie header line in the HTTP response message
2) a cookie header line in the HTTP request message
3) a cookie file kept on the user’s end system and managed by the user’s browser
4) a back-end database at the Web site

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

Explain Web cache (proxy server)

A

A web cache satisfies HTTP requests on behalf of and origin Web server. It is both a client (to the original server) and a server (to the client).

Web catching reduces response time and network traffic (access link to the internet)

A web cache stores a copy of a requested object in its local storage and sends a copy to the client browser

To avoid stale data , HTTP uses | conditional GET |

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

Transport services provided by the internet:

TCP

A

Reliable transport, flow control, congestion control

Does not provide: timing, minimum throughput guarantee, security

Connection-oriented: setup required between client and server processes

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

Transport services provided by the internet:

UDP

A

Unreliable data transfer between sending and receiving process.

Does not provide: reliability, flow control, congestion control, timing, throughput guarantee, security or connection setup

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

Three major components of email:

User agents

A

User agents compose, edit, read and save (outgoing, incoming messages stored on server) mail messages

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

Three major components of email:

Mail servers

A

Mail servers have a mailbox (incoming messages), a message queue (outgoing messages) and an SMTP implementation.

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

Three major components of email:

Simple Mail Transfer Protocol (SMTP)

A

Simple Mail Transfer Protocol (SMTP) protocol between mail servers to send email messages

Client: sending email messages
Server: receiving email messages

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

More information on SMTP

A

The SMTP is defined in [RFC 5321] and uses TCP for reliable email transfer and port 25
Normally the sending server connects directly to the receiving server

Command/ response interaction (Like HTTP)

command: ASCII text
response: status code and phrase

Messages must be in a 7- bit ASCII

Mail message format:
Header lines (eg. To: From:Subject:) and the body of the message separated by a bank line (CRLF)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the three phases of SMTP transfer

A

Handshaking (greeting)

Transfer of messages

Closure

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

What is a mail access protocol?

A

Mail access protocols transfer messages from the receives mail server to the recipients user agent

17
Q

What is the Post Office Protocol version 3 (POP3)?

A

Post Office Protocol version 3 (POP3) has three phases:

Authorization: the user agent sends a username and a password
Transaction: the user agent retrieves messages; can mark messages for deletion, remove deletion marks, and obtain mail statistics
Update: after the client has issued the | quit | command (ending the POP3 session); the mail server deletes the messages that were marked for deletion

18
Q

What is Internet Mail Access Protocol (IMPA)?

A

Internet Mail Access Protocol (IMPA) more features, including manipulation of stored messages in server

19
Q

Give examples of HTTP?

A

Gmail
Hotmail
Yahoo
etc