Short Notes IOT
Short Notes IOT
Department of a Computer Science and Engineering (AI and ML), TKR college of engineering
and technology, Meerpet, Balapur, Saroornagar, Hyderabad - 500097, Telangana, India.
drhussainbinkhalid@gmail.com
INTERNET OF THINGS
UNIT - I
1.1 Introduction
The Internet of Things (IoT) represents the whole process from collecting data,
processing it, taking an action corresponding to the significance of this data, to storing
The Internet of Things has become a widely spread concept in recent years. The main
reason for this is the need to computerize and control most of the surrounding objects
Smart Parking Sensors: These sensors detect available parking spots and
easily.
Smart Traffic Lights: These adjust their signals based on real-time traffic
Wearable Fitness Trackers: Devices like Fitbit monitor heart rate, steps, and
sleep patterns in real time and sync the data to a mobile app.
virtual "things" have identities, physical attributes, and virtual personalities. These
devices use intelligent interfaces and are seamlessly integrated into information
networks, often communicating data associated with users and their environments.
Characteristics of IoT: i) Dynamic & Self-Adapting: IoT devices and systems can
dynamically adapt to changing contexts and take actions based on their operating
switch modes between day and night vision based on the time of day, adapting
number of devices to work together seamlessly. These devices can set up networking,
fetch software updates, and reconfigure themselves with minimal manual intervention.
Example: Smart home assistants like Alexa and Google Home automatically
iv) Unique Identity: Each IoT device has a unique identity, such as an IP address,
v) Integrated into Information Network: IoT devices are integrated into information
networks, allowing them to communicate and exchange data with other devices and
systems.
Example: Smart thermostats like Nest learn user preferences and adjust
applications.
Applications of IoT:
Home
Cities
Environment
Energy
Retail
Logistics
Agriculture
Industry
The physical design of IoT refers to the actual devices and technologies used to
implement IoT solutions. These devices include sensors, actuators, embedded systems,
and communication interfaces that enable data collection, transmission, and processing.
Real-time Example:
Smart Home Devices: IoT-enabled lights, thermostats, and security systems that
The "things" in IoT refer to IoT devices that have unique identities and perform remote
sensing, actuating, and monitoring capabilities. These devices exchange data with other
connected devices and applications. They collect data from other devices and process it
An IoT device may consist of several interfaces for communication with other devices,
Real-time Example:
Smart Wearables: Devices like smartwatches and fitness bands use sensors to track
Exchange data with other connected devices and applications (directly or indirectly).
Collect data from other devices and process the data locally, or
Send the data to centralized servers or cloud-based application backends for processing
the data, or
Perform some tasks locally and other tasks within the IoT infrastructure, based on
temporal and space constraints.
An IoT device may consist of several interfaces for connections to other devices, both
wired and wireless:
LED lights, automobile and industrial machines. The following diagram shows different
The protocol consists of Link Layer, Network Layer, Transport Layer and Application
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
Protocols:
layer. Eg: 802.3 uses co-axial cable; 802.3i uses copper twisted pair connection;
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.
including exclusive description of link layer. WiMax provide data rates from
to100Mb/s(4G).
B) Network/Internet Layer
Responsible for sending IP datagrams from source n/w to destination n/w. Performs the
host addressing and packet routing. Datagrams contains source and destination
address.
Protocols:
IPv4: Internet Protocol version4 is used to identify the devices on a n/w using a
IPv6: Internet Protocol version6 uses 128 bit address scheme and allows 2**128
addresses.
6LOWPAN:(IPv6overLowpowerWirelessPersonalAreaNetwork)operates in
2.4 GHz frequency range and data transfer 250 kb/s.
C) Transport Layer
Provides end-to-end message transfer capability independent of the underlying n/w. Set
up on connection with ACK as in TCP and without ACK as in UDP. Provides functions
such as error control, segmentation, flow control and congestion control. Protocols:
TCP: Transmission Control Protocol used by web browsers(along with HTTP and
collapse.
D) Application Layer: Defines how the applications interface with lower layer
using ports.
Protocols:
HTTP: Hyper Text Transfer Protocol that forms foundation of WWW. Follow
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-
model
The logical design of IoT refers to an abstract represent of entities and processes
i) IoT Functional Blocks ii) IoT Communication Models iii) IoT Comm. APIs
Provide the system the capabilities for identification, sensing, actuation, communication
and management.
Device: An IoT system comprises of devices that provide sensing, actuation,
Services: for device monitoring, device control services, data publishing services and
Application: IoT application provide an interface that the users can use to control
i) Request-Response Model:
In which the client sends request to the server and the server replies to requests. Is a
others.
Involves publishers, brokers and consumers. Publishers are source of data. Publishers
send data to the topics which are managed by the broker. Publishers are not aware of
the consumers. Consumers subscribe to the topics which are managed by the broker.
When the broker receives data for a topic from the publisher, it sends the data to all the
subscribed consumers.
In which data producers push data to queues and consumers pull data from the queues.
Producers do not need to aware of the consumers. Queues help in decoupling the
iv)Exclusive Pair:
It is bi-directional, fully duplex communication model that uses a persistent connection
between the client and server. Once connection is set up it remains open until the client
send a request to close the connection. Is a stateful communication model and server is
SENSORS
Definition:
A sensor is a device that detects physical changes (like temperature, pressure, motion) and
converts them into electrical signals for a system to process.
Example:
A thermometer detects temperature and converts it into an electrical signal.
Characteristics of Sensors:
Classification of Sensors
ACTUATORS
Definition:
An actuator is a device that converts electrical signals into physical actions (motion, heat,
force, etc.). It takes input from a system and produces an output that affects the environment.
Example:
Types of Actuators:
1. Hydraulic Actuators
o Use fluid pressure to create motion.
o Mostly produce linear movement (back-and-forth motion).
o Found in car lifts, heavy machinery, and exercise machines (steppers).
2. Pneumatic Actuators
o Use compressed air or gas to generate mechanical movement.
o Known for precise motion control (useful for start-stop actions).
o Found in bus brakes, pressure sensors, and industrial automation.
3. Electric Actuators
o Operate using electricity.
o Offer high precision and efficiency.
o Used in electric cars, robots, and factory machinery.
4. Thermal & Magnetic Actuators
o Use heat or magnetic fields to create motion.
o Operate using the Joule effect or Lorentz force (magnetic field motion).
o Found in automated systems, smart materials, and industrial tools.
5. Mechanical Actuators
o Work using gears, pulleys, or levers.
o Convert manual force into mechanical movement.
o Examples: Rack-and-pinion steering, pulleys, screw jacks.
6. Soft Actuators
o Made of flexible materials (e.g., polymers).
o Used in delicate operations like fruit harvesting and biomedical applications.
o Mimic natural movements, making them useful for robotics.
UNIT II
INTRODUCTION
Machine-to-machine (M2M) is a technology that uses a device attached to a machine to
capture an event which is relayed through a mobile phone or fixed line network to an
application that translates the event into meaningful information. The Internet of Things
(IoT) is the next generation of the Internet based on the Internet Protocol (IP).
• Term which is often synonymous with IoT is Machine-to-Machine (M2M).
• IoT and M2M are often used interchangeably.
M2M
Machine-to-Machine (M2M) refers to networking of machines (or devices) for the
purpose of remote monitoring and control and data exchange.
M2M System Architecture :
The following diagram shows the end-to-end architecture of M2M systems comprises of
M2M area networks, communication networks and application domain.
An M2M area network comprises of machines ( or M2M nodes) which have embedded
hardware modules for sensing, actuation and communication.
Various communication protocols can be used for M2M LAN such as ZigBee,
Bluetooth, M-bus, Wireless M-Bus, Powerline communication(PLC), 6LoWPAN, IEEE
802.15.4 etc.., These protocols provide connectivity between M2M nodes within an
M2M area network.
To enable the communication between remote M2M are network, M2M gateways are
used.
Works as a proxy, making all devices in the local network appear as virtualized
(standardized) nodes to external systems.
The way M2M systems collect, store, and analyze data is customized for different
use cases.
3.2 Difference between IoT and M2M
i)Communication Protocols:
M2M and IoT can differ in how the communication between the machines or
devices happens.
Commonly uses M2M protocols include ZigBee, Bluetooth, ModBus, M-Bus,
WirelessM-Bustec.,
In IoT uses HTTP, CoAP, WebSocket, MQTT,XMPP,DDS,AMQPetc.,
M2M uses either proprietary or non-IP based communication
The focus of communication in M2M is usually on the protocols below the
network layer.
The focus of communication in IoT is usually on the protocols above the network
layer.
M2M:
o Data is stored locally in on-premises storage (e.g., company servers).
o Used in specific point solutions like diagnostics or service management.
IoT:
o Data is stored in the cloud (public, private, or hybrid).
o The system analyzes data in real-time and stores results in cloud
databases.
o Cloud applications visualize the data and send control commands to
connected devices.
3. Applications
M2M Applications:
o Data is used by local (on-premises) applications like diagnostic tools,
service management, and enterprise software.
IoT Applications:
o Data is used by cloud-based applications, including analytics, enterprise
management, and remote monitoring.
o IoT handles massive amounts of data, using real-time and batch
processing for advanced insights.
Ease of Use
These requirements help network operators efficiently manage, configure, and secure their
networks. �
• Software-based SDN controllers maintain a unified view of the network and make
configuration, management and provisioning simpler.
• The underlying infrastructure in SDN uses simple packet forwarding hardware as
opposed to specialized hardware in conventional networks.
• Control plane is the part of the network that carries the payload data traffic.
Conventional Network are getting increasingly complex with more and more protocols
being implemented. To improve link speeds and reliability. Interoperability is limited due
to the lack of standard and open interfaces . Network devices use proprietary hardware
and software and have slow product life cycles limiting innovation. The conventional
network were well suited for static traffic patterns and had large number of protocols
designed for specific applications
The virtualization technology used in cloud computing environment has increase the
number of virtual host requiring network access. IoT applications hosted in the cloud are
distributed across multiple virtual machines that require exchange of traffic. The
analytics components of IoT applications run distributed algorithms on a large number
of virtual machines and require huge amount of data exchange between virtual
machines
SDN Architecture
Figure shows the SDN Architecture and SDN Layers in which the control and data planes are
decoupled and the network controller is centralized
Key elements of SDN:
With decoupled control and data planes and centralized network controller, the network
administrators can rapidly configure the network. SDN applications can be deployed
through programmable open APIs. This speeds up innovation as the network
administrator no longer need to wait for the device vendors to embed new features in
their proprietary hardware
• Programmable OpenAPIs
SDN architecture supports programmable open APIs for interface between the SDN
application and control layers (Northbound interface). With these open APIs various
network services can be implemented, such as routing, quality of service (QOS) access
control etc.,
SDN architecture uses a standard communication interface between the control and
infrastructure layers (Southbound interface). OpenFlow, which is defined by the Open
Networking Foundation (ONF) is the broadly accepted SDN protocol for the Southbound
interface. With openflow, the forwarding plane of the network devices can be directly
access and manipulated. Openflow uses the concept of flows to identify network traffic
based on predefined match rules.
Figure 1: the components of an Open flow switch comprising of one or more flow
table and group table
Figure 2 shows the example of Openflow table
NFVI includes compute, network and storage resources that are virtualized.
Home Gateway.
3.5 NEED FOR IOT SYSTEMS MANAGEMENT
Automating Configuration
Improved Reliability
IoT systems involve multiple devices (sensors, actuators, software, and networks) that
collect data or perform actions. Managing them effectively is crucial for smooth
operation.
1. Automating Configuration
o Ensures all devices have the same settings, avoiding manual errors.
3. Improving Reliability
4. System-Wide Configuration
o Ensures all devices update at the same time.
o Prevents errors caused by some devices using old settings while others
use new ones.
o Uses an "all or nothing" method → If one update fails, the whole update is
rolled back.
3.8 NETCONF
network devices
• NETCONF uses XML-encoded Remote Procedure Calls (RPCs) for framing request
and
response messages.
• The RPC layer provides mechanism for encoding of RPC calls and notifications.
• NETCONF provides various operations to retrieve and edit configuration data from
network devices.
• The Content Layer consists of configuration and state data which is XML-encoded.
• The schema of the configuration and state data is defined in a data modeling language
called YANG.
3.9 YANG
YANG is a data modeling language used to model configuration and state data
manipulated by the NETCONF protocol
• YANG modules contain the definitions of the configuration data, state data, RPC calls
that
• YANG modules defines the data exchanged between the NETCONF client and server.
• A module comprises of a number of 'leaf' nodes which are organized into a
hierarchical
tree structure.
• The 'leaf' nodes are specified using the 'leaf' or 'leaf-list' constructs.
• YANG can model both configuration data and state data using the 'config' statement.
• The toaster YANG module begins with the header information followed by identity
declarations which define various bread types.
• Each leaf node definition has a type and optionally a description and default value.
• Management System
• Management API
• Transaction Manager
• Rollback Manager
• Configuration Validator
• Configuration Database
• Configuration API
Connectivity refers to the technologies, protocols, and methods that enable communication
between devices, applications, and networks. These technologies are essential for IoT
(Internet of Things), cloud computing, and modern networking.
⃣ Network Types
⃣ Communication Technologies
� Z-Wave
� IP (Internet Protocol)
Conclusion
Important questions
1. _______of the IoT architecture is responsible for collecting data directly from the
environment.
7. ______ is responsible for collecting data from the physical environment in IoT.
8. The two main types of IoT design are ______ and ______.
9. ________is responsible for forwarding packets based on rules defined by the controller.
18. _____ is technique that allows an IoT device to connect multiple networks.
19. ______ refers to the technology used for connecting IoT devices.
Multiple choice
9. In IoT networks, which of the following is NOT typically an LPWAN (Low Power Wide
Area Network) technology?
17. Which protocol is widely used for lightweight messaging in IoT applications?
A) FTP
B) MQTT
C) HTTP
D) SMTP
18._______ is responsible for the integration of LoWPAN devices with internet leveraging.
A) ieftnfc
b) ieft 6lowpan
c) ieft/nfc
d) rfid/nfc
19. Which of the following is an IoT connectivity technology?
A) ZigBee
B) Ethernet
C) DNS
D) DHCP
Questions: