Optical power adjustment method, device, electronic equipment and storage medium

By counting the service data request frames received by the PON port and the number of online ONUs, and adjusting the transmit optical power of the PON port, the problem of energy waste of equipment in the PON network is solved, improving energy efficiency and ensuring user experience.

CN115396039BActive Publication Date: 2024-10-22CHINA MOBILE COMM CORP GUANGXI CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110571268.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-25
Publication Date
2024-10-22
Estimated Expiration
2041-05-25

AI Technical Summary

Technical Problem

In a PON network, the optical power sent by the OLT's PON port far exceeds the actual demand of the ONU, resulting in a waste of equipment energy consumption.

Method used

By obtaining service data request frames within a specified time range, counting the number of ONUs and the number of online ONUs, determining the adjustment strategy for the transmit optical power, and reducing the transmit optical power of the PON port.

Benefits of technology

It effectively reduces the energy consumption of equipment on the PON port side, improves energy efficiency, and ensures a normal Internet experience for home broadband users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115396039B_ABST
    Figure CN115396039B_ABST
Patent Text Reader

Abstract

The present invention provides an optical power regulation method, device, electronic device and storage medium, which is applied to a passive optical network PON port, including: obtaining a service data request frame received within a specified time range; the service data request frame carries a device identifier of an optical network unit ONU that sends the service data request frame; according to the device identifier, counting the number of first ONUs that send service data request frames within the specified time range to obtain a first number; according to the number of MAC addresses of the read ONUs, counting the number of online ONUs connected to the PON port to obtain a second number; according to the first number and the second number, determining a first regulation strategy for the transmitted optical power of the PON port. Through the technical solution of the embodiment of the present invention, the first number of first ONUs with service requests can be determined according to the service data request frame received by the PON port, and the first regulation strategy for the transmitted optical power of the PON port can be determined according to the ratio of the first ONU to the number of online ONUs, thereby reducing the energy consumption of the equipment on the PON port side.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of personal home business, and in particular to an optical power regulation method, device, electronic device and storage medium. Background Art

[0002] PON consists of OLT (Optical Line Terminal), ONU (Optical Network Unit) and ODN (Optical Distribution Network). One OLT is connected to multiple ONUs via the optical splitter in the ODN. Among them, the energy consumption of the OLT equipment is mainly concentrated on the PON port of the OLT connected to the ONU. The main function of the optical module of the PON port is to convert electrical energy into light energy and send and receive information through light waves.

[0003] In the prior art, when a large number of ONUs in idle state exist among the multiple ONUs connected to the PON port of the OLT, the transmission optical power of the PON port far exceeds the actual demand of the ONU, resulting in energy waste of the OLT. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide an optical power adjustment method, device, electronic device and storage medium to solve the problem of how to reduce the energy consumption of equipment on the port side of a passive optical network.

[0005] To solve the above technical problems, the embodiments of the present invention are implemented as follows:

[0006] In a first aspect, an embodiment of the present invention provides an optical power adjustment method, which is applied to a passive optical network PON port, and the method includes:

[0007] Acquire the service data request frame received within the specified time range; the service data request frame carries the device identifier of the optical network unit ONU that sends the service data request frame;

[0008] Counting the number of first ONUs that send service data request frames within a specified time range according to the device identifier to obtain a first number;

[0009] According to the number of the read ONU MAC addresses, the number of online ONUs connected to the PON port is counted to obtain a second number;

[0010] A first adjustment strategy for the transmit optical power of the PON port is determined according to the first quantity and the second quantity.

[0011] In a second aspect, an embodiment of the present invention provides an optical power adjustment device, the device comprising:

[0012] A request frame acquisition module is used to acquire a service data request frame received within a specified time range; the service data request frame carries a device identifier of an optical network unit ONU that sends the service data request frame;

[0013] A first quantity statistics module, used for counting the number of first ONUs that send service data request frames within a specified time range according to the device identifier, to obtain a first number;

[0014] A second quantity counting module is used to count the number of online ONUs connected to the PON port according to the number of media access control addresses MAC addresses of the read ONUs to obtain a second number;

[0015] The first strategy determination module is used to determine a first adjustment strategy for the transmit optical power of the PON port according to the first quantity and the second quantity.

[0016] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor. The memory stores computer executable instructions, and when the computer executable instructions are executed by the processor, the optical power regulation method described in the first aspect can be implemented.

[0017] In a fourth aspect, an embodiment of the present invention provides a storage medium, in which computer executable instructions are stored. When the computer executable instructions are executed by a processor, the optical power adjustment method as described in the first aspect above is implemented.

[0018] According to the technical solution of the embodiment of the present invention, first, a service data request frame received within a specified time range is obtained; the service data request frame carries the device identification of the optical network unit ONU that sends the service data request frame; secondly, according to the device identification, the number of the first ONU that sends the service data request frame within the specified time range is counted to obtain a first number; then, according to the number of MAC addresses of the read ONUs, the number of online ONUs connected to the PON port is counted to obtain a second number; finally, according to the first number and the second number, the first adjustment strategy for the transmission optical power of the PON port is determined. Through the technical solution of the embodiment of the present invention, the first number of the first ONU with service requests can be determined according to the service data request frame received by the PON port, and the first adjustment strategy for the transmission optical power of the PON port can be determined by the ratio of the first ONU to the number of online ONUs, thereby reducing the energy consumption of the equipment on the PON port side. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0020] Figure 1 A schematic diagram of a flow chart of a first optical power adjustment method provided by an embodiment of the present invention;

[0021] Figure 2 A schematic diagram of a flow chart of a second optical power adjustment method provided by an embodiment of the present invention;

[0022] Figure 3 A schematic flow chart of a third optical power adjustment method provided by an embodiment of the present invention;

[0023] Figure 4 A schematic block diagram of an optical power adjustment device provided by an embodiment of the present invention;

[0024] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0026] Figure 1 A schematic diagram of a flow chart of an optical power adjustment method provided by an embodiment of the present invention.

[0027] Reference Figure 1 As shown, the optical power adjustment method includes step S102, step S104, step S106 and step S108. Figure 1 The optical power adjustment method in the exemplary embodiment is described in detail.

