Data transmission method and apparatus, device, and computer-readable storage medium

By selecting an FEC code pattern that is compatible with PAM modulation, and using the temporal and spatial interleaving depth and codeword width to determine the amount of data, the problem of incompatibility between FEC encoding and PAM6/PAM8 encoding is solved, achieving efficient data transmission and improved error correction performance.

WO2026242973A1PCT designated stage Publication Date: 2026-11-26HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/097525
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-21
Filing Date
2026-05-18
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing FEC encoding is incompatible with PAM6 or PAM8 encoding, leading to increased signal attenuation and crosstalk, resulting in a higher bit error rate and an inability to effectively control the bit error rate.

Method used

By performing FEC encoding on the data to be transmitted, selecting an FEC code pattern that is compatible with PAM modulation, and using time interleaving depth, spatial interleaving depth, and codeword width to determine the data volume so that it is an integer multiple of the number of channels, interleaving processing and concatenated encoding are performed to ensure that the data is evenly distributed to each channel and improve error correction performance.

Benefits of technology

It achieves reduced bit error rate, improved bandwidth utilization, enhanced error correction capability, and compatibility with various PAM codes under high-order modulation, thereby improving data transmission quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2026097525_26112026_PF_FP_ABST
    Figure CN2026097525_26112026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of communications, and discloses a data transmission method and apparatus, a device, and a computer-readable storage medium. The method comprises: acquiring first data, wherein the first data is data to be sent to a plurality of channels; performing FEC encoding on the first data to obtain second data, wherein the data size of the second data is an integer multiple of the number of the plurality of channels, and the data size of the second data is determined on the basis of a time interleaving depth, a spatial interleaving depth, and a codeword width corresponding to the FEC encoding; and sending the second data to the plurality of channels. Selecting the data size of the second data on the basis of the time interleaving depth, the spatial interleaving depth, and the codeword width may be understood as selecting an FEC code type on the basis of a plurality of dimensions such as the time interleaving depth, the spatial interleaving depth, and the codeword width, and the FEC code type selected on the basis of the plurality of dimensions has higher adaptability. Moreover, the data size of the second data is divisible by the number of channels, and the second data obtained by the FEC encoding can be evenly distributed to the channels, thereby providing good load performance.
Need to check novelty before this filing date? Find Prior Art

Description

Data transmission methods, apparatus, devices and computer-readable storage media

[0001] This application claims priority to Chinese Patent Application No. 202510660950.5, filed on May 21, 2025, entitled "Data Transmission Method, Apparatus, Device and Computer-Readable Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of communication technology, and in particular to data transmission methods, apparatus, devices and computer-readable storage media. Background Technology

[0003] With the development of communication technology, data transmission rates have significantly improved. However, while high-speed transmission reduces transmission latency, it also brings more signal attenuation and crosstalk, leading to an increase in the bit error rate. Therefore, forward error correction (FEC) coding can be incorporated into the data transmission process to control the bit error rate by encoding the data to be transmitted using FEC. However, some FEC codes may be incompatible with pulse amplitude modulation (PAM) coding, resulting in performance degradation. For example, some standard architectures' FEC codes cannot adapt to six-level pulse amplitude modulation (PAM6) or eight-level pulse amplitude modulation (PAM8) coding. Therefore, how to perform FEC coding compatible with PAM modulation during data transmission has become an urgent problem to be solved. Summary of the Invention

[0004] This application provides a data transmission method, apparatus, device, and computer-readable storage medium to perform FEC coding adapted to PAM modulation, and the technical solution is as follows.

[0005] In a first aspect, a data transmission method is provided, the method comprising: acquiring first data, the first data being data to be sent to multiple channels; performing FEC encoding on the first data to obtain second data, the data volume of the second data being an integer multiple of the number of channels, the data volume of the second data being determined by the time interleaving depth, the spatial interleaving depth and the codeword width corresponding to the FEC encoding; and sending the second data to the multiple channels.

[0006] The second data is obtained by performing FEC encoding on the first data. The amount of the second data is related to the FEC code pattern. The amount of the second data is selected based on the temporal interleaving depth, spatial interleaving depth, and codeword width. This can be understood as selecting the FEC code pattern based on multiple dimensions such as temporal interleaving depth, spatial interleaving depth, and codeword width. FEC codes selected based on multiple dimensions have higher adaptability; for example, they can adapt to interleaving processing in at least one of the temporal or spatial dimensions. Furthermore, considering the possibility of sudden errors during the transmission of the second data, FEC codes selected based on more dimensions offer better error correction performance. Since the amount of the second data is divisible by the number of channels, the second data obtained through FEC encoding can be evenly distributed across all channels, resulting in good load performance.

[0007] In one possible implementation, forward error correction (FEC) coding is performed on the first data to obtain the second data. This includes: performing FEC coding on the first data to obtain multiple FEC code blocks, where the data size of each FEC code block is the codeword width; and performing interleaving processing on the multiple FEC code blocks based on the temporal interleaving depth and the spatial interleaving depth to obtain the second data. In this method, even if a burst error occurs during transmission, the burst error can be dispersed into different FEC code blocks through interleaving, thereby improving error correction performance.

[0008] In one possible implementation, the size of the second data is determined based on the product of the temporal interleaving depth, the spatial interleaving depth, and the codeword width. The size of the second data can be directly determined by the product, making the process simple and with low operational complexity.

[0009] In one possible implementation, forward error correction (FEC) coding is performed on the first data, including: encoding the first data using a first FEC code pattern to obtain a first encoding result; and encoding the first encoding result using a second FEC code pattern. Using multiple FEC code patterns to perform concatenated coding on the first data provides higher error correction capability and higher data quality for the encoded second data compared to using a single FEC code pattern.

[0010] In one possible implementation, the codeword width corresponding to the first FEC code pattern is an integer multiple of the information bit length corresponding to the second FEC code pattern. Since the first encoded result is divided into multiple data blocks according to the information bit length during the encoding process using the second FEC code pattern, and these data blocks are then encoded, and the codeword width corresponding to the first FEC code pattern is equal to the length of the first encoded result, if the codeword width of the first FEC code pattern is an integer multiple of the information bit length corresponding to the second FEC code pattern, the first encoded result can be evenly divided into multiple data blocks to be encoded without needing to fill in invalid bits. This avoids the channel bandwidth being occupied by invalid bits and improves bandwidth utilization.

[0011] In one possible implementation, the first FEC code type includes Reed-Solomon (RS) code, and the second FEC code type includes Bose-Chaudhuri-Hocquenghem (BCH) code or Hamming code. This application does not limit the code type used for FEC encoding and can apply multiple code types, offering high flexibility.

[0012] In one possible implementation, the first data is obtained based on multiple transcoded data blocks, each containing multiple binary data. The length of the valid information bits corresponding to the FEC encoding is an integer multiple of the number of binary data in the transcoded data block, and the length of the valid information bits indicates the number of binary data in the first data. If the length of the valid information bits corresponding to the FEC encoding is an integer multiple of the number of binary data in the transcoded data block, the data to be FEC encoded can be obtained by concatenating the transcoded data blocks, resulting in low operational complexity.

[0013] In one possible implementation, sending second data to multiple channels includes: performing Pulse Amplitude Modulation (PAM) encoding on each x bits of the second data to obtain multiple PAM-encoded data, where x is a positive integer and the data size of the second data is an integer multiple of x; and sending the multiple PAM-encoded data to multiple channels, with one channel used to transmit at least one PAM-encoded data. If the data size of the second data is not an integer multiple of x, there will be unencoded residual data in the second data. For example, if the residual data size is less than x, it cannot be PAM-encoded in one operation and needs to be PAM-encoded together with newly added redundant data. The channel bandwidth will be occupied by the redundant data, resulting in low bandwidth utilization. However, the method provided in this application ensures that the data size of the second data is an integer multiple of x, thus guaranteeing that there is no unencoded residual data in the second data and eliminating the need to fill in redundant data, thereby improving bandwidth utilization.

[0014] In one possible implementation, PAM coding includes PAM6 coding or PAM8 coding. The FEC coding provided in this application can be adapted to higher-order modulation coding such as PAM6 or PAM8. In the process of achieving high-speed data transmission using higher-order modulation, FEC coding is used to reduce the bit error rate.

[0015] In one possible implementation, PAM6 encoding is used to encode 18 bits into 7 hexadecimal symbols; or, PAM6 encoding is used to encode 5 bits into 2 hexadecimal symbols; or, PAM8 encoding is used to encode 3 bits into 1 octal symbol. The data transmission method provided in this application is compatible with various PAM encodings and has wide versatility.

[0016] In one possible implementation, the interface rate corresponding to FEC encoding is an integer multiple of the original clock frequency corresponding to the first data. The interface rate corresponding to FEC encoding is determined based on the information bit length and codeword width corresponding to FEC encoding. Since the interface rate corresponding to FEC encoding is an integer multiple of the original clock frequency, the interface rate corresponding to FEC encoding can be obtained by multiplying the original clock source providing the original clock frequency by an integer using a phase-locked loop, resulting in low operational complexity.

[0017] In one possible implementation, the first FEC code pattern in the FEC encoding includes RS(544, 514, 15, 12), RS(544, 514, 15, 18), RS(560, 514, 23, 10), RS(560, 514, 23, 12), RS(560, 514, 23, 18), or RS(272, 258, 23, 10). This application does not limit the FEC code pattern selected based on time interleaving depth, spatial interleaving depth, and codeword width, thus offering high flexibility.

[0018] Secondly, another data transmission method is provided, which includes: acquiring second data, which is data sent to multiple channels, the amount of the second data being an integer multiple of the number of channels, and the amount of the second data being determined by the time interleaving depth, the spatial interleaving depth, and the codeword width corresponding to the FEC encoding; performing FEC decoding on the second data to obtain the first data corresponding to the second data.

[0019] The second data is obtained by performing FEC encoding on the first data. The amount of the second data is related to the FEC code pattern used in the FEC encoding. The amount of the second data is selected based on the temporal interleaving depth, spatial interleaving depth, and codeword width. This can be understood as selecting the FEC code pattern based on multiple dimensions such as temporal interleaving depth, spatial interleaving depth, and codeword width. FEC codes selected based on multiple dimensions have higher adaptability; for example, they can adapt to interleaving in at least one of the temporal or spatial dimensions. Furthermore, even if sudden errors occur in the acquired second data, the error correction performance of FEC codes selected based on more dimensions is better. Error correction can be achieved through FEC decoding, resulting in higher accuracy of the decoded first data. Since the amount of the second data is divisible by the number of channels, the second data obtained through FEC encoding can be evenly distributed across all channels, resulting in good load performance.

[0020] In one possible implementation, obtaining the second data includes: acquiring multiple PAM-encoded data transmitted through multiple channels, where each channel is used to transmit at least one PAM-encoded data; performing PAM decoding on the PAM-encoded data to obtain x bits corresponding to the PAM-encoded data; and obtaining the second data based on the x bits corresponding to the multiple PAM-encoded data, where x is a positive integer and the data size of the second data is an integer multiple of x. Since the data size of the second data is an integer multiple of x, all PAM-encoded data are encoded data obtained by encoding the second data, and the x bits obtained by decoding the PAM-encoded data all belong to the second data, the process of obtaining the second data based on x bits is simple and has low operational complexity.

[0021] In one possible implementation, FEC decoding of the second data includes: determining FEC code blocks based on the second data, where the data size of each FEC code block is the codeword width; and performing FEC decoding on each FEC code block. First, the second data is divided into smaller FEC code blocks, and then FEC decoding is performed on each FEC code block, resulting in high decoding efficiency.

[0022] In one possible implementation, determining FEC code blocks based on second data includes: performing deinterleaving on the second data based on temporal and spatial interleaving depths to obtain multiple FEC code blocks. Through deinterleaving, even if consecutive burst errors exist in the second data, these errors can be distributed across multiple FEC code blocks, improving the error correction performance of a single FEC code block.

[0023] In one possible implementation, FEC decoding of the FEC code block includes: decoding the FEC code block using a second FEC code pattern to obtain a first encoded result; and decoding the first encoded result using a first FEC code pattern. Since the FEC code block is obtained by concatenating different FEC code patterns, the FEC code block has stronger anti-interference capabilities, and decoding the more anti-interference FEC code block yields better data quality.

[0024] Thirdly, a data transmission device is provided for performing the data transmission method in the first aspect or any possible implementation thereof.

[0025] In one possible implementation, the data transmission device includes an encoding circuit for acquiring first data, which is data to be transmitted to multiple channels; the encoding circuit is also used to perform forward error correction (FEC) encoding on the first data to obtain second data, the amount of the second data being an integer multiple of the number of channels, and the amount of the second data being determined by the time interleaving depth, the spatial interleaving depth, and the codeword width corresponding to the FEC encoding; the encoding circuit is also used to transmit the second data to the multiple channels.

[0026] In one possible implementation, the data transmission device further includes an interface circuit, through which the encoding circuit acquires the first data.

[0027] In one possible implementation, the encoding circuit performs FEC encoding on the first data to obtain multiple FEC code blocks, the data size of which is the codeword width; and performs interleaving processing on the multiple FEC code blocks based on the time interleaving depth and the spatial interleaving depth to obtain the second data.

