Network element test method, system and device of 5G network and storage medium

Through script simulation of simulated network elements connected to 5G core network elements, the information interaction and message verification with the tested network elements are realized, the problem of inefficiency of existing testing methods is solved, and automated testing and custom testing processes are realized.

CN119865840APending Publication Date: 2025-04-22IPLOOK NETWORKS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411764672.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

The existing 5G core network testing method requires purchasing hardware testers or directly connecting to real network element equipment, resulting in inefficient testing and inability to achieve automated testing.

Method used

Through script simulation, several simulated network elements connected to the tested network element, information interaction with the tested network element through the interface corresponding to the simulated network element, receiving or sending messages, and verifying the accuracy or sending and receiving process of messages to realize automated testing.

Benefits of technology

It realizes automation of 5G network element testing, improves testing efficiency, reduces manual intervention, and supports customized testing processes and new business testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865840A_ABST
    Figure CN119865840A_ABST
Patent Text Reader

Abstract

The invention discloses a network element test method, system and device of a 5G network and a storage medium. The method comprises the following steps: simulating a plurality of simulation network elements butted with a tested network element through a script; performing information interaction with the tested network element through an interface corresponding to the simulation network element, and receiving or sending a message; and verifying the accuracy of the message, or verifying the receiving and transmitting process of the message, and determining a test result according to a verification result. According to the embodiment of the invention, the message receiving and sending and the receiving and sending process in the test process are simulated through the script, automatic test can be realized, and test efficiency can be improved. The method can be widely applied to the technical field of 5G communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of 5G communication technology, and in particular to a network element testing method, system, device and storage medium for a 5G network. Background Art

[0002] Each network element device in the 5G core network needs to undergo comprehensive functional and performance testing before the equipment supplier releases a version or an updated version is deployed on the live network.

[0003] In the related technology, the testing of 5G core network requires the purchase of hardware testers to simulate network elements to test various protocol processes, or directly access to real network element devices to test various processes and services with actual mobile phones. Testers are generally devices manufactured by tester manufacturers based on their hardware platforms. Users can only simulate certain network element simulation tests based on the functional characteristics they support. They are not autonomous and cannot perform customized tests based on their own business requirements. In addition, each test step requires manual configuration and operation of the test instrument. The test process and results also require manual intervention throughout the process, which is inefficient. The method of directly accessing real network element devices also relies on manual labor, cannot be tested automatically, and has low efficiency. Summary of the invention

[0004] The purpose of the present invention is to solve one of the technical problems existing in the prior art to at least a certain extent.

[0005] To this end, an object of the present invention is to provide an efficient 5G network element testing method, system, device and storage medium.

[0006] In order to achieve the above technical objectives, one aspect of an embodiment of the present invention provides a method for testing network elements of a 5G network, comprising the following steps: simulating several simulated network elements connected to the network element under test through a script; interacting with the network element under test through an interface corresponding to the simulated network element, receiving or sending a message; verifying the accuracy of the message, or verifying the message sending and receiving process, and determining the test result based on the verification result. The embodiment of the present application can realize automated testing by simulating the sending and receiving messages and the sending and receiving process during the test through a script, which is conducive to improving test efficiency.

[0007] In some embodiments, the network element testing method of the 5G network of an embodiment of the present invention further includes:

[0008] Establish a network element test architecture for 5G networks, including:

[0009] A communication module, used to simulate several simulated network elements connected to the network element under test, and to perform sending, receiving, transferring, encoding and decoding processing on the message;

[0010] The script module is used to establish surround test logic for simulating the plurality of simulated network elements, and to simulate the behaviors of the sessions of the plurality of simulated network elements on the interface.

[0011] In some embodiments, in an embodiment of the present invention, the step of performing information interaction with the network element under test through an interface corresponding to the simulated network element and receiving or sending a message includes:

[0012] Sending a session creation request to the network element under test through a first interface corresponding to the first simulated network element;

[0013] receiving, through a second interface corresponding to a second simulated network element, a second request issued by the network element under test according to the request to create a session, and sending the second request to a test script of a script module, receiving a second response returned by the test script, and sending the second response to the network element under test through the second interface; the second request is to request the second simulated network element to create a session;

[0014] receiving a third request sent by the network element under test through a third interface corresponding to the third simulated network element, decoding the third request and sending it to the test script of the script module, receiving a third response returned by the test script, decoding the third response and sending it to the network element under test through the third interface; the third request is for requesting the third simulated network element to create a session;