[0028] like Figure 1 The optical power regulation method shown is applied to a PON (Passive Optical Network) port.

[0029] PON technology is a point-to-multipoint fiber access technology. PON consists of OLT (Optical Line Terminal), ONU (Optical Network Unit) and ODN (Optical Distribution Network). ODN is a point-to-multipoint structure. It is composed of passive optical devices such as single-mode optical fiber, optical splitters, and optical connectors. It provides optical transmission media for the physical connection between OLT and ONU. One OLT is connected to multiple ONUs via the optical splitter in the ODN.

[0030] In the PON network, energy consumption mainly includes three aspects: central office equipment, terminal equipment, and attenuation consumption of the intermediate ODN network. Among them, the energy consumption of central office equipment and terminal equipment is relatively large, which is caused by the operation of the devices.

[0031] In the embodiment of the present application, the central office device in the PON network and the device on the PON port side refer to the same device, that is, the PON ports in the embodiment of the present application are all PON ports of the central office device. The following description will be uniformly made by taking the central office device as an OLT as an example.

[0032] The energy consumption of OLT equipment is mainly concentrated on the PON port of OLT that connects to ONU. The main function of the optical module of the PON port is to convert electrical energy into optical energy and send and receive information through optical waves. An OLT contains multiple PON ports.

[0033] It should be noted that the PON port of the OLT is connected to multiple ONUs. In specific implementation, the PON port of the OLT can be connected to multiple ONUs through the ODN. The passive optical devices in the ODN have little effect on the optical power adjustment method of the embodiment of the present application and can be ignored, so the ODN will not be mentioned below.

[0034] There is a corresponding relationship between the transmit optical power of the PON port of the OLT and the receive optical power of the ONU. It can be understood that the receive optical power of the ONU is obtained by attenuating the transmit optical power of the PON port by a fixed multiple. Therefore, when the transmit optical power of the PON port decreases, the receive optical power of the ONU decreases accordingly; when the transmit optical power of the PON port increases, the receive optical power of the ONU increases accordingly. By reasonably reducing the transmit optical power of each PON port of the OLT, the energy consumption of the entire OLT equipment and the energy consumption of the entire PON network can be reduced.

[0035] Step S102, obtaining a service data request frame received within a specified time range; the service data request frame carries a device identifier of the optical network unit ONU that sends the service data request frame.

[0036] The service data request frame may be a DBRu frame. The DBRu frame carries the device identifier of the ONU that sends the DBRu frame. It is easy to understand that among multiple DBRu frames sent by the same ONU to the PON port, the device identifiers carried by each DBRu frame are the same, and the device identifier can be used to determine a unique ONU among multiple ONUs connected to the PON port.

[0037] The device identifier may be an ONU number or other identifier used to identify a unique ONU.

[0038] Specifically, different data frames are sent between OLT and ONU through protocols such as OMCI and SNMP, including PLOAM frames for physical layer operation management and maintenance, PLSu frames for adjusting the optical power of PON ports, etc. Among them, there is a data frame called DBRu frame, which is used to report the status of ONU's T-CONT and apply for Internet bandwidth from OLT. Therefore, when OLT receives DBRu frame, it means that the home broadband user corresponding to the ONU that sent the DBRu frame has Internet access demand, that is, the ONU has a service request.

[0039] Specify a time range, for example, 10 minutes. Get the service data request frames received within the specified time range, for example, get the DBRu frames received by a certain PON port of the OLT within 10 minutes. The specified time range can be customized based on empirical values.

[0040] In a specific implementation, the service data request frames sent by each ONU connected to the Kth PON port within x minutes before the first time point can be collected by the OLT at the first time point.

[0041] Step S104: Count the number of first ONUs that send service data request frames within a specified time range according to the device identifier to obtain a first number.

[0042] The ONU that sends the service data request frame within the specified time range is determined as the first ONU. The device identifications carried in the multiple service data request frames sent by the same first ONU are the same. Therefore, the number of first ONUs can be obtained by counting the number of different device identifications as the first number.

[0043] By counting the number of different device identifiers carried in the service data request frames received by a certain PON port within a specified time range, it can be determined that a first number of first ONUs have service requests under the PON port.

[0044] Step S106: Count the number of online ONUs connected to the PON port according to the number of the read MAC addresses of the ONUs to obtain a second number.

[0045] The OLT can read the MAC address (Media Access Control Address) of each online ONU connected to the PON port through the PON port. Each online ONU has a unique MAC address corresponding to the online ONU.

[0046] In specific implementation, among the ONUs connected to a PON port of the OLT, as long as the ONU and the PON port can communicate normally, the ONU can be regarded as an online ONU, and the MAC address of the online ONU can be read by the PON port regardless of whether the online ONU has a service request. The number of online ONUs can be regarded as the total number of ONUs connected to the PON port.

[0047] Step S108: Determine a first adjustment strategy for the transmit optical power of the PON port according to the first quantity and the second quantity.

[0048] The first adjustment strategy may be not adjusting the transmitted optical power or reducing the transmitted optical power.

[0049] In some time periods, such as from 2 am to 5 am, when there are many home broadband users corresponding to multiple ONUs connected to the same PON port who do not have Internet access needs, the OLT only needs to process the service data of a small number of home broadband users. Therefore, through the first number and the second number, the transmission optical power of the PON port can be reduced when the service demand of each ONU is small, thereby reducing the energy consumption of the central office equipment.

[0050] Optionally, a first adjustment strategy for the transmitted optical power of the PON port is determined based on the first quantity and the second quantity, including: if the ratio of the first quantity to the second quantity is greater than or equal to a preset ratio threshold, then the first adjustment strategy for the transmitted optical power of the PON port is determined to be not to adjust the transmitted optical power; if the ratio of the first quantity to the second quantity is less than the preset ratio threshold and the first quantity is not zero, then the first adjustment strategy for the transmitted optical power of the PON port is determined to be to reduce the transmitted optical power according to the received optical power of the first ONU and the quality assurance optical power threshold; if the ratio of the first quantity to the second quantity is less than the preset ratio threshold and the first quantity is zero, then the first adjustment strategy for the transmitted optical power of the PON port is determined to be to reduce the transmitted optical power to a minimum power threshold.