[0028] In one possible implementation, the encoding circuit is used to encode the first data using a first FEC code pattern to obtain a first encoding result; and to encode the first encoding result using a second FEC code pattern.

[0029] In one possible implementation, the encoding circuit is used to perform PAM encoding on each x bits in the second data to obtain multiple PAM encoded data, where x is a positive integer and the amount of the second data is an integer multiple of x; the multiple PAM encoded data are sent to multiple channels, and one channel is used to transmit at least one PAM encoded data.

[0030] In one possible implementation, the data transmission device includes: an acquisition module for acquiring first data, which is data to be transmitted to multiple channels; an encoding module for performing forward error correction (FEC) encoding on the first data to obtain second data, the amount of the second data being an integer multiple of the number of channels, and the amount of the second data being determined by the time interleaving depth, the spatial interleaving depth, and the codeword width corresponding to the FEC encoding; and a transmission module for transmitting the second data to the multiple channels.

[0031] In one possible implementation, an encoding module is used to perform FEC encoding on the first data to obtain multiple FEC code blocks, the data size of the FEC code blocks being the codeword width; and to perform interleaving processing on the multiple FEC code blocks based on the time interleaving depth and the spatial interleaving depth to obtain the second data.

[0032] In one possible implementation, the encoding module is used to encode the first data using a first FEC code pattern to obtain a first encoding result; and to encode the first encoding result using a second FEC code pattern.

[0033] In one possible implementation, the sending module is used to perform PAM encoding on each x bits in the second data to obtain multiple PAM encoded data, where x is a positive integer and the amount of the second data is an integer multiple of x; the multiple PAM encoded data are sent to multiple channels, and one channel is used to transmit at least one PAM encoded data.

[0034] Regardless of whether the data transmission device includes an encoding circuit or an acquisition module, an encoding module, and a transmission module, in one possible implementation, the amount of the second data is determined based on the product of the time interleaving depth, the spatial interleaving depth, and the codeword width.

[0035] In one possible implementation, the codeword width corresponding to the first FEC code pattern is an integer multiple of the information bit length corresponding to the second FEC code pattern.

[0036] In one possible implementation, the first FEC code type includes RS code, and the second FEC code type includes BCH code or Hamming code.

[0037] In one possible implementation, the first data is obtained based on multiple transcoded data blocks, each containing multiple binary data. The length of the valid information bits corresponding to the FEC encoding is an integer multiple of the number of binary data in the transcoded data block, and the length of the valid information bits indicates the number of binary data in the first data.

[0038] In one possible implementation, PAM encoding includes PAM6 encoding or PAM8 encoding.

[0039] In one possible implementation, PAM6 encoding is used to encode 18 bits into 7 hexadecimal symbols; or, PAM6 encoding is used to encode 5 bits into 2 hexadecimal symbols; or, PAM8 encoding is used to encode 3 bits into 1 octal symbol.

[0040] In one possible implementation, the interface rate corresponding to FEC encoding is an integer multiple of the original clock frequency corresponding to the first data, and the interface rate corresponding to FEC encoding is determined based on the information bit length and codeword width corresponding to FEC encoding.

[0041] In one possible implementation, the first FEC code pattern in the FEC encoding includes RS(544, 514, 15, 12), RS(544, 514, 15, 18), RS(560, 514, 23, 10), RS(560, 514, 23, 12), RS(560, 514, 23, 18) or RS(272, 258, 23, 10).

[0042] Fourthly, another data transmission apparatus is provided for performing the data transmission method in the second aspect or any possible implementation thereof.

[0043] In one possible implementation, the data transmission device includes a decoding circuit for acquiring second data, which is data sent to multiple channels. The amount of the second data is an integer multiple of the number of channels, and the amount of the second data is determined by the time interleaving depth, the spatial interleaving depth, and the codeword width corresponding to the FEC encoding. The decoding circuit is also used to perform FEC decoding on the second data to obtain first data corresponding to the second data.

[0044] In one possible implementation, a decoding circuit is used to acquire multiple PAM-encoded data transmitted through multiple channels, one channel being used to transmit at least one PAM-encoded data; to perform PAM decoding on the PAM-encoded data to obtain x bits corresponding to the PAM-encoded data; and to acquire second data based on the x bits corresponding to the multiple PAM-encoded data, where x is a positive integer and the amount of the second data is an integer multiple of x.

[0045] In one possible implementation, the data transmission device further includes an interface circuit, through which the decoding circuit acquires multiple PAM encoded data.

[0046] In one possible implementation, a decoding circuit is used to determine an FEC code block based on second data, the data size of which is the codeword width; and to perform FEC decoding on the FEC code block.

[0047] In one possible implementation, a decoding circuit is used to perform deinterleaving on the second data based on the temporal interleaving depth and the spatial interleaving depth to obtain multiple FEC code blocks.

[0048] In one possible implementation, the decoding circuit is used to decode the FEC code block using a second FEC code pattern to obtain a first encoding result; and to decode the first encoding result using a first FEC code pattern.

[0049] In one possible implementation, the data transmission device includes: an acquisition module for acquiring second data, which is data sent to multiple channels, the amount of the second data being an integer multiple of the number of channels, and the amount of the second data being determined by the time interleaving depth, the spatial interleaving depth, and the codeword width corresponding to the FEC encoding; and a decoding module for performing FEC decoding on the second data to obtain the first data corresponding to the second data.

[0050] In one possible implementation, an acquisition module is used to acquire multiple PAM-encoded data transmitted through multiple channels, one channel being used to transmit at least one PAM-encoded data; to perform PAM decoding on the PAM-encoded data to obtain x bits corresponding to the PAM-encoded data; and to acquire second data based on the x bits corresponding to the multiple PAM-encoded data, where x is a positive integer and the amount of the second data is an integer multiple of x.

[0051] In one possible implementation, a decoding module is used to determine an FEC code block based on second data, wherein the data size of the FEC code block is the codeword width; and to perform FEC decoding on the FEC code block.

[0052] In one possible implementation, a decoding module is used to perform deinterleaving on the second data based on the temporal interleaving depth and the spatial interleaving depth to obtain multiple FEC code blocks.

[0053] In one possible implementation, the decoding module is used to decode the FEC code block using the second FEC code pattern to obtain the first encoding result; and to decode the first encoding result using the first FEC code pattern.

[0054] Fifthly, a data transmission device is provided, the device including a processor for loading and executing at least one instruction to cause the data transmission device to perform the method of the first aspect or any possible implementation thereof, or to perform the method of the second aspect or any possible implementation thereof.

[0055] In one possible implementation, the device includes a memory coupled to a processor, the memory storing at least one instruction.

[0056] In a sixth aspect, a computer-readable storage medium is provided, wherein at least one instruction is stored in the computer-readable storage medium, the instruction being loaded and executed by a processor to implement the data transmission method in the first aspect or any possible implementation thereof, or to implement the data transmission method in the second aspect or any possible implementation thereof.

[0057] In a seventh aspect, a computer program (product) is provided, comprising computer program / instructions, which are executed by a processor to enable a computer to implement the data transmission method in the first aspect or any possible implementation thereof, or to implement the data transmission method in the second aspect or any possible implementation thereof.

[0058] Eighthly, a communication device is provided, comprising: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other via an internal connection path. The memory stores instructions, and the processor executes the instructions stored in the memory to control the transceiver to receive and transmit signals. When the processor executes the instructions stored in the memory, it causes the processor to perform the method of the first aspect or any possible implementation thereof, or to perform the method of the second aspect or any possible implementation thereof. Optionally, the communication device may be a chip.

[0059] Optionally, there may be one or more processors and one or more memories.

[0060] Alternatively, the memory can be integrated with the processor, or the memory can be set up separately from the processor.

[0061] In the specific implementation process, the memory can be a non-transitory memory, such as read-only memory (ROM), which can be integrated with the processor on the same chip or set on different chips. This application does not limit the type of memory or the way the memory and processor are set.

[0062] In a ninth aspect, a chip is provided, including a processor for retrieving and executing program instructions or code stored in a memory, causing a communication device equipped with the chip to perform the methods described in the preceding aspects.

[0063] In a tenth aspect, another chip is provided, comprising: an input interface, an output interface, a processor, and a memory, wherein the input interface, the output interface, the processor, and the memory are connected via an internal connection path, and the processor is used to execute code in the memory, and when the code is executed, the processor is used to perform the methods in the above aspects.

[0064] Eleventhly, a data transmission system is provided, the system including an encoding device and a decoding device, the encoding device being used to perform the method of the first aspect or any possible implementation of the first aspect, and the decoding device being used to perform the method of the second aspect or any possible implementation of the second aspect.

[0065] It should be understood that the apparatus mentioned in the third, fourth, or eighth aspects above can be the chip mentioned in the ninth or tenth aspects, or the data transmission device of the fifth aspect. The beneficial effects achieved by the technical solutions and corresponding possible implementations of the third to eleventh aspects of this application can be found in the above descriptions of the technical effects of the first aspect and its corresponding possible implementations or the second aspect and its corresponding possible implementations, and will not be repeated here. Attached Figure Description

[0066] Figure 1 is a schematic diagram of an implementation environment provided in an embodiment of this application;

[0067] Figure 2 is a schematic diagram of another implementation environment provided in the embodiments of this application;

[0068] Figure 3 is a flowchart of a data transmission method provided in an embodiment of this application;

[0069] Figure 4 is a schematic diagram of a model provided in an embodiment of this application;

[0070] Figure 5 is a schematic diagram of a data transmission process provided in an embodiment of this application;

[0071] Figure 6 is a schematic diagram of an interface rate variation provided in an embodiment of this application;

[0072] Figure 7 is a schematic diagram of an FEC encoding structure provided in an embodiment of this application;

[0073] Figure 8 is a schematic diagram of another data transmission process provided in an embodiment of this application;

[0074] Figure 9 is a schematic diagram of a concatenated encoding provided in an embodiment of this application;

[0075] Figure 10 is a schematic diagram of an interlacing method provided in an embodiment of this application;

[0076] Figure 11 is a schematic diagram of another data transmission process provided in an embodiment of this application;

[0077] Figure 12 is a schematic diagram of a data transmission device provided in an embodiment of this application;

[0078] Figure 13 is a schematic diagram of another data transmission device provided in an embodiment of this application;

[0079] Figure 14 is a schematic diagram of the structure of a network device provided in an embodiment of this application;

[0080] Figure 15 is a schematic diagram of the structure of another network device provided in an embodiment of this application. Detailed Implementation

[0081] The terminology used in the embodiments section of this application is only for explaining specific embodiments of this application and is not intended to limit this application. To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be further described in detail below with reference to the accompanying drawings.

[0082] With the development of communication technology, the channel rate in Ethernet is constantly increasing. For example, in the Ethernet 800 Gigabit Ethernet (GE / GbE / G) / 1.6 Terabit Ethernet (TE) standard, the single channel rate of Ethernet has been increased to 200 gigabits per second (Gbps or G or Gb / s) based on PAM4 technology. Subsequently, when the total bandwidth exceeds 1.6 terabit (T), the single channel rate is expected to increase to 448 Gbps.

