Buoi 16 - Spanning Tree
Buoi 16 - Spanning Tree
IPMAC
Networking Academy
Spanning Tree Protocol
Broadcast
Storm !!!
IPMAC
Networking Academy
The Good, the Bad, and the Happy
IPMAC
Networking Academy
How Spanning Tree Works
The Spanning Tree Algorithm places each bridge or switch port int
either a forwarding state or a blocking state.
Forwarding means that the interface CAN forward or receive data
frames.
Blocking means that the interface CAN NOT forward or receive
data frames.
STP’s job is to figure out how to put the correct interfaces into
blocking and forwarding states to prevent loops but allow
frames to be sent between every segment.
1. STP select a root brigde, STP put all interfaces on it in
forwarding state.
2. On each nonroot brigde, STP places the port receiving
lowest-cost BPDU from the root, called root port, in
forwarding state.
3. The bridge forwarding the lowest-cost BPDU onto
segment is the designated bridge for that segment. And
the port attached to segment, designated port, is placed
in forwarding state.
4. All other interfaces are placed in blocking state.
IPMAC
Networking Academy
Electing the Root …
IPMAC
Networking Academy
… and Discovering Root Ports …
IPMAC
Networking Academy
… and Discovering Designated Ports
IPMAC
Networking Academy
Spanning Tree Operation (The result)
One root bridge per network (Forwarding)
One root port per nonroot bridge (Forwarding)
One designated port per segment (Forwarding)
Nondesignated ports are unused (Blocking)
IPMAC
Networking Academy
Default Port Costs
IPMAC
Networking Academy
Reacting to Changes in the Network
The STP topology does not change unless the network topology
changes.
The root bridge sends a new hello
BPDU every 2 seconds by default.
IPMAC
Networking Academy
Optional STP Features
IPMAC
Networking Academy
Optional STP Features (cont)
IPMAC
Networking Academy
RSTP Convergence
IPMAC
Networking Academy
RSTP Convergence Example
Step 1: the network has no redundancy.
Step 2: SW4 realizes that it is receiving a better BPDU than the one
that entered from SW3.
IPMAC
Networking Academy
RSTP Convergence Example
IPMAC
Networking Academy
RSTP Convergence Example
IPMAC
Networking Academy
RSTP Convergence Example
Step 6
Old BPDU
Step 5: SW3 repeat the same SW1
is better
than One
process that SW4 just performed. from SW3
SW4
IPMAC
Networking Academy
Summary
IPMAC
Networking Academy
Stop here!
IPMAC
Networking Academy