Method and system for checking consistency of cross-device link aggregation group configuration

By receiving and comparing the configuration consistency check messages of the M-LAG device, automatic configuration synchronization is realized, which solves the problem of inconsistent M-LAG configuration in the existing technology and improves the accuracy of the configuration check.

CN118900238BActive Publication Date: 2025-01-24SHENZHEN FENGRUNDA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411356252.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-01-24
Estimated Expiration
2044-09-27

AI Technical Summary

Technical Problem

The accuracy of the consistency check of the configuration of the M-LAG in the prior art is low, and it is impossible to ensure that the configuration of the devices on both ends of the M-LAG is completely consistent.

Method used

By receiving the configuration consistency inspection message from the M-Lag sending device, obtain the target configuration information, and compare with the local configuration information. When inconsistent, configure the configuration information according to the target configuration information to achieve the consistency inspection and synchronization of automation.

Benefits of technology

The accuracy of the consistency check of cross-device link aggregation group configuration is improved, ensuring that the configuration of M-LAG devices is completely consistent, and avoiding problems such as link packet loss caused by inconsistent configurations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118900238B_ABST
    Figure CN118900238B_ABST
Patent Text Reader

Abstract

The present application discloses a method and system for checking the consistency of a cross-device link aggregation group configuration, and relates to the field of network communication technology. The method for checking the consistency of a cross-device link aggregation group configuration includes: receiving a configuration consistency check message from a device sending a cross-device link aggregation group to obtain target configuration information; obtaining local configuration information, and comparing the local configuration information with the target configuration information; when the local configuration information is inconsistent with the target configuration information, performing configuration synchronization according to the target configuration information. The present application improves the accuracy of the consistency check of the cross-device link aggregation group configuration by automatically performing a consistency check of the cross-device link aggregation group configuration.
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 checking the consistency of a cross-device link aggregation group configuration. Background Art

[0002] In the current deployment of Multi-Chassis Link Aggregation Group (M-LAG) systems, configuration consistency check is a key step to ensure that two M-LAG devices can correctly collaborate and forward messages. This process is usually implemented by exchanging configuration information through peer-link links, which are divided into two categories for checking: critical configuration and general configuration. Critical configuration directly affects the forwarding function of the M-LAG system. If it does not match, the M-LAG interface on the device will be set to the down state, which may cause problems such as normal link status but long-term packet loss. General configuration mainly affects the function of the service module. Although it does not affect the overall operation of the M-LAG system when it does not match, it may weaken the performance of specific services.

[0003] Currently, the consistency check of M-LAG configuration is mainly performed manually, but due to the low accuracy of this method, it cannot ensure that the configurations of the devices at both ends of the M-LAG are completely consistent. Therefore, how to improve the accuracy of the consistency check of the cross-device link aggregation group configuration is a problem that still needs to be solved.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present application is to provide a method and system for consistency checking of cross-device link aggregation group configurations, aiming to solve the technical problem of how to improve the accuracy of consistency checking of cross-device link aggregation group configurations.

[0006] To achieve the above object, the present application proposes a method for checking the consistency of a cross-device link aggregation group configuration, the method comprising:

[0007] Receive a configuration consistency check message from a device sending a cross-device link aggregation group to obtain target configuration information;

[0008] Acquire local configuration information, and compare the local configuration information with the target configuration information;

[0009] When the local configuration information is inconsistent with the target configuration information, configuration synchronization is performed according to the target configuration information.

[0010] In one embodiment, before the step of receiving a configuration consistency check message from a device sending a cross-device link aggregation group to obtain target configuration information, the step further includes:

[0011] Get the data fields stored in the configuration structure;

[0012] According to the data field, the configuration synchronization function is enabled or disabled.

[0013] In one embodiment, the step of receiving a configuration consistency check message from a device sending a cross-device link aggregation group to obtain target configuration information includes:

[0014] Receive messages from the sending device in the cross-device link aggregation group;

