💡
Network Fundamentals
  • About This Site
  • Network
  • Medium
  • Types of Network:
  • LAN
  • MAN
  • WAN
  • Internet
  • Types of Internet Connections
  • Cable Connection
  • DSL Connection
  • Internet Standard & Protocols
  • Internet Networking Model
  • SNA Networking Model
  • OSI Networking Model
  • TCP-IP Networking Model
  • TCP-IP Layers
  • Application Layer
  • HTTP (Hyper Text Transfer Protocol)
  • Transport Layer
  • TCP (Transmission Control Protocol)
  • Network Layer
  • IP (Internet Protocol)
  • IPv4:
  • IPv4 Address parts
  • IPv4 Address Classes
  • IPv6:
  • Data-Link Layer
  • Physical Layer
  • An Ethernet
  • A SOHO LAN Network
  • An Enterprise LAN Network
  • Physical Layer Standards
  • Data-Link Layer Standards
  • Transmitting Data over Ethernet UTP
  • Transmitting Data over Fiber Optic Cable (using Hot-Pluggable Transceivers)
  • Cabling Pinouts (Ethernet UTP)
  • Cabling Pinouts (Fiber Optic)
  • Ethernet Standards (UTP)
  • Ethernet Standards (Fiber Optic)
  • LAN Data-Link Layer Protocols
  • Ethernet Addressing (MAC)
  • Types of Networking Devices
  • HUB
  • SWITCH
  • CSMA/CD (Carrier Sense Multiple Access / Collision Detection):
  • Lease-Line WAN
  • WAN Data-Link Layer Protocols
  • HDLC Encapsulating and Re-encapsulating
  • Ethernet WAN (EoMPLS)
  • IP Routing (BIG FLOW)
  • Router
  • Subnetting
  • Binary Rules
  • Binary Method Example 1
  • Binary Method Example 2
  • Binary Method Example 3
  • Subnetting Quick Method Rules
  • Subnetting Quick Method Example 1
  • Subnetting BEST Method Rules
  • Subnetting BEST Method Example 1
  • Subnetting BEST Method Example 2
  • Subnetting BEST Method Example 3a
  • Subnetting BEST Method Example 3b
  • Subnetting BEST Method Example 3c
  • Subnetting BEST Method Example 4
  • Dynamic Routing Protocol
  • DNS (Domain Name System)
  • ARP (Address Resolution Protocol)
  • PING (Packet Internet Groper)
  • Cisco OS (IOS)
  • Memory Types
  • Cisco CLI
  • Console Port:
  • Telnet Access (Teletype network) (P No. 23):
  • SSH (Secure Shell) (P No. 22)
  • Console Cabling
  • CLI Modes
  • Securing User Mode and Privileged Mode
  • Securing User & Privileged Mode For Console Users
  • Securing User & Privileged Mode For Telnet Users
  • Securing User & Privileged Mode For SSH Users
  • AAA (Authentication, Authorization and Accounting) Server
  • AAA 802.1x Protocols(Radius & TACACS+)
  • Ethernet LAN Switching
  • VLAN
  • Configuring VLAN
  • VTP (Vlan Trunking Protocol)
  • Trunk Port
  • Trunking Protocol (802.1Q)
  • DTP (Dynamic Trunking Protocol)
  • Voice VLAN
  • Why STP?
  • What STP Does?
  • How STP works?
  • STP Messages (BPDU)
  • Electing a RB (Root Bridge/Switch)
  • Electing One Root Port (on each Non RB)
  • Elect One/Multiple Designated Ports on each Non RB:
  • Changing the STP Settings:
  • STP (Spanning Tree Protocol)
  • STP Convergence (if something changes/link fails):
  • STP (Spanning Tree Protocol) Versions
  • STP/RSTP States:
  • PortFast
  • BPDU Guard
  • RSTP (Rapid Spanning Tree)
  • Port Roles in RSTP
  • RSTP Port States
  • Ether Channel
  • Switched Virtual Interface
  • Half Duplex
  • Full Duplex
  • Autonegotiation
  • Duplex Mismatch:
  • Verifying Duplex Mismatch
  • Number History
  • 10 to the power of x
  • 2 to the power of x
Powered by GitBook
On this page

How STP works?

PreviousWhat STP Does?NextSTP Messages (BPDU)

Last updated 4 years ago

we understood STP's is to Block a port on the loop to break the Loop & to do that STP puts the port either in Forwarding mode or in the Blocking mode in.

  • Initially STP's STA (Spanning Tree Algorithm) creates a (spanning) Tree structure of ports that are in the forwarding State to & from each Ethernet link just like the structure of a tree from the base to it's each leaf.

  • That means only works on deciding which interface to put in the forwarding State & then simply put the rest in a Blocking State.

  • As all the L2 switches does the same L2 functions hence there must be some criteria just for the sake of formality or for the sake of election.

  • 3 Criteria to put an interface in a Forwarding Mode:

  • :

  • :

  • :

    Root Port

    Designated Port

    Least path cost from Non-RB to reach the RB

    Lowest STP Cost

    Single port on each Non-Root Bridge

    Single/Multiple Port on every Switch

    No Root Ports on the RB

    All ports of the RB are Designated Ports

    Root Port's opposite end will always be a Designated Port

    Designated Port's opposite end will either be a Designated/Non-Designated

  • Remaining Ports will automatically be elected as Non-Designated Ports & STP will put them in the Blocking State to avoid Loop.

  • Failed interfaces (interfaces with no cable installed) or administratively shutdown interfaces are placed in disabled state not to be confused with the shut down state)

Reference:

  • CCNA 200-301 OCG, Volume 1, Pg. 216-217, 223 - Wendell Odom.

  • ).

Previously
main job
STP
Elect a RB
Elect One Root Port on each Non RB
Elect One/Multiple Designated Ports on each Non RB
https://www.omnisecu.com/cisco-certified-network-associate-ccna/difference-between-root-port-and-designated-port.php#:~:text=The Root Port is the,Root Bridge (Root Switch).&text=There can be ONLY one,on a Bridge (Switch
https://community.cisco.com/t5/switching/stp-root-port-vs-designated-port/td-p/1517842
https://vimeo.com/ondemand/ccna200301/397383326?autoplay=1