Some questions to tickle you on STP, the answers are at the bottom, let me know how you get on!
Given the topology below that is
running 802.1D with all settings as default, please tell
me:
1) What switch will be the
Spanning-tree root bridge
a) Why will this be the root bridge?
2) What will be the BridgeID of all
the BPDU's generated for VLAN 100?
a) What makes up this BridgeID value?
3)What ports on SW2 will be in the
forwarding state?
a) What will the forwarding port
roles be?
4) What port on SW4 will be the root
port?
a) Why?
5) On Switch 4, which ports will be
designated ports?
a) Why?
6) What ports will be blocked in the
topology?
a) Why?
1)
What switch will be the Spanning-tree root
bridge (SW2)
a.
Why will this be the root bridge? (It has the lowest MAC address, when all priories
tie, this is the tiebreaker)
2) What will be the BridgeID of all the BPDU's generated for VLAN 100? (32868)
a. TWhat makes up this BridgeID value? (The
BridgeID is the Priority+VLANID, where the default priority is 32768)
3) What
ports on SW2 will be in the forwarding state? (All of them)
a. What
will the forwarding port roles be? (all
root bridge downstream ports are designated forwarding ports)
4) What
port on SW4 will be the root port? (Port
1)
a. Why?
(Root port is the one with the lowest
cost to reach the root bridge, is there is a tie then it’s the lowest received
BPDU, if there is still a tie then it’s the lowest received port priority, if
there is still a tie it’s the lowest local port ID (where port 1 = 1, 2 = 2, and so on). Therefore the tie breaker
here is the local port ID)
5) On
Switch 4, which ports will be designated ports? (0, 3 & 4)
a. Why?
(Designated Ports are calculated after
Root Ports, of the two sides of the link they are calculated from the viewpoint
of being on the link itself. Lets look at the SW1-Sw4 link. Here it’s a cost of
10 to reach the root via Sw1 or Sw4, therefore we look at the tiebreaker methods
described in Q4a, the first item looks at the lowest BPDU where in this case
SW4 has a lower one based on the MAC. Therefore SW4’s Port 0 is the DP & SW1’s
Port 1 is the Alt blocked port)
6) What
ports will be blocked in the topology? (SW1’s
port 1, SW4’s Port 2 & SW3’s ports 1 & 2)
a. Why?
(All opposite sides to Designated ports
that are not Root facing Ports are set to Alternate Blocked ports, this is to
stop loops)
Hi, and thank you for posting this example. However, wouldn't it be better to call the value 32868 "Bridge-ID" rather than "Priority"? Bridge ID is made up by the MAC and Priority values together.
ReplyDeleteAh yes, good spot. Not only are you correct, but saying "Priority+VLANID = Priority" just does not make sense!! Cheers for the feedback -SB
Delete