Networking Applications

Slides:



Advertisements
Similar presentations
1 Electronic Mail u Three major components: u user agents u mail servers u simple mail transfer protocol: SMTP u User Agent u a.k.a. “mail reader” u composing,
Advertisements

TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 23 Electronic Mail: SMTP,
1 Pertemuan 23 Layer Transport Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
Application: Electronic Mail Linda Wu (CMPT )
Application Layer Pertemuan 25 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
TCP/IP Protocol Suite 1 Chapter 20 Upon completion you will be able to: Electronic Mail: SMTP, POP, and IMAP Understand four configurations of architecture.
CPSC 441: FTP & SMTP1 Application Layer: FTP & Instructor: Carey Williamson Office: ICT Class.
Chapter 2: Application layer  2.1 Web and HTTP  2.2 FTP 2-1 Lecture 5 Application Layer.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 23 Electronic Mail: SMTP,
Electronic Mail and SMTP
Chapter 30 Electronic Mail Representation & Transfer
Esimerkki: Sähköposti. Lappeenranta University of Technology / JP, PH, AH Electronic Mail Three major components: user agents mail servers simple mail.
Simple Mail Transfer Protocol
Architecture of SMTP, POP, IMAP, MIME.
Introduction 1 Lecture 7 Application Layer (FTP, ) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
Mail Server Fitri Setyorini. Content SMTP POP3 How mail server works IMAP.
Electronic Mail: SMTP, POP, and IMAP
Introduction 1-1 Chapter 2 FTP & Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 IC322 Fall.
2: Application Layer1 Chapter 2 Application Layer These slides derived from Computer Networking: A Top Down Approach, 6 th edition. Jim Kurose, Keith Ross.
Electronic Mail (SMTP, POP, IMAP, MIME)
SMTP, POP3, IMAP.
1 Application Layer Lecture 5 Imran Ahmed University of Management & Technology.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
CSE401N: Computer Networks Lecture-5 Electronic Mail S. M. Hasibul Haque Lecturer Dept. of CSE, BUET.
IT 424 Networks2 IT 424 Networks2 Ack.: Slides are adapted from the slides of the book: “Computer Networking” – J. Kurose, K. Ross Chapter 2: Application.
Review: –How do we address “a network end-point”? –What services are provided by the Internet? –What is the network logical topology observed by a network.
Application Layer Protocols Simple Mail Transfer Protocol.
Chapter 7: Internet-Based Applications Business Data Communications, 6e.
1 Computer Communication & Networks Lecture 27 Application Layer: Electronic mail and FTP Waleed.
Fall 2005 By: H. Veisi Computer networks course Olum-fonoon Babol Chapter 7 The Application Layer.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
Electronic Mail Originally –Memo sent from one user to another Now –Memo sent to one or more mailboxes Mailbox –Destination point for messages.
1 Applications Electronic Mail. 2 Electronic Mail Many user applications use client-server architecture. Electronic mail client accepts mail.
TCP/IP Protocol Suite 1 Chapter 20 Upon completion you will be able to: Electronic Mail: SMTP, POP, and IMAP Understand four configurations of architecture.
26.1 Chapter 26 Remote Logging, Electronic Mail, and File Transfer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
Computer Networks26-1 Chapter 26. Remote Logging, Electronic Mail and File Transfer.
CPT 499 Internet Skills for Educators Electronic Mail Session Five.
Simple Mail Transfer Protocol (SMTP)
Internet Applications
File Transfer Protocol (FTP)
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Network Protocols Chapter 26 (Data Communication and Networking): Remote Logging, Electronic Mail, and.
1 SMTP - Simple Mail Transfer Protocol –RFC 821 POP - Post Office Protocol –RFC 1939 Also: –RFC 822 Standard for the Format of ARPA Internet Text.
Lecture 6: Sun: 8/5/1435 Distributed Applications Lecturer/ Kawther Abas CS- 492 : Distributed system & Parallel Processing.
CS 3830 Day 9 Introduction 1-1. Announcements r Quiz #2 this Friday r Demo prog1 and prog2 together starting this Wednesday 2: Application Layer 2.
A Quick Look At How Works Understanding the basics of how works can make life a lot easier for any user. Especially those who are interested.
Chapter 16: Distributed Applications Business Data Communications, 4e.
Slides based on Carey Williamson’s: FTP & SMTP1 File Transfer Protocol (FTP) r FTP client contacts FTP server at port 21, specifying TCP as transport protocol.
1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Electronic Mail: SMTP, POP IMAP, and MIME.
COMP 431 Internet Services & Protocols
1 Kyung Hee University Chapter 22 Simple Mail Transfer Protocol (SMTP)
1 Architecture 2 User Agent 3 Message Transfer Agent 4 Message Access Agent 5 MIME 6 Web-Based Mail 7 Electronic Mail Security.
26.1 Electronic Mail Sending/Receiving Mail Addresses User Agent MIME Mail Transfer Agent Mail Access Protocols.
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
Dr. Adil Yousif University of Alneelian – Master of CS - IT Electronic Mail.
Application Layer instructors at St. Clair College in Windsor, Ontario for their slides. Special thanks to instructors at St. Clair College in Windsor,
Spring 2006 CPE : Application Layer_ 1 Special Topics in Computer Engineering Application layer: Some of these Slides are Based on Slides.
درس مهندسی اینترنت – مهدی عمادی مهندسی اینترنت برنامه‌نویسی در اینترنت 1 SMTP, FTP.
© MMII JW RyderCS 428 Computer Networks1 Electronic Mail  822, SMTP, MIME, POP  Most widely used application service  Sometimes only way a person ever.
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Remote Logging, Electronic Mail, and File Transfer
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
Networking Applications
Chapter 6: Distributed Applications
CS- 492 : Distributed system & Parallel Processing
Chapter 2: Application layer
William Stallings Data and Computer Communications
Remote Logging, Electronic Mail,
The Application Layer: SMTP, FTP
Chapter 7 Network Applications
Chapter 2 Application Layer
Presentation transcript:

Networking Applications Dr. Ayman A. Abdel-Hamid College of Computing and Information Technology Arab Academy for Science & Technology and Maritime Transport Electronic Mail Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications Outline Introduction SMTP MIME Mail Access Protocols Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications Introduction Email from user to user (or a group of users) Email from user to a mailing list SMTP (Simple Mail Transfer Protocol) is the standard mechanism for email in the Internet Analogy to postal mail (envelope and message (header and body)) Email addresses in the form <local-part@domain-name> Local-part: address of user mailbox on local site Domain-name: destination domain name Recall MX resource record in DNS database Email © Dr. Ayman Abdel-Hamid, Networking Applications

Architecture and Protocols A client-server architecture Email client accepts mail and delivers to email server in destination domain End-to-end delivery Store and forward mechanism Simple Mail Transfer Protocol (SMTP) TCP/IP Delivery of simple text messages (7-bit ASCII format) Multi-purpose Internet Mail Extension (MIME) An extension to SMTP  Delivery of other types of data (e.g., languages not supported by 7-bit ASCII, Voice, images, or video clips) Email © Dr. Ayman Abdel-Hamid, Networking Applications

Client-Server Architecture Email © Dr. Ayman Abdel-Hamid, Networking Applications

User Agent and Mail Transfer Agent Actual mail transfer through MTA Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications User Agent (UA) Software that does the following Composing messages: provides a template to be filed Reading messages: When UA is invoked, it checks for mail in the incoming mail box Replying to messages Forwarding messages Handles mailboxes: Inbox, sent, and others Could be command-driven (pine or mail) or GUI-based (Eudora or Outlook) Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications Mail Transfer Phases Connection Establishment SMTP client makes a TCP connection to well-known port 25 SMTP server starts the connection phase Message Transfer Connection Termination Email © Dr. Ayman Abdel-Hamid, Networking Applications

Mail Delivery From Sender to Receiver 1/3 Stage 1 Email goes from UA to local server (MTA client) Mail stored in local server until it can be sent (spooled) UA uses SMTP client software and local server uses SMTP server software Why not deliver email directly to remote server? Stage 2 Local MTA performs a DNS lookup to obtain the mail exchange servers for the destination domain Email © Dr. Ayman Abdel-Hamid, Networking Applications

Mail Delivery From Sender to Receiver 2/3 Stage 3 Push Operation: local MTA (SMPT client) relays email to remote server (SMTP server) Why not deliver to remote UA? Email received by mail server and stored in the user mailbox for later retrieval Stage 4 Remote UA employs a mail access protocol to access the mailbox and obtain her/his email (pull protocols) Post Office Protocol: POP3 Internet Mail Access Protocol: IMAPv4 Email © Dr. Ayman Abdel-Hamid, Networking Applications

