Multi-link aggregation port state synchronization method and system based on cross-device link aggregation group protocol

By obtaining and updating the port status information of the cross-device link aggregation group, the problem of port status synchronization delay is solved, and the stability of the device and the failure recovery efficiency are improved.

CN119835211BActive Publication Date: 2025-08-29SHENZHEN FENGRUNDA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510309384.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-17
Publication Date
2025-08-29
Estimated Expiration
2045-03-17

AI Technical Summary

Technical Problem

In the existing cross-device link aggregation group technology, there is a delay in port status synchronization, which affects device stability and fault recovery efficiency.

Method used

By obtaining the local port status and sending it to the master device of the link aggregation group, receiving the link aggregation port status information of the master device, updating the media access control address table, and realizing data forwarding.

Benefits of technology

Reduces the synchronization delay of port status, improves the efficiency of failure recovery, and ensures the reliability of data forwarding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119835211B_ABST
    Figure CN119835211B_ABST
Patent Text Reader

Abstract

This application discloses a multi-link aggregation port state synchronization method and system based on a cross-device link aggregation group protocol, relating to the field of network communication technology. The multi-link aggregation port state synchronization method based on a cross-device link aggregation group protocol includes: when a preset condition is met, obtaining a local first port state; sending the first port state to a cross-device link aggregation group master device; receiving link aggregation port state information from the cross-device link aggregation group master device; updating a media access control address table based on the link aggregation port state information to obtain a target media access control address table; and forwarding data based on the target media access control address table. This application can reduce port state synchronization delay in cross-device link aggregation group technology and improve fault recovery efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to a method and system for synchronizing the states of multi-link aggregation ports based on a cross-device link aggregation group protocol. Background Art

[0002] Currently, link aggregation technologies, such as multi-chassis link aggregation (MLAG), are widely used in network devices. They allow multiple physical links to be aggregated into a single logical link to improve bandwidth and redundancy. However, in existing MLAG technology, when link status changes, there is a delay in state synchronization between MLAG devices, which affects stability. Therefore, how to reduce the synchronization delay of port states in multi-chassis link aggregation technology and improve fault recovery efficiency remains an unresolved issue.

[0003] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is prior art. Summary of the Invention

[0004] The main purpose of this application is to provide a multi-link aggregation port state synchronization method and system based on a cross-device link aggregation group protocol, aiming to solve the technical problem of how to reduce the synchronization delay of the port state in the cross-device link aggregation group technology and improve the fault recovery efficiency.

[0005] To achieve the above-mentioned purpose, the present application proposes a multi-link aggregation port status synchronization method based on a cross-device link aggregation group protocol, which is characterized in that the multi-link aggregation port status synchronization method based on a cross-device link aggregation group protocol is applied to a cross-device link aggregation group backup device, and the method includes: when a preset condition is met, obtaining the local first port status; sending the first port status to the cross-device link aggregation group master device; receiving link aggregation port status information from the cross-device link aggregation group master device; updating the media access control address table according to the link aggregation port status information to obtain the target media access control address table; and forwarding data according to the target media access control address table.

[0006] In one embodiment, when a preset condition is met, the step of obtaining the local first port status includes:

[0007] Monitor local port status;

[0008] When the local port state changes, the first port state is obtained according to the changed port state.

[0009] In one embodiment, when a preset condition is met, the step of obtaining the local first port status includes:

[0010] Get the preset heartbeat interval;

[0011] According to the preset heartbeat interval, the local port status is acquired regularly to obtain the first port status.

[0012] In one embodiment, the step of sending the first port status to the master device of the inter-device link aggregation group includes:

[0013] generating a heartbeat signal according to the first port state;

[0014] The heartbeat signal is sent to the master device of the inter-device link aggregation group.

[0015] In one embodiment, the step of updating the media access control address table according to the link aggregation port state information to obtain the target media access control address table includes:

[0016] When the link aggregation port state information is in an open state, adding the target media access control address to the media access control address table to obtain a target media access control address table;

[0017] When the link aggregation port state information is in a closed state, the target media access control address is deleted from the media access control address table to obtain a target media access control address table.

[0018] In one embodiment, after sending the first port status to the master device of the inter-device link aggregation group, the method further includes:

[0019] Send a confirmation request to the master device of the cross-device link aggregation group;

[0020] A confirmation signal from a master device of the inter-device link aggregation group is received to ensure that the first port state is successfully received.

[0021] In one embodiment, the multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol is applied to a master device of the cross-device link aggregation group, and the method includes:

[0022] Receiving first port status information from a standby device in an inter-device link aggregation group;

[0023] Get the local second port information;

[0024] Obtaining multi-link aggregation port status information according to the first port status information and the second port status information;

[0025] The link aggregation port status information is synchronized to the cross-device link aggregation group backup device.

[0026] In one embodiment, the step of obtaining the multi-link aggregation port status information according to the first port status information and the second port status information includes:

[0027] When the first port status information and the second port status information are both in a closed state, the multi-link aggregation port status information is obtained as a closed state;

[0028] When at least one of the first port status information and the second port status information is in an open state, the multi-link aggregation port status information is obtained as being in an open state.

[0029] In one embodiment, after receiving the first port status information from the inter-device link aggregation group backup device, the method further includes:

[0030] Receive a confirmation request from a standby device in a cross-device link aggregation group;

[0031] And send a confirmation signal to the inter-device link aggregation group backup device according to the confirmation request.

[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes a multi-link aggregation port state synchronization device based on a cross-device link aggregation group protocol, the multi-link aggregation port state synchronization device based on a cross-device link aggregation group protocol comprising:

[0033] An acquisition module, configured to acquire a local first port state when a preset condition is met;

[0034] A sending module, configured to send the first port status to a master device of an inter-device link aggregation group;

[0035] A receiving module, configured to receive link aggregation port status information from a master device of an inter-device link aggregation group;

[0036] An updating module, configured to update a media access control address table according to the link aggregation port state information to obtain a target media access control address table;

[0037] The forwarding module is used to forward data according to the target media access control address table.

[0038] In addition, to achieve the above-mentioned purpose, the present application also proposes a multi-link aggregation port status synchronization device based on a cross-device link aggregation group protocol, the device including: a memory, a processor, and a computer program stored on the memory and runnable on the processor, the computer program being configured to implement the steps of the multi-link aggregation port status synchronization method based on a cross-device link aggregation group protocol as described above.

[0039] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the multi-link aggregation port status synchronization method based on the cross-device link aggregation group protocol as described above are implemented.

[0040] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol as described above.

[0041] The present application provides a multi-link aggregation port status synchronization method based on a cross-device link aggregation group protocol. When a preset condition is met, the present application obtains the local first port status; sends the first port status to the cross-device link aggregation group master device; receives link aggregation port status information from the cross-device link aggregation group master device; updates the media access control address table according to the link aggregation port status information to obtain a target media access control address table; and forwards data according to the target media access control address table.

[0042] In summary, the present application obtains the link aggregation port status based on the received link aggregation port status information, and updates the media access control address table, thereby ensuring the availability of the media access control address table, enabling the cross-device link aggregation group to successfully complete data forwarding, reducing the synchronization delay of the port status in the cross-device link aggregation group technology, and improving the fault recovery efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0045] Figure 1 A flowchart of a first embodiment of a method for synchronizing the state of multi-link aggregation ports based on a cross-device link aggregation group protocol is provided for this application;

[0046] Figure 2 This is a schematic diagram of the mlag page configuration provided in Example 1 of the multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol of this application;

[0047] Figure 3 A flowchart of the second embodiment of the multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol of this application is provided;

[0048] Figure 4 A schematic diagram of multi-link aggregation port status determination provided in Example 2 of the multi-link aggregation port status synchronization method based on the cross-device link aggregation group protocol of this application;

