MLAG state real-time monitoring method and device based on SDN controller, and medium

By configuring the MLAG function module in the SDN controller and setting the timing query task, real-time monitoring of MLAG status is realized, solving the problem of low efficiency of MLAG status monitoring in the existing technology, and improving troubleshooting efficiency and network stability.

CN119621475APending Publication Date: 2025-03-14INSPUR NETWORK TECH (SHANDONG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411699321.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

In the cloud-network converged environment, there are difficulties in real-time monitoring and troubleshooting of MLAG status, and the existing technology has failed to realize real-time display and query of MLAG status in the SDN controller.

Method used

Configure the MLAG function module in the SDN controller and set up a timed query task. Send query instructions regularly to devices configured with MLAG, obtain MLAG status information, and display it in real time on the display panel to promptly alarm.

Benefits of technology

Real-time monitoring of MLAG status is realized, monitoring efficiency and convenience are improved, fault detection is quickly positioned and troubleshooted, and network stability and reliability are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119621475A_ABST
    Figure CN119621475A_ABST
Patent Text Reader

Abstract

The invention discloses an MLAG state real-time monitoring method and device based on an SDN controller and a medium, and relates to the technical field of cloud computing and SDN technologies. The method comprises the following steps: configuring an MLAG function module in an SDN controller, and setting a timed query task for the global MLAG; according to the timed query task, the SDN controller regularly sends a query instruction to the equipment configured with the MLAG, and requests to obtain MLAG state information; wherein the MLAG state information comprises but is not limited to configuration consistency, a Type-2 consistency state value, a physical state and a consistency state of a downlink port, and physical states of all related physical ports; based on the MLAG state information, the SDN controller compares the current state of the device with a device data record in a preset MLAG database to determine whether a device or a port in an abnormal state exists; and displaying the MLAG state information of the equipment on a display panel of the SDN controller in real time, and giving an alarm for the equipment or the port in an abnormal state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of cloud computing and SDN technology, and in particular to a method, device and medium for real-time monitoring of MLAG status based on an SDN controller. Background Art

[0002] With the continuous development and popularization of cloud computing technology, cloud-network convergence environment has become the mainstream trend of current network architecture. Cloud-network convergence environment usually consists of two parts: cloud platform and controller. The cloud platform is mainly responsible for managing server resources, such as CPU, memory, storage, etc., and converts traditional physical servers into multiple independent virtual machines through server virtualization technology; while the controller focuses on managing network device resources, working in coordination with the cloud platform, and configuring and scheduling network devices according to the virtual business needs of the cloud platform to ensure the network connectivity of upper-layer virtual business and access to external devices.

[0003] In a cloud-network converged environment, the connection and communication between network devices are crucial. To improve the bandwidth and redundancy of the network, multi-chassis link aggregation (MLAG) technology came into being. MLAG technology achieves high bandwidth and redundancy by combining multiple Ethernet links in parallel into a single logical link. When the bandwidth demand is high, the device links configured with MLAG can be merged into a logical link to provide greater bandwidth; and when one of the collaborative devices fails, the other device combined with the device to form MLAG can continue to work, ensuring the stable operation of the network.

[0004] However, despite the many advantages of MLAG technology, its status monitoring and troubleshooting face certain challenges in actual application. Currently, to check the status of MLAG, you usually need to enter the device to query, which is cumbersome and inefficient. At the same time, when an MLAG device fails, troubleshooting also takes a lot of time and effort, and needs to consider multiple factors such as status, consistency, and configuration, which increases the complexity of the problem.

[0005] In order to solve the above problems, although there are some similar implementation solutions in the prior art, such as monitoring the MLAG status by issuing configurations and viewing configurations, these solutions cannot realize the real-time display and query of the MLAG status in the SDN controller. Therefore, how to realize the real-time monitoring of the MLAG status in the SDN controller has become a technical problem that needs to be solved urgently. Summary of the invention

[0006] The embodiments of the present application provide a method, device and medium for real-time monitoring of MLAG status based on an SDN controller, so as to solve the following technical problem: how to implement real-time monitoring of MLAG status in an SDN controller.

[0007] In a first aspect, an embodiment of the present application provides a method for real-time monitoring of MLAG status based on an SDN controller, the method comprising: configuring an MLAG functional module in the SDN controller, and setting a scheduled query task for the MLAG global; according to the scheduled query task, the SDN controller periodically sends a query instruction to a device configured with MLAG to request to obtain MLAG status information; wherein the MLAG status information includes but is not limited to: configuration consistency, Type-2 consistency status value, physical status and consistency status of the downlink port, and physical status of all relevant physical ports; based on the MLAG status information, the SDN controller compares the current status of the device with the device data record in a preset MLAG database to determine whether there is a device or port with an abnormal status; the MLAG status information of the device is displayed in real time on the display panel of the SDN controller, and an alarm is issued for the device or port with an abnormal status.

[0008] In one implementation of the present application, the MLAG function is configured in the SDN controller, and a scheduled query task for the MLAG global is set, specifically including: enabling the MLAG function module through the command line interface of the SDN controller so that the controller can identify and manage devices configured with MLAG; configuring task parameters of the scheduled query task; wherein the task parameters include query frequency, query range, and query depth; saving and activating the configured scheduled query task so that the SDN controller can automatically execute the query operation.

[0009] In one implementation of the present application, according to the scheduled query task, the SDN controller periodically sends a query instruction to the device configured with MLAG to request to obtain the MLAG status information, specifically including: the SDN controller sends a query instruction to the device configured with MLAG through the southbound interface according to the query signal triggered by the scheduled query task; wherein the query instruction includes the type of MLAG status information to be obtained; after receiving the query instruction, the device configured with MLAG collects the corresponding status information according to the instruction content, and returns it to the SDN controller through the southbound interface.

[0010] In one implementation of the present application, based on the MLAG status information, the SDN controller compares the current status of the device with the device data records in the preset MLAG database to determine whether there are devices or ports with abnormal status, specifically including: judging whether the overall status of the current MLAG is normal based on the configuration consistency and Type-2 consistency status value in the MLAG status information; judging whether the downlink port of the corresponding device is normal based on the physical status and consistency status of the downlink port; judging whether the relevant physical ports of the corresponding device are normal based on the physical status of all relevant physical ports; judging whether there is redundant status information or missing status information in the MLAG status information based on the device data records.

[0011] In one implementation of the present application, the method also includes: regularly updating device data records in a preset MLAG database, specifically including: updating device data records based on a preset automated periodic update logic using redundant status information; and providing an administrator update module to allow an administrator to manually add, modify or delete device data records in the preset MLAG database.

[0012] In one implementation of the present application, the method also includes: locating faults and automatically repairing devices or ports in abnormal status, specifically including: when an abnormal status is detected, automatically triggering a fault location process, locating possible fault points by comparing historical status information and current status information; based on the fault location result, automatically executing preset repair operations; wherein the repair operations include: restarting the abnormal port and correcting configuration parameters; if the automatic repair attempt fails, generating a detailed fault report and sending it to the display panel of the SDN controller.

[0013] In one implementation of the present application, the method also includes: performing log recording during real-time monitoring of the MLAG status, specifically including: recording the interaction process between the SDN controller and the device configured with MLAG during real-time monitoring of the MLAG status, including but not limited to the sending time, receiving time and device response of the query instruction; recording the MLAG status information obtained from each query; recording the alarm trigger record, including the time of triggering the alarm, the device or port information of the alarm, the cause of the alarm and subsequent processing measures.

[0014] In an implementation of the present application, the method further includes: supporting multiple users to concurrently access a display panel of the SDN controller to view MLAG status information in real time.

[0015] In a second aspect, an embodiment of the present application further provides a real-time monitoring device for MLAG status based on an SDN controller, characterized in that the device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a real-time monitoring method for MLAG status based on an SDN controller such as any one of the above.

[0016] In a third aspect, an embodiment of the present application further provides a non-volatile computer storage medium for real-time monitoring of MLAG status based on an SDN controller, storing computer executable instructions, characterized in that when the computer executable instructions are executed, a method for real-time monitoring of MLAG status based on an SDN controller as described above is implemented.

[0017] The embodiments of the present application provide a method, device and medium for real-time monitoring of MLAG status based on an SDN controller, which have the following beneficial effects:

[0018] 1. Improve monitoring efficiency and convenience: This application uses the SDN controller to periodically query the MLAG status and display the query results in real time on the controller interface, so that the administrator can quickly and intuitively understand the operating status of the MLAG without having to enter the device one by one to query, which greatly improves the monitoring efficiency. At the same time, the implementation of this method enables the administrator to view the MLAG status through the controller anytime and anywhere, without being restricted by physical location, further improving the convenience of operation.

[0019] 2. Quickly locate and troubleshoot faults: When an MLAG device fails, this application can quickly provide detailed fault information, including configuration consistency, Type-2 consistency status value, downlink port physical status and consistency status, etc., to help administrators quickly locate the problem. By comparing with database records, this application can also find the difference between the device and the expected status, providing strong support for troubleshooting, effectively reducing the difficulty and time cost of troubleshooting.

[0020] 3. Enhanced network stability and reliability: This application can detect potential network problems in a timely manner by real-time monitoring of the MLAG status, and take appropriate measures to solve the problem before it worsens, thereby avoiding business interruptions and data loss caused by network failures. In addition, through comprehensive monitoring of the MLAG status, this application can also optimize the allocation and use of network resources and improve the overall performance and stability of the network. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] 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:

[0022] Figure 1 A flow chart of a method for real-time monitoring of MLAG status based on an SDN controller provided in an embodiment of the present application;

[0023] Figure 2 A schematic diagram of the internal structure of an SDN controller-based MLAG status real-time monitoring device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0025] The embodiments of the present application provide a method, device and medium for real-time monitoring of MLAG status based on an SDN controller, so as to solve the following technical problem: how to implement real-time monitoring of MLAG status in an SDN controller.

[0026] The technical solution proposed in the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0027] Figure 1 A flow chart of a method for real-time monitoring of MLAG status based on an SDN controller provided in an embodiment of the present application. Figure 1 As shown, the embodiment of the present application provides a real-time monitoring method of MLAG status based on an SDN controller, which specifically includes the following steps:

[0028] Step 101: Configure the MLAG function module in the SDN controller, and set a scheduled query task for the MLAG global.

[0029] In one embodiment of the present application, in order to implement real-time monitoring of the MLAG status based on the SDN controller, it is first necessary to configure the MLAG function in the SDN controller and set a scheduled query task for the MLAG global.

[0030] Specifically, through the command line interface of the SDN controller, the MLAG function module is enabled so that the controller can identify and manage devices configured with MLAG; the task parameters of the scheduled query task are configured; wherein the task parameters include query frequency, query range, and query depth; the configured scheduled query task is saved and activated so that the SDN controller can automatically execute the query operation.

[0031] In one embodiment, first, log in to the management interface of the controller through the command line interface (CLI) of the SDN controller. In the management interface, find the configuration options related to the MLAG function and enable the function module. After enabling, the controller will have the ability to communicate with MLAG devices and receive and process status information from these devices. After enabling the MLAG function module, it is necessary to further configure the task parameters of the scheduled query task. These parameters determine the frequency, scope and depth of the query. Set a suitable query frequency according to the network scale and management requirements. For example, it can be set to query once per minute to ensure the real-time nature of the status information. Determine the range of MLAG devices that need to be queried. It can be all MLAG devices in the entire network, or MLAG devices in a specific area or a specific brand. Set the depth of the query, that is, the level of detail of the status information that needs to be obtained. For example, you can query the configuration consistency, Type-2 consistency status value, physical status of the downlink port and consistency status of the MLAG device and other key information. Save the configured scheduled query task to the task list of the SDN controller. This step ensures that the query task can be automatically restored and continued even after the controller is restarted. Activate the scheduled query task so that the SDN controller can automatically perform query operations according to the set parameters. Once the task is activated, the controller will start to send query requests to the MLAG device at regular intervals and receive and process the returned status information.

[0032] Step 102: According to the scheduled query task, the SDN controller periodically sends a query instruction to the device configured with MLAG to request to obtain MLAG status information.

