OpenvSwitch – Spanning-Tree Priority for Specific VLAN ID

ovssdnspanning treevlan

I'm new to the SDN technology,
I have 12 year's experience working with Cisco products,

On Cisco devices, a user can set different STP priority Per VLAN ID
Like :

Switch(config)#spanning-tree VLAN 10 priority 32768

On OpenvSwitch STP priority could be set on BRIDGE but not per VLAN!

ovs-vsctl set Bridge br0 other_config:stp-priority=32768

Is there any way to set priority for specific VLAN ID like vlan 10?

Best Answer

The per-VLAN spanning tree concept (PVST, PVST+, RPVST+) is proprietary Cisco and only a few other vendors support it - OVS doesn't.

The IEEE Multiple Spanning-Tree Protocol (MSTP) allows running multiple instances (each with its own spanning tree) which you can group your VLANs into. This isn't supported by OVS either.

RSTP is supported but it's 'flat' in regard to VLANs - there's only a single instance and no way to utilize redundant links. You can only set global bridge and port priorities.

However, OVS does support Shortest Path Bridging MAC (802.1aq) which is superior to STP - you should give it a look. Interfacing your physical switches with STP and the OVS structure with SPB may prove difficult though.