[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

We begin our examination of the application layer with one of the most ubiquitous application protocols: the Hypertext Transport Protocol. We will tear into the protocol's formats, the sequence of message transmissions, the different connection methods and lots of use case information.

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

Lesson Objectives

By the end of this lesson, the student will be able to:

  • describe the mission, scope, addressing mechanism and data types of the Application Layer.
  • explain the HTTP protocol, including message format, interaction model and connection management.
  • calculate response time for an HTTP request over nonpersistent, parallel or persistent connections, including the pipelined variant.
  • describe how web proxies work to cache HTTP responses, including how they ensure consistency.

Reading

  • KR Ch 2.1 - 2.2

Slides

Video

 


 

 

 

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

transport layer -> TCP or UDP

 

 

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

TCP:

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

UDP => directly send message

TCP => demand stability

 

 

 

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 


 

 

https://searchnetworking.techtarget.com/answer/How-are-TCP-IP-and-HTTP-related

 

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 


 

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 BNF => formal mechanism describe how the bit should be

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

CRLF => end of the line

 https://*.com/questions/1552749/difference-between-cr-lf-lf-and-cr-line-break-types

 

 

 

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

SP => space

 

 

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

connection close => fetching data finished

 

 

 

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

.............

 

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

Nonpersistent => primitive version => inefficient

 

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

What if by parallel??

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

eg. require four pictures => 4 pictures loading at the sam time => feel faster but actually slower

another issue with parallel TCP request:

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

 Better solution: keep the TCP connection open

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

  [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

proxy server saves cache for faster website visiting

classic caching problem: lead to consistency problem => how do you know there's no change in the remote server?

 

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

 [Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

 

 


 

https://zhuanlan.zhihu.com/p/60450391

 

[Computer Networking] {CMU14-740} Lecture 5: The Application Layer -- HTTP

 

上一篇:上海牙科医疗-法国德邻DIGISTELL可摘局部义齿3D CAD软件 Digistell V4.2-0.8&1-haso hl&ET199


下一篇:面试 | 卡掉不少人的一道腾讯算法面试题,高手来试试?