Energy saving state control method and apparatus, and device, system and medium

By sending energy-saving indication messages through the OLT to synchronize the energy-saving status of the ONU, the downlink data congestion problem caused by ONU asynchrony in the PON system is solved, and the synchronization of energy-saving status and the improvement of data transmission efficiency are achieved.

WO2026092768A1PCT designated stage Publication Date: 2026-05-07HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2025-11-04
Publication Date
2026-05-07

AI Technical Summary

Technical Problem

In a PON system, the energy-saving states of each ONU are not synchronized, leading to problems such as downlink data congestion and high OLT storage capacity requirements.

Method used

The OLT synchronizes the energy-saving status of multiple ONUs by sending energy-saving indication messages, including the duration of low-power and wake-up states. It extends the existing message format and uses OMCI or PLOAM messages to carry energy-saving configuration information to achieve ONU synchronization.

Benefits of technology

It enables the synchronization of energy-saving status of multiple ONUs, avoids downlink data congestion, reduces the storage capacity requirements of the OLT, is compatible with existing standard protocols, and simplifies message design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025132517_07052026_PF_FP_ABST
    Figure CN2025132517_07052026_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed are an energy saving state control method and apparatus, and a device, a system and a medium, which belong to the technical field of optical communications. The method comprises: an OLT determining that a plurality of ONUs connected to the OLT are all in energy saving states; and sending an energy saving instruction message to the plurality of ONUs, wherein the energy saving instruction message is used for instructing the ONUs to set the energy saving states on the basis of energy saving configuration information, and the energy saving configuration information comprises the duration of a low-power-consumption state and the duration of an awake state. The method can realize the synchronization of the energy saving states of the plurality of ONUs.
Need to check novelty before this filing date? Find Prior Art

Description

Methods, devices, equipment, systems, and media for controlling energy-saving states

[0001] This application claims priority to Chinese Patent Application No. 202411566853.1, filed on November 4, 2024, entitled "Method, Apparatus, Equipment, System and Medium for Controlling Energy-Saving State", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of optical communication technology, and in particular to a method, apparatus, device, system and medium for controlling energy-saving status. Background Technology

[0003] In optical access networks, the power consumption of optical communication equipment has received widespread attention.

[0004] In related technologies, some energy-saving management strategies have been developed for ONUs in PON (passive optical network) systems. When the optical line terminal (OLT) allows the optical network unit (ONU) to enter an energy-saving state, if the ONU needs to enter this state, it will send a sleep request message to the OLT. In the energy-saving state, the ONU cycles between a wake-up state and a low-power state. In the low-power state, some modules of the ONU are permanently turned off, while others are periodically turned on, thereby reducing the ONU's power consumption.

[0005] However, since each ONU enters the power-saving state at different times, the duration of the wake-up state and the duration of the low-power state may also be different. Therefore, the power-saving states of each ONU are not synchronized. Summary of the Invention

[0006] This application provides a method, apparatus, equipment, system, and medium for controlling energy-saving status, which can realize the synchronization of energy-saving status of multiple ONUs.

[0007] Firstly, this application provides a method for controlling an energy-saving state. This method is executed by an OLT. The method includes: the OLT determining that at least two ONUs among a plurality of ONUs connected to the OLT are in an energy-saving state; and sending an energy-saving instruction message to the at least two ONUs in the energy-saving state, the energy-saving instruction message instructing the ONUs to set an energy-saving state based on energy-saving configuration information, the energy-saving configuration information including the duration of a low-power state and the duration of a wake-up state.

[0008] In this application, when at least two ONUs in energy-saving mode receive the energy-saving instruction message, they all set their energy-saving mode based on the energy-saving configuration information, thus achieving synchronization of the energy-saving modes of the at least two ONUs. That is, the OLT can control at least some of the ONUs connected to the OLT to synchronize their energy-saving modes through the energy-saving instruction message.

[0009] Optionally, the ONU's power-saving states include a low-power state and a wake-up state. In the low-power state, at least some modules of the ONU are turned off to reduce the ONU's power consumption.

[0010] When an ONU is in a low-power state, the OLT needs to store the ONU's downlink data and send it to the ONU after it enters the wake-up state. Therefore, if the low-power state is prolonged and the power-saving states of the various ONUs are not synchronized, and the downlink data from these multiple ONUs needs to be sent in a queue, the ONU corresponding to the first received downlink data may be unable to send due to its low-power state, causing subsequent downlink data to also be unable to be sent to the corresponding ONU. This results in downlink data congestion across multiple ONUs, thus requiring the OLT to store a large amount of data and placing high demands on its storage capacity. This application synchronizes the ONU's power-saving state, allowing all ONUs' downlink data to be sent out during the wake-up state, avoiding downlink data congestion and reducing the storage capacity requirements of the OLT.

[0011] Optionally, the energy-saving indication message is a sleep permission message. This energy-saving indication message can be obtained by extending the sleep permission message, reusing the existing message format and making implementation convenient.

[0012] In some examples, the energy-saving indication message is used to force the ONU to enter an energy-saving state. Forcing the ONU to enter an energy-saving state means forcibly interrupting the ONU's current state and compelling it to enter an energy-saving state. When multiple ONUs receive this energy-saving indication message, the energy-saving states of these multiple ONUs can be synchronized.

[0013] In the first possible implementation, each ONU needs to exit the energy-saving state first and then synchronously enter the energy-saving state to achieve synchronization of the energy-saving states of multiple ONUs.

[0014] In this first possible implementation, the method further includes: sending a wake-up message to the plurality of ONUs before sending the energy-saving indication message to the plurality of ONUs, so that each ONU exits the energy-saving state at the same time; then, when each ONU receives the energy-saving indication message, it will synchronously enter the wake-up state of the energy-saving state.

[0015] Optionally, the wake-up message is a sleep-allowed disabling message or a forced wake-up indication. Using an existing message as the wake-up message ensures compatibility with current standard protocols and reduces implementation complexity.

[0016] In a second possible implementation, the energy-saving states of multiple ONUs are synchronized by adjusting the energy-saving states of each ONU. Adjusting the energy-saving states of each ONU includes, but is not limited to, the following two methods.

[0017] In the first method, the energy-saving indication message includes a first time. This message instructs the ONU to use the first time as the start time of a first wake-up state, which is the next wake-up state after the ONU receives the energy-saving indication message. By agreeing on the start time of the first wake-up state, each ONU is kept in an energy-saving state, and energy-saving state synchronization is achieved.

[0018] The second method involves the energy-saving instruction message including a second time, which instructs the ONU to use the second time as the end time of the second wake-up state. By agreeing on the end time of the second wake-up state, the end times of the second wake-up states of each ONU are synchronized, thereby enabling the synchronization of the energy-saving states of each ONU.

[0019] Optionally, the second wake-up state is the wake-up state when the ONU receives the energy-saving instruction message, or the wake-up state most recent to the second time. Here, the wake-up state can be a nap wake-up state or a sleep wake-up state.

[0020] Optionally, the method further includes sending the energy-saving configuration information to the plurality of ONUs. In this way, the plurality of ONUs receiving the energy-saving configuration information will all enter the energy-saving state with the same wake-up state and low-power state duration, which is beneficial for synchronizing the energy-saving states of the plurality of ONUs.

[0021] Optionally, energy-saving configuration information can be sent to the slave device in an ONU management and control interface (OMCI) message, or in a physical layer operations, administration and maintenance (PLOAM) message. OMCI and PLOAM messages are existing communication methods between the OLT and ONU. Using either OMCI or PLOAM messages to carry energy-saving configuration information eliminates the need for message redesign, simplifies message design, requires minimal modification, and is easy to implement.

[0022] Optionally, in the first possible implementation described above, the OMCI message carrying energy-saving configuration information is sent after sending the wake-up message to the plurality of ONUs and before sending the energy-saving instruction message to the plurality of ONUs. Some ONUs only support one set of energy-saving configuration information, and upon receiving this energy-saving configuration information, they will replace the previously used energy-saving configuration information with the received energy-saving configuration information. In this case, sending the OMCI message after sending the wake-up message to the plurality of ONUs and before sending the energy-saving instruction message to the plurality of ONUs requires minimal modification to the existing functions of such ONUs and is easy to implement.

[0023] Optionally, the method further includes: the OLT determining whether the plurality of ONUs are in an energy-saving state.

[0024] In some examples, when the OLT receives a sleep power-saving request from any ONU, it determines whether all ONUs are in power-saving mode. Sending a sleep power-saving request indicates that the ONU has entered power-saving mode, and this ONU may be the last ONU to enter power-saving mode. Therefore, this can be used as a trigger condition to determine whether all ONUs are in power-saving mode.

[0025] In other examples, it is periodically determined whether all of the multiple ONUs are in an energy-saving state. This allows for timely detection of whether multiple ONUs are in an energy-saving state.

[0026] Secondly, a method for controlling an energy-saving state is also provided. This method includes: a first ONU receiving an energy-saving indication message, wherein the energy-saving indication message is sent by the OLT after determining that at least two ONUs among a plurality of ONUs connected to the OLT are in an energy-saving state, the first ONU being one of the at least two ONUs in the energy-saving state, the energy-saving indication message being used to instruct the ONU to set an energy-saving state based on energy-saving configuration information, the energy-saving configuration information including the duration of a low-power state and the duration of a wake-up state; and setting the energy-saving state according to the energy-saving indication message.

[0027] Optionally, the method further includes: receiving a wake-up message, which is sent by the OLT before sending the power-saving indication message.

[0028] Optionally, the method further includes: receiving the energy-saving configuration information sent by the OLT.

[0029] Optionally, receiving the energy-saving configuration information sent by the OLT includes: receiving an OMCI message sent by the OLT, the OMCI message carrying the energy-saving configuration information; or, receiving a PLOAM message sent by the OLT, the PLOAM message carrying the energy-saving configuration information.

[0030] Optionally, receiving the OMCI message sent by the OLT includes: receiving the OMCI message after receiving the wake-up message and before receiving the power saving indication message.

[0031] Optionally, setting the energy-saving state according to the energy-saving indication message includes: when the ONU is in the active hold state, switching to the wake-up state according to the energy-saving indication message.

[0032] The features in the second aspect that correspond to those in the first aspect produce the same effects, and will not be elaborated upon here. Furthermore, the relevant content for each message in the second aspect can be found in the first aspect.

[0033] Thirdly, an energy-saving state control device is also provided. This energy-saving state control device has the function of implementing the method described in the first aspect. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described function.

[0034] Fourthly, an energy-saving state control device is also provided. This energy-saving state control device has the function of implementing the method described in the second aspect. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described function.

[0035] Fifthly, an optical communication device is also provided, including a processor and a communication interface, wherein the communication interface is connected to the processor, and the processor is used to implement the energy-saving state control method provided in the first aspect above.

[0036] Optionally, the processor may be one or more, and the processor may be a multi-core processor, and the memory may be one or more.

[0037] Optionally, the communication interface includes a transceiver.

[0038] Optionally, the communication device further includes a memory storing program code; the processor is used to read and execute the program code stored in the memory to implement the energy-saving state control method provided in the first aspect above.

[0039] Optionally, the memory may be integrated with the processor, or the memory may be separated from the processor.

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

[0041] In a sixth aspect, a computer-readable storage medium is also provided, wherein a software program is stored therein, which, when read and executed by one or more processors, can implement the energy-saving state control method provided in the first aspect, or implement the energy-saving state control method provided in the second aspect.

[0042] In a seventh aspect, a computer program (product) is provided, the computer program (product) comprising: computer program code, wherein when the computer program code is run by a computer device, the computer device executes the energy-saving state control method provided in the first aspect, or executes the energy-saving state control method provided in the second aspect.

[0043] Eighthly, a chip is provided, the chip including a processor and a communication interface connected to the processor. The processor is configured to execute instructions to cause the chip to perform the energy-saving state control method provided in the first aspect, or to perform the energy-saving state control method provided in the second aspect.

[0044] In a ninth aspect, an optical communication system is provided, including an OLT and multiple ONUs. The OLT is connected to the multiple ONUs via optical fibers. The OLT is used to implement any energy-saving control method provided in the first aspect, and the first ONU among the multiple ONUs is used to implement any energy-saving control method provided in the second aspect. Attached Figure Description

[0045] Figure 1 is a schematic diagram of the system architecture for fiber to the home or fiber to the office.

[0046] Figure 2 is a schematic diagram of the FTTR system architecture;

[0047] Figure 3 is a flowchart illustrating an energy-saving state control method provided in an embodiment of this application;

[0048] Figure 4 is a diagram of the transition process of the first state machine in the first optical communication device;

[0049] Figure 5 is a diagram of the transition process of the second state machine in the second optical communication device;

[0050] Figure 6 is a diagram of the transition process of the third state machine in the first optical communication device;

[0051] Figure 7 is a schematic diagram of the structure of the communication unit in the first optical communication device provided in the embodiment of this application;

[0052] Figure 8 is a schematic diagram showing the relationship between the second energy-saving state of the first optical communication device and the first energy-saving state of the second optical communication device provided in the embodiments of this application.

[0053] Figure 9 is a schematic diagram illustrating another relationship between the second energy-saving state of the first optical communication device and the first energy-saving state of the second optical communication device provided in the embodiments of this application.

[0054] Figure 10 is a flowchart illustrating another energy-saving state control method provided in an embodiment of this application;

[0055] Figure 11 is a schematic diagram of the structure of an energy-saving state control device provided in an embodiment of this application;

[0056] Figure 12 is a schematic diagram of the structure of an energy-saving state control device provided in an embodiment of this application;

[0057] Figure 13 is a schematic diagram of the structure of an optical communication device provided in an embodiment of this application. Detailed Implementation

[0058] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0059] Figure 1 is a schematic diagram of the system architecture for Fiber to the Home / Office (FTTH / O). As shown in Figure 1, the OLT connects to upstream network-side equipment (such as switches and routers) and connects to downstream optical network units (ONUs) via an optical distribution network (ODN). The ODN includes passive optical splitters for optical power distribution, a backbone fiber connecting the passive optical splitter and the OLT, and branch fibers connecting the passive optical splitter and the ONUs. When transmitting downlink signals, the downlink signal sent by the OLT is transmitted to each ONU through the splitter, and the ONU selectively receives the downlink data belonging to itself from the downlink signal. When transmitting uplink signals, the uplink signals sent by multiple ONUs are combined into a single optical signal by the splitter and transmitted to the OLT. The ONU is also called an optical network terminal (ONT).

[0060] Building upon FTTH / O, to address signal coverage issues (such as wireless local area network (WLAN) signals) in home or office networks, fiber optic cables can be extended further into the room. Optical terminal equipment providing WLAN signals is installed inside the room, thus reducing the distance between the user terminal and the wireless access point (AP) and improving signal quality. This technology is called Fiber to the Room (FTTR).

[0061] Figure 2 is a schematic diagram of the FTTR system architecture. As shown in Figure 2, the OLT in FTTH / O is deployed in the central equipment room, and the ONU is deployed in homes or offices. The master device in the FTTR network acts as both an ONU in the FTTH network and an upstream device for the FTTR slave devices, managing the slave devices. The slave devices in the FTTR network can be deployed in various rooms of homes or offices. The slave devices have the functions of an ONU and can also function as access points (APs) to provide WLAN signals to user terminals. Both the master and slave devices can connect to user terminals through the user network interface (UNI).

[0062] In an FTTR network, multiple slave devices can be deployed, each connected to the master device via an optical splitter. The master device can centrally manage and configure all slave devices. The master device can also be called a "master gateway," "master optical modem," or "master FTTR unit (or master fiber unit, MFU)," etc., while slave devices can be called "slave gateways," "slave optical modems," or "slave FTTR units (or sub-fiber units, SFU)," etc.

[0063] Figure 3 is a flowchart illustrating a method for controlling energy-saving states according to an embodiment of this application. This method can be executed by the OLT in Figure 1 or the master device in Figure 2. That is, the first optical communication device mentioned below refers to the master device in the OLT or FTTR network. As shown in Figure 3, the method includes the following steps.

[0064] In step 301, the first optical communication device determines that multiple second optical communication devices connected to the first optical communication device are all in a first energy-saving state.

[0065] Here, when the first optical communication device is an OLT, the second optical communication device is an ONU. When the first optical communication device is the master device in the FTTR network, the second optical communication device is the slave device in the FTTR network.

[0066] In some examples, these multiple second optical communication devices are connected to the same port of the first optical communication device; that is, these multiple second optical communication devices are all the second optical communication devices under the same port of the first optical communication device.

[0067] Optionally, the port of the first optical communication device may include one or more channels. When the port of the first optical communication device includes multiple channels, these multiple second optical communication devices can be all second optical communication devices under the same channel of that port. That is, these multiple second optical communication devices all transmit data with the first optical communication device through that channel.

[0068] In step 302, the first optical communication device enters the second energy-saving state.

[0069] In this embodiment, when multiple second optical communication devices connected to the first optical communication device are in a first energy-saving state, the first optical communication device enters a second energy-saving state, thereby reducing the power consumption of the first optical communication device. In scenarios such as homes and government / enterprise settings, there may be situations where all second optical communication devices connected to the first optical communication device are simultaneously in the first energy-saving state at night, on holidays, or during other time periods. In such cases, the control method provided in this embodiment can be used to make the first optical communication device enter the second energy-saving state, thereby further reducing the overall power consumption of the optical communication system.

[0070] In a first possible implementation, the second energy-saving state includes a low-power state and a wake-up state. When the first optical communication device is in the low-power state, all or some modules of the first optical communication device are turned off. Step 302 includes: the first optical communication device switching between the low-power state and the wake-up state. By turning off all or some modules of the first optical communication device in the low-power state, the power consumption of the first optical communication device is reduced. When the first optical communication device is in the wake-up state, all modules of the first optical communication device operate normally, thereby providing data transmission services to the second optical communication device that needs data transmission.

[0071] For example, when the first timer expires, the first optical communication device transitions from a wake-up state to a low-power state, and the first timer is used to indicate the duration of the first optical communication device being in the wake-up state; when the second timer expires, the first optical communication device transitions from a low-power state to a wake-up state, and the second timer is used to indicate the duration of the first optical communication device being in the low-power state.

[0072] For example, in this first possible implementation, the first optical communication device may be an OLT, such as an OLT in a 50G PON network.

[0073] In a second possible implementation, the second energy-saving state includes a light sleep state, a deep sleep state, and a wake-up state. Specifically, when the first optical communication device is in a light sleep state, some or all modules of the first optical communication device are turned off. When the first optical communication device is in a deep sleep state, all or some modules of the first optical communication device are turned off. Step 302 includes: the first optical communication device switching between a light sleep state and a wake-up state; or, switching between a deep sleep state and a wake-up state.

[0074] Optionally, the transition between a light sleep state and a wake-up state includes: when a first timer expires and one of the plurality of second optical communication devices is in a dozing state, transitioning from the wake-up state to the light sleep state, wherein the first timer is used to indicate the duration of the first optical communication device being in the wake-up state; and when a second timer expires, transitioning from the light sleep state to the wake-up state, wherein the second timer is used to indicate the duration of the second optical communication device being in the light sleep state.

[0075] Optionally, the transition between a deep sleep state and a wake-up state includes: when a first timer expires and there is no second optical communication device in a dozing state, transitioning from the wake-up state to the deep sleep state, wherein the first timer is used to indicate the duration of the first optical communication device being in the wake-up state; and when a second timer expires, transitioning from the deep sleep state to the wake-up state, wherein the second timer is used to indicate the duration of the second optical communication device being in the deep sleep state.

[0076] In the embodiments of this application, at least one module of the first optical communication device has a different state in the light sleep state and the deep sleep state.

[0077] In some examples, the number of modules shut down in the deep sleep state of the first optical communication device is greater than the number of modules shut down in the light sleep state, and the modules shut down in the deep sleep state include those shut down in the light sleep state. In other examples, the modules shut down in the deep sleep state are the same as those shut down in the light sleep state, but at least some of the shut-down modules are shut down for a longer duration in the deep sleep state than in the light sleep state.

[0078] For example, in this second possible implementation, the first optical communication device may be a master device in an FTTR network.

[0079] Optionally, the method further includes:

[0080] In step 303, the first optical communication device exits the second energy-saving state when any of the second optical communication devices exits the first energy-saving state.

[0081] In some examples, the second power-saving state of the first optical communication device only includes a wake-up state and a low-power state, such as the first possible implementation described above. In other examples, the second power-saving state of the first optical communication device includes a wake-up state, a light sleep state, and a deep sleep state, such as the second possible implementation described above. The following describes the situations where the first optical communication device exits the second power-saving state in these two types of cases.

[0082] In some examples, step 303 includes: when the first optical communication device is in a wake-up state, if a sleep request wake-up message is received from any second optical communication device or LWI is detected, exiting the second power-saving state, wherein the sleep request wake-up message is used to instruct any second optical communication device to exit the first power-saving state.

[0083] When the first optical communication device is in a wake-up state, it can normally receive optical signals sent by the second optical communication device. When the optical signal received by the first optical communication device carries a sleep request wake-up message, it can be determined that there is a second optical communication device that has exited the first power-saving state. Therefore, the first optical communication device also exits the second power-saving state to ensure the normal operation of the second optical communication device.

[0084] In other examples, step 303 includes: when the first optical communication device is in a low-power state, if an optical signal or LWI transmitted by any second optical communication device is detected, exiting the second power-saving state.

[0085] When the first optical communication device is in a low-power state, some modules of the first optical communication device are turned off, which may prevent the extraction of information carried by the optical signals transmitted by the second optical communication device. For example, if the receiver of the optical module of the first optical communication device is not turned off, but the serial-to-parallel converter and MAC module are turned off, the receiver can receive the optical signal, but cannot extract the information carried by the optical signal. Here, the receiver receiving the optical signal indicates that there is a possibility that the second optical communication device has exited the first power-saving state, therefore, the first optical communication device also exits the second power-saving state accordingly.

[0086] In some other examples, step 303 includes: when the first optical communication device is in a light sleep state, if it receives a sleep request wake-up message from any second optical communication device or detects LWI, it exits the second power-saving state. When the first optical communication device is in a light sleep state, it can receive a sleep request wake-up message from a second optical communication device, and thus exit the second power-saving state according to the sleep request wake-up message.

[0087] In some other examples, step 303 includes: when the first optical communication device is in a deep sleep state, if an optical signal or LWI transmitted by any second optical communication device is detected, exiting the second power-saving state. The situation where the first optical communication device is in a deep sleep state is similar to the situation in the low-power state described above, and a detailed description is omitted here.

