03-04-2011 11:06 PM - edited 03-06-2019 03:54 PM
Hi Guys,
I need your help, l was working on the question below but can't seem to understand the answer given. Please refer to the exhibt below.
Question: Which Switch provides the Spanning tree designated port role for the network segment that services the printers.
Thanks, Taps
03-05-2011 12:49 AM
Hi,
This is how I would do:
1) determine root bridge: here it is sw1 as it has the lowest priority and so all its ports are designated ports
2) determine root port on each non-root bridge: we assume all links are same speed so each port is same cost
----> on sw3: direct connection to sw1 and same on sw4
3) on the segment with the hub between sw3 and sw4 which has the designated port?
----> same method as for root port and so this is sw3 which is the designated bridge.
Regards.
Alain.
03-05-2011 06:06 AM
Thanks Alain, that makes so much sense. My problem was comparing the Mac addresses on the Switch 3 and Switch 4 segment since they have the same priority. I wasn't aware of the rule that when you are comparing Mac addresses you read from left to right comparing one digit at a time and as soon as soon as there is a difference you pick the lower one and that becomes the designated port without comparing the rest of the digits. So comparing the two:
Switch 3: 0010.7bcc.733a
Switch 4: 0010.7bcc.7347
Switch 3 wins because 3 is lower than 4, so thats how it gets the designated port role.
Please confirm if this reasoning is correct.
Thanks,
Taps
03-05-2011 10:27 AM
Hi,
Switch 3 wins because 3 is lower than 4, so thats how it gets the designated port role.
Not correct!
To choose DP on a segment you follow the same rules you use to choose the RP.
So the priority and mac address have nothing to do with it, priority is for the root bridge election and mac address is a tie-breaker.
Regards.
Alain.
03-05-2011 02:13 PM
Hi Alain,
I thought l had this nailed and good to go but l'm getting more and more confused now. Switch1 is the Root Switch by virtue of the lower priority,so all its ports are designating. The other end of the cable on Switch 3 and Switch 4 are Root ports. Then we need to determine the designating port on the segment with the hub between Switch 3 and 4. The selection is based on the port with the best [lower] cost to the Root bridge but since we assume they have the same cost then we'll use the Bridge priority as the tie-breaker. But again they have the same priority so thats why we end up comparing the mac addresses and leaving Switch 3 as the winner and switch 4 end becomes non-desginating [blocking].
How is that explanation?
Thanks, Taps
03-05-2011 11:05 PM
Hi,
"To win the right to be the DP, a switch must send the Hello with the lowest advertised cost onto the segment"
"When the cost is a tie, STP uses the same tiebreakers to choose the DP as when choosing an RP: lowest forwarder’s bridge ID, lowest forwarder’s port priority, and lowest forwarder’s port number"
So the switch priority is never used but the sender port priority.
But here the cost is same and you're right the bridge id is a tie and the lowest wins that is sw3, forget my previous answer I was completely out
of my mind.
Regards.
Alain.
03-06-2011 01:18 AM
Hello Alain,
Allow me to join the discussion.
When I explain STP to my students, I do it in the following way:
Now, it boils down which BPDU is better - how should the BPDUs be compared to each other. To compare BPDUs, you compare the STP "attributes" indicated in the BPDUs in a predefined order until you arrive at the first attribute that differs in its value. The BPDU containing the lower value of the attribute is better. The attributes compared and their sequence is as follows:
The Step 5 is seldomly used but is necessary in networks with shared segments or when interfacing an MSTP region. Once again, the lower value of an attribute is better.
Note that depending on the actual topology, you may need to go down to Step 4 or even 5 to determine the root or the designated port. For example:
My two cents...
Best regards,
Peter
03-06-2011 01:39 AM
Hi Peter,
As always you posted a very clear and useful explanation.
Regards.
Alain.
03-06-2011 02:50 AM
Thanks for the help Guys, Its very clear now. I appreciate the help.
Taps
03-06-2011 05:45 AM
Hi Alain,
You are very kind. Thank you!
Best regards,
Peter
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide