# US 11,451,325 B2 · Block generation method and apparatus, and block receiving method and apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,451,325 B2
- Document ID: US11451325B2
- Status: Granted
- Kind: B2
- Application number: 17/193,374
- Filed: 2021-03-05
- Published: 2021-06-24
- Granted: 2022-09-20
- Earliest claimed: 2018-09-07
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Hongbiao Zhang; Shuai Xiao; Desheng Sun
- Web page: https://patentgrep.com/patent/US11451325B2

## CPC

- H04L 1/0015: {characterised by the adaptation strategy}
- H04L 1/0057: {Block codes (H04L1/0061, H04L1/0064 take precedence)}
- H04L 1/0033: {arrangements specific to the transmitter}
- H04L 1/0036: {arrangements specific to the receiver}
- H04L 1/0071: {Use of interleaving (interleaving per se H03M13/27)}
- H04L 1/0072: {Error control for data other than payload data, e.g. control data}
- H04L 1/0075: {Transmission of coding parameters to receiver (H04L1/0023 takes precedence)}
- H04L 49/351: for local area network [LAN], e.g. Ethernet switches
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A block generation method and apparatus, and a block receiving method and apparatus are disclosed. The block generation method includes: generating a first block and a second block, where the first block includes a first block unit, the second block includes a second block unit, a first indicator is configured in the first block unit, and the first indicator is used to indicate whether the second block unit is a control code; and sending the first block and the second block. According to this method, an indicator is configured in a block unit in the first block to indicate whether an adjacent block is a control code, so that a boundary between a control code and a data code is determined, thereby avoiding extra indication information for an indication and reducing overheads of the indication information.

## Claims

### Claim 1

A block generation method, wherein the method comprises:
generating a first block and a second block, wherein the first block comprises a first block unit, the second block comprises a second block unit, a first indicator is configured in the first block unit, and the first indicator is used to indicate whether the second block unit is a control code; and
sending the first block and the second block;
wherein the first block further comprises a third block unit, and the third block unit is before the first block unit; and
a second indicator is further configured in the first block unit, and the second indicator is used to indicate whether the third block unit before the first block unit is a control code.

### Claim 2 (depends on 1)

The method according to claim 1, wherein
if the first block unit is a control code, another indicator is further configured in the first block unit, and the another indicator is used to indicate a quantity of D codes in the first block unit;
at least one of the control code forming the first block unit or the control code forming the second block unit comprises one K code, or comprises one K code and at least one D code, and
the K code is a control code and each of the D codes is a data code.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the second block further comprises another block unit, and the another block unit is after the second block unit;
at least one indicator is configured in the second block unit, and the at least one indicator is used to indicate whether the another block unit is a control code and indicate whether the first block unit is a control code;
if the second block unit is the control code, the at least one indicator is further used to indicate a quantity of D codes in the second block unit; and
each of the D codes is a data code.

### Claim 4 (depends on 1)

The method according to claim 1, wherein
the first block is a T7 block, and the second block is a D block; or
the first block is an S0 block, and the second block is the D block; or
the first block is an O block, and the second block is the D block; or
the first block is an IDLE block, and the second block is the D block, wherein
the T7 block, the S0 block, the O block, and the IDLE block are different types of control codes, and the D block is a data code.

### Claim 5 (depends on 1)

The method according to claim 1, wherein if the first block is a T7 block and the second block is a D block, the method further comprises:
transcoding the D block into an S0 block, wherein the S0 block comprises a type field, a block unit of a K code, and at least one block unit comprising a D code, wherein
the block unit comprising the K code is a block unit generated after each block unit that is of the original D block and that comprises one K code and at least one D code is compressed, and the block unit of the K code comprises at least one indicator,
the K code is a control code, the D block is a data code, the T7 block and the S0 block are different types of control codes, and the D code is a data code.

### Claim 6 (depends on 1)

The method according to claim 1, wherein:
the first block is a T7 block, and the second block is an S0 block;
the method further comprises: generating a third block, wherein the third block is a D block; and
the T7 block and the S0 block are different types of control codes, and the D block is a data code.

### Claim 7

A block generation method, wherein the method comprises:
generating a first block and a second block, wherein the first block comprises a first block unit, the second block comprises a second block unit, a first indicator is configured in the first block unit, and the first indicator is used to indicate whether the second block unit is a control code;
sending the first block and the second, wherein
the generating of the first block and the second block comprises:
obtaining a first bitstream, wherein the first bitstream comprises a first control code; and
compressing the first control code in the first bitstream, configuring the first indicator in remaining block space after the compression, and generating the first block and the second block.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the first control code in the first bitstream comprises at least one 8-bit block unit; and
the compressing the first control code in the first bitstream, configuring the first indicator in remaining block space after the compression, and generating the first block and the second block comprises:
compressing one 8-bit block unit in the first bitstream to obtain N-bit remaining space, wherein N≤8;
configuring the first indicator in the N-bit remaining space, and filling the N-bit remaining space with one 8-bit K code;
generating the first block and the second block based on the 8-bit K code: and
the 8-bit K code is a control code.

### Claim 9

A block receiving method, wherein the method comprises:
receiving a first block and a second block, wherein the first block comprises a first block unit, the second block comprises a second block unit, and a first indicator is configured in the first block unit; and
determining, based on an indication of thefirst indicator, whether the second block unit is a control code, wherein
the first block further comprises a third block unit, the third block unit is before the first block unit, and a second indicator is further configured in the first block unit; and
the method further comprises:
determining, based on an indication of the second indicator, whether the third block unit before the first block unit is a control code.

### Claim 10 (depends on 9)

The method according to claim 9, wherein the method further comprises: if it is determined that the first block unit is a control code, determining a quantity of D codes in the first block unit based on another indicator in the first block unit;
at least one of the control code forming the first block unit or the control code forming the second block unit comprises one K code, or comprises one K code and at least one D code; and
the K code is a control code and each of the D codes is a data code.

### Claim 11

A block receiving method, wherein the method comprises:
receiving a first block and a second block, wherein the first block comprises a first block unit, the second block comprises a second block unit, and a first indicator is configured in the first block unit; and
determining, based on an indication of the first indicator, whether the second block unit is a control code;
wherein the second block further comprises another block unit, the another block unit is after the second block unit, and at least one indicator is configured in the second block unit; and
the method further comprises:
determining, based on the at least one indicator in the second block unit, whether the another block unit is a control code and whether the first block unit is a control code.

### Claim 12 (depends on 9)

The method according to claim 9, wherein the determining, based on an indication of the first indicator, whether the second block unit is the control code comprises:
if the first indication information indicates that the second block unit is not a control code, determining that a data code starts from the second block unit.

### Claim 13

A block generation apparatus, wherein the apparatus comprises:
a processor, configured to generate a first block and a second block, wherein the first block comprises a first block unit, the second block comprises a second block unit, a first indicator is configured in the first block unit, and the first indicator is used to indicate whether the second block unit is a control code; and
a sender, configured to send the first block and the second block, wherein
the first block further comprises a third block unit, and the third block unit is before the first block unit; and
a second indicator is further configured in the first block unit, and the second indicator is used to indicate whether the third block unit before the first block unit is a control code.

### Claim 14 (depends on 13)

The apparatus according to claim 13, wherein the control code comprises one K code, or comprises one K code and at least one D code;
if the first block unit is a control code, another indicator is further configured in the first block unit, and the another indicator is used to indicate a quantity of D codes in the first block unit; and
the K code is a control code and the D code is a data code.

### Claim 15 (depends on 13)

The apparatus according to claim 13, wherein
the second block further comprises another block unit, and the another block unit is after the second block unit; and
at least one indicator is configured in the second block unit, and the at least one indicator is used to indicate whether the another block unit is a control code and indicate whether the first block unit is a control code; and if the second block unit is the control code, the at least one indicator is further used to indicate a quantity of D codes in the second block unit; and
each of the D codes is a data code.

### Claim 16

A block generation apparatus, wherein the apparatus comprises:
a processor, configured to generate a first block and a second block, wherein the first block comprises a first block unit, the second block comprises a second block unit, a first indicator is configured in the first block unit, and the first indicator is used to indicate whether the second block unit is a control code;
a sender, configured to send the first block and the second block; and
an obtaining unit, wherein the obtaining unit is configured to obtain a first bitstream, wherein the first bitstream comprises a first control code; and
the processor is specifically configured to: compress the first control code in the first bitstream, configure a first indicator in remaining block space after the compression, and generate the first block and the second block.

### Claim 17 (depends on 16)

The apparatus according to claim 16, wherein
the first control code in the first bitstream comprises at least one 8-bit block unit;
the processor is specifically configured to: compress one 8-bit block unit in the first bitstream to obtain N-bit remaining space, wherein N≤8; configure the first indicator in the N-bit remaining space, and fill the N-bit remaining space with one 8-bit K code; and generate the first block and the second block based on the 8-bit K code; and
the 8-bit K code is a control code.
