01 Application Layer
01 Application Layer
Unit- 5
Application, Presentation, and Session
Application Layer
• The TCP/IP application protocols specify the format and control information necessary for many common
internet communication functions.
• Application layer protocols are used by both the source and destination devices during a communication
session.
• For the communications to be successful, the application layer protocols that are implemented on the
source and destination host must be compatible.
Name System Host Config Web
DNS - Domain Name DHCP - Dynamic Host HTTP - Hypertext Transfer
System (or Service) Configuration Protocol Protocol
• TCP, UDP client 53 • UDP client 68, server 67 • TCP 80, 8080
• Dynamically assigns IP • A set of rules for
• Translates domain addresses to be re-used exchanging text, graphic
names, such as when no longer needed images, sound, video,
cisco.com, into IP and other multimedia
addresses. files on the World Wide
Web
Web and Email Protocols
Web and Email Protocols
Hypertext Transfer Protocol and Hypertext Markup Language
When a web address or Uniform Resource Locator (URL) is typed into a web
browser, the web browser establishes a connection to the web service. The
web service is running on the server that is using the HTTP protocol.
To better understand how the web browser and web server interact, examine
how a web page is opened in a browser.
Step 1
The browser interprets the three parts
of the URL:
• http (the protocol or scheme)
• www.cisco.com (the server name)
• index.html (the specific filename
requested)
Web and Email Protocols
Hypertext Transfer Protocol and Hypertext Markup Language (Cont.)
Step 2 Step 3
The browser then checks with a name server In response to the request, the
to convert www.cisco.com into a numeric IP server sends the HTML code for this
address, which it uses to connect to the server. web page to the browser.
The client initiates an HTTP request to a
server by sending a GET request to the server
and asks for the index.html file.
Web and Email Protocols
Hypertext Transfer Protocol and Hypertext Markup Language (Cont.)
Step 4
The browser deciphers the HTML code and formats the page for the
browser window.
Web and Email Protocols
HTTP and HTTPS
Email is a store-and-forward
method of sending, storing, and
retrieving electronic messages
across a network. Email messages
are stored in databases on mail
servers. Email clients
communicate with mail servers to
send and receive email.
The email protocols used for
operation are:
• Simple Mail Transfer
Protocol (SMTP) –
used to send mail.
• Post Office Protocol
(POP) & IMAP – used
for clients to receive
mail.
Web and Email Protocols
SMTP, POP and IMAP
POP is used by an application to retrieve mail from a mail server. When mail is
downloaded from the server to the client using POP the messages are then deleted on the
server.
• The server starts the POP
service by passively listening
on TCP port 110 for client
connection requests.
• When a client wants to make
use of the service, it sends a
request to establish a TCP
connection with the server.
• When the connection is
established, the POP server
sends a greeting.
• The client and POP server
then exchange commands and Note: Since POP does not store messages, it is not
responses until the connection recommended for small businesses that need a centralized
is closed or aborted. backup solution.
Web and Email Protocols
SMTP, POP and IMAP(Cont.)