CN112953751B - Template processing method, device, equipment and computer readable storage medium - Google Patents

Template processing method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN112953751B
CN112953751B CN201911277563.4A CN201911277563A CN112953751B CN 112953751 B CN112953751 B CN 112953751B CN 201911277563 A CN201911277563 A CN 201911277563A CN 112953751 B CN112953751 B CN 112953751B
Authority
CN
China
Prior art keywords
template
abstract
vnf
service
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911277563.4A
Other languages
Chinese (zh)
Other versions
CN112953751A (en
Inventor
杨艳
邓灵莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201911277563.4A priority Critical patent/CN112953751B/en
Publication of CN112953751A publication Critical patent/CN112953751A/en
Application granted granted Critical
Publication of CN112953751B publication Critical patent/CN112953751B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages

Abstract

The invention discloses a template processing method, a device, equipment and a computer readable storage medium, relates to the technical field of communication, and aims to solve the problem that a test flow of a VNF network element is complicated. The method comprises the following steps: acquiring an abstract business template, wherein the abstract business template comprises attributes of abstract template resources, and the abstract template resources comprise abstract VNF templates; acquiring information of a target VNF; and instantiating the abstract business template according to the information of the VNF and the abstract VNF template to obtain an instantiated business template. The embodiment of the invention can simplify the test flow of the VNF network element.

Description

Template processing method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a template processing method, apparatus, device, and computer readable storage medium.
Background
In NFV (Network Function Virtualization ) networks, network device functions are implemented by software, enabling flexible sharing of infrastructure resources. The basic service functions of the network elements are identical for the same type of network element provided by different manufacturers, whether physical network elements or virtual network elements, because the network function definitions followed by the network elements are identical. But from a software implementation point of view, the network elements of different vendors may differ.
When performing functional test on a network element of a specific class, the network element is generally deployed to an environment simulating the current network, and then is in butt joint with a peripheral network element to complete the functional test; or under the condition that the network elements are not in butt joint, the peripheral network elements are simulated through the instrument to perform functional test. If the same function test is to be performed by replacing the same kind of network elements of other manufacturers, the network elements of a new manufacturer are required to be imported, then the test topology is redesigned according to the imported network elements of the new manufacturer, and finally the deployment test is performed aiming at the redesigned test topology.
For the existing service system or test system, if the network element of a manufacturer a is replaced with the VNF (Virtualised Network Function, virtualized network function) of a manufacturer B to perform service online or test, the general steps include:
(1) VNF object loading: b, uploading the VNF packet of the manufacturer to an existing system;
(2) VNF template design: designing or updating the VNF template according to the uploaded VNF object;
(3) NS (Network Service) Network topology design: aiming at the VNF packet uploaded in the step (1), designing network topology or test topology of peripheral network elements to form network service;
(4) NS online deployment: and (3) carrying out instantiation deployment on the network service designed in the step (3).
However, in the existing network element testing flow, when the function test is performed on the same kind of network elements of different manufacturers, the NS network topology needs to be redesigned according to the VNF packets uploaded by different manufacturers. But in general the network topology is fixed for similar network elements, the same functional tests. Therefore, the test flow of the existing VNF network element is complicated.
Disclosure of Invention
The embodiment of the invention provides a template processing method, a device, equipment and a computer readable storage medium, which are used for solving the problem that the existing VNF network element testing flow is complicated.
In a first aspect, an embodiment of the present invention provides a template processing method, including:
acquiring an abstract business template, wherein the abstract business template comprises attributes of abstract template resources, and the abstract template resources comprise abstract VNF templates;
acquiring information of a target VNF;
and instantiating the abstract business template according to the information of the VNF and the abstract VNF template to obtain an instantiated business template.
The obtaining the abstract business template comprises the following steps:
acquiring a specific service template of a target service;
replacing the network element corresponding to the VNF to be tested in the specific service template by using the network element template placeholder corresponding to the VNF to be tested to obtain a preprocessed specific service template;
and adding the attribute of the abstract template resource into the preprocessed concrete service template to obtain the abstract service template.
Wherein the instantiating the abstract traffic template according to the information of the VNF and the abstract VNF template includes:
and filling the information of the target VNF into the abstract VNF template to obtain an instantiated service template.
Wherein the method further comprises at least one of the following steps:
acquiring input of a user, and updating the corresponding relation between the network of the target VNF and the target network in the abstract service template according to the input;
generating an identifier for the instantiated service template;
and setting the attribute of the abstract template resource to be null.
Wherein, before the abstracted business template is obtained, the method further comprises:
according to the uploaded VNF package, an abstract VNF template corresponding to the VNF to be tested is obtained;
the abstract VNF template is obtained by using a connection relationship between the VNF to be tested and an external node.
Wherein the method further comprises:
and distributing the instantiated business templates.
In a second aspect, an embodiment of the present invention further provides a template processing apparatus, including:
the first acquisition module is used for acquiring an abstract service template, wherein the abstract service template comprises attributes of abstract template resources, and the abstract template resources comprise abstract Virtualized Network Function (VNF) templates;
a second obtaining module, configured to obtain information of a target VNF;
and the third acquisition module is used for instantiating the abstract business template according to the information of the VNF and the abstract VNF template to obtain an instantiated business template.
Wherein, the first acquisition module includes:
the first acquisition sub-module is used for acquiring a specific service template of the target service;
the first processing submodule is used for replacing the network element corresponding to the VNF to be tested in the specific service template by using the network element template placeholder corresponding to the VNF to be tested to obtain a preprocessed specific service template;
and the second processing sub-module is used for adding the attribute of the abstract template resource into the preprocessed concrete service template to obtain the abstract service template.
The third obtaining module is specifically configured to fill the information of the target VNF into the abstract VNF template to obtain an instantiated service template.
Wherein the apparatus further comprises at least one of the following modules:
a fourth obtaining module, configured to obtain an input of a user, and update, according to the input, a correspondence between a network of the target VNF and a target network in the abstract service template;
the generation module is used for generating an identifier for the instantiated service template;
and the setting module is used for setting the attribute of the abstract template resource to be a preset value.
Wherein the apparatus further comprises:
a fifth obtaining module, configured to obtain an abstract VNF template corresponding to the VNF to be tested according to the uploaded VNF package;
the abstract VNF template is obtained by using a connection relationship between the VNF to be tested and an external node.
Wherein the apparatus further comprises:
and the distribution module is used for distributing the instantiated service templates.
In a third aspect, an embodiment of the present invention further provides a template processing apparatus, including: a processor and a transceiver;
the processor is configured to obtain an abstract service template, where the abstract service template includes an attribute of an abstract template resource, and the abstract template resource includes an abstract virtualized network function VNF template; acquiring information of a target VNF; and instantiating the abstract business template according to the information of the VNF and the abstract VNF template to obtain an instantiated business template.
The processor is further used for acquiring a specific service template of the target service; replacing the network element corresponding to the VNF to be tested in the specific service template by using the network element template placeholder corresponding to the VNF to be tested to obtain a preprocessed specific service template; and adding the attribute of the abstract template resource into the preprocessed concrete service template to obtain the abstract service template.
The processor is further configured to fill information of the target VNF into the abstract VNF template to obtain an instantiated service template.
Wherein the processor is further configured to perform at least one of the following steps:
acquiring input of a user, and updating the corresponding relation between the network of the target VNF and the target network in the abstract service template according to the input;
generating an identifier for the instantiated service template;
and setting the attribute of the abstract template resource to be a preset value.
The processor is further configured to obtain an abstract VNF template corresponding to the VNF to be tested according to the uploaded VNF package;
the abstract VNF template is obtained by using a connection relationship between the VNF to be tested and an external node.
The processor is further configured to distribute the instantiated service template.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: a transceiver, a memory, a processor, and a program stored on the memory and executable on the processor; the processor is configured to read a program in a memory to implement the steps in the method according to the first aspect.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium storing a computer program, which when executed by a processor implements the steps of the method of the first aspect.
In the embodiment of the invention, the abstract service template comprises the attribute of the abstract template resource, and the abstract template resource comprises the abstract VNF template, so that the service template does not need to be redesigned for each VNF in the process of instantiating the service template. Therefore, the scheme of the embodiment of the invention can simplify the test flow of the VNF network element.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
FIG. 1 is one of the flowcharts of a template processing method provided by an embodiment of the present invention;
FIG. 2 is a second flowchart of a template processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a method of implementing an embodiment of the present invention;
fig. 4 is a topological example of VoLTE traffic;
fig. 5 is an example of an abstract VoLTE network topology;
FIG. 6 is an example of a VoLTE abstract traffic template;
FIG. 7 is a schematic diagram of a process for instantiating an abstract business template according to an embodiment of the invention;
FIG. 8 is a block diagram of a template processing apparatus according to an embodiment of the present invention;
FIG. 9 is a second block diagram of a template processing apparatus according to an embodiment of the present invention;
fig. 10 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a template processing method according to an embodiment of the present invention, as shown in fig. 1, including the following steps:
and 101, acquiring an abstract business template.
Wherein the abstract business template comprises an attribute of an abstract template resource, and the abstract template resource comprises an abstract VNF template.
In the embodiment of the invention, the abstract business template refers to a concrete template corresponding to a business, and the abstract business template is obtained by replacing some network elements in the concrete business template by the abstract template corresponding to the network element. The abstract template of the network element is obtained according to specific characteristics of a certain network element, connection relation between the network element and an external node, and the like.
The attribute of the abstract template resource may be an abstract resource list attribute, which is used to define the abstract template resource that needs to be replaced in the process of instantiating the service template.
Specifically, in this step, a specific service template of the target service may be obtained, and then, a network element corresponding to the VNF to be tested in the specific service template is replaced by a network element template PlaceHolder (PlaceHolder) corresponding to the VNF to be tested, to obtain a preprocessed specific service template. And finally, adding the attribute of the abstract template resource into the preprocessed concrete service template to obtain the abstract service template.
In order to flexibly replace or test the service network element, a specific service template corresponding to a certain service needs to be abstracted. The network elements in the abstract service templates may be placeholders of actual network elements, so as to represent that the network elements represented by the placeholders may be replaced and instantiated by the actual network elements. The abstract traffic templates may also be templates containing specific network elements and network element placeholders. The network connection in the abstract service template is the network connection between network elements abstracted according to the service characteristics. In practical application, the placeholder can be replaced by other identifiers, so long as the placeholder can represent the abstract service template, and a certain network element is replaced by the corresponding abstract template.
Optionally, before this step, the method may further comprise: and acquiring an abstract VNF template corresponding to the VNF to be tested according to the uploaded VNF packet. The abstract VNF template is obtained by using a connection relationship between the VNF to be tested and an external node.
Step 102, obtaining information of the target VNF.
The target VNF may be a VNF to be tested. In practical applications, the information of the target VNF may be obtained according to a selection of a user, including an attribute, an input parameter, and the like.
And 103, instantiating the abstract business template according to the information of the VNF and the abstract VNF template to obtain an instantiated business template.
Specifically, the information of the target VNF is filled into the abstract VNF template, so as to obtain an instantiated service template. That is, in this case, the information of the network element represented by the abstract VNF template, such as the attribute, the input parameter, etc., is replaced with the information of the target VNF.
In the above-mentioned instantiation process, to ensure the accuracy of the obtained service template, user input may also be obtained, and according to the input, the correspondence between the network of the target VNF and the target network in the abstract service template may be updated. The input may be an instruction or the like specifying a correspondence between the network of the target VNF and the network defined in the traffic template.
And generating an identifier for the instantiated service template for uniquely identifying the instantiated service template. Meanwhile, in order to instantiate the abstract template for a plurality of times, the attribute of the abstract template resource can be set to a preset value. Wherein the preset value may indicate that the attribute of the abstract template resource is null.
After instantiation, the instantiated business templates may also be distributed for subsequent operations.
In the embodiment of the invention, the abstract service template comprises the attribute of the abstract template resource, and the abstract template resource comprises the abstract VNF template, so that the service template does not need to be redesigned for each VNF in the process of instantiating the service template. Therefore, the scheme of the embodiment of the invention can simplify the test flow of the VNF network element.
In order to solve the problems in the prior art, the embodiment of the invention provides a topology template abstract method and a process for carrying out automatic test through abstract template instantiation, which can simplify the redesign process of NS when different manufacturers access network elements to network for test or function test, and simultaneously provides the concept of design state template instantiation.
Referring to fig. 2, fig. 2 is a flowchart of a test method according to an embodiment of the present invention. Fig. 3 is a schematic diagram of an implementation method of an embodiment of the present invention.
Referring to fig. 2 and 3, the testing method according to the embodiment of the present invention may include the following steps:
step 201, obtaining a VNF package.
When a certain VNF network element needs to be tested, a VNF packet of the VNF network element to be tested needs to be uploaded. As shown in fig. 3, both manufacturer a and manufacturer B have VNF network elements for testing, so VNF packages uploaded by manufacturer a and manufacturer B may be obtained respectively.
Step 202, obtaining a VNF abstract template.
To design an abstract NS, an abstract VNF template needs to be defined first. With reference to fig. 3, the process includes: VNF composition definitions and VNF attribute settings. An abstract VNF template refers to a VNF template defined based on characteristics of the network element under test that can be replaced by a real network element under test. Assuming that the network element under test is a PCRF (Policy and Charging Rule Function, policy and charging rules function), the abstract PCRF template needs to be designed to extract external connection points of the PCRF with the HSS (Home Subscriber Server ), SCSCF (Service Call Session Control Function, serving call session control function) and corresponding network part features.
Step 203, obtaining an abstract business template.
And designing an abstract business template according to the obtained abstract VNF template. The concrete steps of abstract business template design include:
(1) The network topology is abstracted.
The network topology is certain for traffic consisting of specific network elements. Thus, the network topology may be abstracted. When abstracting the test topology of a specific network element, the network topology of the general service of the network element is to be combined for abstracting, and the network connection between the replaced network element and the network element is mainly abstracted.
Taking fig. 4 as an example, fig. 4 is a topology example of a VoLTE (Voice over Long-Term Evolution) service composed of various network elements.
For flexible replacement or testing of service network elements, the above-mentioned service templates need to be abstracted. Network elements in the abstract service template can be placeholders of actual network elements and can be replaced and instantiated by the actual network elements; the network element in the abstract service template may also be a template comprising specific network elements and network element placeholders. The network connection in the abstract service template is a network connection between network elements abstracted according to the service characteristics.
Assuming that CSCF (Call Session Control Function ) and TAS (Telephony Application Server, telephony application server) are network elements to be replaced or as test objects, an abstract network topology is shown in fig. 5.
In fig. 5, CSCF PlaceHolder is a CSCF network element template PlaceHolder and TAS PlaceHolder is a TAS network element PlaceHolder. When a real CSCF or TAS network element accesses the tested system for testing, the CSCF PlaceHolder and the TAS PlaceHolder are instantiated and replaced by the real tested CSCF or TAS. In fig. 5, CSCF and TAS PlaceHolder are abstract VNF templates designed according to step 202.
According to fig. 5, an abstract traffic template example is shown in fig. 6. In fig. 6, control-net and Data-net are network connections between the real network elements that are abstracted, which requires business personnel to abstract according to experience.
(2) Extending a description of the abstract template resource.
During testing, the corresponding VNF abstract template in the abstract service template is replaced by the VNF of a real manufacturer, and then the running state deployment or testing can be performed. In order to define or identify such traffic templates that need to be instantiated and to accurately identify which VNFs in the traffic templates are abstract VNFs, i.e. placeholders VNFs that need to be replaced by real VNFs, in an embodiment of the present invention, abstract resource list attributes are added to the abstract traffic templates for defining abstract template resources that need to be replaced.
The fields and meanings included in the abstract resource list attribute are shown in table 1:
TABLE 1
Wherein, attribute represents Attribute name, attribute is used for identifying whether the Attribute is optional or necessary, and carry represents the length of the value of Attribute, takes values of 0 to N, N is an integer greater than 0, content is Content, VNFD, description is Attribute Description.
When the abstract business template does not have the attribute, the abstract business template can be considered as a directly deployable template without an instantiation process.
Step 204, instantiating an abstract business template.
As shown in fig. 7, the process of instantiating the abstract business template may include:
step 701, analyzing the abstract business template to be instantiated, and determining whether the business template to be instantiated is the abstract business template. If the business template to be instantiated contains abstract resource list attributes, the template to be instantiated is an abstract business template, and the abstract business template is required to be instantiated into a concrete template and then distributed; if the template to be instantiated does not contain the abstract resource list, the template to be instantiated can be directly distributed to a running state for deployment.
In the embodiment of the invention, a processing procedure of the business template to be instantiated as an abstract business template is described in an important way. The specific process comprises the following steps:
step 702, obtaining a VNF abstract resource list corresponding to the placeholder resource attribute. In this process, the user may choose to upload the VNF abstract resources that the real VNF corresponds to replacing. Accordingly, information of the real VNF selected by the user may be acquired.
In step 703, the information of the real VNF is analyzed, and the basic information, such as the attribute, of the corresponding abstract VNF in the abstract service template is replaced with the information of the real VNF, so as to input parameters. In addition, the user may specify a correspondence between the network of the real VNF and the network defined in the abstract traffic template. Correspondingly, according to the specification of the user, the connection relation between the network of the real VNF and the network defined in the abstract service template can be adjusted.
Through the above process, the process of instantiating the abstract business template is completed.
Step 704, for the instantiated business template, a template id (identification) may be generated for uniquely identifying the template. Meanwhile, the placeholder resource attribute of the service template can be set to be empty. In this way, it may be ensured that the original abstract VNF template in the abstract traffic template does not change, thereby allowing multiple instantiations of the abstract traffic template.
Step 205, distributing the instantiated abstract business templates.
In this step, the instantiated abstract business templates are distributed to the run-state deployment.
In the embodiment of the invention, the process of service design in the process of service deployment or test of the same network element function of different manufacturers can be simplified through abstract VNF design and abstract service topology templates, and the method and the device are applicable to different fields. Meanwhile, aiming at the service template after instantiation, the real VNF object and the instantiation template can be bound, so that the original design flow can be simplified, and the service deployment flow can be more automatic.
The embodiment of the invention also provides a template processing device. Referring to fig. 8, fig. 8 is a block diagram of a template processing apparatus according to an embodiment of the present invention. Since the principle of the template processing apparatus for solving the problem is similar to that of the template processing method in the embodiment of the present invention, the implementation of the template processing apparatus can refer to the implementation of the method, and the repetition is omitted.
As shown in fig. 8, the template processing apparatus 800 includes: a first obtaining module 801, configured to obtain an abstract service template, where the abstract service template includes an attribute of an abstract template resource, and the abstract template resource includes an abstract VNF template; a second obtaining module 802, configured to obtain information of the target VNF; and a third obtaining module 803, configured to instantiate the abstract service template according to the information of the VNF and the abstract VNF template, to obtain an instantiated service template.
Wherein, the first obtaining module 801 may include: the first acquisition sub-module is used for acquiring a specific service template of the target service; the first processing submodule is used for replacing the network element corresponding to the VNF to be tested in the specific service template by using the network element template placeholder corresponding to the VNF to be tested to obtain a preprocessed specific service template; and the second processing sub-module is used for adding the attribute of the abstract template resource into the preprocessed concrete service template to obtain the abstract service template.
The third obtaining module 803 is specifically configured to fill the information of the target VNF into the abstract VNF template, to obtain an instantiated service template.
Wherein the apparatus further comprises at least one of the following modules:
a fourth obtaining module, configured to obtain an input of a user, and update, according to the input, a correspondence between a network of the target VNF and a target network in the abstract service template;
the generation module is used for generating an identifier for the instantiated service template;
and the setting module is used for setting the attribute of the abstract template resource to be a preset value.
Wherein the apparatus further comprises:
a fifth obtaining module, configured to obtain an abstract VNF template corresponding to the VNF to be tested according to the uploaded VNF package;
the abstract VNF template is obtained by using a connection relationship between the VNF to be tested and an external node.
Wherein the apparatus further comprises:
and the distribution module is used for distributing the instantiated service templates.
The device provided by the embodiment of the present invention may execute the above method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein.
The embodiment of the invention also provides a template processing device. Referring to fig. 9, fig. 9 is a block diagram of a template processing apparatus according to an embodiment of the present invention. Since the principle of the template processing apparatus for solving the problem is similar to that of the template processing method in the embodiment of the present invention, the implementation of the template processing apparatus can refer to the implementation of the method, and the repetition is omitted.
As shown in fig. 9, the template processing apparatus 900 includes: a processor 901 and a transceiver 902.
The processor 901 is configured to obtain an abstract service template, where the abstract service template includes an attribute of an abstract template resource, and the abstract template resource includes an abstract virtualized network function VNF template; acquiring information of a target VNF; and instantiating the abstract business template according to the information of the VNF and the abstract VNF template to obtain an instantiated business template.
The processor 901 is further configured to obtain a specific service template of the target service; replacing the network element corresponding to the VNF to be tested in the specific service template by using the network element template placeholder corresponding to the VNF to be tested to obtain a preprocessed specific service template; and adding the attribute of the abstract template resource into the preprocessed concrete service template to obtain the abstract service template.
The processor 901 is further configured to fill information of the target VNF into the abstract VNF template to obtain an instantiated service template.
Wherein the processor 901 is further configured to perform at least one of the following steps:
acquiring input of a user, and updating the corresponding relation between the network of the target VNF and the target network in the abstract service template according to the input;
generating an identifier for the instantiated service template;
and setting the attribute of the abstract template resource to be a preset value.
The processor 901 is further configured to obtain an abstract VNF template corresponding to the VNF to be tested according to the uploaded VNF package;
the abstract VNF template is obtained by using a connection relationship between the VNF to be tested and an external node.
Wherein the processor 901 is further configured to distribute the instantiated service template.
The device provided by the embodiment of the present invention may execute the above method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein.
As shown in fig. 10, an electronic device according to an embodiment of the present invention includes: processor 1000, for reading the program in memory 1020, performs the following processes:
acquiring an abstract business template, wherein the abstract business template comprises attributes of abstract template resources, and the abstract template resources comprise abstract VNF templates;
acquiring information of a target VNF;
and instantiating the abstract business template according to the information of the VNF and the abstract VNF template to obtain an instantiated business template.
A transceiver 1010 for receiving and transmitting data under the control of the processor 1000.
Wherein in fig. 10, a bus architecture may comprise any number of interconnected buses and bridges, and in particular one or more processors represented by the processor 1000 and various circuits of the memory, represented by the memory 1020, are chained together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. The transceiver 1010 may be a number of elements, including a transmitter and a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 1000 is responsible for managing the bus architecture and general processing, and the memory 1020 may store data used by the processor 1000 in performing operations.
The processor 1000 is responsible for managing the bus architecture and general processing, and the memory 1020 may store data used by the processor 1000 in performing operations.
The processor 1000 is further configured to read the program and perform the following steps:
acquiring a specific service template of a target service;
replacing the network element corresponding to the VNF to be tested in the specific service template by using the network element template placeholder corresponding to the VNF to be tested to obtain a preprocessed specific service template;
and adding the attribute of the abstract template resource into the preprocessed concrete service template to obtain the abstract service template.
The processor 1000 is further configured to read the program and perform the following steps:
and filling the information of the target VNF into the abstract VNF template to obtain an instantiated service template.
The processor 1000 is further configured to read the program and perform the following steps:
acquiring input of a user, and updating the corresponding relation between the network of the target VNF and the target network in the abstract service template according to the input;
generating an identifier for the instantiated service template;
and setting the attribute of the abstract template resource to be null.
The processor 1000 is further configured to read the program and perform the following steps:
according to the uploaded VNF package, an abstract VNF template corresponding to the VNF to be tested is obtained;
the abstract VNF template is obtained by using a connection relationship between the VNF to be tested and an external node.
The processor 1000 is further configured to read the program and perform the following steps:
and distributing the instantiated business templates.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the above-mentioned template processing method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is provided herein. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. In light of such understanding, the technical solutions of the present invention may be embodied essentially or in part in the form of a software product stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a cell phone, computer, server, air conditioner, or network device, etc.) to perform the methods described in the various embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (9)

