In this article we will discuss Designated and Alternate Ports, will make brief discussion on Designated and Alternate Ports, In last article we discuss about Port Role Decisions for RSTP.
When determining the root port on a switch, the switch compares the path costs on all switch ports participating in the spanning tree.
The switch port with the lowest overall path cost to the root bridge is automatically assigned the root port role because it is closest to the root bridge. In a network topology of switches, all non-root bridge switches have a single root port chosen, and that port provides the lowest cost path back to the root bridge.
A root bridge will not have any root ports. All ports on a root bridge will be designated ports. A switch that is not the root bridge of a network topology will have only one root port defined.
Examining the port roles, port F0/1 on switch S3 and port F0/3 on switch S4 have been selected as root ports because they have the lowest cost path (root path cost) to the root bridge for their respective switches.
S2 has two port ports, F0/1 and F0/2 with equal cost paths to the root bridge. In this case the bridge IDs of the neighboring switches, S3 and S4, will be used to break the tie. This is known as the sender’s BID. S3 has a BID of 24577.5555.5555.5555 and S4 has a BID of 24577.1111.1111.1111. Because S4 has a lower BID, S2’s F0/1 port, the port connected to S4, will be the root port.
Next, designated ports need to be selected on shared segments. S2 and S3 connect to the same LAN segment and therefore; they exchange BPDU frames. STP determines whether S2’s F0/2 port or S3’s F0/2 port will be the designated port for the shared segment. The switch with the lower cost path to the root bridge (root path cost) will have its port selected as the designated port. S3’s F0/2 port has a lower cost path to the root bridge so it will be the designated port for that segment.
S2 and S4 go through a similar process for their shared segment. S4’s F0/1 port has the lower cost path to the root bridge and becomes the designated port on this shared segment.
All STP port roles have been assigned except for S2’s F0/2 port. S2’s F0/1 port has already been selected as the root port for that switch. Because S3’s F0/2 port is the designated port for this segment, S2’s F0/2 port will become an alternate port.
The Designated Port is the port that sends and receives traffic, to and from that segment to the Root Bridge. This is the best port on that segment towards the root bridge. The alternate port will not send or receive traffic on that segment. This is the loop prevention part of STP.
I am Hamza arif, and i am excited to learn new things, i am well focused for my work and always try to explore new things. My graduate is in BS (Telecom) and i am expert in Networks and working on new technology is my passion i work a lot on AI (Artificial Intelligence) Augmented Reality and many other projects.