[0015] The type of the message is identified, and a configuration consistency check message is determined according to the type.

[0016] In one embodiment, after the step of obtaining the local configuration information and comparing the local configuration information with the target configuration information, the method further includes:

[0017] When the local configuration information is inconsistent with the target configuration information, determining whether configuration synchronization can be performed;

[0018] If configuration synchronization is not possible, a warning message is generated.

[0019] In one embodiment, before the step of performing configuration synchronization according to the target configuration information, the method further includes:

[0020] Encapsulating the target configuration information to obtain a data packet;

[0021] Sending the data packet to a network protocol device so that the network protocol device performs compatibility checking and verification;

[0022] Receive feedback information from the network protocol device, and determine a configuration strategy according to the feedback information.

[0023] In one embodiment, when the local configuration information is inconsistent with the target configuration information, the step of performing configuration synchronization according to the target configuration information includes:

[0024] When the local configuration information is inconsistent with the target configuration information, checking whether the configuration synchronization function is enabled;

[0025] When the configuration synchronization function is in an enabled state, configuration synchronization is performed according to the target configuration information.

[0026] In one embodiment, after the step of performing configuration synchronization according to the target configuration information, the method further includes:

[0027] Collect data information during configuration synchronization;

[0028] Generate a log report based on the data information.

[0029] In one embodiment, the method for checking the consistency of the cross-device link aggregation group configuration includes:

[0030] Obtaining a preset time interval, and periodically generating a configuration consistency check message according to the preset time interval;

[0031] The configuration consistency check message is sent to the inter-device link aggregation group sending device.

[0032] In one embodiment, the method for checking the consistency of the cross-device link aggregation group configuration includes:

[0033] receiving data packets from a receiving device in a cross-device link aggregation group;

[0034] Perform compatibility check and verification according to the data packet and generate feedback information;

[0035] The feedback information is sent to a receiving device in the inter-device link aggregation group.

[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a consistency check device for cross-device link aggregation group configuration, and the consistency check device for cross-device link aggregation group configuration includes:

[0037] A receiving module, used for receiving a configuration consistency check message from a sending device of a cross-device link aggregation group to obtain target configuration information;

[0038] A comparison module, used to obtain local configuration information and compare the local configuration information with the target configuration information;

[0039] The synchronization module is used to perform configuration synchronization according to the target configuration information when the local configuration information is inconsistent with the target configuration information.

[0040] In addition, to achieve the above-mentioned purpose, the present application also proposes a consistency check device for the configuration of a cross-device link aggregation group, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the consistency check method for the configuration of a cross-device link aggregation group as described above.

[0041] 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 consistency check method for the cross-device link aggregation group configuration as described above are implemented.

[0042] 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 consistency check method for the cross-device link aggregation group configuration as described above.

[0043] The present application provides a method for checking the consistency of the configuration of a cross-device link aggregation group. The present application first receives a configuration consistency check message from a device sending a cross-device link aggregation group to obtain target configuration information; then obtains local configuration information, and compares the local configuration information with the target configuration information; when the local configuration information is inconsistent with the target configuration information, performs configuration synchronization according to the target configuration information.

[0044] In summary, the present application automatically performs configuration consistency check and configuration synchronization of devices in a cross-device link aggregation group by configuring consistency check messages, thereby improving the accuracy of consistency check of the cross-device link aggregation group configuration. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] 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.

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

[0047] Figure 1 A flowchart of a first embodiment of a method for checking the consistency of a cross-device link aggregation group configuration according to the present application;

[0048] Figure 2 A flow chart of Embodiment 2 of the method for checking the consistency of the cross-device link aggregation group configuration provided by the present application;

[0049] Figure 3 A flowchart diagram of Embodiment 3 of the method for checking the consistency of a cross-device link aggregation group configuration provided by the present application;

[0050] Figure 4A brief flowchart of a method for checking the consistency of a cross-device link aggregation group configuration provided in Embodiment 1 of the present application;