[0049] Figure 5 Provides a brief flow chart of the multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol of the present application;

[0050] Figure 6 This is a schematic diagram of the module structure of a multi-link aggregation port state synchronization device based on a cross-device link aggregation group protocol according to an embodiment of the present application;

[0051] Figure 7 Schematic diagram of a multi-link aggregation port state synchronization system based on a cross-device link aggregation group protocol involved in a multi-link aggregation port state synchronization method based on a cross-device link aggregation group protocol in an embodiment of the present application.

[0052] The purpose, features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0053] It should be understood that the specific embodiments described herein are merely used to explain the technical solutions of the present application and are not intended to limit the present application.

[0054] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0055] The main solution of this application is to obtain the local first port status when the preset conditions are met; send the first port status to the master device of the cross-device link aggregation group; receive the link aggregation port status information from the master device of the cross-device link aggregation group; update the media access control address table according to the link aggregation port status information to obtain the target media access control address table; and forward data according to the target media access control address table.

[0056] In the currently used MLAG technology, there is a delay in state synchronization between MLAG devices when the link status changes, which affects stability. Therefore, how to reduce the synchronization delay of port states in cross-device link aggregation group technology and improve fault recovery efficiency is a problem that still needs to be solved.

[0057] The present application obtains the link aggregation port status based on the received link aggregation port status information and updates the media access control address table, thereby ensuring the availability of the media access control address table, enabling the cross-device link aggregation group to successfully complete data forwarding, reducing the synchronization delay of the port status in the cross-device link aggregation group technology, and improving the fault recovery efficiency.

[0058] Based on this, the embodiment of the present application provides a multi-link aggregation port state synchronization method based on a cross-device link aggregation group protocol, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol of this application.

[0059] In this embodiment, the multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol includes steps S10 to S50:

[0060] Step S10: When a preset condition is met, obtaining the local first port status;

[0061] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, mobile phone, etc., or an electronic device capable of implementing the above functions, a master device of an inter-device link aggregation group, a backup device of an inter-device link aggregation group, etc. The following describes this embodiment using a backup device of an inter-device link aggregation group as an example.

[0062] It's important to note that the first port refers to an MLAG port. An MLAG port refers to a physical or logical port that participates in multi-chassis link aggregation. In an MLAG configuration, multiple ports on a device (such as a switch) are aggregated into a single logical port, known as an MLAG port. Through MLAG technology, these ports can work together to achieve higher bandwidth and improved redundancy.

[0063] It is understandable that obtaining the local first port status may be triggered by various conditions, for example, obtaining the status of the first port immediately upon detecting a change in the port status, or obtaining the status of the first port at regular intervals.

[0064] In a feasible embodiment, when a preset condition is met, the step of obtaining the local first port status includes:

[0065] Monitor local port status;

[0066] When the local port state changes, the first port state is obtained according to the changed port state.

[0067] It is understandable that by monitoring the local port status, it is possible to promptly detect changes in the port and obtain the port status after the change. For example, if the port changes from open (up) to closed (down), the port status can be obtained as down; if the port changes from down to up, the port status can be obtained as up.

[0068] In a feasible embodiment, when a preset condition is met, the step of obtaining the local first port status includes:

[0069] Get the preset heartbeat interval;

[0070] According to the preset heartbeat interval, the local port status is acquired regularly to obtain the first port status.

[0071] It is understandable that the heartbeat mechanism can be used to periodically send the mlag port status to the master device. First, obtain the preset heartbeat interval. The heartbeat interval can be configured according to network conditions and requirements, usually between a few seconds and tens of seconds. Figure 2 , Figure 2 Configure the schematic for the mlag page. Figure 2 In [1], you can enable the mLAG function and set the mLAG system group ID. The two mLAG devices must be in the same ID group. The master device can be selected based on the system priority function. If the priority is the same, the master device is selected based on the MAC address. The heartbeat interval function can be used to set the time for sending heartbeat messages. The peer-link interface is the mLAG protocol message transmission path. Multiple mLAG ports can be configured through the mLAG interface function.

