Optical communication method, master device and slave device

By moving the MAC layer processing in the slave device up to the master device, the problem of high manufacturing cost of the slave ONU is solved, and the overall cost of the optical communication system is reduced.

WO2024222377A1PCT designated stage expired Publication Date: 2024-10-31HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/084731
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-06-27
Filing Date
2024-03-29
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

In the optical communication system, the manufacturing cost of the slave ONU is high, which leads to the high manufacturing cost of the PON. It is difficult to effectively reduce the cost of the slave device with existing technology.

Method used

By moving the relevant processing of the MAC layer in the slave device up to the master device, the hardware and software requirements of the slave device are reduced, thereby reducing the cost of the slave device. Specific steps include the master device performing relevant processing on the received uplink optical signal, including physical layer and MAC layer processing, and optimizing transmission resources between the slave device and the master device through incremental signaling.

Benefits of technology

It effectively reduces the cost of the slave device, simplifies the processing requirements of the slave device, and improves the overall cost-effectiveness of the optical communication system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024084731_31102024_PF_FP_ABST
    Figure CN2024084731_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application is applied to the field of optical communications, and provides an optical communication method. The optical communication method comprises: a master device receives a first uplink optical signal from a first slave device; the master device converts the first uplink optical signal into a first uplink electrical signal; the master device performs uplink-related processing on the first uplink electrical signal to obtain a first service message, wherein the uplink-related processing comprises first uplink-related processing of a media access control (MAC) layer; and the master device outputs the first service message. According to the technical solution provided by the present application, the related processing of the MAC layer in the slave device is moved to the master device, so that the manufacturing cost of the slave device and the manufacturing cost of an optical communication system are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Optical communication method, master device and slave device

[0001] This application claims priority to the Chinese patent applications filed with the State Intellectual Property Office on April 24, 2023, with application number CN202310472296.6 and application name “Optical communication system, optical communication method, slave device and master device” and filed with the State Intellectual Property Office on June 27, 2023, with application number CN202310769519.5 and application name “Optical communication method, master device and slave device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of optical communications, and in particular to an optical communication method, a master device, and a slave device. Background Art

[0003] A passive optical network (PON) includes an optical line terminal (OLT), an optical distribution network (ODN), and multiple master optical network units (ONUs). Each master ONU can be connected to multiple slave ONUs through an optical splitter. In the uplink direction, the slave ONU receives an uplink wireless signal from a station (STA), converts the uplink wireless signal into an analog signal through a radio frequency unit, and then converts the analog signal into a digital signal. After that, the slave ONU performs relevant processing on the signal at the physical layer and media access control (MAC) layer to obtain a service message. The slave ONU converts the service message into an uplink optical signal through a photoelectric conversion unit, and transmits the uplink optical signal to the master ONU through an optical splitter. The master ONU is used to demodulate the uplink optical signal through the photoelectric conversion unit to obtain a service message, and transmit the service message to the OLT through the ODN. The OLT is used to send service messages to the public network.

[0004] In practical applications, the manufacturing cost of the ONU is high, which leads to a high manufacturing cost of the PON.

[0005] Summary of the Invention

[0006] The present application provides an optical communication method, a master device, and a slave device. By moving the relevant processing of the MAC layer in the slave device to the master device, the cost of the slave device can be reduced, thereby reducing the cost of the optical communication system.

[0007] The first aspect of the present application provides an optical communication method. The optical communication method includes the following steps: a master device receives a first uplink optical signal from a first slave device; the master device converts the first uplink optical signal into a first uplink electrical signal; the master device performs uplink-related processing on the first uplink electrical signal to obtain a first service message; the uplink-related processing includes first uplink-related processing of the MAC layer; the master device outputs the first service message. In the present application, unless otherwise specified, the MAC layer or the physical layer refers to the MAC layer or the physical layer related to the wireless protocol, such as the WiFi MAC layer or the WiFi physical layer. Similarly, unless otherwise specified, the MAC layer uplink / downlink-related processing refers to the MAC layer uplink / downlink processing of the wireless protocol; the physical layer uplink / downlink-related processing refers to the physical layer uplink / downlink processing of the wireless protocol.

[0008] In an optional manner of the first aspect, the first uplink electrical signal is a digitized in-phase and quadrature IQ signal. The uplink-related processing performed by the master device on the first uplink electrical signal further includes second uplink-related processing at the physical layer, first uplink-related processing at the physical layer, and second uplink-related processing at the MAC layer. By moving the second uplink-related processing at the physical layer, the first uplink-related processing at the physical layer, and the second uplink-related processing at the MAC layer to the master device, the cost of the slave device can be further reduced.

[0009] In an optional manner of the first aspect, the uplink-related processing performed by the master device on the first uplink electrical signal further includes first uplink-related processing at the physical layer and second uplink-related processing at the MAC layer. By moving the first uplink-related processing at the physical layer and the second uplink-related processing at the MAC layer to the master device, the cost of the slave device can be further reduced.

[0010] In an optional manner of the first aspect, the uplink-related processing performed by the master device on the first uplink electrical signal further includes second uplink-related processing at the MAC layer. By moving the second uplink-related processing at the MAC layer to the master device, the cost of the slave device can be further reduced.

[0011] In an optional embodiment of the first aspect, the optical communication method further includes the following steps: the master device sends incremental signaling to the first slave device. The incremental signaling includes a frame identifier and variable field information. The frame identifier is used by the first slave device to obtain a first fixed field set based on a first mapping relationship. The first mapping relationship includes a mapping relationship between multiple frame identifiers and multiple fixed field sets. The variable field is used by the first slave device to obtain a first control frame based on the variable field and the first fixed field set. In the present application, by transmitting incremental signaling, transmission resources between the first slave device and the master device can be conserved.

[0012] In an optional manner of the first aspect, the optical communication method further includes the following steps: the master device performs downlink-related processing on the second service message to obtain a first downlink electrical signal, the downlink-related processing including first downlink-related processing at the MAC layer; the master device converts the first downlink electrical signal into a first downlink optical signal; and the master device transmits the first downlink optical signal to the first slave device. By moving the first downlink-related processing at the MAC layer to the master device, the cost of the slave device can be further reduced.

[0013] In an optional manner of the first aspect, the downlink-related processing performed by the master device on the second service message further includes second downlink-related processing at the MAC layer, first downlink-related processing at the physical layer, and second downlink-related processing at the physical layer. By moving the first downlink-related processing at the physical layer, the second downlink-related processing at the physical layer, and the second downlink-related processing at the MAC layer to the master device, the cost of the slave device can be further reduced.

[0014] In an optional manner of the first aspect, the downlink-related processing performed by the master device on the second service message further includes second downlink-related processing at the MAC layer and first downlink-related processing at the physical layer. By moving the second downlink-related processing at the physical layer and the second downlink-related processing at the MAC layer to the master device, the cost of the slave device can be further reduced.

[0015] In an optional manner of the first aspect, the downlink-related processing performed by the master device on the second service message further includes second downlink-related processing at the MAC layer. By moving the second downlink-related processing at the MAC layer to the master device, the cost of the slave device can be further reduced.

[0016] In an optional manner of the first aspect, the master device is connected to the first slave device via an optical splitter.

[0017] In an optional manner of the first aspect, the master device is connected to the second slave device via an optical splitter.

[0018] In an optional embodiment of the first aspect, the optical communication method further includes the following steps: the master device receives a second uplink optical signal from the second slave device; the master device converts the second uplink optical signal into a second uplink electrical signal; and the master device performs uplink-related processing on the second uplink electrical signal to obtain a third service message.

[0019] In an optional embodiment of the first aspect, the optical communication method further includes the following steps: the master device receives a fourth service message; the master device performs downlink-related processing on the fourth service message to obtain a second downlink electrical signal; the master device converts the second downlink electrical signal into a second downlink optical signal, and transmits the second downlink optical signal to the second slave device.

[0020] In an optional embodiment of the first aspect, the optical communication method further includes the following steps: the master device allocates a first uplink time slot to the first slave device and allocates a second uplink time slot to the second slave device, the first uplink time slot and the second uplink time slot being different; the master device receives a first uplink optical signal from the first slave device in the first uplink time slot; and the master device receives a second uplink optical signal from the second slave device in the second uplink time slot.

[0021] A second aspect of the present application provides an optical communication method. The optical communication method includes the following steps: a first slave device receives a first uplink wireless signal from a STA; the first slave device obtains a first uplink electrical signal based on the first uplink wireless signal; the first slave device converts the first uplink electrical signal into a first uplink optical signal; and the first slave device transmits the first uplink optical signal to a master device. The master device performs uplink-related processing on the first uplink optical signal to obtain a first service message. The uplink-related processing of the master device includes first uplink-related processing at the MAC layer.

[0022] In an optional manner of the second aspect, the first uplink electrical signal is a digitized IQ signal.

[0023] In an optional embodiment of the second aspect, the first uplink-related processing of the MAC layer deaggregates an aggregation-medium access control protocol data unit (A-MPDU) and a cyclic redundancy check (CRC). The second uplink-related processing of the MAC layer also includes an acknowledgment (ACK) or block acknowledgement (BA) reply. The first uplink-related processing of the MAC layer includes deaggregating an aggregation-medium access control service data unit (A-MSDU). By retaining the related processing that significantly affects STA latency in the slave device, STA latency can be reduced.

[0024] In an optional manner of the second aspect, the first slave device converts the first uplink wireless signal into an electrical signal, and performs second uplink related processing of the physical layer on the electrical signal to obtain the first uplink electrical signal.

[0025] In an optional manner of the second aspect, the second uplink-related processing of the physical layer includes at least one of the uplink-related processing of the physical layer. The uplink-related processing of the physical layer includes synchronization, fast Fourier transform (FFT), constellation mapping, descrambling, and restoration of media access control protocol data units (MPDUs).

[0026] In an optional manner of the second aspect, the first slave device converts the first uplink wireless signal into an electrical signal, and performs second uplink related processing of the physical layer and first uplink related processing of the physical layer on the electrical signal in sequence to obtain a first uplink electrical signal.

[0027] In an optional manner of the second aspect, a first uplink-related process of the physical layer includes a first subset of the uplink-related processes of the physical layer. A second uplink-related process of the physical layer includes a second subset of the uplink-related processes of the physical layer. The uplink-related processes of the physical layer include synchronization, FFT, constellation mapping, descrambling, and restoration of a media access control protocol data unit (MPDU). The first subset is different from the second subset.

[0028] In an optional manner of the second aspect, the first slave device converts the first uplink wireless signal into an electrical signal, and performs second uplink related processing of the physical layer, first uplink related processing of the physical layer, and second uplink related processing of the MAC layer on the electrical signal in sequence to obtain a first uplink electrical signal.

[0029] In an optional manner of the second aspect, the first uplink-related processing of the MAC layer includes a first subset of the uplink-related processing of the MAC layer. The second uplink-related processing of the MAC layer includes a second subset of the uplink-related processing of the MAC layer. The uplink-related processing of the MAC layer includes decompressing an A-MPDU, performing a CRC, an ACK, or a block acknowledgement (BA), and decompressing an A-MSDU. The first subset is different from the second subset.

[0030] In an optional manner of the second aspect, the optical communication method further includes the following steps: the first slave device receives incremental signaling from the master device, the incremental signaling including a frame identifier and variable field information; the first slave device obtains a first fixed field set based on the frame identifier and a first mapping relationship, the first mapping relationship including a mapping relationship between multiple frame identifiers and multiple fixed field sets; the first slave device obtains a first control frame based on the variable field and the first fixed field set; and the first slave device sends the first control frame to the STA.

[0031] In an optional manner of the second aspect, a frame format of the first control frame complies with provisions of the 802.11 protocol.