[0051] Figure 5 A schematic diagram of the module structure of a consistency check device configured for a cross-device link aggregation group according to an embodiment of the present application;

[0052] Figure 6 A schematic diagram of a consistency check system for a cross-device link aggregation group configuration involved in a consistency check method for a cross-device link aggregation group configuration in an embodiment of the present application.

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

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

[0055] 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.

[0056] The main solution of the present application is to receive a configuration consistency check message from a device sending a cross-device link aggregation group to obtain target configuration information; obtain local configuration information, and compare the local configuration information with the target configuration information; when the local configuration information is inconsistent with the target configuration information, perform configuration synchronization according to the target configuration information.

[0057] Currently, the consistency check of M-LAG configuration is mainly performed manually, but due to the low accuracy of this method, it cannot ensure that the configurations of the devices at both ends of the M-LAG are completely consistent. Therefore, how to improve the accuracy of the consistency check of the cross-device link aggregation group configuration is a problem that still needs to be solved.

[0058] This application automatically performs configuration consistency check and configuration synchronization of devices in a cross-device link aggregation group by configuring consistency check messages, thereby improving the accuracy of consistency check of cross-device link aggregation group configurations.

[0059] Based on this, the embodiment of the present application provides a method for checking the consistency of the cross-device link aggregation group configuration, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the consistency check method for cross-device link aggregation group configuration of the present application.

[0060] In this embodiment, the method for checking the consistency of the cross-device link aggregation group configuration includes steps S10 to S30:

[0061] Step S10: receiving a configuration consistency check message from a device sending a cross-device link aggregation group to obtain target configuration information;

[0062] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a consistency check receiving device configured in a cross-device link aggregation group, etc. The following takes the consistency check receiving device configured in a cross-device link aggregation group as an example to illustrate this embodiment.

[0063] It should be noted that the inter-device link aggregation group is M-LAG, and the configuration consistency check message includes the configuration summary information of the M-LAG sending device.

[0064] In a feasible manner, before the step of receiving a configuration consistency check message from a device sending a cross-device link aggregation group to obtain target configuration information, the step further includes:

[0065] Get the data fields stored in the configuration structure;

[0066] According to the data field, the configuration synchronization function is enabled or disabled.

[0067] It should be noted that the configuration structure is a common data organization method used to store and manage the configuration information of a program or system. The data field is check_auto-config. When the m-lag auto-config-syncenable command is executed, the system will indicate in this field that the automatic configuration synchronization function has been enabled. Among them, the m-lag auto-config-sync enable command is a newly added command used to enable the automatic configuration synchronization function, and correspondingly, the m-lagauto-config-sync disable command is used to disable the automatic configuration synchronization function.

[0068] In a feasible manner, the step of receiving a configuration consistency check message from a device sending a cross-device link aggregation group to obtain target configuration information includes:

[0069] Receive messages from the sending device in the cross-device link aggregation group;

[0070] The type of the message is identified, and a configuration consistency check message is determined according to the type to obtain target configuration information.

[0071] It is understandable that the messages from the device sending the cross-device link aggregation group include not only configuration consistency check messages, but also messages with other information, so it is necessary to identify the type of the message, and the type of the configuration consistency check message is the M-LAG protocol message, so when the M-LAG protocol message is identified, it can be determined that it is a configuration consistency check message, wherein the identification process is performed by the hardware support layer (Hardware support layer, hsl).

[0072] Step S20: Acquire local configuration information, and compare the local configuration information with the target configuration information;

[0073] It is understandable that the local configuration information should be the same as the target configuration information, so by comparing the local configuration information with the target configuration information, the configuration consistency of the M-LAG can be determined.

[0074] In a feasible manner, after the step of obtaining the local configuration information and comparing the local configuration information with the target configuration information, the method further includes:

[0075] When the local configuration information is inconsistent with the target configuration information, determining whether configuration synchronization can be performed;

[0076] If configuration synchronization is not possible, a warning message is generated.

