SlideShare a Scribd company logo
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
T H E D E V I C E S I D E 

O F T H E S T O R Y
Engineering the IoT at AWS
Richard Barry & James Gosling
1
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Introductions
Richard Barry
Founder of the FreeRTOS project
Principal [Embedded!] Engineer

Amazon Web Services
James Gosling
Java guy and “thing” hacker
Distinguished Engineer

Amazon Web Services
2
Cloud + Network + EmbeddedCloud + Network + Embedded
= IoT
3
How AWS thinks of IoT
Things Intelligence
Cloud
Connectivity
Amazon
Amazon
Amazon
4
Traditional services from AWS
Things Intelligence
Cloud
Connectivity
5
Devices outside the cloud
Things Intelligence
Cloud
Connectivity
6
The glue that holds them together
Things Intelligence
Cloud
Connectivity
7
The Landscape is Huge
With a dramatic range of requirements
8
Large
Hierarchy of time-critical coordinated Processors
Cars
Planes
Ships
Factories
…..
9
Real time ≠ real fast
•Predictable, Dependable
•No latency spikes
•e.g., HashMap considered harmful
•Throughput can be compromised
•All is negotiable
10
Medium
≥ : Linux or FreeRTOS
11
Tiny
If electrons are flowing,

there’s probably a processor in there somewhere
MCUs running FreeRTOS
12
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Notes
What’s the punch line
13
Weird
COURTESY OF LIQUID ROBOTICSCOURTESY OF ROGER DANNENBERG COURTESY OF MARC DONNER
14
COURTESY OF LIQUID ROBOTICSCOURTESY OF ROGER DANNENBERG COURTESY OF MARC DONNER
Weird
McBlare, the robotic

Bagpipes:
Timing is critical
15
COURTESY OF LIQUID ROBOTICSCOURTESY OF ROGER DANNENBERG COURTESY OF MARC DONNER
Ivan Sutherland’s
Mechanical Walker:

It’s a giant

mechanical

cockroach
Weird
16
Weird
COURTESY OF LIQUID ROBOTICSCOURTESY OF ROGER DANNENBERG COURTESY OF MARC DONNER
Liquid Robotics Waveglider

Processors everywhere
(3 in the rudder module alone)
17
What we think about at AWS
• Scale
• Security
• Reliability
• Evolution
18
Scale
It’s What We Do
For details, see any other talk at re:Invent
19
Scale: MQTT
• A common question “Why should I use MQTT? I’d rather
just open a socket and write!”
• Common encapsulation and routing framework
• Allows common messaging infrastructure
• DIY payload format
• AWS deals with secure scaling, so you can concentrate on
your device
20
Security
• A major pain point in early
IoT systems
• A major motivator

for AWS
• Cloud skills carry over

TLS, Certs, Auth, Crypto…
21
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
….
A consumer group is urging major
retailers to withdraw a number of
“connected” or “intelligent” toys
likely to be popular at Christmas,
after finding security failures that it
warns could put children’s safety at
risk.

….

With each of these toys, the
Bluetooth connection had not been
secured, meaning the researcher did
not need a password, pin or any
other authentication to gain access.
Little technical knowhow was
needed to hack into the toys to start
sharing messages with a child.
Typical Recent Press
22
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Simple awareness would stop many such problems
23
Reliability
Achieving reliability in a device is different
than in the cloud
• You can��t fail-over to another processor
• You can’t expect a god-like human to rescue it
• It’s in amongst regular humans, who do the
strangest things
• Code coverage is never good enough
24
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
RTOSfree
25
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
It’s not a thing, it’s an ecosystem
FreeRTOS
...
Driver
Driver
Driver
PKCS
...
Driver
Driver
Driver
Secure
Sockets
...
Driver
Driver
Driver
All Independently versioned
OTA
MQTT MQTT
Greengra
ss
Shado
w
TLS
26
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
FreeRTOS: 10 releases, billions of deployments
PKCS
...
Driver
Driver
Driver
Secure
Sockets
...
Driver
Driver
Driver
OTA
MQTT MQTT
Greengra
ss
Shado
w
TLS
FreeRTOS
...
Driver
Driver
Driver
27
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Some parts have chip-specific drivers
FreeRTOS
...
Driver
Driver
Driver
PKCS
...
Driver
Driver
Driver
Secure
Sockets
...
Driver
Driver
Driver
OTA
MQTT MQTT
Greengra
ss
Shado
w
TLS
28
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
This is the beginning of the journey, not the end
FreeRTOS
...
Driver
Driver
Driver
PKCS
...
Driver
Driver
Driver
Secure
Sockets
...
Driver
Driver
Driver
OTA
MQTT MQTT
Greengra
ss
Shado
w
TLS
?
?
? ?
??
29
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thanks!!
& Welcome to

the Adventure
30

More Related Content

Engineering the IoT at AWS - IOT402 - re:Invent 2017

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. T H E D E V I C E S I D E 
 O F T H E S T O R Y Engineering the IoT at AWS Richard Barry & James Gosling 1
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Introductions Richard Barry Founder of the FreeRTOS project Principal [Embedded!] Engineer
 Amazon Web Services James Gosling Java guy and “thing” hacker Distinguished Engineer
 Amazon Web Services 2
  • 3. Cloud + Network + EmbeddedCloud + Network + Embedded = IoT 3
  • 4. How AWS thinks of IoT Things Intelligence Cloud Connectivity Amazon Amazon Amazon 4
  • 5. Traditional services from AWS Things Intelligence Cloud Connectivity 5
  • 6. Devices outside the cloud Things Intelligence Cloud Connectivity 6
  • 7. The glue that holds them together Things Intelligence Cloud Connectivity 7
  • 8. The Landscape is Huge With a dramatic range of requirements 8
  • 9. Large Hierarchy of time-critical coordinated Processors Cars Planes Ships Factories ….. 9
  • 10. Real time ≠ real fast •Predictable, Dependable •No latency spikes •e.g., HashMap considered harmful •Throughput can be compromised •All is negotiable 10
  • 11. Medium ≥ : Linux or FreeRTOS 11
  • 12. Tiny If electrons are flowing,
 there’s probably a processor in there somewhere MCUs running FreeRTOS 12
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Notes What’s the punch line 13
  • 14. Weird COURTESY OF LIQUID ROBOTICSCOURTESY OF ROGER DANNENBERG COURTESY OF MARC DONNER 14
  • 15. COURTESY OF LIQUID ROBOTICSCOURTESY OF ROGER DANNENBERG COURTESY OF MARC DONNER Weird McBlare, the robotic
 Bagpipes: Timing is critical 15
  • 16. COURTESY OF LIQUID ROBOTICSCOURTESY OF ROGER DANNENBERG COURTESY OF MARC DONNER Ivan Sutherland’s Mechanical Walker:
 It’s a giant
 mechanical
 cockroach Weird 16
  • 17. Weird COURTESY OF LIQUID ROBOTICSCOURTESY OF ROGER DANNENBERG COURTESY OF MARC DONNER Liquid Robotics Waveglider
 Processors everywhere (3 in the rudder module alone) 17
  • 18. What we think about at AWS • Scale • Security • Reliability • Evolution 18
  • 19. Scale It’s What We Do For details, see any other talk at re:Invent 19
  • 20. Scale: MQTT • A common question “Why should I use MQTT? I’d rather just open a socket and write!” • Common encapsulation and routing framework • Allows common messaging infrastructure • DIY payload format • AWS deals with secure scaling, so you can concentrate on your device 20
  • 21. Security • A major pain point in early IoT systems • A major motivator
 for AWS • Cloud skills carry over
 TLS, Certs, Auth, Crypto… 21
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. …. A consumer group is urging major retailers to withdraw a number of “connected” or “intelligent” toys likely to be popular at Christmas, after finding security failures that it warns could put children’s safety at risk.
 ….
 With each of these toys, the Bluetooth connection had not been secured, meaning the researcher did not need a password, pin or any other authentication to gain access. Little technical knowhow was needed to hack into the toys to start sharing messages with a child. Typical Recent Press 22
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Simple awareness would stop many such problems 23
  • 24. Reliability Achieving reliability in a device is different than in the cloud • You can’t fail-over to another processor • You can’t expect a god-like human to rescue it • It’s in amongst regular humans, who do the strangest things • Code coverage is never good enough 24
  • 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. RTOSfree 25
  • 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. It’s not a thing, it’s an ecosystem FreeRTOS ... Driver Driver Driver PKCS ... Driver Driver Driver Secure Sockets ... Driver Driver Driver All Independently versioned OTA MQTT MQTT Greengra ss Shado w TLS 26
  • 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. FreeRTOS: 10 releases, billions of deployments PKCS ... Driver Driver Driver Secure Sockets ... Driver Driver Driver OTA MQTT MQTT Greengra ss Shado w TLS FreeRTOS ... Driver Driver Driver 27
  • 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Some parts have chip-specific drivers FreeRTOS ... Driver Driver Driver PKCS ... Driver Driver Driver Secure Sockets ... Driver Driver Driver OTA MQTT MQTT Greengra ss Shado w TLS 28
  • 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. This is the beginning of the journey, not the end FreeRTOS ... Driver Driver Driver PKCS ... Driver Driver Driver Secure Sockets ... Driver Driver Driver OTA MQTT MQTT Greengra ss Shado w TLS ? ? ? ? ?? 29
  • 30. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thanks!! & Welcome to
 the Adventure 30