Skip to content

STP

STP prevents layer-2 loops in switched topologies. netverdict models root election, path cost, blocked/forwarding decisions, and common protection features in a deterministic way.

AreaLevelNotes
Classic STPBehaviour modelRoot bridge and port roles are derived from topology/config.
PVSTBehaviour modelVLAN-aware STP decisions for common Cisco-style labs.
RSTPBehaviour modelRapid mode configuration and deterministic role/state outcome.
MSTPartialInstance mapping is represented where configured; full MSTP packet exchange is simplified.
BPDU guardBehaviour modelEdge-port protection can block/error-disable ports.
StandardCoverageNotes
IEEE 802.1DBehaviour modelRoot/path/port role concepts.
IEEE 802.1wPartialRSTP role/state outcome.
IEEE 802.1sPartialMST instance mapping surface.
FeatureStatusNotes
Root bridge electionSupportedPriority then bridge ID tie-break.
Root port selectionSupportedPath cost and stable tie-breaks.
Designated/blocking portsSupportedPrevents modelled L2 loops.
PortFastSupportedEdge intent and guard interaction.
BPDU guardSupportedProtects edge ports.
Root guardPartialGuard surface represented where implemented.
Storm controlBehaviour modelRelated L2 protection in storm-bpdu module.
CommandIOS-styleJunos-styleVyOS-styleNotes
spanning-tree vlan 10 priority 4096Supportedn/aPartialRoot election influence.
spanning-tree mode rapid-pvstSupportedn/an/aMode selection.
spanning-tree portfastSupportedn/aPartialEdge port intent.
spanning-tree bpduguard enableSupportedn/aPartialEdge protection.
show spanning-treeSupportedPartialPartialModel-derived STP state.

STP is solved to a stable topology state. The engine does not simulate every BPDU interval, but it does make the forwarding/blocking result explicit.

Canonical example
configure terminal
spanning-tree mode rapid-pvst
spanning-tree vlan 10 priority 4096
interface GigabitEthernet0/1
spanning-tree portfast
spanning-tree bpduguard enable
end
show spanning-tree

Vendor styles

IOS-style
spanning-tree mode rapid-pvst
spanning-tree vlan 10 priority 4096
interface GigabitEthernet0/1
spanning-tree portfast
spanning-tree bpduguard enable
Junos-style
set protocols rstp bridge-priority 4k
set protocols rstp interface ge-0/0/1.0 edge
set protocols rstp bpdu-block-on-edge
VyOS-style
set protocols spanning-tree mode rstp
set protocols spanning-tree priority 4096
set protocols spanning-tree interface eth1 edge

TCN propagation timing, proposal/agreement packet races, full MST region digest behaviour, and vendor debug output are not complete support claims.