MQTT (Message Queuing Telemetry Transport) is a lightweight communication protocol that facilitates deploying telemetry information to network clients with restricted resources. The protocol, which uses the broadcast/subscriber communication model, plays an important role in the machine-to-machine (M2M), the Internet of Objects (IoT) and the Internet of industrial objects (Iıot or Industry 4.0).
Although there are a large number of ııot technologies and protocols that are currently stature, MQTT's extremely lightweight payload (2-byte header), publishing/subscribing model and bidirectional communication capabilities, to meet the demands of the IoT and industrial control systems is the most suitable structure.
The latest version, MQTT 3.1.1, is the open and royalty free OASıS standard. (OASıS is the organization of the development of structural information standards, an international consortium that promotes the adoption of non-product-dependent standards for information formats.)
What are the advantages of MQTT?
In order to better understand the benefits of MQTT, it is necessary to recognize the HTTP protocol that is the basis of the ecosystem we call the Internet today.
HTTP (HyperText Transfer Protocol) is the protocol that constitutes the infrastructure of the WWW (World Wide Web). It uses the HTTP request/response model, does not support bidirectional communication, and message sizes are fairly large. Such reasons have formed the basis for the invention of MQTT.
|Data security||Yes||No, HTTPS is used to ensure data security|
|Message size||Small, 2Byte binary||Large is in ASCII format|
|Data distribution||1 to 0/1/N||Just a one-on-one|
According to the measurements in 3G networks, MQTT's communication speed is 93 times faster than HTTP.
- Distributes information more efficiently
- Improves scalability
- Significantly reduces network bandwidth consumption
- Reduced update rates to short periods
- Very convenient for remote sensing and control
- Maximizes available bandwidth
- Safe with permission-based security
- Used by the oil and gas industry, Amazon, Facebook and other large enterprises
- The broadcast/subscriber communication model transmits more data with fewer bandwidth than the query protocols
How does MQTT work?
MQTT is a broadcast/subscriber protocol that allows network devices to broadcast to an agent (broker). Clients connect to this agent and the agent regulates communication between clients. Each device can subscribe to specific topics or unsubscribe. When a device publishes a message on the subject to which it is subscribed, the agent can forward the message to all subscribed devices or a single device on the same subject.
MQTT is two-sided and maintains state information. If a device loses connectivity, all clients that are subscribed are notified by the MQTT server. Thus, the message sent by one of the devices in the system is transmitted to all devices in the same subscription each or late.
The lightness and efficiency of MQTT makes it possible to significantly increase the amount of monitored or controlled data. MQTT provides much more data communication than the same bandwidth compared to HTTP.
For more information about how MQTT works: http://mqtt.com
Who is using MQTT?
MQTT was initially developed for low-bandwidth, high-latency data connections used in the oil and gas industry. However, MQTT is used in many areas, from controlling intelligent lighting systems beyond oil and gas to the Facebook Messenger application. Amazon Web Services recently announced that the Internet of Objects (IoT) was based on MQTT.
Learn more about MQTT at: http://mqtt.org