Energy-saving state control method, device, equipment, system and medium
By synchronizing the states of master and slave devices in an FTTR network, the master device can switch between light sleep and deep sleep states and wake-up state, thus solving the problem of high power consumption of the master device in the FTTR network and achieving a balance between energy saving of the master device and data transmission.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2024-11-04
- Publication Date
- 2026-05-08
AI Technical Summary
Existing energy-saving methods are not applicable to master equipment in fiber-to-the-room (FTTR) networks, resulting in an ineffective solution to their power consumption problems.
When the master device determines that multiple slave devices connected to it are in the first power-saving state, the master device also enters the second power-saving state, which includes the transition between light sleep state, deep sleep state and wake-up state. Timers are used to control the transition between these states to reduce power consumption, and the master device exits the power-saving state when needed.
It effectively reduces the power consumption of master devices in FTTR networks, ensuring that data can be received and sent normally when needed, and meeting the data transmission requirements of slave devices.
Smart Images

Figure CN122001484A_ABST
Abstract
Description
Technical Field
[0001] 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
[0002] In optical access networks, the power consumption of optical communication equipment has received widespread attention.
[0003] 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.
[0004] However, this energy-saving method is not applicable to master equipment in fiber-to-the-room (FTTR) networks. Summary of the Invention
[0005] This application provides a method, apparatus, device, system, and medium for controlling energy-saving states, which helps to reduce the power consumption of master equipment in FTTR networks.
[0006] Firstly, this application provides a method for controlling an energy-saving state. This method is executed by a master device. The method includes: the master device determining that multiple slave devices connected to it are all in a first energy-saving state; and the master device entering a second energy-saving state.
[0007] Since the master device is connected not only to the optical line terminal (OLT) but also to multiple slave devices, the energy-saving methods of the ONU in a PON system cannot be directly adopted. In this application, when all the slave devices connected to the master device are in the first energy-saving state, the master device also enters the second energy-saving state, thereby reducing the power consumption of the master device.
[0008] Optionally, the second power-saving state includes light sleep, deep sleep, and awake (aware) states. That is, the main device entering the second power-saving state includes the main device switching between light sleep and awake states, or switching between deep sleep and awake states. When the main device is in light sleep or deep sleep, all or some modules of the main device are shut down. By shutting down all or some modules of the main device, the power consumption of the main device in light sleep or deep sleep states is reduced. Switching between sleep states (including light sleep or deep sleep) and awake states allows the main device to receive and send data in the awake state, thus enabling it to exit the second power-saving state when needed.
[0009] Optionally, the transition between the light sleep state and the awake state includes: when a first timer expires and one of the plurality of slave devices is in a dozing state, transitioning from the awake state to the light sleep state, wherein the first timer is used to indicate the duration of the master device being in the awake state; and when a second timer expires, transitioning from the light sleep state to the awake state, wherein the second timer is used to indicate the duration of the slave device being in the light sleep state. The duration of the master device being in the awake state and the light sleep state is controlled using the first and second timers to achieve a cyclical transition between the light sleep state and the awake state.
[0010] Optionally, the transition between deep sleep and wake-up states includes: when a first timer expires and none of the slave devices is in a dozing state, transitioning from the wake-up state to the deep sleep state, where the first timer indicates the duration the master device is in the wake-up state; and when a second timer expires, transitioning from the deep sleep state to the wake-up state, where the second timer indicates the duration the slave device is in the deep sleep state. The duration of the master device being in the wake-up state and light sleep state is controlled using the first and second timers to achieve a cyclical transition between the light sleep state and the wake-up state.
[0011] Here, both deep sleep and light sleep are controlled by a second timer, meaning that the duration of deep sleep and light sleep is equal.
[0012] Optionally, the method further includes: when any slave device exits the first energy-saving state, the master device exits the second energy-saving state. When a slave device exits the first energy-saving state, the master device also needs to exit the second energy-saving state to ensure that the slave device that exited the first energy-saving state can work normally.
[0013] Optionally, the conditions for the master device to exit the second power-saving state include any of the following: the master device receives a sleep request wake-up message sent by any of the slave devices while in a wake-up state; the master device detects a local wake-up indication (LWI) while in a wake-up state; the master device detects an optical signal sent by any of the slave devices while in a deep sleep state; the master device detects an LWI while in a deep sleep state; the master device receives a sleep request wake-up message sent by any of the slave devices while in a light sleep state; or the master device detects an LWI while in a light sleep state. The sleep request wake-up message is used to instruct the slave device to exit the first power-saving state.
[0014] Optionally, the modules that the master device shuts down in low-power mode include one or more of the following: receivers, transmitters, serial-to-parallel converters, medium access control (MAC) modules, or dynamically bandwidth assignment (DBA) modules for some or all channels of the target port of the master device. In implementation, the modules that the master device shuts down in low-power mode can be determined by comprehensively considering the energy-saving requirements of the master device and the time required for the master device to transition from a low-power state to a wake-up state.
[0015] Optionally, multiple slave devices are in the first energy-saving state, including the following three cases:
[0016] In the first scenario, the first energy-saving state includes a sleep state and a sleep-wake state. That is, each of the multiple slave devices is either in a sleep state or a sleep-wake state.
[0017] 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.
[0018] 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.
[0019] 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.
[0020] In the second scenario, the first energy-saving state includes a dozing state and a dozing-wake state. That is, each of the multiple slave devices is either in a dozing state or a dozing-wake state.
[0021] 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.
[0022] 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.
[0023] 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.
[0024] The third scenario is that the first energy-saving state includes sleep state, sleep-wake state, nap state, and nap-wake state. That is, each of the multiple slave devices can be in sleep state, sleep-wake state, nap state, or nap-wake state.
[0025] 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.
[0026] 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.
[0027] 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.
[0028] Optionally, the method further includes: the master device determining whether the plurality of slave devices are in a second energy-saving state.
[0029] In some examples, when the master device receives a sleep power-saving request from one of the plurality of slave devices, it determines whether all the slave devices are in a power-saving state. Sending a sleep power-saving request indicates that the slave device has entered a first power-saving state, and this slave device may be the last slave device to enter the first power-saving state. Therefore, this can be used as a trigger condition to determine whether all slave devices are in the first power-saving state.
[0030] In other examples, it is periodically determined whether all of the multiple slave devices are in an energy-saving state. This allows for timely detection of whether multiple slave devices are in a first energy-saving state.
[0031] Optionally, the method further includes: synchronizing the first energy-saving state of each slave device before the master device enters the second energy-saving state, so as to extend the time when the master device is in the low-power state and further reduce the power consumption of the master device.
[0032] Optionally, synchronizing the first energy-saving state of each master device can be achieved through energy-saving indication messages. For example, an energy-saving indication message is sent to the plurality of master devices, the message instructing slave devices to set a first energy-saving state based on energy-saving configuration information, including the duration of sleep state and wake-up state. Upon receiving the energy-saving indication message, the slave devices set the first energy-saving state based on the energy-saving configuration information.
[0033] 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.
[0034] In some examples, the power-saving indication message is used to force the slave device to enter the wake-up state of its most recent first power-saving state. That is, when the wake-up state of the slave device in its most recent first power-saving state was a nap wake-up state, the slave device enters the nap wake-up state according to the power-saving indication message; when the wake-up state of the slave device in its most recent first power-saving state was a sleep wake-up state, the slave device enters the sleep wake-up state according to the power-saving indication message. In this case, if the wake-up states of the various slave devices in their most recent first power-saving states are different, they will also be in different wake-up states after entering the first power-saving state this time. Since the nap wake-up state and the sleep wake-up state have the same duration, and the nap state and the sleep state have the same duration, even if the slave devices enter different wake-up states simultaneously, the first power-saving state can be synchronized in time.
[0035] In some examples, the power-saving indication message is used to force the slave device into a sleep-wake state; or, the power-saving indication 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 indication message.
[0036] The forced entry of a slave device into the wake-up state (sleep wake-up state or nap wake-up state) in the first energy-saving state means forcibly interrupting the current state of the slave device and forcing it into the first energy-saving state. When multiple slave devices receive this energy-saving instruction message, the synchronization of the first energy-saving states of these multiple slave devices can be achieved.
[0037] In a first possible implementation, each slave device needs to exit the first energy-saving state and then synchronously enter the first energy-saving state to achieve synchronization of the first energy-saving states of multiple slave devices.
[0038] In this first possible implementation, the method further includes: sending a wake-up message to the plurality of slave devices before sending the power-saving indication message to the plurality of slave devices, so that each slave device simultaneously exits the first power-saving state; then, when each slave device receives the power-saving indication message, it will synchronously enter the wake-up state of the first power-saving state.
[0039] 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.
[0040] In a second possible implementation, the first power-saving states of the multiple slave devices are synchronized by adjusting the first power-saving states of each slave device. Adjusting the first power-saving states of each slave device includes, but is not limited to, the following two methods.
[0041] In the first method, the energy-saving indication message includes a first time. This message instructs the slave device to use the first time as the start time of a first wake-up state. The first wake-up state is the next wake-up state after the slave device receives the energy-saving indication message. By agreeing on the start time of the first wake-up state, each slave device is kept in the first energy-saving state and synchronization of the first energy-saving state is achieved.
[0042] The second method involves the energy-saving indication message including a second time, which instructs the slave device 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 first energy-saving state among the various second optical communication devices.
[0043] Optionally, the second wake-up state is the wake-up state after receiving the energy-saving indication message from the device, 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.
[0044] Optionally, the method further includes sending the energy-saving configuration information to the plurality of slave devices. In this way, the slave devices receiving the energy-saving configuration information will all enter the first energy-saving state with the same wake-up and sleep state durations, which facilitates the synchronization of the first energy-saving states of the multiple slave devices.
[0045] 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 master and slave devices. Using 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.
[0046] 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 slave devices and before sending the energy-saving instruction message to the plurality of slave devices. Some slave devices 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 slave devices and before sending the energy-saving instruction message to the plurality of slave devices requires less modification to the existing functions of such slave devices and is easy to implement.
[0047] Secondly, 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.
[0048] Thirdly, a communication device is also provided, including a processor and a communication interface, the communication interface being connected to the processor, wherein the processor is used to implement the energy-saving state control method provided in the first aspect.
[0049] 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.
[0050] Optionally, the communication interface includes a transceiver.
[0051] 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.
[0052] Optionally, the memory may be integrated with the processor, or the memory may be separated from the processor.
[0053] 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.
[0054] Fourthly, a computer-readable storage medium is also provided, wherein a software program is stored therein, and the software program, when read and executed by one or more processors, can implement the energy-saving state control method provided in the first aspect.
[0055] Fifthly, 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 above.
[0056] Sixthly, a chip is provided, the chip including a processor and a communication interface connected to the processor. The processor is used to execute instructions to cause the chip to perform the energy-saving state control method provided in the first aspect.
[0057] In a seventh aspect, an optical communication system is provided, including a first optical communication device and at least one second optical communication device, wherein the first optical communication device is connected to the second optical communication device through an optical distribution network, and the first optical communication device is used to implement any of the energy-saving state control methods provided in the first aspect.
[0058] In some examples, the first optical communication device is an OLT and the second optical communication device is an ONU. In other examples, the first optical communication device can be a master device in an FTTR network and the second optical communication device can be a slave device in an FTTR network. Attached Figure Description
[0059] Figure 1 This is a schematic diagram of a fiber-to-the-home or fiber-to-the-office system architecture.
[0060] Figure 2 This is a schematic diagram of the FTTR system architecture;
[0061] Figure 3 This is a flowchart illustrating a method for controlling energy-saving states according to an embodiment of this application;
[0062] Figure 4 This is a diagram illustrating the transition process of the first state machine in the first optical communication device;
[0063] Figure 5 This is a diagram illustrating the transition process of the second state machine in the second optical communication device.
[0064] Figure 6 This is a diagram showing the transition process of the third state machine in the first optical communication device;
[0065] Figure 7 This is a schematic diagram of the structure of the communication unit in the first optical communication device provided in the embodiments of this application;
[0066] Figure 8 This is a schematic diagram illustrating 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 this application embodiment;
[0067] Figure 9 This 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.
[0068] Figure 10 This is a flowchart illustrating another energy-saving state control method provided in an embodiment of this application;
[0069] Figure 11 This is a schematic diagram of the structure of an energy-saving control device provided in an embodiment of this application;
[0070] Figure 12 This is a schematic diagram of the structure of an optical communication device provided in an embodiment of this application. Detailed Implementation
[0071] 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.
[0072] Figure 1 This is a schematic diagram of a fiber-to-the-home / fiber-to-the-office (FTTH / O) system architecture. For example... Figure 1As shown, the OLT connects to upstream network-side devices (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).
[0073] 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).
[0074] Figure 2 This is a schematic diagram of the FTTR system architecture. (Example) Figure 2 As shown, in FTTH / O, the OLT is deployed in the central equipment room, while the ONUs are 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 them. Slave devices in the FTTR network can be deployed in various rooms of homes or offices. Slave devices possess ONU functionality and can also function as access points (APs) to provide WLAN signals to user terminals. Both master and slave devices can connect to user terminals via a user network interface (UNI).
[0075] 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.
[0076] Figure 3 This is a flowchart illustrating a method for controlling energy-saving states according to an embodiment of this application. This method can be... Figure 1 OLT or Figure 2 The primary device in the network executes the commands. That is, the first optical communication device mentioned below refers to the primary device in the OLT or FTTR network. For example... Figure 3 As shown, the method includes the following steps.
[0077] In step 301, the first optical communication device determines that all of the multiple second optical communication devices connected to the first optical communication device are in a first energy-saving state.
[0078] 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.
[0079] 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.
[0080] 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.
[0081] In step 302, the first optical communication device enters the second energy-saving state.
[0082] In this application, when multiple second optical communication devices connected to a 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 enterprises, 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 other time periods. In such cases, the control method provided in the embodiments of this application 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.
[0083] 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.
[0084] For example, when the first timer expires, the device transitions from a wake-up state to a low-power state. The first timer is used to indicate the duration of the wake-up state of the first optical communication device. When the second timer expires, the device transitions from a low-power state to a wake-up state. The second timer is used to indicate the duration of the low-power state of the first optical communication device.
[0085] For example, in this first possible implementation, the first optical communication device may be an OLT, such as an OLT in a 50GPON network.
[0086] 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.
[0087] 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.
[0088] 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.
[0089] 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.
[0090] 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.
[0091] For example, in this second possible implementation, the first optical communication device may be a master device in an FTTR network.
[0092] Optionally, the method further includes:
[0093] 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.
[0094] 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.
[0095] 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.
[0096] 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.
[0097] 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.
[0098] 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.
[0099] 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.
[0100] 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.
[0101] 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.
[0102] 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.
[0103] 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 state machine corresponds to one second state machine.
[0104] The state machines of the first and second optical communication devices in PON and FTTR scenarios are described below.
[0105] Figure 4 This is a diagram illustrating the transition process of the first state machine in the first optical communication device. Among them, Figure 4 Part (a) is a diagram of the transition process of the first state machine in the OLT. Figure 4 Part (b) is a diagram of the transition process of the first state machine in the master device.
[0106] like Figure 4 As shown in part (a), 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.
[0107] 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.
[0108] 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.
[0109] 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.
[0110] 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.
[0111] like Figure 4 As shown in section (b), 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.
[0112] 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.
[0113] 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.
[0114] 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.
[0115] 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.
[0116] 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.
[0117] 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.
[0118] Figure 5 This is a diagram illustrating the transition process of the second state machine in the second optical communication device. Among them, Figure 5 Part (a) is a diagram of the transition process of the second state machine in the ONU. Figure 5 Part (b) is a diagram of the transition process of the second state machine in the device. Figure 5 The ' / ' symbol indicates sending a message.
[0119] like Figure 5 As shown in part (a), 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.
[0120] from Figure 5 As can be seen from part (a), 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 the second optical communication device is switching between the wake-up state and the low-power state. In the wake-up state, if the wake-up timer Taware times out, it switches to the low-power state; in the low-power state, if the low-power timer Tlowpower times out, it switches to the wake-up state. If the first energy-saving state of the second optical communication device is not interrupted, the second optical communication 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 one cycle can be set according to actual needs.
[0121] 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.
[0122] 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.
[0123] 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.
[0124] 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.
[0125] In the wake-up state, if the wake-up timer Taware times out, it will switch to a low-power state.
[0126] 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.
[0127] 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.
[0128] 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.
[0129] like Figure 5 As shown in section (b), the second state machine includes six states. The six states are: active held, active free, sleep aware, sleep, doze / watch aware (i.e., the aforementioned doze aware state), and listen / watch (i.e., the aforementioned doze state).
[0130] from Figure 5As can be seen from part (b), 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.
[0131] 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.
[0132] 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.
[0133] 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.
[0134] 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 doze / monitor wake-up state and a listen / monitor 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., a traffic change meeting 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., a traffic change meeting a second condition) / local power indication (LPI) in the active free state, it sends an SR (doze) / SR (watch) message and enters a doze / monitor state.
[0135] 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.
[0136] 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.
[0137] If LWI is detected during sleep, an SR (awake) message is sent to transition to the active hold state.
[0138] 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.
[0139] 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.
[0140] 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.
[0141] 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.
[0142] 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.
[0143] 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.
[0144] It should be noted that, in other embodiments, the first state machine in the master device can be adopted. Figure 4 The first state machine in part (a), the second state machine in the slave device can be adopted Figure 5 The second state machine in part (a).
[0145] 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.
[0146] Figure 6 This is a diagram illustrating the transition process of the third state machine in the first optical communication device. Among them, Figure 6 Part (a) is a diagram of the transition process of the third state machine in the OLT. Figure 6 Part (b) is a diagram of the transition process of the third state machine in the master device.
[0147] like Figure 6 As shown in part (a), 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 any restrictions on this.
[0148] 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.
[0149] The transitions between these three states include the following cases:
[0150] 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.
[0151] 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.
[0152] 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.
[0153] 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.
[0154] 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.
[0155] 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.
[0156] 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.
[0157] like Figure 6As shown in part (b), 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 varied 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.
[0158] 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.
[0159] The transitions between these four states include the following cases:
[0160] 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.
[0161] In this situation, the first optical communication device will send an SA (forced) message, the details of which are described below.
[0162] 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.
[0163] 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.
[0164] 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.
[0165] 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.
[0166] 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.
[0167] 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.
[0168] 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.
[0169] 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.
[0170] Optionally, the method further includes: determining whether each of the second optical communication devices is in a first energy-saving state.
[0171] 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.
[0172] 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.
[0173] 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.
[0174] The following is an exemplary description of how the first optical communication device shuts down its modules in a low-power state.
[0175] 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.
[0176] 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.
[0177] 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 40G PON, 50G PON, and 100GPON.
[0178] Figure 7 This is a schematic diagram of the structure of the communication unit in the first optical communication device provided in this application embodiment. For example... Figure 7 As shown, each communication unit includes an optical module 710 and a processing component 720. The processing component 720 can be mounted 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 converts electrical signals into optical signals for transmission, and the receiver receives optical signals and converts the received optical signals back into electrical signals. The processing component 720 includes at least one sub-component, each of which includes a DBA module 723, a MAC module 722, and a serial-to-parallel converter 721. Each sub-component, together with a corresponding pair of receivers and transmitters in the optical module 710, forms a channel.
[0179] 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, Figure 7 In this embodiment, the DBA modules 723 in different sub-components are integrated together, meaning only one DBA module 723 is provided. In other embodiments, the DBA modules in different sub-components can be provided separately. Furthermore, the MAC modules in different sub-components can be integrated on the same physical chip, or they can be provided on different physical chips.
[0180] For example, Figure 7 In the process, the processing component 720 includes two sub-components. The MAC module 722 in one sub-component supports the 50G PON protocol, and the MAC module 722 in the other sub-component supports 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 50GPON 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.
[0181] 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.
[0182] 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.
[0183] 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.
[0184] 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.
[0185] 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.
[0186] The following examples illustrate several scenarios for closing a module under a certain channel of the target port.
[0187] 1. Close a module under this channel.
[0188] 1. Turn off the receiver under this channel.
[0189] 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.
[0190] 2. Turn off the transmitter under this channel.
[0191] 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.
[0192] 3. Disable the DBA module under this channel.
[0193] 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.
[0194] 4. Turn off the serial-to-parallel converter under this channel.
[0195] 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.
[0196] 5. Disable the MAC module under this channel.
[0197] 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.
[0198] 2. Close multiple modules under this channel.
[0199] 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 that the first optical communication device should turn off in low-power mode.
[0200] 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.
[0201] 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.
[0202] 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.
[0203] 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.
[0204] 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.
[0205] Therefore, if multiple modules are shut down simultaneously, there are three possible scenarios:
[0206] 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.
[0207] 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.
[0208] 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.
[0209] 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.
[0210] 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.
[0211] 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.
[0212] 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.
[0213] 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.
[0214] 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 needs 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, Figure 8 and Figure 9 All of them simultaneously meet this requirement.
[0215] Optionally, such as Figure 9 As shown, 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 power-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.
[0216] 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.
[0217] In the first scenario, each of the multiple slave devices is either in a sleep state or a sleep-wake state.
[0218] 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.
[0219] 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.
[0220] 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.
[0221] The second scenario is that each of the multiple slave devices is either in a dozing state or a dozing-wake state.
[0222] 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.
[0223] 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.
[0224] 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.
[0225] 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.
[0226] 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.
[0227] 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.
[0228] 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.
[0229] 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.
[0230] 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.
[0231] Figure 8 This is a schematic diagram illustrating 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 this application embodiment. For example... Figure 8 As shown, 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 consumption state is short.
[0232] 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 not conducive to the first optical communication device entering a low-power state. Therefore, in order to maximize the duration that the first optical communication device is in a low-power state and thus minimize the power consumption of the first optical communication device, the method also includes synchronizing the first energy-saving state of each second optical communication device. Figure 9 This 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 this application embodiment. For example... Figure 9 As shown, the low-power states and wake-up states of ONU0-ONU2 are aligned in the time dimension. Therefore, the overlap of the time when ONU0-ONU2 are in the low-power state is the longest, and the time when the first optical communication device is in the low-power state is also extended.
[0233] It should be noted that, Figure 8 and Figure 9 The examples used three ONUs in the illustration. In actual applications, the number of ONUs may be more or less, and this application does not limit this.
[0234] The process of synchronizing the first optical communication device with the first energy-saving state of each second optical communication device is described below. Figure 10 This is a flowchart illustrating a method for controlling energy-saving status according to an embodiment of this application. This method is used to synchronize the energy-saving status of each second optical communication device.
[0235] like Figure 10 As shown, the method includes:
[0236] In step 1001, it is determined that multiple second optical communication devices connected to the first optical communication device are all in the first energy-saving state.
[0237] This step is the same as step 301 mentioned above.
[0238] In step 1002, an energy-saving instruction message is sent to each of the second optical communication devices.
[0239] This energy-saving instruction message is used to instruct the second optical communication device 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.
[0240] Accordingly, the second optical communication device receives the energy-saving instruction message.
[0241] In step 1003, the second optical communication device sets the energy-saving status based on the energy-saving configuration information according to the energy-saving instruction message.
[0242] 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.
[0243] 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.
[0244] 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.
[0245] 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.
[0246] 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.
[0247] 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.
[0248] 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.
[0249] When the energy-saving indication message adopts a sleep permission message and is used to force the second optical communication device to enter the first energy-saving state, it can be called a sleep permission forced (SA(force)) message. In this application embodiment, the message name is not limited and can be changed as needed.
[0250] 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.
[0251] Table 1: Sleep Allows Forced Messages
[0252]
[0253] 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.
[0254] 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.
[0255] For example, the message format for a sleep-allowed forced message can be as shown in Table 2 below.
[0256] Table 2. Sleep Allows Forced Messages
[0257]
[0258]
[0259] 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.
[0260] 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:
[0261] 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.
[0262] 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.
[0263] 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.
[0264] 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.
[0265] 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.
[0266] 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.
[0267] 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.
[0268] For example, suppose the reference time is the end time of the current wake-up state. Figure 8 In this process, 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 first time corresponding to each ONU based on the end time of the current wake-up state of each ONU.
[0269] 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.
[0270] 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.
[0271] 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.
[0272] 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.
[0273] 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.
[0274] For example, Figure 8 In this process, 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 corresponding second time for each ONU based on the end time of the current wake-up state of each ONU.
[0275] 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.
[0276] Alternatively, in this second method, the energy-saving indication message can be a PLOAM message.
[0277] For example, the format of the energy-saving instruction message carrying the first or second time can be as shown in Table 3.
[0278] Table 3 Energy Saving Instructions
[0279]
[0280]
[0281] 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 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.
[0282] 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.
[0283] 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.
[0284] 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.
[0285] 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.
[0286] 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.
[0287] Table 4 Energy Saving Instructions
[0288]
[0289]
[0290] The difference between the message formats in Table 4 and Table 3 lies in the content of bytes 7-10.
[0291] 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.
[0292] Figure 11 This is a schematic diagram of a power-saving 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. For example... Figure 11 As shown, the control device 1100 for this energy-saving state includes a determination module 1101 and a control module 1102. The determination module 1101 is used to determine that multiple slave devices connected to the master device are all in a first energy-saving state, and the master device and the slave devices are connected via optical fiber. The control module 1102 is used to control the master device to enter a second energy-saving state.
[0293] Optionally, the control module 1102 is used to control the main device to switch between a light sleep state and a wake-up state. When the main device is in a light sleep state, some modules of the main device are turned off.
[0294] Optionally, the control module 1102 is configured to switch from the wake-up state to the light sleep state when the first timer expires and one of the plurality of slave devices is in a dozing state, wherein the first timer is used to indicate the duration of the master device being in the wake-up state; and to switch from the light sleep state to the wake-up state when the second timer expires, wherein the second timer is used to indicate the duration of the slave device being in the light sleep state.
[0295] Optionally, the control module 1102 is used to control the main device to switch between a deep sleep state and a wake-up state. When the main device is in a deep sleep state, all or some modules of the main device are turned off.
[0296] Optionally, the control module 1102 is used to switch from the wake-up state to the deep sleep state when the first timer expires and there is no slave device in the dozing state among the plurality of slave devices, wherein the first timer is used to indicate the duration of the master device being in the wake-up state;
[0297] When the second timer expires, the device transitions from the deep sleep state to the wake-up state. The second timer is used to indicate the duration the slave device is in the deep sleep state.
[0298] Optionally, the control module 1102 is further configured to exit the second energy-saving state when any of the plurality of slave devices exits the first energy-saving state.
[0299] Optionally, the control module 1102 is further configured to exit the second power-saving state when the master device is in a wake-up state and receives a sleep request wake-up message sent by any of the slave devices, wherein the sleep request wake-up message is used to instruct any of the slave devices to exit the first power-saving state; or, when the master device is in a wake-up state and detects a local wake-up indication, exit the second power-saving state; or, when the master device is in a deep sleep state and detects an optical signal sent by any of the slave devices, exit the second power-saving state; or, when the master device is in a deep sleep state and detects a local wake-up indication, exit the second power-saving state; or, when the master device is in a light sleep state and receives a sleep request wake-up message sent by any of the slave devices, exit the second power-saving state, wherein the sleep request wake-up message is used to instruct any of the slave devices to exit the first power-saving state; or, when the master device is in a light sleep state and detects a local wake-up indication, exit the second power-saving state.
[0300] In some examples, the first power-saving state includes a sleep state and a sleep-wake state; when all of the plurality of slave devices are in a sleep state, the master device is in a deep sleep state; and / or, when any of the plurality of slave devices is in a sleep-wake state, the master device is in a wake-up state.
[0301] In other examples, the first power-saving state includes a dozing state and a dozing-wake state; when all of the plurality of slave devices are in a dozing state, the master device is in a light sleep state; and / or, when any one of the plurality of slave devices is in a dozing-wake state, the master device is in a wake state.
[0302] In some other examples, the first energy-saving state includes a sleep state, a sleep-wake state, a nap state, and a nap-wake state; when some of the slave devices are in a nap state and others are in a sleep state, the master device is in a light sleep state; and / or, when any of the slave devices is in a nap-wake state or a sleep-wake state, the master device is in a wake state.
[0303] Optionally, the determining module 1101 is further configured to determine whether all of the multiple slave devices are in a first energy-saving state when a sleep energy-saving request is received from one of the multiple slave devices; or, periodically determine whether all of the multiple slave devices are in a first energy-saving state.
[0304] Optionally, the control device 1100 further includes a sending module 1103, used to send an energy-saving instruction message to the plurality of slave devices, the energy-saving instruction message being used to instruct the slave devices to set the first energy-saving state based on energy-saving configuration information, the energy-saving configuration information including the duration of the sleep state and the duration of the wake-up state.
[0305] Optionally, the sending module 1103 is further configured to send a wake-up message to the plurality of slave devices before sending the energy-saving indication message to the plurality of slave devices.
[0306] Optionally, the sending module 1103 is also used to send the energy-saving configuration information to the plurality of slave devices.
[0307] Optionally, the sending module 1103 is configured to send OMCI messages to multiple slave devices, the OMCI messages carrying the energy-saving configuration information; or, to send PLOAM messages to the multiple slave devices, the PLOAM messages carrying the energy-saving configuration information.
[0308] Optionally, the sending module 1103 is configured to send the OMCI message to the plurality of slave devices after sending a wake-up message to the plurality of slave devices and before sending a power-saving indication message to the plurality of slave devices.
[0309] 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.
[0310] 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.
[0311] This application also provides an optical communication device 1200. For example... Figure 12 As shown, the optical communication device 1200 includes a processor 1204 and a communication interface 1208. The processor 1204 and the communication interface 1208 are connected, for example, via a bus 1202. It should be understood that this application does not limit the number of processors in the computer device 1200.
[0312] Bus 1202 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 representation, Figure 12 The bus 1202 may be represented by a single line, but this does not mean that there is only one bus or one type of bus. The bus 1202 may include a path for transmitting information between various components of the computer device 1200 (e.g., processor 1204, communication interface 1208).
[0313] The processor 1204 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).
[0314] The communication interface 1208 uses transceiver modules such as, but not limited to, network interface cards and transceivers to enable communication between the optical communication device 1200 and other devices or communication networks.
[0315] Optionally, the optical communication device also includes a memory 1206, and the processor 1204, memory 1206, and communication interface 1208 communicate via a bus 1202. It should be understood that this application does not limit the number of memories in the computer device 1200.
[0316] The memory 1206 may include volatile memory, such as random access memory (RAM). The processor 1204 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).
[0317] The memory 1206 stores executable program code, and the processor 1204 executes the executable program code to implement the functions of the aforementioned modules, thereby realizing the energy-saving control method. That is, the memory 1206 stores instructions for executing the energy-saving control method.
[0318] 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.
[0319] 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.
[0320] 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.
[0321] 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.
[0322] 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 a master device, wherein the master device is connected to multiple slave devices via optical fibers, the method includes: It is determined that all of the multiple slave devices are in the first energy-saving state; Entering the second energy-saving state.
2. The method according to claim 1, characterized in that, Entering the second energy-saving state includes: The device switches between a light sleep state and a wake-up state. When the main device is in a light sleep state, some modules of the main device are turned off.
3. The method according to claim 2, characterized in that, The transition between light sleep and wakefulness includes: When the first timer expires and one of the slave devices is in a dozing state, the system transitions from the wake-up state to the light sleep state. The first timer is used to indicate the duration of the master device being in the wake-up state. When the second timer expires, the device transitions from the light sleep state to the wake-up state. The second timer is used to indicate the duration of the slave device's light sleep state.
4. The method according to claim 1, characterized in that, Entering the second energy-saving state includes: The device switches between deep sleep and wake-up states. When the main device is in deep sleep, all or some of its modules are turned off.
5. The method according to claim 4, characterized in that, The transition between deep sleep and wakefulness includes: When the first timer expires and none of the slave devices are in a dozing state, the system transitions from the wake-up state to the deep sleep state. The first timer is used to indicate the duration the master device is in the wake-up state. When the second timer expires, the device transitions from the deep sleep state to the wake-up state. The second timer is used to indicate the duration the slave device is in the deep sleep state.
6. The method according to any one of claims 2 to 5, characterized in that, When any of the plurality of slave devices exits the first energy-saving state, the second energy-saving state is exited.
7. The method according to claim 6, characterized in that, The step of exiting the second energy-saving state when any of the plurality of slave devices exits the first energy-saving state includes: When the master device is in a wake-up state and receives a sleep request wake-up message sent by any of the slave devices, it exits the second power-saving state. The sleep request wake-up message is used to instruct any of the slave devices to exit the first power-saving state. or, When the master device is in a wake-up state and detects a local wake-up indication, it exits the second power-saving state; or, When the master device is in deep sleep mode and detects an optical signal sent by any of the slave devices, it exits the second power-saving state. or, When the main device is in deep sleep and a local wake-up indication is detected, it exits the second power-saving state; or, When the master device is in a light sleep state and receives a sleep request wake-up message sent by any of the slave devices, it exits the second power-saving state. The sleep request wake-up message is used to instruct any of the slave devices to exit the first power-saving state. or, When the main device is in a light sleep state and detects a local wake-up indication, it exits the second power-saving state.
8. The method according to any one of claims 2 to 7, characterized in that, The modules that the main device shuts down include one or more of the following modules: The target port of the master device includes receivers, transmitters, serial-to-parallel converters, media access control modules, or dynamic bandwidth allocation modules for optical modules in some or all channels, and the target port is connected to the plurality of slave devices.
9. The method according to any one of claims 2 to 8, characterized in that, The first energy-saving state includes a sleep state and a sleep-wake state; When all the slave devices are in sleep mode, the master device is in deep sleep mode; and / or, When any one of the plurality of slave devices is in a sleep-wake state, the master device is in a wake-up state.
10. The method according to any one of claims 2 to 8, characterized in that, The first energy-saving state includes a dozing state and a dozing-wake state; When all the slave devices are in a dozing state, the master device is in a light sleep state; and / or, When any one of the slave devices is in a dozing-wake state, the master device is in a wake-up state.
11. The method according to any one of claims 2 to 8, characterized in that, The first energy-saving state includes sleep state, sleep wake-up state, nap state, and nap wake-up state; When some of the slave devices are in a dozing state and others are in a sleeping state, the master device is in a light sleep state; and / or, When any of the slave devices is in a dozing-wake state or a sleep-wake state, the master device is in a wake-up state.
12. The method according to any one of claims 1 or 11, characterized in that, The method further includes: Upon receiving a sleep power-saving request from one of the plurality of slave devices, determine whether all of the plurality of slave devices are in a first power-saving state; or, Periodically determine whether all of the multiple slave devices are in the first energy-saving state.
13. The method according to any one of claims 1 to 12, characterized in that, The method further includes: A power saving instruction message is sent to the plurality of slave devices. The power saving instruction message is used to instruct the slave devices to set the first power saving state based on power saving configuration information, which includes the duration of the sleep state and the duration of the wake-up state.
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 power saving instruction message is used to force the slave device to enter the wake-up state of the most recent first power saving state. or, The energy-saving instruction message is used to force the slave device to enter a doze-wake state; or, The energy-saving instruction message is used to force the slave device into a sleep / wake state.
16. The method according to any one of claims 13 to 15, characterized in that, Also includes: Before sending the power saving instruction message to the plurality of slave devices, a wake-up message is sent to the plurality of slave devices.
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, Also includes: The energy-saving configuration information is sent to the plurality of slave devices.
19. The method according to claim 18, characterized in that, Sending energy-saving configuration information to the plurality of slave devices includes: Send Optical Network Unit Management and Control Interface (OMCI) messages to the plurality of slave devices, wherein the OMCI messages carry the energy-saving configuration information; or, Physical layer operation management and maintenance (PLOAM) messages are sent to the plurality of slave devices, the PLOAM messages carrying the energy-saving configuration information.
20. The method according to claim 19, characterized in that, Sending OMCI messages to the plurality of slave devices includes: After sending a wake-up message to the plurality of slave devices, and before sending a power-saving instruction message to the plurality of slave devices, the OMCI message is sent to the plurality of slave devices.
21. The method according to any one of claims 13 to 15, 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 claim 21, characterized in that, The energy-saving indication message is an OMCI message.
23. The method according to any one of claims 13 to 15 and claims 21 to 22, characterized in that, Also includes: The energy-saving configuration information is sent to the plurality of slave devices.
24. The method according to claim 23, characterized in that, Sending energy-saving configuration information to the plurality of slave devices includes: The Optical Network Unit Management and Control Interface (OMCI) message is sent to the plurality of slave devices, and the OMCI message carries the energy-saving configuration information.
25. A control device for energy-saving status, characterized in that, include: A determination module is used to determine that multiple slave devices connected to the master device are all in a first energy-saving state, wherein the master device and the slave devices are connected via optical fiber. The control module is used to control the main device to enter the second energy-saving state.
26. An optical communication device, characterized in that, The device includes a processor and a transceiver, the processor and the transceiver being connected, wherein the processor is configured to perform the method according to any one of claims 1 to 24.
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 24.
28. An optical communication system, characterized in that, It includes a master device and a plurality of slave devices, the master device and the plurality of slave devices being connected via optical fiber, the master device being used to perform the method according to any one of claims 1 to 24.