▸Protocol notes for this page (click to expand)

MSTP (Multiple Spanning Tree Protocol)

What MSTP fixes

STP and RSTP compute one spanning tree, so the blocked link forwards for no VLAN: of two uplinks only one is used, and half the bandwidth stays idle.

MSTP (802.1s) computes a different spanning tree for each group of VLANs. With VLAN 10 on sw1-sw2 and VLAN 20 on sw1-sw3, both links carry traffic.

How it works

VLANs are grouped into instances (MSTIs); each instance computes its own tree, elects its own root bridge and blocks a different port.

· Instance 1 (VLAN 10): root sw2, blocks sw1-sw3;
· Instance 2 (VLAN 20): root sw3, blocks sw1-sw2.

So every link forwards for at least one instance; no link sits completely idle.

Requirement: the VLAN-to-instance mapping must be identical on every switch, or a loop forms.

Common misconceptions

One tree per VLAN is PVST (Cisco-proprietary), and it overloads switch CPUs once there are many VLANs. MSTP puts a group of VLANs on one tree, so a few instances are enough.

An inconsistent mapping creates a loop. If two switches are configured differently about which instance VLAN 10 belongs to, they block different ports and some VLAN's loop is left unblocked.

MSTP does not increase a single VLAN's bandwidth. It puts all links to work, but each VLAN still uses one path.