IoT Architecture Principles v6
IoT Architecture Principles v6
IoT Architecture Principles v6
Architecture
Gaurav
Nayyar
Towards Towards
Platforms Mobility
DIGITAL
TRANSFORMATION
GGSN IPSEC
SMSC NNI
HLR
SGSN Internet
Radius &
Dia Internet
SGSN
Mediation
B/OSS
Internet
Portal
Connectivity
Sensors and IoT hub @ Edge Radio NW Interconnect User Access
Platform
NW
Internet / Network
(Connectivity)
Type of Sensors
Analog – Sensors that produce continuous Digital – Sensors that produce digital output in the
analog output signal proportional to their form of binary data, serial data, parallel data or
measurement. The output signal can be in the PWM, etc.
form of voltage, current or resistance, etc.
Examples – LDR, Thermistor, Microphone, Examples – OPT3001 Ambient Light Sensor, LM75A
Piezoelectric Sensor, Analog Accelerometer, etc. Temperature Sensor, BMP180 Barometric Pressure Sensor,
etc.
Passive - A passive sensor is one that does not Active - An active sensor is one that requires an
require a source of power to generate an output. external source of power (excitation voltage) to
operate.
It detects and gathers target data from phenomena
occurring in the subject’s environment. It emits a signal to be bounced off a target, with data
gathered by the sensor upon their reflection.
Mostly need to be conditioned and or amplified with an
active device like an op-amp.
Examples – Radar, LiDAR, Sonar, Ultrasonic
Examples – Strain Gauge, Piezoelectric sensor, PIR Transducer, IR Proximity sensor, etc.
sensor, Thermocouples, etc.
Bootloader
Bootloader is a small application that loads an
operating system or application into memory
and relinquishes control of the hardware target
to that software.
Device Driver
The Hardware Abstraction Layer software that
communicates with specific hardware
peripherals is called a device driver. A device
driver provides a standard API to read and write
to a specific peripheral.
Application
Application is code dedicated to handling a
particular task.
M2M terminal can be broken down into two logical components. The first is the application portion of the terminal that provides the
specific hardware and software for the M2M application. For example, in a point of sales terminal, the application portion would be the
keypad, LCD, and printer with the associated application layer software. This can also be referred to as a Sensor that captures real time
data from the external environment like pressure, energy, temperature etc.
The second logical component of the M2M terminal is the M2M module, which is mainly responsible for providing the connectivity
services. The application portion is also sometimes simply referred to as the “host” to the M2M module. The application portion of the
terminal is highly related to the M2M application
Cellular chipset technology is at core of all wireless M2M devise. They share the same technology platform as other cellular
devices such as handsets and USB modems.
Compatibility
– Greenfield or Brownfield Implementation
– Integration Feasibility and Effort
– Platform Agents
Cost
– Hardware
– Software
– Integration
Brand Identity
– New or Partner Vendor
– Presence in IoT Space
– Past Track Record
Certifications
– FCC, CE etc.
– Application-Area Specific (If Any)
Additional Features
– FOTA & COTA
MoSCoW Method
– Must Have
– Should Have
– Could Have
– Won’t Have (this time)
Network Layer
– Addresses & routes data through the network
Transport Layer
– Generates communication sessions
– Facilitates multiple communication channels
Application Layer
– Responsible for data formatting
– Controlling Data Integrity
– Governs the data flow in an optimal scheme
Copyright © 2017 Tech Mahindra. All rights reserved. 35
IoT Protocols
25 Kilometers
100 Meters
10 Meters
WiFi 2.4 GHz 54 Mb/s 100 m Star High WLAN, Mobiles Router/Gateway
BLE 2.4 GHz 1 Mb/s 10 m - 50 m Star Low Beacons, Sensors, Health Devices
ZigBee 2.4 GHz 250 kb/s 10 m - 100 m Mesh, Tree, Star Low Home Automation, Sensor Network
Z-Wave 900 MHz 100 kb/s 30 m - 100 m Mesh, Tree, Star Low Home Automation
NFC 13.56 MHz 424 kb/s 20 cm Peer to Peer Low Secure Payment, Transport Ticket
Serial Interfaces
I2C, CAN, LIN, SPI, Flex, MOST, and I2S. Then there’s Ethernet and USB and other higher-speed serial
interfaces like FireWire, HDMI, and Thunderbolt. Two of the oldest interfaces are RS-232 and RS-485.
RS 485
Service Management
In inactive stage SIM is not recognized in the network and no communication possible
In active stage SIM is recognized in the network
SIM- Operator
Platform- Centralized
RAN- Operator
Copyright © 2017 Tech Mahindra. All rights reserved. 47
Various types of SMP deployments…..contd.
SIM- Operator
Platform- Oprator
RAN- Operator
Service
Definition
and OpCo
Configuration
Customer On-
Service boarding and
Termination Service set-up
Usage
SIM Ordering
processing,
&
Pricing and
Provisioning
Reporting
Operational
Service Service
Manageme Delivery
nt
Source- Logica
Copyright © 2017 Tech Mahindra. All rights reserved. 50
Business Benefits of SMP to Telcos
GGSN IPSEC
SMSC NNI
HLR
SGSN Internet
Radius &
Dia Internet
SGSN
Mediation
B/OSS
Internet
Portal
Connectivity
Sensors and IoT hub @ Edge Radio NW Interconnect User Access
Platform
NW
Passive - DR
Application Enablement
Scalable & secure platform to process data from 500,000 machines in 5 years.
Strong device identification and access management required
Complex Events, alerts and business processes for different types of machine
Device Management
Need for device SDK and libraries to connect to machines
Need for efficient device registration and diagnostics capabilities
Need for scripts and firmware upgrade on the devices
Application Complete support of software / Device SDK for drivers & driver libraries,
Management firmware update Management gateways
UI (User Interface), BRM (Business Rule Management), BPM (Business Process Management), EAI (Enterprise Application Integration)
Analytics
Analytics Alerts
Process integration
Shared Services
• Monitoring • Auditing External Business benefits
Systems
6. Screens : TW with its basic masshup widgets has limitations to impliment VF branding. Will need to develop custom mashups
7. Business Logic and algorithms like geo fencing, nearest route, fastest route, driver behavour would be custom logic
https://support.ptc.com/apps/help_center/brand=Thingworx
Smart Home
ZigBee Edge Analytics 2G/3G/4G/Broad Device Mgmt. Big Data Storage ERP
REST/JMS/htt band
ps/http
Wi-Fi
Wi-Fi Public network Analytics platform e.g. SAP
Data Collection SAP
HANA, Actian
Bluetooth
MQTT/AM
QP Private Network Data Modelling Actian Analytics Platform CRM
Modbus
Connected Car
Edge Mgmt.
Business Rules Predictive Analytics
Global/Local SIM
CANbus COAP Weather
OTA updates
Systems
Notification&
Protocol System Integration
Global SIM& Managed Services
Alerts
Traffic
6LoWPAN Abstraction
Connected Factory Real time System
https/http analytics
Whitelisting
802.15.4 Dashboards
OMADM Vertical Solution Development
/LWM2M/TR069 Tcp/udp
User /Enterprise Facing Services / Apps
Ethernet Security
Smart City
Cloud Computing
Edge Computing
Players – Microsoft Azure, Google, AWS, IBM etc.
Players – Cisco, Dell, Intel, Qualcomm etc.
Copyright © 2017 Tech Mahindra. All rights reserved. Platforms – Bosch, Telit, PTC, GE 65
Application Layer Protocols
JMS has queues and topics. A message sent on a JMS queue is consumed by no more than one client.
A message sent on a JMS topic may be consumed by multiple consumers. AMQP only has queues.
While AMQP queues are only consumed by a single receiver, AMQP producers don't publish directly to
queues. A message is published to an exchange, which through its bindings may get sent to one queue
or multiple queues, effectively emulating JMS queues and topics.
A limitation of JMS is that the APIs are specified, but the message format is not. Unlike AMQP, JMS has
no requirement for how messages are formed and transmitted. Essentially, every JMS broker can
implement the messages in a different format. They just have to use the same API
AMQP
Systems are too complex, too expensive, too slow to adapt with changing needs.
Cant loose data.
Technology agnostic
No constraint on hardware
There are three principles of systems design in reliability engineering which can help achieve high availability.
Elimination of single points of failure. This means adding redundancy to the system so that failure of a component does not
mean failure of the entire system.
Reliable crossover. In redundant systems, the crossover point itself tends to become a single point of failure. Reliable systems
must provide for reliable crossover.
Detection of failures as they occur. If the two principles above are observed, then a user may never see a failure. But the
maintenance activity must.
Availability % Downtime per year Downtime per month Downtime per week Downtime per day
90% ("one nine") 36.5 days 72 hours 16.8 hours 2.4 hours
95% ("one and a half nines") 18.25 days 36 hours 8.4 hours 1.2 hours
97% 10.96 days 21.6 hours 5.04 hours 43.2 minutes
98% 7.30 days 14.4 hours 3.36 hours 28.8 minutes
99% ("two nines") 3.65 days 7.20 hours 1.68 hours 14.4 minutes
99.5% ("two and a half nines") 1.83 days 3.60 hours 50.4 minutes 7.2 minutes
99.8% 17.52 hours 86.23 minutes 20.16 minutes 2.88 minutes
99.9% ("three nines") 8.76 hours 43.8 minutes 10.1 minutes 1.44 minutes
99.95% ("three and a half nines") 4.38 hours 21.56 minutes 5.04 minutes 43.2 seconds
99.99% ("four nines") 52.56 minutes 4.38 minutes 1.01 minutes 8.66 seconds
99.995% ("four and a half nines") 26.28 minutes 2.16 minutes 30.24 seconds 4.32 seconds
99.999% ("five nines") 5.26 minutes 25.9 seconds 6.05 seconds 864.3 milliseconds
99.9999% ("six nines") 31.5 seconds 2.59 seconds 604.8 milliseconds 86.4 milliseconds
99.99999% ("seven nines") 3.15 seconds 262.97 milliseconds 60.48 milliseconds 8.64 milliseconds
99.999999% ("eight nines") 315.569 milliseconds 26.297 milliseconds 6.048 milliseconds 0.864 milliseconds
99.9999999% ("nine nines") 31.5569 milliseconds 2.6297 milliseconds 0.6048 milliseconds 0.0864 milliseconds
Copyright © 2017 Tech Mahindra. All rights reserved. 78
High Availability Cluster
Active/active — Traffic intended for the failed node is either
passed onto an existing node or load balanced across the
remaining nodes. This is usually only possible when the
nodes use a homogeneous software configuration.
Active/passive — Provides a fully redundant instance of
each node, which is only brought online when its
associated primary node fails.[2] This configuration typically
requires the most extra hardware.
N+1 — Provides a single extra node that is brought online
to take over the role of the node that has failed. In the case
of heterogeneous software configuration on each primary
node, the extra node must be universally capable of
assuming any of the roles of the primary nodes it is
responsible for. This normally refers to clusters that have
multiple services running simultaneously; in the single
service case, this degenerates to active/passive.
N+M — In cases where a single cluster is managing many
services, having only one dedicated failover node might not
offer sufficient redundancy. In such cases, more than one
(M) standby servers are included and available. The
number of standby servers is a tradeoff between cost and
reliability requirements.
Copyright © 2017 Tech Mahindra. All rights reserved. 79
ThingWorx Core Server Failure
1. ZooKeeper gets no response from the leader; therefore, it sends a request to the standby
TW HA Architecture node to become the leader.
2. The new leader sends confirmation to the load balancer (HAProxy in this guide) to have
requests routed to it.
Vodafone Case
Per Device Year 1 Year 2 Year 3
Category
Frequency No. of Sensor OPS PWS OPS PWS OPS PWS Notes
Parameters/Packet
(min)
Assuming that data
Wearable 1 5 59.2 296 133.2 666 229.4 1147 transfer is not full day.
e.g. gateways
Tags Reader 10 3 1.48 4.44 3.33 9.99 5.735 17.205
Copyright © 2017 Tech Mahindra. All rights reserved. Total 253.82 3822.84 571.095 8601.39 983.56 14813.605 82
Cloud Based Elasticity
elasticity generally means the opposite – scaling down capacity or resources as they are no longer
needed.
Resources provisioning time[edit]
One potential problem is that elasticity takes time. A cloud virtual machine (VM) can be acquired at any
time by the user, however, it may take up to several minutes for the acquired VM to be ready to use.
The VM startup time is dependent on factors, such as image size, VM type, data center location,
number of VMs, etc
GGSN IPSEC
SMSC NNI
HLR
SGSN Internet
Radius &
Dia Internet
SGSN
Mediation
B/OSS
Internet
Portal
Connectivity
Sensors and IoT hub @ Edge Radio NW Interconnect User Access
Platform
NW
Queue
Transport
insecure transport.
IP Non IP
Integration of IT & IoT networks IoT devices must have adequate security controls, single
vulnerable device can leave the complete IT network open to attacker
Device Platform
Working with a leading European ODC for SMP & AMP Products
Telco for E2E Device Testing
Design & IoT Offerings Dev. &
of a leading US Telco
Testing Maint.
Solutions
Solutions
IoT Applications Testing on the in-house Centre for ODC for a Tier-1 Telco in
Testing on
SMP of a Global Telecom Giant Telcos and NA, Europe & India
Platforms
Enterprises
Packaged
Verticalized
Solutions
Vertical Solutions for India’s leading
Enterprise services company
Copyright © 2016
2017 Tech Mahindra. All rights reserved. 107
Partner Ecosystem
STRATEGIC PARTNERS
Networks
Field Middleware/
Services Platforms TELCO FOCUSSED PARTNERS
OUR PARTNER
ECOSYSTEM
VERTICAL SOLUTION PARTNERS
Devices &
Analytics
Sensors
Cloud
SMART
WASHROOM SMART CITY SMART CITY CONNECTED
SMART TOOL
CONSULTANCY IMPLEMENTATION IMPLEMENTATION MACHINES
Engine Oil
Enterprise Database
Air
Filter
Dealer Management
System
Fleet
Management
Application
DwAgent
Hybris – e Commerce & Omni Channel
Product
Copyright © 2017 Tech Mahindra. All rights reserved. 112
Bobcat - Solution
CRM
Trailering
Engine Speed Geo-
Warranty Management
fence
System
Engine Oil
Enterprise Database
Air
Filter
Dealer Management
System
UDP
Triggers
event notification
Amazon SQS
MQTT
Fleet
Management
Finite State Machine
Application Validation rules
DwAgent
Hybris – e Commerce & Omni Channel Complex business rules
Product
Copyright © 2017 Tech Mahindra. All rights reserved. 113
Case Study 2
Mobile Network
Gateway
Onsite
Hardware
Controller
Copyright © 2017 Tech Mahindra. All rights reserved. 115
Smart Lights
Previous Approach
Cloud Gateway
Management
Management
Identity &
Sensors & Notifications Service
Access
Device
Gateway
Data Storage
Integration
Dashboards & Applications
New Approach
Cloud Gateway
Integration
Management
Adaptation
Gateway Device
Scheduler
Device Data Storage
Application
MQTT To HTTP Conversion (if MQTT 1.TechM developed Adaptation Layer for MQTT to HTTP converter and
Broker is external to IMPACT) integrate external HTTP client to IG gateway
Device Meta data Storage 1. TechM integrated external RDBMS to store master and meta data
information of device
Time Series Data Storage 1. TechM integrate external No-SQL Data store-Cassandra
Cassandra MySQL
NorthBound
MQTT Client/Listener
MQTT
Message Broker
(RabbitMQ)
Separation of Concerns
Single Responsibility
Shared Pool Resources
NoSQL Design Standards
Principle of Least Knowledge
Don’t Repeat yourself(DRY)
Major revenue source for Telcos The cost of chipsets, modules and Expanded Internet connectivity.
in IoT revenues is still the devices are prohibitive at the moment. ITU estimates that 57% of the
connectivity where the ARPU is global population is connected to
not more that 5-10 USD IoT standards are not yet mature. the internet by 2019
Copyright © 2017 Tech Mahindra. All rights reserved.
Interoperability is missing. 121
Thank You
300–3000 MHz Television broadcasts, microwave oven, microwave devices/communications, radio astronomy, mobile phones, wireless
Ultra high frequency UHF
1 m – 100 mm LAN, Bluetooth, ZigBee, GPS and two-way radios such as land mobile, FRS and GMRS radios, amateur radio, satellite radio
3–30 GHz Radio astronomy, microwave devices/communications, wireless LAN, most modern radars, communications satellites, cable
Super high frequency SHF
100 mm – 10 mm and satellite television broadcasting, DBS, amateur radio, satellite radio
30–300 GHz Radio astronomy, high-frequency microwave radio relay, microwave remote sensing, amateur radio, directed-energy
Extremely high frequency EHF
10 mm – 1 mm weapon, millimeter wave scanner
Terahertz or Tremendously 300–3000 GHz Experimental medical imaging to replace X-rays, ultrafast molecular dynamics, condensed-matter physics, terahertz time-
THz or THF
high frequency 1 mm – 100 μm domain spectroscopy, terahertz computing/communications, remote sensing, amateur radio
https://en.wikipedia.org/wiki/Radio_spectrum
Copyright © 2017 Tech Mahindra. All rights reserved. 123
ZIGBEE and Z-WAVE
As a wireless mesh networking technology, ZigBee can be used in direct communications, but most applications are based on a star or
tree topology mesh network. A master coordinator node controls other connected nodes. If a node cannot communicate with another node,
the two may communicate by way of links to other nodes within range acting as repeaters. ZigBee can support up to 65k nodes.
ZigBee devices operate in the unlicensed industrial, scientific, and medical (ISM) bands. The most popular configuration is in the 2.4-GHz
band, where the standard defines sixteen 5-MHz channels of operation.
The Z-Wave wireless mesh networking technology enables any node to talk to other adjacent nodes directly or indirectly through available
relays. A master controller node controls any additional nodes. The nodes communicate directly with one another if they’re within range. If two
nodes that want to communicate aren’t within range, they can link with another node that both can access and exchange information. A Z-Wave
network can have up to 232 nodes. Multiple controllers can be set up to partition a network as required for different functions.