Thingframe

Deliverable · WP2

D2.5: adaptive, fault-tolerant orchestration of IoT services

How IoT-A made service orchestration configure, optimise, repair and protect itself, and why idempotent actuation turned out to matter most.

Deliverable
D2.5
Work package
WP2 · Processes and service orchestration
Issued
November 2012
Pages
90
Editor
Stefan Meissner (UNIS)
Delivered
15 November 2012

Picture a city service that warns subscribers whenever a radiation hot-spot is near them, with each person’s position taken from their radio cell. The sensors stay put, the people move, the request never ends, and thousands of users share the same infrastructure. That scenario sits in chapter three of D2.5, and it shows the kind of problem the document set out to handle: orchestrations that have to keep working while devices, users and conditions change under them.

The full title on the cover is “Adaptive, fault-tolerant orchestration of distributed IoT service interactions”. Stefan Meissner of the University of Surrey edited it again, this time with contributors from NEC, SAP and Siemens. The contractual date was 31 August 2012 and the document was delivered on 15 November 2012 with the status Final. Among the work package 2 reports in the deliverables library, it covers two tasks: Task 2.2 on orchestration and management of distributed services, and Task 2.4, renamed during the project to complex event processing in IoT architectures.

From a phase model to self-management

D2.3 had defined how an IoT-aware business process finds, binds and calls its services, and had promised that self-optimisation and self-protection would follow. D2.5 delivers on that promise and organises itself strictly by the four self-management properties of autonomic computing. Self-configuration adapts behaviour when services are set up. Self-optimisation adapts to a changing environment at runtime. Self-healing repairs an orchestration when a service disappears or misbehaves. Self-protection keeps services from being used in unwanted ways. A final chapter carries the idea of fault tolerance up into the business process model itself.

The change from the earlier document is one of depth rather than direction. Self-healing, which got a short section in D2.3, now has its own chapter, and every chapter also asks how the property applies to global state detection, the complex event processing subsystem that watches event streams for meaningful situations.

Self-configuration and the RWIP demonstrator

The self-configuration chapter is the most practical. It builds on a middleware called the Real World Integration Platform (RWIP), adds an abstraction layer and a gateway, and walks through what happens when a new device joins and when an old one dies. A demonstrator was built to show plug-and-play extension of a running system. Services describe their own quality parameters, and the resolution phase can filter on four of them: availability, accuracy, correctness and precision.

The authors are candid about the limits. Because typical IoT services are simple, self-configuration mostly comes down to loosening the one-to-one link between a device and its service, so that devices can be added or removed and information fusion adjusted automatically. Adding a device with no human involvement still needed protocols that did not exist yet.

Coverage as an optimisation problem

The self-optimisation chapter recasts service selection as a coverage problem and classifies it along five axes: fixed or request-dependent service areas, area or point or line coverage, single or multiple coverage, one-time or continuous requests, and single or multiple tenants. Besides the radiation warning, the worked scenarios include a district temperature average recorded every ten minutes and a display operator who guarantees that a customer’s advert appears, once per hour, on some screen within one kilometre of any point in the city. The theory underneath is the classic set cover problem, and the chapter ends with a list of open research questions rather than an algorithm.

The replica arithmetic

Chapter five, marked in the contents as NEC’s contribution, gives the result most readers will remember. Using the replication approach from fault-tolerant service-oriented computing, the authors count how many redundant services are needed to survive δ faulty ones. Ordinary web services need 3δ+1. Sensing needs fewer, 2δ+1. Idempotent actuation, where repeating a command is harmless, needs only δ+1. Additive actuation, where each command adds to the last, needs 3δ+1, cannot run all replicas in parallel, and works only on a synchronous network with bounded delays.

Since IoT networks rarely give such guarantees, the authors conclude that actuation should be designed to be idempotent at the service level. A command such as set the valve to 40 percent survives duplication; open the valve another 10 percent does not.

That design rule holds up well. Anyone writing device APIs today will recognise it from REST practice and from the way digital twin platforms prefer desired-state commands.

Fault tolerance inside BPMN

The closing chapter, first drafted by Sonja Meyer of SAP, starts from BPMN’s three error events (start, interim and end) and proposes asking two questions of each process element: how critical is it, and how likely is it to fail? A reliance metric adopted from the SENSEI project becomes a quality attribute of IoT components in the model, which extends BPMN 2.0 modelling concepts from the bottom up.

The unified requirements that motivated this work, among them dependability and efficiency, are listed with their mapping to views and perspectives. The functional groups the deliverable touches are explained on the reference model page. One honest remark closes the protection chapter: in practice nobody knows the true number of faulty services, so δ itself stays a guess.