A multi-device backup platform runs Huawei proprietary Redundancy User Information (RUI) protocol to back up user information between devices in a Virtual Router Redundancy Protocol (VRRP) group. This allows fast service switching to be performed if a network node or link fails, enhancing service reliability.
Establishing a multi-device backup platform includes configuring basic VRRP group functions, a remote backup profile (RBP), and a remote backup service (RBS).
Perform the following steps on both the master and backup devices:
The system view is displayed.
The view of the interface on which a VRRP group is configured is displayed.
A VRRP group is created, and a virtual IP address is assigned to the VRRP group.
The same VRID and virtual IP address must be set on each of devices that back up one another.
The VRRP group is configured as an mVRRP group.
The priority of a device in the VRRP group is configured.
The devices in the VRRP group must be assigned different VRRP priorities. The device with a higher priority serves as the master.
A preemption delay is set for the master device in the VRRP group.
This ensures that the device preempts the master role after the fault is rectified and services are fully restored.
The preemption delay is related to service types in the following scenarios:
The configuration is committed.
The device is configured to allow users to go online when performing batch backup.
The system view is displayed.
An RBP is created, and the RBP view is displayed.
Inter-device hot backup is enabled.
The RBP is bound to the VRRP group.
The RBP is associated with the RBS, and the user backup ID in the RBP is set.
backup-id sets a user backup ID. The RBP to which a user belongs can be determined based on the backup-id and RBS. Note that the same backup-id value must be set for devices that back up one another in the same RBP, and different backup-id values must be set in other RBPs.
Remote backup for user services is enabled.
The configuration is committed.
A logic host name is configured to generate an RUI user accounting ID.
A hash algorithm for load balancing based on odd and even MAC addresses is configured on the interface board.
The device is enabled to mark a specified MAC address as an odd or even MAC address.
The configuration is committed.
The system view is displayed.
An RBS is created, and the RBS view is displayed.
If both a dynamic BFD session and a static BFD session are configured on a BRAS to detect the same link, BFD parameters of one BFD session take effect. Specifically, when an RBS is configured, a dynamic BFD session is created, and BFD parameters are generated. The system compares BFD parameters of the static BFD session with dynamically generated BFD parameters, and BFD parameters with smaller values take effect.
An SSL policy is created and bound to a TCP connection.
You are advised to bind an SSL policy to enhance RBS security. If no SSL policy is bound, data leakage and tampering may occur.
Parameters of a TCP connection for the RBS are set.
peer-ip-address sets the IP address of a remote device that backs up the local device. source-ip-address sets the IP address of a local device. The remote IP address must be already assigned to the remote device's main interface, sub-interface, or logical interface (for example, loopback interface). The local IP address must be already assigned to the local device's main interface, sub-interface, or logical interface. The local and remote IP addresses must be pinged by each other.
port-id indicates the listening port number of a server. The same TCP port number must be set on devices that back up one another.
The device is enabled to immediately back up user services configured in the RBS.
The RBS is configured to monitor the network-side interface status and check whether the TCP connection for the RBS fails or recovers.
If devices have multiple uplinks with different bandwidth values, configure different weights for the inbound interfaces based on the uplink bandwidths. If the interfaces have different rates, set weights based on their rates. Set a greater weight for a 10GE interface than a GE interface. For example, interface A is 10GE, and the bandwidth planned for RUI is 5 Gbit/s; interface B is GE, and the bandwidth planned for RUI is 1 Gbit/s; interface C is GE, and the bandwidth planned for RUI is 0.5 Gbit/s. If you use interface B as a reference interface and set its weight to 10, set the weight of interface A to 50 and that of interface C to 5.
The formula is as follows:
Fault rate = Total weight of faulty interfaces/Total weight of interfaces x 100%
If interfaces B and C fail, the fault rate is as follows:
(10 + 5)/(50 + 10 + 5) x 100% = 23%
If interface A fails, the fault rate is as follows:
50/(50 + 10 + 5) x 100% = 77%
The threshold for a master/backup switchover due to uplink failures and the duration before the switchover is complete are set.
When you run the track interface command, the weights specified must comply with the rules for performing a master/backup VRRP switchover. If a master/backup BRAS switchover is performed based on the fault rate of uplinks but a master/backup VRRP switchover is not performed, the backup device forwards the network-side traffic back to the master device for processing after receiving the traffic from the master device. In this case, the master device is congested with traffic because the master/backup BRAS switchover is not performed at the same time as the master/backup VRRP switchover.
When you run the switchover uplink command to configure a master/backup BRAS switchover to be performed based on the fault rate of uplinks, also run the peer-backup route-cost auto-advertising command in the system view to enable both devices to automatically generate address pool user network routes (UNRs). In this situation, when a master/backup BRAS switchover is performed based on the fault rate of uplinks, the priority of a UNR is reduced, but no UNRs are withdrawn. This configuration prevents downstream traffic from being interrupted.
The RBS is configured to track the interface monitoring group status.
After the track interface-group command is run, the device automatically deletes the track interface and switchover uplink commands if these two commands have been run in the RBS view. The device determines whether to perform a master/backup device switchover based on the track interface-group command.
An interface monitoring group has been created using the monitor-group command.
A link fault threshold (in percentage) that triggers a master/backup switchover is set for the route monitor group on the network side.
After the track route-monitor-group switchover failure-ratio command is run, the device automatically deletes the track interface command if this command has been run in the RBS view. The device then determines a master/backup switchover based on the track route-monitor-group switchover failure-ratio command.
The RBS tracks the BFD status so that the RBS can rapidly monitor the remote device status.
This step is recommended. Before running this command, ensure that a peer BFD session is established between the master and backup devices on the network side.
The device is configured to reply to the RADIUS authorization server with packets in which the source IP address is the same as the NAS IP address.
The configuration is committed.