CN114679218A - Optical module power consumption determination method and device - Google Patents

Optical module power consumption determination method and device Download PDF

Info

Publication number
CN114679218A
CN114679218A CN202210261318.XA CN202210261318A CN114679218A CN 114679218 A CN114679218 A CN 114679218A CN 202210261318 A CN202210261318 A CN 202210261318A CN 114679218 A CN114679218 A CN 114679218A
Authority
CN
China
Prior art keywords
optical module
power consumption
actual power
real
temperature
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202210261318.XA
Other languages
Chinese (zh)
Inventor
仝雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN202210261318.XA priority Critical patent/CN114679218A/en
Publication of CN114679218A publication Critical patent/CN114679218A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0795Performance monitoring; Measurement of transmission parameters
    • H04B10/07955Monitoring or measuring power
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0795Performance monitoring; Measurement of transmission parameters

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)

Abstract

The embodiment of the invention provides a method and a device for determining power consumption of an optical module, relates to the technical field of network equipment, and is applied to a processor for controlling the optical module, wherein the method comprises the following steps: acquiring real-time temperature of an optical module acquired in real time; determining actual power consumption corresponding to the real-time temperature based on a corresponding relation between the temperature of the optical module and the actual power consumption; and storing the determined actual power consumption into a storage space in the optical module, so that the network equipment installed with the optical module reads the actual power consumption of the optical module from the storage space. The scheme provided by the embodiment of the invention can be used for determining the actual power consumption of the optical module.

Description

