{"id":4718,"date":"2022-12-13T01:04:00","date_gmt":"2022-12-13T07:04:00","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=4718"},"modified":"2022-12-12T22:39:07","modified_gmt":"2022-12-13T04:39:07","slug":"rstp-alternative-port-vs-backup-port","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/rstp-alternative-port-vs-backup-port\/","title":{"rendered":"RSTP Alternative Port vs Backup Port"},"content":{"rendered":"\n<p>The following is some basic info on STP and RSTP.  This list is not comprehensive.  Refer to the link at the bottom of the page for more in depth details.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">RSTP Priority <\/h2>\n\n\n\n<p>Default Priority is 32768 + VLAN ID<\/p>\n\n\n\n<p>For example, if we are using vlan 10, then our default priority is 32768 + 10 = 32778<\/p>\n\n\n\n<p>RSTP Priority can be set from 0 &#8211; 61440 in increments of 4096.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">RSTP Port Roles<\/h2>\n\n\n\n<p>Ports can fill 1 of 4 roles.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Port Role<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>Root Port<\/td><td>Port closest to the Root Bridge (Switches going to the Root switch)<\/td><\/tr><tr><td>Designated Port<\/td><td>Ports going away from the Root Bridge (To clients)<\/td><\/tr><tr><td>Alternate Port<\/td><td>A &#8220;backup&#8221; port for the Root port.  If the Root Port fails, this port takes over<\/td><\/tr><tr><td>Backup Port<\/td><td>Essentially a backup port for the designated port<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">RSTP Port Roles<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">RSTP Port States<\/h2>\n\n\n\n<p>A port can be in one of 3 states.  Well technically 4 states if you include down\/unplugged.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Port State<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>Discarding<\/td><td>Port discards packets (Alternate and Backup Ports)<\/td><\/tr><tr><td>Learning<\/td><td>Port learns MACs and doesn&#8217;t forward data<\/td><\/tr><tr><td>Forwarding<\/td><td>Port forwards data and learns MACs<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">RSTP Port States<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">RSTP Port Types<\/h2>\n\n\n\n<p>There are 3 port Types.  Not to be confused with port States or Roles.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Port Type<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>Point to Point<\/td><td>Switch to Switch<\/td><\/tr><tr><td>Point to Point Edge<\/td><td>Edge of Network.  Connected to a PC, Printer etc.<\/td><\/tr><tr><td>Shared<\/td><td>Half Duplex, Port connected to a Hub<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">STP\/RSTP Port Types<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">RSTP Timers<\/h2>\n\n\n\n<p>There are three RSTP timers.  STP has the same timers, but the MaxAge is 10 seconds, and the Forward Delay is used for both Learning and Listening states which takes a total of 30 seconds to complete.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Timer Name<\/strong><\/td><td><strong>Default Value<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>Hello Timer<\/td><td>2 Seconds<\/td><td>Time between Hellos created by Root<\/td><\/tr><tr><td>MaxAge<\/td><td>6 Seconds (Hello Timer * 3)<\/td><td>How long a Switch should wait before trying to readjust the network<\/td><\/tr><tr><td>Forward Delay<\/td><td>15 Seconds<\/td><td>Delay used for Learning\/Listening in STP.  Shouldn&#8217;t be necessary if legacy bridges are not used. <\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">RSTP\/STP Timers<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Port Cost<\/h2>\n\n\n\n<p>There are technically two types of cost.  The newer cost values were introduced so we could use faster ethernet speeds.  <\/p>\n\n\n\n<p>By default Cisco switches use the old cost values, but they can be changed to use the new ones.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">spanning-tree pathcost method long<\/pre>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Ethernet Speed<\/strong><\/td><td><strong>Old Cost<\/strong><\/td><td><strong>New Cost<\/strong><\/td><\/tr><tr><td>10 Mbps<\/td><td>100<\/td><td>2,000,000<\/td><\/tr><tr><td>100 Mbps<\/td><td>19<\/td><td>200,000<\/td><\/tr><tr><td>1 Gbps<\/td><td>4<\/td><td>20,000<\/td><\/tr><tr><td>10 Gbps<\/td><td>2<\/td><td>2000<\/td><\/tr><tr><td>100 Gbps<\/td><td>N\/A<\/td><td>200<\/td><\/tr><tr><td>1 Tbps<\/td><td>N\/A<\/td><td>20<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">STP\/RSTP Path Cost<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>More information can be found at the following link.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.cisco.com\/c\/en\/us\/support\/docs\/lan-switching\/spanning-tree-protocol\/24062-146.html\">https:\/\/www.cisco.com\/c\/en\/us\/support\/docs\/lan-switching\/spanning-tree-protocol\/24062-146.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following is some basic info on STP and RSTP. This list is not comprehensive. Refer to the link at the bottom of the page for more in depth details. RSTP Priority Default Priority is 32768 + VLAN ID For &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/rstp-alternative-port-vs-backup-port\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1366],"tags":[1367,670,1371,128,1369,1368],"class_list":["post-4718","post","type-post","status-publish","format-standard","hentry","category-ccna","tag-ccna","tag-cisco","tag-learning","tag-networking-2","tag-rstp","tag-stp"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=4718"}],"version-history":[{"count":7,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4718\/revisions"}],"predecessor-version":[{"id":4725,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4718\/revisions\/4725"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=4718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=4718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=4718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}