Configuration synchronization method, device and equipment based on Mml networking and medium

By synchronous configuration on two switches under MLAG network, the problem of cumbersome manual configuration in the existing technology is solved, and the effect of simplifying the configuration process, improving configuration efficiency and reducing labor costs is achieved.

CN119766641AActive Publication Date: 2025-04-04INSPUR NETWORK TECH (SHANDONG) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411905913.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-04
Estimated Expiration
2044-12-23

AI Technical Summary

Technical Problem

The prior art when configuring and managing Ethernet switches, especially in scenarios where there are more services, manual configuration and deployment become cumbersome, and later configuration updates and maintenance are cumbersome.

Method used

The configuration synchronization method based on MLAG networking is adopted, and configuration consistency between the two switches is achieved by sending configurations on the MLAG main device and synchronizing the configuration to the backup device.

Benefits of technology

Simplifies the configuration process, improves configuration efficiency, reduces labor costs, enhances network stability, and provides flexibility and maintainability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119766641A_ABST
    Figure CN119766641A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a Mml networking-based configuration synchronization method, device and equipment and a medium, and the method comprises the steps: configuring Mml networking on two switches, and determining malg main equipment and malg standby equipment in the two switches; the method comprises the following steps of: issuing relevant configuration of the Mml on main equipment of the Mml, and issuing the relevant configuration of the Mml to a first memory by calling a relevant command line configuration process; the Mml related configuration is packaged, and the packaged Mml related configuration is synchronized to the Mml standby equipment; and in the Mml standby equipment, by calling a related command line configuration process, issuing the decapsulated Mml related configuration to the second memory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and medium for synchronizing configurations in an mLAG-based network. Background Art

[0002] With the development of network technology and the increasing business needs, Ethernet switches, as core devices of network infrastructure, are increasingly widely used in enterprises, data centers and other scenarios. Ethernet switches are generally configured, deployed and managed through command lines; once there are more businesses, the required configurations will also increase, so manual configuration and deployment will become cumbersome.

[0003] Currently, the solutions on the market that can save manpower and achieve rapid deployment include issuing configurations through SDN controllers or writing configuration scripts to manually configure each device one by one. If configuration is issued through SDN, it is necessary to deploy SDN controllers and adapt the devices, which has the defect of being too costly; if the configuration script is written in advance and then configured in batches, it will be very cumbersome to modify or update the configuration later. Summary of the invention

[0004] One or more embodiments of the present specification provide a method, apparatus, device and medium for configuration synchronization based on mlag networking, which are used to solve the technical problems raised by the background technology.

[0005] One or more embodiments of this specification adopt the following technical solutions:

[0006] One or more embodiments of this specification provide a method for synchronizing configurations in an mlag-based network, the method comprising:

[0007] Configure the MLAG networking on two switches, and determine the MALG master device and the MALG backup device in the two switches;

[0008] Sending and distributing the mlag-related configuration on the mlag master device, and sending the mlag-related configuration to the first memory by calling a related command line configuration process;

[0009] Encapsulating the mlag-related configuration, and synchronizing the encapsulated mlag-related configuration to the mlag standby device;

[0010] In the mlag standby device, the unsealed mlag related configuration is sent to the second memory by calling the related command line configuration process.

[0011] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0012] Simplified configuration process: This method reduces the number of manual configuration steps by performing simultaneous configuration on the two switches in the MLAG network, thereby simplifying the configuration process. Compared with traditional one-by-one configuration, this method significantly reduces configuration complexity and saves time.

[0013] Improve configuration efficiency: By sending the configuration on the MLAG master device at one time and then synchronizing the configuration to the backup device, rapid deployment is achieved. This synchronization method avoids repeated configuration work and improves overall configuration efficiency.

[0014] Reduce labor costs: Due to the automation of the configuration process, manual intervention is reduced, thereby reducing labor costs. This is particularly important in environments with large network scales, because the workload of manual configuration and maintenance is very large.