[0032] In an optional manner of the second aspect, the first control frame is an ACK frame. The frame identifier is used to indicate that the type of the first control frame is an ACK frame. The variable field information includes at least one of the following information: a duration field, a destination address field, a frame sequence check code field, an additional frame fragmentation flag field, a retransmission flag bit, and information about an extension field. The first fixed field set includes at least one of the following information: a transmission to a distributed system flag bit, a transmission from a distributed system flag bit, a power management flag bit, and information about a security field.

[0033] In an optional embodiment of the second aspect, the optical communication method further includes the following steps: the first slave device receives a first downlink optical signal from the master device; the first slave device converts the first downlink optical signal into a first downlink electrical signal, where the first downlink electrical signal is obtained after the master device performs downlink-related processing on the second service message, and the downlink-related processing includes a first downlink-related processing of the MAC layer; the first slave device obtains a first downlink wireless signal based on the first downlink electrical signal; and the first slave device sends the first downlink wireless signal to the STA.

[0034] In an optional manner of the second aspect, the first slave device performs second downlink related processing of the physical layer on the first downlink electrical signal, and obtains the first downlink wireless signal according to the processed electrical signal.

[0035] In an optional manner of the second aspect, the first slave device performs first downlink related processing of the physical layer and second downlink related processing of the physical layer on the first downlink electrical signal in sequence, and obtains a first downlink wireless signal based on the processed electrical signal.

[0036] In an optional manner of the second aspect, the first slave device performs second downlink related processing of the MAC layer, first downlink related processing of the physical layer, and second downlink related processing of the physical layer on the first downlink electrical signal in sequence, and obtains a first downlink wireless signal based on the processed electrical signal.

[0037] A third aspect of the present application provides a master device. The master device includes a photoelectric conversion unit and a processor. The photoelectric conversion unit is configured to receive a first uplink optical signal from a first slave device and convert the first uplink optical signal into a first uplink electrical signal. The processor is configured to perform uplink-related processing on the first uplink electrical signal to obtain a first service message. The uplink-related processing includes first uplink-related processing at the MAC layer. The processor is further configured to output the first service message.

[0038] In an optional manner of the third aspect, the first uplink electrical signal is a digitized IQ signal.

[0039] In an optional manner of the third aspect, the uplink-related processing performed by the master device on the first uplink electrical signal further includes second uplink-related processing of the physical layer, first uplink-related processing of the physical layer, and second uplink-related processing of the MAC layer.

[0040] In an optional manner of the third aspect, the uplink-related processing performed by the master device on the first uplink electrical signal further includes first uplink-related processing at the physical layer and second uplink-related processing at the MAC layer.

[0041] In an optional manner of the third aspect, the uplink-related processing performed by the master device on the first uplink electrical signal further includes second uplink-related processing at the MAC layer.

[0042] In an optional embodiment of the third aspect, the photoelectric conversion unit is further configured to send incremental signaling to the first slave device. The incremental signaling includes a frame identifier and variable field information. The frame identifier is used by the first slave device to obtain a first fixed field set based on a first mapping relationship. The first mapping relationship includes a mapping relationship between multiple frame identifiers and multiple fixed field sets. The variable field is used by the first slave device to obtain a first control frame based on the variable field and the first fixed field set.

[0043] In an optional manner of the third aspect, the processor is further configured to perform downlink-related processing on the second service message to obtain a first downlink electrical signal. The downlink-related processing includes first downlink-related processing at the MAC layer. The optoelectronic conversion unit is further configured to convert the first downlink electrical signal into a first downlink optical signal, and transmit the first downlink optical signal to the first slave device.

[0044] In an optional manner of the third aspect, the downlink-related processing performed by the master device on the second service message further includes second downlink-related processing of the MAC layer, first downlink-related processing of the physical layer, and second downlink-related processing of the physical layer.

[0045] In an optional manner of the third aspect, the downlink related processing performed by the master device on the second service message further includes second downlink related processing at the MAC layer and first downlink related processing at the physical layer.

[0046] In an optional manner of the third aspect, the downlink-related processing performed by the master device on the second service message further includes second downlink-related processing at the MAC layer.

[0047] In an optional manner of the third aspect, the master device is connected to the second slave device via an optical splitter.

[0048] In an optional embodiment of the third aspect, the optoelectronic conversion unit is further configured to receive a second uplink optical signal from the second slave device. The optoelectronic conversion unit is further configured to convert the second uplink optical signal into a second uplink electrical signal. The processor is further configured to perform uplink-related processing on the second uplink electrical signal to obtain a third service message.

[0049] In an optional manner of the third aspect, the optoelectronic conversion unit is further configured to receive a fourth service message. The processor is further configured to perform downlink-related processing on the fourth service message to obtain a second downlink electrical signal. The optoelectronic conversion unit is further configured to convert the second downlink electrical signal into a second downlink optical signal, and transmit the second downlink optical signal to the second slave device.

[0050] In an optional embodiment of the third aspect, the processor is further configured to allocate a first uplink time slot to the first slave device and a second uplink time slot to the second slave device. The first uplink time slot and the second uplink time slot are different. The optoelectronic conversion unit is configured to receive a first uplink optical signal from the first slave device in the first uplink time slot. The optoelectronic conversion unit is configured to receive a second uplink optical signal from the second slave device in the second uplink time slot.

[0051] A fourth aspect of the present application provides a slave device. The slave device includes a wireless module and a photoelectric conversion unit. The wireless module is used to receive a first uplink wireless signal from an STA and obtain a first uplink electrical signal based on the first uplink wireless signal. The photoelectric conversion unit is used to convert the first uplink electrical signal into a first uplink optical signal and transmit the first uplink optical signal to a master device. The master device performs uplink-related processing on the first uplink optical signal to obtain a first service message. The uplink-related processing of the master device includes first uplink-related processing of the MAC layer.

[0052] In an optional manner of the fourth aspect, the first uplink electrical signal is a digitized IQ signal.

[0053] In an optional manner of the fourth aspect, the first uplink related processing of the MAC layer includes one or more of the following: decompressing A-MPDU, CRC, ACK, block acknowledgement BA, and decompressing A-MSDU.

[0054] In an optional manner of the fourth aspect, the wireless module is used to convert the first uplink wireless signal into an electrical signal, and perform second uplink related processing of the physical layer on the electrical signal to obtain the first uplink electrical signal.

[0055] In an optional manner of the fourth aspect, the second uplink-related processing of the physical layer includes at least one of the uplink-related processing of the physical layer. The uplink-related processing of the physical layer includes synchronization, FFT, constellation mapping, descrambling, and MPDU restoration.

[0056] In an optional manner of the fourth aspect, the wireless module is used to convert the first uplink wireless signal into an electrical signal, and perform second uplink related processing of the physical layer and first uplink related processing of the physical layer on the electrical signal in sequence to obtain the first uplink electrical signal.

[0057] In an optional manner of the fourth aspect, a first uplink-related process of the physical layer includes a first subset of the uplink-related processes of the physical layer. A second uplink-related process of the physical layer includes a second subset of the uplink-related processes of the physical layer. The uplink-related processes of the physical layer include synchronization, FFT, constellation mapping, descrambling, and MPDU restoration. The first subset is different from the second subset.

[0058] In an optional manner of the fourth aspect, the wireless module is used to convert the first uplink wireless signal into an electrical signal, and perform second uplink related processing of the physical layer, first uplink related processing of the physical layer, and second uplink related processing of the MAC layer on the electrical signal in sequence to obtain a first uplink electrical signal.

[0059] In an optional manner of the fourth aspect, the first uplink-related processing of the MAC layer includes a first subset of the uplink-related processing of the MAC layer. The second uplink-related processing of the MAC layer includes a second subset of the uplink-related processing of the MAC layer. The uplink-related processing of the MAC layer includes decompressing an A-MPDU, performing a CRC, an ACK or a block acknowledgement (BA), and decompressing an A-MSDU. The first subset is different from the second subset.

[0060] In an optional embodiment of the fourth aspect, the slave device further includes a processor. The optoelectronic conversion unit is further configured to receive incremental signaling from the master device. The incremental signaling includes a frame identifier and variable field information. The processor is configured to obtain a first fixed field set based on the frame identifier and a first mapping relationship. The first mapping relationship includes a mapping relationship between multiple frame identifiers and multiple fixed field sets. The processor is further configured to obtain a first control frame based on the variable field and the first fixed field set. The wireless module is further configured to send the first control frame to the STA.

[0061] In an optional manner of the fourth aspect, a frame format of the first control frame complies with provisions of the 802.11 protocol.

[0062] In an optional manner of the fourth aspect, the first control frame is an ACK frame. The frame identifier is used to indicate that the type of the first control frame is an ACK frame. The variable field information includes at least one of the following information: a duration field, a destination address field, a frame sequence check code field, an additional frame fragmentation flag field, a retransmission flag bit, and information about an extension field. The first fixed field set includes at least one of the following information: a transmission to a distributed system flag bit, a transmission from a distributed system flag bit, a power management flag bit, and information about a security field.

[0063] In an optional embodiment of the fourth aspect, the optoelectronic conversion unit is further configured to receive a first downlink optical signal from a master device. The optoelectronic conversion unit is further configured to convert the first downlink optical signal into a first downlink electrical signal. The first downlink electrical signal is obtained after the master device performs downlink-related processing on the second service message. The downlink-related processing includes first downlink-related processing at the MAC layer. The wireless module is further configured to obtain a first downlink wireless signal based on the first downlink electrical signal. The wireless module is further configured to send the first downlink wireless signal to the STA.

[0064] In an optional manner of the fourth aspect, the wireless module is used to perform second downlink related processing of the physical layer on the first downlink electrical signal, and obtain the first downlink wireless signal according to the processed electrical signal.

[0065] In an optional manner of the fourth aspect, the wireless module is used to perform first downlink related processing of the physical layer and second downlink related processing of the physical layer on the first downlink electrical signal in sequence, and obtain a first downlink wireless signal based on the processed electrical signal.

[0066] In an optional manner of the fourth aspect, the wireless module is used to perform second downlink related processing of the MAC layer, first downlink related processing of the physical layer, and second downlink related processing of the physical layer on the first downlink electrical signal in sequence, and obtain a first downlink wireless signal based on the processed electrical signal.

[0067] In a fifth aspect, the present application provides an optical communication system. The optical communication system includes a master device and a first slave device. The master device and the first slave device are connected via an optical splitter. The master device is configured to execute the method described in the first aspect or any optional embodiment of the first aspect. The first slave device is configured to execute the method described in the second aspect or any optional embodiment of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] FIG1 is a first structural diagram of an optical communication system provided in an embodiment of the present application;

[0069] Figure 1.1 is a schematic diagram of the structure of uplink related processing of wireless signals provided in an embodiment of the present application;

[0070] FIG2 is a second structural diagram of the optical communication system provided in an embodiment of the present application;

[0071] FIG2.1 is a third structural diagram of the optical communication system provided in an embodiment of the present application;

[0072] FIG3 is a fourth structural diagram of the optical communication system provided in an embodiment of the present application;

[0073] FIG4 is a fifth structural diagram of an optical communication system provided in an embodiment of the present application;

[0074] FIG5 is a sixth structural diagram of an optical communication system provided in an embodiment of the present application;

[0075] Figure 5.1 is a schematic diagram of the structure of a slave device provided in an embodiment of the present application;

[0076] FIG6 is a schematic diagram of the structure of a first uplink electrical signal of an optical layer provided in an embodiment of the present application;

[0077] Figure 6.1 is a schematic diagram of the structure of downlink related processing of wireless signals provided in an embodiment of the present application;

[0078] FIG7 is a schematic diagram of the structure of incremental signaling provided in an embodiment of the present application;

[0079] FIG8 is a schematic diagram of the structure of a first fixed field set provided in an embodiment of the present application;

