A network fault recovery method and device in an MLAG environment
By configuring Smart Link groups in the MLAG environment, primary and backup link switching and status synchronization are achieved, which solves the problem of traffic interruption caused by link failure in the MLAG environment, ensures network continuity and reliability, and simplifies network management.
Patent Information
- Application Number
- CN202411694212.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2044-11-25
AI Technical Summary
In an MLAG environment, a link failure between an external device and an upstream device, or a simultaneous failure of any two links in an MLAG group, can prevent traffic from reaching the target network, affecting network reliability and performance.
The Smart Link group is used for primary and backup link switching. By monitoring the link status, a switching signal is generated, and the primary and backup link switching rules of the Smart Link group are configured to enable traffic to quickly switch to the backup link in the event of a failure. The configuration information and status are synchronized, and the role preemption mechanism and load sharing mechanism of the Smart Link group are used for traffic forwarding.
It enables seamless traffic recovery in the event of a failure in an MLAG environment, ensuring that traffic reaches the target network in a timely manner, avoiding data loss, simplifying network management and configuration, and improving the network's redundancy backup and load-sharing capabilities.
Smart Images

Figure CN119583316B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network communication technology, and in particular to a network fault recovery method and apparatus in an MLAG environment. Background Technology
[0002] Munticasis Link Aggregation Group (MLAG) is a mechanism for achieving cross-device link aggregation, enabling link aggregation between multiple devices, making them logically appear as a single device. Compared to traditional box-type devices, MLAG is more stable and reliable, improving network availability.
[0003] exist Figure 1 In the typical MLAG configuration shown, as illustrated by Devices C and E, the two switches are interconnected via Peerlink interfaces (such as interfaces C3 and E3) to form a Peerlink link for synchronizing MAC address tables and status information. Simultaneously, these two switches also join different Link Aggregation Control Protocol (LACP) aggregation ports through their respective interfaces (such as interfaces C1 and E1, and C2 and E2), and join different MLAG groups (such as MLAG group 1 and MLAG group 2) to forward traffic from different network segments. Furthermore, another MLAG group (such as MLAG group 3) can be configured as a downlink interface for forwarding user-side data traffic.
[0004] While MLAG technology offers significant advantages in network redundancy and load balancing, several challenges remain in practical applications. The inventors discovered that when a link between an external device (such as Device B and Device F) connected to an MLAG device and an upstream device (such as Device A) fails, traffic cannot reach the target network, even if the MLAG group functions normally between Device C and Device E, resulting in abnormal traffic forwarding. Similarly, if both links belonging to MLAG group 1 or MLAG group 2 fail simultaneously, traffic will not reach the target device, impacting network reliability and performance. Summary of the Invention
[0005] To address the aforementioned technical problems, this application provides a network fault recovery method and apparatus in an MLAG environment.
[0006] On the one hand, embodiments of this application provide a network fault recovery method in an MLAG environment, the method comprising:
[0007] The MLAG device determines the first operating state of the corresponding uplink based on the monitor link pre-configured on the uplink device connected to it, and generates a primary / backup link switching trigger signal when the first operating state is faulty, so as to switch the working link for traffic forwarding; wherein, the primary / backup link switching trigger signal is used to trigger the primary / backup link switching configured in the Smart Link group of the MLAG device.
[0008] Monitor the second operating status of the Smart Link group; wherein the second operating status includes at least the primary and backup link status corresponding to the Smart Link group;
[0009] Based on the second operating state, a corresponding preset primary / backup link switching rule is matched to perform primary / backup link switching according to the preset primary / backup link switching rule.
[0010] In one implementation of this application, the Smart Link group includes a first Smart Link group and a second Smart Link group;
[0011] The configuration information of the first Smart Link group includes at least a first interface and a second interface corresponding to the first MLAG device in the MLAG device; the first interface and the second interface correspond to different MLAG groups;
[0012] The configuration information of the second Smart Link group includes at least a third interface and a fourth interface corresponding to the second MLAG device in the MLAG device; the third interface and the fourth interface correspond to different MLAG groups respectively;
[0013] The method further includes:
[0014] The first MLAG device sends a first configuration information synchronization message corresponding to the first Smart Link group to the second MLAG device at the other end through the corresponding Peerlink link, so as to synchronize the configuration information of the first Smart Link group to the second MLAG device.
[0015] The second MLAG device sends a second configuration information synchronization message corresponding to the second Smart Link group to the first MLAG device at the other end through the Peerlink link, so as to synchronize the configuration information of the second Smart Link group to the first MLAG device.
[0016] In one implementation of this application, the two Master interfaces of the Smart Link group correspond to the same MLAG group.
[0017] In one implementation of this application, before matching the corresponding preset primary / backup link switching rules based on the second operating state, the method further includes:
[0018] The first MLAG device acquires the interface status information of the first interface and the second interface, and determines whether there is a fault in the interface status information;
[0019] When the first MLAG device determines that the interface status information is faulty, it generates a first SmartLink group member status synchronization message and sends the first SmartLink group member status synchronization message to the second MLAG device through the Peerlink link to synchronize the interface status information between the peer devices of the MLAG device. The first SmartLink group member status synchronization message includes: the SmartLink group ID where the interface is located, the role of the interface in the SmartLink group, the interface link status, and the MLAG group ID where the interface is located.
[0020] In one implementation of this application, based on the second operating state, a corresponding preset primary / backup link switching rule is matched, specifically including:
[0021] In the second operating state where both Master interfaces are abnormal and / or both main links corresponding to the Smart Link group are faulty, the second MLAG device determines that the preset primary / backup link switching rule is to switch the backup link to the forwarding state so as to forward traffic through the backup link.
[0022] In the case that one of the Master interfaces is abnormal in the second operating state, the MLAG device determines that the preset master-slave link switching rule is to keep the Master interface in forwarding state and the Slave interface in standby state;
[0023] When the second operating state is normal, the MLAG device determines that the preset master-slave link switching rule is that the two master interfaces are in forwarding state and the two slave interfaces are in standby state.
[0024] In one implementation of this application, after performing primary / backup link switching according to the preset primary / backup link switching rules, the method further includes:
[0025] When the MLAG device determines that the fault of any of the main links has been recovered, it performs link back-switching based on the role pre-configured preemption mechanism in the SmartLink group, so that the Slave interface switches to standby state.
[0026] In one implementation of this application, after performing primary / backup link switching according to the preset primary / backup link switching rules, the method further includes:
[0027] The second MLAG device, based on the Smart Link group, sends Flush messages to other devices in the network through the forwarding interface to update forwarding table entries.
[0028] In one implementation of this application, the method further includes:
[0029] In the event of a Peerlink link failure in the MLAG device, the first MLAG device and the second MLAG device each act as separate devices and perform primary / backup link switching according to the Smart Link group behavior until the Peerlink link is restored to normal.
[0030] In one implementation of this application, the method further includes:
[0031] When the MLAG device enables the load balancing mechanism, it forwards traffic according to the VLAN instance configuration, and forwards traffic through the secondary link when the primary link fails.
[0032] On the other hand, embodiments of this application provide a network fault recovery device in an MLAG environment, the device comprising:
[0033] The determination module is used by the MLAG device to determine the first operating state of the corresponding uplink based on the monitoring link pre-configured on the uplink device connected to it, and to generate a primary / backup link switching trigger signal when the first operating state is faulty, so as to switch the working link for traffic forwarding; wherein, the primary / backup link switching trigger signal is used to trigger the primary / backup link switching configured in the Smart Link group of the MLAG device.
[0034] The monitoring module is used to monitor the second operating status of the Smart Link group; wherein the second operating status includes at least the primary and backup link status corresponding to the Smart Link group;
[0035] The matching module is used to match the corresponding preset primary / backup link switching rules based on the second operating state, so as to perform primary / backup link switching according to the preset primary / backup link switching rules.
[0036] Compared with the prior art, the significant advantages of this application are as follows:
[0037] This application, through the aforementioned scheme, configures Smart Link in an MLAG environment, enabling a backup link to promptly take over data transmission when the MLAG uplink fails, achieving redundancy and ensuring network transmission continuity. Simultaneously, the Smart Link's primary / backup link switching logic ensures that traffic is rapidly and seamlessly transferred to the backup link during network failures, achieving rapid failover for network recovery, thus ensuring traffic reaches the target network in a timely manner and preventing data loss. Attached Figure Description
[0038] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0039] Figure 1 This is a schematic diagram of a typical MLAG configuration corresponding to a network fault recovery method in an MLAG environment according to an embodiment of this application.
[0040] Figure 2 This is a flowchart illustrating a network fault recovery method in an MLAG environment according to an embodiment of this application;
[0041] Figure 3 This is a flowchart illustrating the MLAG and SmartLink configuration corresponding to a network fault recovery method in an MLAG environment according to an embodiment of this application.
[0042] Figure 4 This is a schematic diagram of the format of the first configuration information synchronization message in a network fault recovery method under an MLAG environment according to an embodiment of this application.
[0043] Figure 5 This is a schematic diagram of a format of a Smart Link group member status synchronization message in a network fault recovery method under an MLAG environment according to an embodiment of this application.
[0044] Figure 6 This is a schematic diagram of a network fault recovery device in an MLAG environment according to an embodiment of this application. Detailed Implementation
[0045] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0046] refer to Figure 1 Under normal circumstances, user-side data traffic passes through MLAG group 3 (e.g., ... Figure 1 Once traffic from a Mlag group / Lacp aggregation group (which is a MLAG group) arrives at Device C and Device E, it can be forwarded via two links in MLAG group 1 and MLAG group 2, respectively. When one of the links fails (e.g., the link where interface C1 is located fails), Device C will notify Device E via the Peerlink link to release the port isolation between E3 and E1. At the same time, it will migrate the MAC entries forwarded from interface C1 to the Peerlink interface C3, thereby ensuring that traffic forwarded from interface C1 can be forwarded to Device E through interface C3, and then forwarded to Device B from interface E1, ensuring the accuracy of traffic forwarding.
[0047] However, when the link between Device B and Device A, or between Device F and Device A, fails, traffic forwarded to Device B via MLAG group 1, or to Device F via MLAG group 2, will not reach the network, resulting in abnormal traffic forwarding. Alternatively, if both links belonging to MLAG group 1 or MLAG group 2 fail, traffic forwarded via MLAG group 1 will not reach Device B, or traffic forwarded via MLAG group 2 will not reach Device F, thus preventing traffic forwarding to the network and causing abnormal traffic forwarding.
[0048] To address these issues, existing technologies typically employ redundant links, routing protocols, monitoring and alarm systems, traffic engineering and QoS policies, and failover strategies. However, these solutions still have certain limitations and complexities in practical applications, requiring further optimization and improvement.
[0049] Based on this, this application provides a network fault recovery method and apparatus in an MLAG environment to solve the technical problem that in the current MLAG configuration, when the link between the external device connected to the MLAG device and the upstream device fails or any two links belonging to the MLAG group fail simultaneously, traffic cannot reach the target network or target device, resulting in poor network reliability.
[0050] This application uses a flexible link group (Smart Link) to solve the above problems. Each group contains only two member ports, one designated as the master port and the other as the slave port. Normally, only one port is in the ACTIVE state, while the other port is blocked and in the STANDBY state. When a link failure occurs on the port in the ACTIVE state, the Smart Link group automatically blocks that port and switches the previously blocked, standby port to the ACTIVE state. The Smart Link group allows the master and slave links to forward data traffic from different VLAN instances respectively. When the Smart Link group enables load balancing, and both master and slave links are normal, both interfaces are in the ACTIVE state. The slave interface forwards load-sharing traffic from instances, while the master interface forwards traffic from other instances. When one link fails, the Smart Link group automatically switches all traffic to the other link.
[0051] The various embodiments of this application are described in detail below with reference to the accompanying drawings.
[0052] This application provides a network fault recovery method in an MLAG environment, such as... Figure 2 As shown, the method may include steps S201-S203:
[0053] S201, the MLAG device determines the first operating state of the corresponding uplink based on the monitor link pre-configured on the uplink device connected to it, and generates a primary / backup link switching trigger signal when the first operating state is faulty, so as to switch the working link for traffic forwarding.
[0054] Among them, the primary / backup link switching trigger signal is used to trigger the primary / backup link switching of the Smart Link group configured in the MLAG device. Figure 3 The MLAG device includes Device C and Device E.
[0055] refer to Figure 3 The Smart Link networking environment is primarily used in conjunction with Monitor Links to achieve redundant backup of dual uplink primary and backup links. A Smart Link group (i.e....) Figure 3 The Smart-link group includes the first SmartLink group and the second Smart Link group. The first Smart Link group is... Figure 3The first Smart Link group is SMLK1, and the second Smart Link group is SMLK2. The configuration information of the first Smart Link group includes at least the first interface C1 and the second interface C2 corresponding to the first MLAG device Device C in the MLAG device. The first interface C1 and the second interface C2 correspond to different MLAG groups. For example, the first interface C1 is a member port of MLAG group 1, and the second interface C2 is a member port of MLAG group 2. The configuration information of the second Smart Link group includes at least the third interface E1 and the fourth interface E2 corresponding to the second MLAG device Device E in the MLAG device. The third interface E1 and the fourth interface E2 correspond to different MLAG groups. For example, the third interface E1 is a member port of MLAG group 1, and the fourth interface E2 is a member port of MLAG group 2.
[0056] In this embodiment of the application, the method for configuring a Smart Link group further includes:
[0057] The first MLAG device sends a first configuration information synchronization message corresponding to the first Smart Link group to the second MLAG device at the other end via the corresponding Peerlink link, so as to synchronize the configuration information of the first Smart Link group to the second MLAG device. The second MLAG device sends a second configuration information synchronization message corresponding to the second Smart Link group to the first MLAG device at the other end via the Peerlink link, so as to synchronize the configuration information of the second Smart Link group to the first MLAG device.
[0058] In other words, on Device C, the C1 interface of MLAG group 1 and the C2 interface of MLAG group 2 are added to the first SmartLink group, and the configuration information of this device is synchronized to Device E via the Peerlink link. Device E will then store the Smart-link group content of Device C. The first configuration information synchronization message is as follows: Figure 4 As shown, it includes:
[0059] groupid: Represents the Smart-link group ID;
[0060] state: Indicates the enabled state of the Smart-link group;
[0061] master_up: Indicates the link status of the Master interface of the Smart-link group;
[0062] master_mlagid: Represents the MLAG group ID where the Master interface of the Smart-link group belongs;
[0063] slave_up: Indicates the link status of the Slave interface in the Smart-link group;
[0064] slave_mlagid: Indicates the MLAG group ID where the Slave interface of the Smart-link group belongs;
[0065] restore_time: Indicates the time of the Smart-link group link reset timer;
[0066] restore_state: indicates the link back-off enabled state of the Smart-link group, i.e. whether the role preemption mechanism is enabled.
[0067] Similarly, on Device E, add the E1 interface of MLAG group 1 and the E2 interface of MLAG group 2 to the second Smart Link group, and notify Device C of the Smart Link group content of this device through the Peerlink link. Device C then saves the Smart Link group content of Device E. This completes the configuration of the Smart Link group.
[0068] This application also configures a Monitor Link on the uplink devices of the MLAG device, such as Device B and Device F, so as to synchronize the downlink devices by monitoring the link where the B1 interface is located or the link where the F1 interface is located. That is, if the uplink fails, this change will be quickly communicated to the downlink device, thereby triggering the Smart Link to switch the primary and backup links, preventing traffic loss due to uplink failure for a long time.
[0069] Specifically, the uplink device of this application monitors the uplink through Monitor Link and generates information on the first operating state. If the first operating state indicates a link failure, the MLAG device will receive a notification of the link failure and then generate a primary / backup link switching trigger signal to trigger the primary / backup link switching of Smart Link.
[0070] Meanwhile, when the B1 interface of Device B or the F1 interface of Device F malfunctions, due to the Monitor Link mechanism, the two downlinks of Device B or Device F will also malfunction, which will lead to Smart-link link malfunction and thus cause link switching in the Smart-link group.
[0071] Furthermore, the two Master interfaces of the Smart Link group correspond to the same MLAG group.
[0072] In other words, the Master interface in a Smart Link group must be a member port of the same MLAG group, that is, the Master interfaces of the two Smart Link groups are C1 and E1 or C2 and E2 respectively.
[0073] The two Master interfaces of a Smart Link group correspond to the same MLAG group. As part of the MLAG architecture, the Smart Link group can effectively synchronize and collaborate with other members of the MLAG architecture, maintaining the logical integrity of the MLAG virtual device. Through the Smart Link group, when the Master interface fails, the Slave interface (backup interface) can switch to forwarding state more quickly, effectively switching traffic to another interface, accelerating fault recovery, and reducing the redundancy and load-sharing capacity of the MLAG architecture. At the same time, it simplifies the configuration process; network administrators do not need to perform complex configuration and synchronization operations across multiple MLAG groups, but only need to focus on the Smart Link group configuration within the current MLAG group.
[0074] S202, MLAG device monitors the second operating status of Smart Link group.
[0075] The second operating state includes at least the primary and backup link states corresponding to the Smart Link group.
[0076] In other words, the MLAG device will monitor the operating status of the corresponding links or interfaces of the Smart Link group in real time, including the first interface C1, the second interface C2, the third interface E1, the fourth interface E2 and their corresponding links.
[0077] The first MLAG device can obtain the interface status information of the first and second interfaces and determine whether there is a fault in the interface status information. If a fault is found in the interface status information, the first MLAG device generates a first Smart Link group member status synchronization message and sends it to the second MLAG device via the Peerlink link to synchronize the interface status information between the peer devices. The first Smart Link group member status synchronization message includes: the unique identifier (Identity Document, ID) of the Smart Link group to which the interface belongs, the role of the interface in the Smart Link group, the interface link status, and the MLAG group ID to which the interface belongs.
[0078] Similarly, the second MLAG device can also obtain the interface status information of the third and fourth interfaces and generate a second Smart Link group member status synchronization message to synchronously notify the peer device of changes in member port status.
[0079] Specifically, Device C's C1 and C2 interfaces, and Device E's E1 and E2 interfaces, are both MLAG member ports and Smart-link group member ports. When these ports fail, the local device will synchronize the port status information to the peer device via the Peerlink port and save it. For example, if the C1 interface fails, Device C will synchronize the status change information of its Smart-link group member ports to Device E via the Peerlink link. The format of the Smart Link group member status synchronization message is as follows: Figure 5 As shown, it includes:
[0080] groupid: Indicates the Smart-link group ID to which the interface belongs;
[0081] role: Indicates the role of the interface in the Smart-link group, i.e., whether it is a Master interface or a Slave interface;
[0082] port_up: Indicates the link status of the interface;
[0083] port_mlagid: Represents the MLAG group ID where the interface is located.
[0084] S203, the MLAG device, based on the second operating state, matches the corresponding preset primary / backup link switching rules to perform primary / backup link switching according to the preset primary / backup link switching rules.
[0085] In this embodiment of the application, based on the second operating state, matching the corresponding preset primary / backup link switching rules specifically includes:
[0086] In the second operating state where both Master interfaces are abnormal and / or both main links corresponding to the Smart Link group are faulty, the second MLAG device determines the preset primary / backup link switching rule to switch the backup link to the forwarding state so as to forward traffic through the backup link.
[0087] In the second operating state where one Master interface is abnormal, the MLAG device determines the preset master-slave link switching rule to keep the Master interface in forwarding state and the Slave interface in standby state.
[0088] Under normal operating conditions in the second operating state, the MLAG device determines the preset master-slave link switching rule as follows: the two master interfaces are in forwarding state, and the two slave interfaces are in standby state.
[0089] In other words, when a Smart Link group fails, the master-slave link switchover needs to consider the port status of both Smart Link groups on the MLAG device (i.e., the status of interfaces C1, C2, E1, and E2). Under normal circumstances, interfaces C1, C2, E1, and E2 are all normal; interfaces C1 and E1 are in the ACTIVE state, while interfaces C2 and E2 are blocked and in the STANDBY state. The link where the Master interface is located is the primary link, and the link where the Slave interface is located is the backup link.
[0090] In the event of a link failure, such as when only one Master interface (e.g., C1 interface) fails, the Master interface remains in forwarding state and the Slave interface remains in standby state. User data traffic will be forwarded from MLAG group 1 link to Device B, and then sent to Network via Device A.
[0091] If both Master interfaces (C1 and E1) malfunction, MLAG devices Device C and Device E will block the Master interfaces in the forwarding state in the Smart Link group and switch the Slave interfaces (C2 and E2) that were originally in the standby state to the forwarding state. User data traffic will be forwarded from MLAG group 2 link to Device F, and then sent to Network via Device A.
[0092] If both primary links in the Smart Link group of Device C and Device E fail, the Smart Link group will forward traffic through the backup link.
[0093] Therefore, this application performs primary and backup link switching through the aforementioned preset primary and backup link switching rules.
[0094] In addition, after performing primary / backup link switching according to preset primary / backup link switching rules, the method also includes:
[0095] When the MLAG device determines that any primary link has recovered from a failure, it performs a link switchback based on the role pre-configured in the Smart Link group, so that the Slave interface switches to standby mode.
[0096] In other words, when this application forwards traffic via the backup link, as long as one primary link (the link where the C1 interface is located or the link where the E1 interface is located) returns to normal, if both devices' Smart Link groups are configured with role preemption mechanisms and have identical configurations, the Smart Link group will perform link fallback. The Smart Link group will switch the Slave interface to standby mode and the Master interface to forwarding mode. It should be noted that if the role preemption mechanisms of the two devices' Smart Link groups are not configured differently, link fallback will not occur, and the Slave interface will remain in forwarding mode while the Master interface remains in standby mode.
[0097] In another embodiment of this application, after performing primary / backup link switching according to preset primary / backup link switching rules, the method further includes:
[0098] The second MLAG device, based on the Smart Link group, sends Flush messages to other devices in the network via the forwarding interface to update forwarding table entries.
[0099] Specifically, when a link switch occurs in the Smart Link group, the original forwarding table entries will no longer be applicable to the new network topology, requiring all devices in the network to update their entries. At this time, the Smart Link group will send a Flush message through the forwarding interface to notify other devices in the network (such as Device B, Device F, and Device A) to update their entries. The Flush message is a normal multicast data packet and will be directly discarded by the blocked receiving interface.
[0100] Furthermore, in the event of a Peerlink link failure in an MLAG device, the first MLAG device and the second MLAG device each act as separate devices and perform primary / backup link switching according to the Smart Link group behavior until the Peerlink link returns to normal.
[0101] In other words, when a Peerlink link fails, Device C and Device E can be considered as two separate devices. Device C will update the Smart Link group entry information stored on the device and set the link status of the peer interface to down. At this time, the local device can perform primary and backup link switching according to the normal Smart Link group behavior to ensure normal traffic forwarding. Similarly, Device E will also update the Smart Link group entry information stored on the device and perform link switching to ensure normal traffic forwarding.
[0102] Furthermore, when the Peerlink link recovers from an anomaly, Device C will synchronously notify Device E of the status information of interfaces C1 and C2 via the Peerlink link. Upon receiving the status information of interfaces C1 and C2, Device E, combined with the status information of interfaces E1 and E2, will perform a primary / backup link switchover to ensure normal traffic forwarding. Similarly, Device E will synchronously notify Device C of the status information of interfaces E1 and E2 via the Peerlink link. Upon receiving the status information of interfaces E1 and E2, Device C, combined with the status information of interfaces C1 and C2, will perform a primary / backup link switchover to ensure normal traffic forwarding. The MLAG device simultaneously performs the primary / backup link forwarding switchover for the Smart Link group, ensuring the consistency of the primary / backup link forwarding status.
[0103] In this embodiment, when the MLAG device enables the load balancing mechanism, it forwards traffic according to the VLAN instance configuration, and forwards traffic through the secondary link when the primary link fails.
[0104] In other words, when both Device C and Device E have load balancing enabled, if interfaces C1 and E1 allow VLAN 100 instance traffic forwarding, and interfaces C2 and E2 allow VLAN 200 instance traffic forwarding, VLAN 100 instance traffic will be forwarded to the Network via Device B and then Device A, while VLAN 200 instance traffic will be forwarded to the Network via Device F and then Device A. When both primary links fail, interfaces C1 and E1 will be in standby mode, and both VLAN 100 and VLAN 200 instance traffic will be forwarded to the Network via the MLAG 2 link through Device F and Device A. However, when the load balancing configurations of Device C and Device E are different, traffic can only be forwarded via either the primary or secondary link.
[0105] This application, through the aforementioned scheme, configures Smart Link in an MLAG environment, enabling a backup link to promptly take over data transmission when the MLAG uplink fails, achieving redundancy and ensuring network transmission continuity. Simultaneously, the Smart Link's primary / backup link switching logic ensures that traffic is rapidly and seamlessly transferred to the backup link during network failures, allowing traffic to reach the target network promptly and preventing data loss.
[0106] Figure 6 This is a schematic diagram of a network fault recovery device in an MLAG environment provided in an embodiment of this application, as shown below. Figure 6As shown, the network fault recovery device 600 in an MLAG environment includes:
[0107] The determination module 601 is used by the MLAG device to determine the first operating state of the corresponding uplink based on the pre-configured Monitor Link on the uplink device connected to it, and to generate a primary / backup link switching trigger signal when the first operating state indicates a fault, thereby switching the working link for traffic forwarding. The primary / backup link switching trigger signal is used to trigger the primary / backup link switching of the Smart Link group configured on the MLAG device. The monitoring module 602 is used to monitor the second operating state of the Smart Link group. The second operating state includes at least the primary / backup link state corresponding to the Smart Link group. The matching module 602 is used to match the corresponding preset primary / backup link switching rules based on the second operating state, so as to perform primary / backup link switching according to the preset primary / backup link switching rules.
[0108] In this embodiment, the Smart Link group includes a first Smart Link group and a second Smart Link group. The configuration information of the first Smart Link group includes at least a first interface and a second interface corresponding to the first MLAG device in the MLAG device. The first interface and the second interface correspond to different MLAG groups. The configuration information of the second Smart Link group includes at least a third interface and a fourth interface corresponding to the second MLAG device in the MLAG device. The third interface and the fourth interface correspond to different MLAG groups.
[0109] The network fault recovery device 600 in the MLAG environment also includes:
[0110] The first MLAG device sends a first configuration information synchronization message corresponding to the first Smart Link group to the second MLAG device at the other end via the corresponding Peerlink link, so as to synchronize the configuration information of the first Smart Link group to the second MLAG device. The second MLAG device sends a second configuration information synchronization message corresponding to the second Smart Link group to the first MLAG device at the other end via the Peerlink link, so as to synchronize the configuration information of the second Smart Link group to the first MLAG device.
[0111] In this case, the two Master interfaces of the Smart Link group correspond to the same MLAG group.
[0112] The network fault recovery device 600 in the MLAG environment also includes:
[0113] The first MLAG device acquires the interface status information of the first and second interfaces and determines whether there is a fault in the interface status information. If the first MLAG device determines that there is a fault in the interface status information, it generates a first Smart Link group member status synchronization message and sends the first Smart Link group member status synchronization message to the second MLAG device through the Peerlink link to synchronize the interface status information between the peer devices of the MLAG devices. The first Smart Link group member status synchronization message includes: the Smart Link group ID to which the interface belongs, the role of the interface in the Smart Link group, the interface link status, and the MLAG group ID to which the interface belongs.
[0114] Matching module 602 is specifically used for:
[0115] In the second operating state where both Master interfaces are abnormal and / or both primary links corresponding to the Smart Link group are faulty, the second MLAG device determines the preset primary / backup link switching rule to switch the backup link to forwarding state so that traffic can be forwarded through the backup link. In the second operating state where one Master interface is abnormal, the MLAG device determines the preset primary / backup link switching rule to keep the Master interface in forwarding state and the Slave interface in standby state. In the second operating state when it is normal, the MLAG device determines the preset primary / backup link switching rule to have both Master interfaces in forwarding state and both Slave interfaces in standby state.
[0116] The network fault recovery device 600 in the MLAG environment also includes:
[0117] When the MLAG device determines that any primary link has recovered from a failure, it performs a link switchback based on the role pre-configured in the Smart Link group, so that the Slave interface switches to standby mode.
[0118] The network fault recovery device 600 in the MLAG environment also includes:
[0119] The second MLAG device, based on the Smart Link group, sends Flush messages to other devices in the network via the forwarding interface to update forwarding table entries.
[0120] The network fault recovery device 600 in the MLAG environment also includes:
[0121] In the event of a Peerlink link failure in an MLAG device, the first MLAG device and the second MLAG device will each act as separate devices and perform primary / backup link switching according to the Smart Link group behavior until the Peerlink link is restored to normal.
[0122] The network fault recovery device 600 in the MLAG environment also includes:
[0123] When the MLAG device enables the load balancing mechanism, it forwards traffic based on the VLAN instance configuration and forwards traffic through the secondary link when the primary link fails.
[0124] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0125] The apparatus and method provided in this application are one-to-one correspondences. Therefore, the apparatus also has similar beneficial technical effects as its corresponding method. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the apparatus will not be repeated here.
[0126] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0127] The above description is merely an embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of this application should be included within the scope of the claims of this application.
Claims
1. A network fault recovery method in an MLAG environment, characterized in that, The method includes: The MLAG device determines the first operating state of the corresponding uplink based on the monitor link pre-configured on the uplink device connected to it, and generates a primary / backup link switching trigger signal when the first operating state is faulty, so as to switch the working link for traffic forwarding; wherein, the primary / backup link switching trigger signal is used to trigger the primary / backup link switching configured in the Smart Link group of the MLAG device. Monitor the second operating status of the Smart Link group; wherein the second operating status includes at least the primary and backup link status corresponding to the Smart Link group; Based on the second operating state, a corresponding preset primary / backup link switching rule is matched, so as to perform primary / backup link switching according to the preset primary / backup link switching rule; The Smart Link group includes a first Smart Link group and a second Smart Link group; The configuration information of the first Smart Link group includes at least a first interface and a second interface corresponding to the first MLAG device in the MLAG device; the first interface and the second interface correspond to different MLAG groups; The configuration information of the second Smart Link group includes at least a third interface and a fourth interface corresponding to the second MLAG device in the MLAG device; the third interface and the fourth interface correspond to different MLAG groups respectively; The method further includes: The first MLAG device sends a first configuration information synchronization message corresponding to the first Smart Link group to the second MLAG device at the other end through the corresponding Peerlink link, so as to synchronize the configuration information of the first Smart Link group to the second MLAG device. The second MLAG device sends a second configuration information synchronization message corresponding to the second Smart Link group to the first MLAG device at the other end through the Peerlink link, so as to synchronize the configuration information of the second Smart Link group to the first MLAG device; The two Master interfaces of the Smart Link group correspond to the same MLAG group.
2. The network fault recovery method in an MLAG environment according to claim 1, characterized in that, Based on the second operating state, before matching the corresponding preset primary / backup link switching rules, the method further includes: The first MLAG device acquires the interface status information of the first interface and the second interface, and determines whether there is a fault in the interface status information; When the first MLAG device determines that there is a fault in the interface status information, it generates a first Smart Link group member status synchronization message and sends the first Smart Link group member status synchronization message to the second MLAG device through the Peerlink link to synchronize the interface status information between the peer devices of the MLAG device. The first Smart Link group member status synchronization message includes: the Smart Link group ID where the interface is located, the role of the interface in the Smart Link group, the interface link status, and the MLAG group ID where the interface is located.
3. The network fault recovery method in an MLAG environment according to claim 1, characterized in that, Based on the second operating state, the corresponding preset primary / backup link switching rules are matched, specifically including: In the second operating state where both Master interfaces are abnormal and / or both main links corresponding to the Smart Link group are faulty, the second MLAG device determines that the preset primary / backup link switching rule is to switch the backup link to the forwarding state so as to forward traffic through the backup link. In the case that one of the Master interfaces is abnormal in the second operating state, the MLAG device determines that the preset master-slave link switching rule is to keep the Master interface in forwarding state and the Slave interface in standby state; When the second operating state is normal, the MLAG device determines that the preset master-slave link switching rule is that the two master interfaces are in forwarding state and the two slave interfaces are in standby state.
4. The network fault recovery method in an MLAG environment according to claim 3, characterized in that, After performing primary / backup link switching according to the preset primary / backup link switching rules, the method further includes: When the MLAG device determines that any of the main links has recovered from a failure, it performs a link back-switching based on the role pre-configured preemption mechanism in the Smart Link group, so that the Slave interface switches to a standby state.
5. A network fault recovery method in an MLAG environment according to claim 3, characterized in that, After performing primary / backup link switching according to the preset primary / backup link switching rules, the method further includes: The second MLAG device, based on the Smart Link group, sends Flush messages to other devices in the network through the forwarding interface to update forwarding table entries.
6. A network fault recovery method in an MLAG environment according to claim 3, characterized in that, The method further includes: In the event of a Peerlink link failure in the MLAG device, the first MLAG device and the second MLAG device each act as separate devices and perform primary / backup link switching according to the Smart Link group behavior until the Peerlink link is restored to normal.
7. A network fault recovery method in an MLAG environment according to any one of claims 1-6, characterized in that, The method further includes: When the MLAG device enables the load balancing mechanism, it forwards traffic according to the VLAN instance configuration, and forwards traffic through the secondary link when the primary link fails.
8. A network fault recovery device in an MLAG environment, characterized in that, The apparatus is capable of performing a network fault recovery method in an MLAG environment as described in any one of claims 1-7; the apparatus comprises: The determination module is used by the MLAG device to determine the first operating state of the corresponding uplink based on the monitoring link (MonitorLink) pre-configured on the uplink device connected to it, and to generate a primary / backup link switching trigger signal when the first operating state is faulty, so as to switch the working link for traffic forwarding; wherein, the primary / backup link switching trigger signal is used to trigger the primary / backup link switching of the Smart Link group configured in the MLAG device. The monitoring module is used to monitor the second operating status of the Smart Link group; wherein the second operating status includes at least the primary and backup link status corresponding to the Smart Link group; The matching module is used to match the corresponding preset primary / backup link switching rules based on the second operating state, so as to perform primary / backup link switching according to the preset primary / backup link switching rules.
Citation Information
Patent Citations
Method and system for switching primary device and secondary device under MLAG (Multi-Chassis Link Aggregation Group) port failure
CN108900415A
Ethernet ring network main / standby switching method and equipment based on MLAG, and medium
CN115567343A