© Robert Stackowiak 2019
R. StackowiakAzure Internet of Things Revealedhttps://doi.org/10.1007/978-1-4842-5470-7_1

1. Modern IoT Architecture Patterns

Robert Stackowiak1 
(1)
Elgin, IL, USA
 

Today, Microsoft Azure footprints are often designed to be part of a broader architecture that includes Internet of Things (IoT) devices. Though you might be new to this type of solution, the need for such an architecture did not suddenly appear overnight. IoT itself has a long history that predates the cloud and Big Data.

Today’s architectures feature highly scalable event handling enabling real-time analysis in what Microsoft has named the “intelligent cloud” and deployment of machine learning at the “intelligent edge” in the devices. As more advanced IoT solution components and capabilities have become available, previous architecture patterns evolved to take advantage of these new capabilities and enable more sophisticated business solutions to be deployed.

This chapter introduces IoT and covers its history and relevancy in solving a host of business problems in a variety of industries. We explain some of the basic terminology and typical architecture patterns that you will encounter. You should come away from this chapter ready to understand how Microsoft’s technology components align to these patterns as we introduce them and then dig deeper into them throughout much of the remainder of the book.

Appropriately, this chapter is divided into these sections:
  • The evolution of the Internet of Things

  • Typical IoT-based business solutions

  • IoT reference architectures

  • How IoT fits in your IT architecture

  • Why cloud computing and IoT

  • Other IoT concepts and considerations

  • An evolution in needed skills

The Evolution of the Internet of Things

The Internet of Things (IoT) consists of sensors, devices, and/or actuators that are networked in order to gather data for processing and trigger actions or alerts enabling appropriate responses to be made. IoT architecture solutions are frequently deployed to enable intelligent and automated equipment that is deployed in homes, businesses, factories, vehicles, and outdoor locations. The products and solutions are designed to help solve industry specific problems and needs.

Intelligent devices at the edge of the architecture can both transmit and respond to data, sometimes by controlling other components or equipment present. Networking of the devices enables data sharing among them and transmission of data to a data center through a gateway for further processing and analysis. Today’s IoT footprint can respond in real time and perform analysis on massive numbers of incoming events. This footprint represents the latest stage in the evolution of the key components in IoT.

The first device that many define as a sensor was the thermostat, invented in 1883. Motion sensors and infrared sensors first began to appear in the 1940s and the early 1950s. In the 1960s, sensors and associated computing devices were greatly reduced in size to meet the demands of the space program and were key in the development of spacecraft capable of landing men on the moon.

Networking software began to appear during this same time period to be used in linking computers and devices. The ARPANET was introduced in 1969 to transmit messages from computers and devices across wide distances, and it eventually evolved into the Internet. Early adopters of these networks included the oil and gas companies that needed to transmit exploration data gathered from sensors in drilling equipment to powerful backend computers used in performing analytics on the data.

RFID tags and UPC codes began to appear in the early 1970s, and widespread usage occurred in the following decade. By the late 1990s, RFID tags were linked to the Internet at MIT. Kevin Ashton referred to this work in a 1999 speech at Procter & Gamble as the “Internet of Things.”

This was an era in which relational databases were commonly used to store and analyze all data. Data historians built upon relational database management systems became popular for analyzing time series data coming from sensors, programmable logic controllers (PLCs), and other similar devices.

In the early 2000s, new alternatives to relational databases began to gain wider adoption. Companies that built Internet search engines found that the data they needed for analysis arrived in streams and contained delimiters and other miscellaneous data intermixed with the data of value. The data streams required pre-processing to fit into relational databases since relational databases store data in tables neatly formatted into rows and columns. This data conversion introduced latency and complexity that soon became unacceptable to the search engine companies.

New database management systems were introduced to handle such semi-structured data streams. Often referred to as NoSQL databases, Hadoop clusters became especially popular initially for rapidly loading and analyzing large amounts of semi-structured data. Since data coming from many of the devices at the edge also was generated in a semi-structured form, IoT architectures began to include these new data management engines in the backend infrastructure. A “Lambda architecture,” described in a subsequent section of this chapter, became popular in IoT deployment for handling streaming data and traditional batch data feeds.

Sensors continued to evolve, becoming smaller and cheaper, requiring less energy, and providing more functionality. The number of sensors and intelligent devices deployed experienced explosive growth throughout the 2010s.

New IoT use cases and growing data volumes drove a need to apply analytics and machine learning in real time at the location where the data was being gathered. Microsoft was among the first to refer to the devices containing sensors and featuring local compute capabilities as the intelligent edge.

Figure 1-1 illustrates the timeline of IoT evolution that we just described.
../images/480071_1_En_1_Chapter/480071_1_En_1_Fig1_HTML.png
Figure 1-1

Timeline of IoT evolution

Before we look at how these technologies come together to form modern IoT architecture patterns, let’s look at some of the IoT business solutions that leverage these patterns.

Typical IoT-Based Business Solutions

IoT architectures are used to solve a variety of business problems. The types of problems solved are often industry-dependent. Just as form follows function in classic architecture, one should first understand the kinds of problems that IoT solutions can solve and relevant business problems present in your company or organization before pursuing an IoT project.

In this section, we provide examples in agribusiness, automotive, aviation, communications and media transmission, construction, consumer packaged goods, education and research, environmental controls, financial banking and trading, healthcare payers and providers, high-tech and industrial manufacturing, insurance, law enforcement and emergency services, media content and entertainment, oil and gas, pharmaceutical and medical devices, retail, transportation and logistics, and utility companies. As you can see from this list, IoT-based solutions can be applicable to almost every industry.

We suspect that if you work in one of these industries, you might immediately want to jump to that subsection in this chapter. However, many companies that grow adept at building IoT solutions begin to look beyond their industry for expanded business opportunities. So, you might find value in understanding what is top of mind in industries outside of where you work today.

Agribusiness Examples

Agribusiness refers to farming-related activities that include the growing and harvesting of crops, the nurturing of livestock, and the delivery of these products to market. IoT-related agribusiness applications that are deployed include
  • Automated guidance of equipment used in the farm field for plowing, planting, fertilizing, irrigating, and harvesting

  • Data collection from sensors in the field or drones capturing images that are analyzed to determine soil conditions (such as moisture and nutrient content), crop health, and crop maturity

  • Livestock data collection that reports on their health and is used for changing feeding schedules and mixtures, for managing environmental conditions, and for suggesting optimal mating timing

  • Coordination of transportation and logistics management of equipment and vehicles that transport the harvest or livestock to market

Automotive Examples

Robotics in automotive plants have relied on sensors and embraced IoT concepts for many years. These robots are involved in the manufacturing of key parts and in the assembly of vehicles.

Today, IoT is playing an increasing role in the driving and operation of vehicles in the following ways:
  • Navigation of automobiles and trucks including automated parallel parking, detection of nearby obstructions that could cause damage, and self-driving vehicles with minimal driver intervention required

  • Vehicle predictive maintenance and problem determination

  • Scheduling of servicing based on driver usage of the vehicle

Aviation Examples

Commercial and military aircraft contain hundreds of sensors today. Until recently, while a limited amount data was transmitted to the ground while the aircraft was in-flight, the remaining massive data volumes gathered during a flight were downloaded after the aircraft reached an airport in preparation for later detailed analysis. Since more analysis is now possible onboard and transmission bandwidths and data compression techniques continue to improve, expectations are more, and real-time analysis and transmission will take place and drive
  • Better and more timely predictive maintenance guidance, including scheduling of service during optimal portions of journeys

  • Optimized flight operations including improvements in utilization of fuel

  • More timely and better routing of aircraft in dense traffic patterns

  • Better optimized baggage and cargo handling

  • Timely on-ground determination of in-flight problems

  • Improved capture of in-flight situations for simulation used in problem-solving, training, and certification

Communications and Media Transmission Examples

Communications, transmission of media assets, and other network providers increasingly rely on IoT gathered data for
  • Improved network monitoring and problem determination

  • Transmission line inspection (through image capture and analysis) for more timely repairs and safer inspections

  • Improved preventive maintenance and service scheduling through predictive analysis

  • Evaluation of potential new infrastructure and testing through digital simulation

Construction Examples

Companies involved in the construction of buildings, roads, and other infrastructure have deployed and/or are evaluating a variety of IoT-related solutions including
  • Tracking of assets and people via location-based searches, used to direct people to equipment and tools and determine where equipment and tools are being used

  • Safety problem identification (through image capture and analysis) such as workers appearing in danger zones, not wearing appropriate safety equipment, or operating/storing tools in unsafe states

  • Monitoring of data from tools and other equipment to guide optimal usage and assure quality outcomes, speed work, and prevent damage to equipment

Consumer Packaged Goods Examples