[0083] As the Ethernet physical layer evolves towards higher speeds, traditional PAM4 modulation is gradually approaching its bottlenecks in bandwidth efficiency and fault tolerance. To further improve data transmission efficiency per channel, the industry has begun exploring higher-order modulation schemes, such as PAM6 or PAM8. For 448Gbps, PAM4 / 6 / 8 modulation are possible. For example, signal attenuation is more severe at higher speeds (e.g., PAM8 uses higher-order modulation techniques, requiring less bandwidth than PAM4, and can carry more information per symbol (e.g., 3 bits per symbol in PAM8), making it more suitable for 448Gbps.

[0084] However, higher-order modulation techniques such as PAM6 or PAM8 also incur a signal-to-noise ratio (SNR) penalty. For example, the signal level spacing between PAM6 / PAM8 signals is smaller than that between PAM4 signals, making the system more sensitive to noise and the signal levels more susceptible to noise effects, thus increasing the SNR penalty. Using non-return-to-zero (NRZ) coded signals as a benchmark, the SNR penalty for PAM4 is calculated to be 6.98 dB, for PAM6 it is 10.67 dB, and for PAM8 it is 13.22 dB. Here, the NRZ signal can be understood as a PAM2 signal. The SNR penalties for both PAM6 and PAM8 are greater than that for PAM4.

[0085] Furthermore, PAM6 / 8 modulation, when combined with a decision feedback equalizer (DFE) for receiver signal detection, introduces more severe error propagation. For example, due to the smaller intervals between signal levels in PAM6 / 8, the initial misclassification probability is much higher than that of PAM4. Under the DFE mechanism, a misclassification of a single symbol may affect the equalization process of subsequent symbols, leading to error propagation. For instance, when a PAM6 symbol malfunctions, it has a certain probability of triggering consecutive errors in adjacent symbols, forming a burst of errors. This results in multiple symbol errors at the FEC layer, ultimately causing FEC error correction failure and Ethernet port disconnection. Therefore, when using higher modulation methods such as PAM6 or PAM8 modulation, the reliance on the FEC algorithm is stronger, and error correction must be performed in conjunction with the FEC algorithm to ensure that the bit error rate level after error correction at the entire logic layer can meet or exceed the specifications defined by the existing Ethernet standard.

[0086] This application provides a data transmission method that incorporates the FEC algorithm during data transmission. Figure 1 is a schematic diagram of an implementation environment provided by this application embodiment. Referring to Figure 1, the implementation environment includes an encoding device 01 and a decoding device 02, which are connected through multiple channels. These channels can be referred to as physical coding sublayer lanes (PCS lanes) in some cases. After acquiring first data, the encoding device 01 performs FEC encoding on the first data to obtain second data. Then, it sends the second data to multiple channels to transmit it to the decoding device 02. The amount of the second data is determined based on the time interleaving depth, spatial interleaving depth, and the codeword width corresponding to the FEC encoding, and the amount of the second data is divisible by the number of channels. After receiving the second data transmitted through multiple channels, the decoding device 02 performs FEC decoding on the second data to obtain the first data.

[0087] In one possible implementation, encoding device 01 and decoding device 02 can be configured within a data center. Figure 2 shows a schematic diagram of such a data center, which is an Ethernet-based artificial intelligence (AI) cluster network architecture. The network architecture includes multiple graphics processing unit (GPU) server nodes and distributed Ethernet switching devices. Each GPU server is equipped with one or more high-speed network interface cards supporting remote direct memory access (RDMA) for performing high-speed data exchange and gradient synchronization during large model training.

[0088] Figure 2 shows a distributed Ethernet switching device with a leaf-spine structure. The leaf-spine structure includes leaf (LF) switches and spine (SP) switches. Leaf switches in different groups are connected to the same spine switches to form channels between different leaf switches. For example, LF1 in Group 1 and LF1 in Group 2 are both connected to SP, forming Channel 1 through SP.

[0089] Optionally, spine switches can be directly interconnected. In this case, the network structure formed by spine switches and leaf switches is a two-layer Clos topology. Clos refers to a non-blocking network architecture. In this two-layer Clos topology, each leaf switch in the leaf layer connects to multiple GPU servers, providing local access points for the servers. Common port speeds are 400G or 800G to support high-throughput training tasks. The spine switches in the spine layer act as the network core, with each spine switch interconnected with multiple leaf switches to form a fully interconnected Clos network, ensuring that any two servers can communicate through a balanced path.

[0090] For example, in a training cluster containing 256 H100 GPUs, 32 servers (each with 8 GPUs) can be used, interconnected with 8 spine switches via 32 leaf switches (each connecting to one server). Each leaf switch connects uplink to all spine switches, achieving fully equicost load balancing, such as equal-cost multi-path (ECMP) routing. All switches in the network support features such as RDMA over converged Ethernet version 2 (RoCEv2), priority-based flow control (PFC), and explicit congestion notification (ECN) to build a low-latency, lossless, RDMA-accelerated, high-performance Ethernet training network. This architecture can be flexibly scaled to thousands of GPUs while maintaining near-linear bandwidth expansion and low communication latency, making it suitable for parallel training and inference of large-scale AI models such as generative pre-trained transformers (GPT) and large language model AI (LLaMA).

[0091] In some cases, the spine switch can also be connected through a service switching point (SSP) switch as shown in Figure 2. In this case, the network structure formed by the spine switch and the leaf switch is a three-layer Clos topology.

[0092] When encoding device 01 and decoding device 02 are configured in a data center, the encoding device 01 and decoding device 02 shown in Figure 1 can be any switch or server in the data center shown in Figure 2. The interconnection interface on the switch or server is used to interactively execute the transmission method.

[0093] The encoding device 01 and decoding device 02 can also be other devices with interactive requirements. The encoding device 01 and decoding device 02 can be servers, such as central servers, edge servers, or local servers in a local data center. The server can be a physical server or a cloud server providing cloud computing services. In some embodiments, the encoding device 01 and decoding device 02 can be terminal devices such as desktop computers, laptops, personal computers (PCs), or smartphones; alternatively, they can be other communication devices, set-top boxes, televisions (TVs), etc. Optionally, the encoding device 01 and decoding device 02 can be independent devices or components within a device, such as transceivers, processors, memory and their controllers, chips, or interfaces. Optionally, the chip can be a physical (PHY) chip, in which case the encoding device 01 and the decoding device 02 are different PHY chips. The interface can be an Ethernet interface, a dynamic random access memory (DRAM) interface, a chiplet interface, an audio / video multimedia interface, a high-speed serial computer expansion bus (PCI Express / PCIe) / universal serial bus (USB), etc. Among them, the audio / video multimedia interface is, for example, a general-purpose media interface (GPMI).

[0094] This application provides a data transmission method that can be applied to any of the implementation environments shown in Figures 1-2. Taking the method as an example where the encoding device 01 and the decoding device 02 interact, the flowchart of the method is shown in Figure 3, including S301-S305.

[0095] S301, the encoding device acquires the first data, which is the data sent to multiple channels.

[0096] For example, the first data includes multiple binary data, where each binary data is 1 bit. Therefore, binary data can also be called discrete bits, discrete numbers, etc. In some cases, after receiving a data stream from a higher layer, the encoding device can process the data stream to obtain the first data. The higher layer can be at least one of the medium access control (MAC) layer or the reconciliation sublayer (RS), such as (1) in Figure 4. After receiving a data stream from the MAC layer / RS layer, the data stream can be processed at the PCS layer to obtain the first data. The processing of the data stream can be encoding or transcoding, etc. The process of the encoding device obtaining the first data will be illustrated below with reference to Figure 5.

[0097] After receiving the data stream from the MAC layer, the data stream is encoded in 64 / 66 bits (b), converting each 64-bit data segment into a 66-bit data segment. Adding a two-bit synchronization header to each 64-bit data segment yields 66-bit data. This synchronization header helps the decoding device recover the clock signal, achieving synchronized transmission and reception.

[0098] After encoding multiple 66-bit data sets, the encoding device can perform transcoding on the 66-bit data to adapt to the transmission mode. Transmission modes include, for example, normal transmission mode and low-latency transmission mode. Transcoding can be 256 / 257b transcoding or 64 / 65b transcoding. Specifically, 256 / 257b transcoding means the data size before transcoding is 256 bits, and the data size after transcoding is 257 bits; 64 / 65b transcoding means the data size before transcoding is 64 bits, and the data size after transcoding is 65 bits.

[0099] If the encoding device uses 256 / 257b transcoding as shown in Figure 5, since the encoded bit block is 66 bits, which is less than 256 bits, the encoding device can concatenate four bit blocks into one data block to be encoded, and compress the four bit blocks into 256 bits of data based on the synchronization header in the bit block. Then, this 256-bit data is transcoded to obtain a 257-bit data block.

[0100] Optionally, since the first data is the data to be FEC encoded, the encoding process is based on the length of the effective information bits. The length of the effective information bits indicates the number of binary data in the first data, which can be understood as the amount of data in the first data to be FEC encoded. Taking the FEC encoding as RS(n, k, t, m) as an example, n indicates the number of data symbols after encoding, k indicates the number of data symbols before encoding, t indicates the error correction capability, and m indicates the amount of data in one data symbol. t can be represented by n and k, for example, t = (nk) / 2.

[0101] Taking RS(272, 258, 7, 10) as an example, 10 represents the symbol length, indicating that the data size of one data symbol is 10 bits. 272 ​​represents the number of symbols after encoding, and 258 represents the number of symbols before encoding. In RS(272, 258, 7, 10), although the data size before encoding is 258 × 10 = 2580 bits, one symbol is a redundant symbol added for FEC encoding, so the actual length of the effective information bits encoded is 257 × 10. Taking FEC encoding as RS(544, 514, 15, 12) or RS(560, 514, 23, 12) as another example, the data size before encoding is 514 × 12 = 6168 bits, and there are no added redundant symbols in these 514 symbols, meaning the effective information bits are 6168 bits.

[0102] Therefore, the encoding device can distribute data blocks to obtain the first data based on the length of the effective information bits corresponding to the FEC encoding. The length of the effective information bits corresponding to the FEC encoding is determined based on the FEC encoding code pattern. For the process of selecting the FEC code pattern, please refer to the relevant description in S302, which will not be repeated here. Taking the length of the effective information bits corresponding to the FEC encoding being an integer multiple of the number of binary data in the transcoded data block as an example, the encoding device can select at least one data block to obtain the first data based on the multiple relationship.

[0103] If the integer multiple is 1, since the data size of the first data in FEC encoding is the same as the data size of the transcoded data block, the encoding device can directly use the transcoded data block as the first data to be FEC encoded. If the integer multiple is greater than 1, the encoding device can concatenate multiple data blocks to obtain the first data. For example, in the above embodiment, the FEC encoding is RS(544, 514, 15, 12), the data size of the data block is 257 bits, and the effective information bits 6168 corresponding to the FEC encoding are 24 times the data size of the data block (257 bits). Therefore, the encoding device can use 24 transcoded data blocks as the first data to be FEC encoded. The above concatenation process can be understood as distribution; that is, after transcoding to obtain multiple data blocks, the encoding device will distribute multiple data blocks according to the length of the effective information bits required for FEC encoding to obtain the first data whose data size matches the length of the effective information bits.

[0104] Regardless of the method or amount of data the encoding device acquires, it can send the first data to multiple channels. Referring again to Figure 5, the attachment unit interface x (AUIx) connects to the channels. Sending the first data to multiple channels can be understood as the encoding device processing the first data to obtain the PAM encoded data corresponding to the first data that can be transmitted through the channels, thus enabling the transmission of data to the decoding device via the channels.

[0105] S302, the encoding device performs FEC encoding on the first data to obtain the second data. The amount of the second data is an integer multiple of the number of channels. The amount of the second data is determined by the time interleaving depth, the spatial interleaving depth and the codeword width corresponding to the FEC encoding.

[0106] Optionally, after acquiring the first data, the encoding device will perform FEC encoding on the first data to improve the anti-interference capability of the first data in the channel. For example, in Figure 4 (2)-(4), an FEC algorithm will be added on the basis of the PCS layer shown in Figure 4 (2). The XS2 layer in Figure 4 (3) is a component of the physical layer. XS indicates the extended sublayer, and 2 indicates the structure of the XS layer. Figure 4 shows a variety of FEC encoding architectures, namely end-to-end FEC architecture, segment-by-segment FEC architecture, and concatenated FEC architecture.

[0107] Regardless of the FEC architecture used to perform FEC encoding on the first data, the encoding device will determine the data volume of the second data obtained by FEC encoding before performing FEC encoding on the first data, so as to select the appropriate FEC code type according to the data volume. Here, the data volume of the second data indicates the number of bits of binary data in the second data.

[0108] In high-speed Ethernet architectures, with the introduction of higher-order modulation techniques such as PAM6 and PAM8, and the potential for any number of multi-lane architectures in the future, system design needs to comprehensively consider the coordinated optimization of three dimensions: time interleaving, spatial interleaving, and FEC codeword width. Therefore, the amount of data in the second data set is determined based on the time interleaving depth, spatial interleaving depth, and codeword width.

[0109] Interleaving refers to fusing multiple FEC code blocks together to distribute data and reduce the damage to continuous data caused by sudden errors. During the fusion of FEC code blocks, the fusion granularity can be N bits, where N is any positive integer not greater than the data size of the FEC code block; N can be 1, 10, or the data size of the FEC code block. Based on different interleaving dimensions, interleaving depth can be divided into temporal interleaving depth and spatial interleaving depth. Temporal interleaving depth refers to the number of FEC code blocks that undergo interleaving processing according to the time dimension. The time dimension refers to the fact that the interleaved FEC code blocks are FEC code blocks obtained from different time encodings. Taking Figure 5 as an example, the dashed boxes in Figure 5 indicate FEC code blocks interleaved according to the time dimension. These are two FEC code blocks obtained sequentially by the FEC encoder. Since the number of FEC code blocks is 2, the temporal interleaving depth is 2.

[0110] Spatial interleaving depth refers to the number of FEC code blocks that undergo interleaving processing according to the physical spatial dimension. The physical spatial dimension refers to the number of FEC code blocks encoded by different FEC encoders at the same time, and in some cases, it can be referred to as the number of parallel FEC code blocks. Continuing to refer to Figure 5, an arrow under w-bit round-robin represents one FEC encoder, so the number of parallel FEC code blocks is 2, and the spatial interleaving depth is 2.

[0111] Optionally, the codeword width refers to the amount of data in the FEC code block obtained by FEC encoding. It can be understood as the number of binary data in the FEC code block. Continuing with the example of FEC encoding as RS(n, k, t, m) in the above embodiment, the codeword width is n×m. For example, the encoding device can determine the amount of data for the second data based on the product of the time interleaving depth, the spatial interleaving depth, and the codeword width. For example, the product can be used as the amount of data for the second data. With the time interleaving depth as C as shown in Figure 5, the spatial interleaving depth as I as shown in Figure 5, and the codeword width as n×m as shown in Figure 5, where I, C, n, and m are all positive integers, the amount of data for the second data is I×C×n×m. For example, with I and C both being 2 and n being 560, the amount of data for the second data is 2240m, which can also be expressed as 2240×m in some cases.

[0112] It should be understood that although the amount of data in the second data is determined by the temporal interleaving depth and the spatial interleaving depth, the encoding device may or may not perform interleaving processing on the FEC code blocks. For example, if both the temporal interleaving depth and the spatial interleaving depth are 1, it can be understood as fusing one FEC code block. The fusion result is consistent with the FEC code block, meaning that no interleaving processing was performed on the FEC code block.

[0113] For example, the encoding device can also determine the amount of second data based on time interleaving depth, spatial interleaving depth, and codeword width, combined with other methods. For instance, the amount of second data can be selected based on the number of channels. Here, the number of channels refers to the number of channels used by the encoding device to send data to the decoding device in parallel. Since the encoding device uses multiple channels to send data to the decoding device in parallel, data transmission efficiency is improved. In next-generation high-speed Ethernet, when using PAM6 or PAM8 modulation, or an architecture with a channel number that is not an integer multiple of 2, a well-designed interleaving strategy is particularly crucial.

[0114] At this point, the amount of the second data can be selected based on the number of channels, ensuring that the number of channels is divisible by the amount of the second data. This achieves an ideal balance between link error correction capability and interleaving overhead (time and space costs). Furthermore, since the amount of the second data is an integer multiple of the number of channels, it guarantees that the second data can be evenly distributed across multiple channels, avoiding load imbalances where some channels transmit more data than others, thus improving channel transmission efficiency.

[0115] Optionally, the encoding device can select the amount of the second data based on an integer multiple of the number of channels. The number of channels varies depending on the implementation environment and can be 2, 4, 8, or 16, etc. Taking 16 channels as an example, the encoding device determines the amount of the second data to be 272m, based on the fact that 272m is a multiple of 16. Here, m indicates the symbol length, and 272 is the number of symbols obtained through FEC encoding.

[0116] In one possible scenario, the encoding device can also combine PAM encoding to determine the amount of the second data. Since the second data undergoes PAM encoding before being sent to the channel, converting it into PAM-encoded data that the channel supports for transmission (for example, as shown in Figure 4), after obtaining the second data based on the PCS layer, the encoding device performs PAM encoding on the second data at the physical media attachment (PMA) layer before transmitting the PAM-encoded data through the channel connected via the AUI. Therefore, the encoding device can also select the amount of the second data based on PAM encoding to ensure that FEC encoding is compatible with PAM encoding.

[0117] For cases where PAM encoding is used to encode each x bits of the second data into a single PAM-encoded data entry, the encoding device can select the amount of the second data based on integer multiples of x. Optionally, PAM encoding includes PAM6 encoding or PAM8 encoding. PAM6 encoding encodes binary data into hexadecimal symbols, which have six signal levels: 0, 1, 2, 3, 4, 5, or -5, -3, -1, +1, +3, +5. PAM8 encoding encodes binary data into octal symbols, which have eight signal levels: 0, 1, 2, 3, 4, 5, 6, 7. In some cases, PAM encoding can also be PAM4 encoding or NRZ modulation.

[0118] The number of binary data bits encoded varies depending on the PAM encoding, meaning the x bits differ. For example, PAM6 encoding encodes 18 bits into 7 hexadecimal symbols, where x is 18. In some cases, this PAM6 encoding can be represented as 18B7S. Alternatively, PAM6 encoding encodes 5 bits into 2 hexadecimal symbols, where x is 5. In some cases, this PAM6 encoding can be represented as 5B2S. Or, PAM8 encoding encodes 3 bits into 1 octal symbol, where x is 3. In some cases, this PAM8 encoding can be represented as 3B2O. Here, S indicates hexadecimal and O indicates octal.

[0119] Because the encoding device performs PAM encoding on every x bits of the second data, if the amount of the second data is not an integer multiple of x, there will be unencoded residual data. For example, if the amount of residual data is less than x, PAM encoding cannot be performed in one go, and invalid bits need to be padded to x, resulting in invalid bits occupying the channel and low resource utilization. Therefore, the encoding device can select the amount of the second data based on x, controlling the amount of the second data to be an integer multiple of x, to ensure that there is no unencoded residual data in the second data. For example, the symbol length can be selected based on x, and the amount of the second data can be determined according to the symbol length. Taking x as 18 as an example, if the symbol length is determined to be 18, then the amount of the second data is 18n, where n is the number of symbols obtained by FEC encoding.

[0120] For example, after determining the amount of the second data, the encoding device can select an appropriate FEC code type based on the amount of data and the error correction capability. This application does not limit the order in which the FEC code type is selected based on the amount of data and the error correction capability; it can be selected first based on the amount of data and then based on the error correction capability, or vice versa. The following descriptions will address different orders.

[0121] First, select multiple candidate FEC code types based on the amount of data in the second data set. Then, based on the error correction capability of each candidate FEC code type, select the candidate FEC code type whose error correction capability meets the error correction requirements from among the multiple candidate code types.

[0122] In one possible implementation, the encoding device selects the codeword width corresponding to the FEC encoding based on the data volume, temporal interleaving depth, and spatial interleaving depth, determines the information bit length of the FEC encoding, and selects candidate FEC code types based on the codeword width and information bit length. Here, the information bit length indicates the amount of data before FEC encoding. Continuing with the example of FEC encoding as RS(n, k, t, m) in the above embodiment, the information bit length is k×m. If both the temporal interleaving depth and the spatial interleaving depth are 1, it means that the encoding device will not perform interleaving processing on the FEC code block, and the second data is an FEC code block. Continuing with the example of the second data volume being 272m in the above embodiment, the encoding device determines the codeword width of the FEC code block to be 272m.

[0123] If either the temporal interleaving depth or the spatial interleaving depth is not 1, it indicates that the encoding device will perform interleaving processing on the FEC code block. The encoding device can then divide the data size by both the temporal and spatial interleaving depths, and the quotient is the codeword width corresponding to the FEC encoding. Taking the second data set as an example with a data size of 2240m, since both the temporal and spatial interleaving depths are 2, 2240 divided by 4 equals 560. Therefore, the encoding device determines that the codeword width corresponding to the FEC encoding is 560m.

[0124] In some cases, the encoding device can also directly determine the codeword width corresponding to FEC encoding based on the amount of data in the second data set. For example, if the encoding device first selects the FEC code type and then chooses the interleaving strategy based on the burst resistance requirements of the FEC code type, since the interleaving strategy has not been determined before selecting the FEC code type, the encoding device can first select the amount of data in the second data set based on the number of channels or PAM encoding, and then determine the codeword width corresponding to FEC encoding based on the amount of data in the second data set, such as selecting a codeword width that can be divided evenly by the amount of data in the second data set.

[0125] Optionally, after determining the codeword width, the encoding device can determine the length of the information bits corresponding to the FEC encoding based on the codeword width, or it can choose based on the codeword width and the application scenario. The following provides an example of the application scenario.

[0126] Application Scenario 1: Transcoding.

[0127] Since the first data to be FEC encoded is obtained based on multiple transcoded data blocks, and the information bit length corresponding to FEC encoding is used to determine the amount of data before encoding, the encoding device can select the information bit length according to the amount of data in the data block. Taking the amount of data in the data block as 257 in the above embodiment as an example, the information bit length can be 514m or 258m.

[0128] Application Scenario 2: The original clock frequency of the original clock source.

[0129] The original clock frequency refers to the basic clock signal generated by the PHY layer hardware, which is used to drive the timing of data transmission. It is provided by the clock generation module configured in the PHY chip. The original clock frequency is, for example, the original clock frequency corresponding to 64 / 66B, which can be 156.25 MHz or 312.5 MHz. In some cases, the original clock frequency can be called the base frequency or fundamental frequency.

[0130] For example, since the encoding device relies on the original clock frequency generated by the original clock source during the encoding process to provide a synchronization timing reference based on the original clock frequency, the encoding device can also incorporate maintaining the original clock frequency as a condition when considering the FEC code pattern. This can be understood as selecting the information bit length based on the original clock frequency. For instance, the interface rate corresponding to FEC encoding is an integer multiple of the original clock frequency corresponding to the first data. The interface rate corresponding to FEC encoding is determined based on the information bit length and codeword width corresponding to FEC encoding. In some cases, the interface rate is equal to the product of the quotient of the codeword width and the information bit length and the data rate, where the data rate is the rate at which data arrives at the FEC encoder.

[0131] Figure 6 is a schematic diagram of an interface rate variation provided in an embodiment of this application. In Figure 6, the input rate of the data stream is 400Gb / s, and the data stream is transmitted through 4 independent channels, each with a bit width of 640 bits. The original clock frequency is 156.25MHz ±100ppm, such as 156.25×4×640=400000, where ±100ppm indicates the deviation range, and PPM refers to parts per million.

[0132] As shown in Figure 6, the data processing speed of the 64 / 66b encoder is 4×640b@156.25MHz, where @ indicates processing at a certain rate, and @156.25MHz means processing at a rate of 156.25MHz. The data transmission rate after 64 / 66b encoding is 400×66 / 64=412.5G / s, and the data processing speed is 4*660b@156.25MHz. The data transmission rate after 256 / 257b transcoding is 400×66 / 64×256 / (4×66)=401.5625G / s, and the data processing speed is 2570b@156.25MHz. Although the data transmission rate is not an integer multiple of 156.25MHz, it can be adjusted back to an integer multiple of 156.25MHz through FEC encoding, i.e., the interface rate corresponding to the FEC encoding.

[0133] In Figure 6, the data rate reaching the FEC encoder is the data transmission rate after 256 / 257b transcoding, which is 400×66 / 64×256 / (4×66). Therefore, the interface rate corresponding to FEC encoding is 400×66 / 64×256 / (4×66)×544 / 514=400×34 / 32=425Gb / s. When using 4 independent channels for transmission, with each channel having a bit width of 680 bits, the interface rate and the original clock frequency are integer multiples of each other, for example, 156.25×4×680=425000.

[0134] If the interface rate corresponding to the FEC encoding is an integer multiple of the original clock frequency, then an integer reference clock multiplier is feasible. This means that the original clock frequency can be multiplied by an integer using a phase-locked loop (PLL) to obtain a clock frequency that meets the rate requirements of the FEC encoding. The circuit implementation is simple and facilitates backward compatibility with traditional clock PLLs in chip bus design. Based on this, the encoding device can determine the interface rate corresponding to the FEC encoding according to the original clock frequency, and determine the information bit length based on the interface rate and the codeword width. For example, as shown in Figure 6, with a codeword width of 544m, an original clock frequency of 156.25MHz, a data rate of 401.5625G / s, and a bit width of 680 bits for each of the four channels, the information bit length is determined to be 514m.

[0135] Regardless of how the encoding device determines the information bit length and codeword width, it can select candidate FEC code types based on the codeword width and information bit length. If the encoding device adopts a single-layer FEC architecture, that is, the encoding device only performs encoding on the first data once based on the first FEC code type, then the selected candidate FEC code type is the first candidate FEC code type. The codeword width and information bit length refer to the amount of data in the FEC code block after encoding using the first FEC code type and the amount of data before encoding.

[0136] In this case, the encoding device can directly select multiple suitable first FEC code patterns as candidate FEC code patterns based on the codeword width and information bit length. Taking the FEC code pattern RS(n, k, t, m) as an example, the codeword width is n×m and the information bit length is k×m. Based on the codeword width of 560m and 18n in the above embodiment, and the information bit length of 514m selected based on application scenario one, the first FEC code pattern is RS(560, 514, 23, 18). In some cases, the first FEC code pattern can also be RS(272, 258, 7, 10), etc.

[0137] If the encoding device uses a cascaded FEC architecture, the FEC encoding will include external code encoding and internal code encoding as shown in Figure 7. Taking the external code encoding using the first FEC code type and the internal code encoding using the second FEC code type as an example, the selected candidate FEC code types include the candidate first FEC code type and the candidate second FEC code type, which can be called candidate FEC code groups. Since both the first and second FEC code types have corresponding codeword widths and information bit lengths, the codeword width and information bit length obtained by the encoding device will vary. Examples of these different scenarios will be provided below.

[0138] Case 1: The codeword width and information bit length are the same as those of the second FEC code type.

[0139] Because the encoding device considers the overhead of the inner code (second FEC code pattern) during concatenated encoding and selects an integer multiple of the original clock frequency that can also support it, if the encoding device selects the information bit length based on application scenario two, the selected information bit length is the information bit length corresponding to the second FEC code pattern. In this case, the encoding device can select the second FEC code pattern based on the codeword width and the information bit length, and then select a matching first FEC code pattern based on the second FEC code pattern, resulting in multiple candidate FEC code groups. Each candidate FEC code group includes a first FEC code pattern and a second FEC code pattern, and at least one FEC code pattern in different candidate FEC code groups is different.

[0140] The process of selecting the second FEC code type is similar to that of selecting the first FEC code type in the above embodiments, and can be found in the relevant descriptions, which will not be repeated here. Furthermore, the second FEC code type can be RS code, BCH code, or Hamming code. Taking BCH encoding as an example, the second FEC code type is BCH(147, 140), where 147 is the codeword width and 140 is the information bit length. After determining the second FEC code type, the encoding device can select the first FEC code type based on the second FEC code type.

[0141] For example, since the first encoding result obtained based on the first FEC code pattern is also divided according to the information bit length corresponding to the second FEC code pattern during the encoding process according to the second FEC code pattern, and then the division result is encoded, the codeword width corresponding to the first FEC code pattern can be set to an integer multiple of the information bit length corresponding to the second FEC code pattern to ensure that a first encoding result can be evenly divided into multiple blocks.

[0142] Continuing with the example of the second FEC code pattern BCH(147, 140), since the information bit length corresponding to the second FEC code pattern is 140 bits, and 560 is a multiple of 140, the encoding device determines the codeword width corresponding to the first FEC code pattern to be 560m. After determining the codeword width corresponding to the first FEC code pattern, the encoding device can select an appropriate information bit length based on the codeword width to obtain the corresponding first FEC code pattern. For example, if the information bit length is selected as 514m, the first FEC code pattern is selected as RS(560, 514, 23, m), where m can be selected based on x in PAM encoding, and can be 9, 10, 12, 15, or 18, etc.

[0143] Case 2: The codeword width is the same as the codeword width corresponding to the second FEC code type, and the information bit length is the same as the information bit length corresponding to the first FEC code type.

[0144] Case 2 corresponds to the process of determining the information bit length based on the transcoded data block. Based on the similar principle to Case 1, the codeword width corresponding to the first FEC code pattern and the information bit length corresponding to the second FEC code pattern will also have an integer multiple constraint relationship. The encoding device can select the first FEC code pattern and the second FEC code pattern based on the determined information bit length, codeword width and constraint relationship.

[0145] For example, based on the information bit length of the first FEC code pattern being 514m and the codeword width of the second FEC code pattern being 147 bits as shown in Figure 8, the information bit length of the second FEC code pattern is first selected as 140 bits based on the codeword width of the second FEC code pattern. The codeword width of the first FEC code pattern is determined to be an integer multiple of 140. Since the information bit length of the first FEC code pattern is 514m, and the integer that is divisible by 140 and not less than 514 is 560, the encoding device selects the second FEC code pattern as RS(560, 514, 23, m) based on this.

[0146] The examples above are intended to illustrate the process of selecting the first and second FEC codes, and are not intended to limit the first and second FEC codes. Furthermore, in cascaded scenarios, in addition to the second FEC code corresponding to an interface rate that is an integer multiple of the original clock frequency, the first FEC code corresponding to an interface rate that is also an integer multiple of the original clock frequency.

[0147] In some cases, the first FEC code pattern can be RS(544, 514, 15, 12), RS(544, 514, 15, 18), RS(560, 514, 23, 10), RS(560, 514, 23, 12), RS(560, 514, 23, 18), or RS(272, 258, 23, 10). For the first FEC code pattern RS(544, 514, 15, 12), RS(560, 514, 23, 18), RS(272, 258, 23, 10, the first FEC code pattern can be RS(544, 514, 15, 12), RS(544, 514, 15, 18), RS(272, 258, 23, 10 In the case of 5, 10), the second FEC code pattern can also be BCH(144, 136) as shown in Figure 9, aligned to a frequency multiplier of RS(576, 514, 31, m) of 720X. Alignment to RS(576, 514, 31, m) means that after encoding 5140 bits of data using RS(544, 514, 15, 10) and BCH(144, 136), 5760 bits can be obtained. Alignment to a frequency multiplier of 720X means that the encoded 5760 bits are divisible by 720, matching a transmission rate of 720X without padding or truncation, thus improving transmission efficiency. The transmission rate of 720X is equivalent to a 720MHz clock. Alternatively, the first FEC code pattern is RS(544, 514, 15, 10), and the second FEC code pattern is BCH(280, 272), aligned with a frequency multiplication rate of 700X for RS(560, 514, 23, m).

[0148] In some cases, the first and second FEC code types can be of the same type. For example, if both belong to RS codes, the first FEC code type can be RS(544, 514, 15, 10), and the second FEC code type can be RS(70, 68, 1, m), aligned to a frequency multiplier of 700X for RS(560, 514, 23, m). Alternatively, the first FEC code type can be RS(544, 514, 15, 10), and the second FEC code type can be RS(36, 34, 1, m), aligned to a frequency multiplier of 720X for RS(576, 514, 31, m). Furthermore, in the above RS FEC algorithm, m can be equal to 10, 18, or 12, or other values ​​such as 9 or 15.

[0149] Regardless of the method by which the encoding device selects candidate FEC code patterns or candidate FEC code groups for FEC encoding, the FEC code pattern used for FEC encoding can be selected based on the error correction capability of each candidate FEC code pattern or candidate FEC code group. Since the process of selecting from multiple candidate FEC code groups is similar to the process of selecting from multiple candidate FEC code patterns, the following will use candidate FEC code patterns as an example for illustration.

[0150] In one possible implementation, the encoding device determines the error correction requirements based on at least one of the following: channel medium characteristics, channel transmission distance, channel quality, transmission rate, and PAM coding. The channel medium characteristics indicate whether the channel is copper or optical fiber. Taking channel medium characteristics and channel transmission distance as an example, the encoding device can determine the signal quality and link bit error rate (BER) based on the communication medium characteristics and channel transmission distance. The signal quality can be reflected by the signal-to-noise ratio (SNR).

[0151] For example, the encoding device determines the channel medium characteristics and link length. Different physical media and distances will introduce varying degrees of signal loss, noise, and crosstalk. Then, the encoding device derives the link budget and SNR: It estimates the signal-to-noise ratio at the receiver based on serializer-deserializer (SerDes) parameters, transmission path loss, etc. Combining the receiver's SNR, it estimates the forward error correction input bit error rate (BERin): for example, assuming random errors or using a burst error model to estimate BERin; based on BERin, it sets the output BER or frame loss rate (FLR) target: according to standards such as IEEE 802.3 or application requirements (e.g., BER≤1E-13 or FLR≤1E-15), it determines the output BER or FLR target of the FEC code, thus obtaining the error correction requirements.

[0152] After determining the error correction requirements, the encoding device acquires the error correction capabilities of each candidate FEC code type. This can be done through simulation and experimental calculations, or by calculating based on the minimum Hamming distance. The device then selects a candidate FEC code type whose error correction capability meets the requirements, such as RS(544, 514, 15, m), RS(272, 258, 7, m), or a more powerful LDPC. If multiple candidate FEC code types meet the requirements, the encoding device can weigh their error correction capabilities, decoding latency, bandwidth overhead, or area, and ultimately select one candidate FEC code type.

[0153] The second step is to select multiple candidate FEC code types whose error correction capabilities meet the error correction requirements; and to select a candidate FEC code type from multiple candidate FEC code types based on the amount of data in the second data.

[0154] For the process of determining error correction requirements, please refer to the relevant description in Sequence 1, which will not be repeated here. After determining the error correction requirements, the encoding device can obtain the error correction capabilities of various FEC code types and select candidate FEC code types from them. Each FEC code type can be a standard-defined FEC code type or an FEC code type used for historical encoding.

[0155] After determining multiple FEC code patterns, the encoding device can determine the codeword width and information bit length corresponding to the FEC code pattern based on the amount of data in the second data. Based on the codeword width and information bit length, the device selects candidate FEC code patterns from the multiple FEC code patterns. For a description of determining the codeword width and information bit length, please refer to the relevant content on determining the codeword width and information bit length in Section 1. The process of selecting candidate FEC code patterns based on the codeword width and information bit length can also be found in Section 1, and will not be repeated here.

[0156] Regardless of the method used by the encoding device to select the FEC code pattern, FEC encoding can be performed on the second data based on the selected FEC code pattern to obtain the second data. Optionally, the encoding device segments the first data according to the information bit length corresponding to the FEC encoding, determines redundant bits based on the segmentation results, and merges the data segments and redundant bits to obtain the FEC code block. Redundant bits may be referred to as RS FEC symbols, check information, or RS FEC check information in some cases. The data size of the FEC code block is the codeword width corresponding to the FEC encoding.

[0157] The encoding device can use one FEC encoder to encode the second data, or, as shown in Figure 5, multiple FEC encoders can be used to encode the second data in parallel. Since the encoding process is similar in different cases, the following example, using two FEC encoders shown in Figure 5 and the FEC code pattern RS(544, 514, 15, 18) shown in Figure 6, will be used for illustration. In Figure 6, RS(544, 514, 15, 12 / 18) indicates "or".

[0158] In RS(544, 514, 15, 18), the information bit length is 514 × 18 = 9252 bits, and the codeword width is 544 × 18 = 9792 bits, which can be understood as w = 9252 in Figure 5. After acquiring the first data, the encoding device cycles through the first data in 9252-bit increments, allocating the first group of 9252 bits to the first FEC encoder, the second group of 9252 bits to the second FEC encoder, and then the third group of 9252 bits to the first FEC encoder, and so on.

[0159] After receiving 9252 bits, any FEC encoder divides the 9252 bits into 514 data symbols, each 18 bits in size. A polynomial is constructed based on a finite field, and the 514 data symbols are used as the coefficients of the polynomial. The polynomial is then used to calculate 30 redundant characters, resulting in 540 redundant bits. These 30 redundant characters and the 514 data symbols are combined to obtain an FEC code block containing 544 characters.

[0160] Taking Figure 8 as an example, the process of encoding the second data in the case of concatenated encoding in the FEC encoding architecture is illustrated. The RS(560, 514) encoding process is similar to the RS(544, 514, 15, 18) encoding process in the above embodiments, the difference being the constructed polynomial and the resulting redundant characters. For a detailed description, please refer to the above embodiments, which will not be repeated here. After performing RS(560, 514) encoding on the first data to obtain the first encoding result, the encoding device can perform BCH(147, 140) encoding on the first encoding result. The encoding device first divides the first encoding result into blocks based on 140 bits, and then performs BCH(140, 147) encoding on the divided first encoding result to obtain an FEC code block with a data size of 147 bits.

[0161] Furthermore, after obtaining the first encoding result, the encoding device can directly perform encoding based on the second FEC code pattern, or it can first perform interleaving on the first encoding result and then encode the interleaved first encoding result based on the second FEC code pattern. This application embodiment does not limit this.

[0162] For example, after encoding the first data to obtain an FEC code block, the encoding device can obtain the second data based on the FEC code block. If the temporal interleaving depth and spatial interleaving depth are both 1, the encoding device directly uses the FEC code block as the second data. If the temporal interleaving depth or spatial interleaving depth is not 1, the encoding device can perform interleaving processing on multiple FEC code blocks based on the temporal interleaving depth and spatial interleaving depth to obtain the second data.

[0163] Referring to Figure 10, the number of FEC cycles C in Figure 10 represents the temporal interleaving depth, and the number of PCS channels L is the same as the spatial interleaving depth. After the encoding device performs encoding, decoding, and transcoding to obtain the first data, it performs FEC encoding on the first data to obtain multiple FEC code blocks. Based on the temporal interleaving depth C, the encoding device interleaves the C FEC code blocks obtained successively by the same FEC encoder, interleaving them to obtain intermediate data. Then, based on the spatial interleaving depth L, the encoding device interleaves the intermediate data corresponding to the L FEC encoders to obtain the second data, which is the data to be PAMn encoded in the PMA layer.

[0164] Interleaving enhances the anti-interference capability of the second data. Even in the event of burst errors, these errors can be dispersed across multiple FEC code blocks, thereby improving error correction performance. Next, error correction performance is expressed as the uncorrectable error rate (UCR). A lower UCR indicates better error correction performance. Combining two FEC architectures, RS(544, 514, 15, 10) and RS(272, 258, 7, 10), the impact of interleaving on error correction performance is analyzed. Table 1 shows the error correction capabilities of RS(544, 514, 15, 10) and RS(272, 258, 7, 10) under different detector error ratios (DER).

[0165] Table 1

[0166] The numerical values ​​in Table 1 for different interlacing coefficients indicate the UCR; for 1.786e-08, it is 1.786 × 10⁻⁸. -8 The meanings of the other values ​​are similar and can be found in Table 1, so they will not be repeated here. An interleaving coefficient of 1 indicates no interleaving, while interleaving coefficients of 2, 4, and 6 can represent temporal interleaving depth, spatial interleaving depth, or the product of both. See Table 1 for DER = 1 × 10⁻⁶. -3With an interleaving coefficient of 1, the single-codeword UCR of RS(544, 514) reaches 1.79 × 10⁻⁸, while that of RS(272, 258) is 6.12 × 10⁻⁵, resulting in poor data reliability at the Ethernet port. However, by employing multi-codeword interleaving (n = 2, 4, 6), these burst errors can be distributed across multiple FEC codewords, significantly optimizing the UCR.

[0167] As shown in Table 1, the multi-codeword interleaving + FEC architecture has significant advantages in dealing with high-order modulation burst errors and can effectively extend the fault tolerance boundary of traditional RS FEC. For the design of high-speed Ethernet physical layer systems for PAMn, the multi-codeword interleaving strategy of FEC should be considered, especially in scenarios with low physical link noise tolerance or high BER of the system. The multi-codeword interleaving FEC structure is recommended to ensure the stability and reliability of the overall system.

[0168] Furthermore, the examples above are intended to illustrate the UCR of different RS configurations, demonstrating the optimization of interleaving in UCR, rather than to limit whether the RS configuration meets the Mean Time to False Packet Acceptance (MTTFPA) metric. The MTTFPA metric for Ethernet connection quality needs to be derived from the UCR metric to determine whether the link quality meets the relevant standards of the Institute of Electrical and Electronics Engineers (IEEE). The table above only shows the FEC architecture using an interleaving coefficient of 6, and when DER < 1 × 10⁻⁶. -3 Only then can the MTTFPA index requirement of exceeding the age of the universe (AOU) be met.

[0169] S303, the encoding device sends second data to multiple channels.

[0170] Optionally, after obtaining second data with stronger anti-interference capabilities through FEC encoding, the encoding device can send the second data to the channel to transmit data to the decoding device. The transmission process is as follows: perform PAM encoding on each x bits in the second data to obtain multiple PAM encoded data; send multiple PAM encoded data to multiple channels, with one channel used to transmit at least one PAM encoded data.

[0171] In one possible implementation, before PAM encoding of the second data, the encoding device performs distribution on the second data, distributing the second data to multiple PAMn encoders. One PAMn encoder corresponds to one channel, which can be understood as one channel being used to transmit the PAM encoded data obtained by one PAMn encoder.

[0172] This application does not limit the method by which the encoding device distributes the second data. As shown in Figure 5, it can use symbol distribution, where one data symbol from the second data is distributed to the first PAMn encoder, the second data symbol to the second PAMn encoder, and so on, until the last data symbol in the second data is distributed. Alternatively, the encoding device can use block distribution, distributing one FEC code block to one PAMn encoder. Optionally, the encoding device can also distribute data in x-bit increments, distributing the first group of x-bit data to the first PAMn encoder, the second group of x-bit data to the second PAMn encoder, and so on, until the last x-bit data in the second data is distributed.

[0173] Table 2 shows a PAM encoding method based on FEC code pattern adaptation with selected time interleaving depth C, spatial interleaving depth I, and codeword width n×m.

[0174] Table 2

[0175] In Table 2, ^ represents exponentiation, and the prime factor indicates the prime numbers divisible by C×I×n×m. This can be used to determine the appropriate PAM encoding for the FEC code type. For example, the prime factors of 13440 include 3 and 5, so the appropriate PAM encodings include 18B7S and 5B2S. Based on Table 2, a high-speed Ethernet physical layer architecture using I RS(560, 514, 15, m) encoding modules, where the Symbol size m = 12 or 18, is distributed to L channels using PAM6 modulation, supporting both 18B7S and 5B2S PAM6 encoding methods.

[0176] For example, after receiving the distributed data, the PAMn encoder can perform PAMn encoding on x bits. If the encoding device distributes data in x bits, the PAMn encoder can directly encode the data for each received data set. If the encoding device uses block distribution or symbol distribution, the PAMn encoder can perform processing such as segmentation or combination on the distributed data, encoding each x bits of data in the distributed data. Next, taking PAMn encoding as PAM6 encoding, with the PAM6 encoding format being 18B7S, as an example, the encoding device uses the PAM6 encoder to encode 18 bits into 7 hexadecimal symbols, and these 7 hexadecimal symbols form one PAM encoded data.

[0177] Optionally, the encoding device can use a lookup table (LUT) method to encode, or it can use a base conversion method to derive the bit / senary conversion formula of each bit field according to the binary-decimal-senary division. The conversion formula can also be called the bit field conversion rule in some cases. Alternatively, the encoding device can use an encoding method to encode each group.

[0178] Regardless of the encoding method used by the encoding device to obtain PAM encoded data, the PAM encoded data corresponding to that channel can be transmitted through the channel. For example, in Figure 5, the PAM encoded data obtained by the first PAMn encoder will be sent to the decoding device through the first channel, and the PAM encoded data obtained by the second PAMn encoder will be sent to the decoding device through the second channel. In Figure 5, one PAMn encoder corresponds to one optical module.

[0179] S304, the decoding device acquires the second data.

[0180] The second data refers to data sent to multiple channels. This can be understood as the second data being sent from the encoding device to multiple channels on the encoding side. In one possible implementation, the decoding device acquires the second data by: acquiring multiple PAM encoded data transmitted through multiple channels, where each channel is used to transmit at least one PAM encoded data; performing PAM decoding on the PAM encoded data to obtain x bits corresponding to the PAM encoded data; and acquiring the second data based on the x bits corresponding to the multiple PAM encoded data.

[0181] After acquiring the PAM encoded data, the decoding device can perform decoding using the method corresponding to the encoding side. Continuing with Figure 4 as an example, after receiving the PAM encoded data transmitted through the channel, the decoding device decodes the PAM encoded data at the PMA layer. For example, the decoding process includes finding the corresponding x-bit in the LUT (Local Unified Test) and decoding that x-bit. Alternatively, a base conversion method can be used, decoding according to the bit field mapping conversion rules of the encoding. After decoding the multiple x-bit data obtained from the PAM encoded data transmitted through each channel, the decoding device can concatenate the multiple x-bit data to obtain the second data based on the distribution rules of the second data.

[0182] S305, the decoding device performs FEC decoding on the second data to obtain the first data corresponding to the second data.

[0183] In one possible implementation, the process of the decoding device FEC decoding the second data includes: determining an FEC code block based on the second data, wherein the data size of the FEC code block is the codeword width; and performing FEC decoding on the FEC code block. If the encoding device directly uses the FEC code block as the second data, the decoding device can directly use the second data as the FEC code block to be decoded. If the encoding device obtains the second data by interleaving the FEC code block, the decoding device can perform deinterleaving on the second data based on the temporal interleaving depth and the spatial interleaving depth to obtain multiple FEC code blocks.

[0184] Optionally, the encoding device can construct a deinterleaving matrix based on the spatial interleaving depth and the temporal interleaving depth, fill the received second data into the deinterleaving matrix, first deinterleave based on the spatial interleaving depth to obtain multiple intermediate data, and then deinterleave each intermediate data based on the temporal interleaving depth to obtain multiple FEC code blocks.

[0185] Regardless of the method by which the decoding device acquires the FEC code blocks, it can perform FEC decoding on each FEC code block. If the encoding device only uses the first FEC code pattern to encode the first data, the decoding device can perform FEC decoding on each FEC code block based on the first FEC code pattern, and then concatenate the decoded data to obtain the first data. For example, the syndrome corresponding to the first FEC code pattern is determined. The syndrome is used to indicate whether there is an error during transmission and to help locate the location and magnitude of the error. It is obtained by multiplying the parity check matrix and the FEC code block. The decoding device locates the error in the FEC code block based on the syndrome. If the syndrome is equal to 0, it means that there is no error in the FEC code block. If the syndrome is not 0, it means that there is an error in the FEC code block. The encoding device locates the error location of the FEC code block, calculates the error value, performs error correction, and obtains the error-corrected FEC code block. The error-corrected FEC code block is then subjected to FEC decoding.

[0186] If the encoding device performs concatenated encoding of the first data using the first FEC code pattern and the second FEC code pattern, the decoding device can also perform decoding of the FEC code block using the second FEC code pattern to obtain the first encoding result; and perform decoding of the first encoding result using the first FEC code pattern. The decoding process is similar to the decoding process based on the first FEC code pattern in the above embodiments, and can be found in the relevant descriptions, which will not be repeated here.

[0187] Optionally, after acquiring the first data, the decoding device can also process the first data. For example, if the first data is a data stream that has been encoded and transcoded, the decoding device can also perform reverse conversion and decoding on the first data to obtain a data stream. Afterward, the decoding device continues to transmit data, for example, as shown in Figure 4, sending the data stream to the physical medium dependent (PMD) layer, where data is transmitted to the medium via MDI at the PMD layer.

[0188] In summary, the data transmission method provided in this application uses FEC encoding selected based on time interleaving depth, spatial interleaving depth, and codeword width. FEC encoding based on more dimensions offers better performance, and the post-error correction bit error rate of the entire logic layer can meet or exceed the indicators defined by existing Ethernet standards. Furthermore, FEC encoding based on more dimensions has higher adaptability; Table 3 shows an adaptation comparison provided in this application's embodiments.

[0189] Table 3

[0190] Among them, RS(544, 514, 15, 10) is an FEC code pattern selected based on only two dimensions (spatial interleaving depth and codeword width) in related technologies, while RS(272, 258, 7, 9) and RS(544, 514, 15, 12) are FEC code patterns selected based on three dimensions provided in the embodiments of this application. Next, taking RS(544, 514, 15, 12) and RS(544, 514, 15, 10) as examples, it can be seen from Table 2 that RS(544, 514, 15, 12) supports more PAMn modes, more multi-lane architectures, and has better versatility than RS(544, 514, 15, 10).

[0191] Furthermore, it improves error correction performance to handle sudden errors during transmission. Also, since the amount of data in the second data obtained through FEC encoding is an integer multiple of the number of channels, the second data obtained through FEC encoding can be evenly distributed across all channels, resulting in good load performance. It is applicable to various PAM encoding methods, has high versatility, and by concatenating BCH or Hamming codes, it can further protect the data quality on the channels, ensuring high transmission reliability.

[0192] Next, referring to Figure 11, we will illustrate the process of the PCS layer and PMA layer interacting to execute the data transmission method.

[0193] The MAC layer sends a data stream and a clock signal to the PCS layer. The data stream corresponds to TXD<63:0> in Figure 11 and has a data size of 64 bits. The clock signal corresponds to TXC<7:0> in Figure 11 and has a data size of 8 bits. The encoding device receives the data stream based on the clock signal and adjusts the transmission rate of the data stream to achieve encoding and rate matching. The process of adjusting the rate corresponds to the 64 / 66 encoding in the above embodiment.

[0194] After performing 64 / 66 encoding on the data stream, the transmitting end obtains multiple 66-bit blocks. These 66-bit blocks are then distributed to obtain multiple 256-bit blocks, each corresponding to a stream; for example, stream 0 is the first 256-bit block, and stream 1 is the second. For any given 256-bit block, the transmitting end first performs 256B / 257B transcoding at the PCS layer to obtain a 257-bit block. This 257-bit block is then scrambled to avoid long strings of 0s or 1s, reducing electromagnetic interference and making synchronization easier for the receiving end. The transmitting end then performs alignment insertion on the scrambled 257-bit block, inserting an auxiliary bit to achieve alignment. This aligned bit block can be understood as the first data. Finally, the transmitting end performs pre-FEC distribution on the first data. This distribution process corresponds to the data distribution to the FEC encoder described in the previous embodiment and will not be repeated here.

[0195] The transmitting end performs FEC encoding on the allocated data to obtain multiple FEC code blocks. These FEC code blocks are interleaved to obtain the second data, which is then distributed. The second data is divided into multiple x bits, which are sent to the PMA layer. PAM encoding is performed at the PMA layer to encode the x bits, resulting in PAM-encoded data. This PAM-encoded data is then sent from the transmitting end's PMA layer to the receiving end's PMA layer. The receiving end performs PAM decoding on the PAM-encoded data to obtain multiple x bits, which are then sent to the receiving end's PCS layer. The PCS layer first performs alignment locking and channel correction on the x bits to reduce the impact of data misalignment and delay differences in multi-channel transmission. Finally, it performs lane reordering on the adjusted x bits to obtain the second data.

[0196] Corresponding to the synchronous processing of two streams at the transmitting end, the receiving end also processes two streams synchronously, which can be understood as two second data streams. The receiving end performs de-interleaving on the second data to obtain multiple FEC code blocks. It then performs FEC decoding on each FEC code block, performs post-FEC interleaving on the decoded data, and obtains the first data. It then performs alignment removal on the first data to remove the auxiliary bits inserted in the first data, obtaining a scrambled 257-bit block. This bit block is then descrambled to obtain another 257-bit block. Finally, the receiving end performs reverse transcoding on the 257-bit block to obtain a 256-bit block.

[0197] After acquiring multiple 256-bit blocks, the receiving end can collect them according to the distribution granularity of the sending end to obtain multiple 66-bit blocks. Then, it performs 66 / 64 decoding on these 66-bit blocks to achieve decoding and rate matching. After decoding and obtaining multiple 64-bit blocks, the receiving end sends these 64-bit blocks as a data stream along with the clock signal to the MAC layer.

[0198] The data transmission method of this application embodiment has been described above. Corresponding to the above method, this application embodiment also provides a data transmission device. Figure 12 is a schematic diagram of the structure of a data transmission device provided in this application embodiment. Based on the following multiple modules shown in Figure 12, the data transmission device shown in Figure 12 can perform all or part of the operations of the encoding device shown in Figure 3 above. It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown, and this application embodiment does not limit this. As shown in Figure 12, the device includes:

[0199] The acquisition module 1201 is used to acquire first data, which is data sent to multiple channels;

[0200] The encoding module 1202 is used to perform forward error correction (FEC) encoding on the first data to obtain the second data. The amount of the second data is an integer multiple of the number of channels of the multiple channels. The amount of the second data is determined by the time interleaving depth, the spatial interleaving depth and the codeword width corresponding to the FEC encoding.

[0201] The sending module 1203 is used to send second data to multiple channels.

[0202] In one possible implementation, the encoding module 1202 is used to perform FEC encoding on the first data to obtain multiple FEC code blocks, the data size of the FEC code blocks being the codeword width; and to perform interleaving processing on the multiple FEC code blocks based on the time interleaving depth and the spatial interleaving depth to obtain the second data.

[0203] In one possible implementation, the amount of the second data is determined based on the product of the temporal interleaving depth, the spatial interleaving depth, and the codeword width.

[0204] In one possible implementation, the encoding module 1202 is used to encode the first data using a first FEC code pattern to obtain a first encoding result; and to encode the first encoding result using a second FEC code pattern.

[0205] In one possible implementation, the codeword width corresponding to the first FEC code pattern is an integer multiple of the information bit length corresponding to the second FEC code pattern.

[0206] In one possible implementation, the first FEC code type includes RS code, and the second FEC code type includes BCH code or Hamming code.

[0207] In one possible implementation, the first data is obtained based on multiple transcoded data blocks, each containing multiple binary data. The length of the valid information bits corresponding to the FEC encoding is an integer multiple of the number of binary data in the transcoded data block, and the length of the valid information bits indicates the number of binary data in the first data.

[0208] In one possible implementation, the sending module 1203 is used to perform PAM encoding on each x bits in the second data to obtain multiple PAM encoded data, where x is a positive integer and the amount of the second data is an integer multiple of x; the multiple PAM encoded data are sent to multiple channels, and one channel is used to transmit at least one PAM encoded data.

[0209] In one possible implementation, PAM encoding includes PAM6 encoding or PAM8 encoding.

[0210] In one possible implementation, PAM6 encoding is used to encode 18 bits into 7 hexadecimal symbols; or, PAM6 encoding is used to encode 5 bits into 2 hexadecimal symbols; or, PAM8 encoding is used to encode 3 bits into 1 octal symbol.

[0211] In one possible implementation, the interface rate corresponding to FEC encoding is an integer multiple of the original clock frequency corresponding to the first data, and the interface rate corresponding to FEC encoding is determined based on the information bit length and codeword width corresponding to FEC encoding.

[0212] In one possible implementation, the first FEC code pattern in the FEC encoding includes RS(544, 514, 15, 12), RS(544, 514, 15, 18), RS(560, 514, 23, 10), RS(560, 514, 23, 12), RS(560, 514, 23, 18) or RS(272, 258, 23, 10).

[0213] The second data is obtained by performing FEC encoding on the first data. The amount of the second data is related to the FEC encoding pattern. The FEC pattern is selected based on the time interleaving depth, spatial interleaving depth, and codeword width. FEC patterns selected based on more dimensions have higher adaptability; for example, they can adapt to interleaving in at least one of the time or spatial dimensions. Furthermore, FEC patterns selected based on more dimensions offer better error correction performance in case of sudden errors during transmission of the second data. Since the amount of the second data is divisible by the number of channels, the second data obtained through FEC encoding can be evenly distributed across the channels, resulting in good load performance.

[0214] This application also provides another data transmission device. Figure 13 is a schematic diagram of the structure of a data transmission device provided in this application embodiment. Based on the following modules shown in Figure 13, the data transmission device shown in Figure 13 can perform all or part of the operations of the decoding device shown in Figure 3. It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown, and this application embodiment does not limit this. As shown in Figure 13, the device includes:

[0215] The acquisition module 1301 is used to acquire second data, which is data sent to multiple channels. The amount of second data is an integer multiple of the number of channels. The amount of second data is determined by the time interleaving depth, the spatial interleaving depth, and the codeword width corresponding to FEC encoding.

[0216] The decoding module 1302 is used to perform FEC decoding on the second data to obtain the first data corresponding to the second data.

[0217] In one possible implementation, the acquisition module 1301 is used to acquire multiple PAM encoded data sent through multiple channels, one channel being used to transmit at least one PAM encoded data; to perform PAM decoding on the PAM encoded data to obtain x bits corresponding to the PAM encoded data; and to acquire second data based on the x bits corresponding to the multiple PAM encoded data, where x is a positive integer and the amount of the second data is an integer multiple of x.

[0218] In one possible implementation, the decoding module 1302 is used to determine the FEC code block based on the second data, wherein the data size of the FEC code block is the codeword width; and to perform FEC decoding on the FEC code block.

[0219] In one possible implementation, the decoding module 1302 is used to perform deinterleaving on the second data based on the temporal interleaving depth and the spatial interleaving depth to obtain multiple FEC code blocks.

[0220] In one possible implementation, the decoding module 1302 is used to decode the FEC code block using the second FEC code pattern to obtain the first encoding result; and to decode the first encoding result using the first FEC code pattern.

[0221] The second data is obtained by performing FEC encoding on the first data. The amount of the second data is related to the FEC encoding pattern. FEC patterns selected based on temporal interleaving depth, spatial interleaving depth, and codeword width have higher adaptability; for example, they can adapt to interleaving in at least one of the temporal or spatial dimensions. Furthermore, even if a sudden error occurs in the acquired second data, the error correction performance of the FEC pattern selected based on more dimensions is better. Error correction of the second data can be achieved through FEC decoding, resulting in higher accuracy of the decoded first data.

[0222] It should be understood that the devices provided in Figures 12 or 13 are only illustrated by the division of the functional modules described above. In practical applications, the functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the devices and methods provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiments, which will not be repeated here. In addition, the devices provided in Figures 13 or 14 can be chips or communication devices; for example, the data transmission device can be the network device described below.

[0223] Referring to Figure 14, Figure 14 shows a schematic diagram of the structure of a network device 1900 provided in an exemplary embodiment of this application. The network device 1900 shown in Figure 14 can be an encoding device to perform the operations involved in the data transmission method shown in Figure 3, or it can be a decoding device to perform the operations involved in the data transmission method shown in Figure 3. The network device 1900 is, for example, a switch, a router, etc., and the network device 1900 can be implemented by a general bus architecture.

[0224] As shown in Figure 14, the network device 1900 includes at least one processor 1901, a memory 1903, and at least one communication interface 1904.

[0225] Processor 1901 may be, for example, a general-purpose central processing unit (CPU), a digital signal processor (DSP), a network processor (NP), a graphics processing unit (GPU), a neural-network processing unit (NPU), a data processing unit (DPU), a microprocessor, or one or more integrated circuits for implementing the embodiments of this application. For example, processor 1901 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. A PLD may be, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), generic array logic (GAL), or any combination thereof. It can implement or execute the various logic blocks, modules, and circuits described in connection with the embodiments of this application. A processor may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0226] Optionally, network device 1900 also includes a bus. The bus is used to transfer information between the components of network device 1900. The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, only one thick line is used in Figure 14, but this does not indicate that there is only one bus or one type of bus.