Optical module power consumption determination method and device
Technical Field
The invention relates to the technical field of network equipment, in particular to a method and a device for determining power consumption of an optical module.
Background
The optical module is installed on the network equipment, and can convert an electric signal to be sent of the network equipment into an optical signal and convert an optical signal received by the network equipment into an electric signal, so that the network equipment can realize optical communication through the optical module. Under the current environment-friendly background of energy conservation, emission reduction and carbon neutralization, the power consumption condition of network equipment needs to be determined. For this reason, power consumption of each communication component in the network device needs to be determined separately, and the optical module, which is one of important communication components, needs to determine the power consumption of the optical module accurately.
At present, the rated maximum power consumption of an optical module is marked in operation information provided by a manufacturer of the optical module, but the optical module often does not operate at the maximum power consumption all the time, the actual power consumption of the optical module changes along with the operation of the optical module, but the actual power consumption of the optical module is difficult to determine in the prior art. For this reason it is desirable to provide a method for determining the actual power consumption of a light module.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for determining the power consumption of an optical module so as to determine the actual power consumption of the optical module. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides an optical module power consumption determining method, which is applied to a processor controlling an optical module, and the method includes:
acquiring real-time temperature of the optical module acquired in real time;
determining actual power consumption corresponding to the real-time temperature based on a corresponding relation between the temperature of the optical module and the actual power consumption;
storing the determined actual power consumption into a storage space within the optical module, so that a network device in which the optical module is installed reads the actual power consumption of the optical module from the storage space.
In an embodiment of the present invention, the determining, based on a correspondence between a temperature of an optical module and an actual power consumption, an actual power consumption corresponding to the real-time temperature includes:
And under the condition that the real-time temperature acquired this time is different from the real-time temperature acquired last time, determining the actual power consumption corresponding to the real-time temperature acquired this time based on the corresponding relation between the temperature of the optical module and the actual power consumption.
In an embodiment of the present invention, relationship data indicating a correspondence relationship between a temperature of an optical module and an actual power consumption is stored in: a first storage area in the storage space, the first storage area being: a region outside a constrained region in the storage space, the constrained region being: the area that multi-source agreement MSA stipulates, is used for storing the digital diagnostic monitoring data of said optical module, the said digital diagnostic monitoring data are: data which is obtained by monitoring the optical module and represents the running condition of the optical module;
the determining the actual power consumption corresponding to the real-time temperature based on the corresponding relationship between the temperature of the optical module and the actual power consumption includes:
reading relationship data from the first storage area;
determining an actual power consumption corresponding to the real-time temperature based on a correspondence represented by the relationship data.
In an embodiment of the present invention, the storing the determined actual power consumption into a storage space in the optical module, so that a network device installed with the optical module reads the actual power consumption of the optical module from the storage space, includes:
Storing the determined actual power consumption into a second storage area in the optical module storage space, so that the network device installed with the optical module reads the actual power consumption of the optical module from the second storage area, wherein the second storage area is as follows: a region outside a constrained region in the storage space, the constrained region being: an MSA defines a region for storing digital diagnostic monitoring data for the optical module, the digital diagnostic monitoring data being: and data which is obtained by monitoring the optical module and represents the running condition of the optical module.
In a second aspect, an embodiment of the present invention provides an optical module power consumption determining apparatus, which is applied to a processor for controlling an optical module, where the apparatus includes:
the temperature acquisition module is used for acquiring the real-time temperature of the optical module acquired in real time;
the power consumption determining module is used for determining actual power consumption corresponding to the real-time temperature based on the corresponding relation between the temperature of the optical module and the actual power consumption;
and the power consumption storage module is used for storing the determined actual power consumption into a storage space in the optical module so that the network equipment provided with the optical module reads the actual power consumption of the optical module from the storage space.
In an embodiment of the present invention, the power consumption determining module is specifically configured to:
and under the condition that the real-time temperature acquired this time is different from the real-time temperature acquired last time, determining the actual power consumption corresponding to the real-time temperature acquired this time based on the corresponding relation between the temperature of the optical module and the actual power consumption.
In one embodiment of the present invention, relationship data indicating a correspondence between a temperature of an optical module and an actual power consumption is stored in: a first storage area in the storage space, the first storage area being: a region outside a constrained region in the storage space, the constrained region being: the area that multi-source agreement MSA stipulates, is used for storing the digital diagnostic monitoring data of said optical module, the said digital diagnostic monitoring data are: data which is obtained by monitoring the optical module and represents the running condition of the optical module;
the power consumption determining module is specifically configured to:
reading relationship data from the first storage area;
determining an actual power consumption corresponding to the real-time temperature based on a correspondence represented by the relationship data.
In an embodiment of the present invention, the power consumption storage module is specifically configured to:
Storing the determined actual power consumption into a second storage area in a storage space in the optical module, so that the network device on which the optical module is installed reads the actual power consumption of the optical module from the second storage area, wherein the second storage area is as follows: a region outside a constrained region in the storage space, the constrained region being: an area specified by the MSA for storing digital diagnostic monitoring data of the optical module, the digital diagnostic monitoring data being: and data which is obtained by monitoring the optical module and represents the running condition of the optical module.
In a third aspect, an embodiment of the present invention provides a processor, where the processor is a processor for controlling an optical module, and the processor is configured to execute the method for determining power consumption of the optical module according to any one of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of any one of the first aspect.
In a fifth aspect, embodiments of the present invention also provide a computer program product comprising instructions, which when run on a computer, cause the computer to perform the method steps of any of the first aspects described above.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a processor applied to control an optical module, wherein the processor acquires real-time temperature of the optical module acquired in real time; determining actual power consumption corresponding to the real-time temperature based on a corresponding relation between the temperature of the optical module and the actual power consumption; and storing the determined actual power consumption into a storage space in the optical module, so that the network equipment installed with the optical module reads the actual power consumption of the optical module from the storage space.
As can be seen from the above, based on the operation principle of the electronic device, the increase in temperature of the optical module may cause the increase in current of the optical module, and thus the increase in actual power consumption of the optical module, and the decrease in temperature of the optical module may cause the decrease in current of the optical module, and thus the decrease in actual power consumption of the optical module, that is, there is a corresponding relationship between the actual power consumption of the optical module and the temperature. In this embodiment, first, the real-time temperature of the optical module is determined, and then, based on the correspondence, the actual power consumption corresponding to the real-time temperature of the optical module is determined as the current actual power consumption of the optical module. Therefore, the actual power consumption of the optical module can be determined through the embodiment of the invention, and the actual power consumption of the optical module can be determined without changing the hardware structure of the optical module, so that the embodiment is simple and convenient, is not limited by the hardware structure of the optical module, and can be used for determining the actual power consumption of different optical modules.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a schematic flowchart of a first method for determining power consumption of an optical module according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a second method for determining power consumption of an optical module according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an optical module power consumption determining apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived from the embodiments given herein by one of ordinary skill in the art, are within the scope of the invention.
In order to solve the problem that the actual power consumption of the optical module is difficult to determine in the prior art, embodiments of the present invention provide a method and an apparatus for determining the actual power consumption of the optical module.
The embodiment of the invention provides a method for determining power consumption of an optical module, which is applied to a processor for controlling the optical module, and comprises the following steps:
and acquiring the real-time temperature of the optical module acquired in real time.
And determining the actual power consumption corresponding to the real-time temperature based on the corresponding relation between the temperature of the optical module and the actual power consumption.
And storing the determined actual power consumption into a storage space in the optical module, so that the network equipment provided with the optical module reads the actual power consumption of the optical module from the storage space.
As can be seen from the above, based on the operation principle of the electronic device, the increase in temperature of the optical module may cause the increase in current of the optical module, and thus the increase in actual power consumption of the optical module, and the decrease in temperature of the optical module may cause the decrease in current of the optical module, and thus the decrease in actual power consumption of the optical module, that is, there is a corresponding relationship between the actual power consumption of the optical module and the temperature. In this embodiment, first, the real-time temperature of the optical module is determined, and then, based on the correspondence, the actual power consumption corresponding to the real-time temperature of the optical module is determined as the current actual power consumption of the optical module. Therefore, the actual power consumption of the optical module can be determined through the embodiment of the invention, and the actual power consumption of the optical module can be determined without changing the hardware structure of the optical module, so that the embodiment is simple and convenient, is not limited by the hardware structure of the optical module, and can be used for determining the actual power consumption of different optical modules.
Referring to fig. 1, a schematic flow chart of a first method for determining power consumption of an optical module according to an embodiment of the present invention includes the following steps S101 to S103.
Specifically, the method is applied to a processor for controlling the optical module, and the processor may be a processor installed in the optical module or a processor installed outside the processor, connected to the optical module, and used for controlling the optical module. For example, the processor may be an MCU (micro controller Unit), an FPGA (Field Programmable Gate Array), a CPU (Central Processing Unit), and the like.
The optical module may be any optical module, for example, SFP (Small Form-factor Pluggable Transceiver), SFP + (Small Form-factor Pluggable Plus Transceiver, enhanced Small Package Pluggable Transceiver), SFP28(28Gb/s Small Form-factor Pluggable Transceiver, 28Gb/s Rate Small Package Pluggable Transceiver), SFP-DD (Small Form-factor Pluggable Plus Transceiver, enhanced Small Package Transceiver), QSFP + (QSAD FORM-factor Plumter Transceiver), QSFP28(28Gb/s Quad Small Form-factor Pluggable Transceiver, 28Gb/s Rate Small Package Transceiver), QSFP + (Quad FORM-factor Plus Transceiver, enhanced Quad Small Package Transceiver), QSFP28(28Gb/s Quad-factor Plus Transceiver, 28Gb/s Transceiver), and Quadrature-factor Plus Transceiver (Quadrature-factor Plus Transceiver), etc, OSFP (actual Small Form-factor Pluggable Transceiver, 8-channel Small Form-factor Pluggable Transceiver), DSFP (Dual Small Form-factor Pluggable Transceiver), CFP (Central Form-factor Pluggable Transceiver, 100G Pluggable Transceiver), CFP2(2X Central Form-factor Pluggable Transceiver, 2 times the integration of 100G Pluggable Transceiver).
S101: and acquiring the real-time temperature of the optical module acquired in real time.
Specifically, the real-time temperature of the optical module may be acquired by a temperature sensor mounted on the optical module and then transmitted to the processor.
The temperature sensor may periodically collect a real-time temperature of the optical module according to a preset period, and transmit the collected real-time temperature to the processor after collecting the real-time temperature of the optical module each time.
In addition, the processor may also actively control the temperature sensor to acquire the real-time temperature of the optical module, and the temperature sensor transmits the acquired real-time temperature to the processor after acquiring the real-time temperature.
S102: and determining the actual power consumption corresponding to the real-time temperature based on the corresponding relation between the temperature of the optical module and the actual power consumption.
The corresponding relation may be predetermined, and the temperature section included in the corresponding relation includes a rated temperature section in which the optical module can normally operate, so that the actual power consumption corresponding to the current temperature of the optical module can be found based on the corresponding relation under the condition that the optical module can normally operate. For example, if the optical module is a commercial optical module, the temperature range of the commercial optical module that can normally operate is often 0 ℃ to 70 ℃, the temperature range included in the correspondence may be-5 ℃ to 75 ℃, and if the optical module is an industrial optical module, the temperature range of the industrial optical module that can normally operate is often-40 ℃ to 85 ℃, the temperature range included in the correspondence may be-45 ℃ to 90 ℃.
Specifically, the correspondence relationship may be a correspondence relationship between different temperature intervals and actual power consumption, and the actual power consumption corresponding to different temperatures belonging to the same temperature interval is the same. Then, the temperature interval where the real-time temperature is located may be determined first, and then the actual power consumption corresponding to the temperature interval where the real-time temperature is located may be determined based on the correspondence, as the actual power consumption corresponding to the real-time temperature.
In the present embodiment, the interval length of the temperature interval is not limited, and for example, the interval length may be 1, 3, 5, or the like.
For example, referring to table 1, a table of a correspondence relationship between a temperature range and actual power consumption is provided for the embodiment of the present invention.
Figure BDA0003550224050000071
Figure BDA0003550224050000081
Specifically, the value ranges of the temperature intervals and the values of the actual power consumption corresponding to the temperature intervals, which are referred to in table 1, are only examples, and this embodiment does not limit this.
The correspondence relationship may be expressed in the form of a function, in which the temperature is an independent variable, the actual power consumption is a dependent variable, and the function is an increasing function. Then after determining the real-time temperature, the actual power consumption corresponding to the real-time temperature may be calculated based on the function.
For example, the function may be a linear function, e.g., the function may be: w is nT + m, where W is the actual power consumption, T is the temperature, and n and m are preset parameters. Or the function may be a piecewise function or other function.
In an embodiment of the present invention, the correspondence relationship may be determined through steps S301 to S303 shown in fig. 3, which will not be described in detail herein.
S103: and storing the determined actual power consumption into a storage space in the optical module, so that the network equipment provided with the optical module reads the actual power consumption of the optical module from the storage space.
Specifically, the optical module may store actual power consumption determined by the optical module to a fixed address in the optical module, so that the network device on which the optical module is installed may actively read the actual power consumption of the optical module from the fixed address, and then store the read actual power consumption in a storage space of the network device to wait for a management device to read the actual power consumption, or directly send the actual power consumption to the management device, so that a user may determine the actual power consumption of the optical module through the management device.
As can be seen from the above, based on the operation principle of the electronic device, the increase in temperature of the optical module may cause the increase in current of the optical module, and thus the increase in actual power consumption of the optical module, and the decrease in temperature of the optical module may cause the decrease in current of the optical module, and thus the decrease in actual power consumption of the optical module, that is, there is a corresponding relationship between the actual power consumption of the optical module and the temperature. In this embodiment, first, the real-time temperature of the optical module is determined, and then, based on the correspondence, the actual power consumption corresponding to the real-time temperature of the optical module is determined as the current actual power consumption of the optical module. Therefore, the actual power consumption of the optical module can be determined through the embodiment of the invention, and the actual power consumption of the optical module can be determined without changing the hardware structure of the optical module, so that the embodiment is simple and convenient, is not limited by the hardware structure of the optical module, and can be used for determining the actual power consumption of different optical modules.
Referring to fig. 2, a flowchart of a second method for determining power consumption of an optical module according to an embodiment of the present invention is shown, and compared with the embodiment shown in fig. 1, the step S102 may be implemented by the following step S102A.
S102A: and under the condition that the real-time temperature acquired this time is different from the real-time temperature acquired last time, determining the actual power consumption corresponding to the real-time temperature acquired this time based on the corresponding relation between the temperature of the optical module and the actual power consumption.
Specifically, after the processor acquires the real-time temperature each time, the acquired real-time temperature may be stored in the memory of the optical module, after the processor acquires the real-time temperature this time, the real-time temperature may be compared with the real-time temperature stored in the memory and acquired last time, and if the real-time temperature acquired this time is the same as the real-time temperature acquired last time, the actual power consumption determined based on the correspondence is also the same, so that the actual power consumption may not need to be determined again. Only when the real-time temperature obtained this time is different from the real-time temperature obtained last time, the actual power consumption determined this time based on the correspondence may be different from the actual power consumption determined last time, and the actual power consumption also needs to be determined again.
Specifically, the manner of determining the actual power consumption is similar to that of step S102, and is not described herein again.
As can be seen from the above, in this embodiment, only when the real-time temperature obtained this time is different from the real-time temperature obtained last time, the actual power consumption needs to be determined again, otherwise, the actual power consumption does not need to be determined again, so that the number of times of determining the actual power consumption can be reduced, and the total consumed computing resources in the process of determining the actual power consumption by the processor are saved.
In one embodiment of the present invention, relationship data indicating a correspondence relationship between the temperature of the optical module and the actual power consumption is stored in: a first storage area in the storage space, where the first storage area is: a region outside the constraint region in the storage space, wherein the constraint region is: a region defined by an MSA (Multi-Source Agreement) and configured to store digital diagnostic monitoring data of the optical module, where the digital diagnostic monitoring data is: and data which is obtained by monitoring the optical module and represents the running condition of the optical module.
Specifically, if the optical module conforms to the MSA, a fixed constraint area for storing configuration data exists in a storage space of the optical module, and other data cannot be written in the constraint area, the relationship data may be stored in a first storage area outside the constraint area, where the first storage area may be a preset fixed area.
For example, if the optical module is SFP, SFP + or SFP28 and includes an RJ45(Registered Jack 45) electrical module, the first storage area may be an area with an address of D0h in the storage space, and D0h represents a 16-ary address.
If the optical module is SFP-DD, the first storage area may be Bank2 Page00h, i.e., Page00 in group 2 in the storage space.
If the optical module is QSFP + or QSFP28, the first storage area may be Page05h, that is, the 05 th Page in the storage space.
If the optical module is QSFP-DD, OSFP or DSFP, the first storage area may be Bank5Page00h, that is, the 00 th Page in the storage space.
If the optical module is a CFP or CFP2 package, the first storage area may be NVR6 (nonvolatile Register 6) in Non-Volatile Register (NVR).
The position of the first storage area is merely an example, and in this embodiment, any area except the constrained area in the storage space may be selected as the first storage area.
In addition, the above-mentioned relational data may be stored in the form of a two-dimensional data table, where the two-dimensional data table includes two columns for storing temperature data and actual power consumption data, respectively, and the temperature data and the actual power consumption data corresponding to each other are stored in the same row.
In the case where the above-mentioned relationship data is stored in the first storage space, the above-mentioned step S102 can be realized by the following steps a to B.
Step A: and reading the relation data from the first storage area.
And B, step B: and determining the actual power consumption corresponding to the real-time temperature based on the corresponding relation represented by the relation data.
As can be seen from the above, in the embodiment of the present invention, the relationship data indicating the correspondence relationship is stored in the first storage area outside the constraint area, so that the stored relationship data does not affect the configuration data stored in the storage space and specified by the MSA.
In another embodiment of the present invention, the step S103 can be implemented by the following step C.
And C: and storing the determined actual power consumption into a second storage area in the storage space of the optical module, so that the network equipment provided with the optical module reads the actual power consumption of the optical module from the second storage area.
Wherein the second storage area is: the area outside the constrained area in the storage space.
Specifically, when the relationship data is stored in the first storage area, the second storage area is an area of the storage space except for the constraint area and the first storage area, so that the stored actual power consumption does not conflict with the configuration data and the relationship data of the optical module. The data amount of the actual power consumption is often much smaller than the data amount of the relational data described above, and therefore the size of the second storage area may be much smaller than the size of the first storage area, for example, the data amount of the actual power consumption is 2 bytes.
For example, if the optical module is SFP, SFP + or SFP28 and includes an RJ45 electrical module, the second memory area may be the Byte120-121 in the area with an address A2h in the memory space, where A2h represents a 16-ary address.
If the optical module is an SFP-DD, the second storage area may be Byte20-21 in Page00h, that is, 20 th-21 th bytes in Page00 of the storage space.
If the optical module is QSFP + or QSFP28, the second storage area may be Byte28-29 in Page00h, that is, 28 th-29 th bytes in Page00 of the storage space.
If the optical module is QSFP-DD, OSFP or DSFP, the second storage region may be Byte24-25 in Bank0Page00h, that is, 24 th to 25 th bytes in Page00 of group 0 of the storage space.
If the optical module is CFP or CFP2, the second storage area may be an area with an address of a034h in VR (Volatile Register 1) of VR1 (Volatile Register), where a034h represents a 16-ary address.
The location of the second storage area is merely an example, and in this embodiment, any area except the constrained area in the storage space may be selected as the second storage area.
As can be seen from the above, in the embodiment of the present invention, the determined actual power consumption is stored in the second storage area outside the constraint area, so that the stored actual power consumption does not affect the configuration data, which is stored in the storage space and is specified by the MSA.
In addition, in the embodiment of the present invention, the correspondence between the temperature and the actual power consumption may be determined through the following steps D to F.
The executing body of this embodiment may be the same as the aforementioned optical module power consumption determining method, and all of them are processors for controlling the optical module, that is, after the processor determines the correspondence, the processor may write the relationship data representing the correspondence into the storage space in the optical module, and then determine the actual power consumption of the optical module by the aforementioned optical module power consumption determining method directly based on the correspondence determined by the processor.
In addition, the execution subject of this embodiment may be another device, and after the other device determines the correspondence, the other device may write relationship data indicating the correspondence into a storage space in an optical module, so that the processor controlling the optical module may determine the actual power consumption of the optical module by the optical module power consumption determination method based on the correspondence.
Step D: and measuring the power supply voltage and current of the optical module in the operation process at different preset temperatures respectively.
Specifically, the optical Module may be mounted on an MCB (Module company Board), which includes a temperature control function, and the MCB may heat and cool the optical Module, so that the temperature of the optical Module reaches each preset temperature.
In addition, since all temperatures at which the optical module can normally operate cannot be regarded as preset temperatures in an exhaustive manner, in the embodiment of the present invention, when the preset temperatures are set, a preset step value may be adopted to select a part of the temperatures as the preset temperatures, where the step value is a difference between two adjacent preset temperatures. For example, the step value may be 5 ℃, and the preset temperatures may be 0 ℃, 5 ℃, 10 ℃, 15 ℃, and the like.
Furthermore, at different preset temperatures, the power supply voltage and current of the direct current power supply supplying power to the optical module can be respectively measured and used as the power supply voltage and current of the optical module in the operation process.
And E, step E: and calculating the actual power consumption of the optical module at each preset temperature based on the power supply voltage and current measured at the preset temperature.
Specifically, for each preset temperature, a product of a supply voltage and a current measured at the preset temperature may be calculated as an actual power consumption of the optical module at the preset temperature.
Step F: and determining the corresponding relation between different temperatures of the optical module and the actual power consumption based on the actual power consumption corresponding to each preset temperature obtained through calculation.
Specifically, for each preset temperature, a corresponding relationship between each temperature in the target temperature interval and the calculated actual power consumption of the optical module at the preset temperature is established. The target temperature interval is an interval which is greater than or equal to the preset temperature and smaller than the target preset temperature, and the numerical value of the target preset temperature is greater than the numerical value of the preset temperature and is adjacent to the numerical value of the preset temperature.
As can be seen from the above, in the embodiment of the present invention, before determining the actual power consumption of the optical module based on the correspondence, the actual power consumption of the optical module at different preset temperatures is measured, so as to determine the correspondence between the different temperatures of the optical module and the actual power consumption, and further, the processor controlling the optical module can determine the actual power consumption of the optical module based on the correspondence.
Corresponding to the foregoing optical module power consumption determining apparatus, an embodiment of the present invention provides an optical module power consumption determining apparatus.
Referring to fig. 3, a schematic structural diagram of an optical module power consumption determining apparatus provided in an embodiment of the present invention is applied to a processor for controlling an optical module, where the apparatus includes:
the temperature acquisition module 301 is configured to acquire a real-time temperature of the optical module acquired in real time;
A power consumption determining module 302, configured to determine actual power consumption corresponding to the real-time temperature based on a corresponding relationship between a temperature of an optical module and the actual power consumption;
a power consumption storing module 303, configured to store the determined actual power consumption into a storage space in the optical module, so that the network device installed with the optical module reads the actual power consumption of the optical module from the storage space.
As can be seen from the above, based on the operation principle of the electronic device, the increase in temperature of the optical module may cause the increase in current of the optical module, and thus the increase in actual power consumption of the optical module, and the decrease in temperature of the optical module may cause the decrease in current of the optical module, and thus the decrease in actual power consumption of the optical module, that is, there is a corresponding relationship between the actual power consumption of the optical module and the temperature. In this embodiment, first, the real-time temperature of the optical module is determined, and then, based on the correspondence, the actual power consumption corresponding to the real-time temperature of the optical module is determined as the current actual power consumption of the optical module. Therefore, the actual power consumption of the optical module can be determined through the embodiment of the invention, and the actual power consumption of the optical module can be determined without changing the hardware structure of the optical module, so that the embodiment is simple and convenient, is not limited by the hardware structure of the optical module, and can be used for determining the actual power consumption of different optical modules.
In an embodiment of the present invention, the power consumption determining module 302 is specifically configured to:
and under the condition that the real-time temperature obtained this time is different from the real-time temperature obtained last time, determining the actual power consumption corresponding to the real-time temperature obtained this time based on the corresponding relation between the temperature of the optical module and the actual power consumption.
As can be seen from the above, in this embodiment, only when the real-time temperature obtained this time is different from the real-time temperature obtained last time, the actual power consumption needs to be determined again, otherwise, the actual power consumption does not need to be determined again, so that the number of times of determining the actual power consumption can be reduced, and the total consumed computing resources in the process of determining the actual power consumption by the processor are saved.
In one embodiment of the present invention, relationship data indicating a correspondence between a temperature of an optical module and an actual power consumption is stored in: a first storage area in the storage space, the first storage area being: a region outside a constrained region in the storage space, the constrained region being: an MSA defines a region for storing digital diagnostic monitoring data for the optical module, the digital diagnostic monitoring data being: data which is obtained by monitoring the optical module and represents the running condition of the optical module;
The power consumption determining module 302 is specifically configured to:
reading relationship data from the first storage area;
determining an actual power consumption corresponding to the real-time temperature based on a correspondence represented by the relationship data.
As can be seen from the above, in the embodiment of the present invention, the relationship data indicating the correspondence relationship is stored in the first storage area outside the constraint area, so that the stored relationship data does not affect the configuration data stored in the storage space and specified by the MSA.
In an embodiment of the present invention, the power consumption storage module 303 is specifically configured to:
storing the determined actual power consumption into a second storage area in the optical module storage space, so that the network device installed with the optical module reads the actual power consumption of the optical module from the second storage area, wherein the second storage area is as follows: a region outside a constrained region in the storage space, the constrained region being: an MSA defines a region for storing digital diagnostic monitoring data for the optical module, the digital diagnostic monitoring data being: and data which is obtained by monitoring the optical module and represents the running condition of the optical module.
As can be seen from the above, in the embodiment of the present invention, the determined actual power consumption is stored in the second storage area outside the constraint area, so that the stored actual power consumption does not affect the configuration data, which is stored in the storage space and is specified by the MSA.
The embodiment of the invention also provides a processor, which is used for controlling the optical module and is used for executing any one of the method steps of the method for determining the power consumption of the optical module.
When the processor provided by the embodiment of the invention is applied to determine the power consumption of the optical module, based on the operation principle of an electronic device, the current of the optical module is increased due to the increase of the temperature of the optical module, so that the actual power consumption of the optical module is increased, and the current of the optical module is reduced due to the decrease of the temperature of the optical module, so that the actual power consumption of the optical module is reduced, that is, the actual power consumption of the optical module and the temperature have a corresponding relationship. In this embodiment, first, the real-time temperature of the optical module is determined, and then, based on the correspondence, the actual power consumption corresponding to the real-time temperature of the optical module is determined as the current actual power consumption of the optical module. Therefore, the actual power consumption of the optical module can be determined through the embodiment of the invention, and the actual power consumption of the optical module can be determined without changing the hardware structure of the optical module, so that the embodiment is simple and convenient, is not limited by the hardware structure of the optical module, and can be used for determining the actual power consumption of different optical modules.
In another embodiment of the present invention, a computer-readable storage medium is further provided, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of any one of the above-mentioned power consumption determination methods for a light module.
When the computer-readable storage medium provided by the embodiment of the invention is applied to determine the power consumption of the optical module, based on the operation principle of an electronic device, the increase in the temperature of the optical module can cause the increase in the current of the optical module, so that the actual power consumption of the optical module is increased, and the decrease in the temperature of the optical module can cause the decrease in the current of the optical module, so that the actual power consumption of the optical module is decreased, that is, a corresponding relationship exists between the actual power consumption of the optical module and the temperature. In this embodiment, first, the real-time temperature of the optical module is determined, and then, based on the correspondence, the actual power consumption corresponding to the real-time temperature of the optical module is determined as the current actual power consumption of the optical module. Therefore, the actual power consumption of the optical module can be determined through the embodiment of the invention, and the actual power consumption of the optical module can be determined without changing the hardware structure of the optical module, so that the embodiment is simple and convenient, is not limited by the hardware structure of the optical module, and can be used for determining the actual power consumption of different optical modules.
In a further embodiment provided by the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of any of the light module power consumption determination methods in the above embodiments.
When the computer program product provided by the embodiment of the invention is applied to determine the power consumption of the optical module, based on the operation principle of an electronic device, the current of the optical module is increased due to the temperature increase of the optical module, so that the actual power consumption of the optical module is increased, and the current of the optical module is reduced due to the temperature reduction of the optical module, so that the actual power consumption of the optical module is reduced, that is, a corresponding relation exists between the actual power consumption of the optical module and the temperature. In this embodiment, first, the real-time temperature of the optical module is determined, and then, based on the correspondence, the actual power consumption corresponding to the real-time temperature of the optical module is determined as the current actual power consumption of the optical module. Therefore, the actual power consumption of the optical module can be determined through the embodiment of the invention, and the actual power consumption of the optical module can be determined without changing the hardware structure of the optical module, so that the embodiment is simple and convenient, is not limited by the hardware structure of the optical module, and can be used for determining the actual power consumption of different optical modules.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to be performed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may 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 Disk (SSD)), among others.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on differences from other embodiments. In particular, as for the apparatus, the processor, the storage medium and the computer program embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method for determining power consumption of an optical module is applied to a processor for controlling the optical module, and the method comprises the following steps:
acquiring real-time temperature of the optical module acquired in real time;
determining actual power consumption corresponding to the real-time temperature based on a corresponding relation between the temperature of the optical module and the actual power consumption;
storing the determined actual power consumption into a storage space within the optical module, so that a network device in which the optical module is installed reads the actual power consumption of the optical module from the storage space.
2. The method of claim 1, wherein determining the actual power consumption corresponding to the real-time temperature based on the correspondence between the temperature of the light module and the actual power consumption comprises:
and under the condition that the real-time temperature obtained this time is different from the real-time temperature obtained last time, determining the actual power consumption corresponding to the real-time temperature obtained this time based on the corresponding relation between the temperature of the optical module and the actual power consumption.
3. The method according to claim 1, characterized in that the relational data representing the correspondence between the temperature of the light module and the actual power consumption is stored in: a first storage area in the storage space, the first storage area being: a region outside a constrained region in the storage space, the constrained region being: the area that multi-source agreement MSA stipulates, is used for storing the digital diagnostic monitoring data of said optical module, the said digital diagnostic monitoring data are: data which is obtained by monitoring the optical module and represents the running condition of the optical module;
the determining the actual power consumption corresponding to the real-time temperature based on the corresponding relationship between the temperature of the optical module and the actual power consumption includes:
reading relationship data from the first storage area;
determining an actual power consumption corresponding to the real-time temperature based on a correspondence represented by the relationship data.
4. The method according to any of claims 1-3, wherein said storing the determined actual power consumption into a storage space within the light module, such that a network device in which the light module is installed reads the actual power consumption of the light module from the storage space, comprises:
Storing the determined actual power consumption into a second storage area in a storage space in the optical module, so that the network device on which the optical module is installed reads the actual power consumption of the optical module from the second storage area, wherein the second storage area is as follows: a region outside a constrained region in the storage space, the constrained region being: an area specified by the MSA for storing digital diagnostic monitoring data of the optical module, the digital diagnostic monitoring data being: and data which is obtained by monitoring the optical module and represents the running condition of the optical module.
5. An apparatus for determining power consumption of an optical module, the apparatus being applied to a processor for controlling the optical module, the apparatus comprising:
the temperature acquisition module is used for acquiring the real-time temperature of the optical module acquired in real time;
the power consumption determining module is used for determining actual power consumption corresponding to the real-time temperature based on the corresponding relation between the temperature of the optical module and the actual power consumption;
and the power consumption storage module is used for storing the determined actual power consumption into a storage space in the optical module so that the network equipment provided with the optical module reads the actual power consumption of the optical module from the storage space.
6. The apparatus of claim 5, wherein the power consumption determination module is specifically configured to:
and under the condition that the real-time temperature obtained this time is different from the real-time temperature obtained last time, determining the actual power consumption corresponding to the real-time temperature obtained this time based on the corresponding relation between the temperature of the optical module and the actual power consumption.
7. The apparatus of claim 5, wherein the relationship data representing the correspondence between the temperature of the light module and the actual power consumption is stored in: a first storage area in the storage space, the first storage area being: a region outside a constrained region in the storage space, the constrained region being: a region specified by a multi-source agreement MSA for storing digital diagnostic monitoring data of the optical module, the digital diagnostic monitoring data being: data which is obtained by monitoring the optical module and represents the running condition of the optical module;
the power consumption determining module is specifically configured to:
reading relationship data from the first storage area;
determining an actual power consumption corresponding to the real-time temperature based on a correspondence represented by the relationship data.
8. The apparatus according to any one of claims 5 to 7, wherein the power consumption storage module is specifically configured to:
Storing the determined actual power consumption into a second storage area in the optical module storage space, so that the network device installed with the optical module reads the actual power consumption of the optical module from the second storage area, wherein the second storage area is as follows: a region outside a constrained region in the storage space, the constrained region being: an MSA defines a region for storing digital diagnostic monitoring data for the optical module, the digital diagnostic monitoring data being: and data which is obtained by monitoring the optical module and represents the running condition of the optical module.
9. A processor, characterized in that the processor is a processor for controlling a light module, and the processor is configured to execute the light module power consumption determination method according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
CN202210261318.XA 2022-03-16 2022-03-16 Optical module power consumption determination method and device Withdrawn CN114679218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210261318.XA CN114679218A (en) 2022-03-16 2022-03-16 Optical module power consumption determination method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210261318.XA CN114679218A (en) 2022-03-16 2022-03-16 Optical module power consumption determination method and device