[0088] This application embodiment does not limit the type of LWI detected by the first optical communication device in each state, and can set it according to actual needs. Optionally, the types of LWI detected in different states can be the same or different. For example, LWI may include: maintenance and upgrade events for the second optical communication device; or, voice calls on the network side targeting the second optical communication device, etc.

[0089] In one possible implementation, after exiting the second energy-saving state, all first optical communication devices switch to a wake-up forced state. In the wake-up forced state, all modules of the first optical communication devices operate normally.

[0090] In this embodiment, a first optical communication device has a first state machine, and a second optical communication device has a second state machine. The first and second state machines cooperate to control the power management behavior of the second optical communication device. Since there are multiple second optical communication devices, and each second optical communication device has one second state machine, multiple first state machines exist simultaneously in the first optical communication device, and each first state machine corresponds to one second state machine.

[0091] The state machines of the first and second optical communication devices in PON and FTTR scenarios are described below.

[0092] Figure 4 shows the transition process of the first state machine in the first optical communication device. Part (a) of Figure 4 shows the transition process of the first state machine in the OLT, and part (b) shows the transition process of the first state machine in the master device.

[0093] As shown in part (a) of Figure 4, the first state machine includes four states. The four states are (1) awake forced state, (2) awake free state, (3) low power watch state, and (4) altered state. All of these states are non-energy-saving states.

[0094] When the OLT is in wake-up forced state, ONUs are not allowed to enter power-saving state, and all ONUs are in non-power-saving state. In wake-up forced state, the OLT provides normal allocation to ONUs, forwards downlink traffic, and expects ONUs to respond to each bandwidth grant. If the OLT receives an SA(ON) message from an ONU in wake-up forced state, it transitions from wake-up forced state to wake-up free state.

[0095] When the OLT is in the wake-free state, it allows the ONU to enter a power-saving state, which the ONU can decide for itself. In the wake-free state, the OLT provides normal power allocation to the ONU and forwards downlink traffic. After sending an SA(ON) message, the OLT transitions from the wake-forced state to this wake-free state. In the wake-free state, the ONU may be in an active-free state or an active-held state. In the wake-free state, if LWI is detected, an SA(OFF) message is sent to the ONU, transitioning from the wake-free state to the wake-forced state; if an SR(Wsleep) message is received from the ONU, the OLT transitions from the wake-free state to the low-power monitoring state.

[0096] When the OLT is in low-power monitoring mode, the ONU is also in low-power mode. The OLT provides normal bandwidth allocation to the ONU, and the ONU responds intermittently to bandwidth grants. The OLT discards or buffers the ONU's downlink traffic. In low-power monitoring mode, if timer Teri times out, the OLT sends an SA (OFF) message to the ONU, transitioning to the wake-up forced state; if it receives an SR (Awake) message from the ONU, it transitions to the wake-up free state; upon detecting LWI, it sends an SA (OFF) message to the ONU, transitioning to the alarm state.

[0097] When the OLT is in alarm state, it attempts to wake up the ONU. In alarm state, the OLT sets up FWI in the allocation sent to the ONU, and discards or buffers the ONU's downlink traffic. If the OLT receives an SR (Awake) message from the ONU or the timer `Talerted` times out while in alarm state, it transitions from alarm state to forced wake-up state.

[0098] As shown in part (b) of Figure 4, the first state machine includes six states. The six states are (1) awake forced state, (2) awake free state, (3) low power / sleep watch state, (4) altered sleep / watch state, (5) low power doze state, and (6) alarmed doze state. All of these states are non-energy-saving states.

[0099] When the master device is in wake-up forced state, slave devices are not allowed to enter power-saving state, and all slave devices are in non-power-saving state. In wake-up forced state, the master device provides normal allocation to slave devices, forwards downlink traffic, and expects slave devices to respond to each bandwidth grant. In wake-up forced state, if the master device receives an SA(ON) message from a slave device, it transitions from wake-up forced state to wake-up free state.

[0100] When the OLT is in a wake-free state, it allows the ONU to enter a power-saving state, which the ONU can decide for itself. In the wake-free state, the OLT provides normal traffic allocation to the ONU and forwards downlink traffic. After sending an SA(ON) message, the OLT transitions from the wake-forced state to this wake-free state. In the wake-free state, the ONU may be in an active-free state or an active-held state. In the wake-free state, if LWI is detected, an SA(OFF) message is sent to the ONU, transitioning from the wake-free state to the wake-forced state; if an SR(Sleep / Wsleep) message is received from the slave device, the OLT transitions from the wake-free state to a low-power sleep / monitor state; if an SR(Doze) message is received from the slave device, the OLT transitions from the wake-free state to a low-power doze state.

[0101] When the master device is in a low-power sleep / monitoring state, the slave device is in either a sleep or sleep-wake state. The master device provides normal allocation to the slave device, expecting the slave device to respond intermittently to bandwidth grants. The master device may buffer downlink traffic from the slave device. In low-power monitoring state, if timer Teri times out, the master device sends an SA(OFF) message to the slave device, transitioning to a wake-up forced state; if it receives an SR(Awake) message from the slave device, it transitions to a wake-up free state; upon detecting LWI, it sends an SA(OFF) message to the ONU, transitioning to an alarm sleep / monitoring state.

[0102] When the master device is in alarm sleep / monitoring mode, it attempts to wake up the slave device. In alarm sleep / monitoring mode, the master device sets up FWI in the allocation sent to the slave device, and forwards, drops, or buffers downlink traffic from the slave device. If the master device receives an SR (Awake) message from the slave device or the timer `Talerted` times out while in alarm sleep / monitoring mode, it transitions from alarm sleep / monitoring mode to forced wake-up mode.

[0103] When the master device is in a low-power sleep state, the slave device is in a listening / monitoring state or a sleep / monitoring wake-up state. The master device provides normal allocation to the slave device, expecting the slave device to respond intermittently to bandwidth grants, and the master device forwards the slave device's downlink traffic. In the low-power sleep state, if the timer Teri times out, the master device sends an SA(OFF) message to the slave device, transitioning to the wake-up forced state; if it receives an SR(Awake) message from the slave device, it transitions to the wake-up free state; upon detecting LWI, it sends an SA(OFF) message to the ONU, transitioning to the alarm sleep state.

[0104] When the master device is in an alarm slumber state, it attempts to wake up the slave device. In the alarm slumber state, the master device sets up FWI in the allocation sent to the slave device, and forwards, drops, or buffers downlink traffic from the slave device. If the master device receives an SR (Awake) message from the slave device or the timer `Talerted` times out while in the alarm slumber state, it transitions from the alarm slumber state to the wake-up forced state.

[0105] Figure 5 shows the transition process of the second state machine in the second optical communication device. Part (a) of Figure 5 shows the transition process of the second state machine in the ONU, and part (b) shows the transition process of the second state machine in the slave device. In Figure 5, ' / ' indicates sending a message.

[0106] As shown in part (a) of Figure 5, the second state machine includes four states. The four states are the active held state, the active free state, the aware state, and the low power state.

[0107] As shown in part (a) of Figure 5, the first energy-saving state includes a wake-up state and a low-power state. That is, the second optical communication device being in the first energy-saving state means that it is transitioning between the wake-up state and the low-power state. In the wake-up state, if the wake-up timer Taware times out, it transitions to the low-power state; in the low-power state, if the low-power timer Tlowpower times out, it transitions to the wake-up state. If the first energy-saving state of the second optical communication device is not interrupted, the device will cycle between the wake-up state and the low-power state. The duration of the wake-up state and the low-power state in a single cycle can be set according to actual needs.

[0108] In the active hold state, if the hold timer Thold times out and an SA(ON) message is received, the system transitions to the active free state.

[0109] If Thold times out and an SA (force) message is received while in the active hold state, the system transitions to the wake-up state.

[0110] In the active free state, the second optical communication device sends an SR (Wsleep) message based on the LSI (e.g., traffic) to transition to the wake-up state.

[0111] If an SA(OFF) message or an FWI message is received while in the active free state, the system transitions to the active hold state.

[0112] In the wake-up state, if the wake-up timer Taware times out, it will switch to a low-power state.

[0113] In the wake-up state, if an SA(OFF) message is received, or an FWI is received, or an LWI is detected, an SR(awake) message is sent to switch to the active hold state.

[0114] When the second optical communication device is in wake-up mode, both the transmitter and receiver of its optical module are on. When the second optical communication device is in low-power mode, the transmitter of its optical module is off, and the receiver is off or periodically off. Periodically off receivers in the optical module (i.e., periodically on) check for remote wake-up indications in downlink signals sent by the first optical communication device. In low-power mode, the second optical communication device does not respond to license allocations or forward downlink traffic.

[0115] The active hold state and the active free state are non-energy-saving states. In the non-energy-saving state, all modules of the second optical communication device work normally, and the second optical communication device sends and receives data normally.

[0116] As shown in part (b) of Figure 5, the second state machine includes 6 states. The 6 states are the active held state, the active free state, the sleep aware state, the sleep state, the doze / watch aware state, and the listen / watch state, i.e., the aforementioned doze state.

[0117] As can be seen from part (b) of Figure 5, the first energy-saving state includes a sleep-wake state and a sleep state, or the first energy-saving state includes a nap / monitor wake-up state and a listening / monitoring state. That is, the second optical communication device being in the first energy-saving state means that the second optical communication device is switching between a sleep-wake state and a sleep state, or switching between a nap / monitor wake-up state and a listening / monitoring state.

[0118] In sleep-wake mode, if the wake-up timer expires, the device transitions to sleep mode; conversely, in sleep mode, if the sleep timer expires, the device transitions to sleep-wake mode. In nap / monitor wake-up mode, if the wake-up timer expires, the device transitions to listen / monitor mode; conversely, in listen / monitor mode, if the sleep timer expires, the device transitions to nap / monitor wake-up mode. If the first energy-saving state of the second optical communication device is not interrupted, the second optical communication device will cycle between sleep-wake mode and sleep mode, or between nap / monitor wake-up mode and listen / monitor mode. The duration of sleep-wake mode and sleep mode, as well as the duration of nap / monitor wake-up mode and listen / monitor mode, can be set according to actual needs within a single cycle.

[0119] In the active hold state, if the hold timer Thold times out and an SA(ON) message is received, the system transitions to the active free state.

[0120] In the active hold state, if the hold timer Thold times out, an SA (force) message is received, and the most recent power saving mode is sleep or the OLT indicates forced entry into sleep, then the system transitions to sleep wake-up state; if the hold timer Thold times out, an SA (force) message is received, and the most recent power saving mode is nap or the OLT indicates forced entry into nap, then the system transitions to nap / monitor wake-up state.

[0121] In the first energy-saving state, whether the second optical communication device cycles between a sleep-wake state and a sleep state, or between a dozing / monitoring wake state and a listening / monitoring state, is determined by the second optical communication device itself based on local events. This application embodiment does not limit the local events. For example, if the second optical communication device detects a local sleep indication (LSI) (e.g., traffic changes satisfying a first condition) in the active free state, it sends an SR (sleep) message and transitions to the sleep-wake state; or, for example, if the second optical communication device detects a local doze indication (LDI) (e.g., traffic changes satisfying a second condition) / local power indication (LPI) in the active free state, it sends an SR (doze) / SR (watch) message and enters a dozing / monitoring state.

[0122] If an SA(OFF) message or an FWI message is received while in the active free state, the system transitions to the active hold state.

[0123] In the sleep-wake state and the nap / monitor wake state, if an SA(OFF) message is received, or an FWI is received, or an LWI is detected, an SR(awake) message is sent to switch to the active hold state.

[0124] If LWI is detected during sleep, an SR (awake) message is sent to transition to the active hold state.

[0125] In the listening / monitoring state, if an SA (OFF) message or an FWI message is received, an SR (awake) message is sent to switch to the active hold state.

[0126] When the second optical communication device is in sleep wake-up state, nap wake-up state, or monitoring wake-up state, both the transmitter and receiver of the optical module of the second optical communication device remain on.

[0127] When the second optical communication device is in sleep mode, the transmitter of the optical module of the second optical communication device is turned off, and the receiver of the optical module of the second optical communication device is turned off or periodically turned off.

[0128] When the second optical communication device is in listening mode, the transmitter of its optical module is turned off, and the receiver of its optical module is turned on. It listens for downlink signals and forwards downlink traffic, while retaining the ability to reactivate the transmitter under local or remote excitation. While detecting downlink signals, the slave device does not respond to bandwidth allocation and does not forward downlink traffic.

[0129] When the second optical communication device is in monitoring mode, the transmitter of its optical module is turned off, while the receiver of its optical module is periodically and briefly turned on to detect whether there is a remote wake-up indication in the downlink signal. While detecting the downlink signal, the slave device does not respond to bandwidth allocation and does not forward downlink traffic.

[0130] Among them, the active hold state and the active free state are non-energy-saving states. In the non-energy-saving state, each module of the second optical communication device works normally, and the second optical communication device sends and receives data normally.

[0131] It should be noted that in other embodiments, the first state machine in the master device may be the first state machine in part (a) of FIG4, and the second state machine in the slave device may be the second state machine in part (a) of FIG5.

[0132] In this embodiment of the application, the first optical communication device is further provided with a third state machine, which cooperates with the second state machines in a plurality of second optical communication devices to control the power consumption management behavior of the first optical communication device.

[0133] Figure 6 shows the transition process of the third state machine in the first optical communication device. Part (a) of Figure 6 shows the transition process of the third state machine in the OLT, and part (b) shows the transition process of the third state machine in the master device.

[0134] As shown in part (a) of Figure 6, the third state machine in the OLT includes three states: (1) awake forced state, (2) awake state, and (3) low power state. The awake state and low power state are both energy-saving states, while the awake forced state is a non-energy-saving state. In practical applications, the names of each state can be changed according to actual needs; this embodiment does not impose such restrictions.

[0135] As an example, in the wake-up forced state, the first optical communication device is not energy-saving, or the target port of the first optical communication device is not energy-saving, or the channel corresponding to the target port of the first optical communication device is not energy-saving, and it works normally; in the wake-up state, the first optical communication device is not energy-saving, or the target port of the first optical communication device is not energy-saving, or the channel corresponding to the target port of the first optical communication device is not energy-saving, and it works normally; in the low power state, the serial-to-parallel converter, the DBA module, and the MAC module connected to the receiver are normally off, the receiver in the optical module is turned on to detect the optical signal, the transmitter in the optical module is normally on or intermittently on, and the first optical communication device does not forward downlink traffic.

[0136] The transitions between these three states include the following cases:

[0137] 1) In the wake-up forced state, if it is determined that each of the second optical communication devices is in the first energy-saving state, the wake-up forced state is switched to the wake-up state.

[0138] In this scenario, the first optical communication device will send a Sleep Allow(forced) message (abbreviated as SA(forced) message) to the second optical communication device. The details of the Sleep Allow(forced) message are as follows.

[0139] 2) In the wake-up forced state, if it is determined that there is a second optical communication device that is not in the first energy-saving state, the wake-up forced state shall be maintained.

[0140] 3) In the wake-up state, if the first timer (Taware) times out (or expires), the device transitions from the wake-up state to a low-power state. This first timer is started by the first optical communication device when it enters the wake-up state.

[0141] 4) In low-power mode, if the second timer (Tlowpower) times out, the system transitions from low-power mode to wake-up mode. This second timer is started by the first optical communication device when it enters low-power mode.

[0142] 5) In the wake-up state, if a sleep request (awake) message (abbreviated as SR (awake) message) is received from any second optical communication device, or if LWI is detected, the wake-up state is transitioned to the wake-up forced state.

[0143] 6) In the low power state, if an optical signal or LWI is detected sent by any second optical communication device, the system switches from the low power state to the wake-up forced state.

[0144] As shown in part (b) of Figure 6, the third state machine in the main device includes four states: (1) awake forced state, (2) awake state, (3) light sleep state, and (4) deep sleep state. Among these, the awake state, light sleep state, and deep sleep state are all energy-saving states, while the awake forced state is a non-energy-saving state. In practical applications, the names of each state can be changed according to actual needs, and this embodiment does not impose any restrictions on this. For example, the awake forced state can be called the working state, the awake state can be called the energy-saving preparation state, the light sleep state can be called the first sleep state, and the deep sleep state can be called the second sleep state.

[0145] As an example, in the forced wake-up state, the first optical communication device is not energy-efficient, or the target port of the first optical communication device is not energy-efficient, or the channel corresponding to the target port of the first optical communication device is not energy-efficient, and it operates normally; in the wake-up state, the first optical communication device is not energy-efficient, or the target port of the first optical communication device is not energy-efficient, or the channel corresponding to the target port of the first optical communication device is not energy-efficient, and it operates normally; in the light sleep state, the transmitting side of the first optical communication device is not energy-efficient (i.e., the transmitter, DBA module, MAC module connected to the transmitter, and serial-to-parallel converter in the optical module are all turned on), the receiver in the optical module is turned on to detect the optical signal, and the first optical communication device does not forward downlink traffic; in the deep sleep state, the receiver in the optical module is turned on to detect the optical signal, the modules in the transmitting side of the first optical communication device are turned on intermittently, and the first optical communication device does not forward downlink traffic.

[0146] The transitions between these four states include the following cases:

[0147] 1) When in the wake-up forced state, if all the second optical communication devices are in the first energy-saving state, the device will switch from the wake-up forced state to the wake-up state.

[0148] In this situation, the first optical communication device will send an SA (forced) message, the details of which are described below.

[0149] 2) In the wake-up forced state, if there is a second optical communication device that is not in the first energy-saving state, the wake-up forced state shall be maintained.

[0150] 3) In the wake-up state, if a sleep request (awake) message (abbreviated as SR (awake) message) is received from any second optical communication device, or if LWI is detected, the wake-up state is transitioned to the wake-up forced state.

[0151] 4) In the wake-up state, if the first timer (Taware) times out (or expires) and a second optical communication device is in a dozing state, the system transitions from the wake-up state to a light sleep state. The first timer is started when the first optical communication device enters the wake-up state.

[0152] 5) In the wake-up state, if the first timer (Taware) times out (or expires) and there is no second optical communication device in a dozing state, the system transitions from the wake-up state to the deep sleep state.

[0153] 6) In light sleep mode, if the second timer (Tsleep) times out, the system transitions from light sleep mode to wake-up mode. This second timer is started when the first optical communication device enters light sleep mode.

[0154] 7) In the light sleep state, if an SR (awake) message or LWI is received from any second optical communication device, the system will switch from the deep sleep state to the wake-up forced state.

[0155] 8) In deep sleep mode, if the second timer (Tsleep) times out, the system transitions from deep sleep mode to wake-up mode. This second timer is started when the first optical communication device enters light sleep mode.

[0156] 9) In deep sleep state, if an optical signal or LWI is detected from any second optical communication device, the state is switched from deep sleep state to wake-up forced state.

[0157] Optionally, the method further includes: determining whether each of the second optical communication devices is in a first energy-saving state.

[0158] In some examples, upon receiving a sleep power-saving request from a second optical communication device, it is determined whether each of the second optical communication devices is in a first power-saving state. Sending a sleep power-saving request indicates that the second optical communication device has entered the first power-saving state, and this second optical communication device may be the last to enter the first power-saving state. Therefore, this can be used as a trigger condition to determine whether all second optical communication devices are in a power-saving state. Compared to periodically determining whether all second optical communication devices connected to the first optical communication device are in the first power-saving state, using this as a trigger condition can determine that all second optical communication devices are in the first power-saving state more promptly.

[0159] In other examples, it is periodically determined whether all second optical communication devices connected to the first optical communication device are in a first energy-saving state. This allows for timely detection of whether multiple second optical communication devices are in the first energy-saving state. The embodiments of this application do not limit the length of this period and can be set according to actual needs. For example, the period length can be 1s-10s.

[0160] In this embodiment of the application, the first optical communication device can determine whether the second optical communication device is in a first energy-saving state based on the first state machine corresponding to the second optical communication device.

[0161] The following is an exemplary description of how the first optical communication device shuts down its modules in a low-power state.

[0162] Optionally, the modules that the first optical communication device shuts down in the low-power state include one or more of the following modules: receivers, transmitters, serial-to-parallel converters (also known as serializers / deserializers), MAC modules, or DBA modules of optical modules under some or all channels of the target port of the first optical communication device. Here, the target port refers to the port connected to multiple second optical communication devices that are all in the first power-saving state.

[0163] When the first optical communication device is an OLT, the target port is the PON port. When the first optical communication device is the master device in the FTTR network, the target port is the downlink port of the master device.

[0164] For example, the first optical communication device includes one or more communication units, each corresponding to a port. Each communication unit has one or more channels, each channel used for data transmission with a corresponding type of second optical communication device. Here, the type of the second optical communication device can be classified according to the MAC protocol supported by the second optical communication device; that is, different types of second optical communication devices can support different MAC protocols. Optionally, the MAC protocol includes, but is not limited to, GPON, EPON, 10G PON, 10G EPON, or higher transmission rate MAC protocols such as 40GPON, 50G PON, and 100G PON.

[0165] Figure 7 is a schematic diagram of the structure of a communication unit in a first optical communication device provided in an embodiment of this application. As shown in Figure 7, each communication unit includes an optical module 710 and a processing component 720. The processing component 720 can be disposed on a single board, which is connected to the optical module 710. The optical module 710 includes at least one transmitter (not shown) and at least one receiver (not shown). The transmitter is used to convert electrical signals into optical signals and transmit them, and the receiver is used to receive optical signals and convert the received optical signals back into electrical signals. The processing component 720 includes at least one sub-component, each sub-component including a DBA module 723, a MAC module 722, and a serial-to-parallel converter 721. Each sub-component and a corresponding pair of receivers and transmitters in the optical module 710 form a channel.

[0166] In implementation, receivers in different channels can be integrated together or set up separately, and transmitters in different channels can be integrated together or set up separately; this application does not impose any restrictions on this. Furthermore, in Figure 7, the DBA modules 723 in different sub-components are integrated together, i.e., only one DBA module 723 is provided. In other embodiments, the DBA modules in different sub-components can be set up separately. Additionally, the MAC modules in different sub-components can be integrated on the same physical chip, or they can be set up on different physical chips.

[0167] For example, in FIG7, the processing component 720 includes two sub-components, one of which has a MAC module 722 supporting the 50G PON protocol, and the other of which has a MAC module 722 supporting the 10G EPON protocol. Specifically, the downlink wavelength corresponding to the 50G PON protocol is 1575nm-1580nm, and the wavelength of the optical signal emitted by the transmitter in the corresponding channel is 1575nm-1580nm; the uplink wavelength corresponding to the 50G PON protocol includes 1260nm-1360nm, 1290nm-1330nm, or 1260nm-1280nm, and the wavelength of the optical signal received by the receiver in the corresponding channel is 1260nm-1360nm, 1290nm-1330nm, or 1260nm-1280nm; the downlink wavelength corresponding to the 10G PON protocol is 1340nm-1344nm, and the wavelength of the optical signal emitted by the transmitter in the corresponding channel is 1340nm-1344nm; the uplink wavelength corresponding to the 10G PON protocol is 1284nm-1288nm, and the wavelength of the optical signal received by the receiver in the corresponding channel is 1284nm-1288nm.

[0168] In some examples, the communication unit corresponding to the target port includes a channel. When multiple second optical communication devices connected to the target port are all in a first energy-saving state, the first optical communication device can shut down one or more modules under all channels of the target port.

[0169] In other examples, the communication unit corresponding to the target port includes multiple channels. The first optical communication device may shut down one or more modules under some channels of the target port. Alternatively, the first optical communication device may shut down one or more modules under all channels of the target port.

[0170] For example, when all second optical communication devices under the first channel in multiple channels are in the first energy-saving state, the first optical communication device can shut down one or more modules under the first channel; while when there is a second optical communication device under the second channel in multiple channels that is not in the first energy-saving state, the first optical communication device does not shut down the modules under the second channel.

[0171] For example, when all channels of the target port are in the first energy-saving state, the first optical communication device can shut down the modules under each channel.

[0172] When the first optical communication device simultaneously shuts down modules on multiple channels, the types of modules shut down on different channels can be the same or different. For example, the first optical communication device shuts down the receiver and transmitter on the first channel as well as the receiver and transmitter on the second channel. Another example is that the first optical communication device shuts down the receiver on the first channel as well as the receiver and transmitter on the second channel.

[0173] The following examples illustrate several scenarios for closing a module under a certain channel of the target port.

[0174] 1. Close a module under this channel.

[0175] 1. Turn off the receiver under this channel.

[0176] If the transmitter of the second optical communication device is turned off in a low-power state, the first optical communication device does not need to receive data when all the second optical communication devices are in a low-power state. Therefore, the first optical communication device can turn off the receiver.

[0177] 2. Turn off the transmitter under this channel.

[0178] If the receiver of the second optical communication device is turned off in a low-power state, the first optical communication device does not need to send data to the second optical communication device, and the first optical communication device can turn off its transmitter.

[0179] 3. Disable the DBA module under this channel.

[0180] If the receiver of the second optical communication device is turned off in a low-power state, the first optical communication device does not need to provide allocation for the first optical communication device. In this case, the first optical communication device can turn off the DBA module.

[0181] 4. Turn off the serial-to-parallel converter under this channel.

[0182] If both the transmitter and receiver of the second optical communication device are off in a low-power state, the first optical communication device does not need to receive or transmit data, nor will it use the serial-to-parallel converter for conversion. Therefore, the first optical communication device can turn off the serial-to-parallel converter. In practice, the receiver and transmitter can be connected to different serial-to-parallel converters. In this case, the state of the transmitter of the second optical communication device in a low-power state determines whether the serial-to-parallel converter connected to the receiver of the first optical communication device is off, and the state of the receiver of the second optical communication device in a low-power state determines whether the serial-to-parallel converter connected to the transmitter of the first optical communication device is off.

[0183] 5. Disable the MAC module under this channel.

[0184] If both the transmitter and receiver of the second optical communication device are turned off in a low-power state, the first optical communication device does not need to receive or transmit data, nor will it use the MAC module for data processing. Therefore, the first optical communication device can turn off its MAC module. In practice, if the receiver and transmitter each use a separate MAC module for data processing, the state of the transmitter in the low-power state of the second optical communication device determines whether the MAC module connected to the receiver of the first optical communication device is turned off, and vice versa.

[0185] 2. Close multiple modules under this channel.

[0186] Any combination of the above modules can be selected to be turned off. In low-power mode, the more modules the first optical communication device turns off, the more power is saved. In implementation, the energy-saving requirements of the first optical communication device and the time required for the first optical communication device to transition from a low-power state to a wake-up state can be comprehensively considered to determine the modules to be turned off in low-power mode.

[0187] For example, whether the transmitter and receiver of the first optical communication device are turned off or not can be determined based on the data transmission needs of the second optical communication device in the first energy-saving state. For instance, if the second optical communication device may transmit data, the transmitter of the second optical communication device is turned on, and correspondingly, the receiver of the first optical communication device needs to remain on or periodically turn on; as another example, if the second optical communication device is unlikely to transmit data, the transmitter of the second optical communication device is turned off, and correspondingly, the receiver of the first optical communication device can remain off or periodically turn off. Yet another example, if the second optical communication device does not receive any data, the receiver of the second optical communication device is turned off, and correspondingly, the transmitter of the first optical communication device can be turned off. Yet another example, if the second optical communication device does not receive data but detects FWI, the receiver of the second optical communication device is periodically turned off, and correspondingly, the transmitter of the first optical communication device can be periodically turned off.

[0188] When the transmitter is off, the MAC module, serial-to-parallel converter, and DBA module belonging to the same channel as the transmitter can be turned on or off. If the transmitter, serial-to-parallel converter, MAC module, and DBA module in the same channel are all turned on, the first optical communication device can transmit optical signals carrying information. If the transmitter is on, but the MAC module, serial-to-parallel converter, and DBA module belonging to the same channel as the transmitter are all turned off, the channel can only transmit optical signals without carrying information. If the transmitter is off, regardless of whether the MAC module, serial-to-parallel converter, and DBA module belonging to the same channel as the transmitter can be turned on or off, the channel cannot transmit optical signals.

[0189] When the receiver is turned off, at least one of the serial-to-parallel converters and MAC modules belonging to the same channel as the receiver can also be turned off.

[0190] When the receiver is turned on, the serial-to-parallel converter and MAC module belonging to the same channel as the receiver can be turned on or off. If the receiver, serial-to-parallel converter, and MAC module in the same channel are all turned on, the first optical communication device can receive the optical signal and extract the information carried in the optical signal. If the receiver is turned on, but the serial-to-parallel converter and / or MAC module belonging to the same channel as the receiver are turned off, the first optical communication device can detect the optical signal, but cannot extract the information carried in the optical signal.

[0191] In the embodiments of this application, shutting down a module in a low-power state includes two scenarios: keeping the module always off in a low-power state or periodically shutting down the module in a low-power state (i.e., periodically turning the module on briefly during the shutdown process). For example, keeping the transmitter of the optical module off, or keeping the transmitter of the optical module periodically off.

[0192] Therefore, if multiple modules are shut down simultaneously, there are three possible scenarios:

[0193] The first approach is to keep all these modules off during low-power operation. For example, keep the receiver and transmitter of the optical module off at all times.

[0194] The second method involves periodically shutting down these modules in a low-power state. For example, periodically shutting down the transmitter and receiver of the optical module.

[0195] The third approach involves keeping some modules constantly off while periodically shutting down others in a low-power state. For example, the MAC module connected to the receiver of the first optical communication device can be kept constantly off, while the receiver of the optical module of the first optical communication device can be periodically shut down.

[0196] As an example, the receiver of the first optical communication device is connected to a serial-to-parallel converter and a MAC module that remain off, while the receiver remains on or intermittently on. The transmitter, along with its connected serial-to-parallel converter and DBA module, is intermittently on. Specifically, if the receiver, transmitter, and their connected serial-to-parallel converters and DBA modules are all intermittently on, the on-time for each of these components is the same. Thus, if the low-power state is prolonged, and the second optical communication device actively requests to wake up early, the system can quickly respond to the second optical communication device's request to exit the first energy-saving state during the intermittent on-time of these modules, thereby quickly exiting the second energy-saving state without waiting for the low-power state to end and the device to enter the wake-up state before confirming its exit from the first energy-saving state.

[0197] Optionally, if the target port includes multiple channels, and the second optical communication devices under these multiple channels are all in the first energy-saving state, the second optical communication devices under these multiple channels can use the same energy-saving configuration information. In this way, for modules that do not support independent shutdown based on channels, shutdown can be performed on a target port basis.

[0198] When the first power-saving state includes a low-power state and a wake-up state, the relationship between the second power-saving state of the first optical communication device and the first power-saving state of the second optical communication device can be as follows.

[0199] In some examples, the first optical communication device is in a low-power state when all the second optical communication devices are in a low-power state. When the second optical communication devices are in a low-power state, the transmitter is off, the receiver is off, or it is periodically off; that is, the second optical communication devices do not transmit data or receive data for a short period of time. In this case, all or part of the modules of the first optical communication device are not working, which has little impact on the data transmission of the second optical communication devices and can reduce the power consumption of the first optical communication device. For example, the time when the first optical communication device is in a low-power state is the overlapping portion or a part of the time when the various second optical communication devices are in a low-power state.

[0200] In other examples, the first optical communication device is awake when any second optical communication device is awake. When a second optical communication device is awake, both its receiver and transmitter are functioning normally, allowing it to receive and send data. In this case, the first optical communication device is also awake, satisfying the data transmission needs of the awakened second optical communication devices. For example, the time the first optical communication device is awake is either the overlapping portion of the times when the various second optical communication devices are awake, or the time the first optical communication device is awake includes that overlapping portion.

[0201] In some other examples, the first optical communication device is in a low-power state when all the second optical communication devices are in a low-power state; and the first optical communication device is in a wake-up state when any of the second optical communication devices is in a wake-up state. This allows the first optical communication device to remain in a low-power state for as long as possible, while still meeting the data transmission requirements of the second optical communication devices in the wake-up state, thereby further reducing the power consumption of the first optical communication device. For example, this requirement is simultaneously met in Figures 8 and 9.

[0202] Optionally, as shown in Figure 9, the wake-up time of the first optical communication device is longer than that of the second optical communication device, and the low-power state time of the first optical communication device is shorter than that of the second optical communication device. This ensures that the first optical communication device can better tolerate synchronization errors in the first energy-saving state among multiple second optical communication devices. Here, the sum of the wake-up time and the low-power state time of the first optical communication device is equal to the sum of the wake-up time and the low-power state time of the second optical communication device.

[0203] When the first energy-saving state includes a dozing state, a dozing-wake state, a sleep state, and a sleep-wake state, the relationship between the second energy-saving state of the first optical communication device and the first energy-saving state of the second optical communication device can be as follows.

[0204] In the first scenario, each of the multiple slave devices is either in a sleep state or a sleep-wake state.

[0205] In some examples, the master device is in a deep sleep state when all the slave devices are in sleep mode. When the slave devices are in sleep mode, the transmitter is off, the receiver is off, or is periodically off; that is, the slave devices do not send data, do not receive data, or receive data only for a short period of time. In this case, all or part of the modules of the master device are not working, which has little impact on the data transmission of the slave devices and can reduce the power consumption of the master device.

[0206] In other examples, the master device is in a wake-up state when any slave device is in a sleep-wake state. When the master device is in a wake-up state, both the receiver and transmitter in the master device's optical module are working normally, and the master device can receive and send data normally. Therefore, the master module is also in a wake-up state, thus meeting the data transmission needs of the master module in the sleep-wake state.

[0207] In other examples, when all the slave devices are in sleep mode, the master device is in deep sleep mode, and when any slave device is awakened from sleep mode, the master device is awakened. This allows the master device to remain in deep sleep mode for as long as possible while still meeting the data transmission needs of the awakened slave devices, thereby further reducing the power consumption of the master device.

[0208] The second scenario is that each of the multiple slave devices is either in a dozing state or a dozing-wake state.

[0209] In some examples, the master device is in a light sleep state when all the slave devices are in a dozing state. For instance, when a slave device is in a dozing state, the transmitter is not turned off, and the receiver is turned off or periodically turned off; that is, the slave device can send data but does not receive data or receives data only for a short period. In this case, all or part of the master device's modules are not working, which has little impact on the data transmission of the slave devices and can reduce the power consumption of the slave devices.

[0210] In other examples, the master device is in a wake-up state when any slave device is in a doze-wake state. When the master device is in a wake-up state, both the receiver and transmitter in the master device's optical module are working normally, and the master device can receive and send data normally. Therefore, the master device is in a wake-up state, which can meet the data transmission needs of the slave devices in the doze-wake state.

[0211] In some other examples, when all the slave devices are in a dozing state, the master device is in a light sleep state, and when any slave device is in a dozing-wake state, the master device is in a wake-up state. This allows the master device to remain in a light sleep state for as long as possible while still meeting the data transmission needs of the slave devices in the dozing-wake state, thereby further reducing the power consumption of the master device.

[0212] The third scenario is that each of the multiple slave devices can be in a sleep state, a sleep-wake state, a nap state, or a nap-wake state.

[0213] In some examples, when some of the multiple slave devices are in a dozing state and others are in a sleep state, the master device is in a light sleep state. For example, when a slave device is in a dozing state, the transmitter is not turned off, and the receiver is turned off or periodically turned off; that is, the slave device can send data but does not receive data or receives data only for a short period. In this case, all or part of the master device's modules are not working, which has little impact on the data transmission of the slave devices and reduces the power consumption of the slave devices. Furthermore, since slave devices in a dozing state may still send data, when there are slave devices in a dozing state among the multiple slave devices, the master device needs to be in the corresponding light sleep state.

[0214] In other examples, the master device is in a wake-up state when any of the slave devices is in a doze-wake state or a sleep-wake state. When the master device is in a wake-up state, both the receiver and transmitter in the master device's optical module are working normally, and the master device can receive and send data normally. Therefore, the master device is in a wake-up state, which can meet the data transmission needs of the slave devices in the doze-wake or sleep-wake states.

[0215] In other examples, when some of the slave devices are in a dozing state and others are in a sleep state, the master device is in a light sleep state. Furthermore, when any of the slave devices is in a listening state or a sleep-wake state, the master device is in a wake-up state. This allows the master device to remain in a light sleep state for as long as possible, while still meeting the data transmission needs of the slave devices in the dozing / wake state, thereby further reducing the power consumption of the master device.

[0216] When the first optical communication device allows the second optical communication device to enter a power-saving state, the second optical communication device determines whether to enter the power-saving state based on a power-saving strategy. This application embodiment does not limit the power-saving strategy; for example, the power-saving strategy includes, but is not limited to, monitoring local communication traffic and determining whether to enter a power-saving state based on the monitoring results, etc.

[0217] Since each second optical communication device independently decides whether to enter the first power-saving state, the timing of each device entering this state differs. Consequently, the time a second optical communication device is in the wake-up state and the time it is in the low-power state may not be aligned; or, the time a second optical communication device is in the wake-up state and the time it is in the sleep state may not be aligned. The following description uses the alignment of the wake-up state and the low-power state as an example to illustrate the embodiments of this application. The alignment of the wake-up state and the sleep state is the same.

[0218] Figure 8 is a schematic diagram showing the relationship between the second energy-saving state of the first optical communication device and the first energy-saving state of the second optical communication device provided in the embodiments of this application. As shown in Figure 8, each ONU0-ONU2 is in the first energy-saving state, but the time when each ONU enters the first energy-saving state is different, and the overlap of the time when each ONU0-ONU2 is in the low-power state is short.

[0219] When there are many second optical communication devices, the overlap in the time that each second optical communication device is in a low-power state may be short or even non-existent, which is detrimental to the first optical communication device entering a low-power state. Therefore, in order to maximize the duration of the first optical communication device in a low-power state and thus minimize its power consumption, the method also includes synchronizing the first energy-saving states of each second optical communication device. Figure 9 is a schematic diagram illustrating another relationship between the second energy-saving states of the first and second optical communication devices provided in an embodiment of this application. As shown in Figure 9, the low-power states and wake-up states of ONU0-ONU2 are aligned in the time dimension. Therefore, the overlap in the time that ONU0-ONU2 is in a low-power state is the longest, and the duration of the first optical communication device in a low-power state is also extended.

[0220] It should be noted that Figures 8 and 9 illustrate the use of 3 ONUs as an example. In actual applications, the number of ONUs may be more or less, and this embodiment does not limit this.

[0221] The process of synchronizing the first energy-saving state of each second optical communication device with the first optical communication device is described below. Figure 10 is a flowchart illustrating an energy-saving state control method provided in an embodiment of this application. This method is used to synchronize the energy-saving state of each second optical communication device. Figure 10 illustrates this method using an OLT as the first optical communication device and an ONU as the second optical communication device. As shown in Figure 10, the method includes:

[0222] In step 1001, the OLT determines that all ONUs connected to the OLT are in the first energy-saving state.

[0223] This step is the same as step 301 mentioned above.

[0224] In step 1002, an energy-saving instruction message is sent to each ONU.

[0225] This energy-saving instruction message is used to instruct the ONU to set an energy-saving state based on energy-saving configuration information. This energy-saving configuration information includes the duration of the low-power state and the duration of the wake-up state.

[0226] Accordingly, the ONU receives the energy-saving instruction message.

[0227] In step 1003, the ONU sets the energy-saving status based on the energy-saving configuration information according to the energy-saving instruction message.

[0228] Since the energy-saving configuration information of each secondary optical communication device is identical, after receiving the energy-saving instruction message and setting the energy-saving state based on this configuration information, the energy-saving states of each secondary optical communication device can be aligned in the time dimension. That is, the start and end times of the wake-up state are essentially the same, and the start and end times of the low-power state are also essentially the same. Here, "essentially the same" means that a certain synchronization error is allowed. This error is a deviation on the order of milliseconds.

[0229] When the second optical communication device is in sleep or dozing state, the first optical communication device needs to store the downlink data of the second optical communication device and send it to the second optical communication device after the second optical communication device enters sleep-wake or dozing-wake state. Therefore, if the sleep state is long and the energy-saving states of the various second optical communication devices are not synchronized, and the downlink data of these multiple second optical communication devices needs to be sent in a queue, the second optical communication device corresponding to the first received downlink data may be in sleep or dozing state, causing the subsequent received downlink data to be unable to be sent to the corresponding second optical communication device. This causes downlink data transmission congestion among multiple second optical communication devices, thus requiring the first optical communication device to store a large amount of data and placing high demands on its storage capacity. This application synchronizes the energy-saving states of the second optical communication devices, allowing all downlink data from the second optical communication devices to be sent out in the wake-up state, avoiding downlink data congestion and reducing the storage capacity requirements of the first optical communication device.

[0230] Similarly, when the second optical communication device is in a low-power state, the first optical communication device needs to store the downlink data of the second optical communication device and send it to the second optical communication device after the second optical communication device enters the wake-up state. Therefore, if the low-power state lasts for a long time and the energy-saving states of the various second optical communication devices are not synchronized, and the downlink data from these multiple second optical communication devices needs to be sent in a queue, it is possible that because the second optical communication device corresponding to the first received downlink data is in a low-power state, the subsequent received downlink data cannot be sent to the corresponding second optical communication device. This causes downlink data transmission congestion among these multiple second optical communication devices, resulting in a large amount of data that the first optical communication device needs to store, placing high demands on its storage capacity. This application, by synchronizing the energy-saving states of the second optical communication devices, can send the downlink data of each second optical communication device in the wake-up state, avoiding downlink data congestion and thus reducing the storage capacity requirements of the first optical communication device.

[0231] In this embodiment, the energy-saving configuration information is stored in the second optical communication device. It can be indicated by the first optical communication device (or directly indicated), for example, the first optical communication device directly sends the duration of the low-power state and the duration of the wake-up state to the second optical communication device; or it can be implicitly indicated by the first optical communication device (or indirectly indicated), for example, the first optical communication device sends multiple configuration parameters, and the second optical communication device calculates the duration of the low-power state and the duration of the wake-up state based on the received multiple configuration parameters.

[0232] For example, the energy-saving indication message is a sleep permission message. The sleep permission message is a PLOAM message. This energy-saving indication message can be obtained by extending the sleep permission message, requiring minimal modification to related technologies and being easy to implement.

[0233] Optionally, the power-saving indication message is used to force the second optical communication device to enter a first power-saving state. This power-saving indication message can be a broadcast message or a unicast message. Forcing the second optical communication device to enter the first power-saving state means forcibly interrupting the current state of the second optical communication device and compelling it to enter the first power-saving state. When multiple second optical communication devices receive this power-saving indication message, the synchronization of the first power-saving states of these multiple second optical communication devices can be achieved.

[0234] Optionally, the second optical communication device can determine whether a received message is an energy-saving indication message based on its message type. For example, a new PLOAM message type can be added, specifically for instructing the second optical communication device to set an energy-saving state based on energy-saving configuration information. Alternatively, the second optical communication device can determine whether a message is an energy-saving indication message based on the value of a specified field in the received message. For example, a sleep-allow message includes a control flag field; when the control flag field is set to a specific value, it instructs the second optical communication device to set an energy-saving state based on energy-saving configuration information.

[0235] When the energy-saving indication message adopts a sleep-allow message and is used to force the second optical communication device to enter the first energy-saving state, it can be called a sleep-allow force (SA(force)) message. In this application embodiment, the message name is not limited and can be changed as needed.

[0236] For example, when the first optical communication device is an OLT, the message format of the sleep enable forced message can be as shown in Table 1 below, which is used to force the ONU to enter the wake-up state in the first power-saving state.

[0237] Table 1: Sleep Allows Forced Messages

[0238] For example, when the first optical communication device is the master device, the sleep enable forced message is used to force the slave devices to enter the wake-up state of the most recent first energy-saving state. That is, when the wake-up state of the slave device in the most recent first energy-saving state is a dozing wake-up state, the slave device enters the dozing wake-up state according to the energy-saving instruction message; when the wake-up state of the slave device in the most recent first energy-saving state is a sleep wake-up state, the slave device enters the sleep wake-up state according to the energy-saving instruction message. In this case, if the wake-up states of the slave devices in the most recent first energy-saving state are different, they will also be in different wake-up states after entering the first energy-saving state this time. Since the duration of the dozing wake-up state and the sleep wake-up state is the same, and the duration of the dozing state and the sleep state is the same, even if the slave devices enter different wake-up states at the same time, the first energy-saving state can be synchronized in time.

[0239] In some examples, the power-saving indicator message is used to force the slave device into a nap-wake state; or, the power-saving indicator message is used to force the slave device into a sleep-wake state. In this way, the initial power-saving state of each slave device can be unified through the power-saving indicator message.

[0240] For example, the message format for a sleep-allowed forced message can be as shown in Table 2 below.

[0241] Table 2. Sleep Allows Forced Messages

