Spanning Tree Protocol: and Other Advanced Ethernet Topics
Spanning Tree Protocol: and Other Advanced Ethernet Topics
2E1623
Data Links and Local
Area Networks
Learning Bridges—Loop Problem
2
From B. A. Forouzan: Data Communications and Networking, 3rd ed, McGraw-Hill
Spanning Tree—Basic Idea
3
Spanning Tree Starting Point
4
From B. A. Forouzan: Data Communications and Networking, 3rd ed, McGraw-Hill
Spanning Tree Process
5
Before Spanning Tree
6
From B. A. Forouzan: Data Communications and Networking, 3rd ed, McGraw-Hill
Applying Spanning Tree
7
From B. A. Forouzan: Data Communications and Networking, 3rd ed, McGraw-Hill
Forwarding Ports and Blocking Ports
Blocked
• Convergence
All bridges should reach a unified view of
the spanning tree
Not forwarded!
10
Bridge Protocol Data Unit (BPDU)
2 1 1 1 8 4 8 2 2 2 2 2
Root
Proto BPDU Root Bridge Port Msg Max Hello Forward
Ver Flags Path
ID Type ID ID ID Age Age Time Delay
Cost
2 6 2 6
MAC MAC
Priority Priority
Address Address
11
Initial State
<A,0,A> <A,0,A>
<B,0,B> <C,0,C>
I am root I am root
<C,0,C>
<B,0,B>
B C
12
Root Bridge Recognized
<A,0,A> <A,0,A>
<A,1,C>
<A,1,B>
B C
I am I am
designated designated 13
Designated Bridge Recognized
<A,0,A> <A,0,A>
<A,1,B>
B C
I am
designated 14
Ports Disabled
<A,0,A> <A,0,A>
<A,1,B>
B C
I am
designated 15
Topology Changes and Learning Table
Incorrect forwarding
o “Black hole”
• Solution:
Faster expiration time when network
configuration has changed
16
Topology Change Notification
2 1 1 1 8 4 8 2 2 2 2 2
Root
Proto BPDU Root Bridge Port Msg Max Hello Forward
Ver Flags Path
ID Type ID ID ID age Age Time Delay
Cost
T
T
C
C
N
17
Topology Change
TCN BPDU: <Flags>
Configuration BPDU: <Root ID, Root Path Cost, Bridge ID,
Flags, Forward Delay>
I am root
A
<TCA>
Forwarding
<A,0,A,TC, D> Delay shorter
<A,0,A,TC, D>
than normal
<TC>
B C 18
Spanning Tree Protocol Timing
2 1 1 1 8 4 8 2 2 2 2 2
Root
Proto BPDU Root Bridge Port Msg Max Hello Forward
Ver Flags Path
ID Type ID ID ID age Age Time Delay
Cost
<A,0,A> <A,0,A>
I am
designated
<A,1,B>
B C
20
Ports Disabled
I am root
A
I am
designated
B C
21
Port States
Listening
BPDU processing, no
learning, no forwarding Max Age
timeout
Blocked by algorithm
Forward Delay
timeout
Forward Delay
timeout
Blocked by algorithm
Forwarding
BPDU processing,
learning, forwarding
22
Rapid Spanning Tree Protocol
Full-duplex mode
o No shared links
23
RSTP vs STP
24
Virtual Local Area Networks
Virtual LANs (VLAN)
27
From B. A. Forouzan: Data Communications and Networking, 3rd ed, McGraw-Hill
VLAN Grouping
o Ports 3, 4, 5, 6: VLAN 2
• MAC address
• Frame tagging
VLAN trunking
• GVRP
32
Autonegotiation
Ethernet Autonegotiation
34
Link Code Word
• Misconfiguration problems
Connectivity loss or performance degradation
35
Ethernet PAUSE Frames
• Flow control
Full duplex mode only
Negotiated through auto-negotiation
• Class of Service
User Priority field in IEEE 802.1Q header
DSCP
IP header IP payload
39
From QoS, RSVP and MPLS Lecture
Quality of Service Switching
802.1Q CoS
o Ignored, set to predefined value, or
computed from DSCP
…
40
Multicast
41
Summary
Multiple Spanning
Tree Protocol (MSTP)
42
Reading Instructions
43