CN111245556A - TBS (transport block size ratio) calculation method of 5GNR (generalized maximum likelihood ratio) and MACPDU (machine Access data Unit) multiplexing method and equipment - Google Patents
TBS (transport block size ratio) calculation method of 5GNR (generalized maximum likelihood ratio) and MACPDU (machine Access data Unit) multiplexing method and equipment Download PDFInfo
- Publication number
- CN111245556A CN111245556A CN201811434688.9A CN201811434688A CN111245556A CN 111245556 A CN111245556 A CN 111245556A CN 201811434688 A CN201811434688 A CN 201811434688A CN 111245556 A CN111245556 A CN 111245556A
- Authority
- CN
- China
- Prior art keywords
- info
- tbs
- data packet
- calculate
- mcs
- 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.)
- Withdrawn
Links
- 238000004364 calculation method Methods 0.000 title claims abstract description 38
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000007476 Maximum Likelihood Methods 0.000 title 1
- 238000012545 processing Methods 0.000 claims abstract description 11
- 238000013507 mapping Methods 0.000 claims abstract description 10
- 101150071746 Pbsn gene Proteins 0.000 claims abstract 7
- 230000005540 biological transmission Effects 0.000 claims description 33
- 230000006870 function Effects 0.000 claims description 14
- 238000013139 quantization Methods 0.000 claims description 14
- 238000011144 upstream manufacturing Methods 0.000 abstract 1
- 230000008569 process Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 5
- 230000011218 segmentation Effects 0.000 description 3
- 238000012937 correction Methods 0.000 description 2
- 238000013468 resource allocation Methods 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000013523 data management Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011002 quantification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0002—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate
- H04L1/0003—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate by switching between different modulation schemes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0006—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
- H04L1/0007—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format by modifying the frame length
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0009—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L5/00—Arrangements affording multiple use of the transmission path
- H04L5/003—Arrangements for allocating sub-channels of the transmission path
- H04L5/0044—Allocation of payload; Allocation of data channels, e.g. PDSCH or PUSCH
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/06—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
- H04W28/065—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Quality & Reliability (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请公开了一种TBS计算方法和设备,包括:获得MCS的索引IMCS和分配的PRB个数;根据IMCS的取值确定当前待传输的是否为重传数据包,如果为重传数据包则按照最近一次为新传时计算出的TBS作为本次的TBS,结束;如果为新传数据包,则根据所述IMCS和高层配置参数,选择对应的IMCS与码率的映射表格,查找对应的目标码率R和调制阶数Qm;根据目标码率R、PRB个数以及高层配置的层数υ计算出能够承载的比特个数Ninfo;根据能够承载的比特个数Ninfo计算TBS。本申请还公开了一种MAC PDU复用方法及对应的设备。应用本申请公开的技术方案,能够实现TBS的快速计算,并简化上下行数据处理流程。
The present application discloses a TBS calculation method and device, including: obtaining the index IMCS of the MCS and the number of allocated PRBs; determining whether the current to-be-transmitted data packet is a retransmission data packet according to the value of the I MCS , and if it is a retransmission data packet Then according to the TBS calculated when being newly passed the last time as the TBS of this time, end; if it is a newly passed data packet, then according to the I MCS and high-level configuration parameters, select the mapping table of the corresponding I MCS and the code rate, Find the corresponding target code rate R and modulation order Q m ; Calculate the number of bits N info that can be carried according to the target code rate R, the number of PRBs and the number of layers υ configured by the upper layer; According to the number of bits N info that can be carried Calculate TBS. The present application also discloses a MAC PDU multiplexing method and a corresponding device. By applying the technical solution disclosed in the present application, the fast calculation of TBS can be realized, and the upstream and downstream data processing procedures can be simplified.
Description
技术领域technical field
本申请涉及通信技术领域,特别涉及一种5GNR的TBS计算方法及MAC PDU复用方法和设备。The present application relates to the field of communication technologies, and in particular, to a 5GNR TBS calculation method and a MAC PDU multiplexing method and device.
背景技术Background technique
5G NR中的物理下行共享信道(PDSCH)和物理上行共享信道(PUSCH) 采用低密度奇偶校验码(LDPC)编码,由于传输块尺寸(TBS)将很大,基于内存的考虑,不能再沿用LTE中根据调制与编码策略(MCS)与TBS的映射表来直接获知对应的TBS;而是改为根据MCS查表得到对应码率,再根据码率和分配的Nprb以及采用的调制方式之间的关系,计算得到能够承载的比特个数,最后依据能够承载的比特个数计算出TBS。其中,Nprb是物理资源块(PRB)的个数。The Physical Downlink Shared Channel (PDSCH) and Physical Uplink Shared Channel (PUSCH) in 5G NR are encoded with Low Density Parity Check Code (LDPC). Due to the large transport block size (TBS), they cannot be used anymore due to memory considerations. In LTE, the corresponding TBS is directly obtained according to the mapping table between the modulation and coding strategy (MCS) and the TBS; instead, the corresponding code rate is obtained according to the MCS look-up table, and then the corresponding code rate is obtained according to the code rate and the allocated N prb and the modulation method used. According to the relationship between the two, calculate the number of bits that can be carried, and finally calculate the TBS according to the number of bits that can be carried. Wherein, N prb is the number of physical resource blocks (PRBs).
LDPC编码选择的Base graph与码块(CB)大小和码率相关,而不同Base graph的传输块(TB)块大小与码块个数以及循环冗余校验(CRC)添加又会影响码率。当TBS较大,分块个数较多时,TB因为需要对每个分块的CB 添加CRC,因此会影响最终码率值。如果使用二次纠正,相对复杂,需要研究简单实用的TBS计算方法、以及媒体接入控制协议数据单元(MACPDU) 复用流程。The Base graph selected by LDPC coding is related to the code block (CB) size and code rate, and the transmission block (TB) block size and the number of code blocks of different Base graphs and the addition of cyclic redundancy check (CRC) will affect the code rate. . When the TBS is large and the number of blocks is large, the TB needs to add CRC to the CB of each block, so the final code rate value will be affected. If secondary correction is used, it is relatively complicated, and a simple and practical TBS calculation method and a media access control protocol data unit (MACPDU) multiplexing process need to be studied.
而现有协议只约定了MCS与码率的对应关系,TBS尺寸计算的影响因素,并未考虑输入参数互为影响时的MAC PDU复用方法以及TBS计算的具体实现细节。However, the existing protocol only stipulates the corresponding relationship between MCS and code rate, the influencing factors of TBS size calculation, and does not consider the MAC PDU multiplexing method when the input parameters affect each other and the specific implementation details of TBS calculation.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种5GNR的TBS计算方法及MACPDU复用方法和设备,以实现TBS的快速计算,并简化上下行数据处理流程。The present application provides a 5GNR TBS calculation method and a MAC PDU multiplexing method and device, so as to realize fast calculation of TBS and simplify uplink and downlink data processing procedures.
本申请公开了一种传输块尺寸TBS计算方法,包括:The present application discloses a transport block size TBS calculation method, including:
获得MCS的索引IMCS和分配的PRB个数;Obtain the index I MCS of the MCS and the number of allocated PRBs;
根据IMCS的取值确定当前待传输的是否为重传数据包,如果为重传数据包则按照最近一次为新传时计算出的TBS作为本次的TBS,结束;如果为新传数据包,则:According to the value of I MCS , it is determined whether the current data packet to be transmitted is a retransmission data packet. If it is a retransmission data packet, the TBS calculated when the latest transmission is a new transmission is used as the TBS of this time, and the end; if it is a new transmission data packet ,but:
根据所述IMCS和高层配置参数,选择对应的IMCS与码率的映射表格,查找对应的目标码率R和调制阶数Qm;According to the IMCS and the high-level configuration parameters, select the mapping table of the corresponding IMCS and the code rate, and look up the corresponding target code rate R and modulation order Q m ;
根据目标码率R、PRB个数以及高层配置的层数υ计算出能够承载的比特个数Ninfo;Calculate the number of bits N info that can be carried according to the target code rate R, the number of PRBs and the number of layers υ configured by the high layer;
根据能够承载的比特个数Ninfo计算TBS:Calculate TBS according to the number of bits N info that can be carried:
如果Ninfo≤3824,则TBS不用分块,将Ninfo量化为8、16、或者32的倍数,按照量化的值匹配表格中最接近且不小于该值的TBS,量化公式为:If N info ≤ 3824, the TBS does not need to be divided into blocks, and N info is quantized to a multiple of 8, 16, or 32, and matches the TBS that is closest to and not less than this value in the table according to the quantized value. The quantization formula is:
N′info=max(24,(Ninfo>>n)<<n)N' info =max(24,(N info >>n)<<n)
其中,通过对寄存器的移位,实现的除法与向下取整的功能;in, By shifting the register, The function of division and rounding down;
如果Ninfo>3824,则将Ninfo量化为64、128、256…的倍数,量化公式为:If N info > 3824, then quantize N info to a multiple of 64, 128, 256..., and the quantization formula is:
N′info=max(3840,((Ninfo-24+1<<(n-1))>>n)<<n)N' info =max(3840,((N info -24+1<<(n-1))>>n)<<n)
其中,通过对寄存器的移位,实现的除法与四舍五入的功能;in, By shifting the register, The division and rounding functions of ;
并根据量化后的N′info、目标码率R和LDPC编码选择的base graph计算码块个数C,对传输块按照分块的个数进行8字节对齐,计算出TBS:And calculate the number of code blocks C according to the quantized N' info , the target code rate R and the base graph selected by LDPC encoding, and align the transmission block with 8 bytes according to the number of blocks, and calculate the TBS:
TBS=8*C*ceil((N′info+24)/8*C)-24。TBS=8*C*ceil((N' info +24)/8*C)-24.
较佳的,所述根据IMCS的取值确定当前待传输的是否为重传数据包包括:Preferably, determining whether the current to-be-transmitted data packet is a retransmission packet according to the value of the I MCS includes:
如果不支持256QAM和可变预编码,如果29≤IMCS≤31,则当前待传输的为重传数据包,否则,为新传数据包;If 256QAM and variable precoding are not supported, if 29≤I MCS≤31, the current data packet to be transmitted is a retransmitted data packet, otherwise, it is a newly transmitted data packet;
除上述情况之外,如果28≤IMCS≤31,则当前待传输的为重传数据包,否则,为新传数据包。In addition to the above cases, if 28≤I MCS≤31, the current data packet to be transmitted is a retransmitted data packet, otherwise, it is a newly transmitted data packet.
较佳的,所述根据目标码率R、PRB个数以及高层配置的层数υ计算出能够承载的比特个数Ninfo包括:Preferably, the calculation of the number of bits N info that can be carried according to the target code rate R, the number of PRBs, and the number of layers υ configured by high layers includes:
按照Ninfo=NRE·R·Qm·υ计算,其中:Calculated according to N info = N RE · R · Q m · υ, where:
NRE是数据信道的RE总数,NRE=min(156,N′RE)·nPRB,其中:N RE is the total number of REs of the data channel, N RE =min(156,N' RE )·n PRB , where:
N’RE为一个PRB内的RE个数, N' RE is the number of REs in a PRB,
为一个PRB内的频域的子载波数目; is the number of subcarriers in the frequency domain within a PRB;
为一个时隙内的PUSCH分配的符号个数; The number of symbols allocated for PUSCH in a slot;
为DCI format 0_0/0_1中指示的DM-RS CDM groups中调度PUSCH时刻内的每个PRB的DM-RS的RE个数; is the number of REs of the DM-RS of each PRB in the PUSCH timing in the DM-RS CDM groups indicated in DCI format 0_0/0_1;
为高层参数Xoh-PUSCH配置的值,如果没有配置Xoh-PUSCH,则该值默认为0。 The value configured for the high-level parameter Xoh-PUSCH, if no Xoh-PUSCH is configured, the value defaults to 0.
较佳的,所述根据量化后的N′info、目标码率R和LDPC编码选择的base graph 计算码块个数C包括:Preferably, the calculation of the number C of code blocks according to the quantized N′ info , the target code rate R and the base graph selected by LDPC coding includes:
判断R是否小于等于0.25,如果是,则根据C=ceil((N′info+24)/3816)计算码块个数C,并确定对应的LDPC分段的最大码块尺寸为Kcb=3840;Determine whether R is less than or equal to 0.25, and if so, calculate the number of code blocks C according to C=ceil((N' info +24)/3816), and determine that the maximum code block size of the corresponding LDPC segment is Kcb=3840;
否则,判断量化后的N′info是否小于等于8424,如果是,则码块个数C为1,对应的LDPC分段的最大码块尺寸为Kcb=8448,否则,根据C=ceil((N′info +24)/8424)计算码块个数C,并确定对应的LDPC分段的最大码块尺寸为Kcb= 8448。Otherwise, judge whether the quantized N' info is less than or equal to 8424, if so, the number of code blocks C is 1, and the maximum code block size of the corresponding LDPC segment is Kcb=8448, otherwise, according to C=ceil((N ' info +24)/8424) calculate the number C of code blocks, and determine the maximum code block size of the corresponding LDPC segment as Kcb=8448.
本申请还公开了一种MAC PDU复用方法,包括:The application also discloses a MAC PDU multiplexing method, including:
按照权利要求1所述方法计算TBS;Calculate TBS according to the method of
用TBS减去MAC层需要传输的MAC CE后,计算得到剩余的字节数 ResBytesNum;After subtracting the MAC CE that the MAC layer needs to transmit from TBS, calculate the remaining number of bytes ResBytesNum;
查询RLC待传字节数是否为零,如果为零,则上报BSR为零,组装MAC CE和填充,完成MAC PDU的复用,否则执行以下操作:Check whether the number of bytes to be transmitted by the RLC is zero. If it is zero, report the BSR as zero, assemble the MAC CE and padding, and complete the multiplexing of the MAC PDU. Otherwise, perform the following operations:
步骤6.按照RB承载的优先级顺序读取RLC PDU;Step 6. Read the RLC PDU according to the priority order of the RB bearer;
步骤7.判断RLC PDU的字节数果是否小于等于ResBytesNum-3,如是则执行步骤8,否则跳到步骤12;Step 7. Determine whether the number of bytes of the RLC PDU is less than or equal to ResBytesNum-3, if so, go to step 8, otherwise skip to step 12;
步骤8.将RLC PDU添加MAC子头后封装为一个MAC SubPDU;Step 8. Add the MAC subheader to the RLC PDU and encapsulate it into a MAC SubPDU;
步骤9.判断是否剩余ResBitNum<3Bytes或者所有待传数据的RLC承载处理完成,满足条件则执行步骤10,否则返回步骤6,继续处理RLC PDU;Step 9. Determine whether the remaining ResBitNum<3Bytes or the RLC bearer processing of all the data to be transmitted is completed, and if the conditions are met, perform step 10, otherwise return to step 6 to continue processing RLC PDUs;
步骤10.在MAC SubPDU后添加MAC CE子头及MAC CE内容,完成MAC PDU的复用;Step 10. Add the MAC CE subheader and the MAC CE content after the MAC SubPDU to complete the multiplexing of the MAC PDU;
步骤11.通知RLC复用后缓存中剩余的字节,结束;Step 11. Notify the RLC of the remaining bytes in the buffer after multiplexing, and end;
步骤12.将RLC PDU按照剩余字节数拆分,传输能够承载的字节数,并微调 RLC子头,添加MAC子头封装为一个MAC SubPDU;Step 12. Split the RLC PDU according to the number of remaining bytes, transmit the number of bytes that can be carried, fine-tune the RLC subheader, and add the MAC subheader to encapsulate it into a MAC SubPDU;
步骤13.通知RLC被分段的RB ID以及传输后该承载剩余的字节,以及复用后缓存中剩余字节。Step 13. Notify the RLC of the segmented RB ID, the remaining bytes of the bearer after transmission, and the remaining bytes in the buffer after multiplexing.
较佳的,在所述步骤12中,计算能够承载的字节数时,先扣除MAC子头占用字节数,当RLC PDU小于128字节时,MAC子头为2字节,否则,MAC子头为3字节。Preferably, in the step 12, when calculating the number of bytes that can be carried, first deduct the number of bytes occupied by the MAC subheader, when the RLC PDU is less than 128 bytes, the MAC subheader is 2 bytes, otherwise, the MAC subheader is 2 bytes. The subheader is 3 bytes.
本申请还公开了一种TBS计算设备,包括:信息获取模块和TBS计算模块,其中:The application also discloses a TBS computing device, comprising: an information acquisition module and a TBS computing module, wherein:
所述信息获取模块,用于获得MCS的索引IMCS和分配的PRB个数;The information acquisition module is used to obtain the index I MCS of MCS and the number of PRBs allocated;
所述TBS计算模块用于执行以下操作:The TBS computing module is used to perform the following operations:
根据IMCS的取值确定当前待传输的是否为重传数据包,如果为重传数据包则按照最近一次为新传时计算出的TBS作为本次的TBS,结束;如果为新传数据包,则:According to the value of I MCS , it is determined whether the current data packet to be transmitted is a retransmission data packet. If it is a retransmission data packet, the TBS calculated when the latest transmission is a new transmission is used as the TBS of this time, and the end; if it is a new transmission data packet ,but:
根据所述IMCS和高层配置参数,选择对应的IMCS与码率的映射表格,查找对应的目标码率R和调制阶数Qm;According to the IMCS and the high-level configuration parameters, select the mapping table of the corresponding IMCS and the code rate, and look up the corresponding target code rate R and modulation order Q m ;
根据目标码率R、PRB个数以及高层配置的层数υ计算出能够承载的比特个数Ninfo;Calculate the number of bits N info that can be carried according to the target code rate R, the number of PRBs and the number of layers υ configured by the high layer;
根据能够承载的比特个数Ninfo计算TBS:Calculate TBS according to the number of bits N info that can be carried:
如果Ninfo≤3824,则TBS不用分块,将Ninfo量化为8、16、或者32的倍数,按照量化的值匹配表格中最接近且不小于该值的TBS,量化公式为:If N info ≤ 3824, the TBS does not need to be divided into blocks, and N info is quantized to a multiple of 8, 16, or 32, and matches the TBS that is closest to and not less than this value in the table according to the quantized value. The quantization formula is:
N′info=max(24,(Ninfo>>n)<<n)N' info =max(24,(N info >>n)<<n)
其中,通过对寄存器的移位,实现的除法与向下取整的功能;in, By shifting the register, The function of division and rounding down;
如果Ninfo>3824,则将Ninfo量化为64、128、256…的倍数,量化公式为:If N info > 3824, then quantize N info to a multiple of 64, 128, 256..., and the quantization formula is:
N′info=max(3840,((Ninfo-24+1<<(n-1))>>n)<<n)N' info =max(3840,((N info -24+1<<(n-1))>>n)<<n)
其中,通过对寄存器的移位,实现的除法与四舍五入的功能;in, By shifting the register, The division and rounding functions of ;
并根据量化后的N′info、目标码率R和LDPC编码选择的base graph计算码块个数C,对传输块按照分块的个数进行8字节对齐,计算出TBS:And calculate the number of code blocks C according to the quantized N' info , the target code rate R and the base graph selected by LDPC encoding, and align the transmission block with 8 bytes according to the number of blocks, and calculate the TBS:
TBS=8*C*ceil((N′info+24)/8*C)-24。TBS=8*C*ceil((N' info +24)/8*C)-24.
较佳的,所述TBS计算模块具体用于执行以下操作确定当前待传输的是否为重传数据包:Preferably, the TBS calculation module is specifically configured to perform the following operations to determine whether the current to-be-transmitted data packet is a retransmission:
如果不支持256QAM和可变预编码,如果29≤IMCS≤31,则当前待传输的为重传数据包,否则,为新传数据包;If 256QAM and variable precoding are not supported, if 29≤I MCS≤31, the current data packet to be transmitted is a retransmitted data packet, otherwise, it is a newly transmitted data packet;
除上述情况之外,如果28≤IMCS≤31,则当前待传输的为重传数据包,否则,为新传数据包。In addition to the above cases, if 28≤I MCS≤31, the current data packet to be transmitted is a retransmitted data packet, otherwise, it is a newly transmitted data packet.
较佳的,所述TBS计算模块具体用于执行以下操作计算出能够承载的比特个数Ninfo:Preferably, the TBS calculation module is specifically configured to perform the following operations to calculate the number of bits N info that can be carried:
按照Ninfo=NRE·R·Qm·υ计算,其中:Calculated according to N info = N RE · R · Q m · υ, where:
NRE是数据信道的RE总数,NRE=min(156,N'RE)·nPRB,其中:N RE is the total number of REs of the data channel, N RE =min(156,N' RE )·n PRB , where:
N’RE为一个PRB内的RE个数, N' RE is the number of REs in a PRB,
为一个PRB内的频域的子载波数目; is the number of subcarriers in the frequency domain within a PRB;
为一个时隙内的PUSCH分配的符号个数; The number of symbols allocated for PUSCH in a slot;
为DCI format 0_0/0_1中指示的DM-RS CDM groups中调度PUSCH时刻内的每个PRB的DM-RS的RE个数; is the number of REs of the DM-RS of each PRB in the PUSCH timing in the DM-RS CDM groups indicated in DCI format 0_0/0_1;
为高层参数Xoh-PUSCH配置的值,如果没有配置Xoh-PUSCH,则该值默认为0。 The value configured for the high-level parameter Xoh-PUSCH, if no Xoh-PUSCH is configured, the value defaults to 0.
较佳的,所述TBS计算模块具体用于执行以下操作计算码块个数C:Preferably, the TBS calculation module is specifically configured to perform the following operations to calculate the number C of code blocks:
判断R是否小于等于0.25,如果是,则根据C=ceil((N′info+24)/3816)计算码块个数C,并确定对应的LDPC分段的最大码块尺寸为Kcb=3840;Determine whether R is less than or equal to 0.25, and if so, calculate the number of code blocks C according to C=ceil((N' info +24)/3816), and determine that the maximum code block size of the corresponding LDPC segment is Kcb=3840;
否则,判断量化后的N′info是否小于等于8424,如果是,则码块个数C为1,对应的LDPC分段的最大码块尺寸为Kcb=8448,否则,根据C=ceil((N′info +24)/8424)计算码块个数C,并确定对应的LDPC分段的最大码块尺寸为Kcb= 8448。Otherwise, judge whether the quantized N' info is less than or equal to 8424, if so, the number of code blocks C is 1, and the maximum code block size of the corresponding LDPC segment is Kcb=8448, otherwise, according to C=ceil((N ' info +24)/8424) calculate the number C of code blocks, and determine the maximum code block size of the corresponding LDPC segment as Kcb=8448.
本申请还公开了一种非易失性计算机可读存储介质,所述非易失性计算机可读存储介质存储指令,所述指令在由处理器执行时使得所述处理器执行如前所述的TBS计算方法以及MAC PDU复用方法的步骤。The present application also discloses a non-volatile computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to execute as described above The steps of the TBS calculation method and the MAC PDU multiplexing method.
本申请还公开了一种电子设备,包括如前所述的非易失性计算机可读存储介质、以及可访问所述非易失性计算机可读存储介质的所述处理器。The present application also discloses an electronic device, comprising the aforementioned non-volatile computer-readable storage medium, and the processor that can access the non-volatile computer-readable storage medium.
由上述技术方案可见,本申请优化了TBS计算方法,可以通过MCS与分配的无线承载(RB)个数,快速计算能够承载比特数,继而计算出的TBS 大小,计算过程同时考虑了MAC子头的添加、码块分段以及添加的CRC对码率的影响,使得TBS值更加精确,实现了目标用户TBS的快速计算。It can be seen from the above technical solutions that the present application optimizes the TBS calculation method, and can quickly calculate the number of bits that can be carried by MCS and the number of allocated radio bearers (RBs), and then the calculated TBS size. The calculation process also considers the MAC subheader. The addition of , the code block segmentation and the effect of the added CRC on the code rate make the TBS value more accurate and realize the fast calculation of the target user's TBS.
此外,本申请提出的MAC PDU的复用方法,通过提前判断出RLC的 PDU是否需要分段,从而不需要反复与RLC交互,直接使用RLC缓存中的数据完成MacSubPDU的封装,在MACPDU复用完成后,告知RLC剩余缓存情况以及是否有承载分段等信息,简化了上下行数据处理流程。基站的流程涉及到多用户处理,需要判断待传数据(即:想要发送的数据)与实际可用资源能够承载的数据是否匹配,本申请提出的资源匹配方法不需要二次修正或者资源回退处理,只需一次即可完成资源分配。In addition, the MAC PDU multiplexing method proposed in this application determines in advance whether the RLC PDU needs to be segmented, so that there is no need to repeatedly interact with the RLC, and the data in the RLC cache is directly used to complete the MacSubPDU encapsulation, and the MACPDU multiplexing is completed. After that, the RLC is notified of the remaining buffer status and whether there is a bearer segment, etc., which simplifies the uplink and downlink data processing procedures. The process of the base station involves multi-user processing, and it is necessary to judge whether the data to be transmitted (that is, the data to be sent) matches the data that can be carried by the actual available resources. The resource matching method proposed in this application does not require secondary correction or resource rollback. Processing, resource allocation can be done only once.
此外,本申请还具有以下有益效果:In addition, the present application also has the following beneficial effects:
1.本申请具有优化的码块个数C计算流程和简化的TBS计算流程;为避免浮点运算,充分利用了量化的Ninfo特性实现向上取整、向下取整、四舍五入等运算公式,从而大大提升了运算速度。1. The application has an optimized code block number C calculation process and a simplified TBS calculation process; in order to avoid floating-point operations, the quantized N info characteristic is fully utilized to realize arithmetic formulas such as round-up, round-down, rounding, Thereby greatly improving the operation speed.
2.本申请充分利用5GNR的UL-SCH的MAC PDU格式,直接生成 MACsubPDU,方便数据管理。2. This application makes full use of the MAC PDU format of the UL-SCH of 5GNR, and directly generates a MAC subPDU, which is convenient for data management.
3.本申请按照RB优先级顺序获取某个承载的RLC数据,并通过先行判断是否需要分段,减少了MAC与RLC的交互。3. The present application obtains the RLC data of a certain bearer in the order of RB priority, and reduces the interaction between MAC and RLC by judging in advance whether segmentation is required.
4.本申请在PUSCH后续没有缓存数据时,上报BSR为零,通知基站没有上行数据要发送,节约了空口资源。4. In the present application, when there is no subsequent buffered data on the PUSCH, the reported BSR is zero, and the base station is notified that there is no uplink data to be sent, which saves air interface resources.
附图说明Description of drawings
图1为本申请实施例中终端PUSCH发送的流程图;FIG. 1 is a flowchart of terminal PUSCH transmission in an embodiment of the application;
图2为本申请实施例中TBS计算流程的示意图;2 is a schematic diagram of a TBS calculation process in an embodiment of the application;
图3为本申请实施例中根据N′info计算码块个数C的流程图;3 is a flowchart of calculating the number C of code blocks according to N' info in an embodiment of the application;
图4为UL-SCH的MAC PDU示意图;FIG. 4 is a schematic diagram of the MAC PDU of the UL-SCH;
图5为本申请实施例中TBS计算设备的组成结构示意图。FIG. 5 is a schematic diagram of the composition and structure of a TBS computing device in an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案及优点更加清楚明白,以下参照附图并举实施例,对本申请作进一步详细说明。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and examples.
为解决现有技术所存在的问题,本申请提供了一种5GNR的TBS计算方法,该方法既适用于基站,也适用于终端,包括以下步骤:In order to solve the problems existing in the prior art, the present application provides a 5GNR TBS calculation method, which is applicable to both base stations and terminals, and includes the following steps:
步骤101:获得MCS的索引IMCS和分配的PRB个数。Step 101: Obtain the index I MCS of the MCS and the number of allocated PRBs.
步骤102:根据IMCS的取值确定当前待传输的是否为重传数据包,如果为重传数据包则按照最近一次为新传时计算出的TBS作为本次的TBS,结束;如果为新传数据包,则执行步骤103。Step 102: According to the value of I MCS , determine whether the current to-be-transmitted data packet is a retransmission packet, and if it is a retransmission packet, the TBS calculated when the latest transmission is a new transmission is used as the TBS of this time, and ends; If the data packet is transmitted, step 103 is executed.
步骤103:根据所述IMCS和高层配置参数,选择对应的IMCS与码率的映射表格,查找对应的目标码率R(Target Code Rate)和调制阶数Qm (Modulation Order)。Step 103: According to the I MCS and high-level configuration parameters, select the corresponding I MCS and code rate mapping table, and search for the corresponding target code rate R (Target Code Rate) and modulation order Q m (Modulation Order).
其中,所述高层配置参数具体包括:QAM64LowSE是否开启、是否支持 256QAM、可变预编码功能是否开启、是否支持PUSCH-tp-pi2BPSK。The high-level configuration parameters specifically include: whether QAM64LowSE is enabled, whether 256QAM is supported, whether the variable precoding function is enabled, and whether PUSCH-tp-pi2BPSK is supported.
步骤104:根据目标码率R、PRB个数以及高层配置的层数υ计算出能够承载的比特个数Ninfo。Step 104: Calculate the number of bits N info that can be carried according to the target code rate R, the number of PRBs, and the number of layers υ configured by higher layers.
将能够承载的比特个数记为Ninfo,其计算公式为:Ninfo=NRE·R·Qm·υ,其中,NRE是数据信道(对于上行,数据信道为PUSCH;对于下行,数据信道为PDSCH)的RE总数,NRE=min(156,N'RE)·nPRB,其中:The number of bits that can be carried is denoted as N info , and its calculation formula is: N info =N RE · R · Q m · υ, where N RE is the data channel (for uplink, the data channel is PUSCH; for downlink, the data Channel is the total number of REs of PDSCH), N RE =min(156,N' RE )·n PRB , where:
N’RE为一个PRB内的RE个数, N' RE is the number of REs in a PRB,
为一个PRB内的频域的子载波数目; is the number of subcarriers in the frequency domain within a PRB;
为一个时隙(slot)内的PUSCH分配的符号(symbol)个数; The number of symbols allocated for PUSCH in a slot;
为DCI format 0_0/0_1中指示的DM-RS CDM groups中调度PUSCH时刻内的每个PRB的DM-RS的RE个数; is the number of REs of the DM-RS of each PRB in the PUSCH timing in the DM-RS CDM groups indicated in DCI format 0_0/0_1;
为高层参数Xoh-PUSCH配置的值,如果没有配置Xoh-PUSCH(取值为0,6,12,or18),则该值默认为0。 The value configured for the high-level parameter Xoh-PUSCH. If Xoh-PUSCH is not configured (the value is 0, 6, 12, or 18), the value defaults to 0.
步骤105:根据能够承载的比特个数计算TBS,具体为:Step 105: Calculate TBS according to the number of bits that can be carried, specifically:
如果Ninfo≤3824,则TBS不用分块,将能够承载的比特个数量化为8、16、或者32的倍数,按照量化的值匹配表格中最接近且不小于该值的TBS,量化公式为:N′info=max(24,(Ninfo>>n)<<n);If N info ≤ 3824, the TBS does not need to be divided into blocks, and the number of bits that can be carried is quantified as a multiple of 8, 16, or 32, and the TBS that is closest to and not less than this value in the table is matched according to the quantized value. The quantization formula is : N' info =max(24,(N info >>n)<<n);
其中,可以通过对寄存器的移位,实现的除法与向下取整的功能。in, It can be achieved by shifting the register The division and round-down functions of .
如果Ninfo>3824,则将能够承载的比特个数量化为64、128、256…等的倍数,量化公式为:If N info > 3824, the number of bits that can be carried is quantized as a multiple of 64, 128, 256... etc. The quantization formula is:
其中, in,
本申请通过将量化公式修改为:This application modifies the quantification formula as:
N′info=max(3840,((Ninfo-24+1<<(n-1))>>n)<<n)N' info =max(3840,((N info -24+1<<(n-1))>>n)<<n)
其中,通过对寄存器的移位,实现的除法与四舍五入,并通过用加减法替换除法运算,来提升运算速度。in, By shifting the register, , and speed up operations by replacing division with addition and subtraction.
然后根据量化后的N′info、目标码率R和LDPC编码选择的base graph计算分块个数C,对TB块按照分块的个数进行8字节对齐,计算出TBS:Then calculate the number of blocks C according to the quantized N' info , the target code rate R and the base graph selected by LDPC coding, and align the TB blocks with 8 bytes according to the number of blocks, and calculate the TBS:
TBS=8*C*ceil((N′info+24)/8*C)-24。TBS=8*C*ceil((N' info +24)/8*C)-24.
其中,所述根据量化后的N′info、目标码率R和LDPC编码选择的base graph 计算码块个数C包括:Wherein, the calculation of the number C of code blocks according to the quantized N′ info , the target code rate R and the base graph selected by LDPC coding includes:
判断R是否小于等于0.25,如果是,则根据C=ceil((N′info+24)/3816)计算码块个数C,并确定对应的LDPC分段的最大码块尺寸为Kcb=3840;Determine whether R is less than or equal to 0.25, and if so, calculate the number of code blocks C according to C=ceil((N' info +24)/3816), and determine that the maximum code block size of the corresponding LDPC segment is Kcb=3840;
否则,判断量化后的N′info是否小于等于8424,如果是,则码块个数C为1,对应的LDPC分段的最大码块尺寸为Kcb=8448,否则,根据C=ceil((N′info +24)/8424)计算码块个数C,并确定对应的LDPC分段的最大码块尺寸为Kcb= 8448。Otherwise, judge whether the quantized N' info is less than or equal to 8424, if so, the number of code blocks C is 1, and the maximum code block size of the corresponding LDPC segment is Kcb=8448, otherwise, according to C=ceil((N ' info +24)/8424) calculate the number C of code blocks, and determine the maximum code block size of the corresponding LDPC segment as Kcb=8448.
下面对本申请技术方案的描述以终端的上行PUSCH传输为例,基站侧的PDSCH发送与终端的上行PUSCH发送类似,只是用于计算的PRB个数为基站剩余资源PRBNum与流控模块处理输出的PRBNum取小之后的值,以该值作为Nprb。The following description of the technical solution of the present application takes the uplink PUSCH transmission of the terminal as an example. The PDSCH transmission on the base station side is similar to the uplink PUSCH transmission of the terminal, except that the number of PRBs used for calculation is the PRBNum of the remaining resources of the base station and the PRBNum processed by the flow control module. Take the smaller value and use this value as N prb .
图1为本申请实施例中终端PUSCH发送的流程图,该流程包括以下步骤:FIG. 1 is a flowchart of terminal PUSCH transmission in an embodiment of the application, and the flowchart includes the following steps:
步骤1.开始。
步骤2.接收基带的下行控制信息(DCI),根据授权DCI中的字段计算给UE分配的PRB个数,以及MCS的索引(IMCS)。
步骤3.根据授权DCI中的字段和高层配置参数计算出本次授权分配的 TBS,计算TBS的流程如图2所示,稍后将予以详细说明。Step 3. Calculate the TBS allocated by this authorization according to the fields in the authorized DCI and the high-level configuration parameters. The flow of calculating the TBS is shown in FIG. 2 , which will be described in detail later.
步骤4.用TBS减去MAC层需要传输的MAC CE后,计算得到剩余的字节数ResBytesNum。Step 4. After subtracting the MAC CE that the MAC layer needs to transmit from TBS, calculate the remaining number of bytes ResBytesNum.
步骤5.查询RLC待传字节数是否为零,如果不为零则执行步骤6,否则跳到步骤14。Step 5. Check whether the number of bytes to be transmitted by RLC is zero, if not, go to step 6, otherwise skip to step 14.
步骤6.按照RB承载的优先级顺序读取RLC PDU。Step 6. Read the RLC PDUs according to the priority order of the RB bearers.
步骤7.判断RLC PDU的字节数是否小于等于ResBytesNum-3,如果是则执行步骤8,否则跳到步骤12。Step 7. Determine whether the number of bytes of the RLC PDU is less than or equal to ResBytesNum-3, if so, go to Step 8, otherwise skip to Step 12.
步骤8.将RLC PDU添加MAC子头后封装为一个MAC SubPDU。Step 8. Add the MAC subheader to the RLC PDU and encapsulate it into a MAC SubPDU.
步骤9.判断是否剩余ResBitNum<3Bytes或者所有待传数据的RLC承载处理完成,满足条件则执行步骤10,否则返回步骤6继续处理RLC PDU。Step 9. Determine whether the remaining ResBitNum<3Bytes or the RLC bearer processing of all the data to be transmitted is completed. If the conditions are met, go to Step 10, otherwise return to Step 6 to continue processing the RLC PDU.
步骤10.在MAC SubPDU后添加MAC CE子头及MAC CE内容,完成 MAC PDU的复用。Step 10. Add a MAC CE subheader and MAC CE content after the MAC SubPDU to complete the multiplexing of the MAC PDU.
步骤11.通知RLC复用后缓存中剩余的字节,供RLC后续调整缓存,之后跳到步骤15结束流程。Step 11. Notify the RLC of the remaining bytes in the buffer after multiplexing for the RLC to adjust the buffer subsequently, and then skip to Step 15 to end the process.
步骤12.将RLC PDU按照剩余字节数拆分,传输能够承载的字节数,并微调RLC子头,添加MAC子头封装为一个MAC SubPDU(计算能够承载RLC PDU字节数时需要先扣除MAC子头占用字节数,当RLC PDU小于128 字节时,MAC子头为2字节,否则,MAC子头为3字节)。Step 12. Split the RLC PDU according to the number of remaining bytes, transmit the number of bytes that can be carried, fine-tune the RLC subheader, and add the MAC subheader to encapsulate it into a MAC SubPDU (the number of bytes that can be carried by the RLC PDU needs to be deducted first. The number of bytes occupied by the MAC subheader, when the RLC PDU is less than 128 bytes, the MAC subheader is 2 bytes, otherwise, the MAC subheader is 3 bytes).
步骤13.通知RLC被分段的RB ID以及传输后该承载剩余的字节,以及复用后缓存中剩余字节,供RLC后续调整缓存,之后跳到步骤15结束流程。Step 13. Notify the RLC of the segmented RB ID and the remaining bytes of the bearer after transmission, as well as the remaining bytes in the buffer after multiplexing, for the RLC to adjust the buffer subsequently, and then skip to step 15 to end the process.
步骤14.上报基站缓冲状态报告(BSR)为0,组装MAC CE和填充 (Padding),完成MAC PDU的复用。Step 14. Report the Buffer Status Report (BSR) of the base station as 0, assemble the MAC CE and padding, and complete the multiplexing of the MAC PDU.
步骤15.结束。Step 15. End.
图2为本申请实施例中TBS计算流程的示意图,该流程适用于基站与终端,包括以下步骤:FIG. 2 is a schematic diagram of a TBS calculation process in an embodiment of the application. The process is applicable to a base station and a terminal, and includes the following steps:
步骤1.开始。
步骤2.获取入口参数:IMCS、为UE分配的PRB总个数。
步骤3.根据IMCS的取值确定是否为重传数据包,如果为重传数据包则执行步骤4,如果为新传数据包则执行步骤5。Step 3. Determine whether it is a retransmitted data packet according to the value of the I MCS , if it is a retransmitted data packet, go to step 4, and if it is a newly transmitted data packet, go to step 5.
具体而言,如果为不支持256QAM和可变预编码时,如果29≤IMCS≤31,则为重传数据包,否则,为新传数据包;Specifically, if 256QAM and variable precoding are not supported, if 29≤I MCS≤31 , it is a retransmission data packet, otherwise, it is a new transmission data packet;
除上述情况之外,如果28≤IMCS≤31,则为重传数据包,否则,为新传数据包。In addition to the above cases, if 28≤I MCS≤31 , the data packet is retransmitted, otherwise, the data packet is newly transmitted.
步骤4.重传时按照最近一次PDCCH指示为新传时计算出的TBS作为本次接收数据包的TBS,直接跳到步骤10,结束流程。Step 4. During retransmission, the TBS calculated when the latest PDCCH indicates a new transmission is taken as the TBS of the received data packet this time, and the process is directly skipped to step 10 to end the process.
步骤5.依据本次新传DCI中指示的IMCS和高层配置参数,即QAM64LowSE 是否开启、是否支持256QAM、可变预编码功能是否开启、是否支持 PUSCH-tp-pi2BPSK,选择对应的IMCS与码率的映射表格(共有5种类型的表格),查找对应的目标码率R(Target code Rate)和调制阶数Qm(Modulation Order)。其中,上行由于支持BPSK调制和可变预编码,根据是否开启可变预编码和是否支持BPSK调制开关选择不同的MCS映射表格获取目标码率和Qm,其余过程类似。Step 5. According to the I MCS and high-level configuration parameters indicated in the newly transmitted DCI, that is, whether QAM64LowSE is enabled, whether 256QAM is supported, whether the variable precoding function is enabled, and whether PUSCH-tp-pi2BPSK is supported, select the corresponding I MCS and In the code rate mapping table (there are 5 types of tables), look up the corresponding target code rate R (Target code Rate) and modulation order Qm (Modulation Order). Among them, since the uplink supports BPSK modulation and variable precoding, different MCS mapping tables are selected according to whether the variable precoding is enabled and whether the BPSK modulation switch is supported to obtain the target code rate and Qm, and the rest of the process is similar.
步骤6.依据本次DCI中的资源分配域可得知分配的PRB个数(PrbNum),根据码率R和PRB个数以及高层配置的层数υ计算出能够承载的Bit个数Ninfo, Ninfo=NRE·R·Qm·υ。Step 6. According to the resource allocation field in this DCI, the number of allocated PRBs (PrbNum) can be known, and the number of bits N info that can be carried is calculated according to the code rate R and the number of PRBs and the number of layers υ configured by the high layer, N info = N RE · R · Q m · υ.
其中,PUSCH的RE总数:NRE=min(156,N'RE)·nPRB;Among them, the total number of REs of PUSCH: N RE =min(156, N' RE )·n PRB ;
一个PRB内的RE个数(N'RE): Number of REs in a PRB (N' RE ):
其中,为一个PRB内的频域的子载波数目;in, is the number of subcarriers in the frequency domain within a PRB;
为一个时隙(slot)内的PUSCH分配的符号(symbol)个数; The number of symbols allocated for PUSCH in a slot;
为DCI format 0_0/0_1中指示的DM-RS CDM groups中调度PUSCH时刻内的每个PRB的DM-RS的RE个数; is the number of REs of the DM-RS of each PRB in the PUSCH timing in the DM-RS CDM groups indicated in DCI format 0_0/0_1;
为高层参数Xoh-PUSCH配置的值,如果没有配置Xoh-PUSCH(取值为 0,6,12,or 18),则该值默认为0。 The value configured for the high-level parameter Xoh-PUSCH. If Xoh-PUSCH is not configured (the value is 0, 6, 12, or 18), the value defaults to 0.
步骤7.依据该PUSCH能够承载的比特个数计算TBS,如果Ninfo≤3824,则执行步骤8,否则执行步骤9。Step 7. Calculate the TBS according to the number of bits that the PUSCH can carry. If N info ≤ 3824, go to Step 8, otherwise go to Step 9.
步骤8.TBS不用分块,直接将PUSCH能够承载的比特个数量化为8、16、或者32的倍数,按照量化的值匹配表格中最接近且不小于该值的TBS,量化公式为:Step 8. TBS does not need to be divided into blocks, directly quantifies the number of bits that PUSCH can carry as a multiple of 8, 16, or 32, and matches the TBS closest to and not less than this value in the table according to the quantized value. The quantization formula is:
N′info=max(24,(Ninfo>>n)<<n)N' info =max(24,(N info >>n)<<n)
其中, in,
通过对寄存器的移位,实现的除法与向下取整的功能。By shifting the register, The division and round-down functions of .
步骤9.将PUSCH承载的Bit个数Ninfo量化为64、128、256…等的倍数,TBS 有可能需要分块,根据LDPC编码选择的base graph按照公式计算分块个数,对 TB块按照分块的个数进行8字节对齐,计算出TBS(选择的base graph不同则分块的TB不一样)。Step 9. Quantize the number of Bits N info carried by PUSCH into multiples of 64, 128, 256, etc. TBS may need to be divided into blocks. Calculate the number of blocks according to the formula according to the base graph selected by LDPC encoding. The number of blocks is 8-byte aligned, and the TBS is calculated (the TB of the block is different if the selected base graph is different).
量化公式:其中 Quantitative formula: in
量化公式修改为N′info=max(3840,((Ninfo-24+1<<(n-1))>>n)<<n)The quantization formula is modified as N' info =max(3840,((N info -24+1<<(n-1))>>n)<<n)
其中,通过对寄存器的移位,实现的除法与四舍五入,且用加减法替换除法运算,提升运算速度。根据N′info计算出码块个数C的流程如图3所示。计算出码块个数C后,根据公式计算TBS:in, By shifting the register, The division and rounding of , and replace the division operation with addition and subtraction to improve the operation speed. The process of calculating the number C of code blocks according to N' info is shown in Fig. 3 . After calculating the number of code blocks C, calculate TBS according to the formula:
TBS=8*C*ceil((N′info+24)/8*C)-24。TBS=8*C*ceil((N' info +24)/8*C)-24.
步骤10.结束。Step 10. End.
图3为本申请实施例中根据Ni'nfo计算码块个数C的流程图,参见图3,该流程包括:Fig. 3 is the flow chart of calculating the number C of code blocks according to N i ' nfo in the embodiment of the application, referring to Fig. 3 , the flow chart includes:
步骤1.开始。
步骤2.获取入口参数:量化后的能够承载的比特数N′info和码率R。
步骤3.判断R是否小于等于0.25,如果是,则执行步骤4,否则,执行步骤5。Step 3. Determine whether R is less than or equal to 0.25, if yes, go to Step 4, otherwise, go to Step 5.
步骤4.根据公式计算码块个数:C=ceil((N′info+24)/3816),对应的最大码块尺寸为Kcb=3840,跳到步骤8。Step 4. Calculate the number of code blocks according to the formula: C=ceil((N′ info +24)/3816), the corresponding maximum code block size is Kcb=3840, skip to step 8.
步骤5.判断N′info是否小于等于8424,如果是,则执行步骤6,否则,执行步骤7。Step 5. Determine whether N' info is less than or equal to 8424, if yes, go to Step 6, otherwise, go to Step 7.
步骤6.码块个数为1,C=1,对应的最大码块尺寸为Kcb=8448,跳到步骤8。Step 6. The number of code blocks is 1, C=1, and the corresponding maximum code block size is Kcb=8448, skip to step 8.
步骤7.根据公式计算码块个数C=ceil((N′info+24)/8424),对应的最大码块尺寸为Kcb=8448。Step 7. Calculate the number of code blocks C=ceil((N' info +24)/8424) according to the formula, and the corresponding maximum code block size is Kcb=8448.
步骤8.返回码块个数C,与LDPC分段的Kcb值。Step 8. Return the number of code blocks C, and the Kcb value of the LDPC segment.
步骤9.结束。Step 9. End.
图4为UL-SCH的MAC PDU示意图。FIG. 4 is a schematic diagram of the MAC PDU of the UL-SCH.
码块分段的原则为:The principle of code block segmentation is:
对于LDPC base graph 1,最大码块尺寸为:Kcb=8448;For
对于LDPC base graph 2,最大码块尺寸为:Kcb=3840。For
CRC添加原则为:The principle of adding CRC is:
净荷大于3824,则添加24位CRC,否则,添加16位CRC。If the payload is greater than 3824, add a 24-bit CRC, otherwise, add a 16-bit CRC.
对应于上述方法,本申请还公开了一种TBS计算设备,其组成结构如图5所示,包括:信息获取模块和TBS计算模块,其中:Corresponding to the above method, the present application also discloses a TBS computing device, the composition of which is shown in Figure 5, including: an information acquisition module and a TBS computing module, wherein:
所述信息获取模块,用于获得MCS的索引IMCS和分配的PRB个数;The information acquisition module is used to obtain the index I MCS of MCS and the number of PRBs allocated;
所述TBS计算模块用于执行以下操作:The TBS computing module is used to perform the following operations:
根据IMCS的取值确定当前待传输的是否为重传数据包,如果为重传数据包则按照最近一次为新传时计算出的TBS作为本次的TBS,结束;如果为新传数据包,则:According to the value of I MCS , it is determined whether the current data packet to be transmitted is a retransmission data packet. If it is a retransmission data packet, the TBS calculated when the latest transmission is a new transmission is used as the TBS of this time, and the end; if it is a new transmission data packet ,but:
根据所述IMCS和高层配置参数,选择对应的IMCS与码率的映射表格,查找对应的目标码率R和调制阶数Qm;According to the IMCS and the high-level configuration parameters, select the mapping table of the corresponding IMCS and the code rate, and look up the corresponding target code rate R and modulation order Q m ;
根据目标码率R、PRB个数以及高层配置的层数υ计算出能够承载的比特个数Ninfo;Calculate the number of bits N info that can be carried according to the target code rate R, the number of PRBs and the number of layers υ configured by the high layer;
根据能够承载的比特个数Ninfo计算TBS:Calculate TBS according to the number of bits N info that can be carried:
如果Ninfo≤3824,则TBS不用分块,将Ninfo量化为8、16、或者32的倍数,按照量化的值匹配表格中最接近且不小于该值的TBS,量化公式为:If N info ≤ 3824, the TBS does not need to be divided into blocks, and N info is quantized to a multiple of 8, 16, or 32, and matches the TBS that is closest to and not less than this value in the table according to the quantized value. The quantization formula is:
N′info=max(24,(Ninfo>>n)<<n)N' info =max(24,(N info >>n)<<n)
其中,通过对寄存器的移位,实现的除法与向下取整的功能;in, By shifting the register, The function of division and rounding down;
如果Ninfo>3824,则将Ninfo量化为64、128、256…的倍数,量化公式为:If N info > 3824, then quantize N info to a multiple of 64, 128, 256..., and the quantization formula is:
N′info=max(3840,((Ninfo-24+1<<(n-1))>>n)<<n)N' info =max(3840,((N info -24+1<<(n-1))>>n)<<n)
其中,通过对寄存器的移位等操作,实现的除法与四舍五入的功能;in, By shifting and other operations on the register, it is realized The division and rounding functions of ;
并根据量化后的N′info、目标码率R和LDPC编码选择的base graph计算码块个数C,对传输块按照分块的个数进行8字节对齐,计算出TBS:And calculate the number of code blocks C according to the quantized N' info , the target code rate R and the base graph selected by LDPC encoding, and align the transmission block with 8 bytes according to the number of blocks, and calculate the TBS:
TBS=8*C*ceil((N′info+24)/8*C)-24。TBS=8*C*ceil((N' info +24)/8*C)-24.
较佳的,所述TBS计算模块具体用于执行以下操作确定当前待传输的是否为重传数据包:Preferably, the TBS calculation module is specifically configured to perform the following operations to determine whether the current to-be-transmitted data packet is a retransmission:
如果不支持256QAM和可变预编码,如果29≤IMCS≤31,则当前待传输的为重传数据包,否则,为新传数据包;If 256QAM and variable precoding are not supported, if 29≤I MCS≤31, the current data packet to be transmitted is a retransmitted data packet, otherwise, it is a newly transmitted data packet;
除上述情况之外,如果28≤IMCS≤31,则当前待传输的为重传数据包,否则,为新传数据包。In addition to the above cases, if 28≤I MCS≤31, the current data packet to be transmitted is a retransmitted data packet, otherwise, it is a newly transmitted data packet.
较佳的,所述TBS计算模块具体用于执行以下操作计算出能够承载的比特个数Ninfo:Preferably, the TBS calculation module is specifically configured to perform the following operations to calculate the number of bits N info that can be carried:
按照Ninfo=NRE·R·Qm·υ计算,其中:Calculated according to N info = N RE · R · Q m · υ, where:
NRE是数据信道的RE总数,NRE=min(156,N'RE)·nPRB,其中:N RE is the total number of REs of the data channel, N RE =min(156,N' RE )·n PRB , where:
N’RE为一个PRB内的RE个数, N' RE is the number of REs in a PRB,
为一个PRB内的频域的子载波数目; is the number of subcarriers in the frequency domain within a PRB;
为一个时隙内的PUSCH分配的符号个数; The number of symbols allocated for PUSCH in a slot;
为DCI format 0_0/0_1中指示的DM-RS CDM groups中调度PUSCH时刻内的每个PRB的DM-RS的RE个数; is the number of REs of the DM-RS of each PRB in the PUSCH timing in the DM-RS CDM groups indicated in DCI format 0_0/0_1;
为高层参数Xoh-PUSCH配置的值,如果没有配置Xoh-PUSCH,则该值默认为0。 The value configured for the high-level parameter Xoh-PUSCH, if no Xoh-PUSCH is configured, the value defaults to 0.
较佳的,所述TBS计算模块具体用于执行以下操作计算码块个数C:Preferably, the TBS calculation module is specifically configured to perform the following operations to calculate the number C of code blocks:
判断R是否小于等于0.25,如果是,则根据C=ceil((N′info+24)/3816)计算码块个数C,并确定对应的LDPC分段的最大码块尺寸为Kcb=3840;Determine whether R is less than or equal to 0.25, and if so, calculate the number of code blocks C according to C=ceil((N' info +24)/3816), and determine that the maximum code block size of the corresponding LDPC segment is Kcb=3840;
否则,判断量化后的N′info是否小于等于8424,如果是,则码块个数C为1,对应的LDPC分段的最大码块尺寸为Kcb=8448,否则,根据C=ceil((N′info +24)/8424)计算码块个数C,并确定对应的LDPC分段的最大码块尺寸为Kcb= 8448。Otherwise, judge whether the quantized N' info is less than or equal to 8424, if so, the number of code blocks C is 1, and the maximum code block size of the corresponding LDPC segment is Kcb=8448, otherwise, according to C=ceil((N ' info +24)/8424) calculate the number C of code blocks, and determine the maximum code block size of the corresponding LDPC segment as Kcb=8448.
此外,本申请还提供了一种非易失性计算机可读存储介质,所述非易失性计算机可读存储介质存储指令,所述指令在由处理器执行时使得所述处理器执行如前所述的TBS计算方法的步骤。本申请还提供了一种电子设备,包括如上所述的非易失性计算机可读存储介质、以及可访问所述非易失性计算机可读存储介质的所述处理器。In addition, the present application also provides a non-volatile computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to execute as before The steps of the TBS calculation method. The present application also provides an electronic device including the non-volatile computer-readable storage medium as described above, and the processor that can access the non-volatile computer-readable storage medium.
此外,本申请还提供了一种非易失性计算机可读存储介质,所述非易失性计算机可读存储介质存储指令,所述指令在由处理器执行时使得所述处理器执行如前所述的MACPUD复用方法的步骤。本申请还提供了一种电子设备,包括如上所述的非易失性计算机可读存储介质、以及可访问所述非易失性计算机可读存储介质的所述处理器。In addition, the present application also provides a non-volatile computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to execute as before The steps of the MACCPUD multiplexing method. The present application also provides an electronic device including the non-volatile computer-readable storage medium as described above, and the processor that can access the non-volatile computer-readable storage medium.
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the present application. within the scope of protection.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811434688.9A CN111245556A (en) | 2018-11-28 | 2018-11-28 | TBS (transport block size ratio) calculation method of 5GNR (generalized maximum likelihood ratio) and MACPDU (machine Access data Unit) multiplexing method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811434688.9A CN111245556A (en) | 2018-11-28 | 2018-11-28 | TBS (transport block size ratio) calculation method of 5GNR (generalized maximum likelihood ratio) and MACPDU (machine Access data Unit) multiplexing method and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111245556A true CN111245556A (en) | 2020-06-05 |
Family
ID=70863673
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811434688.9A Withdrawn CN111245556A (en) | 2018-11-28 | 2018-11-28 | TBS (transport block size ratio) calculation method of 5GNR (generalized maximum likelihood ratio) and MACPDU (machine Access data Unit) multiplexing method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111245556A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113784356A (en) * | 2021-10-27 | 2021-12-10 | 哲库科技(北京)有限公司 | Method, device, equipment and storage medium for determining communication parameters |
CN115276937A (en) * | 2022-07-18 | 2022-11-01 | 哲库科技(北京)有限公司 | Method, device, terminal and storage medium for sending sounding reference signal |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101170389A (en) * | 2006-10-27 | 2008-04-30 | 中兴通讯股份有限公司 | Method for selecting the transport block size of the first transmission of the radio link control layer protocol data unit |
CN101170388A (en) * | 2006-10-27 | 2008-04-30 | 中兴通讯股份有限公司 | Method for identifying whether resending protocol data unit is sectioned |
US20090103511A1 (en) * | 2007-09-28 | 2009-04-23 | Interdigital Patent Holdings, Inc. | Method and apparatus for selecting a radio link control protocol data unit size |
US20090323671A1 (en) * | 2008-06-30 | 2009-12-31 | Chih-Hsiang Wu | Method for determining rlc data pdu size in wireless communications system according to control data |
WO2010099720A1 (en) * | 2009-03-04 | 2010-09-10 | 华为技术有限公司 | Data multiplexing method and apparatus for the media access control layer |
CN101953095A (en) * | 2008-02-20 | 2011-01-19 | Lg电子株式会社 | Method and apparatus for processing padding buffer status reports |
CN102355328A (en) * | 2011-09-01 | 2012-02-15 | 电信科学技术研究院 | Data processing method and equipment |
CN105517053A (en) * | 2016-02-01 | 2016-04-20 | 京信通信技术(广州)有限公司 | Method and system for reducing wireless link control layer protocol data unit subdivision sections |
CN106936918A (en) * | 2017-03-24 | 2017-07-07 | 武汉虹信通信技术有限责任公司 | For the RLC PDU transmission methods of LTE mobile communication system |
CN107911837A (en) * | 2017-11-24 | 2018-04-13 | 北京泰德东腾通信技术有限公司 | Arrowband Internet of Things end state cache reports test method and system |
-
2018
- 2018-11-28 CN CN201811434688.9A patent/CN111245556A/en not_active Withdrawn
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101170389A (en) * | 2006-10-27 | 2008-04-30 | 中兴通讯股份有限公司 | Method for selecting the transport block size of the first transmission of the radio link control layer protocol data unit |
CN101170388A (en) * | 2006-10-27 | 2008-04-30 | 中兴通讯股份有限公司 | Method for identifying whether resending protocol data unit is sectioned |
US20090103511A1 (en) * | 2007-09-28 | 2009-04-23 | Interdigital Patent Holdings, Inc. | Method and apparatus for selecting a radio link control protocol data unit size |
CN101953095A (en) * | 2008-02-20 | 2011-01-19 | Lg电子株式会社 | Method and apparatus for processing padding buffer status reports |
US20090323671A1 (en) * | 2008-06-30 | 2009-12-31 | Chih-Hsiang Wu | Method for determining rlc data pdu size in wireless communications system according to control data |
WO2010099720A1 (en) * | 2009-03-04 | 2010-09-10 | 华为技术有限公司 | Data multiplexing method and apparatus for the media access control layer |
CN102355328A (en) * | 2011-09-01 | 2012-02-15 | 电信科学技术研究院 | Data processing method and equipment |
CN105517053A (en) * | 2016-02-01 | 2016-04-20 | 京信通信技术(广州)有限公司 | Method and system for reducing wireless link control layer protocol data unit subdivision sections |
CN106936918A (en) * | 2017-03-24 | 2017-07-07 | 武汉虹信通信技术有限责任公司 | For the RLC PDU transmission methods of LTE mobile communication system |
CN107911837A (en) * | 2017-11-24 | 2018-04-13 | 北京泰德东腾通信技术有限公司 | Arrowband Internet of Things end state cache reports test method and system |
Non-Patent Citations (6)
Title |
---|
3GPP: "《3GPP TS 38.214 V15.3.0》", 1 October 2018 * |
ERICSSON: "R2-074062 "MAC header structure"", 《3GPP TSG_RAN\WG2_RL2》 * |
ERICSSON: "R2-99e56 "Transport block size signalling"", 《3GPP TSG_RAN\WG2_RL2》 * |
ERICSSON等: "R1-132015 "MCS and TBS tables for NCT PDSCH"", 《3GPP TSG_RAN\WG1_RL1》 * |
FUJITSU: "R2-168231 "Considerations on the segmentation function in NR"", 《3GPP TSG_RAN\WG2_RL2》 * |
QUALCOMM EUROPE: "R2-081011 "RLC PDU size selection on uplink"", 《3GPP TSG_RAN\WG2_RL2》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113784356A (en) * | 2021-10-27 | 2021-12-10 | 哲库科技(北京)有限公司 | Method, device, equipment and storage medium for determining communication parameters |
CN113784356B (en) * | 2021-10-27 | 2023-08-08 | 哲库科技(北京)有限公司 | Method, device, equipment and storage medium for determining communication parameters |
CN115276937A (en) * | 2022-07-18 | 2022-11-01 | 哲库科技(北京)有限公司 | Method, device, terminal and storage medium for sending sounding reference signal |
CN115276937B (en) * | 2022-07-18 | 2023-11-28 | 哲库科技(北京)有限公司 | Method, device, terminal and storage medium for sending sounding reference signal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7498749B2 (en) | Method and apparatus for implementing code block division | |
CN110034905B (en) | Uplink information transmission method and device | |
CN112073158B (en) | Uplink Feedback Method for Operating a Large Number of Carriers | |
WO2019137467A1 (en) | Uplink information transmission method and apparatus | |
CN110166168B (en) | Method, device and system for determining size of transmission block | |
US20200137627A1 (en) | Redundancy version indication in fifth generation (5g) or other next generation communication systems | |
CN107432007A (en) | User equipment, the network equipment and the method for determining physical uplink control channel resource | |
CN115104269B (en) | Uplink retransmission with compact memory usage | |
CN110099448A (en) | The method and apparatus of communication | |
CN116097588A (en) | Method used for transport block size determination process | |
CN116015578B (en) | Data transmission indication and data transmission method, base station, terminal and storage medium | |
WO2020164474A1 (en) | Codebook processing method and apparatus | |
CN111434059A (en) | Data mapping method and apparatus in wireless communication system | |
KR20190055225A (en) | Determine transport block size for short transmission time intervals | |
CN111245556A (en) | TBS (transport block size ratio) calculation method of 5GNR (generalized maximum likelihood ratio) and MACPDU (machine Access data Unit) multiplexing method and equipment | |
WO2022267020A1 (en) | Wireless communication method, terminal device, and network device | |
US20150318967A1 (en) | Method and device for transmitting information | |
CN111431675B (en) | Data transmission method and device | |
CN109586858A (en) | A kind of user that be used to wirelessly communicate, the method and apparatus in base station | |
CN114944886B (en) | Rate matching method and device, and rate decompression method and device | |
CN111385879A (en) | A method, apparatus and device for dynamically adjusting PUSCH resources | |
WO2022236641A1 (en) | Information processing method and apparatus, terminal device, and storage medium | |
US20230059861A1 (en) | Method and device in nodes used for wireless communication | |
WO2023283958A1 (en) | Information processing methods and apparatus, device, and storage medium | |
CN106656433B (en) | Downlink data feedback method, device and system |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200605 |