Mail Delivery From Sender to Receiver 3/3 Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications Relay MTA 1/2 Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications Relay MTA 2/2 The concept of an email hub Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications SMTP Email © Dr. Ayman Abdel-Hamid, Networking Applications

SMTP Sequence of Events Source connects Target responds  220 Ready for mail Source sends HELO Target responds with identification Source sends from and to fields Target accepts Source sends one or more messages Target closes connection when complete Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications Mail Message Contents Each queued message has: Message text header with message envelope and list of recipients Message body, composed by user A list of mail destinations Derived by user agent from header May be listed in header May require expansion of mailing lists May need replacement of mnemonic names with mailbox names Email © Dr. Ayman Abdel-Hamid, Networking Applications

Mail Sending Optimization If message destined for multiple users on a given host, it is sent only once Delivery to users handled at destination host If multiple messages ready for given host, a single TCP connection can be used Saves overhead of setting up and dropping connection Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications Possible Errors Host unreachable Host out of operation TCP connection fail during transfer Sender can re-queue mail Give up after a period Faulty destination address User error Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications SMTP Receiver Accepts arriving message Places in user mailbox or copies to outgoing queue for forwarding Receiver must: Verify local mail destinations Deal with errors Transmission Lack of disk space Sender responsible for message until receiver confirm complete transfer Indicates mail has arrived at host, not user Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications E-mail Headers Lines of text in format keyword: information keyword identifies information; information can appear in any order Essential information: To: list of recipients From: sender Cc: list of copy recipients Useful information Reply-to: different address than From: Received-by: for debugging Email © Dr. Ayman Abdel-Hamid, Networking Applications

(Multipurpose Internet Mail Extensions) Data in Email Original Internet mail carried only 7-bit ASCII data Couldn’t contain arbitrary binary values; e.g., executable program Can not be used for languages that are not supported by 7-bit ASCII (e.g., French, German, Chinese, and Japanese) MIME (Multipurpose Internet Mail Extensions) Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications MIME Introduction Transforms non-ASCII data at sender site to ASCII data and delivers to client SMTP Server SMTP at receiving side receives ASCII data and delivers to MIME MIME at receiver transforms to original data Email © Dr. Ayman Abdel-Hamid, Networking Applications

MIME: From Non-ASCII to ASCII NVT is Network Virtual terminal Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications MIME Headers 1/3 5 headers can be added to original SMTP header to define transformation parameters MIME-version: 1.0 or 1.1 Content-Type Type of data used in body of message Content-Type: <type /subtype/parameters> Text (plain), Multipart, Message, Image, Video, Audio, and Application Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications MIME Headers 2/3 5 headers can be added to original SMTP header to define transformation parameters Content-Transfer Encoding 7bit, 8bit, Binary, Base64 (6-bit blocks encoded into 8-bit ASCII characters), and Quoted-printable (Non-ASCII characters encoded as an equal sign followed by an ASCII code. ASCII is sent as is) Content-Id Identify whole message in a multiple message environment Content-Description Email © Dr. Ayman Abdel-Hamid, Networking Applications

MIME Headers 3/3 Binary data into Radix-64 format A Base 64 encoding table is used to interpret 6-bit into one char Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications Mail Access Protocols POP3 IMAPv4 Web-based email Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications POP3 Client POP3 installed on recipient computer Server POP3 installed on main server User needs to download email from mailbox on the mail server UA opens a connection with server on TCP port 110 Sends user name and password User can list and retrieve messages Delete and keep mode Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications IMAP4 POP3 does not allow user to organize mail on server (user can not have different folders on server) POP3 does not allow user to partially check the contents of the mail before downloading IMAP offers the following User checks email header prior to downloading User can search contents of email for a search string before downloading User can create, delete, or rename mailboxes on mail server User can create folders for email storage Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications Web-based Email Mail transfer from User browser to mail server performed through HTTP Transfer of message from sending mail server to receiving mail server through SMTP Message from receiving server to recipient’s browser performed through HTTP Need for Webmail software Email © Dr. Ayman Abdel-Hamid, Networking Applications

© Dr. Ayman Abdel-Hamid, Networking Applications Further Information RFC 821: Simple Mail Transfer Protocol, August 1982 RFC 822, ARPA Internet Text Messages, August 1982 RFC 1521: MIME – Part 1, September 1993 RFC 1522: MIME-Part 2, September 1993 RFC 1939: POP3, May 1996 RFC 3501, IMAP4, March 2003 Email © Dr. Ayman Abdel-Hamid, Networking Applications