[0033] First of all, it should be noted that the MLAG status information in the embodiment of the present application includes but is not limited to: configuration consistency, Type-2 consistency status value, physical status and consistency status of the downlink port, and physical status of all related physical ports.

[0034] In one embodiment of the present application, after configuring the MLAG function module in the SDN controller and setting a scheduled query task for the MLAG global, the SDN controller periodically sends a query instruction to the device configured with MLAG according to the scheduled query task to request to obtain the MLAG status information.

[0035] Specifically, the SDN controller sends a query instruction to the device configured with MLAG through the southbound interface based on the query signal triggered by the scheduled query task; wherein the query instruction includes the type of MLAG status information to be obtained; after receiving the query instruction, the device configured with MLAG collects the corresponding status information according to the instruction content and returns it to the SDN controller through the southbound interface.

[0036] In one embodiment, according to the previously set scheduled query task, the SDN controller triggers a query signal at a predetermined time interval. This signal is the starting point for executing the query operation, ensuring the periodicity and regularity of the query operation. When the query signal is triggered, the SDN controller uses its southbound interface (an interface usually used to communicate with underlying network devices) to send a query instruction to the device configured with MLAG. After receiving the query instruction sent by the SDN controller, the device configured with MLAG will collect the corresponding status information according to the requirements in the instruction. These devices usually have the ability of self-monitoring and status reporting, and can respond quickly to query instructions and collect required data. After the collection is completed, the device will return the status information to the SDN controller through the southbound interface. This process ensures the accuracy and real-time nature of the status information, and provides a reliable data basis for subsequent monitoring and analysis.

[0037] Step 103: Based on the MLAG status information, the SDN controller compares the current status of the device with the device data records in the preset MLAG database to determine whether there is a device or port with an abnormal status.

[0038] In one embodiment of the present application, after acquiring the MLAG status information, the SDN controller compares the current status of the device with the device data record in the preset MLAG database based on the MLAG status information to determine whether there is a device or port with an abnormal status.

[0039] Specifically, based on the configuration consistency and Type-2 consistency status value in the MLAG status information, determine whether the overall status of the current MLAG is normal; based on the physical status and consistency status of the downlink port, determine whether the downlink port of the corresponding device is normal; based on the physical status of all relevant physical ports, determine whether the relevant physical ports of the corresponding device are normal; based on the device data record, determine whether there is redundant status information or missing status information in the MLAG status information.

[0040] In one embodiment, the SDN controller first compares the MLAG status information it obtains with the device data records in the MLAG database preset in the controller. Based on the configuration consistency and Type-2 consistency status value in the MLAG status information, the SDN controller jointly determines whether the overall status of the current MLAG is normal. The configuration consistency check ensures that the configurations of all MLAG peer devices are consistent, while the Type-2 consistency status value reflects the synchronization status between MLAG devices. If both indicators are normal, it is preliminarily determined that the overall status of the MLAG is good; otherwise, further analysis of the specific reasons is required. The SDN controller also determines whether the downlink port of the corresponding device is normal based on the physical status and consistency status of the downlink port. The physical status of the downlink port includes indicators such as link connectivity, rate, and bit error rate, while the consistency status focuses on whether the downlink port configuration is consistent with expectations. In addition to the downlink port, the SDN controller also determines whether the relevant physical ports of the corresponding device are normal based on the physical status of all relevant physical ports. This includes checking key indicators such as the connection status, transmission rate, and error rate of the physical port. If a physical port is found to be abnormal, the controller will immediately mark and record the abnormal information. During the comparison process, the SDN controller also determines whether there is redundant status information or missing status information in the MLAG status information based on the device data records.

[0041] Step 104: Display the MLAG status information of the device in real time on the display panel of the SDN controller, and issue an alarm for the device or port with abnormal status.

[0042] In one embodiment, the SDN controller displays the processed status information in a graphical or tabular form on its interface. Network administrators can quickly understand the operating status and performance indicators of the MLAG device through these intuitive displays. If the SDN controller finds that the MLAG device has an abnormal state or potential failure during the monitoring process, it will immediately trigger an alarm mechanism. The alarm information can be sent to the network administrator via email, SMS or system notification, so that he can take timely measures to troubleshoot and handle the fault.