[0227] Memory 1903 may be, for example, read-only memory (ROM) or other types of static storage devices capable of storing static information and instructions; random access memory (RAM) or other types of dynamic storage devices capable of storing information and instructions; electrically erasable programmable read-only memory (EEPROM); compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, Blu-ray discs, etc.); magnetic disk storage media or other magnetic storage devices; or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. Memory 1903 may exist independently and be connected to processor 1901 via a bus. Memory 1903 may also be integrated with processor 1901.

[0228] Communication interface 1904 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), or Wireless Local Area Network (WLAN). Communication interface 1904 can include wired and wireless communication interfaces. Specifically, communication interface 1904 can be an Ethernet interface, a Fast Ethernet (FE) interface, a Gigabit Ethernet (GE) interface, an Asynchronous Transfer Mode (ATM) interface, a WLAN interface, a cellular network communication interface, or a combination thereof. The Ethernet interface can be an optical interface, an electrical interface, or a combination thereof. In this embodiment, communication interface 1904 can be used by network device 1900 to communicate with other devices.

[0229] In a specific implementation, as one embodiment, processor 1901 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG14. Each of these processors may be a single-core processor or a multi-core processor. Here, processor may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0230] In a specific implementation, as one embodiment, network device 1900 may include multiple processors, such as processor 1901 and processor 1905 as shown in FIG14. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). Here, a processor may refer to one or more devices, circuits, and / or processing cores used to process data (such as computer program instructions).

