当前位置:网站首页>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 :

边栏推荐
- Basic concepts and definitions of Graphs
- How to enhance influence
- Coinbase will launch the first encryption derivative for individual investors
- Combination mode -- stock speculation has been cut into leeks? Come and try this investment strategy!
- Basic properties and ergodicity of binary tree
- Vant component used in wechat applet
- maptalks:数据归一化处理与分层设色图层加载
- Map跟object 的区别
- Postman assertion
- Batch capitalization of MySQL table names
猜你喜欢

Camera rental management system based on qt+mysql

Stackoverflow annual report 2022: what are developers' favorite databases?

Image panr

Basic operation of sequence table

Builder mode -- Master asked me to refine pills

Basic properties and ergodicity of binary tree

Freshman girls' nonsense programming is popular! Those who understand programming are tied with Q after reading

使用gorm查询数据库时reflect: reflect.flag.mustBeAssignable using unaddressable value

Common data model (updating)

yeb_ Back first day
随机推荐
Why do we always "give up halfway"?
顺序栈遍历二叉树
物联网?快来看 Arduino 上云啦
After 5 months' test, it took 15K to come for an interview. When I asked, it was not worth even 5K. It was really
I feel that I am bald again when I help my children with their homework. I feel pity for my parents all over the world
Tool composition in JMeter
A/b test helps the growth of game business
Combination mode -- stock speculation has been cut into leeks? Come and try this investment strategy!
二叉树的基本性质与遍历
Variable setting in postman
Second understanding permutation and combination
Limit summary (under update)
Background of master data construction
Berkeley, MIT, Cambridge, deepmind et d'autres grandes conférences en ligne: vers une IA sûre, fiable et contrôlable
How to enhance influence
Mr. Hu Bo, CIO of weiduomei, a scientific innovator: digitalization is a bloodless revolution, and the correct answer lies in the field of business
Leetcode(455)——分发饼干
主数据建设的背景
等保备案是等保测评吗?两者是什么关系?
What are the problems with traditional IO? Why is zero copy introduced?