[0080] FIG9 is a schematic diagram of the structure of an ACK frame;

[0081] FIG10 is a sixth structural diagram of a communication system provided in an embodiment of the present application;

[0082] FIG11 is a first flow chart of the optical communication method provided in an embodiment of the present application;

[0083] FIG12 is a second flow chart of the optical communication method provided in an embodiment of the present application;

[0084] FIG13 is a schematic structural diagram of a first slave device provided in an embodiment of the present application;

[0085] FIG14 is a schematic diagram of the structure of the main device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0086] The present application provides an optical communication method, a master device and a slave device. By moving the relevant processing of the media access control (MAC) layer in the slave device to the master device, the manufacturing cost of the slave device can be reduced, thereby reducing the manufacturing cost of the optical communication system. It should be understood that the "first", "second", "target", etc. used in this application are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order. Unless otherwise specified, the specific description of some technical features in one embodiment can also be used to explain the corresponding technical features mentioned in other embodiments. For example, the processing actions included in the first uplink related processing in one embodiment can also be applied to the first uplink related processing mentioned in other embodiments. In addition, for the sake of simplicity and clarity, reference numbers and / or letters are repeated in multiple figures of this application. Repetition does not indicate that there is a strict limiting relationship between various embodiments and / or configurations.

[0087] The optical communication system in this application can be applied to a passive optical network (PON). In a PON system, a master optical network unit (ONU) can be connected to multiple slave ONUs via an optical splitter. In the downstream direction, the downstream optical signal sent by the master ONU is distributed to the slave ONUs connected to the optical splitter via the optical splitter. In the upstream direction, the upstream optical signal from each slave ONU is time-divided and coupled to the master ONU via the optical splitter. In practical applications, the cost of the slave ONU is relatively high, which leads to a higher cost of the PON.

[0088] To this end, the present application provides an optical communication system. Figure 1 is a first structural schematic diagram of the optical communication system provided in an embodiment of the present application. As shown in Figure 1, the optical communication system 100 includes a master device 101, an optical splitter 102 and a slave device. The number of slave devices can be one or more. In the example of Figure 1, the optical communication system 100 includes multiple slave devices. The multiple slave devices include slave devices 103 to 105. The master device 101 can be a master gateway, an access control (AC), a master ONU, a master optical network terminal (ONT), a main FTTR unit (MFU) or a master FTTR. The slave device can be a slave gateway, an access point (AP), a slave ONU, a slave ONT, a sub FTTR unit (SFU) or a slave FTTR. The master device 101 and the slave device are connected through an optical splitter 102. In the upstream direction, the upstream optical signals from each slave device are time-divided and coupled to the master device 101 through the optical splitter 102. In the downstream direction, the downstream optical signal sent by the master device 101 is distributed to the slave devices connected to the optical splitter 102 through the optical splitter 102 .

[0089] The master device 101 is associated with the first station (STA) through the first slave device among multiple slave devices. The first slave device can be any slave device among the slave devices 103 to 105. The first slave device is used to receive a first uplink wireless signal from the first STA. The first uplink wireless signal can be a WiFi signal or a millimeter wave signal. The first slave device is also used to obtain a first uplink electrical signal based on the first uplink wireless signal, convert the first uplink electrical signal into a first uplink optical signal, and transmit the first uplink optical signal to the master device 101. The master device 101 is used to receive the first uplink optical signal from the first slave device and convert the first uplink optical signal into a first uplink electrical signal. Figure 1.1 is a structural diagram of the uplink related processing of the wireless signal provided in an embodiment of the present application. As shown in Figure 1.1, the uplink related processing of the wireless signal includes uplink related processing of the physical layer and uplink related processing of the MAC layer. The uplink related processing of the physical layer includes a second uplink related processing 112 of the physical layer and a first uplink related processing 111 of the physical layer. The uplink-related processing of the MAC layer includes a first uplink-related processing 113 of the MAC layer and a second uplink-related processing 114 of the MAC layer, which are described below respectively.

[0090] The uplink-related processing of the physical layer may include synchronization, fast Fourier transform (FFT), constellation mapping, descrambling, and restoration of the media access control protocol data unit (MPDU). It should be understood that this application only provides an exemplary description of the uplink-related processing of the physical layer. In actual applications, the uplink-related processing of the physical layer may include more or fewer processing actions. For example, the uplink-related processing of the physical layer does not include synchronization. For another example, the uplink-related processing of the physical layer also includes channel estimation or forward error correction.

[0091] The first uplink-related processing 111 of the physical layer can also be referred to as the high-order uplink-related processing of the physical layer; the second uplink-related processing 112 of the physical layer can also be referred to as the low-order uplink-related processing of the physical layer. For example, the second uplink-related processing 112 of the physical layer includes synchronization, FFT, and constellation mapping; the first uplink-related processing 111 of the physical layer includes descrambling and MPDU restoration. It should be understood that those skilled in the art can divide the uplink-related processing of the physical layer into the second uplink-related processing 112 of the physical layer and the first uplink-related processing 111 of the physical layer as needed. Therefore, this application does not limit the specific processing actions included in the second uplink-related processing 112 of the physical layer and the first uplink-related processing 111 of the physical layer.

[0092] The uplink-related processing of the MAC layer may include deaggregating the aggregation-medium access control protocol data unit (A-MPDU), the cyclic redundancy check (CRC), and the deaggregating the aggregation-medium access control service data unit (A-MSDU). The uplink-related processing of the MAC layer may also include an acknowledgement (ACK) or a block acknowledgement (BA) reply. Among them, deframing includes deframing the A-MPDU and / or deframing the A-MSDU. It should be understood that the embodiment of the present application only provides an exemplary description of the uplink-related processing of the MAC layer. In actual applications, the uplink-related processing of the MAC layer may include more or fewer processing actions. For example, the uplink-related processing of the MAC layer does not include CRC. For another example, the uplink-related processing of the MAC layer also includes MAC frame receiving buffer management or receiving frame filtering.

[0093] The first uplink-related processing 113 of the MAC layer can also be called the high-order uplink-related processing of the MAC layer; the second uplink-related processing 114 of the MAC layer can also be called the low-order uplink-related processing of the MAC layer. For example, the first uplink-related processing 113 of the MAC layer includes ACK reply and A-MSDU decompression. The second uplink-related processing 114 of the MAC layer includes A-MPDU decompression and CRC. For another example, the first uplink-related processing 113 of the MAC layer includes A-MPDU decompression. The second uplink-related processing 114 of the MAC layer includes CRC, ACK reply and A-MSDU decompression. It should be understood that those skilled in the art can divide the uplink-related processing of the MAC layer into the first uplink-related processing 113 of the MAC layer and the second uplink-related processing 114 of the MAC layer as needed. Therefore, the present application does not limit the specific processing actions included in the first uplink-related processing 113 and the second uplink-related processing 114 of the MAC layer.

[0094] MAC layer uplink processing may include MAC layer data plane uplink processing and MAC layer control plane uplink processing. MAC layer data plane uplink processing includes ACK reply, A-MSDU or CRC decoding, etc. MAC layer control plane uplink processing includes acquiring and replying user protocol messages, or acquiring and analyzing system status, etc. The first MAC layer uplink processing 113 may include MAC layer data plane uplink processing and / or MAC layer control plane uplink processing. The second MAC layer uplink processing 114 may include MAC layer data plane uplink processing and / or MAC layer control plane uplink processing.

[0095] According to the description in Figure 1.1, the uplink-related processing of the wireless protocol includes four parts. The four parts are the first uplink-related processing 113 of the MAC layer, the second uplink-related processing 114 of the MAC layer, the first uplink-related processing 111 of the physical layer, and the second uplink-related processing 112 of the physical layer. In the embodiment of the present application, one or more of the four parts are moved up to the master device 101, that is, the master device 101 is used to perform part or all of the uplink-related processing of the wireless signal on the first uplink electrical signal. The solution proposed in the present application simplifies the processing of the slave device, reduces the requirements for the hardware and software capabilities of the slave device, and thus reduces the cost of the slave device. Various possible implementation schemes are described below.

[0096] Figure 2 is a second structural diagram of the optical communication system provided in an embodiment of the present application. As shown in Figure 2, the optical communication system includes a master device 101 and a slave device 103. The master device 101 and the slave device 103 are connected via an optical splitter 102 (not shown in the figure).

[0097] The slave device 103 includes a wireless module 201 and an optoelectronic conversion unit 202. The wireless module 201 includes a radio frequency unit 207, a physical layer processing unit 206, and a MAC layer processing unit 205. The physical layer may also be referred to as a PHY layer. The radio frequency unit 207 is configured to receive a first uplink wireless signal from a first STA and convert the first uplink wireless signal into an electrical signal. The physical layer processing unit 206 may include a digital signal processor (DSP) chip. The physical layer processing unit 206 is configured to perform physical layer uplink-related processing on the electrical signal and transmit the processed electrical signal to the MAC layer processing unit 205. The MAC layer processing unit 205 may be a MAC chip. The MAC layer processing unit 205 is configured to perform second MAC layer uplink-related processing on the processed electrical signal to obtain a first uplink electrical signal. The MAC layer processing unit 205 is configured to transmit the first uplink electrical signal to the optoelectronic conversion unit 202. The optoelectronic conversion unit 202 is configured to convert the first uplink electrical signal into a first uplink optical signal and transmit the first uplink optical signal to the master device 101.

[0098] The master device 101 includes an optical-to-electrical conversion unit 203 and a processor 220. The processor 220 includes a MAC layer processing unit 204. The optical-to-electrical conversion unit 203 includes an optical module. The optical module is configured to convert a first uplink optical signal into a first uplink electrical signal. The MAC layer processing unit 204 is configured to perform first uplink-related processing at the MAC layer on the first uplink electrical signal to obtain a first service message and output the first service message. For example, the master device 101 is a master ONU. The master device 101 also includes another optical module. The other optical module is configured to convert the first service message into a third uplink optical signal and transmit the third uplink optical signal to the OLT. The OLT is configured to send the third uplink optical signal or an electrical signal derived from the third uplink optical signal to the public network. In another example, the master device 101 is configured to transmit the first service message to other devices. In another example, the master device 101 is configured to encapsulate the first service message to obtain a Layer 3 message and transmit the Layer 3 message to other devices. Optionally, the first service message is an Ethernet (ETH) message.

[0099] Figure 2.1 is a third structural schematic diagram of the optical communication system provided in an embodiment of the present application. As shown in Figure 2.1, based on Figure 2, the optoelectronic conversion unit 202 includes an optical MAC layer processing unit 209, an optical physical layer processing unit 208, and an optical module 210; the optoelectronic conversion unit 203 includes an optical MAC layer processing unit 231, an optical physical layer processing unit 230, and an optical module 232. Optical MAC layer processing can also be referred to as PON protocol MAC layer processing. Optical physical layer processing can also be referred to as PON protocol physical layer processing. The MAC layer processing unit 205 is configured to transmit a first uplink electrical signal to the optical MAC layer processing unit 209. The optical MAC layer processing unit 209 is configured to perform optical MAC layer uplink-related processing on the first uplink electrical signal to obtain a processed first uplink electrical signal. The optical MAC layer processing unit 209 is configured to transmit the processed first uplink electrical signal to the optical physical layer processing unit 208. The optical physical layer processing unit 208 is configured to perform optical physical layer uplink-related processing on the processed first uplink electrical signal. The optical physical layer processing unit 208 is configured to transmit the processed first uplink electrical signal to the optical module 210. The optical module 210 is configured to convert the processed first uplink electrical signal into a first uplink optical signal and transmit the first uplink optical signal to the optoelectronic conversion unit 203. The optical module 232 in the optoelectronic conversion unit 203 is configured to convert the first uplink optical signal into a first uplink electrical signal and transmit the first uplink electrical signal to the optical physical layer processing unit 230. The optical physical layer processing unit 230 is configured to perform optical physical layer uplink processing on the first uplink electrical signal and transmit the processed first uplink electrical signal to the optical MAC layer processing unit 231. The optical MAC layer processing unit 231 is configured to perform optical MAC layer uplink processing on the processed first uplink electrical signal and transmit the processed first uplink electrical signal to the MAC layer processing unit 204. The MAC layer processing unit 204 is configured to perform first uplink MAC layer processing on the processed first uplink electrical signal.

