Data transmission method and device, optical communication equipment and system

By combining the data output from multiple PON MAC modules in the optical communication device and using a single wavelength transmission, the problem of influence of different wavelength channels is solved, the data transmission rate and signal quality are improved, and the performance of the PON system is enhanced.

CN119233125APending Publication Date: 2024-12-31HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310786518.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-29
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

In high-speed transmission scenarios, when optical network units (ONUs) use channels of different wavelengths for uplink data transmission, they may be adversely affected by transmission distance and other aspects, resulting in a reduced data transmission efficiency.

Method used

By combining the data output from multiple PON MAC modules into one channel of data and transmitting it with a single wavelength, the use of different wavelength channels is avoided, thereby improving the data transmission rate. The specific method includes encoding the data to be transmitted, using X-level pulse amplitude modulation (PAM X) technology, and forming a high-rate transmission channel at a certain rate supported by each PON MAC module.

Benefits of technology

It realizes the improvement of data transmission rate of optical communication equipment, ensures signal-to-noise ratio and signal quality, and enhances the transmission performance of the PON system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119233125A_ABST
    Figure CN119233125A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method, a data transmission device, optical communication equipment and an optical communication system. The method is applied to optical communication equipment, the optical communication equipment comprises M first PON MAC modules, M is an integer and is greater than 1, and MAC protocols and transmission rates adopted by the M first PON MAC modules are the same. The method comprises the following steps: processing data to be transmitted by adopting the M first PON MAC modules to obtain M paths of first data; encoding the M paths of first data to obtain a path of second data; and sending the second data through the optical signal of the target wavelength. According to the method, the data can be sent by adopting the single-wavelength optical signal and the transmission rate of the optical communication equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of optical communication technology, and in particular to a data transmission method and apparatus, and optical communication equipment and system. Background Art

[0002] Passive optical network (PON) is a point-to-multipoint single-fiber bidirectional optical access network.

[0003] In order to improve the data transmission rate, a channel bonding technology is proposed. In this channel bonding technology, an optical network unit (ONU) can have multiple PON media access control (MAC) modules, and each PON MAC module corresponds to a channel. Each MAC of the ONU requests upstream bandwidth from the optical line terminal (OLT). The OLT allocates upstream authorized bandwidth to each PON MAC module and sends the authorized bandwidth information to the ONU. The authorized bandwidth information is used to indicate the upstream time slot of each PON MAC module. According to the authorized bandwidth information, the ONU uses multiple channels to transmit upstream data in the allocated upstream time slot, and each channel corresponds to a different wavelength.

[0004] However, the ONU needs to use channels with different wavelengths to transmit uplink data corresponding to different PON MAC modules. In high-speed transmission scenarios, channels with different wavelengths may have an adverse effect on transmission distance and other aspects. Summary of the invention

[0005] The present application provides a data transmission method and apparatus, optical communication equipment and system, which can improve the data transmission rate of a PON system based on a single wavelength.

[0006] In a first aspect, the present application provides a data transmission method, which is applied to an optical communication device. The optical communication device includes M first PON MAC modules, where M is an integer and M is greater than 1, and the MAC protocol and transmission rate adopted by the M first PON MAC modules are the same. The method includes: processing the data to be transmitted using the M first PON MAC modules to obtain M first data; encoding the M first data to obtain one second data; and sending the second data via an optical signal of a target wavelength. The data transmission method may also be referred to as a data transmission method.

[0007] In the related art, the data output by the M first PON MAC modules need to be sent through channels of M wavelengths. In the present application, the M channels of first data output by the M first PON MAC modules are first merged into one channel of second data, and then the second data is sent using a single wavelength, which is the target wavelength, thereby avoiding the use of channels of different wavelengths to send data.

[0008] Moreover, under the premise that the rate supported by each first PON MAC module is certain, the transmission rate of the optical communication device is M times the rate adopted by a single first PON MAC module, which is equivalent to binding M first PON MAC modules to form a high-speed transmission channel, which is beneficial to improving the data transmission rate of the first optical communication device.

[0009] When the data transmission method is a downlink data transmission method, the optical communication device is an OLT; and when the data transmission method is an uplink data transmission method, the optical communication device is an ONU.

[0010] Optionally, encoding the M first data to obtain one second data includes: encoding the M first data using X-level pulse amplitude modulation (PAM X) technology to obtain the second data, wherein X is greater than M. For example, X is equal to 2 to the Mth power.

[0011] PAM X is a technology that uses X different signal levels for signal transmission. The second data encoded by the PAM X technology includes multiple symbols, each symbol corresponding to M bits. Compared with the non-return-to-zero code (NRZ) encoding method, the baud rate corresponding to the PAM X encoding method is significantly lower than the baud rate corresponding to the NRZ encoding method at the same bit rate. Therefore, the use of PAM X technology can significantly increase the data transmission rate.

[0012] Since the larger X is, the larger the signal-to-noise ratio is during data transmission, therefore, in order to improve signal quality and ensure the transmission performance of the PON system, X is usually not too large, for example, X may be equal to 4. Correspondingly, M is equal to 2.

[0013] Optionally, the data to be transmitted includes multiple Ethernet messages. The processing of the data to be transmitted using the M first PON MAC modules includes: adding sequence numbers to the multiple Ethernet messages; and sending the multiple Ethernet messages with added sequence numbers to the M first PON MAC modules in turn. That is, a packet-by-packet distribution mechanism is adopted to distribute each Ethernet message in the data to be transmitted to the M first PON MAC modules. In this way, the M first PON MAC modules can basically work synchronously, and each frame in the output first data is basically aligned, which can reduce the waiting delay when merging M channels of first data into one channel of second data.

[0014] In a second aspect, the present application provides a data transmission method. The method is applied to an optical communication device, the optical communication device comprising M first PON MAC modules, wherein M is an integer and M is greater than 1, and the MAC protocol and transmission rate adopted by the M first PON MAC modules are the same. The method comprises: obtaining second data based on an optical signal of a target wavelength; dividing the second data into M paths of first data; processing the M paths of first data respectively using the M first PON MAC modules to obtain M paths of third data; merging the M paths of third data to obtain received data.

[0015] Optionally, the second data includes a plurality of symbols, each symbol includes M bits. The dividing the second data into M paths of first data includes: dividing the M bits corresponding to each symbol into one path of first data respectively, to obtain M paths of first data.

[0016] Optionally, the third data includes multiple Ethernet messages, and merging the M paths of third data to obtain received data includes: sorting the multiple Ethernet messages included in the M paths of third data according to sequence numbers carried in the Ethernet messages.

[0017] When the data transmission method is a downlink data transmission method, the optical communication device is an ONU; and when the data transmission method is an uplink data transmission method, the optical communication device is an OLT.

[0018] In the first aspect or the second aspect, when the optical communication device is an OLT, the method may further include: the OLT receives M bandwidth requests sent by an optical network unit ONU, the ONU includes M second PON MAC modules, and the M second PON MAC modules respectively correspond to one bandwidth request among the M bandwidth requests; according to the M bandwidth requests, M authorized bandwidth information is sent to the ONU, the M authorized bandwidth information is respectively used to indicate the uplink time slot of a corresponding second PON MAC module among the M second PON MAC modules, and the uplink time slots indicated by the M authorized bandwidth information are the same.

