IOT & WSN module-1
IOT & WSN module-1
Module-1
Internet of Things: Introduction
Physical design
Logical design
Enabling technologies
Levels & deployment templates.
Information Knowledge
Information is Knowledge is
inferred from inferred from
data by filtering, information by
processing, organizing and
categorizing, structuring
Condensing and information to
contextualizing achieve
objectives
Figure 1.1: Inferring Information & Knowledge from Data
The information obtained need to be organized and structured to infer
the knowledge about the system and its users, its environment, its
operations and progress.
For example : An alert should be raised if the average temperature in last
five minutes exceeds 120F.
Definition of IOT
A dynamic global network infrastructure with self-configuring
capabilities based on standard and interoperable communication
protocols where physical and virtual things have identities, physical
attributes and virtual personalities and use intelligent interface and are
seamlessly integrated into the information network, often communication
data associated wit users and their environment.
Characteristics of IOT :
1. Dynamic and self-adapting : IOT devices have the capability of adapting
dynamically with the changing contexts and taken necessary actions
based on the sensed environment.
For example : the survelliance cameras can adapt their modes based on
whether its day or night.cameras will switch from lower resolution to high
resolution.
2. Self-configuring : IOT devices have self-configuring capability. They allow
large number of devices to work together. Example weather monitoring
system have the capability setup networking and fetch latest software
upgrades with minimal or no human intervention.
3. Interoperable communication protocols: IOT supports many
communication protocols.
4. Unique identity : Each IOT device has a unique identity and a unique
identifier (like IP addr or a URI) IOT devices interfaces allow users to query
the devices, monitor their status and control them remotely.
5. Integrated into Information network: IOT devices are usually integrated
into the information network that allows them to exchange data with
other devices and systems. Integration will make IOT systems smarter.
Example weather monitoring node can describe its monitoring
capabilities to another connected node so that they can exchange data
and communicate.
An IOT device can collect data from various types of data from on board
or attached sensors such as temperature, humidity, light intensity.
The sensed data can be communicated either to other devices or cloud
based servers/storage.
IOT devices can be connected to actuators that allow them to interact
with other physical entities.
1. Link layer:
This layer determines how the data is physically sent over the physical
layer or medium. In the physical layer, it may comprise of copper wire,
coaxial cable or a radio wave. The scope of this layer is to connect the
local network to which host is attached. The link layer determines how
the data is coded and signaled over the medium within the local network
where the host is attached.
Some of the link layer protocols are tabulated here :
802.3j
–fiber
optic
connections.
802.11- WLAN-Wireless 802.11a(operating 1 Mbps to 6.75
WiFi Local Area Netw frequency -5 GHz band) Gbps
802.11b(2.4 GHz)
802.11n(2.4/5 GHz)
802.11ac(5GHz)
802.16- wireless 802.16m 1.5 Mbps to 1
WiMax Broadband Gbps
standard
802.15.4- Low-rate standards for high level 40 Kbps to 250
LR-WPAN Wireless communication protocols Kbps
Personal Area such as Zigbee, LR-WPAN
Networks low cost and low speed
communication over
power constrained
devices.
2G/3G/4G- Mobile 2G (GSM & CDMA) 9.6
communication 3G(UMTS & CDMA2000) kps(2G) to
4G(LTE) 100 Mbps(4G)
2. Network layer :
This layer is responsible for sending IP datagrams from the source
network to the destination network. This layer does host addressing and
packet routing.
The datagram contains the source and destination addresses which are
used to route them from the source to destination across multiple
networks.
The protocols in this layer are tabulated below:
Protocol Description
IPv4 – the most deployed internet protocol.
Internet Protocol version 4 IPv4 uses 32 bit addressing scheme.
this does not guarantee delivery of packets
IPv6 – this uses 128 bit addressing scheme.
Internet Protocol version 6
6LoWPAN- 1. IP protocol to low power devices.
IPv6 over Low Power Wire 2. limited processing capability
Personal Area Network 3.operating freq is 2.4GHz range.
4.data rate of 250 kbps
3. Transport Layer:
This layer provides functions like Error Control, Segmentation, Flow
control and congestion control.
Protocol Description
TCP This is used by applications of HTTP, web brows
Transmission SMTP, FTP.
control TCP is a connection oriented and stateful
protocol protocol.
TCP ensures reliable transmission of
packets in-order.
TCP provides error detection
capability so that duplicate
packets can be discarded and
lost packets are retransmitted.
flow control capability
congestion control- avoids network congestion
UDP – Connectionless protocol.
User Datag Doesnot guarantee delivery of packets.
Protocol No ordered delivery
No duplicate elimination.
4. Application layer:
This layer defines how the applications interfaces with the lower layer
protocols to send the data over the network.
The few application layer protocols are listed below:
Protocol Description
HTTP This is the foundation of the WWW. HTTP includes
Hypertext commands like GET, PUT,POST,DELETE,HEAD,TRACE.
Transfer This follows request-response model, where a client sends
Protocol requests to a server using commands.
http protocol uses URI to identify HTTP Resources.
COAP- this is for Machine to Machine(M2M) applications.
Constrained this is a web transfer protocol which uses request respo
Application mode.
protocol this runs on UDP.
this includes commands like GET, PUT,POST,DELETE,
WebSocket This allows full duplex communication over a single socket this
is used to sending messages between client and server this is
based on TCP. This is used when stream of messa
to be sent back and forth between the client and server.
MQTT-Messa A light weight messaging protocol based on publish subscribe
Queue model.
Telemetry the client connects to the server and publishes message topics
Transport on the server. The broker forwards the messages to clients
subscribed to topics.
It is well suited for constrained envt.
The devices have limited processing and memory resources.
XMPP- this is used for real time communication and streaming X data
Extensible between network entities.
Messaging The applications involve messaging, presence, data
Presence syndication, gaming, multiparty chat and voice/video calls this
Protocol uses client server model and also server to server
communication paths.
DDS- data centric middleware standard for device to device and M2M
Data communications.
Distribution It uses publish-subscribe model. ensures
Service quality of service.
AMQP- application layer protocol for business messaging. supports
Advanced both point to point and publisher/subscribe
Message models, routing, queueing.
Queueing
protocol
1. Request-Response Model
i. Request Response Model is a communication model.
ii. Client sends requests to the server and the server responds to the
requests.
iii. 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.
iv. It is a stateless communication model
address bar.
POST Method:
POST is used to send data to a server to create/update a resource.
POST requests do not remain in the browser history.
POST request repeatedly have side effects of creating the same resource
multiple times.
PUT Method:
PUT is used to send data to a server to create/update a resource.
PUT requests are idempotent. That is, calling the same PUT request
multiple times will always produce the same result.
HEAD Method:
HEAD is almost identical to GET, but without the response body.
DELETE Method:
The DELETE method deletes the specified resource.
instances and virtual storage. Users can start, stop, configure and
manage these.
Platform as a service (Paas) – Paas provides the users the ability to
develop and deploy application in the cloud using the development tools,
APIs, software libraries and services provided by the cloud service
providers(CSP). The CSP manages the infrastructure like servers,
network, operating systems and storage. The users are responsible for
developing, deploying, configuring and managing applications.
Software as a service (SaaS) – SaaS provides the users a complete
software application or the user interface to the application. Applications
are provided to the user through a thin client interface (ex. browser).saas
application are platform independent and can be accessed from various
client devices such as workstations, laptop, tablets and smart phones,
running different operating systems.
1 The services are stateless. The services are stateful. The server
Each request contains all maintains the state and is aware of the
the information needed to open connection.
process. Requests are
independent to one another
2 The services operate over HTT websocket services are bi-directional.
requests are unidirectional. The client and server both can
request is always sent by send messages.
a client and the server
response to the requests.
3 REST services follow a websocket services follow a full duplex
request- communication.
response communication
model
4 Each HTTP request involves single TCP connection.
involves setting up a new TCP
connection.
5 Each request carries websocket does not involve overhead of
HTTP headers, the header headers. Web socket is suitable f real time
overhead is more hence it is n applications.
suitable for real time
applications.
6 scalability is easy. scalability is cumbersome.
IOT Level-1
i. An Level-1 IoT system has a single node/device which performs
sensing, actuation, stores data, performs analysis and hosts the
application.
ii. This is suitable for modeling low cost and low complexity systems.
iii. The data involved is not big.
iv. The analysis requirements are not computationally intensive.
For example : IoT system for home automation
The system consists of single node that allows controlling the lights and
appliances in a home remotely. These are interfaced with electronic
relay switches. The status is maintained in the local database. The
REST services are deployed for retrieving and updating the status. The
application has a user interface for controlling the lights or appliances.
The device is connected to internet, the app can be accessed remotely.
IOT Level-2
A level-2 IoT system has a single node which performs sensing
and/or actuation and local analysis.
Data is big and stored in the cloud.
Applications are also cloud based.
The primary analysis requirement is not computationally intensive
and can be done locally.
For Example : Smart Irrigation system – A single node monitors
the soil moisture level and controls the irrigation system. The soil
moisture data is collected from the sensor. The controller service
monitors continuously. The irrigation system will be turned on if
the moisture level drops below the threshold. The actuators like
solenoid valves are used to control the irrigation system.
A cloud based REST web service is used for storing and retrieving
moisture data.
A cloud based application is used for visualizing the moisture
levels over a period of time which helps in making decisions and
schedules of irrigation system.
IOT Level-3
This system has a single node that performs sensing and /or
actuation.
Data and application are cloud based.
Data involved is big.
The analysis requirement are computationally intensive.
For example :
IOT system for tracking package. The system consists of a single node
for a package which monitors the vibration levels for a package being
shipped. The device uses accelerometer and gyroscope sensors for
monitoring vibration levels. The controller service sends the sensor data
to the cloud in real time using websocket service. The analysis
components in the cloud can trigger alerts if the vibration levels become
greater than a threshold.
IOT Level-4
This level IoT System has multiple nodes.
Data and application are cloud based.
This has cloud based observer nodes, which can subscribe to and
receive information collected in the cloud from IoT devices.
Observer nodes will process information.
The data involved is big.
The analysis requirements are computationally intensive.
********