1. A template processing method, comprising:
obtaining an abstract service template, wherein the abstract service template comprises an attribute of an abstract template resource, the abstract template resource comprises an abstract Virtualized Network Function (VNF) template, and the attribute of the abstract template resource comprises an abstract resource list attribute used for defining the abstract template resource which needs to be replaced in the process of instantiating the service template;
acquiring information of a target VNF;
according to the information of the target VNF and the abstract VNF template, instantiating the abstract business template to obtain an instantiated business template;
wherein the instantiating the abstract traffic template according to the information of the target VNF and the abstract VNF template includes:
and under the condition that the abstract service template comprises the abstract resource list attribute, filling the information of the target VNF into the abstract VNF template to obtain the instantiated service template.
2. The method of claim 1, wherein the obtaining an abstracted business template comprises:
acquiring a specific service template of a target service;
replacing the network element corresponding to the VNF to be tested in the specific service template by using the network element template placeholder corresponding to the VNF to be tested to obtain a preprocessed specific service template;
and adding the attribute of the abstract template resource into the preprocessed concrete service template to obtain the abstract service template.
3. The method according to claim 1, further comprising at least one of the following steps:
acquiring input of a user, and updating the corresponding relation between the network of the target VNF and the target network in the abstract service template according to the input;
generating an identifier for the instantiated service template;
and setting the attribute of the abstract template resource to be a preset value.
4. The method of claim 1, wherein prior to the obtaining the abstracted business templates, the method further comprises:
according to the uploaded VNF package, an abstract VNF template corresponding to the VNF to be tested is obtained;
the abstract VNF template is obtained by using a connection relationship between the VNF to be tested and an external node.
5. The method according to claim 1, wherein the method further comprises:
and distributing the instantiated service templates.
6. A template processing apparatus, comprising:
the first acquisition module is used for acquiring an abstract service template, wherein the abstract service template comprises an attribute of an abstract template resource, the abstract template resource comprises an abstract Virtualized Network Function (VNF) template, and the attribute of the abstract template resource comprises an abstract resource list attribute used for defining the abstract template resource which needs to be replaced in the process of instantiating the service template;
a second obtaining module, configured to obtain information of a target VNF;
a third obtaining module, configured to instantiate the abstract service template according to the information of the target VNF and the abstract VNF template, to obtain an instantiated service template;
the third obtaining module is further configured to, when it is determined that the abstract service template includes an abstract resource list attribute, fill information of the target VNF into the abstract VNF template, to obtain an instantiated service template.
7. A template processing apparatus, comprising: a processor and a transceiver;
the processor is configured to obtain an abstract service template, where the abstract service template includes an attribute of an abstract template resource, and the abstract template resource includes an abstract virtualized network function VNF template; acquiring information of a target VNF; instantiating the abstract service template according to the information of the target VNF and the abstract VNF template to obtain an instantiated service template, wherein the attribute of the abstract template resource comprises an abstract resource list attribute used for defining the abstract template resource which needs to be replaced in the process of instantiating the service template;
the processor is further configured to, in case it is determined that the abstract traffic template includes an abstract resource list attribute, fill information of the target VNF into the abstract VNF template, to obtain an instantiated traffic template.
8. An electronic device, comprising: a transceiver, a memory, a processor, and a program stored on the memory and executable on the processor; it is characterized in that the method comprises the steps of,
the processor being configured to read a program in a memory to implement the steps in the method according to any one of claims 1 to 5.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 5.
CN201911277563.4A 2019-12-11 2019-12-11 Template processing method, device, equipment and computer readable storage medium Active CN112953751B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911277563.4A CN112953751B (en) 2019-12-11 2019-12-11 Template processing method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911277563.4A CN112953751B (en) 2019-12-11 2019-12-11 Template processing method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112953751A CN112953751A (en) 2021-06-11
CN112953751B true CN112953751B (en) 2023-11-28

