46
The Application Layer Chapter 7

The Application Layer

  • Upload
    caesar

  • View
    33

  • Download
    0

Embed Size (px)

DESCRIPTION

The Application Layer. Chapter 7. Electronic Mail. Architecture and Services The User Agent Message Formats Message Transfer Final Delivery. Electronic Mail (2). Some smileys. They will not be on the final exam :-). Architecture and Services. Basic functions Composition Transfer - PowerPoint PPT Presentation

Citation preview

Page 1: The Application Layer

The Application Layer

Chapter 7

Page 2: The Application Layer

Electronic Mail

• Architecture and Services

• The User Agent

• Message Formats

• Message Transfer

• Final Delivery

Page 3: The Application Layer

Electronic Mail (2)

Some smileys. They will not be on the final exam :-).

Page 4: The Application Layer

Architecture and Services

Basic functions• Composition• Transfer• Reporting• Displaying• Disposition

Page 5: The Application Layer

The User Agent

Envelopes and messages. (a) Paper mail. (b) Electronic mail.

Page 6: The Application Layer

Reading E-mail

An example display of the contents of a mailbox.

Page 7: The Application Layer

Message Formats – RFC 822

RFC 822 header fields related to message transport.

Page 8: The Application Layer

Message Formats – RFC 822 (2)

Some fields used in the RFC 822 message header.

Page 9: The Application Layer

MIME – Multipurpose Internet Mail Extensions

Problems with international languages:

• Languages with accents (French, German).

• Languages in non-Latin alphabets (Hebrew, Russian).

• Languages without alphabets (Chinese, Japanese).

• Messages not containing text at all (audio or images).

Page 10: The Application Layer

MIME (2)

RFC 822 headers added by MIME.

Page 11: The Application Layer

MIME (3)

The MIME types and subtypes defined in RFC 2045.

Page 12: The Application Layer

MIME (4)

A multipart message containing enriched and audio alternatives.

Page 13: The Application Layer

Message Transfer

Transferring a message from

[email protected] to [email protected].

Page 14: The Application Layer

Final Delivery

(a) Sending and reading mail when the receiver has a permanent Internet connection and the user agent runs on the same machine as the message transfer agent. (b) Reading e-mail when the receiver has a dial-up connection to an ISP.

Page 15: The Application Layer

POP3

Using POP3 to fetch three messages.

Page 16: The Application Layer

IMAP

A comparison of POP3 and IMAP.

Page 17: The Application Layer

The World Wide Web

• Architectural Overview

• Static Web Documents

• Dynamic Web Documents

• HTTP – The HyperText Transfer Protocol

• Performance Enhancements

• The Wireless Web

Page 18: The Application Layer

Architectural Overview

(a) A Web page (b) The page reached by clicking on Department of Animal Psychology.

Page 19: The Application Layer

Architectural Overview (2)

The parts of the Web model.

Page 20: The Application Layer

The Client Side

(a) A browser plug-in. (b) A helper application.

Page 21: The Application Layer

The Server Side

A multithreaded Web server with a front end and processing modules.

Page 22: The Application Layer

The Server Side (2)

A server farm.

Page 23: The Application Layer

The Server Side (3)

(a) Normal request-reply message sequence.

(b) Sequence when TCP handoff is used.

Page 24: The Application Layer

URLs – Uniform Resource Locaters

Some common URLs.

Page 25: The Application Layer

Statelessness and Cookies

Some examples of cookies.

Page 26: The Application Layer

HTML – HyperText Markup Language

(a) The HTML for a sample Web page. (b) The formatted page.

(b)

Page 27: The Application Layer

HTML (2)

A selection of common HTML tags. some can have additional parameters.

Page 28: The Application Layer

Forms

(a) An HTML table.

(b) A possible rendition of this table.

Page 29: The Application Layer

Forms (2)

(a) The HTML for an order form.

(b) The formatted page.

(b)

Page 30: The Application Layer

Forms (3)

A possible response from the browser to the server with information filled in by the user.

Page 31: The Application Layer

XML and XSL

A simple Web page in XML.

Page 32: The Application Layer

XML and XSL (2)

A style sheet in XSL.

Page 33: The Application Layer

Dynamic Web Documents

Steps in processing the information from an HTML form.

Page 34: The Application Layer

Dynamic Web Documents (2)

A sample HTML page with embedded PHP.

Page 35: The Application Layer

Dynamic Web Documents (3)

(a) A Web page containing a form. (b) A PHP script for handling the output of the form. (c) Output from the PHP script when the inputs are "Barbara" and 24 respectively.

Page 36: The Application Layer

Client-Side Dynamic Web Page Generation

Use of JavaScript for processing a

form.

Page 37: The Application Layer

Client-Side Dynamic Web Page Generation (2)

(a) Server-side scripting with PHP.(b) Client-side scripting with JavaScript.

Page 38: The Application Layer

Client-Side Dynamic Web Page Generation (3)

A JavaScript program for computing and printing factorials.

Page 39: The Application Layer

Client-Side Dynamic Web Page Generation (4)

An interactive Web page that responds to mouse movement.

Page 40: The Application Layer

Client-Side Dynamic Web Page Generation (5)

The various ways to generate and display content.

Page 41: The Application Layer

HTTP Methods

The built-in HTTP request methods.

Page 42: The Application Layer

HTTP Methods (2)

The status code response groups.

Page 43: The Application Layer

HTTP Message Headers

Some HTTP message headers.

Page 44: The Application Layer

Example HTTP Usage

The start of the output of www.ietf.org/rfc.html.

Page 45: The Application Layer

Caching

Hierarchical caching with three proxies.

Page 46: The Application Layer

Content Delivery Networks

(a) Original Web page. (b) Same page after transformation.