Testing method, equipment and storage medium in network function virtualization environment

By generating test scripts that include the management and orchestration module, unit management module and network function module interactive interface, the problem of insufficiently comprehensive and accurate test results in the network function virtualization environment is solved, and the life cycle management process of virtualized network elements is realized. Comprehensive coverage and accurate problem location.

CN112231210BActive Publication Date: 2024-08-27CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011091736.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-13
Publication Date
2024-08-27
Estimated Expiration
2040-10-13

AI Technical Summary

Technical Problem

In a network function virtualization environment, VNFM and other modules cannot be monitored by directly operating the VNFO+ interface, and the interaction between O+ and VNFM cannot be covered by directly calling the NFV internal interface, resulting in incomplete and inaccurate test results.

Method used

Generate test scripts based on the life cycle test strategy of virtualized network elements, including interfaces for interaction between management and orchestration modules, unit management modules, and network function modules. The interfaces are called sequentially through orchestration rules to generate test reports, covering the resources and resources of VNF, MANO, and EMS. Business control, locating problems in the life cycle management process.

Benefits of technology

It achieves a comprehensive test of the virtualized network element life cycle management process, improves the accuracy of problem location, and makes the test results more comprehensive and accurate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112231210B
    Figure CN112231210B
Patent Text Reader

Abstract

The embodiment of the present invention relates to the field of network function virtualization, and discloses a test method, device and storage medium in a network function virtualization environment. In the present invention, a test script is generated according to the life cycle test strategy of the virtualized network element; wherein the test script at least includes: configuration information and orchestration rules of several interfaces; several interfaces include any one of the interfaces interacting with the management and orchestration module, the interface interacting with the unit management module and the interface interacting with the network function module or a combination thereof; several interfaces are called in sequence according to the orchestration rules and a test report is generated. This makes the test results more comprehensive and the problem location more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of network function virtualization, and in particular to a testing method, device and storage medium in a network function virtualization environment. Background Art

[0002] In the network function virtualization (NFV) environment, VNFM (VNF Manager) manages the life cycle of virtualized network elements through C8 and C10 interfaces, including instantiation, expansion and contraction, and termination of virtualized network elements. The upper-layer VNFO+ issues instructions to VNFM through the C6 interface. To achieve automated testing of life cycle management, automated running scripts are usually written based on the existing VNFO+ interface, or operation instructions are issued by directly calling the NFV standard internal interface to achieve automated testing.

[0003] The inventors found that there are at least the following problems in the related art: directly operating the VNFO+ interface cannot monitor VNFM and other modules, and directly calling the NFV internal interface cannot directly cover the interaction between O+ and VNFM. Therefore, if a problem occurs during the test, it cannot be accurately located, resulting in incomplete and inaccurate test results. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a testing method, device and storage medium in a network function virtualization environment, so that the test results can cover more comprehensively and the problem location can be more accurate.

[0005] To solve the above technical problems, an embodiment of the present invention provides a testing method in a network function virtualization environment, including: generating a test script according to a lifecycle test strategy of a virtualized network element; wherein the test script includes at least: configuration information and orchestration rules of several interfaces; the several interfaces include any one of an interface for interacting with a management and orchestration module, an interface for interacting with a unit management module, and an interface for interacting with a network function module, or a combination thereof; calling several interfaces in sequence according to the orchestration rules and generating a test report.

[0006] An embodiment of the present invention also provides a testing device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned testing method in the network function virtualization environment.

[0007] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program implements the above-mentioned testing method in the network function virtualization environment when executed by a processor.

[0008] Compared with the related art, the embodiment of the present invention generates a test script according to the life cycle test strategy of the virtualized network element. The test script includes the configuration information and orchestration rules of several interfaces. The several interfaces include any one of the interfaces for managing and interacting with the orchestration module mano, the interface for interacting with the unit management module ems, and the interface for interacting with the network function vnf module or a combination thereof. The several interfaces in the test script can work together to realize the control of various aspects such as resources and services of VNF, MANO, and EMS. Running the test script can call several interfaces in sequence according to the orchestration rules, thereby realizing the test of the life cycle of the virtualized network element. Find out whether there are problems in the life cycle management process. In this way, the scheduling and operation of each interface in the life cycle management process can be tested, thereby reflecting the working conditions of each module, making the test results more comprehensive. If a problem occurs, each interface can be located, making the problem location more accurate.

[0009] In addition, the configuration information includes at least: assertion and interface calling information.

[0010] In addition, the test script is generated according to the life cycle test strategy of the virtualized network element, including: determining whether the test script needs to input external data; if necessary, defining the input external data; and generating the test script according to the defined input external data. In this way, the test can be implemented in combination with external data, so that the test results are more in line with the expected requirements.

[0011] In addition, the input external data is defined, including: defining the external data as required input data or non-required input data, so as to avoid test failure due to lack of external data.

[0012] In addition, the external data includes at least: the address of the virtualized network element and a resource requirement list, and the resource requirement list includes at least: network parameters and hardware parameters.

[0013] In addition, after generating a test script according to the lifecycle test strategy of the virtualized network element, it also includes: associating the generated test script with other test scripts to generate a test plan; wherein the other test scripts include test scripts generated according to other lifecycle test strategies; calling several interfaces in sequence according to the orchestration rules and generating a test report, including: calling the interfaces in sequence according to the orchestration rules contained in the test scripts contained in the test plan, and generating a test report. Freely combining multiple test scripts to generate a test plan allows the test to include test scripts for multiple lifecycle management strategies, thereby making the test scenario more flexible.

[0014] In addition, the lifecycle management strategy includes at least: the instantiation strategy, expansion and contraction strategy and termination strategy of the virtualized network element.

[0015] In addition, the interface is defined according to the corresponding interactive modules. Defining the interface can make the interface more in line with the test requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0017] Figure 1 is a flowchart of a testing method in a network function virtualization environment according to a first embodiment of the present invention;

[0018] Figure 2 is a flowchart of a testing method in a network function virtualization environment according to a second embodiment of the present invention;

[0019] Figure 3 is a schematic structural diagram of a testing device according to a third embodiment of the present invention;

[0020] Figure 4 is a schematic structural diagram of a testing device according to a fourth embodiment of the present invention. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are provided to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented.

[0022] The following embodiments are divided for the convenience of description and shall not constitute any limitation on the specific implementation of the present invention. The embodiments may be combined with each other and referenced to each other without contradiction.

[0023] The first embodiment of the present invention relates to a testing method in a network function virtualization environment, including: generating a test script according to the life cycle test strategy of the virtualized network element; wherein the test script includes at least: configuration information and orchestration rules of several interfaces; several interfaces include any one of the interfaces that interact with the management and orchestration module, the interfaces that interact with the unit management module, and the interfaces that interact with the network function module, or a combination thereof; calling several interfaces in sequence according to the orchestration rules and generating a test report. This makes the test results more comprehensive and the problem location more accurate. The implementation details of the testing method in the network function virtualization environment of this embodiment are described in detail below. The following content is only the implementation details provided for the convenience of understanding and is not necessary for the implementation of this solution.

[0024] The testing method in the network function virtualization environment involved in this embodiment is as follows Figure 1 As shown, including:

[0025] Step 101: Generate a test script according to a lifecycle test strategy of a virtualized network element.

[0026] Specifically, the interface includes an interface for interacting with the management and orchestration module MANO, an interface for interacting with the unit management module EMS, and an interface for interacting with the network function module VNF. The interface is defined and written by developers, and the interface can be redefined according to the corresponding interactive modules so that the provided interface can be directly called by the management and orchestration module MANO, the unit management module EMS, and the network function module VNF. Therefore, the result of the interface call can directly reflect the working status of each module, so that the problem can be located according to the interface call status.

[0027] The life cycle test strategy of the virtualized network element includes the instantiation strategy, scaling strategy, and termination strategy of the virtualized network element. Each test strategy is implemented by different modules calling different interfaces. Therefore, according to the life cycle test strategy of the virtualized network element, the number of interfaces required to be called can be determined, and the life cycle test can be implemented using the required interfaces.

[0028] When generating a test script, several interfaces are combined and arranged, the arrangement order of several interfaces is specified, and corresponding configuration information is added to each interface to generate a test script for the test case. The configuration information added when generating a test script can be information such as assertions and calling rules of each interface. The assertion added to the interface can be in the form of: the expected return value after the interface runs is 200, etc.

[0029] In addition, when generating a test script, you can also specify whether to receive external data input. If the test script must be run with external data input, otherwise the test script cannot be executed, then the input external data is defined as required input data, otherwise the input external data can be defined as non-required input data. If the external data defined as required input is not received when running the script, the script cannot be run. The external data input to the test script includes at least: the address of the virtualized network element and the resource requirement list, and the resource requirement list includes at least: network parameters and hardware parameters. For example, when performing a capacity expansion test on a virtualized network element, the input external data includes the capacity expansion address of the virtualized network element, and the resource requirement list includes the network parameters after expansion (such as bandwidth parameters) and the hardware parameters after expansion (such as CPU, memory or disk parameters).

[0030] When generating a test script, all interfaces in the NFV environment can be displayed on the test interface so that the tester can select the required interface on the test interface. The interfaces displayed on the test interface include at least the interface that interacts with the management and orchestration module MANO, the interface that interacts with the unit management module EMS, and the interface that interacts with the network function module VNF. The tester arranges the interface on the test interface, adds configuration information and external data definitions, and generates a test script. After the test script is generated, the test device will store the test script so that the test script can be used for subsequent testing.

[0031] Step 102: Call several interfaces in sequence according to the arrangement rules and generate a test report.

[0032] Specifically, when running the test script, several interfaces are called in sequence according to the calling order of the interfaces specified in the arrangement rules. When calling an interface, a scheduling instruction is sent to the interaction module corresponding to the interface. After receiving the scheduling instruction, each interaction module calls the corresponding interface. If all interfaces in the test script have been called, the test is completed. Among them, the interaction module includes: management and arrangement module, unit management module and network function module.

[0033] In addition, when running the test script, if it is detected that the script requires the input of relevant data, the tester will be prompted to input external data through the test interface. For example, if a scaling test is performed, the tester will be prompted to enter data information such as the address of the VNF and the size of the scaling. The input method can be selected or filled in. After the tester enters the external data, the input external data is legally checked to determine whether the input data complies with the regulations. If it does not comply with the regulations, the tester is prompted to re-enter.

[0034] After confirming that the input external data meets the requirements, run the test script and generate a test report. If the interface call in the test script fails, all subsequent interfaces in the script will no longer be executed. The generated test report can clearly view the information of the interface that failed to call, so as to accurately locate the cause of the test failure. If there is no call failure, the indicator values ​​of each interface will be included in the test report, so that the tester can judge whether there is a problem based on the indicator data.

[0035] Compared with the related art, the embodiment of the present invention generates a test script according to the life cycle test strategy of the virtualized network element. The test script includes the configuration information and orchestration rules of several interfaces. The several interfaces include any one of the interfaces for managing and interacting with the orchestration module mano, the interface for interacting with the unit management module ems, and the interface for interacting with the network function vnf module or a combination thereof. The several interfaces in the test script can work together to achieve the management of the life cycle of the virtualized network element. Running the test script can call several interfaces in sequence according to the orchestration rules, thereby achieving control over various aspects such as resources and services of VNF, MANO, and EMS. Discover whether there are problems in the life cycle management process. In this way, the scheduling and operation of each interface in the life cycle management process can be tested, thereby reflecting the working conditions of each module, making the test results more comprehensive. If a problem occurs, each interface can be located, making the problem location more accurate.

[0036] The second embodiment of the present invention relates to a testing method in a network function virtualization environment. In the second embodiment of the present invention, the generated test script is associated with other test scripts to generate a test plan, the test scripts included in the test plan are run, and a test report is generated. A test plan is generated by freely combining multiple test scripts, so that the test includes test scripts for multiple lifecycle management policies, thereby making the test scenario more flexible.

[0037] The testing method in the network function virtualization environment involved in this embodiment is as follows Figure 2 As shown, including:

[0038] Step 201: Generate a test script according to a lifecycle test strategy of a virtualized network element.

[0039] Step 201 corresponds to step 101 in the first embodiment and will not be described again to avoid repetition.

[0040] Step 202, select several test scripts from all the generated test scripts as test plans.

[0041] Step 204: Call several interfaces in sequence according to the arrangement rules and generate a test report.

[0042] Specifically, testers can pre-generate test scripts for multiple test cases based on the lifecycle test strategy of the virtualized network element. The test scripts of each test case are generated based on several interfaces selected according to the lifecycle test strategy. After generating multiple test scripts, a new test plan is created. The newly created test plan can be associated with multiple existing test cases. For example, the test case of scaling up and down is associated with the test case of network status to generate a test plan. When running the test plan, NFV calls the scaling up and down interface to implement the scaling up and down of NFV, and passes the generated data to EMS. EMS calls the network status monitoring interface to monitor the network status after the scaling up and down operation to obtain network speed, bandwidth and other data. It realizes the joint testing of multiple management policies, making the test scenario more flexible.

[0043] In this embodiment, the generated test script is associated with other test scripts to generate a test plan, the test scripts included in the test plan are run, and a test report is generated. Multiple test scripts can be freely associated to generate a test plan, so that the test includes test scripts for multiple life cycle test strategies, thereby making the test scenario more flexible.

[0044] The step division of the above methods is only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.

[0045] A third embodiment of the present invention relates to a testing device, such as Figure 3 As shown, it includes: a test management module, a test script management module, a task management module, an interface operation management module and a result processing module.

[0046] The test management module includes a test case management unit and a test plan management unit, which are responsible for managing test cases and test plans. Testers enter the test scripts of test cases through the test platform, and freely combine several test cases to generate a test plan, and finally execute the test plan.

[0047] The test script management module includes a test script management unit and an assertion unit. After the tester arranges the interface, adds the interface configuration, and defines the input data, the test script management module generates the test script according to the arranged and set structure, and is responsible for managing the storage and operation of each test script.

[0048] The task management module includes a data collection unit and a task delivery unit. The task delivery unit is responsible for delivering the test script to the interface operation management module. The data collection unit is responsible for collecting the data generated when the test script in the test case is running, as well as the results of the test script running.

[0049] The interface operation management module includes an interface scheduling unit and an interface operation unit. The interface operation unit includes three subunits: management and orchestration MANO, unit management EMS, and network function VNF. Each subunit corresponds to an interface with different functions. After receiving the test script sent by the task management module, the interface scheduling unit parses the test script and sends instructions to each subunit in the interface operation unit. Each subunit calls the corresponding interface to complete the test. After the test is completed, the test results are returned to the task management module.

[0050] The result processing module includes a test data processing unit and a test report management unit. The task management module sends the collected data to the result processing module, which is processed by the test data processing unit, and the test report management unit generates a corresponding test report and presents it to the user or tester. In addition, the test report management unit is also used to store historical test reports for users to query and refer to.

[0051] A fourth embodiment of the present invention relates to a testing device, such as Figure 4 As shown, it includes at least one processor 401; and a memory 402 that is communicatively connected to the at least one processor 401; wherein the memory 402 stores instructions that can be executed by the at least one processor 401, and the instructions are executed by the at least one processor 401 so that the at least one processor 401 can execute the test method in the network function virtualization environment in any of the above-mentioned method embodiments.

[0052] The memory 402 and the processor 401 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 401 and the memory 402 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor 401 is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor 401.

[0053] The processor 401 is responsible for managing the bus and general processing, and may also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. The memory 402 may be used to store data used by the processor 401 when performing operations.

[0054] A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program, which implements the above method embodiment when executed by a processor.

[0055] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0056] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present invention, and that in actual applications, various changes may be made in form and detail without departing from the spirit and scope of the present invention.

Claims

1. A testing method in a network function virtualization environment, characterized in that: include: Generate a test script according to the life cycle test strategy of the virtualized network element; wherein the test script at least includes: configuration information and orchestration rules of several interfaces; the several interfaces include any one of an interface that directly interacts with a management and orchestration module, an interface that directly interacts with a unit management module, and an interface that directly interacts with a network function module, or a combination thereof; Calling the plurality of interfaces in sequence according to the arrangement rules, locating problems according to the calling conditions of the interfaces and generating a test report; After generating the test script according to the life cycle test strategy of the virtualized network element, the method further includes: Associating the generated test script with other test scripts to generate a test plan; wherein the other test scripts include test scripts generated according to other life cycle test strategies; The calling the plurality of interfaces in sequence according to the arrangement rule and generating a test report includes: Calling the interfaces in sequence according to the arrangement rules contained in the test scripts contained in the test plan and generating a test report; when calling the interfaces, sending scheduling instructions to the interaction modules corresponding to the interfaces, and each interaction module calling the corresponding interface after receiving the scheduling instructions; The configuration information at least includes: assertion and interface calling information.

2. The testing method in a network function virtualization environment according to claim 1, characterized in that: The generating of the test script according to the life cycle test strategy of the virtualized network element includes: Determine whether the test script needs to input external data; If necessary, define the external data; A test script is generated according to the external data.

3. The testing method in a network function virtualization environment according to claim 2, characterized in that: The defining of the external data includes: The external data is defined as data that must be input or data that does not have to be input.

4. The testing method in a network function virtualization environment according to claim 2, characterized in that: The external data includes at least: an address of a virtualized network element and a resource requirement list, and the resource requirement list includes at least: network parameters and hardware parameters.

5. The testing method in a network function virtualization environment according to any one of claims 1 to 4, characterized in that: The lifecycle testing strategy includes at least: an instantiation strategy, a scaling strategy and a termination strategy of a virtualized network element.

6. The testing method in a network function virtualization environment according to any one of claims 1 to 4, characterized in that: The interface is defined according to the corresponding interactive modules, and the interface is defined and written by developers.

7. A testing device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the testing method in the network function virtualization environment as described in any one of claims 1 to 6.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the testing method in a network function virtualization environment described in any one of claims 1 to 6 is implemented.