[0242] In some examples, when each of the second optical communication devices receives the power-saving indication message, regardless of its current state, it will immediately or at a specified time (i.e., after a delay of a certain time, which can be on the order of milliseconds) transition to the wake-up state, thereby synchronizing the first power-saving states of each of the second optical communication devices. In other examples, when each of the second optical communication devices is in a non-power-saving state (e.g., active hold state), if it receives the power-saving indication message, it will immediately transition to the wake-up state and cycle between the wake-up state and the low-power state (the cycle transition method is as described above). That is, in the embodiments of this application, when the ONU receives the sleep allow forced message in the active hold state, it directly enters the first power-saving state.

[0243] In this embodiment, the second optical communication device sets an energy-saving state based on energy-saving configuration information to achieve synchronization of the energy-saving state, which can be achieved in the following two ways:

[0244] Method 1: First, make each of the second optical communication devices exit the first energy-saving state, and then uniformly enter the first energy-saving state, so as to synchronize the first energy-saving state of each of the second optical communication devices.

[0245] In this first method, the method further includes sending a wake-up message to each of the second optical communication devices before sending the energy-saving indication message. Optionally, the wake-up message can be a unicast message or a broadcast message. When a second optical communication device receives the wake-up message, it exits the first energy-saving state and transitions to the active-hold state. Thus, after receiving the energy-saving indication message, the second optical communication device transitions from the active-hold state to the wake-up state, thereby synchronously entering the first energy-saving state. This method requires minimal modification to the state transition process of the second optical communication device and is easy to implement.

[0246] Optionally, the wake-up message can be a sleep enable off (SA(OFF)) message or a forced wake-up indication (FWI). The SA(OFF) message is a PLOAM message, and the FWI is carried in the allocation structure. Using existing messages as the wake-up message ensures compatibility with current standard protocols and reduces implementation complexity.

[0247] Method 2: Keep each second optical communication device in the first energy-saving state, and adjust the transition time between the wake-up state and the low-power state of the second optical communication devices to synchronize the first energy-saving state of each second optical communication device.

[0248] In one possible implementation of this second method, the energy-saving indication message includes a first time. This message instructs the second optical communication device to use the first time as the start time of the first wake-up state, i.e., instructs the second optical communication device to transition to the first wake-up state at the first time. The first wake-up state is the next wake-up state after the second optical communication device receives the energy-saving indication message (i.e., the current wake-up state). Thus, by agreeing on the start time of the first wake-up state, each second optical communication device is kept in the first energy-saving state and synchronization of the first energy-saving state is achieved.

[0249] In some examples, the first time can be an absolute time. For example, a specific date, time, minute, and second, accurate to the millisecond, can improve the synchronization of the various secondary optical communication devices. When the first time is an absolute time, the energy-saving indication message can be a unicast message or a broadcast message.

[0250] In other examples, the first time can be a relative time relative to a reference time; for example, the reference time could be the start or end time of the current wake-up state. When the first time is this relative time, since the second optical communication times are not synchronized in the first power-saving state, the first times corresponding to each second optical communication time may be different. In this case, the power-saving indication message is a unicast message to inform each second optical communication device of the different first times.

[0251] For example, assuming the reference time is the end time of the current wake-up state, in Figure 8, the end times of the current wake-up state for each ONU are different. The first optical communication device determines the end time of the current wake-up state for each ONU and determines the first time corresponding to each ONU based on the end time of the current wake-up state for each ONU.

[0252] Each ONU receives the power-saving instruction message in the first wake-up state shown in the diagram. The end time of ONU0's current wake-up state is 10ms earlier than that of ONU1, and the end time of ONU1's current wake-up state is 20ms earlier than that of ONU2. Since the first wake-up time for ONU0 is 100ms, ONU0 maintains a low-power state for 100ms after the first wake-up state ends, and then transitions to the second wake-up state (the aforementioned first wake-up state). Similarly, since the first wake-up time for ONU1 is 90ms, ONU1 maintains a low-power state for 90ms after the first wake-up state ends, and then transitions to the second wake-up state. Similarly, since the first wake-up time for ONU2 is 70ms, ONU2 maintains a low-power state for 70ms after the first wake-up state ends, and then transitions to the second wake-up state. In this way, with identical power-saving configuration information, the first power-saving states of ONU0 and ONU1 can be synchronized.

[0253] In another possible implementation of this second method, the power-saving indication message includes a second time. This message instructs the second optical communication device to use the second time as the end time of the second wake-up state, i.e., to indicate that the second optical communication device transitions from the second wake-up state to a low-power state at the end of the second time. Thus, by delaying or extending the end time of the second wake-up state of at least some of the second optical communication devices, the end times of the second wake-up states of each second optical communication device are synchronized, thereby enabling the synchronization of the first power-saving state among the various second optical communication devices.

[0254] Optionally, the second wake-up state is the wake-up state of the second optical communication device upon receiving the energy-saving indication message; or, the second wake-up state is the wake-up state whose start time is closest to the second time after the second optical communication device receives the energy-saving indication message. In implementation, the interval between the second time and the end time of the wake-up state after the second optical communication device receives the energy-saving indication message may be greater than the sum of the wake-up state duration and the low-power duration. In this case, the transition between the original wake-up state and the low-power state can be maintained first, and then the device can wait to enter a wake-up state close to the second time and maintain this state until the second time before transitioning to the low-power state.

[0255] In some examples, the second time can be an absolute time. For example, a specific date, time, minute, and second, accurate to the millisecond, to improve the synchronization of various second optical communication devices. When the second time is an absolute time, the energy-saving indication message can be a unicast message or a broadcast message.

[0256] In other examples, the second time can be a relative time relative to a reference time; for example, the reference time could be the start or end time of the current wake-up state. When the second time is this relative time, since the second optical communication times are not synchronized in the first power-saving state, the second times corresponding to each second optical communication time may be different. In this case, the power-saving indication message is a unicast message to inform each second optical communication device of the different second times.

[0257] For example, in Figure 8, the end time of the current wake-up state of each ONU is different. The first optical communication device determines the end time of the current wake-up state of each ONU, and determines the second time corresponding to each ONU based on the end time of the current wake-up state of each ONU.

[0258] Each ONU receives the power-saving instruction message in its first wake-up state as shown in the diagram. The end time of ONU0's current wake-up state is 10ms earlier than that of ONU1, and the end time of ONU1's current wake-up state is 20ms earlier than that of ONU2. Since the second time corresponding to ONU0 is 30ms, ONU0's first wake-up state is extended by 30ms before transitioning to a low-power state. Similarly, since the second time corresponding to ONU1 is 10ms, ONU1's first wake-up state is extended by 10ms before transitioning to a low-power state. Since the second time corresponding to ONU2 is 0ms, ONU2 transitions to the second wake-up state after the duration of its first wake-up state has elapsed. In this way, with identical power-saving configuration information, the first power-saving states of ONU0 and ONU1 can be synchronized.

[0259] Alternatively, in this second method, the energy-saving indication message can be a PLOAM message.

[0260] For example, the format of the energy-saving instruction message carrying the first or second time can be as shown in Table 3.

[0261] Table 3 Energy Saving Instructions

[0262] Optionally, the method further includes sending the energy-saving configuration information to each of the second optical communication devices. In this way, multiple ONUs receiving the energy-saving configuration information will all enter the first energy-saving state with the same wake-up state and low-power state duration, which facilitates the synchronization of the first energy-saving states of multiple ONUs.

[0263] In one possible implementation, the energy-saving configuration information is carried in a wake-up message and sent to the second optical communication device via the wake-up message; or, it is carried in an energy-saving instruction message and sent to the second optical communication device via the energy-saving instruction message.

[0264] In another possible implementation, energy-saving configuration information is sent via messages other than wake-up messages and energy-saving indication messages. For example, the energy-saving configuration information is carried in OMCI messages or PLOAM messages sent to each of the second optical communication devices. OMCI messages and PLOAM messages are existing information transmission messages between the OLT and ONU. Using OMCI messages or PLOAM messages to carry energy-saving configuration information eliminates the need to redesign the messages, simplifies message design, requires minimal modification, and is easy to implement.

[0265] Regarding the aforementioned method one, when energy-saving configuration information is sent via OMCI messages, the first optical communication device can send the OMCI message to each of the second optical communication devices after sending wake-up messages and before sending energy-saving indication messages. Some ONUs only support one set of energy-saving configuration information, and upon receiving the received energy-saving configuration information, they will replace the previously used energy-saving configuration information with the received energy-saving configuration information. In this case, sending the OMCI message after sending wake-up messages to the multiple ONUs and before sending energy-saving indication messages to the multiple ONUs requires minimal modification to the existing functions of these ONUs and is easy to implement.

[0266] For the second method mentioned above, the energy-saving configuration information can be sent within the energy-saving instruction message. That is, the energy-saving configuration information and the first time information are sent in the same message; or, the energy-saving configuration information and the second time information are sent in the same message. In this case, the energy-saving instruction message is the aforementioned PLOAM message.

[0267] For example, the message format of an energy-saving instruction message that carries both time (first time or second time) and energy-saving configuration information can be as shown in Table 4.

[0268] Table 4 Energy Saving Instructions

[0269] The difference between the message formats in Table 4 and Table 3 lies in the content of bytes 7-10.

[0270] Alternatively, in other embodiments, the energy-saving configuration information can be sent to the second optical communication device in advance, for example, after the second optical communication device comes online, or after the second optical communication device first establishes a connection with the first optical communication device. The second optical communication device receives and saves the energy-saving configuration information. After subsequently receiving an energy-saving instruction message, it obtains the energy-saving configuration information and enters the first energy-saving state according to the energy-saving configuration information. This application embodiment does not limit the sending time of the energy-saving configuration information, as long as it can be ensured that the energy-saving configuration information can be obtained after receiving the energy-saving instruction message.

[0271] Figure 11 is a schematic diagram of a power-saving state control device provided in an embodiment of this application. This control device can be implemented as part of the aforementioned first optical communication device through software, hardware, or a combination of both. As shown in Figure 11, the power-saving state control device 1100 includes: a determining module 1101 and a transmitting module 1102. The determining module 1101 is used to determine that at least two ONUs among the plurality of ONUs are in a power-saving state. The transmitting module 1102 is used to send a power-saving indication message to the at least two ONUs in the power-saving state. The power-saving indication message instructs the ONUs to set a power-saving state based on power-saving configuration information, which includes the duration of the low-power state and the duration of the wake-up state.

[0272] Optionally, the sending module 1102 is further configured to send a wake-up message to the at least two slave devices before sending the energy-saving indication message to the at least two ONUs.

[0273] Optionally, the sending module 1102 is also used to send the energy-saving configuration information to the at least two ONUs.

[0274] Optionally, the sending module 1102 is used to send an OMCI message carrying the energy-saving configuration information to the at least two ONUs; or, to send a PLOAM message carrying the energy-saving configuration information to the at least two ONUs.

[0275] Optionally, the sending module 1102 is configured to send the OMCI message to the at least two ONUs after sending the wake-up message to the at least two ONUs and before sending the power saving indication message to the at least two ONUs.

[0276] Optionally, the determining module 1101 is used to determine whether there are at least two ONUs in the plurality of ONUs that are in a power-saving state when a sleep power-saving request is received from one of the plurality of ONUs; or, periodically determine whether there are at least two ONUs in the plurality of ONUs that are in a power-saving state.

