Search

US-12627393-B2 - Method and apparatus for controlling power consumption of ONU, electronic device, and storage medium

US12627393B2US 12627393 B2US12627393 B2US 12627393B2US-12627393-B2

Abstract

Provided are a method and apparatus for controlling power consumption of an ONU, an electronic device, and a storage medium. The method includes: monitoring a current state of the ONU in real time, wherein the state at least includes a deep energy saving state, and data flow of the ONU in the deep energy saving state is lower than a preset threshold; and performing message processing on received data through a CPU channel and performing a power-off operation on a hardware module in an acceleration channel of the ONU when the ONU is currently in the deep energy saving state; wherein the acceleration channel is connected to a data ingress of the ONU, and the hardware module in the acceleration channel is configured to perform message processing on the received data of the ONU.

Inventors

  • Peng Wang
  • Liyong CAI
  • Lin Zhang

Assignees

  • ZTE CORPORATION

Dates

Publication Date
20260512
Application Date
20220613
Priority Date
20210629

Claims (16)

  1. 1 . A method for controlling power consumption of an optical network unit (ONU), comprising: monitoring a current state of the ONU in real time, wherein the state at least comprises a deep energy saving state, and data flow of the ONU in the deep energy saving state is lower than a preset threshold; and when the ONU is currently in the deep energy saving state, performing message processing on received data through a central processing unit (CPU) channel and performing a power-off operation on a hardware module in an acceleration channel of the ONU; wherein the acceleration channel is connected to a data ingress of the ONU, and the hardware module in the acceleration channel is configured to perform message processing on the received data of the ONU; and the CPU channel is a channel established between the data ingress of the ONU and a CPU and is configured to perform message processing on the received data of the ONU through the CPU; wherein the state further comprises an advance energy saving state, and data flow of the ONU in the advance energy saving state is greater than the data flow in the deep energy saving state; and the method further comprises: performing message processing on the received data through the hardware module in the acceleration channel when the ONU is currently in the advance energy saving state; wherein an upstream module in the acceleration channel asks a downstream module in the acceleration channel to enter a dormancy state or an awakened state according to a working state of the upstream module.
  2. 2 . The method for controlling power consumption of an ONU according to claim 1 , further comprising: presetting a correspondence relation between a flow threshold and a chip frequency point; and performing, by the hardware module in the acceleration channel, message processing on the received data of the ONU at a chip frequency point determined according to the correspondence relation and data flow currently measured when the ONU is currently in the advance energy saving state.
  3. 3 . The method for controlling power consumption of an ONU according to claim 1 , wherein the state further comprises an energy saving state; the data flow of the ONU in the advance energy saving state is greater than data flow in the energy saving state, and the data flow of the ONU in the energy saving state is greater than the data flow in the deep energy saving state; and a preset control operation is triggered when the ONU is currently in the energy saving state; wherein the preset control operation comprises one or any combination of the following: a fixed frequency reduction, clock shutoff, CPU core shutoff, a local area network (LAN) port negotiation rate reduction.
  4. 4 . The method for controlling power consumption of an ONU according to claim 3 , wherein the deep energy saving state, the energy saving state, and the advance energy saving state respectively correspond to different flow thresholds; and the monitoring a current state of the ONU in real time comprises: acquiring data flow of the ONU; and acquiring the current state of the ONU according to the data flow acquired and the flow thresholds corresponding to the states.
  5. 5 . The method for controlling power consumption of an ONU according to claim 3 , wherein the deep energy saving state, the energy saving state, and the advance energy saving state respectively correspond to different time thresholds; and the monitoring a current state of the ONU in real time comprises: acquiring the current state of the ONU according to current time and the time thresholds corresponding to the states.
  6. 6 . The method for controlling power consumption of an ONU according to claim 1 , wherein before performing a power-off operation on a hardware module in an acceleration channel of the ONU, the method further comprises: storing configuration information of the hardware module.
  7. 7 . The method for controlling power consumption of an ONU according to claim 1 , wherein before the monitoring a current state of the ONU in real time, the method further comprises: acquiring configuration information configured to monitor the state in real time from an optical line terminal (OLT), a WEB server, or a network management device.
  8. 8 . An electronic device, comprising: at least one processor; and a memory in communication connection to the at least one processor; wherein the memory stores an instruction executable by the at least one processor, and when executed by the at least one processor, the instruction causes the at least one processor to: monitor a current state of the ONU in real time, wherein the state at least comprises a deep energy saving state, and data flow of the ONU in the deep energy saving state is lower than a preset threshold; and when the ONU is currently in the deep energy saving state, perform message processing on received data through a central processing unit (CPU) channel and perform a power-off operation on a hardware module in an acceleration channel of the ONU; wherein the acceleration channel is connected to a data ingress of the ONU, and the hardware module in the acceleration channel is configured to perform message processing on the received data of the ONU; and the CPU channel is a channel established between the data ingress of the ONU and a CPU and is configured to perform message processing on the received data of the ONU through the CPU; wherein the state further comprises an advance energy saving state, and data flow of the ONU in the advance energy saving state is greater than the data flow in the deep energy saving state, the instruction further cause the at least one processor to: perform message processing on the received data through the hardware module in the acceleration channel when the ONU is currently in the advance energy saving state; wherein an upstream module in the acceleration channel asks a downstream module in the acceleration channel to enter a dormancy state or an awakened state according to a working state of the upstream module.
  9. 9 . A non-transitory computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the method for controlling power consumption of an ONU according to claim 1 .
  10. 10 . The electronic device according to claim 8 , the instruction further cause the at least one processor to: preset a correspondence relation between a flow threshold and a chip frequency point; and perform, by the hardware module in the acceleration channel, message processing on the received data of the ONU at a chip frequency point determined according to the correspondence relation and data flow currently measured when the ONU is currently in the advance energy saving state.
  11. 11 . The electronic device according to claim 8 , the instruction further cause the at least one processor to: the data flow of the ONU in the advance energy saving state is greater than data flow in the energy saving state, and the data flow of the ONU in the energy saving state is greater than the data flow in the deep energy saving state; and a preset control operation is triggered when the ONU is currently in the energy saving state; wherein the preset control operation comprises one or any combination of the following: a fixed frequency reduction, clock shutoff, CPU core shutoff, a local area network (LAN) port negotiation rate reduction.
  12. 12 . The electronic device according to claim 11 , wherein the deep energy saving state, the energy saving state, and the advance energy saving state respectively correspond to different flow thresholds; and the instruction further cause the at least one processor to: acquire data flow of the ONU; and acquire the current state of the ONU according to the data flow acquired and the flow thresholds corresponding to the states.
  13. 13 . The electronic device according to claim 11 , wherein the deep energy saving state, the energy saving state, and the advance energy saving state respectively correspond to different time thresholds, and the instruction further cause the at least one processor to: acquire the current state of the ONU according to current time and the time thresholds corresponding to the states.
  14. 14 . The electronic device according to claim 8 , the instruction further cause the at least one processor to: store configuration information of the hardware module before a hardware module in an acceleration channel of the ONU is powered off.
  15. 15 . The electronic device according to claim 8 , the instruction further cause the at least one processor to: acquire configuration information configured to monitor the state in real time from an optical line terminal (OLT), a WEB server, or a network management device before the monitoring a current state of the ONU in real time.
  16. 16 . A non-transitory computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the method for controlling power consumption of an ONU according to claim 2 .