[0100] As can be seen from Figures 2 and 2.1, the photoelectric conversion unit 202 and the photoelectric conversion unit 203 include at least an optical module and may also include an optical MAC processing unit and an optical physical layer processing unit. In the subsequent embodiments of this application, the photoelectric conversion unit 202 and the photoelectric conversion unit 203 will not be described in detail to simplify the description. However, those skilled in the art should understand that the photoelectric conversion unit 202 and the photoelectric conversion unit 203 shown in Figures 2 and 2.1 are also applicable to other embodiments of this application.

[0101] In practical applications, uplink-related processing at the MAC layer includes actions that affect STA latency. To reduce STA latency, these actions can be retained in slave device 103. In this case, the second uplink-related processing at the MAC layer includes actions that affect STA latency. These actions can include A-MPDU and CRC. These actions can also include ACK or BA responses. In this case, the first uplink-related processing at the MAC layer includes decompressing the A-MSDU.

[0102] In the example of FIG2 , master device 101 is configured to perform the first uplink-related processing at the MAC layer, and slave device 103 is configured to perform the second uplink-related processing at the MAC layer. In actual applications, master device 101 may also be configured to perform the second uplink-related processing at the MAC layer, and slave device 103 need not perform the second uplink-related processing at the MAC layer. This will be described below.

[0103] Figure 3 is a fourth structural schematic diagram of an optical communication system provided in an embodiment of the present application. As shown in Figure 3, the optical communication system includes a master device 101 and a slave device 103. The slave device 103 includes a wireless module 301 and an optoelectronic conversion unit 202. The wireless module 301 includes a radio frequency unit 304 and a physical layer processing unit 303. The radio frequency unit 304 is configured to receive a first uplink wireless signal from a first STA and convert the first uplink wireless signal into an electrical signal. The physical layer processing unit 303 is configured to perform physical layer uplink-related processing on the electrical signal to obtain a first uplink electrical signal. The first uplink electrical signal may be a MAC frame or a Wi-Fi MAC frame. The MAC frame or Wi-Fi MAC frame is an MPDU. The optoelectronic conversion unit 202 is configured to convert the first uplink electrical signal into a first uplink optical signal and transmit the first uplink optical signal to the master device 101. The master device 101 includes the optoelectronic conversion unit 203 and a processor 320. The processor 320 includes the MAC layer processing unit 302. The optoelectronic conversion unit 203 is configured to convert the first uplink optical signal into a first uplink electrical signal. The MAC layer processing unit 302 is configured to perform uplink related processing of the MAC layer on the first uplink electrical signal to obtain a first service message, and output the first service message.

[0104] In the example of FIG3 , slave device 103 is configured to perform a first uplink-related process at the physical layer and a second uplink-related process at the physical layer. In actual applications, master device 101 may also be configured to perform the first uplink-related process at the physical layer, and slave device 103 may be configured to perform the second uplink-related process at the physical layer. This is described below.

[0105] FIG4 is a fifth structural diagram of an optical communication system provided in an embodiment of the present application. As shown in FIG4 , the optical communication system includes a master device 101 and a slave device 103. The slave device 103 includes a wireless module 401 and an optoelectronic conversion unit 202. The wireless module 401 includes a radio frequency unit 404 and a physical layer processing unit 403. The radio frequency unit 404 is configured to receive a first uplink wireless signal from a first STA and convert the first uplink wireless signal into an electrical signal. The physical layer processing unit 403 is configured to perform second uplink related processing at the physical layer on the electrical signal to obtain a first uplink electrical signal. The optoelectronic conversion unit 202 is configured to convert the processed first uplink electrical signal into a first uplink optical signal and transmit the first uplink optical signal to the master device 101. The master device 101 includes the optoelectronic conversion unit 203 and a processor 420. The processor 420 includes the physical layer processing unit 402 and the MAC layer processing unit 302. The optoelectronic conversion unit 203 is configured to convert the first uplink optical signal into a first uplink electrical signal. The physical layer processing unit 402 is configured to perform a first uplink related processing of the physical layer on the first uplink electrical signal. The MAC layer processing unit 302 is configured to perform a MAC layer uplink related processing on the processed first uplink electrical signal to obtain a first service message.

[0106] In the example of FIG4 , slave device 103 is configured to perform the second uplink-related processing at the physical layer, and master device 101 is configured to perform the first uplink-related processing at the physical layer. In actual applications, master device 101 may also be configured to perform the second uplink-related processing at the physical layer, and slave device 103 need not perform the second uplink-related processing at the physical layer. This is described below.

[0107] Figure 5 is a sixth structural diagram of the optical communication system provided in an embodiment of the present application. As shown in Figure 5, the optical communication system includes a master device 101 and a slave device 103. The slave device 103 includes a wireless module 501 and an optoelectronic conversion unit 202. The wireless module 501 includes a radio frequency unit 503. The radio frequency unit 503 is used to receive a first uplink wireless signal from a first STA and convert the first uplink wireless signal into a first uplink electrical signal. The optoelectronic conversion unit 202 is used to convert the first uplink electrical signal into a first uplink optical signal and transmit the first uplink optical signal to the master device 101. The master device 101 includes the optoelectronic conversion unit 203 and a processor 520. The processor 520 includes a physical layer processing unit 502 and a MAC layer processing unit 302. The optoelectronic conversion unit 203 is used to convert the first uplink optical signal into a first uplink electrical signal. The physical layer processing unit 502 is used to perform physical layer uplink related processing on the first uplink electrical signal. The MAC layer processing unit 302 is configured to perform uplink related processing at the MAC layer on the processed first uplink electrical signal to obtain a first service message.

[0108] Figure 5.1 is a structural diagram of a slave device provided in an embodiment of the present application. As shown in Figure 5.1, the slave device 103 includes a photoelectric conversion unit 202 and a wireless module. The wireless module includes an antenna 503, a physical layer processing circuit 504 and a MAC layer processing circuit 505. In the uplink direction, the physical layer processing circuit 504 includes a preamble addition, a frequency deviation correction circuit, an FFT circuit, a channel assessment circuit, a multiple input multiple output (MIMO) processing circuit and a demodulation, deinterleaving, decoding and descrambling circuit. The MAC layer processing circuit 505 includes an MPDU / physical layer protocol data unit (PHY protocol data unit, PPDU) frame parsing circuit, an encryption and decryption circuit and a reordering circuit. In the downlink direction, the MAC layer processing circuit 505 includes a sending buffer, an enhanced distributed channel access (EDCA) circuit, an encryption and decryption circuit and an MPDU / PPDU aggregation circuit. The physical layer processing circuit 504 includes a circuit for adding a preamble, a guard interval (GI), a contention period (CP), an IFFT circuit, a spatial stream mapping circuit, and a scrambling, coding, interleaving, and modulation circuit.

[0109] In the present application, part of the circuit in the wireless module can be moved to the master device, thereby reducing the cost of the slave device. For example, for cutting point 1, the circuit on the left side of cutting point 1 in the wireless module can be moved to the master device, and the circuit on the right side of cutting point 1 can be retained in the slave device 103. In this case, the wireless module of the slave device 103 does not need to include a reordering circuit. The slave device 103 transmits an ETH message to the master device. For another example, for cutting point 2, the circuit on the left side of cutting point 2 in the wireless module can be moved to the master device, and the circuit on the right side of cutting point 2 can be retained in the slave device 103. In this case, the wireless module of the slave device 103 does not need to include a MAC layer processing circuit 505. The slave device 103 transmits an Ethernet MPDU message to the master device. For another example, for cutting point 3, the circuit on the left side of cutting point 3 in the wireless module can be moved to the master device, and the circuit on the right side of cutting point 3 can be retained in the slave device 103. In this case, the wireless module of slave device 103 need not include the MAC layer processing circuit 505, the MIMO processing circuit, the demodulation, deinterleaving, decoding, and descrambling circuits, the spatial stream mapping circuit, and the scrambling, encoding, interleaving, and modulation circuits. Slave device 103 transmits the Ethernet frequency domain code stream to the master device. For another example, for cut point 4, the circuit to the left of cut point 4 in the wireless module can be moved up to the master device. In this case, the wireless module of slave device 103 need not include the MAC layer processing circuit 505 and the physical layer processing circuit 504. Slave device 103 transmits an IQ signal to the master device. In the examples of Figures 2 to 5.1, the optoelectronic conversion unit 202 is used to receive the first uplink electrical signal at the electrical layer from the wireless module and convert the first uplink electrical signal at the electrical layer into a first uplink optical signal. Before the electrical-to-optical conversion, the optoelectronic conversion unit 202 can be used to add a header and parity bits to the first uplink electrical signal at the electrical layer to obtain the first uplink electrical signal at the optical layer. The optoelectronic conversion unit 202 is used to convert the first uplink electrical signal at the optical layer into a first uplink optical signal. Figure 6 is a schematic diagram of the structure of the first uplink electrical signal of the optical layer provided in an embodiment of the present application. As shown in Figure 6, the first uplink electrical signal 601 of the optical layer includes a PON header field, a payload field, and a passive optical network frame check sequence (PON frame check sequence, PON FCS) field. The payload field is used to carry the wireless modulated signal output by the wireless module, i.e., the first uplink electrical signal of the electrical layer.

[0110] In the examples of Figures 2 to 5.1, the wireless modulated signal can have different formats. For example, in Figure 5, the wireless modulated signal output by wireless module 501 is an in-phase quadrature (IQ) signal. In Figure 3, the wireless modulated signal output by wireless module 301 is a WiFi MAC frame. In Figure 4, the wireless modulated signal output by wireless module 401 is an intermediate signal generated in the process of obtaining a MAC frame from an IQ signal. In Figure 2, the wireless modulated signal output by wireless module 201 is an intermediate signal generated in the process of obtaining a service message from a MAC frame. In the examples of Figures 2 to 5.1, slave device 103 moves the uplink-related processing of the physical layer and / or the uplink-related processing of the MAC layer to master device 101, thereby reducing the manufacturing cost of slave device 103. Similarly, in actual applications, slave device 103 can move some or all of the downlink-related processing of the wireless signal to master device 101. Figure 6.1 is a schematic diagram of the structure of the downlink-related processing of the wireless signal provided in an embodiment of the present application. As shown in Figure 6.1, wireless signal downlink processing includes downlink processing at the physical layer and downlink processing at the MAC layer. These are described below.

[0111] The downlink-related processing of the physical layer may include scrambling, encoding, constellation mapping, inverse fast Fourier transform (IFFT), and the formation of a physical layer protocol data unit (PPDU). It should be understood that this application only provides an exemplary description of the downlink-related processing of the physical layer. In actual applications, the downlink-related processing of the physical layer may include more or fewer processing actions. For example, the downlink-related processing of the physical layer does not include encoding. For another example, the downlink-related processing of the physical layer also includes interleaving or signal enhancement.

[0112] The physical layer downlink-related processing includes the physical layer's first downlink-related processing 603 and the physical layer's second downlink-related processing 604. The physical layer's first downlink-related processing 603 can also be referred to as the physical layer's high-order downlink-related processing. The physical layer's second downlink-related processing 604 can also be referred to as the physical layer's low-order downlink-related processing. For example, the physical layer's second downlink-related processing 604 includes IFFT and PPDU composition; the physical layer's first downlink-related processing 603 includes scrambling, coding, and constellation mapping. It should be understood that those skilled in the art can divide the physical layer's downlink-related processing 602 into the physical layer's first downlink-related processing 603 and the physical layer's second downlink-related processing 604 as needed. Therefore, this application does not limit the specific processing actions included in the physical layer's first downlink-related processing 603 and the second downlink-related processing 604.

[0113] The downlink related processing of the MAC layer may include frame sealing, aggregation, generating a transmit vector, judging the air interface status and submitting to the physical layer. Among them, frame sealing refers to encapsulating the service frame into an MPDU. Aggregation refers to aggregating the MPDU to form an A-MPDU. Generating a transmit vector refers to generating relevant control information sent to the physical layer processing unit. The air interface status can be judged by carrier sense multiple access with collision avoidance (CSMA / CA). Submitting to the physical layer refers to handing over the MAC frame and the transmit vector to the physical layer processing unit. It should be understood that this application only provides an exemplary description of the downlink related processing of the MAC layer. In actual applications, the downlink related processing of the MAC layer may include more or fewer processing actions. For example, the downlink related processing of the MAC layer does not include judging the air interface status. For another example, the downlink related processing of the MAC layer also includes data encryption or session establishment.

[0114] The downlink-related processing of the MAC layer includes a first downlink-related processing 606 and a second downlink-related processing 607. The first downlink-related processing 606 can also be referred to as high-order downlink-related processing of the MAC layer. The second downlink-related processing 607 can also be referred to as low-order downlink-related processing of the MAC layer. For example, the first downlink-related processing 606 of the MAC layer includes frame sealing; the second downlink-related processing 607 of the MAC layer includes aggregation, generating a transmit vector, determining the air interface status, and submitting to the physical layer. For another example, the first downlink-related processing 606 of the MAC layer includes frame sealing and aggregation; the second downlink-related processing 607 of the MAC layer includes generating a transmit vector, determining the air interface status, and submitting to the physical layer. It should be understood that those skilled in the art can divide the downlink-related processing of the MAC layer into the first downlink-related processing 606 and the second downlink-related processing 607 of the MAC layer as needed. Therefore, this application does not limit the specific processing actions included in the first downlink-related processing 606 and the second downlink-related processing 607 of the MAC layer.

[0115] Downlink-related processing at the MAC layer may include MAC data plane downlink processing and MAC control plane downlink processing. MAC data plane downlink processing includes ACK responses, A-MSDU or CRC decoding, etc. MAC control plane downlink processing includes acquiring and responding to user protocol messages, or acquiring and analyzing system status. The first downlink-related processing 606 at the MAC layer may include MAC data plane downlink processing and / or MAC control plane downlink processing. The second downlink-related processing 607 at the MAC layer may include MAC data plane downlink processing and / or MAC control plane downlink processing.

[0116] As shown in Figure 6.1, uplink-related processing consists of four parts. These are the first downlink-related processing 606 of the MAC layer, the second downlink-related processing 607 of the MAC layer, the first downlink-related processing 603 of the physical layer, and the second downlink-related processing 604 of the physical layer. In the embodiment of the present application, by moving one or more of these four parts up to the master device 101, the processing of the slave device is simplified, the requirements for the hardware and software capabilities of the slave device are reduced, and thus the cost of the slave device is reduced. The following describes various possible implementation schemes using Figures 2 to 5 as examples.

[0117] As shown in Figure 2, the optical communication system includes a master device 101 and a slave device 103. The master device 101 and the slave device 103 are connected via an optical splitter 102 (not shown). The master device 101 is configured to receive a second service message. For example, the master device 101 is a master ONU and receives the second service message from the public network via the OLT. The master device 101 includes an optical-to-electrical conversion unit 203 and a processor 220. The processor 220 includes a MAC layer processing unit 204. The MAC layer processing unit 204 is configured to perform first downlink-related processing at the MAC layer on the second service message to obtain a first downlink electrical signal. The optical-to-electrical conversion unit 203 is configured to convert the first downlink electrical signal into a first downlink optical signal and transmit the first downlink optical signal to the slave device 103. The master device 101 may also include an optical MAC layer processing unit and an optical physical layer processing unit. The MAC layer processing unit 204 is configured to transmit the first downlink electrical signal to the optical MAC layer processing unit. The optical MAC layer processing unit is configured to perform optical downlink-related processing at the MAC layer on the first downlink electrical signal. The optical MAC layer processing unit is configured to transmit the first downlink electrical signal to the optical physical layer processing unit. The optical physical layer processing unit is configured to perform optical physical layer downlink related processing on the first downlink electrical signal. The optical physical layer processing unit is configured to transmit the first downlink electrical signal to the optoelectronic conversion unit 203.

[0118] Slave device 103 includes a wireless module 201 and an optoelectronic conversion unit 202. The optoelectronic conversion unit 202 is configured to convert a first downlink optical signal into a first downlink electrical signal. The wireless module 201 includes a radio frequency unit 207, a physical layer processing unit 206, and a MAC layer processing unit 205. The MAC layer processing unit 205 is configured to perform MAC layer second downlink-related processing on the first downlink electrical signal. The physical layer processing unit 206 is configured to perform physical layer downlink-related processing on the processed first downlink electrical signal. The radio frequency unit 207 is configured to convert the first downlink electrical signal, after undergoing the physical layer downlink-related processing, into a first downlink wireless signal. The radio frequency unit 207 is further configured to send the first downlink wireless signal to the first STA.

[0119] In practical applications, downlink-related processing at the MAC layer includes actions that affect STA latency. To reduce STA latency, these actions can be retained in slave device 103. In this case, the second downlink-related processing at the MAC layer includes actions that affect STA latency. These actions can include determining the air interface status and submitting them to the physical layer. In this case, the first downlink-related processing at the MAC layer includes frame sealing, aggregation, and transmit vector generation.

[0120] In the example of FIG2 , master device 101 is configured to perform the first downlink-related processing at the MAC layer, and slave device 103 is configured to perform the second downlink-related processing at the MAC layer. In actual applications, master device 101 may also be configured to perform the second downlink-related processing at the MAC layer, and slave device 103 need not perform the second downlink-related processing at the MAC layer. This will be described below.

[0121] As shown in Figure 3, the optical communication system includes a master device 101 and a slave device 103. The master device 101 includes an optoelectronic conversion unit 203 and a processor 302. The processor 302 includes a MAC layer processing unit 302. The MAC layer processing unit 302 is configured to perform MAC layer downlink-related processing on the second service message to obtain a first downlink electrical signal. The optoelectronic conversion unit 203 is configured to convert the first downlink electrical signal into a first downlink optical signal and transmit the first downlink optical signal to the slave device 103. The slave device 103 includes a wireless module 301 and an optoelectronic conversion unit 202. The optoelectronic conversion unit 202 is configured to convert the first downlink optical signal into a first downlink electrical signal. The wireless module 301 includes a radio frequency unit 304 and a physical layer processing unit 303. The physical layer processing unit 303 is configured to perform physical layer downlink-related processing on the first downlink electrical signal. The radio frequency unit 304 is configured to convert the processed first downlink electrical signal into a first downlink wireless signal. The radio frequency unit 304 is further configured to send the first downlink wireless signal to the first STA.

[0122] In the example of FIG3 , slave device 103 is configured to perform the second downlink-related processing and the first downlink-related processing at the physical layer. In actual applications, master device 101 may also be configured to perform the first downlink-related processing at the physical layer, and slave device 103 may be configured to perform the second downlink-related processing at the physical layer. This is described below.

[0123] FIG4 is a fourth structural schematic diagram of the optical communication system provided in an embodiment of the present application. As shown in FIG4 , the optical communication system includes a master device 101 and a slave device 103. The master device 101 includes an optoelectronic conversion unit 203 and a processor 420. The processor 420 includes a physical layer processing unit 402 and a MAC layer processing unit 302. The MAC layer processing unit 302 is configured to perform MAC layer downlink-related processing on the second service message to obtain an electrical signal. The physical layer processing unit 402 is configured to perform second downlink-related processing of the physical layer on the electrical signal to obtain a first downlink electrical signal. The optoelectronic conversion unit 203 is configured to convert the first downlink electrical signal into a first downlink optical signal and transmit the first downlink optical signal to the slave device 103. The slave device 103 includes a wireless module 401 and an optoelectronic conversion unit 202. The optoelectronic conversion unit 202 is configured to convert the first downlink optical signal into a first downlink electrical signal. The wireless module 401 includes a radio frequency unit 404 and a physical layer processing unit 403. The physical layer processing unit 403 is configured to perform second downlink-related processing of the physical layer on the first downlink electrical signal. The radio frequency unit 404 is configured to convert the processed first downlink electrical signal into a first downlink wireless signal and to send the first downlink wireless signal to the first STA.

[0124] In the example of FIG4 , slave device 103 is configured to perform the second downlink processing related to the physical layer, and the master device is configured to perform the first downlink processing related to the physical layer. In actual applications, master device 101 can also be configured to perform the second downlink processing related to the physical layer, and slave device 103 does not need to perform the second downlink processing related to the physical layer. This is described below.

[0125] Figure 5 is a fifth structural schematic diagram of the optical communication system provided in an embodiment of the present application. As shown in Figure 5, the optical communication system includes a master device 101 and a slave device 103. The master device 101 includes an optoelectronic conversion unit 203 and a processor 520. The processor 520 includes a physical layer processing unit 502 and a MAC layer processing unit 302. The MAC layer processing unit 302 is configured to perform MAC layer downlink-related processing on the second service message to obtain an electrical signal. The physical layer processing unit 402 is configured to perform physical layer downlink-related processing on the electrical signal to obtain a first downlink electrical signal. The optoelectronic conversion unit 203 is configured to convert the first downlink electrical signal into a first downlink optical signal and transmit the first downlink optical signal to the slave device 103. The slave device 103 includes a wireless module 501 and an optoelectronic conversion unit 202. The optoelectronic conversion unit 202 is configured to convert the first downlink optical signal into a first downlink electrical signal. The wireless module 501 includes a radio frequency unit 503. The radio frequency unit 503 is configured to convert the first downlink electrical signal into a first downlink wireless signal. The radio frequency unit 503 is also configured to send the first downlink wireless signal to the first STA.

[0126] In the examples of Figures 2 to 5.1, the optoelectronic conversion unit 202 is used to convert the first downlink optical signal into a first downlink electrical signal at the optical layer. After the electro-optical conversion, the optoelectronic conversion unit 202 can also be used to remove the header and check bits from the first downlink electrical signal at the optical layer to obtain the first downlink electrical signal at the electrical layer. In the examples of Figures 2 to 5.1, the first downlink electrical signal at the electrical layer can have different formats. For example, in Figure 5, the wireless modulated signal output by the optoelectronic conversion unit 202 is an in-phase quadrature (IQ) signal. In Figure 3, the wireless modulated signal output by the optoelectronic conversion unit 202 is a WiFi MAC frame. In Figure 4, the wireless modulated signal output by the wireless module 401 is an intermediate signal generated in the process of deriving an IQ signal from a MAC frame. In Figure 2, the wireless modulated signal output by the optoelectronic conversion unit 202 is an intermediate signal generated in the process of deriving a MAC frame from a service message. In actual applications, when the slave device 103 does not include a MAC layer processing unit, the slave device 103 cannot generate the control frame required by the first STA through the MAC layer processing unit. At this point, the slave device 103 can receive the control frame from the master device 101 and send the control frame to the first STA. However, to conserve transmission resources between the master device 101 and the slave device 103, the slave device 103 can send the control frame to the first STA using incremental signaling. This is described below.

