





































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






































2: Application Layer 1
2: Application Layer 2
2: Application Layer 4
Applications and application-layer protocols
Application: communicating, distributed processes running in network hosts in “user space” exchange messages to implement app e.g., email, file transfer, the Web Application-layer protocols one “piece” of an app (web browser do more than speak HTTP) define messages exchanged by apps and actions taken user services provided by lower layer protocols
application transport network data link physical
application transport network data link physical
application transport network data link physical
2: Application Layer 5
Client-server paradigm
Typical network app has two
application transport network data link physical
application transport network data link physical
Server: Running first (always?) provides requested service to client e.g., Web server sends requested Web page, mail server delivers e-mail Client: initiates contact with server (usually “speaks” first) typically requests service from server, for Web, client is implemented in browser; for e-mail, in mail reader
request
reply
2: Application Layer 7
Credit: CAIDA (1999)
2: Application Layer 8
2: Application Layer 10
http request message: general format
2: Application Layer 11
2: Application Layer 13
Docsity.com
2: Application Layer 14
http message format: response
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 ...
status line (protocol status code status phrase)
header lines
data, e.g., requested html file
2: Application Layer 16
http example
www.someSchool.edu/someDepartment/home.index
1a. http client initiates TCP connection to http server (process) at www.someSchool.edu. Port 80 is default for http server.
1b. http server at host www.someSchool.edu waiting for TCP connection at port 80. “accepts” connection, notifying client
(contains text, references to 10 jpeg images)
2: Application Layer 17
http example (cont.)
http client receives response message containing html file, displays html. Parsing html file, finds 10 referenced jpeg objects
Steps 1-5 repeated for each of 10 jpeg objects 4. http server closes TCP connection.
2: Application Layer 19
server maintains no information about past client requests
Protocols that maintain “state” are complex! past history (state) must be maintained if server/client crashes, their views of “state” may be inconsistent, must be reconciled
2: Application Layer 20
Conditional GET
Goal: don’t send object if client has up-to-date stored (cached) version
client: specify date of cached copy in http request If-modified-since:
server: response contains no object if cached copy up- to-date: HTTP/1.0 304 Not Modified
http request msg If-modified-since:
object not modified
http request msg If-modified-since:
object modified