Network element configuration method, device, electronic device and storage medium

By building the instruction correlation map of network elements, automatically selecting configuration methods and generating scripts, the problems of low configuration efficiency and high cost caused by manual intervention in the existing technology are solved, and efficient network element configuration is achieved.

CN114302431BActive Publication Date: 2024-11-05CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111624916.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2024-11-05
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

The existing network element configuration method requires manual determination of configuration mode and identification of instruction differences based on business data, resulting in low configuration efficiency and high cost.

Method used

By building an instruction association map of network elements, automatically select full or incremental configuration methods based on business data, generate configuration scripts, and reduce manual intervention.

Benefits of technology

It improves the efficiency of network element configuration, reduces labor costs, and realizes an automated configuration process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114302431B_ABST
    Figure CN114302431B_ABST
Patent Text Reader

Abstract

The present application provides a network element configuration method, device, electronic device and storage medium, the method comprising: generating a command association map of the network element according to the configuration data of the network element and the entities corresponding to each command of the network element; extracting the target entity of the business data, and extracting the associated entity of the target entity; if there is an associated entity in the command association map, configuring the network element according to the target entity and the command association map; if there is no associated entity in the command association map, configuring the network element according to the target entity, the associated entity and the command association map. The technical solution of the embodiment of the present application can realize different configuration modes to configure the network element through the command association map and the business data of the network element, thereby improving the efficiency of the network element configuration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of mobile communication technology, and in particular to a network element configuration method, device, electronic device and storage medium. Background Art

[0002] The service configuration methods of network elements include full configuration and incremental configuration. Generally, the type of network element configuration is determined by service data. Different configuration methods will result in different instruction configuration scripts generated by service data. There are full scripts and multiple incremental scripts. For example, when configuring a network element for directional traffic service, in the service data sent for the first time, it is necessary to configure a fallback rule for the directional traffic of each service, and add a HOST (host) configuration for each domain name, that is, it is necessary to generate a full configuration script based on the service data. After the first service data configuration is completed, when the service data related to the directional traffic is subsequently sent to the same domain name, there is no need to repeatedly configure the fallback rule, and the created domain name does not need to be configured with HOST, and the HOST binding is directly referenced, then an incremental configuration script is generated based on the service data. However, if directional traffic control is required for the newly added domain name, a new HOST configuration is required, that is, a full configuration script is generated.

[0003] Most of the existing network element configuration methods require manual query of the network element based on business data to determine whether the current business configuration is a full configuration or an incremental configuration. If incremental configuration is performed, it is also necessary to remove the executed instructions in the full configuration script based on the different instructions for each increment. In the process, the differences between the full and incremental instructions need to be identified. This method relies too much on the configuration personnel's proficiency in configuration instructions, resulting in low network element configuration efficiency, high manual thresholds and costs. Summary of the invention

[0004] In order to solve the above technical problems, the embodiments of the present application provide a network element configuration method and device, and an electronic device, which can configure the network element through an instruction association map.

[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0006] According to one aspect of an embodiment of the present application, a network element configuration method is provided, including: generating an instruction association graph of the network element according to configuration data of the network element and entities corresponding to each instruction of the network element; extracting a target entity of business data, and extracting an associated entity of the target entity, wherein there is an association relationship between the instruction corresponding to the associated entity and the instruction corresponding to the target entity, and the association relationship includes a reference relationship and a binding relationship; if the associated entity exists in the instruction association graph, configuring the network element according to the target entity and the instruction association graph; if the associated entity does not exist in the instruction association graph, configuring the network element according to the target entity, the associated entity and the instruction association graph.

[0007] In one embodiment, generating the instruction association map of the network element according to the configuration data of the network element and the entity corresponding to each instruction of the network element includes:

[0008] Respectively extracting entities corresponding to instructions of the network element;

[0009] Connecting the entities according to the association relationship between the instructions to obtain an association framework;

[0010] Corresponding configuration data is collected according to the association relationship between the instructions in the association framework to obtain the instruction association map.

[0011] In one embodiment, if the instruction association map has the associated entity, configuring the network element according to the target entity and the instruction association map includes:

[0012] If the target entity does not exist in the instruction association graph, generating the target entity in the instruction association graph;

[0013] Associating the target entity with the instruction association graph according to the association relationship between the entity in the instruction association graph and the target entity;

[0014] The target entity is extracted from the instruction association graph to configure the network element.

[0015] In one embodiment, extracting the target entity from the instruction association graph to configure the network element includes:

[0016] Generate a first business instruction according to the instruction association graph and the target entity;

[0017] A first configuration script is generated according to the first service instruction, and the network element is configured based on the first configuration script.

[0018] In one embodiment, if the associated entity does not exist in the instruction association map, configuring the network element according to the target entity, the associated entity and the instruction association map includes:

[0019] If the target entity exists in the instruction association graph, generating the associated entity in the instruction association graph;

[0020] Associating the associated entity with the instruction association graph according to the association relationship between the entity in the instruction association graph and the associated entity;

[0021] The target entity and the associated entity are extracted from the instruction association graph to configure the network element.

[0022] In one embodiment, if the associated entity does not exist in the instruction association map, configuring the network element according to the target entity, the associated entity and the instruction association map includes:

[0023] If the target entity does not exist in the instruction association graph, generating the target entity and the associated entity in the instruction association graph;

[0024] Associating the target entity with the instruction association graph according to the association relationship between the entity in the instruction association graph and the target entity;

[0025] Associating the associated entity with the instruction association graph according to the association relationship of the associated entity;

[0026] The target entity and the associated entity are extracted from the instruction association graph to configure the network element.

[0027] In one embodiment, extracting the target entity and the associated entity from the instruction association graph to configure the network element includes:

[0028] Generate a second business instruction according to the instruction association graph and the target entity;

[0029] Generate a network configuration instruction according to the instruction association graph and the associated entity;

[0030] A second configuration script is generated according to the second service instruction and the network configuration instruction, and the network element is configured based on the second configuration script.

[0031] According to one aspect of an embodiment of the present application, a network element configuration device is provided, including: an instruction association map generation module, configured to generate an instruction association map of the network element according to entities corresponding to each instruction of the network element and configuration data of the network element; an entity acquisition module, configured to extract a target entity of business data, and extract an associated entity of the target entity, there being an association relationship between the instruction corresponding to the associated entity and the instruction corresponding to the target entity, the association relationship including a reference relationship and a binding relationship; a first network element configuration module, configured to configure the network element according to the target entity and the instruction association map if the associated entity exists in the instruction association map; a second network element configuration module, configured to configure the network element according to the target entity, the associated entity and the instruction association map if the associated entity does not exist in the instruction association map.

[0032] According to one aspect of an embodiment of the present application, there is provided an electronic device, comprising one or more processors; and a storage device for storing one or more computer programs, wherein when the one or more computer programs are executed by the one or more processors, the electronic device implements the network element configuration method as described above.

[0033] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the network element configuration method as described above.

[0034] According to one aspect of an embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the network element configuration method provided in the above-mentioned various optional embodiments.

[0035] In the technical solution provided in the embodiments of the present application, by constructing an instruction association map of a network element, different configuration methods can be used to configure the network element according to the instruction association map and the business data of the network element, without the need to manually determine the configuration mode and configuration instructions, thereby improving the efficiency of network element configuration.

[0036] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0038] Figure 1 It is a schematic diagram of an implementation environment involved in this application;

[0039] Figure 2 is a flow chart of a network element configuration method shown in an exemplary embodiment of the present application;

[0040] Figure 3 yes Figure 2 A flowchart of step S210 in the illustrated embodiment in an exemplary embodiment;

[0041] Figure 4 is a schematic diagram of an association framework structure shown in an exemplary embodiment of the present application;

[0042] Figure 5 yes Figure 2 A flowchart of step S250 in the illustrated embodiment in another exemplary embodiment;

[0043] Figure 6 yes Figure 2 A flowchart of step S270 in the illustrated embodiment in another exemplary embodiment;

[0044] Figure 7 is a schematic diagram of the structure of a target entity and an associated entity in an instruction association graph shown in an exemplary embodiment of the present application;

[0045] Figure 8 yes Figure 6 A flowchart of step S670 in the illustrated embodiment in another exemplary embodiment;

[0046] Fig. 9 is a structural diagram of a network element configuration device shown in an exemplary embodiment of the present application;

[0047] Fig.10 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0048] Here, exemplary embodiments will be described in detail, 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 only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0049] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0050] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0051] It should also be noted that the "multiple" mentioned in this application refers to two or more than two. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship.

[0052] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0053] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0054] The network element configuration method and device, electronic device, and storage medium proposed in the embodiments of the present application involve artificial intelligence technology and machine learning technology.

[0055] The service data of the network element includes the startup configuration content or network attribute content that needs to be referenced in the service. For the same network element, in each service configuration process of a product, these startup configurations and network attribute configurations need to be judged based on the service configuration data to determine whether to execute. As a result, the instruction configuration scripts that need to be executed for each service configuration are different. There are full scripts and multiple incremental scripts, and the existing network element configuration process requires manual intervention, which is inefficient and costly. The network element configuration method proposed in the embodiments of the present application does not require manual operation, and you can choose full configuration or incremental configuration by yourself, which greatly improves the efficiency of network element configuration. These embodiments will be described in detail below.

