Example for Configuring LBDT to Detect Loopbacks on an Interface

Created Feb 28, 2019 17:02:01 17 0 0 0

Overview

When a loop occurs on a network, broadcast, multicast, and unknown unicast packets are repeatedly transmitted on the network. This wastes network resources and may even cause a network breakdown. To minimize the impact of loops on a Layer 2 network, a detection technology that quickly notifies users of loops is required. When a loop occurs, users are requested to check network connections and configurations, and control the problematic interface.

Loopback detection (LBDT) periodically sends LBDT packets on an interface to check whether the packets return to the local device (receive and transmit interfaces can be different), and determines whether loops occur on the interface, local network, or downstream network.
  • If LBDT packets are received and sent by the same interface, a loopback occurs on the interface or a loop occurs on the network connected to the interface.

  • If LBDT packets are received by another interface on the same device, a loop occurs on the network connected to the interface or device.

After loops are detected, the device can send alarms to the NMS and record logs, and can control the interface status (the interface is shut down by default) according to the device configuration so that the impact of loops on the device and network is minimized. The device provides the following actions after LBDT detects a loop:
  • Trap: The device reports a trap to the NMS and records a log, but does not take any action on the interface.

  • Block: The device blocks this interface, and can forward only BPDUs.

  • No learning: The interface is disabled from learning MAC addresses.

  • Shutdown: The device shuts down the interface.

  • Quitvlan: The interface is removed from the VLAN where a loop occurs.

The problematic interface continues to send LBDT packets. After the configured recovery time expires, the system attempts to restore the problematic interface. If the device receives no LBDT packets from the problematic interface within the next recovery time, it considers that the loop is eliminated on the interface and restores the interface.

LBDT can only detect loops on a single node, but cannot eliminate loops on the entire network in the same manner as ring network technologies of ERPS, RRPP, SEP, Smart Link, and STP/RSTP/MSTP/VBST.

Configuration Notes

  • This example applies to all versions of all S series switches.
  • In V200R008C00 and earlier versions, LBDT does not take effect in dynamic VLANs. In V200R008C00 and later versions, the LBDT-enabled switch can detect loops in dynamic VLANs, but the Quitvlan action is invalid for dynamic VLANs.

  • LBDT needs to send a large number of LBDT packets to detect loops, occupying system resources. Therefore, disable LBDT if loops do not need to be detected.

  • LBDT cannot be configured on an Eth-Trunk or its member interfaces.

  • An interface can send LBDT packets with the specified VLAN tag only when the specified VLAN has been created.

  • LBDT can detect loops in a maximum of eight VLANs.

  • When the PVID of the interface in the loop is the detected VLAN ID or the interface joins the detected VLAN in untagged mode, VLAN tags of LBDT packets are removed. As a result, the packet priority changes and the system may fail to detect loops.

  • When the Quitvlan action is used, the configuration file remains unchanged.

  • The LBDT action and MAC address flapping action affect each other, and cannot be configured simultaneously.

  • The Quitvlan action of LBDT conflicts with dynamic removal from VLANs (for example, GVRP and HVRP), and cannot be configured simultaneously.

  • The blocked ports of LBDT cannot block GVRP packets. To ensure that GVRP runs normally and prevent GVRP loops, do not enable GVRP on the blocked port of LBDT.
  • On a modular switch, LBDT and loop detection (LDT) cannot be configured simultaneously.

Networking Requirements

In Figure 6-37, aggregation switch SwitchA on an enterprise network connects to access switch SwitchB. To prevent loopbacks on a TX-RX interface (GE1/0/0) because optical fibers are connected incorrectly or the interface is damaged by high voltage, SwitchA is required to detect loopbacks on GE1/0/0. Furthermore, it is required that the interface be blocked to reduce the impact of the loopback on the network when a loopback is detected, and the interface be restored after the loopback is removed.