[0019] Optionally, the M first PON MAC modules include a master MAC module and M-1 slave MAC modules. The sending of M authorized bandwidth information to the ONU according to the M bandwidth requests includes: sending one authorized bandwidth information to the ONU through the master MAC module; synchronizing the authorized bandwidth information to the M-1 slave MAC modules through the master MAC module; and sending M-1 authorized bandwidth information to the ONU through the M-1 slave MAC modules.

[0020] That is, in the OLT, only the first PON MAC module, the main MAC module, executes the DBA algorithm to allocate authorized bandwidth to the ONU, and other first PON MAC modules all use the authorized bandwidth information determined by the main MAC module. In this way, it can ensure that each PON MAC module of the ONU sends data synchronously to avoid conflicts with uplink burst data of other ONUs.

[0021] In the first aspect or the second aspect, when the optical communication device is an ONU, the method may further include: the ONU sends M bandwidth requests to the OLT, and the M first PON MAC modules respectively correspond to one bandwidth request among the M bandwidth requests; receiving M authorized bandwidth information sent by the OLT, and the M authorized bandwidth information are respectively used to indicate the uplink time slot of a corresponding first PON MAC module among the M first PON MAC modules, and the uplink time slots indicated by the M authorized bandwidth information are the same.

[0022] In a third aspect, the present application provides a registration method for an ONU, which is performed by the ONU. The ONU includes M first PON MAC modules, wherein M is an integer and M is greater than 1, the MAC protocol and transmission rate adopted by the M first PON MAC modules are the same, and the M first PON MAC modules include 1 main MAC module and M-1 slave MAC modules. The method includes: the ONU receives a registration request message through the main MAC module; the ONU sends a registration response message through the main MAC module, and the registration response message includes the serial number of the ONU; the ONU obtains the ONU identifier assigned by the OLT to the ONU; the ONU receives ranging information through the main MAC module; the ONU synchronizes the ranging information to the M-1 slave MAC modules through the main MAC module.

[0023] In a fourth aspect, the present application provides a registration method for an ONU. The method is performed by an OLT. The OLT includes M first PON MAC modules, wherein M is an integer and M is greater than 1, the MAC protocol and transmission rate adopted by the M first PON MAC modules are the same, and the M first PON MAC modules include 1 main MAC module and M-1 slave MAC modules. The method includes: the OLT sends a registration request message through the main MAC module; the OLT receives a registration response message through the main MAC module, and the registration response message includes the serial number of the ONU; the OLT assigns an ONU identifier to the ONU; the OLT performs ranging on the ONU through the main MAC module and sends ranging information to the ONU through the main MAC module.

[0024] In a fifth aspect, the present application provides a data transmission device, which has the function of implementing the method described in the first aspect or any optional manner of the first aspect, or the data transmission device has the function of implementing the method described in the second aspect or any optional manner of the second aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more units corresponding to the above functions.

[0025] In a sixth aspect, the present application further provides a registration device for an ONU, the registration device having the function of implementing the method described in the third aspect or any optional manner of the third aspect, or the data transmission device having the function of implementing the method described in the fourth aspect or any optional manner of the fourth aspect. The function can be implemented by hardware, or can be implemented by hardware executing corresponding software. The hardware or software includes one or more units corresponding to the above functions.

[0026] In the seventh aspect, an optical communication device is provided. The optical communication device includes a processor, a memory, M first PON MAC modules and an optical module, wherein the M first PON MAC modules are respectively connected to the processor, and the M first PON MAC modules are respectively connected to the optical module. The memory is used to store software programs and modules. The processor implements the method in the first aspect or any possible implementation of the first aspect by running or executing the software program and / or module stored in the memory, or implements the method in the second aspect or any possible implementation of the second aspect; or implements the method in the third aspect or any possible implementation of the third aspect, or implements the method in the fourth aspect or any possible implementation of the fourth aspect.

[0027] Optionally, the number of the processors is one or more, and the number of the memories is one or more.

[0028] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

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

[0030] In an eighth aspect, a computer program product is provided. The computer program product includes a computer program code, and when the computer program code is executed by a computer, the computer executes the method in the first aspect or any possible implementation of the first aspect, or executes the method in the second aspect or any possible implementation of the second aspect; or executes the method in the third aspect or any possible implementation of the third aspect, or executes the method in the fourth aspect or any possible implementation of the fourth aspect.

[0031] In a ninth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program codes executed by a processor, wherein the program code includes instructions for implementing the method in any possible implementation of the first aspect above, or includes instructions for implementing the method in the second aspect above or any possible implementation of the second aspect; or includes instructions for implementing the method in the third aspect above or any possible implementation of the third aspect, or includes instructions for implementing the method in the fourth aspect above or any possible implementation of the fourth aspect.

[0032] In a tenth aspect, a chip is provided, comprising a processor, wherein the processor is used to call and execute instructions stored in a memory from the memory, so that an optical communication device equipped with the chip executes a method in any possible implementation of the first aspect above, or executes a method in the second aspect above or any possible implementation of the second aspect; or executes a method in the third aspect above or any possible implementation of the third aspect, or executes a method in the fourth aspect above or any possible implementation of the fourth aspect.

[0033] In the eleventh aspect, another chip is provided. The another chip includes an input interface, an output interface, a processor and a memory. The input interface, the output interface, the processor and the memory are connected via an internal connection path. The processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method in any possible implementation of the first aspect, or the second aspect or the second aspect; or the third aspect or the third aspect; or the fourth aspect or the fourth aspect. The method in any possible implementation of the fourth aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a structural diagram of a PON system provided in an embodiment of the present application;

[0035] Figure 2 is a structural schematic diagram of an optical communication device provided in an embodiment of the present application;

[0036] Figure 3 It is a flowchart of a data transmission method provided by an embodiment of the present application;

[0037] Figure 4 It is a flow chart of a bandwidth allocation method provided in an embodiment of the present application;

[0038] Figure 5 It is a process diagram of a bandwidth allocation method and an uplink transmission method provided in an embodiment of the present application;

[0039] Figure 6 It is a schematic diagram of an interactive process of an ONU registration method provided in an embodiment of the present application;

[0040] Figure 7 is a block diagram of a data transmission device provided in an embodiment of the present application;

[0041] Figure 8 is a block diagram of a data transmission device provided in an embodiment of the present application;

[0042] Fig. 9 It is a structural diagram of a PON system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] 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.

[0044] Figure 1 Schematic diagram of a PON system provided by an embodiment of the present application. Figure 1As shown, the PON system includes an OLT 110, an ONU 120 and an ODN 130. The OLT 110 is connected to one or more ONUs 120 via the ODN 130. The ONU 120 may be an optical network terminal (ONT).