[0056] First see Figure 1 , Figure 1 It is a schematic diagram of an implementation environment involved in the present application. The implementation environment includes a terminal 100 and a server 200, and the terminal 100 and the server 200 communicate with each other through a wired or wireless network. The terminal 100 is used to collect historical configuration data of network elements, network element instructions, and business data to be processed; at the same time, the terminal 100 also inputs the collected data to the server 200, and the server 200 generates a command association map of the network element according to the configuration data of the network element and the corresponding entities of each instruction of the network element, and then configures the network element according to the business data and the association map.

[0057] Exemplarily, after collecting the historical configuration data of a network element, the instructions of the network element, and the business data to be processed issued for the network element, the terminal 100 first sends the historical configuration data of the network element, the instructions of the network element, and the business data to be processed to the server 200, and the server 200 generates the instruction association map of the network element according to the configuration data of the network element and the entities corresponding to each instruction of the network element, and generates the instruction association map of the network element according to the configuration data of the network element and the entities corresponding to each instruction of the network element; extracts the target entity of the business data, and extracts the associated entity of the target entity, and there is an association relationship between the instruction corresponding to the associated entity and the instruction corresponding to the target entity, and the association relationship includes a reference relationship and a binding relationship; if there is an associated entity in the instruction association map, the network element is configured according to the target entity and the instruction association map; if there is no associated entity in the instruction association map, the network element is configured according to the target entity, the associated entity and the instruction association map. Of course, for other different network elements, the above process can also be used to collect data through the terminal and the server processes data to realize the configuration of the corresponding network element.

[0058] Among them, the terminal 100 can be any electronic device that can realize data visualization, such as a smart phone, a tablet, a laptop, a computer, etc., and there is no restriction here. The server end 200 can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, wherein multiple servers can form a blockchain, and the server is a node on the blockchain. The server end 200 can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network) and big data and artificial intelligence platforms, and there is no restriction here.

[0059] Figure 2 FIG. 1 is a flow chart showing a method for configuring a network element according to an exemplary embodiment. Figure 2 As shown, in an exemplary embodiment, the method may include steps S210 to S270, which are described in detail as follows:

[0060] Step S210: Generate a command association map of the network element according to the configuration data of the network element and the entities corresponding to each command of the network element.

[0061] In this embodiment, for a network element that needs to be configured, configuration data and related instructions of the network element may be obtained, and the instruction data may be extracted from a network element instruction description document provided by the network element manufacturer.

[0062] After obtaining the instruction data of the network element, the entity of each instruction can be extracted and used as the entity in the instruction association graph of the network element. The entity extraction can be to extract the keyword or feature of each instruction as the entity of the corresponding instruction.

[0063] In this embodiment, the parameters corresponding to each instruction are used as attributes, and the association relationship between instructions is mapped on the corresponding entity to obtain the association relationship between different entities. The association relationship includes a reference relationship and a binding relationship. At the same time, the relevant configuration data is written according to the association relationship between the instructions to obtain the instruction association map of the network element.

[0064] Of course, for different network elements, the above method can also be referred to to obtain the corresponding configuration data and instructions, and generate the instruction association map of the corresponding network element; on the other hand, the number of instructions for a network element may be huge, and the instruction association map corresponding to different services can be constructed according to the type of service. The instruction association map of different services can be used for the business data of the subsequent corresponding services to configure the network element.

[0065] Step S230: extract the target entity of the business data, and extract the associated entities of the target entity.

[0066] In this embodiment, when it is necessary to control a network element, a business work order will be obtained. The business work order is provided with business data, and the network element needs to be configured according to the business data; however, it is impossible to confirm whether the configuration is a full configuration or an incremental configuration based solely on the business data, and it is also necessary to query the start-up configuration and network attribute configuration in the business data. In this solution, the instruction association map is used to query whether the associated data exists to determine whether a full configuration or an incremental configuration is performed.

[0067] Specifically, entities are extracted from business data in the same way as entities are extracted from instructions. Of course, there is a lot of configuration information in a business data, and multiple target entities may be extracted from a business data. Then, the associated entities of the target entities are obtained. By querying whether there are associated entities in the instruction association graph, it can be confirmed whether it is a full configuration or an incremental configuration.

[0068] In this embodiment, the association relationship includes a reference relationship and a binding relationship. For example, if a parameter in an instruction a applies the parameter of another instruction b, then there is an association relationship between the two instructions, and the instruction a is a relationship instruction between the entity corresponding to instruction a and the entity corresponding to instruction b; or if an instruction c binds two other instructions d and e, then there is a binding relationship between instructions d and e, and there is a binding relationship between the two entities corresponding to d and e. The instruction c can be called a relationship instruction between d and e. The associated instruction can be obtained through the association relationship between the target entity and the instruction, and finally the associated entity can be obtained.

