Spanning Tree Protocol (STP) is defined in the IEEE 802.1D standard. The primary purpose of STP is to attempt to provide a loop-free topology in a redundant Layer 2 network environment. The word ‘attempt’ is used because implementing STP does not always guarantee a loop-free switched network. This is because STP operates by making the following assumptions about the network:
- All links are bidirectional and can both send and receive BPDUs
- The switch is able to regularly receive, process, and send BPDUs
NOTE: BPDU is the acronym for Bridge Protocol Data Unit. Spanning Tree BPDUs will be described in detail later in this chapter.
If any of these two assumptions are not true (e.g. there may be a unidirectional Fiber link), then STP may fail and a network loop may be created. To address this, Cisco IOS software supports several stability features, such as Unidirectional Link Detection (UDLD), that are recommended in STP networks. UDLD and other STP stability and enhancement features will be described in detail later in this chapter.