[0015] A create session response message sent back by the tested network element is received through the first interface, and the create session response message is decoded and sent to the test script to verify the message accuracy and the sending and receiving process.

[0016] In some embodiments, in one embodiment of the present invention, the method further comprises:

[0017] Establish a management module to configure test cases and provide an interactive interface.

[0018] In some embodiments, in one embodiment of the present invention, the method further comprises:

[0019] Display the script creation interface;

[0020] In the script establishment interface, receiving a trigger operation for configuring the tested network element interface and the interactive simulated network element interface, and configuring the tested network element interface and the simulated network element interface;

[0021] In the script establishment interface, receiving a trigger operation for establishing a test message template, and configuring a message template corresponding to the message;

[0022] In the script creation interface, receiving a trigger operation for configuring a test case and generating a test script;

[0023] In the test interface, a trigger operation for starting the test is received, the test script is run, and the test result is obtained.

[0024] In some embodiments, in one embodiment of the present invention, the method further comprises:

[0025] If it is necessary to test new services of the network element under test, establish message content and process items by adding a new test script;

[0026] Determine the message template for accuracy verification and generate new test scripts.

[0027] In some embodiments, in one embodiment of the present invention, the method further comprises:

[0028] In the script establishment interface, receiving a test case selection operation and an operation mode selection operation, determining the number of test cases in the test script, and whether the test script is to be executed serially or in parallel;

[0029] In the script establishment interface, a trigger operation for configuring a test case interval and a number of cycles is received to determine a test flow of the test script.

[0030] On the other hand, an embodiment of the present invention provides a network element testing system for a 5G network, including:

[0031] The first module is used to simulate several simulated network elements connected to the network element under test through scripts;

[0032] The second module is used to interact with the network element under test through an interface corresponding to the simulated network element, and receive or send a message;

[0033] The third module is used to verify the accuracy of the message, or to verify the message sending and receiving process, and determine the test result according to the verification result.

[0034] On the other hand, an embodiment of the present invention provides a network element testing device for a 5G network, including:

[0035] at least one processor;

[0036] at least one memory for storing at least one program;

[0037] When the at least one program is executed by the at least one processor, the at least one processor implements the above-mentioned 5G network element testing method.

[0038] On the other hand, an embodiment of the present invention provides a storage medium, which stores a program executable by a processor, and the program executable by the processor is used to implement the above-mentioned network element testing method of the 5G network when executed by the processor.

[0039] The embodiments of the present application include at least the following beneficial effects: The method provided by the embodiments of the present invention includes: simulating several simulated network elements connected to the network element under test through a script; exchanging information with the network element under test through an interface corresponding to the simulated network element, receiving or sending a message; verifying the accuracy of the message, or verifying the message sending and receiving process, and determining the test result according to the verification result. The embodiments of the present application can realize automated testing by simulating the sending and receiving messages and the sending and receiving process during the test through a script, which is conducive to improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the embodiments of the present invention or the drawings of related technical solutions in the prior art are introduced below. It should be understood that the drawings introduced below are only for the convenience of clearly describing some embodiments of the technical solutions of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0041] Figure 1 A flowchart of an embodiment of a network element testing method for a 5G network provided by the present invention;

[0042] Figure 2 A schematic diagram of the structure of an embodiment of a network element test architecture of a 5G network provided by the present invention;

[0043] Figure 3 A flowchart of another embodiment of a network element testing method for a 5G network provided by the present invention;

[0044] Figure 4 A schematic diagram of the structure of an embodiment of a network element testing system for a 5G network provided by the present invention;

[0045] Figure 5 A schematic structural diagram of an embodiment of a network element testing device for a 5G network provided by the present invention. DETAILED DESCRIPTION

[0046] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and are not to be construed as limitations of the present invention. For the step numbers in the following embodiments, they are only provided for the convenience of explanation, and the order between the steps is not limited in any way, and the execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0047] Each network element device in the 5G core network needs to undergo comprehensive functional and performance testing before the equipment supplier releases a version or an updated version is deployed on the live network.

[0048] At present, the testing of 5G core network requires the purchase of hardware testers to simulate network elements and test various protocol processes, or directly access real network element devices and use actual mobile phones to test various processes and services. Testers are generally devices manufactured by tester manufacturers based on their hardware platforms. Users can only simulate certain network element simulation tests based on the functional characteristics they support, and cannot be controlled independently, and cannot perform customized tests according to their own business requirements. In addition, each test step requires manual configuration and operation of the test instrument, and the test process and results also require manual intervention throughout the process, which cannot achieve automation to reduce labor costs.

[0049] Based on this, an embodiment of the present application provides a network element testing method for a 5G network. Operators or core network equipment developers can use this automated testing method to write their own test cases for all services on a virtualized platform to perform simulation tests on core network elements, and support automated operations, which can achieve and exceed the functions of hardware test instruments.

[0050] The network element testing method and system of the 5G network proposed in an embodiment of the present invention will be described in detail below with reference to the accompanying drawings. First, the network element testing method of the 5G network proposed in an embodiment of the present invention will be described with reference to the accompanying drawings.

[0051] Reference Figure 1 In an embodiment of the present invention, a network element testing method for a 5G network is provided. The network element testing method for a 5G network in the embodiment of the present invention can be applied to a terminal, can be applied to a server, can also be software running in a terminal or a server, etc. The terminal can be a tablet computer, a laptop computer, a desktop computer, etc., but is not limited to this. The server can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or 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, and big data and artificial intelligence platforms. The network element testing method for a 5G network in the embodiment of the present invention mainly includes the following steps:

[0052] S100: simulating several simulated network elements connected to the network element under test through scripts;

[0053] S200: interacting with the network element under test through an interface corresponding to the simulated network element, and receiving or sending a message;

[0054] S300: Verify the accuracy of the message, or verify the message sending and receiving process, and determine the test result according to the verification result.

[0055] In some possible implementations, the embodiments of the present application test the network elements under test of the 5G network by establishing a test script. Specifically, several simulated network elements that interact with the network elements under test are established through the test script, and the message interaction between the above-mentioned simulated network elements and the network elements under test is simulated through the interface protocol. The embodiments of the present application can also perform accuracy verification on the sent messages or received messages. If the accuracy verification fails, the test result is abnormal. Alternatively, if an error occurs at any node during the information interaction process, the test result is abnormal. The test method provided in the present application can be used for various network elements of the 5G core network, including AMF, SMF, PCF, CHF, UPF, UDM, NRF, AUSF, etc.

[0056] Optionally, in one embodiment of the present invention, the method further comprises:

[0057] Establish a network element test architecture for 5G networks, including:

[0058] A communication module, used to simulate several simulated network elements connected to the network element under test, and to perform sending, receiving, transferring, encoding and decoding processing on the message;

[0059] The script module is used to establish surround test logic for simulating the plurality of simulated network elements, and to simulate the behaviors of the sessions of the plurality of simulated network elements on the interface.

[0060] In some possible implementations, the present application embodiment is as follows Figure 2 The architecture shown manages the test network elements and test processes during the 5G test process to achieve automated testing.

[0061] Optionally, in an embodiment of the present invention, the performing information interaction with the network element under test through an interface corresponding to the simulated network element and receiving or sending a message includes:

[0062] Sending a session creation request to the network element under test through a first interface corresponding to the first simulated network element;

[0063] receiving, through a second interface corresponding to a second simulated network element, a second request issued by the network element under test according to the request to create a session, and sending the second request to a test script of a script module, receiving a second response returned by the test script, and sending the second response to the network element under test through the second interface; the second request is to request the second simulated network element to create a session;

[0064] receiving a third request sent by the network element under test through a third interface corresponding to the third simulated network element, decoding the third request and sending it to the test script of the script module, receiving a third response returned by the test script, decoding the third response and sending it to the network element under test through the third interface; the third request is for requesting the third simulated network element to create a session;

[0065] A create session response message sent back by the tested network element is received through the first interface, and the create session response message is decoded and sent to the test script to verify the message accuracy and the sending and receiving process.

[0066] In some possible implementations, the present application does not limit the specific type of the network element under test, and those skilled in the art may set the specific types of the network element under test and the simulated network element according to test requirements.

[0067] Optionally, in one embodiment of the present invention, the method further comprises:

[0068] Establish a management module to configure test cases and provide an interactive interface.

[0069] In some possible implementations, the interactive interface of the embodiments of the present application may be any type of interactive interface.

[0070] Optionally, in one embodiment of the present invention, the method further comprises:

[0071] Display the script creation interface;

[0072] In the script establishment interface, receiving a trigger operation for configuring the tested network element interface and the interactive simulated network element interface, and configuring the tested network element interface and the simulated network element interface;

[0073] In the script establishment interface, receiving a trigger operation for establishing a test message template, and configuring a message template corresponding to the message;

[0074] In the script creation interface, receiving a trigger operation for configuring a test case and generating a test script;

[0075] In the test interface, a trigger operation for starting the test is received, the test script is run, and the test result is obtained.

[0076] In some possible implementations, the interactive interface in the embodiment of the present application can be in various forms. At the same time, the interactive interface can be in any layout, and the present application does not limit the specific form of expression of the interactive interface. Similarly, for the establishment of a test script through an interactive interface, it can be a conventional programming method or a graphical operation interface, which is convenient for testers to establish test scripts through simple methods such as dragging and copying, reducing the restrictions on the programming skills of testers. It is understandable that the trigger operation in the present application can be a mouse operation such as clicking, dragging, and selecting, or a keyboard operation, and of course, any feasible operation. The trigger operation can represent a selection or a configuration. By configuring the test script through an interactive interface, the message model, the interactive flow of messages, the test flow, the test-related parameters, etc. in the test script can be configured, and then a test script is formed to realize automated testing.

[0077] Optionally, in one embodiment of the present invention, the method further comprises:

[0078] If it is necessary to test new services of the network element under test, establish message content and process items by adding a new test script;

[0079] Determine the message template for accuracy verification and generate new test scripts.

[0080] Optionally, in one embodiment of the present invention, the method further comprises:

[0081] In the script establishment interface, receiving a test case selection operation and an operation mode selection operation, determining the number of test cases in the test script, and whether the test script is to be executed serially or in parallel;

[0082] In the script establishment interface, a trigger operation for configuring a test case interval and a number of cycles is received to determine a test flow of the test script.

[0083] In summary, the method provided in the embodiment of the present application includes: simulating several simulated network elements connected to the network element under test through a script; exchanging information with the network element under test through an interface corresponding to the simulated network element, and receiving or sending a message; verifying the accuracy of the message, or verifying the message sending and receiving process, and determining the test result according to the verification result. The embodiment of the present application can realize automated testing by simulating the sending and receiving messages and the sending and receiving process during the test through a script, which is conducive to improving the test efficiency.

[0084] Below, refer to Figure 3 The specific embodiment shown is used to introduce the test method provided by this application in detail:

[0085] Taking the core network element SMF as an example, the main network elements connected to the outside of the core network are AMF, PCF, and UPF, and the corresponding interfaces are N11, N7, and N4 interfaces. This test solution simulates AMF, PCF, and UPF (i.e., the simulated network elements in the application) through software, implements the protocol flow of their N11, N7, and N4 interfaces (i.e., the first interface, the second interface, and the third interface in this application), and performs surround testing on the network elements to verify that the functions of SMF comply with the protocol specifications.

[0086] This test solution is based on the Linux operating system, traditional X86 or ARM general-purpose servers and IP networks, and uses software scripting to simulate AMF, PCF and UPF, and automatically interacts with SMF to send and receive messages on the N11, N7, and N4 interfaces. The correctness of the messages and the correctness of the process are verified in the script, thereby achieving the purpose of verifying the SMF process function.

[0087] The simulation test tool is divided into three modules:

[0088] Test core communication module: This module mainly implements several interface protocols such as N11, N7, N4, etc. that communicate with SMF, and is used to simulate several network elements surrounding SMF. This module only performs message sending, receiving, transiting, encoding and decoding, and does not parse and process message services and processes. Messages received from the SMF interface will be forwarded to the corresponding script after decoding, and messages received from the script will be forwarded to SMF from the corresponding interface after encoding.

[0089] Test script function module: This module implements the logic of simulating network elements to perform surround testing on SMF. The script simulates the behavior of the sessions of the AMF / PCF / UPF network elements on each interface, and SMF will think that it is connected to the real network element.

[0090] Take the mobile phone online test as an example, write a test script, refer to Figure 2 As shown, the main process of the test script is as follows:

[0091] The first step is to send a text-defined create session request message to the communication module. The communication module encodes and sends it to SMF through the N11 interface simulating AMF①;

