Coding and decoding method, communication node and storage medium
By adopting flexible forward error correction FEC coding in the passive optical network system and dynamically adjusting the FEC coding according to the channel quality from each OLT to the ONU, the bandwidth overhead problem caused by unified FEC coding is solved, and more efficient bandwidth utilization and Bit error rate control.
Patent Information
- Application Number
- CN202310314255.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing passive optical network system, in the downlink direction, due to the topology of the optical distribution network, all optical network units receive the same data and cannot flexibly allocate bandwidth according to the channel quality from each OLT to ONU. As a result, the bandwidth overhead caused by unified FEC coding cannot be Effectively reduce.
The flexible forward error correction (FEC) coding method is adopted to dynamically adjust the FEC coding pattern according to the channel quality from each OLT to the ONU. By embedding the flexible FEC coding pattern information in the physical frame, each ONU can adjust the code pattern according to the received code. Data is decoded by itself, enabling flexible allocation and optimization of bandwidth.
It improves the bandwidth utilization of the system, improves the flexibility and real-time performance of FEC encoding, reduces unnecessary bandwidth overhead, and meets the bit error rate requirements of different ONUs.
Smart Images

Figure CN118740320A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, for example, to a coding and decoding method, a communication node and a storage medium. Background Art
[0002] The current standard stipulates that the passive optical network (PON) system transmits data in the downstream direction by broadcast, multicast or unicast. Since the topology of the optical distribution network (ODN) is point to multiple point (P2MP), all optical network units (ONUs) can receive the same downstream data. In order to meet the bit error rate requirements, forward error correction (FEC) coding is usually required in the downstream direction to reduce the bit error rate (BER) of the receiving end. Although the channel quality from each optical line terminal (OLT) to the ONU is different, since the data received by the ONU is exactly the same, it is not clear which data is for which ONU or ONUs before decoding and extracting the frame header. Therefore, although some OLT-ONU channels have good quality and do not need to use high-performance but wasteful FEC coding to reduce the BER of the receiving ONU, the only solution is to use the same set of FEC coding for all user data to ensure that the worst ONU can meet the standard requirements. Therefore, how to allocate bandwidth more reasonably and reduce the bandwidth overhead caused by unified FEC coding has become an urgent problem to be solved. Summary of the invention
[0003] The present application provides an encoding method, which is applied to a first communication node, and the method includes:
[0004] Acquire a physical frame, the physical frame comprising a first data block and a second data block, the first data block comprising a flexible forward error correction (FEC) coded pattern;
[0005] The second data block is encoded according to the flexible FEC encoding code pattern.
[0006] The present application provides a decoding method, which is applied to a second communication node, and the method includes:
[0007] Determine the code pattern of flexible forward error correction FEC encoding;
[0008] According to the code type of the flexible FEC encoding, the second codeword of the encoded data is decoded to obtain a second data block.
[0009] An embodiment of the present application provides a first communication node, comprising: a processor; the processor is used to implement the encoding method of any of the above embodiments when executing a computer program.
[0010] An embodiment of the present application provides a second communication node, including: a processor; the processor is used to implement the decoding method of any of the above embodiments when executing a computer program.
[0011] An embodiment of the present application also provides a computer-readable storage medium storing a computer program, which implements the method of any of the above embodiments when the computer program is executed by a processor.
[0012] With regard to the above embodiments and other aspects of the present application and their implementation, further description is provided in the accompanying drawings, detailed description and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 This is a networking diagram of a PON system provided by an embodiment;
[0014] Figure 2 It is a flowchart of an encoding method provided by an embodiment;
[0015] Figure 3 is a flowchart of a decoding method provided by an embodiment;
[0016] Figure 4 An interactive diagram of data transmission between an OLT and an ONU provided by an embodiment;
[0017] Figure 5 is a schematic diagram of the structure of a physical frame provided by an embodiment;
[0018] Figure 6 is a schematic diagram of the structure of another physical frame provided by an embodiment;
[0019] Figure 7 This is a schematic diagram of the structure of a PSBd frame header provided by an embodiment;
[0020] Figure 8 This is a schematic diagram of the structure of an OC body data block provided by an embodiment;
[0021] Fig. 9 is another interactive diagram of data transmission between an OLT and an ONU provided by an embodiment;
[0022] Fig.10 is a schematic diagram of the structure of another physical frame provided by an embodiment;
[0023] Fig.11is another interactive diagram of data transmission between an OLT and an ONU provided by an embodiment;
[0024] Fig.12 is a schematic diagram of the structure of another physical frame provided by an embodiment;
[0025] Fig.13 This is a schematic diagram of the structure of a FS frame provided by an embodiment. ;
[0026] Fig.14 This is a schematic diagram of the structure of a newly defined downlink physical frame header provided by an embodiment;
[0027] Fig.15 is a coding flow chart provided by an embodiment;
[0028] Fig.16 is a decoding flow chart provided by an embodiment;
[0029] Fig.17 This is a schematic diagram of the structure of another newly defined downlink physical frame header provided by an embodiment;
[0030] Fig.18 is a schematic diagram of a downlink burst transmission provided by an embodiment;
[0031] Fig.19 This is a structural diagram of a downlink burst structure provided by an embodiment;
[0032] Fig. 20 This is a structural diagram of a downlink FS burst structure without a FS tailer provided by an embodiment;
[0033] Fig.21 This is a structural diagram of a downlink FS burst structure with a FS tailer provided by an embodiment;
[0034] Fig. 22 is a schematic structural diagram of an encoding device provided by an embodiment;
[0035] Fig.23 is a schematic structural diagram of another encoding device provided by an embodiment;
[0036] Fig.24 is a structural schematic diagram of a decoding device provided by an embodiment;
[0037] Fig.25 is a schematic structural diagram of another decoding device provided by an embodiment;
[0038] Fig.26 This is a schematic diagram of the structure of a communication node provided by an embodiment. DETAILED DESCRIPTION
[0039] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. The embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.
[0040] The encoding method and decoding method provided in the present application can be applied to various wireless communication systems, such as PON systems and new communication systems that will emerge in future communication developments. Figure 1 FIG. 1 is a schematic diagram of a PON system network provided by an embodiment. Figure 1 As shown, the PON system includes an OLT 110 and an ONU 120. Figure 1 The number of ONUs 120 is M. OLT 110 communicates with multiple ONUs 120 through optical splitters. The PON system may also include other network devices, such as user terminals, servers, mobile base stations, etc. Figure 1 In the topology shown, the communication nodes can be divided into "user side" and "network side" according to the connection relationship of the communication nodes. In the PON system, the communication direction from OLT 110 to ONU 120 is called downstream coding and decoding, that is, OLT 110 sends the coded data block to ONU 120, and then ONU 120 decodes it; the communication direction from ONU 120 to OLT 110 is called upstream coding and decoding, that is, ONU 120 sends the coded data block to OLT 110, and then OLT 110 decodes it.
[0041] In an embodiment of the present application, a coding and decoding method, a communication node and a storage medium that can be operated in the above-mentioned wireless communication system are provided, which can use different FEC coding code types for encoding and decoding according to the channel quality from each OLT to ONU, and reasonably allocate and optimize the bandwidth of each OLT to ONU channel, thereby improving the flexibility and real-time performance of the system FEC, thereby improving the bandwidth utilization of the system.
[0042] The encoding method, decoding method, communication node and their technical effects are described below.
[0043] Figure 2 is a flowchart of an encoding method provided by an embodiment, such as Figure 2 As shown, the method provided in this embodiment is applicable to the first communication node. In this example, the first communication node (also referred to as the first communication node device) may be an OLT. The method includes the following steps.
[0044] S110 , obtaining a physical frame, where the physical frame includes a first data block and a second data block, and the first data block includes a flexible FEC coded code pattern.
[0045] S120: Encode the second data block according to the flexible FEC encoding code type.
[0046] In one embodiment, after encoding the second data block, encoded data may also be sent to the second communication node, the encoded data including the first data block and a second codeword, and the second codeword is the encoded second data block.
[0047] In one embodiment, in addition to encoding the second data block, the present application can also encode the first data block according to the code type of the dedicated FEC encoding; accordingly, after encoding the first data block and the second data block, the encoded data can also be sent to the second communication node, the encoded data including the first codeword and the second codeword, the first codeword is the encoded first data block, and the second codeword is the encoded second data block.
[0048] In the case of encoding the first data block and the second data block, the dedicated FEC coding pattern used to encode the first data block and the flexible FEC coding pattern used to encode the second data block may be the same or different.
[0049] In one embodiment, the physical frame is a physical frame in a continuous transmission mode or a physical frame in a downlink burst mode, that is, the present application can be applied to the continuous transmission mode or the downlink burst mode.
[0050] If the physical frame is a physical frame in a continuous transmission mode, the structures of the first data block and the second data block are any one of the following:
[0051] Case 1.1: The first data block includes at least a Physical Synchronization Block, downstream (PSBd) frame header, and the second data block includes at least a portion of a framing sublayer FS frame.
[0052] The flexible FEC coding code type is indicated by the PSync data block of the PSBd frame header; or, the flexible FEC coding code type is indicated by the DS FEC data block and the reserved data block in the OC body data block of the PSBd frame header.
[0053] Case 1.2: The first data block includes at least a PSBd frame header and a FS frame header, and the second data block includes a FS frame payload.
[0054] The flexible FEC coding code type is indicated by the HLend data block in the FS frame header.
[0055] Case 1.3: The first data block includes an extended physical synchronization block downlink ePSBd frame header and an FECmap structure, and the second data block includes a FS frame.
[0056] The flexible FEC coding code type is indicated by the FEC type data block in the ePSBd frame header and the FECmap structure. Optionally, the flexible FEC coding code type is supplemented by the FEC count data block in the ePSBd frame header.
[0057] If the physical frame is a physical frame in downlink burst mode, the structures of the first data block and the second data block are any one of the following:
[0058] Case 2.1: The first data block includes at least a PSBd frame header, and the second data block includes at least a portion of a downlink physical burst structure.
[0059] The flexible FEC coding code type is indicated by the PSync data block of the PSBd frame header; or, the flexible FEC coding code type is indicated by the DS FEC data block and the reserved data block in the OC body data block of the PSBd frame header.
[0060] Case 2.2: The first data block includes at least a PSBd frame header and a FS frame header in a downlink physical burst structure, and the second data block includes at least a FS frame payload in the downlink physical burst structure.
[0061] The flexible FEC coding code type is indicated by the HLend data block in the FS frame header.
[0062] Case 2.3: The first data block includes an ePSBd frame header and an FECmap structure, and the second data block includes a downlink physical burst structure.
[0063] The flexible FEC coding code type is indicated by the FEC type data block in the ePSBd frame header and the FECmap structure. Optionally, the flexible FEC coding code type is supplemented by the FEC count data block in the ePSBd frame header.
[0064] Figure 3 is a flowchart of a decoding method provided by an embodiment, such as Figure 3 As shown, the method provided in this embodiment is applicable to the second communication node. In this example, the second communication node (also referred to as the second communication node device) may be an ONU. The method includes the following steps.
[0065] S210: Determine a code type of flexible forward error correction (FEC) coding.
[0066] In one embodiment, before determining the code type of the flexible forward error correction FEC encoding, it is first necessary to receive the encoded data sent by the first communication node, the encoded data including the first data block and the second codeword, or the encoded data including the first codeword and the second codeword.
[0067] If the encoded data includes a first data block and a second codeword, the method for determining the code type of the flexible forward error correction FEC encoding may be: determining the code type of the flexible FEC encoding according to the first data block.
[0068] If the encoded data includes a first codeword and a second codeword, the method for determining the code type of the flexible forward error correction FEC encoding can be: first, according to the code type of the dedicated FEC encoding, decode the first codeword to obtain a first data block; then determine the code type of the flexible FEC encoding based on the first data block.
[0069] In one embodiment, the dedicated FEC encoding code type used to decode the first data block and the flexible FEC encoding code type used to decode the second data block may be the same or different.
[0070] S220 . Decode the second codeword of the encoded data according to the flexible FEC encoding code type to obtain a second data block.
[0071] In one embodiment, the coded data is coded data in a continuous transmission mode or coded data in a downlink burst mode, that is, the present application can be applied to the continuous transmission mode or the downlink burst mode.
[0072] If the coded data is coded data in a continuous transmission mode, the structures of the first data block and the second data block are any one of the following:
[0073] Case 3.1: The first data block includes at least a physical synchronization block downlink PSBd frame header, and the second data block includes at least a portion of a framing sublayer FS frame.
[0074] The flexible FEC coding code type is indicated by the PSync data block of the PSBd frame header; or, the flexible FEC coding code type is indicated by the DS FEC data block and the reserved data block in the OC body data block of the PSBd frame header.
[0075] Case 3.2: The first data block includes at least a PSBd frame header and a FS frame header, and the second data block includes a FS frame payload.
[0076] The flexible FEC coding code type is indicated by the HLend data block in the FS frame header.
[0077] Case 3.3: The first data block includes an extended physical synchronization block downlink ePSBd frame header and an FECmap structure, and the second data block includes a FS frame.
[0078] The flexible FEC coding code type is indicated by the FEC type data block in the ePSBd frame header and the FECmap structure. Optionally, the flexible FEC coding code type is supplemented by the FEC count data block in the ePSBd frame header.
[0079] If the coded data is coded data in a downlink burst mode, the structures of the first data block and the second data block are any one of the following:
[0080] Case 4.1: The first data block includes at least a PSBd frame header, and the second data block includes at least a portion of a downlink physical burst structure.
[0081] The flexible FEC coding code type is indicated by the PSync data block of the PSBd frame header; or, the flexible FEC coding code type is indicated by the DS FEC data block and the reserved data block in the OC body data block of the PSBd frame header.
[0082] Case 4.2: The first data block includes at least a PSBd frame header and a FS frame header in a downlink physical burst structure, and the second data block includes at least a FS frame payload in the downlink physical burst structure.
[0083] The flexible FEC coding code type is indicated by the HLend data block in the FS frame header.
[0084] Case 4.3: The first data block includes the ePSBd frame header and the FECmap structure, and the second data block includes the downlink physical burst structure.
[0085] The flexible FEC coding code type is indicated by the FEC type data block in the ePSBd frame header and the FECmap structure. Optionally, the flexible FEC coding code type is supplemented by the FEC count data block in the ePSBd frame header.
[0086] Below, some specific implementations are provided to explain the encoding method and decoding method provided in the embodiments of the present application.
[0087] In a first possible implementation, Figure 4 An embodiment provides an interaction diagram of data transmission between an OLT and an ONU, such as Figure 4 As shown, the following steps are included.
[0088] S310 , the OLT obtains a physical frame, where the physical frame includes a first data block and a second data block, and the first data block includes a flexible FEC coded code pattern.
[0089] In this embodiment, the structure of the physical frame can reuse the physical frame structure of the current standard continuous downlink direction. The OLT periodically sends encoded data (for example, period T = 125us) and modifies the first data block of the physical frame so that the first data block includes a flexible FEC encoding code type, so that the downlink direction supports variable FEC encoding code types for encoding and decoding.
[0090] Figure 5 is a schematic diagram of the structure of a physical frame provided by an embodiment; Figure 6 FIG. 1 is a schematic diagram of another physical frame structure provided by an embodiment. Figure 5 and Figure 6 As shown in FIG. 1 , a downlink physical frame corresponding to a period T includes a PSBd frame header and a FS frame. When the OLT performs encoding, the OLT can follow Figure 5 As shown, a segment of data at the beginning of the PSBd frame header and the FS frame is encoded as the first data block to form a codeword, namely FEC0, and the remaining data of the FS frame is encoded as the second data block to form multiple codewords, namely multiple FEC1s; it can also be encoded according to Figure 6 As shown, the PSBd frame header is encoded as the first data block to form a code word, namely, FEC0, and the FS frame is encoded as the second data block to form multiple code words, namely, multiple FEC2s. Figure 5 and Figure 6 Physical frame 1 indicates that the FEC encoding patterns used by FEC0 and FEC1 are different; Figure 5 and Figure 6 Physical frame 2 indicates that the FEC encoding code types used by FEC0 and FEC2 are the same.
[0091] S320: The OLT encodes the first data block according to the dedicated FEC encoding code pattern; and encodes the second data block according to the flexible FEC encoding code pattern.
[0092] The dedicated FEC coding pattern is an FEC coding pattern that can be recognized by all ONUs, such as a default FEC coding pattern and a specific FEC coding pattern (such as an RS FEC pattern).
[0093] The code pattern of the flexible FEC coding is indicated in the first data block.
[0094] Figure 7 FIG. 1 is a schematic diagram of the structure of a PSBd frame header provided by an embodiment. Figure 7 As shown, the PSBd frame header includes a PSync data block, an SFC structure data block and an OC structure data block, wherein the SFC structure data block includes a Superframe counter data block and a HEC data block, and the OC structure data block includes an OC body data block and a HEC data block.
[0095] In one example, the flexible FEC coding pattern is indicated by the PSync data block of the PSBd frame header. The PSync data block is used for synchronization after the ONU receives it. By constructing different PSync data blocks, different PSync data blocks correspond to different FEC coding patterns. The OLT, network management, etc. pre-configure a correspondence table between the PSync data block and the flexible FEC coding pattern, and both the OLT and the ONU use the correspondence table.
[0096] In another example, Figure 8 FIG. 1 is a schematic diagram of the structure of an OC body data block provided by an embodiment. Figure 8 As shown, the flexible FEC coding pattern is indicated by the DS FEC data block and the reserved data block R in the OC body data block of the PSBd frame header. That is, the meaning of the DS FEC data block and R in the standard OC body data block is modified, and the two bits are used to realize the flexible switching of three different FEC coding patterns.
[0097] For example, setting the DS FEC data block to 1 means using a dedicated FEC coding pattern, and the meaning of the R value is ignored by the ONU; setting the DS FEC data block to 0 means using a flexible FEC coding pattern, and the value of R represents different FEC coding patterns, such as R = 0, OLT uses pattern 1 for encoding, and ONU uses pattern 1 for decoding; R = 1, OLT uses pattern 2 for encoding, and ONU uses pattern 2 for decoding.
[0098] S330 . The OLT sends coded data to the ONU. The coded data includes a first codeword and a second codeword. The first codeword is the coded first data block, and the second codeword is the coded second data block.
[0099] S340. The ONU receives the encoded data sent by the OLT.
[0100] S350. The ONU decodes the first codeword according to the dedicated FEC coded code type to obtain a first data block.
[0101] S360: The ONU determines a flexible FEC encoding code type according to the first data block.
[0102] Correspondingly, when the ONU decodes the first codeword according to the dedicated FEC encoding code type to obtain the first data block, it can determine the flexible FEC encoding code type indicated by it according to the PSync data block in the PSBd, or determine the flexible FEC encoding code type indicated by it according to the DS FEC data block and the reserved data block in the OC body data block of the PSBd frame header.
[0103] S370. The ONU decodes the second codeword of the encoded data according to the code type of the flexible FEC encoding to obtain a second data block.
[0104] In a second possible implementation, Fig. 9 FIG. 1 is another interactive diagram of data transmission between an OLT and an ONU provided by an embodiment, such as Fig. 9 As shown, the following steps are included.
[0105] S410 , the OLT obtains a physical frame, where the physical frame includes a first data block and a second data block, and the first data block includes a flexible FEC coded code type.
[0106] In this embodiment, the current standard downstream direction PSBd frame header FEC protection provisions can be modified, so that the PSBd frame header is similar to the physical synchronization block upstream (PSBu) frame header in the current standard and is not protected by FEC. The OLT periodically sends coded data (for example, period T = 125us), and by modifying the first data block of the physical frame, the first data block includes a flexible FEC coded pattern, so that the downstream direction supports variable FEC coded patterns for encoding and decoding.
[0107] Fig.10 FIG. 1 is a schematic diagram of another physical frame structure provided by an embodiment. Fig.10 As shown, a downlink physical frame corresponding to a period T includes a PSBd frame header and a FS frame. The PSBd frame header is used as the first data block, and the FS frame is used as the second data block. When the OLT performs encoding, the OLT no longer encodes the first data block, but only encodes the second data block to form multiple codewords, that is, multiple FEC1s or multiple FEC2s. Fig.10 In the physical frame 1, it is indicated that the FEC coding pattern adopted by FEC1 is not the dedicated FEC coding pattern; Fig.10 The physical frame 2 indicates that the FEC coding pattern adopted by FEC2 is a dedicated FEC coding pattern.
[0108] S420: The OLT encodes the second data block according to the flexible FEC encoding code type.
[0109] The flexible FEC coding pattern is indicated in the first data block. Specifically, the method for indicating the flexible FEC coding pattern is the same as the method for indicating the flexible FEC coding pattern in the first possible implementation mode, and will not be described here for brevity.
[0110] S430 . The OLT sends coded data to the ONU. The coded data includes a first data block and a second codeword. The second codeword is the coded second data block.
[0111] S440. The ONU receives the encoded data sent by the OLT.
[0112] S450: The ONU determines a flexible FEC encoding code type according to the first data block.
[0113] S460: The ONU decodes the second codeword of the encoded data according to the flexible FEC encoding code type to obtain a second data block.
[0114] In a third possible implementation, Fig.11 FIG. 1 is another interactive diagram of data transmission between an OLT and an ONU provided by an embodiment, such as Fig.11 As shown, the following steps are included.
[0115] S510: The OLT obtains a physical frame, where the physical frame includes a first data block and a second data block, and the first data block includes a flexible FEC coded code pattern.
[0116] In this embodiment, the structure of the physical frame can reuse the physical frame structure of the current standard continuous downlink direction. The OLT periodically sends encoded data (for example, period T = 125us) and modifies the first data block of the physical frame so that the first data block includes a flexible FEC encoding code type, so that the downlink direction supports variable FEC encoding code types for encoding and decoding.
[0117] Fig.12 FIG. 1 is a schematic diagram of a structure of another physical frame provided by an embodiment. Fig.12 As shown, a downlink physical frame corresponding to a period T includes a PSBd frame header and a FS frame, and the FS frame includes a FS frame header and a FS frame payload. When the OLT performs encoding, the OLT can encode the PSBd frame header and the FS frame header as the first data block to form a codeword, namely, FEC0, and encode the FS frame payload as the second data block to form multiple codewords, namely, multiple FEC1s or multiple FEC2s. Fig.12 Physical frame 1 indicates that the FEC encoding patterns used by FEC0 and FEC1 are different; Fig.12 Physical frame 2 indicates that the FEC encoding code types used by FEC0 and FEC2 are the same.
[0118] It should be noted that when the PSBd frame header and the FS frame header are encoded as the first data block, if the data length of the PSBd frame header and the FS frame header is less than the information bit length of the first codeword, they can be padded with specific data.
[0119] S520: The OLT encodes the first data block according to the dedicated FEC encoding code pattern; and encodes the second data block according to the flexible FEC encoding code pattern.
[0120] The dedicated FEC coding pattern is an FEC coding pattern that can be recognized by all ONUs, such as a default FEC coding pattern and a specific FEC coding pattern (such as an RS FEC pattern).
[0121] The code pattern of the flexible FEC coding is indicated in the first data block.
[0122] Fig.13 FIG. 1 is a schematic diagram of the structure of a FS frame provided by an embodiment. Fig.13 As shown, the FS frame includes a FS frame header and a FS frame payload. The FS frame header includes a HLend data block, a BW map data block and a physical layer operation, maintenance and management downlink (Physical Layer Operations, Administration and Maintenance, downstream, PLOAMd) data block. The HLend data block includes a BW map length data block, a PLOAM count data block and a HEC data block.
[0123] The flexible FEC coding code type is indicated by the HLend data block in the FS frame header. Exemplarily, the flexible FEC coding code type used by the current physical frame is indicated in the HLend data block.
[0124] For example, the HLend data block in the existing standard is kept at 4 bytes in length, the number of bits of the BWmap length data block and the PLOAM count data block are adjusted, and 2 bits are freed up to indicate the downlink flexible FEC coding pattern of the current frame; for another example, the length of the HLend data block is increased, and 2 bits can be used to indicate at most 4 different flexible FEC coding patterns.
[0125] S530 . The OLT sends coded data to the ONU. The coded data includes a first codeword and a second codeword. The first codeword is the coded first data block, and the second codeword is the coded second data block.
[0126] S540: The ONU receives the encoded data sent by the OLT.
[0127] S550. The ONU decodes the first codeword according to the code type of the dedicated FEC encoding to obtain a first data block.
[0128] After receiving the downstream physical frame, all ONUs first decode the first codeword of the downstream frame using the dedicated FEC coding code pattern to obtain the first data block.
[0129] S560: The ONU determines a flexible FEC encoding code type according to the first data block.
[0130] Correspondingly, when the ONU decodes the first codeword according to the dedicated FEC coding pattern to obtain the first data block, it determines the flexible FEC coding pattern indicated by the HLend data block in the FS frame header.
[0131] S570. The ONU decodes the second codeword of the encoded data according to the code type of the flexible FEC encoding to obtain a second data block.
[0132] In a fourth possible implementation, the current standard OLT can be reused to periodically send coded data (e.g., period T = 125us), and the PSBd frame header is modified to an extended physical synchronization block downlink ePSBd frame header, and an FECmap structure is added. The ePSBd frame header and the FECmap structure are located in the first data block, and the flexible FEC coded code type is jointly indicated by the FECtype data block in the ePSBd frame header and the FECmap structure. Optionally, the flexible FEC coded code type is supplemented by the FECcount data block in the ePSBd frame header.
[0133] Fig.14 FIG. 1 is a schematic diagram of a newly defined downlink physical frame header provided by an embodiment. Fig.14 As shown, the ePSBd frame header can be protected by a separate FEC protection, or the FECmap structure can be protected by a separate FEC protection. The dedicated FEC coding pattern used should be recognized by all ONUs, and can be the same dedicated FEC coding pattern or different dedicated FEC coding patterns. In addition, the ePSBd frame header and the FECmap structure can also be protected by a fixed FEC coding pattern, such as LDPC (17280, 14592) compatible with old ONUs.
[0134] The FEC type data block in the ePSBd frame header and the FECmap structure together indicate the flexible FEC coding code type as follows:
[0135] When FEC type = 0, it means that the current frame is encoded with a dedicated FEC coding pattern except for the frame header. At this time, the value of FEC count is ignored by the ONU (the default value may be 1), and the length of the first codeword of the current physical frame is 0;
[0136] When FEC type = 1, it means that the current frame is encoded with flexible FEC encoding type 1 except for the frame header. At this time, the value of FEC count is ignored by the ONU (the default value can be 1), and the length of the first codeword of the current physical frame is 0;
[0137] When FEC type = 2, it means that the current frame is encoded with flexible FEC encoding type 2 except for the frame header. At this time, the value of FEC count is ignored by the ONU (the default value may be 1), and the length of the first codeword of the current physical frame is 0;
[0138] When FEC type = 3, it means that the current frame is encoded with multiple FEC coding patterns except for the frame header. At this time, the value of FEC count cannot be ignored by the ONU, and the length of the first codeword of the current physical frame is not 0, which is determined by the number of codewords after actual encoding; the FECmap structure indicates the different FEC codetypes (FEC flag), the number of codewords (code numb), and the relative starting position (start) of the current frame after FEC encoding. The FECmap structure completely corresponds to the encoded codeword and is determined by the OLT.
[0139] Flexible FEC coding pattern 1 and flexible FEC coding pattern 2 may be high-throughput or high-margin FEC patterns with better performance than the dedicated FEC coding pattern, respectively.
[0140] This embodiment also provides a possible encoding method. Fig.15 This is a coding flow chart provided by an embodiment. Fig.15 As shown, the user data SDU of each ONU is grouped into different SDU categories according to the code type of the FEC code configured by the ONU, and then the FS frame is formed according to the XGEM framing method and the FS framing method in the existing standard, and the grouping information corresponding to the FS frame is sent to the encoding controller. It should be noted that although the SDU is divided into different groups according to the FEC type configured by the ONU, in the FS framing process, the OLT can put the SDUs of different groups into the same FS frame according to the load of the current user SDU, and it is only necessary to clarify the relative position of the XGEM frames corresponding to the SDUs of different groups in the FS frame payload in the grouping information. For example, clarify the starting position of the XGEM of different groups in the FS payload.
[0141] The encoding controller uses the grouping information to control the FEC encoder 3 to ensure that the XGEM frames of the same category are encoded by the same FEC code type, and outputs the encoding structure of the FEC encoder 3, which is the FECmap structure. The FECmap structure is encoded by a default FEC code type of a dedicated default encoder 2.
[0142] The ePSBd frame header is encoded by another dedicated default FEC code pattern of default encoder 1, which may be the same as or different from the default FEC code pattern of default encoder 2.
[0143] The default encoder 1, the default encoder 2 and the FEC encoder 3 are reassembled into downlink physical frames by the codeword reassembly module to form a PHY frame bit stream protected by FEC.
[0144] This embodiment also provides a possible decoding method. Fig.16 This is a decoding flow chart provided by an embodiment. Fig.16 As shown, after receiving the PHY frame bit stream, each ONU decodes it in three sections. First, the ePSBd protected by the dedicated FEC is decoded using the default decoder 1, and all ONUs can decode it correctly.
[0145] The ONU sub-controller 12 controls the default decoder 2 to decode the FECmap part of the remaining data of the PHY frame bit stream except the ePSBd part according to the FECtype carried in the ePSBd. Note that if the FECtype result indicates that the data length of the FECmap is 0, then this step will not perform any processing on the remaining data of the PHY frame bit stream except the ePSBd part. The sub-controller 12 notifies the sub-controller 3 to decode the remaining data.
[0146] The ONU sub-controller 3 controls the FEC decoder 3 to decode the remaining data of the PHY frame bit stream except the ePSBd and FECmap codewords. The decoding is performed according to the FEC structure in the FECmap to obtain the data of each ONU in the FS frame data.
[0147] Specific implementation methods include:
[0148] 1. FEC decoding during ONU activation and registration phase.
[0149] Method 1: During the activation and registration phase, the physical frame header of the PSBd structure is used, and the standard default process encoding and decoding is adopted.
[0150] Method 2: During the activation and registration phase, the physical frame header of the ePSBd structure is used, so the ONU needs to translate the ePSBd first. Fig.14If FEC type=0, it means the default code type used for the entire physical frame, and FEC count is ignored (there may be a default value, such as 1). At this time, the length of codeword#1* is length=0, and there is no FECmap. Assume that this PHY frame has a total of CD FECs, the first one is the first codeword of ePSBd, and from the second to the last codeword, they are all FEC encodings for the FS frame. The second to CD-1 codewords are of the same length (L), and the length of the CDth is not greater than L, so as to ensure that the entire PHY frame is T period frame length at the corresponding rate The number of bits (for example, T=125us). Alternatively, decode completely in the original way, and use one FEC to protect part of the data of the ePSBd and FS frames. Then, after decoding, there will be an additional FEC structure and HEC.
[0151] 2. How to decode the ONU working status.
[0152] Step 1: After the ONU leaves the factory or the firmware is upgraded, the FEC type it supports can be known to the OLT, which can be known through configuration or message inquiry, and this application does not limit this.
[0153] Step 2: When the ONU is in working state, the frame header of the ePSBd structure is used throughout the process, and the first codeword#1 has two possible construction methods: one is as follows: Fig.14 As shown, another Fig.17 shown.
[0154] Method 1: ePSBd and FECmap together construct codeword#1.
[0155] This method requires a fixed codeword length and specific FEC protection, such as the default code type in the standard, otherwise different ONUs cannot decode. The length of FECmap can be 0 or other values L (fixed or non-fixed). This method may also need to be filled with specific data (such as idle data) to ensure the information bit length of codeword#1.
[0156] Method 2: ePSBd constructs codeword#1 separately, and FECmap constructs codeword#1* separately, and both are protected separately with the default code type. The default FEC of codeword#1 and codeword#1* can be the same or different, but they must be code types supported by all ONUs by default and can be configured in a certain way (such as OLT, network management, etc.). This method may also need to be filled with specific data (such as idle data) to ensure the information bit length of codeword#1 and codeword#1*.
[0157] Except for ePSBd, the remaining data can be protected by FEC in two cases:
[0158] i) If the rest of the entire physical frame (PHY) is protected by only one FEC, then FEC type = 0 can be set to indicate only FEC 0. In this case, FEC count is ignored (it can have a default value, such as 1). In method 1, the length of FECmap is 0. In method 2, codeword#1* does not exist, and length = 0. Similarly, FEC type = 1 can be set to indicate only FEC 1, and FEC type = 2 can be set to indicate only FEC 2.
[0159] ii) If the rest of the entire PHY frame is protected by more than one FEC, then FEC type = 3 can be set to indicate multiple FECs. In this case, codeword #1* must exist with a fixed (or configurable) length to ensure that all ONUs can decode it.
[0160] Step 3: The ONU uses the default FEC to translate codeword#1 (method 1), or translates codeword#1 and codeword#1* separately (method 2), and then knows the FEC structure, what kind of FEC is used for the remaining data of the physical frame, the number of segments in the FECmap, the FEC type, the starting point, and the number of FEC codewords (if any).
[0161] Step 4: The ONU uses the FEC type and FECmap (if any) to decode the remaining part of the physical frame.
[0162] The first to fourth possible implementation modes mentioned above are all for continuous transmission mode, and the method provided in the present application can also be used for downlink burst mode. Fig.18 is a schematic diagram of a downlink burst transmission provided by an embodiment; Fig.19 This is a structural diagram of a downlink burst structure provided by an embodiment; Fig. 20 This is a structural diagram of a downlink FS burst structure without FStailer provided by an embodiment; Fig.21 The diagram is a structural diagram of a downlink FS burst structure with a FS tailer provided by an embodiment.
[0163] refer to Figure 18-21It can be seen that when the burst mode is used to transmit data in the downstream direction, the framing process of the FS burst is the same as the framing process of the FS frame in the current ComTC standard. If the downstream FS burst structure does not have an FS tailer, the above-mentioned multi-FEC framing method of the continuous transmission mode is fully applicable. If the downstream FS burst structure has an FS tailer, the FSpayload and the FS tailer can be regarded as the payload of the downstream PHY burst to apply the above-mentioned multi-FEC framing method of the continuous transmission mode. For the sake of brevity, it will not be repeated here.
[0164] Fig. 22 is a schematic diagram of the structure of an encoding device provided by an embodiment, and the device can be configured in a first communication node, such as Fig. 22 As shown, the device includes: an acquisition module 10 and an encoding module 11.
[0165] An acquisition module 10 is configured to acquire a physical frame, the physical frame comprising a first data block and a second data block, the first data block comprising a flexible forward error correction FEC encoded code pattern;
[0166] The encoding module 11 is configured to encode the second data block according to a flexible FEC encoding code type.
[0167] The encoding device provided in this embodiment is used to implement the encoding method of the above embodiment. The implementation principle and technical effect of the encoding device provided in this embodiment are similar to those of the above embodiment, and will not be repeated here.
[0168] In one embodiment, the encoding module 11 is further configured to encode the first data block according to a dedicated FEC encoding code type.
[0169] In one embodiment, in combination Fig. 22 , Fig.23 It is a structural diagram of another encoding device provided by an embodiment, and the encoding device also includes: a communication module 12.
[0170] The communication module 12 is configured to send encoded data to the second communication node, the encoded data including a first data block and a second codeword, or including a first codeword and a second codeword, the first codeword is the encoded first data block, and the second codeword is the encoded second data block.
[0171] In one embodiment, the code pattern of the dedicated FEC encoding is the same as the code pattern of the flexible FEC encoding, or the code pattern of the dedicated FEC encoding is different from the code pattern of the flexible FEC encoding.
[0172] In one embodiment, the physical frame is a physical frame in a continuous transmission mode or a physical frame in a downlink burst mode.
[0173] In one embodiment, the physical frame is a physical frame in a continuous transmission mode, the first data block includes at least a physical synchronization block downlink PSBd frame header, and the second data block includes at least a portion of a framing sublayer FS frame;
[0174] The physical frame is a physical frame in a downlink burst mode, the first data block includes at least a PSBd frame header, and the second data block includes at least a portion of a downlink physical burst structure.
[0175] In one embodiment, the flexible FEC coding code type is indicated by the PSync data block of the PSBd frame header; or, the flexible FEC coding code type is indicated by the DS FEC data block and the reserved data block in the OC body data block of the PSBd frame header.
[0176] In one embodiment, the physical frame is a physical frame in a continuous transmission mode, the first data block includes at least a PSBd frame header and a FS frame header, and the second data block includes a FS frame payload;
[0177] The physical frame is a physical frame in a downlink burst mode, the first data block includes at least a PSBd frame header and a FS frame header in a downlink physical burst structure, and the second data block includes at least a FS frame payload in the downlink physical burst structure.
[0178] In one embodiment, the code type of the flexible FEC encoding is indicated by the HLend data block in the FS frame header.
[0179] In one embodiment, the physical frame is a physical frame in a continuous transmission mode, the first data block includes an extended physical synchronization block downlink ePSBd frame header and an FECmap structure, and the second data block includes a FS frame;
[0180] The physical frame is a physical frame in a downlink burst mode, the first data block includes an ePSBd frame header and an FECmap structure, and the second data block includes a downlink physical burst structure.
[0181] In one embodiment, the code type of the flexible FEC encoding is indicated by the FEC type data block and the FECmap structure in the ePSBd frame header.
[0182] In one embodiment, the code type of the flexible FEC encoding is supplemented by an FEC count data block in the ePSBd frame header.
[0183] Fig.24 is a schematic diagram of a decoding device provided by an embodiment, and the device can be configured in a second communication node, such as Fig.24 As shown, the device includes: a determination module 20 and a decoding module 21.
[0184] A determination module 20, configured to determine a code pattern of flexible forward error correction FEC encoding;
[0185] The decoding module 21 is configured to decode the second codeword of the encoded data according to the code type of the flexible FEC encoding to obtain a second data block.
[0186] The decoding device provided in this embodiment is used to implement the decoding method of the above embodiment. The implementation principle and technical effect of the decoding device provided in this embodiment are similar to those of the above embodiment, and will not be repeated here.
[0187] In one embodiment, in combination Fig.24 , Fig.25 It is a structural diagram of another decoding device provided by an embodiment, and the decoding device also includes: a communication module 22.
[0188] The communication module 22 is configured to receive coded data sent by the first communication node, where the coded data includes a first data block and a second codeword, or includes a first codeword and a second codeword.
[0189] In one embodiment, the determination module 20 is configured to determine the flexible FEC coding pattern according to the first data block; or, according to the dedicated FEC coding pattern, decode the first codeword to obtain the first data block; and determine the flexible FEC coding pattern according to the first data block.
[0190] In one embodiment, the code pattern of the dedicated FEC encoding is the same as the code pattern of the flexible FEC encoding, or the code pattern of the dedicated FEC encoding is different from the code pattern of the flexible FEC encoding.
[0191] In one embodiment, the coded data is coded data in a continuous transmission mode or coded data in a downlink burst mode.
[0192] In one embodiment, the coded data is coded data in a continuous transmission mode, the first data block includes at least a physical synchronization block downlink PSBd frame header, and the second data block includes at least a portion of a framing sublayer FS frame;
[0193] The coded data is coded data in a downlink burst mode, the first data block includes at least a PSBd frame header, and the second data block includes at least a portion of a downlink physical burst structure.
[0194] In one embodiment, the flexible FEC coding code type is indicated by the PSync data block of the PSBd frame header; or, the flexible FEC coding code type is indicated by the DS FEC data block and the reserved data block in the OC body data block of the PSBd frame header.
[0195] In one embodiment, the coded data is coded data in a continuous transmission mode, the first data block includes at least a PSBd frame header and a FS frame header, and the second data block includes a FS frame payload;
[0196] The coded data is coded data in downlink burst mode, the first data block includes at least a PSBd frame header and a FS frame header in a downlink physical burst structure, and the second data block includes at least a FS frame payload in a downlink physical burst structure.
[0197] In one embodiment, the code type of the flexible FEC encoding is indicated by the HLend data block in the FS frame header.
[0198] In one embodiment, the coded data is coded data in a continuous transmission mode, the first data block includes an extended physical synchronization block downlink ePSBd frame header and an FECmap structure, and the second data block includes a FS frame;
[0199] The coded data is coded data in a downlink burst mode, the first data block includes an ePSBd frame header and an FECmap structure, and the second data block includes a downlink physical burst structure.
[0200] In one embodiment, the code type of the flexible FEC encoding is indicated by the FEC type data block and the FECmap structure in the ePSBd frame header.
[0201] In one embodiment, the code type of the flexible FEC encoding is supplemented by an FEC count data block in the ePSBd frame header.
[0202] An embodiment of the present application also provides a communication node, including: a processor, the processor is used to implement the method provided in any embodiment of the present application when executing a computer program. Specifically, the communication node can be a first communication node or a second communication node. The first communication node includes: a processor, the processor is used to implement the encoding method provided in any embodiment of the present application when executing a computer program; the second communication node includes: a processor, the processor is used to implement the decoding method provided in any embodiment of the present application when executing a computer program. Exemplarily, the first communication node can be the OLT provided in any embodiment of the present application, and the second communication node can be the ONU provided in any embodiment of the present application.
[0203] Fig.26 is a schematic diagram of a structure of a communication node provided by an embodiment, such as Fig.26 As shown, the communication node includes a processor 60, a memory 61 and a communication interface 62; the number of processors 60 in the communication node can be one or more. Fig.26 A processor 60 is taken as an example; the processor 60, the memory 61, and the communication interface 62 in the communication node can be connected by a bus or other means. Fig.26In the example of connecting via a bus, a bus refers to one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus structures.
[0204] The memory 61, as a computer-readable storage medium, can be configured to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present application. The processor 60 executes at least one functional application and data processing of the communication node by running the software programs, instructions and modules stored in the memory 61, that is, implements the above method.
[0205] The memory 61 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 61 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 61 may include a memory remotely arranged relative to the processor 60, and these remote memories may be connected to the communication node via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a network, a mobile communication network, and combinations thereof.
[0206] The communication interface 62 may be configured to receive and send data.
[0207] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method provided in any embodiment of the present application is implemented.
[0208] The computer storage medium of the embodiment of the present application may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. The computer-readable storage medium includes (a non-exhaustive list): an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (Random Access Memory, RAM), a read-only memory (Read-Only Memory, ROM), an erasable programmable read-only memory (electrically erasable, programmable Read-Only Memory, EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it.
[0209] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, the data signal carrying a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0210] The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
[0211] Computer program code for performing the disclosed operations may be written in one or more programming languages or a combination of multiple programming languages, including object-oriented programming languages (such as Java, Smalltalk, C++, Ruby, Go), and conventional procedural programming languages (such as "C" language or similar programming languages). The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network (including a network (Local Area Network, LAN) or a wide area network (Wide Area Network, WAN)), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet).
[0212] It will be appreciated by those skilled in the art that the term user terminal covers any suitable type of wireless user equipment, such as a mobile phone, a portable data processing device, a portable web browser or a vehicle-mounted mobile station.
[0213] In general, various embodiments of the present application can be implemented in hardware or dedicated circuits, software, logic or any combination thereof. For example, some aspects can be implemented in hardware, while other aspects can be implemented in firmware or software that can be executed by a controller, microprocessor or other computing device, although the present application is not limited thereto.
[0214] Embodiments of the present application may be implemented by executing computer program instructions by a data processor of a mobile device, for example in a processor entity, or by hardware, or by a combination of software and hardware. The computer program instructions may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages.
[0215] The block diagram of any logic flow in the drawings of the present application may represent program steps, or may represent interconnected logic circuits, modules and functions, or may represent a combination of program steps and logic circuits, modules and functions. A computer program may be stored on a memory. The memory may be of any type suitable for the local technical environment and may be implemented using any suitable data storage technology, such as but not limited to read-only memory (ROM), random access memory (RAM), optical memory devices and systems (digital versatile discs DVD or CD discs), etc. Computer-readable media may include non-transient storage media. The data processor may be of any type suitable for the local technical environment, such as but not limited to a general-purpose computer, a special-purpose computer, a microprocessor, a digital signal processor (Digital Signal Processing, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a programmable logic device (Field-Programmable Gate Array, FPGA) and a processor based on a multi-core processor architecture.
Claims
1. A coding method, characterized in that: Applied to a first communication node, the method comprises: Acquire a physical frame, wherein the physical frame includes a first data block and a second data block, wherein the first data block includes a code pattern encoded by flexible forward error correction (FEC); The second data block is encoded according to the code type of the flexible FEC encoding.
2. The method according to claim 1, characterized in that: The method further comprises: The first data block is encoded according to a dedicated FEC encoding code pattern.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: Sending encoded data to a second communication node, the encoded data including the first data block and a second codeword, or including a first codeword and a second codeword, the first codeword being the encoded first data block, and the second codeword being the encoded second data block.
4. The method according to claim 2, characterized in that: The code pattern of the dedicated FEC encoding is the same as the code pattern of the flexible FEC encoding, or the code pattern of the dedicated FEC encoding is different from the code pattern of the flexible FEC encoding.
5. The method according to claim 1, characterized in that The physical frame is a physical frame in a continuous transmission mode or a physical frame in a downlink burst mode.
6. The method according to claim 5, characterized in that The physical frame is a physical frame in a continuous transmission mode, the first data block includes at least a physical synchronization block downlink PSBd frame header, and the second data block includes at least a part of a framing sublayer FS frame; The physical frame is a physical frame in a downlink burst mode, the first data block includes at least a PSBd frame header, and the second data block includes at least a portion of a downlink physical burst structure.
7. The method according to claim 6, characterized in that The flexible FEC coding code type is indicated by the PSync data block of the PSBd frame header; or, the flexible FEC coding code type is indicated by the DS FEC data block and the reserved data block in the OC body data block of the PSBd frame header.
8. The method according to claim 5, characterized in that The physical frame is a physical frame in a continuous transmission mode, the first data block includes at least a PSBd frame header and a FS frame header, and the second data block includes a FS frame payload; The physical frame is a physical frame in a downlink burst mode, the first data block includes at least a PSBd frame header and a FS frame header in a downlink physical burst structure, and the second data block includes at least a FS frame payload in the downlink physical burst structure.
9. The method according to claim 8, characterized in that The code type of the flexible FEC encoding is indicated by the HLend data block in the FS frame header.
10. The method according to claim 5, characterized in that The physical frame is a physical frame in a continuous transmission mode, the first data block includes an extended physical synchronization block downlink ePSBd frame header and an FECmap structure, and the second data block includes a FS frame; The physical frame is a physical frame in a downlink burst mode, the first data block includes an ePSBd frame header and an FECmap structure, and the second data block includes a downlink physical burst structure.
11. The method according to claim 10, characterized in that The code type of the flexible FEC encoding is jointly indicated by the FEC type data block in the ePSBd frame header and the FECmap structure.
12. The method according to claim 11, characterized in that The flexible FEC coding code type is supplemented by the FEC count data block in the ePSBd frame header.
13. A decoding method, characterized in that: Applied to a second communication node, the method comprises: Determine the code pattern of flexible forward error correction FEC encoding; According to the code type of the flexible FEC encoding, the second codeword of the encoded data is decoded to obtain a second data block.
14. The method according to claim 13, characterized in that The method further comprises: The encoded data sent by the first communication node is received, where the encoded data includes a first data block and the second codeword, or includes a first codeword and the second codeword.
15. The method according to claim 14, characterized in that The determining of the flexible FEC coding code type includes: Determine the flexible FEC coding code type according to the first data block; or, The first codeword is decoded according to the code type of the dedicated FEC encoding to obtain a first data block; and the code type of the flexible FEC encoding is determined according to the first data block.
16. The method according to claim 15, characterized in that The code pattern of the dedicated FEC encoding is the same as the code pattern of the flexible FEC encoding, or the code pattern of the dedicated FEC encoding is different from the code pattern of the flexible FEC encoding.
17. The method according to claim 14, characterized in that The coded data is coded data in a continuous transmission mode or coded data in a downlink burst mode.
18. The method according to claim 17, characterized in that The coded data is coded data in a continuous transmission mode, the first data block at least includes a physical synchronization block downlink PSBd frame header, and the second data block at least includes a part of a framing sublayer FS frame; The coded data is coded data in a downlink burst mode, the first data block includes at least a PSBd frame header, and the second data block includes at least a portion of a downlink physical burst structure.
19. The method according to claim 18, characterized in that The flexible FEC coding code type is indicated by the PSync data block of the PSBd frame header; or, the flexible FEC coding code type is indicated by the DS FEC data block and the reserved data block in the OC body data block of the PSBd frame header.
20. The method according to claim 17, characterized in that The coded data is coded data in a continuous transmission mode, the first data block includes at least a PSBd frame header and a FS frame header, and the second data block includes a FS frame payload; The coded data is coded data in a downlink burst mode, the first data block includes at least a PSBd frame header and a FS frame header in a downlink physical burst structure, and the second data block includes at least a FS frame payload in the downlink physical burst structure.
21. The method according to claim 20, characterized in that The code type of the flexible FEC encoding is indicated by the HLend data block in the FS frame header.
22. The method according to claim 17, characterized in that The coded data is coded data in a continuous transmission mode, the first data block includes an extended physical synchronization block downlink ePSBd frame header and an FECmap structure, and the second data block includes an FS frame; The coded data is coded data in a downlink burst mode, the first data block includes an ePSBd frame header and an FECmap structure, and the second data block includes a downlink physical burst structure.
23. The method according to claim 22, characterized in that The code type of the flexible FEC encoding is jointly indicated by the FEC type data block in the ePSBd frame header and the FECmap structure.
24. The method according to claim 23, characterized in that The flexible FEC coding code type is supplemented by the FEC count data block in the ePSBd frame header.
25. A first communication node, characterized in that: include: processor; The processor is used to implement the encoding method according to any one of claims 1 to 12 when executing a computer program.
26. A second communication node, characterized in that: It comprises: a processor; the processor is used to implement the decoding method as described in any one of claims 13-24 when executing a computer program.
27. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, it implements the encoding method as described in any one of claims 1 to 12, or implements the decoding method as described in any one of claims 13 to 24.
