Network element inspection method, electronic equipment, storage medium and program product

By building a network element inspection decision tree and inspecting multiple network elements based on multiple indicators, the problem of low efficiency in the existing technology is solved, the inspection efficiency is improved and the development workload is reduced.

CN119254599AActive Publication Date: 2025-01-03CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411537893.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-01-03
Estimated Expiration
2044-10-30

AI Technical Summary

Technical Problem

When facing multi-network inspection scenarios, the existing technology requires designing multiple different inspection processes, resulting in low inspection efficiency, and requires a large development workload when the network element indicator changes or accesses a new network element type. Influence efficiency.

Method used

By obtaining inspection configuration files, building a network element inspection decision tree, and building the same decision tree based on multiple indicators to inspect the inspection network element to achieve the judgment of inspection results.

Benefits of technology

It improves the efficiency of network element inspection, solves the inefficiency problem caused by the need to design different inspection processes for multiple network elements in complex scenarios, and reduces the development workload and adaptation costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254599A_ABST
    Figure CN119254599A_ABST
Patent Text Reader

Abstract

The invention provides a network element inspection method, electronic equipment, a storage medium and a program product, relates to the technical field of network management, and can improve the efficiency of network element inspection in a complex scene facing multi-network element inspection. The method comprises the following steps: acquiring an inspection configuration file of at least one to-be-inspected network element; constructing a network element inspection decision tree based on the inspection configuration file; and performing routing inspection on the to-be-routing-inspected network element based on the network element routing inspection decision tree to obtain a routing inspection result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network management technology, and in particular to a network element inspection method, electronic equipment, storage medium and program product. Background Art

[0002] As the scale of networks continues to expand and the network structure becomes increasingly complex, the types and models of communication network element equipment have become numerous, which has brought challenges to the inspection of communication network elements. The health status judgment of network elements not only needs to consider a variety of different indicator fields, but also needs to adapt to the differences in the association logic between communication network element indicators of different professional directions. In addition, communication network element equipment usually has obvious scenario characteristics, so that the health judgment of one type of communication network element may involve multiple communication network element indicators. These factors increase the complexity of the judgment of communication network element inspection results, and put forward higher requirements for accuracy and efficiency.

[0003] Existing solutions usually use a fixed process to compare the network element indicator fields involved in the communication network element inspection results through logical judgment to obtain the inspection results. However, when faced with multi-network element inspection scenarios, corresponding processes are designed for each network element to complete the inspection, which requires a high time cost. In addition, when the network element indicators change or the inspection module is connected to a new network element type, a large amount of development work is required for adaptation, which seriously affects the network element inspection efficiency. Summary of the invention

[0004] The present application provides a network element inspection method, electronic equipment, storage medium and program product, which can improve the efficiency of network element inspection in complex scenarios of multi-network element inspection.

[0005] In a first aspect, the present application provides a network element inspection method, the method comprising: obtaining an inspection configuration file of at least one network element to be inspected; constructing a network element inspection decision tree based on the inspection configuration file; and inspecting the network element to be inspected based on the network element inspection decision tree to obtain an inspection result.

[0006] The technical solution provided by the present application brings at least the following beneficial effects: the present application completes network element inspection by constructing a network element inspection decision tree, and can construct the same decision tree based on multiple indicators to inspect at least one network element to be inspected. It can solve the problem of low inspection efficiency in the prior art caused by the need to design different inspection processes for each of multiple network elements in complex scenarios, thereby improving the inspection efficiency.

[0007] A possible implementation method is to construct a network element inspection decision tree based on an inspection configuration file, including: generating inspection configuration information based on the inspection configuration file, the inspection configuration information is used to judge the actual status of the network element according to the inspection rules and inspection indicators in the inspection configuration file; determining the feature set of the network element inspection decision tree based on the inspection configuration information; and segmenting the inspection indicators based on the feature set to obtain the network element inspection decision tree.

[0008] Another possible implementation method is that before inspecting the network element to be inspected based on the network element inspection decision tree, the method also includes: collecting parameter values ​​of inspection indicators of at least one network element to be inspected; inspecting the network element to be inspected based on the network element inspection decision tree, including: inputting the parameter values ​​of the inspection indicators of at least one network element to be inspected into the network element inspection decision tree, so that the network element inspection decision tree inspects the network element to be inspected.