[0045] The OLT 110 is usually located at the network side, such as a central office (CO), and can manage multiple ONUs 120 at the same time. The OLT 110 can act as a medium between the ONU 120 and an upper network (not shown in the figure), forwarding data received from the upper network to the ONU 120, and forwarding data received from the ONU 120 to the upper network. The upper network includes, but is not limited to, the Internet, a public switched telephone network (PSTN), and a community antenna television (CATV).

[0046] A plurality of ONUs 120 may be distributedly arranged at the user side. ONU 120 may be a network device for communicating with OLT 110 and user equipment. ONU 120 may act as a medium between OLT 110 and user equipment, for example, ONU 120 may forward data received from OLT 110 to user equipment, and may forward data received from user equipment to OLT 110.

[0047] ODN 130 is a data distribution / multiplexing system, which may include a trunk optical fiber, a passive optical splitter and a user optical fiber. The passive optical splitter may include a first port and a plurality of second ports. The first port of the passive optical splitter is connected to OLT 110 via the trunk optical fiber, and each second port of the passive optical splitter is connected to an ONU 120 via a user optical fiber.

[0048] In the PON system, the transmission from OLT 110 to ONU 120 is called downlink, and OLT 110 broadcasts the downlink data to all ONU 120, and each ONU 120 only receives the data with its own identification. Conversely, the transmission from ONU 120 to OLT 110 is called uplink. Since each ONU 120 shares ODN 130 and OLT 110, in order to ensure that the uplink data of each ONU 120 does not conflict, the PON system adopts time division multiplexing (TDM) to transmit the uplink data. That is, OLT 110 allocates an uplink time slot to each ONU 120, and each ONU 120 sends the uplink data according to the uplink time slot allocated by OLT 110.

