[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.

 

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

 


 

 

 

 

 

 

transport layer -> TCP or UDP

 

 

 

TCP:

 

 

UDP => directly send message

TCP => demand stability

 

 

 

 

 


 

 

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

 

 

 


 

 

 

 

 

 

 

 

 

 

 

 BNF => formal mechanism describe how the bit should be

 

 

CRLF => end of the line

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

 

 

 

SP => space

 

 

 

 

 

 

 

 

connection close => fetching data finished

 

 

 

 

 

 

 

 

 

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

 

 

 

 

 

 

 

 

 

 

 

Nonpersistent => primitive version => inefficient

 

 

 

 

 

 

 

What if by parallel??

 

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

another issue with parallel TCP request:

 

 

 Better solution: keep the TCP connection open

 

 

 

 

 

 

 

 

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?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


 

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

 

 

转载于:https://www.cnblogs.com/ecoflex/p/10962439.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值