Professional Documents
Culture Documents
LBDT periodically sends detection packets on an interface (see Detection Packet) to check
whether the packets return to the local device (through the same interface or another
interface), and determines whether a loop occurs on the interface, on the downstream
network or device, or between two device interfaces.
If detection packets are received by the same interface, a loopback occurs on the
interface or a loop occurs on the downstream network or device connected to the
interface.
If detection packets are received by another interface on the same device, a loop
occurs on the device or network connected to the interface.
Once a loop is detected, a Huawei switch sends a trap to the NMS and records a log. It then
takes a preconfigured action on the interface (see Action Taken After a Loop Is Detected) to
minimize the impact of the loop on the device and entire network.
When the device does not receive detection packets from the interface within the recovery
time, the device considers that the loop is eliminated and restores the interface (see
Automatic Recovery of an Interface).
Detection Packet
LBDT periodically sends detection packets on an interface to check whether the packets
return to the local device to determine whether loops occur on the interface, on the
downstream network or device, or between two device interfaces. The following conditions
must be met:
Detection packets sent from an interface are sent back to the local device when a loop
occurs on an interface, or network connected to the interface.
The system identifies detection packets sent from the local device, and detection
packets that the interface sends.
Detection packets sent from a device carry the device's MAC address and outbound
interface number. The device can identify the packets sent by itself as well as the source
interface. The packets also carry the broadcast or multicast destination MAC address to
ensure that the packets can be sent back to the local device when a loop occurs on the
interface or network connected to the interface. Figure 19-1 shows the format of LBDT
packets.
When the system detects a loop on an interface, it can take a preconfigured action on the
interface. Table 19-2 describes these preconfigured actions.
LBDT can only detect loops on a single node, but cannot eliminate loops on the entire
network. After a loop is detected, you are advised to eliminate the loop immediately.
The automatic recovery mechanism of LBDT allows the looped interface to be restored
immediately after a loop is eliminated. After the configured recovery time expires, the
system attempts to restore the looped interface. If the device does not receive detection
packets from the looped interface within the next recovery time, it considers that the loop is
eliminated on the interface and restores the interface.
The interface that is disabled by LBDT cannot be restored after the recovery time. The
interface that is manually shut down or enters the Error-Down state due to other
protocols will be automatically restored after the recovery time. However, the interface
that is disabled only by LBDT cannot be restored after the recovery time.
After the LBDT action of an interface is changed, the interface is restored. Then the
changed LBDT action is taken when a loop is detected.
If GVRP is enabled on the interface, the interface is manually removed from the
VLAN or dynamically removed from the VLAN through GVRP, and the action to be
taken is not shutdown, the interface can be restored automatically.
If GVRP is enabled on the interface, the interface is manually removed from the
VLAN or dynamically removed from the VLAN through GVRP, and the action to be
taken is shutdown, in the alarm periodically reported by the device, the
information about the VLAN where loops are detected is empty. For LBDT, You
must run the shutdown and undo shutdown commands to manually restore the
interface or run the restart command to enable the interface again. In addition to
the preceding methods, the interface that is manually shut down or enters the
Error-Down state due to other protocols will be automatically restored after the
recovery time. However, the interface that is disabled only by LBDT cannot be
restored after the recovery time.