[0049] In the embodiment of the present application, the PON system can be a next-generation PON (NG-PON), NG-PON1, NG-PON2, gigabit PON (GPON), 10 gigabit per second PON (XG-PON), 10-gigabit-capable symmetric passive optical network (XGS-PON), Ethernet PON (EPON), 10 gigabit per second EPON (10G-EPON), next-generation EPON (NG-EPON), wavelength-division multiplexing (WDM) PON, time-and wavelength-division stacking multiplexing (TWDM) PON, point-to-point (P2P) WDM PON (P2P-WDM PON), asynchronous transfer mode PON (asynchronous The PON system may be a 25 gigabit per second PON (25G-PON), a 50 gigabit per second PON (50G-PON), a 100 gigabit per second PON (100G-PON), a 25 gigabit per second EPON (25G-EPON), a 50 gigabit per second EPON (50G-EPON), a 100 gigabit per second EPON (100G-EPON), and GPON, EPON, etc. of other rates.

[0050] The method provided by the embodiments of the present disclosure is particularly suitable for 100G PON systems or even higher-speed PON systems, such as 200G PON, 400G PON systems, etc.

[0051] Figure 2 Schematic diagram of the structure of an optical communication device provided in an embodiment of the present application. Figure 2 As shown, the optical communication device 200 includes a processor, a memory 202, M PON MAC modules 203 and an optical module 204. Wherein, M is an integer and M is greater than 1. The processor is connected to the memory 202 and the M PON MAC modules 203 respectively, and the optical module 204 is connected to the M PON MAC modules 203 and the processor respectively. Here, the MAC protocol and transmission rate adopted by the M PON MAC modules 203 are the same.

[0052] Optionally, the MAC protocol includes a GPON protocol, an EPON protocol, a 10G-GPON protocol, a 10G-EPON protocol, or a MAC protocol with a higher transmission rate such as a 40G-PON protocol, a 50G-PON protocol, or a 100G-PON protocol. The transmission rate is one of the available transmission rates corresponding to the MAC protocol. For example, M PON MAC modules all use the 50G-PON protocol and all use a transmission rate of 50 Gbps. For another example, M PON MAC modules all use the 10G-GPON protocol and all use a transmission rate of 10 Gbps.

[0053] Optionally, the M PON MAC modules 203 may be integrated on the same physical chip, or the M PON MAC modules 203 may be respectively arranged on different physical chips.

[0054] In the embodiments of the present application, the physical chip may be a field-programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a digital signal processor (DSP), a programmable logic device (PLD) or other integrated chips.

[0055] When the optical communication device 200 is a sending device, the processor is used to process the data to be transmitted using M PON MAC modules 203 to obtain M first data; the processor is also used to encode the M first data to obtain one second data, and control the optical module 204 to send the second data through an optical signal of a target wavelength.

[0056] When the optical communication device 200 is a receiving device, the processor is used to obtain second data based on an optical signal of a target wavelength; decode the second data to obtain M paths of first data; and process the M paths of first data respectively using the M PON MAC modules 203 to obtain M paths of third data. The processor is also used to merge the M paths of third data output by the M PON MAC modules 203 to obtain received data.

[0057] Optionally, the processor 701 implements the above functions and the methods in the following embodiments by reading the program code stored in the memory 202, or the processor 701 implements the above functions and the methods in the following embodiments by internally stored program code. In the case where the processor 701 implements the above functions and the methods in the following embodiments by reading the program code stored in the memory, the program code for implementing the method provided in the embodiment of the present application is stored in the memory.

[0058] In some implementations, the processor may be one or more. When the processor is multiple, they may be integrated on the same physical chip, or they may be implemented using a physical chip respectively. For example, Figure 2 In the embodiment, the processor includes a first processor 201a and a second processor 201b, the first processor 201a and the second processor 201b are separately arranged, and the second processor 201b is integrated in the optical module 203.

[0059] When the optical communication device 200 is a sending device, the first processor 201a is used to process the data to be transmitted using M PON MAC modules 203 to obtain M first data; the second processor 201b is used to encode the M first data to obtain one second data, and control the optical module 204 to send the second data through an optical signal of a target wavelength.

[0060] When the optical communication device 200 is a receiving device, the second processor 201b is used to obtain second data based on the optical signal of the target wavelength; decode the second data to obtain M paths of first data; and process the M paths of first data respectively using the M PON MAC modules 203 to obtain M paths of third data. The first processor 201a is used to merge the M paths of third data output by the M PON MAC modules 203 to obtain received data.

[0061] For example, Figure 2As shown, the first processor 201a may be a network processor (NP) or a central processing unit (CPU), etc. The second processor 201b may be an optical digital signal processor (ODSP).

[0062] like Figure 2 As shown, in the embodiment of the present application, the optical communication device 200 further includes M serializers / deserializers (SERializer / DESerializer, serdes), also known as serial-to-parallel converters 205. Each serial-to-parallel converter 205 is connected between a PON MAC module 203 and the second processor 201b in the optical module 204, and is used to convert the parallel data output by the PON MAC module 203 into serial data and then output it to the second processor 201b in the optical module 204, or convert the serial data output by the second processor 201b in the optical module 204 into parallel data and then output it to the PON MAC module 203.

[0063] It should be noted that when the optical communication device 200 is a sending device in downlink transmission, the optical communication device 200 is an OLT; when the optical communication device 200 is a sending device in uplink transmission, the optical communication device 200 is an ONU; when the optical communication device 200 is a receiving device in downlink transmission, the optical communication device 200 is an ONU; when the optical communication device 200 is a receiving device in downlink transmission, the optical communication device 200 is an OLT.

[0064] Figure 3 Schematic diagram of a data transmission method provided by an embodiment of the present application. Figure 3 In the illustrated embodiment, the PON MAC module in the first optical communication device is referred to as a first PON MAC module, and the PON MAC module in the second optical communication device is referred to as a second PON MAC module. Figure 3 As shown, the data transmission method includes:

[0065] S301: The first optical communication device processes the data to be transmitted using M first PON MAC modules to obtain M channels of first data.

[0066] Here, the data to be transmitted includes a plurality of Ethernet (ETH) messages, and S301 includes: adding sequence numbers to the plurality of ETH messages respectively; and sending the plurality of ETH messages with the added sequence numbers to the M first PON MAC modules in turn.

[0067] Here, sending to M first PON MAC modules in turn means sending the i-th ETH message to the j-th first PON MAC module, where i is a positive integer, j is equal to i mod M, and mod represents a modulo operation. When the sequence number of the ETH message starts from 0, i is equal to the sequence number of the ETH message plus 1; when the sequence number of the ETH message starts from 1, i is equal to the sequence number of the ETH message. When the number of ETH messages is not equal to an integer multiple of the first PON MAC module, the first PON MAC module to which the number of ETH messages is allocated is smaller will send an idle message to ensure that the number of messages sent by each first PON MAC module is the same in the transmission of a burst of data.

[0068] For example, assuming that M is equal to 2, ETH message 0 (i.e., the first ETH message) is sent to PON MAC 0 (i.e., the first PON MAC module), ETH message 1 is sent to PON MAC 1 (i.e., the second first PON MAC module), ETH message 2 is sent to PON MAC 0, ETH message 3 is sent to PON MAC 1... and so on.

[0069] In the embodiment of the present application, a packet-by-packet distribution mechanism is adopted to distribute each Ethernet message in the data to be transmitted to M first PON MAC modules. In this way, the M first PON MAC modules can basically work synchronously, and each frame in the output first data is basically aligned, which can reduce the waiting delay when merging M channels of first data into one channel of second data.

[0070] S301 may be executed by a processor of the OLT.

[0071] The first PON MAC module is used to obtain a PON MAC frame based on the received ETH message. For example, when the MAC protocol supported by the first PONMAC module is the GPON protocol, the 10G-PON protocol or the GPON protocol with a higher transmission rate, the first PON MAC module adds a GPON encapsulation mode (G-PON Encapsulation Mode, GEM) header to the received ETH message to obtain a PON MAC frame. For another example, when the MAC protocol supported by the first PON MAC module is the EPON protocol or the 10G-EPON protocol, etc., the first PON MAC module modifies and fills the logical link identifier (logical link identifier, LLID) in the leading portion of the ETH message to obtain a PON MAC frame. Accordingly, each channel of first data includes multiple PON MAC frames output by the corresponding first PON MAC module. Here, each channel of first data is binary coded data composed of 0 and 1.

[0072] S302: The first optical communication device encodes M channels of first data to obtain one channel of second data.

[0073] S302 may be executed by the ODSP in the optical module of the first optical communication device.

[0074] In the embodiment of the present application, S302 includes: using PAM X technology to encode M channels of first data to obtain second data, where X is greater than M. Exemplarily, X is equal to 2 to the Mth power. The second data includes multiple symbols, each symbol includes M bits.

[0075] PAM X is a technology that uses X different signal levels for signal transmission. The second data encoded by the PAM X technology includes multiple symbols, each symbol corresponding to M bits. Compared with the non-return-to-zero code (NRZ) encoding method, the baud rate corresponding to the PAM X encoding method is significantly lower than the baud rate corresponding to the NRZ encoding method at the same bit rate. Therefore, the use of PAM X technology can significantly increase the data transmission rate.

[0076] For example, PAM 4 is a technology that uses four different signal levels for signal transmission, and each symbol period represents 2 bits of logical information (0, 1, 2, 3). To this end, the signal waveform corresponding to PAM 4 has 4 different levels, each level carries 2 bits: 00, 01, 10 or 11. That is, each symbol corresponds to two bits, and the baud rate is half the bit rate. In the NRZ encoding method, the baud rate is equal to the bit rate. It can be seen that at the same code rate, the baud rate corresponding to the PAM X encoding method is half the baud rate corresponding to the NRZ encoding method.

[0077] The larger X is, the smaller the signal-to-noise ratio is during data transmission, and the larger the signal-to-noise ratio is, the better the signal transmission quality is. Therefore, in order to improve signal quality and ensure the transmission performance of the PON system, X is usually not too large. For example, X can be equal to 4. Correspondingly, M is equal to 2. For another example, X is equal to 8 and M is equal to 3.

[0078] The following method can be used to encode the M-channel first data using the PAM X technology:

[0079] First, the M channels of first data are aligned according to the bit positions, for example, the frame headers in the M channels of first data can be aligned, so that the M channels of first data are aligned according to the bit positions; then, the M bits corresponding to the same bit position are used as a symbol to obtain one channel of second data. The M bits of the same bit position are used to map to the same level.

[0080] For example, still taking M equal to 2 and X equal to 4 as an example. Assume that one channel of first data is 10010101 and the other channel of first data is 01001011. Sort the first bit of the two channels of first data according to the number of the corresponding PON MAC module, sort the second bit of the two channels of first data according to the number of the corresponding PON MAC module... and so on, the obtained second data is 10, 01, 00, 10, 01, 10, 01, 11. When the four levels are 0V, 0.5V, 1V and 1.5V respectively, the second data are mapped to 1V, 0.5V, 0V, 1V, 0.5V, 1V, 0.5V, 1.5V respectively.

[0081] S303: The first optical communication device sends the second data via an optical signal of a target wavelength.

[0082] S303 can be implemented by using an optical module of the first optical communication device.

[0083] In S303, the first optical communication device modulates the optical signal of the target wavelength according to the second data, and sends the modulated optical signal to the second optical communication device.

[0084] When implemented, each first PON MAC module will send an enable signal to the ODSP of the optical module when it has upstream data to send. The ODSP of the optical module can control the optical transceiver component of the optical module to emit light according to the enable signal sent by the main MAC module to output the optical signal of the target wavelength.

[0085] S304: The second optical communication device receives an optical signal of a target wavelength, where the optical signal of the target wavelength carries the second data.

[0086] The second data carries the identifier of the ONU, such as the ONU ID.

[0087] S305: The second optical communication device obtains second data based on the optical signal.

[0088] In S305, the second optical communication device first performs photoelectric conversion on the optical signal through the optical module to obtain an electrical signal, and then makes a decision on the electrical signal to obtain a second data. The second data includes multiple symbols, each symbol includes M bits.

[0089] S306: The second optical communication device decodes the channel of second data to obtain M channels of first data.

[0090] As mentioned above, the second data is PAM X-coded data, and X is equal to 2 to the Mth power. Therefore, each level in the second data is used to indicate a symbol, and the M bits corresponding to the symbol belong to M channels of first data respectively. Each channel of first data includes multiple PON MAC frames.

[0091] In S306, the second optical communication device divides the M bits corresponding to each symbol into one path of first data, respectively, to obtain M paths of first data. For example, the M bits corresponding to each symbol are divided into corresponding paths of first data according to the bit positions. The first bit position is divided into the first path of first data, the second bit position is divided into the second path of first data, and so on.

[0092] S307: The second optical communication device processes the M channels of first data using M second PON MAC modules respectively to obtain M channels of third data.

[0093] The second PON MAC module is used to convert the PON MAC frame in the first data into an ETH message, and the ETH message output by the same second PON MAC module constitutes a third data. For example, the second PON MAC module is used to remove the GEM header of the PON MAC frame to obtain the ETH message. After obtaining M third data, forward error correction (FEC) processing can also be performed on each third data. The FEC processing method includes soft judgment and / or hard judgment.

[0094] S308: The second optical communication device combines M channels of third data to obtain received data.

[0095] Based on the sequence number in each ETH message in the M paths of third data, each EHT message is sorted to restore the sending order of the ETH message, so as to merge the M paths of third data to obtain received data.

[0096] It should be noted that when the first optical communication device is an OLT and the second optical communication device is an ONU, the data transmission method is a downlink data transmission method; when the second optical communication device is an OLT and the first optical communication device is an ONU, the data transmission method is an uplink data transmission method.

[0097] In an embodiment of the present application, the target wavelength in the transmission method of uplink data is different from the target wavelength in the transmission method of downlink data. Moreover, the target wavelengths in the transmission method of uplink data and the transmission method of downlink data are related to the actual transmission rate and can be selected according to actual needs, which is not limited in the embodiment of the present application. Exemplarily, when the PON MAC module is a 50G PON MAC module, the target wavelength in the transmission method of uplink data is 1284nm-1288nm or 1290nm-1310nm, and the target wavelength in the transmission method of downlink data is 1340nm-1344nm.

[0098] In an embodiment of the present application, data output by M first PON MAC modules need to be sent through channels of M wavelengths. In the present application, the M first data output by the M first PON MAC modules are first merged into one second data, and then the second data is sent using a single wavelength, which is the target wavelength, thereby avoiding the adverse effects of using channels of different wavelengths to send data.

[0099] Moreover, by merging M channels of first data into one channel of second data, the transmission rate of the data to be transmitted can be M times the transmission rate of the first data. Since each channel of first data is obtained by a PON MAC module, the transmission rate of each channel of first data is the transmission rate of the corresponding PON MAC module. Under the premise that the rate supported by each first PON MAC module is certain, the transmission rate of the optical communication device is equivalent to the transmission rate of the M-times PON MAC module. It is equivalent to binding the transmission channels of M PON MAC modules to form a high-speed transmission channel, which is conducive to improving the data transmission rate of the first optical communication device. For example, when M is equal to 2 and the PON MAC module is a 50G PON MAC module, a transmission channel with a transmission rate of 100Gbps is formed.

[0100] When the second optical communication device is an OLT and the first optical communication device is an ONU, the OLT needs to first allocate an authorized bandwidth to the ONU, where the authorized bandwidth is used to indicate an upstream time slot allocated to the ONU. Accordingly, in S303, the ONU sends the second data via an optical signal of a target wavelength in the allocated upstream time slot.

[0101] The bandwidth allocation method provided in the embodiment of the present application is exemplarily described below. Figure 4 FIG. 1 is a flow chart of a bandwidth allocation method provided in an embodiment of the present application. Figure 4 As shown, the bandwidth allocation method includes:

[0102] S401: The ONU sends M bandwidth requests to the OLT.

[0103] Correspondingly, the OLT receives M bandwidth requests sent by the ONU.

[0104] The ONU includes M first PON MAC modules, each of which corresponds to one of the M bandwidth requests. In the upstream direction, the OLT allocates a small amount of bandwidth for the ONU to report its bandwidth requirements, such as the length or size of the ONU's buffer for data to be sent. The bandwidth request sent by the ONU carries the bandwidth requirements of the ONU.

[0105] In a first possible implementation, the M first PON MAC modules respectively count the bandwidth requirements. As mentioned above, since the number of ETH messages that each first PON MAC module needs to send is equal during the transmission of a burst of data, the bandwidth requirements counted by the M first PON MAC modules are the same; each first PON MAC module sends a bandwidth request, and the bandwidth requirements corresponding to the bandwidth requests sent by each first PON MAC module are the same. In a second possible implementation, only the main MAC module among the M first PON MAC modules can count the bandwidth requirements, and send the counted bandwidth requirements to the slave MAC module; each first PON MAC module sends a bandwidth request, and the bandwidth requirements corresponding to the bandwidth requests sent by each first PON MAC module are the same.

[0106] In this embodiment, each first PON MAC module of the ONU sends a bandwidth request, which makes little change to the existing process and is easy to implement. In other embodiments, S401 can be replaced by a main MAC module in the M first PON MAC modules counting bandwidth requirements and sending a bandwidth request to the OLT.

[0107] S402: The OLT sends M pieces of authorized bandwidth information to the ONU according to the M bandwidth requests.

[0108] The OLT includes M second PON MAC modules, each of which corresponds to a first PON MAC module. The corresponding first PON MAC module and the second PON MAC module use the same MAC protocol and transmission rate. The M authorized bandwidth information are respectively used to indicate the uplink time slot of a corresponding first PON MAC module among the M first PON MAC modules of the ONU, and the uplink time slots indicated by the M authorized bandwidth information are the same. That is, the uplink time slots allocated to the M first PON MAC modules of the same ONU are the same.

[0109] The authorized bandwidth information may be sent to the ONU in the form of a bandwidth map (BWmap) or other forms. Exemplarily, the authorized bandwidth information may indicate the start time and length information of the upstream time slot of the ONU.

[0110] The M second PON MAC modules of the OLT include a master MAC module and M-1 slave MAC modules. In S402, the master MAC module of the OLT generates authorized bandwidth information according to the received bandwidth request; the master MAC module of the OLT synchronizes the authorized bandwidth information to the M-1 slave MAC modules; the master MAC module of the OLT and the M-1 slave MAC modules respectively send an authorized bandwidth information to the ONU. In this way, it can be ensured that the authorized bandwidth information sent by each PON MAC module of the OLT to the corresponding PON MAC module of the ONU is the same, and each PON MAC module of the ONU synchronously sends uplink data in the same uplink time slot to avoid conflicts with uplink burst data of other ONUs.

[0111] Accordingly, the ONU receives M authorized bandwidth information, so that the ONU can subsequently send the second data in the uplink time slot indicated by the authorized bandwidth information. The embodiment of the present application does not limit the DBA algorithm used by the main MAC to generate the authorized bandwidth information, and any DBA algorithm in the related art can be used.

[0112] Figure 5 It is a process diagram of a bandwidth allocation method and an uplink transmission method provided in an embodiment of the present application. Figure 5 In the description, M is equal to 2 (ie, the OLT and the ONU include 2 PON MAC modules respectively) as an example.

[0113] like Figure 5 As shown, the two PON MAC modules of the OLT are OLT 50G MAC0 and OLT 50G MAC1, where OLT 50G MAC0 is the master MAC module and OLT 50G MAC1 is the slave MAC module. The two PON MAC modules of the ONU are ONU50G MAC0 and ONU 50GMAC1, where ONU 50G MAC0 is the master MAC module and ONU 50G MAC1 is the slave MAC module.

[0114] ONU 50G MAC0 sends DBA report 0 to OLT 50G MAC0, OLT 50G MAC0 receives the DBA report 0 and generates authorized bandwidth information (ie, BWmap 0) according to the DBA report 0; OLT 50G MAC0 sends BWmap 0 to ONU 50GMAC0; ONU 50G MAC0 sends ONU burst data 0 in the time slot indicated by BWmap 0.

[0115] ONU 50G MAC1 sends DBA report 1 to OLT 50G MAC1, but OLT 50G MAC1 does not perform DBA.

[0116] ONU 50G MAC0 synchronizes the authorized bandwidth information to ONU 50G MAC1, and ONU 50G MAC1 obtains the authorized bandwidth information (ie, BWmap 1); OLT 50G MAC 0 sends BWmap 0 to ONU 50G MAC1; ONU 50G MAC 1 sends ONU burst data 1 in the time slot indicated by BWmap1.

[0117] Before sending upstream data to the OLT, the ONU needs to register with the OLT and establish a controllable connection with the OLT. The following describes the ONU registration process.

[0118] Figure 6 A schematic diagram of an ONU registration method provided in an embodiment of the present application. Figure 6 As shown, the registration method includes:

[0119] S601: The OLT sends a registration request message to the ONU via the main MAC module of the OLT.

[0120] When implemented, the OLT periodically broadcasts the registration request message. Correspondingly, the ONU receives the registration request message. The registration request message is used to instruct the ONU to register.

[0121] In the embodiment of the present application, the OLT sends a registration request message to the ONU only through one PON MAC module, while other PON MAC modules do not send registration request messages to the ONU. The PON MAC module that sends the registration request message can be called a master MAC module, and other PON MAC modules that do not send registration request messages can be called slave MAC modules.

[0122] S602: The ONU sends a registration response message to the OLT through the main MAC module of the ONU.

[0123] The registration response message may include a serial number (SN) or a MAC address of the ONU. Optionally, the registration response message may also include a type of the ONU.

[0124] In the embodiment of the present application, the ONU sends a registration response message to the OLT only through one PON MAC module, while other PON MAC modules do not send a registration response message to the OLT. The PON MAC module that sends the registration response message can be referred to as a master MAC module, and other PON MAC modules that do not send the registration response message can be referred to as slave MAC modules.

[0125] S603: The OLT allocates an ONU identifier to the ONU according to the registration response message.

[0126] In some examples, the OLT can determine whether the ONU is legal based on the SN or MAC address of the ONU. If the ONU is legal, an ONU identifier is assigned to the ONU; otherwise, if the ONU is illegal, the ONU is taken offline.

[0127] The method for determining whether the ONU is legal may be: comparing the received SN or MAC address of the ONU with the pre-configured SN or MAC address of the ONU; if the received SN of the ONU is the same as the pre-configured SN of the ONU or the received MAC address of the ONU is the same as the pre-configured MAC address of the ONU, it indicates that the ONU is legal; if the received SN of the ONU is different from the pre-configured SN of the ONU or the received MAC address of the ONU is different from the pre-configured MAC address of the ONU, it indicates that the ONU is illegal.

[0128] Here, the pre-configured serial number or MAC address of the ONU may be input through a command line, or input through a network management system and stored in the OLT.

[0129] The ONU identifier corresponds to the SN of the ONU one-to-one, that is, each ONU SN uniquely corresponds to an ONU identifier. The ONU identifier can be an ONU identity (identity, ID).

[0130] S604: The OLT sends an ONU identifier to the ONU.

[0131] Exemplarily, the OLT may send an identifier allocation message to the ONU to send the ONU identifier to the ONU.

[0132] S605: The OLT sends a ranging request message.

[0133] In S605, the OLT sends the ranging request message to the main MAC module of the ONU via the main MAC module of the OLT. Correspondingly, the main MAC module of the ONU receives the ranging request message.

[0134] S606: The ONU sends a ranging response message to the OLT according to the ranging request message.

[0135] Correspondingly, the OLT receives the ranging response message.

[0136] S607: The OLT performs ONU ranging according to the time interval between sending the ranging request message and receiving the ranging response message to obtain ranging information.

[0137] The ranging information includes an equalization delay (EqD) parameter. The EqD parameter is used to make different ONUs logically at the same distance, so that each ONU can send uplink data in its corresponding uplink time slot without conflict.

[0138] S608: The OLT sends ranging information to the ONU.

[0139] The OLT sends ranging information to the main MAC module of the ONU through the main MAC module of the OLT.

[0140] S609: The OLT sends an authentication request message to the ONU.

[0141] The OLT sends an authentication request message to the main MAC module of the ONU through the main MAC module of the OLT.

[0142] S610: The ONU sends an authentication response message to the OLT.

[0143] The ONU sends an authentication response message to the OLT through the main MAC module of the ONU.

[0144] The authentication response message carries authentication information, which includes at least one of an SN and a password. For example, when the authentication method is password authentication, the authentication information includes a password. Alternatively, when the authentication method is SN authentication, the authentication information includes an SN. Alternatively, when the authentication method is a combination of password authentication and SN authentication, the authentication information includes a password and an SN.

[0145] S611: The ONU compares the locally configured authentication information with the authentication information in the authentication response message.

[0146] If the locally configured authentication information is the same as the authentication information in the authentication response message, the ONU passes the authentication; if the locally configured authentication information is different from the authentication information in the authentication response message, the ONU fails the authentication.

[0147] S601 to S604 may be referred to as an SN acquisition phase, S605 to S608 may be referred to as a ranging phase, and S609 to S601 may be referred to as an authentication phase.

[0148] After the ONU passes the authentication, the OLT can confirm that the ONU is online and enters the operation phase. In this operation phase, the OLT performs ONU management and control interface (OMCI) configuration recovery and OMCI management, such as establishing service flows, encryption, etc. After completing these management and control processes, service data can be exchanged between the ONU and the OLT.

[0149] Optionally, after the ONU is authenticated, the master MAC module of the ONU synchronizes the ranging information to the slave MAC module of the ONU. In this way, each PON MAC module of the ONU can send uplink data based on the same EqD. In an embodiment of the present application, after the slave MAC module of the ONU obtains the ranging information, the slave MAC module goes online.

[0150] Optionally, the main MAC module of the ONU synchronizes the ranging information to the slave MAC modules of the ONU in any of the following ways: after obtaining the ranging information, the main MAC module of the ONU directly sends the ranging information to each slave MAC module; or, after obtaining the ranging information, the main MAC module of the ONU sends the ranging information to each slave MAC module based on the request of each slave MAC module.

[0151] In the embodiment of the present application, each message of the ONU and the OLT during the registration process is sent using physical layer operations, administrations and maintenance (PLOAM) messages.

[0152] Figure 7 701 is a block diagram of a data transmission device provided in an embodiment of the present application. The data transmission device can be implemented as all or part of an optical communication device through software, hardware, or a combination of both. The optical communication device includes M first PON MAC modules, where M is an integer and M is greater than 1, and the MAC protocol and transmission rate adopted by the M first PON MAC modules are the same. The data transmission device may include: a distribution module 701, an encoding module 702, and a sending module 703.

[0153] The distribution module 701 is used to process the data to be transmitted using M first PON MAC modules to obtain M first data. The encoding module 702 is used to encode the M first data to obtain one second data. The sending module 703 is used to send the second data via an optical signal of a target wavelength.

[0154] Optionally, the encoding module 702 is configured to encode M channels of first data by adopting an X-level pulse amplitude modulation (PAM X) technology to obtain second data, where X is greater than M.

[0155] Optionally, the distribution module 701 is used to add sequence numbers to the multiple Ethernet messages; and send the multiple Ethernet messages with the added sequence numbers to the M first PON MAC modules in turn.

[0156] Figure 81 is a block diagram of a data transmission device provided in an embodiment of the present application. The data transmission device can be implemented as all or part of an optical communication device through software, hardware, or a combination of both. The optical communication device includes M first PON MAC modules, where M is an integer and M is greater than 1, and the MAC protocol and transmission rate adopted by the M first PON MAC modules are the same.

[0157] like Figure 8 As shown, the data transmission device may include: an acquisition module 801, a decoding module 802, a distribution module 803 and a merging module 804. The acquisition module 801 is used to obtain second data based on an optical signal of a target wavelength. The decoding module 802 is used to divide the second data into M paths of first data. The distribution module 803 is used to process the M paths of first data using M first PON MAC modules respectively to obtain M paths of third data. The merging module 804 is used to merge the M paths of third data to obtain received data.

[0158] Optionally, the second data includes multiple symbols, and any symbol of the multiple symbols includes M bits. The decoding module 802 is configured to divide the M bits corresponding to each symbol in the second data into one path of first data, to obtain M paths of first data.

[0159] Optionally, the third data includes multiple Ethernet packets; the merging module 804 is used to sort the multiple Ethernet packets included in the M paths of third data according to the sequence numbers carried in the Ethernet packets.

[0160] Optionally, when Figure 7 or Figure 8 When the optical communication device is an OLT, the device further includes: a receiving module and a second sending module. The receiving module is used to receive M bandwidth requests sent by the ONU, the ONU includes M second PON MAC modules, and the M second PON MAC modules respectively correspond to one bandwidth request in the M bandwidth requests; the second sending module is used to send M authorized bandwidth information to the ONU according to the M bandwidth requests, the M authorized bandwidth information is respectively used to indicate the uplink time slot of a corresponding second PON MAC module in the M second PON MAC modules, and the uplink time slots indicated by the M authorized bandwidth information are the same.

[0161] Optionally, the M first PON MAC modules include a master MAC module and M-1 slave MAC modules. The second sending module is used to send an authorized bandwidth information to the ONU through the master MAC module; synchronize the authorized bandwidth information to the M-1 slave MAC modules through the master MAC module; and send the M-1 authorized bandwidth information to the ONU through the M-1 slave MAC modules.

[0162] Optionally, when Figure 7 or Figure 8 When the optical communication device is an ONU, the device further includes: a second sending module and a receiving module. The second sending module is used to send M bandwidth requests to the OLT, and the M first PON MAC modules respectively correspond to one bandwidth request in the M bandwidth requests. The receiving module is used to receive M authorized bandwidth information sent by the OLT, and the M authorized bandwidth information is respectively used to indicate the uplink time slot of a corresponding first PON MAC module in the M first PON MAC modules, and the uplink time slots indicated by the M authorized bandwidth information are the same.

[0163] It should be noted that the data transmission device provided in the above embodiment only uses the division of the above functional units as an example when transmitting data. In actual applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device is divided into different functional units to complete all or part of the functions described above. In addition, the data transmission device provided in the above embodiment belongs to the same concept as the data transmission method embodiment. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0164] The descriptions of the processes corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process, please refer to the relevant descriptions of other processes.

