Unit 5 - IoT
Unit 5 - IoT
IoT Protocols
IoT protcols help to establish Communication between IoT Device
(Node Device) and Cloud based Server over the Internet. It help to sent
commands to IoT Device and received data from an IoT device over the
Internet. An image is given below. By this image you can understand
which protocols used.
LINK LAYER
Link layer protocols determine how data is physically sent over the network’s physical layer
or medium (Coxial calbe or other or radio wave). This Layer determines how the packets are
coded and signaled by the hardware device over the medium to which the host is attached
(eg. coxial cable).
Here we explain some Link Layer Protocols:
802.3 – Ethernet : Ethernet is a set of technologies and protocols that are used primarily in
LANs. It was first standardized in 1980s by IEEE 802.3 standard. IEEE 802.3 defines the
physical layer and the medium access control (MAC) sub-layer of the data link layer for
wired Ethernet networks. Ethernet is classified into two categories: classic Ethernet and
switched Ethernet.
802.11 – WiFi : IEEE 802.11 is part of the IEEE 802 set of LAN protocols, and specifies the
set of media access control (MAC) and physical layer (PHY) protocols for implementing
wireless local area network (WLAN) Wi-Fi computer communication in various frequencies,
including but not limited to 2.4 GHz, 5 GHz, and 60 GHz frequency bands.
LINK LAYER
802.16 – Wi-Max : The standard for WiMAX technology is a standard for Wireless
Metropolitan Area Networks (WMANs) that has been developed by working group number
16 of IEEE 802, specializing in point-to-multipoint broadband wireless access.
802.15.4 -LR-WPAN : A collection of standards for Low-rate wireless personal area
network. The IEEE’s 802.15.4 standard defines the MAC and PHY layer used by, but not
limited to, networking specifications such as Zigbee®, 6LoWPAN, Thread, WiSUN and
MiWi™ protocols. The standards provide low-cost and low-speed communication for power
constrained devices.
2G/3G/4G- Mobile Communication : These are different types of telecommunication
generations. IoT devices are based on these standards can communicate over the celluer
networks.
NETWORK LAYER
Responsible for sending of IP datagrams from the source network to the destination network. Network layer
performs the host addressing and packet routing. We used IPv4 and IPv6 for Host identification. IPv4 and IPv6 are
hierarchical IP addrssing schemes.
IPv4 :
An Internet Protocol address (IP address) is a numerical label assigned to each device connected to a computer
network that uses the Internet Protocol for communication. An IP address serves two main functions: host or network
interface identification and location addressing. Internet Protocol version 4 (IPv4) defines an IP address as a 32-bit
number. However, because of the growth of the Internet and the depletion of available IPv4 addresses, a new version
of IP (IPv6), using 128 bits for the IP address, was standardized in 1998. IPv6 deployment has been ongoing since
the mid-2000s.
IPv6 : Internet Protocol version 6 (IPv6) is successor of IPv4. IPv6 was developed by the Internet Engineering
Task Force (IETF) to deal with the long-anticipated problem of IPv4 address exhaustion. In December 1998, IPv6
became a Draft Standard for the IETF, who subsequently ratified it as an Internet Standard on 14 July 2017. IPv6
uses a 128-bit address, theoretically allowing 2 128, or approximately 3.4×1038 addresses. Source – wikipedia
6LoWPAN : It is an acronym of IPv6 over Low-Power Wireless Personal Area Networks. 6LoWPAN is the name of
a concluded working group in the Internet area of the IETF. This protocol allows for the smallest devices with
limited processing ability to transmit information wirelessly using an internet protocol. 6LoWPAN can communicate
with 802.15.4 devices as well as other types of devices on an IP network link like WiFi.
TRANSPORT LAYER
This layer provides functions such as error control, segmentation, flow control and
congestion control. So this layer protocols provide end-to-end message transfer capability
independent of the underlying network.
TCP : TCP (Transmission Control Protocol) is a standard that defines how to establish and
maintain a network conversation through which application programs can exchange data.
TCP works with the Internet Protocol (IP), which defines how computers
send packets of data to each other. Together, TCP and IP are the basic rules defining the
Internet. The Internet Engineering Task Force (IETF) defines TCP in the Request for
Comment (RFC) standards document number 793.
UDP : User Datagram Protocol (UDP) is a Transport Layer protocol. UDP is a part of
Internet Protocol suite, referred as UDP/IP suite. Unlike TCP, it is unreliable and
connectionless protocol. So, there is no need to establish connection prior to data transfer.
APPLICATION LAYER
Application layer protocols define how the applications interface with the lower layer
protocols to send over the network.
HTTP : Hypertext Transfer Protocol (HTTP) is an application-layer protocol for transmitting
hypermedia documents, such as HTML. It was designed for communication between web
browsers and web servers, but it can also be used for other purposes. HTTP follows a
classical client-server model, with a client opening a connection to make a request, then
waiting until it receives a response. HTTP is a stateless protocol, meaning that the server
does not keep any data (state) between two requests.
Resource:
• Software components on the IoT device for
-accessing, processing and storing sensor information,
-controlling actuators connected to the device.
- enabling network access for the device.
Controller Service:
• Controller service is a native service that runs on the device and interacts
with the web services.
•It sends data from the device to the web service and receives commands
from the application (via web services) for controlling the device.
Database:
•Database can be either local or in the cloud and stores the data
generated by the IoT device.
Web Service:
•Web services serve as a link between the IoT device, application,
database and analysis components.
•It can be implemented using HTTP and REST principles
(REST
service) or using the WebSocket protocol (WebSocket service).
Analysis Component:
• Analysis Component is responsible for analyzing the IoT data
and
generating results in a form that is easy for the user to understand.
Application:
•IoT applications provide an interface that the users can use
to control and monitor various aspects of the IoT system.
IoT Level-1
Sensors used
Accelrometer Gyroscope
sense movement or vibrations Gives orientation info
Websocket service is used because sensor data can be sent in real time.
IoT Level-4
A level-4 IoT system has
multiple nodes that perform
local analysis. Data is stored
in the cloud and the
application is cloud-based.
Sensors used
Wind speed and direction Precipitation
Solar radiation Snow depth
Temperature (air, water, soil) Barometric pressure
Relative humidity Soil moisture
IoT Issues and Challenges
Security
• Cyber Attacks, Data Theft
Privacy
• Controlling access and ownership of data.
InterOperability
• Integration Inflexibility
Though both M2M and IoT involve networking of machines or devices, they differ in the
underlying technologies, systems architectures and types of applications.
Communication Protocols
M2M and IoT can differ in how the communication between the machines or devices
happens.
M2M uses either proprietary or non-IP based communication protocols for communication
within the M2M area networks.
Commonly uses m2m protocols include Zigbee, bluetooth, Modbus, M-Bus, wireless M-
bus, Power line communication, 6lowpan, IEEE 802.15.4, Z-wave etc.
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
such as HTTP, COAP, Websockets, MQTT, XMPP, DDS, AMQP etc.
Machines in M2M vs things in IoT
The things in IoT refers to physical objects that have unique identifiers and can sense and
communicate with their external environment (and user applications) or their internal
physical States.
The unique identifier for the things in IoT are the IP addresses (or Mac addresses).
Things have software components for accessing, processing and storing sensor
information, or controlling actuators connected.
IoT systems can have heterogeneous thing ( e.g., home automation IoT system can include
IoT system of various types such as fire alarms, door alarms, lighting control devices etc)
M2M systems, in contrast to IoT, typically have homogeneous machine type within a and
M2M area network.
Hardware vs Software Emphasis
While the emphasis of M2M is more on hardware with embedded modules, the emphasis
of IoT is more on software. IoT devices run specialized software for sensor data collection,
data analysis and interfacing with the cloud through IP based communication.
Data Collection and Analysis
M2M data is collected in point Solutions and often in on-premises storage infrastructure.
In context to M2M, the data in IoT is collected in the cloud (can be public, private or
hybrid cloud). The various IoT Levels, and IoT components deployed in the cloud. The
analytics component analyzes the data and stores the results in the cloud database. The IoT
data and analysis results are visualized with the cloud based applications. The centralized
controller is aware of the status of all the end nodes and sends control commands to the
nodes. Observer nodes can process information and use it for various applications,
however, observer nodes do not perform any control functions.
Applications
M2M data is collected in point Solutions and can be accessed by on-premises application
such as diagnosis applications, service management applications and on-premises
enterprise applications. But We collect IoT Data in the cloud and can be accessed by cloud
applications such as analytics applications, enterprise applications, remote diagnosis and
management applications etc. Since the scale of data collected in IoT is so massive, cloud
based real time and batch data analysis frameworks are used for data analysis.
Communication in IoT is IP based networks. Communication within M2M area network is
based on protocols below the network layer whereas IoT is based on protocols above the
network layer.