0% found this document useful (0 votes)
25 views5 pages

IoT Unit 4

Uploaded by

anshul saxena
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
25 views5 pages

IoT Unit 4

Uploaded by

anshul saxena
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 5
RAJIV GANDHI PROUDYOGIKI VISHWAVIDYALAYA, BHOPAL New Scheme Based On AICTE Flexible Curricula Computer Science and Engineering, Vill-Semester CS801 - Internet of Things Unit 4 matt BE: ‘Sean for YouTube (Message Queuing Telemetry Transport) is a lightweight messaging protocol that is commonly used for loT applications. It is designed for use in situations where network bandwidth and battery power are limited, and where high reliability is not always required MATT has three main components: Broker: The MQTT broker is responsible for receiving and delivering messages between clients. Itis typically a server or cloud-based system that can handle large numbers of clients and messages. Publisher: The MQTT publisher is responsible for creating and sending messages to the broker. It could be an loT device, a sensor, or any other type of client that is capable of publishing data. . Subscriber: The MQTT subscriber is responsible for receiving messages from the broker. It could be an application, a dashboard, or any other type of client that is interested in receiving data MATT has several methods for interacting with the broker: Connect: The connect method is used by clients to establish a connection with the broker. Clients must provide a client ID and can also provide authentication credentials and other parameters. Publish: The publish method is used by clients to send data to the broker. Clients must specify a topic, which is used to route the message to the appropriate subscribers. Subscribe: The subscribe method is used by clients to receive data from the broker. Clients must specify one or more topics that they are interested in receiving data for. |. Unsubscribe: The unsubscribe method is used by clients to stop receiving data for a particular topic. . Disconnect: The disconnect method is used by clients to terminate the connection with the broker. Overall, MQTT is a popular protocol for loT applications because of its low overhead, flexibility, and support for a wide range of devices and platforms. tis widely used for applications such as home automation, industrial monitoring, and smart cities, MaQTT commu: ation MATT (Message Queuing Telemetry Transport) is a publish/subscribe messaging protocol that is commonly used for loT applications. In MQTT communication, clients communicate with each other through a central broker, using topics to identify the messages they are interested in. Topics are used to categorize messages and allow subscribers to filter and receive only the messages they are interested in. Topics are hierarchical, with levels separated by slashes (/). For example, a topic might be "sensors/temperature/living_room". This topic identifies the temperature sensor in the living room, and any messages published to this topic will be received by subscribers who have subscribed to this specific topic MATT has several key advantages for loT applications: Lightweight: MQTT is designed to be lightweight and use minimal bandwidth, making it well-suited for low-power devices and networks with limited bandwidth Scalable: MQTT brokers can handle large numbers of clients and messages, making it easy to scale up to support large loT deployments. Flexible: MQTT supports multiple quality of service levels, allowing clients to choose the level of reliability and performance they require. Open standard: MQTT is an open standard and is widely supported by a range of devices, platforms, and programming languages MATT has a wide range of applications in the loT space, includin: Home automation: MQTT can be used to control and monitor devices in the home, such as lights, thermostats, and security systems. Industrial monitoring: MQTT can be used to monitor machines, equipment, and environmental conditions in factories and other industrial settings. Smart cities: MQTT can be used to collect and analyze data on traffic, air quality, energy usage, and other factors in urban areas, to improve city planning and resource allocation. Healthcare: MQTT can be used to monitor patients, track medication adherence, and detect falls or other emergencies in healthcare settings. ‘YouTube Channel: RGPV Exam official 2023 Awa smart SMQTT (Secure MQTT) is an extension of the MQTT protocol that adds support for security features such as message encryption and authentication. CoAP (Constrained Application Protocol) is a lightweight protocol designed for use in constrained loT environments where resources such as bandwidth, memory, and processing power are limited. CoAP is similar to HTTP, but is designed to be more efficient and less complex. CoAP messages can be divided into four types: |. Confirmable (CON): This message type requires an acknowledgement (ACK) from the receiver, and can be retransmitted if no ACK is received. Non-confirmable (NON): This message type does not require an acknowledgement, and is typically used for one-way communications. Acknowledgement (ACK): This message type is sent by the receiver to confirm receipt of a confirmable message. Reset (RST): This message type is sent by the receiver to indicate that a message was not processed, typically because it was malformed or invalid. CoAP uses a request-response model similar to HTTP, with clients sending requests to servers and servers responding with responses. CoAP requests can be divided into four types: GET: This request type is used to retrieve a resource from the server. PUT: This request type is used to update or create a resource on the server. POST: This request type is used to create a new resource on the server. DELETE: This request type is used to delete a resource from the server. CoAP also supports a range of options that can be used to provide additional information about the request or response, such as the format of the message payload, caching options, or content negotiation. Overall, CoAP is @ popular protocol for loT applications because of its efficiency, scalability, and support for constrained environments. Itis widely used for applications such as smart homes, industrial automation, and smart cities. Explain XMPP XMPP (Extensible Messaging and Presence Protocol) is an open standard protocol used for real-time messaging, presence information, and other communication applications. XMPP is designed to be extensible, allowing developers to add new features and functionality as needed. AMQP (Advanced Message Queuing Protocol) is a messaging protocol that provides a way for applications to exchange messages in a reliable, secure, and interoperable manner, AMQP is designed to be transport-agnostic, meaning that it can be used over a variety of transport protocols such as TCP, SSL/TLS, or WebSocket. AMQP has several key features, including: Routing: AMQP supports flexible routing of messages between producers and consumers, using a variety of routing rules and patterns. Reliability: AMQP provides guaranteed message delivery, even in the event of network failures or other disruptions. Security: AMQP supports a range of security features such as message encryption and authentication, to ensure that messages are delivered only to authorized recipients. Interoperability: AMQP is designed to be interoperable across different programming languages and platforms, making it easy to integrate with existing systems and applications. AMQP is composed of several components, including: Producers: These are applications or devices that generate messages to be sent over the network. Consumers: These are applications or devices that receive messages sent by producers. Brokers: These are intermediary servers that route messages between producers and consumers, based on routing rules and patterns Exchanges: These are logical entities that receive messages from producers and route them to queues or other exchanges based on routing rules. Queues: These are storage locations for messages that are waiting to be consumed by consumers. AMQP messages are organized into frames, with each frame containing a specific type of information. AMQP defines several types of frames, including: Protocol Header: This frame identifies the AMQP protocol version and capabilities supported by the sender. Connection Frame: This frame is used to establish a connection between a producer or consumer and a broker. Channel Frame: This frame is used to establish a channel for communication between a producer or consumer and a broker. Message Frame: This frame contains the actual message content being sent over the network. Overall, AMQP is a popular protocol for enterprise messaging and loT applications because of its reliability, security, and interoperability. It is widely used for applications such as financial services, healthcare, and transportation ‘YouTube Channel: RGPV Exam official 2023 _—httpsi//www.youtube.com/@RGPVExamOflicial

You might also like