Unit-III-part 1
Unit-III-part 1
Unit-III-part 1
or
Things are Node device which have unique identities and can
perform remote sensing, actuating and monitoring capabilities.
IoT Things
For example if relay switch connected to an IoT device can turn
On/Off an appliance on the commands sent to the IoT device over
the Internet.
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.
ISO layers
OSI stands for Open Systems Interconnection. It has been
developed by ISO – ‗International Organization of Standardization‗,
in the year 1984. It is a 7 layer architecture with each layer having
specific functionality to perform. All these 7 layers work
collaboratively to transmit the data from one person to another
across the globe.
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).
Link 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).
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.
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. ( The Point-
to-Multipoint topology (also called star topology or simply
P2MP) is a common network architecture for outdoor wireless
networks to connect multiple locations to one single central
location.)
Initially 802.16a was developed and launched, but now it has
been further refined. 802.16d or 802.16-2004 was released as
a refined version of the 802.16a standard aimed at fixed
applications.
Another version of the standard, 802.16e or 802.16-2005 was
also released and aimed at the roaming and mobile markets.
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.
Low rate wireless personal area networks (LR-WPANs) target
low data rate, low power consumption and low cost wireless
networking, and offer device level wireless connectivity. They
are ideal for applications such as public security, battle field
monitoring, inventory tracking, as well as home and office
automation.
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
6LoWPAN :
6LoWPAN 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.
6LoWPAN is a somewhat contorted acronym that combines the
latest version of the Internet Protocol (IPv6) and Low-power
Wireless Personal Area Networks (LoWPAN).
6LoWPAN, 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. 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.
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
XMPP :
Extensible Messaging and Presence Protocol (XMPP) is a
communication protocol for message-oriented middleware
based on XML (Extensible Markup Language).
DDS :
The Data Distribution Service (DDS™) is a middleware
protocol and API standard for data-centric connectivity
from the Object Management Group® (OMG®).
It integrates the components of a system together, providing
low-latency data connectivity, extreme reliability, and a
scalable architecture that business and mission-critical
Internet of Things (IoT) applications need.
In a distributed system, middleware is the software layer that
lies between the operating system and applications.
Key Capabilities
Request-Response Model
Request-response model is communication model in which the
client sends requests to the server and the server responds to the
requests. When the server receives a request, it decides how to
respond, fetches the data, retrieves resource representation,
prepares the response, and then sends the response to the client.
Request-response is a stateless communication model and each
request-response pair is independent of others.
HTTP works as a request-response protocol between a client and
server. A web browser may be the client, and an application on a
computer that hosts a web site may be the server.
Example: A client (browser) submits an HTTP request to the server;
then the server returns a response to the client. The response
contains status information about the request and may also contain
the requested content.
Publish-Subscribe Model
Publish-Subscribe is a communication model that involves
publishers, brokers and consumers. Publishers are the source of
data. Publishers send the 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 receive data for a topic from the publisher, it sends the data
to all the subscribed consumers.
MQTT—a pub-sub protocol
MQTT defines the truck and the routes. But it doesn‘t define how
the load (the data) is packed or unpacked. That‘s where Sparkplug
comes in.
Push-Pull Model
Push-Pull is a communication model in which the data producers
push the data to queues and the consumers Pull the data from the
Queues. Producers do not need to be aware of the consumers.
Queues help in decoupling the messaging between the Producers
and Consumers. Queues also act as a buffer which helps in
situations when there is a mismatch between the rate at which the
producers push data and the rate at which the consumer pull data.
Exclusive Pair Model
Exclusive Pair is a bidirectional, fully duplex communication model
that uses a persistent connection between the client and server.
Connection is setup it remains open until the client sends a request
to close the connection. Client and server can send messages to
each other after connection setup. Exclusive pair is stateful
communication model and the server is aware of all the open
connections.
IoT Communication APIs
REST WEBSOCKET
stateless Statefull
Request-responses model Full duplex
Each request involves setting up a Single TCP connection
new TCP connection
Header overhead No header overhead
Not suitable for Real Time Suitable for RTA, Game
Application (RTA) Application and Chat application