Summary of the invention
The invention provides a kind of power-economizing method and device of communication equipment, the consume that is used to save power consumption and reduces communication equipment.
For achieving the above object, the invention provides a kind of power-economizing method of communication equipment, be applied to comprise in the forwarding plane of master control borad, switching network Crossbar and a plurality of interface boards, have one or more message process chip PP and network adapter FA on described each interface board, have one or more physical ports and described each PP under described each PP and all be connected with described Crossbar by the FA of a correspondence, its described method comprises:
Interface board detects the state of all physical ports under each PP on its own interfaces plate;
Described interface board detects when all physical ports all are in interrupt status under the PP on its own interfaces plate, and the notice master control borad is also controlled described switching network Crossbar by described master control borad and closed the port that connects use between the FA corresponding with described PP.
Wherein, described control switching network Crossbar also comprises after closing and connecting the port that uses between the FA corresponding with described PP:
Described interface board detects under the described PP all physical ports when all being in interrupt status and being changed at least one physical port and being in connection status, notifies described master control borad and controls described Crossbar by described master control borad and open and connect the port that uses between the FA corresponding with described PP.
Wherein, described master control borad control described Crossbar open between the FA corresponding with described PP connect the port that uses after, also comprise:
List item among described Crossbar of described master control borad initialization and the FA corresponding with described PP.
Wherein, described interface board detects on its own interfaces plate under the PP all physical ports and all is in interrupt status and comprises:
Described interface board regularly sends the request of obtaining the state of all physical ports under the PP to the PHY layer, all is in interrupt status according to all physical ports under the PP on the notification message judgement interface board of described PHY layer transmission; Or
Described interface board receives the notification message that carries the state of all physical ports under the PP that described PHY layer regularly initiatively sends, and all is in interrupt status according to all physical ports under the PP on the described notification message judgement interface board; Or
Described interface board receives the notification message that described PHY layer initiatively sends when all physical ports all are in interrupt status under the PP on detecting interface board, all is in interrupt status according to all physical ports under the PP on the described notification message judgement interface board;
Described interface board detects under the described PP all physical ports and is changed at least one physical port and is in connection status and comprises by all being in interrupt status:
Described interface board regularly sends the request of obtaining the state of all physical ports under the PP to the PHY layer, and the notification message that sends according to described PHY layer judges on the interface board under the PP that all physical ports are changed at least one physical port and are in connection status by all being in interrupt status; Or
Described interface board receives the notification message that carries the state of all physical ports under the PP that described PHY layer regularly initiatively sends, and judges on the interface board under the PP that according to described notification message all physical ports are changed at least one physical port and are in connection status by all being in interrupt status; Or
Described interface board receive described PHY layer on detecting interface board under the PP all physical ports be changed to the notification message that initiatively sends when at least one physical port is in connection status by all being in interrupt status, judge on the interface board under the PP that according to described notification message all physical ports are changed at least one physical port and are in connection status by all being in interrupt status.
The present invention also provides a kind of energy saver, be applied to comprise in the forwarding plane of master control borad, switching network Crossbar and a plurality of interface boards, have one or more message process chip PP and network adapter FA on described each interface board, have one or more physical ports and described each PP under described each PP and all be connected with described Crossbar by the FA of a correspondence, described energy saver comprises:
Detecting unit is used to dock on the oralia that the state of all physical ports detects under each PP;
The port controlling unit is used for when described detecting unit detects that all physical ports all are in interrupt status under the PP on the interface board, and control switching network Crossbar closes and connects the port that uses between the FA corresponding with described PP.
Wherein, described port controlling unit also is used for detecting under the described PP all physical ports when all being in interrupt status and being changed at least one physical port and being in connection status when described detecting unit, controls described Crossbar and opens and connect the port that uses between the FA corresponding with described PP.
Wherein, also comprise:
Initialization unit is used for the list item of described Crossbar of initialization and the FA corresponding with described PP.
Wherein, described detecting unit comprises:
First detection sub-unit is used for regularly sending the request of obtaining the state of all physical ports under the PP to the PHY layer, all is in interrupt status according to all physical ports under the PP on the notification message judgement interface board of described PHY layer transmission; Or be used to receive the notification message that carries the state of all physical ports under the PP that described PHY layer regularly initiatively sends, all be in interrupt status according to all physical ports under the PP on the described notification message judgement interface board; Or be used to receive the notification message that described PHY layer initiatively sends when all physical ports all are in interrupt status under the PP on detecting interface board, all be in interrupt status according to all physical ports under the PP on the described notification message judgement interface board;
Second detection sub-unit, be used for regularly sending the request of obtaining the state of all physical ports under the PP to the PHY layer, the notification message that sends according to described PHY layer judges on the interface board under the PP that all physical ports are changed at least one physical port and are in connection status by all being in interrupt status; Or be used to receive the notification message that carries the state of all physical ports under the PP that described PHY layer regularly initiatively sends, judge on the interface board under the PP that according to described notification message all physical ports are changed at least one physical port and are in connection status by all being in interrupt status; Or be used to receive described PHY layer on detecting interface board under the PP all physical ports be changed to the notification message that initiatively sends when at least one physical port is in connection status by all being in interrupt status, judge on the interface board under the PP that according to described notification message all physical ports are changed at least one physical port and are in connection status by all being in interrupt status.
Wherein, described detecting unit is positioned at the CPU of each interface board, and described port controlling unit is positioned at master control borad CPU.
Wherein, described initialization unit is positioned at master control borad CPU.
Compared with prior art, the present invention has the following advantages:
To distinguish according to the flow situation the power supply of different chips on the equipment, after all of the port of message process chip is closed, close the forwarding chip corresponding with the message process chip; When the port that detects the message process chip that is under the closed condition has flow mutual, open forwarding chip automatically.Thereby detection chip operating position and chip flow situation in real time, the mode of operation of each chip in different levels control appliance, the powering mode of each chip in the control appliance that becomes more meticulous is saved power consumption and has been reduced the consume of communication equipment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The invention provides a kind of power-economizing method of communication equipment, be applied to comprise in the forwarding plane of master control borad, switching network Crossbar and a plurality of interface boards, wherein have one or more message process chip PP and network adapter FA on each interface board, have one or more physical ports and each PP under each PP and all be connected with Crossbar by the FA of a correspondence.As shown in Figure 2, this method comprises:
Step s201, interface board detect the state of all physical ports under each PP on its own interfaces plate.
Step s202, interface board detect when all physical ports all are in interrupt status under the PP on its own interfaces plate, and the notice master control borad is also controlled Crossbar by master control borad and closed the port that connects use between the FA corresponding with PP.
In addition, can also comprise behind the above-mentioned steps s202: interface board detects on its own interfaces plate under the PP all physical ports when all being in interrupt status and being changed at least one physical port and being in connection status, the notice master control borad is also opened by master control borad control Crossbar and is connected the port that uses between the FA corresponding with PP, and by the list item among master control borad initialization Crossbar and the FA corresponding with this PP.
In the method provided by the invention, will distinguish according to the flow situation, after all of the port of message process chip is closed, close the forwarding chip corresponding with the message process chip to the power supply of different chips on the equipment; When the port that detects the message process chip that is under the closed condition has flow mutual, open forwarding chip automatically.Thereby detection chip operating position and chip flow situation in real time, the mode of operation of each chip in different levels control appliance, the powering mode of each chip in the control appliance that becomes more meticulous is saved power consumption and has been reduced the consume of communication equipment.
Below in conjunction with a concrete application scenarios, the embodiment of communication equipment energy-saving method among the present invention is described.With forwarding structure shown in Figure 3 is example, except comprising FA, PP, PHY and Crossbar, also has interface board CPU and master control borad CPU.Wherein, the interface board CPU on the interface board has measuring ability, is used to dock on the oralia that the state of all physical ports detects under each PP.When interface board CPU detects that all physical ports all are in interrupt status under the PP on the interface board, by and master control borad between control channel notice master control borad CPU, master control borad CPU control Crossbar closes and connects the port that uses between the FA corresponding with this PP.When interface board CPU detects on the interface board arbitrary physical port under the PP who has disconnected with Crossbar and is in connection status, control Crossbar opens between the FA corresponding with PP and to connect the port that uses, and the list item among initialization Crossbar and the FA corresponding with this PP.
Concrete, the communication equipment energy-saving method among the present invention may further comprise the steps as shown in Figure 4:
Step s401, interface board CPU dock regularly on the oralia that the state of all physical ports detects under each PP.This detection comprises following two parts content: whether have on (1) interface board that all physical ports all are in interrupt status under the PP; (2) for the PP that has disconnected with Crossbar, whether exist arbitrary physical port to be in connection status.Above-mentioned two parts detect and can realize by the physical port state that the PHY layer reports.
Whether have on step s402, the interface board that all physical ports all are in interrupt status under the PP, be then to carry out step s403, otherwise carry out step s405.Concrete, when interface board CPU receives the notification message that the PHY layer sends when all physical ports all are in interrupt status under the PP on interface board, judge that all physical ports all are in interrupt status under the PP.With scene shown in Figure 3 is example, when the port one to 24 under the PHYs all is in interrupt status, and PHYs notification interface plate CPU, then interface board CPU judges that all physical ports all are in interrupt status under this PP.
Step s403, interface board CPU by and master control borad between control channel, with this PP notice master control borad CPU.
Step s404, master control borad CPU control Crossbar closes and connects the port that uses between the FA corresponding with this PP.This step can send instruction to the realization of making amendment of the related register content among the Crossbar to Crossbar by master control borad, by this step close be connected the port that uses between Crossbar and FA after, make that this PP and FA are closed condition by working mode change, have saved the electricity consumption of equipment.
Step s405, for the PP that has disconnected with Crossbar, whether exist arbitrary physical port to be in connection status, be then to carry out step s406, otherwise return step s401, continue regularly to dock on the oralia by interface board CPU that the state of all physical ports detects under each PP.Concrete, when interface board CPU receives the notification message that the PHY layer sends when arbitrary physical port is in connection status under the PP who has disconnected with Crossbar on interface board, judge under the PP to exist arbitrary physical port to be in connection status.With scene shown in Figure 3 is example, when the arbitrary port in the port one to 24 under the PHYs is connection status from interrupting state exchange, and PHYs notification interface plate CPU, then interface board CPU judges and exists the physics port in connection status under this PP.
Step s406, interface board CPU by and master control borad between control channel, with this PP notice master control borad CPU.
Step s407, master control borad CPU control Crossbar opens and connects the port that uses between the FA corresponding with this PP.By this step, make this PP reenter mode of operation by closed condition.
List item among step s408, master control borad CPU initialization Crossbar and the FA corresponding with this PP, making this PP can normally carry out business transmits, and return step s401, continue regularly to dock on the oralia by interface board CPU that the state of all physical ports detects under each PP.
In above-mentioned flow process, whether exist all physical ports under the PP all to be in the method that interrupt status detects on the interface board CPU butt joint oralia can comprise: (1) interface board CPU regularly sends the request of obtaining the state of all physical ports under the PP to the PHY layer, and the notification message that sends according to the PHY layer judges on the interface board that all physical ports all are in interrupt status under the PP; Or the notification message that carries the state of all physical ports under the PP of (2) interface board CPU reception PHY layer timing active transmission, all be in interrupt status according to all physical ports under the PP on the notification message judgement interface board; Or (3) interface board CPU receives the notification message that the PHY layer initiatively sends when all physical ports all are in interrupt status under the PP on detecting interface board, judges on the interface board that according to notification message all physical ports all are in interrupt status under the PP.
In above-mentioned flow process, interface board CPU is changed at least one physical port and is in connection state detection method and comprises by all being in interrupt status all physical ports under the PP on its own interfaces plate: (1) interface board CPU regularly sends the request of obtaining the state of all physical ports under the PP to the PHY layer, and the notification message that sends according to the PHY layer judges on the interface board under the PP that all physical ports are changed at least one physical port and are in connection status by all being in interrupt status; Or (2) interface board CPU receives the notification message that carries the state of all physical ports under the PP that the PHY layer regularly initiatively sends, and judges on the interface board under the PP that according to notification message all physical ports are changed at least one physical port and are in connection status by all being in interrupt status; Or interface board CPU receive the PHY layer on detecting interface board under the PP all physical ports be changed to the notification message that initiatively sends when at least one physical port is in connection status by all being in interrupt status, judge on the interface board under the PP that according to notification message all physical ports are changed at least one physical port and are in connection status by all being in interrupt status.
Flow process shown in above-mentioned steps s401~step s408, just an embodiment of communication equipment energy-saving method among the present invention.For detection order related among above-mentioned steps s402 and the step s405, the present invention is not strict with.In addition,, be not limited to realize, also can realize by other control modules in the equipment by interface board CPU for measuring ability.Equally, the control that interrupt/is connected for port between Crossbar and FA also is not limited to be realized by master control borad CPU, also can be realized by other control modules in the equipment.
In the said method provided by the invention, will distinguish according to the flow situation, after all of the port of message process chip is closed, close the forwarding chip corresponding with the message process chip to the power supply of different chips on the equipment; When the port that detects the message process chip that is under the closed condition has flow mutual, open forwarding chip automatically.Thereby detection chip operating position and chip flow situation in real time, the mode of operation of each chip in different levels control appliance, the powering mode of each chip in the control appliance that becomes more meticulous is saved power consumption and has been reduced the consume of communication equipment.
The present invention also provides a kind of energy saver, be applied to comprise in the forwarding plane of switching network Crossbar and a plurality of interface boards, have one or more message process chip PP and network adapter FA on described each interface board, having one or more physical ports and each PP under each PP all is connected with Crossbar by the FA of a correspondence, as shown in Figure 5, this energy saver comprises:
Detecting unit 10 is used to dock on the oralia that the state of all physical ports detects under each PP.In a specific implementation of the present invention, detecting unit 10 may further include first detection sub-unit 11 and second detection sub-unit 12, and is wherein concrete:
First detection sub-unit 11 is used for regularly sending the request of obtaining the state of all physical ports under the PP to the PHY layer, all is in interrupt status according to all physical ports under the PP on the notification message judgement interface board of PHY layer transmission; Or be used to receive the notification message that carries the state of all physical ports under the PP that the PHY layer regularly initiatively sends, all be in interrupt status according to all physical ports under the PP on the notification message judgement interface board; Or be used to receive the notification message that the PHY layer initiatively sends when all physical ports all are in interrupt status under the PP on detecting interface board, all be in interrupt status according to all physical ports under the PP on the notification message judgement interface board;
Second detection sub-unit 12, be used for regularly sending the request of obtaining the state of all physical ports under the PP to the PHY layer, the notification message that sends according to the PHY layer judges on the interface board under the PP that all physical ports are changed at least one physical port and are in connection status by all being in interrupt status; Or be used to receive the notification message that carries the state of all physical ports under the PP that the PHY layer regularly initiatively sends, judge on the interface board under the PP that according to notification message all physical ports are changed at least one physical port and are in connection status by all being in interrupt status; Or be used to receive the PHY layer on detecting interface board under the PP all physical ports be changed to the notification message that initiatively sends when at least one physical port is in connection status by all being in interrupt status, judge on the interface board under the PP that according to notification message all physical ports are changed at least one physical port and are in connection status by all being in interrupt status.
Port controlling unit 20 is used for when detecting unit 10 detects that all physical ports all are in interrupt status under the PP on the interface board, and control switching network Crossbar closes and connects the port that uses between the FA corresponding with PP.Also be used for detecting on the interface board under the PP all physical ports when all being in interrupt status and being changed at least one physical port and being in connection status when detecting unit 10, control Crossbar opens and connects the port that uses between the FA corresponding with this PP.
In addition, as shown in Figure 5, in a specific implementation of the present invention, this energy saver can also comprise:
Initialization unit 30, be used for port controlling unit 20 control Crossbar open connect the port that uses between the FA corresponding with PP after, the list item among initialization Crossbar and the FA corresponding with PP.
Wherein, the detecting unit 10 of energy saver can be positioned at the CPU of each interface board, and port controlling unit 20 can be positioned at master control borad CPU, and initialization unit 30 also can be positioned at master control borad CPU.
In the said apparatus provided by the invention, will distinguish according to the flow situation, after all of the port of message process chip is closed, close the forwarding chip corresponding with the message process chip to the power supply of different chips on the equipment; When the port that detects the message process chip that is under the closed condition has flow mutual, open forwarding chip automatically.Thereby detection chip operating position and chip flow situation in real time, the mode of operation of each chip in different levels control appliance, the powering mode of each chip in the control appliance that becomes more meticulous is saved power consumption and has been reduced the consume of communication equipment
Above-mentioned module can be distributed in a device, also can be distributed in multiple arrangement.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.