Consumer packaged goods (CPG) companies manufacture, manage, and promote the items that we buy, marketing them through familiar brands and private labels. Such companies most closely monitor relationships with the channels that they sell their goods through. However, most now see a need to also directly connect with the ultimate buyers of their products, the consumers.

Examples of IoT-related initiatives include
  • Supply chain optimization through better monitoring of supplies on-hand and in transit

  • Better quality control and accountability through monitoring of the state and location of supplies and manufactured goods in transit

  • Utilization of smart displays, sometimes linked to consumer personal mobile devices, to more quickly understand consumer buying behavior, promotional effectiveness, and impact of product placement in stores

Education and Research Examples

IoT-related initiatives touch all levels of education, from preschool to higher education. Some of these initiatives include
  • Monitoring of facilities to optimize usage and control the environmental infrastructure

  • Monitoring of campuses through cameras that enable image and video capture and automated analysis to help maintain security and enhance safety

  • Monitoring of student presence in classrooms, libraries, and elsewhere to identify students most at risk of failing

  • Analysis of data gathered from sensors and devices used in experiments and research

  • Monitoring of campus or school inventories of supplies and the equipment in use, storage, and in transit

Environmental Controls Examples

Environmental controls are used to monitor and initiate changes to surroundings and typically focus on enabling delivery of desirable air quality, humidity, temperature, and water quality. These controls exist in homes and almost every industry. Some of the IoT-related use cases include
  • Smarter programmable devices that can “learn” operational behaviors of operators (such as home and business thermostats that can learn desired temperature adjustments for certain days of the week and times)

  • Smarter management of environmental controls for air and water quality to automatically react to a wide range of changing conditions

  • Better optimization of cooling resources in manufacturing (e.g., more control over water or air cooling required resulting in less wasted resources)

  • Enabling preventive maintenance on environmental controls through early detection of potential problems

Smart cities initiatives offer additional examples that might be familiar to you. Where environmental sensors have been installed during street lighting and similar upgrades, the data is sometimes used to help manage pollution challenges. For example, when levels of pollutants are approaching environmental warning levels, city governments can issue alerts and encourage carpooling and usage of public transportation. Traffic lights might also be adjusted to improve traffic flow and reduce local pollution where feasible.

Another focus of some smart cities initiatives is the optimization of environmental waste handling. Examples include the scheduling of pickup of waste materials based on fullness of recycling and nonrecyclable waste bins (monitored using embedded IoT devices and sensors) and optimal route planning for waste management vehicles.

Financial Banking and Trading Firm Examples

Banks and financial trading firms might seem to have less obvious reasons to take on IoT-related initiatives. Nevertheless, some have emerged including
  • Tracking the presence and location of financial traders on trading floors

  • Identifying the presence and location of handheld financial trading devices

  • Tracking facility usage, especially within branch banks that are less likely to be frequently accessed by younger banking customers

Healthcare Payers and Providers Examples

Healthcare payers are responsible for managing and paying claims from services provided in healthcare providers. Healthcare providers deliver these services in hospitals, clinics, elderly care and assisted living facilities, offices of doctors, and outbound in patients’ homes. Both payers and providers have an interest in delivery of quality services in the most optimal way possible. Some of the typical IoT-related initiatives include
  • Improved patient monitoring in all treatment settings to better understand the impact of services provided and quality of care

  • Referrals to closest facilities offering appropriate care through location-based solutions when contacted by patients

  • Facilities monitoring for optimal future planning, utilization, and safety

  • Monitoring of prescribed drug intake by patients utilizing smart devices and pills containing digestible sensors

  • Monitoring of staff to assure quality of care and safety

High Tech and Industrial Manufacturing Examples

Many high tech and industrial manufacturing companies have deployed equipment capable of gathering data on the production floor for years and are now just figuring out how to utilize that data. There are a host of potential IoT-related solutions that manufacturers are pursuing including these:
  • Gathering data on the number of goods manufactured and the environmental factors under which manufacturing occurred

  • Early detection of improperly manufactured or assembled goods (through image recognition analysis)

  • Refined robotic manufacturing capabilities requiring dexterity and speed

  • Predictive maintenance analysis of equipment on the manufacturing floor and scheduling of servicing that will optimize production and minimize possible downtime

  • More accurate and location-based assessment of inventory and the supply chain

  • Better understanding of manufacturing processes associated with warranty claims and optimization of production that will minimize such claims in the future

  • Manufacture of smart products that enable improved maintenance by the manufacturer and/or might enable the manufacturer to become a service provider as well

