当前位置:网站首页>Rip/ospf protocol notes sorting
Rip/ospf protocol notes sorting
2022-06-24 21:04:00 【Alone 631】
RIP : Routing information protocol
There are three versions RIPV1 RIPV2( stay IPV4 Use in ),RIPNG( stay IPV6 Use in )
Only route information is transmitted , Can't recognize
RIPV1: It is a classified distance vector routing protocol
RIPV2: It is a classless distance vector routing protocol
The routing information is exchanged by sending data packets ,request( request ) response ( Respond to )( Carry routing protocol );
Packet encapsulation is based on UDP send out , Port number 520(RIPNG 521), periodic send out , The periodic update time is 30 s ( variable ),RIPV2 Send route update address 224.0.0.9 ( RIPV1 Use 255.255.255.255);
RIPV1 Use broadcast to send messages ,RIPV2 Use multicast to send Information
RIPV2 Multicast address used —224.0.0.9, Multicast address switches will also flood , It's running PIPV2 The router of the protocol is put into the multicast
RIP The communication port used is UDP Of 520 port . Source ip And the target ip The ports used are 520 port
cost (metric) Calculation method : Routing information is forwarded every time it passes through the router ,metric Increase in value 1 , Maximum 15 ,16 Represents unreachable .
metric value (cost value Cost value ): measurements , Calculation of different routing methods metric The way of value It's different , The smaller the better .
metric--- measurements ( Cisco ) The smaller the value, the better Direct connection 0 static state 0
Direct connection 0
static state 60
Rip The priority for 100
Synchronization update problem Use asynchronous update mode ( Stagger the time )(25.5-30s)
Horizontal segmentation mechanism ( Suitable for all distance vector routing protocols )
Horizontal segmentation mechanism : A route received through an interface cannot be forwarded back through this route ( As long as it is a distance vector type, there are )
Cisco :update to update timer 30s 、 invalid Invalid timer 180(6 I haven't received it for times ) Mark route may die , But don't delete 、 hold down Inhibit timer 180 flush Refresh timer 240 flush Refresh 240
Huawei : Update the timer 30s Invalid timer 180 Garbage collection timer 120
Horizontal segmentation mechanism with toxic reversal ( Suitable for all distance vector routing protocols ) The measure is :16( Unreachable )
Confirm retransmission Horizontal segmentation is broken
Enable RIP agreement :
Enable Rip And specify the process ID ( process ID Local significance only )

Choose the version :

Network notice : (network 1.0.0.0 1. Connect the interface on this router IP Address to 1 At the beginning, all interfaces are activated ( Activation means that you can send and receive RIP Related packets )2. Announce the route corresponding to the activated interface into RIP agreement )
![]()
see :

RIP Agreements are summarized manually : Purpose
Location : It is deployed on the outgoing interface of detailed routing ( Suggest : The outgoing interface of the router where the detailed route is located )
Default route generation method :
![]()
see :

In summary : Inaccurate aggregation can cause routing black holes , If the default route appears, it may lead to routing loop
Apparent position meter Avoid loops : Manually add a link to the summary router null 0( Empty interface ) Summary prevention loop
OSPF : Open shortest path first protocol ( Mutual agreement )
- Scope of use of the agreement :IGP(AS Inside )
- Characteristics of protocol algorithm : Link state routing protocol
- Whether the protocol passes the netmask : Pass the netmask ( Classless routing protocols )
- Protocol encapsulation : be based on IP Protocol encapsulation , The agreement number is 89
- OSPF : Open shortest path first protocol ( Confirm retransmission ) Cross layer encapsulation IP Transmission unreliable retransmission without acknowledgement Agreement No :89 ospf
One . OSPF characteristic
- OSPF It is a link state protocol
- OSPF The relay will be LSA ( Link status notification 6 Types LSA1 2 3 4 5 7)
- OSPF Update the way : Trigger update + 30 Periodic link state refresh in minutes Ospf Trigger update : Send messages when the network results change , If you don't send messages stably
4.OSPF Multicast update address :224.0.0.5 224.0.0.6
5.OSPF Support regional division
6.OSPF It is a protocol that consumes router resources
Two . OSPF Area
OSPF Support the division of regions : 1. Limit LSA The scope of the spread of 2. Reduce LSA The number of OSPF
Regional division : Based on interfaces ( link )
OSPF Identification of the area : 1. Decimal number 2. Be similar to IP Address A.B.C.D
Area classification :
1、 Backbone area (0 Area )
2、 Non backbone areas ( Not 0 Area )( May or may not exist but must be directly connected to the backbone area )
Regional design principles :
- OSPF There must be a unique backbone area in the network (area 0)( A single area may not be area 0 )
- If there are non backbone areas , The non backbone area must be directly connected with the backbone area
Sunflower network structure
OSPF Router role : Backbone router Non backbone routers
ABR: Area border router ( The router is in the backbone Router And non backbone Router Between )
ASBR: Autonomous system border router ( Routers are between different routing protocols )
3、 ... and . OSPF Neighbors and adjacency (OSPF Neighbor state mechanism )
neighbor (neighbour) two-way
Adjacency (Adjacency) full
Four .OSPF cost Value calculation
Cost= 100Mbps/ bandwidth ( expenses )
5、 ... and .OSPF To configure
Process ID : Process number , Local significance only
Router-id : Router identifier , Identify the device in OSPF Uniqueness in the network . Be similar to IP Address A.B.C.D( If not, the protocol cannot be enabled )
Router-id Election method :
1. Manually assign the highest priority
2. All interfaces are returned to the election ring IP The largest address
3. Select all physical interfaces IP The largest address
Enable OSPF agreement : ( Enable OSPF And set the process number And manually specify router-id)
![]()
Enter an area :
![]()
Network Announce entry into the area :( Use anti mask later )
![]()
Network mask :32 Binary components , Continuous 1 And continuous 0 form , Successive 1 Corresponding network bit , Successive 0 Corresponding host bit 1.1.1.0 255.255.255.0
Unmask :1.1.1.0 0.0.0.255( Range ·) 32 It's binary , Successive 0 And continuous 1 form ,0 Stands for fixed position ,1 Represents variable bits ( Describe the scope )
see OSPF Three tables of the agreement :
see OSPF Neighborhood watch :

see OSPF agreement LSDB surface :LSDB surface ( Link state database : Store what you and your neighbors have learned LSA)

see OSPF route :

Restore the true netmask of the interface :

Default route generation method :
- When there are other default methods in this router
![]()
- If there is no other way , Can force

see :

边栏推荐
- Implement the redis simple client customized based on socket
- Freshman girls' nonsense programming is popular! Those who understand programming are tied with Q after reading
- 全上链哈希游戏dapp系统定制(方案设计)
- After a few years in the testing industry, do you still know a little?
- Sequential stack traversal binary tree
- 传统的IO存在什么问题?为什么引入零拷贝的?
- 微信小程序中使用vant组件
- Haitai Advanced Technology | application of privacy computing technology in medical data protection
- I just purchased a MySQL database and prompted that there are already instances. The console login instance needs to provide a database account. How do I know the database account.
- JMeter installation plug-in, adding [email protected] -Perfmon metric collector listener steps
猜你喜欢

"Super point" in "Meng Hua Lu", is the goose wronged?
浅谈MySql update会锁定哪些范围的数据

What does virtualization mean? What technologies are included? What is the difference with private cloud?
Talking about the range of data that MySQL update will lock

云计算发展的 4 个阶段,终于有人讲明白了

Combination mode -- stock speculation has been cut into leeks? Come and try this investment strategy!

Dongyuhui is not enough to bring goods to "rescue" live broadcast

The latest simulated question bank and answers of the eight members (Electrical constructors) of Sichuan architecture in 2022

Bridging mode -- law firm

Set up your own website (14)
随机推荐
物联网?快来看 Arduino 上云啦
List set Introduction & common methods
伯克利、MIT、剑桥、DeepMind等业内大佬线上讲座:迈向安全可靠可控的AI
Limit summary (under update)
图像PANR
"Ningwang" was sold and bought at the same time, and Hillhouse capital has cashed in billions by "selling high and absorbing low"
Freshman girls' nonsense programming is popular! Those who understand programming are tied with Q after reading
Bytebase joins Alibaba cloud polardb open source database community
Background operation retry gave up; KeeperErrorCode = ConnectionLoss
Mr. Hu Bo, CIO of weiduomei, a scientific innovator: digitalization is a bloodless revolution, and the correct answer lies in the field of business
[multi thread performance tuning] multi thread lock optimization (Part 1): optimization method of synchronized synchronization lock
Difference between map and object
Mapstacks: data normalization and layered color layer loading
Microsoft Certification (dynamic 365) test
DX12引擎开发课程进度-这个课程到底讲到哪里了
Leetcode (146) - LRU cache
Bridging mode -- law firm
Tool composition in JMeter
Nifi quick installation (stand-alone / cluster)
虚拟化是什么意思?包含哪些技术?与私有云有什么区别?