iot broker

25
1 © NEC Corporation 2016 IoT Broker 2016/12/13 Flavio Cirillo, Martin Bauer, Stefan Gessler, Gurkan Solmaz, Bin Cheng, Ernoe Kovacs NEC Laboratories Europe Ltd. Cloud Services and Smart Things <name>.<surname>@neclab.eu FIWARE Summit, Malaga, 2016

Upload: fiware

Post on 06-Jan-2017

71 views

Category:

Internet


0 download

TRANSCRIPT

Page 1: IoT Broker

1 © NEC Corporation 2016

IoT Broker

2016/12/13Flavio Cirillo, Martin Bauer, Stefan Gessler, Gurkan Solmaz, Bin Cheng, Ernoe Kovacs

NEC Laboratories Europe Ltd.Cloud Services and Smart Things<name>.<surname>@neclab.eu

• FIWARE Summit, Malaga, 2016

Page 2: IoT Broker

2 © NEC Corporation 2016

Table of Contents

• Introduction• What does IoT Broker do?

• Advanced Features:• IoT Knowledge Server• IoT Broker Federation• IoT Broker Scalability

• Real Scenarios:• Smart City Magnifier• FogFlow: Edge Processing• Hyper Connected Cloud Service

Page 3: IoT Broker

3 © NEC Corporation 20163

The FIWARE Enablers for IoT

Page 4: IoT Broker

4 © NEC Corporation 2016

What does the IoT Broker do?

FIWARE GE:IoT Broker

Thing Abstraction: enable applications to interact with things instead of sensors

Thing-Level Interaction: Organizing information flows:

- executing information queries on behalf of applications

- discover the resources providing the requested information

- collecting & aggregating the received information – query and subscribe/notify abstractions

apps

Devices Gateways other sources

Page 5: IoT Broker

5 © NEC Corporation 2016

IoT Broker decouples applications from underlying IoT device installations

paradigm adopted: Subscribe/Notify Context data fetched directly from reporitory No need of a centralized repository, but can be added “Plug&Play” Optimized communications with underlying device installations

Initialized only when requested from the application Bandwidth communication reduced Scalability ensured in a scenario of billion of devices

Assemble lower-level device information (device-centric access) into higher-level Thing information (information-centric access)

Naming: From Devices (e.g. sensorId) to Things (e.g. Trafalgar Square). Type & Context: Close the gap between information-centric applications and

device-centric IoT installations Discovery & Resolution: IoT applications are agnostic of the device

installations Advanced Features:

Association Entity Composition

Page 6: IoT Broker

6 © NEC Corporation 2015 NEC Group Internal Use Only6 © NEC Corporation 2016

Emerging IoT Protocol Stack

IoT Development System• SDK• OS Integration• IoT Hardware

IoT Integration Layer• IoT Resources: Black Box

Container• REST-based Access

OMA NGSI(IoT Broker)

IoT Entities• Contextualized Information• Content-based Queries• Pub / Sub

Knowledge-baseSemantic Processing Agents

Data Integration• across many systems• Semantic Representation• Semantic Mediation

New Standardization: ETSI ISG on Contextualized Information Models

Page 7: IoT Broker

7 © NEC Corporation 2016

Advanced Feature:

IoT Knowledge Server Add semantic information into NGSI messages Enhance NGSI messages with semantic reasoning

IoT Broker Federation Separate IoT domains Improve IoT system integration

IoT Broker Scalability Enhance performances in envisioned scenario of millions of devices in

each domain

Page 8: IoT Broker

8 © NEC Corporation 2016

IoT Knowledge Server

Page 9: IoT Broker

9 © NEC Corporation 2016

IoT Knowledge Server: Overview IoT Knowledge Server: A standalone component created for serving

semantic information

Purpose: serving IoT Broker with triple-store datasets of semantic ontologies (e.g., NGSI/SmartSantander ontology)

Record and Explore Information Structure contained in the real-world data

“get sub types of an entity type”

Interfaces: REST API and Subscribe/Notify in JSON format

IoT Knowledge Server is composed of two components (web servers) and two databases along with the servers

Page 10: IoT Broker

10 © NEC Corporation 2016

Functionalities Pre-Defined Queries

HTTP requests for getSubTypes, getSuperTypes, getAttributes, getAllSubTypes, getAllSuperTypes

Add new queries New queries with one or zero variables (e.g. Entity Type) can be added to a file

and we can start using as a new functionality (other than the 5 above)

Register new queries Adding new queries by HTTP request  on the fly (without restarting the server)

Forward SPARQL queries To provide single point of contact even for direct SPARQL queries along with the

high level ones (getSubTypes)

Subscribe functionality Subscribing to queries and regular (fixed time) updates on change to the

subscribers by the IoTKnowledgeServer.

Caching mechanism Caching mechanisms for fast respond (without asking SPARQL server)   Both for Queries and for Subscriptions

Page 11: IoT Broker

11 © NEC Corporation 2016

An example query

ApacheJenaFuseki

RDF Triple Store

REST

JSON

JDBC

IoT BrokerJSON

Ontology manager

REST

getSubTypes of Sensor

“getSubTypes_Sensor”

2

Get SPARQLQuery for getSubTypes

SELECT ?type WHERE {?type rdfs:subClassOf ngsi:<???>}

SELECT ?type WHERE {?type rdfs:subClassOf ngsi:Sensor}

NULL

3

1

4

5

6

7 {TempSensor, NoiseSensor, LightSensor}

8

{TempSensor, NoiseSensor, LightSensor}

<K,V>

REST

9

<“getSubTypes_Sensor”, {TempSensor, NoiseSensor, LightSensor} >

IoT Knowledge Server

Page 12: IoT Broker

12 © NEC Corporation 2016

IoT Knowledge Server: ExampleApplicationApplicationApplications

IoT AgentsContextProviders

IoT Broker IoT DiscoveryAvailability request:Entity of type “sensor”

Legend:- NGSI-10 - NGSI-9- IoT Knowledge

Server APIData request:Entity of type “sensor”

Data Responses:Entity of type “sensor”, “TempSensor”, “NoiseSensor”,“LightSensor”

IoT Knowledge Server

getSubTypes of Sensor {TempSensor, NoiseSensor, LightSensor}

Data request:Entity of type “sensor”, “TempSensor”, “NoiseSensor”,“LightSensor”

Page 13: IoT Broker

13 © NEC Corporation 2016

IoT Broker Federation

Page 14: IoT Broker

14 © NEC Corporation 2016

IoT Broker Federation

Smart Cities are dominated by federated information from different agencies

An IoT platform is responsible for a single IoT domain Separate IoT data in different domains Full power on the produced data to the IoT domain administrator, e.g. for

privacy purpose

Selective communication to a specific domain Selected by IoT domain name Selected by entity name Selected by attribute type provided Selected by scope, e.g. geographic scope Mixture of the above.

Page 15: IoT Broker

15 © NEC Corporation 2016

Federation: hierarchical

Applications

NGSIagents

NG

SI

NG

SI NG

SI

NG

SI

IoT Platform (a)

IoT Broker

IoT Discovery

IoT Platform (b)

IoT Broker

IoT Discovery

NGSIagents

▌IoT Platform HierarchyTwo type of platform

• Subordinated IoT Platform: responsible for its IoT domain; subordinated to Platform

• Top IoT Platform: responsible of its own domain of NGSI devices; contact point for all subordinated domains

Two IoT domains manage their data in separate repositories

Common communication language based on standard NGSI protocol

Mechanism of Subscribe Notify for accessing the data

▌Feature: broadcastingTop IoT Platform dispatches

query/subscription to subordinated IoT Platform

▌Feature: selective communicationPossibility to query/subscribe only to a

specific subordinated IoT Platform

Page 16: IoT Broker

16 © NEC Corporation 2016

Federation: mash-upApplications

NGSIagents

NG

SI

NG

SI

NGSINGSI