[0231] In a specific implementation, as one example, network device 1900 may further include output devices and input devices. The output device communicates with processor 1901 and can display information in various ways. For example, the output device may be a liquid crystal display (LCD), a light-emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector, etc. The input device communicates with processor 1901 and can receive user input in various ways. For example, the input device may be a mouse, keyboard, touchscreen device, or sensing device, etc.

[0232] In some embodiments, memory 1903 stores program code 1910 for executing the solution of this application, and processor 1901 can execute the program code 1910 stored in memory 1903. That is, network device 1900 can implement the data transmission method provided in the method embodiment through processor 1901 and program code 1910 in memory 1903. Program code 1910 may include one or more software modules. Optionally, processor 1901 itself may also store program code or instructions for executing the solution of this application.

[0233] In specific embodiments, the network device 1900 of this application embodiment may correspond to the encoding device or decoding device in the above-described method embodiments.

[0234] In the data transmission method shown in Figure 3, each step is completed through integrated logic circuits in the hardware or software instructions of the processor in the network device 1900. The steps of the method disclosed in this application can be directly implemented by the hardware processor, or by a combination of hardware and software modules in the processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. Since the storage medium is located in memory, the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method; to avoid repetition, these will not be described in detail here.

[0235] Referring to Figure 15, which illustrates a schematic diagram of a network device 2000 provided in another exemplary embodiment of this application, the network device 2000 shown in Figure 15 can perform all or part of the operations involved in the data transmission method shown in Figure 3 as an encoding device, or it can perform all or part of the operations involved in the data transmission method shown in Figure 3 as a decoding device. This network device 2000 is, for example, a switch, a router, etc., and can be implemented using a general bus architecture.

