Networking for Security, lesson 2 of 12
Cables, switches and ports
Lesson 1 showed how one message gets from one device to another. Before any message can move, there has to be a good physical path: the right cable, properly ended, within its length limit, plugged into a switch with a free socket. This lesson walks that path from the closet to the camera. Most network faults a security technician meets are found right here.
Measure one cable run
Change the lengths, the cable and the speed you want, and see whether the link holds.
The everyday picture
Think of the electrical wiring in a house. You never run an extension cord from the breaker panel to your lamp. Instead, permanent cables hidden in the walls run from the panel to outlets in every room, and you plug the lamp into the nearest outlet with its own short cord.
A building's network is laid out the same way. Permanent cables run inside walls and ceilings from a closet to outlets near each device. Short, flexible cords finish the job at both ends. The closet holds the box that everything plugs into. The trade calls this arrangement structured cabling, and it is the reason a camera can be moved or replaced without pulling new cable.
From the closet to the device
Follow the path in the drawing above from left to right. Each piece has a name you will use every day.
- Switch. The box from lesson 1 with many sockets. Each socket is called a port.
- Patch cord. A short flexible cable with a plug on each end. One joins the switch to the patch panel. Another joins the wall or ceiling jack to the device.
- Patch panel. A strip of sockets in the closet where the permanent cables end. It does nothing electrical. It gives every cable a fixed, labeled home so that the cables in the wall are never handled again.
- Permanent link. The cable fixed inside the building, from the patch panel to the jack. The trade also calls it the horizontal run.
- Jack. The socket at the far end, in a wall plate or a small box above the ceiling.
- Plug. The clear plastic connector with eight gold contacts. Everyone calls it an RJ45.
On small security jobs you will often see the patch panel and jack left out, with a plug crimped straight onto each end of the cable. It works, and many camera installs are done this way. It is less tidy, and a plug crimped onto solid cable is the most likely point of failure on the whole run. Where you can, end the cable on jacks.
Inside the cable
Strip the jacket from a network cable and you find eight thin copper wires, twisted together in four pairs. The cable is called twisted pair. The twists are not decoration. Electrical noise from motors and lights hits both wires of a pair equally, and the equipment at the far end subtracts one wire from the other, so the noise cancels. Untwist too much of a pair at the connector and that protection is lost. Keep the untwisted length to half an inch or less.
Cables are graded by category. A higher category has tighter twists and can carry faster signals.
| Category | Rated speed over a full-length run | Where you meet it |
|---|---|---|
| Cat 5e | 1 gigabit a second | Older buildings. Still enough for almost any single camera |
| Cat 6 | 1 gigabit a second. 10 gigabits only on short runs, roughly 180 feet or less | The usual choice for new security work |
| Cat 6A | 10 gigabits a second | Links between switches, and jobs meant to last decades. Thicker and stiffer to pull |
Three more choices appear on every order form:
- Solid or stranded. Each wire in permanent cable is one solid piece of copper, which carries a signal farther. Patch cords use stranded wire, which survives bending. Plugs and jacks are made for one or the other, so match them.
- Jacket rating. Cable run through the air-handling space above a ceiling generally has to be plenum rated, and cable between floors riser rated. The Access Control lesson "Cable and wiring" explained why. Confirm with the authority having jurisdiction.
- Pure copper. Cheap cable with aluminum wires coated in copper exists. It does not meet the category standards, it loses more signal, and it heats up when it carries power. Do not use it.
The color order at the plug
The eight wires must land on the eight contacts in a set order. Two orders are standard, called T568A and T568B. Either works. What matters is that both ends of a cable, and the whole building, use the same one. In the United States, T568B is the more common in commercial work.
| Pin | T568B color | Pair |
|---|---|---|
| 1 | White with orange stripe | Orange |
| 2 | Orange | |
| 3 | White with green stripe | Green, first half |
| 4 | Blue | Blue |
| 5 | White with blue stripe | |
| 6 | Green | Green, second half |
| 7 | White with brown stripe | Brown |
| 8 | Brown |
T568A is the same with the orange and green pairs swapped. Notice that the green pair is split around the blue pair, on pins 3 and 6. Getting that split wrong is the classic beginner's fault. A simple continuity tester may still pass the cable, because every pin connects to the same pin at the far end, but the link is slow or unreliable.
The 328-foot rule
A signal weakens as it travels along copper. The standards therefore set a maximum length for one cable path, called a channel: 100 meters, which is 328 feet, from the switch port to the device.
That figure is split into two parts. Up to 295 feet can be permanent solid cable. The remaining 33 feet is the allowance for patch cords at both ends added together. Stranded cords lose more signal per foot, which is why their share is small.
The limit counts the cable, not the straight-line distance. A camera 200 feet away across a parking lot can easily need 300 feet of cable once the run has gone up a wall, around the ceiling and down a pole. Measure the route, then add some slack at each end.
When a run is too long you have three honest options: put another switch part-way along, use fiber, which lesson 10 covers, or use an extender made for the purpose and accept its data sheet limits.
Check yourself
A run has 280 feet of cable in the ceiling, a 10-foot cord in the closet and a 25-foot cord at the camera. What is wrong?
Switches and ports
Switches differ in four ways that matter to you.
- Number of ports. Common sizes are 5, 8, 16, 24 and 48.
- Port speed. Each port is rated 100 megabits, 1 gigabit or 10 gigabits a second. The two ends of a cable agree on the fastest speed both can manage. This is called auto-negotiation.
- Uplink ports. One or two faster ports meant for the cable to the next switch or the recorder. All the traffic from the other ports funnels through here, so it needs the extra speed.
- Power. Many switches can also power the device over the same cable. Lesson 6 is about that.
| Unmanaged switch | Managed switch | |
|---|---|---|
| Setting up | None. Plug in and it works | Has its own address and a settings page |
| What it can tell you | Link lights only | Speed, errors and power on every port, and often a log |
| Control | None | Switch a port off and on from your desk, split the switch into separate networks, limit who may plug in |
| Where it fits | A handful of devices in one room | Anything you will have to support from a distance |
One detail explains a fault you will certainly meet. A 100-megabit link needs only two of the four pairs. A gigabit link needs all four. If one wire in a cable is broken or badly ended, the two ends may quietly settle for 100 megabits. The camera works, the light is on, and nobody notices until video from a busy uplink starts to stutter.
Count the ports
Running out of ports is the most common planning mistake on small jobs. Count every device, add the cables that join this switch to the rest of the network, then leave about a quarter spare.
Size a switch for one closet
Enter what plugs into this switch.
Three examples
Simple: the ninth cable
A store buys eight cameras and an eight-port switch. On installation day all eight ports are full, and there is nowhere to plug in the recorder. The count forgot that the recorder is a device too. Eight cameras plus a recorder is nine ports, eleven or twelve with a quarter spare, so a 16-port switch was the right size from the start.
Medium: the camera at the far gate
A camera on a gate post works on the test bench and fails on the post. The cable route measures 385 feet. On some days the link comes up at a low speed, on others not at all.
The run is 57 feet over the limit, and no amount of re-crimping will change that. The fix was a small outdoor-rated switch in an enclosure at a light pole 200 feet along the route, which also gave a port for a second camera later.
Advanced: slow, but only sometimes
A 32-camera recorder shows gaps in its recordings during busy afternoons. Every link light is on. The managed switch's status page shows the uplink to the recorder running at 100 megabits a second, although both ends are gigabit ports.
Thirty-two cameras at about 4 megabits each is 128 megabits, more than that link can carry. A cable tester that checks each pair found the brown pair open at one jack, where a wire had not been pushed fully home. With the jack re-ended the link came up at one gigabit, and the gaps stopped. The clue was the speed, not the light.
From the field
- Test every run before the ceiling tiles go back. A tester that shows the wire map and length costs far less than one return visit.
- Leave a service loop. A few feet of spare cable coiled at each end lets a connector be cut off and redone.
- Respect the bend. Do not kink the cable or bend it tighter than about four times its own thickness, and do not crush it with cable ties. Hook-and-loop straps are kinder.
- Keep your distance from power. Do not lay network cable alongside mains cable or across light fittings and motors. Cross power cables at a right angle.
- Outdoors, use outdoor cable. Sunlight and water destroy an indoor jacket within a few seasons. Runs that leave the building also need surge protection, and grounding to suit.
- Label the patch panel port, the jack and the drawing with one and the same name.
Common mistakes
- Measuring the straight-line distance and discovering the real route is a hundred feet longer.
- Mixing T568A at one end with T568B at the other.
- Untwisting an inch or more of each pair to make the plug easier to fit.
- Buying copper-coated aluminum cable because the box was cheaper.
- Filling every port on day one, with no room for the next camera or the technician's laptop.
- Trusting a lit link light as proof that the link is running at full speed.
Summary
- Permanent cable runs from a patch panel in the closet to a jack near the device. Short patch cords finish both ends.
- Network cable is four twisted pairs. Keep the twists right up to the connector, and use one color order everywhere.
- One copper channel may be 328 feet at most: 295 feet of permanent cable plus 33 feet of cords.
- Cat 6 is the everyday choice. Cat 6A carries 10 gigabits a full length.
- Count every device and every link between switches, then add a quarter, before choosing a switch.
- A managed switch lets you see speed, errors and power on each port without visiting the site.
Exercises
Answer each one yourself first, then open the answer.
Exercise 1. A permanent cable is 270 feet long. The cord in the closet is 7 feet and the cord at the camera is 10 feet. Is the channel within the limits?
Show answer
Exercise 2. A closet will serve 18 cameras, 2 door controllers and 1 link to the main switch. How many ports are used, how many should you plan for, and what size of switch do you choose?
Show answer
Exercise 3. In T568B, which two pins carry the green pair, and why does that catch people out?
Show answer
Exercise 4 (think, don't memorize). A camera has worked for two years. After a ceiling repair it still works, but its video now breaks up whenever the recorder is busy. The link light is on. What do you suspect, and how would you prove it?