Networking for Security, lesson 6 of 12
Power over Ethernet
Lesson 2 ran a cable from the switch to the camera for data. The same cable can also carry the camera's power. That removes the need for a mains outlet at every device, and it is why most cameras, intercoms and many door controllers are fed this way. But a switch has only so much power to share, and this lesson shows how to count it before the last camera refuses to start.
Load up a switch
Click a port or its device to change what is plugged in. Change the switch, and watch which ports get power.
The everyday picture
You charge a phone through the same small cable that moves its photos to a computer. One cable, two jobs. And if you look closely, the charger does not simply push out full power. The phone and the charger first exchange a quick signal to agree how much the phone can safely take. A small earbud case gets a trickle. A laptop gets many times more, from the same socket.
Now picture a power strip of such sockets that has a limit for the whole strip. Plug in enough hungry devices and the last one gets nothing, although its socket looks the same as the others.
Power over Ethernet, or PoE, works like that. One network cable carries data and power. The two ends agree on an amount first. And the switch has a total it cannot exceed.
How power gets onto the cable
Two pieces of equipment are involved, and the standards give them names you will see on data sheets.
- The power sourcing equipment, or PSE, is the end that supplies power. Usually this is a PoE switch.
- The powered device, or PD, is the end that uses it: the camera, intercom or controller.
The power travels on the same copper pairs you met in lesson 2, at roughly 48 volts DC. That is a higher voltage than the 12 or 24 volts used for locks. The reason is the one given in the Access Control lesson "Power supplies and batteries": at a higher voltage the same power needs less current, and less current means less is lost in thin wire over a long run. The device steps the voltage down inside itself.
A standard PoE port does not send power to whatever is plugged in. It goes through a short routine every time a cable is connected:
- Detect. The port applies a tiny test voltage and looks for a particular electrical signature that only a PoE device has. A laptop or a recorder does not have it, so it receives no power and comes to no harm.
- Classify. The device signals its class, which tells the switch the most power it will ever ask for.
- Power up. If the port and the switch's budget can cover that class, the port switches on the full voltage.
- Watch. The port measures the current. If the device is unplugged or draws far too much, power is removed within a fraction of a second.
This routine is why you can plug any network device into a standards-based PoE switch without thinking about it.
The standards
PoE has grown in three steps. Each is a published IEEE standard, and each newer one can also feed older devices.
| Common name | Standard | Most the port supplies | Least the device can count on | Typical security devices |
|---|---|---|---|---|
| PoE | 802.3af | 15.4 watts | 12.95 watts | Fixed cameras, card readers with a network port, simple intercoms |
| PoE+ | 802.3at | 30 watts | 25.5 watts | Moving cameras, cameras with strong infrared lights, single-door controllers, video intercoms |
| PoE++, lower level | 802.3bt, Type 3 | 60 watts | 51 watts | Outdoor moving cameras with heaters, multi-sensor cameras |
| PoE++, higher level | 802.3bt, Type 4 | 90 watts | 71.3 watts | The largest heated cameras, small remote switches |
Notice the two power columns. The gap between them is the allowance for power lost as heat in a full-length cable. A standard PoE port puts in 15.4 watts so that at least 12.95 arrive at the far end of 328 feet. When you compare a device against a switch, compare like with like: the device's need against the right-hand figure.
Within these standards, the class narrows things down further.
| Class | Port reserves | Device may use up to | Needs at least |
|---|---|---|---|
| 1 | 4 watts | 3.84 watts | PoE |
| 2 | 7 watts | 6.49 watts | PoE |
| 3, and class 0 | 15.4 watts | 12.95 watts | PoE |
| 4 | 30 watts | 25.5 watts | PoE+ |
| 5 and 6 | 45 and 60 watts | 40 and 51 watts | PoE++, Type 3 |
| 7 and 8 | 75 and 90 watts | 62 and 71.3 watts | PoE++, Type 4 |
A device that does not state a class is treated as class 0 and given the full 15.4 watts, to be safe. The class is printed on the device's data sheet, next to its actual power draw.
Check yourself
A camera's data sheet says it draws up to 18 watts. What is the least capable port that can run it?
The power budget
Here is the trap. A switch sold as "8 ports, PoE+" can deliver 30 watts on any one port. That does not mean it can deliver 30 watts on all eight together, which would be 240 watts. Its internal power supply sets a total called the PoE budget, and on small switches the budget is often far less than ports times maximum. The figure is on the data sheet. Read it before anything else.
Switches count against the budget in one of two ways:
- By class. The switch reserves the full amount for each device's class, whether or not the device uses it. A class 3 camera drawing 6 watts still takes 15.4 from the budget. This is cautious and predictable.
- By use. The switch measures what each port really draws and counts that. More devices fit, but the total moves. A camera draws more at night when its infrared lights come on, and more again in winter if it has a heater.
When the budget runs out, the switch refuses power to the next device, or drops a port it already powers. Which port loses is set by port priority. On many switches the lowest port number wins by default, and a managed switch lets you choose. The drawing at the top reserves by class and gives low port numbers priority.
The method for sizing is the one from the Access Control power lesson. Add up the worst-case figure for every device, then add a quarter. Use the class figure if the switch reserves by class, or the data sheet's maximum draw if it counts by use.
What does a device need?
From a data sheet to a switch
Enter the device's maximum draw from its data sheet, and how many of them one switch will feed.
Cable, injectors and look-alikes
- The length limit does not change. Power and data share the 328-foot channel from lesson 2. Power does not reach farther than data.
- Copper quality matters more. The loss allowance in the standards assumes solid copper cable of the proper category. Copper-coated aluminum has much higher resistance, so more power is lost as heat and less voltage reaches the device.
- Bundles get warm. Many cables carrying the higher power levels in one tight bundle heat each other. The electrical code limits bundle sizes for this reason. Confirm the rule with the authority having jurisdiction.
- An injector adds power to one cable. Also called a midspan, it sits between an ordinary switch port and the device. It is the simple answer for one or two devices, or for one device that needs more than the switch can give. It needs a mains outlet, and its own backup if the device must survive a power cut.
- Beware of "passive PoE". Some equipment puts a fixed voltage on the cable all the time, with no detection step. It is not the standard described here. Plugged into the wrong device, it can destroy a network port. Keep such power supplies labeled and away from ordinary cables.
- Backup moves to the closet. Every PoE device dies when its switch loses power. Put the switch on an uninterruptible power supply sized for the switch plus everything it feeds. The supply maker's runtime chart tells you how long a given load will last.
Three examples
Simple: one camera, no PoE switch
A small office has an ordinary eight-port switch and wants one camera over the front door. Replacing the switch is not justified. A PoE+ injector goes next to the switch: a short cord from a switch port into the injector's data socket, and the camera's cable into the socket marked for data and power. The camera starts. The installer labels the injector so nobody later unplugs "that spare power brick".
Medium: cameras that die at dusk
Eight outdoor cameras run from an eight-port switch with a 65-watt budget, counted by use. They work all day. Every evening two or three go dark, and they come back in the morning.
By day each camera draws about 6 watts: 8 times 6 is 48 watts, inside the budget. At dusk the infrared lights switch on and each camera draws 11 watts: 8 times 11 is 88 watts, 23 more than the switch has. It sheds the lowest-priority ports until the total fits. Nothing is faulty. The design used the daytime figure. With a quarter spare, 88 becomes 110 watts, so a switch with a 130-watt budget is the right replacement.
Advanced: the camera that restarts on cold mornings
A moving camera on a pole, fed by PoE+ over a 310-foot run, restarts several times on winter mornings. In summer it never does. The switch log shows the port being powered, dropped and powered again.
The run is within 328 feet and the budget has room. A tester showed a much higher resistance than that length of cable should have. The cable was copper-coated aluminum, bought by a previous installer. On a mild day the camera's modest draw got through. When the heater switched on, the current rose, the extra resistance dropped the voltage at the camera below its working minimum, and it reset. Replacing the run with solid copper cable ended the restarts. A fault that follows the weather is usually a power fault.
From the field
- Read two numbers on every switch data sheet: the most one port can supply and the total budget. Write both on the drawing.
- Budget for the worst night of the year: infrared lights on, heater on, motors moving.
- Use the switch to restart a frozen camera. A managed PoE switch can turn one port's power off and on from your desk, which saves a ladder and a site visit.
- Put the most important devices on the highest-priority ports, so that if the budget is ever exceeded, the entrance camera is the last to go.
- Check the port's power reading on the switch status page when a device misbehaves. It shows the class the device claimed and the watts it is drawing now.
- Protect outdoor runs. A cable to a pole or another building needs surge protection suited to PoE at the point where it enters the building, grounded as the maker instructs.
Common mistakes
- Multiplying ports by 30 watts and assuming the switch can deliver the result.
- Sizing the budget from daytime draw.
- Comparing a device's need with the port's output figure and forgetting the loss in the cable.
- Plugging a PoE+ device into a plain PoE port and accepting that it "mostly works" without its heater or lights.
- Mixing passive power supplies with standard equipment.
- Putting the recorder on backup power and leaving the PoE switch on an ordinary outlet.
Summary
- PoE sends about 48 volts DC along the network cable. The port detects a PoE device and learns its class before switching power on.
- PoE gives a device up to 12.95 watts, PoE+ 25.5, and PoE++ 51 or 71.3. The port supplies more than that to cover cable loss.
- A switch has a total budget that is often well below ports times the per-port maximum.
- Add up worst-case power for every device, add a quarter, and compare with the budget.
- Use solid copper cable within 328 feet. Avoid passive look-alikes.
- The switch's backup power is now every device's backup power.
Exercises
Answer each one yourself first, then open the answer.
Exercise 1. A standard PoE port supplies 15.4 watts, but the device is promised only 12.95. Where can the other 2.45 watts go?
Show answer
Exercise 2. A switch is sold as "8 ports PoE+, 120-watt budget". How many class 4 devices can it power if it reserves by class?
Show answer
Exercise 3. Ten class 3 cameras are to share one switch that reserves by class. What budget should you look for, with a quarter spare?
Show answer
Exercise 4 (think, don't memorize). A site has a PoE+ switch with 60 watts of budget unused. The customer wants to add a heated outdoor camera that needs 45 watts, and points out that 45 is less than 60. What is wrong with that reasoning, and what are the options?