[0077] It is understandable that when the local configuration information is too far away from the target configuration information, configuration synchronization may fail, so it is necessary to determine whether configuration synchronization is possible. When the local configuration information is too far away from the target configuration information, a warning message needs to be generated to remind the administrator to intervene in time.

[0078] Step S30: When the local configuration information is inconsistent with the target configuration information, configuration synchronization is performed according to the target configuration information.

[0079] It should be noted that when the local configuration information is inconsistent with the target configuration information, configuration synchronization needs to be performed according to the target configuration information. The local device will automatically learn the corresponding configuration in the sending device and apply these configurations on the local device to achieve configuration synchronization.

[0080] In a feasible manner, before the step of performing configuration synchronization according to the target configuration information, the method further includes:

[0081] Encapsulating the target configuration information to obtain a data packet;

[0082] Sending the data packet to a network protocol device so that the network protocol device performs compatibility checking and verification;

[0083] Receive feedback information from the network protocol device, and determine a configuration strategy according to the feedback information.

[0084] It should be noted that before configuration synchronization, the target configuration information needs to be encapsulated and sent to the network protocol device, and the network protocol refers to the Multiple Spanning Tree Protocol (MSTP), Link Aggregation Control Protocol (LACP) and other protocols. The purpose is to ensure that the configured value is within the legal range and will not affect the normal coordination of MLAG and other network protocols. Feedback information includes the compatibility after configuration synchronization. According to the feedback information, the configuration strategy can be determined. When the compatibility does not meet the requirements, configuration synchronization will not be performed; when the compatibility meets the requirements, configuration synchronization will be performed.

[0085] In a feasible manner, when the local configuration information is inconsistent with the target configuration information, the step of performing configuration synchronization according to the target configuration information includes:

[0086] When the local configuration information is inconsistent with the target configuration information, checking whether the configuration synchronization function is enabled;

[0087] When the configuration synchronization function is in an enabled state, configuration synchronization is performed according to the target configuration information.

[0088] When it is detected that the local configuration information is inconsistent with the target configuration information, it is necessary to detect whether the configuration synchronization function is enabled. Only when the configuration synchronization function is enabled can configuration synchronization be performed, in order to ensure that the configuration synchronization of MLAG is within a controllable range.

[0089] In a feasible manner, after the step of performing configuration synchronization according to the target configuration information, the method further includes:

[0090] Collect data information during configuration synchronization;

[0091] Generate a log report based on the data information.

[0092] It should be noted that the data information during configuration synchronization includes the modified configuration items, modification time, etc. Based on this information, a log report will be generated, which will record the results of configuration synchronization. When configuration synchronization fails, a warning message will also be generated to remind the administrator to solve it.

[0093] This embodiment receives a configuration consistency check message from a device sending a cross-device link aggregation group to obtain target configuration information; obtains local configuration information, and compares the local configuration information with the target configuration information; when the local configuration information is inconsistent with the target configuration information, performs configuration synchronization according to the target configuration information.

[0094] In summary, the present application improves the accuracy of the consistency check of the cross-device link aggregation group configuration by automatically performing configuration consistency check and configuration synchronization of the cross-device link aggregation group devices through receiving configuration consistency check messages.

[0095] 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-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 , Figure 2 This is a flow chart of the second embodiment of the consistency check method for cross-device link aggregation group configuration of the present application.

[0096] In this embodiment, the method for checking the consistency of the cross-device link aggregation group configuration includes steps S100 to S200:

[0097] Step S100: obtaining a preset time interval, and periodically generating a configuration consistency check message according to the preset time interval;

[0098] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a consistency check sending device configured in a cross-device link aggregation group, etc. The following takes the consistency check sending device configured in a cross-device link aggregation group as an example to illustrate this embodiment.

[0099] It should be noted that the preset time interval is set by the user. A timer is set inside the sending device. If the time interval is 10 minutes, the configuration consistency check will be triggered every 10 minutes. The sending device will obtain the configuration summary information and generate a configuration consistency check message.

