A Data Processing Middleware Based on SOA for the Internet of Things

. The Internet of Things (IoT) emphasizes on connecting every object around us by leveraging a variety of wireless communication technologies. Heterogeneous data fusion is widely considered to be a promising and urgent challenge in the data processing of the IoT. In this study, we first discuss the development of the concept of the IoT and give a detailed description of the architecture of the IoT. And then we design a middleware platform based on service-oriented architecture (SOA) for integration of multisource heterogeneous information. New research angle regarding flexible heterogeneous information fusion architecture for the IoT is the theme of this paper. Experiments using environmental monitoring sensor data derived from indoor environment are performed for system validation. Through the theoretical analysis and experimental verification, the data processing middleware architecture represents better adaptation to multisensor and multistream application scenarios in the IoT, which improves heterogeneous data utilization value. The data processing middleware based on SOA for the IoT establishes a solid foundation of integration and interaction for diverse networks data among heterogeneous systems in the future, which simplifies the complexity of integration process and improves reusability of components in the system.


Introduction
The concept of the Internet of Things (IoT) was firstly derived by the Automatic Identification (Auto-ID) Labs in the Massachusetts Institute of Technology (MIT) in 1999.The Auto-ID Labs simultaneously propose [1] radio frequency identification (RFID) systems that connect devices and transmit information via radio frequency to the Internet in order to achieve intelligent identification and management.To formalize the concept of the "Internet of Things, " the International Telecommunication Union (ITU) released the report of "ITU Internet reports 2005: the Internet of Things [2]" in the World Summit on Information Society (WSIS) held in Tunis in 2005, in which the IoT characteristics, related technical challenges, and future market opportunities were introduced.
ITU pointed out in the report [2], "We are standing at the edge of new times of communication, information and communication technology (ICT) to achieve the objectives have been developed to meet the communication between people, and things, between things connection.The coming era of ubiquitous Internet of Things make us a new dimension of communication in the world of information and communication technology (shown in Figure 1), any time, any place, connected to anyone, expansion to connect things connected to the Internet of Things." With the rapid development of information and communication technology, just a onefold technology cannot satisfy the complex context-aware application requirements, in which resource information has been subject to outside interference, and people want to be able to obtain realtime and real-world information such as diverse sensory data acquisitions and human-computer interaction data acquisitions and ultimately achieve efficient data acquisitions between people and things, people, and things and things.
The IoT applications integrate with IntelliSense recognition technologies, pervasive computing, and ubiquitous networks, which are called the third wave of the information technology revolution following the development of the information industry in the computer and the Internet.The IoT is an important part of the new generation of information The IoT incorporates RFID, wireless sensor networks, and ubiquitous terminal equipment as the perception foundation, with a variety of wired or wireless communication and integration of the Internet to achieve the perception data transferred and shared.By leveraging cloud computing and highperformance computing technology for real-time information process, management, and organization, we ultimately offer the upper application a variety of feedback decisionmaking processes for closed-loop control of the things.
Consequently, the growing popularity of the IoT will inevitably lead to a new wave of development of various industries, such as smart home, intelligent monitoring, smart grid, and other new concepts of things technology.So far, the IoT has been launched as a variety of demonstration applications in different domains (shown in Figure 1), such as intelligent industry [3], intelligent agriculture [4], intelligent logistics [5], intelligent transportation [6], smart grid [7], environmental protection [8], security protection [9], intelligent medical care [10,11], and smart home [12].
The rest of the paper is organized as follows.In Section 2, the IoT concepts are reviewed.The description of the architecture of the IoT is detailed in Section 3. In Section 4, we propose a middleware framework based on SOA for IoT.We conclude the paper and point out future work in Section 5.

Related Work
The IoT will be a promising facility of future network which has self-configuration ability in global dynamic network based on standard and interoperable communication protocols.In the network, all real and virtual items have specific identification and physical sensory data in order to achieve the goal of information sharing through seamless connection of intelligent interface [13,14].These intelligent interfaces connect and communicate with users, society, and environment context on the basis of the agreed protocols.It is an extension and expansion of the network based on the Internet to achieve intelligent identifying, locating, tracking, monitoring, and managing.
From an alternative perspective beyond the initial concept of the IoT and the definitions of it as abovementioned, the IoT is a network connecting things to things for achieving intelligent identification and management of the items in a broad sense; it can be seen as a fusion of the information space and physical space.Through that way, everything is digitized and networked, which results in realizing an efficient information interactive mode between items, items and people, and people and environment.After that, various diversities of information are merged into social networks and integrated into human society in a higher realm.For realization of information fusion in the IoT, the middleware technology is suitable to be adopted as a concrete solution.
Middleware as computer software provides connection of different software components and applications.It consists of a set of enabling services that allow multiple processes running on one or more machines to interact across a network.Atzori et al. [13] summarized the relationship as three visions of the IoT, that is, things-oriented visions, semantic-oriented visions, and Internet-oriented visions.According to the three characteristics, middleware in the IoT shall be able to address things issues and Internet issues, deal with the semantics gap, such as interoperability across heterogeneous devices, context awareness, and device discovery, manage resources constrained embedded devices and scalability, manage large data volumes and privacy, and cope with semantic data and so forth.
Several studies have been published that have explored ways to design middleware for the IoT.In [15], Römer et al. summarized the functions and the nature of the middleware for wireless sensor network.In [16], Wang et al. have reviewed middleware for WSN and a detailed analysis of the approaches and techniques offered by the middleware to meet the requirements of the WSN has been presented.It also discusses generic components of the middleware and reference model of WSN based middleware.In [17], middleware has been surveyed from adaptability perspective in which Sadjadi and McKinley presents taxonomy for adaptive middleware and their application domains and provides details for one of each middleware category.The context-awareness middleware also has been studied.The survey in [18] is based on the architectural aspects and provides taxonomy of the features of the generic context-aware middleware.A survey reported in [19] evaluates several context-aware architectures based on some relevant criteria from ubiquitous or pervasive computing perspective.In [20], Bandyopadhyay et al. provides a survey of middleware system for the IoT.

The Architecture of the IoT
Heterogeneous information sources are the most important characters of the IoT.In order to achieve interconnection, intercommunication, and interoperability between heterogeneous information, the future architecture of the IoT needs to be open, layered, and scalable [21].The IoT architecture is generally divided into four layers that are perception layer, network layer, middleware layer, and application layer (shown in Figure 2).A major part of perception layer is wireless sensor nodes.A generic sensor node aims to take measurements of physical environment [22].It may be equipped with a variety of devices which can measure various physical attributes such as light, temperature, humidity, barometric pressure, acceleration, acoustics, magnetic field, and carbon dioxide concentration.In addition to the sensors, perception layer also consists of a large amount of information generated equipment, including RFID and positioning systems, and a variety of smart devices, such as smart phones, PDAs, multimedia players, netbooks, and laptops.It can be seen that the diversity of generated information is an emerging and important feature of the IoT.
IPv6 addresses the major defect of the limit on the number of terminal pieces of equipment to access Internet.The main idea of network layer is leveraging the existing Internet as the main dissemination of information by virtue of a variety of wireless accesses.Every wireless access method has its own characteristics and application scenarios.Wi-Fi and other wireless broadband technologies possess broader coverage, faster transmission, reliable high-speed, and lower cost and circumvent the obstacles.The low-speed wireless networks, such as ZigBee, Bluetooth, and infrared low-speed network protocols, are adapted to resource constrained node, which has the characteristics of the low communication radius, low computing power, and low energy consumption.Mobile communication network will become an effective platform for "a comprehensive, anytime, anywhere." Middleware layer tackles the information heterogeneity issues by intelligent interfaces.The functional solutions of middleware layer mainly consist of data storage (database and mass storage technology), heterogeneous data retrieval (search engine), data mining, data security, and privacy protection.
In application layer, traditional Internet has gone through data-centric to people-centric conversion; typical online applications include file transfer, e-mail, the World Wide Web, e-commerce, online gaming, and social networking.In the application of IoT, things or physical world are considered as the center, typical IoT applications covering item tracking, context-aware, intelligent logistics, intelligent transportation, smart grid, and so forth.The IoT application is currently in a period of rapid growth.

The Implementation of Middleware Based on SOA for IoT
The IoT research mainly pays more attention to network layer recently, such as the IoT network coding, identification and anticollision technology.However, data processing infrastructure continues to be overwhelmed by the mass of heterogeneous information from the number of terminals in the IoT.The flexible architecture that is based on SOA for heterogeneous information fusion in the IoT offers the opportunity to employ mitigation measures.It is critical for the ultimate success of the IoT application for better utilization of the integration of a wide range of services from multiple sources and provides more personalized service to businesses or individuals [9].
4.1.Service-Oriented Application Architecture Description.SOA (service-oriented architecture) is a component model and links different functional units (called services) of the application through well-defined interfaces and contracts between these services.Interface is defined by a neutral manner and it should be independent of implementation services, hardware platforms, operating systems, and programming languages.This allows the service to be built in a variety of such systems to interact in a uniform and general way [23].The service is the basis of the SOA; thereby, they can be applied directly and effectively depending on system and interaction of software agents.Typically, business operations running in an SOA comprise a number of different components, which are often in an event-driven or asynchronous fashion that reflects the underlying business process needs [24].In the context of the IoT, original and emerging resources are in the form of services and are opening on Internet.Consequently, the study of SOAbased fusion application technology is of great value [25].
SOA architecture consists of five main parts, depicted as below: (1) Consumer: acquires the information from producers' entities that provide services, such as mobile terminals and web clients.(2) Application: provides application interfaces or different degrees of loosely coupled services, such as mobile applications, web applications, and rich client.(3) Service: the implementation of the entities involved in a specific task, such as data center and enterprise information center.(4) Service Support: SOA specific application background support functions, such as security, management, and semantic analysis.(5) Producer: an entity to provide specific services or functions.

The IoT Middleware Design.
Inspired by the characteristics of data in the IoT, the design of middleware with the service-oriented architecture was employed in this paper, and integration services, compatible with various types of data and the agreement has been divided.Consequently, this paper presents the basic framework of SOA-based IoT applications as shown in Figure 3.In Figure 3, the three-layer structure of the original SOA is broken down into a five-layer system.Service providers (producers) use of various types of environmental sensing technology.Data processing platform is responsible for data processing, data filtering, and data integrity.It provides XML scheme for data unification and metadata consistency and standardization of heterogeneous data processing.Security platform is a security barrier between the service platform and data platform, which is responsible for the safety of the equipment and data.Service layer aims at providing a range of generic interfaces and agency services which are responsible for data parsing in order to coordinate different data formats and are also advantageous for distributed deployment of a variety of databases.The purpose of universal interface is to achieve compatible communication protocols, which are used by different types of users, to perform unified data exchanging with the upper consumers.
The key part of the service layer is to form a bridge between the data processing and the upper application.The service layer also faces different problems that are encountered in the IoT application such as network connection, resource-constrained nodes, and different application platform.Because the underlying device is extremely rich in the IoT, the SOA system to provide network services needs to consider the problem of transmission delay and resource scheduling and network services need to provide a variety of routing or delay tolerant network technology to deal with.SOA systems also need a balanced scheduling algorithm and balanced network resources.Different application platforms require more generic SOA system design patterns; we will first consider the standard between different devices and the upper users between different access platforms.
As it can be seen from Figure 3, the basic framework of SOA application is on the basis of the data stream generated by the perceive network from the physical world, which is with the basic physical properties of the world from the underlying environmental sensing.In SOA architecture, these vast amounts of real context-aware data form the basis of the entire application.
Since heterogeneous data processing is inevitably linked to the IoT middleware architecture based on SOA, a concrete  solution is proposed for the metadata integration of heterogeneous data which is as shown in Figure 4.This architecture is divided into three basic processes, which from top to bottom are the client application layer, the data integration layer, and the IoT heterogeneous data sources, as shown in Figure 4.
The client applications include users unified access interface for data manipulation, which can be a specific application or a web browser.
Data integration service layer [26] is the core of the architecture and also the key to heterogeneous data integration.In order to increase the intelligence and scalability of architecture and alleviate the burden on users, we design a structure that contains the upper and lower levels of service.Metadata format vary greatly since which are grounded in heterogeneous sensor sources [27].To circumvent this obstacle, we express various types of data into XML format and set up rules to make operations on the metadata.Consequently, we first converted the heterogeneous data in a unified XML format, on this basis, and then created the underlying data integration services layer.The upper layer services built on top of the lower layer services and the underlying services are developed in an XML document based on the underlying heterogeneous data sources.
Services of lower levels achieve four data access functions: add, modify, query, and delete and the upper service function extracts the same functionality from the underlying service to the same service according to the data then forms the integrated data service function.Application layer call corresponding upper services according to the operational requirements, and then underlying data manipulation is specified by the upper service based on data parameters from the client calls; thus, when the underlying heterogeneous data source changes, we simply update the underlying service and map to the upper applications rather than make any changes to upper layers.Data integration implementation process is completely transparent to the user, which is compatible and interoperable in different systems.

Evaluation.
In order to test the IoT middleware architecture based on SOA, we set up an indoor temperature monitoring system in practical environment.We deploy 30 sensor nodes in three rooms, to monitor the indoor temperatures.After collection of the sensor data, the data is delivered by a wireless multihop network from sensor nodes to a base station which is connected to a cluster.
In experiments, clusters include 4 common PCs that are 2-core 2.8 GHz desktop computer with 2 GB RAM and Ubuntu operating system for the runtime environment.Although they are generic computers, they satisfy the requirements.
In the paper, the sensor nodes are IRIS nodes.IRIS nodes are produced by Crossbow Technology Inc.These sensors are based on the Atmegal1281 microprocessing chip and a RF230 RF chip which are working at 2.4 GHz and supporting the IEEE 8.2.15.4 communication protocol.The nodes have three times radio range and twice the program memory of MICA Motes and outdoor line-of-sight tests have a range as great as 500 meters between nodes without amplification.The IRIS not only has a longer transmission distance but also has ultralow power consumption and a longer battery life.
In the test, equipment used is shown in Figure 5 and the portal of the IoT system for environment monitoring is shown in Figure 6.Some example of the collected sensory data is as shown in Table 1.The monitoring system continues evaluating for three months and collects about five million of the sensor data items.During the test period, we have supplemented and changed several types of the sensors without interrupting the system.When we add the new equipment, some new profiles will be added to the middleware framework while the system is still running.
We can draw some conclusions from the result of the experiment.
First, the SOA-based data processing middleware architecture represents better adaptation to the IoT multisensor and multistream application scenarios, which improve the heterogeneous data reusability and utilization value.
Second, the experiment result demonstrates the decoupling power of middleware which makes it easier to establish a unified heterogeneous information processing platform for a diversity of applications in the IoT.
Third, the distributed deployment of middleware brings better performance optimization and achieves better load balancing in the cluster.

Conclusion
This paper discusses the development of the concept of the IoT and gives a detailed description of the architecture of the IoT.Based on characteristics of the architecture and challenges of information fusion in the IoT, the paper designs a middleware platform based on SOA architecture for the   integration of multisource heterogeneous information.After that, we use the SOA data processing middleware to build an environmental monitoring system for validation verifying.
Through theoretical analysis and experimental verification, the SOA pattern-based processing middleware architecture design is better adapted to the IoT multisensor and multistream application scenarios, which improve the sensing data utilization value.The SOA data processing middleware has laid a solid foundation for data integration and interaction between different networking systems, simplifying the complexity of the system integration process and improving the reuse of components in the future.In order to achieve better interaction between the different large-scale IoT applications, the criteria with regard to unified data format are widely considered to be made for coordination of different systems in relevant international organizations, research institutions, and enterprises.

Figure 3 :
Figure 3: The IoT middleware architecture based on SOA.

Figure 4 :
Figure 4: The IoT data integration middleware based on SOA.

Figure 5 :
Figure 5: The equipment used in the demo.

Figure 6 :
Figure 6: The portal of the IoT system for environment monitoring.

Table 1 :
Some examples of the collected sensory data.