CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.

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

The Application Layer Chapter 7. Where are we now?
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 24 Network Management: SNMP.
SMTP – Simple Mail Transfer Protocol
Application: Electronic Mail Linda Wu (CMPT )
Application Layer Pertemuan 25 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
Chapter 6: Distributed Applications Business Data Communications, 5e.
TCP/IP Protocol Suite 1 Chapter 21 Upon completion you will be able to: Network Management: SNMP Understand the SNMP manager and the SNMP agent Understand.
(SMTP, MIME) Message transfer protocol (SMTP) vs message format protocols (RFC 822, Multipurpose Internet Mail Extensions or MIME) Message transfer.
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
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.
SNMP Simple Network Management Protocol
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
Architecture of SMTP, POP, IMAP, MIME.
Mail Server Fitri Setyorini. Content SMTP POP3 How mail server works IMAP.
TCP/IP Protocol Suite 1 Chapter 21 Upon completion you will be able to: Network Management: SNMP Understand the SNMP manager and the SNMP agent Understand.
Simple Mail Transfer Protocol (SMTP) Kanika Thapar CISC 856 TCP/IP and Upper Layer Protocols 11/8/2007 (Some slides provided by Ezra Kissel, some figures.
Electronic Mail (SMTP, POP, IMAP, MIME)
Simple Mail Transfer Protocol
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.
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.
Electronic Mail Originally –Memo sent from one user to another Now –Memo sent to one or more mailboxes Mailbox –Destination point for messages.
Computer Networks26-1 Chapter 26. Remote Logging, Electronic Mail and File Transfer.
Sending and Receiving Mails
Internet applications Bill Chu. © Bei-Tseng Chu Aug 2000 Need for Domain Name Service (DNS) Natively, a TCP host is identified by its IP address hosts.
9/15/2015© 2008 Raymond P. Jefferis IIILect Application Layer.
Simple Mail Transfer Protocol (SMTP)
Communication and Functional Models
SMTP( 简单邮件传输协议 ) SIMPLE MAIL TRANSFER PROTOCOL RFC 2812.
Internet Applications
SNMP n Where did it come from ? –Internet Engineering Task Force »Network Management Area –SNMP V1 –MIB definitions –SNMPV2.
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.
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.
SIMPLE MAIL TRANSFER PROTOCOL. Introduction Simple Mail Transfer Protocol is the standard protocol on the Internet and part of the TCP/IP protocol.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2001 TCP/IP Application Layer.
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.
Internet applications Chapter Introduction DNS Electronic mail FTP TFTP Internet telephony SNMP.
CITA 440 Week 6 SNMPv1. Internet SNMP Management Internet Engineering Task Force (IETF) –1990SNMPv1 –1996SNMPv2 –1998SNMPv3 Internet documents: –Request.
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.
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)
Spring 2006 CPE : Application Layer_ 1 Special Topics in Computer Engineering Application layer: Some of these Slides are Based on Slides.
درس مهندسی اینترنت – مهدی عمادی مهندسی اینترنت برنامه‌نویسی در اینترنت 1 SMTP, FTP.
Network management Communication model
William Stallings Data and Computer Communications 7th Edition
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Network Management: SNMP
Networking Applications
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
William Stallings Data and Computer Communications
Chapter 2 Application Layer
Presentation transcript:

CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina

4/20/20042 Simple Mail Transfer Protocol (SMTP) is one of most popular applications In 1991 about ½ TCP connections are for SMTP Mail exchange is performed by a message transfer agent (MTA), for example Sendmail Users don’t interact with MTA but can choose their user agent

4/20/20043 TCP/IP Exchange Architecture queue of mail to be sent user agent client user at a terminal message transfer agent server user at a terminal user mailboxes user agent message transfer agent sender receiver

4/20/20044 SMTP Protocol Specified in RFC 821 Use NVT ASCII for communication between two MTAs Client sends commands to server Server responds with numeric reply codes with optional strings