[0100] Step S200: Send the configuration consistency check message to a receiving device in an inter-device link aggregation group.

[0101] It should be noted that when a configuration consistency check message is generated, the configuration consistency check message will be sent to a receiving device in the cross-device link aggregation group.

[0102] This embodiment obtains a preset time interval, periodically generates a configuration consistency check message according to the preset time interval, and sends the configuration consistency check message to a receiving device of a cross-device link aggregation group. This can ensure a regular configuration consistency check, timely discover configuration inconsistencies, and improve the accuracy of the consistency check of the cross-device link aggregation group configuration.

[0103] Based on the first and second embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. Figure 3 , Figure 3 This is a flow chart of the third embodiment of the method for checking the consistency of the cross-device link aggregation group configuration of the present application.

[0104] In this embodiment, the method for checking the consistency of the cross-device link aggregation group configuration includes steps S01 to S03:

[0105] Step S01: receiving a data packet from a receiving device in an inter-device link aggregation group;

[0106] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a network protocol device, etc. The following takes a network protocol device as an example to illustrate this embodiment.

[0107] It is understandable that the data packet contains relevant information for configuration synchronization of the receiving device of the cross-device link aggregation group. Through the data packet, the configuration information that needs to be modified by the receiving device of the cross-device link aggregation group can be obtained.

[0108] Step S02: performing compatibility check and verification according to the data packet and generating feedback information;

[0109] It should be noted that compatibility checking and verification is to ensure that the configured value is within the legal range and will not affect the normal cooperation between MLAG and other network protocols. Feedback information includes the compatibility after configuration synchronization.

[0110] Step S03: Send the feedback information to a receiving device in the inter-device link aggregation group.

[0111] It is understandable that by sending the feedback information to the receiving device of the inter-device link aggregation group, the receiving device can determine the configuration strategy according to the feedback information and decide whether to perform configuration synchronization.

[0112] This embodiment receives a data packet from a cross-device link aggregation group receiving device; performs compatibility check and verification based on the data packet, generates feedback information; and sends the feedback information to the cross-device link aggregation group receiving device. The compatibility of the content of configuration synchronization is verified, ensuring that the configuration synchronization will not affect the normal coordination of MLAG and other network protocols, and improving the accuracy of the consistency check of the cross-device link aggregation group configuration.

[0113] For example, in order to help understand the implementation process of the consistency check method for cross-device link aggregation group configuration obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 4 , Figure 4 A brief flowchart of a method for checking the consistency of a cross-device link aggregation group configuration is provided. Specifically:

[0114] HW (Hardware) receives the configuration consistency check packet from the peer M-LAG device; HSL (Hardware support layer) distinguishes the message type and identifies the M-LAG protocol message; M-LAG then analyzes whether the key configuration and general configuration are consistent. If they are inconsistent and automatic configuration is enabled, it synchronizes the configuration. It also sends configuration messages to MTS, LAC and other protocols, and receives feedback results.

[0115] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the consistency check method for cross-device link aggregation group configuration of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0116] This application also provides a consistency check device for cross-device link aggregation group configuration, please refer to Figure 5 , the consistency checking device for cross-device link aggregation group configuration includes:

[0117] A receiving module 10 is used to receive a configuration consistency check message from a sending device of a cross-device link aggregation group to obtain target configuration information;

[0118] A comparison module 20, configured to obtain local configuration information and compare the local configuration information with the target configuration information;

[0119] The synchronization module 30 is used to perform configuration synchronization according to the target configuration information when the local configuration information is inconsistent with the target configuration information.

[0120] This embodiment receives a configuration consistency check message from a device sending a cross-device link aggregation group to obtain target configuration information; obtains local configuration information, and compares the local configuration information with the target configuration information; when the local configuration information is inconsistent with the target configuration information, performs configuration synchronization according to the target configuration information.