Insurance Company Examples

Insurance companies focus on selling policies at competitive rates in favorable risk profiles. So, IoT-related initiatives often focus on reducing risk and potential claims from policy holders. These initiatives include
  • Analysis of vehicle driving behavior through data gathered from onboard sensors/devices

  • Analysis of building usage and monitoring of security using data from sensors and image analysis

  • Analysis of vehicle and building damage captured in images by cameras on mobile devices to determine the response needed and potential cost of claims

  • Predictive risk modeling using data from sensors gathering weather, farming, traffic, and a host of other data related to possible claims that might occur

Law Enforcement and Emergency Services Examples

To be optimally effective and possibly save lives, law enforcement and emergency services must be properly routed to the right place at the right time with the right resources. Some of the IoT-related initiatives that can help solve this puzzle include
  • Personnel, vehicle, and asset tracking enabled through the analysis of data collected by sensors and cameras

  • Analysis of data collected by sensors and cameras in smart cities initiatives and linked to dispatchers of services

  • Validation of identification through image recognition

Media Content and Entertainment Examples

Creators of media content and managers of entertainment venues want to quickly understand trends in popularity in order to deliver the right content at the right time to as many consumers as possible. Some examples of IoT-related initiatives include
  • Analysis of crowd wait times in theme parks and entertainment venues to route individuals to lines that will improve their experience and optimize revenue through additional offerings sold

  • Analysis of venue utilization for purposes of scheduling entertainment and venue redesign for better optimization

  • Determination of media viewing habits through image capture and analysis of participants in studies

  • Location-based recommendations provided to potential customers based on interests and/or presence

Oil and Gas Examples

Oil and gas companies are referred to as being “upstream” where exploration and extraction occur and “downstream” where production and delivery to customers occur. Companies that provide pipelines and other transport of extracted materials are referred to as “midstream.” Many of the following IoT initiatives are relevant for all these types of oil and gas companies:
  • Asset management including equipment, personnel, and safety considerations

  • Optimal transportation and logistics management

  • Preventive maintenance of vehicles, drilling, pipelines, and other equipment enabling optimal business performance and minimal environmental impact

  • Sensor and image analysis at drilling sites enabling optimal discovery initiatives

Pharmaceutical and Medical Device Examples

Pharmaceutical and medical device companies engage in the research, testing, manufacturing, distribution, and promotion of drugs and devices. Historically, their primary target for these products were the caregivers. Today, many of the drugs are also directly marketed to consumers through advertising.

Some of the current IoT-related examples for this industry include
  • Gathering of data from sensors and its analysis during research, experimentation, and clinical trials

  • Monitoring of key metrics gathered by medical devices and fitness bands or smart watches that indicate the current state of patient health and provide warnings of potential future health problems

  • Monitoring of medical devices for anomalies and possible need for replacement

  • Tracking of proper intake of drugs that are monitored through equipment or digestible sensors

Retail Examples

Retailers frequently operate in an omnichannel world today going to market through physical stores, an online presence, and operations that deliver goods directly to consumers. IoT-related focus areas often include
  • Utilization of smart displays to more quickly understand consumer buying behavior, promotional effectiveness, and the impact of product placement in stores. The displays also enable personal shoppers to more quickly gather items on shopping lists of consumers

  • Inventory optimization through better monitoring of inventory on-hand and in transit from suppliers

  • Better quality control and accountability through monitoring of the state and location of goods in transit

Transportation and Logistics Examples

Transportation and logistics management is relevant to a variety of companies and organizations involved in the shipment of goods and people. Examples include the airlines, trucking companies, railroads, and companies that manage ships at sea. Delivery companies often manage their own networks and resources but also rely on these companies. Governments also offer this service in the form of post offices delivering packages and parcels around the world.

Other companies that produce, manufacture, or sell goods also place significant focus here as it is an important cost of doing business and optimal management is key to maximizing sales and profits. In the military, effective transportation and logistics of equipment and personnel can be the difference in winning a battle.