[0165] Fig. 9 Schematic diagram of a PON system provided by an embodiment of the present application. Fig. 9 As shown, the PON system includes: an OLT and multiple ONUs. The OLT and the ONUs are connected via an ODN. The OLT uses Figure 2 The structure shown. At least one of the at least one ONUs uses Figure 2 The structure shown.

[0166] like Fig. 9 As shown, some of the multiple ONUs use Figure 2 The structure shown includes M PON MAC modules; another part of the ONUs may include less than M PON MAC modules, for example, only one PON MAC module.

[0167] Alternatively, in other embodiments, all ONUs may adopt Figure 2 The structure shown.

[0168] like Fig. 9 As shown, ONU1 sends upstream data in time slot 1, ONU2 sends upstream data in time slot 2, and ONU3 sends upstream data in time slot 3. Each ONU sends upstream data in its own time slot without conflict.

[0169] In some embodiments, a computer-readable storage medium is also provided, which stores computer instructions. When the computer instructions stored in the computer-readable storage medium are executed by an electronic device, the optical communication device executes the data transmission method provided by the above method embodiment.

[0170] In some embodiments, a computer program product is also provided, which includes one or more computer program instructions. When the computer program instructions are loaded and executed by a computer, the computer executes the data transmission method provided by the above method embodiment.