[0051] The ratio of the first number to the second number is the ratio between the number of first ONUs with service requests and the number of online ONUs. The ratio is compared with a preset ratio threshold. If the ratio is greater than or equal to the preset ratio threshold, it means that there are more first ONUs with service requests and the amount of service data that the PON port needs to process is large, so there is no need to reduce the transmission optical power; if the ratio is less than the preset ratio threshold and the ratio is greater than zero, it means that there are fewer first ONUs with service requests, most of the online ONUs are in an idle state, and the OLT only needs to process the service data of a small number of home broadband users. In this case, reducing the transmission optical power of the PON port can reduce the energy consumption of the OLT device without affecting the normal Internet access of home broadband users; if the ratio is equal to zero, it means that there is no first ONU, all online ONUs are in an idle state, and the OLT does not need to work at this time, so the transmission optical power can be reduced to the minimum power threshold.

[0052] The minimum power threshold may be 0 dBm or other preset values.

[0053] Optionally, the transmitting optical power is reduced according to the received optical power and the quality assurance optical power threshold of the first ONU, including: sorting the received optical power of each first ONU according to the size of the received optical power of the first ONU to obtain a first minimum optical power; if the first minimum optical power is greater than the quality assurance optical power threshold, gradually reducing the transmitting optical power until the first minimum optical power is less than or equal to the quality assurance optical power threshold.

[0054] When the ratio of the first number to the second number is less than the preset ratio threshold and the ratio is greater than zero, for example, the preset ratio threshold is 30%, and the ratio of the first number to the second number is 15%, then among the broadband network users corresponding to the multiple ONUs connected to the same PON port, only 15% of the users have Internet access needs. At this time, it is necessary to further determine how to adjust the transmit optical power of the PON port.

[0055] In a specific implementation, the received optical power of each first ONU is obtained, and the received optical power of each first ONU is sorted from small to large according to the size of the received optical power, and the smallest received optical power of the first ONU is determined according to the sorting result as the first minimum optical power. The first minimum optical power is compared with the quality assurance optical power threshold, and if the first minimum optical power is greater than the quality assurance optical power threshold, the transmit optical power of the PON port is reduced successively according to the first amount until the first minimum optical power is less than or equal to the quality assurance optical power threshold.

[0056] The guaranteed optical power threshold refers to the minimum value of the received optical power of the ONU that can ensure that home broadband users can access the Internet normally. It can be understood that when the received optical power of the first ONU is less than the guaranteed optical power threshold, the Internet access of home broadband users will be significantly affected, reducing the Internet access experience of home broadband users; when the received optical power of the first ONU is greater than the guaranteed optical power threshold, home broadband users can access the Internet normally.

[0057] As the transmit optical power of the PON port decreases, the receive optical power of each first ONU connected to the PON port will also decrease. The transmit optical power of the PON port is gradually reduced according to the first amount until the first minimum optical power is less than or equal to the quality assurance optical power threshold. For example, the transmit optical power of the PON port is reduced by 0.5 dBm, and the first minimum optical power is reduced accordingly. It is determined whether the reduced first minimum optical power is greater than the quality assurance optical power threshold. If so, the transmit optical power of the PON port is further reduced by 0.5 dBm, and the first minimum optical power is reduced again accordingly... The transmit optical power of the PON port is further reduced by 0.5 dBm, and the first minimum optical power is reduced again accordingly. It is determined that the reduced first minimum optical power is less than or equal to the quality assurance optical power threshold, and the adjustment of the transmit optical power of the PON port is stopped.

[0058] By comparing the first minimum optical power with the guaranteed optical power threshold, it can be ensured that in the process of reducing the transmit optical power of the PON port, normal Internet access of users will not be disturbed, and the energy consumption of OLT equipment is reduced under the premise of ensuring normal service requests.

[0059] In the embodiment of the present application, a polling strategy for the PON ports may also be adopted, that is, after first performing the above steps S102 to S108 on the first PON port, the same operation is then performed on the second PON port until all PON ports are polled.

[0060] In specific implementation, the polling duration of all PON ports of an OLT can be recorded as a reduction polling cycle T1, and the interval of polling the same OLT can be recorded as the reduction interval K1. In the existing network deployment, in order to prevent the overlap of multiple reduction polling cycles on the same OLT, T1 is usually required. <K1)。

[0061] Optionally, the optical power adjustment method may further include the following process: detecting the transmit optical power of the PON port; and determining a second adjustment strategy for the transmit optical power of the PON port according to the transmit optical power and the maximum optical power of the PON port.

[0062] The second adjustment strategy may be not adjusting the transmitted optical power or increasing the transmitted optical power.

[0063] In an embodiment of the present application, the process of determining the second adjustment strategy can be run independently or simultaneously with the process of determining the first adjustment strategy corresponding to steps S102 to S108, and can be executed on one PON port or on different PON ports.

[0064] For example, at the second time point, one of steps S102 to S108 is executed at the first PON port, and a step in the process of determining the second adjustment strategy is executed at the Nth PON port; or, at the third time point, one of steps S102 to S108 is executed at the third PON port, and the process of determining the second adjustment strategy is not executed; or, at the fourth time point, steps S102 to S108 are not executed, and the process of determining the second adjustment strategy is executed at the fifth PON port; at the fifth time point, one of steps S102 to S108 is executed at the second PON port, and a step in the process of determining the second adjustment strategy is also executed at the second PON port, and so on.

[0065] The initial value Pstart of the transmission optical power of the PON port is determined as the maximum optical power Pmax of the PON port.

[0066] In specific implementation, the transmit optical power of the PON port can be obtained at the detection time point, and the transmit optical power can be compared with the optical power initial value Pstart. According to the comparison result of the transmit optical power and the optical power initial value Pstart, a second adjustment strategy for the transmit optical power of the PON port is determined.

[0067] Optionally, a second adjustment strategy for the sending optical power of the PON port is determined based on the sending optical power and the maximum optical power of the PON port, including: if the sending optical power is equal to the maximum optical power, then the second adjustment strategy for the sending optical power of the PON port is determined to not adjust the sending optical power; if the sending optical power is less than the maximum optical power, then the second adjustment strategy for the sending optical power of the PON port is determined to increase the sending optical power based on the receiving optical power of the second ONU that sends a service data request frame to the PON port and the quality assurance optical power threshold.

[0068] If the transmit optical power is equal to the maximum optical power, it means that the transmit optical power cannot be increased any further, so there is no need to increase the transmit optical power. If the transmit optical power is less than the maximum optical power, there may be a need to increase the transmit optical power, or there may be no need to increase the transmit optical power.

[0069] Optionally, the sending optical power is increased according to the received optical power and the quality assurance optical power threshold of the second ONU that sends the service data request frame to the PON port, including: determining the second ONU that sends the service data request frame to the PON port according to the device identifier carried in the received service data request frame; obtaining the received optical power of each second ONU; sorting the received optical power of each second ONU according to the size of the received optical power of the second ONU to obtain the second minimum optical power; if the second minimum optical power is less than the quality assurance optical power threshold, gradually increasing the sending optical power until the second minimum optical power is greater than or equal to the quality assurance optical power threshold.

[0070] A second ONU that sends a service data request frame to the PON port is determined according to the device identifier carried in the service data request frame received at the re-detection time point.

[0071] The service data request frame may be a DBRu frame. The DBRu frame carries the device identifier of the ONU that sends the DBRu frame. It is easy to understand that among multiple DBRu frames sent by the same ONU to the PON port, the device identifiers carried by each DBRu frame are the same, and the device identifier can be used to determine a unique ONU among multiple ONUs connected to the PON port.

[0072] The device identifier may be an ONU number or other identifier used to identify a unique ONU.

[0073] Specifically, different data frames are sent between OLT and ONU through protocols such as OMCI and SNMP, including PLOAM frames for physical layer operation management and maintenance, PLSu frames for adjusting the optical power of PON ports, etc. Among them, there is a data frame called DBRu frame, which is used to report the status of ONU's T-CONT and apply for Internet bandwidth from OLT. Therefore, when OLT receives DBRu frame, it means that the home broadband user corresponding to the ONU that sent the DBRu frame has Internet access demand, that is, the ONU has a service request.

[0074] The device identifiers carried in multiple service data request frames sent by the same second ONU are the same. Therefore, the number of second ONUs can be obtained by counting the number of different device identifiers as the second number. By counting the number of different device identifiers carried in the service data request frames received by a certain PON port at the detection time point, it can be determined that there are a second number of second ONUs with service requests under the PON port.

[0075] In a specific implementation, the received optical power of each second ONU is obtained, and the received optical power of each second ONU is sorted from small to large according to the size of the received optical power, and the minimum received optical power of the second ONU is determined according to the sorting result as the second minimum optical power. The second minimum optical power is compared with the quality assurance optical power threshold, and if the first minimum optical power is less than the quality assurance optical power threshold, the transmit optical power of the PON port is gradually increased according to the second amount until the second minimum optical power is greater than or equal to the quality assurance optical power threshold.

[0076] The guaranteed optical power threshold refers to the minimum value of the received optical power of the ONU that can ensure that home broadband users can access the Internet normally. It can be understood that when the received optical power of the second ONU is less than the guaranteed optical power threshold, the Internet access of home broadband users will be significantly affected, reducing the Internet access experience of home broadband users; when the received optical power of the second ONU is greater than the guaranteed optical power threshold, home broadband users can access the Internet normally.

[0077] As the transmit optical power of the PON port increases, the receive optical power of each first ONU connected to the PON port will also increase. The transmit optical power of the PON port is increased successively according to the second amount until the second minimum optical power is greater than or equal to the quality assurance optical power threshold. For example, the transmit optical power of the PON port is increased by 0.5 dBm, and the second minimum optical power is increased accordingly. It is determined whether the increased second minimum optical power is less than the quality assurance optical power threshold. If so, the transmit optical power of the PON port is increased by another 0.5 dBm, and the second minimum optical power is increased again accordingly... The transmit optical power of the PON port is increased by another 0.5 dBm, and the second minimum optical power is increased again accordingly. It is determined that the increased second minimum optical power is greater than or equal to the quality assurance optical power threshold, and the adjustment of the transmit optical power of the PON port is stopped.

[0078] By comparing the second minimum optical power with the quality assurance optical power threshold, the second ONU whose received optical power is too low to ensure normal Internet access for users can be quickly discovered and the received optical power of the second ONU can be increased in time, thereby ensuring normal business operations. After the received optical power is greater than or equal to the quality assurance optical power threshold, the transmitted optical power of the PON port will no longer be increased, which can take into account both saving OLT equipment energy consumption and ensuring normal business operations.

[0079] Optionally, the transmitting optical power is zero; the transmitting optical power is increased according to the receiving optical power and the quality assurance optical power threshold of the second ONU that sends the service data request frame to the PON port, including: detecting whether the service data request frame is received; if received, increasing the transmitting optical power according to the receiving optical power and the quality assurance optical power threshold of the second ONU that sends the service data request frame to the PON port.

[0080] The transmission optical power is zero, which can be understood as that among the multiple ONUs connected to a certain PON port, there is no ONU with service demand within a certain time range, so the transmission optical power of the PON port is reduced to 0dbm. At this time, if no service data request frame is detected within a period of time, it means that there is no ONU with service demand among the multiple ONUs within this period of time, and there is no need to increase the transmission optical power of the PON port. When the PON port detects the service data request frame for the first time, it means that an ONU with service demand has appeared, and the transmission optical power of the PON port needs to be increased in time.

[0081] In specific implementation, the OLT can detect whether each ONU connected to the PON port sends a service data request frame to the PON port with a transmission optical power of 0dbm at a certain time interval t. If the detection result is that the service data request frame is received, the transmission optical power is increased according to the received optical power of the second ONU that sends the service data request frame to the PON port and the quality assurance optical power threshold.

[0082] In the embodiment of the present application, a polling strategy for the PON ports may also be adopted, that is, after implementing the steps in the above process of determining the second adjustment strategy for the first PON port, the same operation is then performed on the second PON port until all PON ports are polled.

[0083] In specific implementation, the polling time of all PON ports of an OLT can be recorded as an incremental polling cycle T2, and the interval of polling the same OLT can be recorded as the incremental interval K2. In the current network deployment, in order to prevent the overlap of multiple incremental polling cycles on the same OLT, T2 is usually required. <K2)。

