0% found this document useful (0 votes)
39 views23 pages

3 STP

Uploaded by

anhtuan29
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views23 pages

3 STP

Uploaded by

anhtuan29
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 23

Implementing Spanning Tree

Describing the STP


Transparent Bridging

A switch has the same characteristics as a transparent bridge.


What Is a Bridge Loop?

Bridge loops can occur any time there is a redundant path or


loop in the bridge network.
Preventing Bridge Loops

Bridge loops can be prevented by disabling the redundant


path.
802.1D STP

• Configured root switch


• Redundant switch links
• Optimal path selection
Bridge Protocol Data Unit

BPDUs provide for the exchange of information between switches.


The STP Root Bridge

• Reference point
• One root per VLAN
• Maintains topology
• Propagates timers
Root Bridge Selection Criteria
Extended System ID in Bridge ID Field

Bridge ID
Without the
Extended
System ID

Bridge ID with
the Extended
System ID
802.1D 16-bit Bridge Priority Field Using the
Extended System ID

• Only four high-order bits


of the 16-bit Bridge
215 4 12 bits 20
Priority field carry actual bits
priority. Priority VLAN Number
• Therefore, priority can be
incremented only in steps
of 4096, onto which will be Priority Values (Hex) Priority Values (Dec)
added the VLAN number. 0 0
1 4096
• Example: 2 8192
For VLAN 11: If the priority . .
is left at default, the 16-bit . .
Priority field will hold 8 (default) 32768
32768 + 11 = 32779. . .
. .
F 61440
Configuring the Root Bridge

Switch(config)#spanning-tree vlan 1 root primary

• This command forces this switch to be the root.


Switch(config)#spanning-tree vlan 1 root secondary

• This command configures this switch to be the secondary root.

Or

Switch(config)#spanning-tree vlan 1 priority priority

• This command statically configures the priority (in increments


of 4096).
Root Bridge Selection

Which switch has the lowest bridge ID?


Spanning Tree Operation

• One root bridge


per network
• One root port per
nonroot bridge
• One designated
port per segment
• Nondesignated
ports are blocking
Spanning Tree Port States
Spanning tree transitions each port through several
different states.
Local Switch Root Port Election
Spanning Tree Path Cost

Link Speed Cost (Revised IEEE Spec) Cost (Previous IEEE Spec)

10 Gbps 2 1

1 Gbps 4 1

100 Mbps 19 10

10 Mbps 100 100


Spanning Tree Protocol
Root Port Selection

• SW X is the root bridge.


• SW Y needs to elect a root port.
• Which port is the root port on SW Y?
• Fast Ethernet total cost = 0 + 19.
• Ethernet total cost = 0 + 100.
STP Designated Port Selection

• Switch X is the root bridge.


• All ports on the root bridge are designated ports because they
have a path cost of 0.
• Because the Ethernet segment has a path cost of 100, switch Y
will block on that port.
• Do all segments have a designated port? => Yes
Example: Layer 2 Topology Negotiation
Enhancements to STP

• PortFast
• Per VLAN Spanning Tree+ (PVST+)
• Rapid Spanning Tree Protocol (RSTP)
• Multiple Spanning Tree Protocol (MSTP)
– MSTP is also known as Multi-Instance Spanning Tree
Protocol (MISTP) on Cisco Catalyst 6500 switches and
above
• Per VLAN Rapid Spanning Tree (PVRST)
Describing PortFast
Configuring PortFast

Configuring
• spanning-tree portfast (interface command)
or
• spanning-tree portfast default (global command)
– enables PortFast on all nontrunking ports

Verifying
• show running-config interface fastethernet 1/1

You might also like