59
©2014 GlobalLogic Inc. All Rights Reserved. Juan Caracoche [email protected] @jcaracoche

5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

Embed Size (px)

Citation preview

Page 1: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

©2014 GlobalLogic Inc. All Rights Reserved.

Juan Caracoche

[email protected]@jcaracoche

Page 2: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

2 ©2015 GlobalLogic Inc. All Rights Reserved.

IoT: What is it really and how does it work?

Page 3: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

3 ©2015 GlobalLogic Inc. All Rights Reserved.

Similar quote attributed in various forms to Nobel prize-winning physicists Albert Einstein and Richard Feynman

“If you can’t explain something to an intelligent twelve year old, you probably don’t understand it yourself.”

Page 4: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

4 ©2015 GlobalLogic Inc. All Rights Reserved.

Lego Mindstorm Robot courtesy of TM & © 2015 Marvel & Subs.

Page 5: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

5 ©2015 GlobalLogic Inc. All Rights Reserved.

+ “Brain”

+ Sensors

+ Actuators

Page 6: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

6 ©2015 GlobalLogic Inc. All Rights Reserved.

“Brain”

Cloud

Page 7: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

7 ©2015 GlobalLogic Inc. All Rights Reserved.

+ Sensors “Brain”

Cloud

Page 8: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

8 ©2015 GlobalLogic Inc. All Rights Reserved.

+ Sensors “Brain”

Cloud

+ Actuators

Page 9: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

9

IoT Architecture Paradigm

©2015 GlobalLogic Inc. All Rights Reserved.

Immediate Actions (Alerts, Actuators,

Notifications)

End User and Management Clients

Complex Actions (Workflow)

Resources Platform Applications

External Federated Data

Context

Historical Data

Deep Insights

Fast Decision Making

Observations and Requests

Connected Devices and Systems

Action Triggers

ActuatorsSensors

Sensors

Brain Actuators

Page 10: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

10

IoT Architecture Paradigm

©2015 GlobalLogic Inc. All Rights Reserved.

Immediate Actions (Alerts, Actuators,

Notifications)

End User and Management Clients

Observations and Requests

Sensors

External Federated Data

Connected Devices and Systems

Action Triggers

Complex Actions (Workflow)

Actuators

Resources Platform Applications

Context

Historical Data

Deep Insights

Fast Decision Making

Page 11: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

11

The Internet of Things

©2015 GlobalLogic Inc. All Rights Reserved.

A set of technologies that connects data from a variety of sensors with the ability to make contextually aware decisions and act on them in near real-time

Page 12: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

12

IoT Architecture Paradigm: Sensor Technologies

©2015 GlobalLogic Inc. All Rights Reserved.

ResourcesSensors

Sensors

• Alljoyn• MQTT • HomeNET (Apple) • Thread (Google) • EMIT (Panasonic) • Electric Imp • CCNx (PARC) • OIC / IIC (Intel)

Sensors

Page 13: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

13

Speed-layer Technologies: • Spark Streaming • Storm • Samza• IBM Streams• Esper• Sidhi CEP • AWS Kinesis (Cloud based)

IoT Architecture Paradigm: Analytics Technologies

©2015 GlobalLogic Inc. All Rights Reserved.

External Federated Data

Context

Historical Data

Deep Insights

Fast Decision Making

Brain

Batch-layer Technologies: • Hadoop Map-Reduce (Cloudera, Hortonworks,

MapR ) • HPCC• Spark• Hive• Spark SQL• Pig• Analytic Databases (MarkLogic, Vertica, Infobright)

Fast Decision Making Deep Insights

Page 14: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

14

• Impala• VoltDB• ElephantDB• SploutSQL• Hive on Spark• Hbase+Phoenix• Couchbase• MongoDB

IoT Architecture Paradigm: Analytics Technologies

©2015 GlobalLogic Inc. All Rights Reserved.

External Federated Data

Context

Historical Data

Deep Insights

Fast Decision Making

Brain

• Oracle Data Federation• Redhat Data Virtualization• Mule ESB + Custom code• EspressoLogic

View Layer

Data Federation

Page 15: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

15

IoT Architecture Paradigm: Applications Technologies

©2015 GlobalLogic Inc. All Rights Reserved.

Immediate Actions (Alerts, Actuators,

Notifications)

End User and Management Clients

Complex Actions (Workflow)

ApplicationsConnected Devices

and SystemsActuators

Actuators