[0084] It should be noted that the polling cycle of the process of determining the second adjustment strategy is much smaller than the polling cycle of the process of determining the second adjustment strategy, so as to maximize energy saving while ensuring that the user's Internet experience is not affected.

[0085] according to Figure 1The optical power adjustment method in the example embodiment of the embodiment, first, obtain the service data request frame received within the specified time range; the service data request frame carries the device identification of the optical network unit ONU that sends the service data request frame; secondly, according to the device identification, count the number of the first ONU that sends the service data request frame within the specified time range to obtain the first number; then, according to the number of MAC addresses of the read ONUs, count the number of online ONUs connected to the PON port to obtain the second number; finally, according to the first number and the second number, determine the first adjustment strategy for the transmission optical power of the PON port. Through the technical solution of the embodiment of the present invention, it is possible to determine the first number of the first ONU with service requests according to the service data request frame received by the PON port, and determine the first adjustment strategy for the transmission optical power of the PON port according to the ratio of the first ONU to the number of online ONUs, thereby reducing the energy consumption of the equipment on the PON port side.

[0086] Figure 2 A schematic flow chart of a second optical power adjustment method provided in an embodiment of the present invention.

[0087] Step S202: acquiring, through the optical line terminal, a service data request frame received by the passive optical network port to be detected within a specified time range.

[0088] Step S204, obtaining a first number of first optical network units that send service data request frames and a second number of online optical network units that are connected to the passive optical network port.

[0089] Step S206, determining whether the ratio of the first quantity to the second quantity is greater than or equal to a preset ratio threshold.

[0090] If yes, go to step S208; if no, go to step S212.

[0091] Step S208, determining whether the passive optical network port is the last passive optical network port of the optical line terminal.

[0092] If yes, end the process; if no, execute step S210.

[0093] Step S210: determine the next passive optical network port as the passive optical network port to be detected.

[0094] Step S212, determining whether the first quantity is greater than zero.

[0095] If yes, go to step S214; if no, go to step S216.

[0096] Step S214, obtaining the received optical power of each first optical network unit connected to the passive optical network port, sorting the received optical powers, and determining the first minimum optical power.

[0097] Step S216: reducing the transmit optical power of the passive optical network port to a minimum power threshold through the optical line terminal.

[0098] Step S218: determine whether the first minimum optical power is greater than or equal to the quality assurance optical power threshold.

[0099] If yes, go to step S220; if no, go to step S222.

[0100] Step S220: reducing the transmit optical power of the passive optical network port by a first amount.

[0101] Step S222, stop reducing the transmit optical power of the passive optical network port.

[0102] like Figure 2 The optical power regulation method provided in the illustrated embodiment can implement each process in the aforementioned optical power regulation method embodiment and achieve the same function and effect, which will not be repeated here.

[0103] Figure 3 A schematic flow chart of a third optical power adjustment method provided by an embodiment of the present invention.

[0104] Step S302: Acquire the transmit optical power and the maximum optical power of the passive optical network port to be detected.

[0105] Step S304, determining whether the transmitted optical power is less than the maximum optical power.

[0106] If yes, execute step S306; if no, execute step S308.

[0107] Step S306, determining whether the transmitted optical power is zero.

[0108] If yes, execute step S312; if no, execute step S314.

[0109] Step S308, determining whether the passive optical network port is the last passive optical network port of the optical line terminal.

[0110] If yes, end the process; if no, execute step S310.

[0111] Step S310: determine the next passive optical network port as the passive optical network port to be detected.

[0112] Step S312: Detect whether a service data request frame is received.

[0113] If yes, execute step S314; if no, do not perform any adjustment operation.

[0114] Step S314, obtaining the received optical power of each second optical network unit connected to the passive optical network port, sorting the received optical powers, and determining the second minimum optical power.

[0115] Step S316: determine whether the second minimum optical power is less than the quality assurance optical power threshold.

[0116] If yes, go to step S318; if no, go to step S320.

[0117] Step S318: increasing the transmit optical power of the passive optical network port by a second amount.

[0118] Step S320, stop increasing the transmit optical power of the passive optical network port.

[0119] like Figure 3 The optical power regulation method provided in the illustrated embodiment can implement each process in the aforementioned optical power regulation method embodiment and achieve the same function and effect, which will not be repeated here.

[0120] Figure 4 A schematic block diagram of an optical power adjustment device provided by an embodiment of the present invention.

[0121] Reference Figure 4 As shown, the optical power adjustment device includes:

[0122] The request frame acquisition module 402 is used to acquire the service data request frame received within a specified time range; the service data request frame carries the device identification of the optical network unit ONU that sends the service data request frame;

[0123] A first quantity counting module 404 is used to count the number of first ONUs that send service data request frames within a specified time range according to the device identifier to obtain a first number;

[0124] A second number counting module 406 is used to count the number of online ONUs connected to the PON port according to the number of media access control addresses MAC addresses of the read ONUs to obtain a second number;

[0125] The first strategy determination module 408 is configured to determine a first adjustment strategy for the transmit optical power of the PON port according to the first quantity and the second quantity.

[0126] In some embodiments of the present invention, based on the above solution, the first strategy determination module 408 includes:

[0127] If the ratio of the first number to the second number is greater than or equal to a preset ratio threshold, the first strategy unit is run, and the first strategy unit is used to determine that the first adjustment strategy of the transmit optical power of the PON port is not to adjust the transmit optical power;

[0128] If the ratio of the first number to the second number is less than the preset ratio threshold and the first number is not zero, the second strategy unit is run, and the second strategy unit is used to determine that the first adjustment strategy of the transmitted optical power of the PON port is to reduce the transmitted optical power according to the received optical power of the first ONU and the quality assurance optical power threshold;

[0129] If the ratio of the first number to the second number is less than the preset ratio threshold and the first number is zero, the third strategy unit is executed, and the third strategy unit is used to determine that the first adjustment strategy of the transmitted optical power of the PON port is to reduce the transmitted optical power to a minimum power threshold.

[0130] In some embodiments of the present invention, based on the above solution, the second strategy unit is specifically used to:

[0131] According to the magnitude of the received optical power of the first ONU, the received optical power of each first ONU is sorted to obtain a first minimum optical power;

[0132] If the first minimum optical power is greater than the quality assurance optical power threshold, the transmit optical power is gradually reduced until the first minimum optical power is less than or equal to the quality assurance optical power threshold.

[0133] In some embodiments of the present invention, based on the above solution, the optical power adjustment device further includes:

[0134] Transmit optical power detection module, used to detect the transmit optical power of the PON port;

[0135] The second strategy determination module is used to determine a second adjustment strategy for the transmit optical power of the PON port according to the transmit optical power and the maximum optical power of the PON port.

[0136] In some embodiments of the present invention, based on the above solution, the second strategy determination module includes:

[0137] If the transmitted optical power is equal to the maximum optical power, the fourth strategy unit is run, and the fourth strategy unit is used to determine that the second adjustment strategy for the transmitted optical power of the PON port is not to adjust the transmitted optical power;

[0138] If the transmitted optical power is less than the maximum optical power, the fifth strategy unit is run, and the fifth strategy unit is used to determine the second adjustment strategy for the transmitted optical power of the PON port, which is to increase the transmitted optical power according to the received optical power of the second ONU that sends a service data request frame to the PON port and the quality assurance optical power threshold.

[0139] In some embodiments of the present invention, based on the above solution, the fifth strategy unit is specifically used to:

[0140] Determine, according to the device identifier carried in the received service data request frame, a second ONU that sends the service data request frame to the PON port;

[0141] Obtaining the received optical power of each second ONU;

[0142] According to the magnitude of the received optical power of the second ONU, the received optical power of each second ONU is sorted to obtain a second minimum optical power;

[0143] If the second minimum optical power is less than the quality assurance optical power threshold, the transmit optical power is gradually increased until the second minimum optical power is greater than or equal to the quality assurance optical power threshold.

[0144] In some embodiments of the present invention, based on the above solution, the transmitted optical power is zero; the fifth strategy unit is specifically configured to:

[0145] Detect whether a service data request frame is received;

[0146] If received, the sending optical power is increased according to the receiving optical power of the second ONU that sends the service data request frame to the PON port and the quality assurance optical power threshold.

[0147] According to the technical solution of the embodiment of the present invention, first, a service data request frame received within a specified time range is obtained; the service data request frame carries the device identification of the optical network unit ONU that sends the service data request frame; secondly, according to the device identification, the number of the first ONU that sends the service data request frame within the specified time range is counted to obtain a first number; then, according to the number of MAC addresses of the read ONUs, the number of online ONUs connected to the PON port is counted to obtain a second number; finally, according to the first number and the second number, the first adjustment strategy for the transmission optical power of the PON port is determined. Through the technical solution of the embodiment of the present invention, the first number of the first ONU with service requests can be determined according to the service data request frame received by the PON port, and the first adjustment strategy for the transmission optical power of the PON port can be determined by the ratio of the first ONU to the number of online ONUs, thereby reducing the energy consumption of the equipment on the PON port side.

[0148] The optical power adjustment device provided in one embodiment of the present invention can implement each process in the aforementioned optical power adjustment method embodiment and achieve the same functions and effects, which will not be repeated here.

[0149] Furthermore, an embodiment of the present application also provides an electronic device, Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention is shown in FIG. Figure 5As shown, the device includes a memory 501, a processor 502, a bus 503 and a communication interface 504. The memory 501, the processor 502 and the communication interface 504 communicate via the bus 503, and the communication interface 504 may include an input and output interface, which includes but is not limited to a keyboard, a mouse, a display, a microphone, a loudspeaker, etc.

[0150] Figure 5 In the embodiment, the memory 501 stores computer executable instructions, which, when executed by the processor 502, can implement the following process:

[0151] Acquire the service data request frame received within the specified time range; the service data request frame carries the device identifier of the optical network unit ONU that sends the service data request frame;

[0152] Counting the number of first ONUs that send service data request frames within a specified time range according to the device identifier to obtain a first number;

[0153] According to the number of the read ONU MAC addresses, the number of online ONUs connected to the PON port is counted to obtain a second number;

[0154] A first adjustment strategy for the transmit optical power of the PON port is determined according to the first quantity and the second quantity.

[0155] Optionally, when the computer executable instruction is executed by the processor 502, determining a first adjustment strategy for the transmit optical power of the PON port according to the first quantity and the second quantity includes:

[0156] If the ratio of the first number to the second number is greater than or equal to a preset ratio threshold, determining that the first adjustment strategy for the transmit optical power of the PON port is not to adjust the transmit optical power;

[0157] If the ratio of the first number to the second number is less than the preset ratio threshold and the first number is not zero, determining a first adjustment strategy for the transmit optical power of the PON port is to reduce the transmit optical power according to the receive optical power of the first ONU and the quality assurance optical power threshold;

[0158] If the ratio of the first number to the second number is less than the preset ratio threshold and the first number is zero, it is determined that the first adjustment strategy for the transmit optical power of the PON port is to reduce the transmit optical power to a minimum power threshold.

[0159] Optionally, when the processor 502 executes the computer executable instruction, according to the received optical power of the first ONU and the quality assurance optical power threshold, the transmitted optical power is reduced, including:

[0160] According to the magnitude of the received optical power of the first ONU, the received optical power of each first ONU is sorted to obtain a first minimum optical power;

[0161] If the first minimum optical power is greater than the quality assurance optical power threshold, the transmit optical power is gradually reduced until the first minimum optical power is less than or equal to the quality assurance optical power threshold.

[0162] Optionally, when the computer executable instruction is executed by the processor 502, the following process may also be executed:

[0163] Detect the transmit optical power of the PON port;

[0164] A second adjustment strategy for the transmit optical power of the PON port is determined according to the transmit optical power and the maximum optical power of the PON port.

[0165] Optionally, when the computer executable instruction is executed by the processor 502, determining a second adjustment strategy for the transmit optical power of the PON port according to the transmit optical power and the maximum optical power of the PON port includes:

[0166] If the transmitted optical power is equal to the maximum optical power, determining that the second adjustment strategy for the transmitted optical power of the PON port is not to adjust the transmitted optical power;

