"Switch" switch RLDP (loop detection & link detection) function introduction and configuration instructions

2019/11/2012:50:10 technology 2990

Function Introduction
RLDP stands for Rapid Link Detection Protocol, which is a link protocol independently developed by Ruijie Networks to quickly detect Ethernet link failures. Z3z's general Ethernet link detection mechanism only uses the state of the physical connection to detect the connectivity of the link through auto-negotiation at the physical layer.
However, this detection mechanism has certain limitations. In some cases, it cannot provide users with reliable link detection information. For example, the fiber receiving line on the fiber port is incorrectly connected. Due to the existence of the fiber converter, the corresponding port of the device is physically It is linkup, but the actual corresponding Layer 2 link cannot communicate. For another example, an intermediate network is set up between two Ethernet devices. Due to the existence of network transmission relay devices, if these relay devices fail, the same problem will be caused. Using the RLDP protocol, users of
can easily and quickly detect link failures of Ethernet devices, including unidirectional link failure, bidirectional link failure, and loop link failure.


1. Networking requirements:
users in various departments of the enterprise access the network through Switch A and Switch B. The network is interrupted due to link interruption or non-equipment factors such as network loops caused by users. By configuring RLDP loop detection and single- and two-way link detection functions, the fault can be quickly located and handled, so as to restore the network in time and reduce network interruption to the enterprise Business losses caused. The main requirements are:
1, once a loop failure or unidirectional and bidirectional link failure is detected, troubleshoot according to the configured failure handling method;
2, if the port configured with shutdown-port failure handling fails, it is required to actively restore its RLDP Detect and restart all ports that failed RLDP detection.

2. Network topology:

3. Configuration points:
1. Configure the port RLDP after configuring the global RLDP, and configure the diagnosis type and fault handling method at the same time.
Note: For loop detection, RLDP cannot be enabled on the downstream port (the port that connects the device to the user or server in each department of the enterprise); for single- and two-way link detection, RLDP must be enabled on the device docking port. If the port is a routing port, you can only use warning, block, or shutdown-port troubleshooting methods. Shutdown-svi troubleshooting methods are not supported.
2, in the privileged mode, use the rldp reset command to restart all the ports that failed RLDP detection.

4. Configuration steps:
Note: It is recommended to use Ruijieshow interface status to view the interface name before configuration. Common interface names are FastEthernet (100M), GigabitEthernet (Gigabit) and TenGigabitEthernet (10 Gigabit). The following configuration takes Gigabit interface as an example .

1) Enable RLDP on the device. Enable global RLDP on
Switch A.
SwitchA>enable
SwitchA configure terminal
SwitchA(config)rldp enable ------>Enable RLDP function The configuration of
Switch B is the same as above.

2) Configure the diagnosis type and fault handling method on the device port.

Enable port RLDP on Switch A, configure loop detection and fault handling method block on port Gi0/1, configure unidirectional link detection and fault handling method warning on port Gi0/2 (note that Gi0/ of Switch A 2 is interconnected with Gi0/3 of Switch B. If unidirectional link detection is configured on Gi0/2, unidirectional link detection must also be configured on Gi0/3 of Switch B. Otherwise, an alarm or interface may be caused by misconfiguration. block, or the interface enters the disable state, if the interface is blocked or disabled, it may cause the connection of the interface to be interrupted)

SwitchA(config)interface gigabitEthernet 0/1 //Configure loop detection and troubleshooting method on port Gi0/1 block

SwitchA(config-if)rldp port loop-detect block ------> Configure if RLDP detects that there is Loop, then change the interface status to block

SwitchA(config-if)exit

SwitchA(config)interface gigabitEthernet 0/2 //Configure unidirectional link detection and troubleshooting methods on port Gi0/2 warning

SwitchA(config-if)rldp port unidirection-detect warning ------>Configure if the link connected to the port can only receive packets or can only send packets (such as one-way reception or one-way transmission due to an error in the fiber receiving line connection), then print Alarm log

Note: For single- and two-way link detection, RLDP must be enabled on the device docking port, otherwise the device will consider the link to be faulty because it has not received the rldp message from the opposite end, and take corresponding measures ( For example, block or disable the interface)

SwitchA(config-if)exit

enable port RLDP on Switch B, configure loop detection and fault handling method block on port Gi0/4, and configure a unidirectional link on port Gi0/3 Shutdown-port (note that Gi0/2 of Switch A and Gi0/3 of Switch B are interconnected, if unidirectional link detection is configured on Gi0/2, it must also be configured on Gi0/3 of Switch B One-way link detection, otherwise it may cause an alarm due to misconfiguration, or the interface block, or the interface enters the disable state. If the interface is blocked or disabled, the downstream network of the interface may be interrupted).

SwitchB(config)interface gigabitEthernet 0/4 //Configure loop detection and troubleshooting method on port Gi0/4 block

SwitchB(config-if)rldp port loop-detect block ------>Configure if RLDP detects that there is Loop, then change the interface status to block

SwitchB(config-if)exit

SwitchB(config)interface gigabitEthernet 0/3 //Configure unidirectional link detection and troubleshooting method on port Gi0/3 shutdown-port

SwitchB(config-if) rldp port unidirection-detect shutdown-port ----->Configure if the link to which the port is connected can only receive packets or can only send packets (for example, one-way reception or one-way transmission due to incorrect connection of optical fiber receiving lines) , Then disable the interface disable

SwitchB(config-if)exit

. Note: For unidirectional and bidirectional link detection, RLDP must be enabled on the device docking port, otherwise the device will think that the link is faulty because it has not received the rldp message from the peer. , And perform corresponding measures (such as block or disable the interface, etc.)

3) Configure the interval for the RLDP port to be automatically restored by the shutdown interface.
Switch A configuration command:
SwitchA(config)errdisable recover interval 300 -----The unit is seconds. The configuration of
Switch B is the same as above

4) Save the configuration
Switch A Save the configuration
Switch A(config)end
Switch Awrite ------> Confirm the configuration is correct, save the configuration
Switch B Save the configuration
Switch B(config)end
Switch Bwrite ------> Confirm the configuration is correct, save the configuration

Note: The user can also In the global configuration mode, use the errdisable recover command to restart the RLDP detection of the port that is set as a violation by rlp immediately or regularly.

5. Configuration verification:
to view RLDP information of all ports of the device.
Switch A RLDP information for all ports
SwitchAshow rldp
rldp state: enable -----whether to enable rldp, enable means enable
rldp hello interval: 3 -------rldp keepalive interval
rldp max hello: 2
rldp local bridge: 00d0 .f822.33aa
-----------------------------------
Interface GigabitEthernet 0/2
port state: normal --- --Interface status, normal means normal
neighbor bridge: 00d0.f800.41b0
neighbor port: GigabitEthernet 0/3
unidirection detect information:
action: warning
state: normal
Interface GigabitEthernet 0/1
port state: normal
neighborz bridge: 0000.00 information port:
ighborz bridge: 0000.00 information: block
state: normal

RLDP information of all ports of Switch B, same as above

technology Category Latest News