William Stallings Data and Computer Communications

Slides:



Advertisements
Similar presentations
1 Computer Networks and Communications [Δίκτυα Υπολογιστών και Επικοινωνίες] Lectures 10-13: Back to applications… The app. Univ. of the Aegean.
Advertisements

1 Pertemuan 23 Layer Transport Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
Application Layer Pertemuan 25 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
Hypertext Transfer Protocol Kyle Roth Mark Hoover.
Chapter 6: Distributed Applications Business Data Communications, 5e.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 23 – Internet Applications Internet Directory.
Electronic Mail and SMTP
William Stallings Data and Computer Communications 7 th Edition Chapter 22 Distributed Applications.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 22 – Internet Applications Electronic Mail.
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.
Sistem Jaringan dan Komunikasi Data #8. Electronic Mail  most heavily used application on any network  Simple Mail Transfer Protocol (SMTP)  TCP/IP.
Simple Mail Transfer Protocol
Chapter 7: Internet-Based Applications Business Data Communications, 6e.
Introduction 1 Lecture 7 Application Layer (FTP, ) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
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.
Electronic Mail (SMTP, POP, IMAP, MIME)
Internet Engineering Course
SMTP, POP3, IMAP.
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.
Application Layer Protocols Simple Mail Transfer Protocol.
Electronic Mail. Most heavily used application on any network Uses client-server architecture –Electronic mail client accepts mail from user and delivers.
Chapter 7: Internet-Based Applications Business Data Communications, 6e.
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.
9/15/2015© 2008 Raymond P. Jefferis IIILect Application Layer.
Sistem Jaringan dan Komunikasi Data #9. DNS The Internet Directory Service  the Domain Name Service (DNS) provides mapping between host name & IP address.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 22 – Internet Applications Electronic Mail.
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.
Internet Applications
File Transfer Protocol (FTP)
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.
SIMPLE MAIL TRANSFER PROTOCOL. Introduction Simple Mail Transfer Protocol is the standard protocol on the Internet and part of the TCP/IP protocol.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
Chapter 16: Distributed Applications Business Data Communications, 4e.
CS440 Computer Networks 1 Neil Tang 12/01/2008.
Computer Networks with Internet Technology William Stallings Chapter 04 Modern Applications 4.1 Web Access - HTTP.
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.
COMP 431 Internet Services & Protocols
1 Kyung Hee University Chapter 22 Simple Mail Transfer Protocol (SMTP)
26.1 Electronic Mail Sending/Receiving Mail Addresses User Agent MIME Mail Transfer Agent Mail Access Protocols.
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.
William Stallings Data and Computer Communications 7th Edition
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Networking Applications
SMTP: simple mail transfer protocol
HTTP – An overview.
Networking CS 3470, Section 1 Sarah Diesburg
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
Net 431 D: ADVANCED COMPUTER NETWORKS
Chapter 6: Distributed Applications
Tutorial (4): HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CS- 492 : Distributed system & Parallel Processing
Chapter 2: Application layer
Networking CS 3470, Section 1 Sarah Diesburg
William Stallings Data and Computer Communications
William Stallings Data and Computer Communications
HyperText Transfer Protocol
The Application Layer: SMTP, FTP
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
University of Houston Distributed Applications Datacom II Lecture 10
Chapter 7 Network Applications
William Stallings Data and Computer Communications
HTTP Hypertext Transfer Protocol
Presentation transcript:

William Stallings Data and Computer Communications Chapter 19 Distributed Applications (e-mail and www)

Electronic Mail Most heavily used application on any network Simple Mail Transfer Protocol (SMTP) Delivery of simple text messages Multi-purpose Internet Mail Extension (MIME) Delivery of other types of data Voice, images, video clips

SMTP RFC 821 Not concerned with format of messages or data Covered in RFC 822 (see later) SMTP uses info written on “envelope” Message header Does not look at contents Except: Standard character set: 7 bit ASCII Add log info to start of message Shows path taken

