Rapid Spanning-Tree Protocol.
- New standard originally defined in IEEE 802.1w
- Now incorporated as IEEE 802.1D -2004
Changes cs Legacy STP
- Simplifies port states
- additional port roles
- Rapid convergence based on synchronization process
- Path calculation remains the same.
Legacy STP Uses
- Disabled
- Blocking
- Listening
- Learning
- Forwarding
RSTP Simplifies to…
- Discarding – Dropping frames
- Learning – Dropping Frames but building the CAM
- Forwarding – Normal Forwarding
RSTP Ports Roles
- Port roles are decoupled from port states
- Root Port & Designated Port
- New Roles : Alternate(compared to uplinkfast ) , Backup Designated ( activates if the primary Designated port fails) & Edge ( immediately transitions to forwarding , Do not generate TCN for state change).
Maintains edge status as long as no BPDUs are received.
- If BPDU received , remove edge status and Generate TCN.
RSTP Link Types
- Non-edge
- Point – point
- shared
Only Point to point Designated ports use the sync process for rapid convergence.
RSTP Sync Process
- Goal is for a bridge to synchronize its root port with the rest for the topology.
- When a bridge elects a root port it assumes all non-edge ports to be designated ( all no-edge ports are discarding at this moment ).
- Bridge sends proposals out all designated ports ( Proposal has port roles set to designated ports : Proposal contains root bridge info ( priority , cost , etc ).
- Downstream bridges review this information ( if they don’t have better paths to the root they agree : If they do have it they announce their information.)
- When designated port receives agreement , it is unblocked .
- If downstream bridge sends a better root information , local bridge changes root port.
- if downsteam bridge agrees to upstream proposal , then it ( elects a local root port , Blocks all non-edge designated ports , Starts sync process on all designated ports
- Port blocking is essential in preventing transient loops.
RSTP Fault Detection
- In legacy STP , BPDUs are only generated by root Bridge ( all other bridges forward them on )
- Is RSTP , each bridge generates BPDU every Hello interval.
- If 3 hellos are missed from a neighbor re-convergence begins ( 6sec vs 20 sec Max age )
Max Age is used as hop Count
- Every bridge sends BPDUs on its own
- Age incremented by every bridge
- Max Age also on shared ports for legacy STP backward compatibility.
Faults can be detected faster by means of physical signalling.
RSTP Convergence
- RSTP needs to re-converge when root ports lost
- If there is an Alternate port , it is selected in place of old Root Port ( new root is then Synchronized with down stream bridges.)
- If there are no Alternate ports and no better info ( declare itself as root , Synchronise adapt to better info )
RSTP Topology Change
- Originated by switch that detected the event
- uses special BPDU bit to signal topology change
- flooded by all switches using reverse path forwading
Flushes MAC table address tables
- causes temporary excessive unicast traffic flooding
- Use Egde ports as much as possible.
spanning-tree portfast bpduguard default global configuration command. Spanning tree shuts down ports that are in a Port Fast-operational state if any BPDU is received on them. In a valid configuration, Port Fast-enabled ports do not receive BPDUs. Receiving a BPDU on a Port Fast-enabled port means an invalid configuration, such as the connection of an unauthorized device, and the BPDU guard feature puts the port in the error-disabled state. When this happens, the switch shuts down the entire port on which the violation occurred.
panning-tree portfast bpdufilter default global configuration command. This command prevents interfaces that are in a Port Fast-operational state from sending or receiving BPDUs. The interfaces still send a few BPDUs at link-up before the switch begins to filter outbound BPDUs. You should globally enable BPDU filtering on a switch so that hosts connected to these interfaces do not receive BPDUs. If a BPDU is received on a Port Fast-enabled interface, the interface loses its Port Fast-operational status, and BPDU filtering is disabled.