What you call a "neighbor" relationship is actually an "adjacent relationship" When learning OSPF, you often say that routers form a "neighbor" relationship. In fact, this statement is inaccurate. Most people should express an "adjacent" relationship. Have you realized the difference between the two?
Although the difference between "neighbor" and "adjacent" is not that big in Chinese, they are two completely different words in English and have no connection at all:
In the OSPF world, they are quite different, and can be said to be two completely different states. Let's take a look at them together! Neighbor relations stop at "2-Way", adjacency relations include the entire process OSPF State Machine Friends who have bought my column should know that OSPF has 8 states when forming neighbor relationships, and different things will be done in each state. If you haven't bought it, you can refer to Section 4 of the column: Mastering OSPF's 8 neighbor states is half the battle for OSPF. As shown in the "2-Way" state in the figure above, it means that the two OSPF routers have established two-way communication and selected DR/BDR. At this point, we can say that a "neighbor" relationship has been formed between the routers. After two routers have a "neighbor" relationship, they must go through four states: ExStart, Exchange, Loading, and Full, and fully synchronize the LSDB before they can be called an "adjacency" relationship. That is to say, the "adjacency" relationship refers to the entire process of exchanging information between OSPF routers, while the "neighbor" relationship only requires two routers to enter the "2-way" state, and there is no need to exchange LSA information. Now you understand what I said at the beginning, why most people got it wrong! The "neighbor" relationship we usually talk about actually refers to the "adjacent" relationship that exchanges LSA information! So why is it enough to form a "neighbor" relationship between routers? This involves the content of DR/BDR! On the same LAN, all OSPF routers need to form an "adjacent" relationship with the DR/BDR Anyone who knows a little about OSPF will know about DR/BDR, which are concepts that emerged to save resources! For example, as shown in the figure below, if there is no DR/BDR, the four routers on the same LAN will have to form an "adjacent" relationship with each other, which is a huge waste of resources! The number of "adjacent" relationships formed can be calculated using the "n(n-1)/2" formula. Two-to-two adjacency relationships With DR/BDR, all OSPF routers (DR Other) only need to exchange LSA with DR/BDR. There is no need to exchange LSA with each other, which can save a lot of resources. For brevity, only DR is listed. In this way, other routers (DR Other) only need to form a "neighbor" relationship, and no further interaction is required! From the above we can see that not all routers need to form an "adjacent" relationship. Sometimes a "neighbor" relationship is sufficient. Neighbor and Adjacency Status Summarize If you hear a friend at work say that OSPF routers form an "adjacent" relationship, then there is no doubt that this person must be an independent expert. You must communicate with him more about network knowledge, because most people still follow the trend and say "neighbors" without making such a strict distinction! |
>>: After reading the long connection in HTTP protocol, most programmers collected it...
It is not easy to "steer" China Mobile....
The Ministry of Industry and Information Technolo...
【51CTO.com Quick Translation】 For designers and f...
There has been a lot of discussion about the evol...
[[395494]] 1. Everything search tool Everything i...
The three major operators recently released their...
For years, it seemed like the hype about 5G would...
[Original article from 51CTO.com] June 5, 2018 - ...
spinservers launched its first promotion after th...
Although the ZTE incident has not yet reached a f...
Modern infrastructure is generating log data at a...
I have shared DiyVM many times in my blog. It is ...
The six major components of structured cabling ar...
edgeNAT has released a regular promotion for June...