Method and device for checking configuration consistency of MLAG system and medium

By checking the configuration consistency between devices in the MLAG system and making appropriate adjustments, the low reliability and network abnormalities caused by inconsistent configurations of the MLAG system are solved, ensuring the normal operation and reliability of the system.

CN118921279AActive Publication Date: 2024-11-08INSPUR NETWORK TECH (SHANDONG) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410983726.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-11-08
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

Due to inconsistent configuration between devices, the MLAG system has low reliability, which may cause forwarding exceptions and network loop problems. Moreover, due to independent configuration and upgrade of the device, configuration consistency is difficult to ensure.

Method used

By determining the link between devices in the MLAG system, sending and receiving configuration information for consistency comparison. If it is inconsistent, an alarm will be generated and the port will be closed. If it is consistent, the configuration information will be recorded to ensure the consistency of the system configuration.

Benefits of technology

Through timely configuration consistency checks and adjustments, the reliability of the MLAG system is improved, network abnormalities are prevented, and the system is operated normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921279A_ABST
    Figure CN118921279A_ABST
Patent Text Reader

Abstract

The invention discloses an MLAG system configuration consistency checking method and device and a medium, and the method comprises the steps: determining a link between a first device and a second device, transmitting the first configuration information of the first device to the second device through the link, and transmitting the second configuration information of the second device to the first device through the link; determining local information of the first equipment, and performing consistency comparison on the local information and the received second configuration information; if the local information is inconsistent with the second configuration information, log information is determined, an alarm is given according to the log information, and the port of the second device is closed; if the local information is consistent with the second configuration information, log information is determined, and recording is carried out according to the log information to complete system configuration. According to the method and the device, the related function configurations specified on the devices at the two ends of the MLAG are compared and checked, so that targeted adjustment can be made in time according to the check result, and normal operation of the MLAG system is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device and medium for checking the consistency of MLAG system configuration. Background Art

[0002] Multi-chassis Link Aggregation Group (MLAG) is a mechanism for implementing link aggregation across devices. It can combine the ports on two switch devices into a link aggregation group to form an Active-Active system, thereby improving the reliability of network links from the single-board level to the device level.

[0003] The MLAG mechanism virtualizes two switches into one switch at the logical level, unifying them on the control plane. However, this also leads to inconsistencies in some related configurations between the two devices. For example, inconsistent VLAN attribute configurations of member ports at both ends of the MLAG may cause MLAG forwarding anomalies or network loops. At the same time, since both ends of the MLAG need to be configured and upgraded separately, it is difficult to ensure the configuration consistency of the devices at both ends of the MLAG, resulting in low reliability of the MLAG system. Summary of the invention

[0004] In order to solve the above problems, the present application proposes a method for checking the consistency of MLAG system configuration, which is applied to an MLAG system, wherein the system includes a first device and a second device, and the method includes: determining a link between the first device and the second device, sending first configuration information of the first device to the second device through the link, and sending second configuration information of the second device to the first device through the link; determining local information of the first device, and comparing the local information with the received second configuration information for consistency; if the local information is inconsistent with the second configuration information, determining log information, issuing an alarm based on the log information, and closing the port of the second device; if the local information is consistent with the second configuration information, determining log information, and recording based on the log information to complete the configuration of the system.

[0005] In one example, sending the first configuration information of the first device to the second device via the link specifically includes: determining the local information of the first device, encapsulating the local information to obtain an interaction message; sending the interaction message to the second device via the link, and unpacking the interaction message via the second device to obtain the first configuration information.

[0006] In one example, the method further includes: determining new configuration information of the second device, determining an update message based on the new configuration information, and sending the update message to the first device via the link so that the first device updates the received second configuration information.

[0007] In one example, the method further includes: comparing the local information with the updated second configuration information for consistency based on the updated second configuration information, so as to update the configuration of the system.

[0008] In one example, the method further includes: determining global configuration information of the system and determining port configuration information of the first device; and determining local information of the first device according to the global configuration information and the port configuration information of the first device.

[0009] In an example, the global configuration information includes: link port information, enabling status of a spanning tree function, a spanning tree mode, and multiple spanning tree domain related configuration information.

[0010] In an example, the port configuration information includes: aggregation group mode, link type of the device port, and device port PVID.

[0011] In one example, issuing an alarm based on the log information specifically includes: determining alarm information based on the log information, the alarm information including but not limited to configuration items, local information, configuration information received by the corresponding device, and timestamps; determining a pre-set alarm device, and sending the alarm information to the alarm device.

[0012] On the other hand, the present application also proposes a MLAG system configuration consistency checking device, which is applied to an MLAG system, wherein the system includes a first device and a second device, including: 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 MLAG system configuration consistency checking device can execute: determining a link between the first device and the second device, sending the first configuration information of the first device to the second device through the link, and sending the second configuration information of the second device to the first device through the link; determining local information of the first device, and comparing the local information with the received second configuration information for consistency; if the local information is inconsistent with the second configuration information, determining log information, issuing an alarm based on the log information, and closing the port of the second device; if the local information is consistent with the second configuration information, determining log information, and recording based on the log information to complete the configuration of the system.

[0013] On the other hand, the present application also proposes a non-volatile computer storage medium storing computer executable instructions, which is applied to an MLAG system, wherein the system includes a first device and a second device, and the computer executable instructions are configured to: determine a link between the first device and the second device, send first configuration information of the first device to the second device through the link, and send second configuration information of the second device to the first device through the link; determine local information of the first device, and compare the local information with the received second configuration information for consistency; if the local information is inconsistent with the second configuration information, determine log information, issue an alarm based on the log information, and close the port of the second device; if the local information is consistent with the second configuration information, determine log information, and record based on the log information to complete the configuration of the system.

[0014] This application applies the MLAG configuration consistency check function to compare and check the relevant function configurations specified on the devices at both ends of the MLAG, so that targeted adjustments can be made in a timely manner based on the inspection results to ensure the normal operation of the MLAG system and further maintain its reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0016] Figure 1 A flowchart of a method for checking the consistency of MLAG system configuration in an embodiment of the present application;

[0017] Figure 2 This is a schematic diagram of the MLAG network topology in an embodiment of the present application;

[0018] Figure 3 A schematic diagram of a device for checking the consistency of an MLAG system configuration in an embodiment of the present application. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0020] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0021] like Figure 2 As shown in the figure, the MLAG mechanism connects two switch devices through a peer-link link, making them logically the same as one device. The MLAG member ports on the two devices together form a link aggregation port, so that the ports of the devices at both ends can participate in the forwarding of network traffic. Due to the unidirectional isolation mechanism of MLAG, that is, unicast traffic from the access device or the network side to the MLAG device will be forwarded locally first, and the peer-link link is generally not used to forward network traffic. When the traffic is broadcast to the opposite MLAG device through the peer-link link, a unidirectional traffic isolation will be set between the peer-link link and the MLAG member port, that is, the traffic coming from the peer-link port will no longer be forwarded from the MLAG member port, so under normal circumstances, MLAG will not form a network loop.

[0022] like Figure 1 As shown, in order to solve the above problem, an embodiment of the present application provides a method for checking the consistency of MLAG system configuration, the method comprising:

[0023] S101. Determine a link between the first device and the second device, send first configuration information of the first device to the second device through the link, and send second configuration information of the second device to the first device through the link.

[0024] The core of the MLAG system configuration consistency check function is to check the consistency of the specified configurations of the devices at both ends of the MLAG, and to make effective responses based on the check results. When the MLAG system is successfully established, the local device (herein referred to as the first device) will encapsulate the local global configuration and MLAG member port configuration in the MLAG interaction message, and send it to the peer device (herein referred to as the second device) through the peer-link link. When the peer device receives the message, it will decapsulate it and compare the corresponding configuration information in the message with the configuration information stored locally on the second device. In the MLAG system, two switch devices can specify either switch as the local device, that is, the first device, according to actual needs.

[0025] In one embodiment, local information of the first device is determined, and the local information is encapsulated to obtain an interaction message; the interaction message is sent to the second device through a link, and the interaction message is decapsulated by the second device to obtain the first configuration information.

