Application Layer: CCNA Exploration 1
Application Layer: CCNA Exploration 1
Chapter 3
CCNA Exploration 1
Applications
The Interface Between Human and Data
Networks
Application Layer
For example:
When displaying a web page:
Application
layer, there are two
forms
of software
programs or
processes that
provide access to
the network:
Applications
Services
create messages
Application layer services establish an
interface to the network
Protocols provide the rules and formats
that govern how data is treated.
messages.
Define message dialogues (appropriate responses).
Data
Application Layer
Making Provisions for
Applications and Services
Introduction
When accessing
information on a device,
the data may not be
physically stored on
that device.
If that is the case, a
request must be made
to the device where the
data resides.
Two methods:
Client/Server
Peer-to-Peer (P2P)
Servers
Servers are
repositories of
information.
Processes on
the server
control the
delivery of
information
to the client.
The information is usually shared with multiple clients.
Web Server
Email Server
Servers
Some servers
may require
user
authentication
to access the
data or the
network.
FTP Server:
May require
an account and password before allowing a
transfer.
Client/Server Model
Clients hardware,
software combination
The client begins the
exchange by making
a request for data.
Files uploaded to
the server
Client/Server Model
Peer-to-Peer (P2P)
Networking
One big disadvantage of P2P networking is
Peer-to-Peer (P2P)
Applications
Application Layer
Application Layer Protocols
and Services Examples
Applications
Applications
APPLICATIONS
22
DNS
Domain Name System
Helping Protocol
1
1.
.
8
16
.
2
19
80
Data:
1025 Request for
web page
Trailer
www.cisco.com : ? IP address
Web Server
application Port
Number: 80
IP address :
200.20.20.1
IP address :
192.168.1.1
== ?? Unique
IP address
Numbered
Address
Request
for IP address
Packet ready
to be send
to www.cisco.com
Data:
Request for
web page
Trailer
Operating System
DNS
Resolver
www.cisco.com
DNS Resolver:
Port No. 1026
DNS Sever:
Port No. 53
IP Address :
10.10.1.3
???
IP Address :
10.10.1.2
MAC Address
.2
.1
0.
1
10
M
Se AC
ve o
r fD
N
M
S
A
C
of
Cl
ie
nt
10
.1
0.
1.
3
IP Address
53
1026
Data:
Request for
Domain
Name Lookup
Port Numbers
Trailer
www.cisco.com
3
www.cisco.com = 198.133.219.25
DNS and the Browser:
2. The resolver sends the DNS request to the DNS Server.
3. The server then searches its records and resolves the
name with to a corresponding IP Address.
www.cisco.com
3
www.cisco.com = 198.133.219.25
4
198.133.219.25
ARP Request
DNS Request
ready
to be send.
How does the resolver know the MAC Address of the DNS
Server?
By the help of ARP (Address Resolution Protocol)
Resolves Known IP address = Unknown MAC Address.
Where to send the ARP request?
To All Devices in the Network - BROADCAST
NO
Single point of failure
Traffic volume
REASONS ?
Distance centralized database
Maintenance
Doesnt scale!
Solution: Distributed Database
DNS Heirarchy
Also Known as
Authoritative
DNS Servers
Local DNS
Servers
resolve name.
a NSI Herndon, VA
c PSInet Herndon, VA
d U Maryland College Park, MD
g DISA Vienna, VA
h ARL Aberdeen, MD
j NSI (TBD) Herndon, VA
e NASA Mt View, CA
f Internet Software C. Palo Alto, CA
k RIPE London
i NORDUnet Stockholm
m WIDE Tokyo
Iterative
requesting host
.edu
5
4
Local DNS Server
dns.cs.umass.edu
PC17.bracu.ac.bd
gaia.cs.umass.edu
Recursive Query
puts burden of
name resolution on
contacted name
server
heavy load?
Iterated query:
contacted server
iterated query
3
4
7
requesting host
surf.eurecom.fr
gaia.cs.umass.edu
Iterative Query
? www.site.com
? www.site.com
www.site.com = 202.2.2.2 .Store in cache
Local memory
nslookup
Windows operating systems provide
nslookup
HTTP
Hypertext Transfer Protocol
And WWW Services
HTTP Components
Client
Web browser
Server
Web Server
Protocol
HTTP, HTTPS
Content
Web Documents
Protocol
Browser
Web Browser
Web Server:
Stores the web objects (HTML, Pictures, Video, Files).
Each accessible by a URL.
Implements the server side of HTTP.
Examples:
Apache, Microsoft Internet Information Server (MIIS)
URL
The browser interprets the 3 parts of the
URL:
1. http (the protocol or scheme)
2. www.cisco.com(the server name)
3. web-server.htm (the specific file name
requested).
Request
for IP address
Web Browser
Displays
Method/Message types
HTTP/1.0
GET
POST
HEAD
asks server to leave
HTTP/1.1
GET, POST, HEAD
PUT
uploads file in entity
DELETE
deletes file specified in
data, e.g.,
requested
HTML file
HTTP/1.1 200 OK
Connection close
Date: Thu, 06 Aug 1998 12:00:15 GMT
Server: Apache/1.3.0 (Unix)
Last-Modified: Mon, 22 Jun 1998 ...
Content-Length: 6821
Content-Type: text/html
data data data data data ...
message
HTTP Request
HTTP Response