A method, device, equipment and medium for configuring synchronization under mlag networking
By employing an automated configuration synchronization method in MLAG networking, the problems of tedious manual configuration and inconsistency in the Ethernet switch configuration process are solved, achieving efficient and reliable configuration management and updates, and improving network stability and reliability.
Patent Information
- Application Number
- CN202411905913.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2044-12-23
AI Technical Summary
In the configuration process of Ethernet switches, existing technologies suffer from cumbersome manual configuration, high costs, complicated updates and maintenance, and network stability issues caused by inconsistent configurations.
The configuration synchronization method under MLAG networking is adopted. The configuration is distributed to the backup device by the MLAG master device, and then encapsulated and synchronized. The TCP control channel is used to realize automated configuration management and consistency verification.
It simplifies the configuration process, improves configuration efficiency, reduces labor costs, enhances network stability and reliability, achieves configuration flexibility and maintainability, and reduces the risk of configuration errors and failures.
Smart Images

Figure CN119766641B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present specification relates to the technical field of computer, and particularly relates to a configuration synchronization method, device and equipment based on mlag networking and a medium. BACKGROUND
[0002] With the development of network technology and the increasing demand of business, Ethernet switches as the core equipment of network infrastructure are more and more widely used in enterprise, data center and other scenarios. Ethernet switches are generally configured, deployed and managed through command line; once the business is more, the required configuration will also increase, so that manual configuration and deployment will become tedious.
[0003] At present, the solutions that can save manpower and realize rapid deployment on the market include issuing configuration through SDN controller or writing configuration scripts manually. If configuration is issued through SDN, SDN controller needs to be deployed, and the device also needs to be adapted, which has the defect of high cost; and if configuration scripts are written in advance and then configured in batches, it will be very tedious to change or update the configuration in the later period. SUMMARY
[0004] One or more embodiments of the present specification provide a configuration synchronization method, device, equipment and medium based on mlag networking, which are used to solve the technical problems proposed in the background technology.
[0005] One or more embodiments of the present specification adopt the following technical solutions:
[0006] One or more embodiments of the present specification provide a configuration synchronization method based on mlag networking, which comprises:
[0007] Configuring mlag networking on two switches, determining mlag master device and mlag backup device in the two switches;
[0008] Issuing mlag related configuration on the mlag master device, and issuing the mlag related configuration to the first memory by calling related command line configuration process;
[0009] Encapsulating the mlag related configuration, and synchronizing the encapsulated mlag related configuration to the mlag backup device;
[0010] In the mlag backup device, the mlag related configuration after being unpacked is issued to the second memory by calling related command line configuration process.
[0011] It should be noted that the above content of the embodiments of the present specification has the following beneficial effects:
[0012] Simplified configuration process: This method reduces the steps of manual configuration by synchronizing the configuration on both switches under MLAG networking, thus simplifying the configuration process. Compared with traditional per-switch configuration, this method significantly reduces the complexity of configuration and saves time.
[0013] Improved configuration efficiency: By issuing configuration on the MLAG master device at one time and then synchronizing the configuration to the backup device, fast deployment is achieved. This synchronization method avoids repeated configuration work and improves overall configuration efficiency.
[0014] Reduced labor costs: Due to the automation of the configuration process, manual intervention is reduced, thereby reducing labor costs. In a large-scale network environment, this is particularly important 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 the MLAG environment, this consistency is crucial to ensure the 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 changes to the configuration are needed, only the master device needs to be operated, eliminating the need to change each switch separately, simplifying maintenance work.
[0017] Further, the method of configuring an mlag group on two switches, determining an mlag master device and an mlag backup device in the two switches, comprises:
[0018] Configuring an mlag group on two switches, determining an mlag master device and an mlag backup device in the two switches, and setting a tcp port between the two switches for an mlag control channel;
[0019] The mlag-related configuration is encapsulated, and the encapsulated mlag-related configuration is synchronized to the mlag backup device, comprising:
[0020] The mlag-related configuration is encapsulated in a tcp message, and the encapsulated tcp message is synchronized to the mlag backup device through the tcp port.
[0021] It should be noted that the embodiments of the present specification have the following beneficial effects through the above content:
[0022] Improved network reliability: By setting MLAG master and backup devices and establishing a TCP control channel between the two switches, it is ensured that when one switch in the network fails, the other can immediately take over, thereby improving the reliability of the network.
[0023] Enhancing 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, the method further includes:
[0025] Further, the method further includes:
[0026] It should be noted that the above-mentioned embodiments of the present application have the following beneficial effects:
[0027] Automated configuration management: automatically synchronizing MLAG (Link Aggregation) related configurations reduces manual configuration steps, automates configuration management, and improves management efficiency.
[0028] Reducing configuration errors: automatic synchronization of configurations can reduce configuration inconsistencies caused by manual copying or input errors, thereby reducing the risk of network failures.
[0029] Further, the method further includes:
[0030] According to the pre-set configuration synchronization command, the MLAG related configuration is encapsulated and synchronized to the MLAG backup device, and the configuration synchronization command includes automatic, manual or automatic periodic synchronization of the encapsulated MLAG related configuration to the MLAG backup device.
[0031] It should be noted that the above-mentioned embodiments of the present application have the following beneficial effects:
[0032] Flexible configuration synchronization mechanism: by providing options for automatic, manual or automatic periodic synchronization, the method allows network administrators to flexibly control the synchronization process of MLAG configuration according to actual needs.
[0033] Further, the method further includes:
[0034] Comparing the MLAG related configuration in the second memory with the MLAG related configuration in the first memory;
[0035] If consistent, complete the configuration distribution of the two switches.
[0036] It should be noted that the embodiments of the present specification have the following beneficial effects through the above content:
[0037] Configuration verification: By comparing the MLAG-related configuration in the second memory with the configuration in the first memory, the method ensures the accuracy and integrity of the configuration, reducing the risk of configuration errors.
[0038] Further, if inconsistent, the method further comprises:
[0039] Re-encapsulating the mlag-related configuration and re-synchronizing the encapsulated mlag-related configuration to the mlag backup device.
[0040] It should be noted that the embodiments of the present specification have the following beneficial effects through the above content:
[0041] Automatic error correction: When detecting MLAG-related configuration inconsistency, the system can automatically correct without human intervention, improving the accuracy of network configuration.
[0042] Further, after completing the configuration distribution of the two switches, the method further comprises:
[0043] Comparing the mlag-related configuration in the second memory with the mlag-related configuration in the first memory within a preset period;
[0044] If inconsistent, re-encapsulate the mlag-related configuration and re-synchronize the encapsulated mlag-related configuration to the mlag backup device.
[0045] It should be noted that the embodiments of the present specification have the following beneficial effects through the above content:
[0046] Periodic monitoring of configuration consistency: By comparing the MLAG-related configuration of the two switches within a preset period, the method ensures the continuous consistency of network configuration, thereby improving the stability and reliability of the network.
[0047] Preventive maintenance: Regular inspection and comparison of configuration can prevent potential problems, as the system will take immediate action once configuration inconsistency is detected, avoiding potential network failures.
[0048] One or more embodiments of the present specification provide a configuration synchronization device based on mlag networking, comprising:
[0049] Master-slave determination unit, configure mlag networking on two switches, determine malg master and malg backup in the two switches;
[0050] A first configuration issuing unit issues mlag related configurations on the mlag master device, and issues the mlag related configurations to a first memory by calling a related command line configuration process;
[0051] A configuration synchronizing unit encapsulates the mlag related configurations, and synchronizes the encapsulated mlag related configurations to the mlag backup device;
[0052] A second configuration issuing unit issues the unencapsulated mlag related configurations to a second memory by calling a related command line configuration process in the mlag backup device.
[0053] One or more embodiments of the present specification provide a configuration synchronization device based on mlag networking, comprising:
[0054] at least one processor; and
[0055] a memory in communication connection with the at least one processor; wherein
[0056] the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:
[0057] configure mlag networking on two switches, determine a mlag master device and a mlag backup device in the two switches;
[0058] issue mlag related configurations on the mlag master device, and issue the mlag related configurations to a first memory by calling a related command line configuration process;
[0059] encapsulate the mlag related configurations, and synchronize the encapsulated mlag related configurations to the mlag backup device;
[0060] issue the unencapsulated mlag related configurations to a second memory by calling a related command line configuration process in the mlag backup device.
[0061] One or more embodiments of the present specification provide a nonvolatile computer storage medium, which stores computer executable instructions, and the computer executable instructions can realize the following when executed by a computer:
[0062] configure mlag networking on two switches, determine a mlag master device and a mlag backup device in the two switches;
[0063] issue mlag related configurations on the mlag master device, and issue the mlag related configurations to a 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 backup device;
[0065] in the mlag backup device, by invoking a related command line configuration process, the unencrypted mlag-related configuration is issued to the second memory.
[0066] The above-mentioned at least one technical solution adopted by the embodiments of the present specification can achieve the following beneficial effects:
[0067] Simplify the configuration process: this method synchronizes the configuration on the two switches under the MLAG networking, reducing the steps of manual configuration, thereby simplifying the configuration process. Compared with the traditional configuration of each switch, this method significantly reduces the complexity of configuration and saves time.
[0068] Improve configuration efficiency: by issuing the configuration on the MLAG master device at one time, and then synchronizing the configuration to the backup device, fast deployment is achieved. This synchronization method avoids repeated configuration work and improves the overall configuration efficiency.
[0069] Reduce labor costs: due to the automation of the configuration process, manual intervention is reduced, thereby reducing labor costs. In a large-scale network environment, this is particularly important because the workload of manual configuration and maintenance is very large.
[0070] Enhance network stability: configuration synchronization ensures the consistency of the two switches, reducing problems caused by inconsistent configurations. In the MLAG environment, this consistency is crucial to ensure the high availability and load balancing of the link.
[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 changes to the configuration are needed, only the master device needs to be operated, without the need to change each switch separately, simplifying maintenance work. BRIEF DESCRIPTION OF DRAWINGS
[0072] In order to more clearly illustrate the technical solutions in the embodiments of the present specification or the prior art, the drawings needed in the embodiment or prior art description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments described in the present specification, and those skilled in the art can obtain other drawings according to these drawings without creative labor. In the drawings:
[0073] Figure 1 A flowchart of a configuration synchronization method based on MLAG networking provided by one or more embodiments of the present specification;
[0074] Figure 2 A flowchart of a method for configuring synchronization under an mlag network provided by one or more embodiments of the present specification is shown.
[0075] Figure 3 A structural diagram of an apparatus for configuring synchronization under an mlag network provided by one or more embodiments of the present specification is shown.
[0076] Figure 4 A structural diagram of an apparatus for configuring synchronization under an mlag network provided by one or more embodiments of the present specification is shown. DETAILED DESCRIPTION
[0077] The embodiments of the present specification provide a method, apparatus, device and medium for configuring synchronization under an mlag network.
[0078] In order to enable those skilled in the art to better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be described clearly and completely below with reference to the drawings in the embodiments of the present specification. Obviously, the described embodiments are only part of the embodiments of the present specification, not all. Based on the embodiments of the present specification, all other embodiments obtained by those skilled in the art without creative labor should be within the scope of protection of the present specification.
[0079] Figure 1 A flowchart of a method for configuring synchronization under an mlag network provided by one or more embodiments of the present specification is shown. Some input parameters or intermediate results in the flow allow manual intervention to adjust to help improve accuracy.
[0080] The method flow steps of the embodiments of the present specification are as follows:
[0081] S101, configuring mlag network on two switches, determining mlag master device and mlag backup device in the two switches.
[0082] S102, issuing mlag related configuration on the mlag master device, issuing the mlag related configuration to the first memory by calling related command line configuration process.
[0083] S103, encapsulating the mlag related configuration, and synchronizing the encapsulated mlag related configuration to the mlag backup device.
[0084] S104, issuing the unpacked mlag related configuration to the second memory by calling related command line configuration process in the mlag backup device.
[0085] Further, for the above S101, configure the mlag group on the two switches, determine the mlag master and mlag backup in the two switches, and set the tcp port between the two switches for the mlag control channel.
[0086] Specifically, the MLAG group can be configured first, and the physical or logical ports that need to be aggregated can be added to the MLAG group. The protocol used by MLAG, such as LACP (Link Aggregation Control Protocol), can be configured. When determining the mlag master and mlag backup, according to network strategy and performance requirements, it can be determined which switch is the mlag master and which switch is the mlag backup. Finally, the MLAG control channel can be set. A TCP port for MLAG control channel can be selected. The TCP port can be set and changed as needed. The IP address and port of the control channel on the two switches are configured, and it is necessary to ensure that the control channel between the mlag master and the mlag backup is reachable and can communicate.
[0087] Further, for the above S103, when the mlag related configuration is encapsulated and synchronized to the mlag backup device, the mlag related configuration can be encapsulated in a tcp message, and the encapsulated tcp message can be synchronized to the mlag backup device through the tcp port.
[0088] Specifically, a data format can be defined for encapsulating MLAG configuration information. The MLAG configuration information is encapsulated into a TCP message according to the defined format. The TCP protocol is used to connect to the specified port of the MLAG backup device. The encapsulated MLAG configuration message is sent to the backup device through the established TCP connection. The MLAG backup device can listen to the TCP port sent by the master device. When the encapsulated MLAG configuration message is received, the backup device needs to perform corresponding analysis. The received TCP message is parsed, and the MLAG configuration information is extracted. The parsed MLAG configuration information is applied to the backup device to match the configuration of the master device.
[0089] It should be noted that the embodiments of the present application have the following beneficial effects through the above content:
[0090] Improve network reliability: By setting MLAG master and backup devices and establishing a TCP control channel between the two switches, it is ensured that when one of the switches in the network fails, the other can immediately take over, thereby improving the reliability of the network.
[0091] Enhance configuration management efficiency: Encapsulating MLAG configuration in TCP message synchronization makes configuration management more automated and efficient, reducing the need for manual intervention.
[0092] Further, when the mlag-related configuration is encapsulated and synchronized to the mlag backup device, the mlag-related configuration is encapsulated and automatically synchronized to the mlag backup device.
[0093] It should be noted that the above-mentioned embodiments of the present specification have the following beneficial effects:
[0094] Automatic configuration management: automatically synchronize MLAG (Link Aggregation) related configuration, reduce the step of manual configuration, realize the automation of configuration management, improve the management efficiency.
[0095] Reduce configuration error: automatic synchronization configuration can reduce the problem of inconsistent configuration caused by manual copying or input error, thereby reducing the risk of network failure.
[0096] Further, when the mlag-related configuration is encapsulated and synchronized to the mlag backup device, the mlag-related configuration can be encapsulated and synchronized to the mlag backup device according to the pre-set configuration synchronization command, and the configuration synchronization command includes automatically, manually or automatically periodically synchronizing the encapsulated mlag-related configuration to the mlag backup device.
[0097] It should be noted that the above-mentioned embodiments of the present specification have the following beneficial effects:
[0098] Flexible configuration synchronization mechanism: by providing the options of automatic, manual or automatic periodic synchronization, the method allows network administrators to flexibly control the synchronization process of MLAG configuration according to actual needs.
[0099] Further, after the encapsulated mlag-related configuration is issued to the second memory in the mlag backup device by calling the related command line configuration process, 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 consistent, the configuration issuing of the two switches is completed.
[0100] It should be noted that the above-mentioned embodiments of the present specification have the following beneficial effects:
[0101] Configuration verification: by comparing whether the MLAG-related configuration in the second memory is consistent with the configuration in the first memory, the method ensures the accuracy and integrity of the configuration, and reduces the risk of configuration error.
[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 re-encapsulated, and the encapsulated mlag related configuration is re-synchronized to the mlag backup device.
[0103] It should be noted that the embodiments of the present specification have the following beneficial effects through the above content:
[0104] Automatic error correction: when detecting inconsistency of MLAG related configuration, the system can automatically correct without human intervention, improving the accuracy of network configuration.
[0105] Further, after completing the configuration distribution of the two switches, the embodiments of the present specification further include: 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 not, the mlag related configuration is re-encapsulated, and the encapsulated mlag related configuration is re-synchronized to the mlag backup device.
[0106] It should be noted that the embodiments of the present specification have the following beneficial effects through the above content:
[0107] Periodic monitoring of configuration consistency: by comparing the MLAG related configurations of the two switches within a preset period, the continuous consistency of network configuration is ensured, thereby improving the stability and reliability of the network.
[0108] Preventive maintenance: regular inspection and comparison of configurations can prevent potential problems, because once the configuration inconsistency is found, the system will take immediate measures to avoid potential network failures.
[0109] It should be noted that the embodiments of the present specification can directly configure on one switch, and then realize the configuration synchronization of the two mlag networking devices. This greatly improves the efficiency of configuration deployment of mlag networking, and in the aspect of later maintenance, only configuration modification needs to be done on one switch to realize configuration update of the two switches, reducing the error rate of manual participation and ensuring configuration accuracy.
[0110] It should be noted that the embodiments of the present specification aim to realize fast configuration deployment and synchronization of two switches under mlag networking. First, the basic configuration of mlag connection needs to be done on the two switches, so that the mlag devices on both sides can be successfully connected through tcp-based messages; then the mlag related configuration that needs to be synchronized is issued on the mlag master device, after the configuration is completed, the configuration synchronization command is executed, the related configuration that needs to be synchronized on the mlag master device is encapsulated in the tcp message and synchronized to the backup device, after the backup device receives the tcp message of the synchronization configuration, the command line configuration process is called actively, the configuration is issued to the memory, and the consistency of the configuration on both sides is checked, so as to complete the configuration synchronization.
[0111] It should be noted that, Figure 2 The flowchart of the configuration synchronization method under mlag networking provided by the embodiments of the present specification is shown in the figure, two mlag switches automatically send tcp message communication negotiation master and backup, make the configuration that needs to be synchronized on the mlag host, and write into the memory; after the configuration on the master is completed, the configuration synchronization command is called; (it can be set to automatic synchronization, manual synchronization or automatic periodic synchronization according to user demand), the master automatically encapsulates the configuration information that needs to be synchronized in the tcp message and synchronizes it to the backup device, after the backup receives the tcp message of the configuration synchronization, the configuration process is automatically called, the configuration is issued and the consistency of the mlag master and backup configuration is checked, and if there is inconsistency, the configuration on the master is used as the standard.
[0112] It should be noted that the embodiments of the present specification can directly configure on one switch, and then realize the configuration synchronization of two mlag networking devices. The efficiency of configuration deployment under mlag networking is greatly improved, and in the later maintenance, only the configuration modification needs to be done on one switch, so as to realize the configuration update of two switches, reduce the failure rate of manual participation, and ensure the accuracy of configuration.
[0113] It should be noted that the embodiments of the present specification have the following beneficial effects:
[0114] 1. The configuration synchronization between mlag master and backup devices is communicated through tcp message;
[0115] 2. Mlag related configuration only needs to be done on the master device, and the backup device will automatically synchronize the related configuration;
[0116] 3. The consistency of the configuration between mlag master and backup will be checked, if there is inconsistency, it will be automatically synchronized, and the master configuration will be used as the standard;
[0117] 4. The mlag configuration synchronization can be set to automatic synchronization, manual synchronization or automatic periodic synchronization according to user demand.
[0118] Figure 3A structure schematic diagram of a configuration synchronization device based on an MLAG networking provided for one or more embodiments of the present specification, comprising: a master-slave determination unit 301, a first configuration issuing unit 302, a configuration synchronization unit 303, and a second configuration issuing unit 304.
[0119] The master-slave determination unit 301 configures an MLAG networking on two switches, and determines an MLAG master device and an MLAG backup device in the two switches.
[0120] The first configuration issuing unit 302 issues an MLAG related configuration on the MLAG master device, and issues the MLAG related configuration to a first memory by calling a related command line configuration process.
[0121] The configuration synchronization unit 303 encapsulates the MLAG related configuration, and synchronizes the encapsulated MLAG related configuration to the MLAG backup device.
[0122] The second configuration issuing unit 304 issues the unencapsulated MLAG related configuration to a second memory by calling a related command line configuration process in the MLAG backup device.
[0123] Figure 4 A structure schematic diagram of a configuration synchronization device based on an MLAG networking provided for one or more embodiments of the present specification, comprising:
[0124] At least one processor; and,
[0125] A memory in communication connection with the at least one processor; wherein,
[0126] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:
[0127] Configure an MLAG networking on two switches, and determine an MLAG master device and an MLAG backup device in the two switches.
[0128] Issue an MLAG related configuration on the MLAG master device, and issue the MLAG related configuration to a first memory by calling a related command line configuration process.
[0129] Encapsulate the MLAG related configuration, and synchronize the encapsulated MLAG related configuration to the MLAG backup device.
[0130] Issue the unencapsulated MLAG related configuration to a second memory by calling a related command line configuration process in the MLAG backup device.
[0131] The one or more embodiments of the specification provide a non-volatile computer storage medium, which stores computer executable instructions, and the computer executable instructions can realize the following when executed by a computer:
[0132] Configure an mlag networking on two switches, and determine an mlag master device and an mlag backup device in the two switches;
[0133] Issue mlag related configurations on the mlag master device, and issue the mlag related configurations to a first memory by calling a related command line configuration process;
[0134] Encapsulate the mlag related configurations, and synchronize the encapsulated mlag related configurations to the mlag backup device;
[0135] Issue the unencapsulated mlag related configurations to a second memory by calling a related command line configuration process in the mlag backup device.
[0136] Each of the embodiments in the specification is described in a progressive manner, and the same or similar parts of each of the embodiments can be referred to each other. Each of the embodiments focuses on the difference 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 related parts can be referred to the part of the method embodiment.
Claims
1. A method for configuring synchronization under mlag-based networking, characterized in that, include: Configure mlag networking on two switches, and determine the malg master device and malg standby device on the two switches; The MLAG-related configuration is distributed to the first memory by calling the relevant command-line configuration process. The mlag-related configuration is encapsulated, and the encapsulated mlag-related configuration is synchronized to the mlag backup device; In the mlag backup device, the relevant command-line configuration process is invoked to send the unsealed mlag-related configuration to the second memory; The step of configuring the mlag group on two switches and determining the malg master device and malg standby device on the two switches includes: Configure the mlag group on two switches, identify the malg master device and malg standby device on the two switches, and set up a TCP port between the two switches for the mlag control channel. Encapsulating the mlag-related configurations and synchronizing the encapsulated mlag-related configurations to the mlag backup device includes: The mlag-related configuration is encapsulated in a TCP message, and the encapsulated TCP message is synchronized to the mlag backup device through the TCP port. The method further includes: Compare whether the mlag-related configurations in the second memory are consistent with those in the first memory; If they match, complete the configuration distribution for the two switches; If inconsistent, the method further includes: The mlag-related configurations are repackaged, and the repackaged mlag-related configurations are resynchronized to the mlag backup device; After the configuration of the two switches is completed and distributed, the method further includes: Within a preset period, compare whether the mlag-related configuration in the second memory is consistent with the mlag-related configuration in the first memory; If there is a discrepancy, the mlag-related configuration will be repackaged and the repackaged mlag-related configuration will be resynchronized to the mlag backup device.
2. 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 backup device includes: The mlag-related configurations are encapsulated, and the encapsulated mlag-related configurations are automatically synchronized to the mlag backup device.
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 backup device includes: According to the pre-set configuration synchronization command, the mlag-related configuration is encapsulated and the encapsulated mlag-related configuration is synchronized to the mlag backup device. The configuration synchronization command includes automatically, manually or automatically periodically synchronizing the encapsulated mlag-related configuration to the mlag backup device.
4. A synchronization device configured under mlag networking, characterized in that, include: The primary / backup determination unit configures mlag networking on two switches and determines the malg primary device and malg backup device among the two switches. The first configuration distribution unit distributes the mlag-related configurations to the mlag master device by calling the relevant command-line configuration process to distribute the mlag-related configurations to the first memory. Configure a synchronization unit to encapsulate the mlag-related configurations and synchronize the encapsulated mlag-related configurations to the mlag backup device; The second configuration distribution unit distributes the unsealed MLAG-related configurations to the second memory by calling the relevant command-line configuration process in the MLAG backup device. The step of configuring the mlag group on two switches and determining the malg master device and malg standby device on the two switches includes: Configure the mlag group on two switches, identify the malg master device and malg standby device on the two switches, and set up a TCP port between the two switches for the mlag control channel. Encapsulating the mlag-related configurations and synchronizing the encapsulated mlag-related configurations to the mlag backup device includes: The mlag-related configuration is encapsulated in a TCP message, and the encapsulated TCP message is synchronized to the mlag backup device through the TCP port. Also includes: Compare whether the mlag-related configurations in the second memory are consistent with those in the first memory; If they match, complete the configuration distribution for the two switches; If there is a discrepancy, it also includes: The mlag-related configurations are repackaged, and the repackaged mlag-related configurations are resynchronized to the mlag backup device; After the configuration of the two switches is completed and distributed, the following steps are also included: Within a preset period, compare whether the mlag-related configuration in the second memory is consistent with the mlag-related configuration in the first memory; If there is a discrepancy, the mlag-related configuration will be repackaged and the repackaged mlag-related configuration will be resynchronized to the mlag backup device.
5. A method for configuring synchronization devices under mlag networking, 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, which, when executed by the at least one processor, enable the at least one processor to: Configure mlag networking on two switches, and determine the malg master device and malg standby device on the two switches; The MLAG-related configuration is distributed to the first memory by calling the relevant command-line configuration process. The mlag-related configuration is encapsulated, and the encapsulated mlag-related configuration is synchronized to the mlag backup device; In the mlag backup device, the relevant command-line configuration process is invoked to send the unsealed mlag-related configuration to the second memory; The step of configuring the mlag group on two switches and determining the malg master device and malg standby device on the two switches includes: Configure the mlag group on two switches, identify the malg master device and malg standby device on the two switches, and set up a TCP port between the two switches for the mlag control channel. Encapsulating the mlag-related configurations and synchronizing the encapsulated mlag-related configurations to the mlag backup device includes: The mlag-related configuration is encapsulated in a TCP message, and the encapsulated TCP message is synchronized to the mlag backup device through the TCP port. Also includes: Compare whether the mlag-related configurations in the second memory are consistent with those in the first memory; If they match, complete the configuration distribution for the two switches; If there is a discrepancy, it also includes: The mlag-related configurations are repackaged, and the repackaged mlag-related configurations are resynchronized to the mlag backup device; After the configuration of the two switches is completed and distributed, the following steps are also included: Within a preset period, compare whether the mlag-related configuration in the second memory is consistent with the mlag-related configuration in the first memory; If there is a discrepancy, the mlag-related configuration will be repackaged and the repackaged mlag-related configuration will be resynchronized to the mlag backup device.
6. A non-volatile computer storage medium, characterized in that, It stores computer-executable instructions, which, when executed by a computer, can achieve the following: Configure mlag networking on two switches, and determine the malg master device and malg standby device on the two switches; The MLAG-related configuration is distributed to the first memory by calling the relevant command-line configuration process. The mlag-related configuration is encapsulated, and the encapsulated mlag-related configuration is synchronized to the mlag backup device; In the mlag backup device, the relevant command-line configuration process is invoked to send the unsealed mlag-related configuration to the second memory; The step of configuring the mlag group on two switches and determining the malg master device and malg standby device on the two switches includes: Configure the mlag group on two switches, identify the malg master device and malg standby device on the two switches, and set up a TCP port between the two switches for the mlag control channel. Encapsulating the mlag-related configurations and synchronizing the encapsulated mlag-related configurations to the mlag backup device includes: The mlag-related configuration is encapsulated in a TCP message, and the encapsulated TCP message is synchronized to the mlag backup device through the TCP port. Also includes: Compare whether the mlag-related configurations in the second memory are consistent with those in the first memory; If they match, complete the configuration distribution for the two switches; If there is a discrepancy, it also includes: The mlag-related configurations are repackaged, and the repackaged mlag-related configurations are resynchronized to the mlag backup device; After the configuration of the two switches is completed and distributed, the following steps are also included: Within a preset period, compare whether the mlag-related configuration in the second memory is consistent with the mlag-related configuration in the first memory; If there is a discrepancy, the mlag-related configuration will be repackaged and the repackaged mlag-related configuration will be resynchronized to the mlag backup device.
Citation Information
Patent Citations
Cross-device link aggregation control device and method
CN115714751A
DHCP table item synchronization method and device based on MLAG environment and medium
CN116192801A