CIS 192 - Module 10 - Application Layer(3) (6)
CIS 192 - Module 10 - Application Layer(3) (6)
Introduction to
Networking Introduction to
Networks v6 Companion
Module 10 Guide
Fall
2024
Module Objectives
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.
2
Application, Presentation, and Session
• The upper three layers of the OSI
model—application, presentation, and
session—align with the TCP/IP
application layer
• Application layer serves as the
interface for applications to
communicate over the network.
• For successful communication, the
application layer protocols used by
both source and destination devices
must be compatible.
3
Application, Presentation, and Session
Presentation layer functions:
• Formatting
• Compressing/decompressing
• Encrypting/decrypting
4
Client-Server Model
• 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.
5
Peer-to-Peer Networks
• In a P2P network, computers
connect directly to share resources
like files and printers, without a
dedicated server.
• Each computer, or peer, can act as
both a client and a server, depending
on the request.
• Some P2P applications use a hybrid
model where peers access an index
server to find resources stored on
other peers.
• Common P2P networks include:
BitTorrent, Direct Connect, eDonkey,
Freenet
6
Web Protocols - Hypertext Transfer Protocol (HTTP and HTTPS)
The web service is running on the server that
is using the HTTP protocol (port 80).
7
Web Protocols - Accessing a web page
Protocol File path/name
Step1. The browser interprets the URL components: http:// www.cisco.com/ index.html
Server/domain name
Step 3. The client sends an HTTP GET request to the server for the index.html file.
The server respond by sending the HTML code for the web page to the browser.
8
HTTP connections: two types
Email protocols:
• Simple Mail Transfer Protocol
(SMTP) to send mail.
• Post Office Protocol (POP) &
Internet Message Access Protocol
(IMAP) to retrieve mail.
12
Email Protocols - SMTP, POP and IMAP
SMTP
• Uses the TCP well-known port 25.
13
Email Protocols - SMTP, POP and IMAP
POP
• Uses TCP port 110.
• When mail is downloaded it is then
deleted on the server.
IMAP.
• Uses TCP port 143
15
Domain Name Service (DNS) - IP Addressing
Services
• Fully-qualified domain names (FQDNs),
are much easier for people to remember
than IP address
• http://www.cisco.com, 198.133.219.25.
• DNS protocol defines an automated
service that matches resource names
with the required IP address.
• It includes the format for queries,
responses, and data.
16
Domain Name Service (DNS) - DNS Hierarchy
• DNS operates on a
hierarchical system for name
resolution.
• Each server manages a
specific database of name-to-
IP mappings for its zone.
• If a server receives a request
for a name outside its zone, it
forwards the request to the
appropriate DNS server for
translation.
17
DNS name resolution: iterated query
Iterated query:
2
• contacted server 3
replies with name of TLD DNS server
server to contact 1 4
• “I don’t know this 5
8
name, but ask this
server” requesting host at
cis.ufv.ca
local DNS server
dns.ufv.ca
gaia.cs.umass.edu
7 6
18
DNS name resolution: recursive query
Recursive query: 3
2
• puts burden of name
7 6
resolution on 1 TLD DNS server
contacted name
server 8
• heavy load at upper requesting host at local DNS server
5 4
cis.ufv.ca dns.ufv.ca
levels of hierarchy? gaia.cs.umass.edu
19
Domain Name Service (DNS) - IP Addressing Services
The nslookup Command
• Nslookup is a computer operating system
utility that allows a user to manually query
the DNS servers configured on the device
to resolve a given host name.
• When the nslookup command is issued,
the default DNS server configured for your
host is displayed.
• The name of a host or domain can be
entered at the nslookup prompt.
• This utility can also be used to troubleshoot
name resolution issues and to verify the
current status of the name servers.
20
Dynamic Host Configuration Protocol (DHCP)
• The DHCP for IPv4 automates the
assignment of IP addresses and
networking parameters, contrasting
with static addressing, which is done
manually.
• When a host connects to the network,
it requests an address from the
DHCP server, which assigns it from a
preconfigured pool.
• Many networks use both DHCP for
general devices and static addressing
for critical network equipment like
routers and servers.
Note: DHCPv6 offers services for IPv6 clients but does not provide a default gateway address, which
is obtained from the router's Router Advertisement message..
21
DHCP Operation
223.1.2.5 DHCP discover
• DHCP can return more src : 0.0.0.0, 68
than just allocated IP Broadcast: is there a
dest.: 255.255.255.255,67
DHCP server
yiaddr: out
0.0.0.0
address on subnet: transaction
there?ID: 654
• name and IP address DHCP offer
of DNS sever src: 223.1.2.5, 67
Broadcast: I’m a DHCP
dest: 255.255.255.255, 68
• network mask server!
yiaddr:Here’s
223.1.2.4an IP
transaction ID: 654
address you can use
lifetime: 3600 secs
DHCP request
• The first two steps can src: 0.0.0.0, 68
be skipped “if a client dest:: 255.255.255.255,
Broadcast: OK. I would 67
remembers and wishes like
yiaddr: 223.1.2.4
to use ID:
transaction this
655IP
to reuse a previously address!
lifetime: 3600 secs
22
File Transfer Protocol (FTP)
FTP enables data transfers between a client and a server, with an FTP client application
facilitating the exchange of data.
23
Server Message Block (SMB)
SMB is a client/server file sharing
protocol that enables servers to share
resources with clients over a network.
Three functions of SMB messages:
• Start, authenticate, and terminate
sessions
• Control file and printer access
• Allow an application to send or receive
messages to or from another device
Unlike FTP’s file sharing, clients create
a long-term connection to servers,
enabling users to access server
resources as if they were local.
24
P2P file distribution: BitTorrent
• file divided into 256Kb chunks
• peers in torrent send/receive file chunks
Alice arrives …
… obtains list
of peers from tracker
… and begins exchanging
file chunks with peers in torrent
25