�ELECTRICAL AND ELECTRONICS ENGINEERING
IOT & ITS APPLICATIONS
(18EC743)
Module-I
Internet of Things
Introduction
Introduction
Definition and characteristics of IoT:
Definition: A dynamic global network infrastructure with self – configuring based on standard and interoperable communication protocols where physical and virtual “things” have identified, physical attributes, and virtual personalities and use intelligent interfaces, often communicate data associated with users and their environment .
Characteristics:
IoT Devices may support a number of interoperable communication protocols and can communicate with other devices and also with the infrastructure.
Each IoT devices has a unique identity and a unique identifier. (IPaddress, URI).IoT systems may have intelligent interfaces which adapt based on the context, allow communication with users and the environment contexts.
IoT devices are usually integrated into the information network that allows them to communicate and exchange data with other devices and systems.
Physical Design of IoT
The “Things” in IoT usually refers to IoT devices which have unique identities and can perform remote sensing, Actuating and monitoring capabilities. IoT devices can exchange data with other connected devices and applications (directly or indirectly), or collect data from other devices and process the data locally or send the data to Centralized servers
An IoT device may consist of several interfaces connections to other devices, both wired and wireless. These include
I) IoT interfaces for sensors
II) interfaces for internet connectivity
III) memory and storage interfaces
IV) audio video interfaces.
An IoT Device can collect various types of data from the the onboard or attached sensors, such as temperature , humidity, light intensity.
Physical Design of IoT
IoT Protocol
1. Link Layer
2. Network / internet layer :
3. Transport layer
4. Application layer
Physical Design of IoT
1. Link Layer:
802.3 Ethernet:
802.3 is a collections of wired Ethernet standards for the link layer.
For example 802.3 10BASE5 Ethernet that uses coaxial cable as a shared medium, 802.3.i is standard for 10 BASET Ethernet over copper twisted pair connection, Standards provide data rates from 10 Mb/s to 40 gigabits per second and the higher. The shared medium in Ethernet can be a coaxial cable , twisted pair wire or and Optical fiber. Shared medium carries the communication for all the devices on the network.
IoT Protocol
802.11- WI-FI:
IEEE 802.11 is a collections of wireless Local area network.(WLAN) communication standards, including extensive descriptions of the link layer.
For example 802.11a operate in the 5 GHz band, 802.11b and 802.11g operate in the 2.4 GHz band. 802.11ac operates in the 5G hertz band.
802.16 wiMAX:
IEEE 802.16 is a collection of wirless broadband and Standards, including extensive descriptions for the link layer also called WiMAX. Wimax standard provides a data rates from 1.5 Mb/s to 1Gb/s
802.15.4 LR-WPAN:
IEEE 802.15.4 is a collections of standard for low rate wireless personal area network(LR-WPAN). Basis for high level communication protocols such as Zigbee. LR-WPAN standards provide data rates from 40 k b/ s.
2G/3G/4G-Mobile Communication These are the different generations of mobile communication standards including second generation (2G including GSM and CDMA). 3rd Generation (3G including UMTS and CDMA2000) and 4th generation 4G including LTE.
IoT Protocol
2. Network / Internet layer :
The network layer are responsible for sending of IP datagrams from the source network to the destination network. This layer Performs the host addressing and packet routing. The datagrams contains a source and destination address which are used to route them from the source to the destination across multiple networks.
IPV4: Internet protocol versions for open parents close (IPV4) is there most deployed internet protocol that is used to identify the device is on a network using a hierarchy latest schemes. It uses 32 bit addresses scheme that allows total of 2**32 address.
IPv6: It is the newest versions of internet protocol and successor to IPv4. IPv6 uses 128 bit address schemes that are lost total of 2*128 are 3.4* 10 38 address.
6LoWPAN: IPv6 over low power wireless personal area networks brings IP protocol to the low power device which have limited processing capability it operate in the 2.4 GHz frequency range and provide the data transfer rate off to 50 kb/s.
IoT Protocol
3. Transport layer :
The Transport layer protocols provides end-to-end message transfer capability independent of the underlying network. The message transfer capability can be set up on connections, either using handshake or without handshake acknowledgements. Provides functions such as error control , segmentation, flow control and congestion control.
TCP: Transmission Control Protocol used by web browsers(along with HTTP and HTTPS), email(along with SMTP, FTP). Connection oriented and stateless protocol.
UDP: User Datagram Protocol is connectionless protocol. Useful in time sensitive applications, very small data units to exchange. Transaction oriented and stateless protocol. UDP does not provide guaranteed delivery, ordering of messages and duplicate eliminations.
IoT Protocol
4. 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.
Hyper Text Transfer Protocol that forms foundation of WWW. Follow request response model Stateless protocol.
Constrained Application Protocol for machine-to-machine (M2M) applications with constrained devices, constrained environment and constrained n/w. Uses client server architecture.
Allows full duplex communication over a single socket connection.
Message Queue Telemetry Transport is light weight messaging protocol based
on publish-subscribe model. Uses client server architecture. Well suited for constrained
environment.
Extensible Message and Presence Protocol for real time communication and streaming XML data between network entities. Support client-server and server-server communication.
Data Distribution Service is data centric middleware standards for device-to-device or machine-to-machine communication. Uses publish-subscribe model.
LOGICAL DESIGN of IoT
Logical design of an IoT system refers to an abstract representation of the entities and process without going into low level specification of the implementations .
1) IoT Functional Blocks
2) IoT Communication Models
3) IoT Comm APIs
1) IoT Functional Blocks: Provide the system the capabilities for identification, sensing, actuation, communication and management.
2) IoT Communication Models:
a) Request-Response
b) Publish- Subscibe
c)Push-Pull
d) Exclusive Pair
Request response: Request-response is a Communications model in which the client sends request to the server and the server responds to the requests. when the server receives a request it decides how to respond, if it shows the data retrieved resources definitions for the response , and then send the response to the client. Access to response model is a stateless communication model and each request response per is independent of others the crime and server interactions in the request response model.
2) Publish-Subscibe Model:
3) Push-Pull Model:
Examples:
Exclusive pair:
3) IoT Communication APIs:
a) REST based communication APIs(Request- Response Based Model)
b) Web Socket based Communication APIs(Exclusive Pair Based Model)
architectural principles by which we can design web services and web APIs that focus on a system resources and how resource states are addressed and transferred.
Client-Server: The principle behind client-server constraint is the separation of concerns Separation allows client and server to be independently developed and updated.
Stateless: Each request from client to server must contain all the info. Necessary to understand the request, and cannot take advantage of any stored context on the server.
Cache-able: Cache constraint requires that the data within a response to a request be implicitly or explicitly labeled as cache-able or non-cacheable. If a response is cache-able, then a client cache is given the right to reuse that response data for later, equivalent requests.
Layered System: constraints the behavior of components such that each component cannot see beyond the immediate layer with which they are interacting.
User Interface: constraint requires that the method of communication between a client and a server must be uniform.
Code on Demand: Servers can provide executable code or scripts for clients to execute in their context. This constraint is the only one that is optional.
b) Web Socket Based Communication APIs:
IOT ENABLING TECHNOLOGIES:
1)Wireless Sensor Network(WSN):
Comprises of distributed devices with sensors which are used to monitor the environmental and physical conditions. Zigbee is one of the most popular wireless technologies used by WSNs. WSNs used in IoT systems are described as follows:
Use WSNs to monitor the health of structures(building, bridges) by collecting vibrations from sensor nodes deployed at various points in the structure.
2) Cloud Computing:
Services are offered to users in different forms.
3) Big Data Analytics: Big data is defined as collections of data set whose volume, velocity in terms of its temporal variations )or variety, is so large that it is difficult to store, manage, process and analyze the data using traditional database and data processing tools.
Some examples of big data generated by IoT are Sensor data generated by IoT systems.
4) Communication Protocols:
5) Embedded Systems: is a computer system that has computer hardware and software embedded to perform specific tasks. Embedded System range from low cost miniaturized devices such as digital watches to devices such as digital cameras,Point of sale terminals, vending machines, appliances etc.
IoT levels and Deployment Templates
In this section we define various levels of IoT systems with increasing completely. IoT system comprises of the following components:
2. Resources : Resources are software components on the device for accessing and storing information for controlling actuator connected to the device also include software components that enable network access for the device .
3. Controller service: Controller Service is a native service that runs on the device and interact with the web services. Controller service sends data from the device to the web service receive command from the application from controlling the device.
4. Data base: Data base can be either local or in the cloud and stores the data generated by the IoT device.
5. Web service: Serve as a link between the device, application database and analysis components. Web Services can be implemented using HTTP and REST principles or using website protocol.
Analysis component: The analysis component is responsible for analyzing the IoT data and generate results in the form which are easy for the user to understand. Analysis of IoT data can be performed either locally or in the cloud. Analyzed results are stored in the local or cloud database.
Application: IoT applications provide an interface that the user can use to control and monitor various aspects of the IoT system. Applications also allow user to view the system status and view the processed data.
2) IoT Level2:
IoT Level3:
4) IoT Level4:
IoT Level5:
6) IoT Level6:
Sl.no | REST | Web Socket |
1. | Stateless | State full |
2. | Request-response model | Full duplex model |
3. | Each request involves setting up a new TCP connection | Single TCP connection |
4. | Header overhead | No header overhead |
5. | It is not suitable for RTA ( Real Time Application) | It is suitable for RTA ( Real Time Application) |