Application Layer
Application Layer
Lastname.subdomain.second-
leveldomain.top-level domain
Ex.student.glearn.gitam.edu
Third-level domain Second-level domain top-level domain
Ex.www.webhostinggitam.edu
Domain Name System
• Hierarchical domain based naming and distributed db system for
implementing naming scheme.
• Scalability
• No limit to DB
• One server has over 20,000,000 names
• No limit to queries(24,000 queries per second)
• Dynamicity
• DB updated dynamically(add/delete/modify of any record)
• Reliability
• Data is replicated(from master is copied to multiple slaves)
• Loose coherency
• DB consistent, changes made by master is send to zone administrators.
Electronic Mail
• Faster and cheaper than paper mail
• Email has been a popular application since the early days of the
Internet.
• large and grew exponentially from 1990.
• Email systems are organized and what they can do with architecture
and systems.
Architecture and services
• It is TCP/IP protocol used in sending and receiving e-mail, and simple ASCII protocol.
• Users, typically use a program that uses SMTP for sending e-mail and either POP3
or IMAP for receiving e-mail.
• Email is delivered by sending computer establish a TCP connection to port 25 of the
receiving computer.
• This server accepts incoming connections, subject to some security checks, and
accepts messages for delivery. If a message cannot be delivered, an error report
containing the first part of the undeliverable message is returned to the sender.
• Using ASCII text makes protocols easy to develop, test, and debug. They can be
tested by sending commands manually, and records of the messages are easy to
read. Most application-level Internet protocols now work this way (e.g., HTTP).
SMTP commands
• The HELO command- is used to initiate an smtp session. when one host
needs to establish an smtp session with another host.
• MAIL FROM-is used primarily to send email addresses.
• The RCPT TO-tells the receiving host email address of message recipient.
• DATA-body of the mail.
• The QUIT-is used to terminate the smtp session
• The RSET-performs smtp reset and then aborts the message i.e currently
being sent.
• EXPN-includes mailing list to be expanded.
IMAP—The Internet Message Access
Protocol
• It is an application layer internet protocol (RFC 3501 ) that allows an email client from local server
to access email on a remote mail server. well known port 143.
• Use of IMAP can create multiple folders and mailboxes on server , delete messages or search for
entire part or certain part.
• It requires continual access to the server during ,working with your mail.
• It is designed for users to stay connected to one or more email servers while reading, creating and
organizing messages.
• Users can manipulate both mails and mailboxes on server side, they can be private and public
access.
• Imap messages are stored in server , and can also be cached on local server machine for office use.
• Deleting the cached does not delete on server.
• It saves bandwidth by downloading just headers ( to,from,subject) of email without transferring the
message or any attachments to client.
POP3 (Post Office Protocol, version 3),
• It is a simpler client/server protocol(RFC 1939) but supports fewer
features and is less secure in typical usage.
• Protocol for receiving e-mail.
• Store and forward service, listens on well known port 110.
• Used to retrieve mail for a single user , requires authentication.
• POP3 commands-USER-specify user name, PASS-Password, STAT-get
mail status, LIST-list of msgs and sizes, RETR-retrieve a msg,
TOP-send header lines from msg and APOP-alternative authentication
Webmail
• It is common, increasingly popular and alternative to IMAP and SMTP
for providing email service is to use the Web as an interface for
sending and receiving mail.
• Popular are Google Gmail, Microsoft Hotmail and Yahoo! Mail.
Independent of machine only browser is needed.
• Webmail is one example of software (in this case, a mail user agent)
that is provided as a service using the Web.
• Web pages will often include JavaScript programs to make interactive
and responsive.
Background
• The Web began in 1989 at CERN, the European Center for Nuclear
Research.
• Through the 1990s and 2000s, Web sites and Web pages, as Web
content is called, grew exponentially until there were millions of sites
and billions of pages.
• In 1994, CERN and M.I.T. signed an agreement setting up the W3C
(World Wide Web Consortium), an organization devoted to further
developing the Web, standardizing protocols, and encouraging
interoperability between sites
Architectural overview
• Web consists of a vast, worldwide collection of content in the form of
Web pages, often just called pages for short. Each page may contain
links.
• The idea of having one-page point to another, now called hypertext.
• Pages are generally viewed with a program called a browser
(ex.firefox,chrome,IE).
• Page are associated with links to other pages. A piece of text, icon,
image, and so on associated with another page is called a hyperlink.
• Pages can be static-same everytime dynamic-differs from each time.
Architectural view of web
The Client Side