Core Tenets of Iot1
Core Tenets of Iot1
Core Tenets of Iot1
April 2016
April 2016
2016, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Notices
This document is provided for informational purposes only. It represents AWSs
current product offerings and practices as of the date of issue of this document,
which are subject to change without notice. Customers are responsible for
making their own independent assessment of the information in this document
and any use of AWSs products or services, each of which is provided as is
without warranty of any kind, whether express or implied. This document does
not create any warranties, representations, contractual commitments, conditions
or assurances from AWS, its affiliates, suppliers or licensors. The responsibilities
and liabilities of AWS to its customers are controlled by AWS agreements, and
this document is not part of, nor does it modify, any agreement between AWS
and its customers.
Page 2 of 15
April 2016
Contents
Abstract
Overview
Agility
Cost
Security
10
11
Page 3 of 15
12
13
Summary
14
Contributors
15
Further Reading
15
Notes
15
April 2016
Abstract
This paper outlines core tenets that should be considered when developing a
strategy for the Internet of Things (IoT). The paper helps customers understand
the benefits of Amazon Web Services (AWS) and how the AWS cloud platform
can be the critical component supporting the core tenets of an IoT solution. The
paper also provides an overview of AWS services that should be part of an overall
IoT strategy. This paper is intended for decision makers who are learning about
Internet of Things platforms.
Overview
One of the value propositions of an Internet of Things (IoT) strategy is the ability
to provide insight into context that was previously invisible to the business. But
before a business can develop a strategy for IoT, it needs a platform that meets
the foundational principles of an IoT solution.
AWS believes in some basic freedoms that are driving organizational and
economic benefits of the cloud into businesses. These freedoms are why more
than a million customers already use the AWS platform to support virtually any
cloud workload. These freedoms are also why the AWS platform is proving itself
as the primary catalyst to any Internet of Things strategy across commercial,
consumer, and industrial solutions.
AWS customers working across such a spectrum of solutions have identified core
tenets vital to the success of any IoT platform. These core tenets are agility, scale,
cost, and security; which have been shown as essential to the long-term success of
any IoT strategy.
This whitepaper defines these tenets as:
Page 4 of 15
Agility The freedom to quickly analyze, execute, and build business and
technical initiatives in an unfettered fashion
April 2016
By using the AWS platform, companies are able to build agile solutions that can
scale to meet exponential device growth, with an ability to manage cost, while
building on top of some of the most secure computing infrastructure in the world.
A company that selects a platform that has these freedoms and promotes these
core tenets will improve organizational focus on the differentiators of its business
and the strategic value of implementing solutions within the Internet of Things.
April 2016
Cost
Often the greatest value of an IoT solution is in the telemetric and contextual data
that is generated and sent from devices. Building on-premise infrastructure
requires upfront capital purchase of hardware; it can be a large, fixed expense
that does not directly correlate to the value of the telemetry that a device will
produce sometime in the future. To balance the need to receive telemetry today
with an uncertain value derived from telemetric data in the future, an IoT
strategy should leverage an elastic and scalable cloud platform. With the AWS
platform, a company pays only for the services it consumes without requiring a
long-term contract. By leveraging a flexible, consumption based pricing model,
the cost of an IoT solution and the related infrastructure can be directly accessed
alongside the business value delivered by ingesting, processing, storing, and
analyzing the telemetry received by that same IoT solution.
Security
The foundation of an IoT solution starts and ends with security. Since devices
may send large amounts of sensitive data and end users of IoT applications may
also have the ability to directly control a device, the security of things must be a
pervasive design requirement. IoT solutions should not just be designed with
security in mind, but with security controls permeating every layer of the
solution. Security is not a static formula; IoT applications must be able to
continuously model, monitor, and iterate on security best practices. In the
Internet of Things, the attack surface is different than traditional web
infrastructure. The pervasiveness of ubiquitous computing means that IoT
Page 6 of 15
April 2016
vulnerabilities could lead to exploits that result in the loss of life, for example
from a compromised control system for gasoline pipelines or power grids.
A competing dynamic for IoT security is the lifecycle of a physical device and the
constrained hardware for sensors, microcontrollers, actuators, and embedded
libraries. These constrained factors may limit the security capabilities each device
can perform. With these additional dynamics, IoT solutions must continuously
adapt their architecture, firmware, and software to stay ahead of the changing
security landscape. Although the constrained factors of devices can present
increased risks, hurdles and potential tradeoffs between security and cost,
building a secure IoT solution must be the primary objective for any organization.
AWS IoT
The Internet of Things cannot exist without things. Every IoT solution must first
establish connectivity in order to begin interacting with devices. AWS IoT is an
AWS managed service that addresses the challenges of connecting, managing,
and operating large fleets of devices for an application. The combination of
scalability of connectivity and security mechanisms for data transmission within
AWS IoT provides a foundation for IoT communication as part of an IoT solution.
Once data has been sent to AWS IoT, a solution is able to leverage an ecosystem
of AWS services spanning databases, mobile services, big data, analytics, machine
learning and more.
Page 7 of 15
April 2016
Device Gateway
A device gateway is responsible for maintaining the sessions and subscriptions
for all connected devices in an IoT solution. The AWS IoT Device Gateway
enables secure, bi-directional communication between connected devices and the
AWS platform over MQTT, WebSockets, and HTTP. Communication protocols
such as MQTT and HTTP enable a company to utilize industry standard protocols
instead of using a proprietary protocol that would limit future interoperability.
As a publish and subscribe protocol, MQTT inherently encourages scalable, faulttolerant communication patterns and fosters a wide range of communication
options among devices and the Device Gateway. These message patterns range
from communication between two devices to broadcast patterns where one
device can send a message to a large field of devices over a shared topic. In
addition, the MQTT protocol exposes different levels of Quality of Service (QoS)
to control the retransmission and delivery of messages as they are published to
subscribers. The combination of publish and subscribe with QoS not only opens
the possibilities for IoT solutions to control how devices interact in a solution, but
also drive more predictability in how messages are delivered, acknowledged, and
retried in the event of network or device failures.
Page 8 of 15
April 2016
April 2016
Page 10 of 15
April 2016
In order to design an IoT solution that adheres to the tenets of security and
agility, organizations must also update their connected devices after they have
been deployed into the environment. Firmware updates provide a company a
mechanism to add new features to a device and are a critical path for delivering
security patches during the lifetime of a device. To implement firmware updates
to connected devices, an IoT solution should first store the firmware in a globally
accessible service such as Amazon Simple Storage Service (Amazon S3) for
secure, durable, highly-scalable cloud storage. Then the IoT solution can
implement Amazon CloudFront, a global content delivery network (CDN) service,
to bring the the firmware stored in Amazon S3 to the lower latency points of
presence for connected devices. Finally, a customer can leverage the AWS IoT
Shadow to push a command to a device to request that it download the new
version of firmware from a pre-signed Amazon CloudFront URL that restricts
access to the firmware objects available through the CDN. Once the upgrade is
complete the device should acknowledge success by sending a message back into
the IoT solution. By orchestrating this small set of services for firmware updates
customers control their Device DevOps approach and can scale it in a way that
aligns with their overall IoT strategy.
In IoT, automation and DevOps procedures expand beyond the application
services that are deployed in the AWS platform and include the connected devices
that have been deployed as part of the overall IoT architecture. By designing a
system that can easily perform regular and global updates for new software
changes and firmware changes, organizations can iterate on ways to increase
value from their IoT solution and to continuously innovate as new market
opportunities arise.
Page 11 of 15
April 2016
tools that AWS and AWS partners provide to create a strong, logically isolated,
and secure IoT solution for a fleet of devices.
The first service that should be enabled for monitoring and visibility is AWS
CloudTrail. AWS CloudTrail is a web service that records AWS API calls for an
account and delivers log files to Amazon S3. After enabling AWS CloudTrail, a
solution should build security and governance processes that are based on the
real-time input from API calls made across an AWS account. AWS CloudTrail
provides an additional level of visibility and flexibility in creating and iterating on
operational openness in a system.
In addition to logging API calls, customers should enable Amazon CloudWatch
for all AWS services used in the system. Amazon CloudWatch allows applications
to monitor AWS metrics and create custom metrics generated by an application.
These metrics can then trigger alerts based off of those events. Along with
Amazon CloudWatch metrics, there are Amazon CloudWatch Logs, which store
additional logs from AWS services or customer applications, and can then trigger
events based off of those additional metrics. AWS services, such as AWS IoT,
directly integrate with Amazon CloudWatch Logs; these logs can be dynamically
read as a stream of data and processed using the business logic and context of the
system for real-time anomaly detection or security threats.
By pairing services like Amazon CloudWatch and Amazon CloudTrail with the
capabilities of AWS IoT identities and policies, a company can immediately
collect valuable data around security practices at the start of the IoT strategy and
meet the needs for a proactive implementation of security within their IoT
solution.
Page 12 of 15
April 2016
formulate and answer questions with the same platform one is using to manage
fleets of things ultimately empowers an organization to avoid undifferentiated
work and to unlock business innovations in an agile fashion.
The high-level, cohesive architectural perspective of an IoT solution that brings
IoT, big data and other services together is called the Pragma Architecture. The
Pragma Architecture is comprised of layers of solutions:
Control Layer - The control point for access to the Speed Layer and the
nexus for fleet management
Speed Layer - The inbound, high-bandwidth device telemetry data bus and
the outbound device command bus
Serving Layer - The access point for systems and humans to interact with
the devices in a fleet, to perform analysis, archive, and correlate data, and
to use real-time views of the fleet.
Pragma Architecture
The Pragma Architecture is a single cohesive perspective of how the core tenets of
IoT manifest as an IoT solution when using AWS services.
One scenario of a Pragma Architecture based IoT Solution is around processing
of data emitted by devices; data also known as telemetry. In the diagram above,
after a device authenticates using a device certificate obtained from the AWS IoT
Page 13 of 15
April 2016
service in the control layer, the device regularly sends telemetry data to the AWS
IoT Device Gateway in the Speed Layer. That telemetry data is then processed by
the IoT Rules Engine as an event to be output by Amazon Kinesis or AWS
Lambda for use by web users interacting with the serving layer.
Another scenario of a Pragma Architecture based IoT Solution is to send a
command to a device. In the diagram above, the users application would write
the desired command value to the target devices IoT Shadow. Then the AWS IoT
Shadow and the Device Gateway work together to overcome an intermittent
network to convey the command to the specific device.
These are just two device-focused scenarios from a broad tapestry of solutions
that fit the Pragma Architecture. Neither of these scenarios address the need to
process the potentially vast amount of data gathered from connected devices, this
is where having an integrated Big Data Backend starts to become important. The
Big Data Backend in this diagram is congruent with the entire ecosystem of realtime and batch-mode big data solutions that customers already leverage the AWS
platform to create. Simply put, from the big data perspective IoT telemetry equals
ingested data in big data solutions. If youd like to learn more about big data
solutions on AWS, please check below for a link to further reading.
There is a colorful and broad tapestry of big data solutions that companies have
already created using the AWS platform. The Pragma Architecture shows that by
building an IoT solution on that same platform, the entire ecosystem of big data
solutions is available.
Summary
Defining your Internet of Things strategy can be a truly transformational
endeavor that opens the door for unique business innovations. As organizations
start striving for their own IoT innovations, it is critical to select a platform that
promotes the core tenets: business and technical agility, scalability, cost, and
security. The AWS platform over-delivers on the core tenets of an IoT solution by
not just providing IoT services, but offering those services alongside a broad,
deep, and highly regarded set of platform services across a global footprint. This
over-delivery also brings freedoms that increase your business control over its
own destiny and enables your business IoT solutions to more rapidly iterate
toward the outcomes sought in your IoT strategy.
Page 14 of 15
April 2016
Contributors
The following individuals authored this document:
Further Reading
For additional reading, please consult the following sources:
Notes
Page 15 of 15
https://d0.awsstatic.com/whitepapers/AWS_DevOps.pdf
https://aws.amazon.com/compliance/shared-responsibility-model/