[0009] Another possible implementation method is to collect the parameter value of at least one network element to be inspected, including: sending a collection command to at least one network element to be inspected respectively; the collection command is used to collect the parameter value of the inspection indicator of the network element to be inspected; receiving a response message sent by the network element to be inspected, the response message including the parameter value of the inspection indicator of the network element to be inspected.

[0010] In another possible implementation, before collecting the parameter value of at least one network element to be inspected, the method also includes: for each network element to be inspected in the at least one network element to be inspected, selecting a communication protocol corresponding to the network element to be inspected from a protocol library; and establishing a connection with the network element to be inspected based on the communication protocol.

[0011] Another possible implementation method also includes: when the inspection configuration file is updated, adjusting the network element inspection decision tree based on the updated inspection configuration file to obtain the adjusted network element inspection decision tree; inspecting the network element to be inspected based on the network element inspection decision tree to obtain the inspection result, including: inspecting the network element to be inspected based on the adjusted network element inspection decision tree to obtain the inspection result.

[0012] Another possible implementation method is to inspect the network element to be inspected based on the network element inspection decision tree to obtain the inspection result, including: when the preset trigger condition is met, inspect the network element to be inspected based on the network element inspection decision tree to obtain the inspection result; wherein the preset trigger condition includes at least one of the following: receiving an inspection trigger instruction; arriving at a preset trigger time; the time interval between the current time and the last trigger time is greater than or equal to the preset time interval.

[0013] In a second aspect, the present application provides a network element inspection device, which can implement the network element inspection method provided by the present application. The network element inspection device includes: a communication module, a processing module, and an execution module; the communication module is used to obtain an inspection configuration file of at least one network element to be inspected; the processing module is used to construct a network element inspection decision tree based on the inspection configuration file; the execution module is used to inspect the network element to be inspected based on the network element inspection decision tree to obtain an inspection result.

[0014] A possible implementation method is a processing module, which is specifically used to generate inspection configuration information based on the inspection configuration file, and the inspection configuration information is used to determine the actual status of the network element according to the inspection rules and inspection indicators in the inspection configuration file; determine the feature set of the network element inspection decision tree based on the inspection configuration information; and segment the inspection indicators based on the feature set to obtain the network element inspection decision tree.

[0015] Another possible implementation method is that the communication module is also used to collect parameter values ​​of inspection indicators of at least one network element to be inspected; the execution module is specifically used to input the parameter values ​​of inspection indicators of at least one network element to be inspected into the network element inspection decision tree, so that the network element inspection decision tree inspects the network element to be inspected.

[0016] In another possible implementation, the communication module is specifically used to send a collection command to at least one network element to be inspected respectively; the collection command is used to collect parameter values ​​of inspection indicators of the network element to be inspected;

[0017] A response message sent by the network element to be inspected is received, where the response message includes a parameter value of an inspection indicator of the network element to be inspected.

[0018] In another possible implementation, the communication module is further used to select, for each network element to be inspected in at least one network element to be inspected, a communication protocol corresponding to the network element to be inspected from a protocol library; and establish a connection with the network element to be inspected based on the communication protocol.

[0019] In another possible implementation method, the processing module is also used to adjust the network element inspection decision tree based on the updated inspection configuration file to obtain the adjusted network element inspection decision tree when the inspection configuration file is updated; the execution module is specifically used to inspect the network element to be inspected based on the adjusted network element inspection decision tree to obtain the inspection result.

[0020] Another possible implementation method is an execution module, which is specifically used to inspect the network element to be inspected based on the network element inspection decision tree to obtain the inspection result when the preset trigger condition is met; wherein the preset trigger condition includes at least one of the following: reaching the preset trigger time; the time interval between the current time and the last trigger time is greater than or equal to the preset time interval.

[0021] In a third aspect, the present application provides an electronic device, comprising: a processor and a memory; the memory stores instructions executable by the processor; when the processor is configured to execute the instructions, the electronic device implements the method of the first aspect above.

[0022] In a fourth aspect, the present application provides a computer-readable storage medium, which includes: computer software instructions; when the computer software instructions are executed in an electronic device, the electronic device implements the method of the first aspect above.

