Unit 1
Unit 1
Introduction to IoT
Internet: Interconnected computer networks, based on a standard communication protocol (TCP/IP)
Things: any unique object in the world
Internet of Things: connected objects uniquely addressable, based on standard communication protocol
IoT Big Data Extract knowledge (offering value-added services)
The Internet of Things ( IoT ), also called Internet of Everything, is the network of physical objects or
"things" embedded with electronics, software, sensors, and connectivity to enable objects to exchange
data with the production, operator and/or other connected devices based on the infrastructure of
International Telecommunication Union's Global Standards Initiative. The Internet of Things allows
objects to be sensed and controlled remotely across existing network infrastructure, creating
opportunities for more direct integration between the physical world and computer-based systems, and
resulting in improved efficiency, accuracy and economic benefit.
Example of IoT :
• Imagine when you enter your house, your car send signals to open garage door, turn on air
condition/ heat system, lights, TV, Stove, etc. to find everything ready for you, making your life
easier and save your money buy saving energy.
• Internet-Connected Bed to track your sleeping pattern and make your bed auto-adjusts itself.
• Internet-Connected onesies to track baby’s respiration, pressure, moisture and temperature.
Architectural Overview
1. CISCO seven layered Reference model
Level 1 - Physical Devices and Controllers: This represents the hardware in IoT, such as sensors,
devices, and controllers. These are the things in IoT, including machines, sensors, and other
devices.
Level 2 - Connectivity: This level manages communication between devices and processing units,
allowing data to be transferred and managed across systems.
Level 3 - Edge Computing: Here, data analysis and transformation occur closer to the source, reducing
the amount of raw data sent to the cloud by filtering and processing some data locally.
Level 4 - Data Accumulation: This layer involves data storage, where data from various devices is
aggregated and stored for future use.
Level 5 - Data Abstraction: This level involves organizing and providing access to the data. Data
aggregation, abstraction, and transformation are handled here to facilitate analysis.
Level 6 - Application: This layer deals with the analysis and reporting of data, making it available for
decision-making. This is where control systems and other applications come into play.
Level 7 - Collaboration and Processes: This is the highest level, involving people and business
processes that utilize the insights gained from IoT data to make informed decisions and
coordinate actions.
1. With in existing work for deriving requirements and creating architectures or reference models
for IoT and M2M, three primary sources can been identified.
2. Two of them are the larger European 7th Framework Program research projects, SENSEI (2013)
and IoT-A (2013), the third being the result of a standardization activity driven by ETSI in their
Technical Committee (TC) M2M (ETSI M2M TC 2013). These sources have been selected, as
they represent state-of-the-art in terms of creating more complete architectures for the IoT and
M2M.
3. The approach taken in SENSEI was to develop an architecture and technology building blocks
that enable a “Real World integration in a future Internet.”
4. The telecommunications industry, meanwhile, has focused on defining a common service core
for supporting various M2M applications, and that is agnostic to underlying networks in ETSI
TC M2M
5. Finally, the approach taken in IoT-A differs from the two approaches above in the sense that
instead of defining a single architecture, a reference architecture is created, captured in what the
IoT-A refers to as the Architectural Reference Model (ARM).
Design Principles
1. Design for reuse of deployed IoT resources across application domains.
2. Design for a set of support services that provide open service-oriented capabilities and can be
used for application development and execution.
3. Design for different abstraction levels that hide underlying complexities and heterogeneities.
4. Design for sensing and actors taking on different roles of providing and using services across
different business domains and value chains.
5. Design for ensuring trust, security, and privacy.
6. Design for scalability, performance, and effectiveness.
7. Design for evolvability , heterogeneity, and simplicity of integration.
8. Design for simplicity of management.
9. Design for different service delivery models.
10. Design for lifecycle support.
Basics of Networking
● Networking technologies enable IoT devices to communicate with other devices, applications,
and services running in the cloud. ·
● The internet relies on standardized protocols to ensure communication between heterogeneous
devices is secure and reliable. ·
● Standard protocols specify rules and formats that devices use to establish and manage networks
and transmit data across those networks. ·
● Networks are built as a “stack” of technologies. A technology such as Bluetooth LE is at the
bottom of the stack. ·
● While others such as such as IPv6 technologies (which is responsible for the logical device
addressing and routing of network traffic) are further up the stack.
● Technologies at the top of the stack are used by the applications that are running on top of those
layers, such as message queuing technologies.
● The Open Systems Interconnection (OSI) model is an ISO-standard abstract model is a stack of
seven protocol layers. ·
● From the top down, they are: application, presentation, session, transport, network, data link and
physical. TCP/IP, or the Internet Protocol suite, underpins the internet, and it provides a
simplified concrete implementation of these layers in the OSI model.
● The TCP/IP model includes only four layers, merging some of the OSI model layers:
Network Access & Physical Layer :This TCP/IP Layer subsumes both OSI layers 1 and 2. The
physical (PHY) layer (Layer 1 of OSI) governs how each device is physically connected to the
network with hardware, for example with an optic cable, wires, or radio in the case of wireless
network like wifi IEEE 802.11 a/b/g/n). At the link layer (Layer 2 of OSI), devices are identified
by a MAC address, and protocols at this level are concerned with physical addressing, such as
how switches deliver frames to devices on the network.
Internet Layer :This layer maps to the OSI Layer 3 (network layer). OSI Layer 3 relates to
logical addressing. Protocols at this layer define how routers deliver packets of data between
source and destination hosts identified by IP addresses. IPv6 is commonly adopted for IoT device
addressing.
Transport Layer: The transport layer (Layer 4 in OSI) focuses on end-to-end communication
and provides features such as reliability, congestion avoidance, and guaranteeing that packets
will be delivered in the same order that they were sent. UDP (User Datagram protocol) is often
adopted for IoT transport for performance reasons.
Application Layer: The application layer (Layers 5, 6, and 7 in OSI) covers application-level
messaging. HTTP/S is an example of an application layer protocol that is widely adopted across
the internet
A) Link Layer / Physical Layer : Protocols determine how data is physically sent over the
network‘s physical layer or medium. Local network connect to which host is attached. Hosts
on the same link exchange data packets over the link layer using link layer protocols. Link
layer determines how packets are coded and signaled by the h/w device over the medium to
which the host is attached
Protocols:
802.3-Ethernet: IEEE802.3 is collection of wired Ethernet standards for the link layer.
Eg : 802.3 uses co-axial cable; 802.3i uses copper twisted pair connection; 802.3j uses
fiber optic connection; 802.3ae uses Ethernet over fiber.
802.11-WiFi: IEEE802.11 is a collection of wireless LAN(WLAN) communication
standards including extensive description of link layer. Eg : 802.11a operates in 5GHz
band, 802.11b and 802.11g operates in 2.4GHz band, 802.11n operates in 2.4/5GHz
band, 802.11ac operates in 5GHz band, 802.11ad operates in 60Ghzband. ·
802.16 - WiMax : IEEE802.16 is a collection of wireless broadband standards including
exclusive description of link layer. WiMax provide data rates from 1.5 Mb/s to 1Gb/s. ·
802.15.4-LR-WPAN: IEEE802.15.4 is a collection of standards for low rate wireless
personal area network(LR-WPAN). Basis for high level communication protocols such
as ZigBee. Provides data rate from 40kb/s to250kb/s. ·
2G/3G/4G-Mobile Communication: Data rates from 9.6kb/s(2G) to up
to100Mb/s(4G).
D) Application Layer: Defines how the applications interface with lower layer protocols to
send data over the n/w. Enables process-to-process communication using ports.
Protocols: ·
HTTP: Hyper Text Transfer Protocol that forms foundation of WWW. Follow request
response model Stateless protocol. ·
CoAP: Constrained Application Protocol for machine-to-machine(M2M) applications
with constrained devices, constrained environment and constrained n/w. Uses client
server architecture. ·
WebSocket: allows full duplex communication over a single socket connection. ·
MQTT: Message Queue Telemetry Transport is light weight messaging protocol
based on publish-subscribe model. Uses client server architecture. Well suited for
constrained environment. ·
XMPP: Extensible Message and Presence Protocol for real time communication and
streaming XML data between network entities. Support client-server and server-server
communication. ·
DDS: Data Distribution Service is data centric middleware standards for device-to-
device or machine-to-machine communication. Uses publish-subscribe model. ·
AMQP: Advanced Message Queuing Protocol is open application layer protocol for
business messaging. Supports both point-to-point and publish-subscribe model
● An M2M area network comprises of machines( or M2M nodes) which have embedded network
modules for sensing, actuation and communicating various communication protocols can be used
for M2M LAN such as ZigBee, Bluetooth, M-bus, Wireless M-Bus etc., These protocols provide
connectivity between M2M nodes within an M2M area network.
● The communication network provides connectivity to remote M2M area networks. The
communication network provides connectivity to remote M2M area network. The
communication network can use either wired or wireless network(IP based). While the M2M are
networks use either Proprietary or non-IP based communication protocols, the communication
network uses IP-based network. Since non-IP based protocols are used within M2M area
network, the M2M nodes within one network cannot communicate with nodes in an external
network.
● To enable the communication between remote M2M are network, M2M gateways are used.
Device types:
● There are no clear criteria today for categorizing devices, but instead there is more of a sliding
scale. we group devices into two categories
Basic Devices:
● Devices that only provide the basic services of sensor readings and/or actuation tasks, and in
some cases limited support for user interaction.
● LAN communication is supported via wired or wireless technology, thus a gateway is needed to
provide the WAN connection.
Advanced Devices:
● In this case the devices also host the application logic and a WAN connection.
● They may also feature device management and an execution environment for hosting multiple
applications. Gateway devices are most likely to fall into this category.
Gateways:
● Gateway provides a bridge between different communication technologies which means we can
say that a Gateway acts as a medium to open up connections between the cloud and
controller(sensors/devices) in Internet of Things (IoT).
● With the help of gateways, it is possible to establish device-to-device or device-to-cloud
communication.
● A gateway can be a typical hardware device or software program. It enables a connection
between the sensor network and the Internet along with enabling IoT communication, it also
performs many other tasks such as this IoT gateway performs protocol translation, aggregating
all data, local processing, and filtering of data before sending it to the cloud, locally storing data
and autonomously controlling devices based on some inputted data, providing additional device
security.
● The below figure shows how IoT Gateways establish communication between sensors and the
cloud (Data System):
● As IoT devices work with low power consumption(Battery power) in other words they are
energy constrained so if they will directly communicate to cloud/internet it won’t be effective in
terms of power.
So they communicate with Gateway first using short range wireless transmission
modes/network like ZigBee, Bluetooth, etc as they consume less power or they can also be
connected using long range like Cellular and WiFi etc.
Then Gateway links them to Internet/ cloud by converting data into a standard protocol like
MQTT. using Ethernet, WiFi / Cellular or satellite connection. And in mostly Gateway is
Mains powered unlike sensor nodes which are battery powered.
In practice there are multiple Gateway devices. Let’s think about a simple IoT gateway, then
our smart phone comes into picture as it can also work as a basic IoT gateway when we use
multiple radio technologies like WiFi, Bluetooth, Cellular network of smart phone to work on
any IoT project in sending and receiving data at that time this also acts as a basic IoT
Gateway.
Data management
● The gateway includes two functions viz. data management and consolidation, and connected
device management. The following subsections describe the framework for data enrichment and
consolidation.
● Gateway includes the provisions for one or more of the following functions: transcoding and data
management. Following are data management and consolidation functions:
Transcoding
Privacy, security
Integration
Compaction and fusion
Transcoding:
Transcoding means data adaptation, conversion and change of protocol, format or code using software.
For example, use of transcoding enables the message request characters to be in ASCII format at the
device and in Unicode at the server. It also enables the use of XML format database at the device, while
the server has a DB2, Oracle or any other database. Transcoding involves formats, data and code
conversion from one end to another when the multimedia data is transferred from a server to the mobile
TV, Internet TV, VoIP phone or smartphone as the client devices. Transcoding applications also involve
filtering, compression or decompression.
Privacy :
Privacy is an aspect of data management and must be remembered while designing an application. The
design should ensure privacy by ensuring that the data at the receiving end is considered anonymous
from an individual or company. Following are the components of the privacy model:
● Devices and applications identity-management
● Authentication
● Authorization
● Trust
● Reputation
Integration: Refers to the process of combining and coordinating various IoT devices, platforms, and
systems to efficiently collect, store, process, and analyze the vast amounts of data generated by IoT
devices. It involves multiple layers and technologies to ensure seamless interaction between devices,
applications, and data systems.
compaction and fusion: Essential processes for optimizing data storage, reducing redundancy, and
improving the efficiency of data transmission and analysis. Both techniques play a critical role in
managing the massive amount of data generated by IoT devices