Technologies: • MBaaS (Mobile Backend as a service• mPaaS / aPaaS systems• Workflow and Rules systems• Pub / Sub• Mobile app frameworks• JS / Browser apps• Sensors / “M2M” Technologies listed

Actuators and Applications

Page 16: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

16 InternetofThings

Architectural Challenges And Design Considerations

Page 17: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

17 CONFIDENTIAL

Architectural Challenges

InternetofThings

• Scalability

- Billions of devices and ZBs of data

• Interoperability

- Heterogeneous systems and distributed resources

• Extensibility

- New things and new opportunities

• Resiliency

- Network partition and system errors

• Performance

- Near real-time processing and high processing

• Security

- Privacy and Deceit

• Maintenance

- Resource and Platform

Page 18: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

18 CONFIDENTIAL

Design Considerations

InternetofThings

• Identity Management

- Identity of things and identity of people

• Context awareness

- Location and identity

• Data generation mode

- Event driven and time driven

• Resource capability

- Processing power and memory size

• Forward and backward capability

Page 19: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

19 CONFIDENTIAL

Reference Architecture and Platform

InternetofThings

External Federated Data

z

z z

M2M, Devices, and Intelligent Gateways

Fast Decision Making

Historical Information

Notifications

Deep Insights Complex Actions

Platform Functions

External Federated Data

End User and Management Clients

Page 20: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

©2015 GlobalLogic Inc. CONFIDENTIAL

Embedded systems in IoT

Page 21: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

CONFIDENTIAL21 Internet of Things

• Secure communication capabilities

• Interoperability means talking to each other

• Sensing/interacting embedded technology

IoT = network of physical objects

Page 22: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

22 InternetofThings

Real world interaction is provided by sensors and actuators

• Light, pressure, gyro, movement, temperature, etc. sensors

• MEMS, motors, valves, relays, etc.

• Machine vision, human interaction and other systems

Communication capabilities are provided by protocols

CoAP

Well-defined and secure interoperability means:

• AAA, provisioning and network management

• Inter-system capabilities negotiations and configuration

• Cloud/edge/fog optimal work distribution

• Security, security and also security

Page 23: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

23 InternetofThings

• SSL/TLS based security (certificates)

• Flexible transport plugins –AllJoyn or MQTT or REST or …

• Transport-independent initial provisioning mechanism

• Capabilities negotiation between all endpoints based on GUIDs

• “Edge” and “Fog” computing concepts support

Security Transport

AllJoyn MQTT REST …

Pro

visi

onin

g

Capabilities negotiation

IFTTT rules & computing

Data flow

Vision of embedded systems in IoT

Page 24: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

24 CONFIDENTIAL

Definitions

InternetofThings

• Sensor/Actuator- Pressure sensors, camera, stepper motor, etc.

• Controller-Collect, process and possibly store data,

implement some custom IFTTT or other logic-Can have a set of Sensors or Actuators

connected to it-Can talk to other Controllers or M2M Gateway

• M2M Gateway- Provides Internet access to one or some

set of Controllers- Can be smart enough to implement some

custom IFTTT or other logic

Page 25: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

25

Device Gateway PlatformController M2M Gateway

Requestcertificate signing

M2M transport connection

Sign GW certificate

with Private Key

Create private keyby serial

Createplatform certificate

Returnsigned certificateCreate private key

by serial

Request certificate signingSign CTL certificate

with Private Key

Return signed certificate

Controller-Gateway certificate exchange(Transport authentication mechanism)

Device registration process

Gateway and Controller are authorized by the Platform, secured connection is established

Prov

isio

ning

Page 26: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

26

Device Gateway PlatformController M2M Gateway

Authentication

Check certificate

authorize

data processing actions

Connection → announce DeviceInfo + certificate

Device Authorized, set ResourceID

getData events

setData eventsMessage loop

Announce capabilitiesUpdate Device Info

AA

A

Page 27: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

©2015 GlobalLogic Inc. CONFIDENTIAL

Platform Core

Page 28: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

28 CONFIDENTIAL

Reference Architecture and Platform

InternetofThings

External Federated Data

z

z z

M2M, Devices, and Intelligent Gateways

Fast Decision Making

Historical Information

Notifications

Deep Insights Complex Actions

Platform Functions

External Federated Data

End User and Management Clients

Page 29: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

29 CONFIDENTIAL

Platform Core | Cloud

InternetofThings

Heterogeneous Data

Large Volume

Near Real-Time Processing Security Notifications

Page 30: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

30

Heterogeneous Data Solutions

Internet of Things

• Transform any format of data to ONE format

• Apply basic rules

• Cache & Aggregate data

• Platform Gateways

Page 31: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

31

Large Volume Solutions

Internet of Things

• Fast Hundreds of MBs of RW per second, serialize/deserialize

• Scalable Elastically and transparently expanded without downtime

• Durable persisted and replicated to prevent data loss

• Distributed fault-tolerance guarantees

Page 32: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

32

Near Real-Time Processing

Internet of Things

• Low Latency persisted and replicated to prevent data loss

• Scale High throughput and scale-out by adding instances

• Dynamic Change the rules dynamically using API interface

• Complex detecting relationships between events

Page 33: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

33

Security Solutions

Internet of Things

• Privacy Multi tenancy and data sharing

• Security Policies apply security policies on the data before storing

• In Memory Process non-persistable data in memory

• Transport Secure data transfer to the DMZ

Page 34: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

©2015 GlobalLogic Inc. CONFIDENTIAL

IoT Analytics

Page 35: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

35 CONFIDENTIAL

Reference Architecture and Platform

InternetofThings

External Federated Data

z

z z

M2M, Devices, and Intelligent Gateways

Fast Decision Making

Historical Information

Notifications

Deep Insights Complex Actions

Platform Functions

External Federated Data

End User and Management Clients

Page 36: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

36 InternetofThings

The Internet of Things Analytics(IoTA) , the measurement and transformation into business intelligence of the Internet of Things

Data Paradigms

Volume application and transactional data

Velocity Machine VarietySocial Data

Page 37: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

37 CONFIDENTIAL

IoT Analytics Challenges

InternetofThings

• Data Integration– Aggregation and integration of the collected data streams in a manner that makes them suitable for

analysis.

– Key challenge in dealing with more diverse and disparate data sources before meaningful analysis is viable.

• Data Storage– Implementation and management of the data store for the analytics process.

– Key issue to address in this context is how to store time-series sensor data, which can increase dramatically in volume compared to e.g., transactional data readings

• Different components of IOT analytics

Page 38: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

38 CONFIDENTIAL

IoT Analytics Challenges (Cont’d)

InternetofThings

• Core Analytics– Processing of the data by an analytics engine and the subsequent delivery of insights.

• Data Presentation – Further presentation of the delivered analytical insights to the end-user.

– In IoT analytics, the geography of data is a particularly important presentation element, given that the location of physical things matters more to analysis than, say, the location of an ecommerce transaction.

• Different components of IOT analytics

Page 39: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

39 CONFIDENTIAL

Enabling IOT Analytics using Lambda Architecture

InternetofThings

Components of Lambda Architecture

new data

batch layer serving layer

speed layer

Query

Query

master data set

batch view

batch view

real time viewreal time view

Page 40: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

40

Technology Stack

InternetofThings

Component Technology Choices

Rationale

Batch View Generator (Batch Layer)

Hive on Spark , Impala

•Queries, especially those involving multiple reducer stages, runs faster.• Can anytime move to using only Hive by just a JDBC connection parameters change.• Easy of use than Map Reduce and other processing framework.• Support SQL by default.

Real Time View Generator (Speed Layer)

Volt DB , Spark Streaming ,Storm

•Processes data fast by keeping it in memory and runs on commodity hardware. •Data can be ingested directly from Kafka queues so would be on low latency as there is no intermediate layer between data ingestion.

Consolidate View Generator (Serving Layer)

Hbase + Phoenix , Couchbase

•Is easy to use and provides real time read and write.•Good for time series based evaluation.• Phoenix is used to provide SQL support over hbase

Analytics Engine(Statistical programming language)

R , Mahout •Gives wide variety of statistical and graphical algorithm.•It has linear and non linear modeling, time series analysis, classification, clustering etc.

Real time Machine Learning (Machine Learning Library)

SparkML •Distributed machine learning library.• Has support for common algorithms.

Data Ingestion Layer (Messaging System)

Kafka , RabbitMQ •High Throughput , data can be pulled at consumer's own pace.•Can replay any messages or set of messages given the necessary selection criteria.

Page 41: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

41

IOT Analytics Industry Trends

InternetofThings

Informatica Vibe Data Stream for Machine Data

ParStream IOT Analytic Framework

Source- http://www.informatica.com/in/products/big-data/vibe-data-stream/, https://www.parstream.com/

Page 42: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

42

IOT Analytics Industry Trends

InternetofThings

Source- http://voltdb.com/

Page 43: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

©2015 GlobalLogic Inc. CONFIDENTIAL

Applications in IoT

Page 44: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

44 CONFIDENTIAL

GlobalLogic Reference Architecture and Platform

InternetofThings

External Federated Data

z

z z

M2M, Devices, and Intelligent Gateways

Fast Decision Making

Historical Information

Notifications

Deep Insights Complex Actions

Platform Functions

External Federated Data

End User and Management Clients

Page 45: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

45 CONFIDENTIAL

“There’s an app for that”– Apple’s advertising tagline, circa 2011

With the brain layer disappearing and becoming part of the background, how do we build apps for IoT?

Page 46: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

46 CONFIDENTIAL

What are the Challenges?

InternetofThings

The Past The Present The Near Future The Future

ConceptfromJefferyS.Engelhardt CourtesySony CourtesyNokia/Issam TrabelsiCourtesybushlemon.deviantart.com

A rapidly changing ecosystem

Page 47: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

47 CONFIDENTIAL

What are the Challenges?

InternetofThings

Very high fluctuation in usage

Page 48: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

48 CONFIDENTIAL

What are the Challenges?

InternetofThings

Ability to handle all types of use cases

Control home appliances(Connected Home)

Gather meteorological data from sensors for weather forecasting

Communicate to an aero engine manufacturer that

this engine needs servicing

Page 49: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

49 CONFIDENTIAL

What are the Challenges?

InternetofThings

A completely new UX paradigm

How do we do UX for agriculture?

Will apps on TVs require a new UX?

How will appliances work in a vehicle?

Page 50: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

50

What are the Challenges? The Future is an Unknown

Internet of Things

2020

2010

2000

1990

1980

1970

1960

1950

1944

1 10 1000s 100s of 1000s 1 Million 100s of Millions 1 Billion 8 Billion 50 Billion

One

Ten

Thousands

Hundreds of Thousands

One Million

Hundreds of Millions

Billion

8 Billion

50 Billion

Page 51: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

51 CONFIDENTIAL

What are the Challenges?

InternetofThings

Being comfortable with legacy

Page 52: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

52 CONFIDENTIAL

What are the Challenges?

InternetofThings

Lack of a default standard

What will become the default standard is just a guess for now

Page 53: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

53 CONFIDENTIAL

Summary

InternetofThings

With challenges of this kind, it is best to build IoT applications on a platform

So: how do we do it, and what would an application platform look like?

Page 54: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

54 CONFIDENTIAL

Plenty of Platforms Already Exist

Internet of Things

Xively There are plenty more being developed . . .And all of them do ingestion and analyticsThingWorx

MnuboBug Labs

Page 55: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

55

App Platform Feature Set

Internet of Things

Challenges Solutions

• A rapidly changing ecosystem

• Extreme difference in consumption based on success

• Ability to handle all types of use cases

• A completely new UX paradigm

• The future is an unknown

• Being comfortable with legacy

• A lack of standardization

• Use of Auto-update like features (similar to Google’s Chrome

• Have a plug n play approach to building applications

• Use of cloud and cloud patterns to handle varying levels of consumption and to make this scalable and fault tolerant and highly available

• Have the ability to Integrate with all existing systems via an ESB

• Ability to incorporate new devices \ displays in a seamless manner by separating out the rendering out of the view from the data and the view

• Build once, Reuse everywhere, Continuously update

• Follow the Rapid Application Delivery (RAD model)

With the right Platform as your partner and with the right vendor, go to market would be reduced by months

Page 56: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

56 CONFIDENTIAL

Proposed Architecture of the Application Platform

Internet of Things

Views

App

Engi

ne S

DK

App

Ren

dere

r

Web

App

s (M

V*)

Nat

ive

App

Cus

tom

Ap

pDesktops /

Laptops / Tablets

Smart Phones

Devices & Gateways

Business Logic

App

Pla

tfor

m A

PI Worker VM

(Task A)

Worker VM

(Task B)

Worker VM

(Task N)

OrchestrationManager

Integration ESB

Integration layer(3rd Party Adapters)

Auto ScaleManager

Plat

form

Acc

ess

Laye

r

App DB

Platform Tier

DataServices

Streaming Service

Platform ConfigServices

AnalyticsServices

Platform Management

Page 57: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

57 CONFIDENTIAL

Proposed Architecture of the Application Platform

Internet of Things

Views

App

Engi

ne S

DK

App

Ren

dere

r

Web

App

s (M

V*)

Nat

ive

App

Cus

tom

Ap

pDesktops /

Laptops / Tablets

Smart Phones

Devices & Gateways

Business Logic

App

Pla

tfor

m A

PI Worker VM

(Task A)

Worker VM

(Task B)

Worker VM

(Task N)

OrchestrationManager

Integration ESB

Integration layer(3rd Party Adapters)

Auto ScaleManager

Plat

form

Acc

ess

Laye

r

App DB

Platform Tier

DataServices

Streaming Service

Platform ConfigServices

AnalyticsServices

Platform Management

Custombuilt onceforeachstack

Custombuilt onceforeachstack

Vert.x /Node.js/WebAPI

PolyglotDB

PolyglotProgramming

Custom/Drools/WWF

Mule/Neuron /Fuse/etc.

Vert.x /Node.js/WebAPI

Page 58: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

58 CONFIDENTIAL

Reference Architecture and Platform

InternetofThings

External Federated Data

z

z z

M2M, Devices, and Intelligent Gateways

Fast Decision Making

Historical Information

Notifications

Deep Insights Complex Actions

Platform Functions

External Federated Data

End User and Management Clients

Page 59: 5º MeetUP ARQconf 2016 - IoT: What is it really and how does it work?

©2014 GlobalLogic Inc. All Rights Reserved.