It should come as no surprise that these are frequent IoT-related initiatives:
  • Route optimization through the analysis of traffic patterns, crews, weather, and equipment, the required movement of goods and people, and the priorities under consideration (speed, cost, cost of delay, etc.)

  • Service optimization through analysis of data gathered from equipment that indicates a need for preventive maintenance

  • Warehouse optimization by understanding the location of inventory and supplies in storage and whether to source/deliver from or to primary or secondary warehouses or direct ship

  • Network planning utilizing the results from previous optimization efforts to develop more optimal transportation paths (often evaluating multiple possible modes of transportation)

  • Safety enforcement through the monitoring of vehicle operators for unusual behavior (lack of attention, lack of rest, speeding, improper lane usage) and the implementation of automated safety controls (such as Positive Train Control)

Utility Company Examples

Utility companies provide the electricity, natural gas, and water that we use to power, heat, cool, and comfortably live and work in our homes and businesses. IoT-related data initiatives in utility companies include
  • Gathering and analysis of usage data from smart meters to understand resource utilization, outage situations, and predict demand

  • Analysis of data gathered in plants and treatment facilities used to optimize and manage production and processes in a safe manner

  • Optimal management of crews, vehicles, and other assets to maintain levels of service and maximize safety

  • Utilization of image capture and analysis of images gathered by drones dispatched to remote and dangerous locations of transmission lines, pipelines, and facilities to troubleshoot existing problems and determine maintenance needs

IoT Reference Architectures

A variety of IoT reference architectures are widely promoted by standards organizations, the open-source community, and vendors that provide components and platforms. While we’ll focus on the Microsoft Azure architecture in this book, gaining an understanding of other reference architectures is useful, especially when we use them to assess functional capabilities that are required in any IoT architecture.

Many of the early reference architectures emerged from efforts in the Industrial Internet of Things community. ISA-95 is an ANSI standard from the International Society of Automation that is useful in defining automated interfaces between enterprise systems and control systems. Table 1-1 illustrates the levels defined in ISA-95 including the typical systems or functions at each level.
Table 1-1

ISA-95 enterprise and systems/function levels

Level

Level Name

Decision Timing

Typical Systems/Functions

5

Governance and planning

Months/years

Quality management, knowledge management

4

Business systems

Days/weeks

Financials, supply chain, CRM

3

Operations management

Minutes/hours

Machine learning

2, 1, 0

Control and assets

Sub-second

Connected IoT devices

The Industrial Internet Consortium (IIC) breaks its reference architecture into slightly different functional and system areas called domains. The five domains are defined as follows:
  • Control Domain. Functions performed by devices, sensors, and actuators at the edge, communications that occur among them, and management required

  • Operations Domain. Functions that operate equipment in the control domain including provisioning and deployment, management, monitoring and diagnostics, prognostics (predictive analysis), and optimization

  • Information Domain. Functions that gather data from the control domain and elsewhere into business systems (ERP, CRM, MES, etc.), custom applications, and analytics and data management systems

  • Application Domain. Application logic or functions for performing high-level business functions

  • Business Domain. Business processes and procedures typically found in ERP, CRM, and other systems

The way in which these domains and IoT devices operate together in an implementation is illustrated in Figure 1-2.
../images/480071_1_En_1_Chapter/480071_1_En_1_Fig2_HTML.png
Figure 1-2

IIC domain interrelationships and IoT devices

There are many other reference architectures from other standards bodies and consortiums, such as the Open Software Foundation, that you might find are worth further investigation. Of course, these architectures continue to evolve as the capabilities in IoT solutions grow. But next, we start to look at how you might incorporate these concepts in your existing IT architecture.

How IoT Fits in Your IT Architecture

If you are new to IoT but have worked with IT architecture for years, you are likely familiar with traditional batch-oriented infrastructure patterns. Data in online transaction processing systems service business areas such as financial operations, supply chain and distribution, human resources, and customer relationship management. Such systems can also include unique solutions required in the industry that the company operates within. The data is structured and fits neatly into rows and columns; hence, it is stored and accessed in relational databases.

For analysis of data that crosses lines of business and requires history dating back months or years, data warehouses and/or data marts provide a place to access such data within relational databases using business intelligence tools or directly using SQL. These data warehouses and data marts are populated with data using batch extraction, transformation, and loading processes (ETL) in systems between the sources and targeted systems. They are sometimes populated using batch extraction, loading, and then transformation processes executed within the targeted data warehouses and marts (ELT). Figure 1-3 represents this architecture.
../images/480071_1_En_1_Chapter/480071_1_En_1_Fig3_HTML.jpg
Figure 1-3

Traditional batch-oriented data warehousing architecture

