当前位置:网站首页>Routing information protocol rip
Routing information protocol rip
2022-07-07 08:43:00 【Word_ Smith_】
Routing information protocol involves an important algorithm , behrman - Ford algorithm .
The key point related to routing is the cost value , Be careful : It is meaningless to compare the cost values between different routing protocols , This is because different agreements have different criteria .
RIP Is based on the number of hops ( The number of forwarding through the router ) As the criterion of cost ,RIP The working radius of is 15 jump , If the cost of a route reaches 16 Jumping time , The target network segment will be deemed unreachable .
Bellman - Ford Algorithm
RIP When transmitting route entry information , Just pass two parameters :1. Target network segment information 2. Cost value cost, There is no need to pass the rest , Because that information depends on Behrman - Calculated by Ford algorithm .
behrman - According to different situations, Ford algorithm has the following four different processing methods , as follows :
1、R2 take 2.0 The routing information of the network segment is sent to R1, however ,R1 Local did not arrive 2.0 network Routing information of segment . be R1 take
The routing information is refreshed to the local routing table .
2、R2 take 2.0 The routing information of the network segment is sent to R1, however ,R1 Local presence arrives 2.0 Routing information of network segment , also , Next jump
It's also R2. be R1 take R2 The routing information sent is refreshed to the local routing table .
3、R2 take 2.0 The routing information of the network segment is sent to R1, however ,R1 Local presence arrives 2.0 Routing information of network segment , also , Next jump
No R2. Then compare the cost value , If , The local cost value is greater than R2 The cost value sent , be R1 take R2 Send the refresh to the local
In the routing table of .
4、R2 take 2.0 The routing information of the network segment is sent to R1, however ,R1 Local presence arrives 2.0 Routing information of network segment , also , Next jump
No R2. Then compare the cost value , If , The local cost value is less than R2 The cost value sent , be R1 Will not refresh .
Be careful :RIP The default priority for is 100
RIP Version of
RIP There are three versions , Namely RIPV1(IPV4)、RIPV2(IPV4)、RIPNG(IPV6)
RIPV1 and RIPV2 The difference between :
1、RIPV1 There are categories of routing protocols ,RIPV2 Classless Routing Protocol
2、RIPV1 Manual authentication is not supported ,RIPV2 Support manual authentication
3、RIPV1 It transmits routing information in the form of broadcast , and RIPV2 It transmits routing information in the form of multicast .
RIP Basic configuration
1, start-up RIP process
[r1]rip 1
[r1-rip-1]
2, Choose the version
[r1-rip-1]version 2
3, Declare
requirement :1, All direct network segments need to declare ;2, Must be declared according to the main class
[r1-rip-1]network 1.0.0.0
effect :1, Activate interface ; --- Only the active interface can send and receive RIP The data of
2, Publish route ; --- Only the routing information of the direct network segment corresponding to the activated interface can be published
Silent interface --- Interfaces configured as silent interfaces will only accept not send RIP Data packets of .
[r1-rip-1]silent-interface GigabitEthernet 0/0/2
RIPV1 and RIPV2 The packet structure of --- A packet can carry at most 25 Routes
entry , If certification exists , It will occupy the space of a route entry , Then he will only be able to carry
belt 24 Route entries .
COMMAND --- Mark the RIP The type of packet
1 --- request
2 --- response
Version --- Mark the RIP Version of protocol
1 --- RIPV1
2 --- RIPV2
Routing entry information
Address family identifier --- 2 --- IP Address family
Target network segment information
Cost value
RIPV2 Unique to
Routing tags --- Add a tag on the route entry , Facilitate the capture of subsequent traffic . The default flag is 0.
Mask information
Next jump --- Mainly to deal with the scene of poor route selection , When there is a scene of poor route selection , You can write the most in the next hop field
Jia's next jump , Instead of using the algorithm to calculate the next hop . If it's normal , Then the next hop field uses 0.0.0.0 fill .
Because the operation mechanism of different routing protocols is different , And the understanding of routing is also different , therefore , Between different routing protocols
There is information isolation . therefore , We need to be on the boundary equipment of the agreement ( Run both protocols at the same time ) Perform republishing --- Give Way
The router sends one routing protocol according to the rules of another routing protocol .
[r4-rip-1]import-route static
[r3-GigabitEthernet0/0/0]rip version 2 --- Configure... On the interface , Let the interface send and receive according to the rules of the corresponding version RIP Of
data , Realization RIPV1 and RIPV2 Version compatibility .
边栏推荐
- Greenplum6.x常用语句
- Quick sorting (detailed illustration of single way, double way, three way)
- [paper reading] icml2020: can autonomous vehicles identify, recover from, and adapt to distribution shifts?
- 归并排序和非比较排序
- Opencv learning notes II - basic image operations
- 2-3查找樹
- IP guard helps energy enterprises improve terminal anti disclosure measures to protect the security of confidential information
- Required String parameter ‘XXX‘ is not present
- 【微信小程序:缓存操作】
- 路由信息协议——RIP
猜你喜欢
Greenplum6.x重新初始化
FPGA knowledge accumulation [6]
Componentspace2022, assertions, protocols, bindings, and configuration files
In go language, function is a type
Through the "last mile" of legal services for the masses, fangzheng Puhua labor and personnel law self-service consulting service platform has been frequently "praised"
Merge sort and non comparison sort
Golang 编译约束/条件编译 ( // +build <tags> )
leetcode135. Distribute candy
如何在HarmonyOS应用中集成App Linking服务
Count sort (diagram)
随机推荐
Three series of BOM elements
Rainbow 5.7.1 supports docking with multiple public clouds and clusters for abnormal alarms
Go write a program that runs within a certain period of time
Tronapi-波场接口-源码无加密-可二开--附接口文档-基于ThinkPHP5封装-作者详细指导-2022年7月6日-新手快速上手-可无缝升级tp6版本
[hard core science popularization] working principle of dynamic loop monitoring system
Through the "last mile" of legal services for the masses, fangzheng Puhua labor and personnel law self-service consulting service platform has been frequently "praised"
idea里使用module项目的一个bug
調用華為遊戲多媒體服務的創建引擎接口返回錯誤碼1002,錯誤信息:the params is error
归并排序和非比较排序
如何在HarmonyOS应用中集成App Linking服务
grpc、oauth2、openssl、双向认证、单向认证等专栏文章目录
2-3查找樹
Redis summary
Implementation method of data platform landing
Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
Rsync remote synchronization
Leetcode 1984. Minimum difference in student scores
[Yugong series] February 2022 U3D full stack class 005 unity engine view
POJ - 3784 Running Median(对顶堆)
Snyk dependency security vulnerability scanning tool