Hello! Frens, here is another article about STP, in this article I try to explain switch port status and how we recognize ports status as well as Root ID and Bridge ID, What MAC address STP take to elect the Root Bridge. Hope this article is useful to understand Spanning Tree Protocol and at last I try to explain why we need RSTP. I'll post another article about RSTP in coming days.
As I already explain in my previous article about STP Root
Bridge election, now we can see S1 have lowest MAC address wins the Root
Bridge, let’s verified and check the status of the switches ports.
Look at the picture above we can see, from the VLAN001,
which have Root ID and Bridge ID, Root ID have all information about the Root
Bridge, that mean S2 knows that is the Root Bridge and out port is Fa1/1, which
is Root Port and directly connected to the RB. Root Bridge has priority of
32769, MAC is 000D.BD2D.6BD9, and cost is 19 to reach the Root.
Bridge ID is information about the S2, itself, this is what
switch2 is. Where normal priority 32768 plus the VLAN number 1, S2 own MAC
address is 0030.F24E.C5A1.
Look out to the interface, Fa1/1 which is Root and its status is forwarded, its directly connected to the RB, Fa2/1 is connected to the PC which is not participating to STP and Fa0/1 is connected to S0, this one also on forwarding state.
Look out to the interface, Fa1/1 which is Root and its status is forwarded, its directly connected to the RB, Fa2/1 is connected to the PC which is not participating to STP and Fa0/1 is connected to S0, this one also on forwarding state.
Let’s look out the S1 and check the status.
From the picture, output of the S1, On Root ID information
VLAN001, priority 32769, MAC Address 000D.BD2D.6BD9, This bridge is root, so
you can see that Root ID and Bridge ID information is the same because this is
the Root Bridge for this network. All of its port is designated and forwarding
state. Root always have all its ports in designated none of its port in block
state.
Now look at the S0 information, in S0 you can see Fa0/1 is
Root and its directly connected and forwarding state. Fa1/1 is in blocking
state because it has the highest MAC address and its prevent the loop in the
network.
From the topology form the picture, now we are going to
change the root, we just make S2 a root bridge, lets see the status of the S2.
Command to change STP root bridge, you can see on above screeshots.
swtich#conf t
switch(config)#spanning-tree vlan 1 root primary
switch(config)#end
switch#show spanning-tree
All its ports became designated, this bridge is root. After
changing state S2 became the root now S0 have worst MAC address, so S0 fa0/1 is
on blocking state. Take a look on priority, its change to lower to 24577, which is increment of 4096. This is the basic configuration of Spanning tree.
Now consider this scenario, the primary link is down, how
long STP take to bring back secondary link online, how long it take time to
change the route? Your phone is ringing; all asking what is going on? Why the
link is down, what is going on?
This is happen because STP is created in long time ago, when
no one care 30 to 60s downtime in the network, now the situation is change, a
second downtime is not expected by the people.
We can analyze cisco switch, whenever you plug your cisco
switch, you can see Amber led blinking, this is STP, by default Cisco Switch
have STP enable. When its power on, switch is on Listening state for 15s, than its
goes 15s for learning then forwarding and if switch goes for Blocking state, it
still goes down for 20s, that is because its wait if primary link back online. We
have 50s network outage to find out our primary link is down. This is not
acceptable for today’s network. That’s why RSTP is handy for today's
network.
Comments
Post a Comment