SMTP Mail Flow

Mail Message Contents Each queued message has: Message text A list of mail destinations

SMTP Sender Takes message from queue Transmits to proper destination host Via SMTP transaction Over one or more TCP connections to port 25 When delivery is completed, sender deletes destination from list for that message When all destinations processed, message is deleted

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 Target user changed address Redirect if possible Inform user if not

SMTP Protocol - Reliability Used to transfer messages from sender to receiver over TCP connection Attempts to provide reliable service No guarantee to recover lost messages No end to end acknowledgment to originator Generally considered reliable

SMTP Receiver Accepts arriving message Places in user mailbox or copies to outgoing queue for forwarding Sender responsible for message until receiver confirm complete transfer Indicates mail has arrived at host, not user

Scope of SMTP SMTP limited to conversation between sender and receiver Main function is to transfer messages Rest of mail handling beyond scope of SMTP May differ between systems

SMTP System Overview Commands and responses between sender and receiver over a TCP connection Sender sends commands to receiver Each command generates exactly one reply Basic SMTP operation Connection setup Mail transfer Connection termination

Connection Setup Sender opens TCP connection with receiver Once connected, receiver identifies itself 220 <domain> service ready Sender identifies itself HELO Receiver accepts sender’s identification 250 OK If mail service not available, step 2 above becomes: 421 service not available

Mail Transfer Sender may send one or more messages to receiver MAIL command identifies originator Receiver returns 250 OK or appropriate fail/error message One or more RCPT commands identifies recipients for the message Separate reply for each recipient DATA command transfers message text End of message indicated by line containing just period (.)

RFC 882 Format for text messages Message is sequence of lines of text Uses general memo framework Header usually keyword followed by colon followed by arguments Example: Date:Tue, 16 Jan 1996 10:37:17 (EST) From: “William Stallings” <ws@host.com> Subject:The syntax of RFC 822 To: Smith@otherhost.com Cc: Jones@Yet-another_host.com This is the main text, delimited from the header by a blank line.

Multipurpose Internet Mail Extension (MIME) Extension to RFC822 SMTP can not transmit executables or binary Uuencode and other schemes are available Can not transmit text including international characters (e.g. â, å, ä, è, é, ê, ë) RFC 822 is 7-bit ASCII, need 8-bit ASCII MIME RFCs 2045, 2046, 2047, 2048 and 2049

Overview of MIME Different applications can be bundled into a single message audio, video, text, image applications

MIME Transfer Encodings Reliable delivery across wide largest range of environments Content transfer encoding field Six values Three (7bit, 8bit, binary) no encoding done Provide info about nature of data Quoted-printable useful when data is largely printable ASCII characters printable characters are not encoded Non-printing characters represented by hex code Base64 Maps arbitrary binary input onto printable output

Base 64 Encoding

Hypertext Transfer Protocol HTTP Underlying protocol of the World Wide Web Can transfer plain text, hypertext, audio, images, and Internet accessible information

HTTP Overview Transaction oriented client/server protocol Usually between Web browser (client) and Web server Uses TCP connections Stateless Each transaction treated independently New TCP connection for each transaction Terminate connection when transaction completes

Examples of HTTP Operation

HTTP Messages Simple request/response mechanism Requests Responses Client to server Responses Server to client

HTTP Message Structure

Request Request-Line = Method <SP> Request_URL <SP> HTTP-Version <CRLF> Several Methods - some examples Get Head Delete Put

Request Header Field Additional parameters about requests - some examples Accept charset Accept language If modified since Referrer User agent

Response Messages Status line followed by one or more general, response and entity headers, followed by optional entity body Status-Line = HTTP-Version <SP> Status-Code <SP> Reason-Phrase <CRLF> Response Header Fields - an example Server (info about server software)

Entity Header Optional information about the entity - some examples Content language Content length Content type Last modified

Entity Body Actual Data HTTP transfers any type of data including: text binary data audio images video Interpretation of data determined by header fields