[0121] In summary, the present application improves the accuracy of the consistency check of the cross-device link aggregation group configuration by automatically performing configuration consistency check and configuration synchronization of the cross-device link aggregation group devices through receiving configuration consistency check messages.

[0122] In one embodiment, the receiving module 10 is further used to obtain a data field stored in the configuration structure; and enable or disable the configuration synchronization function according to the data field.

[0123] In one embodiment, the receiving module 10 is further used to receive a message from a sending device in an inter-device link aggregation group; identify the type of the message, and determine a configuration consistency check message according to the type.

[0124] In one embodiment, the comparison module 20 is further used to determine whether configuration synchronization can be performed when the local configuration information is inconsistent with the target configuration information; if configuration synchronization cannot be performed, generate a warning message.

[0125] In one embodiment, the synchronization module 30 is also used to encapsulate the target configuration information to obtain a data packet; send the data packet to a network protocol device so that the network protocol device performs a compatibility check and verification; receive feedback information from the network protocol device, and determine a configuration strategy based on the feedback information.

[0126] In one embodiment, the synchronization module 30 is further used to check whether a configuration synchronization function is enabled when the local configuration information is inconsistent with the target configuration information; when the configuration synchronization function is enabled, perform configuration synchronization according to the target configuration information.

[0127] In one embodiment, the synchronization module 30 is further used to collect data information during configuration synchronization; and generate a log report based on the data information.

[0128] The consistency check device for cross-device link aggregation group configuration provided by the present application adopts the consistency check method for cross-device link aggregation group configuration in the above-mentioned embodiment, which can solve the technical problem of how to improve the accuracy of consistency check of M-LAG configuration. Compared with the prior art, the beneficial effects of the consistency check device for cross-device link aggregation group configuration provided by the present application are the same as the beneficial effects of the consistency check method for cross-device link aggregation group configuration provided by the above-mentioned embodiment, and the other technical features in the consistency check device for cross-device link aggregation group configuration are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.

[0129] The present application provides a consistency check device for a cross-device link aggregation group configuration, and the consistency check device for a cross-device link aggregation group configuration 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 consistency check method for the cross-device link aggregation group configuration in the above-mentioned embodiment one.

[0130] The present application provides a consistency check system for cross-device link aggregation group configuration, such as Figure 6 As shown, the consistency check of the cross-device link aggregation group configuration includes a cross-device link aggregation group sending device, a cross-device link aggregation group receiving device and a network protocol device.

[0131] The consistency check device for cross-device link aggregation group configuration provided by the present application adopts the consistency check method for cross-device link aggregation group configuration in the above-mentioned embodiment, which can solve the technical problem of how to improve the accuracy of consistency check of M-LAG configuration. Compared with the prior art, the beneficial effects of the consistency check device for cross-device link aggregation group configuration provided by the present application are the same as the beneficial effects of the consistency check method for cross-device link aggregation group configuration provided by the above-mentioned embodiment, and the other technical features in the consistency check device for cross-device link aggregation group configuration are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0132] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0133] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0134] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, the computer-readable program instructions being used to execute the consistency checking method for the cross-device link aggregation group configuration in the above-mentioned embodiment.

[0135] The computer-readable storage medium provided in the present application 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 of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0136] The computer-readable storage medium may be included in a consistency check device configured in an inter-device link aggregation group; or may exist independently without being assembled into a consistency check device configured in an inter-device link aggregation group.

[0137] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by a consistency check device configured by a cross-device link aggregation group, the consistency check device configured by the cross-device link aggregation group: receives a configuration consistency check message from a sending device of the cross-device link aggregation group, and obtains target configuration information;

[0138] Acquire local configuration information, and compare the local configuration information with target configuration information;

[0139] When the local configuration information is inconsistent with the target configuration information, configuration synchronization is performed according to the target configuration information.

[0140] 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 separate 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 through 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).

[0141] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the 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 square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0142] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0143] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned consistency check method for cross-device link aggregation group configuration, and can solve the technical problem of how to improve the accuracy of consistency check of M-LAG configuration. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the consistency check method for cross-device link aggregation group configuration provided by the above-mentioned embodiment, and will not be repeated here.

