Network management method, electronic device, storage medium and program product

By using a pre-built network management framework in network management, and generating and sending network management commands, the problems of low network management efficiency and poor universality in the existing technology are solved, and efficient and general network management is achieved.

CN119854129APending Publication Date: 2025-04-18CHINA UNIONPAY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411929352.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

The prior art is inefficient and poorly versatile in network management, and it is necessary to determine the command requirements of the network equipment before generating network management commands.

Method used

By obtaining network management requests, network management commands are generated and sent based on the pre-built network management framework. The framework includes the architecture call layer, the service model layer, the device model layer and the command template layer. It can automatically generate network management commands and perform functional checks and device-level checks on parameters.

Benefits of technology

It improves the efficiency and versatility of network management, can automatically generate network management commands, and simplifies the network management process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854129A_ABST
    Figure CN119854129A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a network management method, electronic equipment, a storage medium and a program product. The method comprises the following steps: acquiring a network management request; wherein the network management request indicates a network management function, target equipment information, a target equipment issuing mode, a command issuing mode of target equipment and management function parameters; based on a pre-constructed network management framework, according to a network management function indicated by the network management request, target equipment information, a target equipment issuing mode, a command issuing mode of target equipment and management function parameters, generating and sending a network management command corresponding to the network management request to the target equipment; wherein the pre-constructed network management framework indicates one or more of the following processing modes: performing functional level verification on the parameters, performing equipment level verification on the parameters, and automatically generating a management command and a network management command. The method is used for achieving the effect of improving the efficiency and universality of network management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of communication technology, the scale of data centers continues to expand and their functions are rapidly iterating. On the one hand, upper-layer services have higher and higher requirements on the stability and response speed of the basic network; on the other hand, the ever-expanding network scale and increasingly complex network architecture have brought severe challenges to the centralized and standardized operation and maintenance of the network.

[0003] In the prior art, when performing network management on different network devices, it is necessary to first determine the command requirements corresponding to the network devices, and then generate network management commands corresponding to the network management requests according to the corresponding command requirements.

[0004] However, the methods in the prior art may lead to problems of low efficiency and poor versatility in network management. Summary of the invention

[0005] The embodiments of the present application provide a network management method, an electronic device, a storage medium, and a program product to achieve the effect of improving the efficiency and versatility of network management.

[0006] In a first aspect, an embodiment of the present application provides a network management method, including:

[0007] Obtaining a network management request; wherein the network management request indicates a network management function, target device information, a command issuing method for the target device, and management function parameters;

[0008] Based on the pre-built network management framework, according to the network management function indicated by the network management request, the target device information, the command issuing method of the target device, and the management function parameters, a network management command corresponding to the network management request is generated and sent to the target device;

[0009] The pre-built network management framework indicates one or more of the following processing methods: verifying parameters at a function level, verifying parameters at a device level, and automatically generating network management commands.

[0010] In a possible implementation, based on a pre-built network management framework, according to the network management function indicated by the network management request, the target device information, the command issuance method of the target device, and the management function parameters, a network management command corresponding to the network management request is generated and sent to the target device, including: based on a pre-built network management framework, according to the network management function indicated by the network management request, the target device information, the command issuance method of the target device, and the management function parameters, at least one service command is generated; wherein the network management function includes at least one network management service; the service command is a command corresponding to the network management service; according to the at least one service command, a network management command corresponding to the network management request is generated and sent to the target device.

[0011] In one possible implementation, based on the at least one service command, a network management command corresponding to the network management request is generated and sent to the target device, including: determining the order of each network management service in at least one network management service included in the network management function, and integrating the at least one service command according to the determined order, generating and sending the network management command corresponding to the network management request to the target device.

[0012] In one possible implementation, based on a pre-built network management framework, at least one service command is generated according to the network management function indicated by the network management request, target device information, a command issuance method for the target device, and management function parameters, including: performing service division processing on the network management function indicated by the network management request to obtain at least one network management service; and performing service division processing on the management function parameters indicated by the network management request to obtain management service parameters corresponding to each network management service; and repeating the process of generating service commands corresponding to the network management services based on the pre-built network management framework according to the network management services, target device information, a command issuance method for the target device, and management service parameters corresponding to the network management services according to the order of each network management service in at least one network management service included in the network management function, until a service command corresponding to each network management service in the at least one network management service is obtained.

[0013] In a possible implementation, the pre-built network management architecture includes: an architecture call layer, a service Yang model layer, a device Yang model layer, and a command template layer; the architecture call layer is used to call the service Yang model layer, the device Yang model layer, and the command template layer; the service Yang model layer includes at least one service Yang model for verifying parameters at a functional level; the device Yang model layer includes at least one device Yang model for verifying parameters at a device level; the command template layer includes at least one command template for generating management commands; based on the pre-built network management framework, according to the network management service, the target device information, the command issuance method of the target device, and the management service parameters corresponding to the network management service, the service command corresponding to the network management service is generated, including: calling the service Yang model layer, the device Yang model layer, and the command template layer through the architecture call layer; according to the network management service, determining the service corresponding to the network management service from the service Yang model layer Yang model; and according to the determined service Yang model, the management service parameters corresponding to the network management service are verified at the functional level; if the management service parameters pass the verification at the functional level, then according to the determined service Yang model and the target device information, the device Yang model corresponding to the network management service is determined from the device Yang model layer; and according to the determined device Yang model, the management service parameters corresponding to the network management service are verified at the device level; if the management service parameters pass the verification at the device level, then according to the determined device Yang model and the command issuance method of the target device, the command template corresponding to the network management service is determined from the command template layer; and according to the determined command template and the management service parameters, a service command corresponding to the network management service is generated; wherein the command issuance method of the target device is a issuance method based on a command line or a issuance method based on an extensible markup language; the command templates included in the command template layer include command templates based on a command line issuance method and command templates based on an extensible markup language issuance method.

[0014] In a possible implementation, the method further includes: if the management service parameter fails to pass the verification at the function level, or if the management service parameter fails to pass the verification at the device level, generating and presenting a prompt message indicating that the verification has failed.

[0015] In a possible implementation, according to the determined service Yang model and the target device information, the device Yang model corresponding to the network management service is determined from the device Yang model layer, including: according to the determined service Yang model, determining the corresponding pre-built real device maintenance table and pre-built virtual device maintenance table; according to the target device information, determining the target device version and target device model corresponding to the target device information from the pre-built real device maintenance table; according to the target device version and the target device model, determining the virtual device information, and the virtual device version and virtual device model corresponding to the virtual device information from the pre-built virtual device maintenance table; according to the determined virtual device information, and the virtual device version and virtual device model corresponding to the virtual device information, determining the device Yang model corresponding to the network management service from the device Yang model layer.

[0016] In a possible implementation, the process of constructing the network management architecture includes: obtaining historical management service parameters and historical service commands of all historical network devices under each historical network management service; constructing the service Yang model layer included in the network management architecture based on the historical management service parameters of all historical network devices under each historical network management service; constructing the device Yang model layer and the command template layer included in the network management architecture based on the historical management service parameters of all historical network devices under each historical network management service and the historical service commands corresponding to the historical management service parameters; constructing the architecture call layer included in the network management architecture; wherein the architecture call layer includes: a call page and / or a call interface.

[0017] In a possible implementation, the service Yang model layer included in the network management architecture is constructed according to the historical management service parameters of all the historical network devices under each historical network management service, including: based on the historical network management service, management service parameter definition processing is performed on the historical management service parameters of all the historical network devices under each historical network management service to construct the service Yang model layer included in the network management architecture.

[0018] In a possible implementation, the device Yang model layer and the command template layer included in the network management architecture are constructed according to the historical management service parameters of all the historical network devices under each historical network management service and the historical service commands corresponding to the historical management service parameters, including: based on all the historical network devices and the historical service commands corresponding to the historical network devices, the historical management service parameters of all the historical network devices under each historical network management service are processed for management service parameter definition to construct the device Yang model layer and the command template layer included in the network management architecture; based on each of the historical network devices in the historical network devices, the device Yang model layer and the command template layer ... ng model layer, constructs a real device maintenance table and a virtual device maintenance table corresponding to each historical network management service; wherein, the real device maintenance table indicates the device information of each real device in all the historical network devices, and the correspondence between the device information of the real device and the real device version and the real device model; the virtual device maintenance table indicates the correspondence between the real device version and the real device model, and the device information, virtual device version, and virtual device model of the virtual device, and the correspondence between the device information, virtual device version, and virtual device model of the virtual device and the device Yang model.

[0019] In a possible implementation, the method further includes: if the historical network device is updated, updating the real device maintenance table and the virtual device maintenance table; if the network management function is updated, updating the service Yang model layer, the device Yang model layer, and the command template layer included in the network management architecture.

[0020] In a second aspect, an embodiment of the present application provides a network management device, including:

[0021] An acquisition module, used to acquire a network management request; wherein the network management request indicates a network management function, target device information, a command issuing method for the target device, and management function parameters;

[0022] A processing module is used to generate and send a network management command corresponding to the network management request to the target device based on a pre-built network management framework, according to the network management function indicated by the network management request, target device information, command issuance method of the target device, and management function parameters; wherein the pre-built network management framework indicates one or more of the following processing methods: function-level verification of parameters, device-level verification of parameters, and automatic generation of network management commands.

[0023] In one possible implementation, the processing module includes a generation unit for generating at least one service command based on a pre-built network management framework and in accordance with the network management function, target device information, command issuance method of the target device, and management function parameters indicated by the network management request; wherein the network management function includes at least one network management service; the service command is a command corresponding to the network management service; and the processing unit is for generating and sending a network management command corresponding to the network management request to the target device based on the at least one service command.

[0024] In one possible implementation, the processing unit is specifically used to determine the order of each network management service in at least one network management service included in the network management function, and integrate the at least one service command according to the determined order, and generate and send a network management command corresponding to the network management request to the target device.

[0025] In one possible implementation, the generation unit is specifically used to perform service division processing on the network management function indicated by the network management request to obtain at least one network management service; and perform service division processing on the management function parameters indicated by the network management request to obtain management service parameters corresponding to each network management service; according to the order of each network management service in at least one network management service included in the network management function, repeat the process of generating service commands corresponding to the network management service based on a pre-built network management framework, according to the network management service, target device information, the command issuance method of the target device, and the management service parameters corresponding to the network management service, until a service command corresponding to each network management service in the at least one network management service is obtained.

[0026] In a possible implementation, the pre-built network management architecture includes: an architecture call layer, a service Yang model layer, a device Yang model layer, and a command template layer; the architecture call layer is used to call the service Yang model layer, the device Yang model layer, and the command template layer; the service Yang model layer includes at least one service Yang model for verifying parameters at a functional level; the device Yang model layer includes at least one device Yang model for verifying parameters at a device level; the command template layer includes at least one command template for generating management commands; the generation unit is further specifically used to call the service Yang model layer, the device Yang model layer, and the command template layer through the architecture call layer; determine the service Yang model corresponding to the network management service from the service Yang model layer according to the network management service; and generate the service Yang model corresponding to the network management service according to the determined service Yang model. The management service parameters of the network management service are verified at the functional level; if the management service parameters pass the verification at the functional level, then the device Yang model corresponding to the network management service is determined from the device Yang model layer according to the determined service Yang model and the target device information; and according to the determined device Yang model, the management service parameters corresponding to the network management service are verified at the device level; if the management service parameters pass the verification at the device level, then the command template corresponding to the network management service is determined from the command template layer according to the determined device Yang model and the command issuance method of the target device; and according to the determined command template and the management service parameters, a service command corresponding to the network management service is generated; wherein the command issuance method of the target device is a issuance method based on a command line or a issuance method based on an extensible markup language; the command templates included in the command template layer include command templates based on a command line issuance method and command templates based on an extensible markup language issuance method.

[0027] In a possible implementation manner, the generating unit is further specifically configured to generate and present a prompt message indicating that the verification has failed if the management service parameter fails to pass the verification at the function level, or if the management service parameter fails to pass the verification at the device level.

[0028] In a possible implementation, the generation unit is further specifically used to determine the corresponding pre-built real device maintenance table and pre-built virtual device maintenance table according to the determined service Yang model; determine the target device version and target device model corresponding to the target device information from the pre-built real device maintenance table according to the target device information; determine the virtual device information, and the virtual device version and virtual device model corresponding to the virtual device information from the pre-built virtual device maintenance table according to the target device version and the target device model; determine the device Yang model corresponding to the network management service from the device Yang model layer according to the determined virtual device information, and the virtual device version and virtual device model corresponding to the virtual device information.

[0029] In a possible implementation, the processing module is also used to obtain historical management service parameters and historical service commands of all historical network devices under each historical network management service; construct the service Yang model layer included in the network management architecture based on the historical management service parameters of all historical network devices under each historical network management service; construct the device Yang model layer and the command template layer included in the network management architecture based on the historical management service parameters of all historical network devices under each historical network management service and the historical service commands corresponding to the historical management service parameters; construct the architecture call layer included in the network management architecture; wherein the architecture call layer includes: a call page and / or a call interface.

[0030] In a possible implementation, the processing module is further specifically used to perform management service parameter definition processing on the historical management service parameters of all historical network devices under each historical network management service based on the historical network management service, so as to construct the service Yang model layer included in the network management architecture.

[0031] In a possible implementation manner, the processing module is further specifically used to perform management service parameter definition processing on the historical management service parameters of all the historical network devices under each historical network management service based on all the historical network devices and the historical service commands corresponding to the historical network devices, so as to construct the device Yang model layer and the command template layer included in the network management architecture; based on the correspondence between each historical network device in all the historical network devices and each device Yang model in at least one device Yang model included in the device Yang model layer, construct a real device maintenance table and a virtual device maintenance table corresponding to each historical network management service; wherein the real device maintenance table indicates the device information of each real device in all the historical network devices, and the correspondence between the device information of the real device and the real device version and the real device model; the virtual device maintenance table indicates the correspondence between the real device version and the real device model and the device information, virtual device version, and virtual device model of the virtual device, and the correspondence between the device information, virtual device version, and virtual device model of the virtual device and the device Yang model.

[0032] In a possible implementation, the processing module is further specifically used to update the real device maintenance table and the virtual device maintenance table if the historical network device is updated; if the network management function is updated, the service Yang model layer, the device Yang model layer, and the command template layer included in the network management architecture are updated.

[0033] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;

[0034] The memory stores computer-executable instructions;

[0035] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0036] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0037] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0038] The network management method, electronic device, storage medium and program product provided in the embodiments of the present application obtain a network management request and, based on a pre-built network management framework, generate and send a network management command corresponding to the network management request to the target device according to the network management function, target device information, command issuance method of the target device, and management function parameters indicated by the network management request. The network management command corresponding to the network management request can be automatically generated based on the pre-built network management framework, thereby improving the efficiency of network management. The parameters can be verified at the function level and the device level based on the pre-built network management framework, thereby improving the versatility of network management. Based on the above description, the network management method provided by the present application improves the efficiency and versatility of network management. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0040] Figure 1 Schematic diagram of the network management method provided in this application Figure 1 ;

[0041] Figure 2 Schematic diagram of the network management method provided in this application Figure 2 ;

[0042] Figure 3 Schematic diagram of the network management method provided in this application Figure 3 ;

[0043] Figure 4 Schematic diagram of the network management method provided in this application Figure 4 ;

[0044] Figure 5 A schematic diagram of the structure of the network management device provided by this application;

[0045] Figure 6 A schematic diagram of the structure of the electronic device provided in this application.

[0046] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0047] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0048] In the prior art, when performing network management on different network devices, it is necessary to first determine the command requirements corresponding to the network devices, and then generate network management commands corresponding to the network management requests according to the corresponding command requirements. However, the methods in the prior art will lead to the problem of low efficiency of network management.

[0049] The network management method provided by the present application obtains a network management request and, based on a pre-built network management framework, generates and sends a network management command corresponding to the network management request to the target device according to the network management function, target device information, command issuance method of the target device, and management function parameters indicated by the network management request. The network management command corresponding to the network management request can be automatically generated based on the pre-built network management framework, thereby improving the efficiency of network management. The parameters can be verified at the function level and the device level based on the pre-built network management framework, thereby improving the versatility of network management. Based on the above description, the network management method provided by the present application improves the efficiency and versatility of network management.

[0050] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0051] Figure 1 Schematic diagram of the network management method provided in this application Figure 1 ,like Figure 1 As shown, the method includes:

[0052] Step S101: Obtain a network management request.

[0053] Specifically, a network management request may be obtained. A network management request is a request for managing a network device. This application does not limit network management requests, and any request that can manage a network device may be used as a network management request provided by this application. Optionally, network management requests include, but are not limited to, one or more of: a request to add a new network configuration, a request to modify a network configuration, a request to delete a network configuration, and the like.

[0054] The network management request indicates the network management function, target device information, command delivery method of the target device, and management function parameters.

[0055] Among them, the network management function is the function of managing the network requested by the network management request. For example, if the network management request is a request for adding a new network configuration, the function of managing the network requested to be implemented is to add a new network configuration; if the network management request is a request for modifying the network configuration, the function of managing the network requested to be implemented is to modify the network configuration; if the network management request is a request for deleting the network configuration, the function of managing the network requested to be implemented is to delete the network configuration.

[0056] The target device information is information about the network device for which the network management request is requested. The present application does not limit the target device information, and the target device information may be the target device IP.

[0057] The command issuing method of the target device is a command issuing method supported by the network device requested by the network management request for network management. The present application does not limit the command issuing method of the target device. Optionally, the command issuing method of the target device includes but is not limited to: at least one of a command line-based issuing method and an extensible markup language-based issuing method.

[0058] The management function parameters are parameters corresponding to the network management function requested by the network management request.

[0059] Step S102: Based on the pre-built network management framework, according to the network management function indicated by the network management request, target device information, command issuance method of the target device, and management function parameters, a network management command corresponding to the network management request is generated and sent to the target device.

[0060] Specifically, based on the pre-built network management framework, according to the network management function, target device information, command issuance method of the target device, and management function parameters indicated by the network management request obtained in step S101, a network management command corresponding to the network management request can be generated and sent to the target device.

[0061] The pre-built network management framework is a pre-built network management framework that automatically generates network management commands required by network devices according to network management requests. The pre-built network management framework indicates one or more of the following processing methods: checking parameters at the function level, checking parameters at the device level, and automatically generating network management commands.

[0062] Among them, the parameters are verified at the function level, and basic verification can be performed on the parameters from the function level to ensure that the network management parameters indicated by the network management request can realize the network function indicated by the network management request. The parameters are verified at the device level, and the parameters are verified at the device level to ensure that the network management parameters indicated by the network management request can realize the network function indicated by the network management request for the network device indicated by the network management request. The network management command is automatically generated, and the network management command corresponding to the parameter can be automatically generated after the parameter passes the verification at the function level and the verification at the device level, thereby improving the efficiency of network management.

[0063] The network management command is a command sent to a target device to instruct the target device to implement a corresponding network management function.

[0064] Among them, the present application does not limit the process of generating and sending a network management command corresponding to a network management request to a target device based on a pre-built network management framework according to the network management function, target device information, command issuance method of the target device, and management function parameters indicated by the network management request. Optionally, at least one service command can be generated based on the pre-built network management framework according to the network management function, target device information, command issuance method of the target device, and management function parameters indicated by the network management request; wherein the network management function includes at least one network management service; the service command is a command corresponding to the network management service; and then based on at least one service command, a network management command corresponding to the network management request is generated and sent to the target device.

[0065] The network management method provided in the embodiment of the present application obtains a network management request and, based on a pre-built network management framework, generates and sends a network management command corresponding to the network management request to the target device according to the network management function, target device information, command issuance method of the target device, and management function parameters indicated by the network management request. The network management command corresponding to the network management request can be automatically generated based on the pre-built network management framework, thereby improving the efficiency of network management. The parameters can be verified at the function level and the device level based on the pre-built network management framework, thereby improving the versatility of network management. Based on the above description, the network management method provided in the present application improves the efficiency and versatility of network management.

[0066] Figure 2 Schematic diagram of the network management method provided in this application Figure 2 ,like Figure 2 As shown, in this embodiment Figure 1On the basis of the embodiment, a process of generating and sending a network management command corresponding to a network management request to a target device based on a pre-built network management framework according to the network management function indicated by the network management request, target device information, command issuance mode of the target device, and management function parameters is described in detail. The method includes:

[0067] Step S201: Based on the pre-built network management framework, at least one service command is generated according to the network management function indicated by the network management request, target device information, command issuance method of the target device, and management function parameters.

[0068] Specifically, based on the pre-built network management framework, at least one service command is generated according to the network management function indicated by the network management request, the target device information, the command issuance method of the target device, and the management function parameters. The network management function includes at least one network management service, and the network management service is the minimum service unit implemented by the network management function. The service command is a command corresponding to the network management service, and the service command is a command that instructs the target device to implement the corresponding network management service.

[0069] Among them, this application does not limit the number of service commands generated, wherein the number of service commands generated corresponds to the number of network management services corresponding to the network management function, that is, the number of network management services corresponding to the network management function is the number of service commands generated.

[0070] Among them, the present application does not limit the process of generating at least one service command based on the pre-built network management framework according to the network management function indicated by the network management request, the target device information, the command issuing method of the target device, and the management function parameters. Optionally, the process of generating at least one service command based on the pre-built network management framework according to the network management function indicated by the network management request, the target device information, the command issuing method of the target device, and the management function parameters may include: firstly performing service division processing on the network management function indicated by the network management request to obtain at least one network management service; and performing service division processing on the management function parameters indicated by the network management request to obtain the management service parameters corresponding to each network management service. Then, according to the order of each network management service in at least one network management service included in the network management function, repeating the process of generating the service command corresponding to the network management service based on the pre-built network management framework according to the network management service, the target device information, the command issuing method of the target device, and the management service parameters corresponding to the network management service, until the service command corresponding to each network management service in at least one network management service is obtained.

[0071] Specifically, as described above, the network management function includes at least one network management service, wherein, in the process of implementing the network management function, each network management service needs to be implemented in a preset order. Wherein, in the process of implementing each network management service in a preset order, if one of the network management services is not implemented, the implementation process of the network management function is suspended, resulting in the inability to implement the network management function. Therefore, at least one service command can be generated according to the order of each network management service in at least one network management service included in the network management function. Wherein, if each service command in at least one service command is generated, the process of generating at least one service command is completed. Wherein, if in the process of generating at least one service command according to the order of each network management service in at least one network management service included in the network management function, once a service command generation failure occurs, the generation process of at least one service command is terminated, that is, the process of generating at least one service command fails.

[0072] Optionally, in the process of generating at least one service command according to the order of each network management service in at least one network management service included in the network management function, once the service command generation fails, prompt information of network management failure can be generated and presented. Optionally, the prompt information of network management failure generated and presented in this process can indicate the cause of the network management failure, that is, the network management service corresponding to the failed service command generation, and optionally, can also include the cause of the service command generation identification.

