Communication method and apparatus
By adjusting the priority of logical channels and resource allocation strategies, the problem of low-latency data being dropped during uplink transmission was solved, improving data transmission success rate and the fairness of resource allocation.
Patent Information
- Application Number
- PCT/CN2025/110432
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-08-06
- Filing Date
- 2025-07-24
- Publication Date
- 2026-02-12
AI Technical Summary
In uplink transmission, low-latency data may be dropped due to its lower logical channel priority, leading to an increased probability of data loss.
By determining whether data packets on the logical channel meet specific conditions (such as the remaining time of the packet loss timer being less than a threshold), their priority is adjusted or resources are allocated to ensure that low-latency data can be transmitted preferentially.
It reduces the probability of low-latency data being discarded, improves the data transmission success rate, and achieves fair allocation of resources.
Smart Images

Figure CN2025110432_12022026_PF_FP_ABST
Abstract
Description
Communication method and apparatus
[0001] Cross-reference to Related Applications
[0002] This application claims priority to the Chinese Patent Application No. 202411078254.5, filed on August 6, 2024, and entitled "A Communication Method and Apparatus", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0003] The present application relates to the field of communication technology, and in particular, to a communication method and apparatus. BACKGROUND
[0004] In uplink transmission, a base station can schedule uplink resources for a user equipment (UE) according to data transmission requirements of the UE. After the UE obtains the uplink resources, the UE can allocate the uplink resources to buffered data packets according to priorities of logical channels.
[0005] There can be delay-critical data on some logical channels, where the delay-critical data refers to data whose remaining time of a packet loss timer is less than or equal to a threshold. When the timing duration of the packet loss timer corresponding to the delay-critical data arrives, if the delay-critical data has not been allocated resources, the delay-critical data will be discarded. The UE allocates resources to data packets according to priorities of logical channels, and the priority of a logical channel in which a data packet including delay-critical data is located can be lower than the priority of other logical channels, which results in that the logical channel in which the data packet including delay-critical data is located is not allocated resources in priority, and this also results in an increased probability of discarding delay-critical data. SUMMARY
[0006] Embodiments of the present application provide a communication method and apparatus for reducing the probability of discarding data.
[0007] In a first aspect, a first communication method is provided, which can be applied to a terminal-side device, e.g., also referred to as a terminal device. The terminal device can be, for example, a terminal device, or another device including a terminal device function, or a circuit, or a chip system (or a chip, e.g., a modem chip, also referred to as a baseband chip, or a system on chip (SoC) chip or a system in package (SIP) chip containing a modem core), or another functional module capable of realizing the function of a terminal device, which is, for example, arranged in a terminal device. The method comprises: determining a first priority of a first logical channel, if the first logical channel satisfies a first condition, the first priority being used for resource allocation of data on the first logical channel; wherein the first condition comprises one or more of: a remaining time length of a packet loss timer corresponding to a first data packet to be transmitted on the first logical channel is less than or equal to a first threshold, the first data packet being one data packet to be transmitted on the first logical channel; the first data packet has not been transmitted; the first data packet has been transmitted but not successfully; or, a total amount of data of one or more data packets to be transmitted on the first logical channel whose remaining time length of the packet loss timer is less than or equal to the first threshold is greater than or equal to a second threshold.
[0008] In the embodiments of the present application, if the first logical channel satisfies the first condition, the priority of the first logical channel can be determined as the first priority. The first condition indicates, for example, that there is low-latency data on the first logical channel, and the first priority is higher, for example. Because the priority of the first logical channel is higher, the data on the first logical channel can be allocated resources in priority, reducing the probability of data being discarded on the first logical channel and improving the data transmission success rate.
[0009] In an optional implementation, before determining the priority of the first logical channel as the first priority, the method further comprises: receiving first information, the first information being used to indicate that the priority of the first logical channel is a second priority, the first priority being higher than the second priority. The first logical channel can have an original priority (e.g., the second priority), and if the first logical channel satisfies the first condition, the UE can adjust the priority of the first logical channel to the first priority.
[0010] In an optional implementation, the first data packet is any data packet on the first logical channel, or is a data packet on the first logical channel with the minimum remaining time length of the corresponding packet loss timer among all data packets to be transmitted on the first logical channel. The first data packet can be any data packet on the first logical channel, and all data packets on the first logical channel can satisfy the first condition, in which case it is more reasonable to adjust the priority of the first logical channel. Alternatively, the first data packet can be a certain data packet on the first logical channel, and as long as one data packet on the first logical channel satisfies the first condition, the judgment of the first condition is simpler.
[0011] In an optional implementation, the method further includes determining a first time domain resource, the first time domain resource being a resource to be allocated to data on one or more logical channels, the first logical channel belonging to the one or more logical channels, wherein the remaining time length of the packet loss timer corresponding to the first data packet refers to the remaining time length of the packet loss timer corresponding to the first data packet when the first time domain resource is reached. When determining whether the first logical channel satisfies the first condition, the terminal device can determine according to the first time domain resource, rather than according to the current time, thereby ensuring that the UE performs more accurate and strict determination.
[0012] In an optional implementation, the method further includes that the PDCP layer of the terminal device sends first indication information to the MAC layer of the terminal device, the first indication information being used to indicate that the remaining time length of the packet loss timer corresponding to the first data packet is less than or equal to the first threshold. When determining whether the first logical channel satisfies the first condition, the determination process can be performed by the MAC layer of the terminal device. Since the packet loss timer corresponding to the data packet is maintained by the PDCP layer of the terminal device, the PDCP layer can send the first indication information to the MAC layer, so that the MAC layer can determine that the remaining time length of the packet loss timer corresponding to the first data packet is less than or equal to the first threshold.
[0013] In an optional implementation, the PDCP layer of the terminal device sends first indication information to the MAC layer of the terminal device, including: the PDCP layer receives first request information from the MAC layer, the first request information being used to request information of a data packet corresponding to a packet loss timer with a remaining time length less than or equal to a first threshold; and the PDCP layer sends first indication information to the MAC layer based on the first request information. The PDCP layer can actively send the first indication information to the MAC layer, for example, the PDCP layer can send the first indication information to the MAC layer when starting the packet loss timer corresponding to the first data packet, so that the MAC layer maintains the remaining time of the first data packet. Alternatively, the PDCP layer can also send the first indication information to the MAC layer after receiving the first request information from the MAC layer, so that the transmission of the first indication information is more efficient.
[0014] In an optional implementation, the first request information is also used to indicate a first time domain resource, and the first time domain resource is a time domain resource used to send the first data packet. The first request information of the MAC layer can indicate the first time domain resource, so that the PDCP layer can determine the data packet corresponding to the packet loss timer with a remaining time length less than or equal to the first threshold, and indicate the data packet to the MAC layer.
[0015] In an optional implementation, the method further includes: the MAC layer of the terminal device receives second indication information from the PDCP layer of the terminal device, the second indication information being used to indicate that the packet loss timer corresponding to the first data packet has been started; and the MAC layer determines, according to the second indication information and a first time domain resource used to send the first data packet, that the packet loss timer corresponding to the first data packet has a remaining time length less than or equal to the first threshold. The PDCP layer can actively send the first indication information to the MAC layer, for example, the PDCP layer can send the first indication information to the MAC layer when starting the packet loss timer corresponding to the first data packet, so that the MAC layer maintains the remaining time of the first data packet. In this way, the MAC layer does not need to send a request to the PDCP layer, and the interaction process between protocol layers can be reduced.
[0016] In a second aspect, a second communication method is provided, which can be applied to a terminal-side device, also referred to as a terminal device. The terminal device can be implemented as described in the first aspect. The method comprises: allocating transmission resources for low-latency data on a first logical channel if a second condition is met, wherein the second condition comprises that a value of a first parameter corresponding to the first logical channel is less than a data amount of the low-latency data, or comprises that the value of the first parameter is less than a sum of the data amount of the low-latency data and a data amount of non-low-latency data located before the low-latency data, wherein the low-latency data is data whose remaining time length of a corresponding packet loss timer is less than or equal to a first threshold; and transmitting the low-latency data on the allocated transmission resources.
[0017] In the embodiments, even if the first logical channel meets the second condition, the terminal device can allocate resources for low-latency data on the first logical channel, for example, can allocate resources for all data in the low-latency data, so that the low-latency data can be transmitted as soon as possible, improving transmission efficiency and reducing packet loss rate.
[0018] In an optional implementation, the first parameter is a token quantity corresponding to the first logical channel. The first parameter is also referred to as a first variable, or can also have other names.
[0019] In an optional implementation, allocating transmission resources for low-latency data on the first logical channel comprises: allocating transmission resources for M data packets on the first logical channel, and ignoring the value of the first parameter, wherein the M data packets comprise all data in the low-latency data, or the M data packets comprise all data in the low-latency data and non-low-latency data located before the low-latency data, and M is a positive integer; or allocating transmission resources for M data packets on the first logical channel, and updating the value of the first parameter according to the transmission resources allocated for the M data packets, wherein the M data packets comprise all data in the low-latency data, or the M data packets comprise all data in the low-latency data and non-low-latency data located before the low-latency data, and M is a positive integer. The terminal device can allocate transmission resources for the M data packets while ignoring the value of the first parameter, so that low-latency data in the M data packets can be allocated resources. Alternatively, the terminal device can allocate transmission resources for the M data packets while not ignoring the value of the first parameter, so that low-latency data in the M data packets can be allocated resources.
[0020] In an optional implementation, the allocating transmission resources for the low-latency data on the first logical channel comprises: allocating transmission resources for N data packets on the first logical channel, and not updating the value of the first parameter according to the allocated transmission resources for the N data packets; and allocating transmission resources for K data packets on the first logical channel, and updating the value of the first parameter according to the allocated transmission resources for the K data packets, wherein the N data packets comprise non-low-latency data before the low-latency data, the K data packets comprise all of the low-latency data, and N and K are positive integers. There can be non-low-latency data before the low-latency data in the data to be transmitted on the first logical channel, and the terminal device needs to allocate resources for the non-low-latency data first and then allocate resources for the low-latency data. If the value of the first parameter is updated according to the traditional scheme after the resources are allocated for the non-low-latency data, it is likely that part or all of the low-latency data cannot be allocated resources due to the too small value of the first parameter. Therefore, in the embodiment of the application, the terminal device can not update the value of the first parameter after the resources are allocated for the non-low-latency data, so that the value of the first parameter can meet the resource allocation requirement of the low-latency data.
[0021] In an optional implementation, the method further comprises: the PDCP layer of the terminal device sending third indication information to the MAC layer of the terminal device, the third indication information being used to indicate the data amount of the low-latency data. The determining whether the first logical channel meets the second condition can be performed by the MAC layer of the terminal device. The data amount of the data packet and the like can be maintained by the PDCP layer of the terminal device, and therefore the PDCP layer can send the third indication information to the MAC layer, so that the MAC layer can determine the data amount of the low-latency data to be transmitted on the first logical channel.
[0022] In an optional implementation, the PDCP layer of the terminal device sending third indication information to the MAC layer of the terminal device comprises: the PDCP layer sending the third indication information to the MAC layer when starting a packet loss timer for one or more data packets on the first logical channel. The PDCP layer can actively send the third indication information to the MAC layer when starting the packet loss timer for the one or more data packets on the first logical channel without the request of the MAC layer, which can reduce the interaction process between protocol layers.
[0023] In an optional implementation, the PDCP layer of the terminal device sends third indication information to the MAC layer of the terminal device, including: the PDCP layer receives second request information from the MAC layer, the second request information being used for requesting to obtain the data amount of the low-latency data; and the PDCP layer sends the third indication information to the MAC layer based on the second request information. The PDCP layer can send the third indication information to the MAC layer again in the case of receiving the second request information from the MAC layer, so that the transmission of the third indication information is more efficient.
[0024] In an optional implementation, the method further includes: determining, by the MAC layer, a time domain time of a first transmission resource used for transmitting the data packet on the first logical channel; and sending, by the MAC layer, the second request information to the PDCP layer, where the second request information further indicates the time domain time of the first transmission resource. For example, the MAC layer can send the second request information to the PDCP layer in the case of determining the first time domain resource (the first transmission resource includes the first time domain resource, and the time corresponding to the first time domain resource can be the time domain time used for transmitting the data packet on the first logical channel), so that the first time domain resource can be allocated to the corresponding data packet.
[0025] In an optional implementation, the method further includes: receiving, by the MAC layer, second indication information from the PDCP layer, the second indication information being used for indicating that a packet loss timer corresponding to the first data packet on the first logical channel has been started; determining, by the MAC layer, that there is the low-latency data on the first logical channel according to the second indication information and the time domain time of the first transmission resource, the first transmission resource being used for transmitting the data packet of the first logical channel; and sending, by the MAC layer, the second request information to the PDCP layer. The PDCP layer can send the second indication information to the MAC layer when the packet loss timer corresponding to the first data packet is started. If the MAC layer obtains the first transmission resource, it can determine whether there is the low-latency data on the first logical channel. If there is the low-latency data, the MAC layer can request the data amount of the low-latency data from the PDCP layer. In this way, the request of the MAC layer for the data amount of the low-latency data is more targeted.
[0026] In a third aspect, a third communication method is provided, which can be applied to a terminal-side device, also referred to as a terminal device. The terminal device can be implemented as described in the first aspect. The method comprises: adjusting a priority of a first logical channel to a first priority; and adjusting the priority of the first logical channel to a second priority if there is no low-latency data on the first logical channel, the second priority being lower than the first priority, wherein the low-latency data is data whose corresponding packet loss timer has a remaining time length less than or equal to a first threshold.
[0027] In the embodiments of the present application, if there is no low-latency data on the first logical channel, the priority of the first logical channel can be adjusted to the second priority. For example, the second priority is lower, which means that the priority of the logical channel without low-latency data is adjusted to be as low as possible, so that the priority of the logical channel without low-latency data is lower than the priority of the logical channel with low-latency data, thereby enabling the low-latency data to be allocated resources preferentially, reducing the probability of low-latency data being discarded, and improving the success rate of data transmission. If there is non-low-latency data to be transmitted on the first logical channel, the priority of the first logical channel is adjusted to be lower, so that the non-low-latency data to be transmitted on the first logical channel is not allocated resources preferentially at the first priority, thereby making the resource allocation of the non-low-latency data to be transmitted on each logical channel more fair.
[0028] In an optional embodiment, the second priority is the original priority of the first logical channel before the priority of the first logical channel is adjusted to the first priority. The second priority can be the original priority or a default priority, so that the terminal device does not need to decide other priorities, the adjustment process can be simplified, and the priority state before adjustment can be restored.
[0029] In an optional embodiment, adjusting the priority of the first logical channel to the first priority comprises: adjusting the priority of the first logical channel to the first priority if the first logical channel satisfies a first condition, wherein the first condition comprises one or more of the following: a first data packet to be transmitted on the first logical channel corresponds to a packet loss timer with a remaining time length less than or equal to a first threshold, the first data packet being one data packet to be transmitted on the first logical channel; the first data packet has not been transmitted; the first data packet has been transmitted but not successfully; or, a total amount of data of one or more data packets on the first logical channel whose packet loss timers have a remaining time length less than or equal to the first threshold is greater than or equal to a second threshold.
[0030] In an optional implementation, the method further comprises: determining a first time domain resource, the first time domain resource being a resource to be allocated to data on one or more logical channels, the first logical channel belonging to the one or more logical channels, wherein the remaining time length of the packet loss timer corresponding to the first data packet refers to a remaining time length of the packet loss timer corresponding to the first data packet when the first time domain resource is reached.
[0031] In an optional implementation, if there is no low-latency data on the first logical channel, adjusting the priority of the first logical channel to a second priority comprises: allocating transmission resources for M data packets on the first logical channel, and ignoring the value of the first parameter corresponding to the logical channel, the M data packets including all data in the low-latency data, or the M data packets including all data in the low-latency data and including non-low-latency data located before the low-latency data, M being a positive integer; if the M data packets have been allocated transmission resources, adjusting the priority of the first logical channel to the second priority.
[0032] In an optional implementation, if there is no low-latency data on the first logical channel, adjusting the priority of the first logical channel to a second priority comprises: allocating transmission resources for M data packets on the first logical channel, and updating the value of the first parameter corresponding to the logical channel according to the transmission resources allocated for the M data packets, the M data packets including all data in the low-latency data, or the M data packets including all data in the low-latency data and including non-low-latency data located before the low-latency data, M being a positive integer; if the M data packets have been allocated transmission resources, adjusting the priority of the first logical channel to the second priority.
[0033] In an optional implementation, if there is no low-latency data on the first logical channel, adjusting the priority of the first logical channel to a second priority comprises: allocating transmission resources for N data packets on the first logical channel, and not updating the value of the first parameter corresponding to the first logical channel according to the transmission resources allocated for the N data packets, and allocating transmission resources for K data packets on the first logical channel, and updating the value of the first parameter corresponding to the first logical channel according to the transmission resources allocated for the K data packets, wherein the N data packets include non-low-latency data located before the low-latency data, and the K data packets include all data in the low-latency data, N and K being positive integers; if the N data packets and the K data packets have been allocated transmission resources, adjusting the priority of the first logical channel to the second priority.
[0034] In an optional implementation, if there is no low-latency data on the first logical channel, adjusting the priority of the first logical channel to a second priority comprises: allocating resources for data on the first logical channel according to a first parameter corresponding to the first logical channel; and if all data in the low-latency data has been allocated resources, adjusting the priority of the first logical channel to the second priority. For example, in the first stage of resource allocation, resources can be allocated for data on the first logical channel in a conventional manner. If all data in the low-latency data has been allocated resources, the priority of the first logical channel can be adjusted to the second priority. That is, the scheme provided in the embodiments of the present application can also be used when resources are allocated in a conventional manner.
[0035] In an optional implementation, if there is no low-latency data on the first logical channel, adjusting the priority of the first logical channel to a second priority comprises: when allocating resources for the first logical channel in a first resource allocation manner, if there is no low-latency data on the first logical channel, adjusting the priority of the first logical channel to the second priority, wherein the first resource allocation manner is independent of a first parameter of the first logical channel. For example, in the second stage of resource allocation, resources can be allocated for data on the first logical channel in a conventional manner. If all data in the low-latency data has been allocated resources, the priority of the first logical channel can be adjusted to the second priority. That is, the scheme provided in the embodiments of the present application can also be used when resources are allocated in a conventional manner.
[0036] As to the technical effects brought by the third aspect or the partially optional implementation, reference can be made to the introduction of the technical effects of the first aspect or the corresponding implementation, and / or the introduction of the technical effects of the second aspect or the corresponding implementation.
[0037] The fourth aspect provides a fourth communication method, which can be applied to a terminal-side device, for example, also referred to as a terminal device. As to the implementation of the terminal device, reference can be made to the introduction of the first aspect. The method comprises: adjusting the priority of a first logical channel to a first priority; and if a value of a first parameter corresponding to the first logical channel is less than or equal to 0, adjusting the priority of the first logical channel to a second priority, the second priority being lower than the first priority.
[0038] In the embodiments of the present application, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the priority of the first logical channel can be adjusted to a second priority, for example, a lower second priority. When the value of the first parameter corresponding to the first logical channel is less than or equal to 0, for example, there can be no low-latency data in the data to be transmitted on the first logical channel, which means that the priority of the logical channel without low-latency data can be lowered, so that the priority of the logical channel without low-latency data is lower than the priority of the logical channel with low-latency data, thereby enabling low-latency data to be preferentially allocated resources, reducing the probability of low-latency data being discarded, and improving the success rate of data transmission. If there is non-low-latency data to be transmitted on the first logical channel, the priority of the first logical channel is lowered, so that the non-low-latency data to be transmitted on the first logical channel will not be preferentially allocated resources at a higher first priority, thereby making the resource allocation of non-low-latency data to be transmitted on each logical channel more fair. Moreover, the terminal device adjusts the priority of the first logical channel according to the value of the first parameter, which can simplify the judgment logic of the terminal device.
[0039] In an optional embodiment, the second priority is the original priority of the first logical channel before the priority of the first logical channel is adjusted to the first priority. The second priority can be the original priority or a default priority, so that the terminal device does not need to decide other priorities, which can simplify the adjustment process and also restore the priority state before adjustment.
[0040] In an optional embodiment, the first parameter is a token quantity corresponding to the first logical channel.
[0041] In an optional embodiment, adjusting the priority of the first logical channel to the first priority comprises: if the first logical channel satisfies a first condition, adjusting the priority of the first logical channel to the first priority, wherein the first condition comprises one or more of the following: a remaining time length of a packet loss timer corresponding to a first data packet to be transmitted on the first logical channel is less than or equal to a first threshold, the first data packet being one data packet to be transmitted on the first logical channel; the first data packet has not been transmitted; the first data packet has been transmitted but not successfully; or, a total amount of data of one or more data packets on the first logical channel whose remaining time length of the packet loss timer is less than or equal to the first threshold is greater than or equal to a second threshold.
[0042] In an optional implementation, the method further comprises: determining a first time domain resource, the first time domain resource being a resource to be allocated to data on one or more logical channels, the first logical channel belonging to the one or more logical channels, wherein the remaining time length of the packet loss timer corresponding to the first data packet refers to a remaining time length of the packet loss timer corresponding to the first data packet when the first time domain resource is reached.
[0043] In an optional implementation, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, adjusting the priority of the first logical channel to a second priority comprises: allocating transmission resources for M data packets on the first logical channel, and ignoring the value of the first parameter corresponding to the logical channel, the M data packets including all data in the low-latency data, or the M data packets including all data in the low-latency data and including non-low-latency data located before the low-latency data, M being a positive integer; if the value of the first parameter is less than or equal to 0, adjusting the priority of the first logical channel to the second priority.
[0044] In an optional implementation, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, adjusting the priority of the first logical channel to a second priority comprises: allocating transmission resources for M data packets on the first logical channel, and updating the value of the first parameter corresponding to the logical channel according to the transmission resources allocated for the M data packets, the M data packets including all data in the low-latency data, or the M data packets including all data in the low-latency data and including non-low-latency data located before the low-latency data, M being a positive integer; if the value of the first parameter is less than or equal to 0, adjusting the priority of the first logical channel to the second priority.
[0045] In an optional implementation, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, adjusting the priority of the first logical channel to a second priority comprises: allocating transmission resources for N data packets on the first logical channel, and not updating the value of the first parameter corresponding to the logical channel according to the transmission resources allocated for the N data packets, and allocating transmission resources for K data packets on the first logical channel, and updating the value of the first parameter corresponding to the logical channel according to the transmission resources allocated for the K data packets, wherein the N data packets include non-low-latency data located before the low-latency data, the K data packets include all data in the low-latency data, N and K being positive integers; if the value of the first parameter is less than or equal to 0, adjusting the priority of the first logical channel to the second priority.
[0046] In an alternative implementation, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the priority of the first logical channel is adjusted to the second priority, including: allocating resources for data on the first logical channel according to the first parameter; and if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, adjusting the priority of the first logical channel to the second priority.
[0047] As to the technical effects brought by the fourth aspect or the partially alternative implementation, reference can be made to the introduction of the technical effects of the first aspect or the corresponding implementation, and / or the introduction of the technical effects of the second aspect or the corresponding implementation.
[0048] In a fifth aspect, a communication apparatus is provided. The communication apparatus can be the terminal-side apparatus of any of the first aspect, the second aspect, the third aspect, or the fourth aspect. The communication apparatus has the functions of the terminal-side apparatus. For example, the communication apparatus has the functions of any of the first aspect, the second aspect, the third aspect, or the fourth aspect, e.g., the communication apparatus includes modules or units or means corresponding to the operations of any of the first aspect, the second aspect, the third aspect, or the fourth aspect, which can be implemented by software or by hardware or by a combination of software and hardware. The communication apparatus can be, for example, a terminal device, or another device including the functions of a terminal device, or a chip system (or a chip or circuitry) or another functional module that can implement the functions of a terminal device, e.g., the chip system or functional module is arranged in a terminal device. In an alternative implementation, the communication apparatus includes a baseband device and a radio frequency device. In another alternative implementation, the communication apparatus includes a processing unit (also sometimes referred to as a processing module) and a transceiver unit (also sometimes referred to as a transceiver module). The transceiver unit can implement the functions of transmitting and receiving, and when the transceiver unit implements the function of transmitting, it can be referred to as a transmitting unit (also sometimes referred to as a transmitting module), and when the transceiver unit implements the function of receiving, it can be referred to as a receiving unit (also sometimes referred to as a receiving module). The transmitting unit and the receiving unit can be the same functional module, which is referred to as a transceiver unit, and the transceiver unit can implement the functions of transmitting and receiving; or the transmitting unit and the receiving unit can be different functional modules, and the transceiver unit is a general term for these functional modules.
[0049] In an optional implementation, the processing unit is configured to determine a priority of the first logical channel as a first priority for resource allocation of data on the first logical channel if the first logical channel satisfies a first condition, wherein the first condition comprises one or more of: a remaining time length of a packet loss timer corresponding to a first data packet to be transmitted on the first logical channel is less than or equal to a first threshold, the first data packet being one data packet to be transmitted on the first logical channel; the first data packet has not been transmitted; the first data packet has been transmitted but not successfully; or a total amount of data of one or more data packets to be transmitted on the first logical channel whose remaining time length of a packet loss timer is less than or equal to the first threshold is greater than or equal to a second threshold.
[0050] In an optional implementation, the processing unit is configured to allocate transmission resources for low latency data on the first logical channel if the first logical channel satisfies a second condition, wherein a value of a first parameter corresponding to the first logical channel is less than an amount of data of the low latency data, or the value of the first parameter is less than a sum of the amount of data of the low latency data and an amount of data of non-low latency data located before the low latency data, wherein the low latency data is data whose remaining time length of a packet loss timer is less than or equal to a first threshold; and the transceiver (or the transmitter) is configured to transmit the low latency data on the allocated transmission resources.
[0051] In an optional implementation, the processing unit is configured to adjust a priority of the first logical channel as a first priority; and the processing unit is further configured to adjust the priority of the first logical channel as a second priority lower than the first priority if there is no low latency data on the first logical channel, wherein the low latency data is data whose remaining time length of a packet loss timer is less than or equal to a first threshold.
[0052] In an optional implementation, the processing unit is configured to adjust a priority of the first logical channel as a first priority; and the processing unit is further configured to adjust the priority of the first logical channel as a second priority lower than the first priority if a value of a first parameter corresponding to the first logical channel is less than or equal to 0.
[0053] In an optional implementation, the communication apparatus further comprises a storage unit (also referred to as a storage module), and the processing unit is coupled to the storage unit and executes programs or instructions in the storage unit to enable the communication apparatus to perform the functions of the terminal-side apparatus in any of the first aspect, the second aspect, the third aspect, or the fourth aspect.
[0054] In a sixth aspect, a communication apparatus is provided, which comprises a memory and one or more processors. The memory is configured to store part or all of the necessary computer programs or instructions for implementing the functions related to any of the first aspect, the second aspect, the third aspect, or the fourth aspect. The one or more processors are configured to execute the computer programs or instructions, which, when executed, cause the communication apparatus to implement the method in any possible design or implementation manner of the first aspect, the second aspect, the third aspect, or the fourth aspect.
[0055] In a possible design of the communication apparatus, the communication apparatus further comprises an interface circuit, and the processor is configured to communicate with other apparatuses or components via the interface circuit.
[0056] In a possible design of the communication apparatus, the communication apparatus further comprises the memory.
[0057] The communication apparatus described above can be a terminal, or a communication module in the terminal, or a chip responsible for communication functions in the terminal, such as a modem chip (also referred to as a baseband chip) or an SoC or SIP chip containing a modem module.
[0058] In a seventh aspect, a communication system is provided, which comprises a terminal-side apparatus. The terminal-side apparatus is configured to execute the method performed by the terminal-side apparatus according to any of the first aspect, the second aspect, the third aspect, or the fourth aspect. For example, the terminal-side apparatus can be implemented by the communication apparatus described in the fifth aspect or the sixth aspect.
[0059] In an eighth aspect, a computer-readable storage medium is provided, which is configured to store computer programs or instructions. When the computer programs or instructions are run, the method performed by the terminal-side apparatus in the aspects described above is implemented.
[0060] In a ninth aspect, a computer program product is provided, which comprises instructions. When the computer programs or instructions are run on a computer, the method described in the aspects described above is implemented.
[0061] In a tenth aspect, a chip system is provided, which comprises a processor and an interface. The processor is configured to call and run instructions from the interface, so that the chip system implements the method in the aspects described above. BRIEF DESCRIPTION OF DRAWINGS
[0062] FIG. 1 and FIG. 2 are schematic diagrams of two application scenarios of embodiments of the present application;
[0063] FIG. 3, FIG. 4, FIG. 6, and FIG. 7 are flowcharts of several communication methods provided by embodiments of the present application;
[0064] FIG. 5A-5C are several diagrams of allocating resources for data to be transmitted on a logical channel by a UE according to embodiments of the present application;
[0065] FIG. 8 is a diagram of an apparatus according to embodiments of the present application;
[0066] FIG. 9 is a diagram of another apparatus according to embodiments of the present application. DETAILED DESCRIPTION
[0067] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the drawings.
[0068] In the embodiments of the present application, the number of a noun, unless specifically stated, indicates "a singular noun or a plural noun", i.e. "one or more". "At least one" means one or more, and "multiple" means two or more. "And / or" describes the association relationship of the associated objects, which means that there can be three kinds of relationships, for example, A and / or B can represent the following cases: A exists alone, A and B exist together, B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects. For example, A / B means A or B. "At least one of the following" or similar expressions means any combination of these items, including any combination of single item or multiple items. For example, at least one of a, b, or c means a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.
[0069] The ordinal numbers "first", "second", etc. mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the size, content, order, time sequence, priority or importance of the multiple objects. In addition, the numbering of steps in each embodiment introduced in the present application is only used to distinguish different steps, and is not used to limit the order of the steps.
[0070] In the following, some terms or concepts in the embodiments of the present application are explained and described, so as to facilitate the understanding of the skilled in the art.
[0071] In the embodiments of the present application, the terminal device is a device with wireless transceiving function, which can be a fixed device, a mobile device, a handheld device (for example, a mobile phone), a wearable device, a vehicle-mounted device, or a wireless device (for example, a communication module, a modem, or a chip system, etc.) built in the above devices. The terminal device is used to connect people, things, machines, etc., and can be widely used in various scenarios, for example, including but not limited to the following scenarios: sensing scenarios, cellular communication, device-to-device (D2D) communication, vehicle to everything (V2X) communication, machine-to-machine / machine-type communications (M2M / MTC), internet of things (IoT), virtual reality (VR), augmented reality (AR), industrial control, self driving, remote medical, smart grid, smart furniture, smart office, smart wear, smart transportation, smart city, unmanned aerial vehicle, robot, indoor commercial scenarios (such as mobile phone screen projection, file sharing, mobile phone to VR glasses video transmission) and other scenarios. When the terminal device is applied to V2X, it can also be referred to as a V2X device, for example, a smart car, a digital car, an unmanned car, a self-driving car, a pure EV, a hybrid electric vehicle (HEV), a range extended EV (REEV), a plug-in HEV (PHEV), a new energy vehicle, a road site unit (RSU), etc. The terminal device can also be a device in D2D communication, for example, a water meter, a gas meter, etc.
[0072] In addition, in the embodiments of the present application, the terminal device can also be a terminal device in an internet of things (IoT) system. The IoT is an important part of future information technology development, and its main technical feature is to connect objects through communication technology and network, so as to realize the intelligent network of man-machine interconnection and object-object interconnection.
[0073] As introduced above, various terminal devices can be considered as vehicle-mounted terminal devices if they are located on a vehicle (for example, placed in or installed in a vehicle), and the vehicle-mounted terminal device is also referred to as an on-board unit (OBU). The terminal device of the present application can also be a vehicle-mounted module, a vehicle-mounted module group, a vehicle-mounted component, a vehicle-mounted chip or a vehicle-mounted unit built in a vehicle as one or more components or units, and the vehicle can implement the method of the present application through the built-in vehicle-mounted module, vehicle-mounted module group, vehicle-mounted component, vehicle-mounted chip or vehicle-mounted unit.
[0074] The terminal device can also be referred to as a UE, a terminal, an access station, a UE station, a remote station, a wireless communication device, or a user device, etc.
[0075] In the embodiments of the present application, the communication device for implementing the function of the terminal device can be a terminal device, which can be a terminal device or a device capable of supporting the terminal device to implement the function, such as a chip system, which can be installed in the terminal device. In the technical solutions provided in the embodiments of the present application, the device for implementing the function of the terminal device is taken as an example of UE to describe the technical solutions provided in the embodiments of the present application.
[0076] The network device in the embodiments of the present application, for example, includes an access network device (or an access network network element) and / or a core network device (or a core network network element). The access network device is a device with wireless transceiving function, used for communicating with the terminal device. The access network device includes but is not limited to a base station (a base transceiver station (BTS), a Node B, an evolved Node B (eNodeB) / eNB, or a next generation Node B (gNodeB) / gNB), a transmission reception point (TRP), a base station evolved in the future of the 3rd generation partnership project (3GPP), an access node in a wireless fidelity (Wi-Fi) system, a wireless relay node, a wireless backhaul node, and the like. The base station can be a macro base station, a micro base station, a pico base station, a small station, a relay station, and the like. A plurality of base stations can support a network of the same access technology or a network of different access technologies. A base station can include one or more co-sited or non-co-sited transmission reception points. The access network device can also be a wireless controller, a centralized unit (CU), and / or a distributed unit (DU) in a cloud radio access network (CRAN) scenario. The access network device can also be a server and the like. For example, the network device in the V2X technology can be a road side unit (RSU). The access network device is described below by taking a base station as an example. The base station can communicate with the terminal device or communicate with the terminal device through a relay station. The terminal device can communicate with a plurality of base stations in different access technologies. The core network device is used to implement mobile management, data processing, session management, policy and charging, and the like. The names of devices implementing core network functions in systems of different access technologies can be different, and the embodiments of the present application do not limit this.Taking a 5th generation (5G) system as an example, the core network device includes, for example, an access and mobility management function (AMF), a session management function (SMF), a policy control function (PCF), a user plane function (UPF), and the like.
[0077] In the CU-DU architecture, or in an open RAN (ORAN) system, the access network device can include one or more of a central unit (CU), a distributed unit (DU), a CU-control plane (CP), a CU-user plane (UP), or a radio unit (RU), and the like. The CU and the DU can be separately arranged, or can be included in the same network element, such as a baseband unit (BBU). The RU can be included in a radio frequency device or a radio frequency unit, such as a remote radio unit (RRU), an active antenna unit (AAU), or a remote radio head (RRH).
[0078] In different systems, the CU (or CU-CP and CU-UP), DU, or RU can also have different names, but those skilled in the art can understand their meanings. For example, in an ORAN system, the CU can also be referred to as an open CU (O-CU), the DU can also be referred to as an open DU (O-DU), the CU-CP can also be referred to as an open CU-CP (O-CU-CP), the CU-UP can also be referred to as an open CU-UP (O-CU-UP), and the RU can also be referred to as an open RU (O-RU). For the convenience of description, the CU, CU-CP, CU-UP, DU, and RU are taken as examples for description in the embodiments of the present application. Any one of the CU (or CU-CP, CU-UP), DU, and RU in the embodiments of the present application can be implemented by a software module, a hardware module, or a combination of a software module and a hardware module.
[0079] The CU and the DU can be configured according to protocol layer functions of the wireless network that they implement. For example, the CU is configured to implement functions of a packet data convergence protocol (PDCP) layer and above protocol layers (e.g., a radio resource control (RRC) layer and / or a service data adaption protocol (SDAP) layer, etc.). The DU is configured to implement functions of a PDCP layer and below protocol layers (e.g., one or more of a radio link control (RLC) layer, a media access control (MAC) layer, or a physical (PHY) layer). For another example, the CU is configured to implement functions of a PDCP layer and above protocol layers (e.g., an RRC layer and / or an SDAP layer), and the DU is configured to implement functions of a PDCP layer and below protocol layers (e.g., one or more of an RLC layer, a MAC layer, or a PHY layer).
[0080] The above configuration of the CU and the DU is merely an example, and the CU and the DU can be configured to have other functions as needed. For example, the CU or the DU can be configured to have functions of more protocol layers, or the CU or the DU can be configured to have partial processing functions of protocol layers. For example, partial functions of an RLC layer and functions of protocol layers above the RLC layer are configured in the CU, and remaining functions of the RLC layer and functions of protocol layers below the RLC layer are configured in the DU. For another example, the functions of the CU or the DU can be divided according to service types or other system requirements. For example, functions that require a shorter latency can be configured in the DU, and functions that do not require the shorter latency can be configured in the CU.
[0081] The DU and the RU can cooperate to implement functions of a PHY layer. One DU can be connected to one or more RUs. The DU and the RU can be configured in various manners according to design. For example, the DU is configured to implement baseband functions, and the RU is configured to implement intermediate radio frequency functions. For another example, the DU is configured to implement high layer functions in the PHY layer, and the RU is configured to implement low layer functions in the PHY layer or to implement the low layer functions and radio frequency functions. The high layer functions in the PHY layer can include a portion of functions of the PHY layer that are closer to a MAC layer. The low layer functions in the PHY layer can include another portion of functions of the PHY layer that are closer to the intermediate radio frequency side.
[0082] In the embodiments of the present application, the communication device for implementing the function of the network device can be referred to as a network device, which can be a network element or a network device, or a device capable of supporting the network device or the network element to implement the function, such as a chip system, which can be installed in the network device. In the technical solutions provided in the embodiments of the present application, the device for implementing the function of the network device is taken as an example (for example, the device for implementing the function of the access network device is the access network device, and the device for implementing the function of the core network device is the core network device) to describe the technical solutions provided in the embodiments of the present application.
[0083] The technical features related to the embodiments of the present application are introduced below.
[0084] I. Importance of data
[0085] For example, for services such as extended reality (XR), there can be a dependency relationship between data frames. For example, the second data frame may need to be decoded in dependence on the first data frame. That is, if the first data frame fails to be transmitted, even if the second data frame is received, the receiving end cannot decode the second data frame. Therefore, in view of the characteristics of services such as XR, the concept of data importance is introduced, for example, the data frames of services such as XR are divided into important data frames and unimportant data frames.
[0086] Optionally, the importance of data can be distinguished by an importance threshold. For example, the importance of a certain data is higher than or equal to the importance threshold, and the data can be important data, and the data frame corresponding to the data can be an important data frame. Conversely, the importance of a certain data is lower than or equal to the importance threshold, and the data can be unimportant data or low importance data, and the data frame corresponding to the data can be an unimportant data frame.
[0087] Optionally, the importance of different data units in a data unit group is the same. For example, PDU set #1 includes packet data convergence protocol (PDCP) PDU #1 to PDCP PDU #4. PDCP PDU #1 to PDCP PDU #4 are all important data. Or, PDCP PDU #1 to PDCP PDU #4 are all unimportant data. The data unit group can include the data frames described above.
[0088] For downlink data, the core network device can identify the importance of the data and notify the network device of the importance of the data, so that the network device manages the scheduling accordingly. For uplink data, the UE can identify the importance of the data. Optionally, at present, the importance of the data is identified by the sending end, and the receiving end usually does not know the importance of the data.
[0089] II. Packet loss timer
[0090] The packet loss timer can be configured by the network device for the UE, and a packet data convergence protocol (PDCP) entity of the UE can start the packet loss timer for each PDCP service data unit (SDU). For example, after the PDCP entity receives a PDCP SDU, the PDCP entity can start the packet loss timer for the PDCP SDU. If the packet loss timer for the PDCP SDU expires, the UE discards the PDCP SDU, for example, the PDCP entity discards the PDCP SDU. Optionally, if the data has been delivered to the lower layer of the PDCP, the PDCP entity can also send a discard indication to the lower layer, which indicates the lower layer to discard the data.
[0091] Optionally, the time length of the packet loss timer corresponding to different data can be different.
[0092] For example, the network device configures different packet loss timers for important data and unimportant data. For example, the network device can configure a first timer for important PDCP SDUs, for example, the first timer is a discard timer or a regular packet loss timer. The network device can also configure a second timer for unimportant PDCP SDUs, for example, the second timer is a discard timer for low importance. In this way, the UE performs discarding of important data based on the first timer, and the UE performs discarding of unimportant data based on the second timer.
[0093] For example, the network device preconfigures different packet loss timers for important data and for unimportant data, respectively. For example, the network device can preconfigure a first timer for important PDCP SDUs and a second timer for unimportant PDCP SDUs. The network device can activate the importance-based packet loss function for the UE. For example, when congestion occurs, the network device sends a PDU set importance (PSI)-based discard activation MAC CE to the UE to activate the importance-based packet loss. For example, the use of the configuration of the second timer is activated. When the congestion is no longer present, the network device sends a PSI-based discard deactivation MAC CE to deactivate the importance-based packet loss. For example, the use of the configuration of the second timer is deactivated.
[0094] Optionally, the network device can activate and deactivate the importance-based packet loss on a data radio bearer (DRB) granularity.
[0095] Optionally, the length of the packet loss timer corresponding to the important data can be greater than the length of the packet loss timer corresponding to the unimportant data.
[0096] Three, low latency data.
[0097] The low latency data can also be referred to as delay-critical data, or referred to as emergency data, and the specific naming does not limit the protection scope of the embodiments of the present application. The low latency data refers to data whose remaining time of a corresponding packet loss timer is less than or equal to a threshold (for example, a first threshold to be introduced later), or data whose remaining time of a corresponding packet delay budget (PDB) is less than or equal to a threshold. The threshold is configured by a network device for a UE. Alternatively, an integrity factor can also be used as a factor for defining the low latency data. For example, a certain data can be low latency data because the remaining time of the packet loss timer corresponding to the data is less than or equal to the threshold, or the data can be low latency data because the data belongs to a data set in which there is low latency data. Alternatively, an importance factor can also be used as a factor for defining the low latency data. For example, if a certain logical channel is activated for “importance-based packet loss”, the low latency data on the logical channel refers to important data whose remaining time of a corresponding packet loss timer is less than or equal to a threshold; for another example, if a certain logical channel is not activated for “importance-based packet loss”, the low latency data on the logical channel refers to data whose remaining time of a corresponding packet loss timer is less than or equal to a threshold, regardless of importance. That is, the low latency data can have one or more of the following implementation manners, which are introduced as follows.
[0098] 1. The low latency data is data whose remaining time of a packet loss timer is less than or equal to a threshold, or data whose remaining time of a PDB is less than or equal to a threshold.
[0099] 2. The data can be low latency data because the remaining time of a packet loss timer of the data is less than or equal to a threshold (for example, about to expire), or the data can be a certain data belonging to a first PDU set, for example, a first PDCP SDU about to expire, and another data belonging to the first PDU set, for example, a second PDCP SDU, also becomes low latency data due to integrity.
[0100] 3. The low latency data can also have different meanings depending on whether “importance-based packet loss” is activated.
[0101] For example, in a case where a UE is configured with a second timer (i.e., a packet loss timer corresponding to unimportant data), and a logical channel (LCH) corresponding to a DRB is activated for “importance-based packet loss”, the low latency data on the LCH corresponding to the DRB is important data and the remaining time of a first timer (i.e., a packet loss timer corresponding to important data) is less than or equal to a threshold. In this way, the low latency data on the LCH corresponding to the DRB is important and urgent data.
[0102] For another example, in a case that the UE is configured with a second timer (i.e., a packet loss timer corresponding to unimportant data) and / or a logical channel corresponding to a DRB is not activated "importance-based packet loss", low-latency data on the logical channel corresponding to the DRB is data whose remaining time of a first timer (i.e., a packet loss timer corresponding to important data) is less than or equal to a threshold. This can be understood as not taking importance as a reference factor, and the low-latency data on the logical channel corresponding to the DRB is urgent data.
[0103] The threshold used for comparison with the remaining time is described below.
[0104] The threshold can be indicated to the UE by the network device in a direct or indirect manner, or predefined by a protocol, which is not limited herein. Alternatively, the threshold can have at least one of the following implementation manners, which are described below.
[0105] 1. The threshold is related to delay status reporting (DSR). For example, the threshold is used for the UE to trigger DSR.
[0106] 2. The threshold is related to logical channel prioritization (LCP) enhancement. For example, the threshold is used for the UE to trigger or perform LCP enhancement. Alternatively, the LCP enhancement can also be referred to as LCP process enhancement, and the specific naming does not limit the protection scope of the embodiments of the present application. The LCP enhancement can be understood as an LCP process considering latency information of data. For example, when performing the LCP process, the UE considers latency information of data to allocate resources for to-be-transmitted data, or performs packet grouping for to-be-transmitted data, etc. The latency information is, for example, remaining time of data, or remaining duration of PDB of data, or remaining duration of a packet loss timer of data, etc.
[0107] In uplink transmission, the base station can schedule uplink resources for the UE according to data transmission requirements of the UE. After the UE obtains the uplink resources, the UE can allocate the uplink resources to buffered data packets according to priorities of logical channels. There can be low-latency data on some logical channels. When the timing duration of a packet loss timer corresponding to the low-latency data arrives, if the low-latency data has not been allocated resources, the low-latency data will be discarded. However, when the UE allocates resources to data packets according to priorities of logical channels, the priority of a logical channel in which a data packet including the low-latency data is located can be lower than priorities of other logical channels, so that the logical channel in which the data packet including the low-latency data is located will not be preferentially allocated resources, which also increases the probability of discarding the low-latency data.
[0108] In view of this, in the embodiments of the present application, if there is no low-latency data on the first logical channel, the priority of the first logical channel can be adjusted to a second priority. For example, the second priority is lower, which means that the priority of the logical channel without low-latency data can be lowered in the embodiments of the present application, so that the priority of the logical channel is as low as possible than the priority of the logical channel with low-latency data. Thus, the low-latency data can be preferentially allocated resources, reducing the probability of low-latency data being discarded and improving the data transmission success rate.
[0109] The technical solutions provided in the embodiments of the present application can be applied in a 4G system, for example, a long term evolution (LTE) system, or can be applied in a 5G system, for example, a new radio (NR) system, or can also be applied in a next-generation mobile communication system or other similar communication systems, for example, a future communication system, etc., and the specific application is not limited. The solutions provided in the embodiments of the present application can be applied in a ground network, for example, a ground cellular network; or can also be applied in an air network, for example, a non-terrestrial network (NTN), etc. In addition, the technical solutions provided in the embodiments of the present application can also be applied in a D2D scenario, for example, an NR-D2D scenario, etc., or applied in a V2X scenario, for example, an NR-V2X scenario, etc. For example, the embodiments of the present application can be used in the fields of factory manufacturing, whole-house intelligence, intelligent driving, assisted driving, intelligent networked vehicles, or indoor commercial scenarios, etc.
[0110] Please refer to FIG. 1, which is a schematic diagram of an application scenario of the embodiments of the present application. FIG. 1 includes a UE and a network device, which can include an access network device and / or a core network device. For example, the UE resides in a cell provided by the network device. Wherein, the network device can be located on the ground, or can also be located in the air, for example, can be located on a satellite, a drone, or an air vehicle, or the network device can be a satellite, a drone, or an air vehicle, etc.
[0111] Please refer to FIG. 2, which is another schematic diagram of an application scenario of the embodiments of the present application. FIG. 2 includes UE1 and UE2, and the two UEs can communicate through a sidelink (SL).
[0112] The method provided by the embodiments of the present application is described below with reference to the accompanying drawings. In the flowcharts corresponding to the embodiments of the present application, the steps represented by dashed lines are optional steps unless otherwise specified. In the embodiments of the present application, the data packet is, for example, a protocol data unit (PDU) or a service data unit (SDU), the PDU is, for example, a PDCP PDU or a radio link control (RLC) PDU, and the SDU is, for example, a PDCP SDU or an RLC SDU. The PDU can include an SDU or a segment of the SDU. The segment of the SDU can also be referred to as a byte segment. The PDU can also include a packet header. For example, the RLC PDU can include an RLC SDU or a segment of the RLC SDU, and the RLC PDU also includes a packet header. In the embodiments of the present application, a data set or a data group or a data unit group can include one or more data packets. The data set or the data group or the data unit group is, for example, a PDU set or a data burst or a data frame. For example, when the data amount of a data frame is large, the data frame can be divided into multiple PDUs for transmission, and the data frame can include the multiple PDUs, and the data frame can also be regarded as a PDU set. The data burst can be understood as a group of PDUs generated and transmitted by an application (or an application layer) within a period of time, and the group of PDUs can come from one or more PDU sets, and the length of the period of time can be less than a set value. In the embodiments of the present application, the data packet can include data, or the data packet can be replaced by data. In the embodiments of the present application, the data (or the data packet) on a logical channel can be understood as data (or the data packet) to be transmitted on the logical channel unless otherwise specified.
[0113] The embodiments of the present application can be applied to the network architecture shown in FIG. 1 or FIG. 2. For example, the first device described in the embodiments of the present application can be the UE in FIG. 1, and the second device described in the embodiments of the present application can be the network device in FIG. 1; for another example, the first device described in the embodiments of the present application can be the UE1 in FIG. 2, and the second device described in the embodiments of the present application can be the UE2 in FIG. 2. In the following description of the process, the first device is taken as the UE, and the second device is taken as the network device, but the present application is not limited thereto.
[0114] The first communication method is provided in the embodiments of the present application, and the flowchart of the method is shown in FIG. 3.
[0115] S301, if the first logical channel satisfies the first condition, the UE determines a priority of the first logical channel as a first priority. Optionally, S301 can be performed by the UE, or by a MAC layer or a MAC entity of the UE.
[0116] The first logical channel is, for example, any logical channel to which a resource is to be allocated. It can be understood that, for each logical channel to which a resource is to be allocated by the UE, the UE can determine the priority in the same or similar manner, and the present embodiment takes the first logical channel as an example, and the UE can also determine the priority of other logical channels to which a resource is to be allocated according to the manner provided in the present embodiment.
[0117] Optionally, one optional implementation of S301 includes that, if the first logical channel satisfies the first condition, the UE can determine the priority of the first logical channel as the first priority. In this implementation, the first logical channel can have been previously configured with a priority, or can not have been configured with a priority, and regardless of whether the first logical channel has been previously configured with a priority, the UE can ignore the previous priority of the first logical channel and only determine the priority of the first logical channel according to the first condition. For example, if the first logical channel does not satisfy the first condition, the UE can determine the priority of the first logical channel as a second priority, where the first priority can be higher than the second priority. The second priority is, for example, configured by the network device. Optionally, the second priority is the original priority of the first logical channel. For example, the network device sends first information, and the UE receives the first information accordingly. The first information can indicate that the priority of the first logical channel is the second priority.
[0118] Alternatively, another optional implementation of S301 includes that, if the first logical channel satisfies the first condition, the UE can adjust the priority of the first logical channel to the first priority. In this implementation, the first logical channel has been configured with a priority, for example, a second priority. If the first logical channel satisfies the first condition, the UE can adjust the priority of the first logical channel from the second priority to the first priority. Alternatively, if the first logical channel does not satisfy the first condition, the UE can not adjust the priority of the first logical channel, for example, the first logical channel remains the second priority. The first priority can be higher than the second priority, which means that the UE can increase the priority of the first logical channel if the first condition is satisfied. The second priority is, for example, configured by the network device, and reference can be made to the introduction in the previous paragraph.
[0119] The two optional implementation manners of S301 can be replaced with each other. For example, “if the first logical channel meets the first condition, the UE can determine the priority of the first logical channel as the first priority”, and “if the first logical channel meets the first condition, the UE can adjust the priority of the first logical channel as the first priority”, the two schemes or the two descriptions can be replaced with each other.
[0120] The first condition includes one or more of the following, for example: the remaining time length of the packet loss timer corresponding to the first data packet to be transmitted on the first logical channel is less than or equal to a first threshold, the first data packet has not been transmitted, the first data packet has been transmitted but not successfully, or the total amount of data of one or more data packets to be transmitted on the first logical channel whose remaining time length of the packet loss timer is less than or equal to the first threshold is greater than or equal to a second threshold. The first data packet is located in the buffer corresponding to the first logical channel, for example, or the first data packet is located in the buffer of the RLC layer, for example. The one or more data packets to be transmitted on the first logical channel whose remaining time length of the packet loss timer is less than or equal to the first threshold can be all or part of the data packets to be transmitted on the first logical channel whose remaining time length of the packet loss timer is less than or equal to the first threshold. The first condition can include that the first data packet has been transmitted but not successfully, so that the UE can also adjust the priority of the logical channel for some retransmission data packets, thereby guaranteeing the delay requirement of the retransmission data packets.
[0121] For example, the first condition can include that the remaining time length of the packet loss timer corresponding to the first data packet to be transmitted on the first logical channel is less than or equal to a first threshold, and that the first data packet has not been transmitted. Alternatively, the first condition can include that the remaining time length of the packet loss timer corresponding to the first data packet to be transmitted on the first logical channel is less than or equal to a first threshold, and that the first data packet has been transmitted but not successfully. Alternatively, the first condition can include that the remaining time length of the packet loss timer corresponding to the first data packet to be transmitted on the first logical channel is less than or equal to a first threshold, and that the first data packet has not been transmitted, and that the total amount of data of one or more data packets to be transmitted on the first logical channel whose remaining time length of the packet loss timer is less than or equal to the first threshold is greater than or equal to a second threshold. Alternatively, the first condition can include that the remaining time length of the packet loss timer corresponding to the first data packet to be transmitted on the first logical channel is less than or equal to a first threshold, and that the first data packet has been transmitted but not successfully, and that the total amount of data of one or more data packets to be transmitted on the first logical channel whose remaining time length of the packet loss timer is less than or equal to the first threshold is greater than or equal to a second threshold. Alternatively, the first condition can include that the first data packet has not been transmitted, and that the total amount of data of one or more data packets to be transmitted on the first logical channel whose remaining time length of the packet loss timer is less than or equal to the first threshold is greater than or equal to a second threshold. Alternatively, the first condition can include that the first data packet has been transmitted but not successfully, and that the total amount of data of one or more data packets to be transmitted on the first logical channel whose remaining time length of the packet loss timer is less than or equal to the first threshold is greater than or equal to a second threshold. Alternatively, the first condition can include that the remaining time length of the packet loss timer corresponding to the first data packet to be transmitted on the first logical channel is less than or equal to a first threshold, or that the total amount of data of one or more data packets to be transmitted on the first logical channel whose remaining time length of the packet loss timer is less than or equal to the first threshold is greater than or equal to a second threshold.
[0122] The first data packet can be one data packet to be transmitted on the first logical channel. Alternatively, the first data packet is, for example, any one data packet to be transmitted on the first logical channel. In this embodiment, all data packets to be transmitted on the first logical channel whose remaining time length of the packet loss timer is less than or equal to the first threshold are deemed to satisfy the first condition.
[0123] Alternatively, the first data packet is, for example, a certain data packet among all data packets to be transmitted on the first logical channel, and in this implementation, as long as the remaining time length of the packet loss timer corresponding to one data packet among all data packets to be transmitted on the first logical channel is less than or equal to the first threshold, it is considered that the first condition is met. Wherein, if the first data packet is a certain data packet among all data packets to be transmitted on the first logical channel, optionally, the first data packet is, for example, a data packet with the shortest remaining time length of the packet loss timer corresponding to the data packet among all data packets to be transmitted on the first logical channel.
[0124] For example, the first condition includes: the remaining time length of the packet loss timer corresponding to any one data packet to be transmitted on the first logical channel is less than or equal to the first threshold; or, the first condition includes: the shortest remaining time length among the remaining time lengths of the packet loss timers corresponding to all data packets to be transmitted on the first logical channel is less than or equal to the first threshold.
[0125] Optionally, the remaining time length of the packet loss timer corresponding to the first data packet can refer to the remaining time length of the packet loss timer corresponding to the first data packet when the first time domain resource is reached; or, the remaining time length of the packet loss timer corresponding to the first data packet can refer to the remaining time length of the packet loss timer corresponding to the first data packet at the time or moment corresponding to the first time domain resource. The first time domain resource is, for example, a transmission resource to be allocated to data (or, data packets) on one or more logical channels, and the first logical channel can belong to the one or more logical channels; or, the first time domain resource can also be understood as a resource scheduled by the network device for the UE. For example, the UE can determine the first time domain resource, thereby determining the remaining time length of the packet loss timer corresponding to the first data packet; for another example, the UE determines the remaining time length of the packet loss timer corresponding to the first data packet according to the time or moment corresponding to the first time domain resource, wherein the UE determines the remaining time length of the packet loss timer corresponding to the first data packet at the time or moment according to the time or moment corresponding to the first time domain resource. The first time domain resource is a resource to be allocated by the UE to data on one or more logical channels, and before the first time domain resource is allocated, the UE needs to determine which logical channels and which data the first time domain resource is allocated to, so the UE can perform S301. Alternatively, by performing S301, the UE can realize the allocation of the first time domain resource. When judging whether the first logical channel meets the first condition, the UE can judge according to the first time domain resource, rather than according to the current time, so as to ensure that the UE performs more accurate and strict judgment, for example, the UE determines the priority of the first logical channel as the first priority only when it considers that the data packet to be transmitted on the first logical channel is low-latency data at the actual transmission time, thereby avoiding the UE adjusting the priority of the first logical channel in advance.
[0126] One optional implementation of the UE determining the first time-domain resource includes that the UE receives second information from which the first time-domain resource can be determined. The second information can be used to schedule the first time-domain resource. The second information can be, for example, a downlink control information (DCI) or the like. Alternatively, another optional implementation of the UE determining the first time-domain resource includes that the UE determines a pre-configured first time-domain resource. The first time-domain resource can belong to pre-configured transmission resources for the UE by the network device through third information. The third information can be, for example, a radio resource control (RRC) message or a message of another protocol layer.
[0127] The packet discard timer corresponding to the data packet to be transmitted can be configured by the network device. The PDCP entity of the UE can start the packet discard timer corresponding to each data packet to be transmitted. For example, the data packet is a PDCP SDU. After the PDCP entity of the UE receives a PDCP SDU, the PDCP entity can start a packet discard timer for the PDCP SDU. For each PDCP SDU received by the PDCP entity, the PDCP entity can start a corresponding packet discard timer. If the packet discard timer corresponding to a PDCP SDU expires and the PDCP SDU has not been transmitted, the UE discards the PDCP SDU, for example, the PDCP entity discards the PDCP SDU. For another example, if the data has been delivered to the lower layer of the PDCP, the PDCP entity can also send a discard indication to the lower layer, which indicates that the lower layer discards the data.
[0128] For example, the packet discard timer corresponding to the first data packet is, for example, a first timer or a second timer. The first timer can be, for example, discardTimer, and the second timer can be, for example, discardTimerForLowImportance.
[0129] If a logical channel is not activated for importance-based packet discard, all data packets to be transmitted on the logical channel use the first timer without distinguishing the importance of the data packets. Alternatively, if a logical channel is activated for importance-based packet discard, important data packets to be transmitted on the logical channel use the first timer, and unimportant data packets to be transmitted on the logical channel use the second timer. The important data packets can be, for example, data packets with importance higher than or equal to an importance threshold, and the unimportant data packets can be, for example, data packets with importance lower than the importance threshold.
[0130] Optionally, if the first logical channel is not activated for importance-based packet loss, and the first condition includes that the remaining time length of the packet loss timer corresponding to the first data packet to be transmitted on the first logical channel is less than or equal to the first threshold, the first condition can specifically include that the remaining time length of the first timer corresponding to the first data packet to be transmitted on the first logical channel is less than or equal to the first threshold. All data packets on the first logical channel correspond to the first timer, so the first data packet also corresponds to the first timer.
[0131] Alternatively, if the first logical channel is activated for importance-based packet loss, and the first condition includes that the remaining time length of the packet loss timer corresponding to the first data packet to be transmitted on the first logical channel is less than or equal to the first threshold, the first condition can specifically include that the remaining time length of the first timer or the second timer corresponding to the first data packet to be transmitted on the first logical channel is less than or equal to the first threshold. Important data packets on the first logical channel correspond to the first timer, unimportant data packets on the first logical channel correspond to the second timer, and the first data packet can be an important data packet or an unimportant data packet.
[0132] Alternatively, if the first logical channel is activated for importance-based packet loss, and the first condition includes that the remaining time length of the packet loss timer corresponding to the first data packet to be transmitted on the first logical channel is less than or equal to the first threshold, the first condition can specifically include that the remaining time length of the first timer corresponding to the first data packet to be transmitted on the first logical channel is less than or equal to the first threshold. Important data packets on the first logical channel correspond to the first timer, unimportant data packets on the first logical channel correspond to the second timer, and the first data packet is a data packet on the first logical channel corresponding to the first timer, not a data packet on the first logical channel corresponding to the second timer. This can be understood as, when determining whether the first condition is met, using the data packet corresponding to the first timer to determine, and not using the data packet corresponding to the second timer to determine. For example, the first data packet can be any one of the important data packets to be transmitted on the first logical channel, or can be the data packet with the shortest remaining time length of the first timer among all important data packets to be transmitted on the first logical channel.
[0133] The UE is to determine whether there is a first data packet on the first logical channel corresponding to a packet loss timer with a remaining time length less than or equal to a first threshold. This determination step can be performed by the MAC layer of the UE. The MAC layer can have various implementations, as exemplified below.
[0134] As one optional determination manner of the MAC layer determining whether the remaining time length of the packet loss timer corresponding to the first data packet on the first logical channel is less than or equal to the first threshold value, the PDCP layer of the UE can send first indication information to the MAC layer of the UE, and the first indication information can indicate that the remaining time length of the packet loss timer corresponding to the first data packet is less than or equal to the first threshold value. After receiving the first indication information, the MAC layer can determine that the remaining time length of the packet loss timer corresponding to the first data packet is less than or equal to the first threshold value. Optionally, the MAC layer can send first request information to the PDCP layer, and the first request information can request to obtain information of a data packet corresponding to a packet loss timer with a remaining time length less than or equal to the first threshold value. Optionally, the first request information can also indicate first time domain resource related information, such as a time domain time of the first time domain resource. After receiving the first request information, the PDCP layer can determine the data packet corresponding to the packet loss timer with the remaining time length less than or equal to the first threshold value, for example, determine the first data packet corresponding to the packet loss timer with the remaining time length less than or equal to the first threshold value, and thus the PDCP layer can send the first indication information to the MAC layer. For example, the MAC layer can determine the first transmission resource, which is a resource to be allocated by the UE to data on one or more logical channels. Before allocating the first transmission resource, the UE needs to determine which data on which logical channels to allocate the first transmission resource, and thus the UE can perform S301. Alternatively, by performing S301, the UE can achieve the allocation of the first transmission resource. For example, the first transmission resource includes the first time domain resource, and the UE determines the first transmission resource includes determining the first time domain resource, and thus the UE (for example, the MAC layer) can determine the first transmission resource in the manner described above with reference to the manner of determining the first time domain resource by the UE. After determining the first transmission resource, the MAC layer can determine the time domain time corresponding to the first transmission resource, that is, the time corresponding to the first time domain resource, and the MAC layer can indicate the first time domain resource to the PDCP layer. Then, the PDCP layer can determine, according to the first time domain resource and the starting time of the packet loss timer corresponding to each data packet to be transmitted by the first logical channel, whether the remaining time length of the packet loss timer corresponding to each data packet is less than or equal to the first threshold value when the first time domain resource is reached, or at the time or moment corresponding to the first time domain resource. For example, the starting time of the packet loss timer corresponding to a data packet is t0, the first time domain resource is t1, and the total time length of the packet loss timer corresponding to the data packet is T, then the remaining time length of the packet loss timer corresponding to the data packet is T-(t1-t0). For example, the PDCP layer determines that the remaining time length of the packet loss timer corresponding to the first data packet among the data packets to be transmitted by the first logical channel is less than or equal to the first threshold value, and then the PDCP layer can send the first indication information to indicate the first data packet. For example, the first indication information can include the number of the first data packet.
[0135] Alternatively, as another optional determination manner of the MAC layer determining whether the remaining time of the packet loss timer corresponding to the first data packet on the first logical channel is less than or equal to the first threshold, the PDCP layer of the UE can send second indication information to the MAC layer of the UE, and the second indication information can indicate that the packet loss timer corresponding to the first data packet has been started. The MAC layer can determine, according to the second indication information and the first time domain resource, that the remaining time of the packet loss timer corresponding to the first data packet is less than or equal to the first threshold. For example, when the PDCP layer starts the packet loss timer corresponding to a data packet, the PDCP layer can send the second indication information to the MAC layer, and the second indication information can indicate that the packet loss timer corresponding to the data packet has been started, for example, the second indication information includes the number of the data packet for which the packet loss timer has been started. After receiving the second indication information, the MAC layer can maintain the remaining time of the packet loss timer corresponding to the data packet. If the MAC layer determines the first time domain resource, the MAC layer can determine whether the remaining time of the packet loss timer corresponding to the data packet is less than or equal to the first threshold, for example, the MAC layer determines that the remaining time of the packet loss timer corresponding to the first data packet is less than or equal to the first threshold. For example, when the start time of the packet loss timer corresponding to a data packet is t0, the PDCP layer can send the second indication information to the MAC layer at t0. For example, the first time domain resource is t2, the total time of the packet loss timer corresponding to the data packet is T, and the remaining time of the packet loss timer corresponding to the data packet is T-(t2-t0). For example, the MAC layer determines that the remaining time of the packet loss timer corresponding to the first data packet in the data packets to be transmitted on the first logical channel is less than or equal to the first threshold. Optionally, the MAC layer obtains the first time domain resource at t1, and the MAC layer can determine whether the remaining time T-(t2-t0) of the data packet is less than or equal to the first threshold at t1. Optionally, the MAC layer can first obtain the total time T of the packet loss timer, for example, the PDCP layer indicates the total time T of the packet loss timer to the MAC layer in advance.
[0136] Alternatively, in addition to the above, the MAC layer can determine that the remaining time of the packet loss timer corresponding to the first data packet is less than or equal to the first threshold in other manners.
[0137] The UE determines that the priority of the first logical channel is a first priority, and the first priority can be used for resource allocation of data on the first logical channel. However, in the actual allocation process, data on the first logical channel can be allocated resources, or can not be allocated resources. When the UE performs resource allocation, the priority of each logical channel of the to-be-allocated resources needs to be considered. If the first priority is still lower than the priority of other logical channels, data on the first logical channel can still not be allocated resources, but the first priority is still a factor for determining whether the first logical channel is allocated resources. For example, there are logical channel 1 to logical channel 3 to be allocated resources, and the UE determines the first transmission resource to allocate resources for part or all of the logical channels in logical channel 1 to logical channel 3. For example, the priority of logical channel 1 is priority 1, the priority of logical channel 2 is priority 2, the priority of logical channel 3 is priority 3, priority 3 is higher than priority 2, priority 2 is higher than priority 1, and the first logical channel is, for example, logical channel 1. The UE can allocate resources for logical channel 3 first according to the priority of the logical channel; after allocating resources for logical channel 3, if there is remaining resources, resources can be allocated for logical channel 2, and if there is no remaining resources, the allocation ends; after allocating resources for logical channel 2, if there is remaining resources, resources can be allocated for logical channel 1, and if there is no remaining resources, the allocation ends. As can be seen, logical channel 1 can be allocated resources, or can not be allocated resources.
[0138] Optionally, the UE adjusts (or, determines) the priority of the logical channel, which can be regarded as a function of the UE, and the function can be started (or activated) or stopped (or deactivated) by the UE itself, or can be instructed to start or stop by the network device. Taking the network device as an example, the network device can send fourth information, and the fourth information can instruct to start or stop the function. If the fourth information instructs to start the function, the UE can perform the scheme of the embodiments of the present application. Or, if the fourth information instructs to stop or not to start the function, the UE does not perform the scheme of the embodiments of the present application. By controlling whether the UE enables the function of adjusting the priority of the logical channel by the network device, the function can be more flexibly controlled, so that the use of the function by the UE is more reasonable. For example, the network device can start the function for the UE when there is a delay-sensitive service, to ensure the reliability of service transmission, improve transmission efficiency, and reduce packet loss rate. When there is no delay-sensitive service, the network device can stop the function for the UE, to avoid the UE performing too many operations, reduce the complexity of the UE, and save power for the UE.
[0139] In the embodiments of this application, if the first logical channel satisfies the first condition, the UE can determine the priority of the first logical channel as the first priority. The first condition indicates, for example, that there is low-latency data on the first logical channel, and the first priority is, for example, a higher priority. Because the priority of the first logical channel is higher, the data on the first logical channel can be preferentially allocated resources, reducing the probability of data on the first logical channel being discarded, and improving the success rate of data transmission.
[0140] The second communication method provided in the embodiments of this application is described below with reference to FIG. 4, which is a flowchart of the method.
[0141] S401, if the first logical channel satisfies the second condition, allocating transmission resources for low-latency data to be transmitted on the first logical channel. The low-latency data is described above. Optionally, S401 can be performed by the UE, or by the MAC layer of the UE.
[0142] The first logical channel is, for example, any logical channel to which resources are to be allocated. It can be understood that for each logical channel to which the UE is to allocate resources, the UE can determine whether the logical channel satisfies the second condition in the same or similar manner. The embodiments of this application take the first logical channel as an example, and the UE can also determine whether other logical channels to which resources are to be allocated satisfy the second condition in the manner provided in the embodiments of this application.
[0143] Optionally, the second condition can indicate that the first parameter corresponding to the first logical channel cannot cause part or all of the low-latency data to be allocated resources. First, the first parameter corresponding to the first logical channel is described.
[0144] The first parameter can also be referred to as a first variable, etc. The first parameter can be used for allocating resources for data on a logical channel corresponding to the first parameter, for example, the first parameter can be used to determine whether resources can be allocated for data on the logical channel corresponding to the first parameter, the first parameter can also indicate the number of resources that can be allocated for data on the logical channel corresponding to the first parameter. For example, the first parameter can be understood as a state variable corresponding to the logical channel, or as the number of tokens of the logical channel. For example, the first parameter is denoted as Bj. Each logical channel can have a corresponding first parameter, and the values of the first parameters corresponding to different logical channels can be the same or different. For example, when a logical channel is established, the UE can initialize the value of the first parameter of the logical channel, for example, to 0. After each time T, the value of the first parameter corresponding to the logical channel can increase by the size of the prioritized bit rate (PBR), that is, after each time T, Bj corresponding to the logical channel = PBR*T. However, the value of the first parameter corresponding to a logical channel will not exceed the size of the token bucket corresponding to the logical channel, wherein the size of the token bucket corresponding to a logical channel = PBR*BSD, and BSD represents the bucket size duration (BSD). If the value of the first parameter of a certain logical channel is greater than the size of the token bucket corresponding to the logical channel, the value of the first parameter of the logical channel should be set to equal to PBR*BSD.
[0145] The first parameter is related to the process of allocating resources for data on a logical channel by the UE. For example, the network device can schedule uplink resources for the UE according to the data transmission requirements of the UE, or the UE can obtain pre-configured uplink resources. After obtaining the scheduled or pre-configured uplink resources, the UE can allocate uplink resources for data to be transmitted on a logical channel through a logical channel prioritization (LCP) process and using a token bucket algorithm. The resource allocation process can include a first stage, or a first stage and a second stage.
[0146] In the first stage, the UE allocates resources for the logical channels with the value of the first parameter greater than 0 in the order of the priority of the logical channels from high to low. When allocating resources, the UE first allocates resources for the data to be transmitted on the logical channel with the highest priority, and stops allocating resources for the logical channel when the value of the first parameter corresponding to the logical channel is less than or equal to 0, and then allocates resources for the next logical channel. When allocating resources for the data to be transmitted on a logical channel or after completing the allocation of resources, the UE stops the resource allocation process in the first stage if the resources obtained by the UE are allocated completely. After allocating resources for the data to be transmitted on each logical channel, the UE updates the first parameter of the logical channel. For example, after the UE allocates resources for the data to be transmitted on a logical channel, the value of the first parameter corresponding to the logical channel should be reduced by the size of the resources allocated for the logical channel. For example, after the UE allocates 200 bits of resources for the data to be transmitted on a logical channel, the UE should reduce the value of the first parameter corresponding to the logical channel by 200.
[0147] After the UE allocates resources for all the logical channels with the value of the first parameter greater than 0 according to the above rules, if the resources to be allocated are allocated completely, the UE stops the resource allocation process; or if there are remaining resources that are not allocated, the UE can perform the resource allocation process in the second stage. In the second stage, the UE can allocate resources for the logical channels in the order of the priority from high to low without considering the value of the first parameter until the data to be transmitted on all the logical channels are allocated resources or until the resources obtained by the UE are allocated completely.
[0148] As can be known from the above, when the UE allocates resources for the logical channels in the first stage, the value of the first parameter corresponding to the logical channel should be greater than 0, so that the UE allocates resources for the data to be transmitted on the logical channel. If the value of the first parameter corresponding to a logical channel is less than or equal to 0, the UE does not allocate resources for the data to be transmitted on the logical channel. Then, if there is low-latency data on the logical channel, the low-latency data may not be allocated resources, which may increase the packet loss rate.
[0149] Alternatively, even if the value of the first parameter corresponding to a logical channel is greater than 0, the UE can allocate resources for the data to be transmitted on the logical channel. However, there may be a large amount of low-latency data on the logical channel, and the value of the first parameter corresponding to the logical channel may be less than the data amount of the low-latency data or less than the resource amount required by the low-latency data, so that the UE cannot allocate resources for all the data in the low-latency data, which still causes part of the low-latency data to be unable to be allocated resources and may increase the packet loss rate.
[0150] In view of this, in the embodiments of the present application, even if the first logical channel satisfies the second condition, the UE can allocate resources for the low-latency data on the first logical channel, for example, for all the low-latency data on the first logical channel. The second condition can indicate that the first parameter corresponding to the first logical channel cannot cause part or all of the low-latency data to be allocated resources. In other words, if the logical channel satisfying the second condition is allocated resources in the traditional manner, the low-latency data on the logical channel can not be transmitted or completely transmitted. However, in the embodiments of the present application, the low-latency data on the first logical channel satisfying the second condition can be allocated resources, so that the low-latency data can be transmitted in time, which is beneficial to reduce the packet loss rate.
[0151] In addition, if the first logical channel does not satisfy the second condition, the UE can allocate resources for the low-latency data and / or non-low-latency data on the first logical channel. It can be understood that if the first logical channel does not satisfy the second condition, the UE can allocate resources for the data on the first logical channel in the traditional manner (for example, the resource allocation manner described above including the first stage, or including the first stage and the second stage).
[0152] Optionally, the second condition can include that the value of the first parameter corresponding to the first logical channel is less than the data amount of the low-latency data to be transmitted on the first logical channel. Alternatively, the second condition can include that the value of the first parameter corresponding to the first logical channel is less than the sum of the data amount of the low-latency data to be transmitted on the first logical channel and the data amount of the non-low-latency data located before the low-latency data. The data to be transmitted on the first logical channel can include low-latency data and can not include non-low-latency data, or can include low-latency data and non-low-latency data. If it includes non-low-latency data, the non-low-latency data can be located before and / or after the low-latency data. If the non-low-latency data is located before the low-latency data, the non-low-latency data is required to be allocated resources first, and then the low-latency data is allocated resources in the resource allocation process. The resource allocation of the non-low-latency data also occupies the value of the first parameter, that is, after the non-low-latency data is allocated resources, the value of the first parameter corresponding to the first logical channel is updated, and the updated value of the first parameter can cause part or all of the low-latency data to be unable to be allocated resources. Therefore, the second condition can include that the value of the first parameter corresponding to the first logical channel is less than the sum of the data amount of the low-latency data to be transmitted on the first logical channel and the data amount of the non-low-latency data located before the low-latency data. Optionally, according to the definition of the low-latency data described above, the non-low-latency data located before the low-latency data can include urgent and unimportant data, for example, the remaining duration of the packet loss timer is less than or equal to the first threshold, but the data is unimportant.
[0153] The UE allocates resources for low latency data on the first logical channel, which can be done in various ways, as exemplified below.
[0154] 1. First allocation manner of the UE.
[0155] The UE can allocate transmission resources for M data packets on the first logical channel, while ignoring the value of the first parameter corresponding to the first logical channel. Alternatively, the UE can allocate transmission resources for M data packets on the first logical channel, while ignoring the value of the first parameter corresponding to the first logical channel. M is a positive integer. For example, if the value of the first parameter is not ignored, since the first logical channel satisfies the second condition, it indicates that the value of the first parameter cannot guarantee that the UE allocates resources for part or all of the low latency data to be transmitted on the first logical channel. Therefore, the UE can ignore the value of the first parameter, so that it can allocate resources for all of the low latency data to be transmitted on the first logical channel. For example, the M data packets can include all of the low latency data; or the M data packets can include all of the low latency data and all of the non-low latency data before the low latency data on the first logical channel. Optionally, the UE can update the value of the first parameter corresponding to the first logical channel after allocating resources for the M data packets (it can be understood that the UE can ignore the first parameter before allocating resources for the M data packets, but can continue to consider the first parameter after allocating resources for the M data packets); or the UE can also not update the value of the first parameter after allocating resources for the M data packets (it can be understood that the resource allocation of the M data packets can ignore the first parameter, not only when allocating resources for the M data packets, but also after the resource allocation of the M data packets is completed, the value of the first parameter is not updated according to the resource allocation of the M data packets). Wherein, if the UE updates the value of the first parameter after allocating resources for the M data packets, for example, the UE can update the value of the first parameter to 0, or the UE can also update the value of the first parameter according to the resource allocation of the M data packets.
[0156] In various embodiments of the present application, if the UE updates the value of the first parameter corresponding to the first logical channel, the value of the first parameter can be closer to the actual situation, and the resources can be more evenly allocated to each logical channel. Alternatively, the UE can also not update the value of the first parameter corresponding to the first logical channel, so that if there is low latency data on the first logical channel again, the first parameter can be used to better allocate resources for the low latency data.
[0157] For example, referring to FIG. 5A, an example of data on a logical channel is shown. For example, the logical channel includes low latency data and non-low latency data, wherein the low latency data is included in data packet 1 and data packet 2, data packet 1 includes 300 bits, and data packet 2 includes 300 bits; the non-low latency data is included in data packet 3, and data packet 3 includes 300 bits. Wherein, data packet 3 is located after data packet 1 and data packet 2. The value of the first parameter corresponding to the logical channel is, for example, 500. Since the sum of the data amount of data packet 1 and the data amount of data packet 2 is 600 bits, which is greater than the value of the first parameter, the logical channel satisfies the second condition, and the UE can ignore the value of the first parameter and allocate resources for data packet 1 and data packet 2. For example, the UE allocates 300 bits of resources for data packet 1 and 300 bits of resources for data packet 2. After allocating resources for data packet 1 and data packet 2, the UE can not update the value of the first parameter, and the value of the first parameter remains 500. Alternatively, the UE can continue to allocate resources for data packet 3, or can not allocate resources for data packet 3. Alternatively, after allocating resources for data packet 1 and data packet 2, the UE can update the value of the first parameter, for example, to 0 or to 500-300-300=-100. In this case, the value of the first parameter is less than or equal to 0, and the UE does not allocate resources for data packet 3.
[0158] Alternatively, in various embodiments of the present application, when the UE updates the value of the first parameter for a certain logical channel, the UE can update the value of the first parameter after allocating resources for part or all of the data packets of the logical channel, or the UE can update the value of the first parameter after allocating resources for each data packet of the logical channel, and the present application does not limit the embodiments.
[0159] 2. Second allocation mode of the UE.
[0160] The UE can allocate transmission resources for M data packets on the first logical channel, and update the value of the first parameter corresponding to the first logical channel according to the transmission resources allocated for the M data packets. M is a positive integer. This mode can be regarded as that the UE "borrows" the value of the first parameter, although the value of the first parameter does not currently satisfy the allocation of resources for part or all of the low latency data to be transmitted on the first logical channel, but the UE still allocates resources for all of the low latency data. For example, the M data packets can include all of the low latency data; or the M data packets can include all of the low latency data and all of the non-low latency data located before the low latency data on the first logical channel. Alternatively, after allocating resources for the M data packets, the UE can update the value of the first parameter corresponding to the first logical channel, for example, the UE can update the value of the first parameter according to the resource allocation of the M data packets.
[0161] For example, continuing to refer to FIG. 5A. Since the sum of the data amount of data packet 1 and the data amount of data packet 2 is 600 bits, which is greater than the value of the first parameter, the logical channel satisfies the second condition, and the UE can allocate resources for data packet 1 and data packet 2. For example, the UE allocates 300 bits of resources for data packet 1, and allocates 300 bits of resources for data packet 2. After allocating resources for data packet 1 and data packet 2, the UE can update the value of the first parameter to 500-300-300=-100. In this case, the value of the first parameter is less than or equal to 0, and the UE does not allocate resources for data packet 3.
[0162] 3. A third allocation manner of the UE.
[0163] The UE can allocate transmission resources for N data packets on the first logical channel, and does not update the value of the first parameter corresponding to the first logical channel according to the allocation of the transmission resources for the N data packets; and the UE allocates transmission resources for K data packets on the first logical channel. Optionally, after allocating the transmission resources for the K data packets, the UE can update the value of the first parameter corresponding to the first logical channel, for example, the UE can update the value of the first parameter according to the allocation of the transmission resources for the K data packets. N and K are both positive integers. The N data packets can include non-low-latency data to be transmitted before low-latency data to be transmitted on the first logical channel, and the K data packets can include all of the low-latency data to be transmitted on the first logical channel.
[0164] That is, on the first logical channel, there is non-low-latency data to be transmitted before low-latency data to be transmitted, and the non-low-latency data needs to be allocated resources first, and then the low-latency data needs to be allocated resources. If the allocation of resources for the non-low-latency data occupies the value of the first parameter, the value of the first parameter after updating can not meet the allocation of resources for the low-latency data. Therefore, after allocating resources for the non-low-latency data, the embodiment of the present application can not update the value of the first parameter according to the allocation of resources for the non-low-latency data, so that the allocation of resources for the non-low-latency data does not occupy the value of the first parameter, and thus the value of the first parameter can meet the allocation of resources for the low-latency data.
[0165] Optionally, if the UE determines that there is non-low latency data before the low latency data in the data to be transmitted on the first logical channel, the UE can adopt the third allocation manner. For example, the UE determines that the first logical channel satisfies the second condition, and determines that there is non-low latency data before the low latency data in the data to be transmitted on the first logical channel, and then the UE can adopt the third allocation manner. Optionally, the first logical channel satisfies the second condition because there is non-low latency data before the low latency data in the data to be transmitted on the first logical channel, and the low latency data to be transmitted on the first logical channel cannot be allocated transmission resources because of the allocation of resources for the non-low latency data.
[0166] Optionally, the UE can first determine whether there is non-low latency data before the low latency data in the data to be transmitted on the first logical channel, and if there is non-low latency data before the low latency data, the UE can adopt the third allocation manner. For example, the UE determines whether the first logical channel satisfies the second condition, and whether there is non-low latency data before the low latency data in the data to be transmitted on the first logical channel. If the first logical channel satisfies the second condition and there is non-low latency data before the low latency data in the data to be transmitted on the first logical channel, the UE can adopt the third allocation manner. Optionally, the first logical channel satisfies the second condition because there is non-low latency data before the low latency data in the data to be transmitted on the first logical channel, and the low latency data to be transmitted on the first logical channel cannot be allocated transmission resources because of the allocation of resources for the non-low latency data.
[0167] In various embodiments of the present application, the UE determines the first condition and performs the first behavior, which can also be replaced by the UE performing the first behavior by determining the condition. For example, the UE determines whether condition A is satisfied, and if condition A is satisfied, the UE performs the first behavior. For example, “the UE determines that there is non-low latency data before the low latency data in the data to be transmitted on the first logical channel (equivalent to the UE determining the first condition), and then the UE can adopt the third allocation manner to allocate resources for the non-low latency data before the low latency data (equivalent to the UE performing the first behavior)”, which can also be replaced by “the UE determines whether there is non-low latency data before the low latency data in the data to be transmitted on the first logical channel, which is equivalent to the UE determining whether condition A is satisfied; if there is non-low latency data before the low latency data, the UE can adopt the third allocation manner to allocate resources for the non-low latency data before the low latency data, which is equivalent to the UE performing the first behavior if condition A is satisfied”.
[0168] For example, referring to FIG. 5B, an example of data on a logical channel is shown. For example, the logical channel includes low latency data and non-low latency data, wherein the low latency data is included in data packet 5, and data packet 5 includes 300 bits; the non-low latency data is included in data packet 4 and data packet 6, wherein data packet 4 includes 200 bits, and data packet 6 includes 300 bits. Data packet 4 is located before data packet 5, and data packet 6 is located after data packet 5. The value of the first parameter corresponding to the logical channel is, for example, 400. Since the sum of the data amount of data packet 4 and the data amount of data packet 5 is 500 bits, which is greater than the value of the first parameter, the logical channel satisfies the second condition, and in addition, there is data packet 4 including non-low latency data before data packet 5 including low latency data. The UE can allocate resources for data packet 4, for example, 200 bits of resources are allocated, and the UE does not update the value of the first parameter accordingly, and the value of the first parameter remains 400. The UE then allocates resources for data packet 5. Since the value of the first parameter is 400, and data packet 5 is 300 bits, the value of the first parameter can satisfy the resource allocation of data packet 5, and for example, the UE allocates 300 bits of resources for data packet 5. After allocating resources for data packet 5, the UE can update the value of the first parameter, for example, updating the value of the first parameter to 400-300 = 100. Alternatively, the UE can continue to allocate resources for data packet 6, for example, 100 bits of resources can be allocated for data packet 6, and then the value of the first parameter is updated to 0, and the UE no longer allocates resources for the remaining data in data packet 6; or, the UE can also not allocate resources for data packet 6 after allocating resources for data packet 5. The description of the example of FIG. 5B can be that the UE determines that there is data packet 4 including non-low latency data before data packet 5 including low latency data, and the UE can allocate resources for data packet 4, and does not update the value of the first parameter according to the resources allocated for data packet 4. The description can also be replaced with: the UE determines whether there is data packet 4 including non-low latency data before data packet 5 including low latency data, and if there is data packet 4 including non-low latency data before data packet 5 including low latency data, the UE can allocate resources for data packet 4, and does not update the value of the first parameter according to the resources allocated for data packet 4.
[0169] Optionally, the third allocation manner of the UE can also be combined with the first allocation manner of the UE. For example, the UE determines that there is non-low latency data before low latency data in the data to be transmitted by the first logical channel, and then the UE can allocate resources for the non-low latency data before the low latency data by using the third allocation manner. Alternatively, the UE determines whether there is non-low latency data before low latency data in the data to be transmitted by the first logical channel, and if there is non-low latency data before the low latency data, the UE can allocate resources for the non-low latency data before the low latency data by using the third allocation manner. After allocating resources for the non-low latency data, the UE can not update the value of the first parameter according to the resource allocation of the non-low latency data. At this time, if the value of the first parameter of the first logical channel still cannot meet the resource allocation of the low latency data to be transmitted by the first logical channel, the UE can continue to allocate resources for the low latency data to be transmitted by the first logical channel by using the first allocation manner.
[0170] Alternatively, optionally, the third allocation manner of the UE can also be combined with the second allocation manner of the UE. For example, the UE determines that there is non-low latency data before low latency data in the data to be transmitted by the first logical channel, and then the UE can allocate resources for the non-low latency data before the low latency data by using the third allocation manner. The UE determines whether there is non-low latency data before low latency data in the data to be transmitted by the first logical channel, and if there is non-low latency data before the low latency data, the UE can allocate resources for the non-low latency data before the low latency data by using the third allocation manner. After allocating resources for the non-low latency data, the UE can not update the value of the first parameter according to the resource allocation of the non-low latency data. At this time, if the value of the first parameter of the first logical channel still cannot meet the resource allocation of the low latency data to be transmitted by the first logical channel, the UE can continue to allocate resources for the low latency data to be transmitted by the first logical channel by using the second allocation manner.
[0171] 4. The fourth allocation manner of the UE.
[0172] The fourth allocation manner can also not be regarded as an independent resource allocation manner, for example, the fourth allocation manner can share the first or second allocation manner described above.
[0173] The fourth allocation manner includes that the UE can determine the low latency data on the first logical channel according to a third threshold. For example, the low latency data refers to data whose remaining time length of the corresponding packet loss timer is less than or equal to the third threshold, and the third threshold is irrelevant to the importance of the data. Optionally, the third threshold can be equal to or different from the first threshold. It can be understood that there can be different definitions of the low latency data, for example, the low latency data can refer to important data whose remaining time length of the corresponding packet loss timer is less than or equal to the first threshold, or the low latency data can refer to data whose remaining time length of the corresponding packet loss timer is less than or equal to the third threshold. The low latency data defined according to the definition manner related to the third threshold (or the definition manner irrelevant to the importance) can be more, because the importance restriction condition is reduced. Therefore, the UE can define which data on the first logical channel is the low latency data according to the definition manner irrelevant to the importance. Through this definition manner, part or all of the non-low latency data (for example, the non-low latency data defined according to the definition manner related to the importance) on the first logical channel can be redefined as the low latency data. For example, if the definition manner related to the importance is used, there can be non-low latency data to be transmitted before the low latency data to be transmitted on the first logical channel. If the definition manner irrelevant to the importance is used, the non-low latency data can be defined as the low latency data, and the first logical channel can be processed according to the first allocation manner or the second allocation manner.
[0174] The UE can use which allocation manner can be predefined by a protocol, configured by a network device, or set by the UE itself. The UE can use the same allocation manner or different allocation manners when allocating resources for different logical channels that meet the second condition.
[0175] Optionally, S401 can occur in the first stage of the resource allocation process. For example, the UE can determine whether the first logical channel meets the second condition in the first stage of the resource allocation process, and then allocate resources for the data on the first logical channel according to the determination result. Alternatively, the UE can determine whether the first logical channel meets the second condition before the first stage of the resource allocation process starts, and then allocate resources for the data on the first logical channel according to the determination result in the first stage of the resource allocation process.
[0176] Please refer to FIG. 5C for an example of data on several logical channels. FIG. 5C includes logical channel 1, logical channel 2 and logical channel 3. Logical channel 1 includes low latency data and non-low latency data, wherein the low latency data is included in data packet 5, and data packet 5 includes 300 bits of data; the non-low latency data is included in data packet 4 and data packet 6, data packet 4 includes 200 bits of data, and data packet 6 includes 300 bits of data. Data packet 4 is located before data packet 5, and data packet 6 is located after data packet 5. The value of the first parameter corresponding to logical channel 1 is, for example, 400. Logical channel 2 includes low latency data and non-low latency data, wherein the low latency data is included in data packet 7, and the non-low latency data is included in data packet 8, data packet 7 includes 300 bits of data, data packet 8 includes 600 bits of data, and data packet 7 is located before data packet 8. The value of the first parameter corresponding to logical channel 2 is, for example, 800. Logical channel 3 includes low latency data and non-low latency data, wherein the low latency data is included in data packet 1 and data packet 2, data packet 1 includes 300 bits of data, and data packet 2 includes 300 bits of data; the non-low latency data is included in data packet 3, and data packet 3 includes 300 bits of data. Data packet 3 is located after data packet 1 and data packet 2. The value of the first parameter corresponding to logical channel 3 is, for example, 500.
[0177] Suppose the UE obtains 2000 bits of resources. For example, the order of logical channel priority from high to low is that the priority of logical channel 3 is higher than the priority of logical channel 2, and the priority of logical channel 2 is higher than the priority of logical channel 1. In the resource allocation process of the first stage, the UE first allocates resources for logical channel 3. Since the sum of the data amounts of data packet 1 and data packet 2 on logical channel 3 is 600, which is greater than the value of the first parameter corresponding to logical channel 3, 500, logical channel 3 satisfies the second condition, and the UE can allocate resources for logical channel 3 according to the scheme of the embodiments of the present application. For example, the UE allocates resources for logical channel 3 according to the first allocation manner or the second allocation manner described above, and the UE allocates 300 bits of resources for data packet 1 and 300 bits of resources for data packet 2. Alternatively, the UE can update the value of the first parameter corresponding to logical channel 3, for example, to 0 or to -100, or the UE can not update the value of the first parameter, and the value of the first parameter remains 500. For example, the UE no longer allocates resources for data packet 3 on logical channel 3.
[0178] According to the priority of the logical channels, the UE then allocates resources for logical channel 2. Since the data packet 7 on logical channel 2 includes 300 bits, which is less than the value of the first parameter corresponding to logical channel 2, logical channel 2 does not satisfy the second condition, and the UE can allocate resources for the data on logical channel 2 in a conventional manner. For example, the UE allocates 300 bits of resources for data packet 7, and updates the value of the first parameter corresponding to logical channel 2 to 800-300=500. At this time, the value of the first parameter is greater than 0, and the UE continues to allocate 500 bits of resources for data packet 8 on logical channel 2. At this time, the value of the first parameter corresponding to logical channel 2 is updated to 0, and the UE stops allocating resources for the remaining data in data packet 8. Thus, there are still 100 bits of data in data packet 8 that have not been allocated resources.
[0179] According to the priority of the logical channels, the UE then allocates resources for logical channel 1. Since the sum of the data amounts of data packet 4 and data packet 5 on logical channel 1 is 500, which is greater than the value of the first parameter corresponding to logical channel 1, logical channel 1 satisfies the second condition, and the UE can allocate resources for logical channel 1 according to the scheme of the embodiments of the present application. For example, the UE allocates resources for logical channel 1 according to the third allocation manner described above. For example, the UE determines that there is data packet 4 including non-low-latency data before data packet 5 including low-latency data, and allocates 200 bits of resources for data packet 4, without updating the value of the first parameter corresponding to logical channel 1. Thus, the value of the first parameter remains 400. The UE then allocates resources for data packet 5. Since the value of the first parameter corresponding to logical channel 1 is 400, and data packet 5 is 300 bits, the value of the first parameter can satisfy the resource allocation for data packet 5. For example, the UE allocates 300 bits of resources for data packet 5. After allocating resources for data packet 5, the UE can update the value of the first parameter corresponding to logical channel 1. For example, the value of the first parameter is updated to 400-300=100. Alternatively, the UE can continue to allocate resources for data packet 6 on logical channel 1. For example, the UE can allocate 100 bits of resources for data packet 6, and then the value of the first parameter corresponding to logical channel 1 is updated to 0. Thus, the UE does not allocate resources for the remaining data in data packet 6. Alternatively, the UE can not allocate resources for data packet 6 after allocating resources for data packet 5. Alternatively, the UE can allocate resources for logical channel 1 according to the first allocation manner or the second allocation manner described above.
[0180] After the first stage of resource allocation process ends, for example, the UE still has 2000-600-800-500=100 bits of remaining resources, the UE can perform the second stage of resource allocation. In the second stage of resource allocation process, the UE can continue to allocate resources for the data of each logical channel which has not been allocated resources in the order of the priority of each logical channel from high to low, and without considering the first parameter, until the resources are exhausted or the data are all allocated resources. For example, the processing order of the UE is logical channel 3-logical channel 2-logical channel 1.
[0181] Optionally, the second condition can include that the value of the first parameter corresponding to the first logical channel is less than the data amount of the low latency data to be transmitted on the first logical channel, or include that the value of the first parameter corresponding to the first logical channel is less than the sum of the data amount of the low latency data to be transmitted on the first logical channel and the data amount of the non-low latency data located before the low latency data. As can be seen, in order for the UE to determine whether the first logical channel satisfies the second condition, the UE needs to obtain the data amount of the low latency data to be transmitted on the first logical channel. Optionally, the UE can obtain the data amount of the low latency data by the MAC layer of the UE. The MAC layer can obtain the data amount of the low latency data in various embodiments, for example, as described below.
[0182] As a first optional embodiment of the MAC layer obtaining the data amount of the low latency data, when the PDCP layer of the UE starts a packet loss timer for one or more data packets on the first logical channel, the PDCP layer can send third indication information to the MAC layer, and the third indication information can indicate the data amount of the one or more data packets. For example, the PDCP layer can send the third indication information to the MAC layer every time a packet loss timer corresponding to a data packet is started, and the third indication information can indicate the data amount of the data packet. Then, the MAC layer can maintain the data amount of each data packet. Optionally, the MAC layer can know that the packet loss timer corresponding to the corresponding data packet has been started after receiving the third indication information, or the third indication information can also indicate that the packet loss timer corresponding to the one or more data packets has been started. Then, the MAC layer can determine the remaining time of the packet loss timer corresponding to each data packet according to the start time of the packet loss timer corresponding to each data packet and the first time domain resource, so as to determine whether there is low latency data in the data to be transmitted on the first logical channel. If there is low latency data, the MAC layer can determine the data amount of the low latency data in combination with the data amount of each data packet indicated by the third indication information. The MAC layer can determine the remaining time of the packet loss timer corresponding to each data packet, and the like, for example, by referring to the embodiment shown in FIG. 3.
[0183] Alternatively, as the second optional implementation of the MAC layer obtaining the data amount of the low latency data, the MAC layer can determine a first transmission resource, the first transmission resource being a resource to be allocated by the UE to data on one or more logical channels. Before allocating the first transmission resource, the UE determines which data on which logical channels to allocate the first transmission resource, and thus the UE can perform S401. Alternatively, by performing S401, the UE can implement the allocation of the first transmission resource. For example, the first transmission resource includes a first time domain resource, and the UE determining the first transmission resource includes determining the first time domain resource, and thus the UE (e.g., the MAC layer) can determine the first transmission resource in the manner described with reference to the manner of determining the first time domain resource by the UE in the embodiment shown in FIG. 3. After the MAC layer determines the first transmission resource, the MAC layer can determine the time domain time corresponding to the first transmission resource, i.e., the time corresponding to the first time domain resource. The MAC layer can send second request information to the PDCP layer, the second request information being used to request obtaining the data amount of the low latency data. Optionally, the second request information can further indicate information related to the first time domain resource, such as the time domain time of the first time domain resource. Based on the second request information, the PDCP layer can send third indication information to the MAC layer. For example, the PDCP layer can determine, according to the first time domain resource and the start time of the packet loss timer corresponding to each data packet to be transmitted by the first logical channel in the PDCP layer, whether the remaining time of the packet loss timer corresponding to the data packet is less than or equal to a first threshold when the first time domain resource arrives, or when the time or moment corresponding to the first time domain resource arrives, which can also be understood as determining whether there is low latency data. For example, the start time of the packet loss timer corresponding to a data packet is t0, the first time domain resource is t1, and the total time of the packet loss timer corresponding to the data packet is T, then the remaining time of the packet loss timer corresponding to the data packet is T-(t1-t0). For example, the PDCP layer determines that the remaining time of the packet loss timer corresponding to a first data packet in the data packets to be transmitted by the first logical channel is less than or equal to the first threshold, and then the PDCP layer can send third indication information to indicate the data amount of the first data packet, for example, the third indication information can include the number of the first data packet and the data amount of the first data packet. The data included in the first data packet (or the first data packet itself) is the low latency data.
[0184] Alternatively, as a third optional implementation of the MAC layer obtaining the data amount of the low-latency data, the PDCP layer of the UE can send second indication information to the MAC layer of the UE, the second indication information can indicate that the packet loss timer corresponding to one or more data packets to be transmitted on the first logical channel has been started, for example, the second indication information includes the number of the one or more data packets, for example, the one or more data packets include the first data packet. For example, the PDCP layer can send the second indication information to the MAC layer when the packet loss timer corresponding to the one or more data packets is started. The MAC layer can determine whether there is a data packet corresponding to a packet loss timer with a remaining time less than or equal to the first threshold according to the second indication information and the first time domain resource, or determine whether there is low-latency data on the first logical channel. If there is low-latency data on the first logical channel, the MAC layer can send second request information to the PDCP layer to request the data amount of the low-latency data. For example, the second request information includes the number of the data packet in which the low-latency data is located. The PDCP layer can send third indication information to the MAC layer based on the second request information, the third indication information can indicate the data amount of the low-latency data. For example, the third indication information can indicate the total data amount of the low-latency data, or indicate the correspondence between the number of the data packet in which the low-latency data is located and the data amount of each data packet.
[0185] Alternatively or additionally, the MAC layer can obtain the data amount of the low-latency data in other manners.
[0186] Optionally, the UE can still allocate resources for low-latency data on the logical channel when the logical channel satisfies the second condition, which can be regarded as a function of the UE, which can be started (or activated) or stopped (or deactivated) by the UE itself, or can be instructed to start or stop by the network device. Taking the network device as an example, the network device can send fifth information, the fifth information can indicate to start or stop the function. If the fifth information indicates to start the function, the UE can execute the scheme of the embodiments of the present application. Alternatively, if the fifth information indicates to stop or not to start the function, the UE does not execute the scheme of the embodiments of the present application. By controlling whether the UE enables the function through the network device, the function can be more flexibly controlled, so that the use of the function by the UE is more reasonable. For example, the network device can start the function for the UE when there is latency-sensitive traffic, to ensure the reliability of traffic transmission, improve transmission efficiency, and reduce packet loss rate. When there is no latency-sensitive traffic, the network device can stop the function for the UE, to avoid the UE performing too many operations, reduce the complexity of the UE implementation, and save power for the UE.
[0187] S402, the UE transmits the low latency data to be transmitted on the first logical channel on the allocated transmission resource. Correspondingly, the network device receives the low latency data. Optionally, S402 can be performed by the UE, or by the MAC layer or the physical layer of the UE.
[0188] After the UE allocates the resource for the low latency data of the first logical channel according to the method described in S401, the low latency data can be transmitted on the resource. Optionally, if the UE also allocates a resource for the non-low latency data on the first logical channel, the non-low latency data can also be transmitted on the allocated resource.
[0189] In the embodiments of the present application, even if the first logical channel meets the second condition, the UE can allocate a resource for the low latency data on the first logical channel, for example, can allocate a resource for all the data in the low latency data, so that the low latency data can be transmitted as soon as possible, improving the transmission efficiency and reducing the packet loss rate.
[0190] The embodiments shown in FIG. 4 can be applied in combination with the embodiments shown in FIG. 3. For example, the UE can first determine the priority of the first logical channel (or determine the priority of each logical channel to which the resource is to be allocated) according to the embodiments shown in FIG. 3, and then allocate a resource for the low latency data on each logical channel according to the embodiments shown in FIG. 4. Alternatively, the embodiments shown in FIG. 4 can not be combined with the embodiments shown in FIG. 3, but can be applied independently.
[0191] The embodiments of the present application provide a third communication method, please refer to FIG. 6 for the flow chart of the method.
[0192] S601, the UE determines that the priority of the first logical channel is the first priority. Alternatively, the UE adjusts the priority of the first logical channel to the first priority. Optionally, S601 can be performed by the UE, or by the MAC layer of the UE.
[0193] The first logical channel is, for example, any logical channel to which the resource is to be allocated. It can be understood that for each logical channel to which the UE is to allocate the resource, the UE can determine the priority in the same or similar manner, and the present application takes the first logical channel as an example, and the UE can also determine the priority of other logical channels to which the resource is to be allocated according to the manner provided in the embodiments of the present application.
[0194] Optionally, the embodiments of the present application can be combined with the embodiments shown in FIG. 3, and one embodiment of S601 includes that if the first logical channel meets the first condition, the UE determines that the priority of the first logical channel is the first priority, for which please refer to the introduction of S301 of the embodiments shown in FIG. 3.
[0195] Alternatively, the embodiments of the present application can also not be combined with the embodiment shown in FIG. 3. For example, in S601, the UE determines the priority of the first logical channel in other manners. Optionally, the priority of the first logical channel determined by the UE in other manners can be higher than the original priority of the first logical channel. Optionally, if the UE determines that there is low-latency data in the data to be transmitted by the first logical channel, the UE can perform S601.
[0196] For example, if there is low-latency data in the data to be transmitted by the first logical channel, the UE can determine the priority of the first logical channel as the first priority. In this embodiment, the first logical channel can have been previously configured with a priority, or can not have been configured with a priority. Regardless of whether the first logical channel has been configured with a priority, the UE can ignore the previous priority of the first logical channel, and only determine the priority of the first logical channel according to the presence of low-latency data in the data to be transmitted by the first logical channel. For example, if there is no low-latency data in the data to be transmitted by the first logical channel, the UE can determine the priority of the first logical channel as the third priority, wherein the first priority can be higher than the third priority. Optionally, the third priority is, for example, the original priority of the first logical channel. For example, the network device sends first information, and the UE receives the first information. The first information can indicate that the priority of the first logical channel is the third priority.
[0197] For another example, if there is low-latency data in the data to be transmitted by the first logical channel, the UE can adjust the priority of the first logical channel to the first priority. In this embodiment, the first logical channel has been configured with a priority, for example, the third priority. Optionally, the third priority is, for example, the original priority of the first logical channel. If the first logical channel satisfies the first condition, the UE can adjust the priority of the first logical channel from the third priority to the first priority. Alternatively, if there is no low-latency data in the data to be transmitted by the first logical channel, the UE can not adjust the priority of the first logical channel, for example, the first logical channel remains the third priority. The first priority can be higher than the third priority, which means that the UE can increase the priority of the first logical channel in the case that there is low-latency data in the data to be transmitted by the first logical channel. The third priority is, for example, configured by the network device, and reference can be made to the description in the previous paragraph.
[0198] S602, if there is no low-latency data on the first logical channel, the UE adjusts the priority of the first logical channel to the second priority. The second priority is lower than the first priority. Optionally, S602 can be performed by the UE, or by the MAC layer of the UE.
[0199] Optionally, the second priority can be the original priority of the first logical channel before the UE adjusts the priority of the first logical channel to the first priority. That is, S601 can be adjusting the priority of the first logical channel, and S602 is adjusting the priority of the first logical channel again. This way is conducive to restoring the original priority of the first logical channel. Alternatively, the second priority can also not be the original priority, for example, the second priority is a default priority, which is not limited. Wherein, if the UE performs the scheme provided by the embodiment shown in FIG. 6 on multiple logical channels respectively, the second priorities corresponding to different logical channels are the same or different.
[0200] If there is no low-latency data to be transmitted on the first logical channel, the UE can lower the priority of the first logical channel. When there is no low-latency data to be transmitted on the first logical channel, there can be non-low-latency data to be transmitted on the first logical channel, or there can be no data to be transmitted on the first logical channel. If there is non-low-latency data to be transmitted on the first logical channel, lowering the priority of the first logical channel makes the non-low-latency data not be allocated resources in priority with the first priority, so as to make the resource allocation of the non-low-latency data to be transmitted on each logical channel more fair.
[0201] Wherein, the embodiment of the present application can not be combined with the embodiment shown in FIG. 4. For example, the UE can perform resource allocation in a traditional manner. For example, the technical solution of the embodiment of the present application can occur in the process of performing resource allocation in a traditional manner, or the technical solution of the embodiment of the present application can occur in the first stage of the traditional resource allocation process, or in the second stage of the resource allocation process. For example, the UE determines whether to perform the embodiment of the present application or performs the embodiment of the present application in the first stage of the resource allocation process or after the first stage of the resource allocation process. For another example, the UE determines whether to perform the embodiment of the present application or performs the embodiment of the present application in the second stage of the resource allocation process, or at the beginning or before the beginning of the second stage of the resource allocation process. Taking the technical solution of the embodiment of the present application occurring in the first stage of the traditional resource allocation process as an example. The UE can allocate resources for the data on the first logical channel according to the first parameter corresponding to the first logical channel and the priority of the first logical channel (for example, the first priority). For details of the first parameter, please refer to the embodiment shown in FIG. 4. If all the data in the low-latency data to be transmitted on the first logical channel has been allocated resources, the UE can adjust the priority of the first logical channel to the second priority.
[0202] For example, the technical solution of the embodiment of the present application occurs after the end of the traditional first-stage resource allocation. The UE can allocate resources for data on the first logical channel according to the first parameter corresponding to the first logical channel and the priority (for example, the first priority) of the first logical channel. The first parameter and the like are described with reference to the embodiment shown in FIG. 4. After allocating resources for one or more first logical channels according to the first parameter, or after the end of the first-stage resource allocation based on the first parameter, if all data in the low-latency data to be transmitted on the first logical channel has been allocated resources, the UE can adjust the priority of the first logical channel to the second priority.
[0203] For example, the technical solution of the embodiment of the present application occurs at or before the start of the traditional second-stage resource allocation. After allocating resources for one or more first logical channels according to the first parameter, or after the end of the first-stage resource allocation based on the first parameter, if there is remaining resource, the UE continues to perform the second-stage resource allocation. At or before the start of the second-stage resource allocation, if all data in the low-latency data to be transmitted on the first logical channel has been allocated resources, the UE can adjust the priority of the first logical channel to the second priority.
[0204] For example, the technical solution of the embodiment of the present application occurs in the process of the traditional second-stage resource allocation. The UE can allocate resources for data on the first logical channel according to the first resource allocation mode, which is irrelevant to the first parameter corresponding to the first logical channel. For example, in the first resource allocation mode, the UE allocates resources for data on each logical channel according to the priority of each logical channel. If all data in the low-latency data to be transmitted on the first logical channel has been allocated resources, the UE can adjust the priority of the first logical channel to the second priority.
[0205] Alternatively, the embodiment of the present application can also be combined with the embodiment shown in FIG. 4. For example, the UE can first allocate resources for the first logical channel according to the embodiment shown in FIG. 4. In the process of resource allocation or at the end of resource allocation, if there is no low-latency data to be transmitted on the first logical channel, the UE can adjust the priority of the first logical channel to the second priority according to the solution of the embodiment of the present application.
[0206] In combination with the several resource allocation modes of the UE in the embodiment shown in FIG. 4, the solution of the embodiment of the present application combined with the embodiment shown in FIG. 4 is described.
[0207] 1. The embodiment of the present application is combined with the first resource allocation mode of the UE.
[0208] The UE can allocate transmission resources for the M data packets on the first logical channel and ignore the value of the first parameter corresponding to the first logical channel. Alternatively, the UE can allocate transmission resources for the M data packets on the first logical channel while ignoring the value of the first parameter corresponding to the first logical channel. M is a positive integer. For example, the M data packets can include all data in the low-latency data; or the M data packets can include all data in the low-latency data and all data in non-low-latency data before the low-latency data on the first logical channel. For more information about the part of the content, refer to the embodiment shown in FIG. 4. If the M data packets have been allocated transmission resources, the UE can adjust the priority of the first logical channel to the second priority.
[0209] Optionally, the embodiment of the present application can be combined with the first allocation manner of the UE. The combination can be in the first stage of resource allocation, after the first stage of resource allocation, at the beginning or before the beginning of the second stage of resource allocation, or in the second stage of resource allocation.
[0210] For example, in the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the first allocation manner. In the process of resource allocation or at the end of resource allocation, if there is no low-latency data to be transmitted on the first logical channel, the UE can adjust the priority of the first logical channel according to the scheme of the embodiment of the present application.
[0211] For another example, in the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the first allocation manner. In the process of the first stage of resource allocation, if there is no low-latency data to be transmitted on the first logical channel, the UE can adjust the priority of the first logical channel according to the scheme of the embodiment of the present application.
[0212] For another example, in the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the first allocation manner. At the end of the first stage of resource allocation or after the end of the first stage of resource allocation, if there is no low-latency data to be transmitted on the first logical channel, the UE can adjust the priority of the first logical channel according to the scheme of the embodiment of the present application.
[0213] For example, in the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the first allocation manner. When or before the second stage of resource allocation starts, if there is no low latency data to be transmitted on the first logical channel, the UE can lower the priority of the first logical channel according to the scheme of the embodiments of the present application.
[0214] For example, in the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the first allocation manner. In the second stage of resource allocation, if there is no low latency data to be transmitted on the first logical channel, the UE can lower the priority of the first logical channel according to the scheme of the embodiments of the present application.
[0215] With reference to FIG. 5A, the embodiments of FIG. 5A can be combined with the embodiments of FIG. 4. Since the sum of the data amount of data packet 1 and the data amount of data packet 2 is 600 bits, which is greater than the value of the first parameter, the logical channel satisfies the second condition, and the UE can ignore the value of the first parameter and allocate resources for data packet 1 and data packet 2. For example, the UE allocates 300 bits of resources for data packet 1 and 300 bits of resources for data packet 2. After allocating resources for data packet 1 and data packet 2, the UE can not update the value of the first parameter, and the value of the first parameter remains 500. Alternatively, after allocating resources for data packet 1 and data packet 2, the UE can update the value of the first parameter, for example, to 0 or to 500-300-300=-100. In addition, after allocating resources for data packet 1 and data packet 2, there is no low latency data to be transmitted on the logical channel, and the UE can adjust the priority of the logical channel to the second priority. Whether to allocate resources for data packet 3 can be determined by the second priority or by the second priority and the current value of the first parameter. For example, since the priority of the logical channel has been adjusted to the second priority, which is lower than the priorities of other logical channels to be allocated resources, according to the second priority, the UE will not continue to allocate resources for data packet 3, which includes non-low latency data, of the logical channel in the first stage. As to whether the UE continues to allocate resources for data packet 3, which includes non-low latency data, of the logical channel in the second stage, the UE can compare the second priority of the logical channel with the priorities of other logical channels, and determine whether to allocate resources for data packet 3 according to the order of the priorities from high to low.
[0216] 2. The embodiments of the present application are combined with the second allocation manner of the UE.
[0217] The UE can allocate transmission resources for M data packets on the first logical channel, and update the value of the first parameter corresponding to the first logical channel according to the transmission resources allocated for the M data packets. M is a positive integer. This way can be regarded as that the UE "borrows" the value of the first parameter. For example, the M data packets can include all data in the low latency data; or, the M data packets can include all data in the low latency data, and include all data in non-low latency data before the low latency data on the first logical channel. Optionally, after allocating resources for the M data packets, the UE can update the value of the first parameter corresponding to the first logical channel, for example, the UE can update the value of the first parameter according to the resource allocation of the M data packets. For more information about this part, please refer to the embodiment shown in FIG. 4. If the M data packets have been allocated transmission resources, the UE can adjust the priority of the first logical channel to the second priority.
[0218] Optionally, the embodiments of the present application can be combined with the second allocation manner of the UE, which can be combined with the second allocation manner of the UE in the resource allocation process of the first stage, or combined with the second allocation manner of the UE after the end of the resource allocation of the first stage, or combined with the second allocation manner of the UE at or before the start of the resource allocation of the second stage, or combined with the second allocation manner of the UE in the resource allocation process of the second stage.
[0219] For example, in the resource allocation process of the first stage, the UE can allocate resources for the first logical channel according to the second allocation manner. In the resource allocation process or at the end of the resource allocation, if there is no low latency data to be transmitted on the first logical channel, the UE can adjust the priority of the first logical channel to be lower according to the scheme of the embodiments of the present application.
[0220] For another example, in the resource allocation process of the first stage, the UE can allocate resources for the first logical channel according to the second allocation manner. In the resource allocation process of the first stage, if there is no low latency data to be transmitted on the first logical channel, the UE can adjust the priority of the first logical channel to be lower according to the scheme of the embodiments of the present application.
[0221] For another example, in the resource allocation process of the first stage, the UE can allocate resources for the first logical channel according to the second allocation manner. At or after the end of the resource allocation process of the first stage, if there is no low latency data to be transmitted on the first logical channel, the UE can adjust the priority of the first logical channel to be lower according to the scheme of the embodiments of the present application.
[0222] For example, in the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the second allocation manner. When or before the second stage of resource allocation starts, if there is no low latency data to be transmitted on the first logical channel, the UE can adjust the priority of the first logical channel according to the scheme of the embodiments of the present application.
[0223] For example, in the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the second allocation manner. When or before the second stage of resource allocation starts, if there is no low latency data to be transmitted on the first logical channel, the UE can adjust the priority of the first logical channel according to the scheme of the embodiments of the present application.
[0224] For example, continuing to refer to FIG. 5A. Since the sum of the data amount of data packet 1 and the data amount of data packet 2 is 600 bits, which is greater than the value of the first parameter, the logical channel satisfies the second condition, and the UE can allocate resources for data packet 1 and data packet 2. For example, the UE allocates 300 bits of resources for data packet 1, and allocates 300 bits of resources for data packet 2. After allocating resources for data packet 1 and data packet 2, the UE can update the value of the first parameter to 500-300-300=-100. After allocating resources for data packet 1 and data packet 2, there is no low latency data to be transmitted on the logical channel, and the UE can also adjust the priority of the logical channel to the second priority. Whether to allocate resources for data packet 3 can be determined by the second priority, or determined by the second priority and the current value of the first parameter. For example, since the priority of the logical channel has been adjusted to the second priority, and the second priority is lower than the priorities of other logical channels to be allocated resources, according to the second priority, the UE does not continue to allocate resources for data packet 3, which includes non-low latency data, of the logical channel in the first stage. As for whether the UE continues to allocate resources for data packet 3, which includes non-low latency data, of the logical channel in the second stage, the UE can compare the second priority of the logical channel with the priorities of other logical channels, and determine whether to allocate resources for data packet 3 according to the order from high to low of the priorities. For example, the UE has updated the value of the first parameter to -100, and the value of the first parameter is less than or equal to 0, and the UE does not allocate resources for data packet 3.
[0225] 3、The embodiments of the present application are combined with the third allocation manner of the UE.
[0226] The UE can allocate transmission resources for N data packets on the first logical channel, and without updating the value of the first parameter corresponding to the first logical channel according to the transmission resources allocated for the N data packets; and the UE allocates transmission resources for K data packets on the first logical channel. Optionally, after allocating the transmission resources for the K data packets, the UE can update the value of the first parameter corresponding to the first logical channel, for example, the UE can update the value of the first parameter according to the resource allocation of the K data packets. N and K are both positive integers. The N data packets can include non-low-latency data to be transmitted before low-latency data to be transmitted on the first logical channel, and the K data packets can include all data of the low-latency data to be transmitted on the first logical channel. For more information about this part, please refer to the embodiment shown in FIG. 4. If the N data packets have been allocated transmission resources, the UE can adjust the priority of the first logical channel to the second priority.
[0227] Optionally, the embodiments of the present application can be combined with the third allocation mode of the UE, which can be combined with the third allocation mode of the UE in the resource allocation process of the first stage, or combined with the third allocation mode of the UE after the end of the resource allocation of the first stage, or combined with the third allocation mode of the UE at or before the start of the resource allocation of the second stage, or combined with the third allocation mode of the UE in the resource allocation process of the second stage.
[0228] For example, in the resource allocation process of the first stage, the UE can allocate resources for the first logical channel according to the third allocation mode. In the resource allocation process or at the end of the resource allocation, if there is no low-latency data to be transmitted on the first logical channel, the UE can adjust the priority of the first logical channel to be lower according to the scheme of the embodiments of the present application.
[0229] For another example, in the resource allocation process of the first stage, the UE can allocate resources for the first logical channel according to the third allocation mode. In the resource allocation process of the first stage, if there is no low-latency data to be transmitted on the first logical channel, the UE can adjust the priority of the first logical channel to be lower according to the scheme of the embodiments of the present application.
[0230] For another example, in the resource allocation process of the first stage, the UE can allocate resources for the first logical channel according to the third allocation mode. At or after the end of the resource allocation process of the first stage, if there is no low-latency data to be transmitted on the first logical channel, the UE can adjust the priority of the first logical channel to be lower according to the scheme of the embodiments of the present application.
[0231] For example, in the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the third allocation manner. When or before the second stage of resource allocation starts, if there is no low latency data to be transmitted on the first logical channel, the UE can lower the priority of the first logical channel according to the scheme of the embodiments of the present application.
[0232] For example, in the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the third allocation manner. In the second stage of resource allocation, if there is no low latency data to be transmitted on the first logical channel, the UE can lower the priority of the first logical channel according to the scheme of the embodiments of the present application.
[0233] With reference to FIG. 5B, the embodiments shown in FIG. 4 can be referred to for the introduction of FIG. 5B. Since the sum of the data amount of data packet 4 and the data amount of data packet 5 is 500 bits, which is greater than the value of the first parameter, the logical channel satisfies the second condition. The UE can allocate resources for data packet 4, for example, 200 bits of resources, and the UE does not update the value of the first parameter, so the value of the first parameter is still 400. The UE allocates resources for data packet 5, and since the value of the first parameter is 400 and the data packet 5 is 300 bits, the value of the first parameter can satisfy the resource allocation of data packet 5, for example, the UE allocates 300 bits of resources for data packet 5. After allocating resources for data packet 5, the UE can update the value of the first parameter, for example, updating the value of the first parameter to 400-300=100. After allocating resources for data packet 5, there is no low latency data to be transmitted on the logical channel, and the UE can also adjust the priority of the logical channel to the second priority. As to whether to allocate resources for data packet 6, it can be determined by the second priority, or determined by the second priority and the current value of the first parameter. For example, since the priority of the logical channel has been adjusted to the second priority, and the second priority is lower than the priorities of other logical channels to be allocated resources, according to the second priority, the UE will not continue to allocate resources for data packet 6 of the logical channel including non-low latency data in the first stage. As to whether the UE continues to allocate resources for data packet 6 of the logical channel including non-low latency data in the second stage, the UE can compare the second priority of the logical channel with the priorities of other logical channels, and determine whether to allocate resources for data packet 6 according to the order from high to low of the priorities.
[0234] 4. The embodiments of the present application are combined with the fourth allocation manner of the UE.
[0235] The UE can determine low latency data on the first logical channel according to a third threshold. The UE can then allocate resources for the first logical channel according to the first allocation manner or the second allocation manner described above. If there is no low latency data to be transmitted on the first logical channel, the UE can adjust the priority of the first logical channel to a second priority.
[0236] Please continue to refer to FIG. 5C. The description of FIG. 5C can refer to the embodiment shown in FIG. 4.
[0237] Suppose the UE obtains 2000 bits of resources. For example, the logical channels are arranged in a descending order of priority, the priority of logical channel 3 is higher than the priority of logical channel 2, and the priority of logical channel 2 is higher than the priority of logical channel 1. In the first stage of resource allocation, the UE allocates resources for logical channel 3 first. Since the sum of the data amounts of data packet 1 and data packet 2 on logical channel 3 is 600, which is greater than the value of the first parameter corresponding to logical channel 3, i.e. 500, logical channel 3 satisfies the second condition, and the UE can allocate resources for logical channel 3 according to the scheme of the embodiments of the present application. For example, the UE allocates resources for logical channel 3 according to the first allocation manner or the second allocation manner described above. The UE allocates 300 bits of resources for data packet 1 and 300 bits of resources for data packet 2. Alternatively, the UE can update the value of the first parameter corresponding to logical channel 3, for example, to 0 or -100, or the UE can not update the value of the first parameter, and the value of the first parameter remains 500. In addition, after the UE allocates resources for data packet 1 and data packet 2, there is no low latency data in the data to be transmitted on logical channel 3, and the UE can adjust the priority of logical channel 3 to a second priority. Whether to allocate resources for data packet 3 can be determined by the second priority, or determined by the second priority and the current value of the first parameter.
[0238] According to the priority of the logical channel, the UE then allocates resources for logical channel 2. Since the data packet 7 on logical channel 2 includes 300 bits, which is less than the value of the first parameter corresponding to logical channel 2, logical channel 2 does not satisfy the second condition, and the UE can allocate resources for the data on logical channel 2 in a conventional manner. For example, the UE allocates 300 bits of resources for data packet 7, and updates the value of the first parameter corresponding to logical channel 2 to 800-300=500. After allocating resources for data packet 7, there is no low-latency data among the data to be transmitted by logical channel 2, and the UE can adjust the priority of logical channel 2 to the second priority. As to whether to allocate resources for data packet 8, it can be determined according to the second priority, or determined according to the second priority and the current value of the first parameter. For example, since the priority of logical channel 2 has been adjusted to the second priority, and assuming that the second priority of logical channel 2 is lower than the second priority of logical channel 3 and the first priority of logical channel 1, according to the second priority, the UE will not continue to allocate resources for data packet 8 including non-low-latency data of logical channel 2 in the first stage. As to whether the UE continues to allocate resources for data packet 8 including non-low-latency data of logical channel 2 in the second stage, the UE can compare the second priority of logical channel 2 with the priorities of other logical channels, and determine whether to allocate resources for data packet 8 according to the order of the priorities from high to low.
[0239] According to the priority of the logical channel, the UE then allocates resources for logical channel 1. Since the sum of the data amount of data packet 4 and data packet 5 on logical channel 1 is 500, which is greater than the value of the first parameter corresponding to logical channel 1, logical channel 1 satisfies the second condition, and the UE can allocate resources for logical channel 1 according to the scheme of the embodiments of the present application. For example, the UE allocates resources for logical channel 1 according to the third allocation manner described above, for example, the UE determines that there is data packet 4 including non-low-latency data before data packet 5 including low-latency data, and then the UE allocates 200 bits of resources for data packet 4, and does not update the value of the first parameter corresponding to logical channel 1, so the value of the first parameter remains 400. The UE then allocates resources for data packet 5, since the value of the first parameter corresponding to logical channel 1 is 400 and data packet 5 is 300 bits, the value of the first parameter can satisfy the resource allocation of data packet 5, for example, the UE allocates 300 bits of resources for data packet 5. After allocating resources for data packet 5, the UE can update the value of the first parameter corresponding to logical channel 1, for example, update the value of the first parameter to 400-300=100. In addition, after allocating resources for data packet 5, there is no low-latency data among the data to be transmitted by logical channel 1, and the UE can adjust the priority of logical channel 1 to the second priority. As to whether to allocate resources for data packet 6, it can be determined according to the second priority, or determined according to the second priority and the current value of the first parameter.
[0240] After the first stage of resource allocation process ends, for example, the UE still has 2000-600-300-500=600 bits of remaining resources, the UE can perform the second stage of resource allocation. In the second stage of resource allocation process, the UE can continue to allocate resources for the data of each logical channel which has not been allocated resources according to the priority of each logical channel, and without considering the first parameter, until the resources are exhausted or the data are all allocated resources. Wherein, the UE has adjusted the priority of the logical channel 1 to the second priority of the logical channel 1, adjusted the priority of the logical channel 2 to the second priority of the logical channel 2, and adjusted the priority of the logical channel 3 to the second priority of the logical channel 3, for example, the three second priorities are different, for example, the order of the three second priorities from high to low is: the second priority of the logical channel 3 is higher than the second priority of the logical channel 2, the second priority of the logical channel 2 is higher than the second priority of the logical channel 1, then the processing order of the UE in the second stage of resource allocation is, for example: first allocate resources for the logical channel 3, after allocating resources for the logical channel 3, if there are remaining resources, then allocate resources for the logical channel 2, after allocating resources for the logical channel 2, if there are remaining resources, then allocate resources for the logical channel 1.
[0241] Optionally, the UE adjusts the priority of the logical channel, which can be regarded as a function of the UE, and the function can be started (or activated) or stopped (or deactivated) by the UE itself, or can be instructed to start or stop by the network device. Taking the network device as an example, the network device can send the sixth information, and the sixth information can indicate to start or stop the function. If the sixth information indicates to start the function, the UE can perform the scheme of the embodiments of the present application. Or, if the sixth information indicates to stop or not to start the function, the UE does not perform the scheme of the embodiments of the present application. By controlling whether the UE enables the function through the network device, the function can be more flexibly controlled, so that the use of the function by the UE is more reasonable. For example, the network device can start the function for the UE when there is delay-sensitive service, so that the UE tries to use limited resources only for low-latency data, avoids non-low-latency data using the first priority to occupy resources, ensures the reliability of service transmission, improves transmission efficiency, and reduces the packet loss rate. When there is no delay-sensitive service, the network device can stop the function for the UE, avoid the UE performing too many operations, reduce the complexity of the UE implementation, and save power for the UE.
[0242] In the embodiments of the present application, if there is no low-latency data to be transmitted on the first logical channel, the UE can lower the priority of the first logical channel, for example, adjust it to the original priority or a default priority. For example, if the second priority is lower, and there is non-low-latency data to be transmitted on the first logical channel, the priority of the first logical channel is lowered, so that the non-low-latency data to be transmitted on the first logical channel will not be allocated resources in priority with the first priority, thereby making the resource allocation of the non-low-latency data to be transmitted on each logical channel more fair. In addition, the embodiments of the present application can also make the priority of the logical channel without low-latency data as low as possible, lower than the priority of the logical channel with low-latency data, thereby making the low-latency data be allocated resources in priority, reducing the probability of low-latency data being discarded, and improving the data transmission success rate.
[0243] The fourth communication method is provided in the embodiments of the present application, and the flowchart of the method is shown in FIG. 7.
[0244] In S701, the UE determines the priority of the first logical channel as the first priority. Alternatively, the UE adjusts the priority of the first logical channel as the first priority. Optionally, S701 can be performed by the UE or the MAC layer of the UE.
[0245] For more information about S701, please refer to S601 in the embodiments shown in FIG. 6.
[0246] In S702, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE adjusts the priority of the first logical channel as the second priority. The second priority is lower than the first priority. Optionally, S702 can be performed by the UE or the MAC layer of the UE. For the introduction of the first parameter, please refer to the embodiments shown in FIG. 4.
[0247] Optionally, the second priority can be the original priority of the first logical channel before the UE adjusts the priority of the first logical channel as the first priority. That is, S701 is to adjust the priority of the first logical channel, and S702 is to adjust the priority of the first logical channel back. This way is conducive to restoring the original priority of the first logical channel. Alternatively, the second priority can not be the original priority, for example, the second priority is a default priority, which is not limited. If the UE performs the scheme provided in the embodiments shown in FIG. 7 for multiple logical channels respectively, the second priorities corresponding to different logical channels are the same or different.
[0248] If the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can lower the priority of the first logical channel. When the value of the first parameter corresponding to the first logical channel is less than or equal to 0, there may still be non-low-latency data to be transmitted on the first logical channel, or there may be no data to be transmitted on the first logical channel. If there is still non-low-latency data to be transmitted on the first logical channel, lowering the priority of the first logical channel prevents this non-low-latency data from being allocated resources with a higher first priority, thus making the resource allocation of non-low-latency data to be transmitted on each logical channel more equitable. Moreover, adjusting the priority of the first logical channel based on the value of the first parameter simplifies the UE's judgment logic.
[0249] In this application, the embodiments may not be combined with the embodiments shown in FIG4. For example, the UE may perform resource allocation in a conventional manner. For instance, the technical solution of the embodiments of this application may occur during the process of performing resource allocation in a conventional manner, or the technical solution of the embodiments of this application may occur during the conventional first-stage resource allocation process, or it may occur during the second-stage resource allocation process. For example, during the first-stage resource allocation process, or after the first-stage resource allocation is completed, the UE determines whether to execute the embodiments of this application or execute the embodiments of this application; or, for example, during the second-stage resource allocation process, or at the beginning or before the start of the second-stage resource allocation, the UE determines whether to execute the embodiments of this application or execute the embodiments of this application. Taking the technical solution of the embodiments of this application occurring during the conventional first-stage resource allocation process as an example, the UE may allocate resources for data on the first logical channel according to the first parameter corresponding to the first logical channel and the priority of the first logical channel (e.g., the first priority). If the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE may adjust the priority of the first logical channel to the second priority.
[0250] Taking the technical solution of this application embodiment after the traditional first-stage resource allocation has ended as an example, the UE can allocate resources for data on the first logical channel according to the first parameter corresponding to the first logical channel and the priority of the first logical channel (e.g., the first priority). For a description of the first parameter, please refer to the embodiment shown in Figure 4. After allocating resources for one or more first logical channels according to the first parameter, or in other words, after the first-stage resource allocation based on the first parameter has ended, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can adjust the priority of the first logical channel to the second priority.
[0251] For example, the technical solution of the embodiment of the present application occurs at the beginning or before the beginning of the traditional second-stage resource allocation. After the UE allocates resources for one or more first logical channels according to the first parameter, or after the first-stage resource allocation based on the first parameter ends, if there are remaining resources, the UE continues to perform the second-stage resource allocation. At the beginning or before the beginning of the second-stage resource allocation, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can adjust the priority of the first logical channel to the second priority.
[0252] For example, the technical solution of the embodiment of the present application occurs in the process of the traditional second-stage resource allocation. Before or at the beginning of the process of the second-stage resource allocation, the UE can adjust the priority of the first logical channel to the second priority, and then allocates resources for data on the first logical channel according to the first resource allocation manner. The first resource allocation manner is independent of the first parameter corresponding to the first logical channel. For example, in the first resource allocation manner, the UE allocates resources for data on each logical channel according to the priority of each logical channel.
[0253] Alternatively, the embodiment of the present application can also be combined with the embodiment shown in FIG. 4. For example, the UE can first allocate resources for the first logical channel according to the embodiment shown in FIG. 4. During the resource allocation process or at the end of the resource allocation, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can adjust the priority of the first logical channel to the second priority according to the solution of the embodiment of the present application.
[0254] In combination with the several resource allocation manners of the UE in the embodiment shown in FIG. 4, the solution of the embodiment of the present application combined with the embodiment shown in FIG. 4 is introduced.
[0255] 1. The embodiment of the present application is combined with the first allocation manner of the UE.
[0256] The UE can allocate transmission resources for M data packets on the first logical channel, and ignore the value of the first parameter corresponding to the first logical channel. Alternatively, the UE can allocate transmission resources for M data packets on the first logical channel while ignoring the value of the first parameter corresponding to the first logical channel. M is a positive integer. For example, the M data packets can include all data in the low-latency data; or the M data packets can include all data in the low-latency data and all data in non-low-latency data on the first logical channel located before the low-latency data. For more information about this part, refer to the embodiment shown in FIG. 4. If the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can adjust the priority of the first logical channel to the second priority.
[0257] Optionally, the embodiments of the present application can be combined with the first allocation mode of the UE, which can be combined with the first allocation mode in the first stage of resource allocation, or combined with the first allocation mode after the first stage of resource allocation, or combined with the first allocation mode when the second stage of resource allocation starts, or combined with the first allocation mode before the second stage of resource allocation starts, or combined with the first allocation mode in the second stage of resource allocation.
[0258] For example, in the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the first allocation mode. In the process of resource allocation or at the end of resource allocation, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can lower the priority of the first logical channel according to the scheme of the embodiments of the present application.
[0259] For example, in the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the first allocation mode. In the process of resource allocation or at the end of resource allocation, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can lower the priority of the first logical channel according to the scheme of the embodiments of the present application.
[0260] For example, in the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the first allocation mode. In the process of resource allocation or at the end of resource allocation, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can lower the priority of the first logical channel according to the scheme of the embodiments of the present application.
[0261] For example, before the resource allocation process in the first stage starts, the UE can allocate resources for the first logical channel according to the first allocation manner. When or before the resource allocation process in the second stage starts, the UE can lower the priority of the first logical channel according to the scheme in the embodiments of the present application. For example, the UE allocates resources for the logical channels according to the first parameters of the logical channels in the first stage, and when or before the resource allocation process in the second stage starts, the value of the first parameter corresponding to the first logical channel is already less than or equal to 0, the UE lowers the priority of the first logical channel according to the scheme in the embodiments of the present application.
[0262] For another example, in the resource allocation process in the first stage, the UE can allocate resources for the first logical channel according to the first allocation manner. In the resource allocation process in the second stage, the UE can lower the priority of the first logical channel according to the scheme in the embodiments of the present application. For example, the UE allocates resources for the logical channels according to the first parameters of the logical channels in the first stage, and in the resource allocation process in the second stage, the value of the first parameter corresponding to the first logical channel is already less than or equal to 0, the UE lowers the priority of the first logical channel according to the scheme in the embodiments of the present application.
[0263] With reference to FIG. 5A, the embodiments shown in FIG. 4 can be referred to for the introduction of FIG. 5A. Since the sum of the data amount of data packet 1 and the data amount of data packet 2 is 600 bits, which is greater than the value of the first parameter, the logical channel satisfies the second condition, and the UE can ignore the value of the first parameter and allocate resources for data packet 1 and data packet 2. For example, the UE allocates 300 bits of resources for data packet 1 and 300 bits of resources for data packet 2. After the resources are allocated for data packet 1 and data packet 2, the UE can not update the value of the first parameter, and the value of the first parameter remains 500. In this case, the UE does not adjust the priority of the logical channel. Alternatively, after the resources are allocated for data packet 1 and data packet 2, the UE can update the value of the first parameter, for example, to 0 or to 500-300-300=-100. In this case, the first parameter of the logical channel is less than or equal to 0, and the UE can adjust the priority of the logical channel to the second priority.
[0264] As to whether to allocate resource for data packet 3, it can be determined by the second priority, or determined by the second priority and the current value of the first parameter. For example, if the UE does not update the first parameter of the logical channel after allocating resource for data packet 1 and data packet 2, the value of the first parameter is 500, the UE does not adjust the priority of the logical channel, and the UE can continue to allocate resource for data packet 3 using the first priority; alternatively, if the UE allocates resource for data packet 3, for example, allocates 200 bits of resource, the value of the first parameter is updated to 500-200=300, the first parameter is still greater than 0, and the UE still does not adjust the priority of the logical channel. For another example, if the UE updates the first parameter of the logical channel after allocating resource for data packet 1 and data packet 2, the value of the first parameter is 0 or -100, the first parameter is less than or equal to 0, and the UE adjusts the priority of the logical channel, the UE should determine whether to allocate resource for data packet 3 using the second priority. At this time, since the priority of the logical channel has been adjusted to the second priority, assuming that the second priority is lower than the priority of other logical channels to be allocated resource, according to the second priority, the UE will not continue to allocate resource for data packet 3 of the logical channel including non-low latency data, wherein, since the first parameter is less than or equal to 0, the UE is to determine whether to allocate resource for data packet 3 according to the second priority in the second stage.
[0265] 2. The embodiment of the present application is combined with the second allocation mode of the UE.
[0266] The UE can allocate transmission resource for M data packets on the first logical channel, and update the value of the first parameter corresponding to the first logical channel according to the transmission resource allocated for the M data packets. M is a positive integer. This mode can be regarded as that the UE "borrows" the value of the first parameter. For example, the M data packets can include all data in the low latency data; or the M data packets can include all data in the low latency data, and include all data in non-low latency data before the low latency data on the first logical channel. Alternatively, the UE can update the value of the first parameter corresponding to the first logical channel after allocating resource for the M data packets, for example, the UE can update the value of the first parameter according to the resource allocation of the M data packets. For more information about this part, please refer to the embodiment shown in FIG. 4. If the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can adjust the priority of the first logical channel to the second priority.
[0267] Optionally, the embodiments of the present application can be combined with the second allocation mode of the UE. The embodiments of the present application can be combined with the second allocation mode in the first stage of resource allocation, after the first stage of resource allocation, at the beginning of the second stage of resource allocation, before the second stage of resource allocation, or in the second stage of resource allocation.
[0268] For example, in the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the second allocation mode. In the process of resource allocation or at the end of resource allocation, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can lower the priority of the first logical channel according to the embodiments of the present application.
[0269] For example, in the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the second allocation mode. In the process of resource allocation or at the end of resource allocation, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can lower the priority of the first logical channel according to the embodiments of the present application.
[0270] For example, in the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the second allocation mode. In the process of resource allocation or at the end of resource allocation, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can lower the priority of the first logical channel according to the embodiments of the present application.
[0271] For example, before the resource allocation process in the first stage starts, the UE can allocate resources for the first logical channel according to the second allocation manner. When or before the resource allocation process in the second stage starts, the UE can lower the priority of the first logical channel according to the scheme of the embodiments of the present application. For example, the UE allocates resources for the logical channels according to the first parameters of the logical channels in the first stage, and when or before the resource allocation process in the second stage starts, the value of the first parameter corresponding to the first logical channel is already less than or equal to 0, the UE lowers the priority of the first logical channel according to the scheme of the embodiments of the present application.
[0272] For example, before the resource allocation process in the first stage starts, the UE can allocate resources for the first logical channel according to the second allocation manner. When or before the resource allocation process in the second stage starts, the UE can lower the priority of the first logical channel according to the scheme of the embodiments of the present application. For example, the UE allocates resources for the logical channels according to the first parameters of the logical channels in the first stage, and when or before the resource allocation process in the second stage starts, the value of the first parameter corresponding to the first logical channel is already less than or equal to 0, the UE lowers the priority of the first logical channel according to the scheme of the embodiments of the present application.
[0273] For example, continue to refer to FIG. 5A. Since the sum of the data amount of data packet 1 and the data amount of data packet 2 is 600 bits, which is greater than the value of the first parameter, the logical channel satisfies the second condition, and the UE can allocate resources for data packet 1 and data packet 2. For example, the UE allocates 300 bits of resources for data packet 1, and allocates 300 bits of resources for data packet 2. After allocating resources for data packet 1 and data packet 2, the UE can update the value of the first parameter to 500-300-300=-100. After allocating resources for data packet 1 and data packet 2, the first parameter of the logical channel is less than or equal to 0, and the UE can also adjust the priority of the logical channel to the second priority. Whether to allocate resources for data packet 3 can be determined by the second priority, or determined by the second priority and the current value of the first parameter. For example, the UE has updated the value of the first parameter to -100, and the value of the first parameter is less than or equal to 0, so the UE does not allocate resources for data packet 3. Whether the UE continues to allocate resources for data packet 3, which includes non-low-latency data, of the logical channel in the second stage can be determined by comparing the second priority of the logical channel with the priorities of other logical channels, and determining whether to allocate resources for data packet 3 according to the order from high to low of the priorities.
[0274] 3、The embodiments of the present application are combined with the third allocation manner of the UE.
[0275] The UE can allocate transmission resources for N data packets on the first logical channel, and does not update the value of the first parameter corresponding to the first logical channel according to the transmission resources allocated for the N data packets; and the UE allocates transmission resources for K data packets on the first logical channel. Optionally, after allocating the transmission resources for the K data packets, the UE can update the value of the first parameter corresponding to the first logical channel, for example, the UE can update the value of the first parameter according to the resource allocation of the K data packets. N and K are both positive integers. The N data packets can include non-low-latency data to be transmitted before low-latency data to be transmitted on the first logical channel, and the K data packets include all data of the low-latency data to be transmitted on the first logical channel. For more information about this part, please refer to the embodiment shown in FIG. 4. If the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can adjust the priority of the first logical channel to the second priority.
[0276] Optionally, the embodiments of the present application can be combined with the third allocation mode of the UE, which can be combined with the third allocation mode in the resource allocation process of the first stage, or combined with the third allocation mode after the end of the resource allocation of the first stage, or combined with the third allocation mode at the beginning of the resource allocation of the second stage, or combined with the third allocation mode before the beginning of the resource allocation of the second stage, or combined with the first allocation mode in the resource allocation process of the second stage.
[0277] For example, in the resource allocation process of the first stage, the UE can allocate resources for the first logical channel according to the third allocation mode. In the resource allocation process or at the end of the resource allocation, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can adjust the priority of the first logical channel to a lower level according to the scheme of the embodiments of the present application.
[0278] For another example, in the resource allocation process of the first stage, the UE can allocate resources for the first logical channel according to the third allocation mode. In the resource allocation process of the first stage, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can adjust the priority of the first logical channel to a lower level according to the scheme of the embodiments of the present application.
[0279] For example, in the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the third allocation manner. At or after the end of the first stage of resource allocation, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can lower the priority of the first logical channel according to the scheme of the embodiments of the present application. Alternatively, the UE lowers the priority of the first logical channel according to the scheme of the embodiments of the present application at or after the end of the first stage of resource allocation, for example, the UE allocates resources for logical channels according to the first parameter of each logical channel in the first stage, at or after the end of the first stage of resource allocation, the value of the first parameter corresponding to the first logical channel is already less than or equal to 0, and the UE lowers the priority of the first logical channel according to the scheme of the embodiments of the present application.
[0280] For example, before the start of the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the third allocation manner. At or before the start of the second stage of resource allocation, the UE can lower the priority of the first logical channel according to the scheme of the embodiments of the present application. For example, the UE allocates resources for logical channels according to the first parameter of each logical channel in the first stage, at or before the start of the second stage of resource allocation, the value of the first parameter corresponding to the first logical channel is already less than or equal to 0, and the UE lowers the priority of the first logical channel according to the scheme of the embodiments of the present application.
[0281] For example, in the first stage of resource allocation, the UE can allocate resources for the first logical channel according to the third allocation manner. At or after the end of the first stage of resource allocation, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can lower the priority of the first logical channel according to the scheme of the embodiments of the present application. Alternatively, the UE lowers the priority of the first logical channel according to the scheme of the embodiments of the present application at or after the end of the first stage of resource allocation, for example, the UE allocates resources for logical channels according to the first parameter of each logical channel in the first stage, at or after the end of the first stage of resource allocation, the value of the first parameter corresponding to the first logical channel is already less than or equal to 0, and the UE lowers the priority of the first logical channel according to the scheme of the embodiments of the present application.
[0282] Please continue to refer to FIG. 5B. For the introduction of FIG. 5B, please refer to the embodiment shown in FIG. 4. Since the sum of the data amount of data packet 4 and the data amount of data packet 5 is 500 bits, which is greater than the value of the first parameter, the logical channel satisfies the second condition. The UE can allocate resources for data packet 4, for example, 200 bits of resources are allocated, and the UE does not update the value of the first parameter accordingly, so the value of the first parameter remains 400. The UE allocates resources for data packet 5. Since the value of the first parameter is 400 and the data packet 5 is 300 bits, the value of the first parameter can meet the resource allocation of data packet 5, for example, the UE allocates 300 bits of resources for data packet 5. After allocating resources for data packet 5, the UE can update the value of the first parameter, for example, updating the value of the first parameter to 400-300 = 100. After allocating resources for data packet 5, the UE does not adjust the priority of the logical channel. As for whether to allocate resources for data packet 6, it can be determined by the second priority, or determined by the second priority and the current value of the first parameter.
[0283] For example, if the UE does not allocate resources for data packet 6, the value of the first parameter is 100, and the UE does not adjust the priority of the logical channel; or if the UE allocates resources for data packet 6, for example, 100 bits of resources are allocated, and the value of the first parameter is 100-100 = 0, then the UE can adjust the priority of the logical channel to the second priority.
[0284] 4. The embodiment of the present application is combined with the fourth allocation mode of the UE.
[0285] The UE can determine the low-latency data on the first logical channel according to the third threshold. Then the UE can allocate resources for the first logical channel according to the first allocation mode or the second allocation mode described above. If the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can adjust the priority of the first logical channel to the second priority.
[0286] Please continue to refer to FIG. 5C. For the introduction of FIG. 5C, please refer to the embodiment shown in FIG. 4.
[0287] Assume that the UE obtains 2000 bits of resources. For example, the logical channel priority is in the order from high to low, the priority of logical channel 3 is higher than that of logical channel 2, and the priority of logical channel 2 is higher than that of logical channel 1. In the first stage of resource allocation, the UE allocates resources for logical channel 3 first. Since the sum of the data amounts of data packet 1 and data packet 2 on logical channel 3 is 600, which is greater than the value of the first parameter corresponding to logical channel 3, i.e. 500, logical channel 3 satisfies the second condition, and the UE can allocate resources for logical channel 3 according to the scheme of the embodiments of the present application. For example, the UE allocates resources for logical channel 3 according to the first or second allocation manner described above. The UE allocates 300 bits of resources for data packet 1 and 300 bits of resources for data packet 2. Alternatively, the UE can update the value of the first parameter corresponding to logical channel 3, for example, to 0 or to -100. At this time, the value of the first parameter corresponding to logical channel 3 is less than or equal to 0, and the UE can adjust the priority of logical channel 3 to the second priority. Alternatively, the UE can not update the value of the first parameter, and the value of the first parameter is still 500. In this case, the UE can not adjust the priority of logical channel 3. In addition, the UE can adjust the priority of logical channel 3 to the second priority after allocating resources for data packet 1 and data packet 2. Whether to allocate resources for data packet 3 can be determined according to the second priority or according to the second priority and the current value of the first parameter.
[0288] According to the priority of the logical channel, the UE then allocates resources for logical channel 2. Since data packet 7 on logical channel 2 includes 300 bits, which is less than the value of the first parameter corresponding to logical channel 2, logical channel 2 does not satisfy the second condition, and the UE can allocate resources for the data on logical channel 2 according to the conventional manner. For example, the UE allocates 300 bits of resources for data packet 7, and updates the value of the first parameter corresponding to logical channel 2 to 800-300=500. After allocating resources for data packet 7, the value of the first parameter corresponding to logical channel 2 is still greater than 0, and the UE does not adjust the priority of logical channel 2. The UE continues to consider allocating resources for data packet 8 until the value of the first parameter corresponding to logical channel 2 is less than or equal to 0. Data packet 8 is 600 bits, and the UE allocates 500 bits of resources for data packet 8 of logical channel 2 according to the first parameter, and updates the first parameter corresponding to logical channel 2 to 500-500=0. At this time, the value of the first parameter corresponding to logical channel 2 is less than or equal to 0, and the UE can adjust the priority of logical channel 2 to the second priority. Whether to allocate resources for the remaining part of data packet 8 can be determined according to the second priority, for example, in the second stage of resource allocation, the UE can compare the second priority of logical channel 2 with the priorities of other logical channels, and determine whether to allocate resources for the remaining data of data packet 8 according to the order from high to low.
[0289] According to the priority of the logical channels, the UE then allocates resources for logical channel 1. Since the sum of the data amounts of data packet 4 and data packet 5 on logical channel 1 is 500, which is greater than the value 400 of the first parameter corresponding to logical channel 1, logical channel 1 satisfies the second condition, and the UE can allocate resources for logical channel 1 according to the scheme of the embodiments of the present application. For example, the UE allocates resources for logical channel 1 according to the third allocation manner described above, allocates 200 bits of resources for data packet 4, and does not update the value of the first parameter corresponding to logical channel 1, so the value of the first parameter is still 400, and the UE does not adjust the priority of logical channel 1. The UE then allocates resources for data packet 5, and since the value of the first parameter corresponding to logical channel 1 is 400 and data packet 5 is 300 bits, the value of the first parameter can satisfy the resource allocation for data packet 5, for example, the UE allocates 300 bits of resources for data packet 5. After allocating resources for data packet 5, the UE can update the value of the first parameter corresponding to logical channel 1, for example, update the value of the first parameter to 400-300=100, and the UE does not adjust the priority of logical channel 1. Alternatively, the UE can continue to allocate resources for data packet 6 using the first priority, and when the value of the first parameter of logical channel 1 is less than or equal to 0, the UE can adjust the priority of logical channel 1 to the second priority.
[0290] After the first-stage resource allocation process is completed, for example, the UE has 2000-600-800-500=100 bits of remaining resources, the UE can perform a second-stage resource allocation. In the second-stage resource allocation process, the UE can continue to allocate resources for data that has not been allocated resources on each logical channel according to the priority of each logical channel, and without considering the first parameter, until the resources are exhausted or the data has all been allocated resources. Among them, the UE has adjusted the priority of logical channel 1 to the second priority of logical channel 1, adjusted the priority of logical channel 2 to the second priority of logical channel 2, and adjusted the priority of logical channel 3 to the second priority of logical channel 3, for example, the three second priorities are different, for example, the order of the three second priorities from high to low is: the second priority of logical channel 3 is higher than the second priority of logical channel 2, and the second priority of logical channel 2 is higher than the second priority of logical channel 1, so the processing order of the UE in the second-stage resource allocation is, for example: first allocate resources for logical channel 3, then allocate resources for logical channel 2 if there are remaining resources, and then allocate resources for logical channel 1 if there are remaining resources.
[0291] Optionally, the UE adjusts the priority of the logical channel, which can be regarded as a function of the UE, and the function can be started (or activated) or stopped (or deactivated) by the UE itself, or can be instructed to start or stop by the network device. Taking the network device as an example, the network device can send seventh information, and the seventh information can indicate to start or stop the function. If the seventh information indicates to start the function, the UE can perform the scheme of the embodiments of the present application. Or, if the seventh information indicates to stop or not to start the function, the UE does not perform the scheme of the embodiments of the present application. By controlling whether the UE enables the function through the network device, the function can be more flexibly controlled, so that the UE uses the function more reasonably. For example, the network device can start the function for the UE when there is delay-sensitive service, so that the UE tries to use limited resources only for low-latency data, avoids non-low-latency data from using the first priority to occupy resources, ensures the reliability of service transmission, improves transmission efficiency, and reduces packet loss rate. When there is no delay-sensitive service, the network device can stop the function for the UE, avoid the UE from performing too many operations, reduce the complexity of the UE, and save power for the UE.
[0292] In the embodiments of the present application, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the UE can lower the priority of the first logical channel, for example, adjust it to the original priority or the default priority. If there is non-low-latency data to be transmitted on the first logical channel, lowering the priority of the first logical channel ensures that the non-low-latency data will not be allocated resources in priority with the first priority, so that the resource allocation of non-low-latency data to be transmitted on each logical channel is more fair. Moreover, the UE adjusts the priority of the first logical channel according to the value of the first parameter, which can simplify the judgment logic of the UE. In addition, if the value of the first parameter corresponding to the first logical channel is less than or equal to 0, for example, there can be no low-latency data in the data to be transmitted on the first logical channel, which means that the priority of the logical channel without low-latency data can be lowered by the embodiments of the present application, so that the priority of the logical channel is as low as possible compared with the priority of the logical channel with low-latency data, so that low-latency data can be allocated resources in priority, reducing the probability of low-latency data being discarded and improving the success rate of data transmission.
[0293] The foregoing embodiments mention the traditional resource allocation mode, which is introduced as follows.
[0294] In the traditional resource allocation mode, the network device can schedule uplink resources for the UE according to the data transmission needs of the UE. After the UE obtains the uplink resources, it will allocate the uplink resources to the buffered data packets through the LCP process and using the token bucket algorithm. The resource allocation process can include a first stage, or a first stage and a second stage.
[0295] In the first stage, the UE allocates resources for the logical channels with the value of the second parameter greater than 0 in the order of the priority of the logical channels from high to low. In the allocation, the UE first allocates resources for the data to be transmitted in the logical channel with the highest priority, and stops the allocation for the logical channel when the value of the second parameter corresponding to the logical channel is less than or equal to 0, and then allocates resources for the next logical channel. When the UE allocates resources for the data to be transmitted in a logical channel or finishes the allocation, the UE stops the resource allocation process in the first stage if the resources acquired by the UE are allocated completely. In addition, the UE updates the second parameter of each logical channel after allocating resources for the data to be transmitted in the logical channel. For example, the UE allocates resources for the data to be transmitted in a logical channel, and then the value of the second parameter corresponding to the logical channel should be reduced by the size of the allocated resources. For example, the UE allocates 200 bits of resources for the data to be transmitted in a logical channel, and then the UE should reduce the value of the second parameter corresponding to the logical channel by 200.
[0296] After the UE allocates resources for all the logical channels with the value of the second parameter greater than 0 according to the above rules, if the resources to be allocated are allocated completely, the UE stops the resource allocation process; or if there are remaining resources not allocated, the UE can perform the resource allocation process in the second stage. In the second stage, the UE can allocate resources for the logical channels in the order of the priority from high to low without considering the value of the second parameter, until the data to be transmitted in all the logical channels are allocated resources or until the resources acquired by the UE are allocated completely.
[0297] The second parameter is related to the process of allocating resources for data on a logical channel by the UE. Each logical channel can have a corresponding second parameter. The value of the second parameter corresponding to different logical channels can be the same or different. For example, when a logical channel is established, the UE can initialize the value of the second parameter of the logical channel, for example, initialize to 0. After each time T, the value of the second parameter corresponding to the logical channel can increase by the size of the PBR, i.e., after each time T, the value of the second parameter corresponding to the logical channel = PBR*T. However, the value of the second parameter corresponding to a logical channel will not exceed the size of the token bucket corresponding to the logical channel, wherein the size of the token bucket corresponding to a logical channel = PBR*BSD. If the value of the second parameter of a logical channel is greater than the size of the token bucket corresponding to the logical channel, the value of the second parameter of the logical channel should be set to equal to PBR*BSD. The second parameter can be used to allocate resources for data on the logical channel corresponding to the second parameter, for example, the second parameter can be used to determine whether resources can be allocated for data on the logical channel corresponding to the second parameter, and the second parameter can also indicate the number of resources that can be allocated for data on the logical channel corresponding to the second parameter. For example, the second parameter can be understood as a state variable corresponding to the logical channel, or as the number of tokens of the logical channel.
[0298] Optionally, the second parameter can be the same parameter as the first parameter described in various embodiments of the present application, or can be a different parameter.
[0299] FIG. 8 shows a structural schematic diagram of a communication apparatus provided by an embodiment of the present application. The communication apparatus 800 can be the UE or the circuitry of the UE described in the embodiments of any one of FIG. 3, FIG. 4, FIG. 6, or FIG. 7, for implementing the method corresponding to the UE in the above method embodiments. Alternatively, the communication apparatus 800 can be the network device or the circuitry of the network device described in the embodiments of any one of FIG. 3, FIG. 4, FIG. 6, or FIG. 7, for implementing the method corresponding to the network device in the above method embodiments. For example, the circuitry can be a chip system.
[0300] The communication apparatus 800 includes at least one processor 801. The processor 801 can be used for internal processing of the apparatus, to implement certain control processing functions. Optionally, the processor 801 includes instructions. Optionally, the processor 801 can store data. Optionally, different processors can be independent devices, can be located in different physical locations, and can be located on different integrated circuits. Optionally, different processors can be integrated in one or more processors, for example, integrated on one or more integrated circuits.
[0301] Optionally, the communication device 800 comprises one or more memories 803 to store instructions. Optionally, the memories 803 can also store data. The processor and the memories can be separately arranged or integrated together.
[0302] Optionally, the communication device 800 comprises a communication line 802 and at least one communication interface 804. Since the memories 803, the communication line 802 and the communication interface 804 are all optional, they are all represented by dashed lines in FIG. 8.
[0303] Optionally, the communication device 800 can also comprise a transceiver and / or an antenna. The transceiver can be used to send information to other devices or receive information from other devices. The transceiver can be referred to as a transceiver, a transceiving circuit, an input / output interface, etc., and is used to realize the transceiving function of the communication device 800 through the antenna. Optionally, the transceiver comprises a transmitter and a receiver. Illustratively, the transmitter can be used to generate a radio frequency signal from a baseband signal, and the receiver can be used to convert a radio frequency signal into a baseband signal.
[0304] The processor 801 can comprise a general central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of programs of the solutions of the present application.
[0305] The communication line 802 can comprise a path to transmit information between the above-mentioned components.
[0306] The communication interface 804 uses any transceiver-like device for communicating with other devices or communication networks, such as an Ethernet, a radio access network (RAN), a wireless local area networks (WLAN), a wired access network, etc.
[0307] The memory 803 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM), or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, a magnetic disk storage or other magnetic storage devices, or any other medium capable of storing desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to this. The memory 803 can exist independently, and is connected to the processor 801 through the communication line 802. Alternatively, the memory 803 can be integrated with the processor 801.
[0308] The memory 803 is configured to store computer-executed instructions for implementing the solutions of the present application, and the processor 801 is configured to control the execution of the computer-executed instructions stored in the memory 803. The processor 801 is configured to execute the computer-executed instructions stored in the memory 803, so as to implement the steps performed by the UE or the network device in the embodiments shown in any one of FIG. 3, FIG. 4, FIG. 6, or FIG. 7.
[0309] Optionally, the computer-executed instructions in the embodiments of the present application can also be referred to as application program codes, and the embodiments of the present application are not limited in this regard.
[0310] In a specific implementation, as an example, the processor 801 can include one or more CPUs, such as CPU0 and CPU1 in FIG. 8.
[0311] In a specific implementation, as an example, the communication apparatus 800 can include multiple processors, such as the processor 801 and the processor 805 in FIG. 8. Each of these processors can be a single-CPU processor or a multi-CPU processor. The processor herein can refer to one or more devices, circuits, and / or processing cores for processing data (for example, computer program instructions).
[0312] When the apparatus shown in Fig. 8 is a chip, for example, a chip of a UE or a chip of a network device, the chip includes the processor 801 (and can also include the processor 805), the communication line 802, and the communication interface 804, and optionally, the memory 803. Specifically, the communication interface 804 can be an input interface, a pin, or a circuit, etc. The memory 803 can be a register, a cache, etc. The processor 801 and the processor 805 can be a general-purpose CPU, a microprocessor, an ASIC, or one or more integrated circuits for executing programs for controlling the communication method of any of the above embodiments.
[0313] The embodiments of the present application can divide the functions of the apparatus according to the above method examples, for example, each function module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be realized in the form of hardware or in the form of a software function module. It should be noted that the division of the modules in the embodiments of the present application is illustrative, and is only a logical function division. When each function module is divided according to each function, for example, Fig. 9 is a schematic diagram of an apparatus 900, which can be a UE or a network device involved in each of the above method embodiments, or a chip in the UE or a chip in the network device. The apparatus 900 includes a processing unit 902 and a transceiver unit 901.
[0314] It should be understood that the apparatus 900 can be used to implement the steps performed by the UE or the network device in the communication method of the embodiments of the present application, and the related features can refer to the embodiments shown in any one of Figs. 3, 4, 6, or 7, which will not be described here again.
[0315] Optionally, the functions / implementation processes of the transceiver unit 901 and the processing unit 902 in Fig. 9 can be realized by the processor 801 in Fig. 8 calling computer-executable instructions stored in the memory 803. Alternatively, the functions / implementation processes of the processing unit 902 in Fig. 9 can be realized by the processor 801 in Fig. 8 calling computer-executable instructions stored in the memory 803, and the functions / implementation processes of the transceiver unit 901 in Fig. 9 can be realized by the communication interface 804 in Fig. 8.
[0316] Optionally, when the apparatus 900 is a chip or a circuit, the functions / implementation processes of the transceiver unit 901 can also be realized by a pin or a circuit, etc. Optionally, the transceiver unit 901 can include a sending unit and / or a receiving unit, the sending unit is used to realize the sending function, and the receiving unit is used to realize the receiving function; or the transceiver unit 901 can be an integral module, which can realize the sending function and / or the receiving function. Optionally, the transceiver unit 901 can be realized by a transceiver.
[0317] The application also provides a computer readable storage medium storing computer programs or instructions, which, when executed, implement the method performed by the UE or the network device in the foregoing method embodiments. Thus, the functions described in the foregoing embodiments can be implemented in the form of software function units and sold or used as independent products. Based on this understanding, the technical solutions of the application can be embodied in the form of a software product in essence or in the part that contributes to the application or part of the technical solutions. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the application. The storage medium includes a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various media that can store program codes.
[0318] The application also provides a computer program product, which includes computer program codes, which, when executed on a computer, cause the computer to perform the method performed by the UE or the network device in any of the foregoing method embodiments.
[0319] The embodiments of the application also provide a processing device, which includes a processor and an interface; the processor is used to execute the method performed by the UE or the network device related to any of the foregoing method embodiments.
[0320] In the embodiments described above, all or some of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or some of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded into and executed by a computer, all or some of the procedures or functions described in the embodiments of the present application are performed. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transmitted from a website, a computer, a server or a data center to another website, computer, server or data center through a wired (for example, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (for example, infrared, wireless, microwave, etc.) manner. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media sets. The available media can be a magnetic medium (for example, floppy disk, hard disk, magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, solid state disk (SSD)) and the like.
[0321] The various illustrative logical blocks, modules, circuits, and algorithms described in connection with the embodiments disclosed herein can be implemented or performed by a general purpose processor, a digital signal processor (DSP), an ASIC, a field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the described functions. The general purpose processor can be a microprocessor, optionally, the general purpose processor can also be any conventional processor, controller, microcontroller, or state machine. The processor can also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a DSP core, or any other similar configuration.
[0322] The steps of methods or algorithms described in the embodiments of the present application can be directly embedded in hardware, a software unit executed by a processor, or a combination of the two. The software unit can be stored in a RAM, a flash memory, a ROM, an erasable programmable read-only memory (EPROM), an EEPROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium in the art. The storage medium can be connected to the processor, so that the processor can read information from the storage medium and write information to the storage medium. Alternatively, the storage medium can also be integrated into the processor. The processor and the storage medium can be located in an ASIC, which can be located in the terminal device. Alternatively, the processor and the storage medium can also be located in different components of the terminal device.
[0323] These computer program instructions can also be loaded onto a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable data processing device to generate a computer implemented process such that the instructions executed by the computer or other programmable device provide steps for implementing the functions specified in the flowchart block or blocks and / or the block or blocks in the block diagram.
[0324] The contents of various embodiments of the present application can be mutually referred to, and the terms and / or descriptions between different embodiments are consistent and can be mutually referred to if there is no special description and logical conflict. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationship.
[0325] It can be understood that, in the embodiments of the present application, the UE and / or the network device can perform part or all of the steps in the embodiments of the present application, and these steps or operations are only examples, and other operations or variations of various operations can also be performed in the embodiments of the present application. In addition, each step can be performed in a different order from the order presented in the embodiments of the present application, and it is possible that not all operations in the embodiments of the present application are performed.
Claims
1. A communication method characterized by comprising: The method comprises: adjusting the priority of the first logical channel to a first priority; if there is no low-latency data on the first logical channel, adjusting the priority of the first logical channel to a second priority, the second priority being lower than the first priority, wherein the low-latency data is data whose corresponding packet loss timer has a remaining time length less than or equal to a first threshold.
2. The method of claim 1, wherein, The second priority is the original priority before the priority of the first logical channel is adjusted to the first priority.
3. The method according to claim 1 or 2, characterized in that, adjusting the priority of the first logical channel to a first priority, comprising: if the first logical channel meets a first condition, adjusting the priority of the first logical channel to the first priority, wherein the first condition comprises one or more of the following: the first data packet to be transmitted on the first logical channel corresponds to a packet loss timer whose remaining time length is less than or equal to a first threshold, the first data packet being one data packet to be transmitted on the first logical channel; the first data packet has not been transmitted; the first data packet has been transmitted but not successfully transmitted; or the total amount of data of one or more data packets on the first logical channel whose packet loss timers have a remaining time length less than or equal to the first threshold is greater than or equal to a second threshold.
4. The method of claim 3, wherein, The method further comprises: determining a first time domain resource, the first time domain resource being a resource to be allocated to data on one or more logical channels, the first logical channel belonging to the one or more logical channels, wherein the remaining time length of the packet loss timer corresponding to the first data packet refers to the remaining time length of the packet loss timer corresponding to the first data packet when the first time domain resource is reached.
5. The method according to any one of claims 1 to 4, characterized in that, if there is no low-latency data on the first logical channel, adjusting the priority of the first logical channel to a second priority, comprising: allocating transmission resources for M data packets on the first logical channel, and ignoring the value of the first parameter corresponding to the logical channel, the M data packets including all data in the low-latency data, or the M data packets including all data in the low-latency data and non-low-latency data located before the low-latency data, M being a positive integer; if the M data packets have been allocated transmission resources, adjusting the priority of the first logical channel to the second priority.
6. The method according to any one of claims 1 to 4, characterized in that, if there is no low-latency data on the first logical channel, adjusting the priority of the first logical channel to a second priority, comprising: allocating transmission resources for M data packets on the first logical channel, and updating the value of the first parameter corresponding to the logical channel according to the transmission resources allocated for the M data packets, the M data packets including all data in the low-latency data, or the M data packets including all data in the low-latency data and non-low-latency data located before the low-latency data, M being a positive integer; if the M data packets have been allocated transmission resources, adjusting the priority of the first logical channel to the second priority.
7. The method according to any one of claims 1 to 4, characterized in that, if there is no low-latency data on the first logical channel, adjusting the priority of the first logical channel to a second priority, comprising: allocate transmission resources for N data packets on the first logical channel, and do not update a value of the first parameter corresponding to the first logical channel according to the transmission resources allocated for the N data packets, and allocate transmission resources for K data packets on the first logical channel, and update the value of the first parameter corresponding to the first logical channel according to the transmission resources allocated for the K data packets, wherein the N data packets include non-low-latency data located before the low-latency data, the K data packets include all of the low-latency data, and N and K are positive integers; adjust the priority of the first logical channel to the second priority if the N data packets and the K data packets have been allocated transmission resources.
8. The method according to any one of claims 1 to 4, characterized in that, adjusting the priority of the first logical channel to a second priority if there is no low-latency data on the first logical channel, includes: allocating resources for data on the first logical channel according to the first parameter corresponding to the first logical channel; adjusting the priority of the first logical channel to a second priority if all of the low-latency data have been allocated resources.
9. The method according to any one of claims 1 to 4, characterized in that, adjusting the priority of the first logical channel to a second priority if there is no low-latency data on the first logical channel, includes: adjusting the priority of the first logical channel to a second priority if there is no low-latency data on the first logical channel when resources are allocated for the first logical channel in a first resource allocation manner, wherein the first resource allocation manner is independent of a first parameter of the first logical channel.
10. A communication method characterized by comprising: The method comprises: adjusting the priority of the first logical channel to a first priority; adjusting the priority of the first logical channel to a second priority if a value of the first parameter corresponding to the first logical channel is less than or equal to 0, the second priority being lower than the first priority.
11. The method of claim 10, wherein, The second priority is an original priority before the priority of the first logical channel is adjusted to the first priority.
12. The method according to claim 10 or 11, characterized in that, The first parameter is a token quantity corresponding to the first logical channel.
13. The method according to any one of claims 10 to 12, characterized in that, adjusting the priority of the first logical channel to a first priority, includes: adjusting the priority of the first logical channel to the first priority if the first logical channel satisfies a first condition, wherein the first condition includes one or more of the following: a remaining time length of a packet loss timer corresponding to a first data packet to be transmitted on the first logical channel is less than or equal to a first threshold value, the first data packet being one data packet to be transmitted on the first logical channel; the first data packet has not been transmitted; the first data packet has been transmitted but not successfully; a total amount of data of one or more data packets on the first logical channel whose remaining time length of the packet loss timer is less than or equal to the first threshold value is greater than or equal to a second threshold value.
14. The method of claim 13, wherein, The method further comprises: determining a first time domain resource, the first time domain resource being a resource to be allocated to data on one or more logical channels, the first logical channel belonging to the one or more logical channels, wherein, The remaining time length of the packet loss timer corresponding to the first data packet refers to the remaining time length of the packet loss timer corresponding to the first data packet when the first time domain resource is reached.
15. The method according to any one of claims 10 to 14, characterized in that, If the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the priority of the first logical channel is adjusted to a second priority, including: M data packets on the first logical channel are allocated transmission resources, and the value of the first parameter corresponding to the logical channel is updated according to the transmission resources allocated for the M data packets, the M data packets include all the low-latency data, or the M data packets include all the low-latency data and include non-low-latency data located before the low-latency data, M is a positive integer; If the value of the first parameter is less than or equal to 0, the priority of the first logical channel is adjusted to the second priority.
16. The method according to any one of claims 10 to 14, characterized in that, If the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the priority of the first logical channel is adjusted to a second priority, including: M data packets on the first logical channel are allocated transmission resources, and the value of the first parameter corresponding to the logical channel is updated according to the transmission resources allocated for the M data packets, the M data packets include all the low-latency data, or the M data packets include all the low-latency data and include non-low-latency data located before the low-latency data, M is a positive integer; If the value of the first parameter is less than or equal to 0, the priority of the first logical channel is adjusted to the second priority.
17. The method according to any one of claims 10 to 14, characterized in that, If the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the priority of the first logical channel is adjusted to a second priority, including: M data packets on the first logical channel are allocated transmission resources, and the value of the first parameter corresponding to the logical channel is updated according to the transmission resources allocated for the M data packets, the M data packets include all the low-latency data, or the M data packets include all the low-latency data and include non-low-latency data located before the low-latency data, M is a positive integer; If the value of the first parameter is less than or equal to 0, the priority of the first logical channel is adjusted to the second priority.
18. The method according to any one of claims 10 to 14, characterized in that, If the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the priority of the first logical channel is adjusted to a second priority, including: The resources for the data on the first logical channel are allocated according to the first parameter; If the value of the first parameter corresponding to the first logical channel is less than or equal to 0, the priority of the first logical channel is adjusted to a second priority, including:
19. A method of communication, comprising: The method comprises: The method comprises: allocating transmission resources for low latency data on the first logical channel, wherein the second condition comprises a value of the first parameter corresponding to the first logical channel being less than a data amount of the low latency data, or comprises the value of the first parameter being less than a sum of the data amount of the low latency data and a data amount of non-low latency data located before the low latency data, wherein the low latency data is data for which a remaining time length of a packet loss timer is less than or equal to a first threshold value; transmitting the low latency data on the allocated transmission resources.
20. The method of claim 19, wherein, The first parameter is a token quantity corresponding to the first logical channel.
21. The method of claim 19 or 20, wherein, allocating transmission resources for low latency data on the first logical channel, comprises: allocating transmission resources for M data packets on the first logical channel and ignoring the value of the first parameter, the M data packets comprising all data in the low latency data, or the M data packets comprising all data in the low latency data and comprising non-low latency data located before the low latency data, M being a positive integer; or allocating transmission resources for M data packets on the first logical channel and updating the value of the first parameter according to transmission resources allocated for the M data packets, the M data packets comprising all data in the low latency data, or the M data packets comprising all data in the low latency data and comprising non-low latency data located before the low latency data, M being a positive integer.
22. The method of claim 19 or 20, wherein, allocating transmission resources for low latency data on the first logical channel, comprises: allocating transmission resources for N data packets on the first logical channel and not updating the value of the first parameter according to transmission resources allocated for the N data packets, and allocating transmission resources for K data packets on the first logical channel and updating the value of the first parameter according to transmission resources allocated for the K data packets, wherein the N data packets comprise non-low latency data located before the low latency data, and the K data packets comprise all data in the low latency data, N and K being positive integers.
23. The method according to any one of claims 19 to 22, characterized in that, The method further comprises: a packet data convergence protocol (PDCP) layer of a terminal device sending third indication information to a medium access control (MAC) layer of the terminal device, the third indication information being used to indicate a data amount of the low latency data.
24. The method of claim 23, wherein, The PDCP layer of the terminal device sending third indication information to the MAC layer of the terminal device, comprises: The PDCP layer sending the third indication information to the MAC layer when starting a packet loss timer for one or more data packets on the first logical channel.
25. The method of claim 23, wherein, The PDCP layer of the terminal device sending third indication information to the MAC layer of the terminal device, comprises: The PDCP layer receiving second request information from the MAC layer, the second request information being used to request to obtain the data amount of the low latency data; The PDCP layer sending the third indication information to the MAC layer based on the second request information.
26. A communications device, characterized by The communication device comprises means for performing the method according to any one of claims 1 to 9, or means for performing the method according to any one of claims 10 to 18, or means for performing the method according to any one of claims 19 to 25.
27. A communications device, characterized by The communication device comprises a processor configured to perform the method according to any one of claims 1 to 9, or to perform the method according to any one of claims 10 to 18, or to perform the method according to any one of claims 19 to 25.
28. A computer-readable storage medium, characterized in that, The computer readable storage medium is configured to store a computer program which, when executed on a computer, causes the method according to any one of claims 1 to 9 to be performed, or causes the method according to any one of claims 10 to 18 to be performed, or causes the method according to any one of claims 19 to 25 to be performed.
29. A computer program product, characterised in that, The computer program product comprises a computer program which, when executed on a computer, causes the computer to perform the method according to any one of claims 1 to 9, or causes the computer to perform the method according to any one of claims 10 to 18, or causes the computer to perform the method according to any one of claims 19 to 25.
Citation Information
Patent Citations
Method of allocating resource to logical channel, terminal apparatus, and network apparatus
CN110547013A
Logic channel priority processing method and device, electronic equipment and storage medium
CN115843442A
Logic channel priority processing method and communication device
CN116391436A
Semiconductor device
KR1020230109527A
Detection and reduction of delays in reverse link control data
WO2016187885A1