CH2 Application Layer: Computer Networking: A Top Down Approach
CH2 Application Layer: Computer Networking: A Top Down Approach
Application Layer
clients:
communicate with server
client/server
may be intermittently
connected
may have dynamic IP
addresses
do not communicate directly
with each other
application application
socket controlled by
process process app developer
transport transport
network network controlled
link
by OS
link Internet
physical physical
application underlying
application layer protocol transport protocol
First, a review…
web page consists of objects
object can be HTML file, JPEG image, Java
applet, audio file,…
web page consists of base HTML-file which
includes several referenced objects
each object is addressable by a URL, e.g.,
www.someschool.edu/someDept/pic.gif
time
6. Steps 1-5 repeated for each of 10
jpeg objects
response time =
2RTT+ file transmission time time
time
~
~ entity body ~
~ body
URL method:
uses GET method
input is uploaded in URL
field of request line:
www.somesite.com/animalsearch?monkeys&banana
HTTP/1.0: HTTP/1.1:
GET
GET, POST, HEAD
POST
PUT
HEAD uploads file in entity
body to path specified
asks server to leave in URL field
requested object out of
response
DELETE
deletes file specified in
the URL field
ebay 8734
usual http request msg Amazon server
cookie file creates ID
usual http response
1678 for user create backend
ebay 8734
set-cookie: 1678 entry database
amazon 1678
usual http request msg
cookie: 1678 cookie- access
specific
usual http response msg action