Data transmission method, device, equipment, system and readable storage medium
By determining the second FEC code pattern in the first chip based on the reference clock frequency and the output rate of the FEC code pattern, and performing cascade encoding on the first data, it solves the problem of correcting errors of existing FEC codes in high-rate and long-distance data transmission. The problem of insufficient coding capabilities improves the quality and efficiency of data transmission and adapts to the needs of different channels.
Patent Information
- Application Number
- CN202311607557.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-10
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-02-10
AI Technical Summary
Existing FEC codes are difficult to effectively correct bit errors in high-speed and long-distance data transmission, resulting in a decline in data transmission quality.
By determining the second FEC pattern based on the reference clock frequency and the output rate of the FEC pattern in the first chip, the first data is cascaded encoded to generate the second data with higher coding gain, thereby in the bit error channel Make effective error corrections.
It improves the quality and efficiency of data transmission, is suitable for high-speed and long-distance data transmission scenarios, and flexibly applies cascade coding through the self-negotiation mechanism to adapt to the needs of different channels.
Smart Images

Figure CN117749323B_ABST
Abstract
Description
[0001] This application is a divisional application of the Chinese patent application with application number 202110185631.5 filed on February 10, 2021, and invention name “Data transmission method, device, equipment, system and readable storage medium”, all contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of communication technology, and in particular, to a method, apparatus, device, system and readable storage medium for data transmission. Background Art
[0003] Forward error correction (FEC) is a data encoding method that provides check bits for the transmitted data to increase the data transmission rate and transmission distance in the channel. During the data transmission process, the sender encodes the original data using a specific FEC code type and sends the encoded data to the receiver. The receiver decodes the received data using the same FEC code type to obtain the original data. Summary of the invention
[0004] The present application proposes a method, apparatus, device, system and readable storage medium for data transmission, which are used to enhance FEC code types to adapt to high-speed and / or long-distance data transmission.
[0005] In a first aspect, a method for data transmission is provided, the method comprising: a first chip acquires first data encoded using a first FEC code type; a second FEC code type is determined based on a reference clock frequency of the first chip and an output rate corresponding to the first FEC code type; then, the first chip encodes the first data according to the second FEC code type to obtain second data, and transmits the second data.
[0006] The method determines the second FEC code type based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type, and encodes the first data encoded by the first FEC code type again through the second FEC code type to obtain the second data of cascade coding, so that the second data has a higher coding gain, and when transmitted in a channel prone to bit errors, the data with bit errors can be effectively corrected, thereby improving the quality of data transmission. Secondly, since the second data is directly encoded based on the first data, the implementation process of the method is relatively simple, which improves the efficiency of data transmission.
[0007] In a possible implementation, the reference clock frequency of the first chip, the output rate corresponding to the first FEC code type, the codeword length of the second data, and the information length in the codeword of the second data satisfy an overhead ratio relationship; the determining the second FEC code type based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type includes: determining the second FEC code type according to the overhead ratio relationship based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type. By determining the second FEC code type according to the overhead ratio relationship, the overhead after encoding with the second FEC code type can be guaranteed, further improving the performance of data transmission.
[0008] In a possible implementation, the overhead ratio relationship includes:
[0009]
[0010] Among them, n is the codeword length of the second data, k is the information length in the codeword of the second data, v1 is the output rate corresponding to the first FEC code type, p is an adjustment parameter, f is the reference clock frequency of the first chip, and p is a positive integer.
[0011] In a possible implementation, the codeword length of the second data is an integer multiple of the number of logical channels when the second data is distributed. When determining the second FEC code type, by considering the integer multiple relationship, the determined second FEC code type is more suitable for the transmission scenario, thereby improving the performance of data transmission.
[0012] In a possible implementation, the first chip encodes the first data according to the second FEC code type to obtain second data, including: the first chip distributes the first data to obtain multiple first sub-data, and the first chip encodes the multiple first sub-data respectively according to the second FEC code type to obtain multiple second sub-data; the first chip transmits the second data, including: the first chip transmits the multiple second sub-data.
[0013] In a possible implementation, the first chip distributes the first data to obtain multiple first sub-data, including: the first chip distributes the first data through a physical coding sublayer PCS channel to obtain multiple first sub-data; or, the first chip distributes the first data stream through a physical medium access sublayer PMA to obtain multiple first sub-data.
[0014] In a possible implementation manner, the first chip transmits the second data, including: the first chip distributes the second data to obtain a plurality of third sub-data, and sends the plurality of third sub-data through a plurality of logical channels.
[0015] In a possible implementation, before determining the second FEC code type based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type, the method further includes: the first chip performs self-negotiation with a third chip that receives data sent by the first chip; in response to the self-negotiation result indicating that cascade coding is required, the first chip performs the determination of the second FEC code type based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type. Determining whether to perform cascade coding through self-negotiation is more applicable and more in line with actual scenario requirements.
[0016] In a possible implementation, the first data is data inside the first chip, or the first data is data sent by the second chip and received by the first chip. Since the first data can be data inside the first chip or data transmitted by other chips, the data transmission scenario in which the method is applied is relatively flexible.
[0017] In a second aspect, a method for data transmission is provided, the method comprising: a third chip receives second data, the second data is data obtained by encoding first data using a second forward error correction code FEC code type, and the first data is data encoded using a first FEC code type; the third chip decodes the second data according to the second FEC code type to obtain decoded data. Since the second data is obtained by encoding the first data using the second FEC code type, and the first data is obtained by encoding using the first FEC code type, the coding gain of the second data received by the third chip is higher, the error correction capability is higher, and by decoding the second data, the decoded data obtained is more accurate.
[0018] In a possible implementation manner, the third chip decodes the second data according to the second FEC code type, including: the third chip performs soft decision decoding on the second data according to the second FEC code type.
[0019] In a possible implementation, the third chip decodes the second data according to the second FEC code type, and after obtaining the decoded data, the method further includes: the third chip re-encodes the decoded data according to the third FEC code type, and transmits the re-encoded data. By re-encoding the decoded data according to the third FEC code type, the data transmission quality of the next link can be protected.
[0020] In a possible implementation manner, the third FEC code type is the second FEC code type.
[0021] In a third aspect, a data transmission device is provided, the device comprising:
[0022] An acquisition module, configured to acquire first data, wherein the first data is data encoded using a first forward error correction code FEC code type;
[0023] A determination module, configured to determine a second FEC code type based on a reference clock frequency of the first chip and an output rate corresponding to the first FEC code type;
[0024] an encoding module, configured to encode the first data according to the second FEC code type to obtain second data;
[0025] A transmission module, used for transmitting the second data.
[0026] In a possible implementation, the reference clock frequency of the first chip, the output rate corresponding to the first FEC code type, the codeword length of the second data, and the information length within the codeword of the second data satisfy an overhead ratio relationship; the determination module is used to determine the second FEC code type according to the overhead ratio relationship based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type.
[0027] In a possible implementation, the overhead ratio relationship includes:
[0028]
[0029] Among them, n is the codeword length of the second data, k is the information length in the codeword of the second data, v1 is the output rate corresponding to the first FEC code type, p is an adjustment parameter, f is the reference clock frequency of the first chip, and p is a positive integer.
[0030] In a possible implementation manner, the codeword length of the second data is an integer multiple of the number of logical channels when the second data is distributed.
[0031] In a possible implementation, the encoding module is used to distribute the first data to obtain multiple first sub-data, and encode the multiple first sub-data according to the second FEC code type to obtain multiple second sub-data; the transmission module is used to transmit the multiple second sub-data.
[0032] In a possible implementation, the encoding module is used to distribute the first data through a physical coding sublayer PCS channel to obtain multiple first sub-data; or distribute the first data stream through a physical medium access sublayer PMA to obtain multiple first sub-data.
[0033] In a possible implementation, the transmission module is configured to distribute the second data to obtain a plurality of third sub-data, and send the plurality of third sub-data through a plurality of logical channels.
[0034] In one possible implementation, the device also includes: a self-negotiation module, used to perform self-negotiation with a third chip that receives data sent by the first chip; in response to the self-negotiation result indicating that cascade coding is required, the determination module executes the determination of the second FEC code type based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type.
[0035] In a possible implementation manner, the first data is data inside the first chip, or the first data is data sent by the second chip and received by the first chip.
[0036] In a fourth aspect, a data transmission device is provided, the device comprising:
[0037] A receiving module, configured to receive second data, wherein the second data is data obtained by encoding the first data using a second forward error correction code FEC code type, and the first data is data encoded using a first FEC code type;
[0038] A decoding module is used to decode the second data according to the second FEC code type to obtain decoded data.
[0039] In a possible implementation, the decoding module is used to perform soft decision decoding on the second data according to the second FEC code type to obtain decoded data.
[0040] In a possible implementation manner, the device further includes: an encoding module, configured to re-encode the decoded data according to a third FEC code type; and a transmission module, configured to transmit the re-encoded data.
[0041] In a possible implementation manner, the third FEC code type is the second FEC code type.
[0042] In a fifth aspect, a device for data transmission is provided, the device comprising: a processor, the processor being coupled to a memory, the memory storing at least one program instruction or code, the at least one program instruction or code being loaded and executed by the processor, so that the device implements a method for data transmission as described in any one of the first aspect or the second aspect.
[0043] In a sixth aspect, a system for data transmission is provided, the system comprising: a first data transmission device for executing the first aspect or any method described in the first aspect, and a second data transmission device for executing the second aspect or any method described in the second aspect.
[0044] In the seventh aspect, a computer-readable storage medium is provided, which stores at least one program instruction or code. When the program instruction or code is loaded and executed by a processor, the computer implements the method for data transmission as described in any one of the first aspect or the second aspect.
[0045] Another communication device is provided, the device comprising: a communication interface, a memory and a processor. The memory and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the communication interface to receive data and control the communication interface to send data, and when the processor executes the instructions stored in the memory, the processor executes the method in the first aspect or any possible implementation of the first aspect, or executes the method in the second aspect or any possible implementation of the second aspect.
[0046] As an exemplary embodiment, the number of the processors is one or more, and the number of the memories is one or more.
[0047] As an exemplary embodiment, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
[0048] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips respectively. The embodiments of the present application do not limit the type of memory and the setting method of the memory and the processor.
[0049] A computer program (product) is provided, the computer program (product) comprising: a computer program code, when the computer program code is executed by a computer, the computer is enabled to execute the methods in the above aspects.
[0050] A chip is provided, comprising a processor, for calling and executing instructions stored in a memory from the memory, so that a device equipped with the chip executes the methods in the above aspects.
[0051] 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, the processor is used to execute the code in the memory, and when the code is executed, the processor is used to execute the methods in the above aspects.
[0052] A device is provided, comprising a chip as described in any one of the above solutions.
[0053] A device is provided, comprising the first chip described in any one of the above solutions, and / or the third chip described in any one of the above solutions. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 It is a schematic diagram of an implementation scenario of a data transmission method provided in an embodiment of the present application;
[0055] Figure 2 This is a flow chart of a method for data transmission provided by an embodiment of the present application;
[0056] Figure 3 is a schematic diagram of encoding first data according to a second FEC code type provided by an embodiment of the present application;
[0057] Figure 4 is a schematic diagram of distributing first data provided by an embodiment of the present application;
[0058] Figure 5 is a schematic diagram of distributing first data through a PCS channel provided by an embodiment of the present application;
[0059] Figure 6 is a schematic diagram of distributing second data provided by an embodiment of the present application;
[0060] Figure 7 is another schematic diagram of distributing second data provided by an embodiment of the present application;
[0061] Figure 8 is a schematic diagram of an implementation scenario of another method for data transmission provided in an embodiment of the present application;
[0062] Fig. 9 It is a structural schematic diagram of a data transmission device provided in an embodiment of the present application;
[0063] Fig.10 is a schematic diagram of the structure of another data transmission device provided in an embodiment of the present application;
[0064] Fig.11 It is a structural diagram of a data transmission device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0065] The terms used in the implementation mode of the present application are only used to explain the embodiments of the present application, and are not intended to limit the present application. The embodiments of the present invention are described below in conjunction with the accompanying drawings.
[0066] In the field of communication technology, encoding data using FEC is an important technical means to reduce the bit error rate during data transmission and thus improve the quality of data transmission. For scenarios where the link rate is increased and the channel is more challenging, FEC with higher coding gain may be required. For example, for 800 Gigabit Ethernet (GE) / 1.6 Terabit Ethernet (TE) Ethernet interfaces, or 200G fourth-generation pulse amplitude modulation (PAM4) optical links, higher-speed transmission often faces more stringent channel and bit error rate requirements, and stronger FEC can keep the bit error rate after correction at a good level after the bit error rate before correction increases. In this regard, an embodiment of the present application provides a method for data transmission, which determines a second FEC code type based on a reference clock frequency (reference clock frequency) of a first chip transmitting data and an output rate corresponding to a first FEC code type, and encodes the first data encoded by the first FEC code type again through the second FEC code type to obtain a second data of cascade coding, so that the second data has a higher coding gain, and when transmitted in a channel prone to code errors, the data with code errors can be effectively corrected, thereby improving the quality of data transmission. Secondly, since the second data is the data directly encoded on the basis of the first data, the implementation process of the method is relatively simple, and the efficiency of data transmission is improved. In addition, the process of cascade coding can be executed under certain trigger conditions. For example, the method performs self-negotiation between chips, and according to the result of the self-negotiation, indicates that cascade coding is required, and performs a process of determining the second FEC code based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type, so that the chips can actively determine whether cascade coding is required, and the encoding of data transmitted in different channels is more flexible.
[0067] The method of the embodiment of the present application can be applied to the current Ethernet interface or other scenarios where data needs to be transmitted. Figure 1 Taking the implementation scenario shown in the figure as an example, the implementation scenario includes multiple chips, and each chip can exchange information to achieve data transmission. Figure 1As shown, data can be transmitted between the first chip 101 and the second chip 102, and between the first chip 101 and the third chip 103. Figure 1 The implementation scenario shown may include N chips, where N is a positive integer greater than or equal to 2. Figure 1 In the description, only 3 chips are used as an example.
[0068] Combination Figure 1 In the implementation scenario shown, the data transmission method provided by the embodiment of the present application is as follows Figure 2 As shown, including but not limited to steps 201 to 206.
[0069] Step 201: A first chip obtains first data, where the first data is data encoded using a first FEC code type.
[0070] In a possible implementation, the first data is data inside the first chip, or data sent by the second chip and received by the first chip. Exemplarily, the first chip encodes the original data using the first FEC code type to obtain the first data, or the second chip encodes the original data using the first FEC code type to obtain the encoded data, the second chip scrambles the encoded data to form the first data, and the first chip receives the first data sent by the second chip. Exemplarily, the second chip sends the first data to the first chip through a physical channel. Regardless of whether the first data is data inside the first chip or data sent by the second chip, the first data may be processed by other means in addition to the first FEC encoding. For example, the first data is data sent to the first chip by the second chip after passing through the physical medium attachment sublayer (PMA) and / or the physical media dependent interface (PMD), or it may be data after passing through the PMA and / or the physical coding sublayer (PCS) inside the first chip. In addition, the first data may also be data that has been processed in other ways, for example, the first data is data obtained after being interleaved and distributed.
[0071] The embodiment of the present application does not limit the first FEC code type. In a possible implementation, the first FEC code type is any one of a Reed-Solomon (RS) code, a Bose-Chaudhuri-Hocquenghem (BCH) code, a Fire code, a turbo code, a turbo product code (TPC), a staircase code, and a low-density parity-check (LDPC) code.
[0072] In addition, after receiving the first data, the first chip can directly transmit the first data. In order to improve the quality of data transmission, the first data can also be re-encoded. The embodiment of the present application does not limit the triggering method of the first chip to perform cascade coding. In one possible implementation, the first chip performs self-negotiation with the third chip that receives the data sent by the first chip; in response to the self-negotiation result indicating that cascade coding is required, the first chip determines the second FEC code type based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type. The self-negotiation process can be performed after receiving the first data, or before executing the method. The embodiment of the present application does not limit the timing of self-negotiation, and self-negotiation can be performed before transmitting the first data.
[0073] Step 202: Determine a second FEC code type based on a reference clock frequency of the first chip and an output rate corresponding to the first FEC code type.
[0074] In a possible implementation, the reference clock frequency of the first chip, the output rate corresponding to the first FEC code type, the codeword length of the second data, and the information length in the codeword of the second data satisfy an overhead ratio relationship; determining the second FEC code type based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type includes: determining the second FEC code type according to the overhead ratio relationship based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type. By determining the second FEC code type according to the overhead ratio relationship, the overhead after encoding with the second FEC code type can be guaranteed, and the performance of data transmission is further improved.
[0075] In a possible implementation, the overhead ratio relationship includes:
[0076]
[0077] Among them, n is the codeword length of the second data, k is the information length in the codeword of the second data, v1 is the output rate corresponding to the first FEC code type, p is the adjustment parameter, f is the reference clock frequency of the first chip, and p is a positive integer.
[0078] It should be noted that there are different combinations of n, k, and p as long as they satisfy the above overhead ratio relationship. Exemplarily, the adjustment parameter is a reference value, for example, the adjustment parameter is an integer multiple of 10 or an integer multiple of 20; based on the reference value, a second FEC code type that satisfies the overhead ratio relationship is determined.
[0079] For example, the first FEC code type is RS (544, 514), the reference clock frequency of the first chip is 156.25 MHz, and the output rate corresponding to the first FEC code type is 106.25 Gbps. For example, when p=705, n=282, k=272; when p=720, n=144, k=136, or n=180, k=170. For another example, if the adjustment parameter is 720, n=144, k=136, or n=180, k=170.
[0080] In a possible implementation, when determining the second FEC code type according to the overhead ratio relationship, the second FEC code type may be determined with reference to Table 1, wherein the code types in Table 1 are all BCH codes.
[0081] Table 1
[0082]
[0083]
[0084] In the above table 1, n is the codeword length, k is the information length in the codeword, and m indicates that the finite field or Galois Field in which the code is located is GF(2 m ), t is the error correction capability. For example, BCH (180, 170, m = 10, t = 1) indicates that the codeword length of the BCH code type is 180 bits (bit), including 0 extended bits (extended bit) in the length, the information length in the codeword is 170 bits, m = 10, and the error correction capability is 1; eBCH (161 + 1, 153, m = 8, t = 1) indicates that the BCH code type is a BCH code type including extended bits, the codeword length is 162 bits, including 1 extended bit in the length, m = 8, and the error correction capability is 1. The other BCH code types in Table 1 are the same as the above BCH code types, and will not be repeated here.
[0085] In a possible implementation, the codeword length of the second data is an integer multiple of the number of logical channels when the second data is distributed. The logical channel may be a PCS channel or an FEC channel. When determining the second FEC code type, by considering the integer multiple relationship, the determined second FEC code type is more suitable for the transmission scenario, thereby improving the performance of data transmission. Exemplarily, when the number of logical channels when the second data is distributed is 8, the codeword length of the second data is an integer multiple of 8. Of course, the number of logical channels may also be 1, that is, the second data is transmitted through 1 logical channel. Since the codeword length of the second data is a positive integer, the codeword length of the second data is also an integer multiple of the number of logical channels distributed.
[0086] In summary, the manner of determining the second FEC code type based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type includes but is not limited to the following three manners.
[0087] Method 1: The first chip first determines a first set according to an overhead ratio relationship based on a reference clock frequency of the first chip and an output rate corresponding to a first FEC code type, wherein the first set includes multiple FEC code types that satisfy the overhead ratio relationship; and then determines a second FEC code type from the first set according to a relationship in which the code word length is an integer multiple of a logical channel during distribution.
[0088] Method 2: The first chip first determines a second set according to the integer multiple relationship between the codeword length and the logical channel during distribution, and the second set includes multiple FEC code types that satisfy the integer multiple relationship; then based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type, the second FEC code type is determined from the second set according to the overhead ratio.
[0089] Method 3: The first chip first determines a first set according to the overhead ratio relationship based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type, and the first set includes multiple FEC code types that meet the overhead ratio relationship; then determines a second set according to the integer multiple relationship between the codeword length and the logical channel at the time of distribution, and the second set includes multiple FEC code types that meet the integer multiple relationship; determines the second FEC code type based on the first set and the second set. For example, based on the intersection of the first set and the second set, the first chip determines the second FEC code type.
[0090] It should be noted that the second FEC code type can be any one of RS code, BCH code, Fire code, Turbo code, Turbo product code, staircase code and LDPC code. The embodiment of the present application does not limit the type of the second FEC code type.
[0091] Step 203: The first chip encodes the first data according to the second FEC code type to obtain second data.
[0092] In a possible implementation, if the first data is data inside the first chip, the first chip encodes the first data according to the second FEC code type to obtain the second data; if the first data is data sent by the second chip and received by the first chip, the first chip can directly encode the data according to the second FEC code type to obtain the second data. It should be noted that the first chip can perform simple operations other than decoding on the received data, such as bit multiplexing (bitmux) or bit demultiplexing (bitdemux).
[0093] Exemplarily, if the first data is a single data, the first chip encodes the first data according to the second FEC code type to obtain the second data, wherein the first data may be data directly received by the first chip, or may be data obtained by interleaving the multiple sub-data after being distributed into multiple sub-data via the first chip. In this case, the first data is taken as a whole and the second FEC code type is used to encode the first data. Optionally, if the first data is multiple, for example, multiple first data sent from the second chip, the first chip encodes each first data separately according to the second FEC code type to obtain multiple second data. Figure 3 As shown, the first chip receives the third data through the attachment unit interface (attachment unit interface, AUI), processes it through the physical medium access sublayer (physical medium attachment sublayer, PMA), obtains multiple first data, and the first chip encodes the multiple first data respectively to obtain multiple second data. The obtained multiple second data can be transmitted through multiple physical channels ( Figure 5 In some embodiments, Figure 3In the embodiment, the second chip may be a network device, such as a physical layer (PHY) chip in a router or a switch, and the first chip may be a chip in an optical module, or a clock data recovery (CDR) / retimer chip. The PHY chip may be a chip located on a single board of a network device, and the chip may be one of a central processing unit (CPU), a network processor (NP), a neural network processing unit (NPU), a field programmable gate array (FPGA), a programmable logic controller (PLC), etc., or any combination thereof.
[0094] In a possible implementation, whether it is one first data or multiple first data, the first chip encodes the first data according to the second FEC code type to obtain the second data, including: the first chip distributes the first data to obtain multiple first sub-data, and the first chip encodes the multiple first sub-data respectively according to the second FEC code type to obtain multiple second sub-data. For example, the process can be as follows Figure 4 shown.
[0095] Exemplarily, the manner in which the first chip distributes the first data to obtain a plurality of first sub-data includes but is not limited to the following two manners.
[0096] Method 1: The first chip distributes the first data through a logical channel to obtain a plurality of first sub-data.
[0097] Exemplarily, the first chip distributes the first data through N logical channels to obtain a plurality of first sub-data, wherein each logical channel is used to transmit a first sub-data, and the logical channel can be a PCS channel or an FEC channel. The first chip encodes the plurality of first sub-data respectively according to the second FEC code type to obtain a plurality of second sub-data. For example, the process can be as follows: Figure 5 As shown, the obtained multiple second sub-data can be transmitted to the outside through PMA and PMD respectively.
[0098] Method 2: The first chip distributes the first data through PMA to obtain a plurality of first sub-data.
[0099] Step 204: The first chip transmits second data.
[0100] The first chip transmits the second data through a logical channel, and the logical channel may be a PCS channel or a FEC channel. In a possible implementation, with respect to the number of channels for data transmission, the first chip transmits the second data including but not limited to the following two situations.
[0101] Case 1: The number of channels is 1.
[0102] For situation 1, the first chip transmits second data through the channel. The second data may be a single data or include a plurality of second sub-data.
[0103] Case 2: The number of channels is a positive integer greater than or equal to 2.
[0104] For the second situation, the first chip distributes the second data to obtain a plurality of third sub-data, and sends the plurality of third sub-data through a plurality of logical channels. For example, the first chip distributes the second data by polling. For example, Figure 6 As shown, the number of logical channels is N, where N is a positive integer greater than or equal to 2. The first chip distributes the second data by polling to obtain N third sub-data, and sends the N third sub-data through N logical channels. Exemplarily, each of the N logical channels corresponds to sending one third sub-data. The N third sub-data includes but is not limited to being sent to the next chip through PMA and PMD.
[0105] Exemplarily, if the first data is a single data, the first chip uses the second FEC code type to encode the single first data to obtain the second data, and then distributes the second data to obtain multiple third sub-data, and sends the multiple third sub-data through multiple logical channels; if the first data is distributed as multiple first sub-data, the second FEC code type is used to encode any first sub-data among the multiple first sub-data to obtain the second sub-data, the first chip distributes the multiple second sub-data to obtain multiple third sub-data, and sends the multiple third sub-data through multiple logical channels. For example, the first chip distributes any second sub-data among the multiple second sub-data by polling. Figure 7 Taking the system shown as an example, multiple second sub-data are obtained by encoding the second FEC code type. For each second sub-data, the first chip distributes the second sub-data to obtain N third sub-data, where N is a positive integer greater than or equal to 2, and the multiple third sub-data are distributed through N logical channels. Exemplarily, each of the N logical channels corresponds to sending one third sub-data.
[0106] The above steps 201 to 204 are all processes in which the first chip side performs the data transmission. Next, the data transmission method is described by taking the third chip side as an example.
[0107] Step 205: The third chip receives second data, where the second data is data obtained by encoding the first data using the second FEC code type, and the first data is data encoded using the first FEC code type.
[0108] In a possible implementation manner, the third chip receives the second data sent by the first chip through a logic channel.
[0109] Step 206: The third chip decodes the second data according to the second FEC code type to obtain decoded data.
[0110] Since the second data is obtained by encoding the first data using the second FEC code type, and the first data is obtained by encoding the first FEC code type, the coding gain of the second data received by the third chip is higher and the error correction capability is higher. By decoding the second data, the decoded data obtained is more accurate.
[0111] In a possible implementation, the third chip performs self-negotiation with the first chip that sends the second data; in response to the self-negotiation result indicating that decoding is required, the third chip decodes the second data according to the second FEC code type to obtain decoded data.
[0112] The third chip decodes the second data according to the second FEC code type, including but not limited to: the third chip performs soft decision decoding on the second data according to the second FEC code type. Exemplarily, the third chip performs soft decision decoding on the second data according to the second FEC code type to obtain decoded data, including: the third chip obtains a first sequence of the second FEC code type according to the second data, the first sequence includes multiple code elements; the third chip assigns a reliability measure to each of the multiple code elements respectively; based on the reliability measure, the third chip determines at least one least reliable position; based on at least one least reliable position, the third chip obtains an error pattern, and corrects the first sequence according to the error pattern; the third chip obtains a first codeword set by algebraically decoding the corrected first sequence, and the third chip obtains the decoded data by mapping the code words in the first codeword set based on the mapping result.
[0113] In a possible implementation, the third chip decodes the second data according to the second FEC code type, and after obtaining the decoded data, the method further includes: the third chip re-encodes the decoded data according to the third FEC code type, and transmits the re-encoded data. By re-encoding the decoded data according to the third FEC code type, the data transmission quality of the next link can be protected. The embodiment of the present application does not limit the third FEC code type. For example, the third FEC code type is the second FEC code type, wherein the second FEC code type can be the same as the second FEC code type for encoding the second data, or can be other second FEC code types that meet the above-mentioned overhead ratio relationship and the relationship that the codeword length is an integer multiple of the number of distributed logical channels.
[0114] For example, Figure 8 As shown, the third chip decodes the second data according to the second FEC code type. After obtaining the decoded data, the third chip needs to transmit the decoded data to the fourth chip. The fourth chip can process the received data according to the processing method of the first chip, for example, according to the process of the above steps 202 to 204, the decoded data is re-encoded and the re-encoded data is transmitted. Optionally, the fourth chip can also decode the received data according to the first FEC code type to obtain service data.
[0115] The method provided in the embodiment of the present application determines the second FEC code type based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type, and encodes the first data encoded by the first FEC code type again through the second FEC code type to obtain the second data of cascade coding, so that the second data has a higher coding gain. When transmitted in a channel prone to bit errors, the data with bit errors can be effectively corrected, thereby improving the quality of data transmission.
[0116] Secondly, since the second data is data obtained by directly encoding the first data, the implementation process of the method is relatively simple, thereby improving the efficiency of data transmission.
[0117] In addition, since this method can perform self-negotiation between chips and indicate the need for cascade coding according to the self-negotiation result, a process of determining the second FEC code based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type is executed, the chips can actively determine whether cascade coding is required, which makes the encoding of data transmitted in different channels more flexible.
[0118] The embodiment of the present application also provides a device for data transmission. Fig. 9 Schematic diagram of a data transmission device provided in an embodiment of the present application. Fig. 9As shown in the following multiple modules, the Fig. 9 The data transmission device shown can perform all or part of the operations performed by the first chip. It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown, and the embodiments of the present application are not limited to this. Fig. 9 As shown, the device comprises:
[0119] An acquisition module 901 is used to acquire first data, where the first data is data encoded using a first FEC code type;
[0120] A determination module 902, configured to determine a second FEC code type based on a reference clock frequency of the first chip and an output rate corresponding to the first FEC code type;
[0121] The encoding module 903 is used to encode the first data according to the second FEC code type to obtain second data;
[0122] The transmission module 904 is configured to transmit second data.
[0123] In one possible implementation, the reference clock frequency of the first chip, the output rate corresponding to the first FEC code type, the codeword length of the second data, and the information length in the codeword of the second data satisfy an overhead ratio relationship; a determination module 902 is used to determine the second FEC code type according to the overhead ratio relationship based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type.
[0124] In a possible implementation, the overhead ratio relationship includes:
[0125]
[0126] Among them, n is the codeword length of the second data, k is the information length in the codeword of the second data, v1 is the output rate corresponding to the first FEC code type, p is the adjustment parameter, f is the reference clock frequency of the first chip, and p is a positive integer.
[0127] In a possible implementation manner, the codeword length of the second data is an integer multiple of the number of logical channels when the second data is distributed.
[0128] In a possible implementation, the encoding module 903 is used to distribute the first data to obtain multiple first sub-data, encode the multiple first sub-data according to the second FEC code type, and obtain multiple second sub-data; the transmission module 904 is used to transmit the multiple second sub-data.
[0129] In a possible implementation, the encoding module 903 is configured to distribute the first data through a PCS channel to obtain a plurality of first sub-data; or distribute the first data stream through a PMA to obtain a plurality of first sub-data.
[0130] In a possible implementation, the transmission module 904 is configured to distribute the second data to obtain a plurality of third sub-data, and send the plurality of third sub-data through a plurality of logical channels.
[0131] In one possible implementation, the device also includes: a self-negotiation module, used to perform self-negotiation with a third chip that receives data sent by the first chip; in response to the self-negotiation result indicating that cascade coding is required, the determination module 902 determines the second FEC code type based on the reference clock frequency of the first chip and the output rate corresponding to the first FEC code type.
[0132] In a possible implementation manner, the first data is data inside the first chip, or the first data is data sent by the second chip and received by the first chip.
[0133] Fig.10 Schematic diagram of a data transmission device provided in an embodiment of the present application. Fig.10 As shown in the following multiple modules, the Fig.10 The data transmission device shown can perform all or part of the operations performed by the third chip. It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown, and the embodiments of the present application are not limited to this. Fig.10 As shown, the device comprises:
[0134] The receiving module 1001 is used to receive second data, where the second data is data obtained by encoding the first data using the second FEC code type, and the first data is data encoded using the first FEC code type;
[0135] The decoding module 1002 is used to decode the second data according to the second FEC code type to obtain decoded data.
[0136] In a possible implementation, the decoding module 1002 is configured to perform soft decision decoding on the second data according to the second FEC code type to obtain decoded data.
[0137] In a possible implementation, the device further includes: an encoding module, configured to re-encode the decoded data according to a third FEC code type; and a transmission module, configured to transmit the re-encoded data.
[0138] In a possible implementation manner, the third FEC code type is the first FEC code type or the second FEC code type.
[0139] It should be understood that the above Fig. 9 , Fig.10 When the device provided realizes its functions, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0140] An embodiment of the present application provides a device for data transmission, the device comprising: a processor, the processor is coupled to a memory, the memory stores at least one program instruction or code, the at least one program instruction or code is loaded and executed by the processor, so that the data transmission device implements the method in the above method embodiment.
[0141] See also Fig.11 , Fig.11 A schematic structural diagram of a data transmission device 1100 provided by an exemplary embodiment of the present application is shown. The data transmission device 1100 is a sending side / receiving side device. Fig.11 The data transmission device 1100 shown is used to perform the above Figure 2 Operations involved in the method for data transmission shown. The data transmission device 1100 is, for example, a network device such as a switch, a router, and other devices that include this chip cascade mode (such as a server, a PC, etc.). The hardware structure of the data transmission device 1100 includes a communication interface 1101 and a processor 1102. Optionally, the communication interface 1101 and the processor 1102 are connected via a bus 1104. Among them, the communication interface 1101 is used to obtain the first data and transmit the second data, and the processor may store instructions or program codes, and execute the functions performed by the above-mentioned first chip or the functions performed by the third chip by calling the instructions or program codes. Optionally, the network device also includes a memory 1103, in which the instructions or program codes are stored, and the processor 1102 is used to call the instructions or program codes in the memory 1103 so that the network device executes the relevant processing steps of the first chip in the above-mentioned method embodiment. In a specific embodiment, the data transmission device 1100 of the embodiment of the present application may include the first chip in each of the above-mentioned method embodiments, and the processor 1102 in the data transmission device 1100 reads the instructions or program codes in the memory 1103, so that Fig.11 The data transmission device 1100 shown can execute all or part of the operations executed by the first chip.
[0142] In a specific embodiment, the data transmission device 1100 of the embodiment of the present application includes the third chip in each of the above method embodiments, and the processor 1102 in the data transmission device 1100 reads the instruction or program code in the memory 1103, so that Fig.11 The data transmission device 1100 shown can execute all or part of the operations executed by the third chip.
[0143] Exemplarily, the processor 1102 is, 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 units (NPU), a data processing unit (DPU), a microprocessor, or one or more integrated circuits for implementing the solution of the present application. For example, the processor 1102 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. PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. It can implement or execute various logic blocks, modules, and circuits described in conjunction with the disclosure of the embodiments of the present invention. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0144] Optionally, the data transmission device 1100 further includes a bus. The bus is used to transmit information between the components of the data transmission device 1100. The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus. Fig.11 In addition to being connected by a bus, the components of the data transmission device 1100 may also be connected in other ways, and the embodiment of the present invention does not limit the connection method of the components.
[0145] The memory 1103 is, for example, a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, or a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1103 is, for example, independent and connected to the processor 1102 via a bus. The memory 1103 can also be integrated with the processor 1102.
[0146] The communication interface 1101 uses any transceiver-like device to communicate with other devices or communication networks, and the communication network can be Ethernet, a radio access network (RAN) or a wireless local area network (WLAN), etc. The communication interface 1101 may include a wired communication interface and may also include a wireless communication interface. Specifically, the communication interface 1101 may be an Ethernet interface, a fast Ethernet (FE) interface, a gigabit Ethernet (GE) interface, an asynchronous transfer mode (ATM) interface, a wireless local area network (WLAN) interface, a cellular network communication interface or a combination thereof. The Ethernet interface may be an optical interface, an electrical interface or a combination thereof. In an embodiment of the present application, the communication interface 1101 may be used for the data transmission device 1100 to communicate with other devices.
[0147] In a specific implementation, as an embodiment, the processor 1102 may include one or more CPUs. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0148] In a specific implementation, as an embodiment, the data transmission device 1100 may include multiple processors. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0149] In a specific implementation, as an embodiment, the data transmission device 1100 may also include an output device and an input device. The output device communicates with the processor 1102 and may display information in a variety of 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. The input device communicates with the processor 1102 and may receive user input in a variety of ways. For example, the input device may be a mouse, a keyboard, a touch screen device, or a sensor device.
[0150] In some embodiments, the memory 1103 is used to store the program code for executing the solution of the present application, and the processor 1102 can execute the program code stored in the memory 1103. That is, the data transmission device 1100 can implement the data transmission method provided by the method embodiment through the processor 1102 and the program code in the memory 1103. The program code may include one or more software modules. Optionally, the processor 1102 itself may also store the program code or instruction for executing the solution of the present application.
[0151] In a specific embodiment, the data transmission device 1100 of the embodiment of the present application may include the first chip in each of the above method embodiments, and the processor 1102 in the data transmission device 1100 reads the program code in the memory 1103 or the program code or instruction stored in the processor 1102 itself, so that Fig.11 The data transmission device 1100 shown can execute all or part of the operations executed by the first network device.
[0152] In a specific embodiment, the data transmission device 1100 of the embodiment of the present application may include the third chip in each of the above method embodiments, and the processor 1102 in the data transmission device 1100 reads the program code in the memory 1103 or the program code or instruction stored in the processor 1102 itself, so that Fig.11 The data transmission device 1100 shown can execute all or part of the operations executed by the third chip.
[0153] The data transmission device 1100 may also correspond to the above Fig. 9 , 10 The device shown, Fig. 9 , 10 Each functional module in the device shown is implemented using software of the data transmission device 1100. In other words, Fig. 9 , 10 The functional modules included in the apparatus shown are generated after the processor 1102 of the data transmission device 1100 reads the program code stored in the memory 1103 .
[0154] in, Figure 2 Each step of the data transmission method shown is completed by an integrated logic circuit of hardware or software instructions in the processor of the data transmission device 1100. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor, or a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0155] The embodiment of the present application also provides a data transmission system, which includes: a first data transmission device and a second data transmission device; the first data transmission device is used to perform Figure 2 The method executed by the first chip shown, the second data transmission device is used to execute Figure 2 The method executed by the third chip shown.
[0156] The functions of the first data transmission device and the second data transmission device of the system can be referred to above. Figure 2 The relevant descriptions shown will not be repeated here one by one.
[0157] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the advanced RISC machines (ARM) architecture.
[0158] Further, in an optional embodiment, the memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. The memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.
[0159] The memory may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM) and direct memory bus random access memory (DR RAM).
[0160] A computer-readable storage medium is also provided, wherein the storage medium stores at least one program instruction or code, and when the program instruction or code is loaded and executed by a processor, the computer implements the above Figure 2 The method of data transmission is shown.
[0161] The present application provides a computer program. When the computer program is executed by a computer, a processor or a computer can be enabled to execute the corresponding steps and / or processes in the above method embodiments.
[0162] A chip is provided, comprising a processor, for calling and executing instructions stored in a memory from the memory, so that a device equipped with the chip executes the methods in the above aspects.
[0163] 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, the processor is used to execute the code in the memory, and when the code is executed, the processor is used to execute the methods in the above aspects.
[0164] A device is provided, comprising a chip as described in any one of the above solutions.
[0165] A device is provided, comprising the first chip described in any one of the above solutions, and / or the third chip described in any one of the above solutions.
[0166] In some embodiments, Figure 1-8 In the embodiment, the second chip may be a transmitting side device, such as a physical layer (PHY) chip in a router, a switch, or a server, and the first chip may be an interface of a transmitting side device, such as a chip in an optical module or a CDR / retimer chip. The third chip may be an interface of a receiving side device, such as a chip in an optical module or a CDR / retimer chip, and the fourth chip may be a physical layer (PHY) chip in a receiving side device. The PHY chip may be a chip located on a single board of a computing device, and the chip may be one of a CPU, a network processor (NP), a neural network processing unit (NPU), a field programmable gate array (FPGA), a programmable logic controller (PLC), etc., or any combination thereof.
[0167] In some embodiments, the first chip and the second chip communicate with each other via AUI; in some embodiments, the third chip and the fourth chip communicate with each other via AUI.
[0168] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of 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, the process or function described in this application is generated in whole or in part. 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 computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state hard disk, solidstate disk), etc.
[0169] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation methods of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present application should be included in the scope of protection of the present application.
[0170] Those of ordinary skill in the art will appreciate that, in conjunction with the various method steps and modules described in the embodiments disclosed herein, they can be implemented in software, hardware, firmware, or any combination thereof. In order to clearly illustrate the interchangeability of hardware and software, the steps and components of each embodiment have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0171] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0172] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. As an example, the method of the embodiment of the present application can be described in the context of a machine executable instruction, and the machine executable instruction is such as included in the program module executed in the device on the real or virtual processor of the target. Generally speaking, a program module includes a routine, a program, a library, an object, a class, a component, a data structure, etc., which performs a specific task or realizes a specific abstract data structure. In various embodiments, the function of the program module can be merged or divided between the described program modules. The machine executable instruction for the program module can be executed in a local or distributed device. In a distributed device, the program module can be located in both a local and a remote storage medium.
[0173] The computer program code for realizing the method for the embodiment of the present application can be written in one or more programming languages. These computer program codes can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by a computer or other programmable data processing device, causes the function / operation specified in the flow chart and / or block diagram to be implemented. The program code can be executed completely on a computer, partially on a computer, as an independent software package, partially on a computer and partially on a remote computer or completely on a remote computer or server.
[0174] In the context of the embodiments of the present application, computer program codes or related data may be carried by any appropriate 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, and the like.
[0175] Examples of signals may include electrical, optical, radio, acoustic or other forms of propagated signals, such as carrier waves, infrared signals, etc.
[0176] A machine-readable medium may be any tangible medium that contains or stores a program for or related to an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination thereof. More detailed examples of machine-readable storage media include an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0177] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0178] In the several embodiments provided in the present 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 only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, or it can be an electrical, mechanical or other form of connection.
[0179] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0180] In addition, each functional module in each embodiment of the present 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 above integrated modules can be implemented in the form of hardware or software functional modules.
[0181] If the integrated module is implemented in the form of a software function 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 the present application is essentially 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, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0182] In this application, the terms "first", "second", etc. are used to distinguish between identical or similar items with substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is the quantity and execution order limited. 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 only used to distinguish one element from another. For example, without departing from the scope of the various described examples, a first network device may be referred to as a second network device, and similarly, a second network device may be referred to as a first network device. Both the first network and the device and the second network device may be network devices, and in some cases, may be separate and different network devices.
[0183] It should also be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean 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 the present application.
[0184] The term "at least one" in this application means one or more, and the term "multiple" in this application means two or more, for example, multiple second messages means two or more second messages. The terms "system" and "network" are often used interchangeably herein.
[0185] It should be understood that the terms used in the description of the various examples herein are only for describing specific examples and are not intended to be limiting. As used in the description of the various examples and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
[0186] It should also be understood that the term “comprise” (also known as “includes,” “including,” “comprises” and / or “comprising”) when used in this specification specifies the presence of stated features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0187] It should also be understood that the terms "if" and "if" may be interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting." Similarly, the phrases "if it is determined that ..." or "if [a stated condition or event] is detected" may be interpreted to mean "upon determining that ..." or "in response to determining that ..." or "upon detecting [a stated condition or event]" or "in response to detecting [a stated condition or event]," depending on the context.
[0188] It should be understood that determining B based on A does not mean determining B only based on A. B can also be determined based on A and / or other information.
[0189] It should also be understood that the references to "one embodiment", "an embodiment", or "a possible implementation" throughout the specification mean that specific features, structures, or characteristics related to the embodiment or implementation are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment", or "a possible implementation" throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Claims
1. A method for data transmission, It is characterized in that The method comprises: The first chip acquires first data, where the first data is data encoded using a first forward error correction code FEC code type; The first chip encodes the first data according to a second FEC code type to obtain second data, wherein the second FEC code type is related to a reference clock frequency of the first chip and an output rate corresponding to the first FEC code type; The first chip transmits the second data.
2. The method according to claim 1, It is characterized in that The reference clock frequency of the first chip, the output rate corresponding to the first FEC code type, the codeword length of the second data, and the information length in the codeword of the second data satisfy an overhead ratio relationship, and the second FEC code type satisfies the overhead ratio relationship.
3. The method according to claim 2, It is characterized in that A first result obtained by multiplying the ratio of the codeword length of the second data to the information length in the codeword of the second data by the output rate corresponding to the first FEC code type and a second result obtained by multiplying the reference clock frequency of the first chip by an adjustment parameter satisfy the overhead ratio relationship, wherein the adjustment parameter is a positive integer.
4. The method according to claim 1, It is characterized in that The codeword length of the second data is an integer multiple of the number of logical channels when the second data is distributed.
5. The method according to any one of claims 1 to 4, It is characterized in that The first chip encodes the first data according to the second FEC code type to obtain second data, including: The first chip distributes the first data to obtain a plurality of first sub-data, and the first chip encodes the plurality of first sub-data respectively according to the second FEC code type to obtain a plurality of second sub-data; The first chip transmitting the second data includes: The first chip transmits the plurality of second sub-data.
6. The method according to claim 5, It is characterized in that The first chip distributes the first data to obtain a plurality of first sub-data, including: The first chip distributes the first data through a physical coding sublayer PCS channel to obtain a plurality of first sub-data; Alternatively, the first chip distributes the first data stream through a physical medium access sublayer PMA to obtain a plurality of first sub-data.
7. The method according to any one of claims 1 to 4, It is characterized in that The first chip transmitting the second data includes: The first chip distributes the second data to obtain a plurality of third sub-data, and sends the plurality of third sub-data through a plurality of logical channels.
8. The method according to any one of claims 1 to 4, It is characterized in that The first FEC code type is a Reed-Solomon RS code, the second FEC code type is a Bose-Chaudhuri-Hokkewenheim BCH code, and the codeword length of the second data is 126 bits.
9. The method according to any one of claims 1 to 4, It is characterized in that The first data is data inside the first chip, or the first data is data sent by the second chip and received by the first chip.
10. A method of data transmission, It is characterized in that The method comprises: The third chip receives second data, where the second data is data obtained by encoding the first data by the first chip using a second forward error correction code FEC code type, and the first data is data encoded using a first FEC code type, wherein the second FEC code type is related to a reference clock frequency of the first chip and an output rate corresponding to the first FEC code type; The third chip decodes the second data according to the second FEC code type to obtain decoded data.
11. The method according to claim 10, It is characterized in that The third chip decodes the second data according to the second FEC code type, including: The third chip performs soft decision decoding on the second data according to the second FEC code type.
12. The method according to claim 10 or 11, It is characterized in that After the third chip decodes the second data according to the second FEC code type to obtain decoded data, the method further includes: The third chip re-encodes the decoded data according to a third FEC code type and transmits the re-encoded data.
13. The method according to claim 12, It is characterized in that The third FEC code type is the second FEC code type.
14. The method according to claim 10, It is characterized in that The reference clock frequency of the first chip, the output rate corresponding to the first FEC code type, the codeword length of the second data, and the information length in the codeword of the second data satisfy an overhead ratio relationship, and the second FEC code type satisfies the overhead ratio relationship.
15. The method according to claim 14, It is characterized in that A first result obtained by multiplying the ratio of the codeword length of the second data to the information length in the codeword of the second data by the output rate corresponding to the first FEC code type and a second result obtained by multiplying the reference clock frequency of the first chip by an adjustment parameter satisfy the overhead ratio relationship, wherein the adjustment parameter is a positive integer.
16. The method according to claim 10 or 11, It is characterized in that The first FEC code type is a Reed-Solomon RS code, the second FEC code type is a Bose-Chaudhuri-Hokkewenheim BCH code, and the codeword length of the second data is 126 bits.
17. A device for data transmission, It is characterized in that The device is applied to a first chip, and the device includes: An acquisition module, configured to acquire first data, wherein the first data is data encoded using a first forward error correction code FEC code type; an encoding module, configured to encode the first data according to a second FEC code type to obtain second data, wherein the second FEC code type is related to a reference clock frequency of the first chip and an output rate corresponding to the first FEC code type; A transmission module, used for transmitting the second data.
18. The device according to claim 17, It is characterized in that The reference clock frequency of the first chip, the output rate corresponding to the first FEC code type, the codeword length of the second data, and the information length in the codeword of the second data satisfy an overhead ratio relationship, and the second FEC code type satisfies the overhead ratio relationship.
19. The device according to claim 18, It is characterized in that A first result obtained by multiplying the ratio of the codeword length of the second data to the information length in the codeword of the second data by the output rate corresponding to the first FEC code type and a second result obtained by multiplying the reference clock frequency of the first chip by an adjustment parameter satisfy the overhead ratio relationship, wherein the adjustment parameter is a positive integer.
20. The device according to claim 17, It is characterized in that The codeword length of the second data is an integer multiple of the number of logical channels when the second data is distributed.
21. The device according to any one of claims 17 to 20, It is characterized in that The encoding module is used to distribute the first data to obtain a plurality of first sub-data, and encode the plurality of first sub-data respectively according to the second FEC code type to obtain a plurality of second sub-data; The transmission module is used to transmit the multiple second sub-data.
22. The device according to claim 21, It is characterized in that The encoding module is used to distribute the first data through a physical coding sublayer PCS channel to obtain multiple first sub-data; or distribute the first data stream through a physical medium access sublayer PMA to obtain multiple first sub-data.
23. The device according to any one of claims 17 to 19, It is characterized in that The transmission module is used to distribute the second data to obtain multiple third sub-data, and send the multiple third sub-data through multiple logical channels.
24. The device according to any one of claims 17 to 20, It is characterized in that The first FEC code type is a Reed-Solomon RS code, the second FEC code type is a Bose-Chaudhuri-Hokkewenheim BCH code, and the codeword length of the second data is 126 bits.
25. The device according to any one of claims 17 to 20, It is characterized in that The first data is data inside the first chip, or the first data is data sent by the second chip and received by the first chip.
26. A device for data transmission, It is characterized in that The device comprises: A receiving module, configured to receive second data, wherein the second data is data obtained by encoding the first data by the first chip using a second forward error correction code FEC code type, and the first data is data encoded using a first FEC code type, wherein the second FEC code type is related to a reference clock frequency of the first chip and an output rate corresponding to the first FEC code type; A decoding module is used to decode the second data according to the second FEC code type to obtain decoded data.
27. The device according to claim 26, It is characterized in that The decoding module is used to perform soft decision decoding on the second data according to the second FEC code type to obtain decoded data.
28. The device according to claim 26 or 27, It is characterized in that The device also includes: An encoding module, used for re-encoding the decoded data according to a third FEC code type; The transmission module is used to transmit the re-encoded data.
29. The device according to claim 28, It is characterized in that The third FEC code type is the second FEC code type.
30. The device according to claim 26, It is characterized in that The reference clock frequency of the first chip, the output rate corresponding to the first FEC code type, the codeword length of the second data, and the information length in the codeword of the second data satisfy an overhead ratio relationship, and the second FEC code type satisfies the overhead ratio relationship.
31. The device according to claim 30, It is characterized in that A first result obtained by multiplying the ratio of the codeword length of the second data to the information length in the codeword of the second data by the output rate corresponding to the first FEC code type and a second result obtained by multiplying the reference clock frequency of the first chip by an adjustment parameter satisfy the overhead ratio relationship, wherein the adjustment parameter is a positive integer.
32. The device according to any one of claims 26 or 27, It is characterized in that The first FEC code type is a Reed-Solomon RS code, the second FEC code type is a Bose-Chaudhuri-Hokkewenheim BCH code, and the codeword length of the second data is 126 bits.
33. A device for data transmission, It is characterized in that The data transmission device includes: a processor, the processor is coupled to a memory, the memory stores at least one program instruction or code, and the at least one program instruction or code is loaded and executed by the processor so that the data transmission device implements the method described in any one of claims 1-16.
34. A system for data transmission, It is characterized in that The data transmission system comprises a first data transmission device and a second data transmission device, wherein the first data transmission device is used to execute the method according to any one of claims 1 to 9, and the second data transmission device is used to execute the method according to any one of claims 10 to 16.
35. A computer readable storage medium, It is characterized in that The computer-readable storage medium stores at least one program instruction or code, and the program instruction or code is loaded and executed by a processor to enable a computer to implement the method according to any one of claims 1 to 16.
Citation Information
Patent Citations
Fiber transmission module and optical signal transmission device
CN102356585A
Data processing method, and data sending end and receiving end
CN106464427A