[0015] Enhanced network stability: Configuration synchronization ensures consistency between the two switches, reducing problems caused by inconsistent configurations. In an MLAG environment, this consistency is critical to ensuring high availability and load balancing of links.

[0016] Flexibility and maintainability: Configuration changes made on the MLAG master device can be automatically synchronized to the backup device, making configuration updates and maintenance more flexible. When configuration changes need to be made, only the master device needs to be operated, without having to change each switch separately, simplifying maintenance work.

[0017] Further, configuring the mlag group on the two switches and determining the malg master device and the malg backup device in the two switches includes:

[0018] Configure the mlag group on the two switches, determine the malg master and malg backup in the two switches, and set a tcp port between the two switches for the mlag control channel;

[0019] Encapsulating the mlag-related configuration, and synchronizing the encapsulated mlag-related configuration to the mlag standby device, including:

[0020] Encapsulate the mlag related configuration in a tcp message, and synchronize the encapsulated tcp message to the mlag standby device through the tcp port.

[0021] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0022] Improve network reliability: By setting up MLAG master and backup devices and establishing a TCP control channel between two switches, it ensures that when one switch in the network fails, the other can take over immediately, thereby improving network reliability.

[0023] Enhanced configuration management efficiency: Encapsulating MLAG configuration in TCP messages for synchronization makes configuration management more automated and efficient, reducing the need for manual intervention.

[0024] Further, encapsulating the mlag-related configuration and synchronizing the encapsulated mlag-related configuration to the mlag standby device includes:

[0025] The mlag related configuration is encapsulated, and the encapsulated mlag related configuration is automatically synchronized to the mlag standby device.

[0026] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0027] Automated configuration management: Automatically synchronize MLAG (link aggregation) related configurations, reducing the steps of manual configuration, realizing the automation of configuration management, and improving management efficiency.

[0028] Reduce configuration errors: Automatically synchronizing configurations can reduce configuration inconsistencies caused by manual copying or input errors, thereby reducing the risk of network failures.

[0029] Further, encapsulating the mlag-related configuration and synchronizing the encapsulated mlag-related configuration to the mlag standby device includes:

[0030] According to a preset configuration synchronization command, the mlag-related configuration is encapsulated, and the encapsulated mlag-related configuration is synchronized to the mlag standby device, wherein the configuration synchronization command includes synchronizing the encapsulated mlag-related configuration to the mlag standby device automatically, manually or automatically and periodically.

[0031] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0032] Flexible configuration synchronization mechanism: By providing options for automatic, manual, or automatic periodic synchronization, this method allows network administrators to flexibly control the synchronization process of MLAG configurations based on actual needs.

[0033] Furthermore, the method further comprises:

[0034] Comparing whether the mlag-related configuration in the second memory is consistent with the mlag-related configuration in the first memory;

[0035] If they are consistent, the configuration of the two switches is sent.

[0036] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0037] Configuration verification: By comparing the MLAG-related configuration in the second memory with the configuration in the first memory, this method ensures the accuracy and completeness of the configuration and reduces the risk of configuration errors.

[0038] Furthermore, if there is inconsistency, the method further includes:

[0039] The mlag-related configuration is re-encapsulated, and the encapsulated mlag-related configuration is re-synchronized to the mlag standby device.

[0040] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0041] Automatic error correction: When an MLAG-related configuration inconsistency is detected, the system can automatically correct it without manual intervention, improving the accuracy of network configuration.

[0042] Further, after the configuration of the two switches is issued, the method further includes:

[0043] Comparing within a preset period whether the mlag-related configuration in the second memory is consistent with the mlag-related configuration in the first memory;

[0044] If they are inconsistent, the mlag-related configuration is re-encapsulated, and the encapsulated mlag-related configuration is re-synchronized to the mlag standby device.

[0045] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0046] Regularly monitor configuration consistency: By comparing the MLAG-related configurations of two switches within a preset period, the continuous consistency of network configuration is ensured, thereby improving network stability and reliability.

[0047] Preventive maintenance: Regularly checking and comparing configurations can prevent potential problems because once configuration inconsistencies are found, the system will take immediate action to avoid potential network failures.

[0048] One or more embodiments of this specification provide a configuration synchronization device based on mlag networking, including:

[0049] A master / slave determination unit, configured with the mlag networking on two switches, and determining the malg master device and the malg backup device in the two switches;

[0050] A first configuration sending unit sends and receives the mlag related configuration on the mlag master device, and sends the mlag related configuration to the first memory by calling a related command line configuration process;

[0051] A configuration synchronization unit is configured to encapsulate the mlag-related configuration and synchronize the encapsulated mlag-related configuration to the mlag standby device;

[0052] The second configuration sending unit sends the unsealed mlag related configuration to the second memory by calling the related command line configuration process in the mlag standby device.

[0053] One or more embodiments of this specification provide a configuration synchronization device based on mlag networking, including:

[0054] at least one processor; and,

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

[0056] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0057] Configure the MLAG networking on two switches, and determine the MALG master device and the MALG backup device in the two switches;

[0058] Sending and distributing the mlag-related configuration on the mlag master device, and sending the mlag-related configuration to the first memory by calling a related command line configuration process;

[0059] Encapsulating the mlag-related configuration, and synchronizing the encapsulated mlag-related configuration to the mlag standby device;

[0060] In the mlag standby device, the unsealed mlag related configuration is sent to the second memory by calling the related command line configuration process.

[0061] One or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, which can achieve the following when executed by a computer:

[0062] Configure the MLAG networking on two switches, and determine the MALG master device and the MALG backup device in the two switches;

[0063] Sending and distributing the mlag-related configuration on the mlag master device, and sending the mlag-related configuration to the first memory by calling a related command line configuration process;

[0064] Encapsulating the mlag-related configuration, and synchronizing the encapsulated mlag-related configuration to the mlag standby device;

[0065] In the mlag standby device, the unsealed mlag related configuration is sent to the second memory by calling the related command line configuration process.

[0066] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:

[0067] Simplified configuration process: This method reduces the number of manual configuration steps by performing simultaneous configuration on the two switches in the MLAG network, thereby simplifying the configuration process. Compared with traditional one-by-one configuration, this method significantly reduces configuration complexity and saves time.

[0068] Improve configuration efficiency: By sending the configuration on the MLAG master device at one time and then synchronizing the configuration to the backup device, rapid deployment is achieved. This synchronization method avoids repeated configuration work and improves overall configuration efficiency.

[0069] Reduce labor costs: Due to the automation of the configuration process, manual intervention is reduced, thereby reducing labor costs. This is particularly important in environments with large network scales, because the workload of manual configuration and maintenance is very large.

[0070] Enhanced network stability: Configuration synchronization ensures consistency between the two switches, reducing problems caused by inconsistent configurations. In an MLAG environment, this consistency is critical to ensuring high availability and load balancing of links.

[0071] Flexibility and maintainability: Configuration changes made on the MLAG master device can be automatically synchronized to the backup device, making configuration updates and maintenance more flexible. When configuration changes need to be made, only the master device needs to be operated, without having to change each switch separately, simplifying maintenance work. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:

[0073] Figure 1 A flowchart of a configuration synchronization method based on mlag networking provided in one or more embodiments of this specification;

[0074] Figure 2 A flowchart of a method for synchronizing configurations in an mlag network provided in one or more embodiments of this specification;

[0075] Figure 3 A structural diagram of a configuration synchronization device based on mlag networking provided in one or more embodiments of this specification;

[0076] Figure 4 A structural diagram of configuring a synchronization device based on mlag networking is provided for one or more embodiments of this specification. DETAILED DESCRIPTION

