Power distribution network equipment data modeling method and device, electronic equipment and storage medium
By obtaining the source information of distribution network equipment, obtaining data based on the network management protocol and establishing a parameterized model, the problems of low efficiency and high error rate of equipment data acquisition and modeling are solved, and unified management and efficient management of different equipment are achieved. deal with.
Patent Information
- Application Number
- CN202411112423.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-12-06
AI Technical Summary
In the prior art, the collection and modeling processing of distribution network equipment data is inefficient, the error rate is high, and the technical capabilities of technicians are required to be high. Moreover, due to the different CLI instructions and configuration logic of equipment of different manufacturers, unified management is achieved. difficulty.
By obtaining the source information of the device, sending data acquisition requests based on the network management protocol, obtaining device data information, and inputting it into the configuration audit model, extracting data feature sets, establishing a parameterized model, and avoiding manual data processing.
It improves data processing efficiency, reduces error rate, reduces the technical capability requirements for technicians, and realizes unified management of different equipment.
Smart Images

Figure CN119089657A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power communication technology, and in particular to a distribution network equipment data modeling method, device, electronic device and storage medium. Background Art
[0002] As the number of devices in the distribution network increases, the types of devices in the distribution network also increase. When managing the device data generated by many devices, it is necessary to collect and model the data generated by the devices to facilitate the subsequent use of the device management. However, since the devices in the distribution network come from different manufacturers, and the command line interface (CLI) instructions and configuration logic of the devices of different manufacturers are also different, it is impossible to uniformly collect and process the data of the devices.
[0003] Currently, when collecting and modeling the data of devices, technicians need to manually collect and model the data information of each device. Therefore, technicians need to understand and master a variety of CLI commands.
[0004] However, during the above processing, technicians manually collect and model the data information of each device, which is inefficient, has a high error rate, and also requires high technical capabilities of the technicians. Summary of the invention
[0005] The present application provides a distribution network equipment data modeling method, device, electronic device and storage medium to solve the problem in the prior art that technicians manually collect and model the data information of each device, which is inefficient, has a high error rate, and requires high technical capabilities of the technicians.
[0006] In a first aspect, the present application provides a method for data modeling of distribution network equipment, the method comprising:
[0007] Acquire source information of a device in a distribution network; wherein the source information includes at least one network management protocol corresponding to the device;
[0008] Sending a data acquisition request to the device based on any one of the network management protocols corresponding to the device, and acquiring device data information returned by the device;
[0009] Inputting the device data information into a configuration audit model to obtain a data feature set output by the configuration audit model; wherein the configuration audit model is used to determine a data feature set in the device data information, and the data feature set includes a plurality of data type feature sets;
[0010] For each of the data type feature sets in the data feature sets, a parameterized model corresponding to the data type is established according to feature information of the data type corresponding to the data type feature set.
[0011] In a second aspect, the present application provides a distribution network equipment data modeling device, comprising:
[0012] A source information acquisition module, used to acquire source information of a device in the distribution network; wherein the source information includes at least one network management protocol corresponding to the device;
[0013] A data information acquisition module, used to send a data acquisition request to the device based on any one of the network management protocols corresponding to the device, and acquire the device data information returned by the device;
[0014] A configuration audit module, used for inputting the device data information into a configuration audit model to obtain a data feature set output by the configuration audit model; wherein the configuration audit model is used to determine a data feature set in the device data information, and the data feature set includes a plurality of data type feature sets;
[0015] The model building module is used to build a parameterized model corresponding to each data type feature set in the data feature set according to feature information of the data type corresponding to the data type feature set.
[0016] In a third aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the distribution network equipment data modeling method as described in any embodiment of the present application is implemented.
[0017] In a fourth aspect, the present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the distribution network equipment data modeling method as described in any embodiment of the present application is implemented.
[0018] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the distribution network equipment data modeling method as described in any embodiment of the present application.
[0019] The scheme of the present application obtains the source information of the equipment in the distribution network; wherein the source information includes at least one network management protocol corresponding to the equipment; based on any one of the network management protocols corresponding to the equipment, a data acquisition request is sent to the equipment, and the equipment data information returned by the equipment is obtained; the equipment data information is input into the configuration audit model to obtain the data feature set output by the configuration audit model; wherein the configuration audit model is used to determine the data feature set in the equipment data information, and the data feature set includes multiple data type feature sets; for each data type feature set in the data feature set, a parameterized model corresponding to the data type is established according to the feature information of the data type corresponding to the data type feature set. That is, the scheme of the present application, on the one hand, sends a data acquisition request to the equipment through the network management protocol corresponding to the equipment, obtains the equipment data information returned by the equipment, avoids the technicians from manually obtaining the equipment data information of multiple equipment, and reduces the requirements for the technical capabilities of the technicians. On the other hand, a parameterized model corresponding to the data type is established according to the feature information of the data type corresponding to the data type feature set, avoids the situation where the technicians manually model the data information, improves the data processing efficiency, reduces the data processing error rate, and further reduces the requirements for the technical capabilities of the technicians. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 It is a flow chart of the distribution network equipment data modeling method provided by this application;
[0022] Figure 2 It is another flow chart of the distribution network equipment data modeling method provided by the present application;
[0023] Figure 3 It is a structural schematic diagram of the distribution network equipment data modeling device provided by the present application;
[0024] Figure 4 It is a structural schematic diagram of the electronic device provided by this application. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] Figure 1 This is a flow chart of the distribution network equipment data modeling method provided by the present application. The method can be executed by the distribution network equipment data modeling device provided by the present application, and the device can be implemented in software and / or hardware. In a specific embodiment, the device can be integrated in an electronic device. For example, the device can be integrated in a computer. The following embodiments will be described by taking the device integrated in an electronic device as an example. Reference Figure 1 , the method may specifically include the following steps:
[0028] Step 101, obtaining source information of equipment in the distribution network.
[0029] The source information includes at least one network management protocol corresponding to the device.
[0030] Specifically, the equipment in the distribution network is the equipment in the equipment network that distributes electricity, for example, the equipment in the distribution network may be a substation equipment, a feeder equipment or a distribution transformer, etc. The source information of the equipment in the distribution network is information determined according to the source of the equipment, for example, the source of the equipment may be the factory of the equipment, etc. The network management protocol is a communication method for the interaction between the equipment and the network. One device may correspond to multiple network management protocols, that is, it is possible to achieve network interaction through multiple network management protocols. The source information obtained according to the source of the equipment includes at least one network management protocol corresponding to the equipment. For example, each factory corresponds to at least one network management protocol, and the source information determined according to the factory of the equipment includes at least one network management protocol corresponding to the factory, so the source information includes at least one network management protocol corresponding to the equipment. The source information of the equipment in the distribution network may be obtained by the electronic device executing this embodiment from the distribution network management device, or the source information of the equipment may be sent to the electronic device executing this embodiment when the equipment is added to the distribution network, and this application does not limit this.
[0031] Step 102: Send a data acquisition request to the device based on any network management protocol corresponding to the device, and acquire the device data information returned by the device.
[0032] Specifically, any network management protocol corresponding to the equipment in the distribution network is a communication method that can realize network interaction with the equipment. The data acquisition request is request information for obtaining equipment data. For example, the data acquisition request can be a request message. Equipment data information is information that can describe the equipment. For example, the equipment data information can include information such as the equipment model and the version of the components of the equipment. Sending a data acquisition request to the device based on any network management protocol corresponding to the device, that is, sending a data acquisition request to the device based on the network management protocol that can establish network interaction with the device, and obtaining the equipment data information returned by the device according to the data acquisition request. Sending a data acquisition request to the device can be done by determining the Internet Protocol Address (IP) address of the device, and sending a data acquisition request to the device corresponding to the IP address of the device determined based on any network management protocol corresponding to the device, and obtaining the equipment data information returned by the device.
[0033] Exemplarily, the electronic device executing this embodiment uses the Nmap network scanning tool to scan the existing network segment information, thereby determining the network segment range of the distribution network, and scanning the network segment in the network segment range of the distribution network to obtain the IP address of the device in the distribution network. The electronic device executing this embodiment can use Nmap to execute the nmap-sn command of Nmap to obtain the IP address of the device. Based on any network management protocol corresponding to the device, a data acquisition request is sent to the device corresponding to the IP address of the device, and the device data information returned by the device is obtained.
[0034] Optionally, the at least one network management protocol corresponding to the device includes at least one of the following: Simple Network Management Protocol, Network Configuration Protocol and Secure Shell Protocol. Sending a data acquisition request to the device based on any one of the network management protocols corresponding to the device can be implemented through steps 21 to 22.
[0035] Step 21: Determine a priority network management protocol among at least one network management protocol corresponding to the device according to the priority of the network management protocol.
[0036] Among them, the priority of the Simple Network Management Protocol is higher than the priority of the Network Configuration Protocol, and the priority of the Network Configuration Protocol is higher than the priority of the Secure Shell Protocol.
[0037] Specifically, at least one network management protocol corresponding to the equipment in the distribution network includes any one of the following: Simple Network Management Protocol (SNMP), Network Configuration Protocol (NETCONF) and Secure Shell (SSH), and the equipment in the distribution network can achieve network interaction through at least one of the above three network management protocols. The network management protocols corresponding to the equipment in the distribution network may also include any two of them, or all three. When the network management protocols corresponding to the equipment are two or more of the above, based on the priority of SNMP being greater than the priority of NETCONF, and the priority of NETCONF being greater than the priority of SSH, the network management protocol with the highest priority is determined as the priority network management protocol in the at least one network management protocol corresponding to the equipment.
[0038] Step 22: Send a data acquisition request to the device based on the priority network management protocol.
[0039] Specifically, after the priority network management protocol is determined, a data acquisition request is sent to the device based on the priority network management protocol.
[0040] Exemplarily, SNMP is determined as the preferred network management protocol, and the device is accessed through SNMP, such as setting parameters such as the SNMP community string, and for example, setting parameters for reading the community string and writing the community string. A GET request of the SNMP with the set parameters is sent to the device IP address, and the device data information returned by the device can be obtained.
[0041] Step 103: input the device data information into the configuration audit model to obtain a data feature set output by the configuration audit model.
[0042] The configuration audit model is used to determine a data feature set in the device data information, and the data feature set includes multiple data type feature sets.
[0043] Specifically, the configuration audit model is a pre-trained machine learning model that can determine a data feature set in the device data information. The training process can be to train the machine learning model through historical device data information and historical data feature sets until the training cutoff condition is reached, such as the number of training times meets the preset number of times and the loss function meets the fitting condition, and the trained machine learning model is used as the configuration audit model. The data type is the data type included in the device data information, and each type corresponds to multiple data. For example, the data type includes basic data, security data, routing data, and management data. The basic data includes information such as the device name, device identification, and device subnet mask. The security data includes information such as firewall rules allowed by the device and the access control list of the device. The routing data includes information such as the neighbor relationship and routing strategy of the device based on the internal gateway protocol and the external gateway protocol. The management data includes information such as the management of the device and the login of the device. The configuration audit model can extract features from the device data information to obtain a data feature set of multiple data type feature sets. That is, the device data information is input into the configuration audit model, and a data feature set including multiple data types output by the configuration audit model can be obtained.
[0044] Exemplarily, the configuration audit model may extract basic data from device data information through keyword matching methods and regular expression methods, the configuration audit model may extract security data from device data information through keyword matching methods and syntax parsing-based methods, the configuration audit model may extract routing data from device data information through a network protocol-based extraction method, and the configuration audit model may extract management data from device data information through keyword matching methods.
[0045] Optionally, the configuration audit model includes a collection unit and a fusion unit.
[0046] The collection unit is used to determine the multiple device data information corresponding to each network management protocol according to the multiple device data information.
[0047] The fusion unit is used to fuse multiple device data information corresponding to each network management protocol to obtain a data feature set.
[0048] The data feature set includes multiple device data information corresponding to the full network management protocol.
[0049] Specifically, the configuration audit model includes a collection unit and a fusion unit, and the collection unit is used to determine multiple device data information corresponding to each network management protocol based on the data information of multiple devices in the distribution network. For example, if device A and device B are device data information obtained based on SNMP, and device C is device data information obtained based on NETCONF, then the device data information corresponding to SNMP is the device data information of device A and the device data information of device B, and the device data information corresponding to NETCONF is the device data information of device C.
[0050] The fusion unit can process the multiple device data information corresponding to each network management protocol collected by the collection unit, so that the processed data can be integrated with each other. For example, processing the multiple device data information corresponding to each network management protocol can be data cleaning and format conversion of the multiple data information, so that the data is in a unified format, so that it can be integrated. Then, the multiple device data information is integrated to obtain a data feature set.
[0051] Optionally, the multiple data type feature sets include: a feature set of device basic information, a feature set of device security information, a feature set of device routing information, and a feature set of device management information.
[0052] The collection unit is used to determine, from the multiple device data information, multiple device basic information, multiple device security information, multiple device routing information and multiple device management information corresponding to each network management protocol.
[0053] Specifically, the collection unit determines, among the multiple device data information, multiple device basic information, multiple device security information, multiple device routing information, and multiple device management information for each of the multiple device data information corresponding to the network management protocol. Thus, in the data feature set including multiple data types output by the configuration audit model, the multiple data type feature sets include a feature set of device basic information, a feature set of device security information, a feature set of device routing information, and a feature set of device management information.
[0054] Step 104 , for each data type feature set in the data feature set, a parameterized model corresponding to the data type is established according to feature information of the data type corresponding to the data type feature set.
[0055] Specifically, for each data type feature set in the data feature set, the feature information of the data type corresponding to the data type feature set is parameterized to describe, so as to establish a parameterized model corresponding to the data type, which can describe the full amount of feature information under the data type.
[0056] Optionally, for each data type feature set in the data feature set, establishing a parameterized model corresponding to the data type according to feature information of the data type corresponding to the data type feature set can be implemented through steps 41 to 44.
[0057] Step 41 , for the feature set of the device basic information, the features of all the device basic information in the feature set of the device basic information are fitted in a parameterized form in a preset geometric voxel to obtain a basic information parameterized model.
[0058] Specifically, the preset geometric voxel is a basic unit of multiple preset information that can describe features. For example, the geometric voxel of the basic information can include information such as device name, device model, and device component version. The multiple information is compatible through the compatibility conditions between the basic information. For the feature set of the device basic information, the features of the full amount of device basic information in the feature set of the device basic information are parametrically described, and fitted in the preset geometric voxel in a parametric form, so as to establish a basic information parametric model, which can describe the full amount of device basic information.
[0059] Step 42 , for the feature set of the device safety information, the features of all the device safety information in the feature set of the device safety information are fitted in a parameterized form in a preset geometric voxel to obtain a parameterized model of the safety information.
[0060] For example, the geometric voxels of device security information may include information such as the rules for allowing or denying data packets to pass through the firewall, the transmission and processing methods of data packets in the network, and the encryption algorithm and key management method used in the data transmission process. The various information are compatible through the priority of firewall rules and the matching conditions of access control lists. Specifically, for the feature set of device security information, the features of the full amount of device security information in the feature set of device security information are parameterized and fitted in a parameterized form in a preset geometric voxel, thereby establishing a security information parameterized model, which can describe the full amount of device security information.
[0061] Step 43 , for the feature set of the device routing information, the features of all the device routing information in the feature set of the device routing information are fitted in a parameterized form in a preset geometric voxel to obtain a parameterized model of the routing information.
[0062] For example, the geometric voxels of the device routing information may include information such as routing table items, routing protocols, and routing next-hop information, and the various information are compatible through mutually exclusive constraints between routing protocols and reachability constraints of next-hop information. Specifically, for the feature set of the device routing information, the features of the full amount of device routing information in the feature set of the device routing information are parameterized and fitted in a parameterized form in a preset geometric voxel, thereby establishing a routing information parameterized model, which can describe the full amount of device routing information.
[0063] Step 44 , for the feature set of the device management information, the features of the entire device management information in the feature set of the device management information are fitted in a parameterized form in a preset geometric voxel to obtain a management information parameterized model.
[0064] For example, the geometric voxels of the device management information may include information such as management protocols, user permissions, and device management information, and the various information are compatible through the authorization constraints of user permissions and the confidentiality constraints of the device management information. Specifically, for the feature set of the device management information, the features of the full amount of device management information in the feature set of the device management information are parameterized and fitted in a parameterized form in the preset geometric voxels, thereby establishing a management information parameterized model, which can describe the full amount of device management information.
[0065] The scheme of the present application obtains the source information of the equipment in the distribution network; wherein the source information includes at least one network management protocol corresponding to the equipment; based on any one of the network management protocols corresponding to the equipment, a data acquisition request is sent to the equipment, and the equipment data information returned by the equipment is obtained; the equipment data information is input into the configuration audit model to obtain the data feature set output by the configuration audit model; wherein the configuration audit model is used to determine the data feature set in the equipment data information, and the data feature set includes multiple data type feature sets; for each data type feature set in the data feature set, a parameterized model corresponding to the data type is established according to the feature information of the data type corresponding to the data type feature set. That is, the scheme of the present application, on the one hand, sends a data acquisition request to the equipment through the network management protocol corresponding to the equipment, obtains the equipment data information returned by the equipment, avoids the technicians from manually obtaining the equipment data information of multiple equipment, and reduces the requirements for the technical capabilities of the technicians. On the other hand, a parameterized model corresponding to the data type is established according to the feature information of the data type corresponding to the data type feature set, avoids the situation where the technicians manually model the data information, improves the data processing efficiency, reduces the data processing error rate, and further reduces the requirements for the technical capabilities of the technicians.
[0066] Figure 2 This is another flow chart of the distribution network equipment data modeling method provided by the present application. Figure 1 Based on the illustrated embodiment and various optional implementation schemes, the steps before inputting device data information into the configuration audit model are described in detail. Figure 2 As shown, the method may include the following steps:
[0067] Step 201, obtaining source information of equipment in the distribution network.
[0068] Step 202: Send a data acquisition request to the device based on any network management protocol corresponding to the device, and acquire the device data information returned by the device.
[0069] Step 203, based on the device data returned by the device and the multiple command line interface instruction information corresponding to the device in the device data information, establish graph data with the device as the first node, the source information corresponding to the device as the second node, and the source information and the corresponding relationship between multiple devices as the edge relationship.
[0070] The graph data also includes information corresponding to the first node, and the information corresponding to the first node includes multiple command line interface instruction information corresponding to the device.
[0071] Specifically, graph data is data composed of nodes and edges, and the nodes and edges in the graph are correlated. According to the device data returned by the device and the multiple command line interface instruction information corresponding to the device in the device data information, the device is taken as the first node, the source information corresponding to the device is taken as the second node, and the corresponding relationship between the two is determined as an edge relationship to establish graph data. The information corresponding to the first node also includes multiple command line interface instruction information corresponding to the device. The multiple command line interface instruction information corresponding to the device can be input by the user or obtained from the source information of the device.
[0072] Step 204, using the source information corresponding to each device in the graph data and multiple command line interface instruction information as device graph data information.
[0073] Specifically, after the graph data is established, the graph data includes multiple devices, source information corresponding to each device, and multiple command line interface instruction information corresponding to each device, and the source information corresponding to each device in the graph data and multiple command line interface instruction information are used as device graph data information. When a new device is added to the distribution network, the graph data is also updated accordingly, adding the node of the new device and the node of the source information of the new device, and the information corresponding to the node of the new device includes multiple command line interface instruction information corresponding to the new device.
[0074] Exemplarily, a machine learning model can also be pre-trained so that the trained machine learning model can update the graph data according to the information of the new equipment in the distribution network, so that the updated graph data includes the node of the new equipment and the node of the source information of the new equipment, and the information corresponding to the node of the new equipment includes multiple command line interface instruction information corresponding to the new equipment.
[0075] Optionally, after taking the source information corresponding to each device in the graph data and the multiple command line interface instruction information as the device graph data information, steps 2041 to 2042 may also be executed.
[0076] Step 2041, obtaining user feedback information.
[0077] The user feedback information includes the accuracy of multiple command line interface instruction information corresponding to each device in the graph data.
[0078] Specifically, the user feedback information may be a statistical graph, table or other statistical data of user feedback, which can reflect the accuracy of multiple command line interface instruction information. The user feedback information includes the accuracy of multiple command line interface instruction information corresponding to each device in the graph data. For example, the accuracy of multiple command line interface instruction information can be reflected by whether each command line interface instruction information is accurate. The user feedback information may be information sent by the user through the user device to the electronic device executing this embodiment, or information returned by the user through the user device after the electronic device executing this embodiment sends a feedback acquisition request to the user device. This solution does not limit this.
[0079] Step 2042, adjusting the multiple command line interface instruction information corresponding to each device in the graph data according to the user feedback information.
[0080] Specifically, according to the accuracy of the multiple command line interface instruction information corresponding to each device in the user feedback information, the multiple command line interface instruction information corresponding to each device in the graph data is adjusted to improve the accuracy of the multiple command line interface instruction information corresponding to each device. It is also possible to add, delete or modify the multiple command line interface instruction information corresponding to each device according to the specific content of the user feedback information. For example, if the user feedback information includes the command line interface instruction information corresponding to a certain device and instruction A, instruction A is added to the multiple command line interface instruction information corresponding to the device.
[0081] Exemplarily, the user feedback information is that the command line interface instruction information C corresponding to device A cannot be used for device A and the command line interface instruction information C is inaccurate. Then, the multiple command line interface instruction information corresponding to device A is adjusted, and the command line interface instruction information C is deleted.
[0082] Exemplarily, a machine learning model can also be pre-trained to adjust multiple command line interface instruction information corresponding to the device according to user feedback information, and the trained machine learning model can be used as an instruction information adjustment model. Adjusting multiple command line interface instruction information corresponding to each device in the graph data according to user feedback information can be achieved through an instruction information adjustment model, and the instruction information adjustment model is used to adjust multiple command line interface instruction information corresponding to the device according to user feedback information. After the instruction information adjustment model adjusts multiple command line interface instruction information, the instruction information adjustment model can also be evaluated based on new user feedback information, such as determining the accuracy and coverage of the instruction information adjustment model, and then optimizing the instruction information adjustment model based on the evaluation results, thereby improving the accuracy of the command line interface instruction information adjustment.
[0083] Step 205: input the device map data information into the configuration audit model to obtain a data feature set output by the configuration audit model.
[0084] Specifically, the configuration audit model can extract features from the device data information to obtain a data feature set of multiple data type feature sets. Therefore, after the device graph data information is input into the configuration audit model, a data feature set including multiple data types output by the configuration audit model can be obtained.
[0085] Step 206: for each data type feature set in the data feature set, a parameterized model corresponding to the data type is established according to feature information of the data type corresponding to the data type feature set.
[0086] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages do not necessarily have to be executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages does not have to be performed sequentially, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0087] The solution of this application processes device data information into graph data information, and then inputs it into the configuration audit model to obtain a data feature set. Graph data information has higher scalability and is suitable for adjusting command line interface instruction information, thereby enhancing data accuracy and further improving data processing efficiency. In addition, graph data information has higher visualization capabilities, which makes it easier for users to understand the correspondence between devices, device source information, and multiple command line interface instruction information.
[0088] Figure 3 Schematic diagram of a distribution network equipment data modeling device provided in this application, which is suitable for executing the distribution network equipment data modeling method provided in this application. Figure 3 As shown, the device may specifically include:
[0089] The source information acquisition module 301 is used to acquire the source information of a device in the distribution network; wherein the source information includes at least one network management protocol corresponding to the device.
[0090] The data information acquisition module 302 is used to send a data acquisition request to the device based on any one of the network management protocols corresponding to the device, and acquire the device data information returned by the device.
[0091] The configuration audit module 303 is used to input the device data information into the configuration audit model to obtain a data feature set output by the configuration audit model; wherein the configuration audit model is used to determine a data feature set in the device data information, and the data feature set includes multiple data type feature sets.
[0092] The model building module 304 is used to build a parameterized model corresponding to each of the data type feature sets in the data feature sets according to feature information of the data type corresponding to the data type feature set.
[0093] In one embodiment, the at least one network management protocol corresponding to the device of the source information acquisition module 301 includes at least one of the following: a simple network management protocol, a network configuration protocol, and a secure shell protocol; the data information acquisition module 302, in terms of sending a data acquisition request to the device based on any one of the network management protocols corresponding to the device, is specifically used to: determine a priority network management protocol among at least one network management protocol corresponding to the device according to the priority of the network management protocol; wherein the priority of the simple network management protocol is greater than the priority of the network configuration protocol, and the priority of the network configuration protocol is greater than the priority of the secure shell protocol; and send a data acquisition request to the device based on the priority network management protocol.
[0094] In one embodiment, the device also includes: a graph data determination module, which is used to establish graph data with the device as the first node, the source information corresponding to the device as the second node, and the correspondence between the source information and multiple devices as the edge relationship, based on the device data returned by the device and the multiple command line interface instruction information corresponding to the device in the device data information, before the configuration audit module 303 inputs the device data information into the configuration audit model to obtain the data feature set output by the configuration audit model; wherein the graph data also includes information corresponding to the first node, and the information corresponding to the first node includes multiple command line interface instruction information corresponding to the device; the source information and multiple command line interface instruction information corresponding to each device in the graph data are used as the device graph data information; the configuration audit module 303 is specifically used to: input the device graph data information into the configuration audit model to obtain the data feature set output by the configuration audit model.
[0095] In one embodiment, the device also includes: an adjustment module, which is used to obtain user feedback information after the graph data determination module uses the source information and multiple command line interface instruction information corresponding to each device in the graph data as the device graph data information; wherein the user feedback information includes the accuracy of the multiple command line interface instruction information corresponding to each device in the graph data; and adjust the multiple command line interface instruction information corresponding to each device in the graph data according to the user feedback information.
[0096] In one embodiment, the configuration audit model of the configuration audit module 303 includes a collection unit and a fusion unit; the collection unit is used to determine multiple device data information corresponding to each network management protocol based on multiple device data information; the fusion unit is used to fuse the multiple device data information corresponding to each network management protocol to obtain a data feature set; wherein the data feature set includes a full amount of multiple device data information corresponding to the network management protocol.
[0097] In one embodiment, the multiple data type feature sets of the configuration audit module 303 include: a feature set of device basic information, a feature set of device security information, a feature set of device routing information, and a feature set of device management information; the acquisition unit is used to determine, among the multiple device data information, multiple device basic information, multiple device security information, multiple device routing information, and multiple device management information corresponding to each network management protocol.
[0098] In one embodiment, the model building module 304 is specifically used to: for the feature set of the device basic information, fit the features of all the device basic information in the feature set of the device basic information in a parametric form in preset geometric voxels to obtain a basic information parametric model; for the feature set of the device security information, fit the features of all the device security information in the feature set of the device security information in a parametric form in preset geometric voxels to obtain a security information parametric model; for the feature set of the device routing information, fit the features of all the device routing information in the feature set of the device routing information in a parametric form in preset geometric voxels to obtain a routing information parametric model; for the feature set of the device management information, fit the features of all the device management information in the feature set of the device management information in a parametric form in preset geometric voxels to obtain a management information parametric model.
[0099] The device of the present application obtains the source information of the equipment in the distribution network; wherein the source information includes at least one network management protocol corresponding to the equipment; based on any one of the network management protocols corresponding to the equipment, a data acquisition request is sent to the equipment, and the equipment data information returned by the equipment is obtained; the equipment data information is input into the configuration audit model to obtain the data feature set output by the configuration audit model; wherein the configuration audit model is used to determine the data feature set in the equipment data information, and the data feature set includes multiple data type feature sets; for each data type feature set in the data feature set, a parameterized model corresponding to the data type is established according to the feature information of the data type corresponding to the data type feature set. That is, the scheme of the present application, on the one hand, sends a data acquisition request to the equipment through the network management protocol corresponding to the equipment, obtains the equipment data information returned by the equipment, avoids the technicians from manually obtaining the equipment data information of multiple equipment, and reduces the technical ability requirements of the technicians. On the other hand, a parameterized model corresponding to the data type is established according to the feature information of the data type corresponding to the data type feature set, avoids the situation where the technicians manually model the data information, improves the data processing efficiency, reduces the data processing error rate, and further reduces the technical ability requirements of the technicians.
[0100] The present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the distribution network equipment data modeling method provided in any of the above embodiments is implemented.
[0101] The present application also provides a computer-readable medium having a computer program stored thereon, and when the program is executed by a processor, the distribution network equipment data modeling method provided in any of the above embodiments is implemented.
[0102] Reference below Figure 4 , which shows a structural schematic diagram of an electronic device 400 suitable for implementing the present application. Figure 4 The electronic device shown is only an example and should not bring any limitation to the function and scope of use of the present application.
[0103] like Figure 4 As shown, the electronic device 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage part 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. The CPU 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0104] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
[0105] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 409, and / or installed from the removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, the above-mentioned functions defined in the system of the present application are executed.
[0106] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0107] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0108] The modules and / or units described in this application may be implemented in software or hardware. The modules and / or units described may also be set in a processor, for example, it may be described as: a processor includes a source information acquisition module, a data information acquisition module, a configuration audit module, and a model building module. The names of these modules do not, in some cases, constitute limitations on the modules themselves.
[0109] As another aspect, the present application further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes:
[0110] Obtain source information of equipment in the distribution network; wherein the source information includes at least one network management protocol corresponding to the equipment; send a data acquisition request to the equipment based on any one of the network management protocols corresponding to the equipment, and obtain the equipment data information returned by the equipment; input the equipment data information into the configuration audit model to obtain a data feature set output by the configuration audit model; wherein the configuration audit model is used to determine a data feature set in the equipment data information, and the data feature set includes a plurality of data type feature sets; for each data type feature set in the data feature set, establish a parameterized model corresponding to the data type according to the feature information of the data type corresponding to the data type feature set.
[0111] According to the scheme of the present application, the source information of the equipment in the distribution network is obtained; wherein the source information includes at least one network management protocol corresponding to the equipment; a data acquisition request is sent to the equipment based on any network management protocol corresponding to the equipment, and the equipment data information returned by the equipment is obtained; the equipment data information is input into the configuration audit model to obtain the data feature set output by the configuration audit model; wherein the configuration audit model is used to determine the data feature set in the equipment data information, and the data feature set includes multiple data type feature sets; for each data type feature set in the data feature set, a parameterized model corresponding to the data type is established according to the feature information of the data type corresponding to the data type feature set. That is, the scheme of the present application, on the one hand, sends a data acquisition request to the equipment through the network management protocol corresponding to the equipment, obtains the equipment data information returned by the equipment, avoids the technicians from manually obtaining the equipment data information of multiple equipment, and reduces the requirements for the technical capabilities of the technicians. On the other hand, a parameterized model corresponding to the data type is established according to the feature information of the data type corresponding to the data type feature set, avoids the situation where the technicians manually model the data information, improves the data processing efficiency, reduces the data processing error rate, and further reduces the requirements for the technical capabilities of the technicians.
[0112] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the distribution network equipment data modeling method provided in any embodiment of the present application.
[0113] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present application, and the programming language includes an object-oriented programming language, such as Java, Smalltalk, C++, and also includes a conventional procedural programming language, such as "C" language or similar programming language. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0114] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0115] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A data modeling method for distribution network equipment, It is characterized in that include: Acquire source information of a device in a distribution network; wherein the source information includes at least one network management protocol corresponding to the device; Sending a data acquisition request to the device based on any one of the network management protocols corresponding to the device, and acquiring device data information returned by the device; Inputting the device data information into a configuration audit model to obtain a data feature set output by the configuration audit model; wherein the configuration audit model is used to determine a data feature set in the device data information, and the data feature set includes a plurality of data type feature sets; For each of the data type feature sets in the data feature sets, a parameterized model corresponding to the data type is established according to feature information of the data type corresponding to the data type feature set.
2. The method according to claim 1, It is characterized in that At least one network management protocol corresponding to the device includes at least one of the following: a simple network management protocol, a network configuration protocol, and a secure shell protocol; The sending a data acquisition request to the device based on any one of the network management protocols corresponding to the device includes: Determine a priority network management protocol among at least one network management protocol corresponding to the device according to the priority of the network management protocol; wherein the priority of the simple network management protocol is greater than the priority of the network configuration protocol, and the priority of the network configuration protocol is greater than the priority of the secure shell protocol; A data acquisition request is sent to the device based on the priority network management protocol.
3. The method according to claim 1, It is characterized in that Before inputting the device data information into the configuration audit model to obtain the data feature set output by the configuration audit model, the method further includes: According to the device data returned by the device and the multiple command line interface instruction information corresponding to the device in the device data information, establish graph data with the device as the first node, the source information corresponding to the device as the second node, and the corresponding relationship between the source information and multiple devices as the edge relationship; wherein the graph data also includes information corresponding to the first node, and the information corresponding to the first node includes the multiple command line interface instruction information corresponding to the device; Using source information corresponding to each device in the graph data and a plurality of command line interface instruction information as the device graph data information; The step of inputting the device data information into a configuration audit model to obtain a data feature set output by the configuration audit model includes: The device diagram data information is input into a configuration audit model to obtain a data feature set output by the configuration audit model.
4. The method according to claim 3, It is characterized in that After using the source information corresponding to each device in the graph data and the plurality of command line interface instruction information as the device graph data information, the method further includes: Obtaining user feedback information; wherein the user feedback information includes the accuracy of multiple command line interface instruction information corresponding to each device in the graph data; The plurality of command line interface instruction information corresponding to each device in the graph data is adjusted according to the user feedback information.
5. The method according to claim 1, It is characterized in that The configuration audit model includes a collection unit and a fusion unit; The collecting unit is used to determine a plurality of device data information corresponding to each network management protocol according to the plurality of device data information; The fusion unit is used to fuse the multiple device data information corresponding to each network management protocol to obtain a data feature set; wherein the data feature set includes a full amount of multiple device data information corresponding to the network management protocol.
6. The method according to claim 5, It is characterized in that The multiple data type feature sets include: a feature set of device basic information, a feature set of device security information, a feature set of device routing information, and a feature set of device management information; The acquisition unit is used to determine a plurality of device data information corresponding to each network management protocol according to the plurality of device data information, including: The acquisition unit is used to determine, from the plurality of device data information, a plurality of device basic information, a plurality of device security information, a plurality of device routing information and a plurality of device management information corresponding to each network management protocol.
7. The method according to claim 6, It is characterized in that The step of establishing, for each of the data type feature sets in the data feature sets, a parameterized model corresponding to the data type according to feature information of the data type corresponding to the data type feature set, includes: For the feature set of the basic information of the device, the features of all the basic information of the device in the feature set of the basic information of the device are fitted in a parameterized form in a preset geometric voxel to obtain a basic information parameterized model; For the feature set of the device safety information, the features of all the device safety information in the feature set of the device safety information are fitted in a parameterized form in preset geometric voxels to obtain a parameterized model of the safety information; For the feature set of the device routing information, the features of all the device routing information in the feature set of the device routing information are fitted in a parameterized form in a preset geometric voxel to obtain a parameterized model of the routing information; For the feature set of the device management information, the features of all the device management information in the feature set of the device management information are fitted in a parameterized form in preset geometric voxels to obtain a management information parameterized model.
8. A distribution network equipment data modeling device, It is characterized in that include: A source information acquisition module, used to acquire source information of a device in the distribution network; wherein the source information includes at least one network management protocol corresponding to the device; A data information acquisition module, used to send a data acquisition request to the device based on any one of the network management protocols corresponding to the device, and acquire the device data information returned by the device; A configuration audit module, used for inputting the device data information into a configuration audit model to obtain a data feature set output by the configuration audit model; wherein the configuration audit model is used to determine a data feature set in the device data information, and the data feature set includes a plurality of data type feature sets; The model building module is used to build a parameterized model corresponding to each data type feature set in the data feature set according to feature information of the data type corresponding to the data type feature set.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the distribution network equipment data modeling method as described in any one of claims 1-7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the distribution network equipment data modeling method as described in any one of claims 1-7 is implemented.