Description

CROSS-REFERENCE TO RELATED APPLICATION The present disclosure is a national stage filing under 35 U.S.C. § 371 of international application number PCT/CN2022/098374, filed Jun. 13, 2022, which claims the priority to Chinese patent application no. CN 202110725871.X filed on Jun. 29, 2021, the disclosure of which is incorporated herein by reference in its entirety. TECHNICAL FIELD Examples of the disclosure relate to the field of terminal devices, and in particular to a method and apparatus for controlling power consumption of an optical network unit (ONU). BACKGROUND With an optical network constantly developed, an optical network unit (ONU), a terminal product, has also been used in a wide range in line with widespread popularization of fiber to the home (FTTH). With ongoing development of a passive optical network (PON) technology and growing demand of users for products, increasing functions of the ONU are fulfilled. For example, a smart home gateway device typically requires multi-core processing and supports Wireless Fidelity (WiFi) 5 or wifi6, a first generation mobile communication (1 G)/2.5 G/10 G network port, a Universal Serial Bus (USB), voices, etc., resulting in a constant increase in power consumption. Generally, the smart home gateway device's power consumption is 6 W or more in a full load running state, and remains high in a standby state without effective power consumption reduction measures. Operators at home and abroad focus on power consumption of the ONU. China Mobile and China Unicom have set out power consumption test requirements for different scenarios, such as a power consumption capacity in the case of running all services and a power consumption capacity in the case of stopping all services. The European Union divides the ONU into an off-state, an idle-state, and an on-state. Different power consumption levels must be reached in different states. Different operators have different requirements for power consumption of the ONU. The energy saving requirement is also defined in the PON standard. In a passive optical network system, energy saving support capacities in different PON modes vary. In the PON standard, energy saving interrupt and energy saving state machine skipping methods corresponding to different energy saving modes are defined, but no particular solutions have been provided yet. Therefore, no particular energy saving solution in different energy saving states have been provided in the related art, and there is no way to reduce running power consumption of the ONU effectively. SUMMARY Examples of the disclosure provide a method and apparatus for controlling power consumption of an optical network unit (ONU), an electronic device, and a storage medium, so as to effectively reduce running power consumption of the ONU and realize energy saving and emission reduction of an operator network communication system. In order to solve the above technical problems, a method for controlling power consumption of an ONU is provided in an example of the disclosure. The method includes: monitoring a current state of the ONU in real time, where the current state at least includes a deep energy saving state, and data flow of the ONU in the deep energy saving state is lower than a preset threshold; and performing message processing on received data through a central processing unit (CPU) channel and performing a power-off operation on a hardware module in an acceleration channel of the ONU when the ONU is currently in the deep energy saving state; where the acceleration channel is connected to a data ingress of the ONU, and the hardware module in the acceleration channel is configured to perform message processing on the received data of the ONU; and the CPU channel is a channel established between the data ingress of the ONU and a CPU and is configured to perform message processing on the received data of the ONU through the CPU. An apparatus for controlling power consumption of an ONU is further provided in an example of the disclosure. The apparatus includes: a monitoring module configured to monitor a current state of the ONU in real time, where the state at least includes a deep energy saving state, and data flow of the ONU in the deep energy saving state is lower than a preset threshold; and a processing module configured to perform message processing on received data through a CPU channel and perform a power off operation on a hardware module in an acceleration channel of the ONU when the ONU is currently in the deep energy saving state; where the acceleration channel is connected to a data ingress of the ONU, and the hardware module in the acceleration channel is configured to perform message processing on the received data of the ONU; and the CPU channel is a channel established between the data ingress of the ONU and a CPU and is configured to perform message processing on the received data of the ONU through the CPU. An electronic device is further provided in an example of t