[0023] In a fifth aspect, the present application provides a computer program product, which includes a computer program; when the computer program runs in an electronic device, the electronic device implements the method of the first aspect.

[0024] The beneficial effects of the second to fifth aspects mentioned above refer to the corresponding description of the first aspect and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A schematic diagram of an application scenario of a network element inspection method provided in this application;

[0026] Figure 2 A flowchart of a network element inspection method provided by this application;

[0027] Figure 3 A flowchart of another network element inspection method provided by this application;

[0028] Figure 4 A flowchart of another network element inspection method provided by this application;

[0029] Figure 5 A flowchart of another network element inspection method provided by this application;

[0030] Figure 6 A schematic diagram of the structure of a network element inspection device provided in this application;

[0031] Figure 7 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION

[0032] A call bill data recording method provided by the present application will be described in detail below with reference to the accompanying drawings.

[0033] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0034] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0035] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0036] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0037] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first", "second", etc. are not limiting the quantity and execution order.

[0038] In the description of the present application, unless otherwise specified, “plurality” means two or more.

[0039] Communication network element inspection refers to regular or irregular inspection of each network element in the communication network. By checking the configuration, performance, security status, etc. of the network element, it ensures its normal operation and timely discovers potential problems to reduce the risk of network interruption. The network element is the smallest unit that can be managed in network management. It can be a physical device, such as a router, switch, base station, etc., or a logical component, such as a software service or functional module.

[0040] Existing communication network element inspection solutions usually design a fixed inspection process for a single network element, and the inspection judgment rules that can be supported are simple. When the inspection task includes multiple communication network elements, multiple inspection processes need to be designed according to the characteristics of different network elements, and when the inspection rules change, the training process needs to be redesigned, which greatly increases the development cost of the inspection work and reduces the inspection efficiency.

[0041] In response to the above technical problems, the present application provides a network element inspection method, the idea of ​​which is to: obtain an inspection configuration file of at least one network element to be inspected; construct a network element inspection decision tree based on the inspection configuration file; inspect the network element to be inspected based on the network element inspection decision tree to obtain the inspection result. It can be seen that the present application completes the network element inspection by constructing a network element inspection decision tree, and can construct the same decision tree for inspection based on multiple indicators, which can solve the problem of low inspection efficiency caused by the need to design different inspection processes for each of multiple network elements in the existing technology in complex scenarios.

[0042] The network element inspection method provided in the embodiment of the present application is described in detail below in conjunction with the drawings in the specification.

[0043] Figure 1 A schematic diagram of an application scenario of the network element inspection method provided in an embodiment of the present application, such as Figure 1 As shown, it includes an external service device 100, a patrol device 200 and a communication network element 300. The external service device 100 establishes a communication connection with the patrol device 200, and the patrol device 200 establishes a communication connection with the communication network element 300.

[0044] like Figure 1 As shown, the inspection device 200 includes an inspection management engine, a decision tree engine, and a network element management protocol library. Among them, the inspection management engine is responsible for inspection rule management, inspection scheduling management, and inspection result management; the decision tree engine is responsible for managing the network element inspection decision tree, including decision tree feature extraction, decision tree generation, decision tree pruning, and decision tree operation; the network element management protocol library is responsible for integrating various management protocols related to network element inspection (for example, NetConf, Tr069, MCP, RestFul, etc.).

[0045] In some embodiments, the inspection device 200 receives a network element inspection request sent from an external service device 100, and performs a corresponding network element inspection task. Exemplarily, the inspection management engine obtains an inspection configuration file according to the network element inspection request, configures corresponding inspection content according to the type of network element to be inspected, such as the network element to be inspected and the inspection judgment rule, and sends a collection command for collecting inspection index data (i.e., the parameter value of the inspection index) to the network element to be inspected; the decision tree engine includes a decision tree feature management component, a decision tree generation component, a decision tree pruning component, and a decision tree running engine, mainly generating a network element inspection decision tree according to the inspection content, and running the network element inspection decision tree based on the collected inspection index data to obtain the inspection result.

[0046] In some embodiments, the external service device 100 sends a network element inspection request to the inspection device 200 , and receives inspection indicator data sent from the inspection device 200 .