[0236] As shown in Figure 15, the network device 2000 includes: a main control board 2010 and an interface board 2030.

[0237] The main control board, also known as the main processing unit (MPU) or route processor card, is used to control and manage the various components in the network device 2000, including routing calculation, device management, device maintenance, and protocol processing functions. The main control board 2010 includes a central processing unit 2011 and a memory 2012.

[0238] Interface board 2030, also known as line processing unit (LPU), line card, or service board, provides various service interfaces and enables packet forwarding. Service interfaces include, but are not limited to, Ethernet interfaces, POS (Packet over SONET / SDH) interfaces, etc., with Ethernet interfaces including, for example, Flexible Ethernet Clients (FlexE Clients). Interface board 2030 includes: a central processing unit 2031, a network processor 2032, a forwarding table entry memory 2034, and a physical interface card (PIC) 2033.

[0239] The central processing unit 2031 on the interface board 2030 is used to control and manage the interface board 2030 and communicate with the central processing unit 2011 on the main control board 2010.

[0240] The network processor 2032 is used to implement packet forwarding processing. The network processor 2032 can be in the form of a forwarding chip. The forwarding chip can be a network processor (NP). In some embodiments, the forwarding chip can be implemented using an application-specific integrated circuit (ASIC) or a field-programmable gate array (FPGA). Specifically, the network processor 2032 forwards received packets based on the forwarding table stored in the forwarding table entry memory 2034. If the destination address of the packet is the address of the network device 2000, the packet is sent to the CPU (such as the central processing unit 2031) for processing; if the destination address of the packet is not the address of the network device 2000, the next hop and outgoing interface corresponding to the destination address are looked up in the forwarding table according to the destination address, and the packet is forwarded to the outgoing interface corresponding to the destination address. Uplink packet processing may include: packet ingress interface processing, forwarding table lookup; downlink packet processing may include: forwarding table lookup, etc. In some embodiments, the central processing unit can also perform the functions of the forwarding chip, such as implementing software forwarding based on a general-purpose CPU, thus eliminating the need for a forwarding chip on the interface board.

