Application, Presentation, and Session
Application, Presentation, and Session
Session
Application, Presentation, and Session
Application Layer
• The upper three layers of the OSI
model (application, presentation,
and session) define functions of the
TCP/IP application layer.
• The application layer provides the
interface between the applications
used to communicate, and the
underlying network over which
messages are transmitted.
• Some of the most widely known
application layer protocols include
HTTP, FTP, TFTP, IMAP and DNS.
Application, Presentation, and Session
Client-Server Model
• Client and server processes are considered to be in the application layer.
• 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
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.
Email Protocols
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(Internet Message Access
Protocol) – used for clients to receive
mail.
Web and Email Protocols
DNS Hierarchy
• DNS uses a hierarchical system to create a database to
provide name resolution.
• Each DNS server maintains a specific database file and
is only responsible for managing name-to-IP mappings
for that small portion of the entire DNS structure.
• When a DNS server receives a request for a name
translation that is not within its DNS zone, the DNS
server forwards the request to another DNS server
within the proper zone for translation.
• Examples of top-level domains:
• .com - a business or industry
• .org - a non-profit organization
• .au - Australia
IP Addressing Services
DHCP Operation
The DHCP Process:
• When an IPv4, DHCP-configured device boots up
or connects to the network, the client broadcasts
a DHCP discover (DHCPDISCOVER) message to
identify any available DHCP servers on the
network.
• A DHCP server replies with a DHCP offer
(DHCPOFFER) message, which offers a lease to
the client. (If a client receives more than one
offer due to multiple DHCP servers on the
network, it must choose one.)
• The client sends a DHCP request (DHCPREQUEST)
message that identifies the explicit server and
lease offer that the client is accepting.
• The server then returns a DHCP acknowledgment
(DHCPACK) message that acknowledges to the
client that the lease has been finalized.
• If the offer is no longer valid, then the selected
server responds with a DHCP negative
acknowledgment (DHCPNAK) message and the Note: DHCPv6 has a set of messages that is similar to those for
process must begin with a new DHCPDISCOVER DHCPv4. The DHCPv6 messages are SOLICIT, ADVERTISE,
message. INFORMATION REQUEST, and REPLY.
•File Sharing Services
File Sharing Services