Lecture12 Application Layer
Lecture12 Application Layer
Lecture12 Application Layer
Chapter 12
Application Layer
Module Objectives
Module Title: Application Layer
Module Objective: Explain the operation of application layer protocols in providing support to end-user
applications.
Explain how the functions of the application layer, presentation layer, and
Application, Presentation, and Session session layer work together to provide network services to end user
applications.
Web and Email Protocols Explain how web and email protocols operate.
• In the client/server model, the device requesting the information is called a client and the device
responding to the request is called a server.
• Application layer protocols describe the format of the requests and responses between clients
and servers.
Peer-to-Peer
Peer-to-Peer Networks
• In a peer-to-peer (P2P) network, two or more computers are connected via a network and can share
resources (such as printers and files) without having a dedicated server.
• Every connected end device (known as a peer) can function as both a server and a client.
• One computer might assume the role of server for one transaction while simultaneously serving as a
client for another. The roles of client and server are set on a per request basis.
Peer-to-Peer
Peer-to-Peer Applications
• A P2P application allows a device to act as both a client and a server within the same communication.
• Some P2P applications use a hybrid system where each peer accesses an index server to get the
location of a resource stored on another peer.
Peer-to-Peer
Common P2P Applications
With P2P applications, each computer in
the network that is running the application
can act as a client or a server for the other
computers in the network that are also
running the application.
Common P2P networks include the
following:
BitTorrent
Direct Connect
eDonkey
Freenet
12.3 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 In response to the request, the server sends
server to convert www.cisco.com into the HTML code for this web page to the
a numeric IP address, which it uses to browser.
connect to the server.