Application - Layer Protocols

We have just learned that network processesIt is important to distinguish between network
communicate with each other by sendingapplications and application- layer protocols. An
messages into sockets. But how are theseapplication-layer protocol is only one piece of a
messages structured? What are the meanings ofnetwork application. Let's look at a couple of
the various fields in the messages? When do theexamples. The Web is a client-server application
processes send the messages? These questionsthat allows users to obtain documents from Web
bring us into the realm of application-layerservers on demand. The Web application consists
protocols. An application-layer protocol definesof many components, including a standard for
how an application's processes, running ondocument formats (that is, HTML), Web browsers
different end systems, pass messages to each(for example, Firefox and Microsoft Internet
other. In particular, an application-layer protocolExplorer), Web servers (for example, Apache and
defines:o The types of messages exchanged, forMicrosoft servers), and an application-layer
example, request messages and responseprotocol. The Web's application-layer protocol, H'I'
messageso The syntax of the various messagedefines the format and sequence of the
types, such as the fields in the message and howmessages that are passed between browser and
the fields are delineatedo The semantics of theWeb server. Thus, HTTP is only one piece (albeit,
fields, that is, the meaning of the information inan important piece) of the Web application. As
the fieldso Rules for determining when and how aanother example, an Internet e-mail application
process sends messages and responds toalso has many components, including mail servers
messagesthat house user mailboxes; mail readers that allow
Some application-layer protocols are specified inusers to read and create messages; a standard
RFCs and are therefore in the public domain. Forfor defining the structure of an e-mail message;
example, the Web's application-layer protocol,and application-layer protocols that define how
HTTP (the Hyper Text Transfer Protocol (RFCmessages are passed between servers, how
2616]), is available as an REC. If a browsermessages are passed between servers and mail
developer follows the rules of the HTTP RFC, thereaders, and how the contents of certain parts of
browser will be able to retrieve Web pages fromthe mail message (for example, a mail message
any Web server that has also followed the rulesheader) are to be interpreted. The principal
of the HTTP RFC.application-layer protocol for electronic mail is
Many other application-layer protocols areSMTP (Simple Mail Transfer Protocol) [RFC 2821].
proprietary and intentionally not available in theThus, e-mail's principal application-layer protocol,
public domain. For example, many existing P2PSMTP, is only one piece (albeit, an important
file-sharing systems use proprietarypiece) of the e-mail application.
application-layer protocols.