the application layer
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 PresentationTRANSCRIPT
![Page 1: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/1.jpg)
The Application Layer
Chapter 7
![Page 2: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/2.jpg)
Electronic Mail
• Architecture and Services
• The User Agent
• Message Formats
• Message Transfer
• Final Delivery
![Page 3: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/3.jpg)
Electronic Mail (2)
Some smileys. They will not be on the final exam :-).
![Page 4: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/4.jpg)
Architecture and Services
Basic functions• Composition• Transfer• Reporting• Displaying• Disposition
![Page 5: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/5.jpg)
The User Agent
Envelopes and messages. (a) Paper mail. (b) Electronic mail.
![Page 6: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/6.jpg)
Reading E-mail
An example display of the contents of a mailbox.
![Page 7: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/7.jpg)
Message Formats – RFC 822
RFC 822 header fields related to message transport.
![Page 8: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/8.jpg)
Message Formats – RFC 822 (2)
Some fields used in the RFC 822 message header.
![Page 9: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/9.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/10.jpg)
MIME (2)
RFC 822 headers added by MIME.
![Page 11: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/11.jpg)
MIME (3)
The MIME types and subtypes defined in RFC 2045.
![Page 12: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/12.jpg)
MIME (4)
A multipart message containing enriched and audio alternatives.
![Page 14: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/14.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/15.jpg)
POP3
Using POP3 to fetch three messages.
![Page 16: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/16.jpg)
IMAP
A comparison of POP3 and IMAP.
![Page 17: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/17.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/18.jpg)
Architectural Overview
(a) A Web page (b) The page reached by clicking on Department of Animal Psychology.
![Page 19: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/19.jpg)
Architectural Overview (2)
The parts of the Web model.
![Page 20: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/20.jpg)
The Client Side
(a) A browser plug-in. (b) A helper application.
![Page 21: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/21.jpg)
The Server Side
A multithreaded Web server with a front end and processing modules.
![Page 22: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/22.jpg)
The Server Side (2)
A server farm.
![Page 23: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/23.jpg)
The Server Side (3)
(a) Normal request-reply message sequence.
(b) Sequence when TCP handoff is used.
![Page 24: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/24.jpg)
URLs – Uniform Resource Locaters
Some common URLs.
![Page 25: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/25.jpg)
Statelessness and Cookies
Some examples of cookies.
![Page 26: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/26.jpg)
HTML – HyperText Markup Language
(a) The HTML for a sample Web page. (b) The formatted page.
(b)
![Page 27: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/27.jpg)
HTML (2)
A selection of common HTML tags. some can have additional parameters.
![Page 28: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/28.jpg)
Forms
(a) An HTML table.
(b) A possible rendition of this table.
![Page 29: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/29.jpg)
Forms (2)
(a) The HTML for an order form.
(b) The formatted page.
(b)
![Page 30: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/30.jpg)
Forms (3)
A possible response from the browser to the server with information filled in by the user.
![Page 31: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/31.jpg)
XML and XSL
A simple Web page in XML.
![Page 32: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/32.jpg)
XML and XSL (2)
A style sheet in XSL.
![Page 33: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/33.jpg)
Dynamic Web Documents
Steps in processing the information from an HTML form.
![Page 34: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/34.jpg)
Dynamic Web Documents (2)
A sample HTML page with embedded PHP.
![Page 35: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/35.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/36.jpg)
Client-Side Dynamic Web Page Generation
Use of JavaScript for processing a
form.
![Page 37: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/37.jpg)
Client-Side Dynamic Web Page Generation (2)
(a) Server-side scripting with PHP.(b) Client-side scripting with JavaScript.
![Page 38: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/38.jpg)
Client-Side Dynamic Web Page Generation (3)
A JavaScript program for computing and printing factorials.
![Page 39: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/39.jpg)
Client-Side Dynamic Web Page Generation (4)
An interactive Web page that responds to mouse movement.
![Page 40: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/40.jpg)
Client-Side Dynamic Web Page Generation (5)
The various ways to generate and display content.
![Page 41: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/41.jpg)
HTTP Methods
The built-in HTTP request methods.
![Page 42: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/42.jpg)
HTTP Methods (2)
The status code response groups.
![Page 43: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/43.jpg)
HTTP Message Headers
Some HTTP message headers.
![Page 44: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/44.jpg)
Example HTTP Usage
The start of the output of www.ietf.org/rfc.html.
![Page 45: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/45.jpg)
Caching
Hierarchical caching with three proxies.
![Page 46: The Application Layer](https://reader036.vdocuments.us/reader036/viewer/2022062321/56813c5d550346895da5ddcb/html5/thumbnails/46.jpg)
Content Delivery Networks
(a) Original Web page. (b) Same page after transformation.