[0127] The master device 101 can determine whether a control frame needs to be sent to the first STA. For example, after receiving the first uplink electrical signal, the master device 101 needs to send an ACK frame to the first STA. After learning that a control frame needs to be sent to the first STA, the master device 101 sends incremental signaling to the slave device 103. The incremental signaling includes information about a frame identifier and variable fields. Figure 7 is a schematic diagram of the structure of incremental signaling provided in an embodiment of the present application. As shown in Figure 7, incremental signaling 701 includes a PON header field, a payload field, and a PON FCS field. The payload field is used to carry information about a frame identifier and variable fields. The slave device 103 is configured to obtain a first fixed field set based on the frame identifier and a first mapping relationship. The first mapping relationship includes a mapping relationship between multiple frame identifiers and multiple fixed field sets. The fixed field set can also be called a frame template. The slave device 103 is configured to obtain a first control frame based on the variable fields and the first fixed field set and send the first control frame to the first STA. The following description takes the first control frame as an ACK frame as an example.

[0128] Figure 8 is a structural diagram of the first fixed field set provided in an embodiment of the present application. As shown in Figure 8, the first fixed field set 801 is a frame template for an ACK frame. The frame template of the ACK frame includes a frame control field. The frame control field includes information on the protocol version, type, subtype, transmission to distributed system flag (to distributed system, to DS), from distributed system flag (from distributed system, from DS), power management flag, security (protected frame) field, and order field. Incremental signaling includes information on the identifier of the ACK frame and variable fields. The variable fields include a duration field, a destination address (RA) field, a frame check sequence (FCS) field, a more frame fragment flag (more fragmen), a retry flag bit (retry), and an extension field. The extension field may also be referred to as a more data flag bit (more data).

[0129] The slave device 103 obtains the frame template of the ACK frame according to the identifier of the ACK frame and fills the variable field into the frame template of the ACK frame to obtain the ACK frame. Figure 9 is a schematic diagram of the structure of the ACK frame. After obtaining the ACK frame 901, the slave device 103 sends the ACK frame 901 to the first STA.

[0130] It should be understood that Figures 8 and 9 are merely examples of obtaining a first control frame according to an embodiment of the present application. In practical applications, those skilled in the art may divide the control frame into fixed fields and variable fields as needed. For example, in practical applications, the first control frame may be a BA frame. As another example, in Figure 8, the sequence field in the first fixed field set 801 is a variable field.

[0131] In an embodiment of the present application, to improve the generalizability of the first control frame, the first control frame may comply with the provisions of the 802.11 protocol. The 802.11 protocol may also be referred to as the IEEE 802.11 protocol. The 802.11 protocol includes, but is not limited to, any of the following: 802.11a, 802.11b, 802.11n, 802.11ac, or 802.11ax.

[0132] In practical applications, the multiple slave devices may further include a second slave device. For example, the second slave device is slave device 104. Similar to the uplink description of the first slave device, the master device may be used to receive a second uplink optical signal from the second slave device. The master device is used to convert the second uplink optical signal into a second uplink electrical signal. The master device is used to perform uplink-related processing on the second uplink electrical signal to obtain a third service message. The uplink-related processing includes the first uplink-related processing of the MAC layer. Similar to the downlink description of the first slave device, the master device may be used to receive a fourth service message. The master device is used to perform downlink-related processing on the fourth service message to obtain a second downlink electrical signal. The downlink-related processing includes the first downlink-related processing of the MAC layer. The master device converts the second downlink electrical signal into a second downlink optical signal and transmits the second downlink optical signal to the second slave device.

[0133] When the second slave device is also within the wireless communication range of the first STA, the second slave device can also receive the first uplink wireless signal from the first STA. The second slave device is configured to transmit the first uplink optical signal to the master device 101 via an optical fiber. The master device 101 is further configured to receive the first uplink optical signal from the second slave device and convert the first uplink optical signal into a first uplink electrical signal. When the master device 101 is wirelessly communicating with the first STA through the first slave device, the master device 101 may discard the first uplink electrical signal received from the second slave device.

[0134] The master device 101 can switch the slave device for wireless communication with the first STA. In the aforementioned example, the master device 101 wirelessly communicates with the first STA through the first slave device. After switching the slave device, the master device 101 can wirelessly communicate with the first STA through the second slave device. After the master device 101 determines to wirelessly communicate with the first STA through the second slave device, the master device 101 transmits a second downlink optical signal to the second slave device. The second slave device is configured to obtain a fourth downlink electrical signal based on the second downlink optical signal. The second slave device is further configured to obtain a second downlink wireless signal based on the fourth downlink electrical signal and transmit the second downlink wireless signal to the first STA.

[0135] After switching slave devices, when the first slave device is also within the wireless communication range of the first STA, the first slave device can also receive the first STA's uplink wireless signal. The first slave device is configured to transmit uplink optical signals to the master device 101 via optical fiber. The master device 101 is also configured to receive the uplink optical signals from the first slave device and convert them into uplink electrical signals. When the master device 101 is wirelessly communicating with the first STA via the second slave device, the master device 101 may discard the uplink electrical signals received from the first slave device.

[0136] As described above, slave device 103 may not include a MAC layer processing unit or a physical layer processing unit. Therefore, slave device 103 may not be able to cache the first STA's downlink buffered data at the MAC layer or physical layer. Therefore, master device 101 may cache the first STA's downlink buffered data. For example, the second downlink electrical signal transmitted by master device 101 via the second slave device is downlink buffered data.

[0137] As described above, the master device 101 can switch the slave device that wirelessly communicates with the first STA. The master device 101 can switch the slave device that wirelessly communicates with the first STA in the following manner. The first slave device and the second slave device are configured to receive an uplink wireless signal, such as a first uplink wireless signal, from the first STA. The first slave device and the second slave device are further configured to convert the uplink wireless signal into an uplink electrical signal, then convert the uplink electrical signal into an uplink optical signal, and transmit the uplink optical signal to the master device 101. The master device 101 is further configured to determine a first signal quality between the first slave device and the first STA based on the uplink optical signal uploaded by the first slave device, and to determine a second signal quality between the second slave device and the first STA based on the uplink optical signal uploaded by the second slave device. For example, the master device 101 is configured to restore the uplink optical signal into a WiFi physical layer signal and then determine the signal quality based on the WiFi physical layer signal. The master device 101 is configured to determine which slave device the first STA wirelessly communicates with based on the first signal quality and the second signal quality. For example, if the first signal quality is greater than or equal to the second signal quality, the master device 101 determines that the first STA wirelessly communicates with the first slave device. The second signal quality is better than the first signal quality, and the master device 101 determines that the first STA is performing wireless communication with the second slave device.

[0138] It should be understood that in the aforementioned example, only slave device 103 is used as the first slave device for the description. In actual applications, the description of other slave devices can refer to the description of slave device 103. When other slave devices also move physical layer-related processing and / or MAC layer-related processing to master device 101, the cost of the other slave devices can be reduced, thereby reducing the cost of the optical communication system. The physical layer-related processing includes physical layer uplink-related processing and / or physical layer downlink-related processing. The MAC layer-related processing includes MAC layer uplink-related processing and / or MAC layer downlink-related processing.

[0139] In practical applications, master device 101 can also associate with a STA via a wireless module. To reduce the cost of master device 101, the wireless module can include the MAC processing unit and / or physical layer processing unit of master device 101 shown in Figures 2 to 5.1. For example, the wireless module includes MAC processing unit 302 and physical layer processing unit 402. Assume that master device 101 associates with a target STA. In this case, the wireless module can be used to process both the uplink electrical signals of the first STA and the uplink electrical signals of the target STA.

[0140] In the implementation of the present application, multiple slave devices are connected to the master device 101 via an optical splitter 102. In order to avoid conflicts between multiple uplink optical signals, the master device 101 can allocate respective uplink time slots to the slave devices. The uplink time slot includes a start time and a duration. The process of allocating time slots can also be called bandwidth allocation. Each slave device sends an uplink optical signal within a specified time slot. For example, the master device 101 allocates a first uplink time slot to the first slave device. The first slave device transmits a first uplink optical signal to the master device 101 within the first uplink time slot. The master device 101 allocates a second uplink time slot to the second slave device. The second slave device transmits a second uplink optical signal to the master device 101 within the second uplink time slot. The master device 101 can allocate uplink time slots to the slave devices in any of the following ways.

[0141] In the first approach, the master device 101 allocates optical time slots into uplink and downlink time slots. The master device 101 divides the uplink time slots among multiple slave devices. The master device 101 obtains multiple bandwidths. Each bandwidth corresponds to a number of slave devices. Each bandwidth indicates the communication bandwidth between a slave device and a STA. The master device 101 allocates bandwidth to each of the slave devices based on the multiple bandwidths. The master device 101 calculates the duration of the allocation based on the allocated bandwidth. The master device 101 can assign a start time to the uplink time slot based on any rule.

[0142] In the second method, the master device 101 obtains cache information corresponding to each slave device. Each cache information includes uplink cache information and / or downlink cache information. For example, the master device 101 obtains first cache information corresponding to the first slave device. The first cache information includes first uplink cache information and / or first downlink cache information. The first uplink cache information is used to indicate the size of the data to be uploaded by the first STA. The first downlink cache information is used to characterize the size of the downlink data waiting to be sent to the first STA in the master device 101 or the first slave device. The master device 101 allocates optical time slots to multiple slave devices based on multiple cache information. The optical time slot includes an uplink time slot and / or a downlink time slot.

[0143] In this embodiment of the present application, slave device 103 may not include a MAC layer processing unit. The MAC layer processing unit is related to air interface contention. Therefore, the absence of a MAC layer processing unit is detrimental to air interface contention for slave device 103. To this end, in this embodiment of the present application, master device 101 can perform air interface scheduling for multiple slave devices. This is described below with an example.

[0144] The master device 101 obtains multiple buffer information. Multiple slave devices correspond one-to-one to the multiple buffer information. Each buffer information includes uplink buffer information and / or downlink buffer information. For example, the master device 101 obtains first buffer information corresponding to a first slave device. The first buffer information includes first uplink buffer information and / or first downlink buffer information. The first uplink buffer information is used to indicate the size of data to be uploaded by the first STA. The first downlink buffer information is used to indicate the size of downlink data waiting to be sent from the master device 101 to the first STA. The master device 101 allocates air interface transmission time periods to multiple slave devices based on the multiple buffer information. For example, the master device 101 allocates a first time period to the first slave device. The master device 101 allocates a second time period to the second slave device. The master device 101 can send multiple scheduling information to the multiple slave devices. Each scheduling information includes information about the corresponding time period. For example, the master device 101 sends first scheduling information to the first slave device, and the first scheduling information includes information about the first time period. The first slave device performs air interface transmission in the first time period based on the first scheduling information.

[0145] The first time period includes an uplink time period and / or a downlink time period. When the first time period includes an uplink time period, the first slave device sends a first downlink wireless signal to the first STA during the uplink time period. When the first time period includes an uplink time period, the first access device sends a trigger frame to the first STA. The trigger frame is used to allocate an uplink time slot for wireless transmission to the first STA, instructing the first STA to upload the first uplink wireless signal during the uplink time period. When the first time period includes an uplink time period and a downlink time period, the uplink time period is used for the first STA to upload the first uplink wireless signal, and the downlink time period is used for the first slave device to send the first downlink wireless signal to the first STA.

[0146] It should be understood that in actual applications, the master device 101 may not need to send scheduling information to the slave devices. For example, in an embodiment of the present application, after receiving a downlink optical signal from the master device 101, the slave device immediately converts the downlink optical signal into a downlink electrical signal, and then converts the downlink electrical signal into a downlink wireless signal via the radio frequency unit. Therefore, the start time of the downlink time period can be determined based on the end time of the downlink optical signal transmission, and the transmission duration of the downlink time period can be determined based on the transmission duration of the downlink optical signal, the bandwidth of the optical timeslot, and the bandwidth of the wireless communication. Therefore, the master device 101 can allocate the downlink time period by allocating downlink timeslots within the optical timeslot. Similarly, the master device 101 can send a trigger frame to a STA via a slave device. After receiving the trigger frame, the slave device immediately sends the trigger frame to the STA. The trigger frame is used to allocate an uplink timeslot for wireless transmission, i.e., an uplink time period, to the STA. Therefore, the master device 101 can allocate the uplink time period via the trigger frame. In this embodiment of the present application, the second time period may include an uplink time period. Therefore, the first slave device can send a silence command to the first STA. The first STA enters a silence state in accordance with the silence command. The silent state means that even if the first STA has uplink buffered data waiting to be sent to the first slave device, the first STA will not obtain an air interface transmission opportunity through air interface competition. The first STA waits for the first slave device to send a trigger frame by uploading the first uplink buffered information, and obtains an air interface transmission opportunity through the trigger frame.

[0147] In the embodiment of the present application, the slave device 103 may also include a MAC layer processing unit. Therefore, the slave device 103 itself may meet the conditions for air interface contention. In this case, the master device 101 may also perform air interface scheduling for multiple slave devices. This is described below with an example.

[0148] The master device 101 obtains multiple buffered information. Multiple slave devices correspond to the multiple buffered information in a one-to-one manner. The master device 101 determines the air interface transmission order of the multiple slave devices based on the multiple buffered information. The master device 101 sequentially sends control instructions to the multiple slave devices according to the air interface transmission order. For example, the master device 101 first sends a first control instruction to the first slave device. The first slave device is configured to perform air interface contention according to the first control instruction and, after successfully performing air interface contention, perform air interface transmission. Air interface transmission may include uplink air interface transmission and / or downlink air interface transmission. For a description of uplink air interface transmission and / or downlink air interface transmission, please refer to the description of the uplink time period and / or downlink time period described above. After successfully performing air interface contention, the first slave device is further configured to send a first reply frame to the master device. Based on the first reply frame, the master device 101 is further configured to send a second control instruction to the second slave device according to the air interface transmission order. The second slave device is configured to perform air interface contention according to the second control instruction and, after successfully performing air interface contention, perform air interface transmission. Similarly, after successfully performing air interface contention, the second slave device sends a second reply frame to the master device 101. The master device 101 sends a control instruction to the next slave device according to the second reply frame.

[0149] In practical applications, the master device 101 can also be associated with an STA. Therefore, in the aforementioned scheme where the master device 101 performs air interface scheduling for multiple slave devices, the master device 101 can also obtain its own buffer information. The master device 101 determines the air interface transmission sequence between the master device 101 and the multiple slave devices based on the multiple buffer information and its own buffer information. Alternatively, the master device 101 allocates air interface transmission time periods for the master device 101 and the multiple slave devices based on the multiple buffer information and its own buffer information.

[0150] Figure 10 is a sixth structural diagram of the communication system provided in an embodiment of the present application. As shown in Figure 10, based on Figure 1, the communication system 100 further includes a master gateway 1001, an optical splitter 1002, a master device 1003, and a master device 1004. The master gateway 1001 can be an OLT. The master gateway 1001 is connected to multiple master devices through the optical splitter 1002. In the example of Figure 10, the multiple master devices include the master device 101, the master device 1003, and the master device 1004. The master device can be an ONU or an ONT. In the upstream direction, the upstream optical signal from each master device is coupled to the master gateway 1001 through the optical splitter 1002 in a time-sharing manner. In the downstream direction, the master gateway 1001 distributes the downstream optical signal to all master devices through the optical splitter 1002.

[0151] The optical communication system provided by this application is described above. The optical communication method provided by this application is described below. Figure 11 is a first flow chart of the optical communication method provided by an embodiment of this application. As shown in Figure 11, the optical communication method includes the following steps.

[0152] In step 1101, a first slave device receives a first uplink wireless signal from a STA.

[0153] In step 1102, the first slave device obtains a first uplink electrical signal according to the first uplink wireless signal.

[0154] A slave device can also be called a slave gateway or AP. In a PON system, a slave device can be called a slave ONU or slave ONT. In an FTTR scenario, a slave device can be called a sub-SFU or a slave FTTR. The first slave device includes a wireless module. The wireless module includes a radio frequency unit (RFU). The first slave device receives a first uplink wireless signal from a first STA via the RFU and obtains a first uplink electrical signal based on the first uplink wireless signal.

[0155] In step 1103 , the first slave device converts the first uplink electrical signal into a first uplink optical signal.

[0156] In step 1104, the first slave device transmits a first uplink optical signal to the master device. The master device performs uplink-related processing on the first uplink optical signal to obtain a first service message. The uplink-related processing of the master device includes first uplink-related processing of the MAC layer.

[0157] In a PON system, the master device 101 can be called a master ONU or master ONT. In an FTTR scenario, the master device can be called a master MFU or master FTTR. The master device includes an optical-to-electrical conversion unit and a MAC layer processing unit. The optical-to-electrical conversion unit is configured to convert a first uplink optical signal into a first uplink electrical signal. The MAC layer processing unit can be a MAC chip. The MAC layer processing unit is configured to perform first uplink-related MAC layer processing on the first uplink electrical signal to obtain a first service message.

[0158] Figure 12 is a second flow chart of the optical communication method provided in an embodiment of the present application. As shown in Figure 12, the optical communication method includes the following steps.

[0159] In step 1201, a master device receives a first uplink optical signal from a first slave device.

[0160] In step 1202, the master device converts a first uplink optical signal into a first uplink electrical signal.

[0161] The master device is connected to the first slave device via an optical fiber. The master device receives a first uplink optical signal from the first slave device via the optical fiber. The first uplink optical signal is obtained based on a first uplink wireless signal sent by the first STA. The master device includes an optical module. The optical module is configured to convert the first uplink optical signal into a first uplink electrical signal.

[0162] In step 1203, the master device performs uplink-related processing on the first uplink electrical signal to obtain a first service message, where the uplink-related processing includes first uplink-related processing at the MAC layer.

[0163] In step 1204, the master device outputs a first service message.

[0164] The master device also includes a MAC layer processing unit. The MAC layer processing unit can be a MAC chip. The MAC layer processing unit is configured to perform first uplink-related MAC layer processing on the first uplink electrical signal to obtain a first service message. The master device outputs the first service message. For example, the master device is a master ONU. The master device also includes another optical module. The other optical module is configured to convert the first service message into a third uplink optical signal and transmit the third uplink optical signal to the OLT. The OLT is configured to send the third uplink optical signal to the public network.

[0165] It should be understood that the description of the optical communication method in Figures 11 and 12 is similar to the description of the optical communication system in Figures 1 to 10 . Therefore, the description of the optical communication method can refer to the description of the optical communication system in Figures 1 to 10 . For example, the first uplink-related processing of the MAC layer includes decoding the A-MSDU. In another example, the MAC layer processing unit is further configured to perform second uplink-related processing of the MAC layer on the first uplink electrical signal. In another example, the master device is further configured to receive a second service message, perform first downlink-related processing of the MAC layer on the second service message, and obtain a first downlink electrical signal.

[0166] Figure 13 is a schematic diagram of the structure of a first slave device provided in an embodiment of the present application. As shown in Figure 13, first slave device 1300 includes a wireless module 1301 and an optoelectronic conversion unit 1302. Wireless module 1301 is configured to receive a first uplink wireless signal from an STA and obtain a first uplink electrical signal based on the first uplink wireless signal. Optoelectronic conversion unit 1302 is configured to convert the first uplink electrical signal into a first uplink optical signal and transmit the first uplink optical signal to the master device. The master device performs uplink-related processing on the first uplink optical signal to obtain a first service message.

[0167] It should be understood that the description of the first slave device 1300 in FIG13 shares similarities with the description of the optical communication system in FIG1 to FIG10 . The wireless module 1301 may be the wireless module 201 in FIG2 , the wireless module 301 in FIG3 , the wireless module 401 in FIG4 , or the wireless module 501 in FIG5 . The photoelectric conversion unit 1302 may be the photoelectric conversion unit 202 in FIG2 to FIG5 . Therefore, the description of the first slave device may refer to the description of the optical communication system in FIG1 to FIG10 . For example, the wireless module 1301 includes a radio frequency unit and a physical layer processing unit. The radio frequency unit is configured to convert a first uplink wireless signal into an electrical signal. The physical layer processing unit is configured to perform physical layer uplink-related processing on the electrical signal to obtain a first uplink electrical signal. For another example, the photoelectric conversion unit 1302 is further configured to receive a first downlink optical signal from the master device and convert the first downlink optical signal into a first downlink electrical signal.

[0168] Figure 14 is a structural diagram of the main device provided in an embodiment of the present application. As shown in Figure 14, the main device 1400 includes a photoelectric conversion unit 1401 and a processor 1402. The photoelectric conversion unit 1401 is used to receive a first uplink optical signal from a first slave device and convert the first uplink optical signal into a first uplink electrical signal. The processor 1402 can be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and an NP. The processor 1402 can further include a hardware chip or other general-purpose processor. The above-mentioned hardware chip can be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The processor 1402 is used to perform the first uplink related processing of the MAC layer on the first uplink electrical signal to obtain a first service message. The processor 1402 is also used to output the first service message.

[0169] It should be understood that the description of the master device 1400 in FIG14 is similar to the description of the optical communication system in FIG1 to FIG10 . The processor 1402 may be the wireless module 220 in FIG2 , the wireless module 320 in FIG3 , the wireless module 420 in FIG4 , or the wireless module 520 in FIG5 . The photoelectric conversion unit 1401 may be the photoelectric conversion unit 203 in FIG2 to FIG5 . Therefore, the description of the master device may refer to the description of the optical communication system in FIG1 to FIG10 . For example, the processor 1402 is a MAC processing unit. The processor 1402 is further configured to perform MAC layer second uplink-related processing on the first uplink electrical signal. For another example, the photoelectric conversion unit 1401 is further configured to receive a second service message and perform MAC layer first downlink-related processing on the second service message to obtain a first downlink electrical signal.

[0170] In other embodiments, the first slave device 1300 and / or the master device 1400 may further include a memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), or a flash memory. The volatile memory may be a random access memory (RAM). The memory may be used to store the first uplink electrical signal.

[0171] The above is only a specific implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed in this application, which should be covered by the protection scope of the present application.

Claims

1. An optical communication method, characterized in that: include: The master device receives a first uplink optical signal from a first slave device; The master device converts the first uplink optical signal into a first uplink electrical signal; The master device performs uplink related processing on the first uplink electrical signal to obtain a first service message, wherein the uplink related processing includes first uplink related processing of a medium access control MAC layer; The master device outputs the first service message.

2. The optical communication method according to claim 1, characterized in that: The first uplink electrical signal is a digitized in-phase and quadrature IQ signal; The uplink related processing performed by the master device on the first uplink electrical signal also includes a second uplink related processing at the physical layer, a first uplink related processing at the physical layer, and a second uplink related processing at the MAC layer.

3. The optical communication method according to claim 1, characterized in that: The uplink related processing performed by the master device on the first uplink electrical signal also includes a first uplink related processing at the physical layer and a second uplink related processing at the MAC layer.

4. The optical communication method according to claim 1, characterized in that: The uplink related processing performed by the master device on the first uplink electrical signal also includes second uplink related processing at the MAC layer.

5. The optical communication method according to claim 4, characterized in that: The method further comprises: The master device sends incremental signaling to the first slave device, and the incremental signaling includes a frame identifier and variable field information, the frame identifier is used by the first slave device to obtain a first fixed field set according to a first mapping relationship, the first mapping relationship includes a mapping relationship between multiple frame identifiers and multiple fixed field sets, and the variable field is used by the first slave device to obtain a first control frame according to the variable field and the first fixed field set.

