IoT Architecture
Introduction
Fabrice MULLER
Fabrice.Muller@univ-cotedazur.fr
2024 - 2025
-1-
Schedules
• Introduction of IoT Architecture
• IoT Framework used in Labs
• Part 1 : short course + Sensors, Input/Output lab
• Part 2 : short course + Sensors, I2C lab
• Part 3 : short course + WiFi Networking lab
• Part 4 : short course + Broker & MQTT protocol lab
• Evaluation : 1 written rating + 1 practical rating
-2-
Internet of Things (IoT)
• What is it ?
• Paradigm refers to a system of end-devices
• Interconnected with each other
• Large data is being generated and transmitted across several devices
• Equipped with computational capacity (smart objects)
• Specific point is used to collect and to combine all data
• Identifiable and enabled to transfer data over a network while requiring very little
human intervention
• The term “Internet of Things” was first used in 1999 by Kevin Ashton
• Explain possible benefits of using RFID technology in goods management
-3-
Internet of Things (IoT)
Connected objects to human value
03
INFOGRAPHICS: THE INTERNET OF THINGS - FROM CONNECTING DEVICES TO HUMAN VALUE, SOURCE: I-SCOOP
-4-
How many connected objects?
• Period between 2008–2009
• number of connected objects exceeded the world population
• In 2017
• About 20 billion connected objects
• In 2021
• About 35 billion connected objects
• Generates a market of about $500 billion
• In 2030
• Connected objects will exceed 125 billion
• Became widespread in everyday life
• Continuous technological developments
• considerable investments by companies Internet of Things (IoT) connected devices from 2015 to 2025 (in billions)
Reference: Alam, Tanweer. (2018). A Reliable Communication Framework
and Its Use in Internet of Things (IoT).
-5-
IoT Layers
• There is no single consensus on architecture for IoT To work at an
To cover all
edge or near
• 5 IoT Layers define the fundamentals of almost every IoT system the device to aspects of
collect protecting the
information IoT architecture
To derive information and decision-making analysis from data Business layer
To aid in the procedures of analytics, device control, and reporting
Edge Computing Layer
to end-users Application layer
Security layer
To control and to manage IoT levels to streamline data across the
Processing layer
system
To allow transferring data from the devices to cloud and vice-versa Connectivity/Transport layer
To deal with different aspects of gateways and networks
To manage smart devices across the system Perception layer
-7-
1- Perception layer
• Physical layer
• Sensors for sensing and gathering information about the environment
• The main function is to transform analog signals into the digital form and
vice versa
• Sensors
• Small devices or systems built to understand and detect the change in their
environment and further streamline information to their system
• Temperature sensors and thermostats, pressure sensors, light intensity detectors,
proximity detection, RFID tags
• Actuators
• To allow an electrical signal to be transformed into physical actions for a machine
• End Node = Sensors or Actuators
-8-
2- Connectivity/Transport layer (1)
• Also called Network layer
• Responsible for connecting to other smart things, network devices,
and servers
• Focus on Communication, 2 cases:
• Directly by either TCP or UDP/IP stack
• Gateways act as a link between Local Area Network (LAN) and Wide Area
Network (WAN)
End-Node LAN WAN
End-Node Gateway
End-Node
End-Node
Used in labs
-9-
2- Connectivity/Transport layer (2)
Some network technologies
• WiFi
• Most popular and versatile technique used across data-driven technologies Used in labs
• Ethernet
• To support fixed or permanent devices such as video cameras, gaming consoles, and security installations Used in labs
• Bluetooth
• Widely used technology suited mainly for communication between devices within a short range
• NFC (Near Field Communications)
• Communication between a very short distance of around 10 cm or less
• LPWAN (Low Power Wide Area Network)
• Designed and built to match the IoT usage across long distances
• Can last as much as 10 or more years while consuming low power
• ZigBee
• Consumes low power and can offer small data-sharing ability
• Capability to handle up to 65,000 nodes
• Cellular networks
• Suited for communication on a global scale with more trust and reliability
• LTE-M is Long Term Evolution for Machines (very high-speed exchange of data and smooth direct cloud communication)
• NB-IoT (NarrowBand) offers small data exchange using low-frequency channels
• …
- 10 -
2- Connectivity/Transport layer (3)
Messaging protocols
• To allow seamless data sharing
• Data Distribution Service (DDS)
• On top of transport layer in the OSI model
• Machine-to-machine (M2M) real-time messaging framework
• Advanced Message Queuing Protocol (AMQP)
• OSI layer: Application Layer
• Server protocol for servers via peer-to-peer data exchange
• Constrained Application Protocol (CoAP)
• OSI layer: Application Layer
• Protocol for constrained devices that use low power and low memory, such as wireless sensors
• Message Queue Telemetry Transport (MQTT) Used in labs
• OSI layer: Application Layer
• Messaging protocol standard for low-powered devices using TCP/IP for seamless data
communication
- 11 -
3- Processing layer
• Also called middleware Layer
• To store, to analyze, and to processes huge amounts of data
• To manage and to provide a diverse set of services to the upper layers (databases, cloud computing, and big
data processing)
• 2 main stages
• Data Accumulation
• Every device sends lot of data streams across the IoT network
• Separating the essential data from these large streams
• Data Abstraction
• Selected data is taken out from the large data for application layer to optimize their business procedures
• Collecting all the data from all IoT and non-IoT systems (CRM, ERP, & ERM)
• Using data virtualization to make data accessible from a single location
• Managing raw data in multiple forms
• Easy for using data for application and business layer !
- 12 -
Application & Business layers
• Application
• Define various applications in which the IoT can be deployed
• Smart homes, smart cities, and smart health
• Business
• To manage the whole IoT system, including applications, business and profit models,
and users’ privacy
• Data is further processed and analyzed to gather business intelligence
• Examples
• Business decision-making Softwares
• Device control and monitoring services
• Analytics solutions built with Machine Learning (ML) and Artificial Intelligence (AI)
• Mobile Application for further interactions
- 13 -
Edge Computing Layer
• Situations
• The size and numbers, latency for IoT framework becomes one of the major
hurdles
• Multiple devices tried connecting with the main center
• Bottleneck problems
• Delays for some procedures
• Edge Computing Layer
• To process and analyze the information close to the source as much as
possible
• 5G networks offer systems to connect with more devices at a lower latency
- 14 -
Security Layer
• Security is one of the main necessities of IoT architectures at each layer
• Device Security
• Secure boot process to avoid any malicious code running on a device
• Using Trusted Platform Module (TPM) chips in combination with cryptographic keys for
devices endpoint protections
• Cloud Security
• Multiple authorization factors and encryptions to avoid any data breach
• Device identity management
• Connection Security
• Must be encrypted from an end-to-end point
• Messaging protocols such as DDS (Data Distribution Service), AMQP (Advanced Message
Queuing Protocol), and MQTT are integrated to secure sensitive information from any breach
• Use of TSL (Transport Layer Security) cryptographic protocol
- 15 -
Most Common IoT Architectures
Main challenges
• Scalable: to manage the increasing number of devices and services
without degrading their performance
• Interoperable: devices from different vendors can cooperate to
achieve common goals
• Distributive: to allow creating of a distributed environment in which,
after being collected from different sources, data are processed by
different entities in a distributed way
• Able to operate with few resources: since objects have little
computing power
• Secure: not to allow unauthorized access
- 16 -
Internet of Things (IoT) Framework
Goal
• Transformation process of connecting our smart devices and objects
to network to perform efficiently and access remotely End-user applications
2 4
Smarter Devices in Network and Middleware that includes data
Gateway/Concentrator that allow applications
a different form storage spaces and advances
1 devices to be part of the IoT
(End-Nodes) predicting capabilities
WiFi Cellular
End 3
Device ETHERNET,
Gateway WIFI
Gateway
IoT Gateway IoT Analytics
End
Device
Cloud
Connectivity
ETHERNET, applications
ETHERNET, WIFI WIFI
End UART, I2C, SPI …
Device
Concentrator
Concentrator
Concentrator
- 17 -
End-Device / End-Node
Connectivity
1 Cellular
WiFi Sensors
• Also called End-node temperature
End-Node
• Perception layer
=
• End-Node Hardware Device
• Sensors + ESP32
• Actuators Software Device
• Sensors + Actuators End-Node
+
• Hardware part Communication with IoT Framework
• Knowledge on architecture
• Micro-controllers
• Sensor/Actuator behaviors Visual Studio Code Water level
• Communications (I2C, SPI, CAN, UART, ...)
• Software part
• Write applications (C, C++, µPython …)
• Configure the controller, sensors, actuators
• Understand of how an API works inside the micro-controllers stepper motor
• End-Node example
• ESP32 board + sensors
Actuator
- 18 -
IoT Gateway
2
ETHERNET, WIFI
• To manage the bidirectional data traffic between different
networks and protocols IoT Gateway
• To translate different network protocols and make sure
interoperability of the connected devices and sensors Cellular
WiFi
• To perform preprocessing, filtering of the collected data
from thousands of sensors locally before transmitting it to
the next stage
• To offer certain level of security for the network and End-Node
transmitted data with higher order encryption techniques
Parking space with sensors
Search for nearest
available parking
Send status to cloud
about availability Datacenter
IoT
Gateway
- 19 -
Concentrator & Bridge
2 IoT Gateway
• Also called IoT Edge Gateway
ETHERNET, WIFI
• The Concentrator is the communication bridge between UART, I2C, SPI …
• Several End-Nodes WiFi
• The IoT Gateway a LORA ESP32
• (1) Concentrator is a part of the IoT Gateway Concentrator
board acts as a
concentrator
• Considering the Concentrator as the IoT Gateway (dotted line = IoT Gateway)
• WiFi, 3/4/5G communications with End-Node (TCP/IP protocols)
• Example: WISE-5231M-4GE Intelligent IoT Concentrator
• (2) Concentrator is not included in the IoT Gateway
• Using I2C, SPI, UART local communication Cellular
• LORA, ESP-NOW communications with End-Node WiFi
• Example: iC880A-SPI LoRa® Concentrator
ESP32 WiFi
End-Node
WISE-5231M-4GE Intelligent IoT Concentrator End-Node
https://www.measurementsystems.co.uk/wise-5231m-4ge--intelligent-iot-concentrator-4g End-Node
End-Node
- Support Modbus TCP/RTU, SNMP, FTP and MQTT protocols
- Support 4G/3G wireless data communication
- Support Connection with IoT Cloud Platform (Microsoft Azure and IBM Bluemix)
- No more programming, Web pages provided for control logic editing
LILYGO®TTGO
LORA32 868/915Mhz - 20 -
ESP32 LoRa
Concentrator & Bridge
Example - iC880A-SPI LoRa® Concentrator
2
• LoRaWAN® gateway https://wireless-solutions.de/products/lora-solutions-by-imst/radio-modules/ic880a-spi/
• To provide robust communication
between a LoRa® gateway and a
huge amount of LoRa® end-nodes Embedded Linux board:
Raspberry Pi, Beagle Bone, Banana Pi
• To be able to receive up to 8 LoRa®
packets simultaneously sent with
different spreading factors and on
different channels
• Embedded Linux boards
- 21 -
IoT Cloud
3
• Why?
• IoT creates massive data from devices, applications and users
• To manage data in an efficient way
• IoT cloud offers tools to collect, process, manage and store huge
amount of data in real time
• IoT cloud is a sophisticated high-performance network of servers
optimized to perform high speed data processing of billions of
devices, traffic management and deliver accurate analytics
• Distributed database management systems are one of the most
important components of IoT cloud
- 22 -
End-user applications
Analytics
4
• Smart analytics solutions are inevitable for IoT system for management and
improvement of the entire system
• To help engineers to find out irregularities in the collected data
• To act fast to prevent an undesired scenario
• To make decisions for their future business opportunities
• Example: Apache Kafka https://www.confluent.io/fr-fr/blog/iot-streaming-use-cases-with-kafka-mqtt-confluent-and-waterstream/
• Pre-processing and filtering as well as
intermediate storage
• Kafka ecosystem processes analytical
workloads
• Mission-critical transactional data sets
with zero downtime and zero data loss
TensorFlow is an open-source Machine Learning (ML) tool developed by Google
- 23 -
End-user applications
User interface
4
• User interfaces are the visible, small part of the IoT Node-RED User Interface
system which can be accessible by users
• Must have well-designed user interface for a minimum
effort for users and to encourage more interactions
• Example: Node-RED Used in labs
• Open-Source flow based on tool, IoT platform and Dashboard
developed by IBM
• To build easily applications by joining together black box
functions (nodes) using a web interface
• To build IoT and Home control dashboards and automations
Programming view
javascript
- 24 -
Cloud Frameworks
4
• AWS IoT (Amazon Web Services)
All frameworks are supported by ESP-IDF framework !
• Azure IoT (Microsoft)
• Google IoT Core (Google)
Build and train ML models in the cloud with Google IoT Core
End-Nodes
sensors
actuators
https://cloud.google.com/iot-core
- 25 -
Where using IoT Applications?
• Industrial IoT
• Include various types of devices for industrial use
• Commercial IoT
• IoT Healthcare, Smart City …
• Consumer IoT
• smartphones, smart car, smartwatch …
• Current technologies can now be defined as mature
• Challenge: The miniaturization and integration of components/sensors/actuators
• Can expand with the integration of silicon components into metallic or fabric materials
• To quickly harvest the necessary energy from their environment
• To withstand harsh conditions (humidity, temperature, shock and vibration …)
• Need to be extremely reliable, and guarantee very high and consistent quality
• Ability of smart devices to self-configure and organize themselves
• Challenge: Find standard protocols to identify objects uniquely, MATTER
• founded by Google, Amazon and Apple, Zigbee Alliance
• Old name: Connected Home over IP (CHIP)
• Smart home interoperability protocol
• Built upon Internet Protocol (IP)
• Reference: https://github.com/project-chip/connectedhomeip
• Challenge: Critical field about security to find solutions to secure connected objects
- 26 -
References
• Internet of Things: A General Overview between Architectures, Protocols and Applications, Marco Lombardi,
Francesco Pascale,and Domenico Santaniello, MDPI, https://doi.org/10.3390/info12020087
• What is IoT framework? List top 10 Open source IoT frameworks, https://iotdunia.com/what-is-iot-
framework-list-top-10-open-source-iot-frameworks/
• The Internet of Things (IoT) - An ever changing industry, https://www.jessevandoren.com/en/internet-of-
things-iot/
• What are the major components of Internet of Things?, https://www.rfpage.com/what-are-the-major-
components-of-internet-of-things/
• 7 IOT Layers That You Should Know in 2021, https://www.jigsawacademy.com/4-layers-of-the-internet-of-
things/
• Steve’s Node-Red Guide, https://stevesnoderedguide.com/
• IoT Core, https://cloud.google.com/iot-core
• Alam, Tanweer. (2018). A Reliable Communication Framework and Its Use in Internet of Things (IoT).
- 27 -