[0073] Among them, the present application does not limit the process of generating service commands corresponding to network management services based on a pre-built network management framework according to network management services, target device information, command issuance methods of target devices, and management service parameters corresponding to network management services. Optionally, the pre-built network management architecture may include: an architecture call layer, a service Yang model layer, a device Yang model layer, and a command template layer. The architecture call layer is used to call the service Yang model layer, the device Yang model layer, and the command template layer. The service Yang model layer includes at least one service Yang model for verifying parameters at the functional level. The device Yang model layer includes at least one device Yang model for verifying parameters at the device level. The command template layer includes at least one command template for generating management commands. Optionally, based on a pre-built network management framework, the process of generating a service command corresponding to a network management service according to the network management service, target device information, a command issuance method of the target device, and management service parameters corresponding to the network management service may include: calling the service Yang model layer, the device Yang model layer, and the command template layer through the architecture call layer, and determining the service Yang model corresponding to the network management service from the service Yang model layer according to the network management service; and performing a functional level verification on the management service parameters corresponding to the network management service according to the determined service Yang model. If the management service parameters pass the functional level verification, then determining the device Yang model corresponding to the network management service from the device Yang model layer according to the determined service Yang model and the target device information; and performing a device level verification on the management service parameters corresponding to the network management service according to the determined device Yang model. If the management service parameters pass the device level verification, then determining the command template corresponding to the network management service from the command template layer according to the determined device Yang model and the command issuance method of the target device; and generating a service command corresponding to the network management service according to the determined command template and management service parameters.

[0074] Among them, by dividing the network management function into multiple network management services, and based on the pre-built network management framework and the management service parameters corresponding to the network management service, the service command corresponding to each network management service can be accurately generated, thereby improving the accuracy of the generation of at least one service command, and further improving the accuracy of network management. Among them, in the process of generating at least one service command according to the above process, based on the order of each network management service in at least one network management service included in the network management function, when one of the service commands fails to be generated, the generation process of the network management command can be stopped, thereby improving the efficiency of network management. In summary, the network management method provided by the present application can improve the efficiency and accuracy of network management.

[0075] Step S202: Generate and send a network management command corresponding to the network management request to the target device according to at least one service command.

[0076] Specifically, according to the at least one service command generated in step S201, a network management command corresponding to the network management request may be generated and sent to the target device.

[0077] Among them, the present application does not limit the process of generating and sending a network management command corresponding to a network management request to a target device based on at least one service command. Optionally, the process of generating and sending a network management command corresponding to a network management request to a target device based on at least one service command may include: determining the order of each network management service in at least one network management service included in the network management function, and integrating at least one service command according to the determined order, generating and sending a network management command corresponding to the network management request to the target device.

[0078] Among them, the description of the order of each network management service in at least one network management service included in the network management function can refer to the description in step S201, which will not be repeated here. Specifically, based on the description of the network management function, network management service, service command, and network management service in step S201, at least one service command can be integrated and processed according to the determined order of each network management service in at least one network management service, and a network management command corresponding to the network management request can be generated and sent to the target device. Optionally, at least one service command can be integrated and processed according to the order of each network management service in at least one network management service.

[0079] Among them, according to the determined order of each network management service in at least one network management service, at least one service command is integrated and processed, so that a network management command corresponding to the network management request can be accurately generated and sent to the target device, thereby improving the accuracy of network management.

[0080] The embodiment of the present application provides a process of generating and sending a network management command corresponding to a network management request to a target device based on a pre-built network management framework according to the network management function, target device information, command issuance method of the target device, and management function parameters indicated by the network management request. At least one service command is generated based on the pre-built network management framework according to the network management function, target device information, command issuance method of the target device, and management function parameters indicated by the network management request. According to the at least one service command, a network management command corresponding to the network management request is generated and sent to the target device. The method of first generating at least one service command and then generating the network management command can improve the accuracy of network management command generation, thereby further improving the accuracy of network management.

[0081] In a possible embodiment, the pre-built network management architecture includes: an architecture call layer, a service Yang model layer, a device Yang model layer, and a command template layer. The architecture call layer is used to call the service Yang model layer, the device Yang model layer, and the command template layer. The service Yang model layer includes at least one service Yang model for verifying parameters at the function level. The device Yang model layer includes at least one device Yang model for verifying parameters at the device level. The command template layer includes at least one command template for generating management commands.

[0082] Figure 3 Schematic diagram of the network management method provided in this application Figure 3 ,like Figure 3 As shown, in this embodiment Figure 1 or Figure 2 Based on the embodiment, a process of generating a service command corresponding to a network management service based on a pre-built network management framework according to the network management service, target device information, a command issuing method of the target device, and management service parameters corresponding to the network management service is described in detail. The method includes:

[0083] Step S301: Call the service Yang model layer, the device Yang model layer, and the command template layer through the architecture call layer.

[0084] Specifically, the service Yang model layer, the device Yang model layer, and the command template layer may be called through the architecture call layer included in the pre-built network management architecture.

[0085] Step S302: According to the network management service, determine the service Yang model corresponding to the network management service from the service Yang model layer; and perform functional level verification on the management service parameters corresponding to the network management service according to the determined service Yang model.

[0086] Among them, the service Yang model is the only atomic Yang model corresponding to the network management service. The service Yang model included in the service Yang model layer corresponds to all network management services of all network management functions.

[0087] Specifically, according to the network management service, the service Yang model corresponding to the network management service can be determined from the service Yang model layer; and according to the determined service Yang model, the management service parameters corresponding to the network management service are verified at the functional level.

[0088] Among them, through the service Yang model layer, the management service parameters are verified at the functional level, which can align the granularity of the service Yang model layer and the device Yang model layer.

[0089] Step S303: If the management service parameters pass the verification at the functional level, the device Yang model corresponding to the network management service is determined from the device Yang model layer according to the determined service Yang model and the target device information; and the management service parameters corresponding to the network management service are verified at the device level according to the determined device Yang model.

[0090] Specifically, according to the verification process in step S302, if the management service parameters pass the verification at the functional level, then based on the determined service Yang model and the target device information, the device Yang model corresponding to the network management service can be determined from the device Yang model layer; and based on the determined device Yang model, the management service parameters corresponding to the network management service are verified at the device level.

[0091] Among them, the present application does not limit the process of determining the device Yang model corresponding to the network management service from the device Yang model layer according to the determined service Yang model and the target device information. Optionally, the process of determining the device Yang model corresponding to the network management service from the device Yang model layer according to the determined service Yang model and the target device information may include: determining the corresponding pre-built real device maintenance table and pre-built virtual device maintenance table according to the determined service Yang model. According to the target device information, determine the target device version and target device model corresponding to the target device information from the pre-built real device maintenance table. According to the target device version and the target device model, determine the virtual device information, and the virtual device version and virtual device model corresponding to the virtual device information from the pre-built virtual device maintenance table. According to the determined virtual device information, and the virtual device version and virtual device model corresponding to the virtual device information, determine the device Yang model corresponding to the network management service from the device Yang model layer.

[0092] The pre-built real device maintenance table is a pre-built table for maintaining the real device information, real device version, and real device model of the real network device, and the pre-built virtual device maintenance table is a pre-built table for maintaining the correspondence between the virtual device information, virtual device version, and virtual device model of the virtual network device and the real device version and real device model of the real network device. Each service Yang model corresponds to a pair of pre-built tables, that is, one pre-built real device maintenance table and one pre-built virtual device maintenance table.

[0093] For example, if the target device information indicated by the network management request is the target device IP: 145.247.81.23, then determine the target device version: CE6881-48S6CQ, target device model: V200R005C20SPC800 from the real device maintenance table; then determine the virtual device information corresponding to the target device from the virtual device maintenance table, that is, virtual device ID:, virtual device version: CE6881, virtual device model: V00R005.

