Method, device and medium for rapid spanning tree protocol control in mlag environment

By synchronizing BPDU messages and quickly switching MLAG member interfaces in the MLAG environment, the problem of slow STP convergence was solved, achieving fast convergence and unaffected service traffic forwarding, thus improving the user communication experience.

CN116684348BActive Publication Date: 2026-02-27INSPUR NETWORK TECH (SHANDONG) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310707017.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-14
Publication Date
2026-02-27
Estimated Expiration
2043-06-14

AI Technical Summary

Technical Problem

In an MLAG environment, the STP of MLAG devices may fail to converge in a timely manner or converge too slowly, resulting in abnormal service traffic and affecting the normal communication experience of users.

Method used

By synchronizing Bridge Protocol Data Unit (BPDU) messages between the primary and backup devices, the consistency of the STP protocol state machine is ensured. In the event of a failure, the primary and backup devices quickly switch MLAG member interfaces, achieving rapid convergence.

Benefits of technology

It achieves zero convergence time for the entire STP network topology, with no impact on user data service traffic, improving the network's fast forwarding capability and enhancing the user's communication experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116684348B_ABST
    Figure CN116684348B_ABST
Patent Text Reader

Abstract

The application provides a method, device and medium for quickly converging a spanning tree protocol in an MLAG environment, and belongs to the technical field of network communication. In the method, each network device corresponding to an MLAG link runs a spanning tree protocol (STP), and a master device in the MLAG link acquires a bridge protocol data unit (BPDU) message from a backup device at an opposite end of the MLAG link and / or sends a BPDU message from each MLAG member interface to a corresponding backup device, so as to synchronize the BPDU messages of the MLAG member interfaces of each network device of the MLAG link. The synchronization at least includes message analysis and STP calculation. In the case that there is at least one MLAG member interface fault in the master device, a fault signal is generated. According to the fault signal, an MLAG member interface corresponding to the fault MLAG member interface in the backup device is determined as a switchable MLAG member interface, so as to execute BPDU message packet processing corresponding to the fault MLAG member interface through the switchable MLAG member interface.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of network communication, and particularly relates to a method, device and medium for quickly converging a spanning tree protocol in an MLAG environment. BACKGROUND

[0002] Multi-Chassis LAG (MLAG) technology is a cross-device link aggregation technology, which is more stable and reliable than traditional box devices and has lower cost than rack devices. In an MLAG environment, a master device and a backup device each take out a port to do cross-device link aggregation with the other device. In the device, the two ports are the same port.

[0003] The spanning tree protocol (STP) is a protocol for eliminating loops in a local area network, including STP, rapid spanning tree protocol (RSTP) and multiple spanning tree protocol (MSTP). Due to the continuous growth of the size of the local area network, STP has become one of the most important local area network protocols at present, so in the environment with MLAG, the operation of the STP protocol family is still indispensable.

[0004] In the prior art, the switch devices in the MLAG environment, the master device and the backup device rely on the peerlink interface to synchronize the bridge protocol data unit (BPDU) message. The MLAG backup device does not participate in the spanning tree protocol calculation. Once the MLAG master device fails, the backup device will be switched to the master device role, and the port spanning tree protocol function will be restarted and the entire spanning tree protocol convergence process will be run again. During the STP convergence of the backup device, the MLAG device cannot normally communicate, and abnormal business traffic may occur. SUMMARY

[0005] The embodiments of the present application provide a method, device and medium for quickly converging a spanning tree protocol in an MLAG environment, which are used to solve the problem that when the MLAG member interface is abnormal or the device is powered off in the MLAG environment, the STP of the MLAG device cannot converge in time or converges too slowly, so that the MLAG device cannot normally communicate for a long time, abnormal business traffic may occur, and the normal communication experience of users in real time is affected.

[0006] In one aspect, the embodiments of the present application provide a method for quickly converging a spanning tree protocol in an MLAG environment. Each network device corresponding to an MLAG link runs a spanning tree protocol STP. The method comprises the following steps.

