Skip to content

Commit

Permalink
comnet architec
Browse files Browse the repository at this point in the history
  • Loading branch information
wolverinn committed Nov 29, 2019
1 parent f13e43e commit 35c55b9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Computer Network.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 计算机网络
[toc]

### 什么是三次握手(three-way handshake)?

![三次握手](_v_images/20191129101827556_21212.png)
Expand Down Expand Up @@ -226,4 +226,15 @@ Cookie保存在客户端本地,客户端请求服务器时会将Cookie一起
3. TCP/IP链接建立起来后,浏览器向服务器发送HTTP请求;
4. 服务器接收到这个请求,并根据路径参数映射到特定的请求处理器进行处理,并将处理结果及相应的视图返回给浏览器;
5. 浏览器解析并渲染视图,若遇到对js文件、css文件及图片等静态资源的引用,则重复上述步骤并向服务器请求这些资源;
6. 浏览器根据其请求到的资源、数据渲染页面,最终向用户呈现一个完整的页面。
6. 浏览器根据其请求到的资源、数据渲染页面,最终向用户呈现一个完整的页面。

### HTTP请求有哪些常见状态码?

1. 2xx状态码:操作成功。200 OK
2. 3xx状态码:重定向。301 永久重定向;302暂时重定向
3. 4xx状态码:客户端错误。400 Bad Request;401 Unauthorized;403 Forbidden;404 Not Found;
4. 5xx状态码:服务端错误。500服务器内部错误;501服务不可用

### 计算机网络体系结构

![计算机网络体系结构](_v_images/20191129195451183_16713.png)
Binary file added _v_images/20191129195451183_16713.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 35c55b9

Please sign in to comment.