US 12,021,615 B2
Data processing method, optical transmission device, and digital processing chip
Junling Xiang, Shenzhen (CN); and Shuqian Zheng, Dongguan (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed on Dec. 17, 2021, as Appl. No. 17/554,025.
Application 17/554,025 is a continuation of application No. PCT/CN2020/095813, filed on Jun. 12, 2020.
Claims priority of application No. 201910534192.7 (CN), filed on Jun. 19, 2019.
Prior Publication US 2022/0109519 A1, Apr. 7, 2022
Int. Cl. H04L 1/18 (2023.01); H04J 3/16 (2006.01); H04L 1/00 (2006.01)
CPC H04L 1/004 (2013.01) [H04J 3/1664 (2013.01)] 17 Claims
OG exemplary drawing
 
1. A data processing method, comprising:
compressing a to-be-transmitted data stream to obtain a compressed data stream;
determining a size of a first payload area based on the compressed data stream, wherein the first payload area is used to carry a forward error correction (FEC) code;
generating a data frame based on the compressed data stream, wherein the data frame comprises an overhead area and a payload area, the payload area comprises the first payload area and a second payload area, and the second payload area carries the compressed data stream;
performing an FEC processing to generate the FEC code to be stored in the first payload area; and
sending the data frame that carries the FEC code;
wherein the obtaining of the size of the first payload area of the compressed data stream comprises:
obtaining a compression ratio of the compressed data stream, wherein the compression ratio is a ratio of a data volume of the compressed data stream to a data volume of the to-be-transmitted data stream; and
determining the size of the first payload area based on the compression ratio.