[0007] the master device in the MLAG link obtains bridge protocol data unit (BPDU) messages from a backup device at an opposite end of the MLAG link and / or sends BPDU messages from each MLAG member interface to the corresponding backup device to synchronize the BPDU messages of the MLAG member interfaces of each network device in the MLAG link; the synchronization at least includes message analysis and STP calculation;

[0008] in a case where there is at least one failed MLAG member interface in the master device, a failure signal is generated;

[0009] according to the failure signal, an MLAG member interface corresponding to the failed MLAG member interface in the backup device is determined as a switchable MLAG member interface, and the BPDU message packet processing corresponding to the failed MLAG member interface is performed through the switchable MLAG member interface.

[0010] In an implementation manner of the present application, the master device in the MLAG link obtains BPDU messages from a backup device at an opposite end of the MLAG link and / or sends BPDU messages from each MLAG member interface to the corresponding backup device to synchronize the BPDU messages of the MLAG member interfaces of each network device in the MLAG link, and specifically includes:

[0011] the master device obtains the BPDU messages from the backup device through a peerlink interface, and synchronously sends the BPDU messages to the MLAG member interfaces corresponding to the master device according to link aggregation ports of the MLAG member interfaces corresponding to the BPDU messages, so that each MLAG member interface corresponding to the link aggregation port in the MLAG link synchronizes the BPDU messages and runs a consistent STP protocol state machine and stores consistent STP real-time protocol state machine data information; and

[0012] the master device sends the BPDU messages of each MLAG member interface to the MLAG member interfaces of the corresponding link aggregation ports in the backup device through the peerlink interface, so that each MLAG member interface corresponding to the link aggregation port in the MLAG link synchronizes the BPDU messages and runs a consistent STP protocol state machine and stores consistent STP real-time protocol state machine data information.

[0013] In an implementation manner of the present application, the method further includes:

[0014] In a case where the switchable MLAG member interface is determined, the backup device synchronizes a BPDU packet outside an MLAG link received by the switchable MLAG member interface to the corresponding failed MLAG member interface.

[0015] In an implementation manner of the application, the method further includes:

[0016] In a case where the power failure of the master device occurs, the backup device generates a temporary master device mark;

[0017] The backup device takes each of the MLAG member interfaces as the switchable MLAG member interface to perform the BPDU packet packet processing.

[0018] In an implementation manner of the application, the method further includes:

[0019] In a case where the power failure of the master device is recovered, the master device disconnects each of the corresponding MLAG member interfaces and establishes a peerlink interface connection with the backup device;

[0020] The backup device packs and processes the STP protocol state machine data and the STP blocking state information corresponding to each of the switchable MLAG member interfaces of the backup device, and sends the same to each of the corresponding MLAG member interfaces of the master device through the peerlink interface.

[0021] In an implementation manner of the application, the method further includes:

[0022] In a case where the packed STP protocol state machine data and the STP blocking state information are received, the master device establishes a connection between each of the corresponding MLAG member interfaces and the outside of the MLAG link; and

[0023] Synchronize the STP protocol state machine data and the STP blocking state information of each of the MLAG member interfaces with the switchable MLAG member interface.

[0024] In an implementation manner of the application, after the STP protocol state machine data and the STP blocking state information of each of the MLAG member interfaces are synchronized with the switchable MLAG member interface, the method further includes:

[0025] The backup device removes the temporary master device mark and disconnects the switchable MLAG member interface from the outside of the MLAG link to recover the STP control of the master device.

[0026] In an implementation form of the application, the STP real-time protocol state machine data information comprises at least: an optimal priority vector table, a port role election state machine, and a protocol migration state machine; and the optimal priority vector table comprises at least: a root path cost, a root bridge, and a designated bridge.

[0027] In another aspect, the embodiments of the application further provide a device for fast convergence of a spanning tree protocol in an MLAG environment, each network device corresponding to an MLAG link runs a spanning tree protocol (STP), and the device comprises:

[0028] at least one processor; and a memory connected with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:

