Search

US-12621712-B2 - Data sending method, data receiving method, and communication apparatus

US12621712B2US 12621712 B2US12621712 B2US 12621712B2US-12621712-B2

Abstract

A method is provided that a transmitting end generates a data segment, where the data segment includes header information and data parts of a plurality of CBs that are obtained by dividing a TB, there is a position mapping relationship between the data parts of the plurality of CBs and N sub-PDUs included in a MAC PDU, and the header information of each CB indicates a position mapping relationship between the CB and a sub-PDU corresponding to the CB. The transmitting end sends the TB that carries the data segment. Therefore, at a receiving end, if a CRC error occurs on the TB, the receiving end obtains a position of each CB and performs a CRC decision by using a CB as a granularity, to obtain a correct CB. Thereby performance of a wireless communication system is improved.

Inventors

  • Zhiyuan Tan
  • Pengpeng DONG
  • Huiying ZHU
  • Jing Liu

Assignees

  • HUAWEI TECHNOLOGIES CO., LTD.

Dates

Publication Date
20260505
Application Date
20231122
Priority Date
20210526

Claims (20)

  1. 1 . An apparatus comprising: a processor and an interface, wherein the processor is configured to perform operations, including: obtaining a position mapping relationship between N sub-PDUs comprised in a medium access control protocol data unit (MAC PDU) and data parts of a plurality of code blocks (CBs), wherein the plurality of CBs is obtained by dividing a transport block (TB), and each of the plurality of CBs comprises header information and a data part; generating a data segment based on the position mapping relationship and the MAC PDU, wherein the data segment comprises a plurality of sub-data segments, a quantity of the sub-data segments is equal to a quantity of CBs obtained by dividing the TB, each sub-data segment corresponds to one of the plurality of CBs obtained by dividing the TB, each sub-data segment comprises a first part and a second part, the first part is header information of a CB corresponding to the sub-data segment, the second part is a data part of the CB corresponding to the sub-data segment, the second part comprises a part or all of one or more of the N sub-PDUs, and a sum of lengths of respective second parts of the plurality of sub-data segments is equal to a length of the MAC PDU; and sending, through the interface, the TB, wherein the TB carries the data segment; wherein the plurality of CBs comprises a first CB, header information of the first CB indicates a position correspondence between a data part in the first CB and M sub-PDUs in the N sub-PDUs, both N and M are integers, N≥1, M≥1, and M is less than or equal to N.
  2. 2 . The apparatus according to claim 1 , wherein the processor is configured to obtain a position mapping relationship between N sub-PDUs comprised in a MAC PDU and data parts of a plurality of CBs obtained by dividing a TB by performing operations, including: obtaining information about the MAC PDU, wherein the information about the MAC PDU comprises a quantity of sub-PDUs comprised in the MAC PDU and a size of each sub-PDU; obtaining information about the TB, wherein the information about the TB comprises a size of the TB, a quantity of CBs obtained by dividing the TB, and a size of each CB, and the size of each CB comprises a length of the header information and a length of the data part; and determining the position mapping relationship based on the information about the MAC PDU and the information about the TB.
  3. 3 . The apparatus according to claim 1 , wherein one of the one or more N sub-PDUs corresponds to a part or all of one or more network coding (NC) data packets.
  4. 4 . The apparatus according to claim 1 , wherein the data part of the first CB comprises start positions of Q sub-PDUs in the M sub-PDUs, the header information of the first CB indicates a position, in the data part of the first CB, of a start position of a sub-PDU that is in the Q sub-PDUs and whose start position is closest to a start position of the first CB, 1≤Q≤M, and Q is an integer; or the data part of the first CB does not comprise a start position of any sub-PDU, and the header information of the first CB indicates that the first CB does not comprise a start position of a sub-PDU.
  5. 5 . The apparatus according to claim 4 , wherein the header information of the first CB comprises a flag field and an offset field, the flag field has a first value and a second value, the first value indicates that the first CB comprises a start position of a sub-PDU, and the second value indicates that the first CB does not comprise a start position of a sub-PDU; and when the flag field is the first value, the offset field comprised in the header information of the first CB indicates an offset, relative to a start position of the data part of the first CB, of a start position of a sub-PDU that is in the sub-PDUs whose start positions fall within the first CB and that is closest to the start position of the first CB; or when the flag field is the second value, the offset field comprised in the header information of the first CB is an invalid field.
  6. 6 . The apparatus according to claim 4 , wherein the header information of the first CB comprises an offset field, and the offset field has a valid value and an invalid value; and when the offset field is the valid value, the valid value indicates that the first CB comprises a start position of a sub-PDU, and the valid value indicates an offset, relative to a start position of the data part of the first CB, of a start position of a sub-PDU that is in the sub-PDUs whose start positions fall within the first CB and that is closest to the start position of the first CB; or when the offset field is the invalid value, the invalid value indicates that the first CB does not comprise a start position of a sub-PDU, and the invalid value indicates an invalid offset.
  7. 7 . The apparatus according to claim 4 , wherein the header information of the first CB comprises an end position field and a length field, the end position field indicates a position of an end position of the data part in the first CB in a corresponding sub-PDU, and the length field indicates a length of the sub-PDU in which the end position of the data part in the first CB is located.
  8. 8 . The apparatus according to claim 7 , wherein the end position field indicates a remaining length of the sub-PDU in which the end position of the data part in the first CB is located.
  9. 9 . The apparatus according to claim 4 , wherein the header information of the first CB comprises a start position field and a length field, the start position field indicates a position of a start position of the data part in the first CB in a corresponding sub-PDU, and the length field indicates a length of the sub-PDU in which the start position of the data part in the first CB is located.
  10. 10 . The apparatus according to claim 9 , wherein the start position field indicates a length between the position of the start position of the data part in the first CB in the corresponding sub-PDU and a start position of the sub-PDU.
  11. 11 . An apparatus, comprising: a processor and an interface, wherein the processor is configured to perform operations including: receiving, through the interface, a transport block (TB) from a transmitting end, wherein there is a position mapping relationship between data parts in a plurality of code blocks (CBs) obtained by dividing the TB and N sub-PDUs comprised in a medium access control protocol data unit (MAC PDU), N≥1, and N is an integer; wherein the plurality of CBs comprises a first CB, header information of the first CB indicates a position of a data part of the first CB in the MAC PDU, or the header information of the first CB indicates a position correspondence between the data part of the first CB and M sub-PDUs in the N sub-PDUs, M≥1, M is an integer, and M is less than or equal to N; and obtaining one or more complete sub-PDUs of the MAC PDU based on the position mapping relationship.
  12. 12 . The apparatus according to claim 11 , wherein before obtaining the one or more complete sub-PDUs of the MAC PDU based on the position mapping relationship, the processor is further configured to perform operations including: performing cyclic redundancy check (CRC) on the TB; and determining that the CRC on the TB fails.
  13. 13 . The apparatus according to claim 11 , wherein the processor is configured to obtain one or more complete sub-PDUs of the MAC PDU based on the position mapping relationship by performing operations including: performing CRC on the plurality of CBs to obtain a correct CB in the plurality of CBs; parsing header information of the correct CB to obtain a local position mapping relationship between the correct CB and a sub-PDU that has a position correspondence with a data part of the correct CB; and obtaining a complete sub-PDU in the correct CB based on the local position mapping relationship.
  14. 14 . The apparatus according to claim 13 , wherein the correct CB comprises the first CB, the first CB comprises a part of a first sub-PDU, a remaining part of the first sub-PDU and a second CB after the first CB have a position correspondence, the second CB is an incorrect CB, and the part of the first sub-PDU comprises a start position of the first sub-PDU and a complete sub-header of the first sub-PDU; and wherein the processor parsing header information of the correct CB to obtain a local position mapping relationship comprises operations including: parsing the header information of the first CB to obtain the sub-header of the first sub-PDU and a position mapping relationship of the first sub-PDU, wherein the sub-header of the first sub-PDU comprises length information of the first sub-PDU; reading the complete first sub-PDU based on the position mapping relationship of the first sub-PDU and the length information, and performing CRC on the complete first sub-PDU; and obtaining the complete first sub-PDU if the CRC on the complete first sub-PDU succeeds.
  15. 15 . The apparatus according to claim 11 , wherein the data part of the first CB comprises start positions of Q sub-PDUs in the M sub-PDUs, the header information of the first CB indicates a position, in the data part of the first CB, of a start position of a sub-PDU that is in the Q sub-PDUs and whose start position is closest to a start position of the first CB, 1≤Q≤M, and Q is an integer; or wherein the data part of the first CB does not comprise a start position of any sub-PDU, and the header information of the first CB indicates that the first CB does not comprise a start position of a sub-PDU.
  16. 16 . The apparatus according to claim 15 , wherein the header information of the first CB comprises a flag field and an offset field, the flag field has a first value and a second value, the first value indicates that the first CB comprises a start position of a sub-PDU, and the second value indicates that the first CB does not comprise a start position of a sub-PDU; and when the flag field is the first value, the offset field comprised in the header information of the first CB indicates an offset, relative to a start position of the data part of the first CB, of a start position of a sub-PDU that is in the sub-PDUs whose start positions fall within the first CB and that is closest to the start position of the first CB; or when the flag field is the second value, the offset field comprised in the header information of the first CB is an invalid field.
  17. 17 . The apparatus according to claim 15 , wherein the header information of the first CB comprises an offset field, and the offset field has a valid value and an invalid value; and when the offset field is the valid value, the valid value indicates that the first CB comprises a start position of a sub-PDU, and the valid value indicates an offset, relative to a start position of the data part of the first CB, of a start position of a sub-PDU that is in the sub-PDUs whose start positions fall within the first CB and that is closest to the start position of the first CB; or when the offset field is the invalid value, the invalid value indicates that the first CB does not comprise a start position of a sub-PDU, and the invalid value indicates an invalid offset.
  18. 18 . The apparatus according to claim 15 , wherein the header information of the first CB comprises an end position field and a length field, the end position field indicates a position of an end position of the data part in the first CB in a corresponding sub-PDU, and the length field indicates a length of the sub-PDU in which the end position of the data part in the first CB is located.
  19. 19 . The apparatus according to claim 18 , wherein the end position field indicates a remaining length of the sub-PDU in which the end position of the data part in the first CB is located.
  20. 20 . The apparatus according to claim 15 , wherein the header information of the first CB comprises a start position field and a length field, the start position field indicates a position of a start position of the data part in the first CB in a corresponding sub-PDU, and the length field indicates a length of the sub-PDU in which the start position of the data part in the first CB is located.

Description

CROSS-REFERENCE TO RELATED APPLICATION This application is a continuation application of International Patent Application No. PCT/CN2022/094860, filed on May 25, 2022, which claims priority to Chinese Patent Application No. 202110576174.2, filed on May 26, 2021. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties. TECHNICAL FIELD This application relates to the field of wireless communication technologies, and more specifically, to a data sending method, a data receiving method, and a communication apparatus. BACKGROUND An extended reality (XR) service in new radio (NR) realizes basic interaction between human and a virtual world. In the future, XR professional (XR pro), holography, and the like require immersive experience, which poses higher requirements on cellular communication. An average access rate increases from current 120 Mbps in 4K resolution to 2 Gbps in 16K resolution, and an interaction latency is further reduced from current 20 ms to about 5 ms. It can be learned that the XR service has characteristics and requirements of a low latency and a high rate. In a current communication system, in a low-latency and high-rate XR service data transmission process, a physical layer determines whether a transport block (TB) is correct by using a cyclic redundancy check (CRC) code of the TB. When a CRC error occurs on the TB, the system retransmits the TB or a code block group (CBG). However, retransmission of the TB or the CBG cannot be supported based on the low-latency requirement. The TB is determined as an error and is discarded. However, discarding a correct CB or CBG in the TB causes a loss of system performance. In this solution, it is difficult to support the high-rate and low-latency requirement of the XR service. SUMMARY This application provides a data sending method, a data receiving method, and a communication apparatus, to help improve performance of a wireless communication system, for example, improve a system throughput and reduce a latency. According to a first aspect, a data sending method is provided, and may be applied to a transmitting end in wireless communication, or may be applied to a chip or a chip system of the transmitting end. For example, the method may be performed by a MAC layer of the transmitting end. The method includes: obtaining a position mapping relationship between N sub-PDUs included in a MAC PDU and data parts of a plurality of code blocks CBs, where the plurality of CBs are obtained by dividing a TB, and each of the plurality of CBs includes header information and a data part; generating a data segment based on the position mapping relationship and the MAC PDU, where the data segment includes the header information and the data parts of the plurality of CBs, the data segment includes a plurality of sub-data segments, a quantity of the sub-data segments is equal to a quantity of CBs obtained by dividing the TB, each sub-data segment corresponds to one of the plurality of CBs obtained by dividing the TB, each sub-data segment includes a first part and a second part, the first part is header information of a CB corresponding to the sub-data segment, the second part is a data part of the CB corresponding to the sub-data segment, the second part includes a part or all of one or more of the N sub-PDUs, and a sum of lengths of respective second parts of the plurality of sub-data segments is equal to a length of the MAC PDU; and sending the TB, where the TB carries the data segment. The plurality of CBs include a first CB, header information of the first CB indicates a position correspondence between a data part in the first CB and M sub-PDUs in the N sub-PDUs, both N and M are integers, N≥1, M≥1, and M is less than or equal to N. Herein, how the header information of the first CB indicates the position mapping relationship between the data part of the first CB and the M sub-PDUs in the N sub-PDUs is described in detail in the following embodiments. In other words, the header information of the first CB indicates a position of the data part of the first CB in the MAC PDU, or positions of the M sub-PDUs in the N sub-PDUs included in the MAC PDU in the data part of the first CB. It may be understood that indication content of the header information may vary with reference, but is essentially the same. According to the indication content of the header information provided in this application, other equivalent transformations that can be thought of by a person skilled in the art should also be considered as disclosure of this application. It should be noted that the last CB in the plurality of CBs obtained by dividing the TB includes header information, a data part, and a CRC code of the TB. In other words, the data part of the last CB in the plurality of CBs does not include the CRC code of the TB. A CB other than the last CB in the plurality of CBs includes header information and a data part. In the technical soluti