[0077] The embodiments of this specification provide a method, apparatus, device and medium for configuration synchronization based on mlag networking.

[0078] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.

[0079] Figure 1 A flowchart of a method for synchronizing a configuration in an mLag network is provided for one or more embodiments of the present specification. The flowchart can be executed by a system for synchronizing a configuration in an mLag network. Certain input parameters or intermediate results in the flowchart allow manual intervention and adjustment to help improve accuracy.

[0080] The method steps of the embodiment of this specification are as follows:

[0081] S101, configuring mlag networking on two switches, and determining a malg master device and a malg backup device in the two switches.

[0082] S102, sending and receiving the mlag-related configuration on the mlag master device, and sending the mlag-related configuration to the first memory by calling a related command line configuration process.

[0083] S103, encapsulating the mlag-related configuration, and synchronizing the encapsulated mlag-related configuration to the mlag standby device.

[0084] S104, in the mlag standby device, by calling a related command line configuration process, the unsealed mlag related configuration is sent to the second memory.

[0085] Further, for the above S101, an mlag group is configured on two switches, a malg master device and a malg backup device are determined in the two switches, and a tcp port is set between the two switches for the mlag control channel.

[0086] Specifically, you can configure the MLAG group first, add the physical or logical ports that need to be aggregated to the MLAG group, and configure the protocol used by MLAG, such as LACP (Link Aggregation Control Protocol). When determining the malg master device and the malg backup device, you can decide which switch is the malg master device and which is the malg backup device based on network policies and performance requirements. Finally, set the MLAG control channel. You can select a TCP port for the MLAG control channel. The TCP port can be set and changed as needed. Configure the IP address and port of the control channel on the two switches, and ensure that the control channel between the malg master device and the malg backup device is reachable and can communicate.

[0087] Further, for the above S103, when the mlag-related configuration is encapsulated and the encapsulated mlag-related configuration is synchronized to the mlag standby device, the mlag-related configuration can be encapsulated in a tcp message, and the encapsulated tcp message can be synchronized to the mlag standby device through the tcp port.

[0088] Specifically, a data format can be defined for encapsulating MLAG configuration information. Encapsulate the MLAG configuration information into a TCP message according to the defined format. Use the TCP protocol to connect to the specified port of the MLAG backup device. Send the encapsulated MLAG configuration message to the backup device through the established TCP connection. The TCP port sent by the master device can be listened on the MLAG backup device. When receiving the encapsulated MLAG configuration message, the backup device needs to perform corresponding parsing. Parse the received TCP message and extract the MLAG configuration information. Apply the parsed MLAG configuration information to the backup device to match the configuration of the master device.

[0089] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0090] Improve network reliability: By setting up MLAG master and backup devices and establishing a TCP control channel between two switches, it ensures that when one switch in the network fails, the other can take over immediately, thereby improving network reliability.

[0091] Enhanced configuration management efficiency: Encapsulating MLAG configuration in TCP messages for synchronization makes configuration management more automated and efficient, reducing the need for manual intervention.

[0092] Further, when the mlag-related configuration is encapsulated and the encapsulated mlag-related configuration is synchronized to the mlag standby device, the mlag-related configuration is encapsulated and the encapsulated mlag-related configuration is automatically synchronized to the mlag standby device.

[0093] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0094] Automated configuration management: Automatically synchronize MLAG (link aggregation) related configurations, reducing the steps of manual configuration, realizing the automation of configuration management, and improving management efficiency.

[0095] Reduce configuration errors: Automatically synchronizing configurations can reduce configuration inconsistencies caused by manual copying or input errors, thereby reducing the risk of network failures.

[0096] Furthermore, when the mlag-related configuration is encapsulated and the encapsulated mlag-related configuration is synchronized to the mlag backup device, the mlag-related configuration can be encapsulated and the encapsulated mlag-related configuration can be synchronized to the mlag backup device according to a pre-set configuration synchronization command, and the configuration synchronization command includes automatically, manually or automatically and periodically synchronizing the encapsulated mlag-related configuration to the mlag backup device.

[0097] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0098] Flexible configuration synchronization mechanism: By providing options for automatic, manual, or automatic periodic synchronization, this method allows network administrators to flexibly control the synchronization process of MLAG configurations based on actual needs.

[0099] Furthermore, after the unsealed mLag-related configuration is sent to the second memory by calling the relevant command line configuration process in the mLag backup device, the embodiment of the present specification can also compare whether the mLag-related configuration in the second memory is consistent with the mLag-related configuration in the first memory; if they are consistent, the configuration sending of the two switches is completed.

[0100] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0101] Configuration verification: By comparing the MLAG-related configuration in the second memory with the configuration in the first memory, this method ensures the accuracy and completeness of the configuration and reduces the risk of configuration errors.

[0102] Further, if the mlag-related configuration in the second memory is inconsistent with the mlag-related configuration in the first memory, the mlag-related configuration is repackaged, and the packaged mlag-related configuration is resynchronized to the mlag standby device.

[0103] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0104] Automatic error correction: When an MLAG-related configuration inconsistency is detected, the system can automatically correct it without manual intervention, improving the accuracy of network configuration.

[0105] Furthermore, after completing the configuration delivery of the two switches, the embodiment of the present specification also includes: comparing whether the mlag-related configuration in the second memory is consistent with the mlag-related configuration in the first memory within a preset period; if inconsistent, re-encapsulating the mlag-related configuration, and re-synchronizing the encapsulated mlag-related configuration to the mlag backup device.

[0106] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0107] Regularly monitor configuration consistency: By comparing the MLAG-related configurations of two switches within a preset period, the continuous consistency of network configuration is ensured, thereby improving network stability and reliability.

[0108] Preventive maintenance: Regularly checking and comparing configurations can prevent potential problems because once configuration inconsistencies are found, the system will take immediate action to avoid potential network failures.

[0109] It should be noted that the embodiments of this specification can be configured directly on one switch, and then the device configuration synchronization of two mlag networks can be realized. The efficiency of configuration deployment under mlag networking is greatly improved, and in terms of later maintenance, only configuration modification is required on one switch to realize configuration update of two switches, reducing the error rate of manual participation and ensuring configuration accuracy.

[0110] It should be noted that the embodiments of this specification are intended to achieve rapid configuration deployment and synchronization of two switches under the mLag networking. First, the basic configuration of the mLag connection needs to be done on the two switches, so that the mLag devices on both sides can successfully connect through TCP-based messages; then, the mLag-related configurations that need to be synchronized are sent up and down on the mLag master device. After the configuration is completed, the configuration synchronization command is executed to encapsulate the relevant configurations that need to be synchronized on the mLag master device in the TCP message and synchronize them to the backup device. After the backup device receives the TCP messages of these synchronization configurations, it actively calls the command line configuration process, sends these configurations to the memory, and checks the configuration consistency on both sides, thereby completing the configuration synchronization.

[0111] It should be noted that Figure 2 A flow chart of a configuration synchronization method under an mLag network provided in an embodiment of the present specification, wherein two mLag switches automatically send TCP messages to communicate and negotiate the master and backup, make the configuration that needs to be synchronized on the mLag host, and write it into the memory; after the configuration on the master is completed, call the configuration synchronization command; (it can be set to automatic synchronization, manual synchronization or automatic periodic synchronization according to user requirements), the master automatically encapsulates the configuration information that needs to be synchronized in a TCP message and sends it to the backup device synchronously, and after the backup receives the TCP message of configuration synchronization, automatically calls the configuration process, sends the configuration and checks the consistency of the mLag master and backup configurations, and if there is any inconsistency, the configuration on the master shall prevail.