Family

ID=76234335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911277563.4A Active CN112953751B (en) 2019-12-11 2019-12-11 Template processing method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112953751B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954220A (en) * 2014-03-31 2015-09-30 华为技术有限公司 Virtual network service deployment method and device thereof
CN105210337A (en) * 2014-03-24 2015-12-30 华为技术有限公司 Service implementation method for NFV system, and communications unit
CN105656646A (en) * 2014-11-10 2016-06-08 中国移动通信集团公司 Deploying method and device for virtual network element
CN105812414A (en) * 2014-12-29 2016-07-27 中兴通讯股份有限公司 VNF deployment method and device
CN106161171A (en) * 2015-03-23 2016-11-23 中兴通讯股份有限公司 A kind of method and apparatus setting up Network example
CN106685679A (en) * 2015-11-09 2017-05-17 中兴通讯股份有限公司 Network service deployment method and device
CN107222324A (en) * 2016-03-22 2017-09-29 华为技术有限公司 The business collocation method and device of network service
CN107846313A (en) * 2017-10-30 2018-03-27 中国联合网络通信集团有限公司 A kind of method and the network equipment of network service template generation
CN108370341A (en) * 2016-03-02 2018-08-03 华为技术有限公司 Resource allocation method, virtual network function manager and Element management system
CN109710250A (en) * 2018-11-15 2019-05-03 安徽同徽信息技术有限公司 It is a kind of for constructing the visualization engine system and method for user interface
CN112398674A (en) * 2019-08-16 2021-02-23 中国移动通信集团浙江有限公司 Method and device for generating VNFD configuration template for describing virtual network functions

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105210337A (en) * 2014-03-24 2015-12-30 华为技术有限公司 Service implementation method for NFV system, and communications unit
CN104954220A (en) * 2014-03-31 2015-09-30 华为技术有限公司 Virtual network service deployment method and device thereof
CN105656646A (en) * 2014-11-10 2016-06-08 中国移动通信集团公司 Deploying method and device for virtual network element
CN105812414A (en) * 2014-12-29 2016-07-27 中兴通讯股份有限公司 VNF deployment method and device
CN106161171A (en) * 2015-03-23 2016-11-23 中兴通讯股份有限公司 A kind of method and apparatus setting up Network example
CN106685679A (en) * 2015-11-09 2017-05-17 中兴通讯股份有限公司 Network service deployment method and device
CN108370341A (en) * 2016-03-02 2018-08-03 华为技术有限公司 Resource allocation method, virtual network function manager and Element management system
CN107222324A (en) * 2016-03-22 2017-09-29 华为技术有限公司 The business collocation method and device of network service
CN107846313A (en) * 2017-10-30 2018-03-27 中国联合网络通信集团有限公司 A kind of method and the network equipment of network service template generation
CN109710250A (en) * 2018-11-15 2019-05-03 安徽同徽信息技术有限公司 It is a kind of for constructing the visualization engine system and method for user interface
CN112398674A (en) * 2019-08-16 2021-02-23 中国移动通信集团浙江有限公司 Method and device for generating VNFD configuration template for describing virtual network functions