[0026] In one embodiment, global configuration information of the system is determined, and port configuration information of the first device is determined; local information of the first device is determined according to the global configuration information and the port configuration information of the first device.

[0027] In one embodiment, the global configuration of MLAG is part of the global configuration of the switch device itself, mainly including: the PVID of the peer-link port, that is, the native VLAN of the port; the enabling status of the spanning tree (STP) function; the spanning tree mode, including STP, RSTP and MSTP; multiple spanning tree (MST) domain related configuration, including the domain name of the MST domain, the revision level of MSTP, and the mapping relationship between MST Instance and VLAN. The global configuration is a key configuration that affects the establishment of the MLAG system and traffic forwarding, and to a certain extent will greatly affect the effective operation of the MLAG system. When performing a configuration consistency check, these configurations will be encapsulated in the MLAG message. The outer layer of the message is the message header of each network protocol layer, and the Data part is the encapsulated global configuration information, where Sub Type is the corresponding type of the global configuration check message. When the device receives the message, it can perform the corresponding decapsulation process through this type to obtain the global configuration information of the opposite device, corresponding to the above-mentioned configurations.

[0028] In one embodiment, the MLAG member port configuration is the member port configuration that has joined the MLAG group, which mainly includes: the mode of the aggregation group, including static and dynamic modes; the link type of the port, including access, trunk and hybrid modes; the PVID of the port. Like the global configuration, the above configuration of the MLAG member port is also a key configuration that needs to be consistent in the MLAG system. The Sub Type in the MLAG member port configuration check message is the type corresponding to the member port configuration check, and the other data is the above member port configuration information.

[0029] S102: Determine local information of the first device, and compare the local information with the received second configuration information for consistency.

[0030] The corresponding configuration information of the local end is exchanged and compared through the devices at both ends of the MLAG to obtain the inspection results. If there is inconsistency in the inspection results, the log information of the configuration inconsistency is recorded and an alarm is generated. At the same time, the MLAG member port on the second device, the slave device in the MLAG system, is err-disabled, so that it cannot forward traffic, thereby preventing further abnormalities such as network loops. If the configuration inspection results are consistent, only the corresponding log information is recorded.

[0031] S103: If the local information is inconsistent with the second configuration information, determine log information, issue an alarm according to the log information, and close the port of the second device.

[0032] S104: If the local information is consistent with the second configuration information, determine the log information, and record according to the log information to complete the configuration of the system.

[0033] In one embodiment, if the local device makes changes to the corresponding configuration, that is, a new configuration is issued, the configuration information will also be sent to the peer via a message to perform a new consistency check. The new configuration information of the second device is determined, and an update message is determined based on the new configuration information. The update message is sent to the first device via a link so that the first device updates the received second configuration information. Based on the updated second configuration information, the local information is compared with the updated second configuration information for consistency to update the system configuration.

[0034] In one embodiment, the alarm information is determined based on the log information, and the alarm information includes but is not limited to configuration items, local information, configuration information received by the corresponding device, and timestamps; a pre-set alarm device is determined, and the alarm device can be a network administrator's terminal, a monitoring system, a mail server, or other devices or systems that can receive and process alarm information. The alarm information is sent to the alarm device.

[0035] like Figure 3 As shown, the embodiment of the present application also provides a device for checking the consistency of MLAG system configuration, including:

[0036] at least one processor; and,

[0037] a memory communicatively connected to at least one processor; wherein,

[0038] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor to enable a device for checking the consistency of MLAG system configuration to perform:

[0039] Determine a link between the first device and the second device, send first configuration information of the first device to the second device through the link, and send second configuration information of the second device to the first device through the link;

[0040] Determine local information of the first device, and compare the local information with the received second configuration information for consistency;

[0041] If the local information is inconsistent with the second configuration information, determine log information, issue an alarm according to the log information, and close the port of the second device;

[0042] If the local information is consistent with the second configuration information, log information is determined and recorded according to the log information to complete the configuration of the system.

[0043] The embodiment of the present application further provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:

[0044] Determine a link between the first device and the second device, send first configuration information of the first device to the second device through the link, and send second configuration information of the second device to the first device through the link;