[0241] The physical interface card 2033 is used to implement physical layer interfacing functions. Raw traffic enters the interface board 2030 through this card, and processed packets are sent out from the physical interface card 2033. The physical interface card 2033, also known as a daughter card, can be installed on the interface board 2030. It is responsible for converting photoelectric signals into packets, performing validity checks on the packets, and forwarding them to the network processor 2032 for processing. In some embodiments, the central processing unit 2031 can also perform the functions of the network processor 2032, such as implementing software forwarding based on a general-purpose CPU, thus eliminating the need for the network processor 2032 in the physical interface card 2033.

[0242] Optionally, the network device 2000 includes multiple interface boards. For example, the network device 2000 also includes an interface board 2040, which includes a central processing unit 2041, a network processor 2042, a forwarding table entry memory 2044, and a physical interface card 2043. The functions and implementation methods of the components in the interface board 2040 are the same as or similar to those in the interface board 2030, and will not be described in detail here.

[0243] Optionally, the network device 2000 also includes a switching fabric board 2020. The switching fabric board 2020 can also be called a switch fabric unit (SFU). When the network device 2000 has multiple interface boards, the switching fabric board 2020 is used to complete data exchange between the interface boards. For example, interface boards 2030 and 2040 can communicate through the switching fabric board 2020.

[0244] The main control board 2010 and the interface boards are coupled. For example, the main control board 2010, interface boards 2030 and 2040, and the switching network board 2020 communicate with each other via a system bus connected to the system backplane. In one possible implementation, an inter-process communication (IPC) channel is established between the main control board 2010 and interface boards 2030 and 2040, and communication between the main control board 2010 and interface boards 2030 and 2040 is achieved through the IPC channel.

[0245] Logically, network device 2000 includes a control plane and a forwarding plane. The control plane includes a main control board 2010 and a central processing unit 2011, while the forwarding plane includes various components that perform forwarding, such as a forwarding table entry memory 2034, a physical interface card 2033, and a network processor 2032. The control plane performs functions such as router operation, generating forwarding tables, processing signaling and protocol messages, and configuring and maintaining the status of network devices. The control plane distributes the generated forwarding tables to the forwarding plane. In the forwarding plane, the network processor 2032 forwards messages received by the physical interface card 2033 based on the forwarding tables distributed by the control plane. The forwarding tables distributed by the control plane can be stored in the forwarding table entry memory 2034. In some embodiments, the control plane and the forwarding plane can be completely separated and not on the same network device.

[0246] It's worth noting that a network device may have one or more main control boards, including a primary and a backup main control board. It may also have one or more interface boards; the more powerful the network device's data processing capabilities, the more interface boards it provides. Each interface board may also have one or more physical interface cards. A switching board may or may not exist; multiple boards can share the load and provide redundancy. In a centralized forwarding architecture, the network device may not need a switching board, as the interface boards handle the entire system's business data processing. In a distributed forwarding architecture, the network device can have at least one switching board, which enables data exchange between multiple interface boards, providing high-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of a distributed architecture network device are greater than those of a centralized architecture network device. Alternatively, the network device can also be a single board, without a switching board. The functions of the interface board and the main control board are integrated on this one board. In this case, the central processing unit (CPU) on the interface board and the CPU on the main control board can be combined into a single CPU to perform the combined functions. This type of network device has lower data exchange and processing capabilities (e.g., low-end switches or routers). The specific architecture adopted depends on the specific network deployment scenario, and no restrictions are imposed here.

[0247] In a specific embodiment, network device 2000 corresponds to the data transmission device shown in FIG12 or FIG13. In some embodiments, the encoding module 1202 in the data transmission device shown in FIG12 is equivalent to the central processing unit 2011 or network processor 2032 in network device 2000.

[0248] This application embodiment also provides a communication device, which includes a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other via an internal connection path. The memory stores instructions, and the processor executes the instructions stored in the memory to control the transceiver to receive and transmit signals. When the processor executes the instructions stored in the memory, it causes the processor to perform the data transmission method shown in Figure 3.

[0249] It should be understood that the aforementioned processor can be a CPU, or other general-purpose processors, DSPs, ASICs, FPGAs, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. General-purpose processors can be microprocessors or any conventional processor. It is worth noting that the processor can be a processor supporting the Advanced Reduced Instruction Set Computing (RISC) machine (ARM) architecture.

[0250] Furthermore, in an alternative embodiment, the memory described above may include read-only memory and random access memory, and provide instructions and data to the processor. The memory may also include non-volatile random access memory. For example, the memory may also store device type information.

[0251] The memory can be volatile or non-volatile, or may include both. Non-volatile memory can be ROM, programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), EEPROM, or flash memory. Volatile memory can be RAM, used as an external cache. Many forms of RAM are available by way of example, but not limitation. Examples include static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0252] This application also provides a data transmission device, which includes a processor coupled to a memory. The memory stores at least one instruction, and the processor loads and executes the at least one instruction to enable the data transmission device to implement the data transmission method shown in FIG3. Optionally, the device further includes a memory.

[0253] This application also provides a computer-readable storage medium storing at least one instruction, which is loaded and executed by a processor to enable the computer to implement the data transmission method shown in FIG3.

[0254] This application also provides a computer program (product) that, when executed by a computer, causes the processor or computer to perform the corresponding steps and / or processes in the above method embodiments.

[0255] This application embodiment also provides a data transmission system, which includes an encoding device and a decoding device. The encoding device is used to perform the operations involved in the encoding device in the data transmission method shown in FIG3, and the decoding device is used to perform the operations involved in the decoding device in the data transmission method shown in FIG3.

[0256] In some cases, the aforementioned communication devices and data transmission devices can be chips.

[0257] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk).

[0258] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the first data involved in this application were obtained with full authorization.

[0259] Those skilled in the art will recognize that the method steps and modules described in conjunction with the embodiments disclosed herein can be implemented in software, hardware, firmware, or any combination thereof. To clearly illustrate the interchangeability of hardware and software, the steps and components of each embodiment have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0260] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0261] When implemented using software, it can be implemented wholly or partially as a computer program product. This computer program product includes one or more computer program instructions. As an example, the methods of this application embodiment can be described in the context of machine-executable instructions, such as program modules that execute on a device on a real or virtual processor of the target. Generally, program modules include routines, programs, libraries, objects, classes, components, data structures, etc., which perform specific tasks or implement specific abstract data structures. In various embodiments, the functionality of program modules can be combined or divided among the described program modules. The machine-executable instructions for the program modules can execute within a local or distributed device. In a distributed device, the program modules can reside on both local and remote storage media.

[0262] Computer program code used to implement the methods of the embodiments of this application may be written in one or more programming languages. This computer program code may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data transmission apparatus, such that when executed by the computer or other programmable data transmission apparatus, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a computer, partially on a computer, as a standalone software package, partially on a computer and partially on a remote computer, or entirely on a remote computer or server.

[0263] In the context of the embodiments of this application, computer program code or related data may be carried by any suitable carrier to enable a device, apparatus, or processor to perform the various processes and operations described above. Examples of carriers include signals, computer-readable media, etc.

[0264] Examples of signals may include electrical, optical, radio, sound, or other forms of propagation signals, such as carrier waves, infrared signals, etc.

[0265] A machine-readable medium can be any tangible medium that contains or stores programs for or relating to an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. More detailed examples of machine-readable storage media include electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0266] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and modules described above can be found in the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0267] In the embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the couplings or direct couplings or communication connections shown or discussed may be indirect couplings or communication connections through some interfaces, devices, or modules, or they may be electrical, mechanical, or other forms of connection.

[0268] The modules described as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of the embodiments of this application, depending on actual needs.

[0269] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0270] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0271] In this application, the terms "first," "second," etc., are used to distinguish identical or similar items that have substantially the same function and purpose. It should be understood that there is no logical or temporal dependency between "first," "second," and "nth," nor does it limit the quantity or order of execution. It should also be understood that although the following description uses the terms "first," "second," etc., to describe various elements, these elements should not be limited by the terms. These terms are merely used to distinguish one element from another. For example, without departing from the various examples described, a first image can be referred to as a second image, and similarly, a second image can be referred to as a first image. Both the first image and the second image can be images, and in some cases, they can be separate and distinct images.

[0272] It should also be understood that, in the various embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0273] In this application, the term "at least one" means one or more, and the term "multiple" means two or more. For example, multiple second messages refer to two or more second messages. The terms "system" and "network" are often used interchangeably in this document.

[0274] It should be understood that the terminology used in the description of the various examples herein is for the purpose of describing particular examples only and is not intended to be limiting. As used in the description of the various examples and the appended claims, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0275] It should also be understood that the term "and / or" as used herein refers to and covers any and all possible combinations of one or more of the associated listed items. The term "and / or" describes an association between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Additionally, the character " / " in this application generally indicates that the preceding and following related objects are in an "or" relationship.

[0276] It should also be understood that the term “comprising” (also referred to as “includes”, “including”, “comprises” and / or “comprising”) as used in this specification specifies the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0277] It should also be understood that the terms “if” and “if” can be interpreted as meaning “when” or “upon”, or “in response to determination” or “in response to detection”. Similarly, depending on the context, the phrases “if determination…” or “if detection [the stated condition or event]” can be interpreted as meaning “when determination…”, or “in response to determination…”, or “when detection [the stated condition or event]” or “in response to detection [the stated condition or event]”.

[0278] It should be understood that determining B based on A does not mean determining B solely based on A; B can also be determined based on A and / or other information.

[0279] It should also be understood that the phrases "an embodiment," "an embodiment," and "a possible implementation" used throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment or implementation is included in at least one embodiment of this application. Therefore, the phrases "in an embodiment," "an embodiment," or "a possible implementation" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments.

Claims

1. A data transmission method, characterized by, The method includes: Acquire first data, which is data sent to multiple channels; Forward error correction (FEC) coding is performed on the first data to obtain the second data. The amount of the second data is an integer multiple of the number of channels of the plurality of channels. The amount of the second data is determined by the time interleaving depth, the spatial interleaving depth and the codeword width corresponding to the FEC coding. The second data is sent to the plurality of channels.

2. The method of claim 1, wherein, The step of performing forward error correction (FEC) encoding on the first data to obtain the second data includes: FEC encoding is performed on the first data to obtain multiple FEC code blocks, wherein the data size of the FEC code block is the codeword width; Interleaving is performed on multiple FEC code blocks based on the time interleaving depth and the spatial interleaving depth to obtain the second data.

3. The method according to claim 1 or 2, characterized in that, The amount of the second data is determined based on the product of the temporal interleaving depth, the spatial interleaving depth, and the codeword width.

4. The method according to any of claims 1 to 3, characterized in that, The step of performing forward error correction (FEC) encoding on the first data includes: The first data is encoded using the first FEC code pattern to obtain the first encoding result; The first encoding result is encoded using the second FEC code pattern.

5. The method of claim 4, wherein, The codeword width corresponding to the first FEC code pattern is an integer multiple of the information bit length corresponding to the second FEC code pattern.

6. The method according to claim 4 or 5, characterized in that, The first FEC code type includes the Reed-Solomon RS code, and the second FEC code type includes the Bosch-Joherry-Hockwinheim BCH code or the Hamming code.

7. The method according to any of claims 1 to 6, characterized in that, The first data is obtained based on multiple transcoded data blocks, each data block including multiple binary data. The length of the effective information bits corresponding to the FEC encoding is an integer multiple of the number of binary data in the transcoded data block, and the length of the effective information bits indicates the number of binary data in the first data.

8. The method according to any one of claims 1 to 7, characterized in that, Sending the second data to the plurality of channels includes: Pulse Amplitude Modulation (PAM) coding is performed on each x bits of the second data to obtain multiple PAM-coded data, where x is a positive integer and the amount of the second data is an integer multiple of x. The plurality of PAM-encoded data are sent to the plurality of channels, and one channel is used to transmit at least one PAM-encoded data.

9. The method of claim 8, wherein, The PAM encoding includes PAM6 encoding or PAM8 encoding.

10. The method of claim 9, wherein, The PAM6 encoding is used to encode 18 bits into 7 hexadecimal symbols; Alternatively, the PAM6 encoding is used to encode 5 bits into 2 hexadecimal symbols; Alternatively, the PAM8 encoding is used to encode 3 bits into one octal symbol.

11. The method according to any one of claims 1 to 10, characterized in that, The interface rate corresponding to the FEC encoding is an integer multiple of the original clock frequency corresponding to the first data. The interface rate corresponding to the FEC encoding is determined based on the information bit length and codeword width corresponding to the FEC encoding.

12. The method of any one of claims 1-11, wherein, The first FEC code pattern in the FEC encoding includes RS(544, 514, 15, 12), RS(544, 514, 15, 18), RS(560, 514, 23, 10), RS(560, 514, 23, 12), RS(560, 514, 23, 18) or RS(272, 258, 23, 10).

13. A data transmission method, characterized by, The method includes: Acquire second data, which is data sent to multiple channels. The amount of the second data is an integer multiple of the number of channels. The amount of the second data is determined by the time interleaving depth, the spatial interleaving depth, and the codeword width corresponding to the forward error correction (FEC) coding. Perform FEC decoding on the second data to obtain the first data corresponding to the second data.

14. The method of claim 13, wherein, The acquisition of the second data includes: Acquire multiple pulse amplitude modulation (PAM) coded data transmitted through the multiple channels, with one channel used to transmit at least one PAM coded data; Perform PAM decoding on the PAM encoded data to obtain x bits corresponding to the PAM encoded data, and obtain the second data based on the x bits corresponding to the multiple PAM encoded data, where x is a positive integer and the amount of the second data is an integer multiple of x.

15. The method according to claim 13 or 14, characterized in that, The step of performing FEC decoding on the second data includes: Based on the second data, an FEC code block is determined, wherein the data size of the FEC code block is the codeword width; Perform FEC decoding on the FEC code block.

16. The method of claim 15, wherein, The step of determining the FEC code block based on the second data includes: Based on the time interleaving depth and the spatial interleaving depth, the second data is deinterleaved to obtain multiple FEC code blocks.

17. The method according to claim 15 or 16, characterized in that, The FEC decoding of the FEC code block includes: The FEC code block is decoded using the second FEC code pattern to obtain the first encoding result; The first encoding result is decoded using the first FEC code pattern.

18. A data transmission apparatus, characterized by comprising: The data transmission device is used to perform the data transmission method according to any one of claims 1-12.

19. A data transmission apparatus, characterized by comprising: The data transmission device is used to perform the data transmission method according to any one of claims 13-17.

20. A data transmission device, characterized by The device includes a processor configured to load and execute at least one instruction to cause the data transmission device to implement the data transmission method as described in any one of claims 1-12, or to implement the data transmission method as described in any one of claims 13-17.

21. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one instruction, which is loaded and executed by a processor to implement the data transmission method as described in any one of claims 1-12, or to implement the data transmission method as described in any one of claims 13-17.

22. A chip, characterized by The chip includes a processor for running program instructions or code that cause a device containing the chip to perform the data transmission method as described in any one of claims 1-12, or to implement the data transmission method as described in any one of claims 13-17.

23. A computer program product, characterised in that, The computer program product comprises computer programs / instructions executed by a processor to cause a computer to perform the data transmission method according to any one of claims 1-12, or implement the data transmission method according to any one of claims 13-17.

24. A data transmission system characterized by The system comprises an encoding device for performing the data transmission method according to any one of claims 1-12, and a decoding device for performing the data transmission method according to any one of claims 13-17.