Please explain STP Root Bridge Election process?

author
,
Cisco lover
  • Total 1 Answer
  • 14205
Can You answer this question?
author
,
CCNA Routing and Switching

STP Root Bridge Election: In Spanning-tree Root Bridge is elected on the basis of bridge-id.

=>Initially all switches exchange BPDU( Bridge protocol Data Unit ) and in bpdu's they exchange bridge-id on the basis of that switches do Root Bridge Election.

=>Bridge-Id is of 8byte . Lower Bridge-Id is preffered

=> As you can see by default priority of all switches are same i.e 32768 so an election will be on the basis of mac - address of switches.

Election :

Sw1 will become Root Bridge because it have minimum Bridge-Id.

Whoops, looks like something went wrong.

1/1 ErrorException in Filesystem.php line 111: file_put_contents(/var/www/html/storage/framework/sessions/BP1f6czZTvf34tzxy6AD8l0gjH58Dh0q0gaj6Zdz): 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/BP1f6czZTvf34tzxy6AD8l0gjH58Dh0q0gaj6Zdz): 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/BP1f6czZTvf34tzxy6AD8l0gjH58Dh0q0gaj6Zdz', 'contents' => 'a:4:{s:6:"_token";s:40:"Yc9ywEHPrqchI1RBUPnrDr2yHl6jiVYOoZ8CKAxP";s:11:"viewed_urls";a:1:{i:0;s:47:"please-explain-stp-root-bridge-election-process";}s:9:"_previous";a:1:{s:3:"url";s:75:"http://www.networkbulls.com/please-explain-stp-root-bridge-election-process";}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/BP1f6czZTvf34tzxy6AD8l0gjH58Dh0q0gaj6Zdz', 'a:4:{s:6:"_token";s:40:"Yc9ywEHPrqchI1RBUPnrDr2yHl6jiVYOoZ8CKAxP";s:11:"viewed_urls";a:1:{i:0;s:47:"please-explain-stp-root-bridge-election-process";}s:9:"_previous";a:1:{s:3:"url";s:75:"http://www.networkbulls.com/please-explain-stp-root-bridge-election-process";}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/BP1f6czZTvf34tzxy6AD8l0gjH58Dh0q0gaj6Zdz', 'a:4:{s:6:"_token";s:40:"Yc9ywEHPrqchI1RBUPnrDr2yHl6jiVYOoZ8CKAxP";s:11:"viewed_urls";a:1:{i:0;s:47:"please-explain-stp-root-bridge-election-process";}s:9:"_previous";a:1:{s:3:"url";s:75:"http://www.networkbulls.com/please-explain-stp-root-bridge-election-process";}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('BP1f6czZTvf34tzxy6AD8l0gjH58Dh0q0gaj6Zdz', 'a:4:{s:6:"_token";s:40:"Yc9ywEHPrqchI1RBUPnrDr2yHl6jiVYOoZ8CKAxP";s:11:"viewed_urls";a:1:{i:0;s:47:"please-explain-stp-root-bridge-election-process";}s:9:"_previous";a:1:{s:3:"url";s:75:"http://www.networkbulls.com/please-explain-stp-root-bridge-election-process";}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 58
  10. at require_once('/var/www/html/public/index.php') in index.php line 20