4/20/20045 SMTP Commands Basic implementation includes eight commands HELO MAIL RCPT DATA QUIT RSET VRFY NOOP Additional commands include EXPN and TURN

4/20/20046 Envelopes, Headers, and Body Envelopes are used by MTAs for delivery Specified by MAIL and RCPT commands Headers are used by user agents RFC 822 specifies header format Each header field contains a name, a colon, and field value Body is content of message from sending user to receiving user When transferred using DATA command, headers are sent first, followed by a blank line, followed by body

4/20/20047 Transmission of a Mail User agent takes body, adds some headers, and passes to MTA MTA adds some headers, adds envelope, and sends to another MTA

4/20/20048 Relay Agents All individual systems send their mail to a relay system Two reasons of using relay system Simplify configuration of all MTAs other than relay system’s MTA Allow one system at an organization to act as mail hub Most organizations use relay system for Internet mail

4/20/20049 Improvements on SMTP Envelope changes: Extended SMTP Header changes: Non-ASCII characters Body changes: Multipurpose Internet Mail Extensions (MIME)

4/20/ Extended SMTP Framework for adding extensions to SMTP Client wishing to use new features can use EHLO, instead of HELO, to initiate session Server lists extended commands in the 250 reply to EHLO command

4/20/ Non-ASCII Characters Allow additional characters in sender and receiver names and in subject Header can contain encoded words =? charset ? encoding ? encoded-text ?= Charset can be us-ascii or iso Encoding can be quoted-printable or base-64 Using base-64, three consecutive bytes are encoded as four 6-bit values

4/20/ Multipurpose Internet Mail Extensions Allow structures in body Five new header fields Mime-Version: Content-Type: Content-Transfer-Encoding: Content-ID: Content-Description: Seven content types: text, multipart, message, application, image, audio, video Five encoding formats: 7bit, quoted-printable, base64, 8bit, binary

4/20/ Simple Network Management Protocol Need to manage systems within a coherent framework Number of networks within organization grows Heterogeneity of systems in network Network management consists of communication between managers and agents Managers are network management stations Agents are management software running on network elements, e.g. hosts, routers, X terminals Current version is SNMPv3 (RFC 2570)

4/20/ Components of Network Management Three components of SNMP Management Information Base (MIB): specifies what variables network elements maintain Structure of Management Information (SMI): a set of common structures and an identification scheme used to reference variables in MIB Simple Network Management Protocol (SNMP): protocol between manager and element

4/20/ SNMP Protocol Use UDP to send messages Seven types of messages are exchanged between managers and agents get-request allows manager to fetch value of variables get-next-request allows manager to fetch next variable after specified variables set-request allows manager to set value of variables get-response allows agent to return value of variables in response to get-request, get-next-request, and set-request trap allows agent to notify manager when something happens on agent get-bulk-request allows manager to retrieve large blocks of data inform-request allows one manager to send info to another manager

4/20/ SNMP Messages SNMP agent SNMP manager UDP port 161 UDP port 162 get-request get-response get-next-request get-response set-request get-response trap

4/20/ Structure of Management Info Data types used by SNMP INTEGER OCTET STRING DisplayString OBJECT IDENTIFIER NULL IpAddress PhysAddress Counter Gauge TimeTicks SEQUENCE SEQUENCE OF

4/20/ Object Identifiers A sequence of integers separated by decimal points These integers traverse a tree structure, similar to DNS Each node in the tree also has a textual name All variables in MIB start with the object identifier

4/20/ Instance Identification Every variable in MIB must be identified Simple variables are referenced by appending “.0” to variable’s object identifier Table entries are identified by combination of variables in table

4/20/ Traps Agent can send traps to manager to indicate that something has happened on agent Traps are sent to UDP port 162 on manager Seven types of traps coldStart warmStart linkDown linkUp authenticationFailure egpNeighborLoss enterpriseSpecific

4/20/ Next Class Peer-to-peer applications Read JNP Sec. 24.4