A 5G wireless resource management method, system and device

Through memory pool management and hash table mapping, the problem of dispersion and coupling of resource configuration parameters on the 5G NRDU side is solved, efficient and fast querying of resource management is achieved, and the efficiency and readability of the code are improved.

CN116431330BActive Publication Date: 2024-09-20NANJING INFORMATION HIGH-SPEED RAILWAY RES INST OF SCI AND TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310231112.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-10
Publication Date
2024-09-20
Estimated Expiration
2043-03-10

AI Technical Summary

Technical Problem

The 5G NRDU side control plane contains many wireless resource configuration parameters, resulting in scattered code usage, slow query speed, and coupling between some parameters, affecting the efficiency and readability of the code.

Method used

The memory pool management mechanism and hash table mapping relationship are used to allocate and release resources through pointer arrays and cursor variables. The multiplier 33 algorithm hash function is used to speed up search and improve code efficiency and readability.

Benefits of technology

It effectively improves the efficiency and readability of the code, speeds up the query speed, and simplifies the resource management process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116431330B
    Figure CN116431330B
Patent Text Reader

Abstract

The present invention relates to the field of 5GNR technology, and in particular to a 5G wireless resource management method, system and device. The 5G wireless resource management method comprises the following steps: generating all wireless resources to be managed; generating an array array1, generating a pointer array free1; generating an allocation cursor variable head and a release cursor variable tail; when allocating resources, the resources pointed to by the data of free1[head] are allocated, and the data of free1[head] is emptied, and the allocation cursor variable head is shifted right by one position; when releasing resources, the address of the released resource is written into free1[tail], and then tail is shifted right by one position, and if it exceeds the maximum range, it starts again from the leftmost initial position. The present invention can effectively improve the efficiency and readability of the code, and at the same time speed up the query speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of 5GNR, and in particular to a 5G wireless resource management method, system and device. Background Art

[0002] The Radio Resource Management (RRM) function is an important part of the Radio Network Controller (RNC), and its functions mainly include the following three aspects: Ensure the quality of service (QoS) of the services requested by users, including block error rate (BLER), bit error rate (BER), time delay (Delay), service priority, etc. Ensure the coverage of system planning. Make full use of and improve system capacity.

[0003] The functions of RRM are mainly calculation, control and resource configuration. It is mainly composed of algorithm module, decision module, resource allocation module, wireless resource database and external interface module. The most important one is the algorithm module, which includes the following functional modules. Power control (PC, Power Control) module, handover control (HC, Handover Control) module, access control (AC, Admission Control) module, load control (LC, Load Control) module, packet scheduling (PS, Packet Scheduler) module, dynamic channel allocation (DCA) module, radio link monitoring (RLS) module and resource management (RM, Resource Management) module. This article mainly involves the resource management module: including code allocation (CA, Code Assignment), logical channel resources and transmission channel resources management.

[0004] The base station of the 5GNR wireless network is called gNB, which consists of two physical entities: CU (Centralized Unit) and DU (Distributed Unit). The module relationship is as follows: Figure 1 As shown in the figure. In 5G base stations, CU supports SDAP, PDCP and RRC high-level protocol stacks, while DU supports RLC, MAC and PHY low-level protocol stacks. On the 5GNRDU side control plane, there are many wireless resource configuration parameters, involving many protocols, which are used in the code in a scattered manner, with slow query speed, coupled parameters, and insufficient independence between variables, which affects the efficiency and readability of the code. Summary of the invention

[0005] Since the control plane on the 5GNRDU side contains many wireless resource configuration parameters, involving many protocols, the use in the code is relatively scattered, the query speed is slow, and some parameters are coupled, and the variables are not independent enough, which affects the efficiency and readability of the code. Therefore, a 5G wireless resource management method, system and device are provided. For different types of configuration parameters, an appropriate method is used to perform effective wireless resource management, thereby improving the efficiency and readability of the code.

[0006] A 5G wireless resource management method comprises the following steps:

[0007] S1: Activate the cell and generate all the radio resources to be managed;

[0008] S2: Generate an array array1 of corresponding length according to the number of wireless resources, and store the wireless resources to be managed into the array array1;

[0009] S3: Generate pointer array free1, the length of which is equal to array1. The data stored in pointer array free1 are the addresses of each element in array1.

[0010] S4: Generate allocation cursor variable head and release cursor variable tail, both of which are subscripts of pointer array free1, and the initial assignment points to the same element of pointer array free1;

[0011] S5: When allocating resources, allocate the resources pointed to by the data of free1[head], and at the same time, clear the data of free1[head], and shift the allocation cursor variable head right by one position. If it exceeds the maximum range of the pointer array free1, start again from the leftmost initial position;

[0012] S6: When releasing resources, write the address of the released resource into free1[tail], and then shift tail right by one position. If it exceeds the maximum range, start again from the leftmost initial position.

[0013] Furthermore,

[0014] The allocation of cursor variable head and the release of cursor variable tail described in S4 are initially assigned to point to the first element of pointer array free1.

[0015] Furthermore,

[0016] S5 also includes establishing a mapping relationship between the resource pointed to by the data of free1[head] and the data to be searched through a hash table before clearing the data of free1[head] when allocating resources.

[0017] S6 also includes deleting the mapping relationship between the released resource and the data to be searched before the tail is shifted right by one position when the resource is released.

[0018] Furthermore,

[0019] When a mapping relationship is established through a hash table, the algorithm used by the hash function includes the multiplication-by-33 algorithm.

[0020] A 5G wireless resource management system, comprising the following modules:

[0021] Activation module: used to activate the cell and generate all wireless resources to be managed;

[0022] The storage module is used to generate an array array1 of a corresponding length according to the number of wireless resources, and store the wireless resources to be managed into the array array1;

[0023] Pointer module: used to generate pointer array free1, the length of which is equal to array1. The data stored in pointer array free1 are the addresses of each element in array1.

[0024] Cursor module: used to generate and allocate cursor variable head and release cursor variable tail, both of which are subscripts of pointer array free1, and the initial assignment points to the same element of pointer array free1;

[0025] Allocation module: When allocating resources, allocate the resources pointed to by the data of free1[head], clear the data of free1[head], and shift the allocation cursor variable head right by one position. If it exceeds the maximum range of the pointer array free1, it starts again from the leftmost initial position.

[0026] Release module: When releasing resources, the address of the released resource is written into free1[tail], and then tail is shifted right by one position. If it exceeds the maximum range, it starts again from the leftmost initial position.

[0027] Furthermore,

[0028] The allocation of cursor variable head and release of cursor variable tail described in the cursor module are initially assigned to point to the first element of the pointer array free1.

[0029] Furthermore,

[0030] The allocation module also includes establishing a mapping relationship between the resource pointed to by the data of free1[head] and the data to be searched through a hash table before clearing the data of free1[head] when allocating resources.

[0031] The release module also includes deleting the mapping relationship between the released resource and the data to be found before the tail is shifted right by one position when releasing the resource.

[0032] Furthermore,

[0033] When a mapping relationship is established through a hash table, the algorithm used by the hash function includes the multiplication-by-33 algorithm.

[0034] A 5G wireless resource management device, characterized by comprising:

[0035] Memory for storing computer programs;

[0036] A processor is used to implement the steps of the above-mentioned 5G wireless resource management method when executing the computer program.

[0037] Beneficial effects:

[0038] Using the 5G wireless resource management method provided by the present invention can effectively improve the efficiency and readability of the code, while speeding up the query speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 is a diagram showing the relationship between the RRM module and the base station;

[0040] Figure 2 This is a schematic diagram of memory pool allocation and release; DETAILED DESCRIPTION

[0041] In the DUCP module, there are a large number of wireless resource configuration parameters, some of which are cell-level configurations, and some of which are UE-specific resource configurations, that is, the resources of each UE are unique. Different resource management methods are required for different types of resource parameters.

[0042] Take the duUeFlapId parameter on the DU side as an example. This parameter is the ID of the FIAP interface of the UE on the DU side. This parameter is different for different UEs on the DU side. For such UE-specific parameters, it is suitable to use a memory pool for management.

[0043] The duUeFlapId parameter is described in detail below.

[0044] In this embodiment, the memory pool is a structure, which is used to store the duUeFlapId parameter and allocate and release the duUeFlapId parameter.

[0045] The memory pool structure includes array array1, which is used to store the duUeFlapId parameter; pointer array free1, which is used to store the address pointing to the elements in the array1; allocation cursor variable head, which is the array subscript of the pointer array free1, and the duUeFlapId parameter pointed to by free1[head] is the duUeFlapId parameter to be allocated; release cursor variable tail, which is the array subscript of the pointer array free1, completes the release of resources by storing the address of the duUeFlapId parameter to be released into free1[tail]; the number of available resources avail, which indicates the number of resources that can be allocated in the current memory pool; memory pool size size, which indicates the total length of the array1 in the memory pool.

