SlideShare a Scribd company logo
APPLICATION LAYER
Shashikant V. Athawale
Assistant Professor
Department of Computer Engineering,
AISSMS COE ,Pune
AGENDA
 OSI Model Block Diagram
 OSI Encapsulation Process
 Application Protocol Design
 Application Layer Protocols
1. HTTP(Hypertext Transfer Protocol)
2. DNS(Domain Name System)
3. FTP(File Transfer Protocol)
4. TELNET
5. DHCP(Dynamic Host Configuration Protocol)
6. SMTP(Simple Mail Transfer Protocol)
 Summary
 References
2
OSI MODEL BLOCK DIAGRAM
3
Application-Layer Protocols
AGENDA
 OSI Model Block Diagram
 OSI Encapsulation Process
 Application Protocol Design
 Application Layer Protocols
1. HTTP(Hypertext Transfer Protocol)
2. DNS(Domain Name System)
3. FTP(File Transfer Protocol)
4. TELNET
5. DHCP(Dynamic Host Configuration Protocol)
6. SMTP(Simple Mail Transfer Protocol)
 Summary
 References
4
OSI ENCAPSULATION PROCESS
5
Application-Layer Protocols
AGENDA
 OSI Model Block Diagram
 OSI Encapsulation Process
 Application Protocol Design
 Application Layer Protocols
1. HTTP(Hypertext Transfer Protocol)
2. DNS(Domain Name System)
3. FTP(File Transfer Protocol)
4. TELNET
5. DHCP(Dynamic Host Configuration Protocol)
6. SMTP(Simple Mail Transfer Protocol)
 Summary
 References
6
APPLICATION PROTOCOL DESIGN
 Think of different people/teams, working on the client and server
programs.
– Different programming languages.
– Diverse hardware, operating systems.
 Be unambiguous, precise.
– Consider potential error conditions.
 Allow for future extensions.
– Leave room for additional data, meta-data.
 Do not replicate services provided by lower layer protocols
– e.g., checksum 7
Application-Layer Protocols
AGENDA
 OSI Model Block Diagram
 OSI Encapsulation Process
 Application Protocol Design
 Application Layer Protocols
1. HTTP(Hypertext Transfer Protocol)
2. DNS(Domain Name System)
3. FTP(File Transfer Protocol)
4. TELNET
5. DHCP(Dynamic Host Configuration Protocol)
6. SMTP(Simple Mail Transfer Protocol)
 Summary
 References
8
APPLICATION LAYER PROTOCOLS
 An application layer protocol defines how an application processes
(clients and servers), running on different end systems, pass
messages to each other.
 In particular, an application layer protocol defines:
– The types of messages, e.g., request messages and response
messages.
– The syntax of the various message types, i.e., the fields in the
message and
 how the fields are delineated.
– The semantics of the fields, i.e., the meaning of the information that
the
 field is supposed to contain;
– Rules for determining when and how a process sends messages
and responds to messages. 9
Application-Layer Protocols
CONTINUE..
 Many Internet application-layer protocols are fully specified in
Request.
 For Comments documents (RFCs) and are therefore in the public
domain.
– For example, the HTTP 1.1 specification is included in RFC 2068,
which was
 finalized and made public January 1997.
– If a browser (HTTP client) developer follows the rules of the HTTP
1.1 RFC,
 the browser will be able to retrieve Web pages from any Web server
that has also has followed the rules of the HTTP 1.1 RFC.
10
Application-Layer Protocols
CONTINUE..
Application layer protocols as follows:
1. HTTP(Hypertext Transfer Protocol)
2. DNS(Domain Name System)
3. FTP(File Transfer Protocol)
4. TELNET
5. DHCP(Dynamic Host Configuration Protocol)
6. SMTP(Simple Mail Transfer Protocol)
11
Application-Layer Protocols
1. HTTP
 Hypertext Transfer Protocol is used to transfer files that make up
the web pages of the World Wide Web.
 HTTP: TCP port 80.
 Was originally developed to publish and retrieve HTML pages.
 used for distributed, collaborative information systems.
 HTTP is used across the world wide web for data transfer and is one
of the most used application protocols.
 HTTP specifies a request/response protocol.
 When a client, typically a web browser, sends a request message to
a server, the HTTP protocol defines the message types the client
uses to request the web page and the message types the server
uses to respond.
 The three common message types are:
o GET
o POST
o PUT
12
Application-Layer Protocols
CONTINUE..
 GET is a client request for data. A web browser sends the GET
message to request pages from a web server.
 POST and PUT are used to send messages that upload data to the
web server.
 HTTP protocol using GET.
13
Application-Layer Protocols
2. DNS
 HOSTNAMES:
 IP Addresses are great for computers
– IP address includes information used for routing.
 IP addresses are tough for humans to remember.
 IP addresses are impossible to guess.
– ever guessed at the name of a WWW site?
 The Domain Name System:
 The domain name system is usually used to translate a host
name into an IP address .
 Domain names comprise a hierarchy so that names are unique,
yet easy to remember.
14
Application-Layer Protocols
CONTINUE..
 DNS Hierarchy
edu com org jp
rpi albany
15
Application-Layer Protocols
CONTINUE..
 Host name structure:
• Each host name is made up of a sequence of labels separated by
periods.
– Each label can be up to 63 characters
– The total name can be at most 255characters.
• Examples:
– whitehouse.gov
– barney.the.purple.dinosaur.com
– monica.cs.rpi.edu
 Domain Name
• The domain name for a host is the sequence of labels that lead from
the host (leaf node in the naming tree) to the top of the worldwide
naming tree.
• A domain is a subtree of the world wide naming tree.
16
Application-Layer Protocols
CONTINUE..
 Top level domains:
• edu, gov, com, net, org, mil, …
• Countries each have a top level domain(2 letter domain name).
• New top level domains include:
.aero .biz .coop .info .name .pro
 DNS Organization
• Distributed Database
– The organization that owns a domain name is responsible for
running a DNS server that can provide the mapping between
hostnames within the domain to IP addresses.
– So - some machine run by RPI is responsible for everything within
the rpi.edu domain.
17
Application-Layer Protocols
CONTINUE..
 DNS Clients:
• A DNS client is called a resolver.
• A call to getByName(host)is handled by a resolver (typically part of
the client).
• Most Unix workstations have the file /etc/resolv.conf that contains
the local domain and the addresses of DNS servers for that domain.
 Nslookup:
• nslookup is an interactive resolver that allows the user to
communicate directly with a DNS server.
• nslookup is usually available on Unix workstations.
18
Application-Layer Protocols
CONTINUE..
 DNS Servers:
• Servers handle requests for their domain directly.
• Servers handle requests for other domains by contacting remote
DNS server(s).
• Servers cache external mappings.
o DNS Message Format:
19
Application-Layer Protocols
CONTINUE..
 DNS Message Header:
20
Application-Layer Protocols
3. FTP
 promote sharing of files.
 encourage indirect use of remote computers.
 shield user from variations in file storage.
 transfer data reliably and efficiently.
 “FTP, although usable directly by a user at a terminal, is designed
mainly for use by programs”.
 To successfully transfer files, FTP requires two connections between
the client and the server: one for commands and replies, and the
other for the actual file transfer.
 The client establishes the first connection to the server on TCP port
21. This connection is used for control traffic, consisting of client
commands and server replies.
 The client establishes the second connection to the server over TCP
port 20. This connection is for the actual file transfer and is created
every time a file is transferred.
21
Application-Layer Protocols
CONTINUE..
 The client can download (pull) a file from the server or upload (push)
a file to the server.
 FTP Process
22
Application-Layer Protocols
4. TELNET
 TELNET is a protocol that provides “a general, bi-directional, eight-bit
byte oriented communications facility”.
 telnet is a program that supports the TELNET protocol over TCP.
 Many application protocols are built upon the TELNET protocol.
 TELNET service:
23
Application-Layer Protocols
CONTINUE..
 The TELNET Protocol
o TCP connection
o data and control over the same connection.
o Network Virtual Terminal
o negotiated options
24
Application-Layer Protocols
CONTINUE..
 Network Virtual Terminal
o intermediate representation of a generic terminal.
o provides a standard language for communication of terminal control
functions.
25
Application-Layer Protocols
CONTINUE..
 Negotiated Options:
o All NVTs support a minimal set of capabilities.
o Some terminals have more capabilities than the minimal set.
o The 2 endpoints negotiate a set of mutually acceptable options
(character set, echo mode, etc).
o The protocol for requesting optional features is well defined and
includes rules for eliminating possible negotiation “loops”.
o The set of options is not part of the TELNET protocol, so that new
terminal features can be incorporated without changing the TELNET
protocol.
26
Application-Layer Protocols
CONTINUE..
 Control Functions:
o TELNET includes support for a series of control functions commonly
supported by servers.
o This provides a uniform mechanism for communication of (the
supported) control functions.
o Interrupt Process (IP)
– suspend/abort process.
o Abort Output (AO)
– process can complete, but send no more output to user’s terminal.
o Are You There (AYT)
– check to see if system is still running.
o Erase Character (EC)
– delete last character sent
– typically used to edit keyboard input.
o Erase Line (EL)
– delete all input in current line. 27
Application-Layer Protocols
5. DHCP
 DHCP enables clients on a network to obtain IP addresses and other
information from a DHCP server.
 DHCP allows a host to obtain an IP address dynamically when it
connects to the network.
 The DHCP server is contacted by sending a request, and an IP
address is requested.
 The DHCP server chooses an address from a configured range of
addresses called a pool and assigns it to the host client for a set
period.
 different ways of having DHCP servers arranged in next diagram
28
Application-Layer Protocols
CONTINUE..
29
Application-Layer Protocols
7. SMTP
 Protocol originated in 1982 (RFC821, Jon Postel)
 Standard message format (RFC822,2822, D. Crocker)
 Goal: To transfer mail reliably and efficiently
30
Application-Layer Protocols
CONTINUE..
 SMTP clients and servers have two
main components:
 User Agents – Prepares the
message, encloses it in an envelope.
(ex. Thunderbird, Eudora)
 Mail Transfer Agent – Transfers the
mail across the internet (ex.
Sendmail, Exim)
 Analogous to the postal system in
many ways
31
Application-Layer Protocols
CONTINUE..
 SMTP also allows the use of
Relays allowing other MTAs
to relay the mail.
 Mail Gateways are used to
relay mail prepared by a
protocol other than SMTP and
convert it to SMTP.
32
Application-Layer Protocols
CONTINUE..
 Connection establishment:
33
Application-Layer Protocols
CONTINUE..
 Message Progress:
34
Application-Layer Protocols
CONTINUE..
 Connection Termination:
35
TCP Connection Termination
Application-Layer Protocols
CONTINUE..
Limitations in SMTP:
 Only uses NVT 7 bit ASCII format
 How to represent other data types?
 No authentication mechanisms
 Messages are sent un-encrypted
 Susceptible to misuse (Spamming,
faking sender address)
36
Application-Layer Protocols
SUMMARY
 OSI model has 7 layers.
 In particular, an application layer protocol defines:
– The types of messages, e.g., request messages and response
messages.
 Application layer has 6 protocols:
1. HTTP(Hypertext Transfer Protocol)
2. DNS(Domain Name System)
3. FTP(File Transfer Protocol)
4. TELNET
5. DHCP(Dynamic Host Configuration Protocol)
6. SMTP(Simple Mail Transfer Protocol) 37
REFERENCES
Web Sites:
 http://www.faqs.org/rfcs/rfc821.html (RFC 821).
 http://www.faqs.org/rfcs/rfc2821.html (RFC 2821)
 http://www.tcpipguide.com/free/t_SMTPSpecialFeaturesCapa
bilitiesandExtensions.html
 http://cns.utoronto.ca/usg/technotes/smtp-intro.html
 http://computer.howstuffworks.com/email5.htm
Books:
 Programmer's Guide to Internet Mail by John Rhoton
 TCP/IP Illustrated Volume 1 by Richard Stevens
38
39
THANK YOU…!!!

More Related Content

Similar to Application Layer protocols- OSI Model Layers (20)

PPT
The Internet and World Wide Web
webhostingguy
 
PPTX
Ch4 Protocols.pptx
kebeAman
 
PPTX
File Transfer Protocol (FTP)
AxelXrest
 
PPT
Chapter2 Application
Diego Corrales
 
PPTX
6. Chapter_2_1_newversion1.pptxasasasdasdasda
UsamaMushtaq15
 