Figure 6-37  Networking for configuring LBDT to detect loopbacks on an interface 
imgDownload?uuid=c0e7e7965bd240b9ab20909

Configuration Roadmap

To detect loopbacks on downlink interface GE1/0/0 of SwitchA, configure LBDT on GE1/0/0 of SwitchA. The configuration roadmap is as follows:

  1. Enable LBDT on GE1/0/0 of SwitchA to detect loopbacks.
  2. Configure an action to be taken after a loopback is detected and set the recovery time. After a loopback is detected, the Switch blocks the interface to reduce the impact of the loopback on the network. After a loop is eliminated, the interface can be restored.

Procedure

  1. Enable LBDT on an interface.

    <HUAWEI> system-view[HUAWEI] sysname SwitchA[SwitchA] interface gigabitethernet 1/0/0[SwitchA-GigabitEthernet1/0/0] loopback-detect enable  //Enable LBDT on the interface.[SwitchA-GigabitEthernet1/0/0] quit

  2. Configure an action to be taken after a loop is detected and set the recovery time.

    [SwitchA] interface gigabitethernet 1/0/0[SwitchA-GigabitEthernet1/0/0] loopback-detect action block  //Configure the Block action to be taken after a loop is detected.[SwitchA-GigabitEthernet1/0/0] loopback-detect recovery-time 30  //Set the recovery delay to 30s.[SwitchA-GigabitEthernet1/0/0] quit

  3. Verify the configuration.

    1. Run the display loopback-detect command to check the LBDT configuration.

      [SwitchA] display loopback-detect Loopback-detect sending-packet interval:  5                                                                                         
                                                                                                                                          
      ----------------------------------------------------------------------------------                                                  
      Interface                     RecoverTime  Action     Status                                                                        
      ----------------------------------------------------------------------------------                                                  
      GigabitEthernet1/0/0          30           block      NORMAL                                                                        
      ---------------------------------------------------------------------------------- 

      The preceding command output shows that the LBDT configuration is successful.

    2. After about 5s, run the display loopback-detect command to check whether GE1/0/0 is blocked.

      [SwitchA] display loopback-detect Loopback-detect sending-packet interval:  5                                                                                         
                                                                                                                                          
      ----------------------------------------------------------------------------------                                                  
      Interface                     RecoverTime  Action     Status                                                                        
      ----------------------------------------------------------------------------------                                                  
      GigabitEthernet1/0/0          30           block      BLOCK(Loopback detected)                                                                        ----------------------------------------------------------------------------------

      The preceding command output shows that GE1/0/0 is blocked, indicating that a loopback occurs on GE1/0/0.

    3. Manually remove the loopback. Run the display loopback-detect command to check whether GE1/0/0 is restored.

      [SwitchA] display loopback-detect Loopback-detect sending-packet interval:  5                                                                                         
                                                                                                                                          
      ----------------------------------------------------------------------------------                                                  
      Interface                     RecoverTime  Action     Status                                                                        
      ----------------------------------------------------------------------------------                                                  
      GigabitEthernet1/0/0          30           block      NORMAL                                                                        ----------------------------------------------------------------------------------

      The preceding command output shows that GE1/0/0 is restored.

Configuration Files

SwitchA configuration file

#
sysname SwitchA
#
interface GigabitEthernet1/0/0
 loopback-detect recovery-time 30
 loopback-detect enable
 loopback-detect action block
#
return

See more please click 

https://support.huawei.com/enterprise/en/doc/EDOC1000069520/9aadccc0/comprehensive-configuration-examples


  • x
  • convention:

Responses

Reply
You need to log in to reply to the post Login | Register

Notice:To ensure the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but not limited to politically sensitive content, content concerning pornography, gambling, drug abuse and trafficking, content that may disclose or infringe upon others' intellectual properties, including commercial secrets, trade marks, copyrights, and patents, and personal privacy. Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see“ Privacy Policy.”
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top