Advanced Spanning Tree: What If ?
Advanced Spanning Tree: What If ?
What If ?
Refer to the topology below and assume no spanning
tree protocol is currently in use; what would happen if
User A sent traffic to User Z?
DS-1
AS-1
User A
172.23.10.86/24
DS-2
AS-2
AS-3
User Z
172.23.10.88/24
www.juniper.net | 2
AS-1
User A
172.23.10.86/24
DS-2
AS-3
AS-2
User Z
172.23.10.88/24
Traffic will be forwarded through the root bridge towards the destination
www.juniper.net | 3
Root Bridge
ge-0/0/1.0
AS-1
DS-2
ge-0/0/8.0
DS-1
ge-0/0/8.0
ge-0/0/12.0
AS-2
www.juniper.net | 4
D F
R F
AS-1
DS-2
ge-0/0/1.0
D
F
A
B
R
D
F
ge-0/0/12.0
D F
ge-0/0/8.0
Root Bridge
DS-1
ge-0/0/8.0
R
F
A B
AS-2
Forwarding = F
Blocking = B
Root Port = R
Designated Port = D
Alternate Port = A
www.juniper.net | 5
AS-1
DS-2
ge-0/0/1.0
ge-0/0/8.0
Root Bridge
DS-1
ge-0/0/8.0
ge-0/0/12.0
Forwarding = F
Blocking = B
Root Port = R
Designated Port = D
R
F
A B
AS-2
Alternate Port = A
2012 Juniper Networks, Inc. All rights reserved.
www.juniper.net | 6
AS-1
User A
172.23.10.86/24
User B
172.23.20.86/24
DS-2
AS-3
AS-2
User C
172.23.10.87/24
User D
172.23.20.87/24
User E
172.23.10.88/24
User F
172.23.20.88/24
www.juniper.net | 7
DS-1
AS-1
User A
172.23.10.86/24
User B
172.23.20.86/24
User C
172.23.10.87/24
AS-3
AS-2
User D
172.23.20.87/24
User E
172.23.10.88/24
User F
172.23.20.88/24
DS-1
AS-1
AS-3
AS-2
www.juniper.net | 9
MST Region-2
MST Region-1
CST
www.juniper.net | 10
CST
MST Region-2
MST Region-1
RSTP-only switch
DA
SA
LLC
FCS
Data
MST BPDU
Optional MSTI
Configuration Messages
www.juniper.net | 11
CST
MST Region-1
MST Region-2
RSTP-only switch
MST regions appear as virtual bridges for the root bridge calculation within the CST
DA
SA
LLC
MST BPDU
Data
FCS
Optional MSTI
Configuration Messages
MSTP Configuration
[edit protocols mstp]
user@switch# show
configuration-name <configuration-name>;
revision-level <revision-level>;
bridge-priority <priority>
msti <msti-id> {
bridge-priority <priority>;
vlan (vlan-id | vlan-name);
}
msti <msti-id> {
bridge-priority <priority>;
vlan (vlan-id | vlan-name);
}
Configuration name = X
Revision level = y
MSTI-to-VLAN mapping = z
Configuration name = X
Revision level = y
MSTI-to-VLAN mapping = z
VLANs
20 - 29
MST Region-1
DS-2
DS-1
ge-0/0/12.0
ge-0/0/8.0
ge-0/0/9.0
ge-0/0/10.0
AS-1
ge-0/0/10.0
AS-2
AS-3
www.juniper.net | 14
VLANs
20 - 29
MST Region-1
DS-1
DS-2
ge-0/0/12.0
ge-0/0/8.0
ge-0/0/9.0
ge-0/0/10.0
AS-1
ge-0/0/10.0
AS-2
AS-3
Note that all access switches (AS-1, AS-2, and AS-3) retain the default bridge priority value for both MSTIs
www.juniper.net | 15
MSTI
Member VLANs
0 0-9,30-4094
1 10-19
2 20-29
www.juniper.net | 16
Port ID
128:521
128:523
128:525
Designated
port ID
128:521
128:523
128:525
Designated
bridge ID
32768.0019e25173c0
32768.0019e25173c0
32768.0019e25173c0
Port
Cost
20000
20000
20000
State
Role
FWD
FWD
FWD
DESG
DESG
DESG
Port
Cost
20000
20000
20000
State
Role
FWD
FWD
FWD
DESG
DESG
DESG
Port
Cost
20000
20000
20000
State
Role
FWD
FWD
FWD
DESG
DESG
ROOT
Port ID
128:521
128:523
128:525
Designated
port ID
128:521
128:523
128:525
Designated
bridge ID
4097.0019e25173c0
4097.0019e25173c0
4097.0019e25173c0
Port ID
128:521
128:523
128:525
Designated
port ID
128:521
128:523
128:525
Designated
bridge ID
8194.0019e25173c0
8194.0019e25173c0
4098.0019e2551d40
www.juniper.net | 17
: 0
: MSTP
:
:
:
:
:
:
:
:
:
:
32768.00:19:e2:51:73:c0
32768.00:19:e2:51:73:c0
0
2 seconds
20 seconds
15 seconds
5
8152 seconds
ge-0/0/8.0
00:26:88:02:70:88
: 32768.00:19:e2:51:73:c0
: 0
: 0
www.juniper.net | 18
VLAN-1
VLAN-2
VLAN-3
VLAN-4
VLAN-5
DS-2
DS-1
AS-1
AS-2
AS-3
www.juniper.net | 19
VSTP Considerations (1 of 2)
Some VSTP considerations include:
Supports up to 253 different spanning-tree topologies
You selectively determine which VLANs participate in VSTP
VLAN-253
VLAN-254
VLAN-255
VSTP
RSTP
VLAN-1
VLAN-2
VLAN-253
VLAN-254
VLAN-255
www.juniper.net | 20
10
VSTP Considerations (2 of 2)
Some VSTP considerations include (contd):
As you add VLANs, more CPU resources are consumed
A separate BPDU is sent out for each configured VLAN
VLAN-1
VLAN-2
VLAN-3
DA
SA
VLAN
TAG
LLC
SNAP
BPDU
FCS
VSTP BPDU format is the same as RSTP format with an added type, length, and
value that advertises the same VLAN ID found in the VLAN tag
www.juniper.net | 21
VSTP Configuration
[edit protocols vstp]
user@switch# show
disable;
force-version stp;
vlan-group {
group <group-name> {
vlan (vlan-id | vlan-id-range);
bridge-priority <priority>
}
}
vlan (all | vlan-id | vlan-name) {
bridge-priority <priority>;
max-age <seconds>;
forward-delay <seconds>;
interface (all | interface-name) {
cost <cost>;
disable;
mode <mode>;
edge;
}
}
www.juniper.net | 22
11
VLANs
10 - 19
DS-2
DS-1
AS-1
AS-3
AS-2
www.juniper.net | 23
VLANs
20 - 29
VLANs
10 - 19
DS-2
DS-1
AS-1
AS-2
AS-3
Note that AS-1, AS-2, and AS-3 retain the default bridge priority value for both VLAN groups
2012 Juniper Networks, Inc. All rights reserved.
www.juniper.net | 24
12
Port ID
Designated
Designated
port ID
bridge ID
ge-0/0/8.0
128:521
128:521
4106.0019e25173c0
ge-0/0/10.0
128:523
128:523
4106.0019e25173c0
ge-0/0/12.0
128:525
128:525
4106.0019e25173c0
Port
Cost
20000
20000
20000
State
Role
FWD
FWD
FWD
DESG
DESG
DESG
Interface
Port
Cost
20000
20000
20000
State
Role
BLK
FWD
BLK
ALT
ROOT
ALT
ge-0/0/8.0
ge-0/0/10.0
ge-0/0/12.0
Port ID
128:521
128:523
128:525
Designated
port ID
128:523
128:521
128:525
Designated
bridge ID
4116.0019e2551d40
4116.0019e2551d40
4116.0019e2551d40
www.juniper.net | 25
: 1
: RSTP
:
:
:
:
:
:
:
:
:
4106.00:19:e2:51:73:c0
2 seconds
20 seconds
15 seconds
0
1
464 seconds
ge-0/0/8.0
00:19:e2:55:1d:4a
: 4106.00:19:e2:51:73:c0
: 1
: 0
: 11
: RSTP
: 4116.00:19:e2:55:1d:40
www.juniper.net | 26
13
14