Distributed Applications - Data Communications - Lecture Slides, Slides of Data Communication Systems and Computer Networks
These lecture slides are very easy to understand the data communication system. The major points in these lecture slides are:Distributed Applications, Electronic Mail, Application, Simple Mail Transfer Protocol, Simple Text Messages, Multi-Purpose Internet Mail Extension, Delivery of Other Types of Data, Video Clips, Format of Messages, Data
Download Distributed Applications - Data Communications - Lecture Slides and more Slides Data Communication Systems and Computer Networks in PDF only on Docsity!
Chapter 22
Distributed Applications
Electronic Mail
Most heavily used application on any network
Simple Mail Transfer Protocol (SMTP) —TCP/IP —Delivery of simple text messages
Multi-purpose Internet Mail Extension (MIME) —Delivery of other types of data —Voice, images, video clips
Basic Operation
Mail created by user agent program (mail client) —Message consists of: - Header containing recipient’s address and other info - Body containing user data
Messages queued and sent as input to SMTP sender program —Typically a server process (daemon on UNIX)
Mail Message Contents
Each queued message has: —Message text - RFC 822 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
If BCCs indicated, user agent needs to prepare correct message format
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
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 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
SMTP Forwarding
Mostly direct transfer from sender host to receiver host
May go through intermediate machine via forwarding capability —Sender can specify route —Target user may have moved
SMTP Mail Flow
SMTP System Overview
Commands and responses between sender and receiver
Initiative with sender —Establishes TCP connection
Sender sends commands to receiver
e.g. HELO
Each command generates exactly one reply
e.g. 250 requested mail action ok; completed
Operation Phases
Connection setup
Exchange of command-response pairs
Connection termination
Connection Setup
Sender opens TCP connection with receiver
Once connected, receiver identifies itself —220 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
Closing Connection
Two steps
Sender sends QUIT and waits for reply
Then initiate TCP close operation
Receiver initiates TCP close after sending reply to QUIT
Format for Text Messages
RFC 882
Message viewed as having envelope and contents
Envelope contains information required to transmit and deliver message
Message is sequence of lines of text —Uses general memo framework —Header usually keyword followed by colon followed by arguments