37
© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Jan Metzner Solutions Architect Mobile/IoT EMEA, Amazon Web Services

Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

Embed Size (px)

Citation preview

Page 1: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Jan Metzner Solutions Architect Mobile/IoT EMEA, Amazon Web Services

Page 2: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

Welche Themen werden wir in diesem Webinar behandeln?

•  Sicheres Verbinden von Maschinen, Sensoren und Aktoren mit der Cloud und Kommunikation aus der Cloud

•  Wie stimmen sich Netze und Komponenten miteinander ab?

•  Wie können Komponenten die Cloud benutzen selbst wenn diese nicht ständig online sind?

Page 3: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

Internet of Things journey

IncreasingReach

IncreasingValue

Op2mizingPerformance

Autonomous functionality

Page 4: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

AWS customers are connecting physical things to the cloud in every industry imaginable.

Healthcare and Life Sciences Municipal Infrastructure Smart Home Retail

Manufacturing, Logistics & Supply Chain

Agriculture Education Automotive

Page 5: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

Two Area of focus for IoT

Connecting Devices To The Cloud Big Data and Applications

Page 6: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

•  Easilyandsecurelyconnectdevicesandcloudapplica2onstooneanother

•  Easilymanagerela2onshipsanddatabetweendevices

•  Letdevicesactevenwithoutconnec2vityandusethecloudopportunis2cally

Two Area of focus for IoT

Connecting Devices To The Cloud Big Data and Applications

Page 7: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

•  Easilyandsecurelyconnectdevicesandcloudapplica2onstooneanother

•  Easilymanagerela2onshipsanddatabetweendevices

•  Letdevicesactevenwithoutconnec2vityandusethecloudopportunis2cally

Two Area of focus for IoT

•  Ingest,processandanalyzemassiveamountsofdatarapidlyandeconomically.

•  U2lizemachinelearningtoletdevicesgetsmarterover2me

•  Extendtheonboardcapabili2esofphysicalproductswithcloudresources

Connecting Devices To The Cloud Big Data and Applications

Page 8: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

AWS IoT is a fully managed cloud platform that lets connected devices easily and securely interact with cloud applications and other devices.

Extract and filter data from your devices and take action with

custom rules

Securely connect and manage any physical device across

multiple networks and protocols

Create web and mobile applications that interact with devices reliably at any time

Device SDK Device Security and Policy Management Device Gateway Registry Rules Engine Shadow

Page 9: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

Increase the Value of a Product Over Time with Data

Telemetry and Usage Data

Data Filtering and Routing Rules

Ordered Stream to Amazon Kinesis Firehose

Storage and Offline Analysis

Online Monitoring

Customization, New Capabilities

Page 10: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

Building Blocks for Innovation in IoT

Page 11: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

DEVICE SDK Set of client libraries to

connect, authenticate and exchange messages

DEVICE GATEWAY Communicate with devices via

MQTT and HTTP

AUTHENTICATION Secure with mutual

authentication and encryption

RULES ENGINE Transform messages based on rules and

route to AWS Services

AWS Services - - - - -

3P Services

SHADOW Persistent thing state

during intermittent connections

APPLICATIONS

AWS IoT API

REGISTRY Identity and Management of

your things

AWS IoT: How it Works

Page 12: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

AWS IoT Security: Authentication and Authorization

AUTHENTICATION Secure with mutual

authentication and encryption

AUTHENTICATION AUTHORIZATION

Secure with mutual authentication and encryption

Page 13: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

Security and Authentication/ Authorization

Secure Communications with Things - Single API call to CreateKeysAndCertificate() - Client Generated CreateCertificateFromCSR(CSR) Fine-grained Authorization for:

Thing Management Pub/Sub Data Access AWS Service Access

AUTHENTICATION AUTHORIZATION

Secure with mutual authentication and encryption

Page 14: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

One Service, Two Protocols

MQTT + Mutual Auth TLS AWS Auth + HTTPS

Server Auth TLS + Cert TLS + Cert

Client Auth TLS + Cert AWS API Keys

Confidentiality TLS TLS

Protocol MQTT HTTP

Identification AWS ARNs AWS ARNs

Authorization AWS Policy AWS Policy

NDA

Page 15: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

Demo connect to AWS IoT

Page 16: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

AWS IoT Rules Engine

RULES ENGINE Transform messages based on rules and

route to AWS Services

Page 17: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

AWS IoT Rules Engine

Complex Evaluations Respond to the fleet, not just a single unit. Dozens of functions() available Multiple / Simultaneous Actions Sometimes a situation requires you to take many actions

Simple & Familiar Syntax -  SQL Statement to define topic filter -  Optional WHERE clause -  Advanced JSON support

SELECT * FROM ‘things/thing-2/color’ WHERE color = ‘red’!

Page 18: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

AWS IoT Rules Engine Actions

RULES ENGINE Transform messages based on rules and

route to AWS Services

AWS Services - - - - -

3P Services

AWS Services - - - - -

3P Services

Page 19: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

1. AWS Services (Direct Integration)

Rules Engine

Actions

AWS IoT Rules Engine

Lambda SNS SQS

S3 Kinesis DDB RDS

Redshift

Glacier

EC2

3. External Endpoints (via Lambda and SNS)

2. Rest of AWS (via Kinesis, Lambda, S3, and more)

Page 20: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

AWS IoT Rules Engine & Amazon SNS

