Chapter 16: Distributed Applications Business Data Communications, 4e.

Slides:



Advertisements
Similar presentations
INTRANET MAIL SERVER (DESIGN OF SMTP and POP3)
Advertisements

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,
1 Pertemuan 23 Layer Transport Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
Application Layer Pertemuan 25 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
Chapter 6: Distributed Applications Business Data Communications, 5e.
Chapter 29 Structure of Computer Names Domain Names Within an Organization The DNS Client-Server Model The DNS Server Hierarchy Resolving a Name Optimization.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
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.
Electronic Mail and SMTP
POP3 Post Office Protocol v.3. Intro The Post Office Protocol (POP) is currently the most popular TCP/IP access and retrieval protocol. It implements.
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
Chapter 7: Internet-Based Applications Business Data Communications, 6e.
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.
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.
Message preparation Word processing Annotation Message sending User directory Timed delivery Multiple addressing Message priority Status information.
2: Application Layer1 Chapter 2 Application Layer These slides derived from Computer Networking: A Top Down Approach, 6 th edition. Jim Kurose, Keith Ross.
Lesson 26 - (1 of 41) , SMTP, and MIME types.
Electronic Mail (SMTP, POP, IMAP, MIME)
Internet Engineering Course
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.
Intro to Computer Networks Bob Bradley The University of Tennessee at Martin.
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.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
Application Protocols: ELECTRONIC MAIL (SMTP, POP) CSNB534 Semester 2, 2007/2008 Asma Shakil.
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.
Sending and Receiving Mails
Simple Mail Transfer Protocol (SMTP)
CIS-325: Data Communications 1 CIS-325 Data Communications Dr. L. G. Williams, Instructor.
Electronic Mail. Client Software and Mail Hosts –Client PC has client software that communicates with user’s mail host –Mail hosts deliver.
SMTP( 简单邮件传输协议 ) SIMPLE MAIL TRANSFER PROTOCOL RFC 2812.
Internet Applications
File Transfer Protocol (FTP)
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.
Business Data Communications & Networking Lecture 13 Distributed Applications.
Lecture 6: Sun: 8/5/1435 Distributed Applications Lecturer/ Kawther Abas CS- 492 : Distributed system & Parallel Processing.
Computer Networks with Internet Technology William Stallings Chapter 03 Traditional Applications.
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.
SMTP - Simple Mail Transfer Protocol RFC 821
Chapter 16: Distributed Applications Business Data Communications, 4e.
CS440 Computer Networks 1 Neil Tang 12/01/2008.
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.
World Wide Web r Most Web pages consist of: m base HTML page, and m several referenced objects addressed by a URL r URL has two components: host name and.
COMP 431 Internet Services & Protocols
1 Kyung Hee University Chapter 22 Simple Mail Transfer Protocol (SMTP)
Data and Computer Communications Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
@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.
Spring 2006 CPE : Application Layer_ 1 Special Topics in Computer Engineering Application layer: Some of these Slides are Based on Slides.
درس مهندسی اینترنت – مهدی عمادی مهندسی اینترنت برنامه‌نویسی در اینترنت 1 SMTP, FTP.
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Networking Applications
Chapter 6: Distributed Applications
CS- 492 : Distributed system & Parallel Processing
ELECTRONIC MAIL SECURITY
Chapter 2: Application layer
William Stallings Data and Computer Communications
ELECTRONIC MAIL SECURITY
William Stallings Data and Computer Communications
Chapter 2 Application Layer
Presentation transcript:

Chapter 16: Distributed Applications Business Data Communications, 4e

2 Electronic Mail Features Message Preparation Word processing Annotation Message Sending User directory Timed delivery Multiple addressing Message priority Status information Interface to other facilities Message Receiving Mailbox scanning Message selection Message notification Message reply Message rerouting Page 442

3 Single System Only allows users of a shared system to exchange messages Each user has unique identifier and mailbox Sending a message simply puts it into recipients ’ box e.g. RITVAX, AOL

4 Multiple Systems Distributed system enables mail servers to connect over a network to exchange mail Functions split User agent handles preparation, submission, reading, filing, etc Transfer agent receives mail from user, determines routing, communicates with remote systems Interconnection requires standards

5 Multiple Systems

6 Simple Mail Transfer Protocol (SMTP) Standard for TCP/IP mail transfer, defined in RFC 821RFC 821 Concerned addressing and delivery, not content, with two exceptions Character set standardized as 7-bit ASCII Adds log information to message that indicates message path

7 Basic Operation User creates message with user agent program Text includes RFC 822 header and body of message List of destinations derived from header Messages are queued and sent to SMTP sender program running on a host

8 SMTP Mail Flow SMTP server transmits messages to appropriate hosts via TCP Multiple messages to same host can be sent on one connection Errors handling necessary for faulty addresses and unreachable hosts SMTP protocol attempts to provide error-free transmission, but does not provide end-to-end acknowledgement SMTP receiver accepts messages, places it in mailbox or forwards

9

10 SMTP Connection Setup Sender opens TCP connection to receiver Receiver acknowledges connection with “ 220 Service Ready ” or “ 421 Service Not Available ” If connection is made, sender identifies itself with the “ HELO ” command Receiver accepts identification with “ 250 OK ”

11 SMTP Mail Transfer MAIL command identifies originator, provides reverse path for error reporting RCPT commands identify recipient(s) for message Receiver has several positive or negative responses to RCPT Sender will not send message until it is sure at least one copy can be delivered DATA command transfers message

