Rapid construction method, system and equipment for 5G core network performance test and medium

By creating UERANSIM base stations and 5G virtual terminals in the Linux kernel, and combining Redis database and Python scripts, the rapid construction of 5G core network performance tests was achieved, solving the problems of high cost and long cycle in existing technologies and improving testing efficiency.

CN118921686APending Publication Date: 2024-11-08INSPUR COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411267889.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In existing technologies, 5G core network performance testing requires the use of real base stations or specialized instruments, resulting in long debugging cycles, high costs, and complex operations.

Method used

A UERANSIM base station was created using the Linux kernel, a 5G virtual terminal was created using network namespace technology, and the N3GTPU tunnel TEID and tunnel IP information were learned through the Redis database. A Python script was written to implement GTP-U decapsulation of the N3 interface, and network performance testing tools such as Iperf, FTP, and Ping were configured to achieve rapid testing.

Benefits of technology

It enables the rapid construction of 5G core network performance tests, reduces costs, shortens the debugging cycle, and improves testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921686A_ABST
    Figure CN118921686A_ABST
Patent Text Reader

Abstract

The invention discloses a rapid construction method, system and device for a 5G core network performance test and a medium, belongs to the technical field of 5G core network testing, and aims to solve the technical problem of how to complete the performance test of the 5G core network with high efficiency and low cost. The adopted technical scheme is as follows: creating a UERANSIM base station through a Linux kernel; creating a 5G virtual terminal through a network namespace technology; the UE RANSIM base station initiates a UE terminal registration process, and in the registration process, the Redis database learns and records the information of the TEID and the tunnel IP of the N3GTPU tunnel; writing a python script, accessing a Redis database to learn N3 tunnel information, and realizing GTP-U de-encapsulation of an N3 interface; and a network performance test tool is configured in the 5G virtual terminal, so that the function and the performance of the 5G core network can be rapidly tested.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of 5G core network testing technology, and specifically to a 5G core network performance test rapid construction method, system, device and medium. Background Art

[0002] The 5G Core (5GC) is the core part of the 5G wireless communication system, responsible for providing high-speed, low-latency, and high-reliability network services. The 5GC core network adopts a service-based architecture (SBA), which is a flexible and modular design to support a variety of application scenarios and business needs. By splitting the network function (NF) into independent services and connecting them to the system through interfaces, the decoupling and integration of network functions are achieved. This architecture has the advantages of load sharing, disaster recovery, simple expansion, easy upgrade, and network openness. At present, the performance test of the 5GC core network needs to be carried out with the help of real base stations or instruments. The current mainstream test instruments are Spirent and Touchpoint.

[0003] The 5G core network (5GC) is the core component of the 5G wireless communication system, responsible for processing and managing key functions such as data transmission, session management, mobility management, and policy control in the 5G network. The connection of real base stations and instruments to the 5G core network requires professional technical support, resulting in a long debugging cycle, high cost of the instrument itself, and complex operations in the joint debugging and testing phase.

[0004] Therefore, how to complete the performance test of the 5G core network efficiently and at low cost is a technical problem that needs to be solved urgently. Summary of the invention

[0005] The technical task of the present invention is to provide a 5G core network performance test rapid construction method, system, equipment and medium to solve the problem of how to complete the performance test of the 5G core network efficiently and at low cost.

[0006] The technical task of the present invention is achieved in the following way: a method for quickly constructing a 5G core network performance test, the method is specifically as follows:

[0007] Create a UERANSIM base station through the Linux kernel;

[0008] Create 5G virtual terminals through network namespace technology;

[0009] The UERANSIM base station initiates the UE terminal registration process. During the registration process, the Redis database learns and records the information of the N3GTPU tunnel TEID and tunnel IP;

[0010] Write a Python script to access the Redis database to learn N3 tunnel information and implement the GTP-U decapsulation of the N3 interface;

[0011] Configure network performance testing tools in the 5G virtual terminal to achieve rapid testing of the functions and performance of the 5G core network.

[0012] Preferably, create a 5G virtual terminal through network namespace technology as follows:

[0013] Create a new Network Namespaces under Linux. The key code is:

[0014] ip netns add <Namespace name>;

[0015] Create a pair of virtual Ethernet interfaces (Virtual Etherenet, veth0 and veth1). The key code is: iplink add veth0 type veth peer name veth1;

[0016] Specify the interface for the new Network Namespace. The key code is: ip link set veth1 netns <Namespace name>;

[0017] Enter the new Network Namespace and configure the 5G terminal IP address. The key code is:

[0018] ip netns exec ue bash

[0019] ip ad a 2020:8:19:1::1 / 64 dev veth1.

[0020] Preferably, the TEID and tunnel IP information of the N3 GTPU tunnel include the TEID and tunnel IP information of the downlink N3 GTPU tunnel and the TEID and tunnel IP information of the uplink N3 GTPU tunnel;

[0021] Among them, the TEID and tunnel IP information of the downlink N3 GTPU tunnel are carried in the NG Application Protocol (PDUSessionResourceSetupRequest) message during the registration process;

[0022] The TEID and tunnel IP information of the uplink N3 GTPU tunnel are carried in the NG Application Protocol (PDUSessionResourceSetupResponse) message during the registration process.

[0023] Preferably, the network performance testing tool includes Iperf, Ftp, and Ping.

[0024] A 5G core network performance testing rapid construction system, the system includes:

[0025] Creation module one, used to create a UERANSIM base station through the Linux kernel;

[0026] Creation module two, used to create a 5G virtual terminal through network namespace technology;

[0027] Learning record module, used to initiate the UE terminal registration process through the UERANSIM base station. During the registration process, the Redis database learns and records the information of the N3 GTPU tunnel TEID and tunnel IP;

[0028] Writing module, used to write a python script to access the Redis database to learn N3 tunnel information and implement GTP-U de-encapsulation of the N3 interface;

[0029] Configuration module, used to configure the network performance testing tool in the 5G virtual terminal to achieve rapid testing of the 5G core network functions and performance.

[0030] Preferably, the working process of the creation module two is specifically as follows:

[0031] (1) Create a new Network Namespaces under Linux, the key code is:

[0032] ip netns add <Namespace name>;

[0033] (2) Create a pair of virtual Ethernet interfaces (Virtual Etherenet, veth0 and veth1), the key code is: ip link add veth0 type veth peer name veth1;

[0034] (3) Specify the interface for the new Network Namespace, the key code is: ip link set veth1 netns <Namespace name>;

[0035] (4) Enter the new Network Namespace and configure the 5G terminal IP address, the key code is:

[0036] ip netns exec ue bash

[0037] ip ad a 2020:8:19:1::1 / 64devveth1.

[0038] Preferably, the TEID and tunnel IP information of the N3 GTPU tunnel includes the TEID and tunnel IP information of the downlink N3 GTPU tunnel and the TEID and tunnel IP information of the uplink N3 GTPU tunnel;

[0039] Among them, the TEID and tunnel IP information of the downlink N3 GTPU tunnel are carried in the NG ApplicationProtocol (PDUSessionResourceSetupRequest) message in the registration process;

[0040] The TEID and tunnel IP information of the uplink N3 GTPU tunnel are carried in the NG Application Protocol (PDUSessionResourceSetupResponse) message in the registration process.

[0041] Preferably, network performance testing tools include Iperf, Ftp and Ping.

[0042] An electronic device comprising: a memory and at least one processor;

[0043] Wherein, the memory stores a computer program;

[0044] The at least one processor executes the computer program stored in the memory, so that the at least one processor executes the 5G core network performance test rapid construction method as described above.

[0045] A computer-readable storage medium having a computer program stored therein, wherein the computer program can be executed by a processor to implement the 5G core network performance test rapid construction method as described above.

[0046] The 5G core network performance test rapid construction method, system, device and medium of the present invention have the following advantages:

[0047] (1) The present invention can quickly complete the construction of 5G core network performance testing, solving the high cost and long cycle problems brought about by the traditional 5G test system using instruments or real base stations;

[0048] (ii) The present invention simulates a 5G virtual terminal through a simulated base station created by the Linux kernel through the network namespace technology, and configures a performance testing tool in the 5G virtual terminal. Then, the GTP-U decapsulation of the N3 interface is implemented through a python script, thereby achieving efficient and low-cost performance rapid testing of the 5G core network. Brief Description of the Drawings

[0049] The present invention will be further described below with reference to the accompanying drawings.

[0050] Attached Figure 1 It is a schematic diagram of a rapid construction method for 5G core network performance testing. Detailed Implementation Modes

[0051] The rapid construction method, system, device and medium of the 5G core network performance testing of the present invention will be described in detail below with reference to the accompanying drawings of the specification and specific embodiments.

[0052] Embodiment 1:

[0053] As attached Figure 1 As shown, this embodiment provides a rapid construction method for 5G core network performance testing. The method is as follows:

[0054] S1. Create a UERANSIM base station through the Linux kernel;

[0055] S2. Create a 5G virtual terminal through network namespace technology;

[0056] S3. The UERANSIM base station initiates the UE terminal registration process. During the registration process, the Redis database learns and records the information of the N3 GTPU tunnel TEID and tunnel IP;

[0057] S4. Write a python script to access the Redis database to learn the N3 tunnel information and implement the GTP-U de-encapsulation of the N3 interface;

[0058] S5. Configure network performance testing tools in the 5G virtual terminal to achieve rapid testing of the functions and performance of the 5G core network.

[0059] The creation of the 5G virtual terminal through network namespace technology in step S2 of this embodiment is specifically as follows:

[0060] S201. Create a new Network Namespaces under Linux. The key code is:

[0061] ip netns add <Namespace name>;

[0062] S202. Create a pair of virtual Ethernet interfaces (Virtual Etherenet, veth0 and veth1). The key code is: ip link add veth0 type veth peer name veth1;

[0063] S203. Specify an interface for the new Network Namespace. The key code is: ip link set veth1 netns <Namespace name>;

[0064] S204. Enter the new Network Namespace and configure the IP address of the 5G terminal. The key code is:

[0065] ip netns exec ue bash

[0066] ip ad a 2020:8:19:1::1 / 64 dev veth1.

[0067] The TEID and tunnel IP information of the N3 GTPU tunnel in step S3 of this embodiment include the TEID and tunnel IP information of the downlink N3 GTPU tunnel and the TEID and tunnel IP information of the uplink N3 GTPU tunnel;

[0068] Among them, the TEID and tunnel IP information of the downlink N3 GTPU tunnel are carried in the NG Application Protocol (PDUSessionResourceSetupRequest) message during the registration process;

[0069] The TEID and tunnel IP information of the uplink N3 GTPU tunnel are carried in the NG Application Protocol (PDUSessionResourceSetupResponse) message during the registration process.

[0070] The network performance testing tools in step S5 of this embodiment include Iperf, Ftp, and Ping.

[0071] Embodiment 1:

[0072] This embodiment provides a 5G core network performance testing rapid construction system, which includes:

[0073] Creation module one, used to create a UERANSIM base station through the Linux kernel;

[0074] Creation module two, used to create a 5G virtual terminal through network namespace technology;

[0075] Learning record module, used to initiate the UE terminal registration process through the UERANSIM base station. During the registration process, the Redis database learns and records the information of the N3 GTPU tunnel TEID and tunnel IP;

[0076] A writing module for writing Python scripts to access the Redis database to learn N3 tunnel information and implement GTP-U de-encapsulation of the N3 interface;

[0077] A configuration module for configuring network performance testing tools in a 5G virtual terminal to achieve rapid testing of 5G core network functions and performance.

[0078] The working process of the creation module two in this embodiment is specifically as follows:

[0079] (1) Create a new Network Namespaces under Linux. The key code is:

[0080] ip netns add <Namespace name>;

[0081] (2) Create a pair of virtual Ethernet interfaces (Virtual Etherenet, veth0 and veth1). The key code is: ip link add veth0 type veth peer name veth1;

[0082] (3) Specify the interface for the new Network Namespace. The key code is: ip link set veth1 netns <Namespace name>;

[0083] (4) Enter the new Network Namespace and configure the 5G terminal IP address. The key code is:

[0084] ip netns exec ue bash

[0085] ip ad a 2020:8:19:1::1 / 64 dev veth1.

[0086] In this embodiment, the TEID and tunnel IP information of the N3 GTPU tunnel include the TEID and tunnel IP information of the downlink N3 GTPU tunnel and the TEID and tunnel IP information of the uplink N3 GTPU tunnel;

[0087] Among them, the TEID and tunnel IP information of the downlink N3 GTPU tunnel are carried in the NG Application Protocol (PDUSessionResourceSetupRequest) message during the registration process;

[0088] The TEID and tunnel IP information of the uplink N3 GTPU tunnel are carried in the NG Application Protocol (PDUSessionResourceSetupResponse) message in the registration process.

[0089] The network performance testing tools in this embodiment include Iperf, Ftp and Ping.

[0090] Embodiment 3:

[0091] This embodiment also provides an electronic device, including: a memory and a processor;

[0092] Wherein, the memory stores computer-executable instructions;

[0093] The processor executes the computer execution instructions stored in the memory, so that the processor executes the 5G core network performance test rapid construction method in any embodiment of the present invention.

[0094] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor may be a microprocessor or any conventional processor, etc.

[0095] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the electronic device by running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory can also include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, a flash memory card, at least one disk storage period, a flash memory device, or other volatile solid-state storage devices.

[0096] Embodiment 4:

[0097] This embodiment also provides a computer-readable storage medium, which stores a plurality of instructions, which are loaded by a processor to enable the processor to execute the 5G core network performance test rapid construction method in any embodiment of the present invention. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code that implements the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.

[0098] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.

[0099] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RYM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer via a communication network.

[0100] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.

[0101] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or written to a memory provided in an expansion unit connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or the expansion unit is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.

[0102] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for quickly constructing 5G core network performance testing, characterized in that: The method is as follows: Create a UERANSIM base station through the Linux kernel; Create 5G virtual terminals through network namespace technology; The UERANSIM base station initiates the UE terminal registration process. During the registration process, the Redis database learns and records the information of the N3 GTPU tunnel TEID and tunnel IP; Write a Python script to access the Redis database to learn N3 tunnel information and implement GTP-U decapsulation of the N3 interface; Configure network performance testing tools in the 5G virtual terminal to quickly test the functions and performance of the 5G core network.

2. The 5G core network performance test rapid construction method according to claim 1 is characterized in that: The details of creating a 5G virtual terminal through network namespace technology are as follows: Create new Network Namespaces in Linux; Create a pair of virtual Ethernet interfaces (Virtual Etherenet, veth0 and veth1); Specify an interface for the new Network Namespace; Enter the new Network Namespace and configure the 5G terminal IP address.

3. The 5G core network performance test rapid construction method according to claim 1 is characterized in that: The TEID and tunnel IP information of the N3 GTPU tunnel includes the TEID and tunnel IP information of the downlink N3 GTPU tunnel and the TEID and tunnel IP information of the uplink N3 GTPU tunnel; Among them, the TEID and tunnel IP information of the downlink N3 GTPU tunnel are carried in the NG Application Protocol (PDUSessionResourceSetupRequest) message in the registration process; The TEID and tunnel IP information of the uplink N3 GTPU tunnel are carried in the NG Application Protocol (PDUSessionResourceSetupResponse) message in the registration process.

4. The 5G core network performance test rapid construction method according to any one of claims 1 to 3, characterized in that: Network performance testing tools include Iperf, Ftp and Ping.

5. A 5G core network performance test rapid construction system, characterized in that: The system includes: Create module 1, which is used to create a UERANSIM base station through the Linux kernel; Create module 2, which is used to create a 5G virtual terminal through network namespace technology; The learning and recording module is used to initiate the UE terminal registration process through the UERANSIM base station. During the registration process, the Redis database learns and records the information of the N3 GTPU tunnel TEID and tunnel IP; Write a module for writing Python scripts to access the Redis database to learn N3 tunnel information and implement GTP-U decapsulation of the N3 interface; The configuration module is used to configure the network performance test tool in the 5G virtual terminal to achieve rapid testing of the 5G core network functions and performance.

6. The 5G core network performance test rapid construction system according to claim 5, characterized in that: The working process of creating module 2 is as follows: (1) Create new Network Namespaces under Linux; (2) Create a pair of virtual Ethernet interfaces (Virtual Etherenet, veth0 and veth1); (3) Specify an interface for the new Network Namespace; (4) Enter the new Network Namespace and configure the 5G terminal IP address.

7. The 5G core network performance test rapid construction system according to claim 5, characterized in that: The TEID and tunnel IP information of the N3 GTPU tunnel includes the TEID and tunnel IP information of the downlink N3 GTPU tunnel and the TEID and tunnel IP information of the uplink N3 GTPU tunnel; Among them, the TEID and tunnel IP information of the downlink N3 GTPU tunnel are carried in the NG Application Protocol (PDUSessionResourceSetupRequest) message in the registration process; The TEID and tunnel IP information of the uplink N3 GTPU tunnel are carried in the NG Application Protocol (PDUSessionResourceSetupResponse) message in the registration process.

8. The 5G core network performance test rapid construction system according to any one of claims 5-7, characterized in that: Network performance testing tools include Iperf, Ftp and Ping.

9. An electronic device, characterized in that: include: memory and at least one processor; Wherein, the memory stores a computer program; The at least one processor executes the computer program stored in the memory, so that the at least one processor executes the 5G core network performance test rapid construction method as described in any one of claims 1 to 4.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which can be executed by a processor to implement the 5G core network performance test rapid construction method as described in any one of claims 1 to 4.