[0047] In some embodiments, the communication network element 300 receives the network element inspection instruction sent by the inspection device 200, and sends the inspection index data to the inspection device 200. It should be noted that the communication network element 300 can be a single network element, or multiple network elements of the same type, or multiple network elements of different types, which is not limited in the embodiments of the present application.

[0048] It should be noted that the application scenarios of the embodiments of the present disclosure are not limited. The system architecture and business scenarios described in the embodiments of the present disclosure are intended to more clearly illustrate the technical solutions of the embodiments of the present disclosure, and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. It is known to those skilled in the art that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present disclosure are also applicable to similar technical problems.

[0049] The following is a detailed introduction to the network element inspection method provided in the embodiment of the present application.

[0050] Figure 2 A flowchart of a network element inspection method provided in an embodiment of the present application is applied to Figure 1 The network element inspection device 200 shown in FIG. Figure 2 As shown, the method includes:

[0051] S101: Obtain an inspection configuration file of at least one network element to be inspected.

[0052] Among them, the inspection configuration file is one or more files created and maintained by network administrators. These files define the network element type, inspection indicators, inspection rules and inspection cycles, etc., and are used to define and set the rules and processes for network element inspection to ensure the normal operation and performance of network devices. Exemplary inspection indicators can include CPU usage, memory usage, port status, etc.

[0053] Exemplarily, the network elements to be inspected may include: switches, servers, firewalls, modems, etc.

[0054] In some embodiments, the above method further includes: performing pre-configuration according to an inspection configuration file, wherein the pre-configuration content includes authentication information for obtaining network element connection authority, preset triggering conditions for network element inspection, and the like.

[0055] S102: Construct a network element inspection decision tree based on the inspection configuration file.

[0056] Among them, the decision tree is a method for classification and prediction, in which the root node of the decision tree represents the entire data set, the branch nodes of the decision tree represent the decision rules, and the leaf nodes of the decision tree represent the final decision results. The decision tree can divide the data into gradually smaller sets based on preset questions and conditions until a clear decision or prediction can be made.

[0057] S103: Inspect the network element to be inspected based on the network element inspection decision tree to obtain an inspection result. In some embodiments, when a preset trigger condition is met, the network element to be inspected is inspected based on the network element inspection decision tree to obtain an inspection result; wherein the preset trigger condition includes at least one of the following: receiving an inspection trigger instruction; reaching a preset trigger time; the time interval between the current time and the last trigger time is greater than or equal to the preset time interval.

[0058] In some embodiments, before the above step S103, the method further includes the following step S202.

[0059] S202: Collect parameter values ​​of inspection indicators of at least one network element to be inspected.

[0060] Exemplarily, step S201 may be implemented as follows:

[0061] S2011. Send a collection command to at least one network element to be inspected respectively. Accordingly, at least one network element to be inspected receives the collection command.

[0062] The collection command is used to collect parameter values ​​of inspection indicators of the network element to be inspected.

[0063] S2012: For each network element to be inspected in at least one network element to be inspected, the network element to be inspected sends a response message to the network element inspection device; correspondingly, the network element inspection device receives the response message sent by the network element to be inspected.

[0064] The response message includes the parameter value of the inspection indicator of the network element to be inspected.

[0065] In some embodiments, based on the above step S201, step S103 can be specifically implemented as: inputting the parameter value of the inspection index of at least one network element to be inspected into the network element inspection decision tree, so that the network element inspection decision tree inspects the network element to be inspected.

[0066] In some embodiments, the construction of the decision tree and the collection of inspection index parameter values ​​of the network elements to be inspected can be performed simultaneously (that is, the above steps S102 and S201 can be performed simultaneously) to shorten the overall inspection time and improve the inspection efficiency.

[0067] In some embodiments, before the above step S202, the above method further includes the following steps:

[0068] S200 . For each network element to be inspected in at least one network element to be inspected, select a communication protocol corresponding to the network element to be inspected from a network element management protocol library.

[0069] In some embodiments, the communication protocol to be invoked is determined based on the network element type.

[0070] Exemplarily, the communication protocols for realizing the connection between the network element inspection device and the network element to be inspected include: NetConf protocol, Tr069 protocol, MCP protocol, RestFul protocol, etc.

[0071] In some embodiments, the network element management protocol library continuously integrates new communication protocols through a plug-in structure.

[0072] S201. Establish a connection with a network element to be inspected based on a communication protocol.

[0073] It is understandable that before collecting the inspection index parameter values ​​of the network elements to be inspected, it is necessary to first establish a connection with the network elements to be inspected. The embodiment of the present application can integrate in advance the common communication protocols that may be involved in the network element inspection. When it is necessary to establish a connection with the network element, the network element inspection device can quickly respond to the inspection needs and call the corresponding communication protocol from the network element inspection management protocol library to achieve connection with the network element to be inspected, thereby improving the efficiency of network element inspection.

[0074] It can be understood that the present application completes network element inspection by constructing a network element inspection decision tree, and can construct the same decision tree based on multiple indicators to inspect at least one network element to be inspected. This can solve the problem of low inspection efficiency in the prior art, which requires designing different inspection processes for each of multiple network elements in complex scenarios, thereby improving the inspection efficiency.

[0075] Figure 3 A flowchart of a network element inspection method provided in an embodiment of the present application is as follows: Figure 3 As shown, before step S103, the network element inspection method further includes:

[0076] S301: When the inspection configuration file is updated, the network element inspection decision tree is adjusted based on the updated inspection configuration file to obtain an adjusted network element inspection decision tree.

[0077] Exemplarily, the reasons for updating the inspection configuration file include but are not limited to at least one of the following situations: inspection rule change, access to a new type of network element, and network element interface upgrade.

[0078] In some embodiments, after the inspection content changes, the network administrator updates the configuration file and inputs the updated configuration file into the network element inspection device. The network element inspection device creates a decision tree based on the updated configuration file through the network element inspection method provided in this application (i.e., steps S101-S103) to complete the new network element inspection task.

[0079] Thus, based on the above step S301, the above step S103 can also be implemented as S1031: based on the adjusted network element inspection decision tree, inspect the network element to be inspected to obtain the inspection result.

[0080] It is understandable that as network devices and conditions change, the updated inspection configuration file can ensure that the inspection decision tree reflects the latest inspection standards and indicators, and can ensure the accuracy of the inspection results. This method allows the decision tree to be adjusted after the inspection configuration file is updated, so that network managers only need to update the configuration file without redesigning and deploying the entire inspection process, thus realizing dynamic loading of the inspection configuration file and being able to quickly adapt to changes in the network environment.

[0081] In some embodiments, Figure 4 As shown, the above step S102 can be specifically implemented as the following steps S1021-S1023:

[0082] S1021: Generate inspection configuration information based on the inspection configuration file.

[0083] The inspection configuration information is used to determine the actual status of the network element according to the inspection rules and inspection indicators in the inspection configuration file.

[0084] In some embodiments, the configuration file can have multiple formats (for example, INI, XML, JSON, YAML, etc.), and files in these formats cannot be directly recognized. Therefore, the present application parses the configuration file through a parser (such as a Groovy parser). The parser uses regular expressions to extract various inspection configuration data in the configuration file, and converts the various inspection configuration data into a data structure that can be recognized and operated by the inspection module, thereby obtaining a file containing complete inspection configuration information.

[0085] S1022: Determine a feature set of a network element inspection decision tree according to the inspection configuration information.

[0086] In some embodiments, the feature set includes all inspection indicators used to evaluate the status of the network element, and the system determines which inspection indicators will be used to build the decision tree based on the inspection configuration information. These indicators are usually the key parameters that best reflect the health status of the network element.

[0087] S1023: Segment the inspection indicators based on the feature set to obtain a network element inspection decision tree.

[0088] In some embodiments, a decision tree is constructed based on the inspection indicators in the feature set, and a top-down recursive divide-and-conquer method is used to segment the features using a segmentation strategy and a non-backtracking greedy strategy, wherein the segmentation strategy can be based on statistical methods, such as cluster analysis, decision tree algorithms (such as C4.5, ID3) or other machine learning techniques.

[0089] In some embodiments, each node of the network element inspection decision tree represents a judgment condition of an inspection indicator, and a leaf node represents an inspection result.