[0069] The associated entity can be obtained through the instructions corresponding to the target entity. For example, if you need to obtain the associated entity corresponding to target entity A, obtain the associated instructions of instruction a corresponding to the target entity A, that is, the instructions referenced by instruction a and the instructions bound to instruction a: if instruction a has a reference relationship with instruction b, and instruction a has a binding relationship with instruction c, then instruction c and instruction b are the associated instructions of instruction a. Instruction b and instruction c are extracted according to the same entity extraction method to obtain the corresponding entities B and entity C, then entity B and entity C are the associated entities of target entity A.

[0070] Step S250: If there is an associated entity in the instruction association map, the network element is configured according to the target entity and the instruction association map.

[0071] In this embodiment, the network element configuration is confirmed by querying whether the associated entity exists in the instruction association map. Of course, since the associated entity is obtained based on the target entity, it is possible to first confirm whether the target entity exists in the instruction association map. If not, it is necessary to first generate the target entity in the instruction association map, and then associate the target entity with the instruction association map based on the association relationship between the entity in the instruction association map and the target entity. If the target entity A does not exist in the instruction association map, the target entity A is written into the instruction association map, and the association relationship between the instruction corresponding to the target entity A and the instruction corresponding to the entity in the instruction association map is obtained. The target entity A is connected to the entity in the instruction association map, and then it is queried whether there is an associated entity of the target entity A in the instruction association map.

[0072] The query method is determined according to the entity extraction method. If entity extraction is performed through keywords, the keyword of a target entity can be compared to see if it is the same as a keyword of an entity in the instruction association graph, so as to determine whether the target entity exists in the instruction association graph; when entities are extracted through features, the feature of a target entity can be compared to see if it is the same as a keyword of an entity in the instruction association graph, so as to determine whether the target entity exists in the instruction association graph.

[0073] In this step, if the associations of the target entity all exist in the instruction association map, configuration instructions can be directly generated according to the target entity and the target entity-related attributes in the instruction association map to perform incremental configuration on the network element.

[0074] Step S270: If there is no associated entity in the instruction association map, the network element is configured according to the target entity, the associated entity and the instruction association map.

[0075] In this embodiment, referring to the method in step S250, it is first determined whether there is a target entity in the instruction association map. If not, a target entity is first generated in the instruction association map, and then the target entity is associated with the instruction association map according to the association relationship between the entity in the instruction association map and the target entity. Since there is no associated entity in the instruction association map, full configuration is required, that is, an associated entity is generated in the instruction association map, and then the associated entity is associated with the instruction association map according to the association relationship between the entity in the instruction association map and the associated entity. Then, configuration instructions are generated according to the relevant attributes of the target entity, the associated entity and the corresponding entity in the instruction association map to fully configure the network element.

[0076] It should be noted that a target entity may have multiple associated entities, and there is a situation where all associated entities corresponding to a target entity do not have an instruction association map, there is also a situation where all associated entities corresponding to a target entity have an instruction association map, or there is a situation where some associated entities corresponding to a target entity have an instruction association map. In this case, it is necessary to traverse all associated entities and only use the associated entities that do not exist in the instruction association map for the subsequent configuration of network elements; for example, if a target entity A corresponds to associated entities B and C, and associated entity B does not have an instruction association map, while associated entity C exists in the instruction association map, then the associated entities can be added to the instruction association map B with reference to the above steps, and the network element can be configured according to the target entity A, associated entity B and the instruction association map. Since the instruction association map already exists for associated entity C, when the network element is subsequently configured, the associated entity C is incrementally configured, that is, the associated entity C does not participate in the configuration of the network element.

[0077] Of course, there can be multiple target entities extracted from a business data. When there are multiple target entities, each target entity is operated according to steps S230-S270, and finally the configuration data corresponding to the business data is obtained. The configuration data should include the configuration data corresponding to all target entities and the corresponding configuration data of all associated entities that did not originally exist in the instruction association map.

[0078] The network element configuration method proposed in this embodiment can be applicable to various services requiring efficiency, such as 5GC (5G core network) services, 4G services, etc.

[0079] In this embodiment, by constructing an instruction association map of the network element, the business data of the network element can be processed independently, and different configuration methods can be selected to configure the network element. The network element configuration method is selected by whether the business data corresponding to the associated entity exists in the instruction association map, and there is no need to manually go to the network element to query whether the business data is a full configuration or an incremental configuration. On the other hand, through the instruction association map, the instructions for full configuration or incremental configuration do not need to be manually configured. Instruction query can be greatly improved, which can greatly improve the efficiency of network element configuration and reduce labor costs.

[0080] Figure 3 yes Figure 2 The flowchart of step S210 in the embodiment shown is in an exemplary embodiment. Figure 3 As shown, in an exemplary embodiment, the process of generating the instruction association map of the network element according to the configuration data of the network element and the entity corresponding to each instruction of the network element may include steps S310 to S350, which are described in detail as follows:

[0081] Step S310: extracting entities corresponding to instructions of network elements respectively.

