Ospf protocol for L3 Devices

Source: Internet
Author: User

The ospf protocol for layer-3 devices is only suitable for small networks because of the 16-hop limitation of the rip Protocol and other reasons in the information interaction between different network segments. Therefore, ospf protocol has been developed. Ospf is an Open Shortest Path priority protocol. It is one of the gateway protocols used within the autonomous region and is developed based on the link status. There are five network types of ospf: 1. Point-to-point type. As proposed by Cisco, ospf automatically discovers neighbors and does not elect DR/BDR. The hello Message release time is 10 s. 2. Broadcast type: the network type proposed by Cisco, which automatically discovers neighbors and selects DR/BDR. The release time of the hello message is 10 s. 3. Non-broadcast network. The network type proposed by RFC is manually configured with neighbors. The release time of DR/BDR and hello packets is 30 s. 4. Point-to-point networks, which are proposed by RFC and automatically discover neighbors. No DR/BDR is elected, and the hello message is published for 30 s. 5. Point-to-point non-broadcast, the network type proposed by cisco, manual configuration of neighbors, no DR/BDR election, hello Message release time 30 s. The point-to-point network type is better understood, so this article mainly describes the broadcast network type in the broadcast ospf, before the appearance of DR \ BDR, because any vro and its neighbors need to establish an adjacent relationship, a lot of adjacent relationships will be formed between the vrouters, so that too many LSA will be sent, in addition, the LSA sent to the neighbor still exists in the broadcast type and is re-sent from the neighbor, resulting in a lot of duplicate information in the network. Therefore, DR | BDR is generated. DR | the BDR task is: 1. describe the multi-access network and other related routers on the network. manage the flooding process on the multi-access network. 3. for redundancy, a bdr is also selected for Dual Backup. DR | selection rule of BDR 1. each router's route port has a priority. The priority ranges from 0 to 255. The default priority of the port is 1, when the priority is changed to 0, it cannot be elected as DR | BDR. The code for setting the port priority is: ip ospf priority2.hello packet contains the port priority, it may also be the IP address of the DR | BDR port. when the port is started for the first time in multiple routes, it sets DR | BDR to 0.0.0.0, and sets the value of the wait timer to be equal to the router's invalid interval. The router's route ID is defined as 1. you can set the route ID in ospf. if no route ID is defined and the router defines loopback, select the loopback port with the largest IP address as the route ID 3. if none of these are available, the maximum IP address is used. The IP address of the physical port used as the route id dr | BDR selection process: 1. after establishing two-way communication with a neighbor, the router checks the primary, DR, and BDR fields in the neighbor hello message to list all the neighbors that may participate in the election of DR | BDR (except for the primary value 0. if multiple routers declare that they are BDR (that is, they are expressed as BDR in the hello Message), the higher priority will be elected as BDR. If the priority is the same, then, select the vro with a large ID as the BDR. If no vro declares that you are a BDR instance, select a vro with a higher priority as the BDR instance (and exclude the vro that declares that you are a DR instance). If the priorities are the same, the vro ID is used to determine the BDR instance. 3. if one or more routers declare that they are DR, select the high-priority router as DR. If the priority is the same, select the high-priority router as DR; if no vro declares that you are a DR, use the new BDR in the previous step as the DR. 4. if the router is new to DR or BDR, or the router is new to exit DR or BDR, repeat steps 2 and 3 and end the election, this prevents a router from declaring that DR and BDR5. there is no preemption in ospf. That is, after ospf selects a new DR and BDR, even if there is a router with a higher priority, and no re-election. 6. after the DR/BDR election is complete, DRother only forms an adjacent relationship with DR/BDR. all routers route Hello packets to the AllSPFRouters address 224.0.0.5 so that they can track the information of other neighbors. That is, DR sends the flood update packet to 224.0.0.5; DRother only broadcasts update packet to AllDRouter address 224.0.0.6, only DR | BDR can listen to this address

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.