Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Understanding VSTP for EX Series Switches

Juniper Networks EX Series Ethernet Switches provide Layer 2 loop prevention through Spanning Tree Protocol (STP), Rapid Spanning Tree Protocol (RSTP), Multiple Spanning Tree Protocol (MSTP), and VLAN Spanning Tree Protocol (VSTP). The default factory configuration for EX Series switches uses RSTP. If you use VLANs, however, we recommend that you enable MSTP unless your network requires the device compatibility provided by VSTP. Switches configured to run VSTP automatically assign each VLAN to one spanning-tree instance that runs RSTP. While this approach is useful to optimize network usage in small networks with a limited number of VLANs, a VSTP configuration in a network with several hundred VLANs can overload switch CPUs. MSTP ensures that your network is not slowed down by the increased network traffic caused by hundreds of VLANs, each with its own spanning-tree instance.

When using VSTP, you can selectively configure up to 253 VLANs per switch—additional VLANs use RSTP. (VSTP and RSTP are the only spanning-tree protocols that can be configured concurrently on a switch.)

Note: When you configure VSTP, we recommend that you enable VSTP on all VLANs that can receive VSTP bridge protocol data units (BPDUs).

Note: When you configure VSTP with the set protocol vstp vlan all command, VLAN ID 1 is not set; it is excluded so that the configuration is compatible with Cisco PVST+. If you want VLAN ID 1 to be included in the VSTP configuration on your switch, you must set it separately with the set protocol vstp vlan 1 command.

Selecting a Spanning-Tree Protocol

The default factory configuration for EX Series switches is RSTP, a faster version of STP. To determine which spanning-tree protocol is best for your situation, see Table 1.

Table 1: Selecting a Spanning-Tree Protocol

ProtocolAdvantagesDisadvantages

RSTP

  • Rapid Spanning Tree Protocol is the default switch configuration and is recommended for most network configurations because it converges more quickly than STP after a failure.
  • Voice and video work better with RSTP than they do with STP.
  • RSTP is backward compatible with STP so switches do not all have to run RSTP.
  • RSTP supports more ports than MSTP or VSTP.
  • RSTP does not work with 802.1D 1998 bridges.
  • RSTP is not recommended for multiple VLAN networks because it is not VLAN-aware—as a result, all VLANs within a LAN share the same spanning tree. This limits the number of forwarding paths for data traffic.

STP

  • Spanning Tree Protocol works with 802.1D 1998 bridges.
  • RSTP is backward compatible with STP so switches do not all have to run STP.
  • STP is slower than RSTP.
  • STP is not recommended for multiple VLAN networks because it is not VLAN-aware—as a result, all VLANs within a LAN share the same spanning-tree. This limits the number of forwarding paths for data traffic.

MSTP

  • Multiple Spanning Tree Protocol works with most VLANs.
  • RSTP and STP are recognized as distinct Spanning Tree regions by MSTP.
  • Some protocols require compatibility that is not provided by MSTP. In this case, use VSTP.
  • MSTP supports a limited number of ports.
  • MSTP uses more CPU than RSTP and does not converge as fast as RSTP.

VSTP

  • VLAN Spanning Tree Protocol works with VLANs that require device compatibility.
  • VSTP and RSTP are the only spanning-tree protocols that can be configured concurrently on a switch.
  • With VSTP there can be only STP instance per VLAN, whereas MSTP lets you combine multiple VLANs in one instance.
  • VSTP supports a limited number of ports compared to RSTP.
  • VSTP uses more CPU than RSTP and does not converge as fast as RSTP.

Published: 2012-12-07