Most of the IoT-related use cases we described in the previous section of this chapter share characteristics that drive a need for new capabilities and components beyond those that our traditional technical architecture can provide. These components must handle
  • Streaming data that is generated in semi-structured format by sensors and devices at the edge of the footprint

  • Incoming events that grow dramatically as the number and capabilities of the sensors and devices deployed at the edge grow – and these events must land in backend components reliably as either real-time or frequent batch input

  • Storage and management of massive amounts of this streaming data enabling the analysis of patterns in the data and determination of the most appropriate machine learning models that can be deployed in the backend systems or at the edge

These requirements are very different from the requirements that drove the creation of data warehouses that are deployed using relational databases. The new architecture that emerged is often described as a Lambda architecture and consists of both real-time data feeds (a speed layer) and batch data feeds. Figure 1-4 illustrates a conceptual view of the processing and data management systems present in the architecture.
../images/480071_1_En_1_Chapter/480071_1_En_1_Fig4_HTML.png
Figure 1-4

Simplified Lambda architecture representation

Note

Where an architecture must be defined and only streaming semi-structured data is present, just a speed layer is needed. All data is appended to a speed data management system (e.g., a NoSQL data store). This variation is referred to as a Kappa architecture.

Figure 1-5 illustrates in more detail the components that are typical in an IoT Lambda architecture. There can be many variations in the components and patterns present. The existence of legacy components, such as the presence of historians or limited networking options, can be a factor in the components that are included in this architecture. Certain functionality requirements and skills of frontline workers, developers, data scientists, and IT also influence the components selected in deployment strategies.
../images/480071_1_En_1_Chapter/480071_1_En_1_Fig5_HTML.jpg
Figure 1-5

Lambda architecture with IoT components

IoT-related components present in the Lambda architecture diagram shown here include the following:
  • IoT Edge Device. Remote devices that gather data and transmit it over a local area network or Wi-Fi to an IoT gateway where it is transmitted into the cloud. More sophisticated edge devices (sometimes called thick devices) can apply analytics and machine learning algorithms to incoming data.

  • IoT Gateway. A connection point that gathers data from IoT devices and transmits it to cloud-based backend resources through public or private networks.

  • IoT Hub/Event Hub. Both types of hubs are designed to handle a high volume of incoming messages from IoT Edge devices and support industry standard protocols such as AMQP and HTTPS. IoT Hubs additionally can provision and manage IoT Edge devices and sometimes have additional capabilities such as having support of additional transport protocols.

  • Streaming Analytics. A real-time event processing engine used in applying machine learning algorithms and analytics to incoming streaming data feeds.

  • In-Memory Data Preparation and Training. Spark-based solutions used to prepare data and/or perform experiments that train models in a low-latency environment.

  • Data Lake. A location where data is stored in its natural format (usually semi-structured) in file systems or blob storage, most often leveraging Hadoop or other NoSQL data management engines.

In Figure 1-5, we show a bidirectional exchange of data between the data lake and the data warehouse. This is typical where data from one of the data management systems is needed in the other for query and reporting or machine learning training. In Chapter 2, we’ll describe Microsoft’s products that align to this architecture footprint.

All the new backend components are typically deployed as cloud-based services. Components you are likely to find deployed in the cloud include the IoT Hub/Event Hub, streaming analytics engine, in-memory data preparation and training solution, and the data lake. Other traditional backend components, such as the data warehouses and data marts, are sometimes relocated to the cloud, especially when replacements for a previous generation of components are sought. Dashboard and reporting business intelligence tools are also frequently cloud based.

Why Cloud Computing and IoT

When cloud computing was first introduced, the primary justification to move infrastructure to the cloud often cited was reduced cost in comparison to on-premises deployment. The cost of storage of large amounts of data is very low in most cloud-based solutions, and processing is charged for only when applications and tools utilize processing resources. However, many organizations now mention other primary motivators in moving away from considering an on-premises backend IoT infrastructure deployment.

For organizations deploying IoT in order to innovate and provide business solutions like those that we previously described, shortening the time to solution implementation can be of critical importance. On-premises deployment involves acquisition of servers and storage, software components, and networking resources. Once acquired, these resources must be installed, configured, and tested. IT must also be properly trained to manage, support, and optimize these resources. After meeting these prerequisites, development of the solutions can begin on the eventual production platforms.

In most organizations, getting the needed components in place to begin development can take 6 months or more. Utilizing cloud-based resources eliminates much of this preparation work as the new backend components can be easily spun up in minutes.