[0094] The device Yang model included in the device Yang model layer is a unique atomic Yang model corresponding to the network management service, virtual device information, virtual device version, and virtual device model of the virtual network device. The virtual device information, virtual device version, and virtual device model of a virtual network device correspond to the real device version and real device model of at least one real network device.

[0095] Among them, in the process of determining the device Yang model corresponding to the network management service, combined with the pre-built real device maintenance table and the pre-built virtual device maintenance table, the device Yang model corresponding to the network management service can be accurately and efficiently determined, thereby improving the efficiency and accuracy of network management command generation, and further improving the efficiency and accuracy of network management.

[0096] Among them, the management service parameters are verified at the device level through the device Yang model layer. Based on the granularity of the alignment service Yang model layer and the device Yang model layer described in step S302, personalized parameter verification can be performed according to the target device model and target device version.

[0097] Step S304: If the management service parameters pass the verification at the device level, the command template corresponding to the network management service is determined from the command template layer according to the determined device Yang model and the command issuance method of the target device; and the service command corresponding to the network management service is generated according to the determined command template and management service parameters.

[0098] Specifically, according to the verification process in step S303, if the management service parameters pass the verification at the device level, then based on the determined device Yang model and the command issuance method of the target device, the command template corresponding to the network management service can be determined from the command template layer; and based on the determined command template and management service parameters, the service command corresponding to the network management service is generated.

[0099] The command template included in the command template layer is a unique template for generating commands corresponding to the network management service, virtual device information of the virtual network device, the virtual device version, the virtual device model, and the command issuing method.

[0100] The command issuing mode of the target device is based on command line or extensible markup language. The command templates included in the command template layer include command templates based on command line and command templates based on extensible markup language.

[0101] Among them, the command line delivery method for the target scenario in the industry is the command line-based delivery method CLI. Based on the command line-based delivery method CLI, this application is also configured with an extensible markup language-based delivery method NETCONF. Among them, the extensible markup language-based delivery method NETCONF is associated with the YANG model. Compared with the command line-based delivery method CLI, it is faster and more secure. Therefore, the efficiency and security of the network management provided by this application can be improved.

[0102] The embodiment of the present application provides a pre-built network management framework, which generates a process of service commands corresponding to a network management service according to the network management service, target device information, a command issuing method of the target device, and management service parameters corresponding to the network management service. The service Yang model layer, the device Yang model layer, and the command template layer are called through the architecture calling layer. According to the network management service, the service Yang model corresponding to the network management service is determined from the service Yang model layer; and according to the determined service Yang model, the management service parameters corresponding to the network management service are verified at the functional level. If the management service parameters pass the verification at the functional level, the device Yang model corresponding to the network management service is determined from the device Yang model layer according to the determined service Yang model and the target device information; and according to the determined device Yang model, the network management The management service parameters corresponding to the management service are verified at the device level. If the management service parameters pass the verification at the device level, the command template corresponding to the network management service is determined from the command template layer according to the determined device Yang model and the command issuance method of the target device; and the service command corresponding to the network management service is generated according to the determined command template and management service parameters, wherein, through the call service of the architecture call layer, the function level verification service of the service Yang model layer, the device layer verification service of the device Yang model layer, and the automatic generation service of the command template layer, it is possible to automatically generate the corresponding network management command only by indicating the network management function, target device information, the command issuance method of the target device, and the management function parameters through the network management request, thereby improving the efficiency and versatility of network management command generation, and further improving the efficiency and versatility of network management.

[0103] In a possible embodiment, if the management service parameter fails to pass the verification at the function level, or if the management service parameter fails to pass the verification at the device level, a prompt message indicating that the verification has failed is generated and presented.

[0104] Specifically, according to the verification process in step S302, if the management service parameter fails to pass the verification at the functional level, a prompt message indicating that the verification failed can be generated and presented. The prompt message indicating that the verification failed generated and presented in this process can indicate the reason for failing the verification at the functional level, that is, the sub-parameter in the management service parameter that caused the verification at the functional level to fail.

[0105] Specifically, according to the verification process in step S303, if the management service parameter fails to pass the verification at the device level, a prompt message indicating that the verification failed can be generated and presented. The prompt message indicating that the verification failed generated and presented in this process can indicate the reason for failing the verification at the device level, that is, the sub-parameter in the management service parameter that caused the verification at the device level to fail.

[0106] Among them, when the verification at the function level or the verification at the device level fails, the reason for the failure of the verification is presented to the user by generating and presenting a prompt message that the verification failed, so that the user can adjust the input management service parameters according to the prompt information, thereby improving the efficiency of generating management commands and further improving the efficiency of network management.

[0107] Figure 4 Schematic diagram of the network management method provided in this application Figure 4 ,like Figure 4 As shown, in this embodiment Figure 1 or Figure 2 Based on the embodiment, the construction process of the network management architecture is described in detail. The method includes:

[0108] Step S401: Obtain historical management service parameters and historical service commands of all historical network devices under various historical network management services.

[0109] Specifically, the historical management service parameters and historical service commands of all historical network devices under each historical network management service may be obtained.

[0110] The historical network device is a real network device in the historical use process. The historical network management service is all the network management services supported by the historical network device. The historical management service parameters are the management service parameters used by the historical network device in the process of providing the historical network management service. The historical service command is the management command used by the historical network device in the process of providing the historical network management service.

[0111] Among them, the description of historical network management services, historical management service parameters, and historical service commands can refer to the description of network management services, management service parameters, and service commands in the above embodiments, which will not be repeated here.

[0112] Among them, the present application does not limit the process of obtaining historical management service parameters and historical service commands of all historical network devices under each historical network management service. Optionally, the historical network management functions, historical management function parameters, and historical network management commands of all historical network devices under each historical network management function can be obtained first, wherein the description of the historical network management function, historical management function parameters, and historical network management commands can refer to the description of the network management function, management function parameters, and network management commands in the above embodiment, which will not be repeated here; then, the historical network management function is subjected to service division processing to obtain at least one historical network management service corresponding to each historical network management function, the historical management function parameters are subjected to service division processing to obtain at least one historical management service parameter corresponding to each historical management function parameter, and the historical network management commands are subjected to service division processing to obtain at least one historical service command corresponding to each historical network management command; then, at least one historical network management service corresponding to each historical network management function, at least one historical management service parameter corresponding to each historical management function parameter, and at least one historical service command corresponding to each historical network management command are aggregated to obtain the historical management service parameters and historical service commands of all historical network devices under each historical network management service.

[0113] Optionally, in the process of performing aggregation processing on at least one historical network management service corresponding to each historical network management function, at least one historical management service parameter corresponding to each historical management function parameter, and at least one historical service command corresponding to each historical network management command to obtain the historical management service parameters and historical service commands of all historical network devices under each historical network management service, if the historical network management services corresponding to different historical network management functions include the same historical network management service, they are aggregated to ensure that the acquired historical network management service is unique.

[0114] Step S402: construct a service Yang model layer included in the network management architecture according to the historical management service parameters of all historical network devices under each historical network management service.

[0115] Specifically, according to the historical management service parameters of all historical network devices under each historical network management service, a service Yang model layer included in the network management architecture can be constructed.

[0116] Among them, the present application does not limit the process of constructing the service Yang model layer included in the network management architecture based on the historical management service parameters of all historical network devices under each historical network management service. Optionally, the process of constructing the service Yang model layer included in the network management architecture based on the historical management service parameters of all historical network devices under each historical network management service may include: based on the historical network management service, performing management service parameter definition processing on the historical management service parameters of all historical network devices under each historical network management service to construct the service Yang model layer included in the network management architecture.