PPTX
CN UNIT V.pptx
VISWANATHAN R V
 
PPT
Sem 1 Ch 11
aqeelhaider74
 
PPTX
Unit 6 : Application Layer
Chandan Gupta Bhagat
 
PPTX
Avani
guest095022
 
PPTX
An Introduction to HTTP
Keerthana Krishnan
 
PPT
Application layer protocols
JUW Jinnah University for Women
 
DOCX
Tcp/Ip Model
MD. Naimur Rahman
 
PPTX
Web protocol.pptx
SindhuVelmukull
 
PDF
Web technology-guide
Srihari
 
PPT
Computer Networks
Shylesh BC
 
PPTX
Iso osi and tcp-ip reference models
bhavanatmithun
 
PDF
Unit 2 ppt-idc
hiya123jes
 
PPT
applicationapplicationapplicationapplication.ppt
DEEPAK948083
 
PPTX
A Presentation on Servers & Splunk
Avinash Kumar
 
PPT
Bhargava Presentation.ppt
EnumulaBhargava1
 
The Internet and World Wide Web
webhostingguy
 
Ch4 Protocols.pptx
kebeAman
 
File Transfer Protocol (FTP)
AxelXrest
 
Chapter2 Application
Diego Corrales
 
6. Chapter_2_1_newversion1.pptxasasasdasdasda
UsamaMushtaq15
 
CN UNIT V.pptx
VISWANATHAN R V
 
Sem 1 Ch 11
aqeelhaider74
 
Unit 6 : Application Layer
Chandan Gupta Bhagat
 
An Introduction to HTTP
Keerthana Krishnan
 
Application layer protocols
JUW Jinnah University for Women
 
Tcp/Ip Model
MD. Naimur Rahman
 
Web protocol.pptx
SindhuVelmukull
 
Web technology-guide
Srihari
 
Computer Networks
Shylesh BC
 
Iso osi and tcp-ip reference models
bhavanatmithun
 
Unit 2 ppt-idc
hiya123jes
 
applicationapplicationapplicationapplication.ppt
DEEPAK948083
 
A Presentation on Servers & Splunk
Avinash Kumar
 
Bhargava Presentation.ppt
EnumulaBhargava1
 

More from sandhyakiran10 (18)

PPT
email marketing in digital marketing platform
sandhyakiran10
 
PPTX
SEO_ Types_ and_ Ethics_Presentation.pptx
sandhyakiran10
 
PPTX
Google adwords and AdSense in digital Marketing
sandhyakiran10
 
PPTX
search engine optimisation techniques and types
sandhyakiran10
 
PPTX
content marketing in - digital marketing
sandhyakiran10
 
PPT
The five generatios of computers-history
sandhyakiran10
 
PPT
Cellular Networks - concepts, technology
sandhyakiran10
 
PPT
OSI Model - transport Layer protocols
sandhyakiran10
 
PPTX
IntroductionJava Programming - Math Class
sandhyakiran10
 
PPT
Data Communication and Computer Networks
sandhyakiran10
 
PPT
Chapter_1_Business_Information_Systems.ppt
sandhyakiran10
 
PPTX
8.-OBJECT-ORIENTED-PROGRAMMING-USING-JAVA-Multithreading.pptx
sandhyakiran10
 
PPTX
OSI model - physical layer,Transmission medium, switching mechanisms, multipl...
sandhyakiran10
 
PPT
java - Introduction , control structures
sandhyakiran10
 
PDF
Database Management system, database architecture unikkkkkkkkkkkkkkk
sandhyakiran10
 
PPTX
High level data link control and point to point protocol
sandhyakiran10
 
PPTX
Software Development Life Cycle (SDLC).pptx
sandhyakiran10
 
PPTX
Data Communication.pptx
sandhyakiran10
 
email marketing in digital marketing platform
sandhyakiran10
 
SEO_ Types_ and_ Ethics_Presentation.pptx
sandhyakiran10
 
Google adwords and AdSense in digital Marketing
sandhyakiran10
 
search engine optimisation techniques and types
sandhyakiran10
 
content marketing in - digital marketing
sandhyakiran10
 
The five generatios of computers-history
sandhyakiran10
 
Cellular Networks - concepts, technology
sandhyakiran10
 
