Other CCNA Topics

If you find this page useful check out my other revision pages:

Bookmark and Share

Excellent Cisco CCNA Test Engine
Free CCNA Tests

  • Nik Makris is a Learning Tree .NET Enterprise Application Development Certified Professional
    .NET Enterprise Application Development
    Certified Professional
    Learning Tree International
  • Nik Makris is certified under the CCNA® program
    Nik Makris is certified under the CCNA® program
  • Nik Makris is Google Analytics Qualified
    Nik Makris has obtained the Google Analytics Individual Qualification

Cisco CCNA - Spanning Tree Protocol - 802.1d

Spanning Tree Protocol

The Spanning Tree Protocol was created by DEC (Digital Equipment Corporation) now Compaq. This is not compatible with the IEEE 802.1d version which Cisco use.

The Spanning Tree Protocol:

  • Prevents loops, loops cause broadcast storms
  • Allows redundant links
  • Resilient to topology changes
  • STA (Spanning Tree Algorithm) - Used to calculate loop-free path
  • BPDUs (Bridge Protocol Data Units) are sent and received by switches in the network every 2 seconds (default) to determine spanning tree topology.

Bridge Priority - Numerical value held by switches. All Catalyst switches are 32768
Bridge ID = MAC Address

Cisco CCNA Cramsheet

Spanning Tree States
BlockingNo frames forwarded, BPDUs heard
ListeningNo frames forwarded, listening for frames
LearningNo frames forwarded, learning addresses
ForwardingFrames forwarded, learning addresses
DisabledNo frames forwarded, no BPDUs heard

STA - Spanning Tree Algorithm

Spanning Tree Algorithm is used to calculate a loop-free path.

All switch ports are in blocking mode to begin with. It takes approx 30 seconds until packets can be forwarded.

Step 1 : Elect Root Bridge - Lowest bridge priority, if there is a tie then switch with lowest bridge ID
Step 2 : Elect Root Ports - Locate redundant paths to root bridge; block all but on root. Root Path Cost is cumulative cost of path to root bridge. Ports directly connected to Root Bridge will be root ports, otherwise lowest root path cost used.
Step 3 : Elect Designated Ports - Single port that sends and receives traffic from a switch to and from Root Bridge - Lowest cost path to Root Bridge.

Spanning Tree Overview

  • There can only be one Root Bridge.
  • Root-Bridge ports are called 'Designated' and are set to send and receive traffic (forwarding state). All other redundant links to the root bridge are shutdown.
  • Blocked ports still receive BPDUs.
  • Convergence occurs when switches have transitioned to either forwarding or blocking states. No other data is forwarded during this time.
  • Forward delay - Time taken for a switch to go from Listening to Learning (50 seconds default).
  • IEEE default priority = 32,768, this is true for all devices running STP IEEE version.
  • Port Fast Mode - Immediately brings a port from blocking to forwarding state by eliminating forward delays.
  • Bridges can only have one spanning tree instance compared to switches which can have many.
  • Bridge Protocol Data Units send confirmation messages using multicast frames.

Next set of revision notes: ISDN revision notes