Application Layer protocols- OSI Model Layers

sandhyakiran10 22 views 39 slides Oct 18, 2024
Slide 1
Slide 1 of 39
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39

About This Presentation

Application layer design, protocols


Slide Content

APPLICATIONLAYER
ShashikantV. 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 MODELBLOCKDIAGRAM
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

APPLICATIONPROTOCOLDESIGN
Thinkofdifferentpeople/teams,workingontheclientandserver
programs.
–Differentprogramminglanguages.
–Diversehardware,operatingsystems.
Beunambiguous,precise.
–Considerpotentialerrorconditions.
Allowforfutureextensions.
–Leaveroomforadditionaldata,meta-data.
Donotreplicateservicesprovidedbylowerlayerprotocols
–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

APPLICATIONLAYERPROTOCOLS
Anapplicationlayerprotocoldefineshowanapplicationprocesses
(clientsandservers),runningondifferentendsystems,pass
messagestoeachother.
Inparticular,anapplicationlayerprotocoldefines:
–Thetypesofmessages,e.g.,requestmessagesandresponse
messages.
–Thesyntaxofthevariousmessagetypes,i.e.,thefieldsinthe
messageand
howthefieldsaredelineated.
–Thesemanticsofthefields,i.e.,themeaningoftheinformationthat
the
fieldissupposedtocontain;
–Rulesfordeterminingwhenandhowaprocesssendsmessages
andrespondstomessages.
9
Application-Layer Protocols

CONTINUE..
ManyInternetapplication-layerprotocolsarefullyspecifiedin
Request.
ForCommentsdocuments(RFCs)andarethereforeinthepublic
domain.
–Forexample,theHTTP1.1specificationisincludedinRFC2068,
whichwas
finalizedandmadepublicJanuary1997.
–Ifabrowser(HTTPclient)developerfollowstherulesoftheHTTP
1.1RFC,
thebrowserwillbeabletoretrieveWebpagesfromanyWebserver
thathasalsohasfollowedtherulesoftheHTTP1.1RFC.
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
HypertextTransferProtocolisusedtotransferfilesthatmakeup
thewebpagesoftheWorldWideWeb.
HTTP:TCPport80.
WasoriginallydevelopedtopublishandretrieveHTMLpages.
usedfordistributed,collaborativeinformationsystems.
HTTPisusedacrosstheworldwidewebfordatatransferandisone
ofthemostusedapplicationprotocols.
HTTPspecifiesarequest/responseprotocol.
Whenaclient,typicallyawebbrowser,sendsarequestmessageto
aserver,theHTTPprotocoldefinesthemessagetypestheclient
usestorequestthewebpageandthemessagetypestheserver
usestorespond.
Thethreecommonmessagetypesare:
oGET
oPOST
oPUT
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:
IPAddressesaregreatforcomputers
–IPaddressincludesinformationusedforrouting.
IPaddressesaretoughforhumanstoremember.
IPaddressesareimpossibletoguess.
–everguessedatthenameofaWWWsite?
TheDomainNameSystem:
Thedomainnamesystemisusuallyusedtotranslateahost
nameintoanIPaddress.
Domainnamescompriseahierarchysothatnamesareunique,
yeteasytoremember.
14
Application-Layer Protocols

CONTINUE..
DNS Hierarchy
educom org jp
rpialbany
15
Application-Layer Protocols

CONTINUE..
Host name structure:
•Eachhostnameismadeupofasequenceoflabelsseparatedby
periods.
–Eachlabelcanbeupto63characters
–Thetotalnamecanbeatmost255characters.
•Examples:
–whitehouse.gov
–barney.the.purple.dinosaur.com
–monica.cs.rpi.edu
DomainName
•Thedomainnameforahostisthesequenceoflabelsthatleadfrom
thehost(leafnodeinthenamingtree)tothetopoftheworldwide
namingtree.
•Adomainisasubtreeoftheworldwidenamingtree.
16
Application-Layer Protocols

CONTINUE..
Top level domains:
•edu,gov,com,net,org,mil,…
•Countrieseachhaveatopleveldomain(2letterdomainname).
•Newtopleveldomainsinclude:
.aero.biz.coop.info.name.pro
DNS Organization
•Distributed Database
–Theorganizationthatownsadomainnameisresponsiblefor
runningaDNSserverthatcanprovidethemappingbetween
hostnameswithinthedomaintoIPaddresses.
–So-somemachinerunbyRPIisresponsibleforeverythingwithin
therpi.edudomain.
17
Application-Layer Protocols

CONTINUE..
DNS Clients:
•ADNSclientiscalledaresolver.
•AcalltogetByName(host)ishandledbyaresolver(typicallypartof
theclient).
•MostUnixworkstationshavethefile/etc/resolv.confthatcontains
thelocaldomainandtheaddressesofDNSserversforthatdomain.
Nslookup:
•nslookupisaninteractiveresolverthatallowstheuserto
communicatedirectlywithaDNSserver.
•nslookupisusuallyavailableonUnixworkstations.
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.
oDNS Message Format:
19
Application-Layer Protocols

CONTINUE..
DNS Message Header:
20
Application-Layer Protocols

3. FTP
promotesharingoffiles.
encourageindirectuseofremotecomputers.
shielduserfromvariationsinfilestorage.
transferdatareliablyandefficiently.
“FTP,althoughusabledirectlybyauserataterminal,isdesigned
mainlyforusebyprograms”.
Tosuccessfullytransferfiles,FTPrequirestwoconnectionsbetween
theclientandtheserver:oneforcommandsandreplies,andthe
otherfortheactualfiletransfer.
TheclientestablishesthefirstconnectiontotheserveronTCPport
21.Thisconnectionisusedforcontroltraffic,consistingofclient
commandsandserverreplies.
TheclientestablishesthesecondconnectiontotheserveroverTCP
port20.Thisconnectionisfortheactualfiletransferandiscreated
everytimeafileistransferred.
21
Application-Layer Protocols

CONTINUE..
Theclientcandownload(pull)afilefromtheserverorupload(push)
afiletotheserver.
FTPProcess
22
Application-Layer Protocols

4. TELNET
TELNETisaprotocolthatprovides“ageneral,bi-directional,eight-bit
byteorientedcommunicationsfacility”.
telnetisaprogramthatsupportstheTELNETprotocoloverTCP.
ManyapplicationprotocolsarebuiltupontheTELNETprotocol.
TELNETservice:
23
Application-Layer Protocols

CONTINUE..
The TELNET Protocol
oTCP connection
odata and control over the same connection.
oNetwork Virtual Terminal
onegotiated options
24
Application-Layer Protocols

CONTINUE..
Network Virtual Terminal
ointermediaterepresentationofagenericterminal.
oprovidesastandardlanguageforcommunicationofterminalcontrol
functions.
25
Application-Layer Protocols

CONTINUE..
Negotiated Options:
oAllNVTssupportaminimalsetofcapabilities.
oSometerminalshavemorecapabilitiesthantheminimalset.
oThe2endpointsnegotiateasetofmutuallyacceptableoptions
(characterset,echomode,etc).
oTheprotocolforrequestingoptionalfeaturesiswelldefinedand
includesrulesforeliminatingpossiblenegotiation“loops”.
oThesetofoptionsisnotpartoftheTELNETprotocol,sothatnew
terminalfeaturescanbeincorporatedwithoutchangingtheTELNET
protocol.
26
Application-Layer Protocols

CONTINUE..
Control Functions:
oTELNETincludessupportforaseriesofcontrolfunctionscommonly
supportedbyservers.
oThisprovidesauniformmechanismforcommunicationof(the
supported)controlfunctions.
oInterrupt Process (IP)
–suspend/abort process.
oAbort Output (AO)
–process can complete, but send no more output to user’s terminal.
oAre You There (AYT)
–check to see if system is still running.
oErase Character (EC)
–delete last character sent
–typically used to edit keyboard input.
oErase 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
Protocoloriginatedin1982(RFC821,JonPostel)
Standardmessageformat(RFC822,2822,D.Crocker)
Goal:Totransfermailreliablyandefficiently
30
Application-Layer Protocols

CONTINUE..
SMTPclientsandservershavetwo
maincomponents:
UserAgents–Preparesthe
message,enclosesitinanenvelope.
(ex.Thunderbird,Eudora)
MailTransferAgent–Transfersthe
mailacrosstheinternet(ex.
Sendmail,Exim)
Analogoustothepostalsystemin
manyways
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:
OnlyusesNVT7bitASCIIformat
Howtorepresentotherdatatypes?
Noauthenticationmechanisms
Messagesaresentun-encrypted
Susceptibletomisuse(Spamming,
fakingsenderaddress)
36
Application-Layer Protocols

SUMMARY
OSI model has 7 layers.
Inparticular,anapplicationlayerprotocoldefines:
–Thetypesofmessages,e.g.,requestmessagesandresponse
messages.
Applicationlayerhas6protocols:
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…!!!
Tags