OSI Model - transport Layer protocols
sandhyakiran10
 
IntroductionJava Programming - Math Class
sandhyakiran10
 
Data Communication and Computer Networks
sandhyakiran10
 
Chapter_1_Business_Information_Systems.ppt
sandhyakiran10
 
8.-OBJECT-ORIENTED-PROGRAMMING-USING-JAVA-Multithreading.pptx
sandhyakiran10
 
OSI model - physical layer,Transmission medium, switching mechanisms, multipl...
sandhyakiran10
 
java - Introduction , control structures
sandhyakiran10
 
Database Management system, database architecture unikkkkkkkkkkkkkkk
sandhyakiran10
 
High level data link control and point to point protocol
sandhyakiran10
 
Software Development Life Cycle (SDLC).pptx
sandhyakiran10
 
Data Communication.pptx
sandhyakiran10
 
Ad

Recently uploaded (20)

PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
PDF
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
PDF
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PPTX
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PPTX
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Ad

Application Layer protocols- OSI Model Layers

  • 1. APPLICATION LAYER Shashikant V. Athawale Assistant Professor Department of Computer Engineering, AISSMS COE ,Pune
  • 2. AGENDA  OSI Model Block Diagram  OSI Encapsulation Process  Application Protocol Design  Application Layer Protocols 1. HTTP(Hypertext Transfer Protocol) 2. DNS(Domain Name System) 3. FTP(File Transfer Protocol) 4. TELNET 5. DHCP(Dynamic Host Configuration Protocol) 6. SMTP(Simple Mail Transfer Protocol)  Summary  References 2
  • 3. OSI MODEL BLOCK DIAGRAM 3 Application-Layer Protocols
  • 4. AGENDA  OSI Model Block Diagram  OSI Encapsulation Process  Application Protocol Design  Application Layer Protocols 1. HTTP(Hypertext Transfer Protocol) 2. DNS(Domain Name System) 3. FTP(File Transfer Protocol) 4. TELNET 5. DHCP(Dynamic Host Configuration Protocol) 6. SMTP(Simple Mail Transfer Protocol)  Summary  References 4
  • 6. AGENDA  OSI Model Block Diagram  OSI Encapsulation Process  Application Protocol Design  Application Layer Protocols 1. HTTP(Hypertext Transfer Protocol) 2. DNS(Domain Name System) 3. FTP(File Transfer Protocol) 4. TELNET 5. DHCP(Dynamic Host Configuration Protocol) 6. SMTP(Simple Mail Transfer Protocol)  Summary  References 6
  • 7. APPLICATION PROTOCOL DESIGN  Think of different people/teams, working on the client and server programs. – Different programming languages. – Diverse hardware, operating systems.  Be unambiguous, precise. – Consider potential error conditions.  Allow for future extensions. – Leave room for additional data, meta-data.  Do not replicate services provided by lower layer protocols – e.g., checksum 7 Application-Layer Protocols
  • 8. AGENDA  OSI Model Block Diagram  OSI Encapsulation Process  Application Protocol Design  Application Layer Protocols 1. HTTP(Hypertext Transfer Protocol) 2. DNS(Domain Name System) 3. FTP(File Transfer Protocol) 4. TELNET 5. DHCP(Dynamic Host Configuration Protocol) 6. SMTP(Simple Mail Transfer Protocol)  Summary  References 8
  • 9. APPLICATION LAYER PROTOCOLS  An application layer protocol defines how an application processes (clients and servers), running on different end systems, pass messages to each other.  In particular, an application layer protocol defines: – The types of messages, e.g., request messages and response messages. – The syntax of the various message types, i.e., the fields in the message and  how the fields are delineated. – The semantics of the fields, i.e., the meaning of the information that the  field is supposed to contain; – Rules for determining when and how a process sends messages and responds to messages. 9 Application-Layer Protocols
  • 10. CONTINUE..  Many Internet application-layer protocols are fully specified in Request.  For Comments documents (RFCs) and are therefore in the public domain. – For example, the HTTP 1.1 specification is included in RFC 2068, which was  finalized and made public January 1997. – If a browser (HTTP client) developer follows the rules of the HTTP 1.1 RFC,  the browser will be able to retrieve Web pages from any Web server that has also has followed the rules of the HTTP 1.1 RFC. 10 Application-Layer Protocols
  • 11. CONTINUE.. Application layer protocols as follows: 1. HTTP(Hypertext Transfer Protocol) 2. DNS(Domain Name System) 3. FTP(File Transfer Protocol) 4. TELNET 5. DHCP(Dynamic Host Configuration Protocol) 6. SMTP(Simple Mail Transfer Protocol) 11 Application-Layer Protocols
  • 12. 1. HTTP  Hypertext Transfer Protocol is used to transfer files that make up the web pages of the World Wide Web.  HTTP: TCP port 80.  Was originally developed to publish and retrieve HTML pages.  used for distributed, collaborative information systems.  HTTP is used across the world wide web for data transfer and is one of the most used application protocols.  HTTP specifies a request/response protocol.  When a client, typically a web browser, sends a request message to a server, the HTTP protocol defines the message types the client uses to request the web page and the message types the server uses to respond.  The three common message types are: o GET o POST o PUT 12 Application-Layer Protocols
  • 13. CONTINUE..  GET is a client request for data. A web browser sends the GET message to request pages from a web server.  POST and PUT are used to send messages that upload data to the web server.  HTTP protocol using GET. 13 Application-Layer Protocols
  • 14. 2. DNS  HOSTNAMES:  IP Addresses are great for computers – IP address includes information used for routing.  IP addresses are tough for humans to remember.  IP addresses are impossible to guess. – ever guessed at the name of a WWW site?  The Domain Name System:  The domain name system is usually used to translate a host name into an IP address .  Domain names comprise a hierarchy so that names are unique, yet easy to remember. 14 Application-Layer Protocols
  • 15. CONTINUE..  DNS Hierarchy edu com org jp rpi albany 15 Application-Layer Protocols
  • 16. CONTINUE..  Host name structure: • Each host name is made up of a sequence of labels separated by periods. – Each label can be up to 63 characters – The total name can be at most 255characters. • Examples: – whitehouse.gov – barney.the.purple.dinosaur.com – monica.cs.rpi.edu  Domain Name • The domain name for a host is the sequence of labels that lead from the host (leaf node in the naming tree) to the top of the worldwide naming tree. • A domain is a subtree of the world wide naming tree. 16 Application-Layer Protocols
  • 17. CONTINUE..  Top level domains: • edu, gov, com, net, org, mil, … • Countries each have a top level domain(2 letter domain name). • New top level domains include: .aero .biz .coop .info .name .pro  DNS Organization • Distributed Database – The organization that owns a domain name is responsible for running a DNS server that can provide the mapping between hostnames within the domain to IP addresses. – So - some machine run by RPI is responsible for everything within the rpi.edu domain. 17 Application-Layer Protocols
  • 18. CONTINUE..  DNS Clients: • A DNS client is called a resolver. • A call to getByName(host)is handled by a resolver (typically part of the client). • Most Unix workstations have the file /etc/resolv.conf that contains the local domain and the addresses of DNS servers for that domain.  Nslookup: • nslookup is an interactive resolver that allows the user to communicate directly with a DNS server. • nslookup is usually available on Unix workstations. 18 Application-Layer Protocols
  • 19. CONTINUE..  DNS Servers: • Servers handle requests for their domain directly. • Servers handle requests for other domains by contacting remote DNS server(s). • Servers cache external mappings. o DNS Message Format: 19 Application-Layer Protocols
  • 20. CONTINUE..  DNS Message Header: 20 Application-Layer Protocols
  • 21. 3. FTP  promote sharing of files.  encourage indirect use of remote computers.  shield user from variations in file storage.  transfer data reliably and efficiently.  “FTP, although usable directly by a user at a terminal, is designed mainly for use by programs”.  To successfully transfer files, FTP requires two connections between the client and the server: one for commands and replies, and the other for the actual file transfer.  The client establishes the first connection to the server on TCP port 21. This connection is used for control traffic, consisting of client commands and server replies.  The client establishes the second connection to the server over TCP port 20. This connection is for the actual file transfer and is created every time a file is transferred. 21 Application-Layer Protocols
  • 22. CONTINUE..  The client can download (pull) a file from the server or upload (push) a file to the server.  FTP Process 22 Application-Layer Protocols
  • 23. 4. TELNET  TELNET is a protocol that provides “a general, bi-directional, eight-bit byte oriented communications facility”.  telnet is a program that supports the TELNET protocol over TCP.  Many application protocols are built upon the TELNET protocol.  TELNET service: 23 Application-Layer Protocols
  • 24. CONTINUE..  The TELNET Protocol o TCP connection o data and control over the same connection. o Network Virtual Terminal o negotiated options 24 Application-Layer Protocols
  • 25. CONTINUE..  Network Virtual Terminal o intermediate representation of a generic terminal. o provides a standard language for communication of terminal control functions. 25 Application-Layer Protocols
  • 26. CONTINUE..  Negotiated Options: o All NVTs support a minimal set of capabilities. o Some terminals have more capabilities than the minimal set. o The 2 endpoints negotiate a set of mutually acceptable options (character set, echo mode, etc). o The protocol for requesting optional features is well defined and includes rules for eliminating possible negotiation “loops”. o The set of options is not part of the TELNET protocol, so that new terminal features can be incorporated without changing the TELNET protocol. 26 Application-Layer Protocols
  • 27. CONTINUE..  Control Functions: o TELNET includes support for a series of control functions commonly supported by servers. o This provides a uniform mechanism for communication of (the supported) control functions. o Interrupt Process (IP) – suspend/abort process. o Abort Output (AO) – process can complete, but send no more output to user’s terminal. o Are You There (AYT) – check to see if system is still running. o Erase Character (EC) – delete last character sent – typically used to edit keyboard input. o Erase Line (EL) – delete all input in current line. 27 Application-Layer Protocols
  • 28. 5. DHCP  DHCP enables clients on a network to obtain IP addresses and other information from a DHCP server.  DHCP allows a host to obtain an IP address dynamically when it connects to the network.  The DHCP server is contacted by sending a request, and an IP address is requested.  The DHCP server chooses an address from a configured range of addresses called a pool and assigns it to the host client for a set period.  different ways of having DHCP servers arranged in next diagram 28 Application-Layer Protocols
  • 30. 7. SMTP  Protocol originated in 1982 (RFC821, Jon Postel)  Standard message format (RFC822,2822, D. Crocker)  Goal: To transfer mail reliably and efficiently 30 Application-Layer Protocols
  • 31. CONTINUE..  SMTP clients and servers have two main components:  User Agents – Prepares the message, encloses it in an envelope. (ex. Thunderbird, Eudora)  Mail Transfer Agent – Transfers the mail across the internet (ex. Sendmail, Exim)  Analogous to the postal system in many ways 31 Application-Layer Protocols
  • 32. CONTINUE..  SMTP also allows the use of Relays allowing other MTAs to relay the mail.  Mail Gateways are used to relay mail prepared by a protocol other than SMTP and convert it to SMTP. 32 Application-Layer Protocols
  • 35. CONTINUE..  Connection Termination: 35 TCP Connection Termination Application-Layer Protocols
  • 36. CONTINUE.. Limitations in SMTP:  Only uses NVT 7 bit ASCII format  How to represent other data types?  No authentication mechanisms  Messages are sent un-encrypted  Susceptible to misuse (Spamming, faking sender address) 36 Application-Layer Protocols
  • 37. SUMMARY  OSI model has 7 layers.  In particular, an application layer protocol defines: – The types of messages, e.g., request messages and response messages.  Application layer has 6 protocols: 1. HTTP(Hypertext Transfer Protocol) 2. DNS(Domain Name System) 3. FTP(File Transfer Protocol) 4. TELNET 5. DHCP(Dynamic Host Configuration Protocol) 6. SMTP(Simple Mail Transfer Protocol) 37
  • 38. REFERENCES Web Sites:  http://www.faqs.org/rfcs/rfc821.html (RFC 821).  http://www.faqs.org/rfcs/rfc2821.html (RFC 2821)  http://www.tcpipguide.com/free/t_SMTPSpecialFeaturesCapa bilitiesandExtensions.html  http://cns.utoronto.ca/usg/technotes/smtp-intro.html  http://computer.howstuffworks.com/email5.htm Books:  Programmer's Guide to Internet Mail by John Rhoton  TCP/IP Illustrated Volume 1 by Richard Stevens 38