[0082] In this implementation, if a command association map of a network element needs to be constructed, historical command data of the network element may be obtained, or commands may be extracted from a command description document of the network element.

[0083] After obtaining the relevant instructions of the network element, entities are extracted from each instruction. For example, keywords in each instruction can be extracted as entities. For example, all instructions related to directional traffic services in the UPF (User Plane Function, user plane function network element) instruction description document are analyzed, and the instruction keywords are abstracted as entities, such as ADD FILTER (create filter), RMV FILTER (delete filter), FILTER (filter) as filter entities, or features in each instruction are extracted as entities. Of course, other methods can also be used to extract entities from each instruction. The two methods proposed above are only examples, not specific limitations, and the entities of each instruction can also be obtained by other methods.

[0084] Step S330: Connecting the entities according to the association relationship between the instructions to obtain an association framework.

[0085] In this embodiment, the parameters of each instruction are used as attributes, and the association relationship between the instructions is mapped to the entities to obtain an association framework, such as Figure 4 As shown in FIG. 1 , it is a diagram of the association framework structure obtained in an embodiment, in which the rectangular solid line frame is the entity corresponding to each instruction, the rectangular dotted line frame is the parameter of each instruction, that is, the attribute, and the connecting line represents the association relationship between the entities. Figure 4 L7Filter, HOST, L347FLOWFILTER, etc. are all command keywords in the 5GC UPF network element command specification for directional traffic services. For details, please refer to the 5GC UPF network element command specification.

[0086] Step S350: Collect corresponding configuration data according to the association relationship between the instructions in the association framework to obtain an instruction association graph.

[0087] In this embodiment, the configuration data of the network element is collected according to the association relationship instructions between entities, and an instruction association map is constructed.

[0088] In this embodiment, instructions are extracted into entities, and then an instruction association map between network configuration instructions can be quickly constructed based on the association relationship between the instructions. The instruction association map can automatically determine how service data configures network elements.

[0089] Figure 5 yes Figure 2 The flowchart of step S250 in the embodiment shown is in an exemplary embodiment. Figure 5As shown, in an exemplary embodiment, if there is an associated entity in the instruction association map, the process of configuring the network element according to the target entity and the instruction association map may include steps S510 to S550, which are described in detail as follows:

[0090] Step S510: If the target entity does not exist in the instruction association graph, a target entity is generated in the instruction association graph.

[0091] Since the associated entity is obtained based on the target entity, it is possible to first confirm whether the target entity exists in the instruction association map. If not, write the target entity into the instruction association map. If there is a target entity A and the target entity A does not exist in the instruction association map, then the target entity A can be written into the instruction association map first. At this time, the target entity A is independent of the previous instruction association map, that is, the target entity A has no link relationship with the entities in the instruction association map.

[0092] Step S530: Associating the target entity with the instruction association graph according to the association relationship between the entity in the instruction association graph and the target entity.

[0093] In this embodiment, if it is necessary to establish a connection between the target entity and the instruction association map, the target entity and the instruction association map can be associated based on the previous network element configuration data, or other entities in the instruction association map that have an association relationship with the target entity (that is, the entity corresponding instructions in the instruction association map have an association relationship with the instructions of the target entity).

[0094] Step S550: extract the target entity from the instruction association graph to configure the network element.

[0095] In this embodiment, since the associated entity of the target entity exists in the instruction association map, the target entity performs incremental configuration on the network element, and when the target entity does not exist in the instruction association map, the target entity is written into the instruction association entity through the process of steps S510-S530. Of course, if the target entity already exists in the instruction association entity, steps S510-S530 may not be performed, and thus the network element may be configured through the instruction association map and the target entity.

[0096] According to the instruction association map, the target entity and the attributes of the target entity (i.e., the instruction parameters corresponding to the target entity) are translated into real instructions, and a first business instruction is generated according to the instruction association map and the target entity; then the first business instruction generates an instruction first configuration script, and the first configuration script is sent to the corresponding network element so that the network element executes relevant instructions according to the first configuration script.

[0097] After the first configuration script takes effect, the configuration data in the first configuration script can also be written back to the instruction association map of the network element to update the data of the instruction association map in real time, thereby improving the accuracy of subsequent configuration of the network element based on the association map.

[0098] In this embodiment, it is proposed that after there is an associated entity in the instruction association map, the network element is incrementally configured according to the instruction association map and the target entity, and it is proposed that if there is no target entity in the instruction association map, the target entity is linked to the instruction association map, and configuration data can be generated according to the instruction association map, without the need for manual identification of incremental configuration instructions, thereby greatly improving the efficiency of network element configuration.

[0099] Figure 6 yes Figure 2 The flowchart of step S270 in the embodiment shown is in an exemplary embodiment. Figure 6 As shown, in an exemplary embodiment, if there is no associated entity in the instruction association map, the process of configuring the network element according to the target entity, the associated entity and the instruction association map may include steps S610 to S670, which are described in detail as follows:

[0100] Step S610: If the target entity does not exist in the instruction association graph, a target entity and an associated entity are generated in the instruction association graph.

[0101] In this embodiment, if there is no associated entity in the instruction association graph, it is necessary to perform full configuration based on the instruction association graph, the associated entity and the target entity corresponding to the associated entity. Therefore, it is necessary to query whether the target entity exists in the instruction association graph. If it does, the associated entity can be directly generated and jump to step S650. If it does not exist, it is necessary to generate the target entity and the associated entity.

[0102] Similarly, refer to Figure 5 In step S510, the target entity and associated entity generated at this time are independent of the previous instruction association graph, that is, the target entity and the associated entity have no link relationship with the entities in the instruction association graph.

[0103] Step S630: Associating the target entity with the instruction association graph according to the association relationship between the entity in the instruction association graph and the target entity.

[0104] In this embodiment, reference Figure 5In step S530, a connection is established between the target entity and the instruction association graph; for example, there is an entity D in the instruction association graph, and the instruction corresponding to the entity D references the instruction corresponding to the target entity A, then there is a reference relationship between entity D and the target entity A, and entity D and the target entity A can be connected based on the association relationship. In this way, each entity in the instruction association graph can be traversed, and the target entity A and the instruction association graph can be associated based on the association relationship between each entity and the target entity A.

[0105] Of course, after the target entity A is associated with the instruction association map, the parameters of the instruction corresponding to the target entity A are also obtained as the attributes of the target entity A and written into the instruction association map.

[0106] Step S650: Associating the associated entities with the instruction association graph according to the association relationship of the associated entities.

[0107] In this embodiment, referring to the process in step S630, a connection is established between the associated entity and the instruction association map. The difference is that since there must be an association relationship between the associated entity and the target entity, and since the target entity has been written into the instruction association map in step S630, in this step, after the associated entity is associated with the instruction association map, it will inevitably be connected to the target entity in the instruction association map.

[0108] Of course, there are also associated entities corresponding to instructions, and there are also associated instructions. Perhaps the associated entities corresponding to the associated entities are written into the instruction-related association graph. For example, there is an associated entity B, and the associated entity B does not exist in the instruction association graph. Then refer to the method of steps S610-S650 to obtain the associated instructions of the instructions corresponding to the associated entity B, that is, the instructions referenced and bound by the instructions corresponding to the associated entity B, and obtain the associated entities of the associated entity B, and associate the associated entity B with the instruction association graph, and then refer to the method in steps S610-S650 to traverse the associated entities of the associated entity B, and repeat this cycle until all entities associated with the target entity exist in the instruction association graph.

[0109] Of course, after the associated entity is associated with the instruction association map, the instruction parameters corresponding to all the associated entities are obtained as attributes of the corresponding associated entity and written into the instruction association map.

[0110] Step S670: extract the target entity and the associated entity from the instruction association graph to configure the network element.

[0111] In this embodiment, since the associated entity of the target entity does not exist in the instruction association map, the target entity fully configures the network element, and the network element is configured through the instruction association map, the associated entity and the target entity.

[0112] In this embodiment, after the target entity and the associated entities with the target entity already exist in the instruction association map, a real instruction is generated based on the target entity and the associated entities in the association map and the instruction parameters of the corresponding entities (i.e., the attributes of each entity in the instruction association map), and a second business instruction is generated based on the instruction association map and the target entity.

[0113] Specifically, refer to Figure 7 The structural diagram of the target entity and the associated entity in the instruction association map shown in the figure, the target entity and the corresponding attributes of each target entity are framed by the straight line frame of "business configuration", and the second business instruction is generated through the attributes of the target entity and each target entity in the instruction association map, and the attributes of the associated entity and each associated entity are framed by "network configuration of business application", and the network configuration instruction is generated according to the attributes of the associated entity and each associated entity in the instruction association map, and the network element can be fully configured according to the second business instruction and the network configuration instruction.

[0114] In this embodiment, it is proposed to associate the associated entity and the target entity into the instruction association map when the associated entity does not exist in the instruction association map, and fully configure the network element based on the instruction association map and the associated entity and the target entity. The configuration process can be automatically completed relying on the instruction association map, without the need for manual identification of full configuration instructions, thereby greatly improving the efficiency of network element configuration.

[0115] Figure 8 yes Figure 6 The flowchart of step S670 in the embodiment shown is in an exemplary embodiment. Figure 8 As shown, in an exemplary embodiment, the process of generating a target entity in an instruction association graph, generating network configuration data of the target entity based on the instruction association graph, and configuring a network element according to the service data and the network configuration data may include steps S810 to S850, which are described in detail as follows:

[0116] Step S810: Generate a second business instruction according to the instruction association graph and the target entity.

