CN110446263B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN110446263B
CN110446263B CN201910741215.1A CN201910741215A CN110446263B CN 110446263 B CN110446263 B CN 110446263B CN 201910741215 A CN201910741215 A CN 201910741215A CN 110446263 B CN110446263 B CN 110446263B
Authority
CN
China
Prior art keywords
lch
destination address
mac pdu
resources
deviation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910741215.1A
Other languages
Chinese (zh)
Other versions
CN110446263A (en
Inventor
韩传华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN201910741215.1A priority Critical patent/CN110446263B/en
Publication of CN110446263A publication Critical patent/CN110446263A/en
Application granted granted Critical
Publication of CN110446263B publication Critical patent/CN110446263B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/53Allocation or scheduling criteria for wireless resources based on regulatory allocation policies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/535Allocation or scheduling criteria for wireless resources based on resource usage policies

Abstract

The application provides a data transmission method and device. The method comprises the following steps: when terminal equipment generates a destination address for MAC PDU (media access control protocol data unit) selection for transmission, if LCH (logical link control) with accumulated guaranteed data volume deviation larger than a preset deviation threshold is determined to exist, the destination address of the LCH is determined as the destination address of the MAC PDU, the accumulated guaranteed data volume deviation is the accumulated value of the guaranteed data volume deviation of the LCH before the transmission of the terminal equipment, and the guaranteed data volume deviation is the difference value between the theoretical guaranteed data volume of the LCH and the actual transmitted data volume during each transmission; or if the destination address with the unscheduled time larger than the preset scheduling threshold is determined to exist, determining the destination address with the unscheduled time larger than the preset scheduling threshold as the destination address of the MAC PDU; then distributing resources for each LCH according to the destination address of the selected MAC PDU; and finally, generating and transmitting the MAC PDU according to the resources distributed by each LCH. Therefore, the problem that the LCH cannot be scheduled for a long time is solved.

Description

Data transmission method and device
Technical Field
The present application relates to the field of mobile communications technologies, and in particular, to a data transmission method and apparatus.
Background
Vehicle to Vehicle (V2X) communication technology is a key technology of future intelligent transportation systems, and V2X communication includes V2V communication (Vehicle to Vehicle communication), V2I communication (Vehicle to Infrastructure communication), and V2P communication (Vehicle to human communication). Currently, a 3GPP R16 is conducting discussion and standardization work of a New air interface (NR) V2X project, where NRV2X is for advanced V2X services, and is mainly classified into four types: vehicle fleet, extended sensors, advanced driving and remote driving, advanced V2X services require enhancements to NR systems and new NR sidelink technology to support low latency and high reliability requirements.
For an interface between the terminal device and the network device in the NR, when a Media Access Control (MAC) of the terminal device performs new transmission each time, a Logical Channel Priority (LCP) procedure is applied, the LCP procedure is used to allocate resources to each Logical Channel, the base station configures a corresponding priority for each Logical Channel, and the radio resources are preferentially used to transmit data of a Logical Channel with a high priority.
In NR sidelink, for broadcast and multicast services, data of different destination addresses cannot be assembled into the same MAC Protocol Data Unit (PDU). For example, assume that a terminal device has 3 sidelink radio bearers (SLRB): SLRB1, SLRB2, and SLRB3, where SLRB1 and SLRB2 are directed to destination address 1, SLRB3 is directed to destination address 2, and destination address 1 and destination address 2 are broadcast or multicast traffic, and the priority of SLRB1, SLRB2, and SLRB3 is SLRB1> SLRB2> SLRB3. Since the data of the SLRB with a high priority is transmitted preferentially, if there is always available data in the SLRB1 or SLRB2, the data of the SLRB1 or SLRB2 is transmitted for a long time, and the data of the SLRB3 may not be transmitted for a long time, and thus, a Logical Channel (LCH) starvation may occur in which the low-priority Logical Channel is not scheduled for a long time.
Disclosure of Invention
The application provides a data transmission method and a data transmission device, which are used for solving the problem that a logic channel in sidelink cannot be scheduled for a long time.
In a first aspect, the present application provides a data transmission method, including:
when terminal equipment selects a destination address for generating a media access control protocol data unit (MAC PDU) for transmission, if a Logical Channel (LCH) with an accumulated guaranteed data volume deviation larger than a preset deviation threshold is determined to exist, the destination address of the LCH is determined as the destination address of the MAC PDU, the accumulated guaranteed data volume deviation is an accumulated value of the guaranteed data volume deviation of the LCH before the transmission of the terminal equipment, and the guaranteed data volume deviation is a difference value between a theoretical guaranteed data volume of the LCH and an actual transmitted data volume during each transmission; or if the destination address with the non-scheduled time larger than the preset scheduling threshold is determined to exist, determining the destination address with the non-scheduled time larger than the preset scheduling threshold as the destination address of the MAC PDU;
the terminal equipment allocates resources for each LCH according to the selected destination address of the MAC PDU;
and the terminal equipment generates and transmits the MAC PDU according to the resources distributed by each LCH.
Optionally, the method further includes:
when the terminal device performs the LCP process each time, calculating the theoretical guaranteed data volume of this time for each LCH, where the theoretical guaranteed data volume of the LCH = min (PBR × T, total data volume of LCH), T is time from the last LCP process, and PBR is the priority bit rate;
after the terminal equipment generates the MAC PDU in each transmission, calculating the guaranteed data volume deviation of each LCH, wherein the guaranteed data volume deviation of the LCH = the theoretical guaranteed data volume of the LCH-the data volume actually sent by the LCH at this time;
and the terminal equipment calculates the accumulated value of the guaranteed data volume deviation of the LCH for each LCH.
Optionally, when the destination address of the selected MAC PDU is the destination address of the LCH, the terminal device allocates resources to each LCH according to the destination address of the selected MAC PDU, including:
in the first round, the terminal equipment sets the priority of the LCH to be the highest, and then guarantees the sent data volume B according to the sequence of the priorities of all LCHs from high to low and the LCHs j Allocating resources for each LCH, and restoring the priority of the LCH to the original priority;
and if the residual resources exist, allocating the resources to the LCH with the highest priority to the maximum extent by the terminal equipment, and if the residual resources exist, allocating the resources to the LCH with the next highest priority until the resources are allocated completely.
Optionally, each LCH corresponds to a preset deviation threshold, and if there are a plurality of LCHs whose accumulated guaranteed data size deviation is greater than the preset deviation threshold, the terminal device determines the destination address of the LCH as the destination address of the MAC PDU, including:
and the terminal equipment determines the destination address of the LCH with the highest priority in the LCHs with the accumulated data volume deviation larger than a preset deviation threshold as the destination address of the MAC PDU.
Optionally, each destination address corresponds to a preset scheduling threshold, where the preset scheduling threshold is the longest waiting time for the destination address to be scheduled.
Optionally, when the destination address of the selected MAC PDU is a destination address whose unscheduled time is greater than a preset scheduling threshold, the terminal device allocates resources to each LCH according to the destination address of the selected MAC PDU, including:
if the resource is greater than or equal to B of all LCH of the destination address of the MAC PDU when the terminal equipment is allocated in the first round j And, B j The data volume transmitted for LCH is guaranteed, and B of each LCH is arranged from high to low according to the priority j Allocating resources for each LCH, if the resources are less than B of all LCHs of the destination address of the MAC PDU j The sum of (1) and (B) is then the resource allocation for each LCH according to the ratio of the PBR value of each LCH, or according to the B of each LCH j The ratio of values allocates resources for each LCH;
and if the residual resources exist, allocating the resources to the LCH with the highest priority to the maximum extent by the terminal equipment, and if the residual resources exist, allocating the resources to the LCH with the next highest priority until the resources are allocated completely.
Optionally, if it is determined that there is no LCH for which the cumulative guaranteed data size deviation is greater than the preset deviation threshold, or if it is determined that there is no destination address for which the unscheduled time is greater than the preset scheduling threshold, the terminal device determines the destination address of the LCH with the highest priority as the destination address of the MAC PDU according to the priority of the LCH.
In a second aspect, the present application provides a data transmission apparatus, including:
a determining module, configured to determine, when a destination address is selected for a MAC PDU that generates a MAC PDU for this transmission, if it is determined that there is a logical channel LCH whose accumulated guaranteed data amount deviation is greater than a preset deviation threshold, the destination address of the LCH as the destination address of the MAC PDU, where the accumulated guaranteed data amount deviation is an accumulated value of the guaranteed data amount deviation of the LCH before this transmission, and the guaranteed data amount deviation is a difference between a theoretical guaranteed data amount of the LCH and an actually sent data amount at each transmission; or if the destination address with the non-scheduled time larger than the preset scheduling threshold is determined to exist, determining the destination address with the non-scheduled time larger than the preset scheduling threshold as the destination address of the MAC PDU;
the distribution module is used for distributing resources for each LCH according to the selected destination address of the MAC PDU;
and the sending module is used for generating and sending the MAC PDU according to the resources distributed by each LCH.
Optionally, the apparatus further comprises:
a calculating module, configured to calculate, for each LCH, a current theoretical guaranteed data size when performing the LCP procedure each time, where the theoretical guaranteed data size of the LCH = min (PBR × T, total data size of LCH), T is time from a last LCP procedure, and PBR is a priority bit rate;
the calculation module is further configured to: after the MAC PDU is generated in each transmission, the guaranteed data volume deviation of each LCH is calculated, wherein the guaranteed data volume deviation of the LCH = theoretical guaranteed data volume of the LCH-data volume actually sent by the LCH at this time;
the calculation module is further configured to: for each LCH, an accumulated value of the guaranteed data amount deviation of the LCH is calculated.
Optionally, when the destination address of the MAC PDU selected by the determining module is the destination address of the LCH, the allocating module is configured to:
in the first round, the priority of the LCH is set to be the highest, and then the transmitted data volume B is ensured according to the sequence of the priorities of all LCHs from high to low and the LCHs j Allocating resources for each LCH, and restoring the priority of the LCH to the original priority;
and if the residual resources exist, performing second-round allocation, and allocating the resources to the LCH with the highest priority to the maximum extent, and if the residual resources exist, allocating the resources to the LCH with the next highest priority until the resources are allocated completely.
Optionally, each LCH corresponds to a preset deviation threshold, and if there are a plurality of LCHs for which the accumulated guaranteed data size deviation is greater than the preset deviation threshold, the determining module is configured to:
and determining the destination address of the LCH with the highest priority in the LCHs with the accumulated deviation of the data volume larger than a preset deviation threshold as the destination address of the MAC PDU.
Optionally, each destination address corresponds to a preset scheduling threshold, where the preset scheduling threshold is the longest waiting time for the destination address to be scheduled.
Optionally, when the destination address of the MAC PDU selected by the determining module is a destination address whose unscheduled time is greater than a preset scheduling threshold, the allocating module is configured to:
in the first round of allocation, if the resource is greater than or equal to B of all LCH of the destination address of the MAC PDU j And, B j The data volume transmitted for LCH is guaranteed, and B of each LCH is arranged from high to low according to the priority j Allocating resources for each LCH, if the resources are less than B of all LCHs of the destination address of the MAC PDU j The sum of (1) and (B) is then the resource allocation for each LCH according to the ratio of the PBR value of each LCH, or according to the B of each LCH j The ratio of values allocates resources for each LCH;
and if the residual resources exist, performing second-round allocation, and allocating the resources to the LCH with the highest priority to the maximum extent, and if the residual resources exist, allocating the resources to the LCH with the next highest priority until the resources are allocated completely.
Optionally, the determining module is further configured to:
if the LCH with the accumulated data volume deviation larger than the preset deviation threshold does not exist, or if the destination address with the unscheduled time larger than the preset scheduling threshold does not exist, determining the destination address of the LCH with the highest priority as the destination address of the MAC PDU according to the priority of the LCH.
In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the data transmission method described in the first aspect and any possible implementation manner of the first aspect.
In a fourth aspect, the present application provides a terminal device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to execute the executable instructions to perform the data transmission method of the first aspect and any possible implementation manner of the first aspect.
According to the data transmission method and device, when a destination address is selected for generating the MAC PDU for transmission through terminal equipment, if the LCH with the accumulated guarantee data volume deviation larger than a preset deviation threshold exists, the destination address of the LCH is determined as the destination address of the MAC PDU, or if the LCH with the unscheduled time larger than a preset scheduling threshold exists, the destination address with the unscheduled time larger than the preset scheduling threshold is determined as the destination address of the MAC PDU, then resources are distributed to the LCHs according to the destination address of the selected MAC PDU, and finally the MAC PDU is generated and sent, wherein the LCH with the accumulated guarantee data volume deviation larger than the preset deviation threshold is the LCH which cannot be scheduled for a long time, the LCH with the unscheduled time larger than the preset scheduling threshold is the LCH which cannot be scheduled for a long time, the destination address of the LCH is determined as the destination address of the MAC PDU, the resources are distributed to the LCHs according to the destination address of the selected MAC PDU, the MAC PDU is generated and sent finally, so that the LCH which cannot be scheduled for a long time can be scheduled can be avoided, and the problem that the LCH which can not be scheduled for a long time can be avoided is solved.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for the embodiments or the description of the prior art are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a flowchart of an embodiment of a data transmission method provided in the present application;
FIG. 2 is a flowchart of an embodiment of a data transmission method provided in the present application;
FIG. 3 is a flowchart of an embodiment of a data transmission method provided in the present application;
fig. 4 is a schematic structural diagram of an embodiment of a data transmission device provided in the present application;
fig. 5 is a schematic structural diagram of an embodiment of a data transmission device provided in the present application;
fig. 6 is a schematic diagram of a hardware structure of a terminal device provided in the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
First, some terms in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
1. Prioritized Bit Rate (PBR), which means the data Rate that the logical channel should preferentially guarantee.
2、B j Define LCH j The amount of data transmitted should be guaranteed to be B j Then the time T, B elapses j The amount of (c) is PBR T, B j Can be accumulated but cannot exceed a set maximum value.
3. Theoretical guaranteed data volume of LCH, theoretical guaranteed data volume of LCH in this LCP process = min (PBR × T, total data volume of LCH), T is time from last LCP process.
4. The guaranteed data volume deviation of LCH Diff = theoretical guaranteed data volume of LCH-the data volume actually sent by LCH this time, diff may be a negative value.
5. The LCH accumulated guaranteed data size deviation is an accumulated value of the LCH guaranteed data size deviation.
The terminal device of the embodiment of the application: which may be a wireless terminal or a wired terminal, which may be a device that provides voice and/or other traffic data connectivity to a user, a handheld device having wireless connection capability, or other processing device connected to a wireless modem. Wireless terminals, which may be mobile terminals such as mobile telephones (or "cellular" telephones) and computers having mobile terminals, such as portable, pocket, hand-held, computer-included, or vehicle-mounted mobile devices, that exchange language and/or data with a Radio Access Network (RAN), may communicate with one or more core networks via the RAN. Examples of such devices include Personal Communication Service (PCS) phones, cordless phones, session Initiation Protocol (SIP) phones, wireless Local Loop (WLL) stations, and Personal Digital Assistants (PDAs). A wireless Terminal may also be referred to as a system, a Subscriber Unit (Subscriber Unit), a Subscriber Station (Subscriber Station), a Mobile Station (Mobile), a Remote Station (Remote Station), a Remote Terminal (Remote Terminal), an Access Terminal (Access Terminal), a User Terminal (User Terminal), a User Agent (User Agent), and a User Device or User Equipment (User Equipment), which are not limited herein.
In NR sidelink, for broadcast and multicast services, data of different destination addresses cannot be assembled into the same mac pdu, and the radio resource is preferentially used to transmit data of a logical channel with high priority, so that a situation that a logical channel with low priority cannot be scheduled for a long time, that is, LCH starvation occurs. In order to solve the problem, when a terminal device selects a destination address for generating a MAC PDU for the current transmission, if it is determined that there is an LCH with an accumulated guaranteed data size deviation larger than a preset deviation threshold, the destination address of the LCH is determined as the destination address of the MAC PDU, or if it is determined that there is a destination address with an unscheduled time larger than a preset scheduling threshold, the destination address with an unscheduled time larger than the preset scheduling threshold is determined as the destination address of the MAC PDU, then resources are allocated to each LCH according to the destination address of the selected MAC PDU, and finally the MAC PDU is generated and transmitted, wherein the LCH with an accumulated guaranteed data size deviation larger than the preset deviation threshold is the LCH which cannot be scheduled for a long time, the LCH with an unscheduled time larger than the preset scheduling destination address is the LCH which cannot be scheduled for a long time, the destination address of the LCH is determined as the destination address of the MAC PDU, the LCH resources are allocated to each LCH according to the destination address of the selected MAC PDU, and finally the LCH resources are generated and the LCH can be scheduled for the long-time, thereby avoiding the LCH scheduling problem. Hereinafter, a specific implementation process of the data transmission method provided by the present application is described in detail through a specific embodiment.
Fig. 1 is a flowchart of an embodiment of a data transmission method provided in the present application, where an execution subject in the present embodiment may be a terminal device, and as shown in fig. 1, the method of the present embodiment may include:
s101, when terminal equipment selects a destination address for generating an MAC PDU (media access control protocol data Unit) for transmission, if LCH (logical link control) with accumulated guaranteed data volume deviation larger than a preset deviation threshold exists, determining the destination address of the LCH as the destination address of the MAC PDU, wherein the accumulated guaranteed data volume deviation is the accumulated value of the guaranteed data volume deviation of the LCH before the transmission of the terminal equipment, and the guaranteed data volume deviation is the difference value between the theoretical guaranteed data volume of the LCH and the actually sent data volume during each transmission; or, if it is determined that there is a destination address whose unscheduled time is greater than a preset scheduling threshold, determining the destination address whose unscheduled time is greater than the preset scheduling threshold as the destination address of the MAC PDU.
S102, the terminal equipment allocates resources for each LCH according to the selected destination address of the MAC PDU.
Further, the method of this embodiment may further include:
if the LCH with the accumulated data volume deviation larger than the preset deviation threshold does not exist, or if the destination address with the unscheduled time larger than the preset scheduling threshold does not exist, determining the destination address of the LCH with the highest priority as the destination address of the MAC PDU according to the priority of the LCH.
Specifically, there are two implementable manners in this embodiment, as a first implementable manner, when selecting a destination address for generating a MAC PDU for the current transmission, if it is determined that there is an LCH whose cumulative guaranteed data volume deviation is greater than a preset deviation threshold, the destination address of the LCH is determined as the destination address of the MAC PDU, and if it is determined that there is no LCH whose cumulative guaranteed data volume deviation is greater than the preset deviation threshold, the destination address of the LCH with the highest priority is determined as the destination address of the MAC PDU according to the priority of the LCH.
Each LCH corresponds to a preset deviation threshold, where the preset deviation threshold may be configured through Radio Resource Control (RRC) signaling sent by a base station, or defined in a standard, or set by a terminal device. If there are multiple LCHs with accumulated guaranteed data volume deviation greater than a preset deviation threshold, the terminal device may determine a destination address of an LCH with the highest priority among the multiple LCHs with accumulated guaranteed data volume deviation greater than the preset deviation threshold as the destination address of the MAC PDU. If the priorities of the LCHs whose accumulated guaranteed data size deviation is greater than the preset deviation threshold are the same, one LCH may be randomly selected from the LCHs.
In the first practical manner, further before S101, the method may further include:
when the terminal device performs the LCP procedure each time, that is, when the LCP procedure is performed, the theoretical guaranteed data amount of this time is calculated for each LCH, where the theoretical guaranteed data amount of the LCH = min (PBR × T, total data amount of LCH), T is time from the previous LCP procedure, and PBR is Prioritized Bit Rate (PBR);
after the terminal equipment generates the MAC PDU in each transmission, the guaranteed data volume deviation of each LCH is calculated, wherein the guaranteed data volume deviation of the LCH is Diff = the theoretical guaranteed data volume of the LCH-the data volume actually sent by the LCH at this time, and Diff can be a negative value.
For each LCH, an accumulated value of the guaranteed data volume bias for the LCH, i.e., an accumulated Diff value, is calculated.
Accordingly, in this embodiment, S102 may specifically be:
s1021, in the first round, the terminal device sets the priority of the LCH (namely the LCH with the accumulated guaranteed data volume deviation larger than the preset deviation threshold) to be the highest, and then guarantees the sent data volume B according to the sequence of the priorities of all LCHs from high to low and the LCH j Allocating resources for each LCH, and then restoring the priority of the LCH to the original priority.
And S1022, if the residual resources exist, performing second-round allocation, and the terminal equipment allocates the resources to the LCH with the highest priority to the maximum extent, and if the residual resources exist, allocates the resources to the LCH with the second highest priority until the resources are allocated completely.
As a second implementable manner, when selecting a destination address for generating a MAC PDU for this transmission, if it is determined that there is a destination address whose unscheduled time is greater than a preset scheduling threshold, where the unscheduled time is time from last scheduled time, determining the destination address whose unscheduled time is greater than the preset scheduling threshold as the destination address of the MAC PDU, and if it is determined that there is no destination address whose unscheduled time is greater than the preset scheduling threshold, determining, by the terminal device, a destination address of an LCH of the highest priority as the destination address of the MAC PDU according to the priority of the LCH.
Each destination address corresponds to a preset scheduling threshold, and the preset scheduling threshold is the longest waiting time for the destination address to be scheduled. The scheduling threshold is preset to be configured by Radio Resource Control (RRC) signaling sent by the base station, or defined in a standard, or set by the terminal device.
Accordingly, in this embodiment, S102 may specifically be:
s1021', when the terminal equipment performs the first round of allocation, if the resource is larger than or equal to B of all LCH of the destination address of the MAC PDU j That is, the resources can satisfy B of all LCH of the destination address of the MAC PDU j ,B j For LCHThe data amount sent is confirmed according to the priority from high to low and B of each LCH j Allocating resources for each LCH, if the resources are less than B of all LCHs of the destination address of the MAC PDU j The sum of (1) and (B) is then the resource allocation for each LCH according to the ratio of the PBR value of each LCH, or according to the B of each LCH j The ratio of values allocates resources for each LCH.
S1022', if there are remaining resources, perform a second round of allocation, and the terminal device allocates the resources to the LCH with the highest priority to the maximum extent, and if there are remaining resources, allocates the resources to the LCH with the second highest priority until the resources are allocated completely.
S103, the terminal equipment generates and transmits the MAC PDU according to the resources distributed by each LCH.
In the data transmission method provided by this embodiment, when selecting a destination address for generating a MAC PDU for this transmission, if it is determined that there is an LCH whose cumulative data size deviation is greater than a preset deviation threshold, the destination address of the LCH is determined as the destination address of the MAC PDU, or if it is determined that there is a destination address whose unscheduled time is greater than a preset scheduling threshold, the destination address whose unscheduled time is greater than the preset scheduling threshold is determined as the destination address of the MAC PDU, then resources are allocated to each LCH according to the destination address of the selected MAC PDU, and finally the MAC PDU is generated and transmitted, where the LCH whose cumulative data size deviation is greater than the preset deviation threshold is an LCH that cannot be scheduled for a long time, and an LCH whose unscheduled time is greater than the preset scheduling threshold is an LCH that cannot be scheduled for a long time, and the destination address of the LCH is determined as the destination address of the MAC PDU, resources are allocated to each LCH according to the destination address of the selected MAC PDU, and finally the MAC PDU is generated and transmitted, so that the LCH that cannot be scheduled for the LCH can be scheduled for a scheduling problem can be avoided, and the LCH that the LCH can be scheduled for the scheduling can be not be scheduled for a long-time can be avoided.
The technical solution of the embodiment of the method shown in fig. 1 is described in detail below by using several specific examples.
Fig. 2 is a flowchart of an embodiment of a data transmission method provided in the present application, where an execution subject in the present embodiment may be a terminal device, and as shown in fig. 2, the method of the present embodiment may include:
s201, when the terminal device performs the LCP process each time, calculating the theoretical guaranteed data size of each LCH, where the theoretical guaranteed data size of the LCH = min (PBR × T, total data size of LCH), and T is a time from the previous LCP process.
S202, after the terminal device generates the MAC PDU in each transmission, calculating a guaranteed data size deviation of each LCH, where the guaranteed data size deviation of LCH, diff = theoretical guaranteed data size of LCH-data size actually sent by LCH this time, and Diff may be a negative value.
And S203, calculating an accumulated value of the guaranteed data amount deviation of the LCH for each LCH. I.e. accumulate Diff values.
S204, when the terminal equipment selects the destination address for the MAC PDU generated by the transmission, judging whether LCH with accumulated guaranteed data quantity deviation larger than a preset deviation threshold exists, if not, executing S205, and if so, executing S206.
S205, determining the destination address of the LCH with the highest priority as the destination address of the MAC PDU according to the priority of the LCH.
S206, determining the destination address of the LCH with the accumulated data volume deviation larger than the preset deviation threshold as the destination address of the MAC PDU.
Each LCH corresponds to a preset deviation threshold, which may be configured by RRC signaling sent by the base station, or defined in the standard, or set by the terminal device. If the accumulated guaranteed data volume deviation is larger than a plurality of LCHs of the preset deviation threshold, the terminal equipment selects the LCH with the highest priority, and if the priorities of the LCHs are the same, one LCH is randomly selected from the LCHs.
S207, distributing resources for each LCH according to the selected destination address of the MAC PDU.
Specifically, if the destination address of the MAC PDU is the destination address of the LCH whose cumulative guaranteed data volume deviation is greater than the preset deviation threshold, the procedure is divided into two rounds, and in the first round, the terminal device prioritizes the LCH whose cumulative guaranteed data volume deviation is greater than the preset deviation thresholdThe level is set to be the highest, and then the transmitted data volume B is guaranteed according to the sequence of the priorities of all LCHs from high to low and the LCHs j Allocating resources for each LCH, then restoring the priority of the LCH with the accumulated guaranteed data volume deviation larger than the preset deviation threshold to the original priority, for example, assuming that 3 LCHs are provided, the priority is LCH1, LCH2 and LCH3 from high to low, if LCH3 is the LCH with the accumulated guaranteed data volume deviation larger than the preset deviation threshold, in the first round, the priority of LCH3 is set to be the highest, the priority is LCH3, LCH1 and LCH2 from high to low, and the data volume B to be transmitted is guaranteed according to the sequence and the LCH j Allocating resources for each LCH, and then restoring the priority of the LCH3 to the original priority, namely the priority from high to low is LCH1, LCH2 and LCH3, and the second round of allocation still follows the priority sequence. And if the residual resources exist, performing second round allocation, and allocating the resources to the LCH with the highest priority to the maximum extent by the terminal equipment, and if the residual resources exist, allocating the resources to the LCH with the next highest priority until the resources are allocated completely.
If the destination address of the MAC PDU is the destination address of the LCH with the highest priority, the resource allocation is carried out according to the existing LCP process, namely, the resource allocation is carried out in two rounds, and in the first round, the data volume B to be transmitted is ensured according to the sequence of the priorities of all LCHs from high to low and the LCHs j And allocating resources for each LCH, performing second-round allocation if remaining resources exist, allocating the resources to the LCH with the highest priority to the maximum extent by the terminal equipment, and allocating the resources to the LCH with the second highest priority until the resources are allocated completely if remaining resources exist.
And S208, generating and transmitting the MAC PDU according to the resources distributed by each LCH.
The scheme of the present embodiment is described below by using a specific example, for example, it is assumed that the terminal device has 3 SLRBs, which corresponds to 3 LCHs. LCH1 and LCH2 correspond to destination address 1 and LCH3 corresponds to destination address 2.LCH1 has the highest priority, LCH2 times the lowest priority, LCH 3. Each slot (slot) is assumed to be 1ms. The PBR of the LCH3 is 100 kilobytes/second, and in order to prevent starvation, the base station configures a preset deviation threshold of 750 bytes for the LCH 3. Assuming that LCH3 has more data to send, LCH1 has data to send for a period of time (e.g. tens of slots). It is assumed that there is an opportunity to transmit MAC PDU at each slot terminal device, but since LCH1 has high priority, data of destination address 1, i.e. LCH1 and LCH2, are transmitted at each time. Then the Diff value of LCH3 is increased by 100 bytes each time the LCP procedure is passed. After 8 slots, the accumulation of LCH3 guarantees that the data size deviation reaches 800 bytes. In the 9 th slot, the terminal device determines that the deviation of the accumulated guaranteed data amount of the LCH3 is greater than a preset deviation threshold (800 bytes are greater than 750 bytes), and selects the destination address of the LCH3 as the destination address of the MAC PDU. And then, placing the data of the LCH3 in the MAC PDU as much as possible, namely, in the first round of the LCP process, setting the priority of the LCH3 to be the highest, and in the second round of the LCP process, still performing the LCH according to the original priority of each LCH, namely, LCH1 is the highest, LCH2 is the second, and LCH3 is the lowest. After the data of the LCH3 is transmitted, the Diff value of LCH3 is updated to be lower than the preset deviation threshold. Therefore, the LCH with the data volume deviation larger than the preset deviation threshold can be scheduled by accumulation, and the condition that the LCH is starved is avoided.
In the data transmission method provided by this embodiment, when selecting a destination address for generating a MAC PDU for this transmission, if it is determined that there is an LCH whose cumulative guaranteed data size deviation is greater than a preset deviation threshold, the destination address of the LCH is determined as the destination address of the MAC PDU, then resources are allocated to each LCH according to the destination address of the selected MAC PDU, and finally a MAC PDU is generated and transmitted, where the LCH whose cumulative guaranteed data size deviation is greater than the preset deviation threshold is an LCH that cannot be scheduled for a long time.
Fig. 3 is a flowchart of an embodiment of a data transmission method provided in the present application, where an execution subject in the present embodiment may be a terminal device, and as shown in fig. 3, the method of the present embodiment may include:
s301, setting a preset scheduling threshold of the destination address according to each destination address, namely the longest waiting time of scheduling.
Specifically, the terminal device may receive an RRC signaling sent by the base station, where the RRC signaling configures a preset scheduling threshold corresponding to each destination address, or defines a preset scheduling threshold corresponding to each destination address in a standard, or is set by the terminal device.
S302, when selecting a destination address for generating the MAC PDU for the transmission, the terminal equipment judges whether the destination address with unscheduled time larger than a preset scheduling threshold exists, if not, S303 is executed, and if so, S304 is executed.
Wherein, the non-scheduled time is the time from the last scheduled time.
S303, determining the destination address of the LCH with the highest priority as the destination address of the MAC PDU according to the priority of the LCH.
S304, determining the destination address with the non-scheduled time larger than the preset scheduling threshold as the destination address of the MAC PDU.
S305, distributing resources for each LCH according to the selected destination address of the MAC PDU.
Specifically, if the destination address of the MAC PDU is a destination address whose unscheduled time is greater than a preset scheduling threshold, the scheduling is performed in two rounds, and if the resource is greater than or equal to B of all LCHs of the destination address of the MAC PDU, the terminal device performs the first round of allocation j That is, the resources can satisfy B of all LCH of the destination address of the MAC PDU j ,B j The data volume transmitted for LCH is guaranteed, and B of each LCH is arranged from high to low according to the priority j Allocating resources for each LCH, if the resources are less than B of all LCHs of the destination address of the MAC PDU j The sum of (1) and (B) is then the resource allocation for each LCH according to the ratio of the PBR value of each LCH, or according to the B of each LCH j The ratio of values allocates resources for each LCH.
And if the residual resources exist, performing second-round allocation, and allocating the resources to the LCH with the highest priority to the maximum extent by the terminal equipment, and if the residual resources exist, allocating the LCH with the next highest priority to the LCH with the next highest priority until the resources are allocated completely.
If the destination address of the MAC PDU is the destination address of the LCH with the highest priority, the resource allocation is carried out according to the existing LCP process, namely, the resource allocation is carried out in two rounds, and in the first round, the data volume B to be transmitted is ensured according to the sequence of the priorities of all LCHs from high to low and the LCHs j And allocating resources for each LCH, performing second-round allocation if remaining resources exist, allocating the resources to the LCH with the highest priority to the maximum extent by the terminal equipment, and allocating the resources to the LCH with the second highest priority until the resources are allocated completely if remaining resources exist.
And S306, generating and sending the MAC PDU according to the resources distributed by each LCH.
The scheme of the present embodiment is described below by using a specific example, for example, it is assumed that the terminal device has 4 SLRBs, which corresponds to 4 LCHs. LCH1 and LCH2 correspond to destination address 1, LCH3 and 4 correspond to destination address 2. The priorities are LCH1, LCH2, LCH3 and LCH4 from high to low. Assume each slot is 1ms. To prevent starvation, a preset scheduling threshold of 10ms is set for destination address 2. It is assumed that there is an opportunity to transmit MAC PDUs at each slot terminal. Assuming that LCH3 and LCH4 are scheduled at the 1 st slot, and then LCH1 and LCH2 have data to send for a period of time (e.g. tens of slots), at the 2 nd slot, since LCH1 has higher priority, data at the destination address 1, i.e. LCH1 or LCH2, will be sent. The 3 rd to 11 th slots still transmit the data of the destination address 1. Then in the 12 th slot, the terminal device determines that the unscheduled time of the destination address 2 is greater than the preset scheduling threshold, selects the destination address 2 as the destination address of the MAC PDU, and combines the data of LCH3 and LCH4 into the MAC PDU. In the first round of LCP procedure, scheduling all LCHs of the destination address as much as possible, for example, when the resource is insufficient to satisfy Bj of LCH3 and LCH4, the terminal device allocates the resource to LCH3 and LCH4 according to the proportion of PBR value of LCH3 and LCH4, or according to B of LCH3 and LCH4 j The ratio of values allocates resources to them, which prevents all resources from being used for LCH3 and LCH4 from getting resources. Therefore, LCH which can not be scheduled for a long time can be scheduled, and the condition that the LCH is starved is avoided.
In the data transmission method provided by this embodiment, when a destination address is selected for generating a MAC PDU for this transmission by a terminal device, if it is determined that there is a destination address whose unscheduled time is greater than a preset scheduling threshold, the destination address whose unscheduled time is greater than the preset scheduling threshold is determined as the destination address of the MAC PDU, then resources are allocated to each LCH according to the selected destination address of the MAC PDU, and finally the MAC PDU is generated and transmitted, where an LCH whose unscheduled time is greater than the destination address of the preset scheduling threshold, that is, an LCH that cannot be scheduled for a long time is also generated and transmitted.
Fig. 4 is a schematic structural diagram of an embodiment of a data transmission device provided in the present application, and as shown in fig. 4, the device of the present embodiment may include: the device comprises a determining module 11, an allocating module 12 and a sending module 13, wherein the determining module 11 is configured to, when a destination address is selected for generating a MAC PDU of a media access control protocol for this transmission, determine, if it is determined that a logical channel LCH with an accumulated guaranteed data volume deviation larger than a preset deviation threshold exists, the destination address of the LCH as the destination address of the MAC PDU, the accumulated guaranteed data volume deviation is an accumulated value of the guaranteed data volume deviation of the LCH before this transmission, and the guaranteed data volume deviation is a difference value between a theoretical guaranteed data volume of the LCH and an actually sent data volume at each transmission; or if determining that the destination address with the unscheduled time larger than a preset scheduling threshold exists, determining the destination address with the unscheduled time larger than the preset scheduling threshold as the destination address of the MAC PDU;
the allocation module 12 is configured to allocate resources to each LCH according to the selected destination address of the MAC PDU;
the sending module 13 is configured to generate and send a MAC PDU according to the resource allocated by each LCH.
Further, the determining module 11 is further configured to:
if the LCH with the accumulated data volume deviation larger than the preset deviation threshold does not exist, or if the destination address with the unscheduled time larger than the preset scheduling threshold does not exist, determining the destination address of the LCH with the highest priority as the destination address of the MAC PDU according to the priority of the LCH.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 5 is a schematic structural diagram of an embodiment of a data transmission device provided in the present application, and as shown in fig. 5, the device of the present embodiment may further include, on the basis of the device structure shown in fig. 4: a calculating module 14, where the calculating module 14 is configured to calculate, for each LCH, the current theoretical guaranteed data size when the LCP procedure is performed each time, where the theoretical guaranteed data size of the LCH = min (PBR × T, total data size of LCH), T is time from the previous LCP procedure, and PBR is a priority bit rate;
the calculation module 14 is further configured to: after the MAC PDU is generated in each transmission, the guaranteed data volume deviation of each LCH is calculated, wherein the guaranteed data volume deviation of the LCH = theoretical guaranteed data volume of the LCH-data volume actually sent by the LCH at this time;
the calculation module 14 is further configured to: for each LCH, an accumulated value of the guaranteed data amount deviations of the LCH is calculated.
Optionally, when the destination address of the MAC PDU selected by the determining module 11 is the destination address of the LCH, the allocating module 12 is configured to:
in the first round, the priority of the LCH is set to be the highest, and then the transmitted data volume B is ensured according to the sequence of the priorities of all LCHs from high to low and the LCHs j Allocating resources for each LCH, and restoring the priority of the LCH to the original priority;
and if the residual resources exist, performing second-round allocation, and allocating the resources to the LCH with the highest priority to the maximum extent, and if the residual resources exist, allocating the resources to the LCH with the next highest priority until the resources are allocated completely.
Optionally, each LCH corresponds to a preset deviation threshold, and if there are a plurality of LCHs for which the accumulated guaranteed data size deviation is greater than the preset deviation threshold, the determining module 11 is configured to:
and determining the destination address of the LCH with the highest priority in the LCHs with the accumulated deviation of the data volume larger than a preset deviation threshold as the destination address of the MAC PDU.
Optionally, each destination address corresponds to a preset scheduling threshold, where the preset scheduling threshold is the longest waiting time for the destination address to be scheduled.
Optionally, when the destination address of the MAC PDU selected by the determining module 11 is a destination address whose unscheduled time is greater than a preset scheduling threshold, the allocating module 12 is configured to:
in the first round of allocation, if the resource is greater than or equal to B of all LCH of the destination address of the MAC PDU j And, B j The data volume transmitted for LCH is guaranteed, and B of each LCH is arranged from high to low according to the priority j Allocating resources for each LCH, if the resources are less than B of all LCHs of the destination address of the MAC PDU j According to the proportion of the PBR value of each LCH, allocating resources to each LCH, or according to the B of each LCH j The ratio of values allocates resources for each LCH;
and if the residual resources exist, performing second-round allocation, and allocating the resources to the LCH with the highest priority to the maximum extent, and if the residual resources exist, allocating the resources to the LCH with the next highest priority until the resources are allocated completely.
The data transmission apparatus of this embodiment may be configured to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 6 is a schematic diagram of a hardware structure of a terminal device provided in the present application. As shown in fig. 6, the terminal device 20 is configured to implement the operation corresponding to the server or the terminal device in any of the above method embodiments, where the terminal device 20 of this embodiment may include: a memory 21 and a processor 22;
a memory 21 for storing a computer program;
and a processor 22 for executing the computer program stored in the memory to implement the data transmission method in the above-mentioned embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 21 may be separate or integrated with the processor 22.
When the memory 21 is a device separate from the processor 22, the terminal device 20 may further include:
and a bus 23 for connecting the memory 21 and the processor 22.
Optionally, this embodiment further includes: a communication interface 24, the communication interface 24 being connectable to the processor 22 via a bus 23. The processor 22 may control the communication interface 23 to implement the above-described receiving and transmitting functions of the terminal device 20.
The terminal device provided in this embodiment may be used to execute the data transmission method, and the implementation manner and the technical effect thereof are similar, and this embodiment is not described herein again.
The present application also provides a computer-readable storage medium including a computer program for implementing the data transmission method in the above embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of hardware and software modules.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The computer-readable storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the scope of the technical solutions of the embodiments of the present application.

Claims (14)

1. A method of data transmission, comprising:
when terminal equipment selects a destination address for generating a media access control protocol data unit (MAC PDU) for transmission, if a Logical Channel (LCH) with an accumulated guaranteed data volume deviation larger than a preset deviation threshold is determined to exist, the destination address of the LCH is determined as the destination address of the MAC PDU, the accumulated guaranteed data volume deviation is an accumulated value of the guaranteed data volume deviation of the LCH before the transmission of the terminal equipment, and the guaranteed data volume deviation is a difference value between a theoretical guaranteed data volume of the LCH and an actual transmitted data volume during each transmission; or if determining that the destination address with the unscheduled time larger than a preset scheduling threshold exists, determining the destination address with the unscheduled time larger than the preset scheduling threshold as the destination address of the MAC PDU;
the terminal equipment allocates resources for each LCH according to the selected destination address of the MAC PDU;
the terminal equipment generates and sends MAC PDU according to the resources distributed by each LCH;
the method further comprises the following steps:
when the terminal device performs the logical channel priority LCP process each time, calculating the theoretical guaranteed data volume of this time for each LCH, where the theoretical guaranteed data volume of the LCH = min (PBR × T, total data volume of LCH), T is time from the last LCP process, and PBR is the priority bit rate;
after the terminal equipment generates the MAC PDU in each transmission, calculating the guaranteed data volume deviation of each LCH, wherein the guaranteed data volume deviation of the LCH = the theoretical guaranteed data volume of the LCH-the data volume actually sent by the LCH at this time;
and the terminal equipment calculates the accumulated value of the deviation of the guaranteed data volume of the LCH for each LCH.
2. The method of claim 1, wherein when the destination address of the selected MAC PDU is the destination address of the LCH, the terminal device allocates resources for each LCH according to the selected destination address of the MAC PDU, comprising:
in the first round, the terminal device sets the priority of the LCH to be the highest, and then guarantees the sent data volume B according to the sequence of the priorities of all LCHs from high to low and the LCHs j Allocating resources for each LCH, and restoring the priority of the LCH to the original priority;
and if the residual resources exist, performing second-round allocation, and allocating the resources to the LCH with the highest priority to the maximum extent by the terminal equipment, and if the residual resources exist, allocating the LCH with the second highest priority to the LCH with the second highest priority until the resources are allocated completely.
3. The method of claim 1, wherein each LCH corresponds to a predetermined deviation threshold, and wherein if there are more LCHs with accumulated guaranteed data size deviation greater than the predetermined deviation threshold, the terminal device determines the destination address of the LCH as the destination address of the MAC PDU, comprising:
and the terminal equipment determines the destination address of the LCH with the highest priority in the LCHs with the accumulated data volume deviation larger than a preset deviation threshold as the destination address of the MAC PDU.
4. The method of claim 1, wherein each destination address corresponds to a predetermined scheduling threshold, and wherein the predetermined scheduling threshold is a maximum waiting time for the destination address to be scheduled.
5. The method of claim 1, wherein when the destination address of the selected MAC PDU is a destination address which is not scheduled for a time greater than a preset scheduling threshold, the terminal device allocates resources for each LCH according to the selected destination address of the MAC PDU, including:
when the terminal equipment is allocated in the first round, if the resource is greater than or equal to B of all LCH of the destination address of the MAC PDU j And, B j The data volume transmitted for LCH is guaranteed, and B of each LCH is arranged from high to low according to the priority j Allocating resources for each LCH, if the resources are less than B of all LCHs of the destination address of the MAC PDU j According to the proportion of the PBR value of each LCH, allocating resources to each LCH, or according to the B of each LCH j The ratio of values allocates resources for each LCH;
and if the residual resources exist, allocating the resources to the LCH with the highest priority to the maximum extent by the terminal equipment, and if the residual resources exist, allocating the resources to the LCH with the next highest priority until the resources are allocated completely.
6. The method according to any one of claims 1-5, further comprising:
if it is determined that there is no LCH for which the cumulative guaranteed data size deviation is greater than a preset deviation threshold, or if it is determined that there is no destination address for which the unscheduled time is greater than a preset scheduling threshold, the terminal device determines the destination address of the LCH of the highest priority as the destination address of the MAC PDU according to the priority of the LCH.
7. A data transmission apparatus, comprising:
a determining module, configured to determine, when a destination address is selected for a MAC PDU that generates a MAC PDU for this transmission, if it is determined that there is a logical channel LCH whose accumulated guaranteed data amount deviation is greater than a preset deviation threshold, the destination address of the LCH as the destination address of the MAC PDU, where the accumulated guaranteed data amount deviation is an accumulated value of the guaranteed data amount deviation of the LCH before this transmission, and the guaranteed data amount deviation is a difference between a theoretical guaranteed data amount of the LCH and an actually sent data amount at each transmission; or if the destination address with the non-scheduled time larger than the preset scheduling threshold is determined to exist, determining the destination address with the non-scheduled time larger than the preset scheduling threshold as the destination address of the MAC PDU;
the distribution module is used for distributing resources for each LCH according to the selected destination address of the MAC PDU;
a sending module, configured to generate and send a MAC PDU according to the resource allocated by each LCH;
the device further comprises:
a calculation module, configured to calculate, for each LCH, a current theoretically guaranteed data volume when performing a logical channel priority LCP procedure each time, where the theoretically guaranteed data volume of the LCH = min (PBR × T, total data volume of the LCH), T is time from a previous LCP procedure, and PBR is a priority bit rate;
the calculation module is further configured to: after the MAC PDU is generated in each transmission, the guaranteed data size deviation of each LCH is calculated, wherein the guaranteed data size deviation of the LCH = the theoretical guaranteed data size of the LCH-the data size actually sent by the LCH at this time;
the calculation module is further configured to: for each LCH, an accumulated value of the guaranteed data amount deviations of the LCH is calculated.
8. The apparatus of claim 7, wherein when the destination address of the MAC PDU selected by the determining module is the destination address of the LCH, the allocating module is configured to:
in the first round, the priority of the LCH is set to be the highest, and then the transmitted data volume B is ensured according to the sequence of the priorities of all LCHs from high to low and the LCHs j Allocating resources for each LCH, and restoring the priority of the LCH to the original priority;
and if the residual resources exist, performing second-round allocation, and allocating the resources to the LCH with the highest priority to the maximum extent, and if the residual resources exist, allocating the resources to the LCH with the next highest priority until the resources are allocated completely.
9. The apparatus of claim 7, wherein each LCH corresponds to a predetermined deviation threshold, and wherein if there are more LCHs for which the cumulative guaranteed data amount deviation is greater than the predetermined deviation threshold, the determining module is configured to:
and determining the destination address of the LCH with the highest priority in the LCHs with the accumulated deviation of the data volume larger than a preset deviation threshold as the destination address of the MAC PDU.
10. The apparatus of claim 7, wherein each destination address corresponds to a predetermined scheduling threshold, and wherein the predetermined scheduling threshold is a maximum latency time for which the destination address is scheduled.
11. The apparatus of claim 7, wherein when the destination address of the MAC PDU selected by the determining module is a destination address that is not scheduled for a time greater than a preset scheduling threshold, the allocating module is configured to:
if the resource is larger than or equal to the target of the MAC PDU in the first round of allocationB of all LCH of the address of (1) j And, B j The data volume transmitted for LCH is guaranteed, and B of each LCH is arranged from high to low according to the priority j Allocating resources for each LCH, if the resources are less than B of all LCHs of the destination address of the MAC PDU j According to the proportion of the PBR value of each LCH, allocating resources to each LCH, or according to the B of each LCH j The ratio of values allocates resources for each LCH;
and if the residual resources exist, performing second-round allocation, and allocating the resources to the LCH with the highest priority to the maximum extent, and if the residual resources exist, allocating the resources to the LCH with the next highest priority until the resources are allocated completely.
12. The apparatus of any of claims 7-11, wherein the determining module is further configured to:
if the LCH with the accumulated data volume deviation larger than the preset deviation threshold does not exist, or if the destination address with the unscheduled time larger than the preset scheduling threshold does not exist, determining the destination address of the LCH with the highest priority as the destination address of the MAC PDU according to the priority of the LCH.
13. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the data transmission method according to any one of claims 1 to 6.
14. A terminal device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the data transmission method of any one of claims 1-6 via execution of the executable instructions.
CN201910741215.1A 2019-08-12 2019-08-12 Data transmission method and device Active CN110446263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910741215.1A CN110446263B (en) 2019-08-12 2019-08-12 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910741215.1A CN110446263B (en) 2019-08-12 2019-08-12 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN110446263A CN110446263A (en) 2019-11-12
CN110446263B true CN110446263B (en) 2022-12-06

Family

ID=68434773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910741215.1A Active CN110446263B (en) 2019-08-12 2019-08-12 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN110446263B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778477A (en) * 2010-03-08 2010-07-14 上海华为技术有限公司 Scheduling resource distributing method and base station
CN107079530A (en) * 2015-01-30 2017-08-18 松下电器(美国)知识产权公司 Priority of logical channels sequencer procedure for sidelink logic channel
CN107920390A (en) * 2016-10-10 2018-04-17 展讯通信(上海)有限公司 Uplink logic channel dispatching method, device and user equipment
CN108012332A (en) * 2016-11-01 2018-05-08 华为技术有限公司 A kind of resource allocation methods and terminal
CN109587726A (en) * 2017-09-28 2019-04-05 华为技术有限公司 Communication means, terminal device and access network equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600229B (en) * 2009-07-24 2011-06-29 中国科学院计算技术研究所 Method for scheduling wireless link resource in wireless communication system
WO2018201459A1 (en) * 2017-05-05 2018-11-08 Oppo广东移动通信有限公司 Method for allocating logical channel resources and terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778477A (en) * 2010-03-08 2010-07-14 上海华为技术有限公司 Scheduling resource distributing method and base station
CN107079530A (en) * 2015-01-30 2017-08-18 松下电器(美国)知识产权公司 Priority of logical channels sequencer procedure for sidelink logic channel
CN107920390A (en) * 2016-10-10 2018-04-17 展讯通信(上海)有限公司 Uplink logic channel dispatching method, device and user equipment
CN108012332A (en) * 2016-11-01 2018-05-08 华为技术有限公司 A kind of resource allocation methods and terminal
CN109587726A (en) * 2017-09-28 2019-04-05 华为技术有限公司 Communication means, terminal device and access network equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LCP for LCHs with Multiple RRC Configured Mappings;INTERDIGITAL INC;《3GPP TSG-RAN WG2 #99bis R2-1710659》;20170929;第2、3节 *

Also Published As

Publication number Publication date
CN110446263A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN110838899B (en) Direct communication link resource allocation method and terminal
CN110505653B (en) Method, equipment and computer storage medium for controlling service quality
CN109041114B (en) Method for sending cache status report and user equipment
CN108633088B (en) Resource scheduling method and device
CN112243298B (en) Scheduling method and device
CN114830818A (en) QoS management method, relay terminal, PCF network element, SMF network element and remote terminal
CN111108771A (en) Data packet distribution method, sender device, receiver device, and storage medium
CN112584342A (en) Communication method and communication device
CN109756986B (en) Uplink data packet resource allocation method and user terminal
WO2021170108A1 (en) Information processing method and apparatus, device and computer-readable storage medium
CN108141843B (en) Data transmission method, user equipment and network equipment
CN108809510B (en) Data transmission processing method and device
CN110446263B (en) Data transmission method and device
WO2015021609A1 (en) Method and device for allocating data transmission resource
CN107371263B (en) Method and device for scheduling uplink resources
CN111132223A (en) Data packet transmission method and communication equipment
CN114125936A (en) Resource scheduling method, device and storage medium
CN112242877A (en) Data transmission method, device and system
CN107786310B (en) Data packet transmission method and node
CN107079468B (en) Resource request method and equipment
CN113950090B (en) 5G network priority automatic adjustment method and device and electronic equipment
RU2735672C1 (en) Method and device for transmitting data
CN113891398B (en) Resource determination method, equipment and storage medium
CN112437080B (en) Service authentication method and device
EP4346273A1 (en) Data transmission method and apparatus, device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant