I thought tie breakers in STP were MAC address and bridge priority but in the following question, the correct answer are A and C.
Question: When electing a root port for a nonroot switch, which values are used to break ties if required?
Correct answer: A C
Can anyone give me a short explanation?
This question is referring to normal switches in the topology and not the root bridge. It is asking how these switches work out the quickest/shortest path to the root bridge. In this instance it uses the BID and Port ID.
MAC address and Priority are used in the election of the root bridge.
You might enjoy this quick read on STP non-root switches, path selection:
However, to answer your question the non root switches use a number of variables to calculate the path the the root switch, in order:
1) The lowest cost to the root bridge.
2) Lowest neighboring switch ID.
3) Lowest priority value from neighboring switch.
4) Lowest neighboring port ID.
This step comes after the root Bridge election.
STP calculates the path cost based on the media speed (bandwidth) of the links between switches and the port cost of each port forwarding frame. Spanning tree selects the root port based on the path cost. The port with the lowest path cost to the root bridge becomes the root port. The root port is always in the forwarding state.
If the speed/duplex of the port is changed, spanning tree recalculates the path cost automatically. A change in the path cost can change the spanning tree topology.
Each switch determines the best path to get to the root. The switches determine this path by a comparison of the information in all the BPDUs that the switches receive on all ports. The switch uses the port with the least amount of information in the BPDU in order to get to the root switch; the port with the least amount of information in the BPDU is the root port. After a switch determines the root port, the switch proceeds.
For more info:
I knew that the root port was elected depending on its path cost but I thought that this cost was calculated according to MAC address and Priority instead of Upstream BID and Port ID.
This is what I hate about cisco questions. They are so convoluted! Mac addresses ARE used to choose the root port! Priority IS used to choose the root port! port ID is not used but the port id's priority is used! Upstream BID? Who defines upstream?
And dont tell me from wence conf bpdus come. I know that! Maybe my root switch is downstream in my network! It is in fact. Downstream! Thats right! At the bottom of my topology.
How about straight forward exam questions.
Here are four legit answer choices
A.) Lowest Recieved Port Priority : confusing with (port id) (priority)
B.) Lowest Recieved Port Number
C.) Lowest Recieved Bridge ID : confusing with (Mac address) (upstream BID)
D.) Lowest Path Cost
FFS The tests are timed as well and we have to figure out your screwy semantics?