File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -271,21 +271,19 @@ TCP的拥塞控制采用了四种算法,即 **慢开始** 、 **拥塞避免**
271271
272272![ 状态码] ( https://user-gold-cdn.xitu.io/2018/4/19/162db5e985aabdbe?imageView2/0/w/1280/h/960/format/webp/ignore-error/1 )
273273
274- ** 一个网页从请求到最终显示的完整过程一般可以分为如下7个步骤: **
274+ 总体来说分为以下几个过程:
275275
276- (1)在浏览器中输入网址;
276+ 1 . DNS解析
277+ 2 . TCP连接
278+ 3 . 发送HTTP请求
279+ 4 . 服务器处理请求并返回HTTP报文
280+ 5 . 浏览器解析渲染页面
281+ 6 . 连接结束
277282
278- (2)发送至DNS服务器并获得域名对应的WEB服务器IP地址;
283+ 具体可以参考下面这篇文章:
279284
280- (3)与WEB服务器建立TCP连接;
285+ - [ https://segmentfault.com/a/1190000006879700 ] ( https://segmentfault.com/a/1190000006879700 )
281286
282- (4)浏览器向WEB服务器发送相应的HTTP请求;
283-
284- (5)WEB服务器响应请求并返回指定URL的数据,或错误信息,如果设定重定向,则重定向到新的URL地址;
285-
286- (6)浏览器下载数据后解析HTML源文件,解析的过程中实现对页面的排版,解析完成后在浏览器中显示基础页面;
287-
288- (7)分析页面中的超链接并显示在当前页面,重复以上过程直至无超链接需要发送,完成全部数据显示。
289287
290288
291289
You can’t perform that action at this time.
0 commit comments