M-LAG data table item synchronization method and equipment
By simplifying the data table entry synchronization process by using packet encapsulation and depackaging methods in the M-LAG system, the complex synchronization mechanism in the existing technology is solved, synchronization efficiency and system stability are improved, and data surface virtualization design is supported.
Patent Information
- Application Number
- CN202510111558.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-05-13
AI Technical Summary
The data table entry synchronization mechanism between devices in the existing M-LAG system is complex, resulting in low synchronization efficiency, poor system stability, and does not conform to the data plane virtualization design concept, limiting the scalability and flexibility of the system.
By transforming the M-LAG data table entry synchronization process into packet encapsulation and depackaging, the synchronization process is simplified, multi-layer protocol parsing and complex logical judgment are avoided, and efficient data synchronization is achieved.
It improves the data synchronization efficiency of the M-LAG system, reduces development and maintenance costs, enhances the flexibility, maintainability and scalability of the system, and supports the concept of virtualization of data plane design.
Smart Images

Figure CN119996301A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer and communication technology, and in particular, to a solution for synchronizing data items such as ARP / ND, IGMP, and DHCP Snooping in an M-LAG system. Background Art
[0002] Multichassis link aggregation group (M-LAG) is a technology that allows two switch devices to negotiate link aggregation with access devices through the same aggregation state, so that the access-side device sees a virtual single device, forming an active-active system. The reliability of the M-LAG link is improved from the single-board level to the device level.
[0003] Although the two devices in the M-LAG system are still independent devices on the control plane, they work together by synchronizing the content at the protocol level. This design allows M-LAG devices to be upgraded independently, avoiding long interruptions in the stacking system due to upgrades or failures.
[0004] The two M-LAG devices in the M-LAG system need to synchronize data items of multiple protocols, including ARP, IGMP, DHCP-Snooping, etc., to ensure data consistency when the systems work together. To achieve this, the M-LAG system requires an efficient data item synchronization mechanism between M-LAG devices.
[0005] The existing mainstream method for synchronizing data table entries of M-LAG devices generally includes the following steps:
[0006] First, the two devices in the M-LAG system receive protocol messages at the M-LAG member ports that access the user side.
[0007] Then, the link layer management module parses the message header and distributes it to the corresponding protocol module;
[0008] Next, the protocol module processes the message, generates table entries, and notifies the M-LAG module;
[0009] Afterwards, the M-LAG module packages the generated table entries in a specific format and sends them to another device through the Peerlink link; when the peer device receives the M-LAG message, it unpacks it through the M-LAG module, extracts the protocol table entries and notifies the corresponding protocol module to complete the synchronization.
[0010] Although the existing synchronization mechanism can achieve data table item synchronization of M-LAG devices to a certain extent, there are still some problems, mainly in the following aspects:
[0011] First, the existing synchronization methods rely on manual packet packaging and parsing during implementation, which not only increases the complexity of development and testing, but also reduces the reusability and maintainability of the code;
[0012] Secondly, due to the complexity of the synchronization process, it is easy to introduce potential errors or delays, affecting synchronization efficiency and system stability;
[0013] In addition, the existing synchronization design does not conform to the data plane virtualization concept of the M-LAG system, which results in certain limitations on the scalability and flexibility of the system.
[0014] Therefore, providing a new synchronization solution to simplify the data synchronization process between M-LAG devices, improve synchronization efficiency, reduce development and maintenance costs, and better support the data plane virtualization design concept of the M-LAG system is an urgent problem to be solved in this field. Summary of the invention
[0015] In view of the problem that the synchronization mechanism of data table items between M-LAG devices in the existing M-LAG system is complex to implement, thereby affecting the synchronization efficiency and system stability, the object of the present invention is to provide an M-LAG data table item synchronization method that can simplify the existing synchronization mechanism. The synchronization method transforms the M-LAG data table item synchronization process from the traditional complex process of protocol message processing, table item generation and table item synchronization to a more concise, intuitive and natural message synchronization process, thereby realizing efficient synchronization of data table items between M-LAG system devices; on this basis, the present invention further provides related devices that can implement the M-LAG data table item synchronization method.
[0016] In order to achieve the above object, the present invention provides an M-LAG data table entry synchronization method, wherein the M-LAG data table entry synchronization is performed between M-LAG devices in an M-LAG system through message encapsulation and decapsulation.
[0017] In some implementations of the method of the present invention, in the synchronization method, a local M-LAG device in the M-LAG system receives a protocol message through an M-LAG member port, and encapsulates the received original protocol message into an M-LAG data synchronization message; and then sends the encapsulated M-LAG data synchronization message to a peer M-LAG device through a Peerlink link;
[0018] The peer M-LAG device unpacks the received M-LAG data synchronization message, extracts the original protocol message content, and sends it to the corresponding protocol module, which processes the message content and generates corresponding table entries.
[0019] In some implementation modes of the method of the present invention, the message header of the M-LAG data synchronization message only includes a protocol module number and message length information.
[0020] In some implementations of the method of the present invention, in the synchronization method, the M-LAG device creates a message pool through shared memory to store protocol messages to be processed; message numbers are transmitted between processes through message queues, and the receiving process extracts corresponding message content from the message pool according to the number.
[0021] In some implementations of the method of the present invention, in the synchronization method, the protocol module in the M-LAG device updates the M-LAG system status by subscribing to events published by the M-LAG module.
[0022] In some implementations of the method of the present invention, in the synchronization method, the M-LAG module sends an M-LAG hello message for pairing between devices when the M-LAG system is initialized, and determines the master and backup roles through information negotiation. After the pairing is successful, the protocol module in each device is notified to update the system status.
[0023] In some implementations of the method of the present invention, in the synchronization method, when receiving a protocol message, the protocol module in the M-LAG device determines whether to execute the synchronization task according to the status of the M-LAG system, and performs message synchronization only when the system has been established and is operating normally.
[0024] In order to achieve the above object, the present invention further provides a computer-readable storage medium, on which a program is stored, and when the program is executed by a processor, the steps of the above M-LAG data table entry synchronization method are implemented.
[0025] In order to achieve the above object, the present invention further provides a processor, the processor is used to run a program, and the program executes the steps of the above M-LAG data table entry synchronization method when running.
[0026] In order to achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program code is loaded and executed by the processor to implement the steps of the above-mentioned M-LAG data table entry synchronization method.
[0027] In order to achieve the above object, the present invention further provides a computer program product, which, when executed on a data processing device, is suitable for executing the steps of the above M-LAG data table entry synchronization method.
[0028] The M-LAG data table entry synchronization method provided by the present invention effectively simplifies the existing synchronization mechanism by transforming the M-LAG data table entry synchronization process from the traditional complex process of protocol message processing, table entry generation and table entry synchronization to a more concise, intuitive and natural message synchronization process, so that the M-LAG system not only improves the efficiency of data synchronization, but also avoids multi-layer protocol parsing and complex logical judgment, making the synchronization process more intuitive and easy to understand.
[0029] Furthermore, the M-LAG data table item synchronization method provided by the present invention has strong scalability and flexibility in specific applications. With the expansion of the M-LAG system, new protocol modules and synchronization requirements can be implemented by simply calling the encapsulation / decapsulation interface provided by the M-LAG module without changing the core synchronization logic of the system. Furthermore, the synchronization method improves system stability and maintainability while also providing convenience for future expansion and optimization.
[0030] Furthermore, the M-LAG data table entry synchronization method provided by the present invention complies with the data plane virtualization design concept of the M-LAG system, which not only simplifies the data synchronization process, but also improves the flexibility, maintainability and scalability of the system. Experiments show that the method has significant advantages in improving data synchronization efficiency, reducing development costs, and improving system stability and reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.
[0032] Figure 1 It is a flow chart of M-LAG data message synchronization in an example of the present invention;
[0033] Figure 2 It is a schematic diagram of the message structure in an example of the present invention. DETAILED DESCRIPTION
[0034] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further explained below with reference to specific diagrams.
[0035] Glossary:
[0036] The M-LAG system consists of two switch devices configured with M-LAG to form two M-LAG devices, which are then connected in peerlink topology to form an M-LAG system.
[0037] The protocol module is a module corresponding to the protocol that needs to synchronize data in the M-LAG system;
[0038] The M-LAG module is responsible for M-LAG message interaction, establishing the M-LAG system, and providing message encapsulation / decapsulation interfaces for the protocol module.
[0039] In view of the synchronization requirements of data table items of multiple protocols between two M-LAG devices in an M-LAG system, the solution of the present invention abandons the conventional synchronization solution through protocol message processing, table item generation and table item synchronization, and innovatively performs M-LAG data table item synchronization between M-LAG devices in the M-LAG system through standardized message encapsulation and unpacking, which greatly simplifies the synchronization process, thereby realizing efficient synchronization of data table items between M-LAG system devices.
[0040] Specifically, in this synchronization method, the local M-LAG device in the M-LAG system receives the protocol message through the M-LAG member port, and the protocol module in the local M-LAG device encapsulates the received original protocol message into an M-LAG data synchronization message; then the encapsulated M-LAG data synchronization message is sent to the peer M-LAG device through the Peerlink link;
[0041] After receiving the synchronization message, the M-LAG device at the other end unpacks the received M-LAG data synchronization message, extracts the original protocol message content, and sends it to the protocol module in the M-LAG device at the other end. The protocol module simulates the processing flow of the protocol message received locally to process the message content and generate corresponding table entries to achieve data synchronization.
[0042] This synchronization method can effectively avoid traditional multi-layer protocol analysis and complex logical judgment, making the synchronization process more intuitive and concise, and improving synchronization efficiency; at the same time, the M-LAG data synchronization message is transmitted through the Peerlink link to ensure efficient synchronization of the message content between the two devices.
[0043] As a further explanation, the message header of the M-LAG data synchronization message encapsulated in this synchronization method only contains the protocol module number and message length information. The protocol module number is used to find the corresponding protocol module when the M-LAG module of the opposite M-LAG device unpacks; the message length is the basic message information.
[0044] In some implementations of the present invention, the solution of the present invention further implements a synchronization mechanism for the dual-homing access status of M-LAG member ports through M-LAG message synchronization.
[0045] Specifically, under this synchronization mechanism, when the status of a member port of the local M-LAG device changes, the local M-LAG device sends an M-LAG message with high priority through the Peerlink link to synchronize the status of the member port of the local M-LAG device to the peer end (i.e., the opposite end), thereby realizing real-time monitoring of the dual-homing access status, thereby improving the reliability and stability of the entire M-LAG system in multipath redundancy scenarios.
[0046] In some embodiments of the present invention, in order to achieve efficient inter-process communication, the scheme of the present invention uses a cross-process communication mechanism based on the publish / subscribe mode, so that the protocol module in the M-LAG system updates the M-LAG system status by subscribing to events published by the M-LAG module.
[0047] Specifically, in the software system of the switch device, each protocol module usually runs in the form of an independent process, and the M-LAG system requires cooperation between different protocol modules; for this reason, in the solution of the present invention, each protocol module in the M-LAG system is implemented to subscribe to events published by the M-LAG module, and these events include sub-event items such as system status, member port status, dual-homing access status, etc.; and when these states change, the M-LAG module will trigger corresponding events and promptly notify each protocol module to update the status, thereby ensuring the consistency and synchronization of the system between different devices, and improving the real-time performance and responsiveness of the system.
[0048] In some embodiments of the present invention, the scheme of the present invention reduces the overhead of direct data transmission between processes, and further sets a message pool management mechanism based on shared memory, so that the M-LAG device in the M-LAG system creates a message pool through shared memory to store protocol messages that need to be processed; at the same time, the message number is transmitted between processes through the message queue, and the receiving process extracts the corresponding message content from the message pool according to the number for processing; in this way, the message number is transmitted through the message queue for data exchange, which further improves the performance and scalability of the system.
[0049] Specifically, in the message pool management mechanism based on shared memory, the M-LAG system can dynamically allocate a piece of shared memory as a message pool when it is initialized, which is used to store protocol messages that need to be processed; based on the message pool, when a message needs to be transmitted across processes, the process passes the message number through the message queue, and the receiving process directly accesses the message pool in the shared memory according to the number, and extracts the message content for processing. Such a message pool management mechanism can effectively avoid the overhead of directly transmitting data, ensure efficient sharing and fast access of messages, and greatly improve the performance and scalability of the system.
[0050] In some embodiments of the present invention, when the solution of the present invention establishes a Peerlink link between M-LAG devices, after the device settings are completed, the M-LAG module will pair the devices by sending an M-LAG hello message, and determine the master and backup roles through negotiation through information such as role priority and system MAC address, and after the pairing is successful, notify each protocol module in the corresponding M-LAG device to update the system status.
[0051] As a further explanation, the hello message here contains information such as M-LAG system ID, node ID, role priority, system MAC address, protocol version number, etc., which is used to establish a communication connection between devices.
[0052] During the pairing process, the devices determine the master and backup roles by negotiating information such as role priority and system MAC. Under normal circumstances, the master and backup devices behave in the same way, and the master and backup roles take effect only in fault scenarios.
[0053] After pairing is completed, the M-LAG module notifies each protocol module to update the M-LAG system status through the above mechanism.
[0054] In some embodiments of the present invention, during the data table item synchronization process, when the protocol module receives a protocol message, it can determine whether to execute the synchronization task according to the status of the M-LAG system. Only when the system has been established and is working normally, message synchronization, that is, encapsulation and unpacking of the protocol message, will be performed.
[0055] Specifically, the corresponding implementation mechanism is as follows:
[0056] When the protocol module receives a message, it first checks the status of the M-LAG system. If the system has been established, the protocol module packages the original protocol message content into an M-LAG data synchronization message and sends it to the peer device through the Peerlink link. After the peer device receives the message, the link management layer in the peer device forwards the message to the M-LAG module in the peer device. The M-LAG module parses the message header and extracts the protocol module number, and then passes the original protocol message to the corresponding protocol module according to the protocol module number to complete the table entry synchronization.
[0057] The M-LAG data table entry synchronization method based on the above scheme converts the traditional protocol table entry synchronization process into a message packing and unpacking method, making the entire synchronization process more concise, intuitive and easy to implement; the data synchronization between M-LAG devices no longer relies on complex protocol logic, but encapsulates the original protocol message into a standardized M-LAG data synchronization message for transmission, which greatly simplifies the implementation process. In this process, the device packs the original protocol message into an M-LAG synchronization message in a specific format and sends it to the peer device through the Peerlink link; after receiving the message, the receiving device unpacks and extracts the protocol message content, and sends it to the corresponding protocol module for processing, thereby simulating the processing flow of the local reception of the protocol message. The peer device will process the data in the same way as the local reception message, generate the corresponding table items, and achieve data synchronization.
[0058] With respect to the M-LAG data table entry synchronization method provided by the present invention, the specific implementation process and corresponding technical features thereof are described below by way of example.
[0059] When the present M-LAG data table entry synchronization method is specifically implemented, corresponding synchronization mechanism control software is constructed based on the aforementioned M-LAG data table entry synchronization method, and the synchronization mechanism control software is deployed in the M-LAG system.
[0060] Based on the above deployment, during the initialization phase of the M-LAG device, the system service module (i.e., the system service module of the M-LAG system) needs to apply for shared memory as a message pool, and the protocol module and the M-LAG module transmit message numbers to achieve cross-process transmission of message content.
[0061] In addition, each protocol module that needs to synchronize its status is implemented as subscribing to the status change events published by the M-LAG module, including notifications of sub-events such as M-LAG system status establishment, member port up / down status, and dual-homing access status;
[0062] Furthermore, the M-LAG module further creates a data message synchronization thread for processing a request from the protocol module to send an M-LAG synchronization message.
[0063] On this basis, the M-LAG device in the M-LAG system is started. First, the M-LAG configuration and topology connection are performed. Specifically, first, the two switches are configured with the same M-LAG system ID, then the M-LAG role priority is configured for negotiation of master and backup, then the aggregation port is configured, and the aggregation port is configured as a peerlink port for the establishment of the M-LAG system and data synchronization; finally, the peerlink port is connected.
[0064] After completing the configuration and connection, the M-LAG devices send hello messages through the peerlink link to pair, negotiate the master and backup roles, and establish the M-LAG system. After pairing is completed, the M-LAG system status establishment, M-LAG member port status and other information are published to each protocol module through the event subscription / publishing mechanism set up above.
[0065] Based on the above preparations, when the device establishing the M-LAG system receives a protocol message that needs to be synchronized on the M-LAG group member port connected to the user side, it enters the M-LAG device synchronization data entry process. Figure 1 As shown in the figure, the implementation of the M-LAG device synchronization data table entry process is as follows:
[0066] When the group member port of the local M-LAG device receives a protocol message, it first obtains an idle message number from the message pool and writes the message content to the memory location corresponding to the message number. The link layer management module in the local M-LAG device parses the Ethernet header of the message, obtains the protocol module number of the message, and sends it to the corresponding protocol module.
[0067] The protocol module in the local M-LAG device checks the status of the M-LAG system. If the system has been established and is working normally, it calls the interface provided by M-LAG to send a message synchronization request and sends the message number, message length, and protocol module number information to the M-LAG module in the local M-LAG device.
[0068] The synchronization message sending thread of the M-LAG module in the local M-LAG device reads the message number, adds a layer of M-LAG data synchronization message header to the original data message, and thus encapsulates the corresponding M-LAG message. The header only contains the protocol module number and message length information to ensure that the receiver can correctly parse the message, such as Figure 2 shown.
[0069] Then, the M-LAG module in the local M-LAG device sends the synchronization message to the peer M-LAG device through the peerlink link.
[0070] After the peer M-LAG device receives the message, its link management layer parses the Ethernet header of the message, determines that it is an M-LAG protocol message, and sends the message to the M-LAG module in the peer M-LAG device.
[0071] The M-LAG module in the peer M-LAG device parses the M-LAG message header, obtains the protocol module number, and passes the original protocol message to the corresponding protocol module.
[0072] The protocol module processes the message content in the same manner as the locally received protocol message, and finally generates the corresponding table entry, thereby completing the synchronization of the table entry.
[0073] Based on the above M-LAG data entry synchronization solution, an embodiment of the present invention further provides a computer-readable storage medium, on which a program is stored. When the program is executed by a processor, the steps of the above M-LAG data entry synchronization method are implemented.
[0074] An embodiment of the present invention further provides a processor, which is used to run a program, wherein the program executes the steps of the above-mentioned M-LAG data table entry synchronization method when running.
[0075] An embodiment of the present invention further provides a terminal device, comprising a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program code is loaded and executed by the processor to implement the steps of the above-mentioned M-LAG data table entry synchronization method.
[0076] The present invention also provides a computer program product, which, when executed on a data processing device, is suitable for executing the steps of the above-mentioned M-LAG data table entry synchronization method.
[0077] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0078] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0079] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0080] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products of the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0081] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0082] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0083] In a typical setup, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0084] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0085] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0086] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0087] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0088] The above-mentioned method of the present invention, or a specific system unit, or a part of the same, is a pure software architecture, which can be arranged on a physical medium, such as a hard disk, an optical disk, or any electronic device (such as a smart phone, a computer-readable storage medium) through program code. When the machine loads the program code and executes it (such as a smart phone loading and executing it), the machine becomes a device for implementing the present invention. The above-mentioned method and device of the present invention can also be transmitted in the form of program code through some transmission media, such as cables, optical fibers, or any transmission mode. When the program code is received, loaded and executed by a machine (such as a smart phone), the machine becomes a device for implementing the present invention.
[0089] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A method for synchronizing M-LAG data entries, characterized in that: In the synchronization method, M-LAG devices in the M-LAG system synchronize M-LAG data entries by message encapsulation and decapsulation.
2. The M-LAG data table entry synchronization method according to claim 1, characterized in that: In the synchronization method, the local M-LAG device in the M-LAG system receives the protocol message through the M-LAG member port, and encapsulates the received original protocol message into an M-LAG data synchronization message; and then sends the encapsulated M-LAG data synchronization message to the opposite M-LAG device through the Peerlink link; The peer M-LAG device unpacks the received M-LAG data synchronization message, extracts the original protocol message content, and sends it to the corresponding protocol module, which processes the message content and generates corresponding table entries.
3. The M-LAG data table entry synchronization method according to claim 2, characterized in that: The message header of the M-LAG data synchronization message only includes the protocol module number and message length information.
4. The M-LAG data table entry synchronization method according to claim 2, characterized in that: In the synchronization method, the M-LAG device creates a message pool through a shared memory to store protocol messages to be processed; message numbers are transmitted between processes through a message queue, and the receiving process extracts corresponding message content from the message pool according to the number.
5. The M-LAG data table entry synchronization method according to claim 2, characterized in that: In the synchronization method, the protocol module in the M-LAG device updates the M-LAG system status by subscribing to events published by the M-LAG module.
6. The M-LAG data table entry synchronization method according to claim 2, characterized in that: In the synchronization method, the M-LAG module sends an M-LAG hello message for pairing between devices when the M-LAG system is initialized, and determines the master and backup roles through information negotiation. After pairing is successful, the protocol module in each device is notified to update the system status.
7. The M-LAG data table entry synchronization method according to claim 2, characterized in that: In the synchronization method, when receiving a protocol message, the protocol module in the M-LAG device determines whether to execute a synchronization task according to the state of the M-LAG system, and performs message synchronization only when the system has been established and is operating normally.
8. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the steps of the M-LAG data table entry synchronization method according to any one of claims 1 to 7 are implemented.
9. A terminal device, comprising a processor, a memory, and a program stored in the memory and executable on the processor, characterized in that: The program code is loaded and executed by the processor to implement the steps of the M-LAG data table entry synchronization method according to any one of claims 1 to 7.
10. A computer program product, characterized in that When executed on a data processing device, the method is suitable for executing the steps of the M-LAG data table entry synchronization method according to any one of claims 1 to 7.