Solved

STP - what's wrong with defaults

Posted on 2013-10-26
5
498 Views
Last Modified: 2013-10-27
Experts,

I keep hearing that you should never let the defaults determine the root bridge, and it's better to manually determine that based on your network topology.

My question is, during the Root bridge election process, the link COST are taken into consideration. So shouldn't we trust that whichever was elected to be the root bridge is also the best way to get frames from point A to Point B?
0
Comment
Question by:trojan81
5 Comments
 
LVL 15

Assisted Solution

by:Robert Sutton Jr
Robert Sutton Jr earned 125 total points
ID: 39603743
If this is for a switch then it is usually best for you to determine the root "switch" since you will typically have multiple vlans. Each vlan must have its own root "switch" since each one is its own broadcast domain.  You really didn't specify the equipment being used except for the topic that you chose of Switches & Hubs.


According to Cisco.com:

With STP, the key is for all the switches in the network to elect a root bridge that becomes the focal point in the network. All other decisions in the network, such as which port to block and which port to put in forwarding mode, are made from the perspective of this root bridge. A switched environment, which is different from a bridge environment, most likely deals with multiple VLANs. When you implement a root bridge in a switching network, you usually refer to the root bridge as the root switch. Each VLAN must have its own root bridge because each VLAN is a separate broadcast domain. The roots for the different VLANs can all reside in a single switch or in various switches.

Note: The selection of the root switch for a particular VLAN is very important. You can choose the root switch, or you can let the switches decide, which is risky. If you do not control the root selection process, there can be suboptimal paths in your network.

All the switches exchange information for use in the root switch selection and for subsequent configuration of the network. Bridge protocol data units (BPDUs) carry this information. Each switch compares the parameters in the BPDU that the switch sends to a neighbor with the parameters in the BPDU that the switch receives from the neighbor.

In the STP root selection process, less is better. If Switch A advertises a root ID that is a lower number than the root ID that Switch B advertises, the information from Switch A is better. Switch B stops the advertisement of its root ID, and accepts the root ID of Switch A.

Hope this helps.
0
 
LVL 46

Assisted Solution

by:Craig Beck
Craig Beck earned 125 total points
ID: 39603995
Also, adding a switch can cause the STP topology to change, and that can cause the paths to also become suboptimal.

If someone connects a switch with a manually-set STP root value for a particular VLAN that could cause important links to transition into an undesirable state.  That could be very bad.
0
 
LVL 50

Assisted Solution

by:Don Johnston
Don Johnston earned 125 total points
ID: 39604299
My question is, during the Root bridge election process, the link COST are taken into consideration. So shouldn't we trust that whichever was elected to be the root bridge is also the best way to get frames from point A to Point B?
Spanning Tree doesn't determine the best way to get frames from "point A" to "point B".  Unless one of those two points is the root. :-)

Spanning tree will only allow one path from any place on the network to/from the root. Which means that there may be a server one switch away from you, but spanning tree will requires your traffic to go all the way to the other side of the network (because that's where the root bridge ended up.

And only Cisco's implementation of Spanning Tree utilizes Per VLAN Spanning Tree (with one root bridge per VLAN). All the other vendors use a CST (Common Spanning Tree) approach. Although most vendors support 802.1s Multi Spanning Tree which uses a user-defined number of spanning-tree instances.
0
 
LVL 18

Accepted Solution

by:
Akinsd earned 125 total points
ID: 39604518
It is best practice to influence the root bridge for your vlans. If 1 switch is centralized, then you can have just that one switch function as the root bridge. Otherwise, you can use different switches function as root bridge for particular vlans.

Also, to buttress craigbeck's point. It is a good idea to implement root guard on your access layer switches to prevent a rogue switch from disrupting your  network

Food for thought
Rather that have a redundant link sitting idle and waiting for something to fail, you could make your distribution a stack of switches and then make the 2 uplinks ether channels to the stack, one link per member of the stack. This way, you benefit from additional bandwidth and if one fails, there is no disruption as the other link continues to serve. You can then turn of spanning tree and conserve resources for your switches.

There are more ways to better tune spanning tree for more granular functionality if you desire. Several options are available to you and you have the option of choosing what is best for your network, functionally and manageability
0
 

Author Closing Comment

by:trojan81
ID: 39604798
Thank you gentlemen!
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This tutorial will go through the steps required to write a script that will back up the configuration settings of a HP-ProCurve switch. You will need to get the following things to follow this tutorial: Telnet Scripting Tool e.g. TST10.exe …
I eventually solved a perplexing problem setting up telnet for a new switch.  I installed a new Cisco WS-03560X-24P switch connected to an existing Cisco 4506 running a WS-X4013-10GE Sup II-Plus. After configuring vlans and trunking,  I could no…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question