Table 1-2 denotes the resources that IT configures and manages in an on-premises deployment. This table also denotes IT responsibilities for the three types of cloud-based deployment: Infrastructure as a Service (IaaS) , Platform as a Service (PaaS) , and Software as a Service (SaaS) . In all these scenarios except the SaaS scenario, you are responsible for managing IoT devices at the edge and their remote networks. In the SaaS scenario, managing IoT devices and remote networks is often a shared responsibility with the SaaS provider (and we denote that in the following table by an asterisk).
Table 1-2

IT responsibilities in on-premises and cloud-based deployment

Components Configured and Managed by IT

On-Premises Backend

Infra. as a Service (IaaS)

Platform as a Service (PaaS)

Software as a Service (SaaS)

IoT applications in data center

X

X

X

 

IoT data in data center

X

X

X

 

IoT data management Platforms in data center

X

X

  

IoT data center middleware

X

X

  

Data center operating systems

X

X

  

Data center virtualization

X

   

Data center servers and storage

X

   

Data center networking

X

   

Data center environment (power, etc.)

X

   

IoT devices and remote networks

X

X

X

In IaaS deployment scenarios, the cloud vendor is responsible for the data center environment, networking, servers and storage, and virtualization. You remain responsible for updating and managing software and managing data in the data center above the virtualization layer. Multi-vendor software components are typically deployed, and integration among software components must be carefully considered.

In PaaS deployment, the cloud provider additionally takes on updating and management of data center operating systems, middleware, and data management platforms. Much of the focus of Microsoft’s IoT reference architectures is on PaaS components, as you will see in Chapter 2.

SaaS solutions are typically sold by cloud provider partners who built their offerings upon the cloud vendor’s IoT reference architectures. Examples of such offerings today come from producers of vehicles, controls, manufacturing equipment, manufactured products, and healthcare monitors. Many these products are bundled with appropriate embedded software for operating and managing the vehicle or device. Increasingly, the companies that produce these products also offer maintenance services that rely on data gathered from the equipment.

In addition to these cloud-based deployment models, there are emerging solutions that combine PaaS-style deployment with some aspects of SaaS. Microsoft refers to its offerings that cross these boundaries as solution accelerators. The accelerators spin up needed PaaS components and can provide a starting point for deploying solutions that monitor devices, create a connected factory, perform predictive maintenance on equipment, or test IoT solutions on simulated devices.

Cloud-based platforms have other benefits as well. Deploying to the cloud enables flexibility in deployment by offering a variety of reliability and availability options. Backend platforms are secured in ways not easily replicated in an on-premises deployment. And, you can rapidly scale the platforms when needed.

The cloud is also ideal for testing new IoT-based business solutions that might not prove to be justifiable. Cloud resources can easily be shut down if the project doesn’t move forward without a penalty of having made a huge investment in infrastructure prior to the testing.

Other IoT Concepts and Considerations

IoT devices are of varying sophistication and capabilities. Low-power sensors might simply capture and transmit data. Powerful edge devices often contain processing units, memory, and storage and feature the ability to host an operating system and applications. The more sophisticated edge devices can process analytic and machine learning workloads that can drive immediate responses when changing conditions are detected at the source.

When specifying the remote IoT devices that you will be deploying and managing, understanding the networking options available is an important consideration. The IoT devices might communicate directly device to cloud (D2C) and receive feedback and updates from the cloud to device (C2D). More commonly, several devices in a location will transmit to an IoT gateway in a hub-and-spoke fashion as mentioned earlier in this chapter. In some scenarios where IoT devices are widely dispersed, a mesh framework is deployed as some of the devices also store and forward messages from outlying devices. A mesh containing intelligent edge devices capable of performing analytics at the device is sometimes described as a fog computing environment.

IoT devices in a hub-and-spoke or mesh deployment are most often connected using a physical connection such as Ethernet, Bluetooth, or Wi-Fi. Low-cost LP WAN technologies for devices with limited capabilities and battery life provide an alternative in some situations.

As this book was being published, there was much anticipation about the impact of 5G networking. Early Wi-Fi deployment of IoT devices utilized 3G or 4G networks. The 5G networks promise greater speed, capacity, and reliability, enabling more sophisticated exchanges between IoT devices, including intelligent edge devices, as well as communications to cloud-based services.

Communications to cloud-based services historically leveraged the Internet. However, as concern grew regarding the security of the IoT infrastructure, many organizations have chosen to connect devices to the cloud through private networks.