[0072] Step S20: sending the first port status to the master device of the inter-device link aggregation group;

[0073] It is understandable that after the first port status is acquired, the first port status may be sent to the master device of the inter-device link aggregation group so that the master device of the inter-device link aggregation group can calculate the multi-link aggregation port status.

[0074] In a feasible manner, after sending the first port status to the master device of the inter-device link aggregation group, the method further includes:

[0075] Send a confirmation request to the master device of the cross-device link aggregation group;

[0076] A confirmation signal from a master device of the inter-device link aggregation group is received to ensure that the first port state is successfully received.

[0077] It is understandable that after sending the first port status to the cross-device link aggregation group master device, there may be a situation where the information fails to be sent. Therefore, a confirmation request can be sent to the cross-device link aggregation group master device again, and a confirmation signal from the cross-device link aggregation group master device can be received to ensure that the first port status is successfully sent to the cross-device link aggregation group master device.

[0078] Step S30: receiving link aggregation port status information from the master device of the cross-device link aggregation group;

[0079] It is understandable that after sending the first port status to the cross-device link aggregation group master device, the cross-device link aggregation group master device can calculate the link aggregation port status information and reply, and receive the link aggregation port status information from the cross-device link aggregation group master device.

[0080] Step S40: updating the media access control address table according to the link aggregation port state information to obtain a target media access control address table;

[0081] As you can understand, the Media Access Control (MAC) address table records the mapping between the MAC addresses of other devices and interfaces, as well as interface-related information. This is the foundation for network devices to implement data forwarding. When a switch receives a data packet, it queries the MAC table based on the packet's destination MAC address to determine how to forward the packet. In this embodiment, the MAC address table is updated based on the link aggregation port status information to obtain the target MAC address table, ensuring smooth data transmission.

[0082] In a feasible manner, the step of updating the media access control address table according to the link aggregation port state information to obtain the target media access control address table includes:

[0083] When the link aggregation port state information is in an open state, adding the target media access control address to the media access control address table to obtain a target media access control address table;

[0084] When the link aggregation port state information is in a closed state, the target media access control address is deleted from the media access control address table to obtain a target media access control address table.

[0085] It is understandable that the addition or deletion of the media access control address table may be determined according to the link aggregation port status information.

[0086] Step S50: forwarding data according to the target media access control address table.

[0087] It is understandable that available MAC addresses are added to the target media access control address table or unavailable MAC addresses are deleted, and data can be forwarded according to the target media access control address table to avoid forwarding failures.

[0088] In this embodiment, when a preset condition is met, the local first port status is obtained; the first port status is sent to the master device of the cross-device link aggregation group; the link aggregation port status information is received from the master device of the cross-device link aggregation group; the media access control address table is updated according to the link aggregation port status information to obtain the target media access control address table; and data is forwarded according to the target media access control address table.

[0089] To sum up, this embodiment obtains the link aggregation port status based on the received link aggregation port status information and updates the media access control address table, thereby ensuring the availability of the media access control address table, enabling the cross-device link aggregation group to successfully complete data forwarding, reducing the synchronization delay of the port status in the cross-device link aggregation group technology, and improving the fault recovery efficiency.

[0090] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above embodiment 1 can be referred to the above introduction and will not be described in detail later. Figure 3 , Figure 3 This is a flow chart of the second embodiment of the multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol of this application.

[0091] In this embodiment, the multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol includes steps S100 to S400:

[0092] Step S100: receiving first port status information from a standby device in an inter-device link aggregation group;

[0093] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, mobile phone, etc., or an electronic device capable of implementing the above functions, a master device of an inter-device link aggregation group, a backup device of an inter-device link aggregation group, etc. The following describes this embodiment using the master device of an inter-device link aggregation group as an example.

[0094] It is understandable that the first port status information of the cross-device link aggregation group standby device records the survival status of the port. Through the first port status information, it can be known whether the port of the cross-device link aggregation group standby device is enabled.