[0029] the master device in the MLAG link acquires a bridge protocol data unit (BPDU) message from a backup device at an opposite end of the MLAG link and / or sends a BPDU message from each MLAG member interface to the corresponding backup device to synchronize the BPDU messages of the MLAG member interfaces of each network device in the MLAG link; and the synchronization comprises at least message analysis and STP calculation;

[0030] in a case where at least one MLAG member interface of the master device fails, a failure signal is generated;

[0031] according to the failure signal, an MLAG member interface corresponding to the failed MLAG member interface in the backup device is determined as a switchable MLAG member interface, and the BPDU message packet processing corresponding to the failed MLAG member interface is performed through the switchable MLAG member interface.

[0032] In another aspect, the embodiments of the application further provide a nonvolatile computer storage medium storing computer executable instructions in an MLAG environment for fast convergence of a spanning tree protocol, and the computer executable instructions are configured to:

[0033] the master device in the MLAG link acquires a bridge protocol data unit (BPDU) message from a backup device at an opposite end of the MLAG link and / or sends a BPDU message from each MLAG member interface to the corresponding backup device to synchronize the BPDU messages of the MLAG member interfaces of each network device in the MLAG link; and the synchronization comprises at least message analysis and STP calculation;

[0034] in a case where at least one MLAG member interface of the master device fails, a failure signal is generated;

[0035] According to the fault signal, a MLAG member interface corresponding to the failed MLAG member interface in the backup device is determined as a switchable MLAG member interface, and the BPDU packet sending processing corresponding to the failed MLAG member interface is performed through the switchable MLAG member interface.

[0036] Through the above technical solution, when the master device or the backup device is powered off, the STP network topology convergence time is 0, and there is no any influence on user data service traffic. When the master device or the backup device is powered on, the STP network topology convergence time is 0, and there is no any influence on user data service traffic. Therefore, the STP protocol can be controlled to converge quickly, and network communication in the MLAG environment and fast forwarding of service traffic in the MLAG environment are better realized, and the normal communication experience of users is improved. Further, when the MLAG member interface is abnormal or the device is powered off in the MLAG environment, the STP of the MLAG device cannot converge in time or converges too slowly, the MLAG device cannot normally communicate for a long time, and the phenomenon of abnormal service traffic and the problem of affecting the real-time normal communication experience of users are solved. BRIEF DESCRIPTION OF DRAWINGS

[0037] The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and serve to explain the principles of the application. In the drawings:

[0038] Figure 1 FIG. 1 is a structural schematic diagram of a MLAG environment in a MLAG environment fast convergence spanning tree protocol control method according to an embodiment of the application;

[0039] Figure 2 FIG. 2 is a flowchart of a MLAG environment fast convergence spanning tree protocol control method according to an embodiment of the application;

[0040] Figure 3 FIG. 3 is another structural schematic diagram of a MLAG environment in a MLAG environment fast convergence spanning tree protocol control method according to an embodiment of the application;

[0041] Figure 4 FIG. 4 is a structural schematic diagram of a MLAG environment fast convergence spanning tree protocol control device according to an embodiment of the application. DETAILED DESCRIPTION

[0042] In order to make the purposes, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described in detail below in connection with the specific embodiments of the present application and corresponding drawings. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0043] As shown in Figure 1 MLAG environment, switch device S3 and switch device S4 form an MLAG environment through a peerlink link, they form cross-device link aggregation groups agg1 and agg2 with device S1 and device S2 respectively, and the four switch devices run the STP spanning tree protocol. In the current MLAG environment, the MLAG member ports agg1 and agg2 of the MLAG backup device S4 close the spanning tree protocol and synchronize the received BPDU protocol packets to the same MLAG member ports agg1 and agg2 of the S3 master device for processing, and the MLAG member ports agg1 and agg2 of the MLAG backup device do not participate in the spanning tree protocol calculation. If the MLAG master device S3 is powered off or restarted, at this time the backup device S4 switches to the role of the MLAG master device, and the MLAG member ports need to reopen the spanning tree protocol function and run the entire complete spanning tree protocol convergence process again.

[0044] The above problems make it that if the MLAG master device S3 is powered off or restarted, the MLAG backup device role switches to the master device and reopens the stp function of the MLAG member port, since these ports do not have real-time state machine data, all need to be calculated again through the transmission and reception of bpdu protocol packets, and the slow convergence process will cause long-time abnormal business traffic, affecting the real-time normal communication needs of users.

[0045] Based on this, the embodiments of the present application provide a method for quickly converging a spanning tree protocol in an MLAG environment, a device and a medium, to solve the problem that when the MLAG member interface is abnormal or the device is powered off in the MLAG environment, the STP of the MLAG device cannot converge in time or converges too slowly, so that the MLAG device cannot normally communicate for a long time, and the phenomenon of abnormal business traffic is easy to occur, and the problem of affecting the real-time normal communication experience of users.

[0046] The various embodiments of the present application will be described in detail below in connection with the drawings.

[0047] The embodiments of the present application provide a method for quickly converging a spanning tree protocol in an MLAG environment, each network device (such as Figure 1 S1, S2, S3 and S4) corresponding to the MLAG link runs the spanning tree protocol STP, as shown inFigure 2 As shown, the method can include steps S201-S203:

[0048] S201, the master device in the MLAG link obtains the bridge protocol data unit BPDU message from the peer backup device of the MLAG link and / or sends the BPDU message from each MLAG member interface to the corresponding backup device to synchronize the BPDU messages of the MLAG member interfaces of each network device in the MLAG link.

[0049] The above synchronization at least includes message analysis and STP calculation.

[0050] In the embodiments of the present application, the master device in the MLAG link obtains the bridge protocol data unit BPDU message from the peer backup device of the MLAG link and / or sends the BPDU message from each MLAG member interface to the corresponding backup device to synchronize the BPDU messages of the MLAG member interfaces of each network device in the MLAG link, as shown in Figure 3 As shown, it specifically includes:

[0051] The master device can obtain the BPDU message from the backup device through the peerlink interface, and according to the link aggregation port such as agg1, agg2 of the corresponding MLAG member interface of the BPDU message, synchronously sends the BPDU message to the corresponding MLAG member interface (agg1, agg2 of the master device) of the master device, so that each MLAG member interface corresponding to the link aggregation port in the MLAG link synchronizes the BPDU message and runs the consistent STP protocol state machine and stores the consistent STP real-time protocol state machine data information. And

[0052] The master device can also send the BPDU message of each MLAG member interface to the corresponding MLAG member interface (agg1, agg2 of the backup device) of the link aggregation port in the backup device through the peerlink interface, so that each MLAG member interface (agg1, agg2 of the master device and the backup device) corresponding to the link aggregation port in the MLAG link synchronizes the BPDU message and runs the consistent STP protocol state machine and stores the consistent STP real-time protocol state machine data information.

[0053] The STP protocol state machine is a software algorithm implementation of running the spanning tree protocol calculation, and the running consistent STP protocol state machine is a whole static concept, which means that the master device and the backup device run the same spanning tree protocol calculation process, because the master device and the backup device receive the same BPDU message, so the internal protocol calculation process (also called the running process of the protocol state machine) is also the same, that is, the master device and the backup device run the consistent STP protocol state machine.

[0054] The STP real-time protocol state machine data information at least includes: an optimal priority vector table, a port role election state machine, and a protocol migration state machine. The optimal priority vector table at least includes: a root path cost, a root bridge, a designated bridge, and a designated port. The real-time protocol state machine is constantly updated. After receiving a BPDU message, the master device and the backup device trigger the STP protocol state machine to recalculate and update. Therefore, the STP protocol state machine is real-time, and the master device and the backup device are real-time and synchronous. Therefore, the STP real-time protocol state machine data information is stored synchronously.

[0055] S202, in the case where the master device has at least one MLAG member interface fault, the master device generates a fault signal.

[0056] For example, the MLAG member interface of the master device, such as agg1 or agg2, has a fault, and the master device generates a fault signal of the disconnected MLAG member interface.

[0057] S203, according to the fault signal, the master device determines the MLAG member interface corresponding to the fault MLAG member interface in the backup device as a switchable MLAG member interface, so as to perform the BPDU message packet sending processing corresponding to the fault MLAG member interface through the switchable MLAG member interface.

[0058] That is, in the case where the MLAG member interface of the master device has a fault and cannot send BPDU messages to S1 and S2, the MLAG member interface of the backup device takes over the packet sending work of the fault interface. For example, the master device agg1 has a fault and cannot send BPDU messages to S1 and S2. The agg1 of the backup device takes over the work of the master device agg1 and sends BPDU messages to S1 and S2 as a switchable MLAG member interface.

[0059] Since the master device and the backup device have BPDU messages synchronously, and the STP protocol state machines are consistent and the STP real-time protocol state machine data information is stored synchronously, the MLAG member interfaces perform the same STP protocol calculation process. When the MLAG member interface of the backup device takes over the MLAG member interface of the master device, the whole network STP topology does not need to be recalculated and converged, and the message receiving processing and packet sending work can be completed.

[0060] In the case where the switchable MLAG member interface is determined, the backup device synchronizes the BPDU message outside the MLAG link received by the switchable MLAG member interface to the corresponding fault MLAG member interface.

[0061] In other words, even if the MLAG member interface of the master device fails, the standby device's switchable MLAG member interface processes and sends BPDU packets, replacing the failed MLAG member interface of the master device, and the master device and the standby device still need to synchronize the BPDU packets. The failed MLAG member interface processes the same BPDU packets as the switchable MLAG member interface and performs the same STP protocol calculation process. This ensures that when the failed MLAG member interface of the master device is resolved, the resolved MLAG member interface replaces the switchable MLAG member interface on the standby device to forward user data traffic, with the STP network topology calculation convergence time being 0.

[0062] In addition, in an embodiment of the present application, the master device can also be a power failure. When the power failure occurs, the following is specifically performed:

[0063] In the case of a power failure of the master device, the standby device generates a temporary master device mark. The standby device regards each MLAG member interface as a switchable MLAG member interface to perform BPDU packet sending processing.

[0064] For example, the master device is powered off, and the standby device acts as a temporary master device. The standby device's agg1 and agg2 perform BPDU packet receiving processing and sending. The packet sending processing includes sending BPDU packets to S1 and / or S2.

[0065] In the embodiment of the present application, in the case of recovery from the power failure of the master device, the master device disconnects the corresponding MLAG member interfaces and establishes a peerlink interface connection with the standby device. The standby device packs and processes the STP protocol state machine data and STP blocking state information corresponding to each switchable MLAG member interface of the standby device and sends them to the corresponding MLAG member interfaces of the master device.

[0066] Moreover, when the master device receives the packed STP protocol state machine data and STP blocking state information, it establishes connections between the corresponding MLAG member interfaces and the outside of the MLAG link, such as establishing a connection with S1 through agg1 and establishing a connection with S2 through agg2. In addition, the master device synchronizes the STP protocol state machine data and STP blocking state information of each MLAG member interface with those of the switchable MLAG member interface.

[0067] At the same time, the standby device removes the temporary master device mark and disconnects the switchable MLAG member interface from the outside of the MLAG link to restore the STP control of the master device.

[0068] That is, when the master device is powered off, the backup device saves the same STP protocol state machine data as the master device in real time, the backup device can seamlessly take over all STP protocol work on the master device, the MLAG backup device role is switched to the master device, the whole network STP topology does not need to be recalculated and converged, and the service traffic is not affected.

[0069] In addition, in the case of failure or power failure of the backup device, the master device completes the BPDU packet synchronization and packet sending work, and after the backup device fails or is powered on, the backup device can continue to receive and process the BPDU packet. In the case of no failure or power failure of the master device, the master device performs the BPDU packet sending work.

[0070] Through the above technical solution, when the master device or the backup device is powered off, the STP whole network topology convergence time is 0, and there is no any influence on the user data service traffic. When the master device or the backup device is powered on and started, the STP whole network topology convergence time is 0, and there is no any influence on the user data service traffic. Thus, the STP protocol fast convergence can be controlled, and the network communication in the MLAG environment and the fast forwarding of service traffic are better realized, and the normal communication experience of the user is improved. Further, the problem that when the MLAG member interface is abnormal or the device is powered off in the MLAG environment, the STP of the MLAG device cannot converge in time or converges too slowly, so that the MLAG device cannot normally communicate for a long time and the phenomenon of abnormal service traffic easily occurs, and the real-time normal communication experience of the user is affected, is solved.

[0071] Figure 4 A structure schematic diagram of a quick convergence spanning tree protocol control device in an MLAG environment provided by the embodiment of the application, each network device corresponding to an MLAG link runs a spanning tree protocol STP, and the device comprises:

[0072] at least one processor; and a memory connected with the at least one processor in communication. Wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:

[0073] The master device in the MLAG link acquires the bridge protocol data unit BPDU packet from the backup device at the opposite end of the MLAG link and / or sends the BPDU packet from each MLAG member interface to the corresponding backup device, to synchronize the BPDU packet of the MLAG member interface of each network device of the MLAG link. The synchronization at least includes packet analysis and STP calculation. In the case that there is at least one MLAG member interface failure in the master device, a failure signal is generated. According to the failure signal, the MLAG member interface corresponding to the failed MLAG member interface in the backup device is determined as a switchable MLAG member interface, to execute the BPDU packet sending processing corresponding to the failed MLAG member interface through the switchable MLAG member interface.

[0074] The embodiment of the present application also provides a non-volatile computer storage medium in an MLAG environment for quickly converging a spanning tree protocol control, which stores computer executable instructions, and the computer executable instructions are configured to:

[0075] The master device in the MLAG link acquires bridge protocol data unit (BPDU) messages from a backup device at an opposite end of the MLAG link and / or sends BPDU messages from each MLAG member interface to a corresponding backup device, to synchronize the BPDU messages of the MLAG member interfaces of each network device of the MLAG link. The synchronization at least includes message analysis and STP calculation. In a case where at least one MLAG member interface of the master device fails, a failure signal is generated. According to the failure signal, an MLAG member interface corresponding to the failed MLAG member interface in the backup device is determined as a switchable MLAG member interface, to perform BPDU message packet processing corresponding to the failed MLAG member interface through the switchable MLAG member interface.

[0076] Each of the embodiments in the present application is described in a progressive manner, and the same or similar parts of each of the embodiments can be referred to each other. Each of the embodiments mainly describes differences from other embodiments. Especially, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the related parts can be referred to the part of the method embodiments.

[0077] The device and medium provided by the embodiments of the present application are one-to-one corresponding to the method, and therefore, the device and medium also have similar beneficial technical effects to the method. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the device and medium will not be described here.

[0078] It should also be noted that the terms "comprising", "containing", or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a list of elements not only includes those elements, but also includes other elements not explicitly listed, or other elements inherent to such process, method, article or device. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or device that includes the element.

[0079] The above only describes the embodiments of the present application and is not intended to limit the present application. The present application can have various changes and modifications for those skilled in the art. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application shall be included in the scope of claims of the present application.

Claims

1. A fast convergence spanning tree protocol control method in an MLAG environment, characterized in that, Each network device corresponding to the MLAG link runs the Spanning Tree Protocol (STP), and the method includes: In the MLAG link, the master device acquires Bridge Protocol Data Unit (BPDU) messages from the peer backup device and / or sends BPDU messages from each MLAG member interface to the corresponding backup device to synchronize the BPDU messages of the MLAG member interfaces of each network device in the MLAG link. This synchronization includes at least message parsing and STP calculation. Specifically, the master device acquires the BPDU messages from the backup device through the peerlink interface and, based on the link aggregation port of the MLAG member interface corresponding to the BPDU message, synchronously sends the BPDU messages to the corresponding MLAG member interface of the master device. The peer link interface enables each MLAG member interface corresponding to the link aggregation port in the MLAG link to synchronize the BPDU messages and run a consistent STP protocol state machine and store consistent STP real-time protocol state machine data information; and the master device sends the BPDU messages of each MLAG member interface to the corresponding MLAG member interface of the link aggregation port in the backup device through the peer link interface, so that each MLAG member interface corresponding to the link aggregation port in the MLAG link synchronizes the BPDU messages and runs a consistent STP protocol state machine and stores consistent STP real-time protocol state machine data information; If at least one of the MLAG member interfaces fails in the master device, a fault signal is generated; Based on the fault signal, the MLAG member interface in the backup device corresponding to the faulty MLAG member interface is determined to be a switchable MLAG member interface, so that the BPDU message packet sending process corresponding to the faulty MLAG member interface can be performed through the switchable MLAG member interface.

2. The fast convergence spanning tree protocol control method in an MLAG environment according to claim 1, characterized in that, The method further includes: When the switchable MLAG member interface is determined, the backup device will synchronize the BPDU messages received by the switchable MLAG member interface from outside the MLAG link to the corresponding faulty MLAG member interface.

3. The fast convergence spanning tree protocol control method in an MLAG environment according to claim 1, characterized in that, The method further includes: In the event of a power failure in the primary device, the backup device generates a temporary primary device marker; The backup device uses each of the MLAG member interfaces as the switchable MLAG member interfaces to perform the BPDU message packet sending process.

4. The fast convergence spanning tree protocol control method in an MLAG environment according to claim 3, characterized in that, The method further includes: In the event that the main device recovers from a power failure, the main device will disconnect the corresponding MLAG member interfaces and establish a peerlink interface connection with the backup device. The backup device packages and processes the STP protocol state machine data and STP blocking state information corresponding to each of the switchable MLAG member interfaces of the backup device through the peerlink interface, and sends them to the corresponding MLAG member interfaces of the master device.

5. The fast convergence spanning tree protocol control method in an MLAG environment according to claim 4, characterized in that, The method further includes: Upon receiving the packaged STP protocol state machine data and the STP blocking state information, the master device establishes connections between the corresponding MLAG member interfaces and the external MLAG link; and The STP protocol state machine data and STP blocking status information of each MLAG member interface are synchronized to be consistent with the switchable MLAG member interface.

6. The fast convergence spanning tree protocol control method in an MLAG environment according to claim 5, characterized in that, After synchronizing the STP protocol state machine data and STP blocking state information of each MLAG member interface to be consistent with the switchable MLAG member interface, the method further includes: The backup device removes the temporary master device marker and disconnects the switchable MLAG member interface from the outside of the MLAG link to restore the master device's STP control.

7. The fast convergence spanning tree protocol control method in an MLAG environment according to claim 1, characterized in that, The STP real-time protocol state machine data information includes at least: an optimal priority vector table, a port role election state machine, and a protocol migration state machine; the optimal priority vector table includes at least: root path cost, root bridge, designated bridge, and designated port.

8. A fast convergence spanning tree protocol control device in an MLAG environment, characterized in that, Each network device corresponding to the MLAG link runs the Spanning Tree Protocol (STP), and the devices include: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform a fast convergence spanning tree protocol control method in an MLAG environment as described in any one of claims 1-7.

9. A non-volatile computer storage medium for controlling a fast convergence spanning tree protocol in an MLAG environment, storing computer-executable instructions, characterized in that, The computer-executable instructions are capable of executing a fast convergence spanning tree protocol control method in an MLAG environment as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Method and system for switching primary device and secondary device under MLAG (Multi-Chassis Link Aggregation Group) port failure

    CN108900415A

  • Spanning tree protocol rapid convergence method and device in MLAG environment, and medium

    CN113395261A