6. The optical communication method according to any one of claims 1 to 5, characterized in that: The method further comprises: The master device performs downlink related processing on the second service message to obtain a first downlink electrical signal, wherein the downlink related processing includes first downlink related processing of the MAC layer; The master device converts the first downstream electrical signal into a first downstream optical signal; The master device transmits the first downlink optical signal to the first slave device.

7. The optical communication method according to claim 6, characterized in that: The downlink related processing performed by the master device on the second service message also includes second downlink related processing at the MAC layer, first downlink related processing at the physical layer, and second downlink related processing at the physical layer.

8. The optical communication method according to claim 6, characterized in that: The downlink related processing performed by the master device on the second service message also includes second downlink related processing at the MAC layer and first downlink related processing at the physical layer.

9. The optical communication method according to claim 6, characterized in that: The downlink related processing performed by the master device on the second service message also includes second downlink related processing at the MAC layer.

10. The optical communication method according to any one of claims 6 to 9, characterized in that: The master device is connected to the second slave device via an optical splitter.

11. The optical communication method according to claim 10, characterized in that: The method further comprises: The master device receives a second uplink optical signal from the second slave device; The master device converts the second uplink optical signal into a second uplink electrical signal; The master device performs the uplink related processing on the second uplink electrical signal to obtain a third service message.

12. The optical communication method according to claim 10 or 11, characterized in that: The method further comprises: The master device receives a fourth service message; The master device performs the downlink related processing on the fourth service message to obtain a second downlink electrical signal; The master device converts the second downstream electrical signal into a second downstream optical signal, and transmits the second downstream optical signal to the second slave device.

13. The optical communication method according to any one of claims 10 to 12, characterized in that: The method further comprises: The master device allocates a first uplink time slot to the first slave device, and allocates a second uplink time slot to the second slave device, wherein the first uplink time slot and the second uplink time slot are different; The master device receiving the first uplink optical signal from the first slave device comprises: the master device receiving the first uplink optical signal from the first slave device in the first uplink timeslot; The master device receiving the second uplink optical signal from the second slave device includes: the master device receiving the second uplink optical signal from the second slave device in the second uplink timeslot.

14. An optical communication method, characterized in that: include: The first slave device receives a first uplink wireless signal from the station STA; The first slave device obtains a first uplink electrical signal according to the first uplink wireless signal; The first slave device converts the first uplink electrical signal into a first uplink optical signal; The first slave device transmits the first uplink optical signal to the master device, and the master device performs uplink-related processing on the first uplink optical signal to obtain a first service message. The uplink-related processing of the master device includes first uplink-related processing of a media access control MAC layer.

15. The optical communication method according to claim 14, characterized in that: The first uplink electrical signal is a digitized in-phase and quadrature IQ signal.

16. The optical communication method according to claim 14 or 15, characterized in that: The first uplink related processing of the MAC layer includes one or more of the following: de-aggregation of MAC protocol data unit A-MPDU, cyclic redundancy check CRC, ACK, block acknowledgement BA, de-aggregation of MAC service data unit A-MSDU.

17. The optical communication method according to claim 14, characterized in that: The first slave device obtains the first uplink electrical signal according to the first uplink wireless signal, including: the first slave device converts the first uplink wireless signal into an electrical signal, and performs second uplink related processing of the physical layer on the electrical signal to obtain the first uplink electrical signal.

18. The optical communication method according to claim 17, characterized in that: The second uplink-related processing of the physical layer includes at least one of the uplink-related processing of the physical layer, and the uplink-related processing of the physical layer includes synchronization, fast Fourier transform FFT, constellation mapping, descrambling and restoration of media access control protocol data unit MPDU.

19. The optical communication method according to claim 14, characterized in that: The first slave device obtains the first uplink electrical signal according to the first uplink wireless signal, including: the first slave device converts the first uplink wireless signal into an electrical signal, and performs second uplink related processing of the physical layer and first uplink related processing of the physical layer on the electrical signal in sequence to obtain the first uplink electrical signal.

20. The optical communication method according to claim 19, characterized in that: The first uplink related processing of the physical layer includes a first subset of the uplink related processing of the physical layer, and the second uplink related processing of the physical layer includes a second subset of the uplink related processing of the physical layer, and the uplink related processing of the physical layer includes synchronization, fast Fourier transform FFT, constellation mapping, descrambling and restoration of media medium access control protocol data unit MPDU, and the first subset is different from the second subset.

21. The optical communication method according to claim 14, characterized in that: The first slave device obtains the first uplink electrical signal according to the first uplink wireless signal, including: the first slave device converts the first uplink wireless signal into an electrical signal, and performs second uplink related processing of the physical layer, first uplink related processing of the physical layer, and second uplink related processing of the MAC layer on the electrical signal in sequence to obtain the first uplink electrical signal.

22. The optical communication method according to claim 21, characterized in that: The first uplink related processing of the MAC layer includes a first subset of the uplink related processing of the MAC layer, the second uplink related processing of the MAC layer includes a second subset of the uplink related processing of the MAC layer, the uplink related processing of the MAC layer includes a deaggregated MAC protocol data unit A-MPDU, a cyclic redundancy code check CRC, an ACK or a block acknowledgement BA, and a deaggregated MAC service data unit A-MSDU, and the first subset is different from the second subset.

23. The optical communication method according to any one of claims 19 to 22, characterized in that: The method further comprises: The first slave device receives incremental signaling from the master device, where the incremental signaling includes information of a frame identifier and a variable field; The first slave device obtains a first fixed field set according to the frame identifier and a first mapping relationship, wherein the first mapping relationship includes multiple A mapping relationship between a frame identifier and multiple fixed field sets; The first slave device obtains a first control frame according to the variable field and the first fixed field set; The first slave device sends the first control frame to the STA.

24. The optical communication method according to claim 23, characterized in that: The frame format of the first control frame complies with the provisions of the 802.11 protocol.

25. The optical communication method according to claim 23 or 24, characterized in that: The first control frame is an ACK frame, and the frame identifier is used to indicate that the type of the first control frame is an ACK frame; The information of the variable field includes at least one of the following information: information of a duration field, a destination address field, a frame sequence check code field, a more frame fragmentation flag field, a retransmission flag bit, and an extension field; The first fixed field set includes at least one of the following information: information transmitted to a distributed system flag bit, information from a distributed system flag bit, a power management flag bit, and a security field.

26. The optical communication method according to any one of claims 14 to 25, characterized in that: The method further comprises: The first slave device receives the first downlink optical signal from the master device; The first slave device converts the first downlink optical signal into a first downlink electrical signal, where the first downlink electrical signal is obtained after the master device performs downlink related processing on the second service message, where the downlink related processing includes first downlink related processing of the MAC layer; The first slave device obtains a first downlink wireless signal according to the first downlink electrical signal; The first slave device sends the first downlink wireless signal to the STA.

27. The optical communication method according to claim 26, characterized in that: The first slave device obtains the first downlink wireless signal according to the first downlink electrical signal, including: the first slave device performs second downlink related processing of the physical layer on the first downlink electrical signal, and obtains the first downlink wireless signal according to the processed electrical signal.

28. The optical communication method according to claim 26, characterized in that: The first slave device obtains the first downlink wireless signal according to the first downlink electrical signal, including: the first slave device performs first downlink related processing of the physical layer and second downlink related processing of the physical layer on the first downlink electrical signal in sequence, and obtains the first downlink wireless signal according to the processed electrical signal.

29. The optical communication method according to claim 26, characterized in that: The first slave device obtains the first downlink wireless signal according to the first downlink electrical signal, including: the first slave device performs the second downlink related processing of the MAC layer, the first downlink related processing of the physical layer and the second downlink related processing of the physical layer on the first downlink electrical signal in sequence, and obtains the first downlink wireless signal according to the processed electrical signal.

30. A master device, characterized in that: It includes a photoelectric conversion unit and a processor, wherein: The photoelectric conversion unit is used to receive a first uplink optical signal from a first slave device, and convert the first uplink optical signal into a first uplink electrical signal; The processor is used to perform uplink related processing on the first uplink electrical signal to obtain a first service message, wherein the uplink related processing includes first uplink related processing of a medium access control MAC layer; The processor is further configured to output the first service message.

31. The main device according to claim 30, characterized in that: The first uplink electrical signal is a digitized in-phase and quadrature IQ signal; The uplink related processing performed by the master device on the first uplink electrical signal also includes a second uplink related processing at the physical layer, a first uplink related processing at the physical layer, and a second uplink related processing at the MAC layer.

32. The main device according to claim 30, characterized in that: The uplink related processing performed by the master device on the first uplink electrical signal also includes a first uplink related processing at the physical layer and a second uplink related processing at the MAC layer.

33. The main device according to claim 30, characterized in that: The uplink related processing performed by the master device on the first uplink electrical signal also includes second uplink related processing at the MAC layer.

34. The main device according to claim 33, characterized in that: The photoelectric conversion unit is further used to send incremental signaling to the first slave device, wherein the incremental signaling includes a frame identifier and information of a variable field, and the frame identifier is used by the first slave device to obtain a first fixed field set according to a first mapping relationship, wherein the first mapping relationship includes The variable field includes a mapping relationship between multiple frame identifiers and multiple fixed field sets, and the variable field is used by the first slave device to obtain a first control frame according to the variable field and the first fixed field set.

35. The master device according to any one of claims 30 to 34, characterized in that: The processor is further configured to perform downlink related processing on the second service message to obtain a first downlink electrical signal, wherein the downlink related processing includes first downlink related processing of the MAC layer; The optoelectronic conversion unit is further configured to convert the first downstream electrical signal into a first downstream optical signal, and transmit the first downstream optical signal to the first slave device.

36. A slave device, characterized in that: It includes a wireless module and a photoelectric conversion unit, wherein: The wireless module is used to receive a first uplink wireless signal from a station STA, and obtain a first uplink electrical signal according to the first uplink wireless signal; The optoelectronic conversion unit is used to convert the first uplink electrical signal into a first uplink optical signal, and transmit the first uplink optical signal to a master device. The first uplink optical signal is processed uplink-related by the master device to obtain a first service message. The uplink-related processing of the master device includes first uplink-related processing of a medium access control MAC layer.

37. The slave device according to claim 36, characterized in that The first uplink electrical signal is a digitized in-phase and quadrature IQ signal.

38. The slave device according to claim 36, characterized in that The wireless module is used to obtain the first uplink electrical signal according to the first uplink wireless signal, including: the wireless module is used to convert the first uplink wireless signal into an electrical signal, and perform second uplink related processing of the physical layer on the electrical signal to obtain the first uplink electrical signal.

39. The slave device according to claim 36, characterized in that The wireless module is used to obtain a first uplink electrical signal according to the first uplink wireless signal, including: the wireless module is used to convert the first uplink wireless signal into an electrical signal, and perform second uplink related processing of the physical layer and first uplink related processing of the physical layer on the electrical signal in sequence to obtain the first uplink electrical signal.

40. The slave device according to claim 36, characterized in that The wireless module is used to obtain a first uplink electrical signal according to the first uplink wireless signal, including: the wireless module is used to convert the first uplink wireless signal into an electrical signal, and sequentially performs a second uplink related processing of the physical layer, a first uplink related processing of the physical layer, and a second uplink related processing of the MAC layer on the electrical signal to obtain the first uplink electrical signal.

Citation Information

Patent Citations

  • Optical communication method, master device and slave device

    CN118843025A

  • Wireless communication method and system

    CN108353428A

  • Gateway communication method, communication equipment and storage medium

    CN114338831A

  • RF femto-cell system using FTTH network

    KR1020100003108A

  • Method and system for generating switching control signal separating transmission signal in optical repeater employing TDD scheme

    US20080145057A1