[0095] In a feasible manner, after receiving the first port status information from the inter-device link aggregation group backup device, the method further includes:

[0096] Receive a confirmation request from a standby device in a cross-device link aggregation group;

[0097] And send a confirmation signal to the inter-device link aggregation group backup device according to the confirmation request.

[0098] It is understandable that in order to ensure successful information transmission, the cross-device link aggregation group backup device may make a confirmation request. Therefore, after receiving the confirmation request from the cross-device link aggregation group backup device, a confirmation signal may be sent to the cross-device link aggregation group backup device according to the confirmation request.

[0099] Step S200: Obtain local second port information;

[0100] It is understandable that the calculation of the multi-link aggregation port state information also requires the local port state, and therefore, the local second port information may be obtained to calculate the final multi-link aggregation port state information.

[0101] Step S300: Obtaining multi-link aggregation port status information according to the first port status information and the second port status information;

[0102] It is understandable that for a cross-device link aggregation group, the MLAG port is considered down only when both devices' MLAG ports are down. If the MLAG port of the other device is up and the MLAG port of the local device is down, the local device will consider its MLAG port to be up. In this case, the status of the MLAG ports needs to be quickly synchronized. Figure 4 , Figure 4 This is a schematic diagram of determining the status of a multi-link aggregation port. Figure 4 The master device is the master device of the cross-device link aggregation group, the backup device is the backup device of the cross-device link aggregation group, the mlag port is the port, and the aggregation device is the other device connected to the ports of the master device and the backup device of the cross-device link aggregation group.

[0103] In a feasible manner, the step of obtaining the multi-link aggregation port state information according to the first port state information and the second port state information includes:

[0104] When the first port status information and the second port status information are both in a closed state, the multi-link aggregation port status information is obtained as a closed state;

[0105] When at least one of the first port status information and the second port status information is in an open state, the multi-link aggregation port status information is obtained as being in an open state.

[0106] Step S400: Synchronize the link aggregation port status information to the cross-device link aggregation group backup device.

[0107] It is understandable that after calculating the link aggregation port state information, synchronizing the link aggregation port state information to the cross-device link aggregation group backup device can enable the cross-device link aggregation group backup device to complete the MAC table update and ensure data forwarding.

[0108] For example, in order to help understand the implementation process of the multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol obtained by combining this embodiment with the above embodiment 1, please refer to Figure 5 , Figure 5 A simplified flowchart of a multi-link aggregation port state synchronization method based on a cross-device link aggregation group protocol is provided. Specifically, when the mlag port of a backup device changes or a timed time interval is reached, the backup device sends an mlag message to the master device. The master device receives the mlag message from the backup device, then calculates the state of the protocol mlag port and sends the state of the protocol mlag port to the backup device.

[0109] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol of the present application. More forms of simple transformations based on this technical concept are all within the scope of protection of the present application.

[0110] This application also provides a multi-link aggregation port state synchronization device based on a cross-device link aggregation group protocol, please refer to Figure 6 The multi-link aggregation port state synchronization device based on the cross-device link aggregation group protocol includes:

[0111] An acquisition module 10 is configured to acquire a local first port state when a preset condition is met;

[0112] A sending module 20, configured to send the first port status to a master device of an inter-device link aggregation group;

[0113] A receiving module 30 is configured to receive link aggregation port status information from a master device of an inter-device link aggregation group;

[0114] An updating module 40 is configured to update a media access control address table according to the link aggregation port state information to obtain a target media access control address table;

[0115] The forwarding module 50 is configured to forward data according to the target media access control address table.

[0116] In this embodiment, when a preset condition is met, the local first port status is obtained; the first port status is sent to the master device of the cross-device link aggregation group; the link aggregation port status information is received from the master device of the cross-device link aggregation group; the media access control address table is updated according to the link aggregation port status information to obtain the target media access control address table; and data is forwarded according to the target media access control address table.