[0277] Figure 12 is a schematic diagram of a power-saving state control device provided in an embodiment of this application. This control device can be implemented as part of the aforementioned second optical communication device through software, hardware, or a combination of both. As shown in Figure 12, the power-saving state control device 1200 includes: a receiving module 1201 and a control module 1202. The receiving module 1201 is used to receive a power-saving indication message, wherein the power-saving indication message is sent by the OLT after determining that at least two ONUs among the multiple ONUs connected to the OLT are in a power-saving state. The first ONU is one of the at least two ONUs in the power-saving state. The power-saving indication message is used to instruct the ONU to set a power-saving state based on power-saving configuration information, which includes the duration of the low-power state and the duration of the wake-up state. The control module 1202 is used to set the power-saving state according to the power-saving indication message.

[0278] Optionally, the receiving module 1201 is further configured to receive a wake-up message, which is sent by the OLT before sending the energy-saving indication message.

[0279] Optionally, the receiving module 1201 is also used to receive the energy-saving configuration information sent by the OLT.

[0280] Optionally, the receiving module 1201 is used to receive an OMCI message carrying the energy-saving configuration information sent by the OLT; or, to receive a PLOAM message carrying the energy-saving configuration information sent by the OLT.

[0281] Optionally, the sending module 1201 is configured to receive the OMCI message after receiving the wake-up message and before receiving the power saving indication message.

[0282] Optionally, the control module 1202 is used to control the ONU to switch to the wake-up state according to the energy-saving indication message when the ONU is in the active hold state.

[0283] It should be noted that the energy-saving control device provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the equipment can be divided into different functional modules to complete all or part of the functions described above. In addition, the energy-saving control device and the energy-saving control method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0284] The descriptions of the processes corresponding to the above-mentioned figures each have their own emphasis. For parts of a process that are not described in detail, please refer to the relevant descriptions of other processes.

[0285] This application also provides an optical communication device 1300. As shown in FIG13, the optical communication device 1300 includes a processor 1304 and a communication interface 1308. The processor 1304 and the communication interface 1308 are connected, for example, via a bus 1302. It should be understood that this application does not limit the number of processors in the computer device 1300.

[0286] Bus 1302 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, only one line is used in Figure 13, but this does not imply that there is only one bus or one type of bus. Bus 1302 can include pathways for transmitting information between various components of computer device 1300 (e.g., processor 1304, communication interface 1308).

[0287] The processor 1304 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0288] The communication interface 1308 uses transceiver modules such as, but not limited to, network interface cards and transceivers to enable communication between the optical communication device 1300 and other devices or communication networks.

[0289] Optionally, the optical communication device also includes a memory 1306, and the processor 1304, memory 1306, and communication interface 1308 communicate via a bus 1302. It should be understood that this application does not limit the number of memories in the computer device 1300.

[0290] The memory 1306 may include volatile memory, such as random access memory (RAM). The processor 1304 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0291] The memory 1306 stores executable program code, and the processor 1304 executes the executable program code to implement the functions of the aforementioned modules, thereby realizing the energy-saving control method. That is, the memory 1306 stores instructions for executing the energy-saving control method.

[0292] This application also provides a computer program product containing instructions. The computer program product may be software or program products containing instructions, capable of running on a computer device or stored on any usable medium. When the computer program product is run on at least one computer device, it causes the at least one computer device to perform the aforementioned energy-saving state control method.

[0293] This application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computer device can store, or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive). The computer-readable storage medium includes instructions that instruct the computer device to execute the aforementioned power-saving state control method.

[0294] This application also provides a chip. The chip includes a processor and a communication interface, the communication interface being connected to the processor; the processor is used to execute instructions to cause the chip to perform the aforementioned power-saving state control method.

[0295] Unless otherwise defined, the technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this application pertains. The terms “first,” “second,” “third,” and similar terms used in this patent application specification and claims do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Similarly, the terms “an” or “a” and similar terms do not indicate a quantity limitation, but rather indicate the presence of at least one. The terms “comprising” or “including” and similar terms mean that the elements or objects preceding “comprising” or “including” encompass the elements or objects listed following “comprising” or “including” and their equivalents, and do not exclude other elements or objects. The “multiple” mentioned in the embodiments of this application refers to two or more. A and / or B indicate three possibilities: A; B; and A and B.

[0296] The above is merely one embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for controlling energy-saving states, characterized in that, Applied to optical line terminals, the optical line terminal is connected to multiple optical network units, including: It is determined that at least two optical network units among the plurality of optical network units are in a power-saving state; A power saving instruction message is sent to the at least two optical network units. The power saving instruction message is used to instruct the optical network units to set a power saving state based on power saving configuration information, which includes the duration of the low power state and the duration of the wake-up state.

2. The method according to claim 1, characterized in that, The energy-saving indication message is a sleep permission message.

3. The method according to claim 1 or 2, characterized in that, The energy-saving instruction message is used to force the optical network unit to enter an energy-saving state.

4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: Before sending the energy-saving instruction message to the at least two optical network units, a wake-up message is sent to the at least two optical network units.

5. The method according to claim 4, characterized in that, The wake-up message is either a sleep-allowed shutdown message or a forced wake-up instruction.

6. The method according to claim 4 or 5, characterized in that, The method further includes: The energy-saving configuration information is sent to the at least two optical network units.

7. The method according to claim 6, characterized in that, Sending energy-saving configuration information to the at least two optical network units includes: Sending an Optical Network Unit Management and Control Interface (OMCI) message to the at least two optical network units, the OMCI message carrying the energy-saving configuration information; or... Physical layer operation management and maintenance (PLOAM) messages are sent to the at least two optical network units, the PLOAM messages carrying the energy-saving configuration information.

8. The method according to claim 7, characterized in that, Sending OMCI messages to the at least two optical network units includes: After sending the wake-up message to the at least two optical network units and before sending the power saving instruction message to the at least two optical network units, the OMCI message is sent to the plurality of optical network units.

9. The method according to any one of claims 1 to 3, characterized in that, The energy-saving indication message includes a first time, which is used to instruct the optical network unit to take the first time as the start time of the first wake-up state. The first wake-up state is the next wake-up state after the optical network unit receives the wake-up state of the energy-saving indication message. Alternatively, the power saving instruction message may include a second time, which instructs the optical network unit to use the second time as the end time of the second wake-up state.

10. The method according to any one of claims 1 to 3 and claim 9, characterized in that, The method further includes: The energy-saving configuration information is sent to the at least two optical network units.

11. The method according to claim 10, characterized in that, Sending the energy-saving configuration information to the at least two optical network units includes: An Optical Network Unit Management and Control Interface (OMCI) message is sent to the at least two optical network units, the OMCI message carrying the energy-saving configuration information.

12. The method according to any one of claims 1 to 11, characterized in that, The method further includes: Upon receiving a sleep power-saving request from one of the plurality of optical network units, determine whether at least two of the plurality of optical network units are in a power-saving state; or... Periodically determine whether at least two of the plurality of optical network units are in an energy-saving state.

13. A method for controlling energy-saving states, characterized in that, Applied to a first optical network unit, the method includes: The optical line terminal receives an energy-saving instruction message, wherein the energy-saving instruction message is sent by the optical line terminal after determining that at least two optical network units among the multiple optical network units connected to the optical line terminal are in an energy-saving state, the first optical network unit is one of the at least two optical network units, and the energy-saving instruction message is used to instruct the optical network unit to set an energy-saving state based on energy-saving configuration information, the energy-saving configuration information including the duration of the low-power state and the duration of the wake-up state. Set the energy-saving status according to the energy-saving instruction message.

14. The method according to claim 13, characterized in that, The energy-saving indication message is a sleep permission message.

15. The method according to claim 13 or 14, characterized in that, The energy-saving instruction message is used to force the optical network unit to enter an energy-saving state.

16. The method according to any one of claims 13 to 15, characterized in that, The method further includes: Receive a wake-up message, which is sent by the optical line terminal before sending the energy-saving instruction message.

17. The method according to claim 16, characterized in that, The wake-up message is either a sleep-allowed shutdown message or a forced wake-up instruction.

18. The method according to claim 16 or 17, characterized in that, The method further includes: Receive the energy-saving configuration information sent by the optical line terminal.

19. The method according to claim 18, characterized in that, The energy-saving configuration information received from the master device includes: Receive an Optical Network Unit Management and Control Interface (OMCI) message sent by the optical line terminal, the OMCI message carrying the energy-saving configuration information; or... The system receives a Physical Layer Operation Management and Maintenance (PLOAM) message sent by the optical line terminal, the PLOAM message carrying the energy-saving configuration information.

20. The method according to claim 19, characterized in that, The receipt of the Optical Network Unit Management and Control Interface (OMCI) message sent by the optical line terminal includes: The OMCI message is received after the wake-up message is received and before the power saving indication message is received.

21. The method according to any one of claims 13 to 16, characterized in that, The energy-saving indication message includes a first time, which is used to indicate that the slave device takes the first time as the start time of the first wake-up state. The first wake-up state is the next wake-up state after the slave device receives the wake-up state of the energy-saving indication message. Alternatively, the power saving indication message may include a second time, which indicates that the slave device will use the second time as the end time of the second wake-up state.

22. The method according to any one of claims 13 to 16 and claim 21, characterized in that, The method further includes: Receive the energy-saving configuration information sent by the optical line terminal.

23. The method according to any one of claims 13 to 22, characterized in that, Setting the energy-saving status according to the energy-saving indication message includes: When the optical network unit is in the active hold state, it switches to the wake-up state according to the power saving instruction message.

24. A control device for energy-saving status, characterized in that, include: The determination module is used to determine that at least two optical network units among the multiple optical network units connected to the optical line terminal are in an energy-saving state; The sending module is used to send a power saving indication message to the at least two optical network units. The power saving indication message is used to instruct the optical network units to set a power saving state based on power saving configuration information, which includes the duration of the low power state and the duration of the wake-up state.

25. A control device for energy-saving status, characterized in that, include: A receiving module is used to receive an energy-saving indication message, wherein the energy-saving indication message is sent by the optical line terminal after determining that at least two optical network units among the multiple optical network units connected to the optical line terminal are in an energy-saving state, and the energy-saving indication message is used to instruct the optical network units to set an energy-saving state based on energy-saving configuration information, wherein the energy-saving configuration information includes the duration of the low-power state and the duration of the wake-up state. The control module is used to set the energy-saving state according to the energy-saving indication message.

26. An optical communication device, characterized in that, The device includes a processor and a transceiver connected together, wherein the processor is configured to perform the method according to any one of claims 1 to 12, or to perform the method according to any one of claims 13 to 23.

27. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a software program that, when read and executed by one or more processors, can implement the method as described in any one of claims 1 to 12, or implement the method as described in any one of claims 13 to 23.

28. An optical communication system, characterized in that, The device includes a master device and a plurality of slave devices, wherein the master device and the plurality of slave devices are connected via optical fiber, the master device is used to perform the method according to any one of claims 1 to 12, and the slave devices are used to perform the method according to any one of claims 13 to 23.

Citation Information

Patent Citations

  • Energy-saving configuration method and device of passive optical network and storage medium

    CN116419101A

  • Cooperative energy-saving processing method and device

    CN118201052A

  • Methods and devices for reducing power consumption in a passive optical network while maintaining service continuity

    US20090263127A1

  • Wake-on-LAN Between Optical Link Partners

    US20120331320A1

  • Method for power saving in optical access network by using synchronized sleep cycle

    US20160020913A1