Resource allocation method for terminal, computer equipment and readable storage medium
By recording the first data amount of the logical channel and performing uplink authorization allocation, the problem of cache status reporting inconsistent with the media access control protocol data unit is solved, and the performance and efficiency of the wireless communication network are improved.
Patent Information
- Application Number
- CN202411606817.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-04-01
AI Technical Summary
In wireless communication, the cache status report does not match the content of the media access control protocol data unit, resulting in a decrease in network performance and efficiency.
By recording the first data amount of the logical channel at the beginning of the resource allocation stage, and uplink authorization allocation is performed on the data information in the current logical channel according to the uplink authorization, the first data amount and the number of priority processing addresses to achieve effective allocation of resources.
Ensure the logical consistency between the reported cache status and the current media access control protocol data unit, improve network performance and efficiency, meet the service quality requirements of different services, and reduce access to off-chip memory.
Smart Images

Figure CN119743843A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network communication technology, and more specifically, to a resource allocation method for a terminal, a computer device, and a computer-readable storage medium. Background Art
[0002] Cache status reporting is a mechanism used in wireless communication to report the cache status of user equipment. In related technologies, the cache status is reported by traversing the logical channel priority to manage the transmission of uplink data. However, this will cause the reported cache status to be inconsistent with the content of the medium access control layer protocol data unit. Summary of the invention
[0003] The present application provides a resource allocation method for a terminal, a computer device, and a computer-readable storage medium.
[0004] The present application provides a resource allocation method for a terminal, the method comprising:
[0005] Recording, according to an uplink grant received from a physical layer, a first data volume of a logical channel, where the logical channel is used to transmit buffered data of the terminal;
[0006] Determine the current logical channel according to the logical channel priority;
[0007] Determining the number of priority processing addresses of the logical channel according to the configuration of the logical channel;
[0008] According to the uplink authorization, the first data volume and the number of priority processing addresses, uplink authorization is allocated to the data information in the current logical channel to achieve resource allocation for the current logical channel.
[0009] In this way, after receiving the uplink authorization submitted by the physical layer, the computer device records the first data volume of the logical channel according to the uplink authorization submitted by the physical layer, and the logical channel is used to transmit the buffered data of the terminal. Next, the computer device determines the current logical channel according to the priority of the logical channel. Then, the computer device determines the number of priority processing addresses of the logical channel according to the configuration of the logical channel. Finally, the computer device performs uplink authorization allocation on the data information in the current logical channel according to the uplink authorization, the first data volume and the number of priority processing addresses to realize resource allocation for the current logical channel. In this way, by recording the first data volume of the logical channel at the beginning of resource allocation, and using the first data volume to guide the resource allocation this time, the problem of mismatch between the reported buffer state and the content of the current media access control protocol data unit can be solved, and the logical consistency of the reported buffer state and the current media access control protocol data unit can be ensured, so that the computer device can manage wireless resources more effectively, improve the performance and efficiency of the network, and meet the service quality requirements of different services at the same time. Furthermore, since the first data volume of the recorded logical channel is directly queried when determining the cache state of the logical channel, it is no longer necessary to query the cache state of each logical channel, thereby reducing access to off-chip memory and reducing consumption of network resources.
[0010] In some implementations, the allocating uplink authorization to the data information in the current logical channel according to the uplink authorization, the first data amount, and the number of priority processing addresses includes:
[0011] In the case of performing the first resource allocation for the current logical channel, performing uplink authorization allocation for the data information in the current logical channel according to the number of uplink authorization bytes of the uplink authorization, the number of current priority processing addresses of the current logical channel and the first data amount;
[0012] According to the result of the uplink authorization allocation, the first data amount, the current priority processing address quantity and the uplink authorization byte quantity are updated.
[0013] In this way, when the first resource allocation is performed on the current logical channel, the computer device performs uplink authorization allocation on the data information in the current logical channel according to the uplink authorization byte number of the uplink authorization, the current priority processing address number of the current logical channel and the first data amount. Then, the computer device updates the first data amount, the current priority processing address number and the uplink authorization byte number according to the result of the uplink authorization allocation. In this way, the computer device can ensure that the data in the logical channel is transmitted according to its priority and importance, and at the same time, it can more effectively manage limited wireless resources and improve the performance and efficiency of the network. And by timely updating the first data amount, the current priority processing address number and the uplink authorization byte number, the transmission strategy is dynamically adjusted to ensure that resources are effectively utilized, thereby avoiding waste or shortage of resources, and adapting to the ever-changing network conditions and user needs, and improving the efficiency of data transmission and the overall performance of the network.
[0014] In some implementations, the allocating uplink authorization to the data information in the current logical channel according to the number of uplink authorization bytes of the uplink authorization, the number of current priority processing addresses of the current logical channel, and the first data amount includes:
[0015] determining a first current data amount according to the first data amount;
[0016] When the uplink authorized byte number is greater than a preset byte number threshold, uplink authorization is allocated to the data information in the current logical channel according to the current priority processing address number and the first current data amount.
[0017] In this way, the computer device determines the first current data volume according to the first data volume. In the case where the number of uplink authorized bytes is greater than the preset byte number threshold, the computer device performs uplink authorization allocation for the data information in the current logical channel according to the current priority processing address number and the first current data volume. The preset byte number threshold is a pre-set value. If the number of uplink authorized bytes is greater than this threshold, it means that there are sufficient resources for data transmission. In this way, by judging whether the number of uplink authorized bytes can meet the data transmission of the current logical channel, the computer device can effectively manage uplink data transmission, ensure that key data is processed first, and reasonably use network resources to improve the efficiency of data transmission and the overall performance of the network.
[0018] In some implementations, the allocating uplink authorization for data information in the current logical channel according to the current number of priority processing addresses and the first current data amount includes:
[0019] When the current number of priority processing addresses is greater than 0 and the first current data amount is greater than 0, determining the smaller value of the first current data amount and the current number of priority processing addresses as the first uplink authorized byte number allocated to the current logical channel;
[0020] The current logical channel is packetized according to the first uplink authorization byte number to implement uplink authorization allocation for data information in the current logical channel.
[0021] In this way, when the current number of priority processing addresses is greater than 0 and the first current data volume is greater than 0, the computer device determines the smaller value of the first current data volume and the current number of priority processing addresses as the first uplink authorization byte number allocated to the current logical channel. Then, the computer device performs packet processing on the current logical channel according to the first uplink authorization byte number to implement uplink authorization allocation for the data information in the current logical channel. In this way, the computer device will determine the wireless resources allocated to the logical channel according to the priority and data volume of the logical channel, ensure that the data in the logical channel is processed in a timely manner, and be able to more effectively manage limited wireless resources, thereby improving the overall performance and efficiency of the network and meeting the service quality requirements of different services.
[0022] In certain embodiments, the method further comprises:
[0023] When the number of current priority processing addresses is greater than 0 and the first current data amount is equal to 0, or the number of current priority processing addresses is equal to 0 and the first current data amount is equal to 0, performing uplink authorization allocation for data information in the next logical channel according to the number of uplink authorization bytes of the uplink authorization, the number of next priority processing addresses of the next logical channel of the current logical channel, and the first data amount;
[0024] According to the result of the uplink authorization allocation, the first data amount, the number of next priority processing addresses and the number of uplink authorization bytes are updated.
[0025] In this way, when the current number of priority processing addresses is greater than 0 and the first current data amount is equal to 0, or the current number of priority processing addresses is equal to 0 and the first current data amount is equal to 0, the computer device performs uplink authorization allocation for the data information in the next logical channel according to the uplink authorization byte number of the uplink authorization, the next priority processing address number of the next logical channel of the current logical channel, and the first data amount. Then, the computer device updates the first data amount, the next priority processing address number, and the uplink authorization byte number according to the result of the uplink authorization allocation. In this way, when there is no data that needs to be transmitted immediately on the current logical channel, or there is no data that needs to be transmitted, the computer device will consider the priority processing address number and the first data of the next logical channel, so as to ensure that the data in the logical channel is transmitted according to its priority and importance, while effectively managing the uplink resources and improving the performance and efficiency of the network.
[0026] In some implementations, the allocating uplink authorization to the data information in the current logical channel according to the number of uplink authorization bytes of the uplink authorization, the number of current priority processing addresses of the current logical channel, and the first data amount includes:
[0027] When the uplink authorized byte number is less than or equal to the preset byte number threshold, the buffer status of the terminal is obtained according to the amount of data to be sent of the logical channel, and the amount of data to be sent is used to indicate the amount of unallocated data in the first data amount.
[0028] In this way, when the number of uplink authorized bytes is less than or equal to the preset byte number threshold, the computer device obtains the buffer status of the terminal according to the amount of data to be sent of the logical channel, and the amount of data to be sent is used to indicate the amount of data allocated in the first data amount. In this way, the computer device can accurately understand how much data is waiting to be sent in each logical channel, and can decide whether to allocate more wireless resources to the logical channel according to the amount of data to be sent, so as to ensure the timely transmission of data.
[0029] In some implementations, the allocating uplink authorization to the data information in the current logical channel according to the uplink authorization, the first data amount, and the number of priority processing addresses includes:
[0030] In a case where resource allocation is not performed for the current logical channel for the first time, performing uplink authorization allocation for data information in the current logical channel according to the number of uplink authorization bytes of the uplink authorization and the first data amount;
[0031] According to the allocation processing result of the uplink authorization, the first data amount, the current priority processing address quantity and the uplink authorization byte quantity are updated.
[0032] In this way, when non-initial resource allocation is performed on the current logical channel, the computer device performs uplink authorization allocation on the data information in the current logical channel according to the uplink authorization byte number and the first data amount of the uplink authorization. Then, according to the allocation processing result of the uplink authorization, the computer device updates the first data amount, the current priority processing address number and the uplink authorization byte number. In this way, when non-initial resource allocation is performed on the current logical channel, the computer device will no longer consider the current priority processing address number, but only needs to decide which data should be sent and how to use the wireless resources allocated to it according to the uplink authorization byte number and the first data amount.
[0033] In some implementations, the allocating uplink authorization to the data information in the current logical channel according to the uplink authorization byte number of the uplink authorization and the first data amount includes:
[0034] determining a second current data amount according to the first data amount;
[0035] In a case where the uplink authorized byte number is greater than a preset byte number threshold, uplink authorization is allocated to the data information in the current logical channel according to the second current data amount.
[0036] In this way, the computer device determines the second current data volume according to the first data volume. Then, when the uplink authorized byte number is greater than the preset byte number threshold, the computer device performs uplink authorization allocation for the data information in the current logical channel according to the second current data volume. In this way, the computer device performs uplink authorization allocation for the data information in the current logical channel according to the second current data volume, which can ensure that the data in the logical channel is processed in a timely manner, and at the same time, it can more effectively manage limited wireless resources, thereby improving the overall performance and efficiency of the network and meeting the service quality requirements of different services.
[0037] In some implementations, the allocating uplink grant to the data information in the current logical channel according to the second current data amount includes:
[0038] When the second current data amount is greater than 0, determining the second current data amount as a second uplink authorized byte number allocated to the current logical channel;
[0039] The current logical channel is packetized according to the second uplink authorization byte number to implement uplink authorization allocation for data information in the current logical channel.
[0040] In this way, when the second current data volume is greater than 0, the computer device determines the second current data volume as the second uplink authorization byte number allocated to the current logical channel. The second current data volume being greater than 0 means that the current logical channel has data waiting to be transmitted. Then, the computer device performs packet processing on the current logical channel according to the second uplink authorization byte number to implement uplink authorization allocation for the data information in the current logical channel. In this way, the computer device will determine the wireless resources allocated to the logical channel according to the recorded data volume in the logical channel, ensuring that the data in the logical channel is processed in a timely manner, while also being able to more effectively manage limited wireless resources.
[0041] In certain embodiments, the method further comprises:
[0042] When the second current data amount is equal to 0, performing uplink authorization allocation for data information in a next logical channel of the current logical channel according to the number of uplink authorization bytes of the uplink authorization and the first data amount;
[0043] According to the allocation processing result of the uplink authorization, the first data amount, the current priority processing address quantity and the uplink authorization byte quantity are updated.
[0044] In this way, when the second current data volume is equal to 0, the computer device performs uplink authorization allocation for the data information in the next logical channel of the current logical channel according to the uplink authorization byte number of the uplink authorization and the first data volume. Then, the computer device updates the first data volume, the current priority processing address number and the uplink authorization byte number according to the uplink authorization allocation processing result. In this way, the computer device confirms that the current logical channel has no data to be transmitted in the current transmission cycle, and will perform uplink authorization allocation for the data information in the next logical channel according to the uplink authorization byte number and the first data volume, thereby ensuring that the data in the logical channel is transmitted according to its priority and importance, while effectively managing uplink resources and improving network performance and efficiency.
[0045] In some implementations, the allocating uplink authorization to the data information in the current logical channel according to the uplink authorization byte number of the uplink authorization and the first data amount includes:
[0046] When the uplink authorized byte number is less than or equal to the preset byte number threshold, the buffer status of the terminal is obtained according to the amount of data to be sent of the logical channel, and the amount of data to be sent is used to indicate the amount of unallocated data in the first data amount.
[0047] In this way, when the number of uplink authorized bytes is less than or equal to the preset byte number threshold, the computer device obtains the buffer status of the terminal according to the amount of data to be sent of the logical channel, and the amount of data to be sent is used to indicate the amount of data allocated in the first data amount. In this way, the computer device can accurately understand how much data is waiting to be sent in each logical channel, and can decide whether to allocate more wireless resources to the logical channel according to the amount of data to be sent, so as to ensure the timely transmission of data.
[0048] In certain embodiments, the method further comprises:
[0049] When the number of uplink authorization allocations is greater than or equal to a predetermined number, the buffer status of the terminal is obtained according to the amount of data to be sent of the logical channel, where the amount of data to be sent is used to indicate the amount of data allocated in the first amount of data.
[0050] In this way, when the number of uplink authorization allocations is greater than or equal to the predetermined number of times, the computer device obtains the buffer state of the terminal according to the amount of data to be sent of the logical channel, and the amount of data to be sent is used to indicate the amount of data allocated in the first data amount. In this way, the computer device can accurately understand how much data is waiting to be sent in each logical channel, and can decide whether to allocate more wireless resources to the logical channel according to the amount of data to be sent, so as to ensure timely transmission of data.
[0051] In some implementations, acquiring the buffer status of the terminal according to the amount of data to be sent on the logical channel includes:
[0052] When the current amount of data to be sent corresponding to the current logical channel in the amount of data to be sent is greater than 0 and the third current amount of data corresponding to the current logical channel in the first amount of data is greater than 0, confirming that the terminal has completed buffering;
[0053] When the current amount of data to be sent is greater than 0 and the third current amount of data is equal to 0, it is confirmed that the terminal needs to allocate resources again.
[0054] In this way, when the current amount of data to be sent corresponding to the current logical channel in the amount of data to be sent is greater than 0 and the third current amount of data corresponding to the current logical channel in the first amount of data is greater than 0, the computer device confirms that the terminal has completed the buffering, that is, the terminal has buffered enough data to be transmitted. Next, when the current amount of data to be sent is greater than 0 and the third current amount of data is equal to 0, this indicates that although there is data waiting to be transmitted on the current logical channel, the previously allocated resources have been exhausted, and the terminal needs more resources to complete the data transmission. The computer device confirms that the terminal needs to allocate resources again to ensure that the data in the logical channel can be transmitted. In this way, it can be ensured that the computer device can allocate sufficient wireless resources for the current logical channel so as to send the data in the logical channel in a timely manner.
[0055] An embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored in the memory, and is characterized in that the processor executes the computer program to implement the above method.
[0056] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium memory stores a computer program, and when the computer program is executed by one or more processors, the above method is implemented.
[0057] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0059] Figure 1 It is one of the flowcharts of the resource allocation method of certain implementation modes of the present application;
[0060] Figure 2 This is the second flow chart of the resource allocation method of certain implementation modes of the present application;
[0061] Figure 3 This is the third flow chart of the resource allocation method of certain implementation modes of the present application;
[0062] Figure 4 This is a fourth flowchart of a resource allocation method in certain implementation modes of the present application;
[0063] Figure 5 This is a fifth flowchart of a resource allocation method in certain implementation modes of the present application;
[0064] Figure 6 This is the sixth flow chart of the resource allocation method of certain implementation modes of the present application;
[0065] Figure 7 This is the seventh flow chart of the resource allocation method of certain implementation modes of the present application;
[0066] Figure 8 This is the eighth flow chart of the resource allocation method of certain implementation modes of the present application;
[0067] Fig. 9 This is a ninth flowchart of a resource allocation method in certain implementation modes of the present application;
[0068] Fig.10 This is a flowchart of a resource allocation method according to some implementation methods of the present application;
[0069] Fig.11 This is a flowchart of a resource allocation method according to some implementation methods of the present application.
[0070] Fig.12 This is a twelfth flowchart of a resource allocation method in certain implementation modes of the present application;
[0071] Fig.13 This is the thirteenth flow chart of the resource allocation method of certain implementation modes of the present application. DETAILED DESCRIPTION
[0072] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and cannot be understood as limiting the embodiments of the present application.
[0073] In wireless communication, buffer status reporting is a mechanism for reporting the buffer status of a user equipment (UE). In related art, buffer status reporting is performed by traversing logical channel priorities to manage uplink data transmission. However, this approach may cause some problems.
[0074] First, since the packet assembly process usually does not continue to traverse after traversing both sides from high to low priority, if after two traversals, the cache status is queried during the group status report and data exists, the cache status report will show that the logical channel group has data, but at this time the MAC layer protocol data unit (PDU) is grouped with a Padding packet but no valid data. This is because the packet assembly process takes time, and the cache may receive data packets sent by the application layer, or control and data packets of the upper layer protocol at all times. This will cause the reported cache status to be inconsistent with the content of the current MAC layer protocol data unit (PDU), thereby affecting the performance and efficiency of the network.
[0075] Secondly, since the upstream cache data is often stored in the off-chip memory, the CPU has a long latency in accessing the off-chip memory, which consumes a lot of MIPS (Millions of Instructions Per Second). If the cache status in the off-chip memory is traversed again when reporting the group cache status, it will cause a large overhead, which is not conducive to cost control.
[0076] Based on the above questions, please refer to Figure 1 , the embodiment of the present application provides a resource allocation method for a terminal, the method comprising:
[0077] 01: Record the first data volume of the logical channel according to the uplink grant received from the physical layer;
[0078] 02: Determine the current logical channel according to the logical channel priority;
[0079] 03: Determine the number of priority processing addresses of the logical channel according to the configuration of the logical channel;
[0080] 04: Perform uplink authorization allocation for data information in the current logical channel according to the uplink authorization, the first data volume, and the number of priority processing addresses, so as to implement resource allocation for the current logical channel.
[0081] The embodiment of the present application also provides a computer device, including a memory and a processor. The resource allocation method of the embodiment of the present application can be implemented by the computer device of the embodiment of the present application. Specifically, a computer program is stored in the memory, and the processor is used to record the first data volume of the logical channel according to the uplink authorization submitted by the physical layer. And determine the current logical channel according to the priority of the logical channel. The processor is also used to determine the number of priority processing addresses of the logical channel according to the configuration of the logical channel. And according to the uplink authorization, the first data volume and the number of priority processing addresses, uplink authorization is allocated to the data information in the current logical channel to realize resource allocation for the current logical channel.
[0082] The embodiment of the present application also provides a resource allocation device. The resource allocation method of the embodiment of the present application can be implemented by the resource allocation device of the embodiment of the present application. Specifically, the resource allocation device includes a receiving module, a determining module and an allocating module. The receiving module is used to record the first data volume of the logical channel according to the uplink authorization submitted by the physical layer. The determining module is used to determine the current logical channel according to the priority of the logical channel. The determining module is also used to determine the number of priority processing addresses of the logical channel according to the configuration of the logical channel. The allocating module is used to perform uplink authorization allocation on the data information in the current logical channel according to the uplink authorization, the first data volume and the number of priority processing addresses, so as to realize resource allocation for the current logical channel.
[0083] Specifically, the terminal refers to the user equipment (UE). The UE can establish multiple radio bearers, each of which corresponds to a logical channel. When the logical channel is established, the base station will configure the logical channel group and put the logical channels with similar flow control into the same logical channel group. The UE reports the cache status based on the logical channel group to avoid reporting each logical channel separately and wasting resources.
[0084] Wireless Bearer refers to a logical connection established between UE and the network for transmitting user data and signaling.
[0085] Logical channel refers to a concept used to transmit control information and user data in wireless communication. Logical channel is virtual and has no entity. In LTE (Long-Term Evolution) and NR (New Radio) networks, logical channel is part of the Medium Access Control (MAC) layer, which can define the type and priority of data transmission.
[0086] Cache status reporting refers to a mechanism used to report the UE cache status in wireless communications. It is the MCE (MAC Control Element) from the UE to the network side, which indicates to the base station the amount of data in the UE's current buffer, and is used to apply for uplink scheduling resources from the base station. Cache status reporting is mainly used to assist the scheduler to better manage wireless resources. The UE reports the UE's cache status to the network through the cache status report. In this way, the network scheduler can decide the wireless resources that need to be allocated to the UE for the next scheduling based on the information in the cache status report to ensure the efficiency of data transmission.
[0087] MCE (MAC Control Element) refers to a mechanism used for MAC layer control information transmission in wireless communication. MCE is part of the MAC layer Protocol Data Unit (PDU), which carries information used to control the communication process between UE and the network.
[0088] Cache status reports are classified by triggering method into: regular cache status report, periodic cache status report and fill cache status report.
[0089] The triggering condition of the regular buffer status report is when the uplink data of a logical channel belonging to a logical channel group is increased from zero to one, and the priority of the logical channel is higher than that of other channels with uplink data, or there is no data in other logical channels. Or the retransmission timer times out and there is data in at least one logical channel group. In other words, when new data arrives in the UE's buffer or the amount of buffered data changes, the UE will trigger a regular buffer status report. This is triggered immediately and is used to report changes in the buffer status in a timely manner.
[0090] The trigger condition for periodic cache status reporting is the expiration of the periodic timer. That is, even if the amount of cached data has not changed, the UE will still periodically send periodic cache status reports at preset time intervals. This status report ensures that the network can regularly obtain the cache status of the UE and is suitable for scenarios where the amount of cached data does not change frequently.
[0091] The trigger condition for filling the buffer status report is when there is surplus uplink resources, and the surplus resources cannot be filled with valid data or there is no valid data at present, and the buffer status report can be filled. That is, when the UE needs to send a buffer status report with data, but there is no new data to report, the UE will send a fill buffer status report. This fill buffer status report usually contains the minimum amount of data, which is used as a placeholder to carry buffer status information during data transmission.
[0092] Uplink grant refers to the grant information sent by the network side (usually a base station or access point) to the user equipment UE. This grant information is used to indicate the radio resources that the UE can use, including time, frequency, and power, so that the UE can send data in the uplink (i.e., from the UE to the network).
[0093] The first data volume refers to the cache status of each logical channel of the user equipment recorded at the beginning of the current transmission cycle, that is, the data to be sent in the logical channel. The first data volume can be used to guide subsequent processes.
[0094] The means used to record the first data volume of the logical channel is the snapshot technology. A snapshot generally refers to an instantaneous record or capture of a system, data or status at a specific time point.
[0095] Logical channel priority refers to the importance and urgency of different logical channels in resource allocation and data transmission. Logical channels are channels used to transmit different types of information in wireless communication protocols, and they are divided into different categories, such as control channels and data channels. Each logical channel has its specific function and priority so that the network can optimize resource allocation and scheduling based on these priorities.
[0096] The current logical channel refers to a logical channel that the computer device is traversing based on the logical channel priority.
[0097] The number of priority processing addresses refers to the uplink data stored in the priority processing memory address, which is the amount of uplink data that is processed earlier in the logical channel and has a longer waiting time.
[0098] The priority processing memory address refers to a memory address that is allocated by a computer device to a logical channel and is capable of performing priority processing on uplink data.
[0099] Resource allocation refers to allocating the acquired uplink grant to transmit uplink data in the logical channel.
[0100] The method of the implementation mode of the present application is described below with an example. In the embodiment of the present application, the user equipment has three logical channels A, B and C, among which A has the highest priority, B is second, and C is the lowest. At this time, due to multiple transmission cycles, the uplink data volume in the logical channel A is 50KB. At this time, the uplink data volume in the logical channel B is 0KB. At this time, the uplink data volume in the logical channel C is 20KB.
[0101] At this time, when the physical layer (PHY) receives the uplink authorization, the MAC layer will check the cache status of the UE and reserve resources according to the status cache report trigger type to perform this uplink data transmission. First, the computer device will record the uplink data volume of logical channels A, B and C as the first data volume. That is, the first data volume is: the first data volume A1 of logical channel A: 50KB, the first data volume B1 of logical channel B: 0KB, and the first data volume C1 of logical channel C: 20KB.
[0102] Then, according to the logical channel priority, logical channel A is determined as the current logical channel. Then, according to the configuration of each logical channel such as priority and QoS requirement, the priority processing address quantity A2 of logical channel A is determined to be 10KB, the priority processing address quantity B2 of logical channel B is determined to be 10KB, and the priority processing address quantity C2 of logical channel C is determined to be 30KB.
[0103] Finally, the computer device will allocate uplink authorization to the data information in the current logical channel according to the uplink authorization, the first data amount and the number of priority processing addresses, which means that the computer device will decide which data should be sent in the current uplink transmission window.
[0104] In summary, in the resource allocation method and computer device for a terminal of the embodiment of the present application, the computer device receives the uplink authorization submitted by the physical layer, and records the first data volume of the logical channel according to the uplink authorization submitted by the physical layer, and the logical channel is used to transmit the buffered data of the terminal. Then, the computer device determines the current logical channel according to the priority of the logical channel. Then, the computer device determines the number of priority processing addresses of the logical channel according to the configuration of the logical channel. Finally, the computer device performs uplink authorization allocation on the data information in the current logical channel according to the uplink authorization, the first data volume and the number of priority processing addresses to realize resource allocation for the current logical channel. In this way, by recording the first data volume of the logical channel at the beginning of resource allocation, and using the first data volume to guide the resource allocation this time, the problem of mismatch between the reported cache state and the content of the current media access control protocol data unit can be solved, and the logical consistency of the reported cache state and the current media access control protocol data unit can be ensured, so that the computer device can manage wireless resources more effectively, improve the performance and efficiency of the network, and meet the service quality requirements of different services at the same time. Furthermore, since the first data volume of the recorded logical channel is directly queried when determining the cache state of the logical channel, it is no longer necessary to query the cache state of each logical channel, thereby reducing access to off-chip memory and reducing consumption of network resources.
[0105] See also Figure 2In some implementations, step 04 (allocating uplink authorization for data information in the current logical channel according to the uplink authorization, the first data amount, and the number of priority processing addresses) includes:
[0106] 041: when performing the first resource allocation for the current logical channel, performing uplink authorization allocation for the data information in the current logical channel according to the number of uplink authorization bytes of the uplink authorization, the number of current priority processing addresses of the current logical channel and the first data volume;
[0107] 042: According to the result of uplink authorization allocation, update the first data volume, the current priority processing address quantity and the uplink authorization byte quantity.
[0108] In some embodiments, the allocation module is further configured to allocate uplink authorization to data information in the current logical channel according to the uplink authorization byte number of the uplink authorization, the current priority processing address number of the current logical channel, and the first data amount when performing the first resource allocation for the current logical channel, and update the first data amount, the current priority processing address number, and the uplink authorization byte number according to the result of the uplink authorization allocation.
[0109] In some embodiments, the processor is further configured to, when performing the first resource allocation for the current logical channel, perform uplink authorization allocation for the data information in the current logical channel according to the uplink authorization byte number of the uplink authorization, the current priority processing address number of the current logical channel, and the first data amount, and update the first data amount, the current priority processing address number, and the uplink authorization byte number according to the result of the uplink authorization allocation.
[0110] Specifically, the uplink authorization byte number refers to the amount of uplink data that can be transmitted in this transmission cycle, as specified in the acquired uplink authorization.
[0111] In the case of performing the first resource allocation for the current logical channel, the computer device performs uplink authorization allocation for the data information in the current logical channel according to the uplink authorization byte number of the uplink authorization, the current priority processing address number of the current logical channel, and the first data amount. Then, the computer device updates the first data amount, the current priority processing address number, and the uplink authorization byte number according to the result of the uplink authorization allocation.
[0112] Continuing with the above example, the uplink grant byte count of the uplink grant is 100KB.
[0113] Since this is the first traversal of logical channel A, the computer device performs uplink authorization allocation for the uplink data in logical channel A according to the uplink authorization byte number 100KB, the priority processing address number A2 and the first data volume of the uplink authorization. Then, the computer device updates the first data volume, the priority processing address number A2 and the uplink authorization byte number in the first data volume according to the result of the uplink authorization allocation.
[0114] In this way, the computer device can ensure that the data in the logical channel is transmitted according to its priority and importance, and at the same time, it can more effectively manage limited wireless resources and improve the performance and efficiency of the network. In addition, by timely updating the first data volume, the current priority processing address number and the uplink authorized byte number, the transmission strategy is dynamically adjusted to ensure that resources are effectively used, thereby avoiding waste or shortage of resources, and adapting to the changing network conditions and user needs, and improving the efficiency of data transmission and the overall performance of the network.
[0115] See also Figure 3 In some implementations, step 041 (allocating uplink authorization for data information in the current logical channel according to the number of uplink authorization bytes of the uplink authorization, the number of current priority processing addresses of the current logical channel, and the first data volume) includes:
[0116] 0411: determining a first current data amount according to the first data amount;
[0117] 0412: When the number of uplink authorized bytes is greater than the preset byte number threshold, uplink authorization is allocated to the data information in the current logical channel according to the current number of priority processing addresses and the first current data volume.
[0118] In some embodiments, the allocation module is further configured to determine a first current data volume according to the first data volume, and when the uplink authorization byte number is greater than a preset byte number threshold, perform uplink authorization allocation on the data information in the current logical channel according to the current priority processing address number and the first current data volume.
[0119] In some embodiments, the processor is further configured to determine a first current data volume according to the first data volume, and when the uplink authorized byte number is greater than a preset byte number threshold, perform uplink authorization allocation on the data information in the current logical channel according to the current priority processing address number and the first current data volume.
[0120] Specifically, the preset byte number threshold refers to a pre-set byte number threshold used to determine whether the uplink authorization is sufficient. The preset byte number threshold set in the implementation manner of the present application is 4KB.
[0121] The computer device determines the first current data amount according to the first data amount. When the number of uplink authorized bytes is greater than a preset byte number threshold, the computer device performs uplink authorization allocation for data information in the current logical channel according to the current number of priority processing addresses and the first current data amount. The preset byte number threshold is a pre-set value used to determine when to perform uplink authorization allocation for the logical channel. If the number of uplink authorized bytes is greater than the threshold, it means that there are sufficient resources for data transmission.
[0122] Continuing with the above example, the computer device obtains the first data volume A1 of logical channel A from the first data volume as 50KB. The computer device compares the uplink authorized byte number and the preset byte number threshold at this time, confirming that the uplink authorized byte number 100KB is greater than the preset byte number threshold 4KB, so there are sufficient resources for data transmission. Then, the computer device allocates uplink authorization to the data information in the current logical channel according to the priority processing address number A2 and the first data volume A1.
[0123] In this way, by judging whether the number of uplink authorized bytes can meet the data transmission of the current logical channel, the computer equipment can effectively manage uplink data transmission and ensure that key data is given priority. At the same time, it can reasonably utilize network resources to improve the efficiency of data transmission and the overall performance of the network.
[0124] See also Figure 4 In some implementations, step 0412 (allocating uplink authorization for data information in the current logical channel according to the current number of priority processing addresses and the first current data amount) includes:
[0125] 04121: when the current number of priority processing addresses is greater than 0 and the first current data amount is greater than 0, the smaller value between the first current data amount and the current number of priority processing addresses is determined as the first uplink authorization byte number allocated to the current logical channel;
[0126] 04122: Packetizing the current logical channel according to the first uplink authorization byte number to implement uplink authorization allocation for the data information in the current logical channel.
[0127] In some embodiments, the allocation module is further configured to determine the smaller value between the first current data amount and the current priority processing address amount as the first uplink authorization byte number allocated to the current logical channel when the current priority processing address amount is greater than 0 and the first current data amount is greater than 0, and to perform packetization processing on the current logical channel according to the first uplink authorization byte number, so as to implement uplink authorization allocation for the data information in the current logical channel.
[0128] In some embodiments, the processor is further configured to determine the smaller value of the first current data amount and the current priority processing address amount as the first uplink authorization byte number allocated to the current logical channel when the current priority processing address amount is greater than 0 and the first current data amount is greater than 0, and to perform packetization processing on the current logical channel according to the first uplink authorization byte number to implement uplink authorization allocation for data information in the current logical channel.
[0129] Specifically, the current priority processing address quantity is greater than 0 and the first current data volume is greater than 0, which indicates that there is uplink data in the logical channel that needs to be sent with priority, and at the beginning of this transmission cycle, the uplink data in the recorded logical channel is not 0.
[0130] Packetization means that the computer device packages the uplink data in the logical channel into MAC layer PDU according to a certain format and prepares it for transmission.
[0131] When the current priority processing address quantity is greater than 0 and the first current data quantity is greater than 0, the computer device determines the smaller value of the first current data quantity and the current priority processing address quantity as the first uplink authorization byte quantity allocated to the current logical channel. Then, the computer device performs packetization processing on the current logical channel according to the first uplink authorization byte quantity to implement uplink authorization allocation for the data information in the current logical channel.
[0132] Continuing with the above example, it can be found that the priority processing address quantity A2 and the first data amount A1 of logical channel A are both greater than 0, and the priority processing address quantity A2 is less than the first data amount A1, so the priority processing address quantity A2 is determined as the first uplink authorized byte number allocated to the current logical channel.
[0133] Next, the computer device performs packetization processing on the logical channel A according to the first uplink authorized byte number, that is, performs packetization processing on the 10KB uplink data in the recorded first data volume A1, so as to realize uplink authorization allocation for the data information in the current logical channel.
[0134] If the current logical channel is logical channel C, the priority address quantity C2 and the first data quantity C1 are both greater than 0. However, the priority address quantity C2 is greater than the first data quantity C1, so the first data quantity C1 is determined as the first uplink granted byte quantity allocated to the current logical channel.
[0135] In this way, the computer equipment will decide the wireless resources allocated to the logical channel based on the priority and data volume of the logical channel, ensuring that the data in the logical channel is processed in a timely manner and being able to more effectively manage limited wireless resources, thereby improving the overall performance and efficiency of the network and meeting the service quality requirements of different services.
[0136] See also Figure 5 In some embodiments, the method further comprises:
[0137] 043: when the current number of priority processing addresses is greater than 0 and the first current data amount is equal to 0, or the current number of priority processing addresses is equal to 0 and the first current data amount is equal to 0, uplink authorization is allocated to the data information in the next logical channel according to the number of uplink authorization bytes of the uplink authorization, the number of next priority processing addresses of the next logical channel of the current logical channel and the first data amount;
[0138] 044: Update the first data volume, the next priority processing address quantity and the uplink authorization byte quantity according to the result of the uplink authorization allocation.
[0139] In some embodiments, the resource allocation device is used to allocate uplink authorization to data information in the next logical channel according to the uplink authorization byte number of the uplink authorization, the next priority processing address number of the next logical channel of the current logical channel, and the first data amount when the current priority processing address number is greater than 0 and the first current data amount is equal to 0, or the current priority processing address number is equal to 0 and the first current data amount is equal to 0. And according to the result of the uplink authorization allocation, update the first data amount, the next priority processing address number, and the uplink authorization byte number.
[0140] In some embodiments, the processor is further configured to perform uplink authorization allocation for data information in the next logical channel according to the uplink authorization byte number of the uplink authorization, the next priority processing address number of the next logical channel of the current logical channel, and the first data amount when the current priority processing address number is greater than 0 and the first current data amount is equal to 0, or the current priority processing address number is equal to 0 and the first current data amount is equal to 0. And according to the result of the uplink authorization allocation, update the first data amount, the next priority processing address number, and the uplink authorization byte number.
[0141] Specifically, when the current priority processing address quantity is greater than 0 and the first current data quantity is equal to 0, or the current priority processing address quantity is equal to 0 and the first current data quantity is equal to 0, the computer device performs uplink authorization allocation for the data information in the next logical channel according to the uplink authorization byte quantity of the uplink authorization, the next priority processing address quantity of the next logical channel of the current logical channel, and the first data quantity. Then, the computer device updates the first data quantity, the next priority processing address quantity, and the uplink authorization byte quantity according to the result of the uplink authorization allocation.
[0142] Continuing with the above example, if the current logical channel is logical channel B, the number of priority processing addresses B2 of logical channel B is greater than 0 and the first data volume B1 is equal to 0, so when traversing the logical channels for the first time, there is no need to process logical channel B and logical channel C can be traversed directly.
[0143] In this way, when there is no data that needs to be transmitted immediately on the current logical channel, or there is no data that needs to be transmitted, the computer device will consider the priority processing address quantity and the first data of the next logical channel, thereby ensuring that the data in the logical channel is transmitted according to its priority and importance, while effectively managing uplink resources and improving network performance and efficiency.
[0144] See also Figure 6 In some implementations, step 041 (allocating uplink authorization for data information in the current logical channel according to the number of uplink authorization bytes of the uplink authorization, the number of current priority processing addresses of the current logical channel, and the first data volume) includes:
[0145] 0413: When the number of uplink authorized bytes is less than or equal to the preset byte number threshold, the buffer status of the terminal is obtained according to the amount of data to be sent on the logical channel.
[0146] In some implementations, the allocation module is further configured to obtain a buffer status of the terminal according to the amount of data to be sent on the logical channel when the number of uplink authorized bytes is less than or equal to a preset byte number threshold.
[0147] In some implementations, the processor is further configured to obtain a buffer status of the terminal according to the amount of data to be sent on the logical channel when the number of uplink authorized bytes is less than or equal to a preset byte number threshold.
[0148] Specifically, when the uplink authorized byte number is less than or equal to the preset byte number threshold, the computer device obtains the buffer status of the terminal according to the amount of data to be sent of the logical channel, where the amount of data to be sent is used to indicate the amount of data allocated in the first data amount.
[0149] Continuing with the above example, it can be found that when the first traversal of all logical channels is completed, the number of uplink authorization bytes of the uplink authorization is greater than the preset byte number threshold of 4KB, indicating that the number of uplink authorization bytes is sufficient to carry out subsequent processes. If the number of uplink authorization bytes is less than 4KB when all logical channels are traversed for the first time, the computer device will stop traversing and obtain the buffer status of the terminal according to the amount of data to be sent on the logical channel, so as to determine whether more wireless resources need to be allocated to the logical channel according to the buffer status to ensure timely transmission of data.
[0150] In this way, the computer device can accurately understand how much data is waiting to be sent in each logical channel, and can decide whether to allocate more wireless resources to the logical channel based on the amount of data to be sent to ensure timely transmission of the data.
[0151] See also Figure 7 In some implementations, step 04 (allocating uplink authorization for data information in the current logical channel according to the uplink authorization, the first data amount, and the number of priority processing addresses) includes:
[0152] 045: when non-initial resource allocation is performed on the current logical channel, uplink authorization allocation is performed on data information in the current logical channel according to the uplink authorization byte number and the first data amount of the uplink authorization;
[0153] 046: According to the allocation processing result of the uplink authorization, update the first data volume, the current priority processing address quantity and the uplink authorization byte quantity.
[0154] In some embodiments, the allocation module is further configured to allocate uplink authorization to data information in the current logical channel according to the uplink authorization byte count and the first data amount of the uplink authorization when non-first resource allocation is performed on the current logical channel, and to update the first data amount, the current priority processing address quantity and the uplink authorization byte count according to the allocation processing result of the uplink authorization.
[0155] In some embodiments, the processor is further configured to perform uplink authorization allocation on data information in the current logical channel according to the uplink authorization byte count and the first data amount of the uplink authorization when non-first resource allocation is performed on the current logical channel, and update the first data amount, the current priority processing address quantity and the uplink authorization byte count according to the uplink authorization allocation processing result.
[0156] Specifically, the second current data volume refers to the uplink data volume in the current logical channel in the first data volume after one traversal.
[0157] In the case of non-first resource allocation for the current logical channel, the computer device performs uplink authorization allocation for the data information in the current logical channel according to the uplink authorization byte count and the first data amount of the uplink authorization. Then, according to the allocation processing result of the uplink authorization, the computer device updates the first data amount, the current priority processing address quantity and the uplink authorization byte count.
[0158] Continuing with the above example, when allocating resources for the current logical channel for the second time, the computer device allocates uplink authorization to the data information in the current logical channel according to the updated uplink authorization byte number 60KB and the first data volume. The updated first data volume: the first data volume A3 of logical channel A is 40KB, the first data volume B3 of logical channel B is 0KB, and the first data volume C3 of logical channel C is 20KB.
[0159] Next, according to the allocation processing result of the uplink authorization, the computer device updates the first data volume, the current priority processing address quantity and the uplink authorization byte quantity.
[0160] In this way, the computer device allocates uplink authorization for the data information in the current logical channel based on the second current data volume, which can ensure that the data in the logical channel is processed in a timely manner, and at the same time more effectively manage limited wireless resources, thereby improving the overall performance and efficiency of the network and meeting the service quality requirements of different services.
[0161] See also Figure 8 In some implementations, step 045 (allocating uplink authorization for data information in the current logical channel according to the uplink authorization byte number and the first data amount of the uplink authorization) includes:
[0162] 0451: Determine a second current data amount according to the first data amount;
[0163] 0452: When the uplink authorized byte number is greater than the preset byte number threshold, uplink authorization is allocated to the data information in the current logical channel according to the second current data volume.
[0164] In some implementations, the allocation module is further configured to determine a second current data amount according to the first data amount, and when the uplink authorized byte number is greater than a preset byte number threshold, perform uplink authorization allocation on the data information in the current logical channel according to the second current data amount.
[0165] In some embodiments, the processor is further configured to determine a second current data amount according to the first data amount, and when the uplink authorized byte number is greater than a preset byte number threshold, perform uplink authorization allocation for data information in the current logical channel according to the second current data amount.
[0166] Specifically, the computer device determines the second current data volume according to the first data volume. Then, when the uplink authorized byte number is greater than the preset byte number threshold, the computer device performs uplink authorization allocation on the data information in the current logical channel according to the second current data volume.
[0167] Continuing with the above example, the current logical channel is logical channel A. The computer device obtains the uplink data volume A3 of logical channel A as 40KB from the updated first data volume. Then, the uplink authorized byte number is compared with the preset byte number threshold, and it can be found that the uplink authorized byte number at this time is still sufficient. Subsequently, according to the uplink data volume A3 of logical channel A being 40KB at this time, uplink authorization is allocated to the data information in the current logical channel.
[0168] In this way, the computer device will determine the wireless resources allocated to the logical channel based on the amount of data in the recorded logical channel, ensuring that the data in the logical channel is processed in a timely manner, while also being able to more effectively manage limited wireless resources.
[0169] See also Fig. 9 In some implementations, step 0452 (allocating uplink grant for data information in the current logical channel according to the second current data amount) includes:
[0170] 04521: when the second current data amount is greater than 0, determine the second current data amount as the second uplink authorized byte number allocated to the current logical channel;
[0171] 04522: Packetize the current logical channel according to the second uplink authorization byte number to implement uplink authorization allocation for the data information in the current logical channel.
[0172] In some implementations, the allocation module is further configured to determine the second current data amount as the second uplink authorized byte number allocated to the current logical channel when the second current data amount is greater than 0, and to perform packetization processing on the current logical channel according to the second uplink authorized byte number, so as to implement uplink authorization allocation for the data information in the current logical channel.
[0173] In some embodiments, the processor is further configured to determine the second current data amount as the second uplink authorized byte number allocated to the current logical channel when the second current data amount is greater than 0, and perform packet processing on the current logical channel according to the second uplink authorized byte number to implement uplink authorization allocation for data information in the current logical channel.
[0174] Specifically, when the second current data amount is greater than 0, the computer device determines the second current data amount as the second uplink authorized byte number allocated to the current logical channel, and the second current data amount being greater than 0 means that the current logical channel has data waiting to be transmitted. Then, the computer device performs packetization processing on the current logical channel according to the second uplink authorized byte number to implement uplink authorization allocation for the data information in the current logical channel.
[0175] Continuing with the above example, it can be found that the uplink data volume A3 of the logical channel A at this time is 40KB, which is greater than 0, so the computer device determines the second current data volume as the second uplink authorized byte number allocated to the current logical channel. That is, 40KB of uplink authorized byte number will be allocated to the logical channel A.
[0176] Next, the computer device performs packetization processing on the logical channel A according to the first uplink authorized byte number, that is, performs packetization processing on the 40KB uplink data in the recorded first data volume A3, so as to realize uplink authorization allocation for the data information in the current logical channel.
[0177] In this way, the computer device will determine the wireless resources allocated to the logical channel based on the amount of data in the recorded logical channel, ensuring that the data in the logical channel is processed in a timely manner, while also being able to more effectively manage limited wireless resources.
[0178] See also Fig.10 In some embodiments, the method further comprises:
[0179] 04523: when the second current data amount is equal to 0, perform uplink authorization allocation for data information in the next logical channel of the current logical channel according to the uplink authorization byte number of the uplink authorization and the first data amount;
[0180] 04524: According to the allocation processing result of the uplink authorization, the first data volume, the current priority processing address quantity and the uplink authorization byte quantity are updated.
[0181] In some embodiments, the allocation module is further configured to allocate uplink authorization to data information in the next logical channel of the current logical channel according to the uplink authorization byte number of the uplink authorization and the first data amount when the second current data amount is equal to 0. And according to the allocation processing result of the uplink authorization, update the first data amount, the current priority processing address number and the uplink authorization byte number.
[0182] In some embodiments, the processor is further configured to perform uplink authorization allocation for data information in the next logical channel of the current logical channel according to the uplink authorization byte number of the uplink authorization and the first data amount when the second current data amount is equal to 0, and update the first data amount, the current priority processing address number and the uplink authorization byte number according to the uplink authorization allocation processing result.
[0183] Specifically, when the second current data amount is equal to 0, the computer device performs uplink authorization allocation for data information in the next logical channel of the current logical channel according to the uplink authorization byte number of the uplink authorization and the first data amount. Then, the computer device updates the first data amount, the current priority processing address number and the uplink authorization byte number according to the allocation processing result of the uplink authorization.
[0184] Continuing with the above example, if the current logical channel is logical channel B, it can be found that there is no uplink data that needs to be sent in logical channel B at this time, that is, the second current data amount of logical channel B is equal to 0. In this case, the computer device does not process logical channel B, but directly processes the next logical channel of logical channel B, that is, logical channel C. The computer device performs uplink authorization allocation for the data information of logical channel C according to the uplink authorization byte number and the first data amount of the uplink authorization. Then, the computer device updates the first data amount, the current priority processing address number and the uplink authorization byte number according to the allocation processing result of the uplink authorization.
[0185] In this way, the computer device confirms that the current logical channel has no data to be transmitted in the current transmission cycle, and will allocate uplink authorization to the data information in the next logical channel based on the number of uplink authorization bytes and the first data volume, thereby ensuring that the data in the logical channel is transmitted according to its priority and importance, while effectively managing uplink resources and improving network performance and efficiency.
[0186] See also Fig.11 In some implementations, step 045 (allocating uplink authorization for data information in the current logical channel according to the uplink authorization byte number and the first data amount of the uplink authorization) includes:
[0187] 0453: When the number of uplink authorized bytes is less than or equal to the preset byte number threshold, the buffer status of the terminal is obtained according to the amount of data to be sent on the logical channel.
[0188] In some embodiments, the allocation module is also used to obtain the terminal's cache status based on the amount of data to be sent in the logical channel when the uplink authorized byte number is less than or equal to a preset byte number threshold, and the amount of data to be sent is used to indicate the amount of data allocated in the first data amount.
[0189] In some embodiments, the processor is further used to obtain the terminal's cache status based on the amount of data to be sent of the logical channel when the uplink authorized byte number is less than or equal to a preset byte number threshold, and the amount of data to be sent is used to indicate the amount of data allocated in the first data amount.
[0190] Specifically, when the uplink authorized byte number is less than or equal to the preset byte number threshold, the computer device obtains the buffer status of the terminal according to the amount of data to be sent of the logical channel, where the amount of data to be sent is used to indicate the amount of data allocated in the first data amount.
[0191] Continuing with the above example, it can be found that when allocating resources to all logical channels for the second time, when processing logical channel C, the uplink authorization byte number of the uplink authorization will be less than the preset byte number threshold of 4KB, indicating that the uplink authorization byte number is not sufficient to perform another complete packet assembly process. The computer device will stop traversing and obtain the cache status of the terminal based on the amount of data to be sent on the logical channel to determine whether more wireless resources need to be allocated to the logical channel based on the cache status to ensure timely transmission of data. The amount of data to be sent on the logical channel refers to the unprocessed uplink data in the first data volume, plus the new data packets sent by the application layer when the logical channel is processed.
[0192] In this way, the computer device can accurately understand how much data is waiting to be sent in each logical channel, and can decide whether to allocate more wireless resources to the logical channel based on the amount of data to be sent to ensure timely transmission of the data.
[0193] See also Fig.12 In some implementations, step 041 (allocating uplink authorization for data information in the current logical channel according to the number of uplink authorization bytes of the uplink authorization, the number of current priority processing addresses of the current logical channel, and the first data volume) includes:
[0194] 0414: When the number of uplink authorized bytes is less than or equal to the preset byte number threshold, the buffer status of the terminal is obtained according to the amount of data to be sent on the logical channel.
[0195] In some implementations, the allocation module is further configured to obtain a buffer status of the terminal according to the amount of data to be sent on the logical channel when the number of uplink authorized bytes is less than or equal to a preset byte number threshold.
[0196] In some implementations, the processor is further configured to obtain a buffer status of the terminal according to the amount of data to be sent on the logical channel when the number of uplink authorized bytes is less than or equal to a preset byte number threshold.
[0197] Specifically, when the uplink authorized byte number is less than or equal to the preset byte number threshold, the computer device obtains the buffer status of the terminal according to the amount of data to be sent of the logical channel, where the amount of data to be sent is used to indicate the amount of data allocated in the first data amount.
[0198] Continuing with the above example, if the number of uplink authorized bytes of the uplink authorization is greater than the preset byte number threshold of 4KB when the traversal of all logical channels is completed, it means that the number of uplink authorized bytes is sufficient and the subsequent process can be carried out. If the number of uplink authorized bytes is less than 4KB when all logical channels are traversed for the first time, the computer device will stop traversing and obtain the cache status of the terminal according to the amount of data to be sent on the logical channel, so as to determine whether more wireless resources need to be allocated to the logical channel according to the cache status to ensure timely transmission of data. The amount of data to be sent on the logical channel refers to the uplink data that has not been processed in the first data volume, plus the new data packets sent by the application layer when the logical channel is processed.
[0199] In this way, the computer device can accurately understand how much data is waiting to be sent in each logical channel, and can decide whether to allocate more wireless resources to the logical channel based on the amount of data to be sent to ensure timely transmission of the data.
[0200] See also Fig.13 In some implementations, step 0414 (obtaining the buffer status of the terminal according to the amount of data to be sent on the logical channel) includes:
[0201] 04141: when the current amount of data to be sent corresponding to the current logical channel in the amount of data to be sent is greater than 0 and the third current amount of data corresponding to the current logical channel in the first amount of data is greater than 0, confirming that the terminal buffering is complete;
[0202] 04142: When the current amount of data to be sent is greater than 0 and the third current amount of data is equal to 0, it is confirmed that the terminal needs to allocate resources again.
[0203] In some embodiments, the allocation module is further configured to confirm that the terminal has completed buffering when the current amount of data to be sent corresponding to the current logical channel in the amount of data to be sent is greater than 0 and the third current amount of data corresponding to the current logical channel in the first amount of data is greater than 0. And when the current amount of data to be sent is greater than 0 and the third current amount of data is equal to 0, confirm that the terminal needs to allocate resources again.
[0204] In some embodiments, the processor is further configured to confirm that the terminal has completed buffering when the current amount of data to be sent corresponding to the current logical channel in the amount of data to be sent is greater than 0 and the third current amount of data corresponding to the current logical channel in the first amount of data is greater than 0. And when the current amount of data to be sent is greater than 0 and the third current amount of data is equal to 0, confirm that the terminal needs to allocate resources again.
[0205] Specifically, when the current amount of data to be sent corresponding to the current logical channel in the amount of data to be sent is greater than 0 and the third current amount of data corresponding to the current logical channel in the first amount of data is greater than 0, the computer device confirms that the terminal has completed the buffering, that is, the terminal has buffered enough data to be transmitted. Next, when the current amount of data to be sent is greater than 0 and the third current amount of data is equal to 0, this indicates that although there is data waiting to be transmitted in the current logical channel, the previously allocated resources have been exhausted, and the terminal needs more resources to complete the data transmission. The computer device confirms that the terminal needs to allocate resources again to ensure that the data in the logical channel can be transmitted.
[0206] In this way, it can be ensured that the computer device can allocate sufficient wireless resources for the current logical channel so as to send the data in the logical channel in time.
[0207] The present application also provides a computer-readable storage medium containing a computer program. When the computer program is executed by one or more processors, the one or more processors execute the method of the present application.
[0208] It is understood that a computer program includes computer program code. The computer program code may be in source code form, object code form, executable file or some intermediate form. Computer readable storage media may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), and software distribution medium.
[0209] In the description of this specification, the descriptions with reference to the terms "specifically", "further", "particularly", "understandably", etc. are intended to mean that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not intended to 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. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0210] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0211] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A resource allocation method for a terminal, characterized in that: The method comprises: Recording, according to an uplink grant received from a physical layer, a first data volume of a logical channel, where the logical channel is used to transmit buffered data of the terminal; Determine the current logical channel according to the logical channel priority; Determining the number of priority processing addresses of the logical channel according to the configuration of the logical channel; According to the uplink authorization, the first data volume and the number of priority processing addresses, uplink authorization is allocated to the data information in the current logical channel to achieve resource allocation for the current logical channel.
2. The method according to claim 1, characterized in that The allocating uplink authorization to the data information in the current logical channel according to the uplink authorization, the first data amount, and the number of priority processing addresses includes: In the case of performing the first resource allocation for the current logical channel, performing uplink authorization allocation for the data information in the current logical channel according to the number of uplink authorization bytes of the uplink authorization, the number of current priority processing addresses of the current logical channel and the first data amount; According to the result of the uplink authorization allocation, the first data amount, the current priority processing address quantity and the uplink authorization byte quantity are updated.
3. The method according to claim 2, characterized in that The allocating uplink authorization to the data information in the current logical channel according to the number of uplink authorization bytes of the uplink authorization, the number of current priority processing addresses of the current logical channel, and the first data amount includes: determining a first current data amount according to the first data amount; When the uplink authorized byte number is greater than a preset byte number threshold, uplink authorization is allocated to the data information in the current logical channel according to the current priority processing address number and the first current data amount.
4. The method according to claim 3, characterized in that The performing uplink authorization allocation on the data information in the current logical channel according to the current priority processing address quantity and the first current data amount includes: When the current number of priority processing addresses is greater than 0 and the first current data amount is greater than 0, determining the smaller value of the first current data amount and the current number of priority processing addresses as the first uplink authorized byte number allocated to the current logical channel; The current logical channel is packetized according to the first uplink authorization byte number to implement uplink authorization allocation for data information in the current logical channel.
5. The method according to claim 3, characterized in that: The method further comprises: When the number of current priority processing addresses is greater than 0 and the first current data amount is equal to 0, or the number of current priority processing addresses is equal to 0 and the first current data amount is equal to 0, performing uplink authorization allocation for data information in the next logical channel according to the number of uplink authorization bytes of the uplink authorization, the number of next priority processing addresses of the next logical channel of the current logical channel, and the first data amount; According to the result of the uplink authorization allocation, the first data amount, the number of next priority processing addresses and the number of uplink authorization bytes are updated.
6. The method according to claim 3, characterized in that The allocating uplink authorization to the data information in the current logical channel according to the number of uplink authorization bytes of the uplink authorization, the number of current priority processing addresses of the current logical channel, and the first data amount includes: When the uplink authorized byte number is less than or equal to the preset byte number threshold, the buffer status of the terminal is obtained according to the amount of data to be sent of the logical channel, and the amount of data to be sent is used to indicate the amount of data allocated in the first data amount.
7. The method according to claim 3, characterized in that The allocating uplink authorization to the data information in the current logical channel according to the uplink authorization, the first data amount, and the number of priority processing addresses includes: In a case where resource allocation is not performed for the current logical channel for the first time, performing uplink authorization allocation for data information in the current logical channel according to the number of uplink authorization bytes of the uplink authorization and the first data amount; According to the allocation processing result of the uplink authorization, the first data amount, the current priority processing address quantity and the uplink authorization byte quantity are updated.
8. The method according to claim 7, characterized in that The allocating uplink authorization to the data information in the current logical channel according to the uplink authorization byte number of the uplink authorization and the first data amount includes: determining a second current data amount according to the first data amount; When the uplink authorized byte number is greater than the preset byte number threshold, uplink authorization is allocated to the data information in the current logical channel according to the second current data amount.
9. The method according to claim 8, characterized in that The allocating uplink authorization to the data information in the current logical channel according to the second current data amount includes: When the second current data amount is greater than 0, determining the second current data amount as a second uplink authorized byte number allocated to the current logical channel; The current logical channel is packetized according to the second uplink authorization byte number to implement uplink authorization allocation for data information in the current logical channel.
10. The method according to claim 9, characterized in that The method further comprises: When the second current data amount is equal to 0, performing uplink authorization allocation for data information in a next logical channel of the current logical channel according to the number of uplink authorization bytes of the uplink authorization and the first data amount; According to the allocation processing result of the uplink authorization, the first data amount, the current priority processing address quantity and the uplink authorization byte quantity are updated.
11. The method according to claim 8, characterized in that The allocating uplink authorization to the data information in the current logical channel according to the uplink authorization byte number of the uplink authorization and the first data amount includes: When the uplink authorized byte number is less than or equal to the preset byte number threshold, the buffer status of the terminal is obtained according to the amount of data to be sent of the logical channel, and the amount of data to be sent is used to indicate the amount of data allocated in the first data amount.
12. The method according to claim 1, characterized in that The method further comprises: When the number of uplink authorization allocations is greater than or equal to a predetermined number, the buffer status of the terminal is obtained according to the amount of data to be sent of the logical channel, where the amount of data to be sent is used to indicate the amount of data allocated in the first amount of data.
13. The method according to claim 6, 11 or 12, characterized in that: The acquiring the buffer status of the terminal according to the amount of data to be sent of the logical channel includes: When the current amount of data to be sent corresponding to the current logical channel in the amount of data to be sent is greater than 0 and the third current amount of data corresponding to the current logical channel in the first amount of data is greater than 0, confirming that the terminal has completed buffering; When the current amount of data to be sent is greater than 0 and the third current amount of data is equal to 0, it is confirmed that the terminal needs to allocate resources again.
14. A computer device, characterized in that: The computer device comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the method according to any one of claims 1 to 13.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium memory stores a computer program, and when the computer program is executed by one or more processors, the method according to any one of claims 1 to 13 is implemented.