Please explain the concept of OSPF DR BDR Election practically?

author
,
Network Security Engineer
  • Total 2 Answers
  • 32291
Can You answer this question?
author
,
CCNA Routing and Switching

                                                                OSPF DR , BDR Election Process : 

 

DR/BDR Election :  Intially when we enable ospf on routers then they start sending hello messages to each other . Then at The End of Two-Way State DR/BDR Election is done.

Election Process: 

1. Priority : Interface on which ospf is enabled by default priority is 1 but it can range from 0-255 and if priority of a interface is 0 mean it will not participate in DR/BDR election .

-- As on all interface priority is 1 by default  therefore it will be a tie . Then election process will move to router-id.

- Higher Priority will be preffered.

To check Priority on a interface : show ip ospf neighbor

ex. 

R1(config)#do show ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface
2.2.2.2           1   2WAY/DROTHER    00:00:32    12.1.1.2        FastEthernet0/0
3.3.3.3           1   FULL/BDR        00:00:33    12.1.1.3        FastEthernet0/0
4.4.4.4           1   FULL/DR         00:00:36    12.1.1.4        FastEthernet0/0

To change priority of a interface : 

interface fa0/0

ip ospf priority ?- 0-255

exit

 

2. Router-Id : As Every router in case of ospf should have unique router-id to become neighbors .

-- So Higher Router-Id will be preffered.

As in our example Router R4 has higher Router-Id 4.4.4.4 So he will be DR and Router R3 having Router-Id 3.3.3.3 so he will be BDR.

to check who is DR/BDR : show ip ospf neighbor

ex. 

R1(config)#do show ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface
2.2.2.2           1   2WAY/DROTHER    00:00:32    12.1.1.2        FastEthernet0/0
3.3.3.3           1   FULL/BDR        00:00:33    12.1.1.3        FastEthernet0/0
4.4.4.4           1   FULL/DR         00:00:36    12.1.1.4        FastEthernet0/0

..........................................................................................................................................................................................................

-> Router which are nor DR neither BDR will be called as DROTHER. 

->DROTHER routers will exchange database with only DR and BDR on multicast address 224.0.0.6 and then DR will forward that update to all DROTHER routers.

-> But communication among all routers will be direct.

Whoops, looks like something went wrong.

1/1 ErrorException in Filesystem.php line 111: file_put_contents(/var/www/html/storage/framework/sessions/UW4wXZvfWNS6kJqpgeTLCatpDlKWrF9Rmm1GuCAX): failed to open stream: No space left on device

  1. in Filesystem.php line 111
  2. at HandleExceptions->handleError(2, 'file_put_contents(/var/www/html/storage/framework/sessions/UW4wXZvfWNS6kJqpgeTLCatpDlKWrF9Rmm1GuCAX): failed to open stream: No space left on device', '/var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php', 111, array('path' => '/var/www/html/storage/framework/sessions/UW4wXZvfWNS6kJqpgeTLCatpDlKWrF9Rmm1GuCAX', 'contents' => 'a:4:{s:6:"_token";s:40:"PmNMURTZgAJEsVc9uFOV6nT2G1w0ewYnYhbMsRID";s:11:"viewed_urls";a:1:{i:0;s:62:"please-explain-the-concept-of-ospf-dr-bdr-election-practically";}s:9:"_previous";a:1:{s:3:"url";s:90:"http://www.networkbulls.com/please-explain-the-concept-of-ospf-dr-bdr-election-practically";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', 'lock' => true))
  3. at file_put_contents('/var/www/html/storage/framework/sessions/UW4wXZvfWNS6kJqpgeTLCatpDlKWrF9Rmm1GuCAX', 'a:4:{s:6:"_token";s:40:"PmNMURTZgAJEsVc9uFOV6nT2G1w0ewYnYhbMsRID";s:11:"viewed_urls";a:1:{i:0;s:62:"please-explain-the-concept-of-ospf-dr-bdr-election-practically";}s:9:"_previous";a:1:{s:3:"url";s:90:"http://www.networkbulls.com/please-explain-the-concept-of-ospf-dr-bdr-election-practically";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', 2) in Filesystem.php line 111
  4. at Filesystem->put('/var/www/html/storage/framework/sessions/UW4wXZvfWNS6kJqpgeTLCatpDlKWrF9Rmm1GuCAX', 'a:4:{s:6:"_token";s:40:"PmNMURTZgAJEsVc9uFOV6nT2G1w0ewYnYhbMsRID";s:11:"viewed_urls";a:1:{i:0;s:62:"please-explain-the-concept-of-ospf-dr-bdr-election-practically";}s:9:"_previous";a:1:{s:3:"url";s:90:"http://www.networkbulls.com/please-explain-the-concept-of-ospf-dr-bdr-election-practically";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', true) in FileSessionHandler.php line 83
  5. at FileSessionHandler->write('UW4wXZvfWNS6kJqpgeTLCatpDlKWrF9Rmm1GuCAX', 'a:4:{s:6:"_token";s:40:"PmNMURTZgAJEsVc9uFOV6nT2G1w0ewYnYhbMsRID";s:11:"viewed_urls";a:1:{i:0;s:62:"please-explain-the-concept-of-ospf-dr-bdr-election-practically";}s:9:"_previous";a:1:{s:3:"url";s:90:"http://www.networkbulls.com/please-explain-the-concept-of-ospf-dr-bdr-election-practically";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}') in Store.php line 128
  6. at Store->save() in StartSession.php line 88
  7. at StartSession->terminate(object(Request), object(Response)) in Kernel.php line 216
  8. at Kernel->terminateMiddleware(object(Request), object(Response)) in Kernel.php line 187
  9. at Kernel->terminate(object(Request), object(Response)) in index.php line 59
  10. at require_once('/var/www/html/public/index.php') in index.php line 20