PanelSimulator Academy

System Design and Integration, lesson 4 of 12

Choosing an architecture

Before you choose a single product, you decide where the system's thinking, storage and control will live: in one place, at every site, or with a provider on the internet. That choice is the architecture. It decides what keeps working when a link or a machine fails, and who has to look after it for the next ten years.

About 15 minutes. Read lesson 3, Requirements and priorities, and Access Control lesson 12, Software, servers and cloud, first.

Break it and see what survives

A company has a head office and a branch. Pick an architecture, then pick something to fail.

Provider's servers on the internet Head office Branch, 40 miles away private link Door controller Cameras Server andrecorder Door controller Cameras Server andrecorder Internet router Internet router

The everyday picture

A restaurant chain can feed its customers in three ways. It can cook everything in one big kitchen and drive the food to each restaurant. It can put a full kitchen in every restaurant. Or it can order from a catering company and never own a kitchen at all.

One kitchen is cheapest to staff and gives every customer the same meal, until the delivery truck is stuck in snow. A kitchen in every branch survives the snow but needs a cook in each. The caterer needs no cooks, costs a fee every month, and stops when the caterer has a bad day.

Security systems face the same three choices, and for the same reasons there is no best one. There is only the one that fits this customer's sites, staff and links.

Three jobs to place

Every electronic security system does three jobs. An architecture is simply the answer to "where does each job happen?"

  • Deciding Acting on what happens at a device: unlock for this card, raise an alarm for this sensor. It has to be fast and must not depend on a long link.
  • Storing Keeping video, events and the list of people. Video is by far the heaviest: it is large, and it never stops arriving.
  • Managing Where a person adds a card, watches alarms, searches recordings and changes settings. It is light, and it is where consistency across sites is won or lost.

The equipment in the middle, which devices report to, is called the head-end. The devices and small controllers out in the building are called the edge.

One rule comes before all the others. Keep deciding at the edge. A door must open for a valid card when the server is down, and an intrusion panel must sound its siren when the phone line is cut. Access Control lesson 4 showed that a good controller holds its own copy of the rules for this reason. Any architecture that needs a distant machine to answer before a door opens is fragile, however tidy it looks on paper.

Central, distributed and cloud

CentralDistributedCloud
DecidingAt the edgeAt the edgeAt the edge
StoringOne server and recorder at the main siteA server or recorder at every siteThe provider's data centers, sometimes with a small buffer on site
ManagingOne place, one databaseEach site, with an optional overview on topAny web browser or phone
Needs between sitesA steady private link carrying everythingA light link, or noneInternet at every site
Who maintains itThe customer's staff, in one roomThe customer's staff, in many roomsThe provider, for a recurring fee
Weak pointThe head-end and the links to itMany machines to patch, back up and keep alikeThe internet connection and the provider

Notice what each one buys. Central buys consistency: one list of people, one set of rules, one backup. Distributed buys independence: a site that loses everything outside its walls carries on. Cloud buys freedom from servers, paid for by a monthly fee and a dependence on the internet.

Money follows the same pattern. Central and distributed systems are mostly paid for at the start, and then need someone to patch and back them up. Cloud systems cost less at the start and more every year. Compare them over the life of the system, not on the first invoice. Lesson 8, Estimating labor and cost, returns to this.

Check yourself

Whatever the architecture, which job should stay at the door?

System by system

The lesson summary says "for each system" on purpose. Access control, video, intrusion and intercom pull in different directions, because they carry very different amounts of data.

SystemWhat it carriesWhat usually suits it
Access controlTiny messages. One list of people that should be the same everywhere.Central or cloud management, with controllers deciding at each door.
VideoA heavy, constant stream from every camera.Record close to the cameras. Manage and view from the center or the cloud.
IntrusionVery small signals that must get out even in a power cut.A panel in each building that works alone, reporting to a monitoring center over two different paths.
IntercomVoice and sometimes video, only during a call.Calls answered locally by day, and passed to a central desk or a phone after hours.

Video deserves a sum, because it breaks more architectures than anything else. Suppose each camera sends 4 megabits per second. Check the real figure on the data sheet, since it varies widely with resolution and scene. Sixteen cameras then send 16 × 4 = 64 megabits per second, all day. To record them at another site or in the cloud, the branch needs that much upload speed to spare, every second. Many business internet lines upload far less than they download.

That is why video is so often recorded on site, even in systems that are otherwise central or cloud. Only the clips someone asks to see travel over the link.

Pick a starting point

Answer three questions about the customer. The tool suggests where to begin for access control and for video. It is a starting point for a conversation, not a verdict.

How many sites?

Who will look after servers?

What is the internet like at the sites?

Access control
Video
Check first

Most real systems are a mix

You do not have to pick one word for the whole project. A hybrid places each job where it works best. A common pattern is: decisions at the edge, video stored at each site, and management in one place, whether that place is a server at head office or a cloud service.