[0046] The memory pool allocation and release process is as follows Figure 2 shown.

[0047] Activate the cell, calculate all duUeFlapId parameters, and start initializing the memory pool of duUeFlapId parameters. According to the total number of duUeFlapId parameters, create an array array1 of the corresponding length in the memory pool structure, and store the calculated duUeFlapId parameters in array array1. At the same time, create a pointer array free1 with the same length as array1. The addresses in free1 point to the elements in array1 in order. The memory pool size size is assigned to the length of array1, and the available resource quantity avail is assigned to the length of array1. The cursor variable head is allocated and the cursor variable tail is released, both pointing to the first element of the free1 array.

[0048] like Figure 2 As shown, when adding a UE, a resource is allocated from the memory pool and assigned to the corresponding variable of the UE context structure in the corresponding cell context. The memory pool allocates the element pointed to by the address stored at the head cursor in the current free1 array, that is, the duUeFlapId parameter pointed to by free1[head]. After the allocation is completed, the address stored at the head cursor in the current free1 array is cleared, and then the head is shifted right by one position. If it exceeds the maximum range of the free1 array, it starts again from the leftmost initial position. Each time a resource allocation operation is performed, the avail value is reduced by 1, and the minimum value of avail is 0. When it is 0, the memory pool can no longer allocate resources.

[0049] When deleting a UE, the resource is recycled to the memory pool. The release of resources is to assign the address of the duUeFlapId parameter of the deleted UE to the element free1[tail] at the tail cursor in the current free1 array, that is, to add the address of the released resource to the free1 array, and then shift tail right by one position. If it exceeds the maximum range, it will start again from the leftmost initial position. Each time a resource is released, the avail value increases by 1.

[0050] When deleting a cell, the memory pool is terminated. All resources in the pool need to be released first. When the number of available resources avail is equal to the memory pool size size, other variables in the structure are released to complete the termination of the memory pool.

[0051] Since the duUeFlapId parameter is often used to search for UE context, the original traversal search method is inefficient. To improve the search efficiency, a mapping relationship is established between the UE's duUeFlapId parameter and the corresponding UE context structure as an entry in the hash table to facilitate hash table search.

[0052] A hash table, also known as a hash table, is a data structure that is directly accessed based on a key value. It accesses records by mapping the key value to a position in the table to speed up the search. This mapping function is called a hash function, and the array that stores the records is called a hash table.

[0053] Hash tables take less time to store and search data than ordinary arrays, because for arrays, you need to traverse each element one by one, and when the amount of data is large, more time is required; for hash tables, each element address is calculated through a hash function. To find an element, you only need to calculate the hash value through the hash function to get an address number. The address corresponding to the number is the address of the element.

[0054] In this embodiment, a hash table array array2 is used to store the address of the UE context structure; the specific description is as follows:

[0055] When adding a UE, a duUeFlapId parameter is allocated from the memory pool. The allocated duUeFlapId parameter is operated through a hash function to obtain the hash function operation result m, which is the subscript of the array2 array. Then the address of the UE context structure of the added UE is stored in array2[m].

[0056] The hash function described in this embodiment mainly includes two parts. First, the duUeFlapId parameter is converted from a string to a number. This embodiment uses the multiplication 33 algorithm proposed by Daniel J Bernstein, and then uses methods such as the division remainder method and the square median method to obtain the value of m.

[0057] When deleting a UE, the value of m is obtained directly according to the duUeFlapId parameter of the UE and the hash function, and the address of the UE context structure corresponding to the UE stored in array2[m] is deleted.

[0058] When searching for the corresponding UE context based on the duUeFlapId parameter of a certain UE, it is only necessary to operate the duUeFlapId parameter through a hash function to obtain the operation result m of the hash function, and use it as the subscript of the array2 array to immediately obtain the address array2[m] of the UE context structure of this UE.

[0059] As for other UE-specific radio resources, if they are not needed for query, only the memory pool can be used for radio resource management without using a hash table.

[0060] For example, SR resources and CSI report resources are both UE-specific PUCCH (physical uplink control channel) resources. SR is a scheduling request, and CSIreport is a channel state information measurement report. For each UE, it has a unique and independent SR resource and CSIrepot resource. Therefore, the memory pool of these two resources can be declared in the cell context. When the cell is activated, all resource contents in the pool are calculated and placed in the corresponding memory pool. When adding a UE, an available resource is taken out of the pool and allocated to the UE. When deleting the UE, the resources obtained by the UE are returned to the pool. When deleting the cell, the memory pool is terminated.