[0043] In one embodiment of the present application, the method also includes: regularly updating device data records in a preset MLAG database, specifically including: updating device data records based on a preset automated periodic update logic using redundant status information; and providing an administrator update module to allow an administrator to manually add, modify or delete device data records in the preset MLAG database.

[0044] In one embodiment of the present application, the method also includes: locating faults and automatically repairing devices or ports in abnormal status, specifically including: when an abnormal status is detected, automatically triggering a fault location process, locating possible fault points by comparing historical status information and current status information; based on the fault location result, automatically executing preset repair operations; wherein the repair operations include: restarting the abnormal port, correcting configuration parameters; if the automatic repair attempt fails, generating a detailed fault report and sending it to the display panel of the SDN controller.

[0045] In one embodiment of the present application, the method also includes: performing log recording during real-time monitoring of the MLAG status, specifically including: recording the interaction process between the SDN controller and the device configured with MLAG during real-time monitoring of the MLAG status, including but not limited to the sending time, receiving time and device response of the query instruction; recording the MLAG status information obtained from each query; recording the alarm trigger record, including the time of triggering the alarm, the device or port information of the alarm, the cause of the alarm and subsequent processing measures.

[0046] In an embodiment of the present application, the method further includes: supporting multiple users to concurrently access a display panel of the SDN controller to view MLAG status information in real time.

[0047] The above is an embodiment of the method proposed in this application. Based on the same inventive concept, the embodiment of this application also provides a real-time monitoring device for MLAG status based on an SDN controller, and its structure is as follows: Figure 2 shown.

[0048] Figure 2 The present invention provides a schematic diagram of the internal structure of a real-time monitoring device for MLAG status based on an SDN controller. Figure 2 As shown, the device includes:

[0049] at least one processor 201;

[0050] and, a memory 202 communicatively connected to the at least one processor;

[0051] The memory 202 stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor 201 to enable at least one processor 201 to:

[0052] Configure the MLAG function module in the SDN controller and set a scheduled query task for the MLAG global;

[0053] According to the scheduled query task, the SDN controller periodically sends a query command to the device configured with MLAG to request to obtain MLAG status information; wherein the MLAG status information includes but is not limited to: configuration consistency, Type-2 consistency status value, physical status and consistency status of the downlink port, and physical status of all related physical ports;

[0054] Based on the MLAG status information, the SDN controller compares the current status of the device with the device data records in the preset MLAG database to determine whether there are devices or ports with abnormal status;

[0055] The MLAG status information of the device is displayed in real time on the display panel of the SDN controller, and an alarm is issued for devices or ports with abnormal status.

[0056] Some embodiments of the present application provide corresponding Figure 1 A non-volatile computer storage medium for real-time monitoring of MLAG status based on an SDN controller stores computer executable instructions, wherein the computer executable instructions are set as follows:

[0057] Configure the MLAG function module in the SDN controller and set a scheduled query task for the MLAG global;

[0058] According to the scheduled query task, the SDN controller periodically sends a query command to the device configured with MLAG to request to obtain MLAG status information; wherein the MLAG status information includes but is not limited to: configuration consistency, Type-2 consistency status value, physical status and consistency status of the downlink port, and physical status of all related physical ports;

[0059] Based on the MLAG status information, the SDN controller compares the current status of the device with the device data records in the preset MLAG database to determine whether there are devices or ports with abnormal status;

[0060] The MLAG status information of the device is displayed in real time on the display panel of the SDN controller, and an alarm is issued for devices or ports with abnormal status.

[0061] 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 IoT 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.

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

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

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

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

[0066] 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. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

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

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

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

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

[0071] The above is only an embodiment of the present application and is 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 in the scope of the claims of the present application.

Claims

1. A method for real-time monitoring of MLAG status based on SDN controller, characterized in that: The method comprises: Configure the MLAG function module in the SDN controller and set a scheduled query task for the MLAG global; According to the scheduled query task, the SDN controller periodically sends a query instruction to the device configured with MLAG to request to obtain MLAG status information; wherein the MLAG status information includes but is not limited to: configuration consistency, Type-2 consistency status value, physical status and consistency status of the downlink port, and physical status of all related physical ports; Based on the MLAG status information, the SDN controller compares the current status of the device with the device data record in a preset MLAG database to determine whether there is a device or port with an abnormal status; The MLAG status information of the device is displayed in real time on the display panel of the SDN controller, and an alarm is issued for devices or ports with abnormal status.

