当前位置:网站首页>路由信息协议——RIP
路由信息协议——RIP
2022-07-07 05:48:00 【Word_Smith_】
路由信息协议其中涉及一个重要的算法,贝尔曼-福特算法。
与选路有关的关键点是开销值,注意:不同路由协议之间比较开销值是没有意义的,这是因为不同协议的评判标准不一样。
RIP是以跳数(经过路由器转发数)作为开销的评判标准,RIP的工作半径为15跳,如果一条路由开销值达到16跳时,则将认定目标网段不可达。
Bellman - Ford算法
RIP在传递路由条目信息的时候,只需要传递两个参数:1.目标网段信息 2.开销值cost,剩下的东西不需要传,是因为那些信息就是靠贝尔曼-福特算法计算出来的。
贝尔曼-福特算法根据不同的情况由以下四种不同的处理办法,如下:
1、R2将2.0网段的路由信息发送给R1,但是,R1本地并没有到达2.0网 段的路由信息。则R1将
该路由信息刷新到本地的路由表中。
2、R2将2.0网段的路由信息发给R1,但是,R1本地存在到达2.0网段的路由信息,并且,下一跳
也是R2。则R1将R2发来的路由信息刷新到本地的路由表中。
3、R2将2.0网段的路由信息发给R1,但是,R1本地存在到达2.0网段的路由信息,并且,下一跳
不是R2。则比较开销值,如果,本地的开销值大于R2发来的开销值,则R1将R2发来的刷新到本地
的路由表中。
4、R2将2.0网段的路由信息发给R1,但是,R1本地存在到达2.0网段的路由信息,并且,下一跳
不是R2。则比较开销值,如果,本地的开销值小于R2发来的开销值,则R1将不刷新。
注意:RIP的默认优先级是100
RIP的版本
RIP一共有三个版本,分别是RIPV1(IPV4)、RIPV2(IPV4)、RIPNG(IPV6)
RIPV1和RIPV2的区别:
1、RIPV1是有类别的路由协议,RIPV2无类别的路由协
2、RIPV1不支持手工认证,RIPV2支持手工认证
3、RIPV1是以广播的形式传递路由信息,而RIPV2是以组播的形式传递路由信息。
RIP的基本配置
1,启动RIP进程
[r1]rip 1
[r1-rip-1]
2,选择版本
[r1-rip-1]version 2
3,宣告
要求:1,所有直连网段都需要宣告;2,必须按照主类进行宣告
[r1-rip-1]network 1.0.0.0
作用:1,激活接口; --- 只有激活的接口才能收发RIP的数据
2,发布路由; --- 只有激活的接口对应的直连网段的路由信息才能发布出去
沉默接口 --- 配置成沉默接口的接口将只接受不发送RIP的数据包。
[r1-rip-1]silent-interface GigabitEthernet 0/0/2
RIPV1和RIPV2的数据包结构 --- 一个数据包中最多可以携带25条路由
条目,如果存在认证,则将占用一条路由条目的空间,则他将只能携
带24条路由条目。
COMMAND --- 标志着RIP数据包的类型
1 --- request
2 --- response
Version --- 标志着RIP协议的版本
1 --- RIPV1
2 --- RIPV2
路由条目信息
地址族标识符 --- 2 --- IP地址族
目标网段信息
开销值
RIPV2中独有的
路由标记 --- 在路由条目上添加标记,方便后续流量的抓取。默认标记为0。
掩码信息
下一跳 --- 主要为了应对选路不佳的场景,当出现选路不佳的场景时,可以在下一跳字段中写入最
佳的下一跳,而不再使用算法算出来的下一跳。如果是正常情况,则下一跳字段使用0.0.0.0填充。
由于不同的路由协议的运行机理各不相同,并且对路由的理解也不同,所以,不同的路由协议之间
存在信息隔离。所以,我们需要在协议的边界设备上(同时运行两种协议)执行重发布操作 --- 让
路由器将一种路由协议按照另一种路由协议的规则发送出去。
[r4-rip-1]import-route static
[r3-GigabitEthernet0/0/0]rip version 2 --- 在接口上配置,让接口按照对应版本的规则来收发RIP的
数据,实现RIPV1和RIPV2版本兼容。
边栏推荐
- Golang compilation constraint / conditional compilation (/ / +build < tags>)
- Composer change domestic image
- Go语言中,函数是一种类型
- grpc、oauth2、openssl、双向认证、单向认证等专栏文章目录
- Openvscode cloud ide joins rainbow integrated development system
- Automatic upgrading of database structure in rainbow
- 说一个软件创业项目,有谁愿意投资的吗?
- Implementation of navigation bar at the bottom of applet
- [Chongqing Guangdong education] accounting reference materials of Nanjing University of Information Engineering
- Splunk子查询模糊匹配csv中字段值为*
猜你喜欢
Open3d ISS key points
登山小分队(dfs)
opencv学习笔记二——图像基本操作
GFS distributed file system
AVL balanced binary search tree
Automatic upgrading of database structure in rainbow
Rainbow 5.7.1 supports docking with multiple public clouds and clusters for abnormal alarms
下载和安装orcale database11.2.0.4
使用BiSeNet实现自己的数据集
Implement your own dataset using bisenet
随机推荐
National standard gb28181 protocol video platform easygbs adds streaming timeout configuration
POJ - 3784 Running Median(对顶堆)
XCiT学习笔记
Grpc, oauth2, OpenSSL, two-way authentication, one-way authentication and other column directories
打通法律服务群众“最后一公里”,方正璞华劳动人事法律自助咨询服务平台频获“点赞”
21 general principles of wiring in circuit board design_ Provided by Chengdu circuit board design
Use of any superclass and generic extension function in kotlin
One click deployment of highly available emqx clusters in rainbow
Detailed explanation of apply, also, let, run functions and principle analysis of internal source code in kotlin
测试踩坑 - 当已有接口(或数据库表中)新增字段时,都需要注意哪些测试点?
Implement your own dataset using bisenet
POJ - 3784 running medium
[machine learning] watermelon book data set_ data sharing
[Chongqing Guangdong education] accounting reference materials of Nanjing University of Information Engineering
Splunk子查询模糊匹配csv中字段值为*
2-3查找樹
How to understand distributed architecture and micro service architecture
GFS distributed file system
A single game with goods increased by 100000, and the rural anchor sold men's clothes on top of the list?
Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster