{"id":892,"date":"2024-05-04T21:02:38","date_gmt":"2024-05-04T21:02:38","guid":{"rendered":"https:\/\/www.spktechfit.com\/?p=892"},"modified":"2024-06-14T03:21:17","modified_gmt":"2024-06-14T03:21:17","slug":"5-spanning-tree-protocol","status":"publish","type":"post","link":"https:\/\/www.spktechfit.com\/?p=892","title":{"rendered":"5. Spanning-Tree Protocol"},"content":{"rendered":"<h3>Redundancy<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-893 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/5.1.png\" alt=\"\" width=\"735\" height=\"373\" \/><\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">In the above example on the left, if Core 1 fails then the network is down and client A won&#8217;t be able to communicate with client B.<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">In the example on the right, if Core 1 fails the network will say up as Core 2 is available and the Client can communicate through this.<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">While this mitigates a single point of failure issue it creates a new challenge &#8211; Loops.<\/p>\n<p>&nbsp;<\/p>\n<h3>Layer 2 Loops<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-894 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/5.2.png\" alt=\"\" width=\"730\" height=\"261\" \/><\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">Redundant links create L2 loops which can cause major problems.<\/p>\n<p><strong>Broadcast Storms<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-895 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/5.3.png\" alt=\"\" width=\"340\" height=\"321\" \/><\/p>\n<ul style=\"direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;\" type=\"disc\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Switches flood broadcasts out all interfaces in the same VLAN except the ingress port. In this example A sends a broadcast frame<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Switch Access 1 receives this and floods it out (Copy 1)<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Core 1 and Core 2 receive it and flood it out their connections to each other (Copy 2)<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Core 1, Core 2 and Access 1 receive the second copy and flood them out their ports (Copy 3)<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Access 1 receives the 3rd copy and the cycle continues<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Soon all available bandwidth and CPU cycles are used up processing broadcasts. No resources are available to process normal data communication and the network is effectively unusable.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>Multiple Frame Copies<\/h3>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">If the switch receives a unicast packet to some destination MAC and that address has not yet been learned in the MAC address table, then the switch floods the frame out all ports in the VLAN except the ingress port. These can also circulate and waste bandwidth and CPU cycles, plus cause tother issues.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-896 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/5.4.png\" alt=\"\" width=\"735\" height=\"351\" \/><\/p>\n<ul>\n<li>Host B sends a frame to Host A<\/li>\n<li>Access 2 has not yet learned Host A&#8217;s MAC address so it floods this frame out ports 21 and 22. Core 1 and Core both receive a frame with source MAC 90:\u2026\u2026\u2026..:00 inbound on port 2<\/li>\n<li>Both Cores send a copy to Access 1 switch. This switch now believes it can reach Host B via ports 21 and 22. Access 1 is confused,\u00a0 Host B can only exist in\u00a0 one place but it appears in 2 places<\/li>\n<li>The multiple frame copies generated by Access 2 create MAC database instability on Access 1<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>Spanning-Tree Protocol (STP)<\/h3>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">The IEEE 802.1d standard version of STP was developed to build and maintain redundant, yet loop free networks. STP creates a loop free topology by automatically disabling redundant links. However, these links disabled links remain available to provide redundancy in the case of a failure.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-897 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/5.5.png\" alt=\"\" width=\"373\" height=\"386\" \/><\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">One switch in the Spanning Tree domain is elected as the bridge or Root switch. The root bridge is the reference from which the spanning Tree grows. All other switches are non-root bridges, sometimes known as designated switches.<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"><span style=\"font-weight: bold; font-style: italic;\">When discussing STP the terms switch and bridge are used to describe the same thing<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-898 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/5.6.png\" alt=\"\" width=\"662\" height=\"366\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-899 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/5.7.png\" alt=\"\" width=\"672\" height=\"175\" \/><\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">In the original standard only the root switch sent hello packets every 2 seconds. These were forwarded on to the rest of the switches in the domain. If a switch didn\u2019t receive a hello packet for 20 seconds (the default MAX age timer) an outage was assumed and the switches converged to a new topology.<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">Rapid Spanning-Tree Protocol (RSTP) was developed in 1998 to speed up convergence. In RSTP all switches send Hello packets. The need for Max Age timers is eliminated.<\/p>\n<p>&nbsp;<\/p>\n<h3>RSTP elements<\/h3>\n<h4 style=\"margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #5b9bd5;\">Bridge Identifier<\/h4>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">Spanning Tree assigns each switch a unique identifier called a Bridge ID. This is composed of a 2-byte priority and 6-byte MAC address. The default priority is 32768. By default each switch has the same priority, but each switch has a unique MAC address so the Bridge ID is unique.<\/p>\n<h3 style=\"margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #5b9bd5;\">Bridge Protocol Data Units<\/h3>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">All switches in the Spanning Tree domain exchange control messages called Bridge Protocol Data Units (BPDUs). In the original STP only the root switch sent them.<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">In RSTP all switches send BPDU&#8217;s with their current information every 2 seconds, the default hello time period. If a port doesn\u2019t receive BPDUs for three consecutive hello timers, the switch quickly knows it has lost connectivity to the neighbour and begins to converge. Because each switch sends BPDUs it is a truly keepalive mechanism. Failure detection takes no longer than 6 seconds.<\/p>\n<h3 style=\"margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #5b9bd5;\">Port States<\/h3>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">During Spanning Tree establishment, and any ensuing convergence, switches must decide which ports will forward data and which ports must be disabled to prevent L2 loops.<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">The table below lists the states were used in the original STP (802.1d) and the RSTP (802.1w) and compares them<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-900 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/5.8.png\" alt=\"\" width=\"649\" height=\"235\" \/><\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">In RSTP the Leaning state is a transition state and is only used during re-convergence of the protocol when change happens. Stable states are the Discarding or Forwarding states.<\/p>\n<h3 style=\"margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #5b9bd5;\">Path Cost<\/h3>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">RSTP may have several possible paths to get from route switch to a particular non-root switch. It chooses the best path based on coast, which is based on link speed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-901 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/5.9.png\" alt=\"\" width=\"735\" height=\"340\" \/><\/p>\n<h3 style=\"margin: 0in; font-family: Calibri; font-size: 12.0pt; color: #5b9bd5;\">Port Roles<\/h3>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"><span style=\"font-weight: bold;\">Designated Port:<\/span><\/p>\n<ul style=\"direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;\" type=\"disc\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">This is a port facing away from the root switch<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Ports on root switch and designated switches. All ports on root are designated<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Port state = forwarding<\/span><\/li>\n<\/ul>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"><span style=\"font-weight: bold;\">Root Port:<\/span><\/p>\n<ul style=\"direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;\" type=\"disc\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">These ports lead towards the root<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Ports on non root switches with the best cost path to the root bridge. These ports forward data to the root bridge.<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Port state = forwarding<\/span><\/li>\n<\/ul>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"><span style=\"font-weight: bold;\">Alternate port:<\/span><\/p>\n<ul style=\"direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;\" type=\"disc\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">All ports left that are not Root Port or Designated Port<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">No loop to itself<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Becomes the root port if the active fails<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Port state = Discarding<\/span><\/li>\n<\/ul>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"><span style=\"font-weight: bold;\">Backup port:<\/span><\/p>\n<ul style=\"direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in;\" type=\"disc\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Not the closest to the root switch<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Creates a loop to itself<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Becomes the designated port if the active fails<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Port state = Discarding<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>RSTP Operation<\/h3>\n<h2 style=\"margin: 0in; font-family: Calibri; font-size: 14.0pt; color: #2e75b5;\">Operational Overview<\/h2>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">RSTP algorithm creates a loop free network by the following steps:<\/p>\n<ol style=\"direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in; font-family: Calibri; font-size: 11.0pt; font-weight: normal; font-style: normal;\" type=\"1\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\" value=\"1\"><span style=\"font-family: Calibri; font-size: 11.0pt; font-weight: normal; font-style: normal;\">Elects Root switch<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Select root port on all non-root switches<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Select the designated port on each switch to switch link<\/span><\/li>\n<\/ol>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\"><span style=\"font-weight: bold; font-style: italic;\">All other ports move to a blocking state to prevent loops<\/span><\/p>\n<ol style=\"direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in; font-family: Calibri; font-size: 14.0pt; font-weight: normal; font-style: normal;\" type=\"1\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2e75b5;\" value=\"1\"><span style=\"font-family: Calibri; font-size: 14.0pt; font-weight: normal; font-style: normal;\">Root Switch Election<\/span><\/li>\n<\/ol>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">This is based on the Bridge ID (BID) which is made up of a priority number (default is 32,768 but you can set it yourself) and the switch MAC address. The switch with the lowest BID wins.<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">The priority must be configured in increments of 4096. In the example table below you can see Core 1 has the value of 4096 and Core 2 8192<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-902 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/5.10.png\" alt=\"\" width=\"291\" height=\"136\" \/><\/p>\n<ol style=\"direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in; font-family: Calibri; font-size: 14.0pt; font-weight: normal; font-style: normal;\" type=\"1\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2e75b5;\" value=\"2\"><span style=\"font-family: Calibri; font-size: 14.0pt; font-weight: normal; font-style: normal;\">Select root port on all non-root switches<\/span><\/li>\n<\/ol>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\">Non root switches must select the best path to the root switch by selecting its root port. Root port criteria are as follows:<\/p>\n<ol style=\"direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in; font-family: Calibri; font-size: 11.0pt; font-weight: normal; font-style: normal;\" type=\"1\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\" value=\"1\"><span style=\"font-family: Calibri; font-size: 11.0pt; font-weight: normal; font-style: normal;\">Lowest root Bridge ID<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Lowest path cost to the root bridge<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Lowest sender Bridge ID<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Lowest port priority<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Lowest port ID<\/span><\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-903 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/5.11.png\" alt=\"\" width=\"423\" height=\"369\" \/><\/p>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">In the diagram above, Core-2 receives BPDUs on ports 1,2,43 and 44. Core 2 must decide which port is the Root port.<\/p>\n<ol style=\"direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in; font-family: Calibri; font-size: 11.0pt; font-weight: normal; font-style: normal;\" type=\"1\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\" value=\"1\"><span style=\"font-family: Calibri; font-size: 11.0pt; font-weight: normal; font-style: normal;\">Lowest root Bridge ID: <\/span><span style=\"font-family: Calibri; font-size: 11.0pt; font-weight: normal; font-style: italic;\">all devices agree that Core 1 is the Root switch. This does not help to select the best path<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Lowest path cost to the root bridge: <\/span><span style=\"font-style: italic; font-family: Calibri; font-size: 11.0pt;\">All links are the same speed, then the indirect paths (ports 1 and 2) are discarded because the cost is higher. Ports 43 and 44 have the same cost so it is a tie.<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Lowest sender Bridge ID: <\/span><span style=\"font-style: italic; font-family: Calibri; font-size: 11.0pt;\">BPDUs received on ports 43 and 44 are send by the same device. This criteria does not help to break the tie.<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Lowest port priority: <\/span><span style=\"font-style: italic; font-family: Calibri; font-size: 11.0pt;\">the sender will include a port priority in the BPDU. The port priority comes in the range between 0 and 240 (the lower meaning the higher priority). The default is 128. If the defaults are being used the priority is the same and therefore does not help to break the tie.<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Lowest port ID:<\/span><span style=\"font-style: italic; font-family: Calibri; font-size: 11.0pt;\"> the lowest port id is the winner. Which in this case is port 43. Port 43 becomes the Root port.<\/span><\/li>\n<\/ol>\n<ol style=\"direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in; font-family: Calibri; font-size: 14.0pt; font-weight: normal; font-style: normal;\" type=\"1\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle; color: #2e75b5;\" value=\"3\"><span style=\"font-family: Calibri; font-size: 14.0pt; font-weight: normal; font-style: normal;\">Select root port on all non-root switches<\/span><\/li>\n<\/ol>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">The criteria to select a Designated port is the same as the Root port.<\/p>\n<ol style=\"direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in; font-family: Calibri; font-size: 11.0pt; font-weight: normal; font-style: normal;\" type=\"1\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\" value=\"1\"><span style=\"font-family: Calibri; font-size: 11.0pt; font-weight: normal; font-style: normal;\">Lowest root Bridge ID<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Lowest path cost to the root bridge<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Lowest sender Bridge ID<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Lowest port priority<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Lowest port ID<\/span><\/li>\n<\/ol>\n<h3><\/h3>\n<h3>Edge Ports<\/h3>\n<p>Edge Ports connect to endpoints and do not receive BPDUs. This means they don\u2019t need to be part of the Spanning Tree algorithm and can therefore quickly transition to the forwarding state with no intermediate steps.\u00a0If BPDUs are received on an edge port, then the port will act as a normal Spanning Tree port and participate in the algorithm. You must manually configure Edge ports.<\/p>\n<p><i>Switch(config)#interface 1\/1\/1<br \/>\n<\/i><i>Switch(config-if)# spanning-tree port-type admin-edge<\/i><\/p>\n<p>An alternative to the admin-edge option is the AOS-CX administrative-network option. With this option\u00a0 the port looks for BPDUs for the first 3 seconds after the link is up, if non are received the port becomes an edge port and immediately forwards frames. If BPDUs are detected it becomes non-edge port and participates in normal STP operation.<\/p>\n<p><i>Switch(config)#interface 1\/1\/1<br \/>\n<\/i><i>Switch(config-if)# spanning-tree port-type admin-network<\/i><\/p>\n<h3>Topology Change Mechanism<\/h3>\n<p>In RSTP a topology change occurs when non-edge port move to a different state or BPDUs are no longer received.<\/p>\n<p style=\"margin: 0in; margin-left: .375in; font-family: Calibri; font-size: 11.0pt;\">Topology change process:<\/p>\n<ol style=\"direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in; font-family: Calibri; font-size: 11.0pt; font-weight: normal; font-style: normal;\" type=\"1\">\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\" value=\"1\"><span style=\"font-family: Calibri; font-size: 11.0pt; font-weight: normal; font-style: normal;\">A switch detects the topology change<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">This switch informs the rest of the switches in the network by setting the TC (Topology Change) bit in the BPDU and transmitting these BPDUs<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">The switch flushes its MAC address table entries associated with all non-edge ports<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">Other switches receive the BPDUs with the TC bit set, they then clear the MAC address table entries on al ports except for the one that received the BPDU<\/span><\/li>\n<li style=\"margin-top: 0; margin-bottom: 0; vertical-align: middle;\"><span style=\"font-family: Calibri; font-size: 11.0pt;\">These other switches then send BPDUs with the TC set<\/span><\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-904 aligncenter\" src=\"https:\/\/www.spktechfit.com\/wp-content\/uploads\/2024\/05\/5.12.png\" alt=\"\" width=\"736\" height=\"711\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Redundancy In the above example on the left, if Core 1 fails then the network is down and client A won&#8217;t be able to communicate with client B. In the example on the right, if Core 1 fails the network will say up as Core 2 is available and the Client can communicate through this. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[17,3],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts\/892"}],"collection":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=892"}],"version-history":[{"count":2,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts\/892\/revisions"}],"predecessor-version":[{"id":1001,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=\/wp\/v2\/posts\/892\/revisions\/1001"}],"wp:attachment":[{"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spktechfit.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}