CN104468133B - POE control method, power supply unit and system - Google Patents

POE control method, power supply unit and system Download PDF

Info

Publication number
CN104468133B
CN104468133B CN201310423205.6A CN201310423205A CN104468133B CN 104468133 B CN104468133 B CN 104468133B CN 201310423205 A CN201310423205 A CN 201310423205A CN 104468133 B CN104468133 B CN 104468133B
Authority
CN
China
Prior art keywords
power supply
mac address
supply unit
poe
user
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
Application number
CN201310423205.6A
Other languages
Chinese (zh)
Other versions
CN104468133A (en
Inventor
于斌
王勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310423205.6A priority Critical patent/CN104468133B/en
Publication of CN104468133A publication Critical patent/CN104468133A/en
Application granted granted Critical
Publication of CN104468133B publication Critical patent/CN104468133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a kind of POE control method, power supply unit and system, wherein, the POE control method includes:In stop power supply the period when, power supply unit obtains the WLAN WLAN of power over Ethernet PoE ports connection access point AP medium access control MAC Address;According to the MAC Address, determine whether the AP has online user;Stop powering to the AP of no online user.The POE control method that the embodiment of the present invention is provided, in stop power supply the period when, PSE is according to its AP connected MAC Address automatic identification AP working condition, if user is online, the PoE ports that PSE can continue through POE system power to AP, if online without user, PSE just stops powering to AP, improves the flexibility of POE control method.

Description

POE control method, power supply unit and system
Technical field
The present invention relates to power supply technique field, more particularly to a kind of POE control method, power supply unit and system.
Background technology
Power over Ethernet(English:Power over Ethernet, abbreviation:PoE)Do not changing existing ether rack On the basis of structure, for while equipment transmission data signal direct current supply can also be provided for these equipment.
In order in user without using saving electric power during network, it is common, can be exchanged by order line come Configuration network The power supply plan of machine and router, it can include power-on time section, period of stopping power supply etc. in the works in the power supply, make network Interchanger and router stop PoE power supplies in the period of stopping power supply.
For example, in the network switch as power supply unit(Power sourcing equipment, abbreviation PSE), wirelessly The access point of LAN(English:Access point, abbreviation:AP)As power receiving equipment(English:Powered device, contracting Write:PD)When, in order to save, it can configure what PoE ports pair were connected with the PoE ports by order line on the network switch AP power supply plan.The AP of PoE ports connection is not all the time all in working condition, in the AP idle time Section, the network switch can stop powering to the PD, save efficiency.Such as:User configuration PoE ports 8 a.m. is to afternoon 18 points are power-on time section, and remaining time is to stop power supply the period.So, at 8 points to 18 points, the network switch supplies to AP Electricity.Do not powered in the afternoon to 8 points of the next morning, the network switch to AP for 18 points.But if user's temporary needs is after 18 points Network is accessed using AP, then needs to reconfigure PoE ports to connected AP by changing the order line of the network switch Power supply plan, can just make the network switch 18 points of backward AP power supplies in the afternoon.
In summary, the method for existing configuration PoE ports power supply plan, it is impossible to meet the needs of user's electricity consumption at any time, control PSE processed whether the method for couple PD being connected with PoE ports power supply, very flexible.
The content of the invention
Technical problem
In view of this, the technical problem to be solved in the present invention is how to meet the electricity consumption at any time of POE system user Demand, improve POE control method flexibility.
Solution
In order to solve the above-mentioned technical problem, in a first aspect, the invention provides a kind of POE control method, bag Include:
In stop power supply the period when, power supply unit obtains connecing for the WLAN of POE port connection The Media Access Control address of access point;
The power supply unit determines whether the AP has online user according to the MAC Address;
The power supply unit stops powering to the AP of no online user.
With reference in a first aspect, in the first possible implementation of first aspect, it is described in stop power supply when Between section when, power supply unit obtains the Media Access Control address of the access point of the WLAN of POE port connection, Including:
The power supply unit determines whether to stop power supply the period in described;
If it is, the power supply unit reads the MAC Address of the AP from the mac address table of the AP.
With reference to the first possible implementation of first aspect, in second of possible implementation of first aspect In, in the case where the power supply unit is the network switch, the POE control method, in addition to:
The network switch sends WAP control and configuration protocol lattice to the access controller of WLAN The AC of formula has found message, and to cause the AC to parse the MAC Address that the AC has found AP described in Receive message, the AC has found report Text includes the MAC Address that the network switch is read from the mac address table of the AP;
The AC that the network switch receives the CAPWAP forms from the AC has found response message, and the AC has found should Answering message includes the information whether AP has online user.
With reference to any one in the first of first aspect and first aspect and second possible implementation, the It is described according to the MAC Address in the third possible implementation of one side, determine whether the AP has online user, Including:
The AC inquires about user's list item of the AP according to the MAC Address;
The AC determines whether the AP has online user according to user's list item.
In second aspect, the invention provides a kind of power supply unit, including:
Acquiring unit, in stop power supply the period when, obtain the wireless local of POE port connection The Media Access Control address of the access point of net;
Determining unit, it is connected with the acquiring unit, for according to the MAC Address, determining whether the AP has online User;
Processing unit, it is connected with the determining unit, the AP for stopping to no online user powers.
With reference to second aspect, in the first possible implementation of second aspect, the acquiring unit is additionally operable to:
Determine whether to stop power supply the period in described, if it is, reading institute from the mac address table of the AP State AP MAC Address.
With reference to the first possible implementation of second aspect, in second of possible implementation of second aspect In, the determining unit is additionally operable to:
According to the MAC Address, user's list item of the AP is inquired about, determines whether the AP has online user.
With reference to second aspect, in the third possible implementation of second aspect, the acquiring unit is additionally operable to:
Determine whether to stop power supply the period in described, if it is, sending out to the access controller of WLAN The AC of CAPWAP protocol formats is sent to find message, the AC has found that message includes what is read from the mac address table of the AP MAC Address.
With reference to the third possible implementation of second aspect, in the 4th kind of possible implementation of second aspect In, the determining unit is additionally operable to:
The AC that CAPWAP protocol formats are received from the AC has found response message, and the AC has found that response message includes institute State whether AP has the information of online user.
In the third aspect, the invention provides a kind of Ethernet system, including:
AP, the AP are connected with the POE port;
Power supply unit, the power supply unit include AC or the network switch;
The AC, using any in the first of above-mentioned second aspect and second aspect and second of possible implementation Power supply unit described in kind;
The network switch, using the third of above-mentioned second aspect and second aspect and the 4th kind of possible realization side Any described power supply unit in formula.
In fourth aspect, the invention provides a kind of power over Ethernet device, including:
Processor, for configuration processor;
Power supply circuit, it is connected with the processor, for providing electric energy;
POE port, it is connected with power receiving equipment and the power supply circuit, for provide the power supply circuit Electrical energy transportation is embodied as the power supply of power receiving equipment to power receiving equipment.
Memory, for depositing power supply plan etc.;
Bus, for the communication between the processor, power supply circuit, POE port, memory.
It is net in power over Ethernet device in the first possible implementation of fourth aspect with reference to fourth aspect In the case of network interchanger, it can also include:
Communication interface, communicated for the network switch with AC.
Beneficial effect
The present invention POE control method, in stop power supply the period when, PSE is according to its AP's connected MAC Address automatic identification AP working condition, if user is online, then PSE can continue through POE system PoE ports power to AP, if online without user, PSE just stops powering to AP, improves POE control method Flexibility.
According to below with reference to the accompanying drawings becoming to detailed description of illustrative embodiments, further feature of the invention and aspect It is clear.
Brief description of the drawings
Comprising in the description and the accompanying drawing of a part for constitution instruction and specification together illustrate the present invention's Exemplary embodiment, feature and aspect, and for explaining the principle of the present invention.
Fig. 1 shows the flow chart of according to embodiments of the present invention one POE control method;
Fig. 2 shows the flow chart of according to embodiments of the present invention two POE control method;
Fig. 3 a show the flow chart of according to embodiments of the present invention three POE control method;
Fig. 3 b show the schematic diagram of according to embodiments of the present invention three CAPWAP protocol massages forms;
Fig. 3 c show the schematic diagram of according to embodiments of the present invention three TLV message structures;
Fig. 3 d show that according to embodiments of the present invention three AC has found the schematic diagram of message structure;
Fig. 3 e show that according to embodiments of the present invention three AC has found the schematic diagram of response message structure;
Fig. 4 shows the structured flowchart of according to embodiments of the present invention four power supply unit;
Fig. 5 shows the structured flowchart of according to embodiments of the present invention five Ethernet system;
Fig. 6 shows the structured flowchart of according to embodiments of the present invention six power over Ethernet device.
Embodiment
Describe various exemplary embodiments, feature and the aspect of the present invention in detail below with reference to accompanying drawing.It is identical in accompanying drawing Reference represent the same or analogous element of function.Although the various aspects of embodiment are shown in the drawings, remove Non-specifically point out, it is not necessary to accompanying drawing drawn to scale.
Special word " exemplary " is meant " being used as example, embodiment or illustrative " herein.Here as " exemplary " Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the present invention, numerous details is given in embodiment below. It will be appreciated by those skilled in the art that without some details, the present invention can equally be implemented.In some instances, for Method, means, element and circuit well known to those skilled in the art are not described in, in order to highlight the purport of the present invention.
In POE system, mainly include power supply unit and power receiving equipment, power receiving equipment can be wireless local Equipment, the power supply units such as the WAP of net, security system, IP phone can be the access controller of WLAN, net The equipment such as network interchanger, router, hub.In the embodiment of the present invention, power supply unit can be the access control of WLAN Device processed(English:Access controller, abbreviation:AC)Or the network switch, power receiving equipment can be based on nothing Line access point controls and configuration(English:Control And Provisioning of Wireless Access Points, contracting Write:CAPWAP)Access controller control and the WAP of the WLAN of configuration of the agreement by WLAN.
Embodiment 1
Fig. 1 shows the flow chart of according to embodiments of the present invention one POE control method.As shown in figure 1, should be with Too net method for controlling power supply includes:
Step S100, in stop power supply the period when, power supply unit obtains the wireless of POE port connection The Media Access Control address of the access point of LAN.
Specifically, in POE system, PSE is connected by PoE ports with PD, and PSE can monitor Ethernet confession The message of electric system, it is determined that the message format of the message listened to, is WAP control and configuration protocol in message format During form, it may be determined that PD is the access point in WLAN.PSE can be configured the power supply plan of Ethernet electric power system, at this Power supply can only include power-on time section in the works, such as:Power-on time section is 8:00~18:00, during power supply control, PSE can be calculated 0 according to power-on time section:01~7:59 and 18:01~24:00 is to stop power supply the period.It can replace Change, the period of stopping power supply can also be only included in the works by powering, and during power supply control, power-on time is calculated in PSE Section.Interchangeable, power supply can also include power-on time section and stop power supply the period in the works.In the period of stopping power supply, PSE can be first according to the PoE interface querying medium access control for connecting the AP(English:Media access control, contracting Write:MAC)Address table, to determine the MAC Address of the AP.Above-mentioned mac address table includes corresponding between MAC Address and port Relation.Common, the corresponding relation in mac address table is by mac learning(English:MAC learning)Obtain.PSE can basis System time and power supply plan were determined whether in the period of stopping power supply.
Step S120, described power supply unit determines whether the AP has online user according to the MAC Address;
Step S140, described power supply unit stops powering to the AP of no online user.
Specifically, in POE system, having user to reach the standard grade i.e. in AP has user to need to access network by the AP When, the access controller in WLAN can be verified to user, such as the information such as the user name of checking user, password, and will be logical Cross checking and be defined as online user without offline user, user's table in AC is updated, wherein, it is corresponding in user's table AP online user's state, the information such as MAC Address of the AP can be preserved in user's list item of the AP.So, by The MAC Address for the AP that PoE ports connect in the POE system got, the user's table inquired about in AC, it may be determined that should AP online user's quantity, in the case where the AP does not have online user, it can control the AP's in power supply unit by setting The state of the register of PoE ports stops powering to the AP that this does not have online user to close.Online user's state of the AP can To include the mark of no online user, this is masked as the first value and then represents that the AP has online user, and this is masked as second value then Represent that the AP does not have online user;Online user's state of the AP can also include the quantity of online user;The online use of the AP Family state can also include the mark of no online user and the quantity of online user.For example, user 1 accesses network by AP1 And passed through AC checking, in user 1 in the case of offline, user 1 turns into AP1 online user, now can to AP1 user's list item is updated in the table of family, and it is the first value that renewal operation, which can be included AP1 online user's traffic sign placement, It can also include AP1 online user's quantity adding 1, above two can also be included simultaneously and operated.
It should be noted that the POE control method of the present embodiment, in the case where AC is as power supply unit, also There can be interchangeable implementation.For example, in the case where AP does not have online user, AC user's table can be first inquired about, AP MAC Address and AP online user's state are determined in user's list item of the AP.AC inquires about MAC further according to the MAC Address Address table, it is determined that connecting the POE port of the AP, determine whether to stop powering to the AP for follow-up.
In a kind of possible implementation, in stop power supply the period when, power supply unit can temporally cycle Such as the AP of detection in 10 minutes state.For example, it is power supply that 8 a.m. is configured on power supply unit at 18 points in afternoon Period, remaining time, when the period of stopping power supply starts, power supply unit can be according to acquisition to stop power supply the period MAC Address, it is determined that whether the AP being connected with PoE ports has online user, power supply unit can be after if AP has online user Continue and powered for AP, and can be such as 10 minutes at interval of a period of time, then detect once whether the AP has online user.If AP There is no online user, then it is pass that power supply unit, which can set the state of the register for the PoE ports that the AP is controlled in power supply unit, Close, stop powering to AP.
The POE control method of the present embodiment, PSE can be according to AP MAC Address automatic identification AP work State, if user is online, then PSE can continue through the PoE ports of POE system and the AP is powered, if do not had Have that user is online, PSE just stops powering to the AP, improves the flexibility of POE control method.
Embodiment 2
Fig. 2 shows the flow chart of according to embodiments of the present invention two POE control method.As shown in Fig. 2 and Fig. 1 Shown POE control method is compared, and the step S100 of the POE control method can specifically include:
Step S200, described power supply unit is determined whether to be in and stopped power supply the period;If it is, perform step S210。
Wherein, in the POE system of the embodiment of the present invention two, power receiving equipment can be WLAN AP, and power supply is set Standby can be WLAN AC.On AC, be preconfigured the power supply plan to AP, arrival stop power supply the period when, AC is held Row step S210.
Step S210, described power supply unit reads the MAC Address of the AP from the mac address table of the AP.
Specifically, after the clock instruction system time during AC is determined has arrived at the period of stopping power supply, AC can With elder generation according to the PoE interface querying mac address tables for connecting the AP, to determine the MAC Address of the AP.
After AC reads AP MAC Address, the step of POE control method shown in Fig. 1 can be performed S120 determines whether AP has online user, and step S120 can specifically include:
Step S220, described AC inquires about user's list item of the AP according to the MAC Address;
Step S230, described AC determines whether the AP has online user according to user's list item.
Specifically, in POE system, having user to reach the standard grade i.e. in AP has user to need to access network by the AP When, the access controller in WLAN can be verified to user, such as the information such as the user name of checking user, password, and will be logical Cross checking and be defined as online user without offline user, and by user's table in the information deposit AC of the online user. Wherein, corresponding to online user's state, the MAC Address of the AP that AP can be preserved in user's list item of the AP in above-mentioned user's table Etc. information.So, the AP connected by PoE ports in the POE system that has got MAC Address, inquire about in AC User's table, can determine whether the AP has online user by online user's quantity of the AP.
After AC determines whether AP has online user, POE control method shown in Fig. 1 can be performed Step S140, can be by setting control in AC should in the case where the AP does not have an online user i.e. online user's quantity is zero The state of the register of AP PoE ports stops powering to the AP that this does not have online user to close.
In a kind of possible implementation, in stop power supply the period when, AC can temporally cycle such as 10 AP of minute detection state.For example, be configured on AC 8 a.m. to afternoon 18 points be power-on time section, remaining Time, when the period of stopping power supply starts, AC can postpone to stop the operation to AP power supplies, and AC can to stop power supply the period With the MAC Address according to acquisition, it is determined that whether the AP being connected with PoE ports has online user, the AC if AP has online user AP power supplies can be continued as, and can be such as 10 minutes at interval of a period of time, then detect once whether the AP has online use Family.If AP does not have online user, AC can set the state of the register for the PoE ports for controlling the AP to stop to close AP is powered.
The POE control method of the present embodiment, in stop power supply the period when, AC can be according to AP MAC Address automatic identification AP working condition, if user is online, then AC can continue through the PoE of POE system Port powers to the AP, if online without user, AC just stops powering to the AP, improves POE control method Flexibility.
Embodiment 3
Fig. 3 a show the flow chart of according to embodiments of the present invention three POE control method.As shown in Figure 3 a, with POE control method shown in Fig. 1 is compared, and in the POE system, power receiving equipment can be WLAN AP, Power supply unit can be the network switch.On the network switch, the power supply plan to AP has been preconfigured, has reached and stops supplying During the electric period, the step S200 and step S210 of the POE control method shown in Fig. 2 can be performed.
Specifically, in the network switch is determined clock instruction system time have arrived at stop power supply the period it Afterwards, the network switch can obtain connected AP mac address table, from mac address table according to PoE ports and MAC The corresponding relation of location reads the MAC Address of the AP.
Further, the POE control method of the present embodiment, the network switch read AP MAC Address it Afterwards, can perform:
Step S300, the described network switch sends WAP control to the AC and the AC of configuration protocol form is sent out Existing message, to allow the AC to parse the MAC Address that the AC has found AP described in Receive message, the AC is had found in message The MAC Address read including the network switch from the mac address table of the AP.
Specifically, the network switch can obtain the mac address table of the AP and from mac address table according to PoE ports with The corresponding relation of MAC Address reads the MAC Address of the AP, but AP user's list item can not be directly inquired about according to MAC Address, with Determine whether to stop powering to AP for follow-up.The network switch can send WAP control and configuration to AC(English: Control And Provisioning of Wireless Access Points, abbreviation:CAPWAP)The AC hairs of protocol format Existing message, the AC can be so parsed by AC and finds message, the payload of message is found from AC(payload)In can obtain To AP MAC Address, it is possible to further inquire about user's list item of the AP in AC user's table by MAC Address, determine on AP Whether online user is had.
AC, AP interaction defined in the CAPWAP agreements of existing standard.The message format of CAPWAP agreements is as schemed Shown in 3b, wherein, CAPWAP anticipation codes(CAPWAP Preamble)For 8;Header length(Head Length, abbreviation HLEN) For 5, the length of CAPWAP stems is indicated;Radio frequency identifiers(Radio Identity, abbreviation RID)For 5, message is indicated Source RF;Wireless frame identifier(Wireless Binding Identity, abbreviation WBID)For 5, radio frames class is indicated Type;T represents 1 bit data frames identifier, be worth for 1 when data frame be the type that is indicated by wireless frame identifier;F identifies 1 packet Mark, be worth for 1 when message be the packet of CAPWAP message, it is necessary to other packet recombinings into complete message;L represents 1 Be grouped end mark, be worth for 1 when message be last packet;W represents 1 option flag, be worth for 1 when wireless specific letter be present Breath(Wireless Specific Information)Option;M represent 1 option flag, be worth for 1 when media MAC Address be present (Radio MAC Address)Option;K represent 1 survival mark, indicate message be used for keep connection survival, it is impossible to carry use User data;Reserved mark (Flags) is 3;Packet identifier (Fragment ID) is 16, identifies different packets; It is 13 to be grouped displacement (Frag Offset), indicates the position of each packet in messages;Reserved code (Reserved, abbreviation Rsvd) it is 3;Radio frequency MAC Address (Radio MAC Address) is 32, less than 32 completions of use 0, indicates message source The MAC Address of radio frequency;Special wireless messages (Wireless Specific Information) are 32, and less than 32 use 0 are mended Entirely, comprising specific information;In payload (payload), data message carries user data, controls carrying control in message to disappear Breath.
But for the application to emerge in an endless stream, the CAPWAP agreements of existing standard can not much meet the needs of application, Therefore reserved in CAPWAP protocol massages forms expansion interface " interface of the option 37 " as enterprise's voluntarily extensible element, " option 37 " is encapsulated in the payload of existing standard CAPWAP protocol massages forms(payload)Part, the segment message are TLV(Type-Length-Value, type lengths values)The option information of structure.As shown in Figure 3 c, the message format of TLV structures Including type(Type), length(Length), value(Value)Three category informations.As shown in Figure 3 d, in one embodiment of the present of invention In, above-mentioned AC has found that " expansion interface of option 37 " is extended application of electronic report to the CAPWAP agreements of existing standard, the message Include AP MAC Address(AP_MAC1).
Step S310, the AC that the described network switch receives the CAPWAP forms from the AC has found response message, institute State AC and find that response message includes the information whether AP has online user.
Specifically, after AC parses to obtain AP MAC Address, the POE control method shown in Fig. 2 can be performed Step 220 and step 230, according to MAC Address, inquire about AP user's list item, obtain whether having online user on AP, to network Interchanger sends AC and finds response message, and the AC has found that response message includes the information whether AP has online user.Such as Fig. 3 e Shown, above-mentioned AC has found that response message can also be using " expansion interface of option 37 " expands the CAPWAP agreements of existing standard Exhibition, the message include AP MAC Address(AP_MAC1)Whether corresponding A P has the information of online user, such as passes through reserved bit Carry.
After the network switch determines whether AP has online user, the POE control shown in Fig. 1 can be performed The step S140 of method processed, can be by setting net in the case where the AP does not have an online user i.e. online user's quantity is zero The state of the register of the PoE ports of the AP is controlled to stop powering to the AP that this does not have online user to close in network interchanger.
In a kind of possible implementation, in stop power supply the period when, the network switch can be temporally all Such as 10 minutes phase detected AP state.For example, 8 a.m. is configured on the network switch is for 18 points to afternoon Power-on time section, remaining time, when the period of stopping power supply starts, the network switch can postpone to stop power supply the period Stop the operation to AP power supplies, the network switch, which can obtain AP MAC Address and send AC to AC, finds message, and the AC has found Message includes AP MAC Address, and user's list item that the AP of AC preservations can be inquired about by AC parsings determines whether have on AP Line user, the network switch receive AC and find response message, and the AC has found that response message includes the letter whether AP has online user Breath, the network switch determine whether AP has online user, and the network switch can continue as the AP if AP has online user Power supply, and can be such as 10 minutes at interval of a period of time, then detect once whether the AP has online user.If AP does not exist Line user, then it is closing that the network switch, which can set the state of the register for the PoE ports for controlling the AP, stops supplying AP Electricity.
The POE control method of the present embodiment, in stop power supply the period when, the network switch being capable of structure The message and AC for making CAPWAP protocol formats interact, automatic identification AP working condition, if user is online, then net The PoE ports that network interchanger can continue through POE system are powered to the AP, if online without user, network is handed over Change planes and just stop powering to the AP, improve the flexibility of POE control method.
Embodiment 4
Fig. 4 shows the structured flowchart of according to embodiments of the present invention four power supply unit.As shown in figure 4, the power supply unit 400 Including:
Acquiring unit 420, in stop power supply the period when, obtain the wireless office of POE port connection The Media Access Control address of the access point of domain net.
Specifically, in POE system, power supply unit 400 can be connected by PoE ports with PD, power supply unit 400 can monitor the message of POE system, it is determined that the message format of the message listened to, is wirelessly to connect in message format When access point is controlled with configuration protocol form, it may be determined that PD is the access point in WLAN., can be pre- on power supply unit 400 The power supply plan of first configuration ethernet electric power system, wherein, power supply plan may refer to POE in embodiment one and control Associated description in method.The clock instruction system time configured in power supply unit 400 has arrived at the POE system System stop power supply the period when, power supply unit 400 can not stop powering to the AP of PoE ports connection, but by obtaining Take unit 420 to obtain AP MAC Address, judge whether to stop powering to the AP for follow-up.
Further, acquiring unit 420 specifically can be also used for:
Determine whether to stop power supply the period in described, if it is, reading institute from the mac address table of the AP State AP MAC Address.
Specifically, power supply unit 400 is configured for the power supply plan to AP, and system is indicated in the clock of power supply unit 400 Time has had arrived at when stopping power supply the period, and power supply unit 400 can not be immediately by stopping powering to AP, but obtains Connected AP mac address table, read AP's according to the corresponding relation of PoE ports and MAC Address from mac address table MAC Address.
Determining unit 440, it is connected with the acquiring unit 420, for according to the MAC Address, whether determining the AP There is online user.
Determining unit 440 specifically can be also used for:
According to the MAC Address, user's list item of the AP is inquired about, determines whether the AP has online user.
Specifically, in POE system, having user to reach the standard grade i.e. in AP has user to need to access network by the AP When, AC can verify to user, such as the information such as the checking user name of user, password, and will be by checking and not offline User be defined as online user, and by user's table in the information deposit AC of the online user.Wherein, in above-mentioned user's table Corresponding to AP online user's state, the information such as MAC Address of the AP can be preserved in user's list item of the AP.So, pass through The MAC Address for the AP that PoE ports connect in the POE system got, the user's table inquired about in AC can be true Whether the fixed AP has online user.
Processing unit 460, it is connected with the determining unit 440, the AP for stopping to no online user powers.
Specifically, in the case where the AP does not have an online user i.e. online user's quantity is zero, processing unit 460 can lead to The state for the register that the PoE ports that the AP is controlled in power supply unit are set is crossed to close, stops not having online user's to this AP powers.
In a kind of possible implementation, in stop power supply the period when, power supply unit 400 can be temporally all Such as 10 minutes phase detected AP state.For example, 8 a.m. is configured on power supply unit 400 at 18 points in afternoon For power-on time section, remaining time, when the period of stopping power supply starts, power supply unit 400 can be with to stop power supply the period Delay stops the operation to AP power supplies, the MAC Address that determining unit 440 can obtain according to acquiring unit 420, it is determined that and PoE Whether the AP of port connection has online user, and power supply unit 400 can continue as AP power supplies if AP has online user, and And can be such as 10 minutes at interval of a period of time, then detect once whether the AP has online user.If AP does not have online user, Then processing unit 460 can set the state of the register for the PoE ports for controlling the AP in power supply unit to stop to close to AP Power supply.
In a kind of possible implementation, the power supply unit 400 of the present embodiment can be AC or network exchange Machine.When power supply unit 400 is the network switch, acquiring unit 420 can be also used for:
Determine whether to stop power supply the period in described, if it is, sending out to the access controller of WLAN The AC of CAPWAP protocol formats is sent to find message, the AC has found that message includes what is read from the mac address table of the AP MAC Address.
Determining unit 440 can be also used for:
The AC that CAPWAP protocol formats are received from the AC has found response message, and the AC has found that response message includes institute State whether AP has the information of online user.
Specifically, the network switch can obtain the mac address table of the AP and from mac address table according to PoE ports with The corresponding relation of MAC Address reads the MAC Address of the AP, but AP user's list item can not be directly inquired about according to MAC Address, with Determine whether to stop powering to AP for follow-up.The network switch can send AC to AC and find message, can so pass through AC Parse the AC and find message, the payload of message is found from AC(payload)In can obtain AP MAC Address.
After AC parses to obtain AP MAC Address, AP user's list item according to MAC Address, can be inquired about, obtain be on AP It is no to have online user, send AC to the network switch and find response message, the AC has found that response message includes whether AP has The information of line user.Specific example may refer to the associated description of POE control method in embodiment three.
The power supply unit of the present embodiment, can be according to the AP MAC Address automatic identification of acquiring unit acquisition AP work Make state, if user is online, then power supply unit can continue through the PoE ports of POE system to AP confessions Electricity, if online without user, power supply unit just stops powering to the AP by processing unit, improves POE control The flexibility of method.
Embodiment 5
Fig. 5 shows the structured flowchart of according to embodiments of the present invention five Ethernet system.As shown in figure 5, the Ethernet system System 500 includes:
AP520, the AP are connected with the POE port;
Power supply unit 540, the power supply unit include AC or the network switch.
Specifically, in POE system, it is main including PSE and PD, PD can be WLAN AP, security system, The equipment such as IP phone, PSE can be the equipment such as WLAN AC, the network switch, router, hub.Embodiments of the invention In, in the Ethernet system 500, power receiving equipment can be AP520, and power supply unit 540 can be AC or the network switch.
In the Ethernet system 500, when power supply unit 540 is AC, AC is upper can be preconfigured POE system The power supply plan of system, in stop power supply the period when, AC can be by reading AP520 MAC Address, automatic identification AP520 working condition, if user is online, AC can continue through the PoE ports of POE system to the AP520 Power supply, if online without user, AC just stops powering to AP.
Further,, can on the network switch when power supply unit 540 is the network switch in the Ethernet system 500 To be preconfigured the power supply plan of POE system, in stop power supply the period when, the network switch can be read AP520 MAC Address is taken, sending AC to AC finds message, can parse to obtain AP MAC Address by AC.Further, may be used To inquire about on AP whether have online user by AC, the network switch receives the AC that AC is sent and finds response message, and the AC has found Include the information whether AP520 has online user in response message.If without online user, the network switch can pass through The state of the register for the PoE ports for controlling the AP in the network switch is set to stop not having online user's to this to close AP powers.AC has found that message and AC have found that the specific example of response message may refer to the POE control in embodiment three Associated description in method.
The Ethernet system of the present embodiment, power supply unit can be according to the AP of the acquisition MAC Address automatic identification AP's Working condition, if user is online, then power supply unit can continue through POE port and the AP is powered, if do not had Have that user is online, power supply unit just stops powering to the AP, improves the flexibility of POE control method.
Embodiment 6
Fig. 6 shows the structured flowchart of according to embodiments of the present invention six power over Ethernet device.The POE is set Standby 600 include processor (English:Processor) 610, POE port 620, power supply circuit 630, memory 640.Its In, processor 610 is connected with power supply circuit 630, and POE port 620 is connected with power supply circuit 630.The POE Equipment 600 can be AC or the network switch, and POE system is constituted with Ethernet power receiving equipment.Shown in Fig. 6 Thick line is bus(English:bus)650.
Processor 610 is used for configuration processor.Processor 610 is probably a central processor CPU, it is also possible to by one Central processor CPU and hardware chip composition, wherein hardware chip can be the combination of one or more of:Field-programmable is patrolled Collect gate array(English:Field-programmable gate array, abbreviation:FPGA), CPLD(English Text:Complex programmable logic device, abbreviation:CPLD).
POE port 620 can connect power receiving equipment, for by the electrical energy transportation that power supply circuit 630 provides to by Electric equipment, it is embodied as the power supply of power receiving equipment.
Memory 640 is used to deposit power supply plan of configuration etc..Memory can be volatile memory(English: volatile memory), such as random access memory(English:Random-access memory, abbreviation:RAM), or Nonvolatile memory(English:non-volatile memory), such as read-only storage(English:read-only Memory, abbreviation:ROM), flash memory(English:flashmemory), hard disk(English:Hard disk drive, abbreviation: HDD)Or solid state hard disc(English:Solid-state drive, abbreviation:SSD).Memory 630 is connected with processor 610.
Power over Ethernet device 600 be the network switch in the case of, communication interface 660 can also be included, for AC is communicated.
In a kind of possible embodiment, said procedure can be the program code for including computer-managed instruction.The journey Sequence is particularly used in:
In stop power supply the period when, power supply unit obtains connecing for the WLAN of POE port connection The Media Access Control address of access point;
The power supply unit determines whether the AP has online user according to the MAC Address;
The power supply unit stops powering to the AP of no online user.
In a kind of possible implementation, it is described in stop power supply the period when, power supply unit obtain Ethernet The media access address of the access point of the WLAN of supply port connection, including:
The power supply unit determines whether to stop power supply the period in described;
If it is, the power supply unit reads the MAC Address of the AP from the mac address table of the AP.
In a kind of possible implementation, in the case where the power supply unit is the network switch, the program is specific It can be also used for:
The network switch sends WAP control and configuration protocol lattice to the access controller of WLAN The AC of formula has found message, and to cause the AC to parse the MAC Address that the AC has found AP described in Receive message, the AC has found report Text includes the MAC Address that the network switch is read from the mac address table of the AP;
The AC that the network switch receives the CAPWAP forms from the AC has found response message, and the AC has found should Answering message includes the information whether AP has online user.
It is described according to the MAC Address in a kind of possible implementation, determine whether the AP has online user, Including:
The AC inquires about user's list item of the AP according to the MAC Address;
The AC determines whether the AP has online user according to user's list item.
Those of ordinary skill in the art are it is to be appreciated that each exemplary cell and algorithm in embodiment described herein Step, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions actually with hardware also It is software form to realize, application-specific and design constraint depending on technical scheme.Professional and technical personnel can be directed to It is specific to realize described function using different methods is selected, but this realization is it is not considered that beyond model of the invention Enclose.
If in the form of computer software come realize the function and as independent production marketing or in use, if To a certain extent it is believed that all or part of technical scheme(Such as the part to be contributed to prior art)It is Embody in form of a computer software product.The computer software product is generally stored inside computer-readable storage medium In, including some instructions are causing computer equipment(Can be personal computer, server or network equipment etc.)Perform The all or part of step of various embodiments of the present invention method.And foregoing storage medium includes USB flash disk, mobile hard disk, read-only storage Device, random access memory, magnetic disc or CD etc. are various can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (10)

  1. A kind of 1. POE control method, it is characterised in that including:
    Power supply unit is determined whether to be in and stopped power supply the period;
    In stop power supply the period when, power supply unit obtains the WLAN of power over Ethernet PoE ports connection WLAN access point AP medium access control MAC Address;
    The power supply unit determines whether the AP has online user according to the MAC Address;
    The power supply unit is that the AP for having online user continues to power, and stops supplying the AP of no online user Electricity.
  2. 2. POE control method according to claim 1, it is characterised in that described in the time of stopping power supply Duan Shi, the medium that power supply unit obtains the WLAN WLAN of power over Ethernet PoE ports connection access point AP are visited Control MAC Address is asked, including:
    If the power supply unit determination is stopped power supply the period described in being currently at, MAC of the power supply unit from the AP The MAC Address of the AP is read in address table.
  3. 3. POE control method according to claim 2, it is characterised in that handed in the power supply unit for network In the case of changing planes, the POE control method, in addition to:
    The network switch sends WAP control and configuration protocol to WLAN WLAN access controller AC The AC of CAPWAP forms has found message, described to cause the AC to parse the MAC Address that the AC has found AP described in Receive message AC has found that message includes the MAC Address that the network switch is read from the mac address table of the AP;
    The AC that the network switch receives the CAPWAP forms from the AC has found response message, and the AC has found response report Text includes the information whether AP has online user.
  4. 4. the POE control method according to any one of claim 1-3, it is characterised in that described in the basis MAC Address, determines whether the AP has online user, including:
    The AC inquires about user's list item of the AP according to the MAC Address;
    The AC determines whether the AP has online user according to user's list item.
  5. A kind of 5. power supply unit, it is characterised in that including:
    Acquiring unit, for determining whether in stopping power supply the period, in stop power supply the period when, obtain with The too WLAN WLAN of net power supply technique PoE ports connection access point AP medium access control MAC Address;
    Determining unit, it is connected with the acquiring unit, for according to the MAC Address, determining whether the AP has online user;
    Processing unit, it is connected with the determining unit, for continuing to power for the AP that has online user, and stops to not having The AP power supplies of online user.
  6. 6. power supply unit according to claim 5, it is characterised in that the acquiring unit is additionally operable to:
    If it is determined that stopped power supply the period described in being currently at, the MAC of the AP is read from the mac address table of the AP Location.
  7. 7. power supply unit according to claim 6, it is characterised in that the determining unit is additionally operable to:
    According to the MAC Address, user's list item of the AP is inquired about, determines whether the AP has online user.
  8. 8. power supply unit according to claim 5, it is characterised in that the acquiring unit is additionally operable to:
    Determine whether to stop power supply the period in described, if it is, the access controller AC to WLAN WLAN The AC for sending CAPWAP protocol formats has found message, and the AC has found that message includes reading from the mac address table of the AP MAC Address.
  9. 9. power supply unit according to claim 8, it is characterised in that the determining unit is additionally operable to:
    The AC that CAPWAP protocol formats are received from the AC has found response message, and the AC has found that response message includes the AP Whether the information of online user is had.
  10. A kind of 10. Ethernet system, it is characterised in that including:
    AP, the AP are connected with the power over Ethernet PoE ports;
    Power supply unit, the power supply unit include AC or the network switch;
    The AC, using the power supply unit any one of the claims 5 to 7;
    The network switch, using the power supply unit any one of the claims 5 or 8 or 9.
CN201310423205.6A 2013-09-16 2013-09-16 POE control method, power supply unit and system Active CN104468133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310423205.6A CN104468133B (en) 2013-09-16 2013-09-16 POE control method, power supply unit and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310423205.6A CN104468133B (en) 2013-09-16 2013-09-16 POE control method, power supply unit and system

Publications (2)

Publication Number Publication Date
CN104468133A CN104468133A (en) 2015-03-25
CN104468133B true CN104468133B (en) 2018-03-09

Family

ID=52913563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310423205.6A Active CN104468133B (en) 2013-09-16 2013-09-16 POE control method, power supply unit and system

Country Status (1)

Country Link
CN (1) CN104468133B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105450422A (en) * 2015-12-02 2016-03-30 杭州敦崇科技股份有限公司 Wireless access point fault remote automatic recovery system based on access controller and POE switch
CN109976204B (en) * 2017-12-28 2022-06-10 华为技术有限公司 Automatic lighting method and equipment
CN109151798A (en) * 2018-08-29 2019-01-04 迈普通信技术股份有限公司 Power control system and method
CN115396243B (en) * 2022-10-27 2023-03-14 武汉思创易控科技有限公司 PoE power supply control method, storage medium and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1450756A (en) * 2002-04-08 2003-10-22 华为技术有限公司 Method for real time detecting ethernet connected computer on-line state through insertion equipment
CN101252448A (en) * 2008-03-31 2008-08-27 杭州华三通信技术有限公司 Method and system for detecting current failure of power receiving equipment as well as power supply equipment
CN101867468A (en) * 2010-06-03 2010-10-20 中兴通讯股份有限公司 Hot reboot processing method for power over Ethernet switch and power over Ethernet switch
CN103095505A (en) * 2013-02-05 2013-05-08 北京傲天动联技术股份有限公司 Method and system for controlling power supply of power over Ethernet (POE) exchanger port

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8023444B2 (en) * 2008-07-03 2011-09-20 Cisco Technology, Inc. Multiple density configurations and algorithms for intelligent power savings infrastructure in wireless LANs

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1450756A (en) * 2002-04-08 2003-10-22 华为技术有限公司 Method for real time detecting ethernet connected computer on-line state through insertion equipment
CN101252448A (en) * 2008-03-31 2008-08-27 杭州华三通信技术有限公司 Method and system for detecting current failure of power receiving equipment as well as power supply equipment
CN101867468A (en) * 2010-06-03 2010-10-20 中兴通讯股份有限公司 Hot reboot processing method for power over Ethernet switch and power over Ethernet switch
CN103095505A (en) * 2013-02-05 2013-05-08 北京傲天动联技术股份有限公司 Method and system for controlling power supply of power over Ethernet (POE) exchanger port

Also Published As

Publication number Publication date
CN104468133A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
US9442555B2 (en) Method of control of an access point of a home gateway of a home network
CN104468133B (en) POE control method, power supply unit and system
CN101541068B (en) WLAN network control method and device thereof
CN103534992B (en) Send method, interchanger, server and the system for setting up connection request
CN101959295B (en) Energy-saving management method, system and remote management server of wireless sensor network
CN106209553B (en) Message processing method, equipment and system
US8468374B2 (en) Access point rotation for sharing power load
CN104581419B (en) Double net implementation methods based on android Intelligent set top boxes
RU2530247C2 (en) Message repeating method, access point and system
CN102474795B (en) Radio communication device and wireless communication control method
EP3211858B1 (en) Networking method for datacenter network and datacenter network
CN110381251A (en) The control method of web camera, apparatus and system
EP3512160B1 (en) Power supplying method, device and system
CN105162702B (en) A kind of AC drainage method and device
CN102959487A (en) Providing wakeup logic to awaken an electronic device from a lower power mode
US20140161118A1 (en) Power save mechanism for low-power network devices
JP6619800B2 (en) Wireless base station and system including the wireless base station
CN107968713A (en) Remote wake-up method, apparatus and system
WO2012112650A1 (en) Method and apparatus for plug and play, networkable iso 18000-7 connectivity
CN104995882B (en) Message processing method and device
WO2018098639A1 (en) Method and device for power outage handling and acquiring connection relations
CN108430087A (en) Power consumption control method, device and router
CN107820262A (en) Method for parameter configuration, apparatus and system
CN103229463B (en) A kind of method, the network equipment and Virtual Cluster determining management domain
CN110062060A (en) A kind of system and method for IP address distribution

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant