Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
In this embodiment, a resource scheduling adjustment method is provided, and fig. 1 is a flowchart of a resource scheduling adjustment method according to an embodiment of the present invention, as shown in fig. 1, the flowchart includes the following steps:
step S102, receiving a medium access control MAC protocol data unit PDU data packet sent by a terminal;
step S104, judging whether the PDU data packet carries buffer status report BSR information;
and step S106, under the condition that the judgment result is negative, adjusting the resource scheduling mode distributed to the terminal by the base station according to the current component element in the PDU data packet.
Optionally, in this embodiment, application scenarios of the resource scheduling adjustment method include, but are not limited to: scheduling a Buffer Status Reporting (BSR). In the application scenario, a Media Access Control (MAC) Protocol Data Unit (PDU) Data packet sent by a terminal is received; judging whether the PDU data packet carries Buffer Status Report (BSR) information or not; and under the condition that the judgment result is negative, adjusting the resource scheduling mode distributed to the terminal by the base station according to the current component element in the PDU data packet. That is to say, in this embodiment, even if the base station does not receive the BSR information carrying the buffer status report sent by the terminal, the resource scheduling manner allocated by the base station to the terminal can be adjusted according to the current constituent element included in the received PDU packet to meet the requirement of the terminal for sending data, so as to avoid the problem in the related art that the terminal notifies the base station of the data to be sent of the terminal through the buffer status report BSR, the base station performs resource scheduling allocation of the next step after knowing the BSR of the terminal, and when the base station cannot know the BSR of the terminal, the BSR of the terminal maintained by the base station is inconsistent with the buffer data of the terminal itself, which results in an erroneous judgment made by the base station in the scheduling process. Through the embodiment, the problem of low base station resource scheduling accuracy caused by the fact that the base station cannot accurately acquire the buffer status report BSR sent by the terminal in the related technology is solved, and the effect of improving the base station resource scheduling accuracy is achieved.
Optionally, in this embodiment, when it is determined that the PDU packet carries the buffer status report BSR information, the method includes, but is not limited to: and when the PDU data packet is judged to include the information carrying the BSR and the MAC control element carrying the padding BSR but not include the data transmitted through the logic channel, and the number of bytes included in the PDU data packet is smaller than a second threshold value, adjusting a resource scheduling mode allocated to the terminal by the base station according to the current constituent element in the PDU data packet.
Optionally, in this embodiment, the adjusting, according to the current constituent element in the PDU packet, the resource scheduling manner allocated by the base station to the terminal includes, but is not limited to: the terminal is allocated with a predetermined number of new bytes according to the type of the current component element, or allocated with a predetermined number of bytes according to the type of the current component element.
The present embodiment will be described below by way of example with reference to specific examples.
This example provides a resource scheduling adjustment method, which is applied to scheduling and maintaining a buffer status report BSR. As shown in fig. 2, the header of one MAC Protocol Data Unit (PDU) includes one or more sub-headers, and each sub-header corresponds to one MAC Control Element (MAC Control Element, abbreviated as MAC CE), one MAC Service Data Unit (Service Data Unit, abbreviated as SDU), or padding.
36.321 also stipulates the sequence of the MAC layer transmission data of the terminal to follow the priority, and the terminal should transmit as much data as possible, from high to low:
1) a MAC Control Element (MAC Control Element, abbreviated as MAC CE) carrying a Radio Network Temporary identity Identifier (Radio Network Temporary identity Identifier, abbreviated as C-RNTI) or an Uplink Common Control Channel (UL-CCCH);
2) MAC CE carrying BSR, but not padding BSR;
3) a MAC CE carrying a Power Headroom Report (PHR);
4) data from logical channels, but not the uplink common control channel UL-CCCH;
5) MAC CE carrying padding BSR.
With the above protocol description, after receiving the MAC PDU of the terminal, the base station may perform an analysis operation on the MAC PDU data:
if only data carrying a power headroom report PHR or a logical channel or padding BSR exists or a MAC control element CE carrying a buffer status report BSR with a higher priority is not included, it is indicated that the BSR at the terminal side is not 0 at this time (the protocol specifies that the BSR of the terminal changes from nonzero to 0 and the BSR needs to be reported to the base station at this time), and the BSR data maintained by the base station is 0 at this time, which indicates that the BSR maintenance of the base station and the terminal is inconsistent. In this case, the base station needs to perform an additional grant at this time, so that the terminal can continue to transmit data, and the number of bytes of the additional grant is 9 bytes.
If there are MAC CE carrying buffer status report BSR with higher priority and MAC control element CE filling Padding BSR with lower priority, not including data of logical channel, and the size of this MAC control element PDU is smaller than 11 bytes, it indicates that after the MAC CE carrying buffer status report BSR with higher priority is packed, the remaining number of bytes is not enough to carry data of logical channel of terminal because scheduling authorization of base station is too small, and the terminal selects to pack with Padding to satisfy the number of bytes authorized by base station. In this case, the base station grants at this time at least 11 bytes to the terminal next time, so that the terminal can transmit data of the logical channel.
In an optional embodiment, adjusting the resource scheduling manner allocated by the base station to the terminal according to the current constituent element in the PDU packet includes the following steps:
step S11, allocating a predetermined number of new bytes to the terminal according to the type of the current component, wherein the new bytes are used for receiving the components of the PDU packet sent by the terminal except the current component.
It should be noted that the types of the above current constituent elements include, but are not limited to: MAC control elements carrying Padding BSRs, data transmitted over logical channels, and Padding.
Through the optional implementation manner, the terminal is allocated with the predetermined number of newly added bytes according to the type of the current constituent element, so that the problem of low base station resource scheduling accuracy caused by the fact that the base station cannot accurately acquire the buffer status report BSR sent by the terminal is further solved, and the effect of improving the base station resource scheduling accuracy is further achieved.
In an optional embodiment, allocating a predetermined number of new bytes to the terminal according to the type of the current component element comprises:
step S21, when the current component element includes a designated element with a sending priority lower than the sending priority of the MAC control element carrying the description information of the buffer status report BSR, and the number of bytes for receiving the data sent by the terminal is smaller than a first threshold, allocating a first predetermined number of the new bytes to the terminal according to the type of the current component element; wherein, the specified element comprises at least one of the following elements: the MAC control element carrying the power headroom report PHR, the data transmitted through the logical channel, and the MAC control element carrying the padding BSR.
Note that the fact that the number of bytes used for receiving the data transmitted by the terminal in step S21 is smaller than the first threshold means that: the base station allocates the number of bytes to the terminal to be 0.
Optionally, in this embodiment, when determining that the number of bytes used for receiving the data sent by the terminal is 0 through the low transmission priority specified elements (for example, the MAC control element carrying the power headroom report PHR, the data transmitted through the logical channel, and the MAC control element carrying the padding BSR) included in the current component elements, a first predetermined number of the newly added bytes are allocated to the terminal according to the type of the current component element, where the newly added bytes may be 9 bytes, for example.
Through the optional implementation manner, when the PDU data packet is judged not to carry the BSR information, a first preset number of newly added bytes are distributed to the terminal according to the type of the current component element of the PDU data packet, so that the terminal can send other data to the base station, and further, when the PDU data packet is judged not to carry the BSR information, the resources of the base station can still be accurately scheduled according to the current component element included in the PDU data packet, so that the data of the terminal can be sent to the base station.
In an optional implementation manner, when it is determined that the PDU data packet includes the MAC control element carrying the BSR information and the padding BSR but does not include data transmitted through a logical channel, and the number of bytes included in the PDU data packet is smaller than a second threshold, a second predetermined number of the newly added bytes is allocated to the terminal according to the type of the current component.
It should be noted that the number of bytes included in the second threshold is 11; the second predetermined number of additional bytes is at least 11 bytes.
Through the above optional implementation manner, when it is determined that the PDU data packet includes the MAC control element carrying the BSR and the padding BSR but does not include the data transmitted through the logical channel, and the number of bytes included in the PDU data packet is smaller than a second threshold (for example, 11 bytes), the base station allocates a buffer space of a second predetermined number of the newly added bytes (for example, at least 11 bytes) to the terminal, so that the terminal can send the data transmitted through the logical channel to the base station, and the accuracy of scheduling by the base station is further improved.
In an optional embodiment, before determining whether the PDU packet carries buffer status report BSR information, the method further includes the following steps:
step S31, according to the logical channel index information of the MAC layer, analyzing the information included in each MAC subheader of the PDU data packet;
step S32, determining the MAC control element corresponding to each sub-header, and obtaining the data included in the MAC service data unit SDU located after the MAC control element in the MAC sub-header and padding data to obtain the current component element.
By the optional implementation mode, the PDU data packet is unpacked to obtain the current constituent elements included in the PDU data, so that the base station can perform resource scheduling allocation according to the current constituent elements, and further, the problem of low accuracy of base station resource scheduling caused by the fact that the base station cannot accurately acquire the buffer status report BSR sent by the terminal in the related art is solved, and the effect of improving the accuracy of base station resource scheduling is achieved.
The following describes embodiments of the present invention with reference to specific examples.
In the example, the behavior of the terminal group package is obtained by analyzing the relevant information of the PDU data packet of the MAC protocol data unit sent by the terminal, and the scheduling authorization is adjusted by combining the BSR and the scheduling information maintained by the base station.
Fig. 3 is a flowchart (one) of a resource scheduling adjustment method according to an embodiment of the present invention, applied to buffer status report BSR scheduling maintenance, as shown in fig. 3, the method includes:
step S302, a base station receives the information of the MAC protocol data unit PDU sent by a terminal and unpacks the protocol data unit MAC PDU;
after receiving the MAC PDU sent by the UE, the base station carries out unpacking operation according to the composition of the MAC PDU in the protocol, and the composition of the protocol PDU comprises an MAC head and an MAC load;
the MAC head can be divided into one or more MAC sub-heads, and the MAC load is divided into MAC CE, MAC SDU and Padding;
step S304, judging whether the MAC protocol data unit PDU contains the MAC control element CE, the MAC service data unit SDU and Padding of the buffer status report BSR according to the analysis result;
the description of the Local Character set IDentifier (LCID) in each MAC subheader in a MAC PDU is shown in the logical channel ID index of table 1:
table 1:
| Index
|
LCID values
|
| 00000
|
CCCH
|
| 00001-01010
|
Identity of the logical channel
|
| 01011-11001
|
Reserved
|
| 11010
|
Power Headroom Report
|
| 11011
|
C-RNTI
|
| 11100
|
Truncated BSR
|
| 11101
|
Short BSR
|
| 11110
|
Long BSR
|
| 11111
|
Padding |
in a MAC PDU, only one type of BSR, i.e. one of a Truncated BSR short BSR or a Long BSR, is contained. First, the MAC subheader is traversed to determine whether the logical channel ID index included in the MAC subheader is 11100, 11101, or 11110, or whether padding of 11111 is included. After traversing the MAC subheads, determining the MAC CE corresponding to each MAC subhead, and then continuously traversing the MAC CEs to determine whether MAC SDUs exist;
step S306, if the MAC protocol data unit PDU does not contain the MAC control element CE of the buffer status report BSR, the MAC service data unit SDU and padding, and the BSR of the terminal maintained by the base station at the moment is 0, the base station performs an additional 9-byte authorization;
optionally, if the MAC protocol data unit PDU does not include any type of buffer status report BSR, includes an MAC service data unit SDU, does not include padding, and the buffer status report BSR information of the terminal maintained inside the base station is 0 at this time, the base station performs an additional operation of authorizing 9 bytes to the terminal;
step S308, if the MAC protocol data unit PDU contains the MAC control element CE of the buffer status report BSR, does not contain the MAC service data unit SDU, contains padding, and the size of the MAC protocol data unit PDU is smaller than 11 bytes, the next authorization of the base station to the terminal is at least 11 bytes;
optionally, if the MAC protocol data unit PDU includes any type of buffer status report BSR, does not include the MAC service data unit SDU, includes padding, and the size of the MAC protocol data unit PDU is smaller than 11 bytes, the next grant to the terminal by the base station needs to be at least 11 bytes.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a resource scheduling adjustment apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a block diagram of a resource scheduling adjusting apparatus according to an embodiment of the present invention, and as shown in fig. 4, the apparatus includes:
1) a receiving module 42, configured to receive a medium access control MAC protocol data unit PDU data packet sent by a terminal;
2) a determining module 44, configured to determine whether the PDU packet carries buffer status report BSR information;
3) and an adjusting module 46, configured to adjust, if the determination result is negative, a resource scheduling manner allocated by the base station to the terminal according to the current constituent element in the PDU data packet.
Optionally, in this embodiment, application scenarios of the resource scheduling adjustment method include, but are not limited to: scheduling a Buffer Status Reporting (BSR). In the application scenario, a Media Access Control (MAC) Protocol Data Unit (PDU) Data packet sent by a terminal is received; judging whether the PDU data packet carries Buffer Status Report (BSR) information or not; and under the condition that the judgment result is negative, adjusting the resource scheduling mode distributed to the terminal by the base station according to the current component element in the PDU data packet. That is to say, in this embodiment, even if the base station does not receive the BSR information carrying the buffer status report sent by the terminal, the resource scheduling manner allocated by the base station to the terminal can be adjusted according to the current constituent element included in the received PDU packet to meet the requirement of the terminal for sending data, so as to avoid the problem in the related art that the terminal notifies the base station of the data to be sent of the terminal through the buffer status report BSR, the base station performs resource scheduling allocation of the next step after knowing the BSR of the terminal, and when the base station cannot know the BSR of the terminal, the BSR of the terminal maintained by the base station is inconsistent with the buffer data of the terminal itself, which results in an erroneous judgment made by the base station in the scheduling process. Through the embodiment, the problem of low base station resource scheduling accuracy caused by the fact that the base station cannot accurately acquire the buffer status report BSR sent by the terminal in the related technology is solved, and the effect of improving the base station resource scheduling accuracy is achieved.
Optionally, in this embodiment, when it is determined that the PDU packet carries the buffer status report BSR information, the method includes, but is not limited to: and when the PDU data packet is judged to include the information carrying the BSR and the MAC control element carrying the padding BSR but not include the data transmitted through the logic channel, and the number of bytes included in the PDU data packet is smaller than a second threshold value, adjusting a resource scheduling mode allocated to the terminal by the base station according to the current constituent element in the PDU data packet.
Optionally, in this embodiment, the adjusting, according to the current constituent element in the PDU packet, the resource scheduling manner allocated by the base station to the terminal includes, but is not limited to: the terminal is allocated with a predetermined number of new bytes according to the type of the current component element, or allocated with a predetermined number of bytes according to the type of the current component element.
In an alternative implementation manner, fig. 5 is a block diagram (a) of a resource scheduling adjustment apparatus according to an embodiment of the present invention, and as shown in fig. 5, the adjustment module 46 includes:
1) the allocating unit 52 is configured to allocate a predetermined number of new bytes to the terminal according to the type of the current component, where the new bytes are used to receive the components of the PDU packet sent by the terminal except for the current component.
It should be noted that the types of the above current constituent elements include, but are not limited to: MAC control elements carrying Padding BSRs, data transmitted over logical channels, and Padding.
Through the optional implementation manner, the terminal is allocated with the predetermined number of newly added bytes according to the type of the current constituent element, so that the problem of low base station resource scheduling accuracy caused by the fact that the base station cannot accurately acquire the buffer status report BSR sent by the terminal is further solved, and the effect of improving the base station resource scheduling accuracy is further achieved.
Optionally, the allocating unit 52 is further configured to allocate, when the current component includes a designated element whose sending priority is lower than the sending priority of the MAC control element carrying the description information of the BSR, and the number of bytes used for receiving the data sent by the terminal is smaller than a first threshold, a first predetermined number of the new bytes to the terminal according to the type of the current component; wherein, the specified element comprises at least one of the following elements: the MAC control element carrying the power headroom report PHR, the data transmitted through the logical channel, and the MAC control element carrying the padding BSR.
Note that, the number of bytes used for receiving data transmitted by the terminal being smaller than the first threshold means: the base station allocates the number of bytes to the terminal to be 0.
Optionally, in this embodiment, when determining that the number of bytes used for receiving the data sent by the terminal is 0 through the low transmission priority specified elements (for example, the MAC control element carrying the power headroom report PHR, the data transmitted through the logical channel, and the MAC control element carrying the padding BSR) included in the current component elements, a first predetermined number of the newly added bytes are allocated to the terminal according to the type of the current component element, where the newly added bytes may be 9 bytes, for example.
Through the optional implementation manner, when the PDU data packet is judged not to carry the BSR information, a first preset number of newly added bytes are distributed to the terminal according to the type of the current component element of the PDU data packet, so that the terminal can send other data to the base station, and further, when the PDU data packet is judged not to carry the BSR information, the resources of the base station can still be accurately scheduled according to the current component element included in the PDU data packet, so that the data of the terminal can be sent to the base station.
In an alternative implementation manner, fig. 6 is a block diagram (ii) of a structure of a resource scheduling adjustment apparatus according to an embodiment of the present invention, and as shown in fig. 6, the apparatus includes, in addition to all modules shown in fig. 4:
1) and an allocating module 62, configured to allocate a second predetermined number of the new bytes to the terminal according to the type of the current component when it is determined that the PDU data packet includes the MAC control element carrying the BSR and the padding BSR but does not include data transmitted through a logical channel, and the number of bytes included in the PDU data packet is smaller than a second threshold.
It should be noted that the number of bytes included in the second threshold is 11; the second predetermined number of additional bytes is at least 11 bytes.
Through the above optional implementation manner, when it is determined that the PDU data packet includes the MAC control element carrying the BSR and the padding BSR but does not include the data transmitted through the logical channel, and the number of bytes included in the PDU data packet is smaller than a second threshold (for example, 11 bytes), the base station allocates a buffer space of a second predetermined number of the newly added bytes (for example, at least 11 bytes) to the terminal, so that the terminal can send the data transmitted through the logical channel to the base station, and the accuracy of scheduling by the base station is further improved.
In an alternative implementation manner, fig. 7 is a block diagram (three) of a resource scheduling adjustment apparatus according to an embodiment of the present invention, and as shown in fig. 7, the apparatus includes, in addition to all modules shown in fig. 4:
1) an analyzing module 72, configured to analyze information included in each MAC subheader of the PDU data packet according to the logical channel index information of the MAC layer before determining whether the PDU data packet carries buffer status report BSR information;
2) the processing module 74 is configured to determine the MAC control element corresponding to each sub-header, and obtain data included in the MAC service data unit SDU located after the MAC control element in the MAC sub-header and padding data to obtain the current component element.
By the optional implementation mode, the PDU data packet is unpacked to obtain the current constituent elements included in the PDU data, so that the base station can perform resource scheduling allocation according to the current constituent elements, and further, the problem of low accuracy of base station resource scheduling caused by the fact that the base station cannot accurately acquire the buffer status report BSR sent by the terminal in the related art is solved, and the effect of improving the accuracy of base station resource scheduling is achieved.
The present embodiment will be described below by way of example with reference to specific examples.
The present example provides a resource scheduling adjustment apparatus. As shown in fig. 8, the apparatus includes: a receiving module 80, a parsing module 82, and a decision module 84. The receiving module 80 is configured to receive all MAC PDU data sent by the terminal to the base station. And an analysis module 82, connected to the receiving module 80, configured to perform analysis processing according to the MAC PDU data of the receiving module 80 and the MAC PDU structure specified by the protocol. And a decision module 84, connected to the parsing module 82, for deciding whether the base station needs to adjust the scheduling of the terminal.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in a plurality of processors.
Example 3
The embodiment of the invention also provides a storage medium. For application scenarios and examples of this embodiment, reference may be made to embodiment 1 and embodiment 2, which are not described herein again. Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, receiving a Media Access Control (MAC) Protocol Data Unit (PDU) data packet sent by a terminal;
s2, judging whether the PDU data packet carries buffer status report BSR information;
and S3, if the judgment result is negative, adjusting the resource scheduling mode allocated by the base station to the terminal according to the current constituent element in the PDU data packet.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Alternatively, in the present embodiment, the processor performs the above steps S1, S2, and S3 according to program codes already stored in the storage medium.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.