Chapter 6: Distributed Applications

Slides:



Advertisements
Similar presentations
TOPIC : MIME (Multipurpose Internet Mail Extensions ) By: Cecilia Gomes COSC 541,DATA COMMUNICATION SYSTEMS & NETWORKS Instructor: Prof. Anvari (SEU)
Advertisements

CCNA – Network Fundamentals
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.
CPSC 441: FTP & SMTP1 Application Layer: FTP & Instructor: Carey Williamson Office: ICT Class.
Electronic Mail and SMTP
William Stallings Data and Computer Communications 7 th Edition Chapter 22 Distributed Applications.
SNMP & MIME Rizwan Rehman, CCS, DU. Basic tasks that fall under this category are: What is Network Management? Fault Management Dealing with problems.
Chapter 30 Electronic Mail Representation & Transfer
Sistem Jaringan dan Komunikasi Data #8. Electronic Mail  most heavily used application on any network  Simple Mail Transfer Protocol (SMTP)  TCP/IP.
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.
Lecturer : Ms.Trần Thị Ngọc Hoa Chapter 8 File Transfer Protocol – Simple Mail Transfer Protocol.
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.
Electronic Mail (SMTP, POP, IMAP, MIME)
SMTP, POP3, IMAP.
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.
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.
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.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
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.
Chapter 16: Distributed Applications Business Data Communications, 4e.
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.
Session Initiation Protocol (SIP) Chapter 5 speaker : Wenping Zhang data :
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.
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.
Voice Over Internet Protocol (VoIP) Copyright © 2006 Heathkit Company, Inc. All Rights Reserved Presentation 5 – VoIP and the OSI Model.
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.
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
Applications:Electronic Mail (SMTP,POP,IMAP,MIME)
Networking Applications
SMTP: simple mail transfer protocol
Networking CS 3470, Section 1 Sarah Diesburg
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
CS- 492 : Distributed system & Parallel Processing
Multimedia and Networks
Process-to-Process Delivery:
ELECTRONIC MAIL SECURITY
Chapter 2: Application layer
Networking CS 3470, Section 1 Sarah Diesburg
ELECTRONIC MAIL SECURITY
William Stallings Data and Computer Communications
The Application Layer: SMTP, FTP
Chapter 7 Network Applications
Chapter 2 Application Layer
Presentation transcript:

Chapter 6: Distributed Applications Business Data Communications, 5e

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 Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

Public vs Private Email Provided by a 3rd party vendor Available over one or more public networks Examples: MCI Mail, AOL Private Integrated with user’s computer equipment Often part of an integrated tool, eg PROFS Used for internal messaging Internet mail does not fit into either of these categories; it is a transfer mechanism rather than a contained system Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

Single System E-Mail 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 Example: AOL Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

Multiple Systems E-Mail 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 Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

Simple Mail Transfer Protocol (SMTP) Standard for TCP/IP mail transfer, defined in RFC 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 Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

Basic E-Mail 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 Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

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 Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

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” Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

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 Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

Sample SMTP Exchange S: MAILFROM:<Smith@Alpha.ARPA> R: 250 OK S: RCPT TO:<Jones@Beta.ARPA> R: 250 OK S: RCPT TO:<Green@Beta.ARPA> R: 550 No such user here S: DATA R: 354 Start mail input; end with <CRLF>.<CRLF> S: Blah blah blah…. S:…etc. etc. etc. S: <CRLF>.<CRLF> R: 250 OK Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

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 Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

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 Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

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) Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

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 Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

MIME Header Fields MIME-Version: Indicates compliance with RFCs 1521 and 1522 Content-Type: Describes data in sufficient detail for receiver to pick method for representation Content-Transfer-Encoding: Indicates type of transformation used to represent content Content-ID: Used to uniquely identify MIME entities Content-Description: Plain text description for use when object is not readable Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

MIME Content Types Seven major types: Text, Multipart, Message, Image, Video, Audio, Application Fourteen subtypes: See page 384 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 Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

HTTP Overview Stateless protocol Flexible in format handling TCP connection terminated as soon as transaction completes Flexible in format handling Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

HTTP Operation Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

HTTP Intermediate Systems Proxy Forwarding agent Security intermediary Different versions of HTTP Gateway Non-HTTP server Tunnel Relay point between two TCP connections Cache Facility storing previous requests and responses Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

Intermediate System Examples Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

HTTP Messages Simple Messages Full Requests Simple-Request: GET with requested URL Simple-Response: block with requested info Full Requests Request-Line Response-Line General-Header Request-Header Entity-Header Entity-Body All HTTP headers follow RFC 822 format Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

Session Initiation Protocol (SIP) Defined in RFC 3261 Manages real-time sessions over IP data network Intended to enable Internet telephony/VoIP Based on HTTP-like request/response transaction model Five facets User location User availability User capabilities Session setup Session management Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

SIP Components and Protocols Client/server elements Client sends/receives SIP messages Includes user agents, proxies Network elements User agent (client/UAC, server/UAS) Redirect server Proxy server Registrar Location service Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

SIP Component Illustration Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

SIP Operation Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

SIP Messages Request Methods Response Types REGISTER INVITE ACK CANCEL BYE OPTIONS Response Types Provisional (1xx) Success (2xx) Redirection (3xx) Client Error (4xx) Server Error (5xx) Global Failure (6xx) Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0

Session Description Protocol Media Streams Addresses Ports Payload types Start and stop times Originator Business Data Communications, 4eStallings, Business Data Communications, Fifth Edition, © 2005 Pearson Education, Inc. All rights reserved. 0-13-144257-0