2. According to claim 1, a method for real-time monitoring of MLAG status based on SDN controller is characterized in that: Configure the MLAG function in the SDN controller and set a scheduled query task for the MLAG global, including: Enable the MLAG function module through the command line interface of the SDN controller, so that the controller can identify and manage the device configured with MLAG; Configure task parameters of the scheduled query task; wherein the task parameters include query frequency, query range and query depth; The configured scheduled query task is saved and activated so that the SDN controller can automatically execute the query operation.

3. The method for real-time monitoring of MLAG status based on SDN controller according to claim 1 is characterized in that: According to the scheduled query task, the SDN controller periodically sends a query instruction to the device configured with MLAG to request to obtain MLAG status information, specifically including: The SDN controller sends a query instruction to the device configured with MLAG through a southbound interface according to the query signal triggered by the scheduled query task; wherein the query instruction includes the type of MLAG status information to be obtained; After receiving the query instruction, the device configured with MLAG collects corresponding status information according to the instruction content, and returns it to the SDN controller through the southbound interface.

4. The method for real-time monitoring of MLAG status based on SDN controller according to claim 1, characterized in that: Based on the MLAG status information, the SDN controller compares the current status of the device with the device data record in the preset MLAG database to determine whether there is a device or port with an abnormal status, specifically including: Determine whether the overall status of the current MLAG is normal based on the configuration consistency and the Type-2 consistency status value in the MLAG status information; Based on the physical state and consistency state of the downlink port, determining whether the downlink port of the corresponding device is normal; Based on the physical status of all the relevant physical ports, determining whether the relevant physical ports of the corresponding device are normal; Based on the device data record, it is determined whether there is redundant status information or missing status information in the MLAG status information.

5. The method for real-time monitoring of MLAG status based on SDN controller according to claim 4 is characterized in that: The method further comprises: Regularly update the device data records in the preset MLAG database, specifically including: Based on a preset automated periodic update logic, updating the device data record using the redundant status information; and, An administrator update module is provided to allow an administrator to manually add, modify or delete device data records in the preset MLAG database.

6. The method for real-time monitoring of MLAG status based on SDN controller according to claim 1, characterized in that: The method further comprises: Performing fault location and automatic repair attempts on the device or port with abnormal status, specifically including: When an abnormal state is detected, the fault location process is automatically triggered to locate the possible fault point by comparing the historical state information with the current state information; Based on the fault location result, the preset repair operation is automatically executed; wherein the repair operation includes: restarting the abnormal port and correcting the configuration parameters; If the automatic repair attempt fails, a detailed fault report is generated and sent to the display panel of the SDN controller.

7. The method for real-time monitoring of MLAG status based on SDN controller according to claim 1, characterized in that: The method further comprises: Logs are recorded during real-time monitoring of MLAG status, including: During the real-time monitoring of the MLAG status, the interaction process between the SDN controller and the device configured with MLAG is recorded, including but not limited to the sending time and receiving time of the query command and the device response; Record the MLAG status information obtained from each query; Record alarm triggering records, including the time when the alarm was triggered, the alarm device or port information, the alarm cause and subsequent processing measures.

8. The method for real-time monitoring of MLAG status based on SDN controller according to claim 1, characterized in that: The method further comprises: Support multiple users to concurrently access the display panel of the SDN controller to view MLAG status information in real time.

9. A real-time monitoring device for MLAG status based on SDN controller, characterized in that: The device comprises: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the real-time monitoring method of MLAG status based on an SDN controller as described in any one of claims 1-8.

10. A non-volatile computer storage medium for real-time monitoring of MLAG status based on an SDN controller, storing computer executable instructions, characterized in that: When the computer executable instructions are executed, a method for real-time monitoring of MLAG status based on an SDN controller as described in any one of claims 1 to 8 is implemented.