[0112] It should be noted that the embodiments of this specification can be configured directly on one switch, and then the device configuration synchronization of two mlag networks can be realized. The efficiency of configuration deployment under mlag networking is greatly improved, and in terms of later maintenance, only configuration modification is required on one switch to realize configuration update of two switches, reducing the error rate of manual participation and ensuring configuration accuracy.

[0113] It should be noted that the embodiments of this specification have the following beneficial effects:

[0114] 1. Configuration synchronization between Mlag master and backup devices is communicated through TCP messages;

[0115] 2. Mlag related configuration only needs to be done on one device, the other device will automatically synchronize the related configuration;

[0116] 3. Mlag will perform configuration consistency check between the master and the standby. If there is any inconsistency, it will be automatically synchronized and the master configuration will prevail;

[0117] 4. Mlag configuration synchronization can be set to automatic synchronization, manual synchronization or automatic periodic synchronization according to user needs.

[0118] Figure 3A structural diagram of a configuration synchronization device based on mlag networking provided for one or more embodiments of this specification includes: a master / slave determination unit 301, a first configuration delivery unit 302, a configuration synchronization unit 303 and a second configuration delivery unit 304.

[0119] The master / slave determination unit 301 configures the mlag networking on two switches and determines the malg master device and the malg backup device in the two switches;

[0120] A first configuration sending unit 302 sends and receives the mlag-related configuration on the mlag master device, and sends the mlag-related configuration to the first memory by calling a related command line configuration process;

[0121] A configuration synchronization unit 303 encapsulates the mlag-related configuration and synchronizes the encapsulated mlag-related configuration to the mlag standby device;

[0122] The second configuration sending unit 304 sends the unsealed mlag related configuration to the second memory by calling the related command line configuration process in the mlag standby device.

[0123] Figure 4 A structural diagram of configuring a synchronization device based on mlag networking provided for one or more embodiments of this specification includes:

[0124] at least one processor; and,

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

[0126] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0127] Configure the MLAG networking on two switches, and determine the MALG master device and the MALG backup device in the two switches;

[0128] Sending and distributing the mlag-related configuration on the mlag master device, and sending the mlag-related configuration to the first memory by calling a related command line configuration process;

[0129] Encapsulating the mlag-related configuration, and synchronizing the encapsulated mlag-related configuration to the mlag standby device;

[0130] In the mlag standby device, the unsealed mlag related configuration is sent to the second memory by calling the related command line configuration process.

[0131] One or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, which can achieve the following when executed by a computer:

[0132] Configure the MLAG networking on two switches, and determine the MALG master device and the MALG backup device in the two switches;

[0133] Sending and distributing the mlag-related configuration on the mlag master device, and sending the mlag-related configuration to the first memory by calling a related command line configuration process;

[0134] Encapsulating the mlag-related configuration, and synchronizing the encapsulated mlag-related configuration to the mlag standby device;

[0135] In the mlag standby device, the unsealed mlag related configuration is sent to the second memory by calling the related command line configuration process.

[0136] Each embodiment in this specification 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, equipment, and non-volatile computer storage 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 embodiment.

Claims

1. A configuration synchronization method based on mlag networking, characterized in that: include: Configure the MLAG networking on two switches, and determine the MALG master device and the MALG backup device in the two switches; Sending and distributing the mlag-related configuration on the mlag master device, and sending the mlag-related configuration to the first memory by calling a related command line configuration process; Encapsulating the mlag-related configuration, and synchronizing the encapsulated mlag-related configuration to the mlag standby device; In the mlag standby device, the unsealed mlag related configuration is sent to the second memory by calling the related command line configuration process.

2. The method according to claim 1, characterized in that The configuring of the mlag group on the two switches and determining the malg master device and the malg backup device in the two switches includes: Configure the mlag group on the two switches, determine the malg master and malg backup in the two switches, and set a tcp port between the two switches for the mlag control channel; Encapsulating the mlag-related configuration, and synchronizing the encapsulated mlag-related configuration to the mlag standby device, including: Encapsulate the mlag related configuration in a tcp message, and synchronize the encapsulated tcp message to the mlag standby device through the tcp port.