[0171] In some embodiments, a chip is also provided, including a memory and a processor, wherein the memory is used to store computer instructions, and the processor is used to call and run the computer instructions from the memory to execute the data transmission method provided by the above method embodiment.

[0172] Unless otherwise defined, the technical or scientific terms used herein shall have the usual meanings understood by persons of ordinary skill in the field to which this application belongs. The words "first", "second", "third" and similar terms used in the patent application specification and claims of this application do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one" or "one" do not indicate a quantitative limitation, but rather indicate the presence of at least one. Similar words such as "include" or "comprise" mean that the elements or objects appearing before "include" or "comprises" cover the elements or objects listed after "include" or "comprises" and their equivalents, and do not exclude other elements or objects.

[0173] The above is only an embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A data transmission method, characterized in that: Applied to an optical communication device, the optical communication device comprises M first passive optical network PON media access control MAC modules, wherein M is an integer and M is greater than 1, and the MAC protocol and transmission rate adopted by the M first PON MAC modules are the same; The method comprises: Processing the data to be transmitted by using the M first PON MAC modules to obtain M channels of first data; Encoding the M channels of first data to obtain one channel of second data; The second data is transmitted via an optical signal of a target wavelength.

2. The method according to claim 1, characterized in that The encoding of the M paths of first data to obtain one path of second data includes: The M channels of first data are encoded by adopting an X-level pulse amplitude modulation (PAM X) technology to obtain the second data, wherein X is greater than M.