[0117] To sum up, this embodiment obtains the link aggregation port status based on the received link aggregation port status information and updates the media access control address table, thereby ensuring the availability of the media access control address table, enabling the cross-device link aggregation group to successfully complete data forwarding, reducing the synchronization delay of the port status in the cross-device link aggregation group technology, and improving the fault recovery efficiency.

[0118] In one embodiment, the acquisition module 10 is further configured to monitor a local port state; when the local port state changes, the first port state is obtained according to the changed port state.

[0119] In one embodiment, the acquisition module 10 is further configured to acquire a preset heartbeat interval; and based on the preset heartbeat interval, regularly acquire the local port status to obtain the first port status.

[0120] In one embodiment, the sending module 20 is further configured to generate a heartbeat signal according to the first port state; and send the heartbeat signal to a master device of the inter-device link aggregation group.

[0121] In one embodiment, the update module 40 is further used to add the target media access control address to the media access control address table when the link aggregation port status information is in the open state to obtain the target media access control address table; when the link aggregation port status information is in the closed state, delete the target media access control address from the media access control address table to obtain the target media access control address table.

[0122] In one embodiment, the sending module 20 is further configured to send a confirmation request to the master device of the inter-device link aggregation group; and receive a confirmation signal from the master device of the inter-device link aggregation group to ensure that the first port state is successfully received.

[0123] The multi-link aggregation port state synchronization device based on the cross-device link aggregation group protocol provided by the present application adopts the multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol in the above-mentioned embodiment, which can solve the technical problem of how to reduce the synchronization delay of the port state in the cross-device link aggregation group technology and improve the fault recovery efficiency. Compared with the existing technology, the beneficial effects of the multi-link aggregation port state synchronization device based on the cross-device link aggregation group protocol provided by the present application are the same as the beneficial effects of the multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol provided by the above-mentioned embodiment, and the other technical features of the multi-link aggregation port state synchronization device based on the cross-device link aggregation group protocol are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.

[0124] The present application provides a multi-link aggregation port state synchronization device based on a cross-device link aggregation group protocol. The multi-link aggregation port state synchronization device based on a cross-device link aggregation group protocol includes: 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, and the instructions are executed by the at least one processor so that the at least one processor can execute the multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol in the above-mentioned embodiment one.

[0125] This application provides a consistency check system for cross-device link aggregation group configuration, such as Figure 7 As shown, the multi-link aggregation port state synchronization system based on the cross-device link aggregation group protocol includes a cross-device link aggregation group master device and a cross-device link aggregation group backup device.

[0126] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

[0127] The present application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, and the computer-readable program instructions are used to execute the multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol in the above embodiment.

[0128] The computer-readable storage medium provided herein may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems, or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including, but not limited to, wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0129] The computer-readable storage medium may be included in a multi-link aggregation port state synchronization device based on an inter-device link aggregation group protocol; or may exist independently without being assembled into a multi-link aggregation port state synchronization device based on an inter-device link aggregation group protocol.

[0130] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by a multi-link aggregation port state synchronization device based on a cross-device link aggregation group protocol, the multi-link aggregation port state synchronization device based on the cross-device link aggregation group protocol: when a preset condition is met, obtains the local first port state; sends the first port state to the cross-device link aggregation group master device; receives link aggregation port state information from the cross-device link aggregation group master device; updates the media access control address table according to the link aggregation port state information to obtain a target media access control address table; and forwards data according to the target media access control address table.

[0131] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0132] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.

[0133] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.

[0134] The computer-readable storage medium provided in this application stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned method for synchronizing the state of multi-link aggregate ports based on a cross-device link aggregation group protocol. This computer-readable storage medium addresses the technical problem of reducing port state synchronization delay and improving fault recovery efficiency in cross-device link aggregation group technology. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the method for synchronizing the state of multi-link aggregate ports based on a cross-device link aggregation group protocol provided in the aforementioned embodiments, and are not further elaborated here.

[0135] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol as described above.

[0136] The computer program product provided in this application can solve the technical problem of reducing port state synchronization delays and improving fault recovery efficiency in cross-device link aggregation group technology. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol provided in the above-mentioned embodiment, and will not be further described here.

[0137] The above description is only part of the embodiments of the present application and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for synchronizing the state of multi-link aggregation ports based on a cross-device link aggregation group protocol, characterized in that: The multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol is applied to a cross-device link aggregation group standby device, and the method includes: When the preset conditions are met, the local first port status is obtained; Sending the first port status to a master device of an inter-device link aggregation group; Receive link aggregation port status information from the master device of the cross-device link aggregation group; Update the media access control address table according to the link aggregation port state information to obtain a target media access control address table; forwarding data according to the target media access control address table; Wherein, when the preset condition is met, the step of obtaining the local first port status includes: Monitor local port status; When the local port state changes, the first port state is obtained according to the changed port state; Get the preset heartbeat interval; According to the preset heartbeat interval, regularly obtain the local port status to obtain the first port status; The step of sending the first port status to the master device of the inter-device link aggregation group includes: generating a heartbeat signal according to the first port state; The heartbeat signal is sent to the master device of the inter-device link aggregation group.

2. The method according to claim 1, wherein The step of updating the media access control address table according to the link aggregation port state information to obtain the target media access control address table includes: When the link aggregation port state information is in an open state, adding the target media access control address to the media access control address table to obtain a target media access control address table; When the link aggregation port state information is in a closed state, the target media access control address is deleted from the media access control address table to obtain a target media access control address table.

3. The method according to claim 1, wherein After sending the first port status to the master device of the inter-device link aggregation group, the method further includes: Send a confirmation request to the master device of the cross-device link aggregation group; A confirmation signal from a master device of the inter-device link aggregation group is received to ensure that the first port state is successfully received.

4. A multi-link aggregation port state synchronization method based on a cross-device link aggregation group protocol, characterized in that: The multi-link aggregation port state synchronization method based on the cross-device link aggregation group protocol is applied to the master device of the cross-device link aggregation group, and the method includes: Receiving first port status information from a standby device in an inter-device link aggregation group; Obtain local second port status information; Obtaining multi-link aggregation port status information according to the first port status information and the second port status information; Synchronizing the link aggregation port status information to the cross-device link aggregation group backup device; Update the media access control address table according to the link aggregation port state information to obtain a target media access control address table; forwarding data according to the target media access control address table; The step of receiving first port status information from a standby device in an inter-device link aggregation group includes: Receive heartbeat signals from standby devices in a cross-device link aggregation group; First port status information is obtained according to the heartbeat signal.

5. The method according to claim 4, wherein The step of obtaining the multi-link aggregation port status information according to the first port status information and the second port status information includes: When the first port status information and the second port status information are both in a closed state, the multi-link aggregation port status information is obtained as a closed state; When at least one of the first port status information and the second port status information is in an open state, the multi-link aggregation port status information is obtained as being in an open state.

6. The method according to claim 5, wherein After receiving the first port status information from the inter-device link aggregation group standby device, the method further includes: Receive a confirmation request from a standby device in a cross-device link aggregation group; And send a confirmation signal to the inter-device link aggregation group backup device according to the confirmation request.

7. A multi-link aggregation port state synchronization system based on a cross-device link aggregation group protocol, characterized in that: The multi-link aggregation port status synchronization system based on the cross-device link aggregation group protocol includes a cross-device link aggregation group master device and a cross-device link aggregation group backup device. The cross-device link aggregation group master device executes the multi-link aggregation port status synchronization method based on the cross-device link aggregation group protocol as described in any one of claims 1-3; the cross-device link aggregation group backup device executes the multi-link aggregation port status synchronization method based on the cross-device link aggregation group protocol as described in any one of claims 4-6.

Citation Information

Patent Citations

  • Fault handling method and device

    CN104333470A

  • Link fault convergence method and device, electronic equipment and storage medium

    CN112187633A