Unit V Notes
Unit V Notes
Unit V Notes
E-Mail (SMTP, MIME, POP3, IMAP), HTTP – DNS - FTP - Telnet – web
services - SNMP – MIB– RMON.
Format of an email
Mail is a text file
Envelope –
sender address
receiver address
Message –
Mail Header – defines the sender, the receiver, the subject of
the message, and other information
Mail Body – Contains the actual information in the message
The Mail Transfer agents at the client side and server side communicate
in the form of commands and responses.
Responses
Keyword Arguments
HELO Sender’s Host Domain Name
MAIL FROM: Email Address of sender
RCPT TO: Email of Intended recipient
DATA Body of the message
Status Codes
The Server responds with a 3 digit code that may be followed by text info
2## - Success
3## - Command can be accepted with more
information
4## - Command was rejected, but error
condition is temporary
5## - Command rejected, Bad User!
Connection Establishment
Connection Termination
Limitations in SMTP
Only uses NVT 7 bit ASCII format
How to represent other data types?
No authentication mechanisms
Messages are sent un-encrypted
Susceptible to misuse (Spamming,faking sender address)
MIME Messages
• MIME information is contained in the mail header using standard
RFC 2822 format.
• MIME header specifies version, data type, encoding used to convert
the data to ASCII.
• Example:
• From: [email protected]
• To: [email protected]
• MIME-Version: 1.0
• Content-Type: image/jpeg
• Content-Transfer-Encoding: base64
• ..data for the image..
Example:
From: [email protected]
To: [email protected]
MIME-Version: 1.0
Content-Type: Multipart/Mixed; Boundary=StartOfNextPart
--StartOfNextPart
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
John,
Here is the photo of the carrier pigeons I saw last
week.
Sincerely,
Carrie Erpigeons
--StartOfNextPart
Content-Type: image/gif
Content-Transfer-Encoding: base64
..data for the image..
• Short for Post Office Protocol, a protocol used to retrieve e-mail from
a mail server. Most e-mail applications (sometimes called an e-mail
client) use the POP protocol, although some can use the newer IMAP
(Internet Message Access Protocol).
• There are two versions of POP.
• The first, called POP2, became a standard in the mid-80's and
requires SMTP to send messages. The newer version, POP3, can be
used with or without SMTP. POP3 uses TCP/IP port 110.
• Workstations interact with the SMTP host, which receives the mail
on behalf of every host in the organization, to retrieve messages by
using a client-server protocol such as Post Office Protocol, version
3(POP3). Although POP3 is used to download messages from the
server, the SMTP client still needed on the desktop to forward
messages from the workstation user to its SMTP mail server.
POP3 Commands
Pop vs IMAP
Similarities
Mail delivered to a shared, constanly connected server
New mail accessible anywhere in network on a variety of
platforms
For access only, Need SMTP to send mail
Differences
POP simpler and more established (more clients and servers
that support it)
IMAP is stateful protocol with more features
• With IMAP, all your mail stays on the server in multiple folders,
some of which you have created. This enables you to connect to any
computer and see all your mail and mail folders. In general, IMAP is
great if you have a dedicated connection to the Internet or you like to
check your mail from various locations.
• With POP3 you only have one folder, the Inbox folder. When you
open your mailbox, new mail is moved from the host server and
saved on your computer. If you want to be able to see your old mail
HTTP transaction
1. Request message
2. Response message
Request Messages
URL
Response Messages
Uniform Resources
• URL
– Uniform Resource Locator
– Refers to an existing protocol
• http:, wais:, ftp:, mailto:, gopher:, news:
– Points to a document on a specific server
• URN
– Uniform Resource Name
– Globally unique, persistent identifier
• Independent of location
• URI
– Uniform Resource Identifier
– Collection of URL’s and URN’s
Purpose of DNS
DNS Components
Name space
• To be unambiguous, the names assigned to machines must be
carefully selected from a name space with complete control over the
binding between the names and IP addresses. In other words, the
names must be unique because the addresses are unique.
• A name space that maps each address to a unique name can be
organized in two ways:
flat or hierarchical.
• A name space can be either
• flat (names are not divisible into components)
• hierarchical (Unix file names are an obvious
example).
Generic domains
RESOLUTION
Mapping a name to an address or an address to a name is
called name-address resolution.
DNS MESSAGES
Transferring files from one computer to another is one of the most common
tasks expected from a networking or internetworking environment. As a
matter of fact, the greatest volume of data exchange in the Internet today is
due to file transfer.
Two systems may have different ways to represent text and data.
Two systems may have different directory structures. All these
problems have been solved by FTP in a very simple and elegant
approach
Fig: FTP
Example
7. Now the server responds with 150 and opens the data
connection.