Whatever you choose, write down three answers for each system and show them to the customer. They follow directly from the tool at the top of this lesson.

  • If the link between sites fails, what still works at each site, and for how long?
  • If the head-end fails, what is lost, and how is it brought back? Lesson 10, Designing for growth and failure, covers spares and backups.
  • Who maintains it? Name the person or the company that applies updates, checks backups and renews licenses.

One more party has a say. The security system rides on a network, and that network usually belongs to the customer's information technology department. They may require a separate network for security devices, forbid outside connections, or insist on reviewing a cloud provider. Lesson 1 called this a constraint. Ask before the architecture is fixed, not after.

Three examples

Simple: one shop, no computer room

A bakery wants two controlled doors and four cameras. Nobody on staff looks after computers, and there is no room to lock a server in. The internet line is good.

Cloud-managed access suits them: the owner adds and removes cards from a phone, and the controller in the back room keeps deciding if the internet drops. The cameras record to a small recorder on site, so recording does not depend on the line. Nothing here needs patching by the owner except that recorder, and the installer takes that on under a service agreement.

Medium: twelve clinics and one security manager

A health group has twelve clinics and a small IT team. One manager must be able to remove a leaver's card everywhere at once. A distributed design with twelve separate databases would make that twelve jobs, and one clinic would always be forgotten.

So access control is central: one server at head office, with controllers at each clinic holding their own copy. Video is the opposite. Each clinic has eight cameras, and at 4 megabits per second each that is 32 megabits per second per clinic, far more than the links were bought to carry. Each clinic gets its own recorder, and head office views and searches them through one management screen. The intrusion panels stand alone in each clinic and report to a monitoring center.

Advanced: the site at the end of a bad road

A water utility has a control building and a pumping station 30 miles out, joined by a radio link that drops in heavy rain. The first proposal was fully central, because the utility wanted one screen. Tested against the three questions, it failed the first: with the link down, the pumping station would record nothing, exactly when a storm made trouble likely.

The final design is distributed at the pumping station: its own recorder, its own controller and a battery supply. The control building gets an overview that shows live video and alarms when the link is up, and catches up on stored events when it returns. The utility still has one screen. What changed is what the screen depends on.

From the field

  • Test the failure on the bench or on day one. Unplug the network from a controller and badge a card. Do not take a brochure's word for what happens offline.
  • Ask how many events and cardholders a controller holds offline. The limit is on the data sheet, and a busy site can reach it over a long weekend.
  • Measure the upload speed yourself, at a busy time of day. The figure on the internet contract is a ceiling, not a promise.
  • Read the cloud agreement for what happens to video and data if the customer stops paying or the provider closes.
  • Put the head-end on a battery-backed supply and in a locked room. A central system is only as strong as the room it sits in.

Common mistakes

  • Choosing the architecture because it is the one the installer always uses.
  • Sending all video to a central recorder over a link that was sized for email.
  • Building a distributed system and leaving nobody responsible for twelve backups.
  • Assuming "cloud" means doors stop when the internet stops, or assuming it means they never do. Find out for the product in hand.
  • Forgetting to ask the IT department until the equipment is on the wall.
  • Comparing only the first-year price of a system that will run for ten years.

Summary

  • An architecture says where deciding, storing and managing happen.
  • Deciding stays at the edge in every good design.
  • Central gives consistency, distributed gives independence, and cloud removes servers in exchange for a fee and a reliance on the internet.
  • Choose for each system. Video's bandwidth usually keeps recording on site.
  • For any design, write down what survives a lost link and a lost head-end, and who maintains it.

Exercises

Answer each one yourself first, then open the answer. The tool at the top will help.

Exercise 1. In the tool at the top, choose Central and fail the link between sites. What is lost at the branch, and what is not?

Show answer
Doors still open for valid cards, because the controller decides from its own copy. Video from the branch is not recorded, because the recorder is at head office. Head office cannot see the branch, and changes to cards wait until the link returns.

Exercise 2. A branch has 24 cameras, each sending 3 megabits per second. How much upload speed would recording them in the cloud need, before any allowance for other traffic?

Show answer
24 × 3 = 72 megabits per second, continuously. If the branch line uploads 20 megabits per second, cloud recording of every camera is not possible. Record on site, and send only what is asked for.

Exercise 3. Why does an intrusion alarm panel normally work by itself in each building, even in a company that manages everything else centrally?

Show answer
Its job is to detect and signal at the moment things are going wrong, which may include a cut link or a power failure. So the panel, its battery and its siren are local, and it reports out over two different paths. Central staff can still see its status, but it does not wait for them.

Exercise 4 (think, don't memorize). A customer with five sites says, "We want everything in the cloud so we never think about it again." What do you ask and explain before agreeing?

Show answer
Ask what the internet is like at each site, including upload speed, and what must keep working when it fails. Explain that doors should still decide locally, and find out how the chosen product behaves offline. Do the video sum for each site: it often shows that recording belongs on site with cloud management on top. Ask who in IT must approve an outside service, and what the agreement says about fees, data and ending the service. "Never think about it again" becomes "think about it now, and write down who is responsible for what". Cloud may still be the right answer. It should be chosen with those answers on the table.