Also Published As

Publication number Publication date
CN112953751A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN106301829B (en) A kind of method and apparatus of network service dilatation
US9703660B2 (en) Testing a virtualized network function in a network
CN107533480B (en) Server selection device, server selection method, and recording medium
CN109951315B (en) Method and system for mapping YANG model to internal model
CN108255707B (en) Development role creating method, device, equipment and storage medium of test case
CN107624230A (en) The method and entity of service availability management
CN107145439B (en) Test request processing method and device
CN112685287B (en) Product data testing method and device, storage medium and electronic device
CN109756357A (en) A kind of network slice generation method and device and terminal
CN110515855B (en) Simulation control method, server and system for application program
CN116028331A (en) Configuration file generation method and framework construction method for middleware test
CN112953751B (en) Template processing method, device, equipment and computer readable storage medium
CN109858257A (en) Access control method and device
CN115883310A (en) Service deployment method, service deployment system, electronic device, and storage medium
CN110620754B (en) NF (NF) required resource deployment method and device, storage medium and electronic device
CN111176652A (en) Application program management method, device, equipment and medium
CN114090074A (en) Method and device for configuring operating environment, storage medium and electronic device
CN111698691B (en) 5G network capacity control method and device
CN112698948A (en) Method and device for acquiring product resources, storage medium and electronic device
CN108259527B (en) Proxy-based service processing method and device and network element equipment
CN113076128A (en) Method and device for robot configuration, electronic equipment and storage medium
CN112612514B (en) Program development method and device, storage medium and electronic device
Perricone et al. GrADyS-GS--A ground station for managing field experiments with Autonomous Vehicles and Wireless Sensor Networks
Gong et al. Interoperability test of northbound interface for a transport SDON prototype
da Silva Service Modelling and End-to-End Orchestration in 5G Networks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant