Please show the process of Root Port Election in STP?

author
,
IT Manager
  • Total 1 Answer
  • 6742
Can You answer this question?
author

- ROOT PORT Election Criteria on the basis of information in BPDUs 

1. Lowest Cost on interfaces towards the Root Bridge.

2. Lowest Sender Bridge ID.

3. Lowest Sender Port ID.

- In this topology, since all the switches are having the same bridge priority, according to lowest Mac address election criteria, SW1 will become Root Bridge.

- SW2 is getting BPDU with the cost of 0 from Root bridge on interface e0/0, similarly SW3 is getting BPDU with the cost of 0 from Root Bridge on interface e0/0

- SW2 is forwarding BPDU with the cost of 100 through interface e0/1 towards SW3 which it is receiving on interface e0/1.

- SW3 is forwarding BPDU with the cost of 100 through interface e0/1 towards SW2 which it is receiving on interface e0/1.

- Now both switch will compare the cost to reach Root Bridge through the interface on which they have received the least cost.

- SW2 BPDU on interface e0/0, cost = 0 | SW2 BPDU on interface e0/1, cost = 100

- SW3 BPDU on interface e0/0, cost = 0 | SW3 BPDU on interface e0/1, cost = 100

- Whichever the interface is have the least cost to reach Root Bridge will be elected as Root Port

- In this Topology, e0/0 on SW2 will become Root Port and e0/0 on SW3 will become Root Port.

- In this topology, since all the switches are having the same bridge priority, according to lowest Mac address election criteria, SW1 will become Root Bridge.

- SW2 is getting BPDU with the cost of 0 from Root bridge on interface e0/0, similarly SW3 is getting BPDU with the cost of 0 from Root Bridge on interface e0/0 and e0/2

- SW2 is forwarding BPDU with the cost of 100 through interface e0/1 towards SW3 which it is receiving on interface e0/1.

- SW3 is forwarding BPDU with the cost of 100 through interface e0/1 towards SW2 which it is receiving on interface e0/1.

- Now both switch will compare the cost to reach Root Bridge through the interface on which they have received the least cost.

- SW2 BPDU on interface e0/0, cost = 0 | SW2 BPDU on interface e0/1, cost = 100

- SW3 BPDU on interface e0/0, cost = 0 & e0/2, cost = 0 | SW3 BPDU on interface e0/1, cost = 100

- Here on SW3 there are two links which are getting the same cost from Root Bridge

- Sender Bridge ID in this case is also same which is aabb.cc80.0100

- Sender Port ID in this case on interface e0/0 of SW3 is e0/1 of Root Bridge and on interface e0/2 of SW3 is e0/2 of Root Bridge.

- Now on the basis of third criteria which is Lowest sender Port ID which is e0/1 of SW1 in this case which SW3 is receiving on interface e0/0 will become Root Port

Whoops, looks like something went wrong.

1/1 ErrorException in Filesystem.php line 111: file_put_contents(/var/www/html/storage/framework/sessions/C0O0YasgliGkH1DzX6u8lJklxQvdyxEO6ofQVSH3): 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/C0O0YasgliGkH1DzX6u8lJklxQvdyxEO6ofQVSH3): 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/C0O0YasgliGkH1DzX6u8lJklxQvdyxEO6ofQVSH3', 'contents' => 'a:4:{s:6:"_token";s:40:"uP7cTYG6VqQugRzOY03gewmuHCauAD5LzYIJGimq";s:11:"viewed_urls";a:1:{i:0;s:52:"please-show-the-process-of-root-port-election-in-stp";}s:9:"_previous";a:1:{s:3:"url";s:80:"http://www.networkbulls.com/please-show-the-process-of-root-port-election-in-stp";}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/C0O0YasgliGkH1DzX6u8lJklxQvdyxEO6ofQVSH3', 'a:4:{s:6:"_token";s:40:"uP7cTYG6VqQugRzOY03gewmuHCauAD5LzYIJGimq";s:11:"viewed_urls";a:1:{i:0;s:52:"please-show-the-process-of-root-port-election-in-stp";}s:9:"_previous";a:1:{s:3:"url";s:80:"http://www.networkbulls.com/please-show-the-process-of-root-port-election-in-stp";}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/C0O0YasgliGkH1DzX6u8lJklxQvdyxEO6ofQVSH3', 'a:4:{s:6:"_token";s:40:"uP7cTYG6VqQugRzOY03gewmuHCauAD5LzYIJGimq";s:11:"viewed_urls";a:1:{i:0;s:52:"please-show-the-process-of-root-port-election-in-stp";}s:9:"_previous";a:1:{s:3:"url";s:80:"http://www.networkbulls.com/please-show-the-process-of-root-port-election-in-stp";}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('C0O0YasgliGkH1DzX6u8lJklxQvdyxEO6ofQVSH3', 'a:4:{s:6:"_token";s:40:"uP7cTYG6VqQugRzOY03gewmuHCauAD5LzYIJGimq";s:11:"viewed_urls";a:1:{i:0;s:52:"please-show-the-process-of-root-port-election-in-stp";}s:9:"_previous";a:1:{s:3:"url";s:80:"http://www.networkbulls.com/please-show-the-process-of-root-port-election-in-stp";}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