3. The method according to claim 1, characterized in that The step of encapsulating the mlag-related configuration and synchronizing the encapsulated mlag-related configuration to the mlag standby device includes: The mlag related configuration is encapsulated, and the encapsulated mlag related configuration is automatically synchronized to the mlag standby device.

4. The method according to claim 1, characterized in that: The step of encapsulating the mlag-related configuration and synchronizing the encapsulated mlag-related configuration to the mlag standby device includes: According to a preset configuration synchronization command, the mlag-related configuration is encapsulated, and the encapsulated mlag-related configuration is synchronized to the mlag standby device, wherein the configuration synchronization command includes synchronizing the encapsulated mlag-related configuration to the mlag standby device automatically, manually or automatically and periodically.

5. The method according to claim 1, characterized in that The method further comprises: Comparing whether the mlag-related configuration in the second memory is consistent with the mlag-related configuration in the first memory; If they are consistent, the configuration of the two switches is sent.

6. The method according to claim 5, characterized in that If not, the method further comprises: The mlag-related configuration is re-encapsulated, and the encapsulated mlag-related configuration is re-synchronized to the mlag standby device.

7. The method according to claim 5, characterized in that After the configuration of the two switches is issued, the method further includes: Comparing within a preset period whether the mlag-related configuration in the second memory is consistent with the mlag-related configuration in the first memory; If they are inconsistent, the mlag-related configuration is re-encapsulated, and the encapsulated mlag-related configuration is re-synchronized to the mlag standby device.

8. A configuration synchronization device based on mlag networking, characterized in that: include: A master / slave determination unit, configured with the mlag networking on two switches, and determining the malg master device and the malg backup device in the two switches; A first configuration sending unit sends and receives the mlag related configuration on the mlag master device, and sends the mlag related configuration to the first memory by calling a related command line configuration process; A configuration synchronization unit is configured to encapsulate the mlag-related configuration and synchronize the encapsulated mlag-related configuration to the mlag standby device; The second configuration sending unit sends the unsealed mlag related configuration to the second memory by calling the related command line configuration process in the mlag standby device.

9. A method for configuring a synchronization device based on the mLAG network, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Configure the MLAG networking on two switches, and determine the MALG master device and the MALG backup device in the two switches; Sending and distributing the mlag-related configuration on the mlag master device, and sending the mlag-related configuration to the first memory by calling a related command line configuration process; Encapsulating the mlag-related configuration, and synchronizing the encapsulated mlag-related configuration to the mlag standby device; In the mlag standby device, the unsealed mlag related configuration is sent to the second memory by calling the related command line configuration process.

10. A non-volatile computer storage medium, characterized in that: Computer executable instructions are stored, and when the computer executable instructions are executed by a computer, the following can be achieved: Configure the MLAG networking on two switches, and determine the MALG master device and the MALG backup device in the two switches; Sending and distributing the mlag-related configuration on the mlag master device, and sending the mlag-related configuration to the first memory by calling a related command line configuration process; Encapsulating the mlag-related configuration, and synchronizing the encapsulated mlag-related configuration to the mlag standby device; In the mlag standby device, the unsealed mlag related configuration is sent to the second memory by calling the related command line configuration process.

Citation Information

Patent Citations

  • Method for realizing configuration synchronization between virtualized devices

    CN103595768A

  • Cross-device link aggregation control device and method

    CN115714751A

  • DHCP table item synchronization method and device based on MLAG environment and medium

    CN116192801A

  • Cross-device link aggregation group registration method, device, equipment and medium

    CN118677767A

  • TCP offload device that load balances and fails-over between aggregated ports having different MAC addresses

    US20030140124A1