Uplink FEC encoding and decoding method, device and optical network equipment
By adjusting the LDPC encoding method with different licensing granularities, the problems of incomplete uplink FEC encoding and bandwidth waste in 50G PON were solved, achieving complete transmission of uplink data and compatibility with downlink encoding.
Patent Information
- Application Number
- CN202110019716.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-07
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2041-01-07
AI Technical Summary
The existing technology does not specify the uplink FEC encoding method for 50G PON, which leads to incomplete uplink data transmission and bandwidth waste, as well as poor compatibility with downlink encoding.
By adopting LDPC encoding and adjusting the grant granularity, the data bits and parity bits of the uplink FEC codeword are divisible, ensuring the integrity of each FEC codeword and reducing bandwidth waste when reserving time slots in the OLT, while also being compatible with downlink encoding.
It achieves the integrity and high bit rate of uplink FEC encoding, reduces bandwidth waste, and improves the compatibility of uplink and downlink encoding.
Smart Images

Figure CN114745617B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical network communication technology, and in particular to an uplink FEC encoding and decoding method, device and optical network equipment. Background Art
[0002] With the rapid development of broadband access technology, passive optical network (PON) has been widely popularized. As the demand for bandwidth by users continues to increase sharply, 10G PON has entered the stage of large-scale deployment, and the standards for the next generation of PON have been gradually specified and improved. For example, the next generation of PON in the International Telecommunication Union-Telecommunication Sector (ITU-T) is 50GPON. Among various PONs, due to the need for link budget, forward error correction (FEC) coding is a mandatory function starting from 10G PON. By introducing redundant coding, the transmission performance of PON can be guaranteed when certain bit errors occur during transmission.
[0003] In the related art, the method of downstream FEC encoding in 50G PON is specified. For example, the FEC encoding method selected in 50G PON is low-density parity check code (LDPC). Considering the continuity of the downstream FEC codeword, the standard of 50G PON specifies that the length of the downstream FEC codeword is 17280 bits, the LDPC codeword data bits are 14592 bits, and the LDPC codeword check bits are 2688 bits.
[0004] Since PON involves both upstream and downstream transmission, the related art only involves a downstream FEC encoding method, so it is necessary to provide an upstream FEC encoding method. Summary of the invention
[0005] The present application provides an uplink FEC encoding and decoding method, device and optical network equipment, which are used to provide an uplink FEC encoding method.
[0006] In a first aspect, the present application provides a method for uplink FEC encoding, which is applied to a high-speed passive optical network (HSP), wherein the uplink rate of the HSP is higher than 10G, and the method comprises: obtaining an authorization length of an uplink time slot, wherein the authorization length is equal to the product of the number of authorizations of the uplink time slot and the authorization granularity, and the authorization granularity is the authorization granularity supported by the device to which the uplink time slot belongs; based on the authorization length and the LDPC encoding method, obtaining an FEC codeword for uplink data, wherein the FEC codeword comprises an LDPC codeword data bit, and in the LDPC encoding method, the LDPC codeword data bit is divisible by the authorization granularity and / or N times the LDPC codeword data bit is divisible by the authorization granularity, and N is a positive integer greater than or equal to 1.
[0007] The scheme shown in the present application, the method of uplink FEC encoding can be applied to HSP, the method can be executed by an encoding device, and the encoding device can determine the authorization length based on the number of authorizations obtained from the optical line terminal (OLT). Then, the FEC codeword of the uplink data is obtained by encoding using the authorization length and the LDPC encoding method. The FEC codeword includes LDPC codeword data bits, and the LDPC codeword data bits in the LDPC encoding method are divisible by the authorization granularity and / or N times the LDPC codeword data bits are divisible by the authorization granularity, and N is a positive integer greater than or equal to 1. In this way, there will be a situation where the authorization length is equal to the length of the LDPC codeword data bit of a positive integer multiple, so in these cases, each FEC codeword of the uplink data is a complete FEC codeword, that is, when the LDPC codeword check bit is transmitted, the uplink data of the specified LDPC codeword data bit length is transmitted. From the overall point of view, the code rate is relatively high, so both an uplink FEC encoding method is provided and the overall code rate is relatively high.
[0008] In a possible implementation, the FEC codeword also includes an LDPC codeword check bit, and in the LDPC encoding method, the LDPC codeword check bit is divisible by the authorized granularity and / or M times the LDPC codeword check bit is divisible by the authorized granularity, where M is a positive integer greater than or equal to 1.
[0009] In the solution shown in the present application, the FEC codeword also includes an LDPC codeword check bit, and in the LDPC encoding method, the LDPC codeword check bit is divisible by the authorized granularity and / or M times the LDPC codeword check bit is divisible by the authorized granularity, and M is a positive integer greater than or equal to 1. In this way, the LDPC codeword check bit in each FEC codeword is an integer number of authorized granularities, or the LDPC codeword check bits in multiple FEC codewords are an integer number of authorized granularities as a whole, which facilitates the OLT to reserve the time slot occupied by the LDPC codeword check bit for the ONU.
[0010] In a possible implementation, based on the authorization length and the LDPC encoding method, an FEC codeword for uplink data is obtained, including: based on the authorization length, LDPC codeword data bits in the LDPC encoding method, and a mother code matrix corresponding to the LDPC encoding method, an FEC codeword for uplink data is obtained.
[0011] In the scheme shown in the present application, the ONU obtains the mother code matrix of the LDPC encoding method of the downlink encoding as the mother code matrix of the LDPC encoding method of the uplink encoding. According to the authorized length, the number of FEC codewords for the uplink data is determined. In each FEC codeword, if the length of the uplink data truncated is s, s bits of 0 are padded in the uplink data. Then the uplink data padded with 0 is encoded with the mother code matrix to obtain the LDPC codeword data bits and LDPC codeword check bits in the FEC codeword, and then the LDPC codeword check bits in the FEC codeword are clipped to obtain the clipped FEC codeword for the uplink data. In this way, the FEC codeword for the uplink data can be obtained.
[0012] In a possible implementation, HSP is a 50G passive optical network PON, the LDPC codeword data bits in the LDPC encoding method are 1760 bytes, and the LDPC codeword check bits in the LDPC encoding method are 320 bytes; when the uplink rate of 50G PON is 12.5G, the corresponding authorization granularity is 20 bytes; when the uplink rate of 50G PON is 25G, the corresponding authorization granularity is 40 bytes; when the uplink rate of 50GPON is 50G, the corresponding authorization granularity is 80 bytes.
[0013] Thus, when the LDPC coding method of uplink coding follows the LDPC coding method of downlink coding, the LDPC codeword data bits are 1824 bytes, the LDPC codeword check bits are 336 bytes, and the code rate is 1824 / (1824+336)=84.4. After the LDPC codeword data bits and the LDPC codeword check bits are clipped, the LDPC codeword data bits in the LDPC coding method of uplink coding are 1760 bytes, the LDPC codeword check bits in the LDPC coding method of uplink coding are 320 bytes, and the code rate is 1760 / (1760+320)=84.6, which is close to the LDPC coding method of downlink coding, and the LDPC codeword check bits and LDPC codeword data bits are integer authorization granularities, and there may be an authorization length equal to the length of an integer number of LDPC codeword data bits, so that when transmitting the same amount of LDPC codeword check bits, the uplink data can be transmitted to the maximum extent possible.
[0014] In a possible implementation, N times the LDPC codeword data bits are divisible by the authorized granularity, M times the LDPC codeword check bits are divisible by the authorized granularity, and the LDPC encoding method is the LDPC encoding method of the downlink encoding corresponding to the HSP.
[0015] In this way, the uplink LDPC coding method follows the downlink LDPC coding method, which can make the uplink coding and the downlink coding more compatible.
[0016] In a possible implementation, HSP is 50G PON, the LDPC codeword data bits in the LDPC encoding method are 1824 bytes, N is 2, the LDPC codeword check bits in the LDPC encoding method are 336 bytes, and M is 4; when the uplink rate of 50G PON is 12.5G, the corresponding authorization granularity is 16 bytes; when the uplink rate of 50G PON is 25G, the corresponding authorization granularity is 32 bytes; when the uplink rate of 50G PON is 50G, the corresponding authorization granularity is 64 bytes.
[0017] In this way, based on the existing LDPC coding method for downlink coding, only the authorization granularity can be adjusted to maximize the transmission of uplink data when transmitting the same amount of LDPC code word check bits, and only the authorization granularity can be adjusted to make the authorization granularity divisible by 4 times the LDPC code word check bits, so when the OLT reserves the LDPC code word check bits, it can reserve them according to an integer number of time slots to reduce bandwidth waste. Therefore, with minimal modification, the multiplexing logic design of downlink coding and uplink coding can be realized to the greatest extent.
[0018] In a possible implementation, HSP is 50G PON, the LDPC codeword data bits in the LDPC encoding method are 1824 bytes, N is 1, the LDPC codeword check bits in the LDPC encoding method are 336 bytes, and M is 1; when the uplink rate of 50G PON is 12.5G, the corresponding authorization granularity is 4 bytes; when the uplink rate of 50G PON is 25G, the corresponding authorization granularity is 8 bytes; when the uplink rate of 50G PON is 50G, the corresponding authorization granularity is 16 bytes.
[0019] In this way, based on the existing LDPC coding method for downlink coding, only the authorization granularity can be adjusted to maximize the uplink data transmission when transmitting the same amount of LDPC code word check bits, and only the authorization granularity can be adjusted to make the authorization granularity divisible by the LDPC code word check bits, so when the OLT reserves the LDPC code word check bits, it can reserve them according to an integer number of time slots to reduce bandwidth waste. Therefore, with minimal modification, the multiplexing logic design of downlink coding and uplink coding can be realized to the greatest extent.
[0020] In the second aspect, the present application provides a method for uplink FEC decoding, which is applied to HSP, and the uplink rate of HSP is higher than 10G. The method includes: receiving an FEC codeword for uplink data, wherein the FEC codeword includes an LDPC codeword data bit; obtaining uplink data based on the FEC codeword, the LDPC decoding method and the authorization length corresponding to the uplink time slot, wherein the authorization length is equal to the product of the authorization number of the uplink time slot and the authorization granularity, and in the LDPC decoding method, the LDPC codeword data bit is divisible by the authorization granularity and / or N times the LDPC codeword data bits are divisible by the authorization granularity, and N is a positive integer greater than or equal to 1.
[0021] The scheme shown in the present application, the method of uplink FEC decoding can be applied to HSP, and the method can be implemented by OLT, OLT can receive FEC codewords of uplink data, and then OLT can obtain the number of authorizations of the time slots allocated by OLT to ONU and the authorization granularity of ONU, and multiply the number of authorizations by the authorization granularity to obtain the authorization length. OLT can determine the FEC codeword sent by ONU based on the authorization length allocated by OLT to ONU, and then use LDPC decoding method to decode the FEC codeword sent by ONU to obtain the uplink data sent by ONU. In the LDPC decoding method, the LDPC codeword data bits are divisible by the authorization granularity and / or N times the LDPC codeword data bits are divisible by the authorization granularity, and N is a positive integer greater than or equal to 1. In this way, corresponding to the uplink FEC encoding method, a method of uplink FEC decoding is provided.
[0022] In a possible implementation, the FEC codeword also includes an LDPC codeword check bit, and in the LDPC decoding method, the LDPC codeword check bit is divisible by the authorized granularity and / or M times the LDPC codeword check bit is divisible by the authorized granularity, where M is a positive integer greater than or equal to 1.
[0023] In the solution shown in the present application, the FEC codeword also includes an LDPC codeword check bit, and in the LDPC encoding method, the LDPC codeword check bit is divisible by the authorized granularity and / or M times the LDPC codeword check bit is divisible by the authorized granularity, and M is a positive integer greater than or equal to 1. In this way, the LDPC codeword check bit in each FEC codeword is an integer number of authorized granularities, or the LDPC codeword check bits in multiple FEC codewords are an integer number of authorized granularities as a whole, which facilitates the OLT to reserve the time slot occupied by the LDPC codeword check bit for the ONU.
[0024] In a possible implementation, uplink data is obtained based on an FEC codeword, an LDPC decoding method, and an authorization length corresponding to an uplink time slot, including: obtaining uplink data based on an FEC codeword, LDPC codeword data bits in an LDPC decoding method, a mother code matrix corresponding to the LDPC decoding method, and an authorization length corresponding to an uplink time slot.
[0025] In the solution shown in the present application, the OLT can determine the FEC codeword sent by the ONU based on the authorization length assigned by the OLT to the ONU, and then the OLT obtains the mother code matrix corresponding to the LDPC decoding method of the downlink decoding, and determines it as the mother code matrix corresponding to the LDPC decoding method of the uplink decoding. Each FEC codeword is checked to obtain the uplink data. In this way, the downlink data in the FEC codeword can be obtained.
[0026] In a possible implementation, HSP is a 50G passive optical network PON, the LDPC codeword data bits in the LDPC decoding method are 1760 bytes, and the LDPC codeword check bits in the LDPC decoding method are 320 bytes; when the uplink rate of 50G PON is 12.5G, the corresponding authorization granularity is 20 bytes; when the uplink rate of 50G PON is 25G, the corresponding authorization granularity is 40 bytes; when the uplink rate of 50GPON is 50G, the corresponding authorization granularity is 80 bytes.
[0027] In a possible implementation, N times the LDPC codeword data bits are divisible by the authorized granularity, M times the LDPC codeword check bits are divisible by the authorized granularity, and the LDPC decoding method is the LDPC decoding method for downlink decoding corresponding to the HSP.
[0028] In this way, the uplink LDPC decoding method can follow the downlink LDPC decoding method, which can make the compatibility of uplink decoding and downlink decoding better.
[0029] In a possible implementation, HSP is 50G PON, the LDPC codeword data bits in the LDPC decoding method are 1824 bytes, N is 2, the LDPC codeword check bits in the LDPC decoding method are 336 bytes, and M is 4; when the uplink rate of 50G PON is 12.5G, the corresponding authorization granularity is 16 bytes; when the uplink rate of 50G PON is 25G, the corresponding authorization granularity is 32 bytes; when the uplink rate of 50G PON is 50G, the corresponding authorization granularity is 64 bytes.
[0030] In this way, based on the existing LDPC decoding method for downlink decoding, only the authorization granularity is adjusted, so that the multiplexing logic design of downlink decoding and uplink decoding can be realized to the greatest extent.
[0031] In a possible implementation, HSP is 50G PON, the LDPC codeword data bits in the LDPC decoding method are 1824 bytes, N is 1, the LDPC codeword check bits in the LDPC decoding method are 336 bytes, and M is 1; when the uplink rate of 50G PON is 12.5G, the corresponding authorization granularity is 4 bytes; when the uplink rate of 50G PON is 25G, the corresponding authorization granularity is 8 bytes; when the uplink rate of 50G PON is 50G, the corresponding authorization granularity is 16 bytes.
[0032] In this way, based on the existing LDPC decoding method for downlink decoding, only the authorization granularity is adjusted, so that the multiplexing logic design of downlink decoding and uplink decoding can be realized to the greatest extent.
[0033] In a third aspect, the present application provides an uplink FEC encoding device, the device comprising one or more modules, and the one or more modules are used to implement the uplink FEC encoding method described in the first aspect above.
[0034] In a fourth aspect, the present application provides an uplink FEC decoding device, the device comprising one or more modules, and the one or more modules are used to implement the uplink FEC decoding method described in the second aspect above.
[0035] In a fifth aspect, the present application provides an optical network device for uplink FEC encoding, the optical network device comprising a processor and a communication interface, wherein: the communication interface is used for the authorized number of uplink time slots, and the processor is used to implement the encoding processing in the method of the first aspect and its possible implementation methods.
[0036] In a sixth aspect, the present application provides a computer-readable storage medium, which stores computer instructions. When the computer instructions in the computer-readable storage medium are executed by an optical network device, the optical network device executes the method of the first aspect and its possible implementation methods, or the optical network device implements the functions of the device of the above-mentioned third aspect and its possible implementation methods.
[0037] In a seventh aspect, the present application provides a computer program product comprising instructions, which, when executed on an optical network device, enables the optical network device to execute the method of the above-mentioned first aspect and its possible implementation methods, or enables the optical network device to implement the functions of the apparatus of the above-mentioned third aspect and its possible implementation methods.
[0038] In an eighth aspect, the present application provides an optical network device for uplink FEC decoding, the optical network device comprising a processor and a communication interface, wherein: the communication interface is used to receive FEC codewords for uplink data, and the processor is used to implement the decoding processing in the method of the second aspect and its possible implementation methods.
[0039] In a ninth aspect, the present application provides a computer-readable storage medium storing computer instructions. When the computer instructions in the computer-readable storage medium are executed by an optical network device, the optical network device executes the method of the second aspect and its possible implementation methods, or the optical network device implements the functions of the apparatus of the above-mentioned fourth aspect and its possible implementation methods.
[0040] In the tenth aspect, the present application provides a computer program product comprising instructions, which, when executed on an optical network device, enables the optical network device to execute the method of the second aspect and its possible implementation, or enables the optical network device to implement the functions of the apparatus of the fourth aspect and its possible implementation.
[0041] In an eleventh aspect, the present application provides a system for uplink FEC encoding and downlink FEC decoding, the system comprising the uplink FEC encoding device as described in the third aspect and the uplink FEC decoding device as described in the fourth aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 is a schematic diagram of downstream transmission in a PON provided by an exemplary embodiment of the present application;
[0043] Figure 2 is a schematic diagram of upstream transmission in a PON provided by an exemplary embodiment of the present application;
[0044] Figure 3 is a structural schematic diagram of an optical network device provided by an exemplary embodiment of the present application;
[0045] Figure 4 It is a flowchart of an uplink FEC encoding method provided by an exemplary embodiment of the present application;
[0046] Figure 5 is a schematic diagram of an FEC codeword provided by an exemplary embodiment of the present application;
[0047] Figure 6 is a schematic diagram of FEC encoding provided by an exemplary embodiment of the present application;
[0048] Figure 7 is a comparative schematic diagram of bit error rate performance provided by an exemplary embodiment of the present application;
[0049] Figure 8 is a schematic diagram of an FEC codeword provided by an exemplary embodiment of the present application;
[0050] Fig. 9 is a schematic diagram of the structure of an OLT provided by an exemplary embodiment of the present application;
[0051] Fig.10 It is a flowchart of a method for uplink FEC decoding provided by an exemplary embodiment of the present application;
[0052] Fig.11 It is a structural diagram of an uplink FEC encoding device provided by an exemplary embodiment of the present application;
[0053] Fig.12 It is a structural diagram of an uplink FEC decoding device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0055] In order to facilitate the understanding of the embodiments of the present application, the concepts of the terms involved are first introduced below:
[0056] 1. PON downlink transmission process: The optical line terminal (OLT) divides one downlink data into N paths through a splitter, and sends them to all optical network units (ONUs) or optical network terminals (ONTs) connected to the OLT at the same time. The ONUs or ONTs selectively receive the downlink data with the same number as themselves and discard other data. In this embodiment of the application, ONU is used as an example for explanation. Figure 1 As shown, the OLT is connected to three ONUs (ONU1, ONU2 and ONU3), the data of ONU1 is data 1, the data of ONU2 is data 2, the data of ONU3 is data 3, ONU1 only receives data 1, ONU2 only receives data 2, and ONU3 only receives data 3. Since data can be transmitted continuously during downstream transmission, the downstream transmission in PON is a continuous mode.
[0057] 2. PON upstream transmission process: Multiple ONUs use time division multiple access (TDMA) technology for upstream transmission. The principle is: OLT divides the upstream transmission time into several time slots Ti (i=1, 2, 3, ... 32, ...), which can be called upstream time slots. In each time slot, only one ONU is arranged to send data to the OLT. Each ONU sends data in sequence according to the order specified by the OLT, so as to avoid conflicts between ONUs. Each ONU transmits optical signals only in the time slot allocated to itself by the OLT, and the transmitter must be turned off in the remaining time slots. Otherwise, multiple ONUs transmitting optical signals at the same time will cause conflicts, making it impossible for the OLT to correctly receive the ONU data, and the entire PON service will be completely interrupted. Figure 2 As shown, the OLT is connected to three ONUs (ONU1, ONU2, and ONU3), the data of ONU1 is data 1, the data of ONU2 is data 2, and the data of ONU3 is data 3. ONU1 sends data 1 to the OLT, ONU2 sends data 2 to the OLT, and ONU3 sends data 3 to the OLT. Since each ONU transmits data in different time slots during upstream transmission, the upstream transmission in the PON is in burst mode.
[0058] 3. HSP refers to a PON with a rate higher than 10G, which includes both upstream and downstream rates. For example, HSP is 50GPON, 25G PON, etc. Here, a rate higher than 10G means that the amount of data transmitted per second is higher than 10G bits.
[0059] 4. FEC coding refers to adding redundant error correction codes to the transmitted data. Under certain conditions, the transmission errors can be automatically corrected by decoding. In HSP, the FEC coding method can include the LDPC coding method. When the FEC coding uses the LDPC coding method, the FEC codeword includes the LDPC codeword data bits and the LDPC codeword check bits.
[0060] 5. Uplink time slot refers to the time slot allocated by OLT to ONU each time. Uplink time slot has a basic unit, which is the authorization granularity.
[0061] 6. The authorization length is equal to the product of the number of authorizations for the upstream time slots and the authorization granularity. Since the number of authorizations for the upstream time slots is an integer, the authorization length must be an integer multiple of the authorization granularity. It should be noted here that the authorization length given by the OLT to the ONU is used to transmit upstream data, not for transmitting the overhead part. The overhead part refers to the LDPC codeword check bits mentioned later. The LDPC codeword check bits are transmitted on the time slots reserved by the OLT for the ONU by default. For example, the OLT allocates time slots 0-80 to the ONU, and time slots 81-100 are used by the ONU to transmit the LDPC codeword check bits. Time slots 81-100 will no longer be allocated to other ONUs.
[0062] In the related art, a method for downstream FEC encoding in 50G PON is specified, but an upstream FEC encoding method is not specified, so it is necessary to provide an upstream FEC encoding method.
[0063] In addition, considering the compatible design of upstream and downstream transmission, the upstream FEC coding needs to refer to the downstream FEC coding. In one way, in order to simplify the FEC coding design of ONU and OLT, the upstream FEC coding can follow the downstream FEC coding. The downstream FEC coding adopts LDPC coding. The FEC codeword obtained by LDPC coding is 17280 bits, that is, 2160 bytes. The LDPC codeword data bits are 14592 bits, that is, 1824 bytes. The LDPC codeword check bits are 336 bytes. 50G PON has multiple upstream rates, namely 12.5G, 25G and 50G, and the corresponding authorization granularities are 20 bytes, 40 bytes and 80 bytes respectively. The LDPC codeword data bits are 1824 bytes, which cannot be divided by 20 bytes, 40 bytes and 80 bytes. In this way, the LDPC codeword selected in this way may have incomplete FEC codewords during the upstream data transmission process, and bandwidth will be wasted in some cases. For example, the number of upstream time slots authorized by the OLT to a certain ONU is 22, the authorization granularity is 80 bytes, the authorization length of the upstream time slot is equal to 1760 bytes, the LDPC codeword data bits are 1824 bytes, and each FEC codeword includes at most 1824 bytes of upstream data. Since the authorization length is 1760 bytes, the ONU can transmit at most 1760 bytes of upstream data this time. The data length sent by the ONU is (1760 bytes + 336 bytes). It can be seen that before sending 1824 bytes of upstream data, 336 bytes of LDPC codeword check bits need to be sent, and the code rate is 1760 / (1760+336)=83.9%. For another example, the number of upstream time slots authorized by the OLT to a certain ONU is 23, the authorization granularity is 80 bytes, the authorization length of the upstream time slot is equal to 1840 bytes, the LDPC codeword data bits are 1824 bytes, each FEC codeword includes at most 1824 bytes of upstream data, and the data length sent by the ONU is (1824 bytes + 336 bytes) + (16 bytes + 336 bytes). It can be seen that when sending 16 bytes of upstream data in the second FEC codeword, 336 bytes of LDPC codeword check bits need to be sent, and the code rate is 1824 + 16 / (1824 bytes + 336 bytes) + (16 bytes + 336 bytes) = 73.2%. Since no matter how many LDPC codeword data bits are included in the FEC codeword, 336 bytes of LDPC codeword check bits need to be sent in the FEC codeword, when the LDPC codeword data bits cannot be divided by the authorization granularity, it may cause a certain amount of bandwidth waste.
[0064] Based on the above problems, the present application provides an uplink FEC encoding method, which can be performed by an encoding device. The encoding device can be a software program installed in an optical network device, or a hardware device, such as an optical network device, which is an ONU or ONT.
[0065] When the encoding device is a hardware device, such as Figure 3 As shown, a schematic diagram of the structure of an optical network device is provided. The optical network device includes a communication interface 301 and a processor 302.
[0066] The processor 302 may be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), a graphics processing unit (GPU), or one or more integrated circuits. The processor 302 may also be a digital signal processor (DSP), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. In an embodiment of the present application, the processor 302 may be used to implement FEC encoding processing.
[0067] The communication interface 301 is used to implement communication between the optical network device and other devices. In the embodiment of the present application, the communication interface 301 can be used to receive the authorized number of uplink time slots.
[0068] The following will be combined Figure 4 The method for uplink FEC encoding provided in the embodiment of the present application is described, and the method can be executed by the ONU. Figure 4 The process of ONU encoding upstream data is described in Figure 4 As shown, the processing flow of this method is as follows:
[0069] Step 401, obtaining the authorization length of the uplink time slot, wherein the authorization length is equal to the product of the number of authorizations of the uplink time slot and the authorization granularity, and the authorization granularity is the authorization granularity supported by the device to which the uplink time slot belongs.
[0070] The uplink time slot is used for ONU to transmit uplink data to OLT. Each ONU transmits uplink data only in the uplink time slot allocated by OLT. The authorization length is equal to the product of the number of authorizations of the uplink time slot and the authorization granularity. The authorization granularity is the authorization granularity supported by the device to which the uplink time slot belongs. The number of authorizations can also be called the authorization size, which can be called grantsize in English.
[0071] In this embodiment, the OLT can allocate uplink time slots to all ONUs connected to the OLT according to the time slot allocation rules. Since the bandwidth requirements of each ONU are different, the uplink time slots allocated to each ONU are different. The allocated uplink time slots can include the starting point of the uplink time slot and the authorized number of the uplink time slots.
[0072] After the ONU obtains the authorized number of the upstream time slot, it can obtain the stored authorization granularity. When the ONU upstream rate is different, the authorization granularity of the ONU is different, and the upstream rate is proportional to the authorization granularity. The ONU can multiply the authorization number by the authorization granularity to obtain the authorization length of the upstream time slot. For example, if the HSP is 50G PON, the authorization granularity of 50G PON is 80 bytes, the authorization number is 22, and the authorization length is 1760 bytes.
[0073] Step 402, based on the authorized length and the LDPC encoding method, obtain the FEC codeword of the uplink data, wherein the FEC codeword includes LDPC codeword data bits, and in the LDPC encoding method, the LDPC codeword data bits are divisible by the authorized granularity and / or N times the LDPC codeword data bits are divisible by the authorized granularity, and N is a positive integer greater than or equal to 1.
[0074] Among them, LDPC coding is a type of FEC coding, which can be used for uplink transmission coding. After the data is LDPC coded, the FEC codeword of the data is obtained. Figure 5 As shown, each FEC codeword includes an LDPC codeword data bit and an LDPC codeword check bit, and the length of the LDPC codeword check bit in each FEC codeword is the same. Figure 5 Two FEC codewords are shown in the figure. The LDPC codeword data bits of FEC codeword 1 are 1760 bytes, the LDPC codeword data bits of FEC codeword 2 are 160 bytes, and the LDPC codeword check bits of FEC codeword 1 and FEC codeword 2 are both 320 bytes. In the LDPC encoding method, it is stipulated that the LDPC codeword data bits are divisible by the authorized granularity and / or N times the LDPC codeword data bits are divisible by the authorized granularity, and N is a positive integer greater than or equal to 1. Here, the uplink data refers to the data transmitted by the ONU to the OLT, which can be the service data of the ONU or other data.
[0075] In this embodiment, the ONU uses the authorization length to determine the uplink data transmitted by the ONU this time. Then, the LDPC encoding method is used to encode the uplink data to obtain the FEC codeword of the uplink data. For the specific encoding process, see the LDPC encoding principle.
[0076] Exemplarily, when the LDPC codeword data bits are divisible by the authorized granularity, or when N times the LDPC codeword data bits are divisible by the authorized granularity, it is possible that the authorized length is equal to the length of the LDPC codeword data bits of a positive integer multiple. In these cases, after encoding the uplink data by the LDPC encoding method, one or more complete FEC codewords for the uplink data are obtained, each of which includes the LDPC codeword data bits and the LDPC codeword check bits for the uplink data, and the sum of the lengths of the LDPC codeword data bits in all FEC codewords is equal to the authorized length. A complete FEC codeword refers to an FEC codeword whose length of the LDPC codeword data bits is equal to the specified LDPC codeword data bit length. In this way, since the LDPC codeword check bits need to be transmitted when each FEC codeword is transmitted, when the length of the LDPC codeword data bits in the FEC codeword is equal to the specified length of the LDPC codeword data bits, it is equivalent to transmitting the maximum amount of uplink data that can be transmitted for each FEC codeword, so in this way, more uplink data can be transmitted.
[0077] In addition, if the authorization length is less than the length of the LDPC codeword data bits in the LDPC encoding method, then after encoding the uplink data through the LDPC encoding method, an FEC codeword can be obtained, and the one FEC codeword includes the LDPC codeword data bits and the LDPC codeword check bits of the uplink data. In this way, since the authorization length is less than the length of the LDPC codeword data bits in the LDPC encoding method, 0s are added to the front of the uplink data during encoding, so that the amount of uplink data after the 0s are added is equal to the length of the LDPC codeword data bits specified in the LDPC encoding method. After the encoding is completed, the added 0s are deleted, so the amount of uplink data transmitted is less than the specified length of the LDPC codeword data bits, and then the length of the LDPC codeword data bits in the one FEC codeword is less than the specified length of the LDPC codeword data bits.
[0078] In addition, if the authorization length is greater than the length of the LDPC codeword data bits in the LDPC encoding method, at least one complete FEC codeword can be obtained after encoding the uplink data through the LDPC encoding method, and each FEC codeword includes the LDPC codeword data bits and the LDPC codeword check bits of the uplink data. In the complete FEC codeword, the length of the LDPC codeword data bits is equal to the length of the LDPC codeword data bits specified in the LDPC encoding method. In the incomplete FEC codeword, 0s are added to the front of the uplink data during encoding, so that the amount of uplink data after the 0s are added is equal to the length of the LDPC codeword data bits specified in the LDPC encoding method. In this way, the amount of uplink data after encoding is equal to the authorization length, so the length of the LDPC codeword data bits in the incomplete FEC codeword is less than the length of the LDPC codeword data bits in the LDPC encoding method.
[0079] Optionally, the FEC encoding process can be implemented at the transmission convergence (TC) layer of the ONU. After the FEC codeword of the uplink data is obtained by encoding at the TC layer, it is sent to the physical layer of the ONU for processing. After being processed by the physical layer of the ONU, it is sent to the OLT through the optical fiber.
[0080] Thus, in the embodiment of the present application, the LDPC encoding method of the uplink encoding specifies that the LDPC codeword data bits are divisible by the authorized granularity and / or N times the LDPC codeword data bits are divisible by the authorized granularity, and there will be a situation where the authorized length is equal to a positive integer multiple of the length of the LDPC codeword data bits. Therefore, in these cases, each FEC codeword of the uplink data is a complete FEC codeword, that is, when the LDPC codeword check bits are transmitted, the uplink data of the specified LDPC codeword data bit length is transmitted. Overall, the code rate is relatively high, so that an uplink FEC encoding method is provided and the overall code rate is relatively high.
[0081] As follows Figure 4 The process shown is further explained:
[0082] In a possible implementation, the relationship between the LDPC codeword check bit and the authorization granularity in the LDPC encoding method can be:
[0083] 1. In the LDPC encoding method, the LDPC codeword check bit is divisible by the authorized granularity. For example, if the authorized granularity is 80 bytes and the LDPC codeword check bit is 320 bytes, the OLT can reserve 4 time slots for the ONU. In this way, the LDPC codeword check bit in each FEC codeword is an integer number of the authorized granularity, which makes it convenient for the OLT to reserve the time slot occupied by the LDPC codeword check bit for the ONU.
[0084] 2. M times the LDPC codeword check bits are divisible by the authorized granularity, where M is a positive integer greater than or equal to 1. For example, M is 4, the authorized granularity is 64 bytes, and the LDPC codeword check bits are 336 bytes. Although 336 cannot be divided by 64, 4 times 336 can be divided by 64. In this way, the LDPC codeword check bits in the 4 FEC codewords are also an integer number of authorized granularities. Overall, the OLT can reserve an integer number of time slots for the ONU to transmit the LDPC codeword check bits.
[0085] 3. In the LDPC encoding mode, the LDPC code word check bit is divisible by the authorized granularity and M times the LDPC code word check bit is divisible by the authorized granularity, where M is a positive integer greater than or equal to 1. In this way, the above two conditions are met at the same time, making it easier for the OLT to reserve the time slot occupied by the LDPC code word check bit for the ONU.
[0086] In one possible implementation, when the LDPC codeword data bits in the LDPC encoding method are divisible by the authorized granularity, the processing of step 202 is: based on the authorized length, the LDPC codeword data bits in the LDPC encoding method, and the mother code matrix corresponding to the LDPC encoding method, the FEC codeword of the uplink data is obtained.
[0087] The mother code matrix corresponding to the LDPC coding method may be pre-stored in the ONU. The mother code matrix may be a 12×69 quasi-cyclic matrix with a cyclic size of 256. The mother code matrix here is the same as the mother code matrix defined in the downlink coding.
[0088] In this embodiment, the ONU obtains the mother code matrix of the LDPC coding method of the downlink coding as the mother code matrix of the LDPC coding method of the uplink coding, and determines the number of FEC code words of the uplink data according to the authorized length. In each FEC code word, if the length of the uplink data truncated is s, s bits of 0 are padded in the uplink data. Then the uplink data padded with 0 is encoded with the mother code matrix to obtain the LDPC code word data bits and LDPC code word check bits in the FEC code word, and then the LDPC code word check bits in the FEC code word are clipped to obtain the clipped FEC code word of the uplink data, that is, to obtain the FEC code word that can be transmitted uplink. Exemplarily, the clipping can be to perform puncturing on the generated LDPC code word check bits to obtain the FEC code word of the uplink data. For detailed puncturing, refer to the standard of the LDPC coding method of the downlink coding.
[0089] like Figure 6As shown, an FEC encoding process is provided, the uplink data is K bits, it is assumed that the uplink data is truncated by S bits, the LDPC codeword check bit is P bits, the LDPC codeword check bit after puncturing is M bits, and the number of bits of the FEC codeword is n = K + M. After the K bits of uplink data are supplemented with S bits of 0 at the end, K + S bits are obtained, and the K + S bits of uplink data and the mother code matrix are encoded to obtain K bits of LDPC codeword data bits and M + P bits of LDPC codeword check bits, and the M + P bits of LDPC codeword check bits are punctured to obtain N = K + M bits of FEC codeword.
[0090] It should be noted that, in the embodiment of the present application, the situations where uplink data needs to be truncated include but are not limited to:
[0091] Case 1: In the existing LDPC encoding method for downlink encoding, the LDPC codeword data bits are 1824 bytes, and in the embodiment of the present application, the LDPC codeword data bits are less than 1824 bytes. Since the length of the LDPC codeword data bits included in each complete FEC codeword is less than 1824 bytes, the uplink data needs to be truncated.
[0092] Case 2: In the existing LDPC encoding method for downlink encoding, the LDPC codeword data bits are 1824 bytes. In the embodiment of the present application, the authorization length is less than a complete FEC codeword. Since the uplink data is less than 1824 bytes, the uplink data needs to be truncated.
[0093] In a possible implementation, when the HSP is 50G PON, the LDPC codeword data bits in the original LDPC encoding method of the downlink encoding are 1824 bytes, and the LDPC codeword check bits are 336 bytes. After the LDPC codeword data bits and the LDPC codeword check bits are trimmed, the LDPC codeword data bits in the LDPC encoding method of the uplink encoding are 1760 bytes, and the LDPC codeword check bits in the LDPC encoding method of the uplink encoding are 320 bytes. When the uplink rate of 50G PON is 12.5G, the corresponding authorization granularity is 20 bytes, which is divisible by the LDPC codeword data bits and the LDPC codeword check bits. And when the uplink rate of 50G PON is 25G, the corresponding authorization granularity is 40 bytes, which is divisible by the LDPC codeword data bits and the LDPC codeword check bits. When the uplink rate of 50GPON is 50G, the corresponding authorization granularity is 80 bytes, which can be divided by the LDPC codeword data bits and LDPC codeword check bits.
[0094] Thus, when the LDPC coding method for uplink coding follows the LDPC coding method for downlink coding, the LDPC codeword data bits are 1824 bytes, the LDPC codeword check bits are 336 bytes, and the code rate is 1824 / (1824+336)=84.4. After trimming the LDPC codeword data bits and the LDPC codeword check bits, the LDPC codeword data bits in the LDPC coding method for uplink coding are 1760 bytes, the LDPC codeword check bits in the LDPC coding method for uplink coding are 320 bytes, and the code rate is 1760 / (1760+320)=84.6, which is close to the LDPC coding method for downlink coding. Moreover, through the bit error rate performance simulation, the performance simulation results are as follows: Figure 7 As shown in Figure 2, the bit error rate performance after clipping is close to that when the LDPC coding method for downlink coding is used. Figure 7 In the figure, the vertical axis represents the bit error rate and the horizontal axis represents the signal-to-noise ratio.
[0095] It should be noted here that the uplink rate of 12.5G actually represents the uplink rate close to 12.5G (for example, the actual uplink rate can reach 12.4416G bits / s). Similarly, the uplink rates of 25G and 50G also indicate that the uplink rates are close to 25G and 50G respectively. The actual uplink rate of 25G PON can reach 24.8832G bits / s; the actual uplink rate of 50G PON can reach 49.7664G bits / s.
[0096] In a possible implementation, when N times the LDPC codeword data bits are divisible by the authorized granularity and M times the LDPC codeword check bits are divisible by the authorized granularity, the LDPC coding method for uplink coding can directly use the LDPC coding method for downlink coding corresponding to HSP. At this time, the LDPC codeword data bits in the LDPC coding method for uplink coding are 1824 bytes, and the LDPC codeword check bits are 336 bytes.
[0097] In the LDPC encoding method for uplink encoding, the LDPC codeword data bits are 1824 bytes, the LDPC codeword check bits are 336 bytes, and there are multiple options for the authorization granularity. Two possible methods are given below:
[0098] 1. HSP is 50G PON, the LDPC codeword data bits in the LDPC encoding method of the uplink coding are 1824 bytes, N is 2, the LDPC codeword check bits in the LDPC encoding method are 336 bytes, and M is 4. In this way, when the uplink rate of 50G PON is 12.5G, the corresponding authorization granularity is 16 bytes, which is divisible by 2 times the LDPC codeword data bits and 4 times the LDPC codeword check bits in the LDPC encoding method of the uplink coding. And when the uplink rate of 50G PON is 25G, the corresponding authorization granularity is 32 bytes, which is divisible by 2 times the LDPC codeword data bits and 4 times the LDPC codeword check bits in the LDPC encoding method of the uplink coding. When the uplink rate of 50GPON is 50G, the corresponding authorization granularity is 64 bytes, which is divisible by 2 times the LDPC codeword data bits and 4 times the LDPC codeword check bits in the LDPC encoding method of the uplink coding. For example, Figure 8 As shown, the authorization length is 64 bytes * 114 = 7296 bytes, which is exactly equal to 1824 bytes * 4. In this way, there are four FEC codewords, and the LDPC codeword data bits of the four FEC codewords are all 1824 bytes. The LDPC codeword check bits are 4*336 bytes, and 21 time slots are reserved for transmitting the LDPC codeword check bits.
[0099] 2. HSP is 50G PON, the LDPC codeword data bits in the LDPC encoding method of the uplink coding are 1824 bytes, N is 1, the LDPC codeword check bits in the LDPC encoding method are 336 bytes, and M is 1. In this way, when the uplink rate of 50G PON is 12.5G, the corresponding authorization granularity is 4 bytes, which is divisible by the LDPC codeword data bits and LDPC codeword check bits in the LDPC encoding method of the uplink coding. And when the uplink rate of 50G PON is 25G, the corresponding authorization granularity is 8 bytes, which is divisible by the LDPC codeword data bits and LDPC codeword check bits in the LDPC encoding method of the uplink coding. When the uplink rate of 50G PON is 50G, the corresponding authorization granularity is 16 bytes, which is divisible by the LDPC codeword data bits and LDPC codeword check bits in the LDPC encoding method of the uplink coding.
[0100] In this way, based on the existing LDPC coding method for downlink coding, with minimal modification (only modifying the authorization granularity), the multiplexing logic design of downlink coding and uplink coding can be realized to the greatest extent.
[0101] It should be noted here that when the LDPC encoding method for uplink encoding follows the LDPC encoding method for downlink encoding, there are multiple possible implementation methods for the selection of authorization granularity, and the above only gives two possible methods as examples. In addition, when modifying the authorization granularity, the LDPC codeword data bits are 1824 bytes, the LDPC codeword check bits are 336 bytes, and the truncated LDPC codeword data bits are 0 bits, which do not need to be truncated. For the LDPC codeword check bits, the existing LDPC encoding method for downlink encoding is followed, which itself requires the LDPC codeword check bits to be cut, so they also need to be cut.
[0102] In a possible implementation, in the LDPC encoding mode, the LDPC codeword data bits are divisible by the authorized granularity, and N times the LDPC codeword data bits are divisible by the authorized granularity, where N is a positive integer greater than or equal to 1. In this case, it is necessary to trim the LDPC codeword data bits and the LDPC codeword check bits in the FEC codeword, and adjust the authorized granularity so that the bit error rate performance remains close to the bit error rate performance of the downlink coding.
[0103] Corresponding to the FEC encoding process described above, the present application also provides a method for FEC decoding, which can be performed by a decoding device. The decoding device can be a software program installed in an optical network device, and the decoding device can be a hardware device, such as an optical network device. The optical network device can be an OLT.
[0104] When the decoding device is a hardware device, such as Fig. 9 The figure provides a schematic structural diagram of an OLT, which includes a communication interface 901 and a processor 902 .
[0105] The processor 902 may be a general-purpose CPU, a microprocessor, an ASIC, a GPU, or one or more integrated circuits. The processor 902 may also be a DSP, an FPGA, or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. In an embodiment of the present application, the processor 902 may be used to implement FEC decoding processing.
[0106] The communication interface 901 is used to implement communication between the OLT and other devices. In the embodiment of the present application, the communication interface 901 can be used to receive FEC codewords of uplink data.
[0107] The following will be combined Fig.10 The method for uplink FEC decoding provided in the embodiment of the present application is described. The method can be executed by the OLT. Fig.10 The process of OLT decoding the upstream data sent by ONU is described in Fig.10 As shown, the processing flow of this method is as follows:
[0108] Step 1001: Receive an FEC codeword of uplink data, wherein the FEC codeword includes LDPC codeword data bits.
[0109] In this embodiment, the OLT receives the FEC codeword of the uplink data sent by the ONU in the authorized time slot through the optical fiber, each FEC codeword includes an LDPC codeword data bit and an LDPC codeword check bit, the length of the LDPC codeword check bit included in each FEC codeword is the same, and the LDPC codeword data bit included in each FEC codeword may be different based on the authorized length, which depends on the data amount of the uplink data in the FEC codeword.
[0110] Step 1002, obtaining uplink data based on the FEC codeword, LDPC decoding method and the authorization length corresponding to the uplink time slot, wherein the authorization length is equal to the product of the number of authorizations of the uplink time slot and the authorization granularity, and in the LDPC decoding method, the LDPC codeword data bits are divisible by the authorization granularity and / or N times the LDPC codeword data bits are divisible by the authorization granularity, and N is a positive integer greater than or equal to 1.
[0111] In this embodiment, the LDPC decoding method corresponds to the LDPC encoding method in step 402. The OLT can obtain the number of authorizations of the time slots allocated by the OLT to the ONU and the authorization granularity of the ONU, and multiply the number of authorizations by the authorization granularity to obtain the authorization length. The OLT can determine the FEC codeword sent by the ONU based on the authorization length allocated by the OLT to the ONU, and then use the LDPC decoding method to decode the FEC codeword sent by the ONU to obtain the uplink data sent by the ONU.
[0112] Optionally, the FEC decoding process can be implemented at the TC layer of the OLT. After receiving the FEC codeword of the uplink data through the physical layer of the OLT, the TC layer of the OLT can perform decoding processing to obtain the uplink data. Then, after subsequent processing by the TC layer of the OLT, if the uplink data is sent to the core network, it can be sent to the core network. If the uplink data is sent to the OLT, the OLT can perform corresponding processing on the uplink data.
[0113] As follows Fig.10 The process shown is further explained:
[0114] In a possible implementation, the relationship between the LDPC codeword check bit and the authorization granularity in the LDPC decoding method can be:
[0115] The FEC codeword also includes an LDPC codeword check bit, and in the LDPC encoding method, the LDPC codeword check bit is divisible by the authorized granularity and / or M times the LDPC codeword check bit is divisible by the authorized granularity, where M is a positive integer greater than or equal to 1. For a detailed description, refer to the description of the LDPC encoding method.
[0116] In a possible implementation, the processing of step 1002 may be:
[0117] The uplink data is obtained based on the FEC codeword, the LDPC codeword data bits in the LDPC decoding method, the mother code matrix corresponding to the LDPC decoding method, and the grant length corresponding to the uplink time slot.
[0118] The mother code matrix corresponding to the LDPC coding method may be pre-stored in the ONU. The mother code matrix may be a 12×69 quasi-cyclic matrix with a cyclic size of 256. The mother code matrix here is the same as the mother code matrix defined in downlink decoding.
[0119] In this embodiment, the OLT can determine the FEC codeword sent by the ONU based on the authorization length assigned by the OLT to the ONU. Then the OLT obtains the mother code matrix corresponding to the LDPC decoding method for downlink decoding, and determines it as the mother code matrix corresponding to the LDPC decoding method for uplink decoding. Each FEC codeword is checked to obtain uplink data. For the detailed verification process, refer to the standard of the LDPC decoding method for downlink decoding.
[0120] After the LDPC encoding mode of the uplink encoding is determined, the LDPC codeword data bits in the LDPC decoding mode of the downlink decoding correspond to the LDPC codeword data bits in the LDPC encoding mode of the uplink encoding, and the LDPC codeword check bits in the LDPC decoding mode of the downlink decoding correspond to the LDPC codeword check bits in the LDPC encoding mode of the uplink encoding, as described below:
[0121] In a possible implementation, when the HSP is 50G PON, the LDPC codeword data bits in the original LDPC decoding mode for downlink decoding are 1824 bytes, and the LDPC codeword check bits are 336 bytes. After the LDPC codeword data bits and the LDPC codeword check bits are clipped, the LDPC codeword data bits in the LDPC decoding mode for uplink decoding are 1760 bytes, and the LDPC codeword check bits in the LDPC decoding mode for uplink decoding are 320 bytes. When the uplink rate of 50G PON is 12.5G, the corresponding authorization granularity is 20 bytes, which can be divided by the LDPC codeword data bits and the LDPC codeword check bits in the LDPC decoding mode for uplink decoding. And when the uplink rate of 50G PON is 25G, the corresponding authorization granularity is 40 bytes, which can be divided by the LDPC codeword data bits and the LDPC codeword check bits in the LDPC decoding mode for uplink decoding. When the uplink rate of 50G PON is 50G, the corresponding authorization granularity is 80 bytes, which can be divided by the LDPC codeword data bits and LDPC codeword check bits in the LDPC decoding method of the uplink decoding.
[0122] Thus, when the LDPC decoding method for uplink decoding follows the LDPC decoding method for downlink decoding, the LDPC codeword data bits are 1824 bytes, the LDPC codeword check bits are 336 bytes, and the code rate is 1824 / (1824+336)=84.4. After the LDPC codeword data bits and the LDPC codeword check bits are trimmed, the LDPC codeword data bits in the LDPC decoding method for uplink decoding are 1760 bytes, the LDPC codeword check bits in the LDPC decoding method for uplink decoding are 320 bytes, and the code rate is 1760 / (1760+320)=84.6, which is close to the LDPC decoding method for downlink decoding.
[0123] In a possible implementation, when N times the LDPC codeword data bits are divisible by the authorized granularity and M times the LDPC codeword check bits are divisible by the authorized granularity, the LDPC decoding method for uplink decoding can directly use the LDPC decoding method for downlink decoding corresponding to the HSP. At this time, the LDPC codeword data bits in the LDPC decoding method for uplink decoding are 1824 bytes, and the LDPC codeword check bits are 336 bytes.
[0124] In the LDPC decoding method for uplink decoding, the LDPC codeword data bits are 1824 bytes, the LDPC codeword check bits are 336 bytes, and there are multiple options for the authorization granularity. Two possible methods are given below:
[0125] 1. HSP is 50G PON, the LDPC codeword data bits in the LDPC decoding method of the uplink decoding are 1824 bytes, N is 2, the LDPC codeword check bits in the LDPC decoding method are 336 bytes, and M is 4. In this way, when the uplink rate of 50G PON is 12.5G, the corresponding authorization granularity is 16 bytes, which can be divided by 2 times the LDPC codeword data bits and 4 times the LDPC codeword check bits in the LDPC decoding method of the uplink decoding. And when the uplink rate of 50G PON is 25G, the corresponding authorization granularity is 32 bytes, which can be divided by 2 times the LDPC codeword data bits and 4 times the LDPC codeword check bits in the LDPC decoding method of the uplink decoding. When the uplink rate of 50GPON is 50G, the corresponding authorization granularity is 64 bytes, which can be divided by 2 times the LDPC codeword data bits and 4 times the LDPC codeword check bits in the LDPC decoding method of the uplink decoding.
[0126] 2. When HSP is 50G PON, the LDPC codeword data bits in the LDPC decoding mode of the uplink decoding are 1824 bytes, N is 1, the LDPC codeword check bits in the LDPC decoding mode are 336 bytes, and M is 1. In this way, when the uplink rate of 50G PON is 12.5G, the corresponding authorization granularity is 4 bytes, which can be divided by the LDPC codeword data bits and LDPC codeword check bits in the LDPC decoding mode of the uplink decoding. And when the uplink rate of 50G PON is 25G, the corresponding authorization granularity is 8 bytes, which can be divided by the LDPC codeword data bits and LDPC codeword check bits in the LDPC decoding mode of the uplink decoding. When the uplink rate of 50G PON is 50G, the corresponding authorization granularity is 16 bytes, which can be divided by the LDPC codeword data bits and LDPC codeword check bits in the LDPC decoding mode of the uplink decoding.
[0127] In this way, based on the existing LDPC decoding method for downlink decoding, with minimal modification, the multiplexing logic design of downlink decoding and uplink decoding can be realized to the greatest extent.
[0128] In the embodiment of the present application, decoding may also be referred to as decoding.
[0129] Fig.11 The structure diagram of the device for uplink FEC encoding provided in the embodiment of the present application is applied to HSP, and the uplink rate of the HSP is higher than 10G. The device can be implemented as part or all of the device through software, hardware or a combination of both. The device provided in the embodiment of the present application can implement the embodiment of the present application Figure 4 The process described above, the device includes: an acquisition module 1110 and an encoding module 1120, wherein:
[0130] The acquisition module 1110 is used to acquire the authorization length of the uplink time slot, wherein the authorization length is equal to the product of the number of authorizations of the uplink time slot and the authorization granularity, and the authorization granularity is the authorization granularity supported by the device to which the uplink time slot belongs, and can be specifically used to implement the acquisition function of step 401 and execute the implicit steps included in step 401;
[0131] The encoding module 1120 is used to obtain the FEC codeword of the uplink data based on the authorization length and the low-density parity-check code LDPC encoding method, wherein the FEC codeword includes LDPC codeword data bits, and the LDPC codeword data bits in the LDPC encoding method are divisible by the authorization granularity and / or N times the LDPC codeword data bits are divisible by the authorization granularity, N is a positive integer greater than or equal to 1, which can be specifically used to implement the encoding function of step 402 and execute the implicit steps contained in step 402.
[0132] In one possible implementation, the FEC codeword also includes an LDPC codeword check bit, and in the LDPC encoding method, the LDPC codeword check bit is divisible by the authorized granularity and / or M times the LDPC codeword check bit is divisible by the authorized granularity, and M is a positive integer greater than or equal to 1.
[0133] In a possible implementation, the encoding module 1120 is configured to:
[0134] Based on the grant length, the LDPC codeword data bits in the LDPC encoding method, and the mother code matrix corresponding to the LDPC encoding method, an FEC codeword for uplink data is obtained.
[0135] In a possible implementation, the HSP is a 50G passive optical network PON, the LDPC codeword data bits in the LDPC encoding method are 1760 bytes, and the LDPC codeword check bits in the LDPC encoding method are 320 bytes;
[0136] When the uplink rate of the 50G PON is 12.5G, the corresponding authorization granularity is 20 bytes;
[0137] When the uplink rate of the 50G PON is 25G, the corresponding authorization granularity is 40 bytes;
[0138] When the uplink rate of the 50G PON is 50G, the corresponding authorization granularity is 80 bytes.
[0139] In a possible implementation, N times the LDPC codeword data bits are divisible by the authorized granularity, M times the LDPC codeword check bits are divisible by the authorized granularity, and the LDPC encoding method is the LDPC encoding method of the downlink encoding corresponding to the HSP.
[0140] In a possible implementation, the HSP is 50G PON, the LDPC codeword data bits in the LDPC encoding method are 1824 bytes, N is 2, the LDPC codeword check bits in the LDPC encoding method are 336 bytes, and M is 4;
[0141] When the uplink rate of the 50G PON is 12.5G, the corresponding authorization granularity is 16 bytes;
[0142] When the uplink rate of the 50G PON is 25G, the corresponding authorization granularity is 32 bytes;
[0143] When the uplink rate of the 50G PON is 50G, the corresponding authorization granularity is 64 bytes.
[0144] In a possible implementation, the HSP is 50G PON, the LDPC codeword data bits in the LDPC encoding method are 1824 bytes, N is 1, the LDPC codeword check bits in the LDPC encoding method are 336 bytes, and M is 1;
[0145] When the uplink rate of the 50G PON is 12.5G, the corresponding authorization granularity is 4 bytes;
[0146] When the uplink rate of the 50G PON is 25G, the corresponding authorization granularity is 8 bytes;
[0147] When the uplink rate of the 50G PON is 50G, the corresponding authorization granularity is 16 bytes.
[0148] Fig.12 The structure diagram of the device for uplink FEC decoding provided in the embodiment of the present application is applied to HSP, and the uplink rate of the HSP is higher than 10G. The device can be implemented as part or all of the device through software, hardware or a combination of both. The device provided in the embodiment of the present application can implement the embodiment of the present application Figure 4 The process described above, the device includes: a receiving module 1210 and a decoding module 1220, wherein:
[0149] The receiving module 1210 is used to receive the FEC codeword of the uplink data, wherein the FEC codeword includes a low-density parity check code LDPC codeword data bit, and can be specifically used to implement the receiving function of step 901 and execute the implicit steps included in step 1001;
[0150] The decoding module 1220 is used to obtain the uplink data based on the FEC codeword, the LDPC decoding method and the authorization length corresponding to the uplink time slot, wherein the authorization length is equal to the product of the number of authorizations of the uplink time slot and the authorization granularity, and the LDPC codeword data bits in the LDPC decoding method are divisible by the authorization granularity and / or N times the LDPC codeword data bits are divisible by the authorization granularity, and N is a positive integer greater than or equal to 1. Specifically, it can be used to implement the decoding function of step 902 and execute the implicit steps contained in step 1002.
[0151] In one possible implementation, the FEC codeword also includes an LDPC codeword check bit, and in the LDPC decoding method, the LDPC codeword check bit is divisible by the authorized granularity and / or M times the LDPC codeword check bit is divisible by the authorized granularity, and M is a positive integer greater than or equal to 1.
[0152] In a possible implementation, the decoding module 1220 is configured to:
[0153] The uplink data is obtained based on the FEC codeword, the LDPC codeword data bits in the LDPC decoding method, the mother code matrix corresponding to the LDPC decoding method, and the authorization length corresponding to the uplink time slot.
[0154] In a possible implementation, the HSP is a 50G passive optical network PON, the LDPC codeword data bits in the LDPC decoding method are 1760 bytes, and the LDPC codeword check bits in the LDPC decoding method are 320 bytes;
[0155] When the uplink rate of the 50G PON is 12.5G, the corresponding authorization granularity is 20 bytes;
[0156] When the uplink rate of the 50G PON is 25G, the corresponding authorization granularity is 40 bytes;
[0157] When the uplink rate of the 50G PON is 50G, the corresponding authorization granularity is 80 bytes.
[0158] In a possible implementation, N times the LDPC codeword data bits are divisible by the authorized granularity, M times the LDPC codeword check bits are divisible by the authorized granularity, and the LDPC decoding method is the LDPC decoding method for downlink decoding corresponding to the HSP.
[0159] In a possible implementation, the HSP is 50G PON, the LDPC codeword data bits in the LDPC decoding method are 1824 bytes, N is 2, the LDPC codeword check bits in the LDPC decoding method are 336 bytes, and M is 4;
[0160] When the uplink rate of the 50G PON is 12.5G, the corresponding authorization granularity is 16 bytes;
[0161] When the uplink rate of the 50G PON is 25G, the corresponding authorization granularity is 32 bytes;
[0162] When the uplink rate of the 50G PON is 50G, the corresponding authorization granularity is 64 bytes.
[0163] In a possible implementation, the HSP is 50G PON, the LDPC codeword data bits in the LDPC decoding mode are 1824 bytes, N is 1, the LDPC codeword check bits in the LDPC decoding mode are 336 bytes, and M is 1;
[0164] When the uplink rate of the 50G PON is 12.5G, the corresponding authorization granularity is 4 bytes;
[0165] When the uplink rate of the 50G PON is 25G, the corresponding authorization granularity is 8 bytes;
[0166] When the uplink rate of the 50G PON is 50G, the corresponding authorization granularity is 16 bytes.
[0167] The division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present application may be integrated into a processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0168] 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. The computer software product is stored in a storage medium, including several instructions for enabling an optical network device (which may be an ONU, etc.) or a processor to execute all or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks or optical disks.
[0169] 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 the optical network device, the process or function described in the embodiment of the present application is generated in whole or in part. 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 the ONU to the OLT through an optical fiber. The computer-readable storage medium can be any available medium that can be accessed by the optical network terminal or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, and a tape, etc.), or an optical medium (such as a digital video disk (digital video disk, DVD), etc.), or a semiconductor medium (such as a solid-state hard disk, etc.).
Claims
1. A method for uplink forward error correction (FEC) encoding, characterized in that: Applied to a high-speed passive optical network HSP, the uplink rate of the HSP is higher than 10G, and the method comprises: Based on a low-density parity-check code LDPC encoding method and an authorization length for an optical network unit ONU to transmit uplink data to an optical line terminal OLT, an FEC codeword for the uplink data is obtained, wherein the authorization length is equal to the product of the number of authorizations and the authorization granularity, and the authorization granularity is the authorization granularity supported by the ONU; the FEC codeword includes LDPC codeword data bits, and in the LDPC encoding method, the LDPC codeword data bits are divisible by the authorization granularity and / or N times the LDPC codeword data bits are divisible by the authorization granularity, and N is a positive integer greater than or equal to 1.
2. The method according to claim 1, characterized in that: The FEC codeword also includes an LDPC codeword check bit, and in the LDPC encoding method, the LDPC codeword check bit is divisible by the authorized granularity and / or M times the LDPC codeword check bit is divisible by the authorized granularity, where M is a positive integer greater than or equal to 1.
3. The method according to claim 1, characterized in that The obtaining of the FEC codeword of the uplink data based on the LDPC coding mode and the grant length includes: Based on the grant length, the LDPC codeword data bits in the LDPC encoding method, and the mother code matrix corresponding to the LDPC encoding method, an FEC codeword for uplink data is obtained.
4. The method according to claim 2, characterized in that: The HSP is a 50G passive optical network PON, the LDPC codeword data bits in the LDPC encoding method are 1760 bytes, and the LDPC codeword check bits in the LDPC encoding method are 320 bytes; When the uplink rate of the 50G PON is 12.5G, the corresponding authorization granularity is 20 bytes; When the uplink rate of the 50G PON is 25G, the corresponding authorization granularity is 40 bytes; When the uplink rate of the 50G PON is 50G, the corresponding authorization granularity is 80 bytes.
5. The method according to claim 2, characterized in that: N times the LDPC codeword data bits are divisible by the authorized granularity, M times the LDPC codeword check bits are divisible by the authorized granularity, and the LDPC encoding method is the LDPC encoding method of the downlink encoding corresponding to the HSP.
6. The method according to any one of claims 2 to 5, characterized in that: The HSP is a 50G passive optical network PON, the LDPC codeword data bits in the LDPC encoding method are 1824 bytes, N is 2, the LDPC codeword check bits in the LDPC encoding method are 336 bytes, and M is 4; When the uplink rate of the 50G PON is 12.5G, the corresponding authorization granularity is 16 bytes; When the uplink rate of the 50G PON is 25G, the corresponding authorization granularity is 32 bytes; When the uplink rate of the 50G PON is 50G, the corresponding authorization granularity is 64 bytes.
7. The method according to claim 5, characterized in that The HSP is a 50G passive optical network PON, the LDPC codeword data bits in the LDPC encoding method are 1824 bytes, N is 1, and the LDPC codeword check bits in the LDPC encoding method are 336 bytes, and M is 1; When the uplink rate of the 50G PON is 12.5G, the corresponding authorization granularity is 4 bytes; When the uplink rate of the 50G PON is 25G, the corresponding authorization granularity is 8 bytes; When the uplink rate of the 50G PON is 50G, the corresponding authorization granularity is 16 bytes.
8. A method for uplink forward error correction (FEC) decoding, characterized in that: Applied to a high-speed passive optical network HSP, the uplink rate of the HSP is higher than 10G, and the method comprises: Receiving an FEC codeword of uplink data, wherein the FEC codeword includes low-density parity check code LDPC codeword data bits; Based on the FEC codeword, LDPC decoding method and the authorization length of the optical network unit ONU to transmit the uplink data to the optical line terminal OLT, the uplink data is obtained, wherein the authorization length is equal to the product of the authorization number and the authorization granularity, and in the LDPC decoding method, the LDPC codeword data bits are divisible by the authorization granularity and / or N times the LDPC codeword data bits are divisible by the authorization granularity, and N is a positive integer greater than or equal to 1.
9. The method according to claim 8, characterized in that The FEC codeword also includes an LDPC codeword check bit, and in the LDPC decoding method, the LDPC codeword check bit is divisible by the authorized granularity and / or M times the LDPC codeword check bit is divisible by the authorized granularity, where M is a positive integer greater than or equal to 1.
10. The method according to claim 8, characterized in that The obtaining of the uplink data based on the FEC codeword, the LDPC decoding mode and the authorization length of the optical network unit ONU to transmit the uplink data to the optical line terminal OLT includes: The uplink data is obtained based on the FEC codeword, the LDPC codeword data bits in the LDPC decoding method, the mother code matrix corresponding to the LDPC decoding method, and the authorization length of the ONU to transmit the uplink data to the OLT.
11. The method according to claim 9, characterized in that The HSP is a 50G passive optical network PON, the LDPC codeword data bits in the LDPC decoding method are 1760 bytes, and the LDPC codeword check bits in the LDPC decoding method are 320 bytes; When the uplink rate of the 50G PON is 12.5G, the corresponding authorization granularity is 20 bytes; When the uplink rate of the 50G PON is 25G, the corresponding authorization granularity is 40 bytes; When the uplink rate of the 50G PON is 50G, the corresponding authorization granularity is 80 bytes.
12. The method according to claim 9, characterized in that N times the LDPC codeword data bits are divisible by the authorized granularity, M times the LDPC codeword check bits are divisible by the authorized granularity, and the LDPC decoding method is the LDPC decoding method for downlink decoding corresponding to the HSP.
13. The method according to any one of claims 9 to 12, characterized in that: The HSP is a 50G passive optical network PON, the LDPC codeword data bits in the LDPC decoding method are 1824 bytes, N is 2, the LDPC codeword check bits in the LDPC decoding method are 336 bytes, and M is 4; When the uplink rate of the 50G PON is 12.5G, the corresponding authorization granularity is 16 bytes; When the uplink rate of the 50G PON is 25G, the corresponding authorization granularity is 32 bytes; When the uplink rate of the 50G PON is 50G, the corresponding authorization granularity is 64 bytes.
14. The method according to claim 12, characterized in that The HSP is a 50G passive optical network PON, the LDPC codeword data bits in the LDPC decoding method are 1824 bytes, N is 1, and the LDPC codeword check bits in the LDPC decoding method are 336 bytes, and M is 1; When the uplink rate of the 50G PON is 12.5G, the corresponding authorization granularity is 4 bytes; When the uplink rate of the 50G PON is 25G, the corresponding authorization granularity is 8 bytes; When the uplink rate of the 50G PON is 50G, the corresponding authorization granularity is 16 bytes.
15. An uplink forward error correction (FEC) encoding device, characterized in that: Applicable to a high-speed passive optical network HSP, the uplink rate of the HSP is higher than 10G, and the device comprises: The encoding module is used to obtain the FEC codeword of the uplink data based on the low-density parity check code LDPC encoding mode and the authorization length of the optical network unit ONU to transmit the uplink data to the optical line terminal OLT, wherein the authorization length is equal to the product of the authorization number and the authorization granularity, and the authorization granularity is the authorization granularity supported by the ONU; the FEC codeword includes LDPC codeword data bits, and the LDPC codeword data bits in the LDPC encoding mode are divisible by the authorization granularity and / or N times the LDPC codeword data bits are divisible by the authorization granularity, and N is a positive integer greater than or equal to 1.
16. The device according to claim 15, characterized in that The FEC codeword also includes an LDPC codeword check bit, and in the LDPC encoding method, the LDPC codeword check bit is divisible by the authorized granularity and / or M times the LDPC codeword check bit is divisible by the authorized granularity, where M is a positive integer greater than or equal to 1.
17. The device according to claim 15, characterized in that The encoding module is used for: Based on the grant length, the LDPC codeword data bits in the LDPC encoding method, and the mother code matrix corresponding to the LDPC encoding method, an FEC codeword for uplink data is obtained.
18. The device according to claim 16, characterized in that The HSP is a 50G passive optical network PON, the LDPC codeword data bits in the LDPC encoding method are 1760 bytes, and the LDPC codeword check bits in the LDPC encoding method are 320 bytes; When the uplink rate of the 50G PON is 12.5G, the corresponding authorization granularity is 20 bytes; When the uplink rate of the 50G PON is 25G, the corresponding authorization granularity is 40 bytes; When the uplink rate of the 50G PON is 50G, the corresponding authorization granularity is 80 bytes.
19. The device according to claim 16, characterized in that N times the LDPC codeword data bits are divisible by the authorized granularity, M times the LDPC codeword check bits are divisible by the authorized granularity, and the LDPC encoding method is the LDPC encoding method of the downlink encoding corresponding to the HSP.
20. The device according to any one of claims 16 to 19, characterized in that The HSP is a 50G passive optical network PON, the LDPC codeword data bits in the LDPC encoding method are 1824 bytes, N is 2, the LDPC codeword check bits in the LDPC encoding method are 336 bytes, and M is 4; When the uplink rate of the 50G PON is 12.5G, the corresponding authorization granularity is 16 bytes; When the uplink rate of the 50G PON is 25G, the corresponding authorization granularity is 32 bytes; When the uplink rate of the 50G PON is 50G, the corresponding authorization granularity is 64 bytes.
21. The device according to claim 19, characterized in that The HSP is a 50G passive optical network PON, the LDPC codeword data bits in the LDPC encoding method are 1824 bytes, N is 1, and the LDPC codeword check bits in the LDPC encoding method are 336 bytes, and M is 1; When the uplink rate of the 50G PON is 12.5G, the corresponding authorization granularity is 4 bytes; When the uplink rate of the 50G PON is 25G, the corresponding authorization granularity is 8 bytes; When the uplink rate of the 50G PON is 50G, the corresponding authorization granularity is 16 bytes.
22. An uplink forward error correction (FEC) decoding device, characterized in that: Applicable to a high-speed passive optical network HSP, the uplink rate of the HSP is higher than 10G, and the device comprises: A receiving module, configured to receive an FEC codeword of uplink data, wherein the FEC codeword includes a low-density parity check code LDPC codeword data bit; A decoding module is used to obtain the uplink data based on the FEC codeword, the LDPC decoding method and the authorization length of the optical network unit ONU to transmit the uplink data to the optical line terminal OLT, wherein the authorization length is equal to the product of the authorization number and the authorization granularity, and in the LDPC decoding method, the LDPC codeword data bits are divisible by the authorization granularity and / or N times the LDPC codeword data bits are divisible by the authorization granularity, and N is a positive integer greater than or equal to 1.
23. The device according to claim 22, characterized in that The FEC codeword also includes an LDPC codeword check bit, and in the LDPC decoding method, the LDPC codeword check bit is divisible by the authorized granularity and / or M times the LDPC codeword check bit is divisible by the authorized granularity, where M is a positive integer greater than or equal to 1.
24. The device according to claim 22, characterized in that The decoding module is used for: The uplink data is obtained based on the FEC codeword, the LDPC codeword data bits in the LDPC decoding method, the mother code matrix corresponding to the LDPC decoding method, and the authorization length of the ONU to transmit the uplink data to the OLT.
25. The device according to claim 23, characterized in that N times the LDPC codeword data bits are divisible by the authorized granularity, M times the LDPC codeword check bits are divisible by the authorized granularity, and the LDPC decoding method is the LDPC decoding method for downlink decoding corresponding to the HSP.
26. The device according to any one of claims 23 to 25, characterized in that The HSP is a 50G passive optical network PON, the LDPC codeword data bits in the LDPC encoding method are 1824 bytes, N is 2, the LDPC codeword check bits in the LDPC encoding method are 336 bytes, and M is 4; When the uplink rate of the 50G PON is 12.5G, the corresponding authorization granularity is 16 bytes; When the uplink rate of the 50G PON is 25G, the corresponding authorization granularity is 32 bytes; When the uplink rate of the 50G PON is 50G, the corresponding authorization granularity is 64 bytes.
27. An optical network device for uplink forward error correction (FEC) coding, characterized in that: The optical network device comprises a processor and a communication interface, wherein: The communication interface is used to realize the communication between the optical network device and other devices; The processor is used to implement the encoding process in the method described in any one of claims 1 to 7.
28. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions. When the computer instructions in the computer-readable storage medium are executed by an optical network device, the optical network device executes the method according to any one of claims 1 to 7.
29. An optical network device for uplink forward error correction (FEC) decoding, characterized in that: The optical network device comprises a processor and a communication interface, wherein: The communication interface is used to receive the FEC codeword of uplink data; The processor is configured to implement the decoding process in the method according to any one of claims 8 to 14.
30. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions. When the computer instructions in the computer-readable storage medium are executed by an optical network device, the optical network device executes the method according to any one of claims 8 to 14.