Publications (1)

Publication Number Publication Date
CN114679218A true CN114679218A (en) 2022-06-28

Family

ID=82075054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210261318.XA Withdrawn CN114679218A (en) 2022-03-16 2022-03-16 Optical module power consumption determination method and device

Country Status (1)

Country Link
CN (1) CN114679218A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100103091A1 (en) * 2008-10-29 2010-04-29 Advanced Optoelectronic Technology Inc. Light emitting diode array, driving system thereof and liquid crystal display using the same
US20110161685A1 (en) * 2009-12-31 2011-06-30 Acer Incorporated Temperature Control Method and Electronic Device Thereof
CN102870433A (en) * 2012-06-30 2013-01-09 华为技术有限公司 Method, apparatus and system for wavelength adjustment
CN103401607A (en) * 2013-07-09 2013-11-20 青岛海信宽带多媒体技术有限公司 Method and device for acquiring monitoring temperature of optical module
US20140079083A1 (en) * 2012-09-19 2014-03-20 Oclaro Japan, Inc. Optical module and method of controlling optical module
CN104919347A (en) * 2015-02-12 2015-09-16 索尔思光电(成都)有限公司 Method for improving laser emitter power monitoring and/or reporting precision, light emitter, optical module and optical communication system
JP2016134035A (en) * 2015-01-20 2016-07-25 富士通株式会社 Information processing device, power control method, and power control program
US20160253230A1 (en) * 2015-02-26 2016-09-01 Alibaba Group Holding Limited Method and apparatus for predicting gpu malfunctions
WO2016170801A1 (en) * 2015-04-20 2016-10-27 住友電気工業株式会社 Optical transceiver, optical communication device, and method for controlling light-receiving element
CN107566624A (en) * 2017-08-25 2018-01-09 维沃移动通信有限公司 A kind of power consumption of terminal and the display methods of temperature and terminal
JP2018033023A (en) * 2016-08-25 2018-03-01 三菱電機株式会社 Subscriber line termination device and control method
CN114069382A (en) * 2022-01-12 2022-02-18 日照市艾锐光电科技有限公司 10G-PON OLT optical module based on temperature control direct modulation laser

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100103091A1 (en) * 2008-10-29 2010-04-29 Advanced Optoelectronic Technology Inc. Light emitting diode array, driving system thereof and liquid crystal display using the same
US20110161685A1 (en) * 2009-12-31 2011-06-30 Acer Incorporated Temperature Control Method and Electronic Device Thereof
CN102870433A (en) * 2012-06-30 2013-01-09 华为技术有限公司 Method, apparatus and system for wavelength adjustment
US20140079083A1 (en) * 2012-09-19 2014-03-20 Oclaro Japan, Inc. Optical module and method of controlling optical module
CN103401607A (en) * 2013-07-09 2013-11-20 青岛海信宽带多媒体技术有限公司 Method and device for acquiring monitoring temperature of optical module
JP2016134035A (en) * 2015-01-20 2016-07-25 富士通株式会社 Information processing device, power control method, and power control program
CN104919347A (en) * 2015-02-12 2015-09-16 索尔思光电(成都)有限公司 Method for improving laser emitter power monitoring and/or reporting precision, light emitter, optical module and optical communication system
US20160253230A1 (en) * 2015-02-26 2016-09-01 Alibaba Group Holding Limited Method and apparatus for predicting gpu malfunctions
WO2016170801A1 (en) * 2015-04-20 2016-10-27 住友電気工業株式会社 Optical transceiver, optical communication device, and method for controlling light-receiving element
JP2018033023A (en) * 2016-08-25 2018-03-01 三菱電機株式会社 Subscriber line termination device and control method
CN107566624A (en) * 2017-08-25 2018-01-09 维沃移动通信有限公司 A kind of power consumption of terminal and the display methods of temperature and terminal
CN114069382A (en) * 2022-01-12 2022-02-18 日照市艾锐光电科技有限公司 10G-PON OLT optical module based on temperature control direct modulation laser

Similar Documents

Publication Publication Date Title
US10663991B2 (en) Determining parameters of air-cooling mechanisms
JP5270315B2 (en) Automatic meter reading method, automatic meter reading system, automatic meter reading device, and smart meter
US20140096146A1 (en) Translating time-stamped events to performance indicators
CN108173905B (en) Resource allocation method and device and electronic equipment
US20110251966A1 (en) Source Aware Data Center Power Profiles
CN115186158B (en) Abnormal data determination method, electronic device and storage medium
KR20110086066A (en) Calculation device, system management device, calculation method, and program
CN110136209B (en) Camera calibration method and device and computer readable storage medium
EP3594766A1 (en) Data collection system and data collection method
US20120174231A1 (en) Assessing System Performance Impact of Security Attacks
CN110059939A (en) A kind of risk checking method and device
CN114500339A (en) Node bandwidth monitoring method and device, electronic equipment and storage medium
CN114679218A (en) Optical module power consumption determination method and device
JP2012065284A (en) Network scanner, information processor, and network scanning system
CN114969274B (en) Data processing system based on block chain prediction machine
CN113220705A (en) Slow query identification method and device
JP2017162046A (en) Sensor data processing apparatus, sensor data processing system, sensor data processing method, and sensor data processing program
CN108459945B (en) Electronic equipment and control method of running state thereof
CN116011677A (en) Time sequence data prediction method and device, electronic equipment and storage medium
CN114018333A (en) Monitoring system and method of chemical grouting recorder
US8515698B2 (en) Digital power meter communication system, method and computer-readable storage medium for storing thereof
WO2013129061A1 (en) Control system for simultaneous number of connections, control server for simultaneous number of connections, control method for simultaneous number of connections and control program for simultaneous number of connections
CN110674586B (en) Data processing method and device
US20140028466A1 (en) Method and server for monitoring energy source
CN112710915B (en) Method, device, electronic equipment and computer storage medium for monitoring power equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20220628