Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The system architecture and business scenario of description of the embodiment of the present invention are to more clearly illustrate implementation of the present invention
The technical solution of example, does not constitute the restriction for technical solution provided in an embodiment of the present invention, those of ordinary skill in the art
It is found that technical solution provided in an embodiment of the present invention is for similar with the differentiation of system architecture and the appearance of new business scene
The technical issues of, it is equally applicable.
The technical term that the embodiment of the present invention uses includes the following:
MPU:Main Processing Unit, main control module;
LPU:Line Processing Unit, business module;
SFU:Switch Fabric Unit, Switching Module;
SPD:Serial Presence Detect, serial type memory (join by the work of storage service functional module LPU, SFU
Number);
CP:Control Processor;Control processor;
MP:Management Processor;Management processor;
MCU:Microprogram Control Unit;Microprocessor;
Basic principle of the invention are as follows: the control module of communication equipment can be accurately to power supply/load matched management weight
Want data to be counted, to power supply module usage quantity calculate when, can according to each business function module with
And the actual power loss numerical value of blower module in different usage situations calculates optimal power supply module usage quantity, that is, executes
Optimal power supply/load matched management, therefore it is capable of the service efficiency of more efficient promotion power supply module, to reduce electric energy
Consumption.
The above method is described in detail combined with specific embodiments below.Shown in referring to Fig.1, the embodiment of the present invention is mentioned
The communication equipment of confession includes: at least one control module, at least one business function module, blower module and at least one confession
Power supply module;Wherein the management processor (MP) of the control module connects at least one described business function module, described
Blower module and at least one described power supply module;At least one described control mould of each power supply module connection
Block, at least one business function module, at least one blower module.Illustratively, the communication in Fig. 1 includes two control modules
11, one of them is main control module MPU11-1, another for from control module MPU11-2, the configuration of this master-slave mode is advantageous
It can be complete by another substitution, working mechanism when the redundancy ability for improving communication equipment, one damage wherein or shutdown
It is identical;Control module 11 includes the CP and MP by C-bus (chip-bus, chip bus) connection, C-bus communication bus
Generally select ether connection, also may be selected it is other as PCIE (Peripheral Component Interface Express, always
Line and interface standard), the types such as USB (Universal Serial Bus, universal serial bus).
MP on main control module 11-1 connects power supply module 12 to power supply module by P-bus communication bus
It is managed and controls, P-bus communication bus is generally I2C bus, and other such as Can-bus or UART types also may be selected.
MP on main control module 11-1 connects blower module 13 by F-bus communication bus and blower module is managed and is controlled,
And communicated with the MCU processor on blower module, F-bus communication bus is generally I2C (Inter-Integrated
Circuit-bus, twin wire universal serial bus) bus, it also may be selected other such as Can-bus (Controller Area
Network-bus, CAN bus) or the types such as UART, the SPD memory of blower module store blower module
Running parameter.MP on main control module 11-1 passes through S-bus communication bus connection business function module 14 (LPU and SFU)
It is managed and controls, S-bus communication bus is generally I2C bus, and other such as UART types, business function mould also may be selected
Block 14 includes running parameter of the SPD memory to store LPU or SFU.Each power supply module passes through power supply line POWER
Connect at least one control module, at least one business function module and at least one blower module.
In the SPD memory of LPU, one group of power consumption of storage maps array in the form of number of ports and power consumption mapping array,
Such as following totally 17 power consumption values, each power consumption value will be stored in a kind of LPU for supporting 16*40G user interface, SPD
A kind of corresponding number of ports service condition, as shown in table 1:
LW0 |
Whole 40G interfaces do not use |
LW1 |
Only use 1 40G interface |
LW2 |
Only use 2 40G interfaces |
LW3 |
Only use 3 40G interfaces |
LW4 |
Only use 4 40G interfaces |
LW5 |
Only use 5 40G interfaces |
LW6 |
Only use 6 40G interfaces |
LW7 |
Only use 7 40G interfaces |
LW8 |
Only use 8 40G interfaces |
LW9 |
Only use 9 40G interfaces |
LW10 |
Only use 10 40G interfaces |
LW11 |
Only use 11 40G interfaces |
LW12 |
Only use 12 40G interfaces |
LW13 |
Only use 13 40G interfaces |
LW14 |
Only use 14 40G interfaces |
LW15 |
Only use 15 40G interfaces |
LW16 |
16 40G interfaces all use |
The number of ports and power consumption that 1 16*40G interface LPU of table is provided map array
For LPU, each corresponds to the use power consumption value for using number of ports, is that LPU is using the quantity number of ports
Under maximum power dissipation numerical value, be to design to complete the precise information that obtains using test fixture actual test of acceptance phase in LPU, should
Data are also related to the hardware version of LPU, and different hardware versions may correspond to different numerical value.In the SPD memory of SFU
In, one group of SFU business interface number of storage and power consumption are mapped into array, data composition and source and LPU all fours.Simultaneously
SFU is also related to the hardware version of LPU using relevant maximum power dissipation numerical value based on interface, and different hardware versions may be right
Answer different numerical value.
In the SPD memory of blower module, one group of revolving speed relevant to rotation speed of the fan of storage and power consumption are mapped into array,
Since rotation speed of the fan is continuous variable, goes division rotation speed of the fan related to the design of specific equipment according to how many ratio, turn
The division proportion of speed is changeable, such as can go to divide according to 5% revolving speed grade, can also go to draw according to 1% revolving speed grade
Point etc..The following are a demonstrations to divide case, as shown in table 2:
A kind of blower module of table 2 is based on revolving speed and power consumption maps array
Maximum power dissipation numerical value of the blower module based on revolving speed is also related to the hardware version of blower module, different hardware versions
Originally different numerical value may be corresponded to.
Based on above-mentioned communication equipment, a kind of method for managing power supply that the embodiment of the present invention provides includes the following steps:
101, it is maximum using the interface actually used in power consumption and each business function module to obtain itself for control module
Number, and the number of ports according to each business function module and power consumption mapping array obtain the maximum of each business function module and use
Power consumption.
It wherein, include that number of ports and maximum use power consumption in the number of ports of each business function module and power consumption mapping array
Corresponding relationship.
Specifically, all power supply modules in place will be in power supply in equipment after being powered on starting for the first time due to equipment
Working condition.MP processor on main control module will be deposited on the signal scanning to equipment in place of foundation business function module
All modules classification and quantity, then including power supply module, blower module, LPU, SFU and MPU pass through S-bus
Communication bus according to this reads number of ports and power consumption the mapping array stored in SPD in LPU module, SFU module, at storage to MP
It manages spare in device local storage.The revolving speed and power consumption that store in SPD on blower module are mapped number by F-bus communication bus
Group is read according to this, is stored spare into MP processor local storage.Communication equipment in the process of running, on main control module
If MP processor scanning is stored in SPD on LPU to there is LPU to be newly inserted into equipment, by S-bus communication bus being newly inserted into
Number of ports and power consumption mapping array are read, and are stored spare into MP processor local storage.If scanning to have LPU module from
It is extracted in equipment, then the MP processor on main control module is needed from local storage the number of ports and power consumption of corresponding LPU
Array data is mapped to remove.Similarly correspond to SFU, blower module operation it is also similar with the operation to LPU.In a step 101, main
The specifically used number of ports of MP in control module LPU, SFU present on scanning device according to this, search the most ambassador of LPU, SFU
Use power consumption value.
102, control module is maximum true using power consumption using the maximum of power consumption and each business function module according to itself
Determine the use power consumption of blower module.
Wherein in step 102, specifically: control module uses power consumption and each business function module according to itself maximum
Maximum the initial speed of blower module is estimated using power consumption;Wind is obtained according to initial speed and revolving speed and power consumption mapping array
The use power consumption of module is fanned, includes wherein revolving speed and the corresponding relationship using power consumption in revolving speed and power consumption mapping array.Specifically,
In step 102, MP uses power consumption, the maximum of SFU to use the maximum power dissipation number of power consumption and main control module itself maximum of LPU
Value is cumulative: temporarily label is.MP is according to Wlsm numerical value, thus it is speculated that a fan initial speed, and search revolving speed and reflected with power consumption
Array is penetrated, find the maximum initial power consumption number of corresponding blower module: temporarily label is.Meanwhile MP processor also needs to pass through
Rotation speed of the fan initial value is sent to the MCU on blower module by F-bus communication bus, to control fan work at this initial turn
Speed.
103, control module uses power consumption and wind using power consumption, the maximum of each business function module according to itself maximum
The use power consumption of fan module determines total power consumption.
MP on main control module calculates the total power consumption on communication equipment: Wall=Wlsm+ blower module quantity * Wf.
After step 102 before step 103, further includes: control module adjusts initial speed according to environment temperature, due to
The power consumption Wlsm of LPU, SFU and MPU, are not unique factors for influencing blower module work, and rotation speed of the fan also uses machine with equipment
Room environment temperature is related, therefore, can be according in subsequent equipment running process according to the fan initial speed that Wlsm numerical value determines
It is adjusted according to the practical radiating requirements of equipment.After MP processor needs equal rotation speed of the fan basicly stable, record and store with
The corresponding fan maximum (top) speed of Wlsm numerical value, and go to update aforementioned Wf numerical value using the maximum (top) speed, and standard is calculated again
True Wall numerical value.
104, control module determines the usage quantity of power supply module according to total power consumption.
Illustratively, power supply module quantity: Pnum=INT (Wall/ power supply mould can be calculated according to following formula
Block maximum power value)+1+ backup power supply module quantity.Wherein INT is to be rounded downwards, and the calculation formula of Pnum is using N+
1 power supply backup, wherein N=INT (Wall/ power supply module maximum power value)+1 is the power supply power supply electricity that actual needs provides
Source module quantity, backup power supply module quantity=1, wherein above formula is as just an example, in actual use
It can also be by the way of other more than one prepare more part power supply modules.
105, control module is managed and controls to power supply module in place on communication equipment according to usage quantity.
Specifically, the MP of main control module according to Pnum numerical value, power supply module in place in equipment is managed and
Control.Such as discovery then closes them there are extra power supply module.Such as find power supply module lazy weight in place,
Then warning information is issued to CP.
106, what is actually used in the business function module and each business function module that control module judgement uses connects
Whether mouth number changes.
When the number of ports used in the determining business function module and/or any business function module used changes
When, redefine the usage quantity of power supply module.
107, when determining the number of ports that actually uses in the business function module and each business function module that use not
When changing, control module maintains the existing current controlled state to power supply module, and continues the business that judgement uses
Whether the number of ports actually used in functional module and each business function module changes.
In equipment running process, the case where newly inserting or pull out business function module is had, or there is existing business function
The case where business interface quantity of energy module changes, such as: as appearance new insertion LPU or extraction LPU or in operation LPU
On there is increasing or decreasing for business interface, will affect Wlsm numerical value, the change that MP on main control module occurs according to LPU
Change, recalculate a new Wlsm numerical value, repeats the calculating process of step 101-105.It is similar with LPU for the operation of SFU
Which is not described herein again.
In the above scheme, since communication equipment includes at least one control module, at least one business function module, wind
Fan module and at least one power supply module;Wherein the management processor MP of control module connects at least one business function
Module, blower module and at least one power supply module;The MP of control module can obtain itself maximum and use power consumption,
And the number of ports used in each business function module, and the number of ports according to each business function module and power consumption map number
The maximum that group obtains each business function module uses power consumption, wherein the number of ports of each business function module is reflected with power consumption
It penetrates in array comprising number of ports and the maximum corresponding relationship for using power consumption;Power consumption and each industry are used according to itself maximum
The maximum of business functional module determines the use power consumption of blower module using power consumption;Itself maximum use according to the control module
Power consumption, the maximum of each business function module determine total power consumption using the use power consumption of power consumption and blower module;According to described in
Total power consumption determines the usage quantity of power supply module.By the above process the control module of communication equipment can accurately power/
The significant data of load matched management is counted, can be according to each when the usage quantity of power supply module calculates
The actual power loss numerical value of business function module and blower module in different usage situations calculates optimal power supply module
Usage quantity executes optimal power supply/load matched management, therefore being capable of the more efficient use for promoting power supply module
Efficiency, to reduce power consumption.
Specifically, detailed implementation process of the invention is as described below, it is assumed that communication equipment specification is as follows:
3 communication equipment spec list of table
The LPU type that communication equipment is supported is calculated according to 2 kinds:
The road LPU16X40G:16 40G interface module, maximum power dissipation 500W, minimum power consumption 280W;
The road LPU52X10G:52 10G interface module, maximum power dissipation 450W, minimum power consumption 260W;Assuming that a kind of communication equipment
Hsrdware requirements it is as follows:
The hardware configuration quantity list of 4 communication equipment of table
It is possible to calculate the maximum power dissipation under the hardware configuration are as follows:
Wmax=2*160+4*500+4*450+4*300+4*300=6520 watts;
Consider to use 1600W specification power supply module, and after use N+1 power supply backup mode, needs to set for the user
The power supply power supply module quantity of standby configuration should are as follows:
Pnum=INT (6520/1600)+1+1=6;
800W specification power supply module is such as used, then Pnum=INT (6520/800)+1+1=10;
In order to facilitate calculating, if two kinds of LPU of user only used the business interface of half, i.e., in actual use
LPU16X40G only used 8 40G interfaces, and LPU52X10G only used 26 10G interfaces, then LPU, SFU and fan mould
The actual power loss of block can be reduced, especially blower module, and the hardware configuration actually used in equipment is matched less than equipment maximum hardware
The half set.The actual use power consumption for calculating equipment according to aforementioned calculation method and step is as follows:
(1) Wlsm=2*160+4* ((500+280)/2)+4* ((450+260)/2)+4* ((300+180)/2)=4260 watts
(2) MP processor is predicted and is determined a rotation speed of the fan initial value according to Wlsm numerical value, select blower module 60%
Revolving speed, then Wf=300*60%=180 watts
(3) calculate equipment practical business and use permit notification: Wall=Wlsm+ blower module quantity * Wf=4260+4*180
=4980 watts
(4) still consider that equipment is practical to be made using 1600W specification power supply module, and after use N+1 power supply backup mode
Power supply power supply module quantity should are as follows: Pnum=INT (4980/1600)+1+1=5;
800W specification power supply module is such as used, then Pnum=INT (4980/800)+1+1=8;
(5) above-mentioned calculated result is used, and the power supply load ratio that can be obtained under two kinds of situations is as follows:
The power supply of 5 communication equipment of table loads ratio calculations list
It is obvious that the use of the method control power supply module provided using embodiments herein, can obtain more preferably
Power supply load ratio, calculated result, which is shown, can improve 10% or more.
Shown in referring to Fig.1, the embodiment provides a kind of communication equipments, for implementing above-mentioned power management side
Method, including at least one control module 11, at least one business function module 14, blower module 13 and at least one power supply electricity
Source module 12;Wherein the management processor of the control module connects described at least one business function module, the fan mould
Block and at least one described power supply module;
The management processor of the control module 11 uses power consumption and each business function for obtaining itself maximum
The number of ports actually used in module, and the number of ports according to each business function module and power consumption mapping array obtain each industry
The maximum for functional module of being engaged in uses power consumption, wherein including in the number of ports of each business function module and power consumption mapping array
Number of ports and the maximum corresponding relationship for using power consumption;
The management processor of the control module 11, for using power consumption and each business function according to itself maximum
The maximum of energy module determines the use power consumption of blower module using power consumption;
The management processor of the control module 11, for according to the control module itself it is maximum using power consumption, it is each
The maximum of a business function module determines total power consumption using the use power consumption of power consumption and blower module;
The management processor of the control module 11, for determining the use number of power supply module according to the total power consumption
Amount.
Optionally, the management processor of the control module 11, is also used to according to the usage quantity on communication equipment
Power supply module 12 in place is managed and controls.
Further, the management processor of control module 11, be specifically used for according to it is described itself it is maximum using power consumption and
The maximum of each business function module 14 estimates the initial speed of blower module using power consumption;The management of control module 11 is handled
Device, for obtaining the use power consumption of blower module according to the initial speed and revolving speed and power consumption mapping array, wherein described
Include revolving speed and the corresponding relationship for using power consumption in revolving speed and power consumption mapping array.
Optionally, the management processor of control module 11 is also used to adjust the initial speed according to environment temperature.
Optionally, the management processor of control module 11 is also used to judge the business function module used and each described
Whether the number of ports used in business function module 14 changes;When the determining business function module used and/or any institute
When stating the number of ports actually used in business function module and changing, the usage quantity of power supply module 12 is redefined.
In the above scheme, communication equipment, including at least one control module, at least one business function module, fan
Module and at least one power supply module;Wherein the management processor MP of control module connects at least one business function mould
Block, blower module and at least one power supply module;The MP of control module uses power consumption for obtaining itself maximum, with
And the number of ports used in each business function module, and the number of ports according to each business function module and power consumption map array
The maximum of each business function module is obtained using power consumption, wherein the number of ports of each business function module and power consumption map
Include number of ports and the maximum corresponding relationship for using power consumption in array;Power consumption and each business are used according to itself maximum
The maximum of functional module determines the use power consumption of blower module using power consumption;Itself maximum according to the control module uses function
Consumption, the maximum of each business function module determine total power consumption using the use power consumption of power consumption and blower module;According to described total
Power consumption determines the usage quantity of power supply module.The control module of communication equipment can accurately power/bear by the above process
The significant data for carrying match management is counted, can be according to each industry when the usage quantity of power supply module calculates
The actual power loss numerical value of business functional module and blower module in different usage situations, which calculates optimal power supply module, to be made
With quantity, that is, execute optimal power supply/load matched management, therefore the use effect that more efficient can promote power supply module
Rate, to reduce power consumption.
In addition, a kind of calculating readable media (or medium) is also provided, including carrying out in above-described embodiment when executed
The computer-readable instruction of the operation of method.
In addition, also providing a kind of computer program product, including above-mentioned computer-readable media (or medium).
It should be understood that in various embodiments of the present invention, magnitude of the sequence numbers of the above procedures are not meant to execute suitable
Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present invention
Process constitutes any restriction.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, it can be with
It realizes by another way.For example, apparatus embodiments described above are merely indicative, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of equipment or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (full name in English: read-only memory, English letter
Claim: ROM), random access memory (full name in English: random access memory, English abbreviation: RAM), magnetic disk or light
The various media that can store program code such as disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.