Encoding method and related device
AssigneeHuawei Technologies Co., Ltd.
InventorsYuchun Lu, Lin Ma, Liang Li, Yongyao Li, Shengyu Shen
Life of this patent
Estimating the term…
Abstract
Embodiments of this application disclose an encoding method and a related device. The method includes: receiving a to-be-encoded code block whose length is L, where L is a positive integer; and encoding the to-be-encoded code block to obtain a forward error correction FEC code, where a valid information length K of the FEC code is an integer multiple of a largest prime factor of L, and a total length N of the FEC code is a sum of K and a product of 2 and an error correction capability T of the FEC code. According to the embodiments of this application, it can be ensured that an FEC codeword satisfies a requirement for a low latency and a high gain.
Claims16
A method, comprising:
- transcoding a plurality of source code blocks to obtain a to-be-encoded code block by:
- deleting synchronization header data of each source code block of the plurality of source code blocks to obtain remaining valid information, wherein a length of the remaining value information of each source code block is less than a length of the corresponding source code block;
- and
- combining the remaining valid information in the plurality of source code blocks to generate the to-be-encoded code block, wherein a length of the to-be-encoded code block is L, and L is a positive integer;
- and
- encoding the to-be-encoded code block to obtain a forward error correction (FEC) code, wherein a valid information length K of the FEC code is an integer multiple of a largest prime factor of L, and a total length N of the FEC code is a sum of K and a value, and the value is a product of 2 and an error correction capability T of the FEC code.
An apparatus, comprising:
- a transcoding circuit, configured to transcode a plurality of source code blocks to obtain a to-be-encoded code block by:
- deleting synchronization header data of each source code block of the plurality of source code blocks to obtain remaining valid information, wherein a length of the remaining value information of each source code block is less than a length of the corresponding source code block;
- and
- combining the remaining valid information in the plurality of source code blocks to generate the to-be-encoded code block, wherein a length of the to-be-encoded code block is L, and L is a positive integer;
- and
- an encoding circuit, configured to encode the to-be-encoded code block to obtain a forward error correction (FEC) code, wherein a valid information length K of the FEC code is an integer multiple of a largest prime factor of L, a total length N of the FEC code is a sum of K and a value, the value is a product of 2 and an error correction capability T of the FEC code, and a quantity M of bits comprised in each symbol in the FEC code is determined according to N.
A non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores an instruction, and when the instruction is run on a computer, the instructions causes a computer to:
- transcode a plurality of source code blocks to obtain a to-be-encoded code block by:
- deleting synchronization header data of each source code block of the plurality of source code blocks to obtain remaining valid information, wherein a length of the remaining value information of each source code block is less than a length of the corresponding source code block;
- and
- combining the remaining valid information in the plurality of source code blocks to generate the to-be-encoded code block, wherein a length of the to-be-encoded code block is L, and L is a positive integer;
- and
- encode the to-be-encoded code block to obtain a forward error correction (FEC) code, wherein a valid information length K of the FEC code is an integer multiple of a largest prime factor of L, and a total length N of the FEC code is a sum of K and a value, and the value is a product of 2 and an error correction capability T of the FEC code.
Dependencies are inferred from the claim text.