Professional Documents
Culture Documents
Situation-Aware Dynamic Service Coordination in An Iot Environment
Situation-Aware Dynamic Service Coordination in An Iot Environment
Abstract— The Internet of Things (IoT) infrastructure with objects, and servers can interconnect and give rise to the
numerous diverse physical devices are growing up rapidly, development of compelling services and applications. Each
which need a dynamic services coordination approach that can IoT device can be perceived as an edge-node of a cyber-
integrate those heterogeneous physical devices into the context-
aware IoT infrastructure. This paper proposes a situation-aware
physical ecosystem with the ability to dynamically cooperate
dynamic IoT services coordination approach. First, focusing on and make its service resources available in order to reach a
the definition of formal situation event pattern with event selec- complex goal, i.e., the execution of one or more tasks assigned
tion and consumption strategy, an automaton-based situational to the network. The acquisition, distribution and integration
event detection algorithm is proposed. Second, the enhanced of large-scale, multi-source information, along with the need
event-condition-action is used to coordinate the IoT services to appropriately respond to dynamic changes in the physical
effectively, and also the collaboration process decomposing algo-
rithm and the rule mismatch detection algorithms are proposed. world in real time, which pose new technological challenges to
Third, the typical scenarios of IoT services coordination for smart the provision of IoT services. First, the heterogeneous nature
surgery process are also illustrated and the measurement and of sensory devices require an abstraction from the lower device
analysis of the platform’s performance are reported. Finally, level layer to a common access layer for other applications,
the conclusions and future works are given. which need an abstraction instance as it has the capability to
Index Terms— Situation-aware, dynamic, service coordination, gather and connect the data from different sensor platforms.
IoT environment. Second, with the huge amounts of data to be made available
I. I NTRODUCTION from the edge of the sensor networks or electronic devices
to the applications to be available anywhere at any time,
A LONG with the rapid development of embedded comput-
ing and new sensor technologies, the goals of information
and communication technology have evolved to include the
how to dispatch, assemble/integrate those sensory data among
the distributed, loosely coupled information systems across
different business fields or even organizations. Third, support
ability to connect to anyone or any object at any time, from
the rapid coordination of manpower and business processes to
any place. People wish to closely relate the virtual world
interact with physical entities across business domains, or even
established by computation facilities to the physical world,
across organizations, thereby endowing the IoT service system
so that computation equipments can be seamlessly integrated
with the characteristics of real-time dynamic variation.
into their lives and to provide more intelligent universal ser-
In recent years, researchers have incorporated Service-
vices through real-time sensing and dynamic interaction with
Oriented Architecture (SOA) [5]–[7] technology into IoT ser-
the physical world. It is within this context that the Internet
vice coordination to resolve the heterogeneity of services
of Things (IoT) technology has emerged, in which a large
and physical entities to facilitate interoperability and dynamic
number of physical entities are interconnected and integrated
service discovery. However, the traditional SOA standards
into the information space, and the supply and consumption
and technologies are designed primarily for the integra-
of information are realized through the Internet [1]–[4]. In this
tion of enterprise-class heavyweight services in an Internet
respect, successful solutions are expected to embody a huge
environment, and the traditional SOA is unable to resolve
number of smart objects identified by unique addressing
dynamic multi-service collaboration issues that are triggered
schemes providing services to end-users through standard
by complex events. Primarily, SOA begins by decoupling
communication protocols. Accordingly, the huge numbers of
the system, focuses on decomposing the entire application
objects connected to the Internet and that permeate the envi-
into a series of independent services and defines various
ronment we live in, are expected to grow considerably, causing
standards and infrastructures to facilitate the reuse of these
the production of an enormous amount of data that must be
services; i.e., to allow them to be used easily by applications
processed and made available in a continuous, efficient, and
on various platforms. The resolution must be achieved by
easily interpretable manner. A massive number of devices
the IoT service provider using a mechanism that precisely
with different capabilities such as sensors, actuators, smart
coordinates the real-time interaction and collaboration between
Manuscript received January 3, 2016; revised December 25, 2016; accepted multiple coupled systems. Therefore, another technical chal-
February 13, 2017; approved by IEEE/ACM T RANSACTIONS ON N ETWORK - lenge faced by IoT service providers is the approach used
ING Editor A. X. Liu. This work was supported by the National High-tech
Research and Development Program of China (863 Program) under Grant
to resolve flexible and distributed service collaboration across
2013AA102301. (Corresponding author: Bo Cheng.) business domains, or even across organizations. Event Driven
The authors are with the State Key Laboratory of Networking and Architecture (EDA) [8]–[10] uses an asynchronous event com-
Switching Technology, Beijing University of Posts and Telecommunications, munication mode, whereby the generation of an event can
Beijing 100876, China (e-mail: chengbo@bupt.edu.cn; wangming_bupt@
bupt.edu.cn; zhaoshuaiby@bupt.edu.cn; chjl@bupt.edu.cn). trigger the concurrent execution of one or more services. When
Digital Object Identifier 10.1109/TNET.2017.2705239 a certain event occurs, different services can be triggered
1063-6692 © 2017 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission.
See http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.
automatically, endowing the system with the capability of real- used to improve the service quality of IoT [11]. Reference [12]
time sensing and rapid response to events in a loosely coupled, proposes a new context-aware paradigm for IoT, called Con-
distributed computing environment. In general, pure SOA and text of Things, that can acquire the context information from
EDA have their own limitations, but could complement each two aspects of user’s description and sensor reports. Based
other; that is, a certain degree of service coordination can be on the Context of Things, a smart IoT service is imple-
achieved among mutually independent service systems through mented to analyze the thing’s need intelligently. Reference [13]
the event mechanism. This complementarity is well suited proposes a context-aware approach for trust management of
to the characteristics of IoT, which has a characteristics for IoT service network. This approach can dynamically predict
high autonomy inside a domain and efficient coordination trustworthiness of a service provider based on its behavior
across domains; furthermore, it both improves the real-time in response to context changes. To deal with the resource-
response to constantly changing business requirements and constraints, scalability, mobility and real-time requirements of
minimizes the impact on the existing application system to IoT environments, [14] introduce the semantic representation
allow a large-scale, distributed IoT service application to be approach for IoT nodes, and utilize the semantic IoT knowl-
easily developed and maintained. In this paper, an event-driven edge for reasoning actionable knowledge with Semantic Web
and service-oriented situation-aware IoT service coordination technologies. Reference [15] proposes an adaptive approach
approach is proposed, and the on-demand distribution of that can dynamically integrate heterogeneous devices into the
situation-aware information and dynamic, event-driven service context-aware IoT infrastructure.
coordination are implemented by integrating the advantages of
SOA and EDA. The contributions of this paper are as follows: B. Physical Mashup
1) A comprehensive and systematic event-driven, service-
oriented IoT service coordination platform architecture, Physical mashup inherits the basic paradigm of Web
which effectively integrates the advantages of SOA Mashup that can assist users to create IoT applications rapidly
and EDA, is proposed. SOA technology is used to by composing virtual and physical services. Reference [16]
resolve interoperability issues among large numbers of proposes a user-centric composition framework of IoT services
heterogeneous services and physical entities as well as based on device resources in urban-computing environments.
application reusability issues in a large-scale distributed In this framework, the IoT services are implemented as smart
IoT environment; EDA technology is used to address objects from the perspective of users, and a task-oriented
the problem of the cross-business-domain, or even cross- computing approach is also presented to handle the compo-
organization, on-demand distribution of sensed informa- sition of IoT services in a spontaneous manner to achieve the
tion as well as the problem of dynamic event-driven user task. To reduce the bandwidth and processing time of
service coordination. embedded devices, a new integrated framework is proposed
2) A situational event pattern is designed. Various types of for the embedded applications [17]. This framework adopts
information monitored by sensors are defined as atomic the CoAP (Constrained Application Protocol) / EXI (Efficient
events, and a series of concise and strictly temporal event XML Interchange) technology stack to be suitable to develop
operators are used to define complex event pattern with resource-constrained embedded applications. Reference [18]
rich semantics; simultaneously, flexible event selection presents a model-based interface description scheme that can
and consumption strategies are provided for users to automatically generate the user interface of IoT devices. In the
create flexible configurations, and an automaton-based scheme, a self-defined description language should be used to
situational event detection algorithm is proposed. describe the interaction semantics of interactive components.
3) A situational event-driven service coordination behavior To overcome the heterogeneity of IoT devices, [19] proposes
model is proposed. This model is based on an extended a mashup model of services in IoT environment. This mashup
event-condition-action (ECA) trigger mechanism, which model can be used to develop IoT applications following
translates the service global process model into a series the model-driven architecture, and finally implemented based
of local processes and event flow models to generate a on the cloud environment. Reference [20] proposes a light-
set of executable ECA rules and define a coordinated weight physical mashup approach for IoT applications. In the
execution sequence for global services to implement approach, the physical devices in the lower layer are repack-
situational event-triggered active coordination for the aged as RESTful services based on CoAP, and provided to the
global coordination process. composition layer in a graphical manner, so that non-experts
could use them to develop personalized IoT applications.
The remainder of the paper is organized as follows. The
related work to this study is briefly reviewed and dis-
cussed in Section II. Section III describes the application C. Dynamic IoT Service Orchestration
scenario. Section IV describes the proposed architecture. The dynamic service orchestration provides a flexible coor-
Finally, conclusions and possibilities for future work are dination pattern for physical devices in IoT environment.
described in section V. Reference [21] proposes a service-oriented collaboration
approach for smart home to address the heterogeneity and
II. R ELATED W ORKS late binding of physical devices. This approach is imple-
A. Context-Aware Service for Internet of Things mented based on AI planning technologies to dynamically
In IoT environment, the context-aware information is nor- orchestrate the IoT service processes at runtime according to
mally collected and extracted from sensor data, and can be function requirements and contextual information. Similarly,
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.
TABLE I
SEP RULE S TRUCTURE
Fig. 8. The XOR branch structure control. Fig. 11. The While-Do loop structure control.
Ef (steps 14-15). If the service domains of s and spre are the Fig. 14. The Decomposed Local process and event flow model.
same, then s and spre belong to the same local process. In this
context, two different situations must be catered for if the collaborative process model remains unchanged after decom-
local process to which s belongs has not yet been determined, position into the local process models, e.g., the XOR-split
then the set of local processes s is equal to that of spre . control pattern of S5 and S10, and the XOR-join pattern
Simultaneously, a control flow CFL (spre → s) from spre to of S12. However, for more than one control flow conver-
s can be created and stored in the corresponding local process sion or during the service of an event interaction, S4 and
PL (steps 18-21). If the local process to which s belongs is S9 are both AN D-split, and S7, S10, and S11 are all
determined, and is different from that of spre , then the two AN D-join control patterns.
should be combined, because both local processes belong to After extracting several local processes and event flows
the same service domain and the same collaborative process. from the collaborative process using the CPD algorithm, these
Thus, the process of the prior service spre is discarded, and models can be converted into executable ECA rules. In the
all local processes of s ∈ S(process(spre )) are set to be the smart service environment, three types of rules are most
same as s. This kind of refresh situation usually occurs when critical: the flow constraint rule, E-Service interaction rule,
more than one prior service is possible for a certain service, and S-Service event detection rule. Among these, the flow
and these prior services belong to different local processes. constraint rule is mainly used to establish flow control within
During the surgery process, every patient is equipped the management service domain and cross service domain
with an RFID-embedded wristband (REW) (a type of device events; the E-Service interaction rule is mainly used for service
belonging to the patient support system (PSS)). Every REW information system oriented calls and response triggers; and
corresponds to an unique ID, which corresponds to a given the S-Service event detection rule is used for RFID in the
patient. If the medical personnel carry out a certain operation smart service environment, or for the triggering of other smart
to match the REW to a specific patient, then the smart auxiliary devices used in real-time detection events. The portion of the
device of the medical personnel will display the detailed E-ECA rule set that applies to the smart surgery management
information of that patient. The full model for the collaborative collaborative process is shown in Table II and Table III.
process of surgery management and the refined collaborative First, the beginning and ending constraints of the service
process is shown in Fig. 13. must be defined. For example, S1 corresponding to local
The entire collaborative process PC contains 13 sub- process P 1 in the service domain P SS (i.e., the patient was
services (S1-S13) and 13 control flow conversions, among told that surgery preparation was complete) is the first service
which two XOR-split patterns are involved. All services in the entire collaborative process and does not have beginning
belong to four different service domains: PSS, nurse assis- constraints; for this service, the initial state is ’Ready’. The
tant system (NAS), anesthetist assistant system (AAS), and transmission of the information that preparation has been
surgeon assistant system (SAS). Specifically: S1, S13 ∈ completed to the hospital information center through E-Service
P SS; S3, S4, S7, S10, S12, S13 ∈ N AS; S5, S6 ∈ type services then begins execution. After the information
AAS; and S8, S9, S11 ∈ P SS. has been transmitted, S1 will transmit an internal event that
To apply the CPD algorithm in the surgery management indicates conversion into the ’Completed’ state; the ending
collaborative process, the local process model, event flow constraint is the transmission of an internal event to trigger
model, and their relationship after decomposition are shown the next service, which is S2 of local process P 1 that belongs
in Fig. 14. to the same service domain P SS (i.e., the patient receives
Every service domain has a corresponding local process. the information that the surgery treatment process has been
Within a certain local process, it is possible that event flow entered). The service cycle of S2 is mostly similar to S1;
exists between some of the services and those of other local the difference is in the specific service provided. However,
processes, while these processes themselves represent the far for S3 in N AS (i.e., the nurse is inspecting the patient’s
end or the target end. The control flow pattern CP in the identity and physical condition) the beginning flow constraint
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.
is that the nurse had received information that the S2 service to ’Completed,’ and S10 finishes execution. If an emergency
was completed through N AS. During the execution of S3, situation occurs during the period, the definition of the emer-
based on the E-Service interaction rule, patient.identification() gency rule is invoked; such as the occurrence of the patient
service is called, and at the same time, the state of S3 is set hypovolemia danger warning rule as follows:
to ’Executing.’ When service.response (patient.identification) According to this rule, if the heart beat rate of the patient
is received (i.e., the inspection of the patient’s identity and increases in excess of 5% within a five minute period, coupled
physical condition by the nurse has been completed), the state with a decrease in blood pressure by more than 6%, a warning
of S3 is changed to ’Completed.’ The ending flow constraint is issued to the medical personnel. In this case, S10 executes
of S3 is the production of an internal control flow event that the ELSE branch of the E-ECA control structure ON-IF-
triggers S4 service, which also belongs to N AS. In S4 (i.e., THEN-ELSE; then, that branch transmits an external warning
patient transfer), the beginning flow constraint is receiving event to S11, triggering that service. At the same time,
information of the completion of S3 through N AS. In the another internal event is produced to bring about the end of
intermediate state, based on the E-Service interaction rule, service S10.
E-Service: patient.transport() is executed. The ending flow
constraint is the transmission of two control flow information
steps that are in the same service domain, ’E-4-7’ and
E. The Rule Mismatch Detection (RMD) Algorithm
’E-4-10’; that is, for the nurse, the next step can execute
either S7 or S10, and the transmission of an event flow IoT services exist in a diverse environment that has tem-
’E-4-5’, which notifies the anesthetist that the patient has poral and spatial constraints and is subject to dynamic and
arrived, that is, to begin S5 service in the AAS service domain ever-changing features. To match the environment and service
(i.e., confirmation of relevant patient information). scenarios, the realized ECA rules can be defined by different
Service S10 (i.e., transfer the patient to a recovery room and users and can be changed and registered on different distrib-
track the patient’s physical condition) involves the S-Service uted smart devices. This can cause differences between the
event detection rule. The detection of important information rules used for different realized collaborative actions; when
regarding the medical equipment used for patient monitoring the rules are triggered and executed in a distributive manner,
is started at the same time as when S10 is in ’Ready’ conflict can occur. Therefore, the consistency of the service
state. If there is no occurrence of an emergency situation collaboration actions must be verified, to ensure that the
within the action time of the medical monitoring equipment, service collaborative process is executed smoothly. The Rule
the S-Service event detection rule transfers the state of S10 Mismatch Detection (RMD) algorithm is given in Algorithm 3.
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.
[7] R. T. Tiburski, L. A. Amaral, E. De Matos, and F. Hessel, [31] Esper Product. Open Source Project, Version 5.1.0,
“The importance of a standard security architecture for SOA-based accessed on Oct. 2014. [Online]. Available: http://www.
IoT middleware,” IEEE Commun. Mag., vol. 53, no. 12, pp. 20–26, espertech.com
Dec. 2015. [32] M. Wei, I. Ari, J. Li, and M. Dekhil. ReCEPtor: Sensing Complex Events
[8] A. G. De Prado, G. Ortiz, and J. Boubeta-Puig, “CARED-SOA: in Data Streams for Service-Oriented Architectures, accessed on 2007.
A context-aware event-driven service-oriented Architecture,” IEEE [Online]. Available: http://www.hpl.hp.com/techreports/2007/HPL-
Access, vol. 5, pp. 4646–4663, 2017. 2007-176.html
[9] B. Medjahed, “Dissemination protocols for event-based service-oriented [33] G. Hermosillo, L. Seinturier, and L. Duchien, “Using complex event
architectures,” IEEE Trans. Serv. Comput., vol. 1, no. 3, pp. 155–168, processing for dynamic business process adaptation,” in Proc. IEEE
Jul. 2008. SCC, Jul. 2010, pp. 466–473.
[10] S. Overbeek, B. Klievink, and M. Janssen, “A flexible, event-driven,
Bo Cheng received the Ph.D. degree in computer
service-oriented architecture for orchestrating service delivery,” IEEE
science from the University of Electronics Science
Intell. Syst., vol. 24, no. 5, pp. 31–41, May 2009.
and Technology of China in 2006. He is currently a
[11] C. Perera, A. Zaslavsky, P. Christen, and D. Georgakopoulos, “Context Professor of the State Key Laboratory of Networking
aware computing for the Internet of Things: A survey,” IEEE Commun.
and Switching Technology, Beijing University of
Surveys Tuts., vol. 16, no. 1, pp. 414–454, 1st Quart., 2014. Posts and Telecommunications. His research inter-
[12] J. He, Y. Zhang, G. Huang, and J. Cao, “A smart Web service based ests include multimedia communications and ser-
on the context of things,” ACM Trans. Internet Technol., vol. 11, no. 3, vices computing.
p. 13, 2012.
[13] Y. Wang et al., “CATrust: Context-aware trust management for
service-oriented ad hoc networks,” IEEE Trans. Serv. Comput.,
to be published, doi: 10.1109/TSC.2016.2587259. Ming Wang received the master’s degree from
[14] A. Maarala, X. Su, and J. Riekki, “Semantic reasoning for context-aware the University of Science and Technology Beijing
Internet of Things applications,” IEEE Internet Things J., vol. 4, no. 2, in 2011. He is currently pursuing the Ph.D. degree
pp. 461–473, Apr. 2017. in computer science and technology with the State
[15] H. Tter and A. Sztajnberg, “Adapting heterogeneous devices into an IoT Key Laboratory of Networking and Switching Tech-
context aware infrastructure,” in Proc. IEEE/ACM 11th Int. Symp. Softw. nology, Beijing University of Posts and Telecommu-
Eng. Adapt. Self-Manag. Syst., Austin, TX, USA, May 2016, pp. 64–74. nications. His research interests include multimedia
[16] I.-Y. Ko, H.-G. Ko, A. J. Molina, and J.-H. Kwon, “SoIoT: Toward a networking and media processing.
user-centric IoT-based service framework,” ACM Trans. Internet Tech-
nol., vol. 16, no. 2, p. 8, 2016.
[17] R. Kyusakov, P. P. Pereira, J. Eliasson, and J. Delsing, “EXIP: A frame-
work for embedded Web development,” ACM Trans. Internet Technol., Shuai Zhao is currently a Post-Doctoral Fellow with
vol. 8, no. 4, p. 23, p. 2016. the State Key Laboratory of Networking and Switch-
[18] S. Mayer et al., “User interfaces for smart things—A generative ing Technology, Beijing University of Posts and
approach with semantic interaction descriptions,” ACM Trans. Comput. Telecommunications. His current research interests
Human Interaction, vol. 21, no. 2, p. 12, 2014. include Internet of Things and service computing.
[19] J. Im, S. Kim, and D. Kim, “IoT Mashup as a service: Cloud-based
mashup service for the Internet of Things,” in Proc. IEEE Int. Conf.
Services Comput., Jun. 2013, pp. 462–469.
[20] L. Mainetti, V. Mighali, and A. L. Patrono, “A software architecture
enabling the Web of Things,” IEEE Internet Things J., vol. 2, no. 6,
pp. 445–454, Jun. 2015. Zhongyi Zhai is currently pursuing the Ph.D.
[21] E. Kaldeli, E. U. Warriach, A. Lazovik, and M. Aiello, “Coordinating degree in computer science and technology with the
the Web of services for a smart home,” ACM Trans. Web, vol. 7, no. 2, State Key Laboratory of Networking and Switching
p. 10, 2013. Technology, Beijing University of Posts and
[22] S. Mayer, R. Verborgh, M. Kovatsch, and F. Mattern, “Smart configu- Telecommunications. His current research interests
ration of smart environments,” IEEE Trans. Autom. Sci. Eng., vol. 13, include service mashup, end-user programming,
no. 3, pp. 1247–1255, Mar. 2016. mobile computing, and Web technology.
[23] Y. Ding, Y. Jin, L. Ren, and K. Hao, “An intelligent self-organization
scheme for the Internet of Things,” IEEE Comput. Intell. Mag., vol. 8,
no. 3, pp. 41–53, Aug. 2013.
[24] Z. Wen, R. Yang, P. Garraghan, T. Lin, J. Xu, and M. Rovatsos,
“Fog orchestration for Internet of Things services,” IEEE Internet Da Zhu is currently pursuing the Ph.D. degree with
Comput., vol. 21, no. 2, pp. 16–24, Feb. 2017. the State Key Laboratory of Networking and Switch-
[25] M. Stecca, C. Moiso, M. Fornasa, P. Baglietto, and M. Maresca, ing, Beijing University of Posts and Telecommunica-
“A platform for smart object virtualization and composition,” IEEE tions, Beijing, China. His current research interests
Internet Things J., vol. 2, no. 6, pp. 604–613, Jun. 2015. include Web service composition, communication
[26] R. Mateescu, P. Poizat, and G. Salaün, “Adaptation of service protocols Web service, and Internet of Things.
using process algebra and on-the-fly reduction techniques,” IEEE Trans.
Softw. Eng., vol. 38, no. 4, pp. 755–777, Apr. 2012.
[27] W. Kongdenfha, H. R. Motahari-Nezhad, B. Benatallah, F. Casati, and
R. Saint-Paul, “Mismatch patterns and adaptation aspects: A foundation
for rapid development of Web service adapters,” IEEE Trans. Serv.
Comput., vol. 2, no. 2, pp. 94–107, Apr. 2009. Junliang Chen is currently a Professor of the
[28] A. Moustafa, M. Zhang, and Q. Bai, “Trustworthy stigmergic service Beijing University of Posts and Telecommunica-
compositionand adaptation in decentralized environments,” IEEE Trans. tions. His research interests are in the area of service
Services Comput., vol. 9, no. 2, pp. 317–329, Mar./Apr. 2016. creation technology. He was elected as a member
[29] S. Zhou, K.-J. Lin, J. Na, C.-C. Chuang, and C.-S. Shih, “Supporting of the Chinese Academy of Science in 1991 and
service adaptation in fault tolerant Internet of Things,” in Proc. IEEE a member of the Chinese Academy of Engineering
8th Int. Conf. Service-Oriented Comput. Appl. (SOCA), vol. 21. Rome, in 1994.
Italy, Oct. 2015, pp. 65–72.
[30] B. Cheng, D. Zhu, S. Zhao, and J. Chen, “Situation-aware IoT service
coordination using the event-driven SOA paradigm,” IEEE Tran. Netw.
Services Manag., vol. 13, no. 2, pp. 349–361, Jun. 2016.