[0117] Specifically, in the process of defining management service parameters for the historical management service parameters of all historical network devices under each historical network management service based on the historical network management service, the historical management service parameters for all historical network devices corresponding to the same historical network management service under each historical network management service can be defined based on the historical network management service. In this process, the homogenized parameters in the historical management service parameters of different historical network devices are aggregated, that is, under the same historical network management service, the homogenized parameters in the management service parameters corresponding to different historical network devices are aggregated. Aggregating the homogenized parameters can improve the simplicity of the defined parameters, thereby improving the efficiency and versatility of the verification at the functional level, and further improving the efficiency and versatility of network management.

[0118] Specifically, after the management service parameter definition processing is performed on the historical management service parameters of all historical network devices under each historical network management service based on the historical network management service, the service Yang model included in the service Yang model layer can be constructed according to the defined management service parameters.

[0119] Among them, in the process of building the service Yang model layer, parameter definition based on historical network management services can improve the accuracy of building the service Yang model layer and further improve the accuracy of network management.

[0120] Optionally, the service Yang model layer maintains YANG files and Json files. The file content contains all the full manufacturer parameter definitions that include this basic service function. During the parameter quantization process, homogeneous parameters will be aggregated to ensure that the parameters are simple and efficient, and no channel is provided for subsequent expansion.

[0121] Step S403: construct the device Yang model layer and command template layer included in the network management architecture according to the historical management service parameters of all historical network devices under each historical network management service and the historical service commands corresponding to the historical management service parameters.

[0122] Specifically, according to the historical management service parameters of all historical network devices under each historical network management service and the historical service commands corresponding to the historical management service parameters, the device Yang model layer and the command template layer included in the network management architecture can be constructed.

[0123] Among them, the present application does not limit the process of constructing the device Yang model layer and the command template layer included in the network management architecture according to the historical management service parameters of all historical network devices under each historical network management service and the historical service commands corresponding to the historical management service parameters. Optionally, the process of constructing the device Yang model layer and the command template layer included in the network management architecture according to the historical management service parameters of all historical network devices under each historical network management service and the historical service commands corresponding to the historical management service parameters may include:

[0124] First, based on all historical network devices and the historical service commands corresponding to the historical network devices, the historical management service parameters of all historical network devices under each historical network management service are defined and processed to construct the device Yang model layer and command template layer included in the network management architecture.

[0125] Specifically, in the process of defining the management service parameters of all historical network devices under each historical network management service based on all historical network devices and the historical service commands corresponding to the historical network devices, the historical management service parameters of all historical network devices under each historical network management service corresponding to the same historical network device and the same historical service command can be defined based on the historical network devices and the historical service commands corresponding to the historical network devices. In this process, the unique parameters and common parameters in the historical network service parameters corresponding to the same historical network device and the same historical service command are defined.

[0126] Specifically, after the management service parameter definition processing is performed on the historical management service parameters of all historical network devices under each historical network management service based on all historical network devices and the historical service commands corresponding to the historical management service parameters, the device Yang model included in the device Yang model layer and the command template included in the command template layer can be constructed according to the completed management service parameters.

[0127] Secondly, based on the correspondence between each historical network device in all historical network devices and each device Yang model in at least one device Yang model included in the device Yang model layer, a real device maintenance table and a virtual device maintenance table corresponding to each historical network management service are constructed.

[0128] Among them, the real device maintenance table indicates the device information of each real device in all historical network devices, and the correspondence between the device information of the real device and the real device version and the real device model; the virtual device maintenance table indicates the real device version and the real device model, and the correspondence between the device information, virtual device version, and virtual device model of the virtual device, and the correspondence between the device information, virtual device version, and virtual device model of the virtual device and the device Yang model.

[0129] The device information of the virtual devices included in the virtual device maintenance table aggregates the device information of all real devices with consistent service commands to control the number of redundant device models, save the operation and maintenance costs of the network management framework, and thus reduce the cost of network management.

[0130] Among them, in the process of constructing the device Yang model layer and the command template layer, parameter definition based on historical network devices can improve the accuracy of the construction of the device Yang model layer and the command template layer, and further improve the accuracy of network management.

[0131] Among them, in the construction process of the Yang model, for example, the construction process of the functional Yang model and the equipment Yang model, the data modeling language Yang is used.

[0132] Specifically, YANG is a data modeling language used to model configuration data, status data, remote procedure calls, and notifications used by network configuration management protocols (such as NETCONF and RESTCONF). YANG describes data structures, data integrity constraints, and data operations to form a YANG model (or YANG file). YANG is also the core of the open programming framework. Both devices and services can be modeled based on YANG: modeling northbound interfaces, modeling southbound interfaces, and driving data flows.

[0133] Among them, the YANG model defines the configuration template of the device function. Compared with the command line, the YANG model has the following advantages: rich definition: supports rich basic data type definition and data attribute definition; machine language: structured definition, supports definition of constraints, and is directly recognized by the machine without human intervention; extensible: supports grouping reuse, refine redefinition and augmentation extension, and supports extended data type definition based on typedef; easy integration: IETF defines multiple standard type definitions and YANG models, which are convenient for reference and citation by various manufacturers.

[0134] Among them, the basic structure of the YANG model file is: YANG file header, external model file introduction, type definition, model configuration and status data definition, model remote call and event notification definition, and definition of other model nodes. Different domestic manufacturers use the same structure topology to facilitate subsequent file parsing, maintain a unified format, and retain the characteristics of YANG's flexible definition of data structure. For example, when an external model file is introduced (import & include), in order to ensure the reliability of external calls, the namespace namespace must be globally unique, the version information revision records version changes, the information organization & contact records the organization and contact to facilitate others to understand the source of the model, and the description information description provides a basic description of the model content. For example, the YANG node definition, officially interpreted as the definition of the type, can come from the basic definition or derived type, and the structure YANG definition itself includes about 20 basic types. Among them, the derived type is a program fragment defined based on typedef or defined based on grouping. Take the new POOL and VS of the load balancing currently under construction as an example: the container is the node container of the YANG structure tree, which can contain multiple containers and leaf nodes, and each node contains a parameter topology of the function.

[0135] Optionally, the device Yang model layer maintains YANG, JinJa, CLI, Json, and Yin files. The file content contains the unique parameters and common parameter definitions under the manufacturer's device model. The Jinja template contains the unique template of this atomic service to ensure that all templates are personalized and strongly associated with the version model.

[0136] Step S404: construct an architecture call layer included in the network management architecture.

[0137] Specifically, the architecture call layer included in the network management architecture can be constructed, wherein the architecture call layer includes: a call page and / or a call interface.

[0138] Among them, the calling page can concisely and intuitively display the overall Yang implementation logic and command generation format. The calling interface can facilitate developers to call the architectural functions in the network management architecture to facilitate the generation of network commands involved in the data development process, so that developers can obtain the corresponding network commands without having to understand relevant network knowledge.

[0139] Optionally, based on an architecture call layer included in the network management architecture,

[0140] The construction process of the network management architecture provided in the embodiment of the present application obtains the historical management service parameters and historical service commands of all historical network devices under each historical network management service, and constructs the service Yang model layer included in the network management architecture according to the historical management service parameters of all historical network devices under each historical network management service, and constructs the device Yang model layer and command template layer included in the network management architecture according to the historical management service parameters of all historical network devices under each historical network management service and the historical service commands corresponding to the historical management service parameters, and constructs the architecture call layer included in the network management architecture, wherein the service Yang model layer, device Yang model layer, and command template layer constructed according to the historical management service parameters and historical service commands of all historical network devices under each historical network management service can improve the comprehensiveness and accuracy of the network management framework, and further improve the accuracy of network management.

[0141] In a possible embodiment, the network management method provided by the present application further includes:

[0142] If the historical network device is updated, the real device maintenance table and the virtual device maintenance table are updated.

[0143] Optionally, if the historical network device is updated, the real device maintenance table can be updated first according to the device information, device version, and device model of the updated historical network device; then, according to the historical service command corresponding to the updated historical network device, the device information, virtual device version, and virtual device model of the virtual device corresponding to the device information, device version, and device model of the updated historical network device can be determined from the virtual device maintenance table; and the virtual device maintenance table can be updated according to the determined device information, virtual device version, and virtual device model of the virtual device.

[0144] If the network management function is updated, the service Yang model layer, device Yang model layer, and command template layer included in the network management architecture are updated.

[0145] Specifically, if the network management function is updated, the service Yang model layer, device Yang model layer, and command template layer included in the network management architecture can be updated according to the process of constructing the service Yang model layer, device Yang model layer, and command template layer described in step S402 and step S403.

[0146] Optionally, the real device maintenance table and the virtual device maintenance table may be updated at a preset time period based on updated historical network devices.

[0147] Optionally, the network management architecture may be updated at preset time periods based on updated network management functions.

[0148] Among them, if the historical network equipment is updated, only the real equipment maintenance table and the virtual equipment maintenance table need to be updated, which improves the efficiency of the update process and further improves the efficiency of network management. Among them, if the network management function is updated, the network management architecture can be updated by updating the service Yang model layer, the device Yang model layer, and the command template layer included in the network management architecture, thereby improving the accuracy of network management. Among them, updating the network management framework according to the update of the network management equipment and the update of the network management function can improve the comprehensiveness of the network management framework and further improve the comprehensiveness of network management.

[0149] Figure 5 A schematic diagram of the structure of the network management device provided by this application, such as Figure 5 As shown, the network management device 50 provided in this embodiment includes:

[0150] The acquisition module 501 is used to acquire a network management request; wherein the network management request indicates a network management function, target device information, a command issuing method for the target device, and management function parameters;

[0151] The processing module 502 is used to generate and send a network management command corresponding to the network management request to the target device based on a pre-built network management framework, according to the network management function indicated by the network management request, the target device information, the command issuance method of the target device, and the management function parameters; wherein the pre-built network management framework indicates one or more of the following processing methods: verifying the parameters at the function level, verifying the parameters at the device level, and automatically generating a network management command.

[0152] In one possible implementation, the processing module 502 includes a generation unit for generating at least one service command based on a pre-built network management framework, according to the network management function indicated by the network management request, target device information, command issuance method of the target device, and management function parameters; wherein the network management function includes at least one network management service; the service command is a command corresponding to the network management service; and the processing unit is used to generate and send a network management command corresponding to the network management request to the target device based on at least one service command.

[0153] In one possible implementation, the processing unit is specifically used to determine the order of each network management service in at least one network management service included in the network management function, and integrate at least one service command according to the determined order, and generate and send a network management command corresponding to the network management request to the target device.

[0154] In one possible implementation, the generation unit is specifically used to perform service division processing on the network management function indicated by the network management request to obtain at least one network management service; and perform service division processing on the management function parameters indicated by the network management request to obtain management service parameters corresponding to each network management service; according to the order of each network management service in at least one network management service included in the network management function, repeat the process of generating service commands corresponding to the network management service based on a pre-built network management framework, according to the network management service, target device information, the command issuance method of the target device, and the management service parameters corresponding to the network management service, until a service command corresponding to each network management service in at least one network management service is obtained.

[0155] In a possible implementation, the pre-built network management architecture includes: an architecture call layer, a service Yang model layer, a device Yang model layer, and a command template layer; the architecture call layer is used to call the service Yang model layer, the device Yang model layer, and the command template layer; the service Yang model layer includes at least one service Yang model for verifying parameters at a functional level; the device Yang model layer includes at least one device Yang model for verifying parameters at a device level; the command template layer includes at least one command template for generating management commands; the generation unit is further specifically used to call the service Yang model layer, the device Yang model layer, and the command template layer through the architecture call layer; determine the service Yang model corresponding to the network management service from the service Yang model layer according to the network management service; and generate the management service parameters corresponding to the network management service according to the determined service Yang model. The function level verification is performed on the number; if the management service parameters pass the verification at the function level, then the device Yang model corresponding to the network management service is determined from the device Yang model layer according to the determined service Yang model and the target device information; and according to the determined device Yang model, the management service parameters corresponding to the network management service are verified at the device level; if the management service parameters pass the verification at the device level, then the command template corresponding to the network management service is determined from the command template layer according to the determined device Yang model and the command issuance method of the target device; and according to the determined command template and the management service parameters, a service command corresponding to the network management service is generated; wherein, the command issuance method of the target device is a issuance method based on a command line or a issuance method based on an extensible markup language; the command templates included in the command template layer include command templates based on a command line issuance method and command templates based on an extensible markup language issuance method.

[0156] In a possible implementation, the generating unit is further specifically configured to generate and present a prompt message indicating that the verification has failed if the management service parameter fails to pass the verification at the function level, or if the management service parameter fails to pass the verification at the device level.

[0157] In one possible implementation, the generation unit is further specifically used to determine the corresponding pre-built real device maintenance table and pre-built virtual device maintenance table according to the determined service Yang model; determine the target device version and target device model corresponding to the target device information from the pre-built real device maintenance table according to the target device information; determine the virtual device information, and the virtual device version and virtual device model corresponding to the virtual device information from the pre-built virtual device maintenance table according to the target device version and the target device model; determine the device Yang model corresponding to the network management service from the device Yang model layer according to the determined virtual device information, and the virtual device version and virtual device model corresponding to the virtual device information.

[0158] In a possible implementation, the processing module 502 is also used to obtain historical management service parameters and historical service commands of all historical network devices under each historical network management service; construct a service Yang model layer included in the network management architecture based on the historical management service parameters of all historical network devices under each historical network management service; construct a device Yang model layer and a command template layer included in the network management architecture based on the historical management service parameters of all historical network devices under each historical network management service and the historical service commands corresponding to the historical management service parameters; construct an architecture call layer included in the network management architecture; wherein the architecture call layer includes: a call page and / or a call interface.

[0159] In a possible implementation, the processing module 502 is further specifically used to perform management service parameter definition processing on the historical management service parameters of all historical network devices under each historical network management service based on the historical network management service, so as to construct the service Yang model layer included in the network management architecture.

[0160] In a possible implementation, the processing module 502 is further specifically used to perform management service parameter definition processing on the historical management service parameters of all historical network devices under each historical network management service based on all historical network devices and the historical service commands corresponding to the historical network devices, so as to construct the device Yang model layer and the command template layer included in the network management architecture; based on the correspondence between each historical network device in all historical network devices and each device Yang model in at least one device Yang model included in the device Yang model layer, construct a real device maintenance table and a virtual device maintenance table corresponding to each historical network management service; wherein the real device maintenance table indicates the device information of each real device in all historical network devices, and the correspondence between the device information of the real device and the real device version and the real device model; the virtual device maintenance table indicates the correspondence between the real device version and the real device model, and the device information, virtual device version, and virtual device model of the virtual device, and the correspondence between the device information, virtual device version, and virtual device model of the virtual device and the device Yang model.

[0161] In a possible implementation, the processing module 502 is further specifically used to update the real device maintenance table and the virtual device maintenance table if the historical network device is updated; if the network management function is updated, the service Yang model layer, the device Yang model layer, and the command template layer included in the network management architecture are updated.

[0162] The network management device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.

[0163] Figure 6 This is a schematic diagram of the structure of the electronic device provided in this application. Figure 6 As shown, the electronic device 60 provided in this embodiment includes: at least one processor 601 and a memory 602. Optionally, the device 60 also includes a communication component 603. The processor 601, the memory 602 and the communication component 603 are connected via a bus 604.