agentsNGSI

NGSI

Applications

NG

SI

NGSIagents

NGSIApplications NGSI

IoT Platform (a)

IoT Broker

IoT Discovery

IoT

Plat

form

(c)IoT

Broker

IoT Platform (b)

IoT Broker

IoT Discovery

NGSI

▌ IoT Platform MeshEach platform is a peerEach peer is responsible of its own domainApplications requesting a peer will get data

coming from other peer transparently

▌ Feature: broadcasting Peer broadcast request to all known peer

▌ Feature: selective communication Possibility to query/subscribe only to a specific known

peer▌ Feature: loop detection

A loop detection feature avoid loop in the topology

Page 17: IoT Broker

17 © NEC Corporation 2016

IoT Broker Scalability

Page 18: IoT Broker

18 © NEC Corporation 2016

ScalabilityApplicationApplicationApplications

IoT AgentsContextProviders

IoT Broker

IoT Discovery

registration

availabilityrequests

Load

Bal

ance

r (e.

g. D

NS

)

Legend:- NGSI-10 - NGSI-9

IoT Broker

IoT Broker- Update

- Query- Subscription

Responses

- Query- Subscription

Page 19: IoT Broker

19 © NEC Corporation 2016

Scenarios

Page 20: IoT Broker

20 © NEC Corporation 2016

Scenario 1: Smart City Magnifier

Morphing Mediation Gateway

Annotator

Semantic repository

FIESTA-IoTOntology

SPARQL

NGSI

SantanderSpain

KETIKorea

Dashboard

Semantic data using Fiesta

Ontology

Semantic Mediation GW

Automatic DataContextualization

and Analytics

Smar

t City

Mag

nifie

rEu

rope

Semantic Mediation GW

Automatic DataContextualization

and Analytics

Smar

t City

Mag

nifie

rAs

ia

NGSI NGSI

Annotator

ParisFrance

GuildfordUK

Annotator

Annotator

IoT Broker IoT Discovery

IoTBroker

IoTDiscovery

IoTBroker

IoTDiscovery

Page 21: IoT Broker

21 © NEC Corporation 2016

Scenario 1: Smart City MagnifierContextualized data visualization

IoT DiscoveryIoT Broker

ContextualizedData Visualisation

2Data query specifying geographic scope, time window and abstraction level

13 dimensions of zooming:- Abstraction- Time - Geographic

3Data visualization

2bContext discovery

2c

Data request forwarded only to the European instance of the Smart City Magnifier because the data requested is geographically scoped in Santander (Spain)

IoTBroker

IoTDiscovery

Smart City Magnifier

EuropeIoT

BrokerIoT

DiscoverySmart City Magnifier

Asia

Page 22: IoT Broker

22 © NEC Corporation 2016

Scenario 2: Edge processing

Page 23: IoT Broker

23 © NEC Corporation 2016

Scenario 2: Architecture of FogFlow

RabbitMQ

Docker Registry

TopologyMaster

IoT Devices (part of them can be also workers)

Task DesignerBroker Discovery

workers

Edge Nodes

Cloud Nodes

Mediation Gateway

System OperatorService Developer

Dockerizedtask

ExternalNGSI applications

FogFlow

Page 24: IoT Broker

24 © NEC Corporation 2016

Scenario 3 (Wise-IoT): A Vision Architecture of Hyper-connected Cloud ServicesCrosscutting data reuse between hyper-connected cloud services

Smart skiing

E-Health

Emergency response

Smart cities

Smart Retail

Navigation

Wise-IoT Semantic Mediator

Mobility Data Sources

Mobile app

Santander RFIDs

Wi-Fi sniffers

Macro mobility

Micro mobility

Crowdsourced mobility

Proximity mobility

Edge(s)

IoTbroker(s)

cloud(s)

Wise-IoT data pub/sub (redirection) management

It is not a shared DB, and it is a data flow manager which can redirect info to different services.

Wearable sensors

Personal mobility

Cloud Services

Page 25: IoT Broker