STP Overview Video

December 12, 2013

Below is a short overview of STP and how to navigate it in the CISCO IOS enjoy.

[youtube=http://www.youtube.com/watch?v=zapAZRP7mEk&w=560&h=315]


STP Root Switch Election

November 25, 2013

The Root switch is elected in the following order:

  • Switch with the lowest Bridge ID (BID)
  • Switch with the lowest MAC address

Once the root switch is elected either by lowest BID or MAC address, this switch will be responsible for sending the periodic Hello Bridge Protocol Data Unit‘s (BPDU). These Hello BPDU’s are status messages which all switches on the LAN will receive from the root switch to indicate that the connected links are still working. This sort of works like a heartbeat for the link.

The Hello BPDU contains the following pieces of information:

  • The Roots BID
  • Sending Device’s BID
  • Sending Devices Cost to reach the Root

The hello timer defaults to 2 seconds with a MaxAge time of 10secs.

The Hello timer is the amount of time which the Root waits to send a Hello, while the MaxAge timer is used to tell the listening device how long it should wait before it converges to a new STP topology, after not receiving Hello’s for the indicated amount of time.


Etherchannels

October 20, 2013

To finish up the first topic under LAN Switching Technologies, identifying enhanced switching technologies. I will give you an overview of Etherchannels.

What they are, what they do and how to configure one for yourself.

Firstly an Etherchannel is a configuration that allows a switch to treat two parallel links as one physical link. This also allows STP to treat the entire channel as one and either block or forward traffic over this link as per vlan.

As a result of this, the switch can now load balance traffic over the channel. Without Etherchannel one of the links would be blocked by STP, as is shown in the example below.

Before Etherchannel, STP blocks Fa0/2 from SW1.

In the above example, SW0 and SW1 are connected via two links. Fa0/1 to Fa0/1 and Fa0/2 to Fa0/2, but due to STP it has blacked Fa0/2 on SW1 from forwarding frames. STP at this point see’s these two links as they are, separate from one another.

02_spanning-tree_onSW1When we run a show spanning-tree command on SW1 we discover that, port Fa0/1 is in a forwarding state as the RP, Port Fa0/2 is blocked and Fa0/3 is the DP. Running the show spanning-tree command on SW0 would show us that it is the Root Bridge and all three ports are DP’s or Designated Ports.

To make STP use both the Fa0/1 and Fa0/2 links on SW0 and SW1 we need to configure the interfaces in the same Channel-group or Etherchannel. Doing so will change how STP see’s those two links. From two separate links to one link which can be used to load balance. We are not actually making one physical link but like a VLAN where we can make many Virtual LAN’s we are creating one Virtual Link using 2 parallel links.

For this network the configuration is virtually the same, just remember you will need to add the correct interfaces in the same channel group for an Etherchannel to become active.

The following image shows you how to correctly configure an Etherchannel, using the command channel-group 1 mode on, you can configure upto 8 parallel links on the one Etherchannel.

03_Channel-group

Below you can see the new show spanning-tree output displayed on SW1 after the Etherchannel has been configured. Notice the Po1, that indicates that all the configuration parameters checked and that is the new channel group 1, which was configured earlier.

04_newSTPonSW1

The new diagram, with the two links now bundled in the new Etherchannel. Notice how Fa0/2 has come out of blocking mode to become a RP

05_Etherchannel


PVSTP – Per VLAN Spanning Tree Protocol

October 19, 2013

The second item under the topics in the new ICND2 200-101 exam, requires that you can identify PVSTP.

PVSTP or Per VLAN Spanning Tree Protocol  does just that, each VLAN will have a different STP setup or topology, as it is done on per VLAN basis.

As the engineer this provides you with a great tool to load balance traffic over the network, using some configuration options you can decide what switches will become root.

Note: All of the interfaces on the Root switch will be DP’s

PVSTP

 

 

 

 

 

 

The above example show you how the two VLANs have a different topology.


RSTP Overview

October 16, 2013

Rapid Spanning Tree Protocol or RSTP (801.W) is an improved version of STP (801.D). RSTP works alot like STP does but it has improved convergence times. The difference between STP and RSTP is the discarding role.

RSTP has three port states:

  • Discarding
  • Learning
  • Forwarding

Learning and forwarding correspond to the same function just like STP but discarding is the name given for STP’s Disabled, Blocking and Listening States.

Election of the root switch, Root ports, Designated ports and tiebreakers all work exactly the same in RSTP when compared to STP


Problems avoided using STP

October 15, 2013

If you are going to setup a LAN with redundant paths, it is important that STP is running. If not you will be opening yourself up to these few problems

  • Broadcast Storms
  • MAC Table instability
  • Multiple frame transmission

While the issue of broadcast storms may seem obvious, the other two may not be the things you think about at all. In the case of MAC table instability your switches will experience frequent updates to their MAC tables with wrong entires, from the looped frames which are being sent around the LAN.

The second issue of Multiple frame transmission can be somewhat, a disastrous side affect of not running STP. Duplicate copies of the looping frame can end up at the end host, in turn completely confusing it, resulting in discarded frames.

Luckily though on CISCO switches STP is on by DEFAULT


Spanning Tree Protocol (STP)

October 14, 2013

For those unfamiliar with this protocol, you will find that it is a very important part of switching. It is defined by IEEE 802.1D. The purpose of STP is to allow you to create a redundant topology utilising switches and bridges without creating loops. STP will dynamically elect a Root switch for which all traffic must pass through and set the appropriate interfaces in a blocking mode. This is how STP prevents frames from forever looping around the LAN.


Spanning Tree Protocol Port Roles

October 1, 2013

The diagram below is the network in use:

Switch 3

FA0/1 – DP

FA1/1 – DP

Switch 1

FA1/1 – RP

FA0/1 DP

Switch 2

FA1/1 – RP

FA0/1 – DP

Switch 0

FA0/1 – RP

FA1/1 – ALTN

The lab for this example can be downloaded  by clicking here
01_Diagram 02_STP_Ports_Roles 03_STP_Port_Roles


Setting A Switch’s Revision Number To Zero

September 1, 2013
  • configure the new switch for VTP transparent mode and then back to VTP client or server mode, which resets the VTP revision number to 0
  • Erase the new switch’s vlan.dat file in flash and reload the switch. This file contains the switch’s VLAN database, including the revision number

VLAN & VTP Switch Defaults (CISCO)

August 26, 2013
  • VTP server mode
  • No VTP domain name
  • VLAN 1 and VLAN’s 1002-1005 are automatically configured (cannot be deleted)
  • All access interfaces are assigned to VLAN 1 (an implied switchport access vlan 1 command)