Post on 26-Jan-2017
© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Jan Metzner Solutions Architect Mobile/IoT EMEA, Amazon Web Services
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?
Internet of Things journey
IncreasingReach
IncreasingValue
Op2mizingPerformance
Autonomous functionality
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
Two Area of focus for IoT
Connecting Devices To The Cloud Big Data and Applications
• Easilyandsecurelyconnectdevicesandcloudapplica2onstooneanother
• Easilymanagerela2onshipsanddatabetweendevices
• Letdevicesactevenwithoutconnec2vityandusethecloudopportunis2cally
Two Area of focus for IoT
Connecting Devices To The Cloud Big Data and Applications
• Easilyandsecurelyconnectdevicesandcloudapplica2onstooneanother
• Easilymanagerela2onshipsanddatabetweendevices
• Letdevicesactevenwithoutconnec2vityandusethecloudopportunis2cally
Two Area of focus for IoT
• Ingest,processandanalyzemassiveamountsofdatarapidlyandeconomically.
• U2lizemachinelearningtoletdevicesgetsmarterover2me
• Extendtheonboardcapabili2esofphysicalproductswithcloudresources
Connecting Devices To The Cloud Big Data and Applications
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
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
Building Blocks for Innovation in IoT
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
AWS IoT Security: Authentication and Authorization
AUTHENTICATION Secure with mutual
authentication and encryption
AUTHENTICATION AUTHORIZATION
Secure with mutual authentication and encryption
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
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
Demo connect to AWS IoT
AWS IoT Rules Engine
RULES ENGINE Transform messages based on rules and
route to AWS Services
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’!
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
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)
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
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
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
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
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
Demo Integrate additional Services
AWS IoT Thing Shadow
THING SHADOW Persistent thing state
during intermittent connections
SHADOW Persistent thing state
during intermittent connections
APPLICATIONS
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
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
AWS IoT Registry
THING REGISTRY Identity and Management of
your things
REGISTRY Identity and Management of
your things
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
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
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
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
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)
Official IoT Starter Kits, Powered by AWS
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
© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank You
Jan Metzner @janmetzner