当前位置:网站首页>Ospfb notes - five messages [ultra detailed] [Hello message, DD message, LSR message, LSU message, lsack message]
Ospfb notes - five messages [ultra detailed] [Hello message, DD message, LSR message, LSU message, lsack message]
2022-07-01 04:06:00 【Purer than pure passers-by】
Catalog
DD message [ Database description message ]
We have learned from the above ospf Message header of 【 link :OSPF Header message
https://blog.csdn.net/weixin_58757687/article/details/122896057】, It is worth noting that : all ospf Messages carry this ospf Head .
The topology of this experiment is as follows :

Once the interface is turned on ospf Interface 【 example :R1 On network192.168.1.0 It opens. R1 Of G0/0/0 Interface ospf function 】 Start periodic release Hello message , Used to find neighbors on the direct link . The interface of the router receives from other routers Hello When the message
Hello message
Hello The message has two functions :1. Used to find neighbors . 2. Maintaining neighborhood relations .
Now grab just one Hello Message to understand Hello message The format of :

Subnet mask : This field is for sending the Hello Interface subnet mask of the message , Two routers directly connected to Ethernet 【 Such as two directly connected routers 】 The subnet mask must be the same to establish a neighbor , Otherwise, ignore the Hello message .
Hello interval :Hello Flooding period of message .
optional : altogether 8 position , Each bit represents the sending of the Hello A feature or feature supported by a router .
Router priority : It's also called DR priority , The default value is 1【 The higher priority is DR, Next is BDR】. It can be done by 【 [Huawei-GigabitEthernet0/0/0] ospf dr-priority 0~255 】 To modify the priority . Be careful : When the priority is set to 0 when , This port will not participate in DB and BDR The election .
Router failure time : The neighbor router is set to Down[ invalid ] Waiting time before , The default is Hello Spaced 4 times .
DR The interface of IP: In this network DR Interface IP, If 0.0.0.0 It means there is no DR or DR Not elected .
BDR The interface of IP: In this network BDR Interface IP, If 0.0.0.0 It means there is no BDR or BDR Not elected .
neighbor Router-ID: The router has found all Effective neighbors [ That is, neighbors who have established neighborhood relations with each other { At this time, the lowest position 2-way state }, About ospf Subsequent status updates will be introduced in detail .]
DD message [ Database description message ]
DD The message can have one or more , basis LSA To determine the number of .
LSA: Link status notification , stay ospf Is used to describe your own interface status ,cost[ It's also called : measurements 、 expenses ], Neighbor relation message .
DD The message describes LSDB[ Link state database , What is stored is all LSA Information ] Of LSA Header information rather than complete LSA.
Now grab a random DD message :

Maximum transmission unit : With bit In units of , Controlling the same message requires fragment transmission 【 Default is 0】.
optional : The router supports ospf Function or characteristic .
I position : If the bit is 1 It means that we should DD Messages are used for negotiation Mater/Slave[ Lord / from ]{ link :DD In the message [ Lord / from ] Router election
https://blog.csdn.net/weixin_58757687/article/details/122951880}. by 0 It means that the election has been completed .
M position : If there is still DD The message is 1, If it's the last one DD The message is 0.
MS position : If it is the main route, it is 1, The slave route is 0.
DD Serial number : This field is used to guarantee DD Order in message transmission . To protect DD Effectiveness of message transmission process ,DD The message will be sent by Mater{ Main route } To transmit to Slave{ From routing }, also DD The sequence is determined by the master route . The whole process is like this : First of all Hello Packet discovery and neighbor relationship with neighboring routes , Re release Empty DD The message is used for election Mater/Slave[ here DD Serial numbers can be different ], The election is over Mater/Slave after Release with LSA Of DD message [ here DD The serial number of the message is from Mater decision ,Slave Can only be used Mater The serial number sent is used as its own serial number to issue the serial number with LSA Of DD Send a message to Mater Router , also Slave The router receives the next message from Mater It's from DD The message will be released again DD Send a message to Mater.]
LSA Head : Used to describe the link state database LSA Head , There can be one or more .
LSR message
LSR【 Link status request message 】: Used to request complete LSA{ Be careful : Only ask for what you don't have LSA}.

Link state type : Common are 7 The two types are :type-1 Router LSA ,type=2 Network LSA ,type-3 Network Summary LSA , type-4 ASBR Summary LSA, type-5 AS External LSA, type-6 Group Membership LSA,type -7 NSSA LSA. # Subsequent updates , If updated, I will put the link on the top of the comment area .
Link status identification :LSA identification . # Subsequent updates , If updated, I will put the link on the top of the comment area .
Notification routing : Describe the generation of this LSR The router Router-ID.
LSU message
LSU The message contains complete LSA Information , To reply to LSR message . And when the router perceives that the network has changed, it will also flood LSU. stay MA[ Multiple access to the network ,MA link :MA Network and two OSPF Multicast address
https://blog.csdn.net/weixin_58757687/article/details/122951880]
Be careful : Not DR/BDR The router LSU The message is sent to 224.0.0.6 Address of the , and DR After receiving this message, it will be sent to 224.0.0.5[ be-all OSPF Router ]. This will greatly reduce the network expenses , It is conducive to the optimization of the network .
LSU The message is as follows :

# LSA The message will be introduced in detail later , The update will be posted in the comment area .
LSAck message
LSAck: Link status acknowledgement message , Used to confirm LSU message . In order to protect every LSA Can be up to , need LSAck Come on, what you receive every day LSA Confirm .

LSAck What is included is what is to be confirmed LSA Header information { Every LSA The length of the head is 20byte}.
# All the links included in this article are original , If you quote or reprint this article, you need to indicate the source :[email protected] More pure than pure passers-by
边栏推荐
- LeetCode 1828. Count the number of points in a circle
- Redis(七)优化建议
- 使用WinMTR软件简单分析跟踪检测网络路由情况
- The programmer's girlfriend gave me a fatigue driving test
- Recommend the best product development process in the Internet industry!
- 浏览器顶部loading(来自知乎)
- 431. 将 N 叉树编码为二叉树 DFS
- 318. Maximum word length product
- JMeter学习笔记2-图形界面简单介绍
- 10. regular expression matching
猜你喜欢

MallBook:后疫情时代下,酒店企业如何破局?

【TA-霜狼_may-《百人计划》】1.3纹理的秘密

NFT: start NFT royalty journey with eip-2981

283. move zero

Network metering - application layer

Libevent Library Learning

采购数智化爆发在即,支出宝'3+2'体系助力企业打造核心竞争优势

[TA frost wolf \u may - "hundred people plan"] 2.1 color space

How keil displays Chinese annotations (simple with pictures)
![[send email with error] 535 error:authentication failed](/img/58/8cd22fed1557077994cd78fd29f596.png)
[send email with error] 535 error:authentication failed
随机推荐
[ta- frost wolf \u may- hundred people plan] 2.2 model and material space
283. move zero
Qt development experience tips 226-230
208. implement trie (prefix tree)
【发送邮件报错】535 Error:authentication failed
[EI search] important information conference of the 6th International Conference on materials engineering and advanced manufacturing technology (meamt 2022) in 2022 website: www.meamt Org meeting time
Coinbase in a bear market: losses, layoffs, stock price plunges
LeetCode 1399. Count the maximum number of groups
10. regular expression matching
Knowledge supplement: redis' basic data types and corresponding commands
PageObject模式解析及案例
[TA frost wolf _may - "hundred people plan"] 1.4 introduction to PC mobile phone graphics API
Browser top loading (from Zhihu)
206.反转链表
Its appearance makes competitors tremble. Interpretation of Sony vision-s 02 products
241. Design priorities for operational expressions
MFC window scroll bar usage
214. minimum palindrome string
基于Unet的环路滤波
【TA-霜狼_may-《百人计划》】1.2.1 向量基础