Beruflich Dokumente
Kultur Dokumente
Objective
After completing this section, youll be able to:
BPDU format
Vlan Instances
2
Regions
Table of Contents
3
1 Spanning Tree Protocol - Principles
4
What is Redundancy and Why?
5
Redundancy is needed- How about loops?
Broadcast and multicast frames are flooded out all ports, except the
one on which the frame was received. That will result in broadcast
storms. (NO TTL in L2 !)
!!! LOOP
X
X
7
Root Switch Election
Cost
Cost 1G
Bridge ID 100 M
Bridge ID
Priority = 32K
1. Priority
Priority = 32K
2. Mac-Address
100 M
10 M
Priority = 32K
8
Bridge ID Format
Bridge
MAC-Address
Priority
2 Bytes 6 Bytes
Range: 0 65,535
Default: 32768
9
BPDU and Bridge ID
BPDU
10
Port Roles
D D
100 M 1G
R
R
D
100 M
Alternate port 10 M
(Blocked)
X R
11
Spanning Tree Port Stages
LINK is UP
BLOCKING
Loss of BDPU- Default aging time 20 sec
LISTENING
15 sec No Traffic
LEARNING
No BPDU 15 sec- Mac@ learnt- No Traffic
Anymore
FORWARDING
12
Spanning Tree Protocol Convergence Topology Change
TC : Topology change
TCA: TC Ack
13
STP Convergence Time
A switched network with STP has converged only when all ports are
rather in Blocking or Forwarding State.
Blocking ports only receive BPDUs.
Forwarding ports receive BPDUs, they also send and receive traffic.
14
2 Rapid Spanning Tree Protocol
15
Rapid Spanning Tree Protocol - States
Disabled Discarding No No
Blocking Discarding No No
Listening Discarding No No
Learning Learning Yes Yes
Forwarding Forwarding Yes Yes
16
(Rapid) Spanning Tree Protocol - BPDU Format
Proposal
TC TCA
Port Role
Learning
Forwarding
17 Agreement
During Topology Change BPDU Handling
STP RSTP
BPDU Non-root bridge only transmits Bridge sends BPDU on all ports
handling BPDUs when it receives one on the
root port
BPDU Aging BPDU is aged after the max-age BPDUs are used like keepalive
timer expires (when no BPDU is messages (after 3 BPDUs in a row are
received on the port) missed it ages it out)
Transition to Based on timers (Forward Delay and Uses a feedback mechanism (no timers
forwarding Max-Age) involved) --- Sync Process
state
18
Example: Inferior BPDUs Convergence for Indirect Links
Priority = 32K
Priority = 4096
A
Blocking
B Listening
Forwarding
Better
BPDU
X
DC
BPDU
D
I am the ROOT
Priority = 16K
19
Rapid Spanning Tree Protocol - Link Designations
LINK TYPE
(SHARED)
EDGETYPE
(P2P)
EDGETYPE
LINK TYPE (SHARED)
(P2P)
20
Topology Change Detection and Propagation
Only non-edge ports that move to the forwarding state cause TCs.
The initiator of the TC floods as opposed to STP where only the root
did.
21
STP vs. RSTP Topology Change Behaviour
STP RSTP
Topology Sends TC BPDUs towards root Sends BPDUs (with TC bit set) on
change all designated and root ports
Topology Replies with BPDU with TCA bit No acknowledgement (clears MAC
ACKs set from Root addresses on all ports)
23
Rapid Spanning Tree Protocol Sync Process
1. Designated Port in discarding or learning state, it sets the proposal bit on BPDUs it
sends out.
2. Switch-A gets a superior information, it sets p1 as root port . Then, Switch-A starts
sync process to see all the ports are updated or not with latest information.
3. After sync, Switch-A sends agreement setting the bit at BPDU. --- A copy of the
same BPDU from root switch. This time, the agreement bit is set in BPDU message.
PROCESS COMPLETED
Note: Now p0 and p1 are in
forwarding state.
1: Proposal
3: Agreement, p1 p0
Forwarding
R p1
SYNC
PROCESS
D
X
B
R
D R B
R
X
R
B D D
R
EDGETYPE
EDGETYPE
25
3 Multiple Spanning Tree Protocol
26
How about Multiple VLAN situation?
(R)STP concludes
to block the link
between Sw-A and
Sw-C
X
VLAN 200
VLAN 200
VLAN 100 VLAN 100
PC-B
PC-A
27
Multiple Spanning Tree Protocol
X
X VLAN 200
VLAN 200
VLAN 100 VLAN 100
VLAN 200
PC-A PC-B
INSTANCE 1
INSTANCE 2
VLAN: 100, ...
VLAN: 200, ...
28
What is MSTP Multiple Spanning Tree Protocol
Here we call one STP as one instance. One loop per instance
will be there. One spanning Tree per instance.
5 29
Multiple Spanning Tree Protocol - Regions
X
MST Region
32