Push Notifications Apple APNS Endpoint, Google GCM Endpoint, Amazon ADM Endpoint, Windows WNS Amazon SNS -> HTTP Endpoint (Or SMS or Email) Call HTTP based 3rd party endpoints through SNS with subscription and retry support

SNS

2

Page 21: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

AWS IoT Rules Engine & Stream Data

N:1 Inbound Streams of Sensor Data (Signal to Noise Reduction) Rules Engine filters, transforms sensor data then sends aggregate to Amazon Kinesis Kinesis Streams to Enterprise Applications Simultaneously stream processed data to databases, applications, other AWS Services

Ordered Stream

Page 22: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

AWS IoT Rules Engine & Stream to Store

Ordered Stream

Amazon Kinesis Firehose

Amazon S3 Storage

N:1 Inbound Streams of Sensor Data (Signal to Noise Reduction) Rules Engine filters, transforms sensor data then sends aggregate to Amazon Kinesis Firehose Kinesis Streams to Amazon S3 as flat Files or directly to Amazon Redshift

Page 23: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

AWS IoT Rules Engine & Stream to Store

N:1 Inbound Streams of Sensor Data (Signal to Noise Reduction) Rules Engine filters, transforms sensor data then sends aggregate to Amazon Kinesis Firehose Kinesis Streams to Amazon S3 as flat Files or directly to Amazon Redshift

Ordered Stream

Amazon Kinesis Firehose

Amazon Redshift

Page 24: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

AWS IoT Rules Engine for Machine Learning

Anomaly Detection Amazon Machine Learning can feed predictive evaluation criteria to the Rules Engine Continuous Improvement around Predication Continuously look for outliers and re-calibrate the Machine Learning models

Amazon Lambda

Amazon Machine Learning

prediction

Page 25: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

Demo Integrate additional Services

Page 26: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

AWS IoT Thing Shadow

THING SHADOW Persistent thing state

during intermittent connections

SHADOW Persistent thing state

during intermittent connections

APPLICATIONS

Page 27: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

AWS IoT Thing Shadow

Shadow

Thing

Report its current state to one or multiple shadows Retrieve its desired state from shadow

Mobile App

Set the desired state of a device Get the last reported state of the device Delete the shadow

Shadow

Shadow reports delta, desired and reported states along with metadata and version

Page 28: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

AWS IoT Shadow Flow

Shadow

Device SDK

1. Device Publishes Current State

2. Persist JSON Data Store

3. App requests device’s current state

4. App requests change the state 5. Device Shadow sync’s updated state

6. Device Publishes Current State 7. Device Shadow confirms state change

AWS IoT

Page 29: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

AWS IoT Registry

THING REGISTRY Identity and Management of

your things

REGISTRY Identity and Management of

your things

Page 30: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

AWS IoT Registry

Cloud alter-ego of a physical device. Persists metadata about the device.

•  key: value •  Firmware version •  Serial Numbers

•  Support and Maintenance •  Reference Manual URL •  Part # reference

•  Reference to external support system

Page 31: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

AWS IoT

DEVICE SDK Set of client libraries to

connect, authenticate and exchange messages

MESSAGE BROKER Communicate with devices via

MQTT and HTTP

AUTHENTICATION AUTHORIZATION

Secure with mutual authentication and encryption

RULES ENGINE Transform messages based on rules and

route to AWS Services

AWS Services - - - - -

3P Services

SHADOW Persistent thing state

during intermittent connections

APPLICATIONS

AWS IoT API

REGISTRY Identity and Management of

your things

Page 32: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

Simple Pay as you go and Predictable Pricing

•  Pay as you go. No minimum fees •  $5 per million messages published to, or delivered

in US East (N. Virginia), US West (Oregon), EU (Ireland) $8 in Asia Pacific (Tokyo)

AWS IoT

Free Tier 250,000 Messages Per Month Free for first 12 Months

Page 33: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

Pricing Example

100 sensors * 30 days * 24 hours * 60 minutes = 4.38 million messages

1 meter * 100 readings * 30 days * 24 hours * 60 minutes = 4.38 million messages

100 Sensors: Publishing 1x/minute

DynamoDB Table: Receives all Sensor Data

Metering Unit: Receives all Sensor Data

1 table * 100 readings * 30 days * 24 hours * 60 minutes = 4.38 million messages

4.38 million publishes from sensors: 4.38 * $5 = $21.90 4.38 million deliveries to a metering unit: 4.38 * $5 = $21.90

4.38 million deliveries to DynamoDB: $0

AWS IoT

Page 34: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

Get Started with AWS IoT Device SDK

C-SDK (Ideal for embedded

OS)

JS-SDK (Ideal for Embedded

Linux Platforms)

Arduino Library (Arduino Yun)

Mobile SDK (Android and iOS)

Page 35: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

Official IoT Starter Kits, Powered by AWS

Page 36: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

Official IoT Starter Kits on Variety of Platforms

Broadcom WICED BCM4343W On Threadx/Netx

Marvell EZConnect MW302 On FreeRTOS

Renasas RX63N On Micrium OS

TI CC3200 On TI-RTOS

Microchip WCM PIC32 Platform

Intel Edison on Yocto Linux

Mediatek LinkOne on Linkit OS

Dragonboard 410c on Ubuntu

Seeeduino Arduino on openWRT

Beaglebone Green on Debian

Page 37: Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT Web Day

© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Thank You

Jan Metzner @janmetzner