IOT UNIT-5
IOT UNIT-5
IoT devices are found everywhere and will enable circulatory intelligence in the
future. For operational perception, it is important and useful to understand how
various IoT devices communicate with each other. Communication models used
in IoT have great value. The IoTs allow people and things to be connected any
time, any space, with anything and anyone, using any network and any service.
Types of Communication Model :
2. Publisher-Subscriber Model –
This model comprises three entities: Publishers, Brokers, and Consumers.
Publishers are the source of data. It sends the data to the topic which are
managed by the broker. They are not aware of consumers.
Consumers subscribe to the topics which are managed by the broker.
Hence, Brokers responsibility is to accept data from publishers and send it
to the appropriate consumers. The broker only has the information regarding
the consumer to which a particular topic belongs to which the publisher is
unaware of.
3. Push-Pull Model –
The push-pull model constitutes data publishers, data consumers, and data
queues.
Publishers and Consumers are not aware of each other.
Publishers publish the message/data and push it into the queue. The
consumers, present on the other side, pull the data out of the queue. Thus,
the queue acts as the buffer for the message when the difference occurs in
the rate of push or pull of data on the side of a publisher and consumer.
Queues help in decoupling the messaging between the producer and
consumer. Queues also act as a buffer which helps in situations where there
is a mismatch between the rate at which the producers push the data and
consumers pull the data.
4. Exclusive Pair –
Exclusive Pair is the bi-directional model, including full-duplex
communication among client and server. The connection is constant and
remains open till the client sends a request to close the connection.
The Server has the record of all the connections which has been opened.
This is a state-full connection model and the server is aware of all open
connections.
WebSocket based communication API is fully based on this model.
Data processing at the network edge or edge computing is used with IoT
solutions and enables faster processing and response times. To get a better
understanding of how this works, consider a large factory with many
implemented IoT sensors. In this situation, it makes sense, before sending data
to the cloud for processing, to aggregate it close to the border to prevent cloud
overload by reducing direct connections.
Data centers with this approach make data processing much faster. Yet, an
approach that is only based on the edge will never provide a complete view of
business operations. If there is no cloud solution, then the factory only controls
each unit individually. Also, it has no way of imagining how these units work in
relation to each other. This is why only the combination of the edge and the
cloud will enable businesses to benefit from IoT developments.
The Role of Cloud Computing on the Internet of Things:
IoT gadgets and Sensors: These gadgets collect data from their
surroundings.
Connectivity Layer: The Connectivity Layer enables your devices to
communicate with the cloud. It uses MQTT and CoAP protocols, as well as
gateways and networks.
Cloud Infrastructure: AWS, Azure, and Google Cloud supply your primary
infrastructure.
Data Processing and Analytics: Your cloud system converts raw data into
useful insights, allowing you to make faster choices.
Application Layer: Software and dashboards in this layer use your IoT data
to provide services. These services cover areas like smart cities, healthcare,
and industrial automation.
Key Functionalities:-
Scalability: Your system can grow to handle more data and devices.
Real-time Data Processing: You can process data instantly, which is ideal
for applications needing quick responses.
Data Integration and Interoperability: Your architecture allows smooth
communication between various devices and systems.
Predictive Analytics: Advanced tools help you predict maintenance needs
and detect problems before they occur.
Reliability and Fault Tolerance: Your system has backup plans to ensure
it’s always running.
IoT cloud architecture plays a significant role in developing new technologies. It
helps you manage data efficiently and supports the creation of apps that
improve user experiences.
Now that you understand IoT cloud architecture, let’s look at the various layers
it uses.
Key Layers of IoT Cloud Architecture:-
Understanding the key layers of IoT Cloud Architecture is essential for using its
full potential. Each layer is vital in enabling functionality, efficiency, and
effectiveness. Let’s explore each component:
Perception Layer
The Perception Layer is where data collection occurs. This layer acts as the
foundation of your IoT system. These layers include:
Sensors: These devices detect physical properties and convert them into
digital data. For example:
Temperature Sensors
Humidity Sensors
Motion Sensors
Actuators: These devices perform actions based on data received. For
instance:
Electric Motors
Valves
The Perception layer is crucial because it gathers the necessary data to inform
decisions and actions throughout the system.
Network/Transport Layer
The Network/Transport Layer facilitates data movement from devices to the
cloud. This layer ensures that data is transmitted efficiently and securely. Here
are some typical applications of the network layer:
Processing Layer
The Processing Layer enhances the speed and reliability of data handling
through edge computing and cloud-based processing. Here are some methods
that businesses use:
Edge Computing: You use Edge Computing to process data closer to where
it’s generated. Benefits:
You can analyze data on-site, allowing immediate decision-making, such as
triggering alarms or alerts.
By processing data locally, you minimize the amount of information sent to
the cloud, saving bandwidth.
Cloud-Based Processing: You rely on Cloud-Based Processing to handle
large volumes of data analysis. Key advantages include:
Cloud systems can scale to accommodate increasing data.
The cloud can identify complex patterns and generate insights using
powerful algorithms.
Data Integration: This layer integrates data from various sources, and you
get a comprehensive analytics and reporting feature.
Application Layer
The Application Layer is where you visualize and analyze data. This layer
delivers the user interface for interacting with the IoT system.
As your IoT network grows, you can quickly increase cloud resources
without significant infrastructure changes. Here, the initial
investment is often lower. Therefore, you can utilize existing cloud
services rather than deploying extensive edge infrastructure.
However, operational costs can increase with data volumes. This is
particularly true for bandwidth and storage.
The hybrid cloud model also offers flexible scalability. You can scale
edge and cloud resources based on your specific IoT application
needs, optimizing resource allocation according to real-time demands.
Edge-Cloud Model:-
You use the Edge-Cloud Model to process data at the network’s edge
instead of relying solely on centralized cloud resources. In this setup,
edge devices handle data processing and analysis. This setup also
reduces the need to send large amounts of data to the cloud. You only
transmit critical information or summaries for further processing or
storage.
This model offers the lowest latency because data is processed close
to its source. Applications that need real-time responses, like
autonomous vehicles or industrial robots, benefit significantly from
this reduced response time.
LOGGING ON TO CLOUD:-
You can log on to Cloud Logging through the Google Cloud console. You can use Cloud
Logging to store, search, analyze, monitor, and alert on logging data.