Application Layer Flashcards

1
Q

What are the Application layer architecture features? It determines how the client/server divides their workload

A
  • The presentation logic defines the user interface and controls the application
  • The application/business logic describes what the application does.
  • The data access logic describes how the application manages its data.
  • The data storage logic describes where the data is stored e.g files, data base.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define the Server-based architecture and its features?-

A

In the server-based architecture, the server does all of the logic while the client is a “dumb” terminal sending keystrokes to the server from the server’s instructions. The server becomes a bottleneck due to a lot of tasks and upgrade becomes expensive and “lumpy”.

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

Define the Client-based architecture and its features.

A

In the client-based architecture, all of the logic is handled by the client while the server stores the data. This means that data would need to move back and forth between the server and client.

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

Define the Client-based architecture and its features.

A

In the client-based architecture, all of the logic is handled by the client while the server stores the data. This means that data would need to move back and forth between the server and client.

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

Define the Client-Server architecture and its features.

A

In a client-server architecture, the client handles the application and business logic while the server stores and manages the data. The processing load is balanced between client and server.

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

Define the Thin-Client architecture and its features.

A

In a thin-client architecture, the server handles most of the logic except the presentation logic. This would mean that only one server needs updating!

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

Define the Multi-tier architecture and its features.

A

In a multi-tier architecture, an additional server handles the application/business logic while another server stores and manages the data. Meanwhile, the client needs to simply control the application .

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

Define the Peer-to-peer architecture and its features.

A

In a peer-to-peer architecture, the computer acts as both a client and a server. Local logic is used to access data from another computer.

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

What are the application layer protocols?

A

HTML, SMTP

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

What is the World Wide Web?

A

The world wide web (WWW) is based on two main technologies - HTTP and HTML. HTTP is a protocol for communication between the client and the server while HTML is a format to describe webpages.

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

What is HTTP?

A

The Hypertext Transfer Protocol defines how a web browser(client) communicates with web server. It is based on two innovative ideas- Hypertext and URL. Hypertext is a document with links to other documents. The URL (Unified Resource Locators) is the standard for identifying the links to other document. HTTP as a whole defines how documents are requested and transferred.

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

How is HTTP performed?

A

The request-response cycle between the web browser(client) and web server enables the client to request a document through an HTTP request (URL)and the server to respond with a HTTP response. (HTML)

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

What are some HTTP methods?

A

THE GET method retrieves the specified URL from a server.

The HEAD method retrieves only the header of the specified URL.

The POST method adds data to the request body to the specified URL.

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

What is a HTTP request and response?

A

The client sends a HTTP request with a HTTP method to a server for a HTTP response . The HTTP header and body for request and response are optional.

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

How does HTTP add states?

A

HTTP is stateless i.e each request is an independent transaction. However, sometimes states need to be added to identify and keep track of the session. Hence there are two approaches to add HTTP states-

  1. Client sends the session identifier as POST with every request
  2. The server sets a cookie and client transmits the cookie with every request
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is HTTML?

A

The HTML documents is a format to describe web pages using tags. It provides the structure and backbone of a webpage.

17
Q

What is SMTP?

A

The Simple Mail transfer protocol handles transfer of text messages between email client and server and also between two email servers. SMTP handles plain text email.

18
Q

What is POP?

A

The Post Office Protocol is where messages are downloaded from the client and deleted from the server.

19
Q

What is IMAP?

A

The Internet Message Access Protocol is where messages remain on the server and multiple clients can be connected simultaneously to the same mailbox.

20
Q

What is MIME?

A

Multi-Purpose Internet Mail Extensions is an extension of SMTP as the latter handles plain text email. MIME specifies an encoding can handle unicode characters, non text messages, files, attachments, etc. It uses base-64 encoding*

21
Q

What is the difference between two-tier and three-tier mail?

A

Two-tier email is based on the client-server architecture where the client handles the application logic and communicates with the server using SMTP and POP/IMAP.

Three-tier email is based on the thin-client architecture where a thin client can access the mail via an application and clients can access through the server using HTTP. The server handles application logic.

Server-to-server uses SMTP and POP

Server-to-client uses HTTP.