DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Last call! Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • OPC-UA and MQTT: A Guide to Protocols, Python Implementations
  • Connecting the Dots: Unraveling IoT Standards and Protocols
  • IoT Connectivity Explored: A Deep Dive Into Predominant Communication Standards
  • IoT Communication Protocols for Efficient Device Integration

Trending

  • Enhancing Avro With Semantic Metadata Using Logical Types
  • Understanding Java Signals
  • Evolution of Cloud Services for MCP/A2A Protocols in AI Agents
  • Recurrent Workflows With Cloud Native Dapr Jobs
  1. DZone
  2. Data Engineering
  3. IoT
  4. Protocols and Standards Behind IoT: CoAP, BLE, MQTT, DDS

Protocols and Standards Behind IoT: CoAP, BLE, MQTT, DDS

Here's your guide to IoT protocols and standards.

By 
Martin Lewis user avatar
Martin Lewis
·
May. 09, 19 · Presentation
Likes (4)
Comment
Save
Tweet
Share
14.5K Views

Join the DZone community and get the full member experience.

Join For Free

IoT is so much more than just a huge mesh of connected devices or simple automation; it's potentially driving markets and changing a number of industries worldwide. Now, the overwhelming number of physical objects and devices are capable of collecting, storing, processing, automating, and conveying end-to-end information to applications, servers, and other objects. They include medicine, transportation, automotive, manufacturing, retail, security, and other numerous industries.

As we already know, an IoT device is designed in such a way that it can efficiently function and enable the live exchange of data online with other connected communication networks. While developing an IoT system is as easy as ABC, with a vast spectrum of communication and messaging protocols available, choosing the right one to make a connection possible might be difficult.

The decision to selecting the ideal protocol for your IoT product depends on various factors of your device, including the architecture, layer, type, and functionality. Each connectivity protocol comes with its own set of positives and negatives. To help you make the right decision, we've analyzed the four dominant, widely-used IoT protocol options for IoT apps. Let's have a look at each of them in greater detail.

#1: Bluetooth

Bluetooth is one of the most extensively used short-range wireless communication protocols for various consumer and computing products. The communication technology is expected to take the IoT architecture to the next level and become the key for various wearable and wireless devices. The new Bluetooth Low Energy (BLE) protocol or also called Bluetooth Smart is a modified version offering a similar range to the traditional Bluetooth while reducing data rates and power consumption. Eddystone is a protocol specification used to define the message format of BLE for propinquity beacon interactions. This protocol is going to structure the underlying base for most IoT devices and to all market innovations since it's flexible and scalable.

#2: Constrained Application Protocol (CoAP)

A standard IoT architecture consists of a software system, application layer, communication, and hardware, with CoAP acting as the application protocol layer. The IETF Constrained RESTful Environments (CoRE) developed an Internet utility and productivity protocol for constrained internet devices. This lightweight analog is designed to work with restricted nodes and networks by enabling them to connect to the IoT with low availability and bandwidth.

CoAP acts as a kind of HTTP that uses RESTful architecture to create a communication bridge between the IoT and various component-level elements and equipment such as actuators and sensors. Even in poor network quality, the CoAP enables devices to send data reliably and maintain a small distant communication successfully. One of the best aspects of CoAP is that it allows you to choose a data model of your choice. Similar to HTTP, it involves a variety of payloads and can be integrated with different data formats, including CBOR, JSON, XML, and so on.

From a developer's point of view, getting a value from a sensor is much similar to obtaining data from a web API. When a client sends a request to access resources through the usage of methods like PUT, GET, POST, and DELETE, the server responds and makes resources available at a Uniform Resource Identifier (URI).

#3: Message Queue Telemetry Transport (MQTT)

MQTT is one of the most dominating machine-to-machine (M2M) protocols based on the publish/subscribe message model. This message protocol uses TCP/IP layer for connections with remote locations and also for sending dependable and secure streams of information. Transferring data flows from sensors allows this message protocol to connect the gadget and its networks with the middleware standard (dealer) and different packages.

As far as its mechanism is concerned, the MQTT message protocol comprises three primary components to standardize its functionality: Subscriber; Publisher; and Broker.

  • Publisher: collects the information generated by the writer and transfers it to subscribers by the means of the usage of the broker component.
  • Broker/Dealer: checks the authorization of publishers and subscribers to ensure security.

This protocol is mainly useful when there's a need for monitoring and handling huge ecosystems of small devices via the internet. The classic examples are underwater lines, parking sensors, and power grids.

Pros:

  • Lightweight and works extremely well for constrained networks
  • Flexibility and freedom to choose Quality of Services with underlying network infrastructure and other given functionality
  • Developed, standardized, and defined by OASIS Technical Committee
  • Quick to set up and easy to implement

Cons:

  • High power usage due to the TCP-based connection
  • Short of encryption

#4. Data Distribution Service (DDS)

Designed and summarized by Object Management Group (OMG), Data Distribution Service (DDS) is a competent IoT protocol for scalable, real-time M2M communication. The protocol has been built and implemented to last for decades. This protocol leverages multicasting techniques in the transmission of data and high-quality QoS in the small memory footprint devices and to applications. It employs Data-Centric Public-Subscribe (DCPS) layer to directly communicate the information from publishers to subscribers and deliver reliable, scalable performance in embedded systems.

Since this message model has databus that directly connects subscribers and producers, it doesn't require a broker carrier to convey any sort of information. In addition to that, the DDS standard makes use of Data-Local Reconstruction Layer (DLRL) to provide a functional, powerful interface to carry out submit-subscriber functionalities. DDS successfully authorizes the allotment of distributed data amongst varied platforms and IoT enabled systems, ranging from real-time objects to cloud platforms. DDS is designed in such a way that it utilizes minimal resources, not only on the device but also on the network.

Conclusion

When it comes to selecting an IoT communication protocol for your project, there's no one-stop solution. While one protocol offers a disciplined plan to monitor as well as secure billions of interconnected devices and nodes, another one will be better at supporting green bandwidth usage and lowering power requirements while covering a whole host of industries and new IoT use cases. In the end, your decision to choosing the best communication protocol for IoT-based systems depends on your individual requirements and business needs, so think and pick accordingly.

Protocol (object-oriented programming) IoT MQTT

Opinions expressed by DZone contributors are their own.

Related

  • OPC-UA and MQTT: A Guide to Protocols, Python Implementations
  • Connecting the Dots: Unraveling IoT Standards and Protocols
  • IoT Connectivity Explored: A Deep Dive Into Predominant Communication Standards
  • IoT Communication Protocols for Efficient Device Integration

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!