[0090] In some embodiments, it is possible to determine how to segment the data based on the threshold of the inspection indicator and the data distribution. First, starting from the entire feature set, select an inspection indicator as a feature and a segmentation point of the feature to create the first node of the tree. The selection of the segmentation point is based on a certain metric, such as information gain or Gini impurity, to determine which feature is most effective in distinguishing different categories. For example, a feature and a threshold thereof are selected so that data points exceeding the threshold are divided into one branch, while those below the threshold are divided into another branch. When a feature and a segmentation point are selected, the feature set is segmented into two or more subsets, each of which corresponds to a result of the segmentation point. Then, this process is repeated for each subset. For each subset, we select the best feature and segmentation point again to further subdivide the data until the stopping condition is met. The stopping condition can be that the maximum tree depth is reached or the number of samples of a node is lower than the preset minimum sample number threshold. During the segmentation process, the best segmentation feature and segmentation point of each node are continuously evaluated until all the stop conditions are met, and the network element inspection decision tree is obtained.

[0091] For example, if the CPU usage rate exceeds 80%, further segmentation may be required; if it is less than 80%, it is considered that the status is normal and no further segmentation is required.

[0092] In some embodiments, in order to avoid the overfitting problem of inspection results and improve the generalization ability of the network element inspection decision tree, after the network element inspection decision tree is generated, the network element inspection decision tree is pruned by minimizing the loss function or cost function of the network element inspection decision tree to remove some unnecessary branches, thereby simplifying the network element inspection decision tree.

[0093] It is understandable that the network element inspection method provided in the embodiment of the present application can timely adjust the inspection decision tree and conduct inspections by constructing a unified decision tree based on multiple inspection indicators and realizing dynamic loading of inspection configuration files, thereby accelerating the discovery and resolution of network problems and significantly improving the efficiency and accuracy of inspections. This method allows network managers to adjust inspection strategies by simply updating configuration files without redesigning and deploying the entire inspection process, thereby quickly adapting to changes in the network environment.

[0094] The network element inspection method provided by the present application is introduced below through a complete embodiment.

[0095] like Figure 5 As shown, the process is as follows:

[0096] S1: Pre-configure basic network element inspection information.

[0097] The basic information of network element inspection includes authentication information used to obtain network element connection authority, preset trigger conditions of network element inspection, etc.

[0098] S2: Obtain the inspection configuration file of the network element to be inspected.

[0099] The inspection configuration file is created by the network administrator and then input into the network element inspection device.

[0100] S3: Parse the inspection configuration file and generate inspection configuration information.

[0101] Among them, the present application parses the configuration file through a parser (such as a Groovy parser), and the parser uses regular expressions to extract various inspection configuration data in the configuration file, and converts each inspection configuration data into a data structure that can be recognized and operated by the inspection module to obtain a file containing complete inspection configuration information.

[0102] S4: Determine a feature set of a network element inspection decision tree according to the inspection configuration information.

[0103] S5: Segment the inspection indicators based on the feature set to obtain a network element inspection decision tree.

[0104] S6: Prune the generated network element inspection decision tree.

[0105] The above steps S4-S6 are the process of creating a network element inspection decision tree in the network element inspection method provided in this application. The specific process has been described in the above steps S1021-S1023 and will not be repeated here.

[0106] S7: Send a collection command to the network element to be inspected.

[0107] The network element inspection device determines the communication protocol that needs to be called to establish a connection with the network element to be inspected according to the network element type, and then calls these communication protocols from the network element management protocol library and establishes a connection with the network element to be inspected. For all network elements to be inspected, a collection command is sent to at least one network element to be inspected respectively, and accordingly, at least one network element to be inspected receives the collection command.

[0108] S8: Receive a response message sent by the network element to be inspected.

[0109] The response information includes the parameter value of the inspection index of the network element to be inspected. For each network element to be inspected in at least one network element to be inspected, the network element to be inspected sends a response message to the network element inspection device; accordingly, the network element inspection device receives the response message sent by the network element to be inspected.

[0110] like Figure 5 As shown, the above steps S4-S6 and steps S7-S8 are performed simultaneously.

[0111] S9: Inputting the parameter value of the inspection index of the network element to be inspected into the network element inspection decision tree, so that the network element inspection decision tree inspects the network element to be inspected and obtains the inspection result.

[0112] In the case where the inspection configuration file is updated, the process further includes step S10: parsing the updated inspection configuration file to generate new inspection configuration information.

[0113] After completing the above step S10, the process returns to step S4 and performs network element inspection again.

[0114] It can be seen that the above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, the embodiment of the present application provides a hardware structure and / or software module corresponding to each function. It should be easily appreciated by those skilled in the art that, in combination with the modules and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0115] The embodiment of the present application can divide the functional modules of the network element inspection device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0116] A schematic diagram of the structure of a network element inspection device can implement the network element inspection method provided by the above method embodiment. Figure 6 As shown, the network element inspection device 400 includes: a communication module 401 , a processing module 402 , and an execution module 403 .

[0117] The communication module 401 is used to obtain an inspection configuration file of at least one network element to be inspected;

[0118] Processing module 402, used to build a network element inspection decision tree based on the inspection configuration file;

[0119] The execution module 403 is used to inspect the network element to be inspected based on the network element inspection decision tree to obtain the inspection result.

[0120] A possible implementation method, processing module 402, is specifically used to generate inspection configuration information based on the inspection configuration file, the inspection configuration information is used to determine the actual status of the network element according to the inspection rules and inspection indicators in the inspection configuration file; determine the feature set of the network element inspection decision tree according to the inspection configuration information; and segment the inspection indicators based on the feature set to obtain the network element inspection decision tree.

[0121] In another possible implementation, the communication module 401 is also used to collect parameter values ​​of inspection indicators of at least one network element to be inspected; the execution module 403 is specifically used to input the parameter values ​​of inspection indicators of at least one network element to be inspected into the network element inspection decision tree, so that the network element inspection decision tree inspects the network element to be inspected.

[0122] In another possible implementation, the communication module 401 is specifically configured to send a collection command to at least one network element to be inspected respectively; the collection command is configured to collect parameter values ​​of inspection indicators of the network element to be inspected.

[0123] A response message sent by the network element to be inspected is received, where the response message includes a parameter value of an inspection indicator of the network element to be inspected.

[0124] In another possible implementation, the communication module 401 is further configured to select, for each network element to be inspected in at least one network element to be inspected, a communication protocol corresponding to the network element to be inspected from a protocol library; and establish a connection with the network element to be inspected based on the communication protocol.

[0125] In another possible implementation method, the processing module 402 is also used to adjust the network element inspection decision tree based on the updated inspection configuration file to obtain the adjusted network element inspection decision tree when the inspection configuration file is updated; the execution module 403 is specifically used to inspect the network element to be inspected based on the adjusted network element inspection decision tree to obtain the inspection result.

[0126] Another possible implementation method is execution module 403, which is specifically used to inspect the network element to be inspected based on the network element inspection decision tree to obtain the inspection result when the preset trigger condition is met; wherein the preset trigger condition includes at least one of the following: reaching the preset trigger time; the time interval between the current time and the last trigger time is greater than or equal to the preset time interval.

[0127] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present invention provides a possible structural diagram of the electronic device involved in the above-mentioned embodiment. Figure 7 As shown, the electronic device 900 includes: a processor 902 , a communication interface 903 , and a bus 904 . Optionally, the electronic device 900 may further include a memory 901 .

[0128] The processor 902 may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor 902 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor 902 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0129] The communication interface 903 is used to connect with other devices via a communication network, such as Ethernet, wireless access network, wireless local area network (WLAN), etc.

[0130] The memory 901 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0131] As a possible implementation, the memory 901 may exist independently of the processor 902, and the memory 901 may be connected to the processor 902 via a bus 904, and is used to store instructions or program codes. When the processor 902 calls and executes the instructions or program codes stored in the memory 901, the network element inspection method provided in the embodiment of the present invention can be implemented.

[0132] In another possible implementation, the memory 901 may also be integrated with the processor 902 .

[0133] The bus 904 may be an extended industry standard architecture (EISA) bus, etc. The bus 904 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0134] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the service calling device can be divided into different functional modules to complete all or part of the functions described above.