[0045] Determine local information of the first device, and compare the local information with the received second configuration information for consistency;

[0046] If the local information is inconsistent with the second configuration information, determine log information, issue an alarm according to the log information, and close the port of the second device;

[0047] If the local information is consistent with the second configuration information, log information is determined and recorded according to the log information to complete the configuration of the system.

[0048] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0049] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0050] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0051] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0052] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0053] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.

[0054] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0055] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0056] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0057] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0058] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0059] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0060] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0061] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0062] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for checking the consistency of MLAG system configuration, characterized in that: Applied to an MLAG system, the system includes a first device and a second device, and the method includes: Determine a link between the first device and the second device, send first configuration information of the first device to the second device through the link, and send second configuration information of the second device to the first device through the link; Determine local information of the first device, and compare the local information with the received second configuration information for consistency; If the local information is inconsistent with the second configuration information, determine log information, issue an alarm according to the log information, and close the port of the second device; If the local information is consistent with the second configuration information, log information is determined and recorded according to the log information to complete the configuration of the system.

2. The method according to claim 1, characterized in that Sending the first configuration information of the first device to the second device through the link specifically includes: Determine local information of the first device, and encapsulate the local information to obtain an interaction message; The interaction message is sent to the second device through the link, and the interaction message is decapsulated through the second device to obtain the first configuration information.

3. The method according to claim 1, characterized in that The method further comprises: Determine new configuration information of the second device, determine an update message according to the new configuration information, and send the update message to the first device through the link, so that the first device updates the received second configuration information.

4. The method according to claim 3, characterized in that The method further comprises: According to the updated second configuration information, the local information is compared with the updated second configuration information for consistency, so as to update the configuration of the system.

5. The method according to claim 1, characterized in that The method further comprises: Determining global configuration information of the system, and determining port configuration information of the first device; The local information of the first device is determined according to the global configuration information and the port configuration information of the first device.

6. The method according to claim 5, characterized in that The global configuration information includes: link port information, enabling status of a spanning tree function, a spanning tree mode, and multiple spanning tree domain related configuration information.

7. The method according to claim 5, characterized in that The port configuration information includes: aggregation group mode, link type of device port, and device port PVID.

8. The method according to claim 1, characterized in that Produce an alarm based on the log information, including: Determine alarm information according to the log information, the alarm information including but not limited to configuration items, local information, configuration information received by the corresponding device, and timestamp; A preset alarm device is determined, and the alarm information is sent to the alarm device.

9. A device for checking the consistency of MLAG system configuration, characterized in that: Applied to an MLAG system, the system includes a first device and a second device, including: 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 to enable the device for checking the consistency of the MLAG system configuration to perform: Determine a link between the first device and the second device, send first configuration information of the first device to the second device through the link, and send second configuration information of the second device to the first device through the link; Determine local information of the first device, and compare the local information with the received second configuration information for consistency; If the local information is inconsistent with the second configuration information, determine log information, issue an alarm according to the log information, and close the port of the second device; If the local information is consistent with the second configuration information, log information is determined and recorded according to the log information to complete the configuration of the system.

10. A non-volatile computer storage medium storing computer executable instructions, characterized in that: Applied to an MLAG system, the system includes a first device and a second device, and the computer executable instructions are configured to: Determine a link between the first device and the second device, send first configuration information of the first device to the second device through the link, and send second configuration information of the second device to the first device through the link; Determine local information of the first device, and compare the local information with the received second configuration information for consistency; If the local information is inconsistent with the second configuration information, determine log information, issue an alarm according to the log information, and close the port of the second device; If the local information is consistent with the second configuration information, log information is determined and recorded according to the log information to complete the configuration of the system.

Citation Information

Patent Citations

  • Configuration verification synchronization method and device, electronic device and storage medium

    CN113268278A

  • DHCP-based MLAG dynamic double-master detection method, apparatus and device, and medium

    CN115208854A

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

    CN116668291A

  • Methods, systems, and computer readable media for improved multi-switch link aggregation group (MLAG) convergence

    US8730963B1