[0164] In a specific implementation process, at least one processor 601 executes the computer execution instructions stored in the memory 602, so that at least one processor 601 executes the above method.

[0165] The specific implementation process of the processor 601 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0166] In the above embodiments, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the invention can be directly implemented as a hardware processor, or can be implemented by a combination of hardware and software modules in the processor.

[0167] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.

[0168] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

[0169] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0170] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0171] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0172] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0173] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0174] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0175] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0176] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0177] Those skilled in the art will appreciate that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.

[0178] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A network management method, characterized in that: include: Obtaining a network management request; wherein the network management request indicates a network management function, target device information, a command issuing method for the target device, and management function parameters; Based on the pre-built network management framework, according to the network management function indicated by the network management request, the target device information, the command issuing method of the target device, and the management function parameters, a network management command corresponding to the network management request is generated and sent to the target device; The pre-built network management framework indicates one or more of the following processing methods: verifying parameters at a function level, verifying parameters at a device level, and automatically generating network management commands.

2. The method according to claim 1, characterized in that Based on the pre-built network management framework, according to the network management function indicated by the network management request, the target device information, the command issuing method of the target device, and the management function parameters, a network management command corresponding to the network management request is generated and sent to the target device, including: Based on the pre-built network management framework, at least one service command is generated according to the network management function indicated by the network management request, the target device information, the command issuing method of the target device, and the management function parameters; wherein the network management function includes at least one network management service; and the service command is a command corresponding to the network management service; According to the at least one service command, a network management command corresponding to the network management request is generated and sent to the target device.

3. The method according to claim 2, characterized in that Generating, according to the at least one service command, and sending to the target device a network management command corresponding to the network management request, comprising: Determine the order of each network management service in at least one network management service included in the network management function, and integrate the at least one service command according to the determined order, generate and send a network management command corresponding to the network management request to the target device.

4. The method according to claim 2, characterized in that: Based on the pre-built network management framework, at least one service command is generated according to the network management function indicated by the network management request, the target device information, the command issuing method of the target device, and the management function parameters, including: Performing service division processing on the network management function indicated by the network management request to obtain at least one network management service; and performing service division processing on the management function parameters indicated by the network management request to obtain management service parameters corresponding to each network management service; According to the order of each network management service in at least one network management service included in the network management function, repeat the process of generating service commands corresponding to the network management services based on the pre-built network management framework according to the network management services, target device information, the command issuance method of the target device, and management service parameters corresponding to the network management services, until the service commands corresponding to each network management service in the at least one network management service are obtained.

5. The method according to claim 4, characterized in that The pre-built network management architecture includes: an architecture call layer, a service Yang model layer, a device Yang model layer, and a command template layer; the architecture call layer is used to call the service Yang model layer, the device Yang model layer, and the command template layer; the service Yang model layer includes at least one service Yang model for verifying parameters at a functional level; the device Yang model layer includes at least one device Yang model for verifying parameters at a device level; the command template layer includes at least one command template for generating management commands; Based on the pre-built network management framework, according to the network management service, target device information, the command issuing method of the target device, and the management service parameters corresponding to the network management service, a service command corresponding to the network management service is generated, including: Calling the service Yang model layer, the device Yang model layer, and the command template layer through the architecture calling layer; According to the network management service, determining a service Yang model corresponding to the network management service from the service Yang model layer; and performing a functional level verification on management service parameters corresponding to the network management service according to the determined service Yang model; If the management service parameters pass the verification at the functional level, then according to the determined service Yang model and the target device information, the device Yang model corresponding to the network management service is determined from the device Yang model layer; and according to the determined device Yang model, the management service parameters corresponding to the network management service are verified at the device level; If the management service parameters pass the verification at the device level, then according to the determined device Yang model and the command issuing method of the target device, determine the command template corresponding to the network management service from the command template layer; and according to the determined command template and the management service parameters, generate the service command corresponding to the network management service; Among them, the command issuing method of the target device is a issuing method based on the command line or a issuing method based on the extensible markup language; the command templates included in the command template layer include command templates based on the command line and command templates based on the extensible markup language.

6. The method according to claim 5, characterized in that The method further comprises: If the management service parameter fails to pass the verification at the function level, or if the management service parameter fails to pass the verification at the device level, a prompt message indicating that the verification has failed is generated and presented.

7. The method according to claim 5, characterized in that According to the determined service Yang model and the target device information, determining the device Yang model corresponding to the network management service from the device Yang model layer includes: According to the determined service Yang model, determine the corresponding pre-built real device maintenance table and pre-built virtual device maintenance table; According to the target device information, determining the target device version and the target device model corresponding to the target device information from the pre-built real device maintenance table; According to the target device version and the target device model, determining virtual device information and the virtual device version and virtual device model corresponding to the virtual device information from the pre-built virtual device maintenance table; According to the determined virtual device information, and the virtual device version and virtual device model corresponding to the virtual device information, the device Yang model corresponding to the network management service is determined from the device Yang model layer.

8. The method according to any one of claims 1 to 7, characterized in that: The construction process of the network management architecture includes: Obtain the historical management service parameters and historical service commands of all historical network devices under each historical network management service; Constructing the service Yang model layer included in the network management architecture according to the historical management service parameters of all historical network devices under each historical network management service; Constructing the device Yang model layer and the command template layer included in the network management architecture according to the historical management service parameters of all historical network devices under each historical network management service and the historical service commands corresponding to the historical management service parameters; Construct the architecture call layer included in the network management architecture; wherein the architecture call layer includes: a call page and / or a call interface.

9. The method according to claim 8, characterized in that According to the historical management service parameters of all the historical network devices under each historical network management service, the service Yang model layer included in the network management architecture is constructed, including: Based on the historical network management service, management service parameter definition processing is performed on the historical management service parameters of all historical network devices under each historical network management service to construct the service Yang model layer included in the network management architecture.

10. The method according to claim 8, characterized in that According to the historical management service parameters of all historical network devices under each historical network management service and the historical service commands corresponding to the historical management service parameters, the device Yang model layer and the command template layer included in the network management architecture are constructed, including: Based on all the historical network devices and the historical service commands corresponding to the historical network devices, the historical management service parameters of all the historical network devices under each historical network management service are processed for management service parameter definition, so as to construct the device Yang model layer and the command template layer included in the network management architecture; Based on the correspondence between each historical network device in all the historical network devices and each device Yang model in at least one device Yang model included in the device Yang model layer, construct a real device maintenance table and a virtual device maintenance table corresponding to each historical network management service; Among them, the real device maintenance table indicates the device information of each real device in all the historical network devices, and the correspondence between the device information of the real device and the real device version and the real device model; the virtual device maintenance table indicates the correspondence between the real device version and the real device model, and the device information, virtual device version, and virtual device model of the virtual device, and the correspondence between the device information, virtual device version, and virtual device model of the virtual device and the device Yang model.

11. The method according to claim 10, characterized in that The method further comprises: If the historical network device is updated, the real device maintenance table and the virtual device maintenance table are updated; If the network management function is updated, the service Yang model layer, the device Yang model layer, and the command template layer included in the network management architecture are updated.

12. A network management device, characterized in that: include: An acquisition module, used to acquire a network management request; wherein the network management request indicates a network management function, target device information, a command issuing method for the target device, and management function parameters; A processing module is used to generate and send a network management command corresponding to the network management request to the target device based on a pre-built network management framework, according to the network management function indicated by the network management request, target device information, command issuance method of the target device, and management function parameters; wherein the pre-built network management framework indicates one or more of the following processing methods: function-level verification of parameters, device-level verification of parameters, and automatic generation of network management commands.

13. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 11 when executed by a processor.

15. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 11 when being executed by a processor.