• Aucun résultat trouvé

Sensor Observa,on Streams within Cloud-based IoT Pla:orms: Challenges and Direc,ons

N/A
N/A
Protected

Academic year: 2021

Partager "Sensor Observa,on Streams within Cloud-based IoT Pla:orms: Challenges and Direc,ons"

Copied!
22
0
0

Texte intégral

(1)

Sensor Observa,on Streams within Cloud-based

IoT Pla:orms: Challenges and Direc,ons

Antoine Auger

,

Ernesto Exposito, Emmanuel Lochin

ISAE-SUPAERO, Université de Toulouse, France

(2)

MoMvaMon

• 

Internet of Things (IoT) and data explosion

• 

Many “IoT plaTorms” for many use cases providing different

services and/or APIs

• 

“Black box approach” so far

Which requirements? Which so[ware soluMons? Why?

• 

Common challenges when building so[ware plaTorms, need

to explain:

–  Concepts, technical issues –  How to cope with them, good pracMces

(3)

MoMvaMon

• 

We focus on:

–  IoT pla:orms: ingest informaMon from Things, create value from data, services exposed to users or applicaMons –  Cloud-based: available on demand via the Internet, So[ware as a Service model (SaaS), other non-funcMonal requirements –  Sensor observa,on streams: physical-observed phenomena or virtual-occurred events

• 

ContribuMons of the paper:

–  Insights for researchers who are interested in IoT plaTorms capable of handling sensor observaMon streams –  Takeaways for developers

(4)

MoMvaMon

• 

“Lessons learned” coming from:

–  State of the Art –  Study of available tools/components for IoT plaTorms –  Acended conferences (in parMcular, see [Kamienski2016]) –  Own experience: development of an IntegraMon plaTorm for QoI Assessment as a Service (iQAS) [Auger2017]

• 

Disclaimer:

–  Not exhausMve! –  May contain subjecMve thoughts…

(5)

Agenda

1. 

ObservaMon-related challenges

What? ObservaMon streams, levels, quality

2.

ImplementaMon consideraMons

What solu5on? How? ObservaMon collecMon, processing and consumpMon

3.

Non-funcMonal requirements

With what features? AdaptaMon, scalability, availability

(6)

ObservaMon-related challenges

• 

We assume that an observaMon is

something

produced by a

sensor (either physical or virtual)

• 

IoT plaTorms are asked to create value from received

observaMons

–  Data-centric systems

• 

Heterogeneous observaMons:

–  Level –  Quality –  Sensing rate –  Coverage –  …

(7)

ObservaMon-related challenges

• 

Taxonomies to denote different observaMon levels

–  Useful to esMmate the level of complexity required to process and “understand” observaMons by final consumers Context annotation Semantic annotation

Analysis and processing

Wisdom Information Raw Data Knowledge An augmented version of the “DIKW ladder” of Sheth [Sheth2016]

Observa,on levels

(8)

ObservaMon-related challenges

Observa,on quality

• 

Several quality dimensions:

–  Quality of Service (QoS) –  Quality of InformaMon (QoI) [Bisdikian2013] –  Context, Quality of Context (QoC) –  Quality of Knowledge (QoK)

In short:

ü  All dimensions not always needed ü  Acributes to consider may vary according to use cases (delay, obs. life5me, accuracy, trust, ) ü  Recent works consider mainly QoS-QoI (e.g., FP7 CityPulse)

(9)

ObservaMon-related challenges

• 

OperaMons on streams ≠ databases

• 

ObservaMon streams

–  Unbounded –  Heterogeneous –  Real-Mme

• 

ReacMve Streams

–  hcp://www.reacMve-streams.org –  Asynchronous stream processing with non- blocking back pressure –  Java APIs

Unbounded observa,on streams

5 4 2 -1 9 8 8 4.5 0.5 ?? 5 4 9 8 8 Time Sliding window Incoming stream "Sliding" mean Filtering (obs > 3) 8

(10)

ImplementaMon consideraMons

• 

A jungle of IoT plaTorms

–  Open-source soluMons, projects: FP7 INSIGHT, FP7 OpenIoT, FP7 CityPulse, H2020 OrganiCity, –  Commercial or proprietary soluMons (SaaS): AWS IoT, IBM Watson IoT,

• 

Researchers may want to add new features:

–  By extending exisMng soluMons: requires a learning phase –  By developing new prototypes from scratch (preferred)

• 

Most popular data architectures:

–  Lambda Architecture hcp://lambda-architecture.net –  Kappa Architecture hcp://www.kappa-architecture.com

(11)

ImplementaMon consideraMons

Speed (real-time) layer

Batch (offline) layer Observation

ingestion Observation

sources Observation consumers

Distributed storage

Cloud-based IoT platform

Observation collection Observation processing Observation consumption Serving layer Unified Stream Processing layer Observation ingestion Observation

sources Observation consumers

Distributed storage Cloud-based IoT platform

Serving layer Job version n Job version n+1 Result n Result n+1 Kappa Architecture Lambda Architecture

(12)

ImplementaMon consideraMons

• 

Virtual Sensor Containers (VSCs)

–  For preliminary tests –  To assess plaTorm scalability –  APIs to modify sensor behavior on the fly

• 

Apache Nifi

–  hcps://nifi.apache.org –  Open source, web-based GUI –  Run in local/cluster mode –  Supports directed graphs of data rouMng, transformaMon, and system mediaMon logic Sensor Observations Virtual Sensor’s API

Observa,on collec,on

(13)

ImplementaMon consideraMons

• 

Event Stream Processing (ESP)

• 

Pick one framework according to your needs

–  Final choice may depends on many features [ESPcomparison]

Observa,on processing

ESP / CEP Applications Sensors File Systems Message logs Applications Databases File Systems Message logs

(14)

ImplementaMon consideraMons

Observa,on consump,on

• 

Message Brokers

–  “Shock absorbing” technology –  Compliant with ReacMve Streams iniMaMve

• 

Trend: Kapa for the IoT

–  Developed by LinkedIn, open sourced in 2011

• 

Benchmarks for

comparison but biases

• 

Real boclenecks: final

consumers

(15)

Non-funcMonal requirements

• 

FuncMonal requirements depends mainly on use cases

• 

Some non-funcMonal (NF) requirements are recurrent

regarding Cloud-based IoT plaTorms

• 

Among them, some NF requirements may be fulfill by relying

on the Cloud CompuMng paradigm

(16)

Non-funcMonal requirements

• 

Autonomic CompuMng [Kephart2003]

–  IBM MAPE-K control loop •  Monitor •  Analyze •  Plan •  Execute

• 

IoT plaTorms act as mediators

–  Sensor capabiliMes –  Consumer needs –  Service Level Agreements (SLAs)

• 

AdaptaMon is needed

Pla:orm adapta,on

Autonomic manager Managed element Managed element touchpoint

Sensors Effectors

Monitor Execute

Plan Analyze

Knowledge

(17)

Non-funcMonal requirements

• 

VerMcal scalability

–  Allocate more resources –  VM migraMon

• 

Horizontal scalability

–  Load balancing –  Cluster

• 

Scalability ≠ elasMcity

–  Scalability = add resources on-demand –  ElasMcity = add or remove resources on-demand

Pla:orm scalability

(18)

Non-funcMonal requirements

• 

CAP theorem [Brewer2000] proposed by Eric Brewer

–  “You can only have 2 of 3 features among”: •  Consistency •  Availability •  Tolerance to network ParMMons

• 

CAP theorem has evolved [Brewer2012]:

–  Network parMMons can be handled –  Tradeoff instead of exclusive choice (latency consideraMons)

• 

IoT plaTorms raise new issues:

–  PlaTorm availability may depend on the Cloud Provider (SLA) –  Sensors availability

Pla:orm availability

(19)

Other challenges

Many other challenges such as:

–  General architecture for the IoT [FP7 IoT-A] –  Interoperability [FP7 Fiesta-IoT] [FP7 OpenIoT] –  ObservaMon collecMon (e.g., CoAP protocol) –  Development tools to create IoT applicaMons or services –  Specific challenges for Smart City plaTorms (many stakeholders) –  “Big Data” challenges: Volume, Value, Velocity, Variety, Veracity and more

=> Not covered in this paper

(20)

Conclusions and perspecMves

• 

IoT data explosion

• 

A jungle of IoT plaTorms but:

–  Complex to add new features to them, requires a learning phase –  SaaS = “Black box approach” –  Need to sensiMze researchers and developers about concepts, issues and good pracMces

• 

In this paper, we focus on sensor observaMon streams within

Cloud-based IoT plaTorms

–  ObservaMon-related challenges –  ImplementaMon consideraMons –  NF requirements and benefits of using Cloud CompuMng

(21)

References

[Kamienski2016] Carlos Alberto Kamienski. Development of IoT-based ApplicaMons for Smart CiMes. Tutorial given at IEEE WF-IoT 2016 in Reston (USA). Available at: hcps://www.researchgate.net/publicaMon/311607654_Development_of_IoT-based_ApplicaMons_for_Smart_CiMes [ESPcomparison] Available at: hcps://www.madewithtea.com/images/streaming.png [Bisdikian2013] C. Bisdikian, L. M. Kaplan, and M. B. Srivastava, “On the Quality and Value of InformaMon in Sensor Networks,” ACM Trans. Sen. Netw., vol. 9, no. 4, pp. 48:1–48:26, 2013. [Sheth2016] A. Sheth, “Internet of Things to Smart IoT Through SemanMc, CogniMve, and Perceptual CompuMng,” IEEE Intelligent Systems, vol. 31, no. 2, pp.108–112, Mar. 2016. [Auger2017] Auger, A., Exposito, E., & Lochin, E. (2017). iQAS: An IntegraMon PlaTorm for QoI Assessment as a Service for Smart CiMes. IEEE World Forum on Internet of Things 2016. [Kephart2003] J. O. Kephart and D. M. Chess, “The vision of autonomic compuMng,” Computer, vol. 36, no. 1, pp. 41–50, 2003. [Brewer2000] Brewer, E. A. (2000, July). Towards robust distributed systems. PODC (Vol. 7). [Brewer2012] Brewer, E. (2012). CAP twelve years later: How the" rules" have changed. Computer, 45(2), 23-29.

(22)

Antoine Auger

antoine.auger@isae.fr

#ICIN2017

Sensor Observa,on Streams within Cloud-based

IoT Pla:orms: Challenges and Direc,ons

This research was supported in part by the French Ministry of Defense through a financial support of the DirecMon

Références

Documents relatifs

data on all four black colleges; the 1 989 cohort only includes Morehouse and Xavier.'' The final data set consists of black students from 34 colleges and universities including

Chapter 4 PrivBlockchain: Blockchain-based IoT data privacy-preserving framework 87 4. 2 Background and Related Work. 4 PrivBlockchain: IoT data privacy-preserving framework.

In particular, I explore the required common modeling foundations for seamlessly combining the different types of models, and the development of complex digital twins to

SemIoTics is driven by a knowledge base capturing knowledge about the devices of the system represented according to our core-domain IoT ontology, and about the environment shared

We have proposed an algorithm to the controller placement problem in this SD-IoT architecture aiming at satisfy- ing the delay constraints between IoT devices and the controllers.

b) Scalability: As daily objects become connected to a global networked infrastructure, scalability issue arises at different levels, including: (i) identifying, addressing and

IoT-Hub collects, preprocesses, and stores in real-time time-series data from sev- eral distributed locations and sensors types, and makes them available to domain scientists

Mining Internet of Things (IoT) Big Data streams is a challenging task, that needs new tools to per- form the most common machine learning algo- rithms such as