Messages are transmitted over these networks using message transport protocols. Some of the messaging protocols you are likely to find supported on the IoT devices that you deploy include
  • AMQP (Advanced Message Queuing Protocol)

  • MQTT (Message Queue Telemetry Transport)

  • AMQP or MQTT over web sockets

  • HTTPS (Hypertext Transfer Protocol Secure)

  • Custom protocols

The devices that you choose should support a common protocol so that they can communicate with each other, and that protocol should also be supported in the cloud-based infrastructure of your cloud vendor. Though this might seem to be a trivial point, coordination between IT and the purchasers of the devices is vital to assuring success. In scenarios where this coordination is lacking, the resulting infrastructure can become needlessly more complex or early device investments could be abandoned.

Securing the infrastructure extends beyond just the network concerns. The National Institute of Standards and Technology (NIST) defines a security life cycle for an entire IoT infrastructure in its Risk Management Framework (RMF). The closed-loop process in RMF includes the following steps:
  • Categorize devices and systems

  • Select security controls

  • Implement security controls

  • Assess security controls

  • Authorize devices and systems

  • Monitor security controls

ISA 99 further defines relevant security assurance levels (SALs) designed to measure adherence to security goals. Target SALs are the security-level goals that are to be achieved by the IoT architecture. Design SALs are planned security levels in components and across the proposed architecture. Achieved SALs are actual measured levels of security achieved in deployment. Capability SALs are levels that can be achieved through configuration of security options in components.

Key criteria evaluated in each SAL include
  • Access controls through identification and authentication

  • Use control through specified privileges

  • Data integrity

  • Data confidentiality

  • Data flow restrictions

  • Time to respond to a threat event

  • Resource/component availability (that could be impacted by an attack)

As we explore the various Microsoft components that might be deployed in an IoT architecture solution, we’ll also take a closer look at meeting these criteria through capabilities available in Azure and at the edge.

A concept you might encounter as you devise IoT-based architectures that deliver needed business processes and solutions is the notion of a “digital twin.” Organizations often build prototypes of the architecture we’ve described earlier in this chapter and virtually simulate the sort of data that will be gathered from sensors and devices to illustrate what solutions will deliver. Such simulations can be useful in determining which IoT devices should be deployed, or where additional sensors need to be added to devices already in place.

An Evolution in Needed Skills

By now, you likely realize that the skills that are required to successfully create and deploy an IoT-based solution, especially one that you heavily customize, are quite diverse. Possessing an understanding of the business solutions that IoT can enable and the business requirements that align to a need for IoT-based solutions in your company is required.

If you are new to IoT and to semi-structured data feeds, you will likely need to also acquire new technical skills in your company. The availability of such skills could influence the architecture that you propose. Some of the key areas and skills that will be required include
  • IoT Devices. Understanding human to machine interfaces, device networking, device security, and device management; understanding the capabilities of such devices including programming options and deployment of analytics and machine learning at the edge

  • Streaming Data Feeds. Understanding deployment strategies for IoT Hubs or Event Hubs, deployment of streaming analytics solutions used in the application of real-time machine learning applications, and strategies for securing data in motion

  • Semi-structured Data Management Engines. Understanding usage and deployment of Hadoop clusters or other NoSQL databases to appropriately sized and configured systems, when to apply in-memory (Spark) processing, and data governance and security

  • Machine Learning and Artificial Intelligence. Building data scientist skills for solving problems that require machine learning and artificial intelligence including modeling, programming, and deployment skills

  • Cloud-Based Solution Deployment and Management. Understanding design, rollout, management, and securing of IoT backend solutions in a cloud-based environment

  • IoT Infrastructure Integration to Legacy Systems. Understanding data integration strategies and approaches leveraging new IoT and legacy systems

Defining, designing, and implementing IoT-based solutions often follows a “design thinking” paradigm. We discuss design thinking as an approach in Chapter 8. The paradigm is a rapid cycle of research, problem definition, ideation, prototype building, and testing in an iterative fashion. Such an incremental approach is aligned with popular methodologies used in the cloud-based deployment of solutions and consistent with a modern DevOps approach. Possessing skills related to this approach and cloud-based deployment and management are also needed.

In this chapter, we outlined what these solutions might look like in a generic IoT architecture and some additional considerations. In subsequent chapters, we’ll explore the key Microsoft components that can play a part in an IoT architecture and some of the possible architecture variations in more detail.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.189.247