Lecture 7 Application Layer I
Lecture 7 Application Layer I
Objectives
01/31/2024 1
Roadmap of The Layers
01/31/2024 2
Introduction
01/31/2024 3
Introduction
01/31/2024 4
The Session Layer
01/31/2024 5
Requesting & Establishing a Session
01/31/2024 6
The Presentation Layer
• This layer changes the look of the data from the lower
layers into a format that the App layer protocols can
work with.
• The main purpose is to define data formats.
01/31/2024 7
The Presentation Layer (cont’d)
• Data compression
01/31/2024 8
Blank
01/31/2024 9
The Application Layer
01/31/2024 10
The OSI Model: Upper Layers
The Application Layer (cont’d)
This layer facilitates a user’s initial task of sending data
through the Internet .
• For each application, a protocol that supports that
application is needed. For an email, SMTP should be
available. For a file transfer, FTP is needed.
01/31/2024 12
The OSI Model: Upper Layers
E-mail
Four major components:
• user agents
• mail servers
• simple mail transfer protocol: SMTP
•Mail access protocol: POP3 or IMAP, etc
User Agent
composing, editing, sending, retrieving and
reading mail messages
e.g., Eudora, Outlook, elm, Netscape Messenger
• outgoing & incoming messages stored on server
01/31/2024 13
The OSI Model: Upper Layers
E-mail Servers
mailbox contains incoming messages for user
message queue of outgoing (to be sent) mail
messages
SMTP protocol between mail servers to send email
messages
client: sending mail server
“server”: receiving mail server
POP3 protocol and IMAP retrieves email messages
01/31/2024 14
The OSI Model: Upper Layers
SMTP – Simple Mail Transfer Protocol
• uses TCP to reliably transfer email message from client
to server:port 25
• direct transfer: sending server to receiving server
• three phases of transfer
handshaking (greeting)
transfer of messages
closure
• command/response interaction
commands: ASCII text
response: status code and phrase
01/31/2024 15
File Transfer Protocol (FTP)
FTP
user FTP FTP
file transfer
interface client server
user
at host local file
system remote file
system
• transfer file to/from remote host
• client/server model
client: side that initiates transfer (either
to/from remote)
server: remote host
• ftp server: port 21
01/31/2024 16
FTP
TCP control connection
• FTP client contacts FTP server at port 21
port 21, specifying TCP as transport (persistent)
protocol
• Client obtains authorization over
control connection
• Client browses remote directory by TCP data connection
port 20
sending commands over control (non-persistent)
connection.
• When server receives a command
for a file transfer, the server opens a
TCP data connection to client
• After transferring one file, server
closes data connection.
01/31/2024 17
The Domain Name System
01/31/2024 18
The Domain Name System
01/31/2024 20
DNS: Organization
01/31/2024 22
Top-Level Domain (TLD) servers
• These are responsible for top level domains
such as com, org, net, edu, gov, mil, and all
country top-level such as gh, uk, ng, jp.
• A company, Network Solutions LLC, maintains
the TLD servers for the com top-level domain.
• The company Educause maintains the TLD
servers for the edu top-level domain.
• About 1034 TLD servers
01/31/2024 23
The OSI Model
01/31/2024 25