[0135] The embodiment of the present application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be completed by computer program instructions to instruct the relevant hardware, and the program can be stored in the above computer-readable storage medium. When the computer program instructions are executed on a computer, the computer executes the network element inspection method described in any of the above embodiments.

[0136] Exemplarily, the above-mentioned computer-readable storage media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks or magnetic tapes, etc.), optical disks (e.g., compact disks (CD), digital versatile disks (DVD), etc.), smart cards and flash memory devices (e.g., erasable programmable read-only memory (EPROM), cards, sticks or key drives, etc.). The various computer-readable storage media described in the present disclosure may represent one or more devices and / or other machine-readable storage media for storing information. The term "machine-readable storage medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing and / or carrying instructions and / or data.

[0137] An embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program product runs on a computer, the computer is enabled to execute any one of the network element inspection methods provided in the above embodiments.

[0138] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A network element inspection method, characterized in that: The method comprises: Obtaining at least one inspection configuration file of a network element to be inspected; Constructing a network element inspection decision tree based on the inspection configuration file; The network element to be inspected is inspected based on the network element inspection decision tree to obtain an inspection result.

2. The method according to claim 1, characterized in that The constructing a network element inspection decision tree based on the inspection configuration file includes: Generating inspection configuration information based on the inspection configuration file, wherein the inspection configuration information is used to determine the actual state of the network element according to the inspection rules and inspection indicators in the inspection configuration file; Determine a feature set of the network element inspection decision tree according to the inspection configuration information; The inspection index is segmented based on the feature set to obtain the network element inspection decision tree.

3. The method according to claim 1, characterized in that: Before inspecting the network element to be inspected based on the network element inspection decision tree, the method further includes: Collecting a parameter value of at least one inspection indicator of the network element to be inspected; The inspecting the network element to be inspected based on the network element inspection decision tree includes: Inputting a parameter value of at least one inspection indicator of the network element to be inspected into the network element inspection decision tree, so that the network element inspection decision tree inspects the network element to be inspected.

4. The method according to claim 3, characterized in that The collecting of the parameter value of at least one network element to be inspected includes: Sending a collection command to at least one of the network elements to be inspected respectively; the collection command is used to collect parameter values ​​of inspection indicators of the network elements to be inspected; A response message sent by the network element to be inspected is received, wherein the response message includes a parameter value of an inspection indicator of the network element to be inspected.

5. The method according to claim 3, characterized in that: Before collecting the parameter value of at least one of the network elements to be inspected, the method further includes: For each network element to be inspected in at least one network element to be inspected, selecting a communication protocol corresponding to the network element to be inspected from a protocol library; A connection is established with the network element to be inspected based on the communication protocol.

6. The method according to claim 1, characterized in that The method further comprises: In the case where the inspection configuration file is updated, adjusting the network element inspection decision tree based on the updated inspection configuration file to obtain the adjusted network element inspection decision tree; The inspecting the network element to be inspected based on the network element inspection decision tree to obtain an inspection result includes: Based on the adjusted network element inspection decision tree, the network element to be inspected is inspected to obtain an inspection result.

7. The method according to claim 6, characterized in that The inspecting the network element to be inspected based on the network element inspection decision tree to obtain an inspection result includes: When a preset trigger condition is met, the network element to be inspected is inspected based on the network element inspection decision tree to obtain an inspection result; wherein the preset trigger condition includes at least one of the following: Receive inspection trigger command; Arrival of preset trigger time; The time interval between the current time and the last trigger time is greater than or equal to the preset time interval.

8. An electronic device, characterized in that: It comprises a processor and a memory, the processor is coupled to the memory; the memory is used to store computer instructions, the computer instructions are loaded and executed by the processor to enable the computer device to implement the network element inspection method as described in any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes computer-executable instructions, and when the computer-executable instructions are executed on a computer, the computer is enabled to execute the network element inspection method according to any one of claims 1 to 7.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed on an electronic device, the electronic device executes the network element inspection method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Typhoon disaster early warning method and device, server and storage medium

    CN113887813A

  • Network element detection method and related device

    CN114266288A

  • Malicious traffic intelligent detection method and device and storage medium

    CN114900835A

  • Network inspection method and device, computer equipment and readable storage medium

    CN116962265A

  • Command arrangement method and device of network element management system and storage medium

    CN117354113A