on supporting contract-aware iot dataspace services

25
On Supporting Contract-aware IoT Dataspace Services Florin Bogdan Balint & Hong-Linh Truong Distributed Systems Group, TU Wien [email protected] http://rdsea.github.io Mobile Cloud 2017, 7-9 April, 2017 1

Upload: hong-linh-truong

Post on 28-Jan-2018

167 views

Category:

Education


1 download

TRANSCRIPT

Page 1: On Supporting Contract-aware IoT Dataspace Services

On Supporting Contract-aware IoT

Dataspace Services

Florin Bogdan Balint & Hong-Linh Truong

Distributed Systems Group, TU Wien

[email protected]

http://rdsea.github.io

Mobile Cloud 2017, 7-9 April, 2017 1

Page 2: On Supporting Contract-aware IoT Dataspace Services

Outline

Motivation

IoT data contract

Contract-aware IoT Framework

Contract monitoring

Prototype & Evaluation

Conclusions and Future Work

2Mobile Cloud 2017, 7-9 April, 2017

Page 3: On Supporting Contract-aware IoT Dataspace Services

Our view

Several providers provide IoT data produced by their IoT devices

non-personal data: environmental data in smart cities, e.g., air temperature, and carbon monoxide concentration

IoT device providers provide information about their devices.

Users are prepared to negotiate a data contract for data produced by Things.

3Mobile Cloud 2017, 7-9 April, 2017

Page 4: On Supporting Contract-aware IoT Dataspace Services

Convincing reasons?

IoT Network-as-a-Service enables multiple

stakeholders to bring their own IoT data

sources: devices and gateways

Mobile Cloud 2017, 7-9 April, 2017 4

Page 5: On Supporting Contract-aware IoT Dataspace Services

Convincing reason?

Many stakeholders only

want to buy the data Lobster farms in a seawater

bay

Farmers require IoT

data/infrastructure, edge

server and cloud resources

as a service

Other examples

Government provides

data about city, water,

etc.

Mobile Cloud 2017, 7-9 April, 2017 5

Figure source: from Tran-Vu Pham,

Bach Khoa Uni., VN

Page 6: On Supporting Contract-aware IoT Dataspace Services

Motivation

Several platforms facilitate data purchasing and selling but

No data contract

Limited data contract design: not possible to establish individual data contracts

Challenges

Technical problems: 1 Data Contract established for 1 to X Things, which produce data with 1 to Y ≤ X different structures, that is published at 1 to Z ≤ X different frequencies.

Governance problems: liability, warranty, etc.

Mobile Cloud 2017, 7-9 April, 2017 6

Page 7: On Supporting Contract-aware IoT Dataspace Services

Data contracts

Leveraged previous work on data contracts for data-as-a-service

Data Contracts: possible data contractual terms

Data Rights: Derivation, Collection, Reproduction, Commercial Usage

Quality of Data (QoD): Completeness, Conformity, Average Message Age, Average Message Currency

Quality of Service (QoS): Availability

Pricing: Price, Subscription Period

Purchasing Policy: Contract Termination, Shipping, Refund

Control and Relationship: Warranty, Indemnity, Liability, Jurisdiction

7Mobile Cloud 2017, 7-9 April, 2017

Hong Linh Truong, Marco Comerio, Flavio De Paoli, G. R. Gangadharan, Schahram Dustdar: Data contracts for

cloud-based data marketplaces. IJCSE 7(4): 280-295 (2012)

Page 8: On Supporting Contract-aware IoT Dataspace Services

IoT Data Space & Contract

Nowadays the space can be established by using

many IoT datahub (e.g. Google, Azure, etc.)

Mobile Cloud 2017, 7-9 April, 2017 8

Page 9: On Supporting Contract-aware IoT Dataspace Services

Interactions in contract-aware IoT

data

Mobile Cloud 2017, 7-9 April, 2017 9

The detail of establishment contract/contract negotiation is in the paper

Page 10: On Supporting Contract-aware IoT Dataspace Services

IoT data contract

Mobile Cloud 2017, 7-9 April, 2017 10

{

"_id":

"57f57a770a975a2cc7f52cc5",

"metaInfo": {

"contractId": "...",

"creationDate": "2016-10-06

00:11:03",

"active": false,

"party1Accepted": true,

"party2Accepted": true,

"revision": 4,

"party1Id": "...",

"party2Id": "..."

},

"dataRights": {

"derivation": true,

"collection": true,

"reproduction": false,

"commercialUsage": false

},

"pricingModel": {

"price": 3,

"currency": "EUR",

"transaction": false,

"numberOfTransactions": null,

"subscription": {

"startDate": "2016-10-07 00:00:00",

"endDate": "2016-10-08 00:00:00" }

},

"controlAndRelationship": {

"warranty": "None",

"indemnity": "None",

"liability": "None",

"jurisdiction": "AustriaVienna"

},

"purchasingPolicy": {

"contractTermination": "Automatic",

"shipping": "Automatic",

"refund": "None"

},

"thingIds": [{"thingId": "...",}, ...]

}

Page 11: On Supporting Contract-aware IoT Dataspace Services

IoT Data Contract Design

Mobile Cloud 2017, 7-9 April, 2017 11

Page 12: On Supporting Contract-aware IoT Dataspace Services

Extensible Contract-aware Framework Architecture

Mobile Cloud 2017, 7-9 April, 2017 12

Page 13: On Supporting Contract-aware IoT Dataspace Services

Data Contract Monitoring

Things publish data to message brokers / queues

Published messages have a custom property set, e.g., ThingID

Meta-Model of a Thing’s produced messages is known

Message consumption from queue

Message redirection to subscribers

Based on meta-model

QoD: Completeness, Conformity, Avg. Age, Avg. Currency

QoS: Availability

13Mobile Cloud 2017, 7-9 April, 2017

Page 14: On Supporting Contract-aware IoT Dataspace Services

Mobile Cloud 2017, 7-9 April, 2017 14

In the design:

using different

plug-ins for

QoD/QoS

evaluation

Page 15: On Supporting Contract-aware IoT Dataspace Services

Mobile Cloud 2017, 7-9 April, 2017 15

QoS check can

be based on

sampling

Page 16: On Supporting Contract-aware IoT Dataspace Services

Prototype

Open source in github

https://github.com/e0725439/idac

Contract management using MongoDB

IoT data hub and queue:

Apache ActiveMQ

Using MQTT protocol

Services are developed by using Apache Camel

Microservice principles

Mobile Cloud 2017, 7-9 April, 2017 16

Page 17: On Supporting Contract-aware IoT Dataspace Services

Illustrating Examples

Mobile Cloud 2017, 7-9 April, 2017 17

Page 18: On Supporting Contract-aware IoT Dataspace Services

Illustrating Examples

Mobile Cloud 2017, 7-9 April, 2017 18

Page 19: On Supporting Contract-aware IoT Dataspace Services

Illustrating Examples

Mobile Cloud 2017, 7-9 April, 2017 19

Page 20: On Supporting Contract-aware IoT Dataspace Services

Illustrating Examples

Mobile Cloud 2017, 7-9 April, 2017 20

Page 21: On Supporting Contract-aware IoT Dataspace Services

Performance Evaluation

Data

Temperature sensor: DS18B20 connected to Raspberry Pi

Emulated device: water quality sampling data from City of Austin (https://data.austintexas.gov/Environmental/Water-

Quality-Sampling-Data/5tye-7ray)

Emulated device: mobile device measurements obtained with OpenSignal

Systems – intentionally limited

Windows 10 / Kernel 64-bit, Intel(R) Core(TM) i3 M370 @ 2.00GHz, 2 Cores , 8 GB RAM

21Mobile Cloud 2017, 7-9 April, 2017

Page 22: On Supporting Contract-aware IoT Dataspace Services

Performance Evaluation

Mobile Cloud 2017, 7-9 April, 2017 22

Type of Thing Number of

Things

Messages

per Things

Broadcasting

frequency (ms)

Qos/qod

Computation

Time (ms)

Temperature

sensor

100 100 100 1.46

Temperature

sensor

100 100 1000 1.07

Water quality 100 100 100 1.38

Water quality 100 100 1000 1.01

Opensignal 100 100 100 1.77

Opensignal 100 100 1000 1.20

Direct test by calling components without queue

Page 23: On Supporting Contract-aware IoT Dataspace Services

Performance Evaluation

Mobile Cloud 2017, 7-9 April, 2017 23

High overhead if we want “exact” monitoring: Overhead (M) ranges from

approx. 32% to approx. 38%.

For each type of things:

4 tests were conducted.

Per case: 10 or 20

Things broadcasted data

to either one or two

message queues

In all cases each Thing

was bound to a different

data contract

all Things a minimum

number of 1000

messages were

consumed

Multiple tests with data through queues

Page 24: On Supporting Contract-aware IoT Dataspace Services

Conclusions and Future Work

Conclusions IoT data-as-a-service can be built based on multiple IoT

providers

IoT data contract is an important issue: business and

compliance purposes

We have introduced a scalable framework for IoT data contract

Future work Push further for implementation and experiments

Integrate with real-world data hub: Google/Azure/Amazon

Integrate with Thing Information Management Services

http://sincconcept.github.io/HINC/

Plug-ins/microservices for enforcing different contract terms

Secured deliverable data based on contracts

Mobile Cloud 2017, 7-9 April, 2017 24

Page 25: On Supporting Contract-aware IoT Dataspace Services

Thanks for your

attention!

Questions?

Hong-Linh Truong

Distributed Systems GroupTU Wien

dsg.tuwien.ac.at/staff/truong

Mobile Cloud 2017, 7-9 April, 2017 25