STP Introduction

STP is a self-configuring Layer 2 algorithm that's responsible for removing loops in a switched network while still providing path redundancy. Because a switch automatically forwards broadcasts and multicasts, STP is necessary to make sure that this traffic is not continuously forwarded throughout a switched network. Another problem with loops is that with the switch's learning function, it might mistakenly update its address table with incorrect information concerning an end station as a frame traverses a loop.

STP was developed by DEC and later incorporated into IEEE's standards as 802.1D. However, the two protocols are not compatible. In a bridged or switched network, all Layer 2 devices must run the same STP algorithm.

Bridge Protocol Data Unit

Periodically, switches send out a special multicast packet, called a Bridge Protocol Data Unit or BPDU, which helps them to advertise themselves, their configurations, and any changes that have occurred. BPDUs help switches discover the topology of the network, including loops. If the cost of a link changes, a new switch or segment is added to the network, or an existing switch or segment fails, this information is propagated via BPDUs and causes the switches to run the STP algorithm. This is done to remove any existing loops that these changes might have created and to ensure that there is still one active path between any two destinations. To ensure that only one active path exists between any two end stations, a switch places its ports in either a forward or blocking mode.

Update notifications are called topology change notifications (TCNs) and are generated in the following situations:

  • A port moves from a forwarding state to a blocking state.

  • A non-root switch receives an update notification on a port from a downstream neighboring switch.

  • A switch is forwarding traffic to a segment and another port moves into a forwarding state.

The TCNs are propagated throughout the network to ensure that all switches understand that a topology change has taken place. Note that STP is transparent to end stations in that they are unaware of the fact that they're connected to switches running STP.

graphics/alert_icon.gif

BPDU hello messages are generated every 2 seconds by switches. BPDUs elect the root, elect one switch per segment to handle forwarding functions, and remove loops by placing ports connected to a redundant path in a blocking state. TCN BPDUs are generated whenever a topology change occurs.


STP Advantages

STP provides the following items:

  • The detection and elimination of loops

  • The capability to automatically detect failed active paths and to utilize alternate paths

  • User-configurable parameters that enable a network administrator to fine-tune the algorithm's performance



BCMSN Exam Cram 2 (Exam Cram 642-811)
CCNP BCMSN Exam Cram 2 (Exam Cram 642-811)
ISBN: 0789729911
EAN: 2147483647
Year: 2003
Pages: 171
Authors: Richard Deal

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net