Академический Документы
Профессиональный Документы
Культура Документы
GC
Topic: Spanning Tree Protocol 2018-2019
1/28
GC
Spanning Tree Protocol 2018-2019
2/28
1
01/12/2018
GC
What STP does 2018-2019
GC
What STP does (cont.) 2018-2019
If the link between SW1 and SW3 fails, STP converges so that
SW3 no longer blocks its 0/27 interface
H1 H2
H3
4/28
2
01/12/2018
GC
How STP works 2018-2019
GC
Bridge Protocol Data Units (BPDUs) 2018-2019
6/28
3
01/12/2018
GC
Types and format of BPDUs 2018-2019
dictated
by the root
bridge 7/28
GC
Types of BPDUs (cont.) 2018-2019
Root Bridge ID: the identifier of the bridge assumed to be the root
bridge
Root Path cost: cost of the least-cost path to the root bridge from
the bridge transmitting this configuration BPDU
Bridge ID: identifier of the bridge transmitting this configuration
BPDU
Port ID: identifies the port from which the configuration BPDU is
sent
Hello Time: the time that elapses between consecutive configuration
BPDUs, generated by the root (or by a bridge that assumes itself to
be the root); the default value is 2 seconds.
Maximum age: how long a bridge should wait, after beginning not to
hear hellos, before trying to change the topology; the default value is
20 seconds.
Forward Delay: used to defer the transition to the forwarding state
of a port that was in blocking state; the default value is 15 seconds.
8/28
4
01/12/2018
GC
Bridge identifier and port identifier 2018-2019
GC
Port cost 2018-2019
5
01/12/2018
GC
Port cost (cont.) 2018-2019
GC
Election of the root bridge 2018-2019
6
01/12/2018
GC
Election of the root bridge (cont.) 2018-2019
13/28
GC
Election of the root bridge (cont.) 2018-2019
Cost = 100
Cost = 100
14/28
7
01/12/2018
GC
Selection of the root port 2018-2019
GC
Selection of the root port (cont.) 2018-2019
SW2
SW2
16/28
8
01/12/2018
GC
Selection of the designated port 2018-2019
c Designated port
GC
Reacting to changes in the network 2018-2019
Each bridge uses the repetitive (every hello time) hearing of hellos
from the root as a way to know that its path to the root is still
working
The root bridge dictates the Hello time, the Max age, and the Forward
delay
• All the bridges in the bridged LAN use the same values
If a bridge does not receive a hello for Max age seconds,
something is failed or, in general, changed
It injects TCNs into the network in order to start the process of changing
the spanning tree
• It advertises itself as root again or believes the next best claim of who should
be the root
In order to avoid loops, a port that has to move from blocking state to
forwarding state enters the interim listening state first
After the Forward Delay amount of time, the port state is changed to
learning state
After another Forward Delay amount of time, the interface is (finally!)
placed in forwarding state
18/28
9
01/12/2018
GC
Spanning Tree Intermediate States 2018-2019
The listening state allows each device to wait to make sure that
there are no new, better hellos with a new, better root
The learning state allows the bridge to learn the new location of
MAC addresses without allowing forwarding and possibly causing
loops
GC
Topology Change Notifications 2018-2019
10
01/12/2018
GC
How to avoid STP convergence time 2018-2019
GC
Rapid Spanning Tree Protocol 2018-2019
22/28
11
01/12/2018
GC
Rapid Spanning Tree (cont.) 2018-2019
Discarding means that the port does not forward frames, process
received frames, or learn MAC addresses, but it listens for BPDUs
it acts just like the STP blocking state
RSTP uses an interim learning state, which works just like the STP
learning state, but for only a short time
Some mechanisms aiming at reducing convergence time have been
defined. For example,
RSTP designates ports that receive
suboptimal BPDUs as alternate ports Edge
Root switch
• If a non-root switch (e.g., SW3 in the
figure) stops getting hellos from the
root switch, RSTP on that switch Links
chooses the best alternate port as the
new root port
RSTP immediately places the ports
related to edges in forwarding state
when the links are active 23/28
GC
Rapid Spanning Tree (cont.) 2018-2019
(a) (b)
24/28
12
01/12/2018
GC
Some STP security considerations 2018-2019
Distribution
Layer B Legend
A
Root port
Root
Designated port
Blocking port
Access Layer
C D
Hello
Rogue switch
(PC with bridging)
25/28
GC
Some STP security considerations (cont.) 2018-2019
Distribution
Layer Legend
A B
Root port
Designated port
Blocking port
Access Layer
C D
The network manager could set the root bridge priority to zero in
an effort to secure the root bridge position, but there is no
guarantee against a bridge with a priority of zero and a lower MAC
address 26/28
13
01/12/2018
GC
Some STP security considerations (cont.) 2018-2019
In the figure below, the attacker has established two links to two
different access switches
The attacker tries to change the spanning tree by sending out BPDUs with a
bridge priority of zero from his PC
Distribution
Layer B Legend
A
Root Root port
Designated port
Blocking port
Access Layer
C D
Hello
Hello
Rogue switch
(PC with bridging)
27/28
GC
Some STP security considerations (cont.) 2018-2019
14