This application discloses a
data processing method and a
data processing apparatus. First
data processing is performed on multiple first data streams encoded with a first FEC to obtain m second data streams. Each second
data stream undergoes second FEC encoding, and each codeword after second FEC encoding includes N bits, where N = K + S, K represents the number of information bits, and S represents the number of parity bits. Second data
processing is performed on each of the m second data streams to obtain m third data streams. Each third
data stream includes at least one bit sequence, each bit sequence including P + W bits, where P bits in each bit sequence come from the second data streams, and W bits in each bit sequence are added alignment markers, where P = N × b. Third data
processing is performed on the m third data streams to obtain Y modulation symbol streams, each modulation symbol
stream being modulated, and the
baud rate value of each modulation symbol
stream being an integer multiple of the typical
Ethernet reference
clock frequency value.