[0144] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned method for checking the consistency of the cross-device link aggregation group configuration.

[0145] The computer program product provided by the present application can solve the technical problem of how to improve the accuracy of the consistency check of the M-LAG configuration. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the consistency check method for the cross-device link aggregation group configuration provided by the above embodiment, which will not be repeated here.

[0146] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for checking the consistency of a cross-device link aggregation group configuration, characterized in that: The method for checking the consistency of the cross-device link aggregation group configuration is applied to a cross-device link aggregation group receiving device, and the method includes: Receive a configuration consistency check message from a device sending a cross-device link aggregation group to obtain target configuration information; Acquire local configuration information, and compare the local configuration information with the target configuration information; When the local configuration information is inconsistent with the target configuration information, performing configuration synchronization according to the target configuration information; Before the step of receiving a configuration consistency check message from a device sending a cross-device link aggregation group to obtain target configuration information, the step further includes: Get the data fields stored in the configuration structure; According to the data field, the configuration synchronization function is enabled or disabled, where the data field is check_auto-config. When the m-lag auto-config-sync enable command is executed, the system will use this field to indicate that the automatic configuration synchronization function has been enabled, where the m-lag auto-config-sync enable command is a newly added command used to enable the automatic configuration synchronization function, and correspondingly, m-lagauto-config-sync disable is a command used to disable the automatic configuration synchronization function.

2. The method according to claim 1, characterized in that The step of receiving a configuration consistency check message from a device sending a cross-device link aggregation group to obtain target configuration information includes: Receive messages from the sending device in the cross-device link aggregation group; The type of the message is identified, and a configuration consistency check message is determined according to the type to obtain target configuration information.

3. The method according to claim 1, characterized in that After the step of obtaining the local configuration information and comparing the local configuration information with the target configuration information, the method further includes: When the local configuration information is inconsistent with the target configuration information, determining whether configuration synchronization can be performed; If configuration synchronization is not possible, a warning message is generated.

4. The method according to claim 1, characterized in that Before the step of performing configuration synchronization according to the target configuration information, the method further includes: Encapsulating the target configuration information to obtain a data packet; Sending the data packet to a network protocol device so that the network protocol device performs compatibility checking and verification; Receive feedback information from the network protocol device, and determine a configuration strategy according to the feedback information.

5. The method according to claim 1, characterized in that When the local configuration information is inconsistent with the target configuration information, the step of performing configuration synchronization according to the target configuration information includes: When the local configuration information is inconsistent with the target configuration information, checking whether the configuration synchronization function is enabled; When the configuration synchronization function is in an enabled state, configuration synchronization is performed according to the target configuration information.

6. The method according to claim 1, characterized in that After the step of performing configuration synchronization according to the target configuration information, the method further includes: Collect data information during configuration synchronization; Generate a log report based on the data information.

7. A consistency check system for cross-device link aggregation group configuration, characterized in that: The consistency check system for cross-device link aggregation group configuration comprises a cross-device link aggregation group sending device, a cross-device link aggregation group receiving device and a network protocol device, and the cross-device link aggregation group receiving device executes the consistency check method for cross-device link aggregation group configuration according to any one of claims 1 to 6; The inter-device link aggregation group sending device is used to obtain a preset time interval and periodically generate a configuration consistency check message according to the preset time interval; Sending the configuration consistency check message to a receiving device of an inter-device link aggregation group; The network protocol device is used to receive data packets from a receiving device of an inter-device link aggregation group; Perform compatibility check and verification according to the data packet and generate feedback information; The feedback information is sent to a receiving device in the inter-device link aggregation group.

Citation Information

Patent Citations

  • VXLAN packaging configuration monitoring method and device based on M-LAG environment and medium

    CN116668291A

  • Configuration data pushing method and apparatus

    WO2016201988A1