Centralised and Distributed Control, Automation and Its Consequences

IB Computer Science · Control (HL)

Two architectures. In centralised control one controller receives readings from every sensor and issues every instruction. Its advantage is that it sees the whole system, so it can optimise globally — coordinating a green wave along an entire street, or balancing load across a whole building. Updates and policy changes are made in one place. Its weaknesses are a single point of failure, dependence on reliable communication, and the latency of every decision travelling to the centre and back. In distributed control each node has its own controller and its own sensors, and nodes exchange only limited information with neighbours. Its advantages are resilience — one failed node does not stop the others — and fast local response. Its weaknesses are that global optimisation is hard when each node sees only its own area, and that keeping software consistent across many nodes is a genuine operational problem. Real systems are usually hybrid: safety and immediate responses are handled locally so they never depend on a network link, while a centre coordinates strategy on a slower timescale.

Embedded systems. Most control runs on embedded processors: dedicated, low-power, with limited memory, usually with no general operating system, and often required to run for years without intervention. These constraints explain design choices that would look strange in ordinary software — avoiding dynamic memory allocation because its timing is unpredictable, or using a watchdog timer that restarts the processor if the main loop stops responding.

Why automation is adopted. Machines maintain precision indefinitely without fatigue, work in environments dangerous to people, operate continuously, respond faster than human reflexes, and produce consistent output. They also generate data that allows a process to be analysed and improved.

The costs, which must be argued rather than listed. Capital cost is high and it is only recovered at sufficient volume. Automation displaces some kinds of work while creating others, and the two rarely involve the same people in the same place, which is why the effect on employment is a distributional question rather than a question of totals. Skills atrophy: an operator who supervises an automatic system for years may be unable to take over manually in the rare emergency where that is required — a well-documented failure pattern. And automated systems fail differently: a human makes occasional independent errors, while a faulty automated system makes the same error consistently and at scale until someone notices. Accountability is also harder to assign when a decision was made by a system rather than a person.

CENTRALIZED VERSUS DISTRIBUTED CONTROL CENTRALIZED CENTRAL SERVER nút 1 nút 2 nút 3 nút 4 Can optimize GLOBALLY — coordinate a green wave along the whole route A SINGLE POINT OF FAILURE: if the center dies the whole system dies Needs a reliable link and must tolerate delay to the center DISPERSED nút 1 own controller nút 2 own controller nút 3 own controller nút 4 own controller talks only to its neighbors RESILIENT: if one node fails the other nodes keep running FAST reaction to events on the spot, without waiting for the center Hard to reach GLOBAL optimum and hard to update software uniformly Real systems are usually HYBRID: each node handles safety and immediate events itself, the center only coordinates strategy
Questions about these two architectures are always marked on trade-offs, and the four text boxes in the figure are the four points to state. Centralized control gathers all decisions into a single controller. The decisive advantage is that it sees the whole system, so it can optimize at the global level — with traffic lights, it can coordinate a green wave running along a whole street, something no single node can do alone. Software updates and policy changes also need to be made in only one place. The decisive disadvantage is that it creates a single point of failure: if the center stops, the whole system stops with it. It also depends on a reliable link and must tolerate the delay of the round trip to the center for every decision. Distributed control places a controller at each node, each node reads its own sensors and communicates only with neighboring nodes. The advantages are resilience — if one node fails the rest keep operating — and speed of local reaction, because decisions do not have to go to the center and back. The disadvantages are that it is very hard to reach a global optimum, because each node sees only its local part, and that updating software uniformly across hundreds of distributed nodes is a genuine operational problem. The conclusion worth writing is in the gray strip at the bottom of the figure. Real systems are almost always hybrid: safety functions and immediate reactions are placed locally at each node so they do not depend on the link, while the center takes on only coordinating strategy on a longer time scale. Stating this hybrid structure instead of choosing one side outright is the sign of a high-scoring answer.

Worked example: Choosing a control architecture for a city's traffic light system

A city has 240 signalized intersections. Compare the centralized option and the distributed option, then recommend a design.

Solution

The case for the centralized option. Only a controller that sees the whole network can coordinate consecutive nodes along an axis to create a green wave, in which vehicles traveling at exactly the speed limit meet successive green lights. This benefit cannot be achieved by local decisions, because each node does not know about the traffic stream about to arrive from the previous node. The center can also handle city-wide events — rerouting traffic when there is an accident, giving priority along a route to an ambulance, adjusting cycles for rush hour.

The case against a purely centralized option. Three serious problems. First, a single point of failure: if the center or the transmission network fails, all 240 nodes lose their instructions at once — a consequence dangerous to an unacceptable degree. Second, latency: a pedestrian pressing the crossing button should not have to wait for a round trip to the center. Third, communication volume: sensor data from 240 nodes sent continuously to one place creates a heavy load and turns the link into another weak point.

The case for and against a purely distributed option. Each node reads its own in-road loop sensors and decides on its own, so reaction is instant and a failed node affects only itself — it switches to a backup mode with a fixed cycle or flashing yellow. But no node can create a green wave, and no one can coordinate when there is a major event in the city.

Recommendation — a hybrid architecture, divided by TIME SCALE. This is the high-scoring answer, and the principle of the division must be stated clearly.

At each node: all the safety logic and every immediate reaction — guaranteeing the yellow-light duration, absolutely never allowing two directions to be green at once, responding to the pedestrian button, and small adjustments of phase length based on local traffic-flow sensors. These functions must run even when network connectivity is completely lost.

At the center: coordination on a slower time scale — choosing the control program by time of day, setting the phase offsets between nodes to create green waves, handling special events, and collecting data for analysis. The center sends parameters down to the nodes rather than individual on-off commands.

The general principle to write in the essay. In every distributed control system, place locally whatever must not fail and must react immediately, and place at the center whatever needs a global view and can tolerate delay. If the system stays safe when connectivity is lost, the design is right.

Worked example: Evaluating the automation of a production line without falling into listing

A factory plans to replace 60 assembly workers with a robot production line. Build an evaluation framework and point out three arguments that an average essay usually misses.

Solution

Evaluation framework — separate by STAKEHOLDER, not by type. This is the key point, as in the way any technology with social impact is evaluated. The factory owner receives most of the benefit: lower labor costs, uniform output, running three shifts. Customers receive more consistent quality and possibly lower prices. The replaced workers bear almost the entire cost. The local community is affected indirectly through reduced purchasing power.

The benefits, presented seriously. A robot holds assembly tolerances constant throughout a shift while humans tire; it can do dangerous operations such as welding, painting and lifting heavy objects, so the rate of workplace accidents falls; it runs continuously so fixed costs are spread over larger output; and it generates data on every operation, making it possible to detect causes of defects that visual observation cannot see.

The first missed argument — jobs are a question of DISTRIBUTION, not of totals. An average essay writes "60 jobs are lost but new jobs are created in maintenance and programming". That is true but not enough, because there are far fewer new jobs, they require entirely different skills, and they are often elsewhere. The people who lose jobs and the people who receive the new jobs are seldom the same group. So the correct conclusion is not "total employment is unchanged" but that the cost is concentrated on a specific group while the benefits are spread out — and that determines that the accompanying measure must be retraining for a change of occupation and transition support, not reassurance.

The second missed argument — automated systems fail in a different way. Humans make sporadic errors independent of each other, so a defective product is usually caught by the next person. An automated system with a fault makes the same fault on every product, consistently, until someone detects it — so the scale of damage from one incident is much larger. This leads to a specific design requirement: there must be quality inspection independent of the production system itself, because if it shares the same sensors and the same software the fault will not be detected.

The third missed argument — erosion of skills. After a few years, the factory no longer has anyone proficient enough to assemble by hand. When the robot breaks, or when a special batch is needed that the line has not been programmed for, the factory loses its fallback option entirely. This is a kind of risk that accumulates over time and appears in no payback spreadsheet, so it is almost always overlooked at the decision stage.

A conditional conclusion. Automation is a reasonable choice when output is large enough to pay back the investment, when the work is repetitive with clear tolerances, and when there is independent quality inspection plus a transition plan for the workers. It is the wrong choice when the product changes constantly, when output is low, or when the organization cannot retain the minimum manual operating capability to handle incidents.

Common mistake

Trap 1 — choosing outright centralized or distributed. Real systems are almost always HYBRID, and the principle of division is: place locally whatever must not fail and must react immediately, place at the center whatever needs a global view and can tolerate delay.
Trap 2 — concluding that automation "creates new jobs so it is fine". Jobs are a question of DISTRIBUTION: there are fewer new jobs, they require different skills, and they are often elsewhere, so the people who lose jobs and the people who receive new jobs are seldom the same group.
Trap 3 — listing the pros and cons of automation without stating the different failure mechanism. Humans make sporadic errors; an automated system makes the SAME error at scale until it is detected — so there must be quality inspection independent of the production system itself.

Key takeaway

Lesson 2 wrap-up. Four things to take into the exam room. One, the centralized versus distributed comparison table with four points: global optimization versus resilience, and a single point of failure versus difficulty of synchronization. Two, the hybrid design principle divided by time scale and by criticality. Three, embedded-system constraints explain design choices such as avoiding dynamic allocation and using a watchdog timer. Four, three arguments for evaluating automation that an average essay misses: jobs are a distribution problem, automated systems fail at scale with the same fault, and manual operating skills gradually erode over time.

← Control Systems, Sensors and Feedback · All IB Computer Science lessons · Practice IB Computer Science questions (free, instant scoring) · Sensors, Analogue-to-Digital Conversion, Sampling and Data Logging →