[0092] Step 2: On the simulated N7 interface, the communication module receives a request message from the SMF requesting the PCF to create a session②. The communication module decodes the message and forwards it to the test script. The test script processes the message and returns a response message to the communication module. The communication module then sends the encoded response message to the SMF from the N7 interface③.

[0093] Step 3: On the simulated N4 interface, the communication module receives a request message from the SMF requesting the UPF to create a session④. The communication module decodes the message and forwards it to the test script. After processing, the test script returns a response message to the communication module. The communication module then sends the encoded response message from N4 to the SMF⑤.

[0094] In the fourth step, on the simulated N11 interface, the communication module receives the create session response message⑥ sent by the SMF. The communication module decodes the message and forwards it to the test script. The test script checks and confirms that the message is correct, and the test process is considered to have ended correctly.

[0095] If any test message or process fails, the test script can detect and report the error.

[0096] Test tool management module: This module is mainly responsible for configuring and running the core communication module and all test scripts, supporting automated operations, and collecting statistics on test reports.

[0097] In some embodiments, the present application can implement a custom test process, and the test core communication module generally does not need to be updated after completion.

[0098] When you need to test a new service in the core network, for example, if SMF implements a new function, you can add some message definitions to some messages sent and received. At this time, you can add a test script to simulate the network elements connected to SMF, and also support the definition and process processing of these message definitions. Based on the message exchange with SMF, you can verify whether SMF carries these message contents according to the protocol function and whether the process conforms to the new function definition. The output results obtained by running the script can complete the test verification of this new function of SMF.

[0099] In some embodiments, the present application can realize automated testing. The management module of the test tool can automatically run all test cases, complete the testing of all functional items, automatically collect test results and output reports through pre-configuration, without manual intervention and operation. The test cases required by the user are stored in the form of script files or in a database, and each test script can support one or more test cases.

[0100] The management module is responsible for managing test cases and providing an interactive interface with the user, including command line mode and graphical interface mode. The management module provides the following configurations:

[0101] Configuring the communication interface with the network element:

[0102] Configure each interface of the network element under test, including IP address, port number, and various attribute configurations required by the interface;

[0103] Configure the service IP / port number of the communication module and the service IP / port number of the script;

[0104] Test case and test process management configuration:

[0105] On the interface, you can select the test cases (multiple) to be run and the running mode (serial or parallel);

[0106] Configure the test interval, number of failed attempts, and number of test cycles;

[0107] Test message configuration:

[0108] Users can predefine the message to be sent, edit and save it in text format. After the test case reads the message definition, it uses the message as a template to generate a message to be sent.

[0109] Alarm management configuration:

[0110] Set the alarm level and alarm items, including the following:

[0111] Network link interruption alarm;

[0112] CPU overload alarm;

[0113] Test script failure alarm;

[0114] Failure rate alarm;

[0115] Notification management configuration:

[0116] The test status results can be proactively notified to multiple users in real time via email, SMS, WeChat, and various mobile apps, such as test progress, test results, and alarm information.

[0117] The testing process is as follows:

[0118] 1. The user configures the interfaces on the test tool side and the network element under test side respectively;

[0119] 2. The user selects the test cases to be run and arranges the order of the test cases;

[0120] 3. The user configures the test message template and test process (serial or parallel) required by the test case;

[0121] 4. The user configures the alarm level and the email address, mobile phone number, WeChat ID and other information to receive test result notifications;

[0122] 5. Click Start in the graphical interface or type a command in the command line to start the test;

[0123] 6. The test script is loaded and automatically executed, and the test results are summarized to the management module in real time;

[0124] 7. The management module notifies users via email, SMS, WeChat, etc. according to the configuration;

[0125] 8 Users can also check the test progress, test status, and test results at any time in the management module.

[0126] It can be seen that the embodiment of the present application implements a simulation enclosure test of a core network element on a general server; the simulation network element test tool is designed to be divided into a communication core module and a test script business processing module; the test tool adopts an implementation mechanism that separates the communication core module and the specific test business script module; the communication core module is independent of the test business and is only responsible for creating and maintaining the basic link and encoding and decoding of the interface, and transferring business messages; the communication core module and the test script communicate via TCP / IP to encapsulate the messages that need to be transferred; the test script can arbitrarily edit and verify the test success conditions as needed to verify various 5G business process steps; the test script constructs 3GPP-defined messages in text format, and flexibly fills in the message content in text format to support respective test business scenarios; to implement a new test case, it is only necessary to fill in the sent message content with text in the test script, determine the received text message content, and verify whether the message flow is correct, without modifying the communication core module code; the test script can use a pre-defined message template to generate and send the tested message; the test script can use The pre-defined message template is compared with the message sent by the network element to determine whether it is correct; the test script is implemented in a general scripting language, including but not limited to Python, Perl, Ruby, Tcl, etc.; the test script is stored in a script file or database, and each test script can contain one or more test cases; the script can be automatically run and verify the test results according to user needs, covering all test scenarios and use cases without manual intervention; there is no limit on the number and scenario of test scripts, and users can continuously add new test scripts to implement various new 5G business tests; the method of automatic script operation can be run in serial mode, executing one script before executing the next one; the method of automatic script operation can also be run in parallel, with all scripts executing concurrently at the same time; after the user starts the test, the test script automatically runs and interacts with the network element under test to execute the test steps without manual intervention; the test script operation results are automatically collected and presented to the user through the management module; the automated test results can be notified to customers via email, SMS, WeChat, and mobile app.

[0127] The embodiments of the present application do not require the purchase of dedicated test instruments to simulate and test core network elements. They utilize existing general-purpose servers based on the Linux operating system and IP network, and do not require dedicated hardware and equipment. Test cases can be flexibly defined and expanded as needed to support various new business tests. Automated testing can be achieved without the need for manual test execution one by one.

[0128] Secondly, refer to the attached Figure 4 A network element testing system for a 5G network proposed according to an embodiment of the present invention is described.

[0129] Figure 4 1 is a schematic diagram of the structure of a network element test system of a 5G network according to an embodiment of the present invention, wherein the system specifically includes:

[0130] The first module 310 is used to simulate several simulated network elements connected to the network element under test through scripts;

[0131] The second module 320 is used to interact with the network element under test through an interface corresponding to the simulated network element, and receive or send a message;

[0132] The third module 330 is used to verify the accuracy of the message, or verify the message sending and receiving process, and determine the test result according to the verification result.

[0133] Optionally, in one embodiment of the present invention, the system further includes a fourth module, configured to:

[0134] Establish a network element test architecture for 5G networks, including:

[0135] A communication module, used to simulate several simulated network elements connected to the network element under test, and to perform sending, receiving, transferring, encoding and decoding processing on the message;

[0136] The script module is used to establish surround test logic for simulating the plurality of simulated network elements, and to simulate the behaviors of the sessions of the plurality of simulated network elements on the interface.

[0137] Optionally, in one embodiment of the present invention, the system further includes a fifth module, configured to:

[0138] Display the script creation interface;

[0139] In the script establishment interface, receiving a trigger operation for configuring the tested network element interface and the interactive simulated network element interface, and configuring the tested network element interface and the simulated network element interface;

[0140] In the script establishment interface, receiving a trigger operation for establishing a test message template, and configuring a message template corresponding to the message;

[0141] In the script creation interface, receiving a trigger operation for configuring a test case and generating a test script;

[0142] In the test interface, a trigger operation for starting the test is received, the test script is run, and the test result is obtained.

[0143] Optionally, in one embodiment of the present invention, the system further includes a sixth module, configured to:

[0144] If it is necessary to test new services of the network element under test, establish message content and process items by adding a new test script;

[0145] Determine the message template for accuracy verification and generate new test scripts.

[0146] Optionally, in one embodiment of the present invention, the system further includes a seventh module, configured to:

[0147] In the script establishment interface, receiving a test case selection operation and an operation mode selection operation, determining the number of test cases in the test script, and whether the test script is to be executed serially or in parallel;

[0148] In the script establishment interface, a trigger operation for configuring a test case interval and a number of cycles is received to determine a test flow of the test script.

[0149] It can be seen that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0150] Reference Figure 5 , an embodiment of the present invention provides a network element testing device for a 5G network, comprising:

[0151] at least one processor 410;

[0152] At least one memory 420, used to store at least one program;

[0153] When the at least one program is executed by the at least one processor 410, the at least one processor 410 implements the network element testing method of the 5G network.

[0154] Similarly, the contents of the above method embodiments are all applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0155] An embodiment of the present invention also provides a computer-readable storage medium, which stores a program executable by a processor. When the program executable by the processor is executed by the processor, it is used to execute the above-mentioned network element testing method of the 5G network.

[0156] Similarly, the contents of the above method embodiments are all applicable to the present storage medium embodiments. The functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0157] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.

[0158] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

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

[0160] The logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable programs for implementing the logical functions, and may be embodied in any computer-readable medium for use by a program execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch and execute a program from a program execution system, device or apparatus), or in conjunction with such program execution systems, devices or apparatuses. For purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by a program execution system, device or apparatus, or in conjunction with such program execution systems, devices or apparatuses.

[0161] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0162] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable program execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0163] In the above description of this specification, the description with reference to the terms "one embodiment / example", "another embodiment / example" or "certain embodiments / examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0164] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

[0165] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present invention.

Claims

1. A network element testing method for a 5G network, characterized in that: The following steps are involved: Several simulated network elements that are connected to the network element under test are simulated through scripts; Performing information interaction with the network element under test through an interface corresponding to the simulated network element, and receiving or sending messages; Verify the accuracy of the message, or verify the message sending and receiving process, and determine the test result based on the verification result.

2. The network element testing method of the 5G network according to claim 1, characterized in that: The method further comprises: Establish a network element test architecture for 5G networks, including: A communication module, used to simulate several simulated network elements connected to the network element under test, and to perform sending, receiving, transferring, encoding and decoding processing on the message; The script module is used to establish surround test logic for simulating the plurality of simulated network elements, and to simulate the behaviors of the sessions of the plurality of simulated network elements on the interface.

3. The network element testing method of the 5G network according to claim 2, characterized in that: The step of performing information interaction with the network element under test and receiving or sending a message through an interface corresponding to the simulated network element includes: Sending a session creation request to the network element under test through a first interface corresponding to the first simulated network element; receiving, through a second interface corresponding to a second simulated network element, a second request issued by the network element under test according to the request to create a session, and sending the second request to a test script of a script module, receiving a second response returned by the test script, and sending the second response to the network element under test through the second interface; the second request is to request the second simulated network element to create a session; receiving a third request sent by the network element under test through a third interface corresponding to the third simulated network element, decoding the third request and sending it to the test script of the script module, receiving a third response returned by the test script, decoding the third response and sending it to the network element under test through the third interface; the third request is for requesting the third simulated network element to create a session; A create session response message sent back by the tested network element is received through the first interface, and the create session response message is decoded and sent to the test script to verify the message accuracy and the sending and receiving process.

4. The network element testing method of the 5G network according to claim 2, characterized in that: The method further comprises: Establish a management module to configure test cases and provide an interactive interface.

5. The network element testing method of the 5G network according to claim 1, characterized in that: The method further comprises: Display the script creation interface; In the script establishment interface, receiving a trigger operation for configuring the tested network element interface and the interactive simulated network element interface, and configuring the tested network element interface and the simulated network element interface; In the script establishment interface, receiving a trigger operation for establishing a test message template, and configuring a message template corresponding to the message; In the script creation interface, receiving a trigger operation for configuring a test case and generating a test script; In the test interface, a trigger operation for starting the test is received, the test script is run, and the test result is obtained.

6. The 5G network element testing method according to claim 1, characterized in that: The method further comprises: If it is necessary to test new services of the network element under test, establish message content and process items by adding a new test script; Determine the message template for accuracy verification and generate new test scripts.

7. The 5G network element testing method according to claim 5, characterized in that: The method further comprises: In the script establishment interface, receiving a test case selection operation and an operation mode selection operation, determining the number of test cases in the test script, and whether the test script is to be executed serially or in parallel; In the script establishment interface, a trigger operation for configuring a test case interval and a number of cycles is received to determine a test flow of the test script.

8. A network element testing system for a 5G network, characterized in that: include: The first module is used to simulate several simulated network elements connected to the network element under test through scripts; The second module is used to interact with the network element under test through an interface corresponding to the simulated network element, and receive or send a message; The third module is used to verify the accuracy of the message, or to verify the message sending and receiving process, and determine the test result according to the verification result.

9. A network element testing device for a 5G network, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the network element testing method of the 5G network as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a program executable by a processor, characterized in that: The processor-executable program is used to implement the network element testing method of the 5G network as described in any one of claims 1 to 7 when executed by the processor.