Blockchain Based Distributed Control System For Edge Computing
Blockchain Based Distributed Control System For Edge Computing
net/publication/318297570
CITATIONS READS
237 1,193
1 author:
Alexandru Stanciu
Institutul Naţional de Cercetare-Dezvoltare în Informatică
37 PUBLICATIONS 376 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
PEGAF - Grid enabled experimental platform for the development of applications oriented on workflows with dynamic allocation of ressources View project
GridMOSI - Grid enabled Virtual Organisation for High Performance Modelling, Simulation and Optimisation View project
All content following this page was uploaded by Alexandru Stanciu on 01 April 2023.
Alexandru Stanciu
National Institute for Research and Development in Informatics
Bucharest, Romania
alex@ici.ro
Abstract—Edge computing proposes a novel model for There are similar concepts which have some overlap with
providing computational resources close to end devices that are edge computing, like mobile cloud computing, which is
connected to the network. It has numerous applications in Internet expected to have an external infrastructure (usually available as
of Things, as well as smart grids, healthcare, smart home, etc. This cloud services) for data processing and storage for mobile
paper presents ongoing research regarding the use of blockchain applications.
technology as a platform hierarchical and distributed control
systems based on IEC 61499 standard. Hyperledger Fabric was Another term used interchangeably with edge computing is
selected as the blockchain solution, where function blocks are to fog computing. It extends the cloud computing paradigm to the
be implemented as smart contracts on a supervisor level. The edge of the network, thus enabling a new breed of applications
integration with the edge nodes that perform on the executive level and services. Its main characteristics are: a) low latency and
responsible for actual process control is based on a micro-services location awareness; b) wide-spread geographical distribution; c)
architecture where Docker containers implement function blocks, mobility; d) very large number of nodes, e) predominant role of
and Kubernetes platform is used for orchestrating the execution wireless access, f) strong presence of streaming and real time
of containers across the edge resources. applications, g) heterogeneity. These characteristics make the
fog the appropriate platform for a number of critical Internet of
Keywords—edge computing; IoT; blockchain; smart contracts; Things (IoT) services and applications, namely, connected
hierarchical distributed control system
vehicle, smart grid, smart cities, and, in general, wireless sensors
I. INTRODUCTION and actuators networks [2].
The emergence of Internet connected smart devices which We have investigated the blockchain technology as a
can be accessed and controlled remotely via computer networks, platform for edge computing in order to implement a distributed
has raised the expectations for new and enhanced intelligent control system based on IEC 61499 standard.
computing services. The rest of the paper is organized as follows. Section II
However, security and privacy of user’s data, and specific presents an overview of the edge computing architecture. IEC
requirements regarding personal data protection, have 61499 standard for distributed control system is reviewed in
challenged the effectiveness of the centralized computing model Section III. In Section IV is discussed the blockchain
available on the public cloud infrastructures. A new computing technology, and the current research regarding implementation
model, with the emphasis on decentralization, and the of function blocks as smart contracts and the integration within
collaboration of individual work units to achieve a common the distributed control system. Related work is discussed in
goal, has been devised for Internet of Things (IoT) applications, Section V, and the conclusion are presented in the final section.
and for other domains such as the smart grid, healthcare,
connected vehicles, etc. II. EDGE COMPUTING ARCHITECTURE OVERVIEW
For many IoT applications which require mobility support,
The main characteristic of this model is that data processing
location awareness and low latency, there is a need of a new
occurs at the edge of the network, as close as possible to the
platform, one which can provide computational resources to
smart device which both produce and consume the data, and the
both large-scale sensor networks which monitor the
need of powerful computing resources is limited [1].
environment, as well as intelligent services based on data
Edge computing is a new paradigm dedicated to applications processing and cloud resources integration.
that require minimal latency, and which must process large
Edge computing nodes can be seen as members of a
quantity of data that is difficult to transfer over the network. As
decentralized network which provides compute, storage and
the cloud services are not suitable for such use cases because of
networking services to end devices.
the limited network bandwidth, security and privacy of data,
various solutions have been implemented to address computing Since smart devices are usually inadequate in computation
needs at the edge of the network. power, battery, storage and bandwidth, IoT applications and
services are usually backed up by strong server backends, which
are mostly deployed in the cloud, since cloud computing is
considered as a promising solution to deliver services to end
Hierarchical
users and provide applications with elastic resources at low cost Blockchain
Cloud services distributed control
[3]. system
Edge computing has not replaced the need for cloud
computing services. Sometimes, it is necessary to integrate
cloud resources in a three-layer architecture which is based on Edge nodes
devices, a mesh of edge nodes, and has cloud services on top. It
has several properties, such as its close distance to end users.
For latency sensitive applications, the computations must be Physical processes and devices
kept as close to the data as possible. Location-awareness is
another important property because intelligent services need to Fig. 1. Hierarchical distributed control system model for edge computing
use the context of the user to provide the best experience. For
data intensive applications, edge nodes can provide the first III. IEC 61499 STANDARD FOR DISTRIBUTED CONTROL SYSTEMS
steps for data processing, thus limiting the volume of data that
The IEC 61499 standard outlines a generic model for
should be transferred to the central cloud services.
distributed control systems, defining the architecture and the
It can be argued that while the edge nodes provide compliance requirements for software tools.
localization with context and low latency for data processing,
The promising application areas of IEC 61499 include
the cloud provides a central point of references which can
flexible material handling systems, in particular airport baggage
coordinate the edge nodes.
handling, flexible reconfigurable manufacturing automation,
This three-tier model for edge computing is necessary intelligent power distribution networks and smart grid, as well
especially for data intensive applications by reducing the data as the wide range of embedded networked systems.
transfer and storage requirements. Data processing in the edge
There were various attempts to create distributed control
nodes is thus extremely important for applications that produce
systems, first by using Programmable Logic Controllers (PLCs)
huge volumes of data, and which should provide real-time
to centrally process collected data from field area networks.
response to end users.
After that, it was experimented the integration of PLCs via
Another interesting application domain for edge computing networks, and then, by genuinely distributed automation
is the smart grid. In order to measure and control the distribution development, where the intelligence is designed from the very
network, smart meters are deployed on the field. There is a beginning as decentralized and embedded into software
central system to control the grid infrastructure which gathers components, which can be freely distributed across networked
and analyses the data received, and sends commands to adjust hardware devices [4].
any modifications with respect to supply and demand of
The IEC 61499 standard has been designed to support
resources.
distributed automation control systems. The main component is
With edge computing, this central automation system, can be the function block (FB), which has been designed like a process
integrated with a network of intelligent devices, in a hierarchical abstraction which is used in distributed computing systems - an
control structure. This covers the geographical distribution of independent computational activity with its own set of variables
the power grid and provides advanced services based on (context) and communication with other processes via
integration between the central and local resources. The central messages.
control structure on the higher level has a strategic role, whereas
Function blocks which are the atomic units of execution in
the local control systems on the lower level are responsible for
IEC 61499 based systems, consists of two parts, a function block
the real-time operation of field resources.
interface and an execution control chart that operates over a set
This type of role separation in a hierarchical distributed of events and variables. The execution of a FB entails accepting
control system is used in the context of edge computing model inputs from its interface, processing the inputs using the
as a criterion for the selection of the level on which its algorithms selected by the execution control chart, and emitting
components are deployed. For example, as presented in Fig. 1, outputs.
the principal components that are involved in strategy decision
Typically, an algorithm consists of loops, branching and
are placed on the higher level, and are implemented as smart
update statements, which are used to consume inputs and
contracts in a blockchain provided as a cloud service. The rest
generate outputs. The IEC 61499 standard allows algorithms to
of the components are part of the lower level of the hierarchical
be specified in a variety of implementation-dependent
distributed control system, and are implemented on the edge
languages.
nodes (which are close to the processes to be controlled).
Another function block type is the Service Interface
We will review in the next section the IEC 61499 standard
Function Block (SIFB). This represents the interface to low level
for distributed control systems, and will present our ongoing
services provided by the operating system or hardware of the
work related to the usage of blockchain technology in order to
embedded device, such as:
execute a critical part of distributed control algorithms in a
secure environment.
• Graphical User Interface (GUI) elements such as a input Blockchains allow us to have a distributed peer-to-peer
fields and controls, network where non-trusting members can interact with each
other without a trusted intermediary, in a verifiable manner.
• Communication services,
Within the blockchain context, smart contracts are scripts
• Interfaces to hardware devices. stored on the blockchain. (They can be thought of as roughly
Service interface function blocks (SIFB) can be considered analogous to stored procedures in relational database
as device drivers that connect the external environment with management systems). Since they reside on the chain, they have
function block applications. IEC 61499 compliant software tools a unique address.
and their associated runtime packages can provide a large A smart contract can be triggered by addressing a transaction
selection of GUI and communications SIFBs. to it. It then executes independently and automatically in a
Device and resource models are used in the IEC 61499 prescribed manner on every node in the network, according to
standard to emulate the physical components (e.g. controllers, the data that was included in the triggering transaction. (This
sensors, actuators, etc.) as logical elements of the process implies that every node in a smart contract enabled blockchain
automation system. A conceptual model of the main entities and is running a virtual machine (VM), and that the blockchain
the relationship between them is presented in Fig. 2. network acts as a distributed VM) [7].