[0117] In this embodiment, the target entity and associated entity in the instruction association map are translated into real instructions. When performing full configuration, both business instructions and network instructions are required. In this step, the second business instruction is generated through the target entity in the instruction association map and the attributes corresponding to each target entity. Then, the business data can be translated into the second business instruction, and the network configuration data can be translated into the network configuration instruction.

[0118] Step S830: Generate a network configuration instruction according to the instruction association graph and the associated entities.

[0119] Full configuration also requires network configuration instructions. In this embodiment, the network configuration instructions are generated according to the associated entities in the instruction association graph and the attributes of each associated entity.

[0120] Step S850: Generate a second configuration script according to the second service instruction and the network configuration instruction, and configure the network element based on the second configuration script.

[0121] In this embodiment, the second service instruction and the network configuration instruction generate an instruction configuration script, namely, a second configuration script, and the second configuration script is sent to the corresponding network element so that the network element executes relevant instructions according to the second configuration script for full configuration.

[0122] After the second configuration script takes effect, the configuration data in the second configuration script can also be written back to the instruction association map of the network element to update the data of the instruction association map in real time, thereby improving the accuracy of subsequent configuration of the network element based on the association map.

[0123] In this embodiment, it is proposed to generate a full configuration script according to the target entity and associated entity of the instruction association map, without the need for manual instruction query to configure the full configuration script, thereby greatly improving the efficiency of network element configuration.

[0124] Fig. 9 FIG. 1 is a schematic diagram showing a structure of a network element configuration device according to an exemplary embodiment. Fig. 9 As shown, in an exemplary embodiment, the device includes:

[0125] The instruction association map generation module 910 is configured to generate an instruction association map of the network element according to the entity corresponding to each instruction of the network element and the configuration data of the network element;

[0126] The entity acquisition module 930 is configured to extract the target entity of the business data and extract the associated entity of the target entity. There is an associated relationship between the instruction corresponding to the associated entity and the instruction corresponding to the target entity, and the associated relationship includes a reference relationship and a binding relationship.

[0127] A first network element configuration module 950 is configured to configure the network element according to the target entity and the instruction association map if there is an associated entity in the instruction association map;

[0128] The second network element configuration module 970 is configured to configure the network element according to the target entity, the associated entity and the instruction association map if there is no associated entity in the instruction association map.

[0129] In this embodiment, the network element is configured through the above structure, and full or incremental configuration can be automatically performed without manually querying the configuration mode and identifying the configuration instructions, which greatly improves the efficiency of network element configuration.

[0130] In one embodiment, the instruction association graph generation module 910 includes:

[0131] An entity extraction unit, configured to extract entities corresponding to instructions of the network element respectively;

[0132] An association framework acquisition unit is configured to connect the entities according to the association relationship between the instructions to obtain an association framework, where the association relationship includes a reference relationship and a binding relationship;

[0133] The association map acquisition unit is configured to collect corresponding configuration data according to the association relationship between the instructions in the association framework to obtain an instruction association map.

[0134] In one embodiment, the first network element configuration module 950 includes:

[0135] A first target entity generating unit, configured to generate a target entity in the instruction association graph if the target entity does not exist in the instruction association graph;

[0136] A first target entity associating unit, configured to associate the target entity with the instruction association map according to an association relationship between the entity in the instruction association map and the target entity;

[0137] The first network element configuration unit is configured to extract a target entity from an instruction association graph to configure the network element.

[0138] In one embodiment, the first network element configuration unit includes:

[0139] A first instruction acquisition section, configured to generate a first business instruction according to the instruction association graph and the target entity;

[0140] The first configuration module is configured to generate a first configuration script according to the first service instruction, and configure the network element based on the first configuration script.

[0141] In one embodiment, the second network element configuration module 970 includes:

[0142] an associated entity generating unit, configured to generate an associated entity in the instruction association graph if the target entity exists in the instruction association graph;

[0143] A first entity association unit, configured to associate the associated entity with the instruction association graph according to the association relationship between the entity and the associated entity in the instruction association graph;

[0144] The second network element configuration unit is configured to extract the target entity and the associated entity from the instruction association map to configure the network element.

[0145] In one embodiment, the second network element configuration module 970 includes:

[0146] an entity generation unit, configured to generate a target entity and an associated entity in the instruction association graph if the target entity does not exist in the instruction association graph;

[0147] A second target entity associating unit, configured to associate the target entity with the instruction association map according to an association relationship between the entity in the instruction association map and the target entity;

[0148] A second associated entity associating unit, configured to associate the associated entity with the instruction association graph according to the association relationship of the associated entity;

[0149] The third network element configuration unit is configured to extract the target entity and the associated entity from the instruction association map to configure the network element.

[0150] In one embodiment, the third network element configuration unit includes:

[0151] A second instruction acquisition section, configured to generate a second business instruction according to the instruction association graph and the target entity;

[0152] The network configuration instruction acquisition section is configured to generate network configuration instructions according to the instruction association map and the associated entities;

[0153] The second configuration module is configured to generate a second configuration script according to the second service instruction and the network configuration instruction, and configure the network element based on the second configuration script.

[0154] It should be noted that the network element configuration device provided in the above embodiment and the network element configuration method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here.

[0155] An embodiment of the present application also provides an electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the electronic device implements the network element configuration method provided in the above-mentioned embodiments.

[0156] Fig.10 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0157] It should be noted that Fig.10 The computer system 1000 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0158] like Fig.10As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1002 or the program loaded from the storage part 1008 to the random access memory (RAM) 1003, such as executing the method in the above embodiment. In the RAM 1003, various programs and data required for system operation are also stored. The CPU 1001, the ROM 1002 and the RAM 1003 are connected to each other through the bus 1004. The input / output (I / O) interface 1005 is also connected to the bus 1004.

[0159] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.

[0160] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1009, and / or installed from a removable medium 1011. When the computer program is executed by a central processing unit (CPU) 1001, various functions defined in the system of the present application are executed.

[0161] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, 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 can 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), a 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 can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals 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 programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0162] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the 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 flowchart, and the combination of boxes in the block diagram or flowchart 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.

[0163] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0164] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the network element configuration method as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0165] Another aspect of the present application also provides a computer program product or a computer program, the computer program product or the computer program includes a computer instruction, the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the network element configuration method provided in each of the above embodiments.

[0166] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A network element configuration method, characterized in that: include: Generate a command association map of the network element according to the configuration data of the network element and the entities corresponding to each command of the network element; Extracting a target entity of the business data, and extracting an associated entity of the target entity, wherein an instruction corresponding to the associated entity has an associated relationship with an instruction corresponding to the target entity, and the associated relationship includes a reference relationship and a binding relationship; If there is an associated entity of the target entity in the instruction association map, a configuration instruction is generated according to the target entity and the related attributes of the target entity in the instruction association map to perform incremental configuration on the network element; If the target entity and the associated entity do not exist in the instruction association graph, generating the target entity and the associated entity in the instruction association graph; associating the target entity with the instruction association graph according to the association relationship between the entity in the instruction association graph and the target entity; Associating the associated entity with the instruction association graph according to the association relationship of the associated entity; The target entity and the associated entity are extracted from the instruction association graph to generate configuration instructions to fully configure the network element.

2. The method according to claim 1, characterized in that The generating of the instruction association graph of the network element according to the configuration data of the network element and the entity corresponding to each instruction of the network element includes: Respectively extracting entities corresponding to instructions of the network element; Connecting the entities according to the association relationship between the instructions to obtain an association framework; Corresponding configuration data is collected according to the association relationship between the instructions in the association framework to obtain the instruction association map.

3. The method according to claim 1, characterized in that Generating configuration instructions according to the target entity and the target entity-related attributes in the instruction association graph to incrementally configure the network element includes: Generate a first business instruction according to the instruction association graph and the target entity; A first configuration script is generated according to the first service instruction, and the network element is incrementally configured based on the first configuration script.

4. The method according to claim 1, characterized in that: The step of extracting the target entity and the associated entity from the instruction association graph to generate a configuration instruction to fully configure the network element includes: Generate a second business instruction according to the instruction association graph and the target entity; Generate a network configuration instruction according to the instruction association graph and the associated entity; A second configuration script is generated according to the second service instruction and the network configuration instruction, and the network element is fully configured based on the second configuration script.

5. A network element configuration device, characterized in that: include: An instruction association map generation module, configured to generate an instruction association map of the network element according to entities corresponding to each instruction of the network element and configuration data of the network element; An entity acquisition module is configured to extract a target entity of business data and extract an associated entity of the target entity, wherein an instruction corresponding to the associated entity has an associated relationship with an instruction corresponding to the target entity, and the associated relationship includes a reference relationship and a binding relationship; A first network element configuration module is configured to generate a configuration instruction according to the target entity and the target entity-related attributes in the instruction association map if there is an associated entity of the target entity in the instruction association map, so as to perform incremental configuration on the network element; The second network element configuration module is configured to generate the target entity and the associated entity in the instruction association map if the target entity and the associated entity do not exist in the instruction association map; and associate the target entity with the instruction association map according to the association relationship between the entity in the instruction association map and the target entity; Associating the associated entity with the instruction association graph according to the association relationship of the associated entity; The target entity and the associated entity are extracted from the instruction association graph to generate configuration instructions to fully configure the network element.

6. An electronic device, characterized in that: include: one or more processors; A storage device, used to store one or more computer programs, when the one or more computer programs are executed by the one or more processors, enables the electronic device to implement the method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 4.