Showing posts with label L2 Network Availability Protocols. Show all posts
Showing posts with label L2 Network Availability Protocols. Show all posts

IEEE 802.1D Spanning Tree Protocol | L2 Network Availability Protocols



In TelePresence campus networks, redundant paths are encouraged within the network design; however, redundant paths might cause Layer 2 loops and, thus, recursive forwarding and packet drops.
The IEEE 802.1D Spanning Tree Protocol (STP) prevents loops from being formed when switches are interconnected through multiple paths. SPT implements the Spanning Tree Algorithm by exchanging Bridge Protocol Data Unit (BPDU) messages with other switches to detect loops and then removes the loop by blocking selected switch interfaces. This algorithm guarantees that there is one—and only one—active path between two network devices, as illustrated in Figure 1.

 
Figure 1: STP-based redundant topology
STP prevents a loop in the topology by transitioning all (STP-enabled) ports through four STP states:
  • Blocking: The port does not participate in frame forwarding. STP can take up to 20 seconds (by default) to transition a port from Blocking to Listening.
  • Listening: The port transitional state after the Blocking state when the spanning tree determines that the interface should participate in frame forwarding. STP takes 15 seconds (by default) to transition between Listening and Learning.
  • Learning: The port prepares to participate in frame forwarding. STP takes 15 seconds (by default) to transition from Learning to Forwarding (provided such a transition does not cause a loop; otherwise, the port will be set to Blocking).
  • Forwarding: The port forwards frames.
Figure 2 illustrates the STP states, including the disabled state.

 
Figure 2: STP port states
You can enable STP globally on a per-VLAN basis (referred to as Per-VLAN Spanning Tree [PVST]) by entering the following command:
Switch(config)# spanning-tree vlan 100
The two main availability limitations for STP follow:
  • To prevent loops, redundant ports are placed in a Blocking state and as such are not used to forward frames and packets. This significantly reduces the advantages of redundant network design, especially for network capacity and load-sharing.
  • Adding up all the times required for STP port-state transitions shows that STP can take up to 50 seconds to converge on a loop-free topology. Although this might have been acceptable when the protocol was first designed, it is certainly unacceptable today.
Both limitations are addressable using additional technologies. The first limitation can be addressed by using the Cisco Virtual Switching System, and the second limitation can be addressed by various enhancements that Cisco developed for STP.

UniDirectional Link Detection | L2 Network Availability Protocols



In TelePresence campus networks, a link can transmit in one direction only, causing a lengthy delay in fault detection and, thus, excessive packet loss.
UniDirectional Link Detection (UDLD) protocol is a Layer 2 protocol that uses a keepalive to test that the switch-to-switch links connect and operate correctly. Enabling UDLD is a prime example of how to implement a defense-in-depth approach to failure detection and recovery mechanisms because UDLD (a L2 protocol) acts as a backup to the native Layer 1 unidirectional link detection capabilities provided by IEEE 802.3z (Gigabit Ethernet) and 802.3ae (Ten Gigabit Ethernet) standards.
The UDLD protocol allows devices connected through fiber-optic or copper Ethernet cables connected to LAN ports to monitor the physical configuration of the cables and detect when a unidirectional link exists. When a unidirectional link is detected, UDLD shuts down the affected LAN port and triggers an alert. Unidirectional links, such as shown in Figure 1, can cause a variety of problems, including spanning tree topology loops.

 
Figure 1: Unidirectional link failure
You can configure UDLD to be globally enabled on all fiber ports by entering the following command:
Switch(config)# udld enable
Additionally, you can enable UDLD on individual LAN ports in interface mode by entering the following commands:
Switch(config)# interface GigabitEthernet8/1
Switch(config-if)# udld port
Interface configurations override global settings for UDLD.