Resource allocation method, device, and system
Patent Information
- Application Number
- PCT/CN2025/144400
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-08
- Filing Date
- 2025-12-22
- Publication Date
- 2026-10-01
Smart Images

Figure CN2025144400_01102026_PF_FP_ABST
Abstract
Description
A method, apparatus and system for resource allocation
[0001] This application claims priority to Chinese Patent Application No. 202510591615.4, filed with the State Intellectual Property Office of China on May 8, 2025, entitled "A Method, Apparatus and System for Resource Allocation", and also claims priority to Chinese Patent Application No. 202510400109.2, filed with the State Intellectual Property Office of China on March 28, 2025, entitled "A Method, Apparatus and System for Resource Allocation", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of communication technology, and in particular to a method, apparatus and system for resource allocation. Background Technology
[0003] When a terminal device transmits uplink data, it can allocate physical layer resources (PHY resources) for the data in the logical channel (LCH) so that the uplink data can be sent to the network device through the allocated PHY resources.
[0004] The LCH can include delay-critical LCHs. Within the terminal device, during the transmission of uplink data from the PDCP entity to the RLC entity, if the data takes a long time to process within the PDCP entity, and the remaining time is less than the corresponding priority adjustment threshold, this data can be called delay-critical data. The LCH that transmits delay-critical data is the delay-critical LCH.
[0005] Generally, to avoid a single LCH consuming too many PHY resources, the terminal device may not allocate resources for LCHs with Bj less than 0. This would prevent delay-critical LCHs with Bj less than 0 from quickly acquiring PHY resources for transmission. Conversely, if Bj is not considered and PHY resources are allocated to delay-critical LCHs, it would cause these LCHs to consume excessive PHY resources. Summary of the Invention
[0006] This application provides a method, apparatus, and system for resource allocation, which enables terminal devices to reasonably allocate PHY resources for delay-critical LCHs where Bj is less than 0, ensuring fast transmission of delay-critical data while avoiding excessive PHY resource consumption by delay-critical LCHs.
[0007] To achieve the above technical objectives, this application adopts the following technical solution:
[0008] A first aspect provides a resource allocation method applied to a terminal device. The method includes: allocating resources for a first logical channel (LCH) based on first information. A first parameter of the first LCH is less than or equal to 0. The first LCH includes at least one first data packet, the remaining time of which is less than a priority adjustment threshold. The first information includes at least one of the following: a data volume threshold, priority information of the first LCH, the first data packet in the first LCH, first indication information, and a first duration corresponding to the first LCH. The data packet in the first LCH is transmitted according to the resources allocated to it.
[0009] Based on this scheme, for a first LCH including a first data packet, if the first parameter (e.g., Bj) of the first LCH is less than or equal to 0, the terminal device can allocate resources for the first LCH according to the first information. This avoids the first data packet in the first LCH failing to acquire resources in a timely manner due to Bj being less than or equal to 0, thus preventing the first data packet from accumulating in the terminal device.
[0010] In some examples, the first data packet can be a delay-critical data packet.
[0011] In some possible designs, the first information includes the first data packet in the LCH. Allocating resources for the first LCH based on the first information includes: allocating resources for the first LCH until the first data packet is exhausted, or until the allocable resources are exhausted before the first data packet is exhausted. In this example, when resources are sufficient, the terminal device can allocate resources for all first data packets in the first LCH, as well as data packets preceding the first data packet. Even when resources are limited, the terminal device can still allocate resources for the first data packet as much as possible.
[0012] In some possible designs, the first information includes a data volume threshold. Resource allocation for the first LCH includes: allocating resources to packets within the data volume threshold of the first LCH until the data volume of the packets for which resources are allocated does not exceed or reaches the data volume threshold, or until the first packets within the data volume threshold are exhausted, or until the allocable resources are exhausted before the data volume of the packets for which resources are allocated reaches the data volume threshold. In this example, the terminal device can allocate resources for a first LCH where Bj is less than or equal to 0 based on the data volume threshold. For example, the data volume of the packets for which resources are allocated to the first LCH may not exceed the data volume threshold.
[0013] In some possible designs, before allocating resources for the first LCH based on the first information, the method further includes receiving a first message for configuring the data volume threshold. In some examples, the data volume threshold may be configured by the network device for the end device.
[0014] In some possible designs, the first information includes priority information of the first LCH. The priority information of the first LCH is used to indicate a first priority of the first LCH, and / or a second priority of the first LCH. The second priority is used for the LCH that includes the first data packet. Before allocating resources for the first LCH, the method further includes: allocating resources to selected LCHs whose used priorities are higher than the priority threshold, based on the priority information used.
[0015] In some possible designs, the selected LCH includes: the LCH selected based on LCH mapping constraints.
[0016] In some possible designs, before allocating resources for the first LCH, the method further includes receiving a second message for configuring the first priority and / or the second priority of the first LCH.
[0017] In some possible designs, before allocating resources for the first LCH, the method further includes receiving a third message for configuring the priority threshold.
[0018] This example provides a resource configuration method based on priority thresholds. For a first LCH where Bj is less than or equal to 0, the terminal device can configure resources only for LCHs with priorities higher than the priority threshold, provided that a second priority and priority threshold have already been configured for that first LCH.
[0019] In some possible designs, the first information includes first indication information, which indicates whether or not to allocate resources to the first LCH. Before allocating resources to the first LCH based on the first information, the method further includes: determining that the first indication information indicates to allocate resources to the first LCH.
[0020] In some example sets, the first indication information can also indicate whether the first LCH, where Bj is less than or equal to 0, can transmit data.
[0021] In some possible designs, the first indication information includes a first field, which includes a first bit corresponding to an LCH or an LCG. When the first bit is configured with a first value, resource allocation is performed on the third LCH when the first parameter of the third LCH is less than or equal to 0 and the third LCH includes the first data packet. When the first bit is configured with a second value, no resource allocation is performed on the third LCH when the first parameter of the third LCH is less than or equal to 0 and the third LCH includes the first data packet. Here, the third LCH is either the LCH corresponding to the first bit, or the third LCH is the LCH in the LCG corresponding to the first bit.
[0022] In some possible designs, the first indication information includes a second field, which includes second indication information for the LCH ID of the first LCH. When the second indication information is configured with a third value, resource allocation is performed on the first LCH when the first parameter of the first LCH is less than or equal to 0 and the first LCH includes the first data packet. When the second indication information is configured with a fourth value, no resource allocation is performed on the third LCH when the first parameter of the third LCH is less than or equal to 0 and the third LCH includes the first data packet.
[0023] In some possible designs, before allocating resources for the first LCH, the method further includes receiving a fourth message for configuring the first indication information.
[0024] In this example, whether to allocate resources to the first LCH where Bj is less than or equal to 0 can be indicated by the first indication information. In some examples, this first indication information can be configured by the network device to the terminal device. In this way, the terminal device can allocate resources to the first LCH where Bj is less than or equal to 0, or not allocate resources to the first LCH where Bj is less than or equal to 0, based on the first indication information.
[0025] In some possible designs, before allocating resources for the first LCH, the method further includes: determining that the priority threshold has been configured, and a second priority of the first LCH, the second priority being used for the LCH that includes the newly transmitted first data packet.
[0026] In some possible designs, if the priority threshold is not configured, or if the first LCH has a second priority, the method further includes ignoring the first indication information. In this example, the terminal device may ignore the first indication information if neither a priority threshold nor a second priority is configured. For example, in this case, the terminal device may not allocate resources to the first LCH where Bj is less than or equal to 0.
[0027] In some possible designs, the first information includes a first duration corresponding to the first LCH. Sending data packets in the first LCH according to the resources allocated to the first LCH includes: sending data packets in the first LCH within the first duration using the resources allocated to the first LCH.
[0028] In some possible designs, the first duration begins timing when the first parameter of the first LCH is less than or equal to 0.
[0029] In some possible designs, the first duration is a pre-configured duration, or the first duration corresponds to the duration after the first parameter of the first LCH is less than or equal to 0 and before the first parameter of the first LCH is greater than 0.
[0030] In some possible designs, the method may also include receiving a fifth message for configuring the first duration of the first LCH.
[0031] This example provides a configuration control mechanism based on a first duration. During this first duration, the terminal device may allocate resources to the first LCH where Bj is less than or equal to 0. Outside of this first duration, the terminal device may not allocate resources to the first LCH where Bj is less than or equal to 0.
[0032] In some possible designs, the first parameter of the first LCH is Bj of the first LCH.
[0033] In some possible designs, the first data packet is a new data packet.
[0034] In a second aspect, a terminal device is provided, comprising: a memory and one or more processors. The memory and the processors are coupled. The memory stores computer program code, including computer instructions, which, when executed by the processor, cause the terminal device to perform the methods provided in the first aspect and any of its possible designs.
[0035] Thirdly, a resource allocation method is provided, applied to a network device. The method includes: sending first information for resource allocation to a first Linkage Clock (LCH), wherein a first parameter of the first LCH is less than or equal to 0. The first LCH includes at least one first data packet, the remaining time of which is less than a priority adjustment threshold. The first information includes at least one of the following: a data volume threshold, priority information of the first LCH, the first data packet in the first LCH, first indication information, and a first duration corresponding to the first LCH. The method also includes receiving uplink data, the uplink data including at least one of the first data packets in the first LCH.
[0036] Fourthly, a network device is provided for performing the method as provided in the second aspect.
[0037] Fifthly, a communication system is provided, which includes a terminal device as provided in the second aspect and a network device as provided in the fourth aspect.
[0038] It is understood that the solutions provided in the second to fifth aspects of this application can be respectively associated with the first aspect and any of its possible designs, and therefore the beneficial effects achieved are similar, which will not be elaborated here. Attached Figure Description
[0039] Figure 1 is a schematic diagram of the composition of a terminal device provided in an embodiment of this application;
[0040] Figure 2 is a logical schematic diagram of data transmission within a terminal device according to an embodiment of this application;
[0041] Figure 3 is a logical diagram of a communication process provided in an embodiment of this application;
[0042] Figure 4 is a schematic diagram of an LCH priority sorting method provided in an embodiment of this application;
[0043] Figure 5 is a schematic diagram of data packet allocation provided in an embodiment of this application;
[0044] Figure 6 is a schematic diagram of another data packet allocation provided in an embodiment of this application;
[0045] Figure 7 is a schematic diagram of the composition of another terminal device provided in an embodiment of this application;
[0046] Figure 8 is a schematic diagram of the composition of a chip system provided in an embodiment of this application. Detailed Implementation
[0047] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.
[0048] The wireless interface of a terminal device (such as user equipment (UE)) can be configured with three protocol layers, thereby enabling communication between the UE and the network (such as a base station (BS)). These three protocol layers may include: the physical layer (i.e., Layer 1, L1), the data link layer (i.e., Layer 2, L2), and the network layer (i.e., Layer 3, L3).
[0049] For example, referring to FIG1, a schematic diagram of the composition of a terminal device provided in an embodiment of this application is shown. FIG1 illustrates three protocol layers and the specific configuration of each protocol layer.
[0050] As shown in Figure 1, L3, L2 and L1 can be configured from top to bottom in the UE.
[0051] L3 can include the Radio Resource Control (RRC) layer. The RRC layer is a higher layer of the control plane, mainly responsible for controlling L1 / L2 to complete air interface resource transmission and providing information transmission services for the Non-Access Stratum (NAS) layer.
[0052] L1 may include the Physical Layer (PHY). The PHY may be configured with wireless physical channels that provide transmission for higher-layer services. In this application, the time-domain and / or frequency-domain characteristics of the wireless physical channels configured in the PHY can be referred to as the resources configured in the PHY.
[0053] L2 may include the Packet Data Convergence Protocol (PDCP) layer, the Radio Link Control (RLC) layer, and the Medium Access Control (MAC) layer.
[0054] In some implementations, a Service Data Adaptation Protocol (SDAP) layer may also be included between the RRC layer and the PDCP layer.
[0055] The PDCP layer may include one or more PDCP entities. Figure 2 shows a logical schematic diagram of data transmission within a terminal device according to an embodiment of this application.
[0056] Taking a PDCP layer that includes four PDCP entities as an example: PDCP1, PDCP2, PDCP3, and PDCP4.
[0057] During UE-network communication, data packets can be transmitted down to different PDCP entities. Taking PDCP1 as an example, data packets input to PDCP1 may include PDCP SDU 1. Data output from PDCP1 may include PDCP PDU 1.
[0058] Similarly, an RLC layer can include one or more RLC entities. For example, an RLC layer can include four RLC entities: RLC1, RLC2, RLC3, and RLC4.
[0059] Taking data transmission between PDCP1 and RLC1 as an example, PDCP1 can transmit PDCP PDU 1 to RLC1. Data transmission between other PDCP entities and RLC entities is similar.
[0060] It should be noted that after data enters the PDCP layer, if the remaining time is less than the corresponding priority adjustment threshold, this data can be called Delay-critical Data. In the PDCP layer, this Delay-critical Data can correspond to the Delay-critical PDCP SDU received by the PDCP layer entity.
[0061] For example, PDCP1 can start timing after receiving PDCP SDU 1. If the remaining time of the data is less than the corresponding priority adjustment threshold, PDCP1 can determine PDCP SDU 1 as a Delay-critical PDCP SDU.
[0062] When PDU-setDiscard is configured, the delay critical packet belongs to a PDU set and at least one packet in that PDU set has a remaining time less than the priority adjustment threshold.
[0063] When the PDCP layer submits delay-critical data to the RLC layer, the PDCP layer can notify the RLC layer that the data packet is delay-critical. Correspondingly, the RLC layer can determine that the received data is delay-critical.
[0064] For example, consider PDCP SDU 1 as latency-critical data, which has already been submitted to RLC1. PDCP1 can notify the RLC1 layer that the data corresponding to PDCP SDU 1 is latency-critical data. In this way, RLC1 can determine that the data received from PDCP1 is latency-critical data.
[0065] After receiving data at the RLC layer, the data can be transmitted to available resources in the PHY through the MAC layer.
[0066] The RLC layer can transmit data to the MAC layer through the Logic Channel (LCH).
[0067] For example, in the example shown in Figure 2, RLC1 and the MAC layer may include LCH1. RLC2 and the MAC layer may include LCH2. RLC3 and the MAC layer may include LCH3. RLC4 and the MAC layer may include LCH4.
[0068] In some embodiments, where the data transmitted in the LCH includes delay-critical data with remaining time less than the priority adjustment threshold, and further, this delay-critical data has not yet been transmitted, the LCH can be referred to as a delay-critical LCH.
[0069] In other embodiments, one or more LCHs can form an LCH group (LCG). A delay-critical LCH may correspond to an LCG to which the LCH belongs containing at least one LCH with delay-critical data that has not yet been transmitted.
[0070] The MAC layer can include mapping constraints for each logical channel configured by RRC, used to control the Logical Channel Prioritization (LCP) process. The set of mapping constraints for each logical channel in this MAC layer can be called the LCH mapping constraints.
[0071] For example, the LCH mapping restriction can provide one or more filtering conditions so that the MAC layer can place data transmitted on different LCHs into the corresponding PHY resources in the PHY according to the filtering conditions. It is understood that PHY resources can be used for uplink resource transmission between the UE and the base station. These PHY resources can include uplink resources and also correspond to uplink grants (UL grants). In the following description, PHY resources are simply referred to as resources.
[0072] In some implementations, the LCH mapping restriction can be configured by the network device (such as a base station) to the UE and stored in the UE's MAC layer.
[0073] As an example, LCH mapping restrictions may include at least one of the following:
[0074] Subcarrier space (SCS) configuration; Physical uplink shared channel (PUSCH) configuration; Configuration grant related configuration; Serving cell related configuration; Dynamic grant related configuration; Hybrid Automatic Repeat reQuest (HARQ) mode related configuration.
[0075] In practical implementation, the base station can send LCH mapping information to the UE to configure LCH mapping restrictions. Correspondingly, the LCH mapping information can include relevant fields to implement the aforementioned LCH mapping restrictions.
[0076] For example, the LCH mapping restriction information includes fields such as SCS configuration, PUSCH configuration, configuration authorization related configuration, serving cell related configuration, and dynamic authorization related configuration.
[0077] The following is an example of a field related to LCH mapping restrictions in LCH mapping information.
[0078] LCH mapping information:
[0079] Legacy mapping restriction:
[0080] {
[0081] allowedServingCells
[0082] allowedSCS-List
[0083] maxPUSCH-Duration
[0084] allowedPHY-PriorityIndex
[0085] configuredGrantType1Allowed
[0086] allowedCG-List
[0087] }
[0088] In the example above, the LCH mapping restrictions include the allowedSCS-List field for SCS configuration, the maxPUSCH-Duration field for PUSCH configuration, the configuredGrantType1Allowed field and / or the allowedCG-List field for authorization, the allowedServingCells field for serving cell configuration, and the configuredGrantType1Allowed field for dynamic authorization configuration.
[0089] The allowedServingCells field is used to configure the allowed cells(s) for transmission.
[0090] The allowedSCS-List field is used to set the allowed subcarrier spacing(s) for transmission. In some implementations, the allowedSCS-List field may include a list of SCSs that restrict the LCH from selecting uplink grants. The LCH can only map to an uplink grant if the allowedSCS-List configured for the LCH includes an uplink grant SCS.
[0091] In some embodiments, the allowedServingCells field may include information about one or more serving cells.
[0092] The `maxPUSCH-Duration` field sets the maximum PUSCH duration allowed for transmission. In some implementations, the `allowedSCS-List` field may include the PUSCH duration that limits the uplink grant available to the LCH. When the uplink grant PUSCH duration is less than `maxPUSCH-Duration`, the LCH can be mapped to that uplink grant.
[0093] The `allowedPHY-PriorityIndex` field is used to restrict the dynamic grants that the LCH can use (the `allowedPHY-PriorityIndex` sets the allowed PHY priority index(es) of a dynamic grant for transmission). In some embodiments, `allowedPHY-PriorityIndex` can be configured with a first value or a second value. For example, if the first value is 1 and the second value is 0: When `allowedPHY-PriorityIndex` is configured to 1, the dynamic grants that the LCH can use have a high priority; that is, the LCH can only be mapped to dynamic grants indicated as 1. When `allowedPHY-PriorityIndex` is configured to 0, the dynamic grants that the LCH can use have a low priority; that is, the LCH can only be mapped to dynamic grants indicated as 0.
[0094] The allowedCG-List field can include information about one or more configuration grants. This field is used to restrict the configuration grants that LCH data can use (allowedCG-List, which sets the allowed configured grant(s) for transmission).
[0095] Furthermore, in this example of LCH mapping information, the base station can send configuration authorization-related configurations to the UE via configuredGrantType1Allowed.
[0096] In this application, the configuration grant granted by the base station to the UE may include at least two types: configuration grant type 1 (hereinafter referred to as Type 1) and configuration grant type 2 (hereinafter referred to as Type 2).
[0097] Taking the base station configuring Type 1 for the UE as an example, when the UE uses PUSCH for data transmission, the uplink grant is provided by the Resource Management Layer (RRC). The UE stores this configuration and uses it as the grant configuration (configured grant Type 1 where an uplink grant is provided by RRC, and stored as configured uplink grant). Thus, after receiving the Type 1 configuration grant sent by the RRC, the configuration grant takes effect, and the UE can use this configuration grant for data transmission.
[0098] Taking a base station configuring Type 2 grant to the UE as an example, when the UE uses the PUSCH for data transmission, the uplink grant is provided by the Physical Downlink Control Channel (PDCCH), and the configuration is stored or cleared based on L1 signaling indicating the activation or deactivation of the configured uplink grant. Thus, after obtaining a Type 2 grant, the UE can use it for data transmission upon receiving an activation indication from the PDCCH. Conversely, upon receiving a deactivation indication from the PDCCH, the grant becomes invalid, and the UE will no longer use it for data transmission.
[0099] In the example of LCH mapping information, the base station instructs the LCH to use a Type 1 configuration grant for uplink data transmission by configuring the `configuredGrantType1Allowed` field to the UE. Correspondingly, upon receiving this field, the LCH can store it as an uplink configuration grant and perform uplink data transmission based on that grant.
[0100] It is understandable that the various LCH mapping restrictions corresponding to this LCH mapping information can restrict the mapping of data transmitted in the LCH to data blocks in the PHY from different perspectives, thereby achieving control over data transmission in the LCH.
[0101] During the process of mapping data to LCHs, the MAC layer can also determine the order in which resources are allocated to each LCH by combining the LCH priority and bucket information (such as Bj) of each configured LCH. Based on this resource allocation order, the MAC layer can fill the corresponding LCHs with data into the resources.
[0102] Prioritizing logical channels involves assembling data from multiple logical channels into a single transmission channel. Multiple MAC SDUs are multiplexed into a single MAC PDU and transmitted through the physical layer channel. When multiple logical channels are transmitting data, and the total data volume exceeds the transmission capacity of the current Transmission Time Interval (TTI), i.e., the data volume exceeds the maximum capacity of the resources, it is necessary to determine which logical channel should be prioritized for transmission.
[0103] For example, consider a base station that has configured LCH priority for the UE.
[0104] The LCH priority indicates the priority order of different LCHs. The smaller the LCH priority value, the higher the priority of that LCH. The MAC layer can allocate resources to LCHs in descending order of priority.
[0105] In some implementations, the LCH priority may include a legacy identifier. In the following examples, the LCH priority of this legacy is simply referred to as the first priority.
[0106] Take LCH1 and LCH2 in Figure 2 as examples.
[0107] The first priority can indicate the priority of LCH1 and LCH2 respectively. For example, the first priority of LCH1 is 3 and the first priority of LCH2 is 1. In this way, the first priority of LCH2 is higher than the first priority of LCH1.
[0108] Based on this first priority, the MAC layer can allocate resources to LCH2 and LCH1 in sequence. Therefore, data from LCH2 can be preferentially populated into the corresponding resources.
[0109] In some cases, the base station can also configure a second priority for the UE. This second priority may include an Additional identifier.
[0110] The second priority can correspond to the adjustment of the LCH priority when the LCH includes a packet with a remaining time less than the priority adjustment threshold, and the packet has not been transmitted.
[0111] For ease of explanation, in the following examples, data packets with remaining time less than the priority adjustment threshold will be referred to as the first data packet.
[0112] As an example, if a first LCH is configured with a second priority, and the first LCH includes at least one first data packet, and the first data packet is a newly transmitted data packet, then the first LCH uses the second priority.
[0113] Therefore, if the LCH uses the first priority by default, the first LCH that meets the above conditions will use the second priority for priority sorting.
[0114] For example, let's continue with LCH1 and LCH2 in Figure 2.
[0115] The second priority configured by the base station for the UE may include: the second priority of LCH1 is 1, and the second priority of LCH2 is 1.
[0116] Thus, if LCH1 includes at least one first data packet, and the first data packet is a new transmission, then LCH1 uses the second priority. That is, the priority of LCH1 is adjusted to 1.
[0117] For example, let's take LCH2 excluding the first data packet.
[0118] The MAC layer can treat LCH1 and LCH2 equally in terms of resource allocation based on their priority (1 for the second priority) and priority (1 for the first priority). For example, the MAC layer can allocate resources to both LCH1 and LCH2 simultaneously without having to allocate resources to one LCH first and then allocate resources to the other.
[0119] Therefore, by coordinating the first and second priorities, the MAC layer can flexibly adjust the priorities of LCH packets, including the first data packet, that have not yet been transmitted. This ensures that data packets with remaining time less than the priority adjustment threshold can be allocated resources more quickly, thereby guaranteeing the transmission efficiency of latency-critical data.
[0120] The above example uses the MAC layer to allocate resources to different LCHs based on LCH priority.
[0121] In other examples, the MAC layer can also determine the resource allocation for each LCH based on bucket information. For instance, the bucket information includes Bj. This Bj can also be referred to as the bucket size.
[0122] To avoid the problem of low-priority LCHs consistently failing to receive service, the base station assigns a Prioritized Bit Rate (PBR) to each uplink LCH of the terminal, measured in KB / s. The terminal's MAC layer scheduler limits the transmission rate of each LCH to below the PBR. For example, the transmission rate of high-priority LCHs can also be limited to below the PBR. If the data transmission rate of a high-priority LCH exceeds the PBR, even if that LCH is still transmitting data, the MAC layer scheduler will switch to serving lower-priority LCHs that have not reached the PBR.
[0123] Therefore, a UE typically maintains a variable Bj for each LCH. This Bj is used to guarantee the PBR of each LCH for fairness. For each LCH, Bj is incremented over time. For example, Bj = PBR * T, where T is the time elapsed since the last increment of Bj, i.e., the time during which Bj has remained unchanged.
[0124] In some implementations, the UE can limit the capacity limit of a single LCH based on the size of the first bucket. For example, when Bj is greater than the size of the first bucket (first bucket size = PBR × Bucket Size Duration (BSD), Bj is set to equal PBR × BSD). Here, BSD corresponds to the lifetime of cached data. This BSD indicates the maximum allowed residence time of data to be transmitted in the LCH within the cache. If the data's time in the cache exceeds this BSD, a priority adjustment or discarding mechanism may be triggered.
[0125] In this example, the MAC layer can allocate LCH resources based on the relationship between Bj and 0.
[0126] For example, the MAC layer can allocate resources to LCHs with Bj greater than 0 among the selected LCHs. For LCHs with Bj less than 0, the MAC layer will not allocate resources, or it will allocate resources to the LCHs with Bj less than 0 if resources remain after all LCHs have been allocated. The LCHs participating in resource allocation are selected according to the logical channel mapping rules.
[0127] Based on the above explanation, the following example illustrates how the MAC layer allocates resources to the LCH based on Bj and LCH priority.
[0128] For example, the MAC layer can allocate resources to each LCH according to the following steps 1-3.
[0129] Step 1: Allocate resources to the selected LCHs whose Bj is greater than 0 in descending order of LCH priority. If the PBR of an LCH is set to infinity, the MAC entity will allocate resources for all data to be transmitted on that LCH before satisfying the PBR of the lower priority LCH.
[0130] Step 2: Subtract the total size of the MAC SDU provided to the above logical channel j from Bj.
[0131] Take LCH1 from the example above as an example.
[0132] During the nth resource allocation of LCH1, LCH1's Bj is B1, and B1 is greater than 0. Based on LCH1's LCH priority, the MAC layer allocates a resource size of A to LCH1 during resource allocation. That is, the total size of the MAC SDU is A. Thus, after this nth resource allocation, LCH1's Bj is updated to B2 = B1 - A.
[0133] Therefore, during the (n+1)th resource allocation to LCH1, the decision on whether to allocate resources to LCH1 is based on its Bj value of B2. For example, if B2 is greater than 0, resources are allocated to LCH1 after sorting by LCH priority. Conversely, if B2 is less than 0, no resources are allocated to LCH1, or resources are allocated to LCH1 only if all LCHs have been allocated resources and there are remaining resources.
[0134] In this way, if LCH1 is allocated a large amount of resources in the nth allocation (e.g., A is greater than B1), the MAC layer can delay or stop allocating resources to LCH1 in the (n+1)th allocation, based on the fact that Bj is less than 0. This avoids a single LCH consuming a large amount of resources.
[0135] Step 3: If any resources remain, allocate resources to all selected logical channels in strict descending order until resources are exhausted or data is filled. Logical channels with the same priority should be treated the same.
[0136] Bj can be a negative value, meaning that if the amount of data carried by the resources allocated in the first step is greater than Bj, then Bj will be less than 0.
[0137] Because when the MAC layer allocates resources to an LCH, it will not allocate resources to the LCH if the Bj value of the LCH is less than 0, or it will only allocate resources to the LCH if there are remaining resources.
[0138] Thus, for the first LCH including the first data packet, even if the second priority of the first LCH is configured to a higher priority, the MAC layer may not configure resources for the first LCH because Bj is less than 0.
[0139] This results in the first data packet in the first LCH being unable to acquire resources in time, which in turn causes the first data packet with less than the priority adjustment threshold remaining time to be unable to quickly perform uplink transmission.
[0140] To ensure the rapid transmission of the first data packet whose remaining time is less than the priority adjustment threshold, some schemes no longer impose a Bj restriction on the first LCH containing the first data packet. For example, for the first LCH containing the first data packet, regardless of whether Bj is greater than or less than 0, the MAC layer can allocate resources for the first LCH according to the LCH priority.
[0141] This ensures that the first data packet with less than the priority adjustment threshold remaining is allocated resources promptly, thus guaranteeing the transmission efficiency of the first data packet. However, removing the Bj restriction may cause a single LCH to consume a large amount of resources during multiple resource allocations. This would be detrimental to the resource allocation of other LCHs, affecting the overall data transmission efficiency.
[0142] Based on the above explanation, a logical channel is configured with a first priority. To temporarily increase the priority of a logical channel when there are data packets with remaining time less than a threshold, allowing for priority resource allocation during the resource allocation phase, a logical channel has two priorities: a first priority and a second priority. The first priority is used when there are no data packets with remaining time less than the threshold, and the second priority is used when there are. Therefore, a priority adjustment threshold is configured for the LCH. If the smallest remaining time (or the remaining time of at least one data packet) in the logical channel's data is less than the priority adjustment threshold, and the logical channel is configured with a second priority, then the second priority is used for this logical channel. However, as mentioned in the background section, if Bj is less than 0, no resources will be allocated to the logical channel, resulting in data with remaining time less than the priority adjustment threshold not being transmitted. Therefore, when Bj is less than 0, LCHs with data having remaining time less than the priority adjustment threshold can be transmitted. However, this LCH cannot transmit indefinitely, which would cause it to be able to transmit continuously and occupy most of the resources because the Bj restriction has been lifted.
[0143] Combining the configurations of the first and second priorities, steps 1 to 3 above can correspond to the following steps: step 0, step 1, step 2, step N, and the process corresponding to step 3.
[0144] The overall process is as follows: When allocating resources for each logical channel, the logical channel is selected according to the logical channel mapping rules.
[0145] Step 0: Configure a priority adjustment threshold for the LCH. If the minimum remaining time in the data of the logical channel (or the remaining time of at least one packet) is less than the priority adjustment threshold, and the logical channel is configured with a second priority, then use the second priority for this logical channel.
[0146] Step 1: Allocate resources to logical channels with Bj greater than 0 in descending order of priority. If the logical channel PBR is set to infinity, the MAC entity will allocate resources for all data to be transmitted on the logical channel before satisfying the PBR of the lower priority logical channels. Specifically, if the logical channel used the second priority in step 0, the LCH will use the second priority when sorting according to priority order; if the logical channel did not use the second priority in step 0, the LCH will use the first priority when sorting according to priority order.
[0147] Step 2: Subtract the total size of the MAC SDU provided to the above logical channel j from Bj.
[0148] Step N: If the LCH applies the second priority, and if there is no remaining time for any new data transmission less than the priority adjustment threshold, and optionally, indicates that priority adjustment should be performed in the second round of resource allocation and / or network configuration, then the first priority should be applied.
[0149] Step 3: If any resources remain, all selected logical channels are allocated resources in strict descending order until resources are exhausted or data is filled. Logical channels with the same priority should be treated the same. If the first priority was used in Step 1, then the first priority will be used in Step 3; if the second priority was used in Step 1, then the first priority will be used in Step 3 if the first priority was applied in Step N; if the second priority was used in Step 1, then the second priority will be used in Step 3 if the first priority was not applied in Step N. This step determines whether to perform priority backoff if there are no packets in the LCH with remaining time less than the priority adjustment threshold. That is, if the first step uses the second priority, and there are no packets in the LCH with remaining time less than the priority adjustment threshold, priority backoff will occur, reverting from the second priority to the first priority.
[0150] There is no order restriction between steps 0 and 1, and there is no order restriction between steps N and 3.
[0151] Based on this, embodiments of this application provide a resource allocation method that ensures that the first data packet with remaining time less than the priority adjustment threshold can be allocated resources and transmitted in a timely manner. Simultaneously, it avoids excessive resource consumption by a single LCH.
[0152] The solutions provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0153] Referring to Figure 3, it is a logical schematic diagram of a communication process provided in an embodiment of this application.
[0154] As shown in Figure 3, the scheme may include:
[0155] S301. The network device sends LCH configuration to the UE.
[0156] The LCH configuration can be used by the UE to allocate LCH resources.
[0157] For example, the LCH configuration may include at least one of the following:
[0158] At least one LCH with first priority, at least one LCH with second priority, and PBR information.
[0159] Referring to the example in Figure 2, let's take the LCHs available in the MAC layer, including LCH1, LCH2, LCH3, etc., as an example.
[0160] In some embodiments, the first priority of the at least one LCH may include: the first priority of LCH1, the first priority of LCH2, and the first priority of LCH3.
[0161] In some embodiments, the second priority of at least one LCH may include at least one of the second priority of LCH1, the second priority of LCH2, and the second priority of LCH3.
[0162] S302, The UE configures resources for each LCH according to the LCH configuration.
[0163] For example, the UE will select an LCH that can be mapped to the uplink resource according to the LCH mapping rules.
[0164] The UE's MAC layer can determine the order in which resources are configured for the selected LCHs based on the LCH configuration. The UE's MAC layer can also configure resources for each LCH according to this determined order.
[0165] For example, for any chosen LCH, the MAC layer can determine that the LCH uses the second priority if the LCH includes at least one newly transmitted first data packet.
[0166] Therefore, the MAC layer can sort the selected LCHs in descending order of priority according to their usage priority, and allocate resources to each LCH in turn.
[0167] In this application, the MAC layer can allocate resources for packets in the first LCH, provided that the first LCH includes at least one first data packet and the Bj of the first LCH is less than or equal to 0, according to one or more of schemes A-E provided in the following description. The first data packet is a data packet with a remaining time less than the priority adjustment threshold. The first LCH is any one of the selected LCHs.
[0168] S303, the UE sends uplink data to the network device.
[0169] Based on the description in S302, the UE can populate the LCH data into the corresponding resources when configuring resources for each LCH. Therefore, the UE can use this resource to send the populated data uplink to the network device.
[0170] The following provides an illustrative example of the specific execution of S301-S302.
[0171] Referring to the example in Figure 2, let's take the LCHs available in the MAC layer, including LCH1, LCH2, LCH3, etc., as an example.
[0172] Referring to Figure 4, it is a schematic diagram of an LCH priority sorting provided in an embodiment of this application.
[0173] In this example, the first priority of LCH1 can be 1, the first priority of LCH2 can be 2, and the first priority of LCH3 can be 3. Therefore, based on the assumption that all LCHs use the first priority, the LCH priorities are sorted in descending order as: LCH1, LCH2, and LCH3.
[0174] In this way, if none of the LCHs include the newly transmitted first data packet, each LCH uses the first priority. Therefore, the UE can configure resources for each LCH based on this first priority ranking.
[0175] It should be noted that in some implementations, the UE can determine the first priority based on any LCH excluding the first data packet.
[0176] In some implementations, the network device can send an indication C1 to the UE to use the first priority. Correspondingly, the UE can determine that the first priority is in effect based on the received indication C1.
[0177] Figure 4 also provides an example of second priority sorting.
[0178] As shown in Figure 4, the second priority of LCH1 can be 1, the second priority of LCH2 can be 1, and the second priority of LCH3 can be 2. Correspondingly, when all LCHs use the second priority, the priorities of the LCHs are sorted in descending order as: LCH2 and LCH1, LCH3. Among them, LCH2 and LCH1 have the same priority.
[0179] In some cases, the selected LCH may include one or more LCHs using the second priority, while other LCHs use the first priority.
[0180] Taking LCH2 as an example, which includes at least one newly transmitted first data packet, while LCH1 and LCH3 do not include a first data packet.
[0181] Thus, LCH2 uses the second priority, while LCH1 and LCH3 use the first priority.
[0182] Therefore, the LCH priorities are sorted in descending order as follows: LCH2, LCH1, and LCH3. Among them, LCH2 and LCH1 have the same priority.
[0183] Based on LCH priority sorting, the MAC layer can combine the Bj of each LCH to allocate resources to each LCH.
[0184] In the existing scheme, if Bj of LCH2 is less than 0, then no resources are allocated to LCH2.
[0185] In contrast, in the solution provided in this application, if LCH2 includes at least one first data packet, and Bj of LCH2 is less than or equal to 0, the MAC layer can still allocate resources for the data packets in LCH2.
[0186] In some embodiments, this application provides a resource allocation method in which the MAC layer allocates resources to a first LCH that includes at least one first data packet according to the following first rule. This scheme may also be referred to as Scheme A.
[0187] For example, the first rule may include:
[0188] If the first LCH includes packets with remaining time less than the priority adjustment threshold, and the Bj of the first LCH is less than 0, resources are allocated preferentially only to packets preceding the last packet in the first LCH whose remaining time is less than the priority adjustment threshold.
[0189] In some implementations of this application, the sequential order of multiple data packets in the first LCH can correspond to the transmission order of those multiple data packets. For example, the transmission order can be determined based on the order in which the RLC layer entity submits data packets to the MAC layer entity; or, for instance, the transmission order of data packets can be adjusted based on whether the data packets are in the MAC layer entity's buffer and have not yet been sent.
[0190] Correspondingly, the data packets preceding the last data packet in the first LCH whose remaining time is less than the priority adjustment threshold can include: data packets preceding the transmission order of the last data packet whose remaining time is less than the priority adjustment threshold, based on the order of multiple data packets in the first LCH.
[0191] The last data packet in the first LCH with a remaining time less than the priority adjustment threshold (i.e., the first data packet) can be either a newly transmitted data packet or a retransmitted data packet.
[0192] In the following example, the interval formed by the packets before the last first packet in the first LCH is called the first interval.
[0193] Optionally, in the first LCH, for data packets outside the first interval (such as data packets after the last first data packet), the UE may not configure resources for these data packets; or, if there are still remaining resources after all LCHs have completed resource allocation, resources may be configured for data packets outside the first interval.
[0194] In this way, when the MAC layer configures resources for packets in the first LCH, it can determine that the second priority of the first LCH is effective based on the fact that the first LCH includes the first packet and that the first packet is a newly transmitted packet.
[0195] After sorting each LCH according to its priority, when configuring resources for the first LCH, if Bj of the first LCH is less than or equal to 0, the MAC layer can allocate resources for packets before the last first packet in the first LCH until the resources are exhausted; or, the last first packet is allocated resources.
[0196] For example, in the nth resource allocation, let's take the case where LCH1 and LCH3 do not include the first data packet, and LCH2 includes the newly transmitted first data packet.
[0197] Thus, LCH1 and LCH3 use the first priority, while LCH2 uses the second priority.
[0198] The MAC layer can sort each LCH in descending order of priority and allocate resources to each LCH according to the sorting results.
[0199] Based on the previous example, the order of sorting each LCH in descending order of priority is: LCH2 and LCH1, with LCH3 as an example.
[0200] If Bj is greater than 0 for LCH1, LCH2, and LCH3, the UE can allocate resources for LCH1 and LCH2 respectively. Afterward, the UE can also allocate resources for LCH3.
[0201] The UE can update the Bj of each LCH based on the MAC SDU size configured for each LCH during the nth resource allocation.
[0202] For example, the updated Bj of LCH1 and LCH3 is greater than 0, while the updated Bj of LCH2 is less than or equal to 0.
[0203] Therefore, during the (n+1)th resource allocation, the UE can allocate resources to LCH1 according to its priority in descending order. For LCH2 with the same priority, the UE can allocate resources to the data packets in LCH2 based on the first rule, since LCH2 includes the first data packet and Bj is less than or equal to 0.
[0204] For example, the UE can allocate resources for the packets preceding the last first packet in LCH2.
[0205] For ease of explanation, data packets with remaining time greater than the priority adjustment threshold are referred to as the second data packet.
[0206] As an example, referring to Figure 5, a schematic diagram of data packet allocation is provided for an embodiment of this application.
[0207] Taking the LCH2 data packets, which include P1 to P16, as an example, we will illustrate the resource allocation of LCH2.
[0208] During the nth resource allocation, since Bj of LCH2 is greater than 0, the UE can allocate resources for all data packets (such as P1-P16) in LCH2.
[0209] During the (n+1)th resource allocation, if Bj of LCH2 is less than or equal to 0 and LCH2 includes at least one first data packet, the UE can allocate resources for data packets within the first interval until resources are exhausted or the first data packet is exhausted.
[0210] For example, consider P1-P3, P8, and P10-P16 as the second data packets (i.e., data packets with remaining time greater than the priority adjustment threshold); and P4-P7 and P9 as the first data packets (i.e., data packets with remaining time less than the priority adjustment threshold). The last first data packet can be P9. The first interval can be the interval corresponding to P1-P9.
[0211] In this way, the UE can allocate resources for P1-P9 until the resources are exhausted or the first data packet is exhausted.
[0212] Optionally, the UE may choose not to allocate resources for the remaining P10-P16 data packets in LCH2. Alternatively, if all LCHs (such as LCH1, LCH2, and LCH3) have completed resource allocation and there are remaining resources, the UE may allocate resources for the remaining P10-P16 data packets in LCH2.
[0213] In the above example, taking the (n+1)th resource allocation as an example, where Bj of LCH2 is less than or equal to 0, and LCH2 includes the first data packet.
[0214] In other examples, if Bj of LCH2 is less than or equal to 0 and does not include the first data packet during the (n+1)th resource allocation, the UE may not allocate resources for LCH2.
[0215] Based on the above explanation of Scheme A, when performing new transmission, the UE can allocate resources to each logical channel using the following method:
[0216] 1. If the LCH is configured with a priority adjustment threshold, and the logical channel is configured with a second priority, then the second priority is used for this logical channel if the smallest remaining time in the data of the LCH (or the remaining time of at least one packet) is less than the priority adjustment threshold. Optionally, the packet with a remaining time less than the priority adjustment threshold is a newly transmitted packet. The remaining time is evaluated starting at the moment of the first symbol of the packet transmission, i.e., it can be the first symbol of the resource for transmitting the packet.
[0217] 2. Resources are allocated to logical channels whose Bj is greater than or equal to 0, in descending order of priority. If the PBR of a logical channel is set to infinity, the MAC entity will allocate resources for all data to be transmitted on that logical channel before satisfying the PBR of the lower-priority logical channel. When sorting the selected LCHs in descending order of priority, the priority used by each LCH is taken into account. For example, in conjunction with point 1 above, if the first LCH is configured with a priority adjustment threshold and a second priority, and if the remaining time of the first LCH is less than the priority adjustment threshold, the priority used by the first LCH is the second priority.
[0218] For example, if the smallest remaining time (or the remaining time of at least one data packet) in the logical channel of the LCH is less than the priority adjustment threshold, and this data is newly transmitted data, with the remaining time being evaluated starting at the moment of the first symbol of the resource for transmitting the data packet, then if the Bj of the LCH is not greater than 0 (or is negative), the LCH can allocate resources. The LCH uses the second priority for priority sorting and allocates resources in that order, or allocates resources in the order of priority sorting using the first priority. The LCH can only allocate resources for data packets with remaining times less than the priority adjustment threshold and for data packets whose transmission order is preceded by those with remaining times less than the priority adjustment threshold (optionally, this can be referred to as allocating resources for data packets whose transmission order is preceded by the last data packet with remaining time less than the priority adjustment threshold). That is, the LCH can allocate resources until the last data packet with remaining time less than the priority adjustment threshold is allocated resources; if resources are insufficient to allocate resources to the last data packet with remaining time less than the priority adjustment threshold, resources are allocated according to the resource size, i.e., until resources are exhausted.
[0219] (2) If the LCH uses the second priority, resources can be allocated according to the priority order of the second priority of the LCH, or according to the priority order of the first priority. The LCH can only allocate resources to packets with remaining time less than the priority adjustment threshold and packets that are transmitted before the priority adjustment threshold (optionally, this can be referred to as allocating resources to packets before the transmission order of the last packet with remaining time less than the priority adjustment threshold). That is, the LCH can allocate resources until the last packet with remaining time less than the priority adjustment threshold is allocated resources; if resources are insufficient to allocate resources to the last packet with remaining time less than the priority adjustment threshold, resources can be allocated according to the resource size, i.e., until resources are exhausted.
[0220] 3. Subtract the total size of the MAC SDU provided to the above logical channel j from Bj.
[0221] 4. If any resources remain, all selected logical channels will be allocated resources in strict descending order until resources are exhausted or data is filled. Logical channels with the same priority should be treated the same.
[0222] This avoids allocating excessive resources to non-newly transmitted LCH2 packets and / or packets with remaining time greater than or equal to the priority adjustment threshold when Bj of LCH2 is less than 0. This ensures that newly transmitted packets with remaining time less than the priority adjustment threshold are allocated resources earlier, while also preventing non-newly transmitted packets and / or packets with remaining time greater than or equal to the priority adjustment threshold from consuming excessive resources for extended periods, thus minimizing the impact on overall data transmission efficiency.
[0223] The above example provides a resource allocation method based on the first interval.
[0224] In other embodiments of this application, for the first LCH including the first data packet where Bj is less than 0, the UE can also allocate it through the following scheme B.
[0225] For example, in scheme B, the first LCH can be configured with a data volume threshold. This data volume threshold can be used to limit the maximum data volume allocated to the first LCH, including the first data packet, for packets where Bj is less than 0.
[0226] As one possible implementation, when the UE allocates resources for the first LCH, if the first LCH includes the first data packet, it can allocate resources for the first LCH according to the second rule.
[0227] The second rule may include:
[0228] For a LCH that includes packets with remaining time less than the priority adjustment threshold (i.e., the first packet), and where the Bj of the LCH is less than 0, resources are configured only for packets within the data volume threshold of that LCH.
[0229] Taking the first LCH as an example, this first LCH includes at least one newly transmitted first data packet. Therefore, if a second priority is configured for this first LCH, then the first LCH uses the second priority for priority sorting. The UE can then allocate resources to each LCH according to this priority sorting.
[0230] Taking resource allocation for the first LCH as an example. If Bj of the first LCH is less than or equal to 0, the UE allocates resources for data packets within the data volume threshold of the first LCH. Optionally, this continues until the first data packet is exhausted; or until the data volume of the data packets with configured resources reaches or exceeds the data volume threshold, that is, once the data packet exceeds or equals the data volume threshold, resource allocation for the LCH stops; or, the data volume of the data packets with configured resources does not exceed the data volume threshold, and the resources are exhausted.
[0231] For example, the network device can configure data volume thresholds for each LCH for the UE. In some implementations, the network device can configure data volume thresholds for each LCH for the UE through the LCH mapping configuration in S301.
[0232] For example, network devices can configure the data volume threshold for LCH1 as threshold DT1, the data volume threshold for LCH2 as threshold DT2, and the data volume threshold for LCH3 as threshold DT3, etc.
[0233] Continuing with the example of LCH2 including packets with remaining time less than the priority adjustment threshold, where Bj of LCH2 is less than or equal to 0.
[0234] In this example, the UE can allocate resources to packets in LCH2 based on the LCH2 threshold DT2.
[0235] For example, the UE can allocate resources for data packets up to the Mth data packet in LCH2. The total data size of the data packets before the Mth data packet does not exceed the threshold DT2 corresponding to LCH2. Alternatively, the UE can allocate resources for data packets up to the Mth data packet in LCH2. If the total data size of the Mth data packet and the data packets before it just exceeds the threshold DT2 corresponding to LCH2, then no resources will be allocated for data packets after the Mth data packet.
[0236] For example, the UE can allocate resources to packets in LCH2 in any of the following ways:
[0237] The UE allocates resources to data packets preceding the last data packet in LCH2 whose remaining time is less than the priority adjustment threshold (e.g., P1-P9). The total data size of the data packets allocated resources does not exceed the data size threshold. The last data packet allocated resources (i.e., the Mth data packet) can be the last first data packet; thus, the data size of the data packets allocated resources can be less than the data size threshold.
[0238] or,
[0239] The UE allocates resources to the data packets before the Mth data packet in LCH2, and the total data volume of the data packets before the Mth data packet is equal to the data volume threshold (such as DT2); in this way, the data of the data packets for which resources are allocated can be equal to the data volume threshold.
[0240] or,
[0241] The UE allocates resources to data packets preceding the Mth data packet in LCH2, provided that the total data size of the Mth data packet and all preceding data packets is exactly greater than or equal to a data size threshold (e.g., DT2). Thus, the data size of the data packet for which resources are allocated can be greater than or equal to the data size threshold. For example, cases where the total data size of the Mth data packet and all preceding data packets is exactly greater than or equal to the data size threshold could include: the sum of the data size of the (M-1)th data packet and all preceding data packets equals data size 1, which is less than the data size threshold; or the data size of the Mth data packet is data size 2, where data size 1 plus data size 2 is greater than or equal to the data size threshold. After allocating resources to the Mth data packet, resource allocation for that LCH is stopped.
[0242] The examples above assume that there are enough remaining resources to allocate resources to data packets up to the Mth data packet. If there are insufficient remaining resources to allocate resources to data packets up to the Mth data packet, the UE will allocate resources to data packets in LCH2 until the resources are exhausted.
[0243] Referring to Figure 6, which is a schematic diagram of another data packet allocation provided in an embodiment of this application, the resource allocation based on the second rule in Scheme B is illustrated by example.
[0244] As shown in Figure 6, taking LCH2 with Bj less than or equal to 0 as an example.
[0245] In this LCH2, P4, P5, P6, P7, and P9 are data packets with remaining time less than the priority adjustment threshold. Therefore, data packets within the first interval can include P1-P9.
[0246] Taking the data volume threshold DT2 corresponding to LCH2 as an example, which includes a maximum of 12 data packets.
[0247] In some implementations, the UE can allocate resources based on the condition that Bj in LCH2 is less than or equal to 0, and LCH2 includes the first data packet, which is within the data volume threshold DT2, and is the data packet before the last first data packet.
[0248] Referring to Figure 6, the last first data packet within the data volume threshold DT2 is P9. Therefore, the UE can allocate resources for P1-P9.
[0249] In other implementations, the UE can allocate resources for all first and / or second data packets within the data volume threshold DT2, based on the fact that Bj in LCH2 is less than or equal to 0 and LCH2 includes first data packets.
[0250] Referring to Figure 6, the last data packet within the data volume threshold DT2 is P12. Therefore, the UE can allocate resources for P1-P12.
[0251] In other examples, the data size threshold DT2 corresponding to LCH2 includes a maximum of 7 data packets.
[0252] In some implementations, the UE can allocate resources based on the condition that Bj in LCH2 is less than or equal to 0, and LCH2 includes the first data packet, which is within the data volume threshold DT2, and is the data packet before the last data packet.
[0253] Referring to the example in Figure 6, the last data packet within the data volume threshold DT2 is P7. Thus, the UE can allocate resources for P1-P7.
[0254] In other examples, when the available resources are limited, the UE can allocate resources according to any of the above resource allocation methods until the resources are exhausted.
[0255] Based on this scheme, when performing new transmission, when allocating resources for each logical channel, resources are allocated to the logical channels according to the following scheme B:
[0256] 1. If the LCH is configured with a priority adjustment threshold, and if the smallest remaining time (or the remaining time of at least one packet) in the data of the logical channel is less than the priority adjustment threshold, and the data is newly transmitted, with the remaining time being evaluated starting at the moment of the first symbol of the resource for transmitting the packet, and the logical channel is configured with a second priority, then the second priority shall be used for this logical channel.
[0257] 2. Resources are allocated to logical channels with Bj greater than 0 in descending order of priority. If the logical channel PBR is set to infinity, the MAC entity will allocate resources for all data to be transmitted on the logical channel before satisfying the PBR of the lower priority logical channels. In this process, if the LCH uses the second priority, the LCH is sorted according to the size of the second priority.
[0258] (1) If the minimum remaining time (or the remaining time of at least one data packet) in the logical channel of the LCH is less than the priority adjustment threshold, the data is newly transmitted data and the remaining time is evaluated starting at the moment of the first symbol of the resource of the transmitted data packet. In this case, if the Bj of the LCH is not greater than 0 (or is negative), the LCH can be allocated resources, optionally in the order of priority sorting according to the second priority or in the order of priority sorting according to the first priority.
[0259] In some implementations, the LCH is configured with a data volume threshold. If the amount of data allocated to packets with remaining time less than the priority adjustment threshold and packets preceding the priority adjustment threshold in the transmission order (optionally, this can be referred to as allocating resources to packets preceding the last packet with remaining time less than the priority adjustment threshold in the transmission order) is less than or equal to the data volume threshold, then resources are allocated to packets with remaining time less than the priority adjustment threshold and packets preceding the priority adjustment threshold in the transmission order. That is, the LCH can allocate resources until the last packet with remaining time less than the priority adjustment threshold is allocated resources (i.e., until all packets with remaining time less than the priority adjustment threshold are exhausted, i.e., filled up); if resources are insufficient to allocate resources to the last packet with remaining time less than the priority adjustment threshold, then resources are allocated according to the available resources, i.e., until resources are exhausted.
[0260] In some implementations, the LCH is configured with a data volume threshold. If the data volume of packets with remaining time less than the priority adjustment threshold and packets preceding the priority adjustment threshold in the transmission order (optionally, this can be referred to as allocating resources to packets preceding the last packet with remaining time less than the priority adjustment threshold in the transmission order) exceeds the data volume threshold, then resources are allocated to packets with remaining time less than the priority adjustment threshold and packets preceding the priority adjustment threshold in the transmission order according to the data volume threshold. In other words, the LCH can allocate resources until the data volume of a packet exceeds the data volume threshold.
[0261] In other implementations, the LCH is configured with a data volume threshold, and resources are allocated to the LCH according to the data volume threshold. That is, the LCH can allocate resources until the data volume of the data packet exceeds the data volume threshold.
[0262] (2) If the LCH applies the second priority, resources can be allocated in the order of priority sorting according to the second priority of the LCH, or in the order of priority sorting according to the first priority.
[0263] In some implementations, the LCH is configured with a data volume threshold. If the amount of data allocated to packets with remaining time less than the priority adjustment threshold and packets preceding the priority adjustment threshold in the transmission order (optionally, this can be referred to as allocating resources to packets preceding the last packet with remaining time less than the priority adjustment threshold in the transmission order) is less than or equal to the data volume threshold, then resources are allocated to packets with remaining time less than the priority adjustment threshold and packets preceding the priority adjustment threshold in the transmission order. That is, the LCH can allocate resources until the last packet with remaining time less than the priority adjustment threshold is allocated resources (i.e., until all packets with remaining time less than the priority adjustment threshold are exhausted, i.e., filled up); if resources are insufficient to allocate resources to the last packet with remaining time less than the priority adjustment threshold, then resources are allocated according to the available resources, i.e., until resources are exhausted.
[0264] In some implementations, the LCH is configured with a data volume threshold. If the data volume of packets with remaining time less than the priority adjustment threshold and packets preceding the priority adjustment threshold in the transmission order (optionally, this can be referred to as allocating resources to packets preceding the last packet with remaining time less than the priority adjustment threshold in the transmission order) exceeds the data volume threshold, then resources are allocated to packets with remaining time less than the priority adjustment threshold and packets preceding the priority adjustment threshold in the transmission order according to the data volume threshold. In other words, the LCH can allocate resources until the data volume of a packet exceeds the data volume threshold.
[0265] In other implementations, the LCH is configured with a data volume threshold, and resources are allocated to the LCH according to the data volume threshold. That is, the LCH can allocate resources until the data volume of the data packet exceeds the data volume threshold.
[0266] 3. Subtract the total size of the MAC SDU provided to the above logical channel j from Bj; if the above LCH applies the second priority (i.e., there is remaining time less than the priority adjustment threshold).
[0267] 4. If any resources remain, all selected logical channels will be allocated resources in strict descending order until resources are exhausted or data is filled. Logical channels with the same priority should be treated the same.
[0268] This application also provides a resource allocation method that enables the UE to allocate resources reasonably according to the priority of the LCH.
[0269] For example, in this example, the network device can configure a priority threshold for the UE. This priority threshold can be used to limit the LCH priority that can be allocated resources or used for data transmission.
[0270] In some examples, this priority threshold can be carried in the LCH mapping configuration of S301 mentioned above.
[0271] Based on the above explanation, for any selected LCH, if the LCH includes the newly transmitted first data packet and the LCH is configured with a second priority, then the LCH uses the second priority. Thus, the LCH priority used can be the second priority.
[0272] Correspondingly, if the LCH does not include the first data packet, or the first data packet in the LCH is not a newly transmitted data packet, or the LCH is not configured with a second priority, or the LCH is not configured with a priority adjustment threshold, then the LCH uses the first priority. Thus, the LCH priority used can be the first priority.
[0273] The UE can sort the LCHs in descending order of priority based on the priority of each LCH.
[0274] In this example, the UE can select LCHs with higher priorities than the priority threshold for resource allocation based on the priority threshold.
[0275] Taking a priority threshold of P as an example.
[0276] After determining the priority of each LCH, the UE can select LCHs with a priority lower than P for resource allocation.
[0277] For example, take LCH1 and LCH3 as excluding data packets with remaining time less than the priority adjustment threshold, and LCH2 as including newly transmitted data packets with remaining time less than the priority adjustment threshold.
[0278] Correspondingly, LCH1 and LCH3 can be activated with the first priority, while LCH2 can be activated with the second priority.
[0279] Thus, LCH1 can be used with a priority of 1, LCH2 can be used with a priority of 1, and LCH3 can be used with a priority of 3.
[0280] Taking P=2 as an example. LCH1 and LCH2 have higher priorities than the priority threshold, while LCH3 has a lower priority than the priority threshold. The UE can allocate resources only to LCH1 and LCH2, and not to LCH3.
[0281] Therefore, after allocating resources for data packets in LCH1 and data packets in LCH2 with priority resource allocation according to either of the schemes shown in Figure 5 or Figure 6, if there are remaining resources, the UE can allocate resources for the remaining data packets in LCH2.
[0282] Based on this scheme, when performing new transmission, resources are allocated to each logical channel according to the following scheme C:
[0283] For logical channels where there are packets with remaining time less than the priority adjustment threshold, resource allocation can be performed based on the priority threshold to fill packets and the size of packets with remaining time less than the priority adjustment threshold. For example, LCH1 has a priority of 1, LCH2 has a priority of 3, LCH3 has a priority of 4, and LCH4 has a priority of 2.
[0284] For example, if a priority threshold of 2 is configured, data transmission can be performed in the LCH if the priority of the LCH is less than or equal to 2, and there are packets in the LCH with remaining time less than the priority adjustment threshold.
[0285] In some implementations, data in the LCH can be transferred until the LCH data is exhausted or resources are exhausted.
[0286] In other implementations, which data is transmitted can be determined based on scheme A and / or scheme B.
[0287] Scheme C provides a resource allocation method based on LCH priority, ensuring that lower-priority LCHs do not consume resources, thereby optimizing LCH resource allocation.
[0288] In the above scheme, the UE can allocate resources for LCH of data packets with Bj less than 0, including those with remaining time less than the priority adjustment threshold, according to preset configurations such as the first rule, the second rule, and the priority threshold.
[0289] In other embodiments, the network device can enable the above-mentioned resource allocation logic through indication information. In this application, the enable control of the resource allocation logic may include: whether to allocate resources to the first LCH including the first data packet where Bj is less than 0; and / or whether the first LCH including the first data packet where Bj is less than 0 can transmit data.
[0290] For example, the network device can send a first indication information to the UE, which can be used to indicate whether the UE can transmit data for a LCH containing data packets with Bj less than 0 and a remaining time less than the priority adjustment threshold, and optionally apply / do not apply at least one of the above schemes to allocate resources for the LCH.
[0291] Taking the example of a network device instructing a UE to apply / not apply the first rule, the second rule, and the priority threshold for resource allocation through the first indication information.
[0292] Thus, when the first indication information indicates that the first rule, the second rule, and the priority threshold are applied for resource allocation, the UE can prioritize the LCHs to be used based on the priority threshold according to the first indication information. For the first LCH that meets the priority threshold after filtering, where Bj is less than or equal to 0 and includes the first data packet, the UE can allocate resources for the data packets in the first LCH according to the first rule and the second rule.
[0293] Correspondingly, if the first indication information indicates that the first rule, the second rule, and the priority threshold are not applied for resource allocation, the UE may not allocate resources to LCHs with Bj less than or equal to 0 and including the first data packet, and LCHs with Bj less than or equal to 0 but not including the first data packet.
[0294] In the above example, the UE allocates resources to a first LCH containing a first data packet where Bj is less than or equal to 0, based on the configured first rule, second rule, and priority threshold. In other examples, if the first indication information indicates that resource allocation can be performed on a first LCH containing a first data packet where Bj is less than or equal to 0, and the UE has not configured a rule for resource allocation to the first LCH, then the UE can directly allocate resources to the first LCH until the data packets in the first LCH are exhausted, or the resources are exhausted.
[0295] In the specific configuration process, the first indication information can be indicated at the granularity of LCH or LCG.
[0296] Taking the first indication information indicated at the LCH granularity as an example, the UE can determine whether the LCH corresponding to the first indication information can transmit data when Bj is less than or equal to 0. Optionally, the UE can apply or not apply the first rule, the second rule, and the priority threshold for resource allocation. If the UE side has a first rule and the first indication information indicates that Bj is less than 0, and the UE side has a data volume threshold, then the UE side will allocate resources according to the first rule; if the UE side has a data volume threshold, then the UE side will allocate resources according to the data volume threshold; if the UE side has a priority threshold, then the UE side will allocate resources according to the priority threshold; if the UE side has not defined any rules, then the UE can directly allocate resources for the LCH until the data in the LCH is exhausted or the resources are exhausted.
[0297] If the first indication information indicates that the first LCH containing the first data packet can transmit data, the UE can transmit the corresponding data packet using the resources allocated to the data packet in the first LCH in the aforementioned example.
[0298] Accordingly, if the first indication information indicates that the first LCH containing the first data packet cannot transmit data, the UE will not transmit the data packet in the first LCH where Bj is less than or equal to 0.
[0299] Taking the first indication information indicated at the LCG granularity as an example, the UE can determine whether any LCH in the corresponding LCG can transmit data when Bj is less than or equal to 0 based on the first indication information. Optionally, the UE can apply or not apply the first rule, the second rule, and the priority threshold for resource allocation. If the UE receives the first indication information and the first indication information indicates that the first LCH in the LCG, including the first data packet, with Bj less than 0, is allocated resources, and the UE side has the first rule, then the resource allocation is performed according to the first rule; if the UE side has the data volume threshold, then the resource allocation is performed according to the data volume threshold; if the UE side has the priority threshold, then the resource allocation is performed according to the priority threshold; if the UE side has not defined any rules, then the UE can directly allocate resources for the LCH in the LCG until the data or resources of the LCH in the LCG are exhausted.
[0300] If the first indication information indicates that the first LCH containing the first data packet in the LCG is less than or equal to 0, the UE can transmit the corresponding data packet using the resources allocated to the data packet in the first LCH in the LCG in the aforementioned example.
[0301] Accordingly, if the first indication information indicates that the first LCH containing the first data packet cannot transmit data, the UE will not transmit the data packet in the first LCH where Bj in the LCG is less than or equal to 0.
[0302] In the following example, the first instruction information indicates whether or not to apply the first rule, the second rule, and the priority threshold for resource allocation.
[0303] The implementation of the first instruction information can also differ in different implementations.
[0304] In some implementations, the initial indication information can be implemented using bit mapping.
[0305] For example, the first indication information may include a Q-bit mapping. In this Q-bit mapping, each bit can correspond to an LCH or an LCG.
[0306] Take the R-th bit in a Q-bit mapping as an example.
[0307] The network device can configure the value of the Rth bit as the first value, instructing the LCH or LCG mapped by the Rth bit to apply the first rule, the second rule, and the priority threshold for resource allocation.
[0308] Correspondingly, the UE can configure the Rth bit in the Q-bit mapping in the first indication information as the first value, and apply the first rule, the second rule, and the priority threshold to the LCH or LCG corresponding to the Rth bit for resource allocation.
[0309] The network device can configure the value of the R-th bit to a second value, indicating that the LCH or LCG mapped by the R-th bit should not be allocated resources using the first rule, the second rule, and the priority threshold.
[0310] Correspondingly, the UE can configure the Rth bit in the Q-bit mapping in the first indication information as the second value, and not apply the first rule, the second rule, and the priority threshold to the LCH or LCG corresponding to the Rth bit for resource allocation.
[0311] In some examples, where each bit in the Q-bit mapping corresponds to one LCG, Q can be less than or equal to 8.
[0312] The above example uses a network device to configure a priority adjustment threshold and / or a second priority corresponding to the remaining time for the UE.
[0313] In other examples, if the network device does not configure a priority adjustment threshold or a second priority for the UE corresponding to the remaining time, the UE ignores the content corresponding to the Q bits in the first indication information.
[0314] Optionally, if the network device does not configure a priority threshold or a second priority for the UE, the UE allocates resources to LCHs with Bj greater than 0 according to the first priority.
[0315] In other implementations, the first indication information can be implemented through the indication information for the LCH ID in the LCH configuration.
[0316] Network devices can enable the LCH ID indication information in any LCH configuration, which is used to indicate that the first rule, the second rule, and the priority threshold are applied to allocate resources for the LCH corresponding to that LCH ID.
[0317] Correspondingly, if the UE is configured with a priority adjustment threshold corresponding to the remaining time and / or a second priority, it can configure the LCH ID to be enabled and apply the first rule, the second rule, and the priority threshold to allocate resources for the LCH corresponding to that LCH ID.
[0318] Network devices can configure the LCH ID indication information in any LCH configuration to be disabled, which indicates that the first rule, the second rule, and the priority threshold should not be applied to the LCH corresponding to that LCH ID for resource allocation.
[0319] Correspondingly, if the UE is configured with a priority adjustment threshold corresponding to the remaining time and / or a second priority, it can be configured to disable the LCH ID based on the indication information, and the first rule, the second rule and the priority threshold will not be applied to the LCH corresponding to that LCH ID for resource allocation.
[0320] In other examples, if the network device does not configure a priority adjustment threshold or a second priority for the UE corresponding to the remaining time, the UE ignores the indication information for the LCH ID in the LCH configuration.
[0321] Optionally, the UE can allocate resources to LCHs with Bj greater than 0 based on the first priority.
[0322] Based on this scheme, when performing new transmission, resources are allocated to each logical channel according to the following scheme D:
[0323] When Bj is less than or equal to 0, the network side configures first indication information at the granularity of LCH or LCG. This first indication information indicates whether an LCH or LCG can transmit data or allocate resources when Bj is less than or equal to 0 and the LCH includes packets with remaining time less than the priority adjustment threshold. This first indication information is configured only if the LCH has a priority adjustment threshold or a second priority configured. If an LCH does not have a priority adjustment threshold or a second priority configured, this first indication information is absent or will not appear.
[0324] In some implementations, the first indication information can be a bit map, with each bit corresponding to an LCH or LCG. When a bit takes the first value, the LCH can transmit data or allocate resources if Bj is less than or equal to 0 and the LCH includes packets with remaining time less than the priority adjustment threshold (i.e., the LCH will apply the second priority). When a bit takes the second value, the LCH cannot transmit data or allocate resources if Bj is less than or equal to 0 and the LCH includes packets with remaining time less than the priority adjustment threshold (i.e., the LCH will apply the second priority).
[0325] When the LCH is configured with a priority threshold or a second priority, this bit value can take the first or second value; when the LCH is not configured with a priority threshold or a second priority, this bit has no meaning and the UE can ignore this first indication information.
[0326] When this bit mapping corresponds to LCG, it can be up to 8 bits.
[0327] In some implementations, the first indication information can be the indication information for the LCH ID in the LCH configuration. If the first indication information includes "enable", it indicates that the LCH corresponding to the LCH ID can transmit data or allocate resources when Bj is less than or equal to 0 and the LCH includes packets with remaining time less than the priority adjustment threshold (i.e., the LCH will apply the second priority); if the first indication information includes "disable", it indicates that the LCH cannot transmit data or allocate resources when Bj is less than or equal to 0 and the LCH includes packets with remaining time less than the priority adjustment threshold (i.e., the LCH will apply the second priority).
[0328] The field corresponding to the first indication information is conditional. It is configured only when the LCH is configured with a priority adjustment threshold and a second priority. If the LCH is not configured with a priority adjustment threshold and a second priority, the indication information will not be configured. In this case, if the network is configured, the UE can ignore this field.
[0329] In the above implementation, the network device can use the first indication information to instruct the UE to apply or not apply the configured scheme (such as according to the first rule, the second rule and / or the priority threshold) to allocate resources for LCH or LCG.
[0330] In other implementations, network devices can also configure timers for any LCH to control the UE's resource allocation for LCHs with Bj less than 0, including packets with remaining time less than the priority adjustment threshold.
[0331] For example, a network device may send a timing message to a UE. This timing message may include timing information for at least one selected LCH.
[0332] This timing information can be used to indicate the time interval in which any of the above resource allocation methods are applied.
[0333] For example, within the time domain interval indicated by the timing information, the UE can perform priority filtering on the LCHs used based on priority thresholds. Among the LCHs that meet the priority thresholds after filtering, the UE can allocate resources to LCHs whose Bj is less than 0 and which include data packets with remaining time less than the priority adjustment threshold, according to the first rule and / or the second rule.
[0334] Outside the time domain interval indicated by the timing information, the UE can prioritize the LCHs used based on priority thresholds. For the LCHs that meet the priority thresholds after prioritization, LCHs with Bj less than or equal to 0, and LCHs with Bj less than or equal to 0 that do not include the first data packet, no resource allocation is performed.
[0335] As an example, the time interval indicated by this timing information can be a first duration. The UE can control the timer to count within the first duration and stop counting outside the first duration.
[0336] For example, the UE can start the timer corresponding to the first LCH if Bj of the first LCH is less than or equal to 0.
[0337] In some implementations, the timing information can indicate a first duration. This allows the UE to stop timing after the first duration has elapsed since the timer for the first LCH started counting. During the first duration of the timer's counting process for the first LCH, the UE can allocate resources for the first LCH using any of the methods described above.
[0338] In other implementations, the UE can stop the timer of the first LCH if Bj is greater than 0. Thus, this first duration can correspond to the period between when Bj of the first LCH is less than or equal to 0 and when Bj of the first LCH is greater than 0. During this first duration of the timer's counting process for the first LCH, the UE can allocate resources for the first LCH according to any of the methods described above.
[0339] Based on this scheme, when performing new transmission, resources are allocated to each logical channel according to the following scheme E:
[0340] If there are logical channels with data packets whose remaining time is less than the priority adjustment threshold, and Bj is less than or equal to 0, resources can be allocated based on timing information to fill data packets and the data size of data packets whose remaining time is less than the priority adjustment threshold.
[0341] When Bj of LCH is less than or equal to 0, timing begins. Within this time period, LCH can perform data transmission when Bj is less than or equal to 0. That is, LCH can only perform data transmission for a period of time when Bj is less than or equal to 0. If the duration of Bj being less than or equal to 0 exceeds this timing information, data transmission cannot be performed when Bj is less than or equal to 0.
[0342] The above method can be implemented using a timer. For example, a timer can be started when Bj of LCH is less than or equal to 0. Data transmission can be performed while Bj is less than or equal to 0 within the timer's duration. The timer can be stopped or reset when Bj of LCH is greater than 0. If the timer times out, data transmission cannot continue while Bj of LCH is less than or equal to 0. The timer remains in a timeout state, and can be reset once Bj of LCH is greater than 0. It can then be started again for a new round.
[0343] Timing information and priority threshold information can be used together.
[0344] For example, LCH1 has a priority of 1, LCH2 has a priority of 3, LCH3 has a priority of 4, and LCH4 has a priority of 2.
[0345] For example, if a priority threshold of 2 is configured, data transmission can be performed in the LCH if the priority of the LCH is less than or equal to 2, and there are packets in the LCH with remaining time less than the priority adjustment threshold.
[0346] In some implementations, data in the LCH can be transferred until the LCH data is exhausted or resources are exhausted.
[0347] In other implementations, which data is transmitted can be determined based on schemes A and B.
[0348] The terminal device in this application embodiment may include at least one of the following: mobile phone, foldable electronic device, tablet computer, desktop computer, laptop computer, handheld computer, laptop, ultra-mobile personal computer (UMPC), netbook, cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, in-vehicle device, smart home device, or smart city device. This application embodiment does not impose any special limitation on the specific type of the terminal device.
[0349] In some embodiments, the terminal device may have the configuration shown in FIG1. In other embodiments, the terminal device may also have other configurations.
[0350] For example, Figure 7 shows a schematic diagram of the composition of a terminal device 700. The terminal device 700 includes a processor 701 and a transceiver 702 internally connected and communicating with the processor 701. Optionally, the terminal device 700 may also include an antenna 703 and / or a radio frequency unit. Optionally, the terminal device 700 may include one or more memories 704, which may store instructions, which may be computer programs. The computer program can be run on the terminal device 700, causing the terminal device 700 to perform the methods described in the above embodiments. For example, the terminal device 700 can execute any one or more corresponding methods in schemes A-E by running the computer program.
[0351] It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0352] Figure 8 shows a schematic diagram of a chip system 800. The chip system 800 may include a processor 801 and a communication interface 802, used to support related devices in implementing the functions involved in the above embodiments. In one possible design, the chip system also includes a memory for storing necessary program instructions and data for the terminal device. The chip system may be composed of chips or may include chips and other discrete devices. It should be noted that in some implementations of this application, the communication interface 802 may also be referred to as an interface circuit. The chip system may be a modem, or a system-on-a-chip (SoC) including a modem; the above methods can be implemented by a modem.
[0353] It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0354] In other embodiments of this application, the chip system includes a processing circuit, a receiving pin, and a transmitting pin. The receiving pin, the transmitting pin, and the processing circuit communicate with each other via internal interconnection paths. The processing circuit executes the resource allocation method provided in any of the above embodiments to control the receiving pin to receive signals and to control the transmitting pin to transmit signals.
[0355] Furthermore, this application provides a terminal device that has the function of implementing the behavior of the terminal device in any of the above method embodiments. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the various sub-functions described above. Specifically, the terminal device can be a user device, such as a mobile phone.
[0356] This application also provides a network device. This network device can be used to implement the functions of the network devices involved in any of the above embodiments. In some embodiments, the network device can be a base station.
[0357] This application also provides a communication system, which includes the network device and terminal device described in any of the above embodiments.
[0358] This application also provides a computer-readable storage medium storing a computer program thereon. When executed by a computer, the computer program implements the method flow related to the terminal device in any of the above method embodiments. Specifically, the computer can be the aforementioned terminal device.
[0359] This application also provides a computer-readable storage medium storing a computer program thereon. When executed by a computer, the computer program implements the method flow related to the network device in any of the above method embodiments. Specifically, the computer can be the aforementioned network device.
[0360] This application also provides a computer program or a computer program product including a computer program, which, when executed on a computer, will cause the computer to implement the method flow related to the terminal device in any of the above method embodiments. Specifically, the computer can be the aforementioned terminal device.
[0361] This application also provides a computer program or a computer program product including a computer program, which, when executed on a computer, causes the computer to implement the method flow related to the network device in any of the above method embodiments. Specifically, the computer can be the aforementioned network device.
[0362] This application also provides an apparatus for use in a terminal device. The apparatus is coupled to a memory and is used to read and execute instructions stored in the memory, enabling the terminal device to execute method flows related to the terminal device in any of the above method embodiments. The memory may be integrated into the processor or may be independent of the processor. The apparatus may be a chip on the terminal device. In some implementations, the chip may be a System on a Chip (SoC).
[0363] It should be understood that the processor mentioned in the embodiments of the present invention can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0364] It should also be understood that the memory mentioned in the embodiments of the present invention can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).
[0365] It should be noted that the memories described herein are intended to include, but are not limited to, these and any other suitable types of memories.
[0366] The functions, actions, operations, or steps in the above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. When implemented using software programs, they can be implemented, in whole or in part, in the form of a computer program product. This computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or include one or more data storage devices such as servers and data centers that can be integrated with the medium. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state disks, SSDs), etc.
[0367] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of the application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the scope of this application. Thus, if such modifications and modifications of this application fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and modifications.
Claims
1. A method for resource allocation, characterized in that, The method is applied to a terminal device, and the method includes: Based on the first information, resource allocation is performed for the first logical channel (LCH); the first parameter of the first LCH is less than or equal to 0; the first LCH includes at least one first data packet, and the remaining time of the first data packet is less than the priority adjustment threshold. The first information includes at least one of the following: Data volume threshold, priority information of the first LCH, the first data packet in the first LCH, first indication information, and the first duration corresponding to the first LCH; Based on the resources allocated to the first LCH, send the data packets in the first LCH.
2. The method according to claim 1, characterized in that, The first information includes the first data packet in the LCH; The step of allocating resources to the first LCH based on the first information includes: Allocate resources to the first LCH until the first packet is exhausted, or until the allocable resources are exhausted before the first packet is exhausted.
3. The method according to claim 1 or 2, characterized in that, The first information includes a data volume threshold; The resource allocation for the first LCH includes: Resources are allocated to data packets within the data volume threshold in the first LCH until the data volume of the data packets for which resources are allocated does not exceed or reaches the data volume threshold, or until the first data packet within the data volume threshold is exhausted, or until the allocable resources are exhausted before the data volume of the data packets for which resources are allocated reaches the data volume threshold.
4. The method according to claim 3, characterized in that, Before allocating resources to the first LCH based on the first information, the method further includes: Receive a first message, which is used to configure the data volume threshold.
5. The method according to any one of claims 1-4, characterized in that, The first information includes the priority information of the first LCH; the priority information of the first LCH is used to indicate the first priority of the first LCH, and / or the second priority of the first LCH; The second priority is used for the LCH that includes the first data packet; Before allocating resources for the first LCH, the method further includes: Based on the priority information used, resources are allocated to the LCHs selected that have a priority higher than the priority threshold.
6. The method according to claim 5, characterized in that, The selected LCH includes: LCHs selected based on LCH mapping constraints.
7. The method according to claim 5 or 6, characterized in that, Before allocating resources for the first LCH, the method further includes: Receive a second message, which is used to configure the first priority and / or the second priority of the first LCH.
8. The method according to any one of claims 5-7, characterized in that, Before allocating resources for the first LCH, the method further includes: A third message is received, which is used to configure the priority threshold.
9. The method according to any one of claims 1-8, characterized in that, The first information includes first indication information, which is used to indicate whether to allocate resources to the first LCH or not to allocate resources to the first LCH. Before allocating resources to the first LCH based on the first information, the method further includes: The first indication information indicates that resource allocation should be performed on the first LCH.
10. The method according to claim 9, characterized in that, The first indication information includes a first field, the first field includes a first bit, and the first bit corresponds to an LCH or an LCG; When the first bit is configured to a first value, resource allocation is performed on the third LCH when the first parameter of the third LCH is less than or equal to 0 and the third LCH includes the first data packet; When the first bit is configured to the second value, and the first parameter of the third LCH is less than or equal to 0, and the third LCH includes the first data packet, no resource allocation is performed on the third LCH; Wherein, the third LCH is the LCH corresponding to the first bit, or the third LCH is the LCH in the LCG corresponding to the first bit.
11. The method according to claim 9, characterized in that, The first indication information includes a second field, which includes second indication information for the LCH ID of the first LCH; When the second indication information is configured as a third value, resource allocation is performed on the first LCH when the first parameter of the first LCH is less than or equal to 0 and the first LCH includes the first data packet. When the second indication information is configured as the fourth value, if the first parameter of the third LCH is less than or equal to 0 and the third LCH includes the first data packet, no resource allocation is performed on the third LCH.
12. The method according to any one of claims 9-11, characterized in that, Before allocating resources for the first LCH, the method further includes: A fourth message is received, which is used to configure the first indication information.
13. The method according to any one of claims 9-12, characterized in that, Before allocating resources for the first LCH, the method further includes: It is determined that the priority threshold has been configured, and a second priority of the first LCH is used to include the LCH of the newly transmitted first data packet.
14. The method according to claim 13, characterized in that, Without the aforementioned priority threshold configured, or with the second priority of the first LCH, The method further includes: Ignore the first instruction information.
15. The method according to any one of claims 1-14, characterized in that, The first information includes the first duration corresponding to the first LCH; Sending data packets in the first LCH according to the resources allocated to the first LCH includes: During the first duration, data packets in the first LCH are sent using the resources allocated to the first LCH.
16. The method according to claim 15, characterized in that, The first duration begins timing when the first parameter of the first LCH is less than or equal to 0.
17. The method according to claim 15 or 16, characterized in that, The first duration is a pre-configured duration, or, The first duration corresponds to the duration after the first parameter of the first LCH is less than or equal to 0 and before the first parameter of the first LCH is greater than 0.
18. The method according to any one of claims 15-17, characterized in that, The method further includes: A fifth message is received, which is used to configure the first duration of the first LCH.
19. The method according to any one of claims 1-18, characterized in that, The first parameter of the first LCH is Bj of the first LCH.
20. The method according to any one of claims 1-19, characterized in that, The first data packet is a newly transmitted data packet.
21. A terminal device, characterized in that, The terminal device includes: a memory and one or more processors; the memory and the processors are coupled. The memory is used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, it causes the terminal device to perform the method as described in any one of claims 1-20.
22. A method for resource allocation, characterized in that, The method is applied to a network device, and the method includes: Send first information, which is used to allocate resources to a first LCH, wherein a first parameter of the first LCH is less than or equal to 0; the first LCH includes at least one first data packet, wherein the remaining time of the first data packet is less than a priority adjustment threshold. The first information includes at least one of the following: Data volume threshold, priority information of the first LCH, the first data packet in the first LCH, first indication information, and the first duration corresponding to the first LCH; Receive uplink data, the uplink data including at least one of the first data packets in the first LCH.
23. A network device for performing the method of claim 22.
24. A communication system, characterized in that, The communication system includes the terminal device as described in claim 21 and the network device as described in claim 23.