OSPF Basic Concepts - Part 2
Kevin Wallace Training, LLC

OSPF Basic Concepts - Part 2

In the previous article, we looked at a few fundamental OSPF concepts, including neighbor and adjacency formation. As we continue through the basics of OSPF, this article will examine router roles, timers, and metric calculation.

Designated Router (DR) and Backup Designated Router (BDR)

A designated router (DR) is the router interface that wins an election among all routers on a multiaccess network segment such as Ethernet. A backup designated router (BDR) is the router that becomes the designated router if the current designated router has a failure on the network. The BDR is the OSPF router with the second highest priority at the time of the last election. OSPF uses the DR and BDR concept to assist with efficiencies in the operations of OSPF.

Keep in mind that a given OSPF speaker in your network can have some interfaces that are designated and others that are backup designated, and others that are non-designated. If no router is a DR or a BDR on a given subnet, the BDR is first elected, and then a second election is held for the DR.

What are the criteria for the DR election process? The DR is elected based on the following default criteria:

  • If the priority setting on an OSPF router is set to 0, it can never become a DR or BDR.
  • When a DR fails and the BDR takes over, there is another election to see who becomes the replacement BDR.
  • The router sending the Hello packets with the highest priority wins the election.
  • If two or more routers tie with the highest priority setting, the router sending the hello with the highest Router ID wins.
  • Typically, the router with the second highest priority number becomes the BDR.
  • The priority values range between 0 – 255, with a higher value increasing its chances of becoming DR or BDR.
  • If a higher priority OSPF router comes online after the election has taken place, it will not become DR or BDR until there is a failure with an existing DR or BDR. We call this non-preemptive in networking. 

Remember, all routers in a multiaccess network segment will form an adjacency with the DR and BDR. Every time a router sends an update, it sends it to the DR and BDR on the multicast address 224.0.0.6. The DR will then send the update out to all other routers in the area using the multicast address 224.0.0.5.

Thanks to this process, all routers do not have to constantly update each other and can get all their updates from a single source. Note that the use of multicasting further reduces the network load.

DRs and BDRs are always elected on OSPF broadcast networks as described above. DRs can also be elected on NBMA (Non-Broadcast Multi-Access) networks such as Frame Relay or ATM. DRs or BDRs are not elected on point-to-point links.

Example 1 shows how you can set the priority for the DR election process. This example also shows a sample verification.

Example 1: Setting the Priority of an OSPF Interface

No alt text provided for this image
No alt text provided for this image

OSPF Timers

While there are many timer values with OSPF, there are two that are critical for you to understand. The hello timer controls how often the router sends routine messages to its neighbors to indicate its continued health. If the neighbors don’t hear any hello messages for a length of time defined by the dead-interval, they assume that the router is no longer reachable and drop it from the adjacency table.

The default values are:

  • 10 seconds for the hello time
  • 40 seconds for the dead time

While you can lower the timer values from their defaults, you will generate more traffic on the link. Also realize that if you set the dead time too aggressively small, you could run the risk of declaring a neighbor down when the only true issue on the link was temporary congestion.

Example 2 shows a setting of the OSPF timer values. Keep in mind you would set the timers to match on your neighboring devices as well.

Example 2: Setting the OSPF Timers

No alt text provided for this image

Metric Calculation

Remember, the OSPF metric is the costwhich is based on bandwidth by default. The formula to calculate the cost is reference bandwidth divided by interface bandwidth. OSPF uses a reference bandwidth of 100 Mbps for cost calculation. For example, in the case of Ethernet, it is 100 Mbps / 10 Mbps = 10.

You can change the reference bandwidth for the cost calculation. Be sure to do this for all of your OSPF speakers should you decide to manipulate it. You do this with the ospf auto-cost reference-bandwidth command. Example 3 shows this command in action.

Example 3: Setting the Reference Bandwidth for OSPF

No alt text provided for this image

NOTE: You can override the OSPF cost calculation for interfaces by setting the cost directly on the interface. You do this with the ip ospf cost command under the interface.

That's going to wrap up Part 2 of our OSPF Basic Concepts series. Before we move on to advanced concepts, next time we'll cover OSPF LSA Types and Area Types in Part 3. Until then, take good care.

For additional information, visit our website for Cisco Certified Systems training courses, special courses on IT networking and more.

 

Om Khard

Software Technical Analyst

3 年

The Basic purpose of DR and BDR elections is to stop LSA packet flooding and to share network information to neighbour . Thanks for sharing

回复
SETH ASANTE

Microsoft Certified Solutions Expert. @ ORBITTECKNOLOGIES

3 年

Thanks for sharing!

回复

要查看或添加评论,请登录

Kevin Wallace的更多文章

  • Cisco's ENCOR v1.1 Exam Drops Sept. 20th. Here's What's New!

    Cisco's ENCOR v1.1 Exam Drops Sept. 20th. Here's What's New!

    Cisco's ENCOR (350-401) exam is one of the most popular Cisco exams out there. Just check out some of the…

    11 条评论
  • Career Catalyst – Igniting Your IT Success Journey

    Career Catalyst – Igniting Your IT Success Journey

    Whether you’re an aspiring IT professional or whether you’ve already begun your IT career, there’s always a “next…

  • I Took Cisco's CCST Networking Exam - Here's My Review

    I Took Cisco's CCST Networking Exam - Here's My Review

    in January of 2023 Cisco announced the CCST Networking certification, where CCST stands for Cisco Certified Support…

    18 条评论
  • Lessons I Learned from Disney – Part 1 (When to Praise – When to Coach)

    Lessons I Learned from Disney – Part 1 (When to Praise – When to Coach)

    Anyone that knows my family and me, knows that we are huge fans of all things Disney. Besides just being a guest at…

  • Understanding EIGRP - Part 6

    Understanding EIGRP - Part 6

    This post wraps up our series on Understanding EIGRP by discussing two final topics: The EIGRP Router ID EIGRP's…

    6 条评论
  • Understanding EIGRP - Part 5

    Understanding EIGRP - Part 5

    Typically, an EIGRP-speaking router dynamically discovers its neighbors, by sending multicast Hello messages. However…

    4 条评论
  • Understanding EIGRP - Part 4

    Understanding EIGRP - Part 4

    Sometimes, we might want a router interface to participate in an EIGRP routing process (in order to advertise that…

    1 条评论
  • Understanding EIGRP - Part 3

    Understanding EIGRP - Part 3

    Once of EIGRP’s claims to fame is its fast convergence in the event of a link failure. However, one thing that might…

  • Understanding EIGRP - Part 2

    Understanding EIGRP - Part 2

    In the first article in our Understanding EIGRP series, we were introduced to EIGRP’s features, in addition to a basic…

    1 条评论
  • Understanding EIGRP - Part 1

    Understanding EIGRP - Part 1

    I used to work as a Network Design Specialist at Walt Disney World, in Florida. Their massive network contained over…

    6 条评论

社区洞察

其他会员也浏览了