12 Sample SMTP Exchange S: HELO pc-ycc R: 250 euler.im.ncnu.edu.tw Hello …, pleased to meet you S: MAIL FROM: R: 250 OK S: RCPT TO: R: 250 OK S: RCPT TO: R: 550 No such user here S: DATA R: 354 Start mail input; end with. S: Blah blah blah …. S: … etc. etc. etc. S:. R: 250 OK S: QUIT S: HELO pc-ycc R: 250 euler.im.ncnu.edu.tw Hello …, pleased to meet you S: MAIL FROM: R: 250 OK S: RCPT TO: R: 250 OK S: RCPT TO: R: 550 No such user here S: DATA R: 354 Start mail input; end with. S: Blah blah blah …. S: … etc. etc. etc. S:. R: 250 OK S: QUIT

13 SMTP Connection Closing Sender sends a QUIT command to initiate TCP close operation Receiver sends a reply to the QUIT command, then initiates its own close

14 RFC 822 Defines format for text messages via electronic mail Used by SMTP as accepted mail format Specifies both envelope and contents Includes a variety of headers that can be included in the message header lines

15 Limitations of SMTP and RFC822 Cannot transmit executables or binary files without conversion into text through non- standard programs (e.g. UUENCODE) Cannot transmit diacritical marks Transfers limited in size Gateways do not always map properly between EBCDIC and ASCII Cannot handle non-text data in X.400 messages Not all SMTP implementations adhere completely to RFC821 (tabs, truncation, etc)

16 MIME (Multipurpose Internet Mail Extensions) Intended to resolve problems with SMTP and RFC822 Specifies five new header fields, providing info about body of message Defines multiple content formats Defines encodings to enable conversion of any type of content into transferable form

17 MIME Header Fields MIME-Version: Indicates compliance with RFCs 1521 and 1522 Content-Type Content-Type: Describes data in sufficient detail for receiver to pick method for representation Content-Transfer-Encoding Content-Transfer-Encoding: Indicates type of transformation used to represent content Content-ID Content-ID: Used to uniquely identify MIME entities Content-Description Content-Description: Plain text description for use when object is not readable

18 MIME Content Types Seven major types: Text, Multipart, Message, Image, Video, Audio, Application Fourteen subtypes: See page 452 for details Text provides only plain subtype, but a richtext subtype is likely to be added Multipart indicates separate parts, such as text and an attachment MIME types are used by web servers, as well

19 MIME Content Types

20... From: "Yen-Cheng Chen" To: Subject: test mail! Date: Wed, 22 May :27: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0047_01C2019E.69F32C40“ Status: This is a multi-part message in MIME format =_NextPart_000_0047_01C2019E.69F32C40 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit Start of Body! Yen-Cheng =_NextPart_000_0047_01C2019E.69F32C40 Content-Type: text/plain; name="a.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="a.txt“ This is the first and only one line of the file =_NextPart_000_0047_01C2019E.69F32C From: "Yen-Cheng Chen" To: Subject: test mail! Date: Wed, 22 May :27: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0047_01C2019E.69F32C40“ Status: This is a multi-part message in MIME format =_NextPart_000_0047_01C2019E.69F32C40 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit Start of Body! Yen-Cheng =_NextPart_000_0047_01C2019E.69F32C40 Content-Type: text/plain; name="a.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="a.txt“ This is the first and only one line of the file =_NextPart_000_0047_01C2019E.69F32C40-- multipart/mixed

21 POP3 Post Office Protocol - Version 3 RFC 1939 / Std 53 To retrieve s from server (POP3 server) Three states Authorization State Transaction State Update State

22 POP3 Commands Authorization State USER username PASS password APOP name digest Transaction State STAT LIST [msgNo] RETR msgNo DELE msgNo NOOP RSET TOP msgNo line UIDL [msgNo] Update State QUIT

23 S: +OK POP3 server ready C: USER mrose S: +OK User name accepted, password please C: PASS pwd999 S: +OK Mailbox open, 2 messages (320 octets) C: STAT S: +OK C: LIST S: +OK 2 messages (320 octets) S: S: S:. C: RETR 1 S: +OK 120 octets S: S:. C: DELE 1 S: +OK message 1 deleted C: QUIT S: +OK dewey POP3 server signing off (maildrop empty) S: +OK POP3 server ready C: USER mrose S: +OK User name accepted, password please C: PASS pwd999 S: +OK Mailbox open, 2 messages (320 octets) C: STAT S: +OK C: LIST S: +OK 2 messages (320 octets) S: S: S:. C: RETR 1 S: +OK 120 octets S: S:. C: DELE 1 S: +OK message 1 deleted C: QUIT S: +OK dewey POP3 server signing off (maildrop empty)

24 Electronic Data Interchange (EDI) Direct, computer-to-computer exchange of business data Replaces use of paper documents Requires two participants to agree on electronic format for the data Two departments within a company Companies and customers Multiple companies

25 Benefits of EDI Cost savings Speed Reduction of errors Security Integration with office automation Just-in-time delivery

26 EDI v EDI Typically no human involvement in processing the information; interface is software- to-software Data not necessarily structured for software processing. Human-to-software exchange is usually involved on at least one end

27 Components of EDI Systems Application Translation Software Communications Network

28 EDI/Internet Integration RFC 1767, issued in 1995 defines a method for packaging EDI transactions in a MIME envelope. Application/EDIFACT Application/EDI-X12 Application/EDI-consent Additional requirements have since emerged: Security issues such as EDI transaction integrity, privacy and non-repudiation Support for exchanges by point-to-point, FTP, and SMTP protocols. An IETF working group is currently addressing these unresolved issues.

29 Enterprise Application Integration (EAI) linking applications, whether purchased or developed in-house, so they can better support a business process. Critical for implementation of Internet- based business strategies

30 EAI Illustrated