3. The method according to claim 2, characterized in that M is equal to 2, and X is equal to 4.

4. The method according to any one of claims 1 to 3, characterized in that: The data to be transmitted includes a plurality of Ethernet messages, The processing of the data to be transmitted by using the M first PON MAC modules includes: Adding sequence numbers to the multiple Ethernet messages; The plurality of Ethernet messages with added sequence numbers are sent in turn to the M first PON MAC modules.

5. A data transmission method, characterized in that: Applied to an optical communication device, the optical communication device comprises M first passive optical network PON media access control MAC modules, wherein M is an integer and M is greater than 1, and the MAC protocol and transmission rate adopted by the M first PON MAC modules are the same; The method comprises: obtaining second data based on the optical signal of the target wavelength; Decoding the second data to obtain M channels of first data; Processing the M paths of first data respectively by using the M first PON MAC modules to obtain M paths of third data; The M paths of third data are combined to obtain received data.

6. The method according to claim 5, characterized in that The second data includes a plurality of symbols, and any symbol of the plurality of symbols includes M bits; The decoding of the second data to obtain M paths of first data includes: The M bits corresponding to each symbol in the second data are respectively divided into one path of first data to obtain M paths of first data.

7. The method according to claim 5 or 6, characterized in that: The third data includes a plurality of Ethernet messages; The step of combining the M paths of third data to obtain received data includes: The multiple Ethernet messages included in the M paths of third data are sorted according to the sequence numbers carried in the Ethernet messages.