[0167] If the transmitted optical power is less than the maximum optical power, the second adjustment strategy for the transmitted optical power of the PON port is determined to increase the transmitted optical power according to the received optical power of the second ONU that sends the service data request frame to the PON port and the quality assurance optical power threshold.

[0168] Optionally, when the computer executable instruction is executed by the processor 502, the sending optical power is increased according to the receiving optical power of the second ONU that sends the service data request frame to the PON port and the quality assurance optical power threshold, including:

[0169] Determine, according to the device identifier carried in the received service data request frame, a second ONU that sends the service data request frame to the PON port;

[0170] Obtaining the received optical power of each second ONU;

[0171] According to the magnitude of the received optical power of the second ONU, the received optical power of each second ONU is sorted to obtain a second minimum optical power;

[0172] If the second minimum optical power is less than the quality assurance optical power threshold, the transmit optical power is gradually increased until the second minimum optical power is greater than or equal to the quality assurance optical power threshold.

[0173] Optionally, when the computer executable instruction is executed by the processor 502, the sending optical power is zero; and the sending optical power is increased according to the receiving optical power of the second ONU that sends the service data request frame to the PON port and the quality assurance optical power threshold, including:

[0174] Detect whether a service data request frame is received;

[0175] If received, the sending optical power is increased according to the receiving optical power of the second ONU that sends the service data request frame to the PON port and the quality assurance optical power threshold.

[0176] According to the technical solution of the embodiment of the present invention, first, a service data request frame received within a specified time range is obtained; the service data request frame carries the device identification of the optical network unit ONU that sends the service data request frame; secondly, according to the device identification, the number of the first ONU that sends the service data request frame within the specified time range is counted to obtain a first number; then, according to the number of MAC addresses of the read ONUs, the number of online ONUs connected to the PON port is counted to obtain a second number; finally, according to the first number and the second number, the first adjustment strategy for the transmission optical power of the PON port is determined. Through the technical solution of the embodiment of the present invention, the first number of the first ONU with service requests can be determined according to the service data request frame received by the PON port, and the first adjustment strategy for the transmission optical power of the PON port can be determined by the ratio of the first ONU to the number of online ONUs, thereby reducing the energy consumption of the equipment on the PON port side.

[0177] The electronic device provided in the embodiment of the present application can implement each process in the aforementioned optical power adjustment method embodiment and achieve the same functions and effects, which will not be repeated here.

[0178] Furthermore, an embodiment of the present invention further provides a storage medium, in which computer executable instructions are stored. When the computer executable instructions are executed by the processor 502, the following process can be implemented:

[0179] Acquire the service data request frame received within the specified time range; the service data request frame carries the device identifier of the optical network unit ONU that sends the service data request frame;

[0180] Counting the number of first ONUs that send service data request frames within a specified time range according to the device identifier to obtain a first number;

[0181] According to the number of the read ONU MAC addresses, the number of online ONUs connected to the PON port is counted to obtain a second number;

[0182] A first adjustment strategy for the transmit optical power of the PON port is determined according to the first quantity and the second quantity.

[0183] Optionally, when the computer executable instruction is executed by the processor 502, determining a first adjustment strategy for the transmit optical power of the PON port according to the first quantity and the second quantity includes:

[0184] If the ratio of the first number to the second number is greater than or equal to a preset ratio threshold, determining that the first adjustment strategy for the transmit optical power of the PON port is not to adjust the transmit optical power;

[0185] If the ratio of the first number to the second number is less than the preset ratio threshold and the first number is not zero, determining a first adjustment strategy for the transmit optical power of the PON port is to reduce the transmit optical power according to the receive optical power of the first ONU and the quality assurance optical power threshold;

[0186] If the ratio of the first number to the second number is less than the preset ratio threshold and the first number is zero, it is determined that the first adjustment strategy for the transmit optical power of the PON port is to reduce the transmit optical power to a minimum power threshold.

[0187] Optionally, when the processor 502 executes the computer executable instruction, according to the received optical power of the first ONU and the quality assurance optical power threshold, the transmitted optical power is reduced, including:

[0188] According to the magnitude of the received optical power of the first ONU, the received optical power of each first ONU is sorted to obtain a first minimum optical power;

[0189] If the first minimum optical power is greater than the quality assurance optical power threshold, the transmit optical power is gradually reduced until the first minimum optical power is less than or equal to the quality assurance optical power threshold.

[0190] Optionally, when the computer executable instruction is executed by the processor 502, the following process may also be executed:

[0191] Detect the transmit optical power of the PON port;

[0192] A second adjustment strategy for the transmit optical power of the PON port is determined according to the transmit optical power and the maximum optical power of the PON port.

[0193] Optionally, when the computer executable instruction is executed by the processor 502, determining a second adjustment strategy for the transmit optical power of the PON port according to the transmit optical power and the maximum optical power of the PON port includes:

[0194] If the transmitted optical power is equal to the maximum optical power, determining that the second adjustment strategy for the transmitted optical power of the PON port is not to adjust the transmitted optical power;

[0195] If the transmitted optical power is less than the maximum optical power, the second adjustment strategy for the transmitted optical power of the PON port is determined to increase the transmitted optical power according to the received optical power of the second ONU that sends the service data request frame to the PON port and the quality assurance optical power threshold.

[0196] Optionally, when the computer executable instruction is executed by the processor 502, the sending optical power is increased according to the receiving optical power of the second ONU that sends the service data request frame to the PON port and the quality assurance optical power threshold, including:

[0197] Determine, according to the device identifier carried in the received service data request frame, a second ONU that sends the service data request frame to the PON port;

[0198] Obtain the received optical power of each second ONU;

[0199] According to the magnitude of the received optical power of the second ONU, the received optical power of each second ONU is sorted to obtain a second minimum optical power;

[0200] If the second minimum optical power is less than the quality assurance optical power threshold, the transmit optical power is gradually increased until the second minimum optical power is greater than or equal to the quality assurance optical power threshold.

[0201] Optionally, when the computer executable instruction is executed by the processor 502, the sending optical power is zero; and the sending optical power is increased according to the receiving optical power of the second ONU that sends the service data request frame to the PON port and the quality assurance optical power threshold, including:

[0202] Detect whether a service data request frame is received;

[0203] If received, the sending optical power is increased according to the receiving optical power of the second ONU that sends the service data request frame to the PON port and the quality assurance optical power threshold.

[0204] According to the technical solution of the embodiment of the present invention, first, a service data request frame received within a specified time range is obtained; the service data request frame carries the device identification of the optical network unit ONU that sends the service data request frame; secondly, according to the device identification, the number of the first ONU that sends the service data request frame within the specified time range is counted to obtain a first number; then, according to the number of MAC addresses of the read ONUs, the number of online ONUs connected to the PON port is counted to obtain a second number; finally, according to the first number and the second number, the first adjustment strategy for the transmission optical power of the PON port is determined. Through the technical solution of the embodiment of the present invention, the first number of the first ONU with service requests can be determined according to the service data request frame received by the PON port, and the first adjustment strategy for the transmission optical power of the PON port can be determined by the ratio of the first ONU to the number of online ONUs, thereby reducing the energy consumption of the equipment on the PON port side.

[0205] The storage medium provided in one embodiment of the present invention can implement each process in the aforementioned optical power adjustment method embodiment and achieve the same functions and effects, which will not be repeated here.

[0206] The storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0207] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0208] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method of the above-mentioned embodiment of the present invention.

[0209] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. An optical power adjustment method, applied to a passive optical network PON port, characterized in that: include: Get the service data request frames received within the specified time range; The service data request frame carries a device identifier of an optical network unit ONU that sends the service data request frame; Counting the number of first ONUs that send the service data request frame within the specified time range according to the device identifier to obtain a first number; According to the number of the read MAC addresses of the ONUs, the number of online ONUs connected to the PON port is counted to obtain a second number; If the ratio of the first number to the second number is greater than or equal to a preset ratio threshold, determining that a first adjustment strategy for the transmit optical power of the PON port is not to adjust the transmit optical power; If the ratio of the first number to the second number is less than a preset ratio threshold and the first number is not zero, determining a first adjustment strategy for the transmit optical power of the PON port is to reduce the transmit optical power according to the receive optical power of the first ONU and the quality assurance optical power threshold; If the ratio of the first number to the second number is less than a preset ratio threshold and the first number is zero, it is determined that a first adjustment strategy for the transmit optical power of the PON port is to reduce the transmit optical power to a minimum power threshold.

2. The method according to claim 1, characterized in that The step of reducing the transmit optical power according to the receive optical power of the first ONU and the quality assurance optical power threshold includes: According to the size of the received optical power of the first ONU, sorting the received optical power of each of the first ONUs to obtain a first minimum optical power; If the first minimum optical power is greater than the quality-guaranteed optical power threshold, the transmit optical power is gradually reduced until the first minimum optical power is less than or equal to the quality-guaranteed optical power threshold.

3. The method according to claim 1, characterized in that Also includes: Detecting the transmitted optical power of the PON port; A second adjustment strategy for the transmit optical power of the PON port is determined according to the transmit optical power and the maximum optical power of the PON port.

4. The method according to claim 3, characterized in that Determining a second adjustment strategy for the transmit optical power of the PON port according to the transmit optical power and the maximum optical power of the PON port includes: If the transmitted optical power is equal to the maximum optical power, determining that the second adjustment strategy for the transmitted optical power of the PON port is not to adjust the transmitted optical power; If the transmitted optical power is less than the maximum optical power, a second adjustment strategy for the transmitted optical power of the PON port is determined to be to increase the transmitted optical power according to the received optical power of the second ONU that sends the service data request frame to the PON port and the quality assurance optical power threshold.

5. The method according to claim 4, characterized in that According to the received optical power of the second ONU that sends the service data request frame to the PON port and the quality assurance optical power threshold, increasing the transmitted optical power, including: Determine, according to the device identifier carried in the received service data request frame, a second ONU that sends the service data request frame to the PON port; Obtaining the received optical power of each of the second ONUs; According to the size of the received optical power of the second ONU, sorting the received optical power of each of the second ONUs to obtain a second minimum optical power; If the second minimum optical power is less than the quality-guaranteed optical power threshold, the transmit optical power is gradually increased until the second minimum optical power is greater than or equal to the quality-guaranteed optical power threshold.

6. The method according to claim 5, characterized in that The sending optical power is zero; and according to the receiving optical power and the quality assurance optical power threshold of the second ONU that sends the service data request frame to the PON port, increasing the sending optical power, including: Detecting whether the service data request frame is received; If received, the sending optical power is increased according to the receiving optical power of the second ONU that sends the service data request frame to the PON port and the quality assurance optical power threshold.

7. An optical power adjustment device, applied to a passive optical network PON port, characterized in that: include: A request frame acquisition module, used to acquire service data request frames received within a specified time range; The service data request frame carries a device identifier of an optical network unit ONU that sends the service data request frame; A first quantity statistics module is used to count the number of first ONUs that send the service data request frame within the specified time range according to the device identifier to obtain a first number; A second quantity counting module is used to count the number of online ONUs connected to the PON port according to the number of media access control addresses MAC addresses of the ONUs read to obtain a second number; A first strategy determination module, configured to determine that a first adjustment strategy for the transmit optical power of the PON port is not to adjust the transmit optical power if a ratio of the first number to the second number is greater than or equal to a preset ratio threshold; If the ratio of the first number to the second number is less than a preset ratio threshold and the first number is not zero, determining a first adjustment strategy for the transmit optical power of the PON port is to reduce the transmit optical power according to the receive optical power of the first ONU and the quality assurance optical power threshold; If the ratio of the first number to the second number is less than a preset ratio threshold and the first number is zero, it is determined that a first adjustment strategy for the transmit optical power of the PON port is to reduce the transmit optical power to a minimum power threshold.

8. An electronic device, characterized in that: It comprises a memory and a processor, wherein the memory stores computer executable instructions, and when the computer executable instructions are executed by the processor, the optical power regulation method according to any one of claims 1 to 6 can be implemented.

9. A storage medium storing computer executable instructions, characterized in that: When the computer executable instructions are executed by a processor, the optical power adjustment method described in any one of claims 1 to 6 can be implemented.