[0061] For cell-level configuration parameters, different methods can be used for resource management in two situations. For most parameters that are not closely related to other fields, resource management can be performed by writing them into XML configuration files. When modifications are required, you do not need to search in the code, but can directly modify them in an independent XML configuration file. For some parameters that are easy to display in table form, such as the parameter configuration of PDSCH, PUSCH, and PUCCH, they can be written into the global variable table. This table format is conducive to improving the readability of the code and is easy to modify.

Claims

1. A 5G wireless resource management method, Features The following steps are involved: S1: Activate the cell and generate all the radio resources to be managed; S2: Generate an array array1 of corresponding length according to the number of wireless resources, and store the wireless resources to be managed into the array array1; S3: Generate pointer array free1, the length of which is equal to array1. The data stored in pointer array free1 are the addresses of each element in array1. S4: Generate allocation cursor variable head and release cursor variable tail, both of which are subscripts of pointer array free1, and the initial assignment points to the same element of pointer array free1; S5: When allocating resources, allocate the resources pointed to by the data of free1[head], and at the same time, clear the data of free1[head], and shift the allocation cursor variable head right by one position. If it exceeds the maximum range of the pointer array free1, start again from the leftmost initial position; S6: When releasing resources, write the address of the released resource into free1[tail], and then shift tail right by one position. If it exceeds the maximum range, start again from the leftmost initial position.

2. A 5G wireless resource management method according to claim 1, It is characterized in that The allocation of cursor variable head and the release of cursor variable tail described in S4 are initially assigned to point to the first element of pointer array free1.

3. A 5G wireless resource management method according to claim 1, It is characterized in that S5 also includes, when allocating resources, before clearing the data of free1[head], establishing a mapping relationship between the resource pointed to by the data of free1[head] and the data to be searched through a hash table; S6 also includes deleting the mapping relationship between the released resource and the data to be searched before the tail is shifted right by one position when the resource is released.

4. A 5G wireless resource management method according to claim 3, It is characterized in that When a mapping relationship is established through a hash table, the algorithm used by the hash function includes the multiplication-by-33 algorithm.

5. A 5G wireless resource management system, Features Includes the following modules: Activation module: used to activate the cell and generate all wireless resources to be managed; The storage module is used to generate an array array1 of a corresponding length according to the number of wireless resources, and store the wireless resources to be managed into the array array1; Pointer module: used to generate pointer array free1, the length of which is equal to array1. The data stored in pointer array free1 are the addresses of each element in array1. Cursor module: used to generate and allocate cursor variable head and release cursor variable tail, both of which are subscripts of pointer array free1, and the initial assignment points to the same element of pointer array free1; Allocation module: When allocating resources, allocate the resources pointed to by the data of free1[head], clear the data of free1[head], and shift the allocation cursor variable head right by one position. If it exceeds the maximum range of the pointer array free1, it starts again from the leftmost initial position. Release module: When releasing resources, the address of the released resource is written into free1[tail], and then tail is shifted right by one position. If it exceeds the maximum range, it starts again from the leftmost initial position.

6. A 5G wireless resource management system according to claim 5, It is characterized in that The allocation of cursor variable head and release of cursor variable tail described in the cursor module are initially assigned to point to the first element of the pointer array free1.

7. A 5G wireless resource management system according to claim 5, It is characterized in that The allocation module also includes establishing a mapping relationship between the resource pointed to by the data of free1[head] and the data to be searched through a hash table before emptying the data of free1[head] when allocating resources; The release module also includes deleting the mapping relationship between the released resource and the data to be found before the tail is shifted right by one position when releasing the resource.

8. A 5G wireless resource management system according to claim 7, It is characterized in that When a mapping relationship is established through a hash table, the algorithm used by the hash function includes the multiplication-by-33 algorithm.

9. A 5G wireless resource management device, Features include: Memory for storing computer programs; A processor, configured to implement the steps of the 5G wireless resource management method as described in any one of claims 1 to 4 when executing the computer program.

Citation Information

Patent Citations

  • Hybrid switching satellite multi-service wireless resource management method based on fast indexing

    CN106571863A

  • Inter-thread lock-free log management method and system, terminal and storage medium

    CN111416825A

  • Concurrent service processing method and device, medium and program product

    CN115185657A

  • Data storage system having CPUs adapted to perform a second atomic operation request prior to completion of a first atomic operation request

    US7769928B1