8. The method according to any one of claims 1 to 7, characterized in that: The optical communication device is an optical line terminal OLT, and the method further includes: Receiving M bandwidth requests sent by an optical network unit ONU, wherein the ONU includes M second PON MAC modules, and the M second PON MAC modules respectively correspond to one bandwidth request among the M bandwidth requests; According to the M bandwidth requests, M authorized bandwidth information is sent to the ONU, wherein the M authorized bandwidth information is respectively used to indicate an uplink time slot of a corresponding second PON MAC module among the M second PON MAC modules, and the uplink time slots indicated by the M authorized bandwidth information are the same.

9. The method according to claim 8, characterized in that The M first PON MAC modules include a master MAC module and M-1 slave MAC modules, The sending M pieces of authorized bandwidth information to the ONU according to the M bandwidth requests includes: Sending an authorized bandwidth information to the ONU through the main MAC module; Synchronizing the authorized bandwidth information to the M-1 slave MAC modules through the master MAC module; The M-1 pieces of authorized bandwidth information are sent to the ONU via the M-1 slave MAC modules.

10. The method according to any one of claims 1 to 7, characterized in that: The optical communication device is an optical network unit (ONU), and the method further comprises: Sending M bandwidth requests to the OLT, wherein the M first PON MAC modules respectively correspond to one bandwidth request among the M bandwidth requests; M pieces of authorized bandwidth information sent by the OLT are received, where the M pieces of authorized bandwidth information are respectively used to indicate an uplink time slot of a corresponding first PON MAC module among the M first PON MAC modules, and the uplink time slots indicated by the M pieces of authorized bandwidth information are the same.

11. A data transmission device, characterized in that: Applied to an optical communication device, the optical communication device comprises M first passive optical network PON media access control MAC modules, wherein M is an integer and M is greater than 1, and the MAC protocol and transmission rate adopted by the M first PON MAC modules are the same; The device comprises: A distribution module, configured to process the data to be transmitted using the M first PON MAC modules to obtain M channels of first data; An encoding module, used for encoding the M paths of first data to obtain one path of second data; The first sending module is used to send the second data via an optical signal of a target wavelength.

12. The device according to claim 11, characterized in that The encoding module is used to encode the M channels of first data by adopting an X-level pulse amplitude modulation (PAM X) technology to obtain the second data, wherein X is greater than M.

13. The device according to claim 12, characterized in that M is equal to 2, and X is equal to 4.

14. The device according to any one of claims 11 to 13, characterized in that The data to be transmitted includes a plurality of Ethernet messages, The distribution module is used to add sequence numbers to the multiple Ethernet messages; and send the multiple Ethernet messages with added sequence numbers to the M first PON MAC modules in turn.

15. A data transmission device, characterized in that: Applied to an optical communication device, the optical communication device comprises M first passive optical network PON media access control MAC modules, wherein M is an integer and M is greater than 1, and the MAC protocol and transmission rate adopted by the M first PON MAC modules are the same; The device comprises: An acquisition module, used for acquiring second data based on an optical signal of a target wavelength; A decoding module, used for decoding the second data to obtain M channels of first data; A distribution module, configured to process the M paths of first data respectively using the M first PON MAC modules to obtain M paths of third data; The merging module is used to merge the M paths of third data to obtain received data.

16. The device according to claim 15, characterized in that The second data includes a plurality of symbols, and any symbol of the plurality of symbols includes M bits; The decoding module is used to divide the M bits corresponding to each symbol in the second data into one path of first data respectively, so as to obtain M paths of first data.

17. The device according to claim 15 or 16, characterized in that The third data includes a plurality of Ethernet messages; The merging module is used to sort the multiple Ethernet messages included in the M paths of third data according to the sequence numbers carried in the Ethernet messages.

18. The device according to any one of claims 11 to 17, characterized in that The optical communication device is an optical line terminal OLT, and the device further includes: A receiving module, configured to receive M bandwidth requests sent by an optical network unit ONU, wherein the ONU includes M second PON MAC modules, and the M second PON MAC modules respectively correspond to one bandwidth request among the M bandwidth requests; The second sending module is used to send M authorized bandwidth information to the ONU according to the M bandwidth requests, wherein the M authorized bandwidth information are respectively used to indicate an uplink time slot of a corresponding second PON MAC module among the M second PON MAC modules, and the uplink time slots indicated by the M authorized bandwidth information are the same.

19. The device according to claim 18, characterized in that The M first PON MAC modules include a master MAC module and M-1 slave MAC modules; The second sending module is used to send an authorized bandwidth information to the ONU through the main MAC module; synchronize the authorized bandwidth information to the M-1 slave MAC modules through the main MAC module; and send M-1 authorized bandwidth information to the ONU through the M-1 slave MAC modules.

20. The device according to any one of claims 11 to 17, characterized in that The optical communication device is an optical network unit ONU, The device also includes: A second sending module, configured to send M bandwidth requests to the OLT, wherein the M first PON MAC modules respectively correspond to one bandwidth request among the M bandwidth requests; The receiving module is used to receive M pieces of authorized bandwidth information sent by the OLT, wherein the M pieces of authorized bandwidth information are respectively used to indicate an uplink time slot of a corresponding first PON MAC module among the M first PON MAC modules, and the uplink time slots indicated by the M pieces of authorized bandwidth information are the same.

21. An optical communication device, characterized in that: The optical communication device includes a processor, a memory, M first PON MAC modules and an optical module, the M first PON MAC modules are respectively connected to the processor, and the M first PON MAC modules are respectively connected to the optical module, the memory is used to store software programs, and the processor runs or executes the software program stored in the memory so that the optical communication device implements the method according to any one of claims 1 to 10.

22. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program codes executed by a processor, wherein the program codes include instructions for implementing the method according to any one of claims 1 to 10.