Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 2, the system for allocating resources according to the embodiment of the present invention includes:
the terminal 10 is configured to determine a BSR MAC CE format to be used according to the number of logical channel groups that need to report a buffer status; generating a BSR MAC CE according to the determined BSR MAC CE format and the bit number occupied by the buffer sequence number in the BSR MAC CE format; and reporting the generated BSR MAC CE to network side equipment.
The network side device 20 is configured to receive a BSR MAC CE generated by the terminal according to the determined BSR MAC CE format and the number of bits occupied by the buffer sequence number in the BSR MAC CE format, and determine, according to the BSR table, a buffer data amount corresponding to the buffer sequence number in the BSR MAC CE; and allocating uplink resources to the terminal according to the determined cache data volume.
According to the number of the logical channel groups needing to report the buffer state, the terminal generates the BSR MAC CE according to the used BSR MAC CE format determined by the number of the logical channel groups needing to report the buffer state and the bit number occupied by the buffer sequence number in the BSR MAC CE format; and reporting the generated BSR MAC CE to network side equipment. The network side equipment determines the cache data volume corresponding to the cache sequence number in the BSR MAC CE according to the BSR table; and allocating uplink resources to the terminal according to the determined cache data volume. The terminal determines the used BSR MAC CE format according to the number of the logical channel groups needing to report the buffer state, generates the BSR MAC CE according to the number of bits occupied by the buffer sequence number in the BSR MAC CE format, and can select different BSR MAC CE formats according to the number of different logical channel groups, so that the terminal data can be more accurately scheduled, and the frequency of occurrence of the situations of insufficient resource allocation or resource waste is reduced.
According to the number of the logical channel groups needing to report the buffer state, the embodiment of the invention can select to use the first BSR MAC CE format capable of reporting a plurality of logical channel group buffer states or the first BSR MAC CE format capable of reporting 1 logical channel group buffer state.
The terminal stores a first BSR MAC CE format and a second BSR MAC CE format, and each BSR MAC CE format corresponds to a BSR table (table).
It should be noted that the BSR table records the corresponding relationship between the buffer sequence number and the buffer data volume range, that is, the BSR table only shows one form of the corresponding relationship between the buffer sequence number and the buffer data volume range, and may also show other forms, such as a database, a formula, and the like, according to needs. The various representations are simply alternatives to the table, and such variations are within the scope of the equivalent technique.
One possible second BSR MAC CE format is shown in fig. 3A, and one possible first BSR MAC CE format is shown in fig. 3B.
The Buffer Size field in fig. 3A may be 5 bits in length or other values.
The Size field in FIG. 3B is 8 bits in length. The length of the Buffer Size field in the first BSR MAC CE format may also be other values, for example, 7 bits.
In fig. 3B, the first byte is used to indicate which logical channel groups need to be reported to the buffer, and then the buffers are sequentially reported according to the indication sequence in the bitmap (bitmap) of the first byte. The BSR MAC CE with the format is lengthened, and the buffer of 1-8 logic channel groups can be reported according to the requirement.
For example, if the logical channel groups LCGs 1, 3, and 5 have data buffers to report, except for the MAC subheader, the BSR MAC CE length is 4 bytes, where the 1 st byte is a bitmap indication, and is set to 01010100 for this example (i.e., the 1/3/5 th logical channel group is set to 1), and the 2 nd, 3 rd, and 4 th bytes respectively indicate data buffer amounts of the logical channel groups 1, 3, and 5.
In implementation, the BSR table corresponding to the second BSR MAC CE format stored by the terminal may be different from the table corresponding to the first BSR MAC CE format;
or the BSR table corresponding to the second BSR MAC CE format may be a BSR table corresponding to the multiplexed first BSR MAC CE format.
Wherein the length of the Buffer Size domain in the first BSR MAC CE format is greater than the length of the Buffer Size domain in the second BSR MAC CE format.
The table corresponding to the first BSR MAC CE format is generated in an exponential distribution manner according to the length of the Buffer Size domain in the first BSR MAC CE format.
If the BSR table corresponding to the second BSR MAC CE format is an independent table (i.e., the BSR table corresponding to the multiplexing first BSR MAC CE format is not), the BSR table corresponding to the second BSR MAC CE format is generated in an exponential distribution manner according to the length of the Buffer Size domain in the second BSR MAC CE format.
The length of the Buffer Size field in the first BSR MAC CE format is 8 bits for example, and other values, such as 7 bits, are similar to 8 bits, and are not described herein again.
The 8bit Buffer Size length yields a single BSR table, with an indicated Buffer data Size interval of 256 (i.e., 2^8, where 2^ X represents 2xAnd the same description will not be explained later).
For convenience of description, the BSR table corresponding to the 8-bit BS is constructed as follows, taking the maximum buffer value Bmax equal to 3000000byte as an example. It should be noted that table 1 is only an example, the maximum buffer value Bmax of the actual 5G NR is much larger than 3000000byte, and the divided intervals may be set according to the color.
BSR table example for Table 18 bit BS size
The length of the Buffer Size field in the first BSR MAC CE format is 5 bits for example, and other values are similar to 5 bits, which are not described herein again.
The 5-bit Buffer Size length generates a single BSR table, and the indicated Buffer data volume interval is 32 (i.e. 2^ 5).
For convenience of description, the BSR table corresponding to the 8-bit BS is constructed as follows, taking the maximum buffer value Bmax equal to 3000000byte as an example. It should be noted that table 2 is only an example, the maximum buffer value Bmax of the actual 5G NR is much larger than 3000000byte, and the divided intervals may be set according to the color.
BSR table example for Table 45 bit BS size
Index
|
Buffer Size(BS)value[bytes]
|
Index
|
Buffer Size(BS)value[bytes]
|
1
|
BS=0
|
17
|
4407<BS<=6808
|
2
|
0<BS<=10
|
18
|
6808<BS<=10517
|
3
|
10<BS<=16
|
19
|
10517<BS<=16246
|
4
|
16<BS<=24
|
20
|
16246<BS<=25096
|
5
|
24<BS<=37
|
21
|
25096<BS<=38767
|
6
|
37<BS<=57
|
22
|
38767<BS<=59886
|
7
|
57<BS<=88
|
23
|
59886<BS<=92511
|
8
|
88<BS<=136
|
24
|
92511<BS<=142909
|
9
|
136<BS<=210
|
25
|
142909<BS<=220762
|
10
|
210<BS<=325
|
26
|
220762<BS<=341028
|
11
|
325<BS<=501
|
27
|
341028<BS<=526813
|
12
|
501<BS<=774
|
28
|
526813<BS<=813810
|
13
|
774<BS<=1196
|
29
|
813810<BS<=1257155
|
14
|
1196<BS<=1847
|
30
|
1257155<BS<=1942026
|
15
|
1847<BS<=2853
|
31
|
1942026<BS<=3000000
|
16
|
2853<BS<=4407
|
32
|
BS>3000000 |
Comparing table 1 and table 2, it is clear that the larger the number of bits, the more accurate the indication range, at the same maximum and minimum values. The smaller the number of indicating bits is, the larger the indication range for a large data amount is when the index value is high. However, the BSR table is generated by adopting exponential distribution, so that the indication of the cache data volume is more accurate when the data volume is small.
In implementation, both the terminal and the base station need to distinguish whether the reported BSR is a BSR of a single logical channel group or a BSR of multiple logical channel groups, and specifically, different LCIDs are used for distinguishing, for example, LCID1 indicates that the reported BSR is a single logical channel group, and LCID2 indicates that the reported BSR is multiple logical channel groups.
Based on the above, it can be seen that: the embodiment of the invention provides two modes: the first method is as follows: the terminal adopts 1 table, namely the table of the BSR corresponding to the second BSR MAC CE is the BSR table corresponding to the multiplexing first BSR MAC CE format; the second method comprises the following steps: the terminal adopts 2 tables, namely the table of the BSR corresponding to the second BSR MAC CE is an independent table.
The following description will be made by taking reporting of a plurality of logical channel group states and reporting of 1 logical channel group state as an example.
And reporting the buffer status of a plurality of logical channel groups in case one.
Specifically, if the number of the logical channel groups requiring reporting of the buffer status is multiple, the terminal uses a first BSR MAC CE format capable of reporting the buffer status of the multiple logical channel groups.
For the case that the table of the BSR corresponding to the second BSR MAC CE in the terminal is the BSR table corresponding to the multiplexed first BSR MAC CE format, or the table of the BSR corresponding to the second BSR MAC CE in the terminal is an independent table, when the number of logical channel groups requiring reporting the buffer status is multiple, the terminal uses the first BSR MAC CE format capable of reporting the buffer status of multiple logical channel groups.
Optionally, when the terminal generates a BSR MAC CE, determining a buffer sequence number corresponding to the buffer data volume of each logical channel group according to the BSR table corresponding to the first BSR MAC CE format;
and the terminal places the determined buffer sequence number in a position corresponding to the first BSR MAC CE format.
Correspondingly, the network side device determines the cache data volume corresponding to the cache sequence number in the BSR MAC CE according to the BSR table corresponding to the first BSR MAC CE format.
Such as two logical channel groups, a common logical channel group a and a logical channel group B. The buffer data amount of the logical channel group a is 6523 bits, and the buffer data amount of the logical channel group a is 329 bits. Taking table 1 as an example, the buffer sequence number corresponding to 6523bit of the buffer data volume of the logical channel group a obtained after table lookup by the terminal is 133; the buffer sequence number corresponding to the buffer data volume 329bit of the logical channel group B obtained by the terminal after table lookup is 73. Then, the terminal places 133 and 73 in the corresponding positions of the first BSR MAC CE format respectively;
after receiving the BSR MAC CE with the format of the first BSR MAC CE, the network side device knows that the terminal reports the buffer statuses of the plurality of logical channel groups, and after determining the buffer identifiers 133 and 73, according to table 1, it can know that the buffer data amount of the logical channel group a is between 6522 and 6855, and the buffer amount of the logical channel group B is between 328 and 345.
And reporting the buffer state of 1 logic channel group in case II.
For reporting the buffer status of 1 logical channel group, the processing procedures of 1 table adopted by the terminal and 2 tables adopted by the terminal are different, and the following description is respectively given.
In the first mode, the terminal adopts 1 table.
For the terminal, a mode of 1 table is adopted, and the terminal can be stipulated to select and use a second BSR MAC CE format capable of reporting the buffer state of 1 logical channel group; it may also be specified that the terminal determines the used BSR MAC CE format according to the buffer data amount of the logical channel group, which will be described below.
1. And the terminal selects and uses a second BSR MAC CE format capable of reporting the buffer status of 1 logical channel group.
In this way, no matter how much the buffer data amount of the logical channel group is reported by the terminal, as long as the buffer status of 1 logical channel group is reported, only the second BSR MAC CE format is selected.
Here, reporting the buffer status of 1 logical channel group may be that 1 logical channel group needs to be reported; it may also be that the terminal may send padding BSR after sending uplink transmission according to the obtained uplink resource, but the remaining resource is only enough to send the BSR of one logical channel group.
Optionally, when the terminal generates a BSR MAC CE, determining, according to the number of bits occupied by the buffer sequence number in the second BSR MAC CE format and the buffer data amount of the logical channel group, the buffer sequence number corresponding to the buffer data amount of the logical channel group from the BSR table corresponding to the first BSR MAC CE format;
and the terminal places the determined buffer sequence number in a position corresponding to the second BSR MAC CE format.
Since the number of bits of the Buffer Size domain in the second BSR MAC CE format is smaller than the number of bits of the Buffer Size domain in the first BSR MAC CE format, the second BSR MAC CE format can only multiplex part of the content in the table corresponding to the first BSR MAC CE format.
For example, if the Buffer Size domain of the second BSR MAC CE format is 5 bits, and the Buffer Size domain of the first BSR MAC CE format is 8 bits, the second BSR MAC CE format can only multiplex 32 Buffer sequence numbers in the second BSR MAC CE format.
Based on this, the embodiment of the present invention provides a feasible way: the first (2^ X-1) cache sequence numbers in the second BSR MAC CE format are multiplexed, and if the first (2^ X-1) cache sequence numbers cannot be represented, the cache sequence numbers can be set to be the maximum value to represent that the cache data volume exceeds the cache data volume represented by the (2^ X-1) cache sequence number in the BSR table corresponding to the first BSR MAC CE format. Wherein, X is the number of bits occupied by the buffer sequence number in the second BSR MAC CE format.
Specifically, the method comprises the following steps: if the previous (2^ X-1) buffer sequence numbers in the BSR table corresponding to the first BSR MAC CE format can represent the buffer data volume of the logical channel group, the terminal determines the buffer sequence number corresponding to the buffer data volume of the logical channel group according to the BSR table corresponding to the first BSR MAC CE format; or
If the previous (2^ X-1) cache sequence numbers in the BSR table corresponding to the first BSR MAC CE format cannot represent the cache data volume of the logical channel group, the terminal sets the cache sequence number to the maximum value, which represents that the cache data volume exceeds the cache data volume represented by the (2^ X-1) cache sequence number in the BSR table corresponding to the first BSR MAC CE format.
Correspondingly, if the buffer sequence number in the BSR MAC CE is the previous (2^ X-1) buffer sequence numbers in the BSR table corresponding to the first BSR MAC CE format, the network side device determines the buffer data volume corresponding to the buffer sequence number in the BSR MAC CE according to the BSR table corresponding to the first BSR MAC CE format; or
If the buffer sequence number in the BSR MAC CE is the maximum value, the network side equipment determines that the buffer data volume of the terminal exceeds the buffer data volume represented by the (2^ X-1) th buffer sequence number in the BSR table corresponding to the format of the BSR MAC CE.
Take the Buffer Size field of the second BSR MAC CE format as 5 bits, and the Buffer Size field of the first BSR MAC CE format as 8 bits as an example:
if the amount of the buffer data of the logical channel group that the terminal needs to report may be represented by the first 31 buffer sequence numbers in table 1, for example, the amount of the buffer data of the logical channel group is 22, the lookup table 1 may determine that the corresponding buffer sequence number is 17. And 17 can be represented by 5 bits, so that the buffer identifier corresponding to the buffer data volume of the logical channel group to be reported is determined to be 17;
correspondingly, after receiving the BSR MAC CE with the format of the second BSR MAC CE, the network side device knows that the terminal reports the buffer status of a logical channel group, and after determining that the buffer identifier is 17, may look up table 1 to determine that the buffer data amount of the logical channel group is 22.
If the amount of the buffered data of the logical channel group that the terminal needs to report cannot be represented by the first 31 buffered sequence numbers in table 1, for example, the amount of the buffered data of the logical channel group is 46, the lookup table 1 may determine that the corresponding buffered sequence number is 33, which exceeds 31, determine that the buffered identifier corresponding to the amount of the buffered data of the logical channel group that needs to report is the maximum value represented by 5 bits, 11111 is 32.
Correspondingly, after receiving the BSR MAC CE with the format of the second BSR MAC CE, the network side device knows that the terminal reports the buffer status of a logical channel group, and after determining that the buffer identifier is 32, can determine that the buffer data amount of the logical channel group exceeds 43.
2. And the terminal determines the used BSR MAC CE format according to the buffer data volume of the logical channel group.
Since the number of bits of the Buffer Size domain in the second BSR MAC CE format is smaller than the number of bits of the Buffer Size domain in the first BSR MAC CE format, the second BSR MAC CE format can only multiplex part of the content in the table corresponding to the first BSR MAC CE format.
For example, if the Buffer Size domain of the second BSR MAC CE format is 5 bits, and the Buffer Size domain of the first BSR MAC CE format is 8 bits, the second BSR MAC CE format can only multiplex 32 Buffer sequence numbers in the second BSR MAC CE format.
Based on this, the embodiment of the present invention provides a feasible way: that is, the first (2^ X) buffer sequence numbers in the second BSR MAC CE format are multiplexed, and if the first (2^ X) buffer sequence numbers cannot be represented, the first BSR MAC CE format is selected (that is, if the first (2^ X) buffer sequence numbers cannot be represented, the first BSR MAC CE format is selected even if only the buffer status of one logical channel group needs to be reported).
Specifically, if the first 2^ X buffer sequence numbers of the BSR table corresponding to the first BSR MAC CE format cannot represent the buffer data amount of the logical channel group, the terminal uses the first BSR MAC CE format capable of reporting buffer states of multiple logical channel groups, where X is the number of bits occupied by the buffer sequence numbers in the second BSR MAC CE format; or
And if the BSR table corresponding to the second BSR MAC CE of the terminal is the BSR table corresponding to the multiplexing first BSR MAC CE format, and the first 2^ X buffer sequence numbers of the BSR table corresponding to the first BSR MAC CE format can represent the buffer data volume of the logical channel group, using the second BSR MAC CE format capable of reporting 1 logical channel group buffer state by the terminal.
Optionally, the terminal determines, according to the BSR table corresponding to the first BSR MAC CE format, a buffer sequence number corresponding to the buffer data amount of the logical channel group, and places the determined buffer sequence number in a position corresponding to the first BSR MAC CE format
Correspondingly, the network side device determines the cache data volume corresponding to the cache sequence number in the BSR MAC CE according to the BSR table corresponding to the first BSR MAC CE format.
Take the Buffer Size field of the second BSR MAC CE format as 5 bits, and the Buffer Size field of the first BSR MAC CE format as 8 bits as an example:
if the cache data amount of the logical channel group that the terminal needs to report may be represented by the first 32 cache sequence numbers in table 1, for example, the cache data amount of the logical channel group is 22, the lookup table 1 may determine that the corresponding cache sequence number is 17. And 17 can be represented by 5 bits, so that the buffer identifier corresponding to the buffer data volume of the logical channel group to be reported is determined to be 17;
correspondingly, after receiving the BSR MAC CE with the format of the second BSR MAC CE, the network side device knows that the terminal reports the buffer status of a logical channel group, and after determining that the buffer identifier is 17, may look up table 1 to determine that the buffer data amount of the logical channel group is 22.
If the buffer data amount of the logical channel group that the terminal needs to report cannot be represented by the first 32 buffer sequence numbers in table 1, for example, the buffer data amount of the logical channel group is 46, the lookup table 1 may determine that the corresponding buffer sequence number is 33, and exceeds 32, at this time, the terminal selects to report in the format of the first BSR MAC CE, and the corresponding buffer sequence number is 33.
Correspondingly, the format of the BSR MAC CE received by the network side device is the first BSR MAC CE, and after determining that the buffer identifier is 33, the lookup table 1 may determine that the buffer data amount of the logical channel group is 44 or 45.
And in the second mode, the terminal adopts 2 tables.
And for the terminal adopting a 2-table mode, the terminal may determine the buffer sequence number corresponding to the buffer data amount of the logical channel group according to the BSR table corresponding to the second BSR MAC CE format.
And the terminal places the determined buffer sequence number in a position corresponding to the second BSR MAC CE format.
Correspondingly, after the received BSR MAC CE is in the second BSR MAC CE format, the network side device determines the cache data amount corresponding to the cache sequence number in the BSR MAC CE according to the BSR table corresponding to the second BSR MAC CE format.
Take the Buffer Size field of the second BSR MAC CE format as 5 bits, and the Buffer Size field of the first BSR MAC CE format as 8 bits as an example:
if the amount of the buffer data of the logical channel group that the terminal needs to report is 22, the lookup table 2 may determine that the corresponding buffer sequence number is 3.
Correspondingly, after receiving the BSR MAC CE with the format of the second BSR MAC CE, the network side device knows that the terminal reports the buffer status of a logical channel group, and after determining that the buffer identifier is 3, may look up table 2 to determine that the buffer data amount of the logical channel group is between 16 and 24.
For the case that the terminal adopts 2 tables, if the terminal needs to report the buffer status of one logical channel group, the first BSR MAC CE is selected, and if the terminal needs to report the buffer status of a plurality of logical channel groups, the second BSR MAC CE is selected.
The terminal in the embodiment of the present invention is also referred to as User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), and the like, and is a device that provides voice and/or data connectivity to a user, for example, a handheld device, a vehicle-mounted device, and the like having a wireless connection function. Currently, some examples of terminals are: a mobile phone (mobile phone), a tablet computer, a notebook computer, a palm top computer, a Mobile Internet Device (MID), a wearable device, a Virtual Reality (VR) device, an Augmented Reality (AR) device, a wireless terminal in industrial control (industrial control), a wireless terminal in self driving (self driving), a wireless terminal in remote surgery (remote medical supply), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (smart security), a wireless terminal in city (smart city), a wireless terminal in home (smart home), and the like.
The Network side device in the embodiment of the present invention may be a RAN (Radio Access Network) node. The RAN is the part of the network that accesses the terminal to the wireless network. A RAN node (or device) is a node (or device) in a radio access network, which may also be referred to as a base station. Currently, some examples of RAN nodes are: a gbb, a Transmission Reception Point (TRP), an evolved Node B (eNB), a Radio Network Controller (RNC), a Node B (NB), a Base Station Controller (BSC), a Base Transceiver Station (BTS), a home base station (e.g., home evolved Node B, or home Node B, HNB), a Base Band Unit (BBU), or a wireless fidelity (Wifi) Access Point (AP), etc. In addition, in one network configuration, the RAN may include a Centralized Unit (CU) node and a Distributed Unit (DU) node. The structure separates the protocol layers of the eNB in a Long Term Evolution (LTE) system, the functions of part of the protocol layers are controlled in the CU in a centralized way, the functions of the rest part or all of the protocol layers are distributed in the DU, and the CU controls the DU in a centralized way.
As shown in fig. 4, a first terminal according to an embodiment of the present invention includes: a processor 400, a memory 401, a transceiver 402, and a bus interface.
The processor 400 is responsible for managing the bus architecture and general processing, and the memory 401 may store data used by the processor 400 in performing operations. The transceiver 402 is used to receive and transmit data under the control of the processor 400.
The bus architecture may include any number of interconnected buses and bridges, with one or more processors, represented by processor 400, and various circuits, represented by memory 401, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The processor 400 is responsible for managing the bus architecture and general processing, and the memory 401 may store data used by the processor 400 in performing operations.
The processes disclosed in the embodiments of the present invention may be applied to the processor 400, or implemented by the processor 400. In implementation, the steps of the signal processing flow may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 400. The processor 400 may be a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like that implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 401, and the processor 400 reads the information in the memory 401 and completes the steps of the signal processing flow in combination with the hardware thereof.
Specifically, the processor 400 is configured to read the program in the memory 401 and execute:
determining a used BSR MAC CE format according to the number of the logical channel groups needing to report the buffer state; generating a BSR MAC CE according to the determined BSR MAC CE format and the bit number occupied by the buffer sequence number in the BSR MAC CE format; and reporting the generated BSR MAC CE to network side equipment.
Optionally, the processor 400 is specifically configured to:
if the number of the logical channel groups needing to report the buffer status is multiple, a first BSR MAC CE format capable of reporting the buffer status of the multiple logical channel groups is used.
Optionally, the processor 400 is specifically configured to:
determining a buffer sequence number corresponding to the buffer data volume of each logic channel group according to the BSR table corresponding to the first BSR MAC CE format;
and placing the determined buffer sequence number in a position corresponding to the first BSR MAC CE format.
Optionally, the processor 400 is specifically configured to:
if the number of the logical channel groups needing to report the buffer state is 1, selecting to use a second BSR MAC CE format capable of reporting the buffer state of 1 logical channel group; or
And if the number of the logical channel groups needing to report the buffer state is 1, determining the used BSR MAC CE format according to the buffer data volume of the logical channel groups.
Optionally, the processor 400 selects and uses a second BSR MAC CE format capable of reporting the buffer status of 1 logical channel group;
the processor 400 is specifically configured to:
if the table of the BSR corresponding to the second BSR MAC CE of the terminal is a BSR table corresponding to the multiplexing first BSR MAC CE format, determining a buffer sequence number corresponding to the buffer data amount of the logical channel group from the BSR table corresponding to the first BSR MAC CE format according to the number of bits occupied by the buffer sequence number in the second BSR MAC CE format and the buffer data amount of the logical channel group;
and placing the determined buffer sequence number in a position corresponding to the second BSR MAC CE format.
Optionally, the processor 400 is specifically configured to:
if the previous (2^ X-1) buffer sequence numbers in the BSR table corresponding to the first BSR MAC CE format can represent the buffer data volume of the logical channel group, determining the buffer sequence number corresponding to the buffer data volume of the logical channel group according to the BSR table corresponding to the first BSR MAC CE format; or
If the previous (2^ X-1) cache sequence numbers in the BSR table corresponding to the first BSR MAC CE format cannot represent the cache data volume of the logical channel group, setting the cache sequence number as the maximum value to represent that the cache data volume exceeds the cache data volume represented by the (2^ X-1) cache sequence number in the BSR table corresponding to the first BSR MAC CE format;
wherein, X is the number of bits occupied by the buffer sequence number in the second BSR MAC CE format.
Optionally, the processor 400 selects and uses a second BSR MAC CE format capable of reporting the buffer status of 1 logical channel group;
the processor 400 is specifically configured to:
if the table of the BSR corresponding to the second BSR MAC CE of the terminal is not the BSR corresponding to the multiplexing first BSR MAC CE format, determining a buffer sequence number corresponding to the buffer data volume of the logical channel group according to the BSR corresponding to the second BSR MAC CE format;
and placing the determined buffer sequence number in a position corresponding to the second BSR MAC CE format.
Optionally, the processor 400 is specifically configured to:
if the BSR table corresponding to the second BSR MAC CE of the terminal is a BSR table corresponding to a multiplexing first BSR MAC CE format, and the first 2^ X cache sequence numbers of the BSR table corresponding to the first BSR MAC CE format cannot represent the cache data volume of the logical channel group, using the first BSR MAC CE format capable of reporting the cache states of the multiple logical channel groups, wherein X is the bit number occupied by the cache sequence numbers in the second BSR MAC CE format; or
And if the BSR table corresponding to the second BSR MAC CE of the terminal is the BSR table corresponding to the multiplexing first BSR MAC CE format, and the first 2^ X buffer sequence numbers of the BSR table corresponding to the first BSR MAC CE format can represent the buffer data volume of the logical channel group, using the second BSR MAC CE format capable of reporting the buffer state of 1 logical channel group.
Optionally, the processor 400 is specifically configured to:
and determining a buffer sequence number corresponding to the buffer data volume of the logical channel group according to the BSR table corresponding to the first BSR MAC CE format, and placing the determined buffer sequence number in a position corresponding to the first BSR MAC CE format.
As shown in fig. 5, a first network device according to an embodiment of the present invention includes: a processor 500, a memory 501, a transceiver 502, and a bus interface.
The processor 500 is responsible for managing the bus architecture and general processing, and the memory 501 may store data used by the processor 500 in performing operations. The transceiver 502 is used to receive and transmit data under the control of the processor 500.
The bus architecture may include any number of interconnected buses and bridges, with one or more processors represented by processor 500 and various circuits of memory represented by memory 501 being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The processor 500 is responsible for managing the bus architecture and general processing, and the memory 501 may store data used by the processor 500 in performing operations.
The processes disclosed in the embodiments of the present invention may be applied to the processor 500, or implemented by the processor 500. In implementation, the steps of the signal processing flow may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 500. The processor 500 may be a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof that may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 501, and the processor 500 reads the information in the memory 501, and completes the steps of the signal processing flow in combination with the hardware thereof.
Specifically, the processor 500 is configured to read the program in the memory 501 and execute:
receiving BSR MAC CE generated by a terminal according to a determined BSR MAC CE format and the number of bits occupied by a buffer sequence number in the BSR MAC CE format, wherein the used BSR MAC CE format is determined by the number of logical channel groups of which the terminal reports a buffer state according to needs; determining the cache data volume corresponding to the cache sequence number in the BSR MAC CE according to the BSR table; and allocating uplink resources to the terminal according to the determined cache data volume.
Optionally, the format of the BSR MAC CE is a first BSR MAC CE format capable of reporting a plurality of logical channel group buffer states;
the processor 500 is specifically configured to:
and determining the cache data volume corresponding to the cache sequence number in the BSR MAC CE according to the BSR table corresponding to the first BSR MAC CE format.
Optionally, the format of the BSR MAC CE is a second BSR MAC CE format capable of reporting 1 logical channel group buffer status, and the BSR table corresponding to the second BSR MAC CE of the terminal is a BSR table corresponding to the multiplexing first BSR MAC CE format;
the processor 500 is specifically configured to:
if the buffer sequence number in the BSR MAC CE is the front (2^ X-1) buffer sequence numbers in the BSR table corresponding to the first BSR MAC CE format, determining the buffer data volume corresponding to the buffer sequence number in the BSR MAC CE according to the BSR table corresponding to the first BSR MAC CE format; or
And if the buffer sequence number in the BSR MAC CE is the maximum value, determining that the buffer data volume of the terminal exceeds the buffer data volume represented by the (2^ X-1) th buffer sequence number in the BSR table corresponding to the format of the BSR MAC CE.
Optionally, the format of the BSR MAC CE is a second BSR MAC CE format capable of reporting 1 logical channel group buffer status, and a BSR table corresponding to the second BSR MAC CE of the terminal is not a BSR table corresponding to the multiplexing first BSR MAC CE format;
the processor 500 is specifically configured to:
and determining the cache data volume corresponding to the cache sequence number in the BSR MAC CE according to the BSR table corresponding to the second BSR MAC CE format.
Optionally, the format of the BSR MAC CE is a second BSR MAC CE format capable of reporting 1 logical channel group buffer status, and the BSR table corresponding to the second BSR MAC CE of the terminal is a BSR table corresponding to the multiplexing first BSR MAC CE format;
the processor 500 is specifically configured to:
and determining the cache data volume corresponding to the cache sequence number in the BSR MAC CE according to the BSR table corresponding to the first BSR MAC CE format.
As shown in fig. 6, a second terminal according to the embodiment of the present invention includes:
a format determining module 600, configured to determine a BSR MAC CE format to be used according to the number of logical channel groups that need to report a buffer status;
a generating module 601, configured to generate a BSR MAC CE according to a determined BSR MAC CE format and a bit number occupied by a buffer sequence number in the BSR MAC CE format;
a reporting module 602, configured to report the generated BSR MAC CE to a network side device.
Optionally, the format determining module 600 is specifically configured to:
if the number of the logical channel groups needing to report the buffer status is multiple, a first BSR MAC CE format capable of reporting the buffer status of the multiple logical channel groups is used.
Optionally, the generating module 601 is specifically configured to:
determining a buffer sequence number corresponding to the buffer data volume of each logic channel group according to the BSR table corresponding to the first BSR MAC CE format;
and placing the determined buffer sequence number in a position corresponding to the first BSR MAC CE format.
Optionally, the format determining module 600 is specifically configured to:
if the number of the logical channel groups needing to report the buffer state is 1, selecting to use a second BSR MAC CE format capable of reporting the buffer state of 1 logical channel group; or
And if the number of the logical channel groups needing to report the buffer state is 1, determining the used BSR MAC CE format according to the buffer data volume of the logical channel groups.
Optionally, the processor selects and uses a second BSR MAC CE format capable of reporting a buffer status of 1 logical channel group;
the generating module 601 is specifically configured to:
if the table of the BSR corresponding to the second BSR MAC CE of the terminal is a BSR table corresponding to the multiplexing first BSR MAC CE format, determining a buffer sequence number corresponding to the buffer data amount of the logical channel group from the BSR table corresponding to the first BSR MAC CE format according to the number of bits occupied by the buffer sequence number in the second BSR MAC CE format and the buffer data amount of the logical channel group;
and placing the determined buffer sequence number in a position corresponding to the second BSR MAC CE format.
Optionally, the generating module 601 is specifically configured to:
if the previous (2^ X-1) buffer sequence numbers in the BSR table corresponding to the first BSR MAC CE format can represent the buffer data volume of the logical channel group, determining the buffer sequence number corresponding to the buffer data volume of the logical channel group according to the BSR table corresponding to the first BSR MAC CE format; or
If the previous (2^ X-1) cache sequence numbers in the BSR table corresponding to the first BSR MAC CE format cannot represent the cache data volume of the logical channel group, setting the cache sequence number as the maximum value to represent that the cache data volume exceeds the cache data volume represented by the (2^ X-1) cache sequence number in the BSR table corresponding to the first BSR MAC CE format;
wherein, X is the number of bits occupied by the buffer sequence number in the second BSR MAC CE format.
Optionally, the processor selects and uses a second BSR MAC CE format capable of reporting a buffer status of 1 logical channel group;
the generating module 601 is specifically configured to:
if the table of the BSR corresponding to the second BSR MAC CE of the terminal is not the BSR corresponding to the multiplexing first BSR MAC CE format, determining a buffer sequence number corresponding to the buffer data volume of the logical channel group according to the BSR corresponding to the second BSR MAC CE format;
and placing the determined buffer sequence number in a position corresponding to the second BSR MAC CE format.
Optionally, the format determining module 600 is specifically configured to:
if the BSR table corresponding to the second BSR MAC CE of the terminal is a BSR table corresponding to a multiplexing first BSR MAC CE format, and the first 2^ X cache sequence numbers of the BSR table corresponding to the first BSR MAC CE format cannot represent the cache data volume of the logical channel group, using the first BSR MAC CE format capable of reporting the cache states of the multiple logical channel groups, wherein X is the bit number occupied by the cache sequence numbers in the second BSR MAC CE format; or
And if the BSR table corresponding to the second BSR MAC CE of the terminal is the BSR table corresponding to the multiplexing first BSR MAC CE format, and the first 2^ X buffer sequence numbers of the BSR table corresponding to the first BSR MAC CE format can represent the buffer data volume of the logical channel group, using the second BSR MAC CE format capable of reporting the buffer state of 1 logical channel group.
Optionally, the generating module 601 is specifically configured to:
and determining a buffer sequence number corresponding to the buffer data volume of the logical channel group according to the BSR table corresponding to the first BSR MAC CE format, and placing the determined buffer sequence number in a position corresponding to the first BSR MAC CE format.
As shown in fig. 7, a second network-side device according to the embodiment of the present invention includes:
a receiving module 700, configured to receive a BSR MAC CE generated by a terminal according to a determined BSR MAC CE format and a bit number occupied by a buffer sequence number in the BSR MAC CE format, where the used BSR MAC CE format is determined by the terminal according to a number of logical channel groups that need to report a buffer state;
a data amount determining module 701, configured to determine, according to the BSR table, a buffer data amount corresponding to the buffer sequence number in the BSR MAC CE;
an allocating module 702, configured to allocate uplink resources to the terminal according to the determined buffer data amount.
Optionally, the format of the BSR MAC CE is a first BSR MAC CE format capable of reporting a plurality of logical channel group buffer states;
the data amount determining module 701 is specifically configured to:
and determining the cache data volume corresponding to the cache sequence number in the BSR MAC CE according to the BSR table corresponding to the first BSR MAC CE format.
Optionally, the format of the BSR MAC CE is a second BSR MAC CE format capable of reporting 1 logical channel group buffer status, and the BSR table corresponding to the second BSR MAC CE of the terminal is a BSR table corresponding to the multiplexing first BSR MAC CE format;
the data amount determining module 701 is specifically configured to:
if the buffer sequence number in the BSR MAC CE is the front (2^ X-1) buffer sequence numbers in the BSR table corresponding to the first BSR MAC CE format, determining the buffer data volume corresponding to the buffer sequence number in the BSR MAC CE according to the BSR table corresponding to the first BSR MAC CE format; or
And if the buffer sequence number in the BSR MAC CE is the maximum value, determining that the buffer data volume of the terminal exceeds the buffer data volume represented by the (2^ X-1) th buffer sequence number in the BSR table corresponding to the format of the BSR MAC CE.
Optionally, the format of the BSR MAC CE is a second BSR MAC CE format capable of reporting 1 logical channel group buffer status, and a BSR table corresponding to the second BSR MAC CE of the terminal is not a BSR table corresponding to the multiplexing first BSR MAC CE format;
the data amount determining module 701 is specifically configured to:
and determining the cache data volume corresponding to the cache sequence number in the BSR MAC CE according to the BSR table corresponding to the second BSR MAC CE format.
Optionally, the format of the BSR MAC CE is a second BSR MAC CE format capable of reporting 1 logical channel group buffer status, and the BSR table corresponding to the second BSR MAC CE of the terminal is a BSR table corresponding to the multiplexing first BSR MAC CE format;
the data amount determining module 701 is specifically configured to:
and determining the cache data volume corresponding to the cache sequence number in the BSR MAC CE according to the BSR table corresponding to the first BSR MAC CE format.
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the terminal according to the embodiment of the present invention or the steps of the network side device according to the embodiment of the present invention.
Based on the same inventive concept, the embodiment of the present invention further provides a method for performing repeated transmission, and since the device corresponding to the method is a DU in the system for performing repeated transmission on a channel in the embodiment of the present invention, and the principle of the method for solving the problem is similar to that of the device, the method can be implemented by referring to the device, and repeated parts are not described again.
As shown in fig. 8, the method for reporting a buffer status according to the embodiment of the present invention includes:
step 800, the terminal determines the used BSR MAC CE format according to the number of the logical channel groups needing to report the buffer state;
step 801, the terminal generates a BSR MAC CE according to the determined BSR MAC CE format and the bit number occupied by the buffer sequence number in the BSR MAC CE format;
and step 802, the terminal reports the generated BSR MAC CE to a network side device.
Optionally, the determining, by the terminal, the used BSR MAC CE format according to the number of logical channel groups whose buffer status needs to be reported includes:
if the number of the logical channel groups needing to report the buffer status is multiple, the terminal uses a first BSR MAC CE format capable of reporting the buffer status of the multiple logical channel groups.
Optionally, the generating, by the terminal, the BSR MAC CE according to the determined BSR MAC CE format and the number of bits occupied by the buffer sequence number in the BSR MAC CE format includes:
the terminal determines a buffer sequence number corresponding to the buffer data volume of each logic channel group according to the BSR table corresponding to the first BSR MAC CE format;
and the terminal places the determined buffer sequence number in a position corresponding to the first BSR MAC CE format.
Optionally, the determining, by the terminal, the used BSR MAC CE format according to the number of logical channel groups whose buffer status needs to be reported includes:
if the number of the logical channel groups needing to report the buffer state is 1, the terminal selects to use a second BSR MAC CE format capable of reporting the buffer state of the 1 logical channel group; or
And if the number of the logical channel groups needing to report the buffer state is 1, the terminal determines the used BSR MAC CE format according to the buffer data volume of the logical channel groups.
Optionally, the terminal selects and uses a second BSR MAC CE format capable of reporting the buffer status of 1 logical channel group;
the terminal generates the BSR MAC CE according to the determined BSR MAC CE format and the bit number occupied by the buffer sequence number in the BSR MAC CE format, and the method comprises the following steps:
if the table of the BSR corresponding to the second BSR MAC CE of the terminal is a BSR table corresponding to the multiplexing first BSR MAC CE format, the terminal determines, according to the number of bits occupied by the buffer sequence number in the second BSR MAC CE format and the buffer data volume of the logical channel group, the buffer sequence number corresponding to the buffer data volume of the logical channel group from the BSR table corresponding to the first BSR MAC CE format;
and the terminal places the determined buffer sequence number in a position corresponding to the second BSR MAC CE format.
Optionally, the determining, by the terminal, the buffer sequence number corresponding to the buffer data volume of the logical channel group from the BSR table corresponding to the first BSR MAC CE format according to the number of bits X occupied by the buffer sequence number in the second BSR MAC CE format and the buffer data volume of the logical channel group includes:
if the previous (2^ X-1) buffer sequence numbers in the BSR table corresponding to the first BSR MAC CE format can represent the buffer data volume of the logical channel group, the terminal determines the buffer sequence number corresponding to the buffer data volume of the logical channel group according to the BSR table corresponding to the first BSR MAC CE format; or
If the previous (2^ X-1) cache sequence numbers in the BSR table corresponding to the first BSR MAC CE format cannot represent the cache data volume of the logical channel group, the terminal sets the cache sequence number to be the maximum value, and represents that the cache data volume exceeds the cache data volume represented by the (2^ X-1) cache sequence number in the BSR table corresponding to the first BSR MAC CE format;
wherein, X is the number of bits occupied by the buffer sequence number in the second BSR MAC CE format.
Optionally, the terminal selects and uses a second BSR MAC CE format capable of reporting the buffer status of 1 logical channel group;
the terminal generates the BSR MAC CE according to the determined BSR MAC CE format and the bit number occupied by the buffer sequence number in the BSR MAC CE format, and the method comprises the following steps:
if the table of the BSR corresponding to the second BSR MAC CE of the terminal is not the BSR table corresponding to the multiplexing first BSR MAC CE format, the terminal determines the buffer sequence number corresponding to the buffer data volume of the logical channel group according to the BSR table corresponding to the second BSR MAC CE format;
and the terminal places the determined buffer sequence number in a position corresponding to the second BSR MAC CE format.
Optionally, the determining, by the terminal, a used BSR MAC CE format according to the buffer data amount of the logical channel group includes:
if the table of the BSR corresponding to the second BSR MAC CE of the terminal is a BSR corresponding to a multiplexing first BSR MAC CE format, and the first 2^ X buffer sequence numbers of the BSR corresponding to the first BSR MAC CE format cannot represent the buffer data amount of the logical channel group, the terminal uses the first BSR MAC CE format capable of reporting the buffer states of a plurality of logical channel groups, wherein X is the bit number occupied by the buffer sequence numbers in the second BSR MAC CE format; or
And if the BSR table corresponding to the second BSR MAC CE of the terminal is the BSR table corresponding to the multiplexing first BSR MAC CE format, and the first 2^ X buffer sequence numbers of the BSR table corresponding to the first BSR MAC CE format can represent the buffer data volume of the logical channel group, using the second BSR MAC CE format capable of reporting 1 logical channel group buffer state by the terminal.
Optionally, the generating, by the terminal, the BSR MAC CE according to the determined BSR MAC CE format and the number of bits occupied by the buffer sequence number in the BSR MAC CE format includes:
and the terminal determines a buffer sequence number corresponding to the buffer data volume of the logical channel group according to the BSR table corresponding to the first BSR MAC CE format, and places the determined buffer sequence number in a position corresponding to the first BSR MAC CE format.
As shown in fig. 9, the method for allocating resources according to the embodiment of the present invention includes:
step 900, a network side device receives a BSR MAC CE generated by a terminal according to a determined BSR MAC CE format and a number of bits occupied by a buffer sequence number in the BSR MAC CE format, where the used BSR MAC CE format is determined by the number of logical channel groups for which the terminal needs to report a buffer state;
step 901, the network side device determines a cache data amount corresponding to a cache sequence number in a BSR MAC CE according to a BSR table;
step 902, the network side device allocates uplink resources to the terminal according to the determined buffer data amount.
Optionally, the format of the BSR MAC CE is a first BSR MAC CE format capable of reporting a plurality of logical channel group buffer states;
the network side equipment determines the cache data volume corresponding to the cache sequence number in the BSR MAC CE according to the BSR table, and the method comprises the following steps:
and the network side equipment determines the cache data volume corresponding to the cache sequence number in the BSR MAC CE according to the BSR table corresponding to the first BSR MAC CE format.
Optionally, the format of the BSR MAC CE is a second BSR MAC CE format capable of reporting 1 logical channel group buffer status, and the BSR table corresponding to the second BSR MAC CE of the terminal is a BSR table corresponding to the multiplexing first BSR MAC CE format;
the network side equipment determines the cache data volume corresponding to the cache sequence number in the BSR MAC CE according to the BSR table, and the method comprises the following steps:
if the buffer sequence number in the BSR MAC CE is the first (2^ X-1) buffer sequence numbers in the BSR table corresponding to the first BSR MAC CE format, the network side equipment determines the buffer data volume corresponding to the buffer sequence number in the BSR MAC CE according to the BSR table corresponding to the first BSR MAC CE format; or
If the buffer sequence number in the BSR MAC CE is the maximum value, the network side equipment determines that the buffer data volume of the terminal exceeds the buffer data volume represented by the (2^ X-1) th buffer sequence number in the BSR table corresponding to the format of the BSR MAC CE.
Optionally, the format of the BSR MAC CE is a second BSR MAC CE format capable of reporting 1 logical channel group buffer status, and a BSR table corresponding to the second BSR MAC CE of the terminal is not a BSR table corresponding to the multiplexing first BSR MAC CE format;
the network side equipment determines the cache data volume corresponding to the cache sequence number in the BSR MAC CE according to the BSR table, and the method comprises the following steps:
and the network side equipment determines the cache data volume corresponding to the cache sequence number in the BSR MAC CE according to the BSR table corresponding to the second BSR MAC CE format.
Optionally, the format of the BSR MAC CE is a second BSR MAC CE format capable of reporting 1 logical channel group buffer status, and the BSR table corresponding to the second BSR MAC CE of the terminal is a BSR table corresponding to the multiplexing first BSR MAC CE format;
the network side equipment determines the cache data volume corresponding to the cache sequence number in the BSR MAC CE according to the BSR table, and the method comprises the following steps:
and the network side equipment determines the cache data volume corresponding to the cache sequence number in the BSR MAC CE according to the BSR table corresponding to the first BSR MAC CE format.
The embodiments of the present invention will be described in detail below with reference to several examples.