Cloud Technology

Is CoAP a better alternative to MQTT for constrained IoT devices with limited bandwidth?

LA Asked by Laura Higgins · 03-11-2024
0 upvotes 15,922 views 0 comments
The question

We are working on a satellite-linked IoT project where every byte of data is extremely expensive. We’ve been using MQTT, but the keep-alive overhead is eating our budget. Would switching to CoAP provide significant savings, or is the complexity of UDP-based reliability not worth the effort compared to standard TCP/MQTT? 

3 answers

0
SA
Answered on 05-11-2024

For satellite links, CoAP is often superior because it is built on UDP, eliminating the heavy three-way handshake and persistent connection overhead of TCP. CoAP’s header is only 4 bytes, whereas MQTT has a much larger footprint when you factor in the TCP overhead and the frequent "Keep-Alive" packets required to maintain the broker connection. However, remember that because UDP is connectionless, you must handle message deduplication and reliability at the application layer. If your satellite provider charges per packet, the lack of a persistent session in CoAP can save you thousands of dollars in the long run. 

0
P
Answered on 06-11-2024

Have you looked into MQTT-SN (Sensor Networks)? It’s specifically designed to bring the benefits of MQTT to UDP-based networks without the heavy TCP baggage. 

LA 08-11-2024

We looked at MQTT-SN, Paul, but our gateway provider doesn't natively support the bridge yet. We are leaning towards CoAP because it allows us to use a RESTful architecture which our web developers find easier to integrate. The main challenge now is ensuring we don't lose data during satellite handovers. We are implementing a 'Confirmable Message' logic in CoAP to mimic the QoS 1 level we liked in MQTT, which seems to be a good middle ground for our specific cost constraints.

0
JO
Answered on 09-11-2024

If bandwidth cost is your primary driver, CoAP is the winner. Just make sure your security layer (DTLS) doesn't add back all the bytes you just saved. 

SA 10-11-2024

Spot on, Joseph. Security overhead is the 'hidden cost' of IoT protocols that many people forget to calculate until they see the first bill.

Share your thoughts

Your email address will not be published. Required fields are marked (*)

Professional Counselling Session

Still have questions?
Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Request a Call Back

Search Online

We Accept

We Accept

Follow Us

"PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc. | "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA. | COBIT® is a trademark of ISACA® registered in the United States and other countries.

Book Free Session