Skip to content

Commit

Permalink
RIP-应用层
Browse files Browse the repository at this point in the history
  • Loading branch information
wolverinn committed May 7, 2020
1 parent b24188d commit 7494bfc
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions Computer Network.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
* [Session与Cookie的区别?](#Session与Cookie的区别)
* [从输入网址到获得页面的过程 (越详细越好)?](#从输入网址到获得页面的过程-越详细越好)
* [HTTP请求有哪些常见状态码?](#HTTP请求有哪些常见状态码)
* [什么是RIP (距离矢量路由协议)?](#什么是RIP-Routing-Information-Protocol-距离矢量路由协议-算法是什么)
* [计算机网络体系结构](#计算机网络体系结构)
* 网络层协议
* [什么是RIP (距离矢量路由协议)?](#什么是RIP-Routing-Information-Protocol-距离矢量路由协议-算法是什么)
* [IP地址的分类?](#IP地址的分类)
* [什么叫划分子网?](#什么叫划分子网)
* [什么是ARP协议?](#什么是ARP协议-Address-Resolution-Protocol)
Expand Down Expand Up @@ -309,6 +309,20 @@ Cookie保存在客户端本地,客户端请求服务器时会将Cookie一起
3. 4xx状态码:客户端错误。400 Bad Request;401 Unauthorized;403 Forbidden;404 Not Found;
4. 5xx状态码:服务端错误。500服务器内部错误;501服务不可用

### 什么是RIP (Routing Information Protocol, 距离矢量路由协议)? 算法是什么?
每个路由器维护一张表,记录该路由器到其它网络的”跳数“,路由器到与其直接连接的网络的跳数是1,每多经过一个路由器跳数就加1;更新该表时和相邻路由器交换路由信息;路由器允许一个路径最多包含15个路由器,如果跳数为16,则不可达。交付数据报时优先选取距离最短的路径。

(PS:RIP是应用层协议:https://www.zhihu.com/question/19645407)

<details>
<summary>优缺点</summary>

- 实现简单,开销小
- 随着网络规模扩大开销也会增大;
- 最大距离为15,限制了网络的规模;
- 当网络出现故障时,要经过较长的时间才能将此信息传递到所有路由器
</details>

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

![计算机网络体系结构](_v_images/20191129195451183_16713.png)
Expand All @@ -332,18 +346,6 @@ Cookie保存在客户端本地,客户端请求服务器时会将Cookie一起
- 交换机数据链路层,根据MAC地址进行寻址
</details>

### 什么是RIP (Routing Information Protocol, 距离矢量路由协议)? 算法是什么?
每个路由器维护一张表,记录该路由器到其它网络的”跳数“,路由器到与其直接连接的网络的跳数是1,每多经过一个路由器跳数就加1;更新该表时和相邻路由器交换路由信息;路由器允许一个路径最多包含15个路由器,如果跳数为16,则不可达。交付数据报时优先选取距离最短的路径。

<details>
<summary>优缺点</summary>

- 实现简单,开销小
- 随着网络规模扩大开销也会增大;
- 最大距离为15,限制了网络的规模;
- 当网络出现故障时,要经过较长的时间才能将此信息传递到所有路由器
</details>

### IP地址的分类?

![IP address](_v_images/20191201085151639_2895.png)
Expand Down

0 comments on commit 7494bfc

Please sign in to comment.