CN108494568B - Power distribution method and device and POE switch - Google Patents
Power distribution method and device and POE switch Download PDFInfo
- Publication number
- CN108494568B CN108494568B CN201810283470.1A CN201810283470A CN108494568B CN 108494568 B CN108494568 B CN 108494568B CN 201810283470 A CN201810283470 A CN 201810283470A CN 108494568 B CN108494568 B CN 108494568B
- Authority
- CN
- China
- Prior art keywords
- power
- pse
- interface board
- poe switch
- allocated
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000000899 pressurised-fluid extraction Methods 0.000 claims description 15
- 230000008859 change Effects 0.000 claims description 7
- 230000008569 process Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 10
- 101000852539 Homo sapiens Importin-5 Proteins 0.000 description 4
- 102100036340 Importin-5 Human genes 0.000 description 4
- 238000012358 sourcing Methods 0.000 description 4
- 101100218933 Pseudomonas aeruginosa pse4 gene Proteins 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000006735 deficit Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/10—Current supply arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/10—Packet switching elements characterised by the switching fabric construction
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Supply And Distribution Of Alternating Current (AREA)
Abstract
According to the power distribution method, the power distribution device and the POE switch, firstly, the power consumption of each PSE in the POE switch is obtained; then, when the obtained consumed power of any target PSE changes, calculating to obtain the currently required allocated power of the target PSE; and finally, performing power allocation again on the PSE on the POE switch according to the calculated current required allocated power. In the process, when the PD equipment of the interface board where the PSE is located is increased or a new PSE is inserted, power can be dynamically distributed for the PSE, excessive manual configuration is not needed for a user, and the flexibility and convenience of application are improved. Meanwhile, the reserved power is included in the power configured for the PSE, so that the plug and play of the PD equipment or the PSE can be ensured.
Description
Technical Field
The application relates to the technical field of communication power supply, in particular to a power distribution method, a power distribution device and a POE switch.
Background
POE (Power Over Ethernet, also called remote Power supply), refers to a Device that remotely powers an external PD (Powered Device) through an Ethernet port by using a twisted pair.
At present, the Power distribution is performed on the switch supporting the Power Over Ethernet (POE), the Power is distributed to the PSE (Power Sourcing Equipment) in advance in the manner of adoption, however, when the load of the PSE (PD Equipment requiring Power supply) changes, the Power of the PSE can only be manually adjusted, and the dynamic adjustment of the distributed Power on the PSE cannot be performed according to the load condition on each PSE.
Disclosure of Invention
The embodiment of the application describes a method and a device for power allocation and a POE switch.
In a first aspect, an embodiment of the present application provides a power allocation method, which is applied to a POE switch, where the POE switch includes a plurality of interface boards, each interface board includes a power supply device PSE, and a port on the interface board where each PSE controls supplies power to a powered device PD, and the method includes:
acquiring the consumed power of each PSE;
when the obtained consumed power of any target PSE changes, calculating the currently required allocated power of the target PSE, wherein the allocated power comprises reserved power and is not more than the maximum power of the target PSE;
and performing power allocation again on the PSE of the POE switch according to the calculated current required allocated power.
Optionally, the step of performing power re-allocation on the PSE of the POE switch according to the calculated currently required allocated power includes:
if the sum of the current required allocated power of the target PSE and the allocated powers of all other PSEs is larger than the total system power of the POE switch, reducing the allocated power of at least one other PSE with the priority lower than that of the target PSE, and allocating corresponding power to the target PSE according to the current required power;
and if the current required allocated power of the target PSE is smaller than the allocated power before the change, allocating the system residual power of the POE switch according to the priority of each PSE or the power-on condition of the PD equipment on the interface board where each PSE is located.
Optionally, the method further comprises:
when detecting that a new interface board is inserted into the POE switch, judging whether the system residual power of the POE switch exceeds a preset power threshold value;
when the power exceeds a preset power threshold, distributing power to the PSE newly inserted into the interface board from the system residual power of the POE switch;
and when the preset power threshold value is not exceeded, reducing the power of at least one other PSE, and distributing the power for the PSE newly inserted into the interface board.
Optionally, when the preset power threshold is not exceeded, the step of reducing the allocated power of at least one other PSE and allocating the power to the PSE newly inserted into the interface board includes:
reducing the distributed power of at least one other PSE with lower priority than the PSE of the newly inserted interface board, and distributing the power to the PSE of the newly inserted interface board; or
The power of the unpowered PSE is allocated to the PSE newly plugged into the interface board.
Optionally, the method further comprises:
detecting the total system power of the POE switch;
and when the total system power of the POE switch is detected to be reduced, reducing the distributed power of each PSE according to the sequence from low priority to high priority.
In a second aspect, an embodiment of the present application further provides a power allocation method, which is applied to a POE switch, where the POE switch includes a plurality of interface boards, each interface board includes a Power Sourcing Equipment (PSE), and a port on the interface board where each PSE controls supplies power to a Powered Device (PD), and the method includes:
when detecting that a new interface board is inserted into the POE switch, judging whether the system residual power of the POE switch exceeds a preset power threshold value;
when the power exceeds a preset power threshold, distributing power to the PSE newly inserted into the interface board from the system residual power of the POE switch;
and when the preset power threshold value is not exceeded, reducing the allocated power of at least one other PSE, and allocating the power to the PSE which is newly inserted into the interface board.
In a third aspect, an embodiment of the present application further provides a power distribution apparatus, which is applied to a POE switch, where the POE switch includes a plurality of interface boards, where each interface board includes a Power Sourcing Equipment (PSE), a port on the interface board where each PSE controls supplies power to a Powered Device (PD), and the apparatus includes:
the obtaining module is used for obtaining the consumed power of each PSE;
the calculation module is used for calculating currently required allocated power of any target PSE when the acquired consumed power of the target PSE changes, wherein the allocated power comprises reserved power and is not more than the maximum power of the target PSE;
and the allocation module is used for performing power allocation again on the PSE of the POE switch according to the calculated current required allocation power.
In a fourth aspect, an embodiment of the present application further provides a power distribution apparatus, which is applied to a POE switch, where the POE switch includes a plurality of interface boards, where each interface board includes a power supply equipment PSE, a port on the interface board where each PSE controls supplies power to a powered device PD, and the apparatus includes:
the judging module is used for judging whether the system residual power of the POE switch exceeds a preset power threshold value or not when a new interface board is detected to be inserted into the POE switch;
the distribution module is further used for distributing power to the PSE newly inserted into the interface board from the system residual power of the POE switch when the system residual power of the POE switch exceeds a preset power threshold; or
And when the system residual power of the POE switch does not exceed the preset power threshold, reducing the distribution power of at least one PSE, and distributing the power to the PSE newly inserted into the interface board.
In a fifth aspect, an embodiment of the present application further provides a POE switch, where the POE switch includes a processor and a nonvolatile memory in which computer instructions are stored, and when the computer instructions are executed by the POE switch, the power allocation method provided in the first aspect is implemented.
Compared with the prior art, the method has the following beneficial effects:
according to the power distribution method, the power distribution device and the POE switch, firstly, the power consumption of each PSE in the POE switch is obtained; then, when the obtained consumed power of any target PSE changes, calculating to obtain the currently required allocated power of the target PSE; and finally, performing power allocation again on the PSE on the POE switch according to the calculated current required allocated power. In the process, the switch dynamically detects the consumed power of each PSE, and when the consumed power of the PSE changes, the allocated power on the PSE is dynamically adjusted.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic diagram of a system in which a box switch supports POE power supply.
Fig. 2 is a schematic diagram of a system in which a frame switch supports POE power supply.
Fig. 3 is a block diagram of a POE switch according to an embodiment of the present application.
Fig. 4 is a flowchart illustrating a power allocation method according to an embodiment of the present application.
Fig. 5 is another schematic flow chart of a power allocation method according to an embodiment of the present application.
Fig. 6 is a schematic diagram illustrating other steps of a power allocation method according to an embodiment of the present application.
Fig. 7 is a functional block diagram of a power distribution apparatus according to an embodiment of the present disclosure.
Fig. 8 is a block diagram of another functional block of a power distribution apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it is further noted that, unless expressly stated or limited otherwise, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.
Current POE-powered switches include box switches and frame switches. Referring to fig. 1, fig. 1 is a schematic diagram of a system in which a box switch supports POE Power supply, where one box device corresponds to 1 PSE (Power Sourcing Equipment), and the box switch is powered by an independent POE Power source.
Referring to fig. 2, fig. 2 is a schematic diagram of a system in which a frame switch supports POE power supply, each interface board in the frame switch that supports POE corresponds to 1 PSE, and all PSEs in the frame switch share a system POE power supply. The power supply condition of the single PSE to the PD device may be obtained according to actual power consumption of the PD device, for example, the POE power supply power is 300W, the sum of power consumption of the PD device that is supplying power is 100W, and then the remaining power is 200W, and the PD device that can supply power may be calculated according to the remaining port.
Because the frame switch supports a plurality of PSEs, the current way of performing power distribution to each PSE must allocate fixed power to each PSE in advance, and this PSE can normally supply power, if the system power is not enough, the situation that whole PSE can not supply power can appear, which is illustrated by way of example below: to ensure that PSE1, PSE2, and PSE3 can supply power properly, the power allocated to PSE1, PSE2, and PSE3 would need to be 1000W, 800W, and 1000W, respectively, assuming the system power of the frame switch is 2800W.
However, the applicant has found that the above power allocation has the following problems:
1. if the PSE1 has too many PD devices loaded at a certain time and reaches the upper power limit of 1000W, the PSE1 cannot supply power to the newly accessed PD devices, and at this time, there are possibly less PD devices accessed by the PSE2 and the PSE3, and the POE switch still has allocable power. Similarly, PSE2 and PSE3 have the same problem as PSE 1.
2. When a new PSE4 is plugged into the POE switch, since the POE switch has no power available for allocation, the PSE4 cannot be powered up and must manually reserve power for the PSE4 from the originally allocated PSE power.
3. If the system power of the POE switch suddenly decreases due to a power failure, the whole PSE board with low priority rejects power supply, so that the PD device which is being powered by the PSE is powered down.
By analyzing the reasons, the PSEs of the framework switch do not automatically distribute power from the system power of the POE switch according to the dynamic power consumption of the PSEs, which causes inconvenience for users.
In order to overcome the drawbacks of the prior art described above, the applicant has studied to provide a solution by means of the following embodiments.
Referring to fig. 3, fig. 3 is a structural framework diagram of a POE switch according to an embodiment of the present application.
The POE switch 10 includes a power distribution device 110, a main control board 100 and at least one interface board 200, where the main control board 100 and the at least one interface board 200 are electrically connected directly or indirectly to implement data transmission or interaction, where each interface board has a PSE, each PSE is configured to control each port on the interface board 200 where the PSE is located to supply power to a PD device, and the system power of the POE switch 10 is sensed by the main control board 100.
The power distribution apparatus 110 includes at least one software functional module that can be stored in the form of software or firmware (firmware) in the main control board 100. In this embodiment, the power allocation device 110 provides dynamic allocation of PSE power for the POE switch 10, and the specific method is described in detail later.
It should be understood that the configuration shown in fig. 1 is merely illustrative, and POE switch 10 may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
Referring to fig. 4, fig. 4 is a diagram illustrating a power allocation method applied to the POE switch 10 in fig. 3 according to an embodiment of the present application. The following describes each step of the power allocation method provided in this embodiment in detail.
In step S110, the power consumption of each PSE is obtained.
In a first implementation manner of this embodiment, the main control board 100 may implement periodic detection of power consumption of each PSE by enabling a timer to poll power consumption of each PSE in the POE switch. Alternatively, the main control board 100 may obtain the consumed power of the PSE by polling the consumed power of each port in the interface board.
In a second implementation manner of this embodiment, each PSE may actively report the power consumption of each port connected to the PD device in the interface board where the PSE is located, in this implementation manner, the PSE includes the current power class of each PD device in the reported power consumption, where the ranges of the power consumption corresponding to different power classes are different, for example, taking the power classification of ieee802.3af as an example: the maximum power range of PD equipment with the power class of class0 is 0-12.95W; the maximum power range of PD equipment with the power class of class1 is 0-3.84W; the maximum power range of PD equipment with the power class of class2 is 3.85-6.49W; the maximum power range of PD equipment with the power class3 is 6.5-12.95W. In the present embodiment, the power consumption of each PSE is obtained from the power class of the PD device uploaded by each PSE.
Step S120, when the obtained consumed power of any target PSE changes, calculating the currently required allocated power of the target PSE.
In a first implementation manner of this embodiment, the main control board 100 determines whether the power consumption of the PSE changes by comparing the detection results of two adjacent power consumptions of the same PSE. In this embodiment, considering that the power of each PD device on the interface board 200 fluctuates, when comparing the detection results of the power consumed by the same PSE twice, the absolute value of the difference value obtained by subtracting the power consumed by the same PSE twice adjacent to the same PSE may be compared with a preset power threshold, and if the difference value is smaller than the preset power threshold, it is determined that the power consumed by the PSE twice adjacent to the same PSE does not change, otherwise, it is determined that the power consumed by the PSE twice adjacent to the same PSE changes. When a change occurs, the currently required allocated power of the target PSE is calculated.
The allocated power includes a reserved power, and specifically, the allocated power may be equal to the sum of the power to be supplied and the reserved power of each port, which supplies power to the PD device, of the interface board 200 where the PSE is located, of the port under the corresponding ethernet specification standard. In this embodiment, the reserved power may be set as the power to be supplied to a certain number (for example, 1) of ports, where the power to be supplied to the ports differs according to the ethernet specification standard adopted by the POE switch 10, for example, the power to be supplied to each port corresponding to the standard 802.1af is 15.4W, and the power to be supplied to each port corresponding to the standard 802.1at is 30W. The reserved power is set to ensure that the interface board 200 where the PSE is located can supply power immediately when new PD equipment is accessed, thereby realizing the plug and play function of the PD equipment.
In this embodiment, the calculated currently required allocated power is not greater than the maximum power of the target PSE, that is, the calculated currently required allocated power cannot exceed the sum of powers that the target PSE can supply power to the outside.
In a second implementation manner of this embodiment, the main control board 100 may determine whether the consumed power of the PSE changes according to the power level change condition of the PD devices reported by two adjacent PSEs or the number of PD devices reported by the access interface board 200. When the power level of the interface board 200 is changed, the method of calculating the current required power of the target PSE is the same as that of the first embodiment, and further description is omitted here, and it should be noted that in this embodiment, the allocated power may be equal to the sum of the maximum power and the reserved power of each PD device in the corresponding power class on the interface board 200 where the PSE is located.
Step S130, performing power re-allocation on the PSE of the POE switch 10 according to the calculated current required allocated power.
In this embodiment, the PSE of the POE switch 10 can be re-allocated with power according to the change of the consumed power of the target PSE.
Optionally, when the consumed power of the target PSE becomes large, and the sum of the currently required allocated power of the target PSE and the allocated powers of all other PSEs is greater than the total system power of the POE switch, the allocated power of at least one other PSE with lower priority than the target PSE is reduced, and the target PSE is allocated with corresponding power according to the currently required allocated power.
In this case, the main control board 100 obtains the power difference from at least one other PSE with a lower priority than the target PSE, and the power difference may be obtained by obtaining power from the allocated power of each PSE in sequence from low to high according to the priority as the power difference, that is, obtaining the power from the allocated power of the PSE with the lowest priority first, and obtaining the power from the allocated power of the PSE with the higher priority when the allocated power of the PSE with the lowest priority is not enough to provide the power difference. If all of the allocated power of all of the PSEs having a lower priority than the target PSE is insufficient to provide the power deficit to the target PSE, indicating that the power is insufficient. In this embodiment, the configuration mode of the priority of the PSE may be configured in advance according to a requirement, or may be set according to a preset sequence of slots inserted into the POE switch 10 by the interface board 200 where the PSE is located, where the preset sequence may be set according to the ID size of the slots of the interface board 200, for example, the priority of the PSD with the smaller slot ID may be set higher.
Optionally, when the consumed power of the target PSE becomes smaller, the system remaining power of the POE switch is allocated according to the priority of each PSE and the power-on condition of the PD device on the interface board 200 where each PSE is located.
In this case, the system residual power of POE switch 10 becomes large, and the system residual power of POE switch 10 can be allocated to each PSE according to the priority of the PSE, and specifically, the system residual power can be allocated in combination with the power-on state of the PD device on interface board 200 where the PSE is located. For example, starting from the PSE with the highest priority, if there is a PD device that is not powered on the interface board 200 where the PSE with the highest priority is located, the allocated power of the PSE is increased. And if the residual power of the system remains after the distribution, the PSE with the priority level second to the highest priority level is distributed, and the like until the residual power of the system is distributed.
In this embodiment, the main control board 100 will issue the currently required allocated power of the target PSE and the allocated power adjusted by other PSEs to the corresponding PSE, so as to complete the reallocation of the PSE power in the POE switch.
Referring to fig. 5, the method provided in the embodiment of the present invention may further include the following steps:
step S150, when it is detected that a new interface board 200 is inserted into the POE switch 10, it is determined whether the system remaining power of the POE switch 10 exceeds a preset power threshold.
The main control board 100 periodically detects whether a new interface board 200 is inserted into the POE switch 10, and when detecting that a new interface board 200 is inserted into the POE switch 10, determines whether the system residual power of the POE switch 10 is sufficient, specifically, may determine whether the system residual power of the POE switch 10 exceeds a preset power threshold, where the preset power threshold may be set as the power to be supplied to one port. Step S160 is entered when the system remaining power of the POE switch 10 exceeds the preset power threshold, otherwise, step S170 is entered.
Step S160, power is allocated to the PSE newly inserted into the interface board 200 from the system residual power of the POE switch 10.
When the system residual power of the POE switch 10 is sufficient, the power to be supplied to at least one port may be allocated to the PSE newly inserted into the interface board 200, and the timer is used to poll the interface board 200 where the PSE newly inserted into the interface board 200 is located to determine whether there is a PD device to be powered on, and when there is a PD device to be powered on, the power of the newly inserted PSE is increased to power on the PD device. The power to be supplied to at least one port is allocated to the newly inserted interface board 200, which can ensure that the PSE of the newly inserted interface board 200 can supply power to the PD device after being inserted into the POE switch 10, thereby realizing plug and play of the PSE.
Step S170, reducing the allocated power of at least one other PSE, and allocating the power to the PSE newly inserted into the interface board 200.
In this embodiment, the implementation manner corresponding to step S170 is different according to whether the priority policy is turned on in advance.
Optionally, when the priority policy is turned on in advance, the allocated power of at least one other PSE with lower priority than the PSE newly inserted into the interface board 200 may be reduced, and the power may be allocated to the PSE newly inserted into the interface board 200; or to allocate power from an unpowered PSE to a PSE newly plugged into interface board 200. In this case, the PSE newly inserted into the interface board 200 unconditionally robs allocated power from a PSE of lower priority than it. Under the same priority condition, the allocated power of the unpowered PSE is allocated to the PSE newly inserted into the interface board 200.
Optionally, when the priority policy is not turned on in advance, all PSEs may be regarded as the same priority, and the allocated power of the unpowered PSE may be allocated to the PSE newly inserted into the interface board 200 to try to supply power to the already connected PD device.
It is understood that in the embodiments provided in the present application, steps S150-S170, independently of steps S110-S130, may be used to solve the technical problem of dynamically allocating power to a PSE newly plugged into the interface board 200.
Referring to fig. 6, in the present embodiment, the method may further include step S180 and step S190.
Step S180, detect the total system power of POE switch 10.
Step S190, when detecting that the total system power of the POE switch 10 becomes smaller, decreasing the allocated power of each PSE in order from low priority to high priority.
In this embodiment, when the total system power of POE switch 10 becomes smaller, the reduction of allocated power is started from the PSE with the lowest priority. In one embodiment, if the lowest priority PSE is user-configured with PSE power, and the power-configured dynamic allocation process may not be performed, the lowest priority PSE is powered down as a whole. In another embodiment, if the lowest priority PSE is user-configured with PSE power, the user-configured power on the PSE may be preferentially reserved, and the lowest priority PSE may be selected from the dynamically allocated PSEs to reduce the allocated power.
It is understood that, in the above process, the POE switch 10 may include both PSEs configured by users and PSEs not configured by users. The main control board 100 may identify the PSE by identifying a command line with user configuration, allocate the PSE according to fixed power if the command line with user configuration is identified, and dynamically allocate power according to the power allocation method provided by this embodiment if the command line with user configuration is not identified.
In the method, when the PD equipment loaded on the interface board where the PSE is located is added or a new interface board 200 is inserted, power can be dynamically allocated to the PSE, excessive manual configuration of a user is not needed, the flexibility and convenience of application are improved, and the current hardware environment configuration of the user is utilized to the maximum extent. Meanwhile, the allocated power configured for the PSE comprises reserved power, so that plug and play of PD equipment or the PSE can be ensured.
The embodiment of the present application further provides a power distribution apparatus 110, and unlike the above embodiments, the power distribution apparatus 110 describes the solution of the present application from the perspective of a virtual apparatus. It is to be understood that the specific functions performed by the functional modules involved in the power distribution apparatus 110 to be described next have been described in the specific steps of the above embodiments, and the detailed contents of the specific functional modules can be described with reference to the above embodiments, and only the power distribution apparatus 110 will be briefly described below. Referring to fig. 7, the power distribution apparatus 110 includes the following functional modules.
An obtaining module 111 is configured to obtain consumed power of each PSE.
A calculating module 112, configured to calculate currently required allocated power of any target PSE when the obtained consumed power of the target PSE changes, where the allocated power includes reserved power and the allocated power is not greater than the maximum power of the target PSE.
An allocating module 113, configured to re-allocate power to the PSE of the POE switch 10 according to the calculated current required allocated power.
Referring to fig. 8 again, in this embodiment, the apparatus may further include: a decision block 114.
The determining module 114 is configured to determine whether the system remaining power of the POE switch 10 exceeds a preset power threshold when it is detected that a new interface board 200 is inserted into the POE switch 10.
The allocating module 113 is further configured to allocate power to the PSE newly inserted into the interface board 200 from the system remaining power of the POE switch 10 when the system remaining power of the POE switch 10 exceeds a preset power threshold; or
When the system residual power of the POE switch 10 does not exceed the preset power threshold, the allocated power of at least one other PSE is reduced, and the power is allocated to the PSE newly inserted into the interface board 200.
In the embodiment of the present invention, the virtual device formed by the determining module 114 and the allocating module 113 may be independent from the virtual device in fig. 7, and the virtual device formed by the determining module 114 and the allocating module 113 may be used to allocate power to the PSE newly inserted into the interface board 200.
If the above functions are implemented in the form of software functional modules and sold or used as a separate product, they may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing POE switch 10 to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
To sum up, according to the power distribution method, the power distribution device, and the POE switch provided by the embodiments of the present application, first, power consumption of each PSE in the POE switch is obtained; then, when the obtained consumed power of the target PSE changes, calculating to obtain the currently required allocated power of the target PSE; and finally, performing power allocation again on the PSE on the POE switch according to the calculated current required allocated power. In the process, when the PD equipment of the interface board where the PSE is located is increased or a new PSE is inserted, power can be dynamically distributed for the PSE, excessive manual configuration is not needed for a user, the flexibility and convenience of application are improved, and the current hardware environment configuration of the user is utilized to the greater extent. Meanwhile, the reserved power is included in the power configured for the PSE, so that the plug and play of the PD equipment or the PSE can be ensured.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (11)
1. A power distribution method is applied to a POE switch, the POE switch comprises a plurality of interface boards, wherein each interface board comprises a Power Supply Equipment (PSE), and a port on the interface board where each PSE controls supplies power to a Powered Device (PD), and the method comprises the following steps:
acquiring the consumed power of each PSE;
when the obtained consumed power of any target PSE changes, calculating the distributed power currently required by the target PSE, wherein the distributed power comprises reserved power and is not larger than the maximum power of the target PSE, the distributed power is calculated and obtained based on the reserved power and the maximum power of each PD device on an interface board where the target PSE is located under the current power level, or the distributed power is calculated and obtained based on the reserved power and the power to be supplied of each port for supplying power to the PD device on the interface board where the target PSE is located, and the reserved power is used for supplying power to the newly accessed PD device on the target PSE;
and performing power allocation again on the PSE of the POE switch according to the calculated current required allocated power.
2. The method of claim 1, wherein the step of re-allocating power to the PSE of the POE switch based on the calculated current required allocated power comprises:
if the sum of the current required allocated power of the target PSE and the allocated powers of all other PSEs is larger than the total system power of the POE switch, reducing the allocated power of at least one other PSE with the priority lower than that of the target PSE, and allocating corresponding power to the target PSE according to the current required power;
and if the current required allocated power of the target PSE is smaller than the allocated power before the change, allocating the system residual power of the POE switch according to the priority of each PSE or the power-on condition of the PD equipment on the interface board where each PSE is located.
3. The method of claim 1, wherein the method further comprises:
when detecting that a new interface board is inserted into the POE switch, judging whether the system residual power of the POE switch exceeds a preset power threshold value;
when the power exceeds a preset power threshold, distributing power to the PSE of a newly inserted interface board from the system residual power of the POE switch;
and when the preset power threshold value is not exceeded, reducing the allocated power of at least one other PSE, and allocating the power to the PSE which is newly inserted into the interface board.
4. The method of claim 3, wherein the step of reducing the allocated power of the at least one other PSE to allocate power to the PSE newly plugged into the interface board when the preset power threshold is not exceeded comprises:
reducing the distributed power of at least one other PSE with lower priority than the PSE of the newly inserted interface board, and distributing the power to the PSE of the newly inserted interface board; or
The power of the unpowered PSE is allocated to the PSE newly plugged into the interface board.
5. The method of any one of claims 1-4, further comprising:
detecting the total system power of the POE switch;
and when the total system power of the POE switch is detected to be reduced, reducing the distributed power of each PSE according to the sequence from low priority to high priority.
6. A power distribution method is applied to a POE switch, the POE switch comprises a plurality of interface boards, wherein each interface board comprises a Power Supply Equipment (PSE), and a port on the interface board where each PSE controls supplies power to a Powered Device (PD), and the method comprises the following steps:
when detecting that a new interface board is inserted into the POE switch, judging whether the system residual power of the POE switch exceeds a preset power threshold value;
when the power exceeds a preset power threshold, distributing power to the PSE of the newly-inserted interface board from the system residual power of the POE switch, so that the PSE of the newly-inserted interface board is distributed to the power to be supplied to at least one port;
and when the power does not exceed the preset power threshold, reducing the allocated power of at least one other PSE, and allocating the power to the PSE newly inserted into the interface board, so that the PSE newly inserted into the interface board is allocated to the power to be supplied to at least one port.
7. The utility model provides a power distribution device, its characterized in that is applied to the POE switch, the POE switch includes a plurality of interface boards, and wherein, every interface board includes a power supply equipment PSE, and the port on the interface board at every PSE control place supplies power to powered device PD, the device includes:
the obtaining module is used for obtaining the consumed power of each PSE;
the calculation module is used for calculating currently required allocated power of any target PSE when the acquired consumed power of the target PSE changes, wherein the allocated power comprises reserved power which is not more than the maximum power of the target PSE, the allocated power is calculated and obtained based on the reserved power and the maximum power of each PD device on an interface board where the target PSE is located under the current power level, or the allocated power is calculated and obtained based on the reserved power and the power to be supplied of each port which supplies power to the PD device on the interface board where the target PSE is located, and the reserved power is used for supplying power to the newly accessed PD device on the target PSE;
and the allocation module is used for performing power allocation again on the PSE of the POE switch according to the calculated current required allocation power.
8. The apparatus of claim 7, wherein the assignment module is specifically configured to:
if the sum of the current required allocated power of the target PSE and the allocated powers of all other PSEs is larger than the total system power of the POE switch, reducing the allocated power of at least one other PSE with the priority lower than that of the target PSE, and allocating corresponding power to the target PSE according to the current required power;
and if the current required allocated power of the target PSE is smaller than the allocated power before the change, allocating the system residual power of the POE switch according to the priority of each PSE or the power-on condition of the PD equipment on the interface board where each PSE is located.
9. The apparatus of claim 7, wherein the apparatus further comprises a determination module;
the judging module is used for judging whether the system residual power of the POE switch exceeds a preset power threshold value or not when a new interface board is detected to be inserted into the POE switch;
the distribution module is further configured to distribute power to the PSE newly inserted into the interface board from the system residual power of the POE switch when the system residual power of the POE switch exceeds a preset power threshold; or
And when the system residual power of the POE switch does not exceed the preset power threshold, reducing the distribution power of at least one PSE, and distributing the power to the PSE newly inserted into the interface board.
10. The utility model provides a power distribution device, its characterized in that is applied to the POE switch, the POE switch includes a plurality of interface boards, and wherein, every interface board includes a power supply equipment PSE, and the port on the interface board at every PSE control place supplies power to powered device PD, the device includes:
the judging module is used for judging whether the system residual power of the POE switch exceeds a preset power threshold value or not when a new interface board is detected to be inserted into the POE switch;
the distribution module is further used for distributing power to the PSE newly inserted into the interface board from the system residual power of the POE switch when the system residual power of the POE switch exceeds a preset power threshold value, so that the PSE newly inserted into the interface board is distributed to the power to be supplied to at least one port; or
When the system residual power of the POE switch does not exceed the preset power threshold, the distributed power of at least one other PSE is reduced, the power is distributed to the PSE newly inserted into the interface board, and the PSE newly inserted into the interface board is distributed to the power to be supplied to at least one port.
11. A POE switch comprising a processor and a non-volatile memory having computer instructions stored thereon, wherein the computer instructions, when executed by the POE switch, implement the power allocation method of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810283470.1A CN108494568B (en) | 2018-04-02 | 2018-04-02 | Power distribution method and device and POE switch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810283470.1A CN108494568B (en) | 2018-04-02 | 2018-04-02 | Power distribution method and device and POE switch |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108494568A CN108494568A (en) | 2018-09-04 |
CN108494568B true CN108494568B (en) | 2022-02-11 |
Family
ID=63318170
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810283470.1A Active CN108494568B (en) | 2018-04-02 | 2018-04-02 | Power distribution method and device and POE switch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108494568B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109193653B (en) * | 2018-10-31 | 2021-06-18 | 新华三技术有限公司 | Power distribution method and device |
CN110390772A (en) * | 2019-07-12 | 2019-10-29 | 深圳街电科技有限公司 | A kind of power sharing method and system |
CN113363986B (en) * | 2020-03-06 | 2024-09-03 | 瑞昱半导体股份有限公司 | Power supply system for power over Ethernet and power supply method thereof |
CN114123161B (en) * | 2020-08-31 | 2025-02-07 | 施耐德电气工业公司 | Power management method and corresponding control device and electrical equipment |
CN113079116B (en) * | 2021-03-17 | 2022-04-26 | 新华三技术有限公司 | Power supply method, device and equipment |
CN115550081A (en) * | 2021-06-30 | 2022-12-30 | 华为技术有限公司 | Power management method and device of power supply equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7631201B2 (en) * | 2006-05-25 | 2009-12-08 | Foundry Networks, Inc. | System software for managing power allocation to Ethernet ports in the absence of mutually exclusive detection and powering cycles in hardware |
CN101707380A (en) * | 2008-07-21 | 2010-05-12 | 北京星网锐捷网络技术有限公司 | Method, device and system for configuring power supply system |
CN105812147A (en) * | 2016-04-28 | 2016-07-27 | 博为科技有限公司 | POE (Power Over Ethernet) power supply control method for communication equipment |
CN107547209A (en) * | 2017-08-14 | 2018-01-05 | 新华三技术有限公司 | Power distribution method and device |
-
2018
- 2018-04-02 CN CN201810283470.1A patent/CN108494568B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7631201B2 (en) * | 2006-05-25 | 2009-12-08 | Foundry Networks, Inc. | System software for managing power allocation to Ethernet ports in the absence of mutually exclusive detection and powering cycles in hardware |
CN101707380A (en) * | 2008-07-21 | 2010-05-12 | 北京星网锐捷网络技术有限公司 | Method, device and system for configuring power supply system |
CN105812147A (en) * | 2016-04-28 | 2016-07-27 | 博为科技有限公司 | POE (Power Over Ethernet) power supply control method for communication equipment |
CN107547209A (en) * | 2017-08-14 | 2018-01-05 | 新华三技术有限公司 | Power distribution method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108494568A (en) | 2018-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108494568B (en) | Power distribution method and device and POE switch | |
US8352754B2 (en) | Power management of PoE devices based on powered queue and unpowered queue of time order connection priority while maintaining reserve power | |
US7203849B2 (en) | Method and system for distributing power to networked devices | |
US7631201B2 (en) | System software for managing power allocation to Ethernet ports in the absence of mutually exclusive detection and powering cycles in hardware | |
JP6725898B2 (en) | Power receiving device in power over ethernet network system and method for the power receiving device | |
EP1839102B1 (en) | Method and system for managing power delivery for power over ethernet systems | |
US8683239B2 (en) | Managing power allocation to Ethernet ports in the absence of mutually exclusive detection and powering cycles in hardware | |
US9547350B2 (en) | Network powered device | |
US8892910B2 (en) | Method and system for providing dynamic power sharing to network devices | |
CN107409053B (en) | Active Ethernet power supply method and system | |
US20150160674A1 (en) | Automatic Load Share Architecture For Usb Port Power | |
US10231314B2 (en) | Power splitter for a variable number of loads and power splitting method | |
US20070110360A1 (en) | Dynamic power allocation in system for providing power over communication link | |
CN103229125A (en) | Dynamic power balancing among blade servers in chassis | |
WO2005109154A2 (en) | Method for rapid port power reduction | |
EP1964309A1 (en) | Providing detailed information on powered device in system for supplying power over communication link | |
WO2006077569A1 (en) | Rack level power management | |
US20160224038A1 (en) | Network Device Heating Based on Power Classification and Temperature | |
CN113273134B (en) | Hasp type Power Over Ethernet (POE) monitoring system | |
JP2010101536A (en) | Heating cooker and electrical usage control system | |
CN107547209B (en) | Power distribution method and device | |
CN108028761A (en) | Power source equipment equipment for Power over Ethernet lighting system | |
EP2940933B1 (en) | Method for node device to enter or exit power-saving mode and node device | |
CN110401240A (en) | Method of supplying power to and electronic equipment | |
JP7149421B2 (en) | ELECTRONIC DEVICE AND CONTROL METHOD OF ELECTRONIC DEVICE |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230627 Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd. Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466 Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd. |
|
TR01 | Transfer of patent right |