You are currently viewing a new version of our website. To view the old version click .
Engineering Proceedings
  • Proceeding Paper
  • Open Access

25 August 2025

Comparative Performance Analysis of Data Transmission Protocols for Sensor-to-Cloud Applications: An Experimental Evaluation †

and
Department of Communication and Computer Engineering and Technologies, South-West University “Neofit Rilski”, 2700 Blagoevgrad, Bulgaria
*
Author to whom correspondence should be addressed.
Presented at the International Conference on Electronics, Engineering Physics and Earth Science (EEPES 2025), Alexandroupolis, Greece, 18–20 June 2025.
This article belongs to the Proceedings International Conference on Electronics, Engineering Physics and Earth Science (EEPES 2025)

Abstract

This paper examines some of the most popular protocols for transmitting sensor data to cloud structures from publish/subscribe and request/response IoT models. The selection of a highly efficient message transmission protocol is essential, as it depends on the specific characteristics and purpose of the developed IoT system, which includes communication requirements, message size and format, energy efficiency, reliability, and cloud specifications. No standardized protocol can cover all the diverse application scenarios; therefore, for each developed project, the most appropriate protocol must be selected that meets the project’s specific requirements. This work focuses on finding the most appropriate protocol for integrating sensor data into a suitable open-source IoT platform, ThingsBoard. First, we conduct a comparative analysis of the studied protocols. Then, we propose a project that represents an experiment for transmitting data from a stationary XBee sensor network to the ThingsBoard cloud via HTTP, MQTT-SN, and CoAP protocols. We observe the parameters’ influence on the delayed transmission of packets and their load on the CPU and RAM. The results of the experimental studies for stationary sensor networks collecting environmental data give an advantage to the MQTT-SN protocol. This protocol is preferable to the other two protocols due to the lower delay and load on the processor and memory, which leads to higher energy efficiency and longer life of the sensors and sensor networks. These results can help users make operational judgments for their IoT applications.

1. Introduction

We are witnessing times when modern wireless sensor networks generate vast amounts of sensor data every hour, every day, from various sources such as smart cities, transportation, healthcare, military industry, agriculture, industrial production, and others. During the different stages of transmission, processing, and storage of this data, guarantees for security and long network life are demanded. It is known that wireless sensor networks (WSNs) do not have the necessary hardware and firmware capacity. Therefore, the data passing through the sensors leads to rapid consumption of their energy resources and a decrease in the overall life of the networks [1,2]. Trends related to solving the above challenges lead to designing and producing increasingly intelligent sensors that allow operation as end devices. These smart sensors differ from traditional sensors with integrated platforms, including microprocessors for data processing and storage, diagnostic software, and communication tools, capable of transforming the collected data into a ready-made analysis for decision-making. Since smart sensors can process signals directly, measurement results or execution of specific analytical applications can be performed immediately, and decisions can be made immediately, which turns these sensors into near-end devices [3,4].
The possibility of processing and storing sensor data in cloud structures, based on the “Sensor–Cloud” integration paradigm, is gaining popularity and is increasingly being applied in practice. Clouds are flexible, powerful, and cost-effective technology that provides real-time data to users at any time, with massive coverage and quality [5,6]. Cloud platforms offer the appropriate technology to process large volumes of collected sensor data, enable real-time data monitoring, and have the necessary equipment to fulfill integration requirements [7]. Today, organizations that decide to move to cloud storage and data processing benefit from a simplified IT infrastructure and administration, remote access to their data from anywhere on the Internet, and at a reasonable price. In [8], we presented a diagram of integrating data from sensor networks in the cloud, which solves essential questions about the cost of sensor networks and the possibilities of storing sensor data in specialized cloud databases. We analyze the features of sensor data and the specific requirements and models for their storage and processing. The most appropriate way to build an integration infrastructure is to apply the IEEE 1888 standard [9], where data is transmitted by protocol.
One of the severe challenges is the interaction between the WSN and the cloud during the transmission of the sensor data to the cloud. An appropriate integration protocol must be chosen when using the cloud, which inherently determines how the data arrives from the sensors to the cloud (at what speed, format, delay, etc.). Sensor–cloud communication can be implemented through different architectural models depending on the adopted approach for data transmission through a gateway or coordinator, or directly between sensor networks and clouds, some of which we have explored in our work [10]. The most challenging task in designing IoT systems is building a communication channel between local devices, gateways, and cloud platforms. Data can be exchanged using different protocols [11,12]. In [13], the delay in transmitting sensitive patient data via AMQP and CoAP protocols in remote patient monitoring systems was investigated.
The right choice of communication protocol is important, as it significantly determines the effective collection, transmission, and processing of data in the cloud, which is crucial for real-time decision-making and forecasting. Poor protocol selection can lead to increased network congestion, lower performance and security, higher power consumption, and reduced efficiency of the designed system, compromising the benefits of cloud-based analytics and storage.
This paper explores considerations for selecting the optimal protocol for integrating sensor data into a cloud. The characteristics of commonly used communication protocols are analyzed, real experiments are conducted to study the performance of the HTTP, CoAP, and MQTT-SN protocols supported by the ThingsBoard cloud, and recommendations are provided based on experimental results. The obtained experimental results allow for clarification of the protocols’ influence on the design of sensor–cloud structures and the most appropriate choice of communication protocol.

3. Materials and Methods

First, we design a hardware platform that creates an entire XBee/Zigbee sensor network, working in Mesh network mode, that gathers local environmental sensor data. The network uses Raspberry Pi (RPI) as a gateway to send the collected data to the cloud over different protocols (HTTP, MQTT-SN, CoAP), according to Figure 1. The delay is measured at the RPI4 using the delay function, which measures the time from sending the packets to receiving the ASK.
Figure 1. Design experiment.
To establish the collection of sensor data, we used the Wall router, which is composed of temperature and light sensors, as well as a Zigbee radio module [23,24,25] (Table 2). The XCTU software platform controls the technical settings of the Wall router. Our project uses the Raspberry Pi 4 Model A. It offers high CPU speed, multimedia performance, and intelligence compared to the previous-generation Raspberry Pi 3 Model A, while maintaining backward compatibility and similar power consumption. For the end user, the Raspberry Pi 4 Model A provides desktop performance comparable to base x86 PC systems [26,27]. Some of the essential technical characteristics of the hardware components involved in the experiment are listed in Table 2.
Table 2. Technical characteristics of the hardware components.
Second, we developed Python code (in RPI4) and used it to design different scenarios for conducting experimental research, collecting sensor data, generating the integration protocols, and creating variable parameters with different parameter values for each scenario: number of packets (P) transmitted, number of topics (T) number per packet, and byte value/size (bS) per topic.
Third, we create an account, develop settings, and connect to the ThingsBoard cloud. We execute the code designed to transmit, process, and store data in the cloud database.
Fourth, we use the variable parameters (number of packets transmitted, topic number per packet, and byte value per topic) and trace the conditions for data transmission, like packet delay (nanoseconds) and energy (CPU/RAM load in MHz/MB) consumption.
We use Wireshark software tools in the fifth step to trace the transmitted packets’ destination and size verification for each examined protocol.

4. Results and Discussion

4.1. Tracking the Impact of Parameters and Protocols on the Delay of Transmitted Data

Figure 2 shows that the studied protocols decrease their performance with increasing values of the variable parameters. MQTT-SN and HTTP maintain a stable proportional ratio. Since the size of HTTP messages is the largest, the most significant delay in data transmission is also observed here. The CoAP protocol ranks second in delay. An interesting trend is observed—increased delay values when the number of packets increases above 70 per second in peak values, which reduces the performance of CoAP. Even though when transmitting data through a gateway, the MQTT-SN protocol performs a complex conversion, which leads to an unavoidable delay in data transmission, the delay in MQTT-SN is the smallest.
Figure 2. Peak influence on transmitted packets data delay: number of packets (P), number of topics (T) per packet, and byte size (bS) per topic.
Therefore, since the two protocols are “light”, small values of the variable parameters should be used to favor their maximum capability. On the other hand, this leads to a higher communication channel performance when transmitting sensor data in the cloud. The XBee/ZigBee modules also have a limited capability level for data transmission. One reason is the restricted time window in which XBEEs can transmit I/O data. The manufacturer recommends the time window settings, and we do not change them during our testing due to the risk of reducing XBee performance. Varying parameters (P, T, bs) result in different delay times, highlighting the importance of optimizing these parameters for efficient data transmission. MQTT-SN performance is the best among the other protocols despite the limited usage. Conversely, CoAP shows a higher level of “sensitivity” (dependency) from the variable values (especially values for topics and byte size in our cases). On average, when values are roughly above 70 packets, topics, and byte sizes, CoAP shows significantly lower results than HTTP.

4.2. Energy Consumption

As expected, MQTT-SN has the lowest CPU load compared to other protocols (Figure 3). Regarding CPU load, CoAP and HTTP show almost the same values when the transmitted packets are up to 70. Increasing the transmitted packets above 70 leads to a sharp increase in CPU load when communicating via the CoAP protocol. Therefore, when transmitting a small number of packets, up to 70, the MQTT-SN and CoAP protocols are almost the same in CPU load.
Figure 3. Processor load.
The RAM load results in Figure 4 show that MQTT-SN uses the least RAM compared to CoAP and HTTP. The CoAP and HTTP protocols show similar results but vary depending on the data transmitted. Again, a significant RAM load is observed when increasing the number of packages above 70.
Figure 4. RAM usage.

4.3. Verification of the Functionality of the Program Code

Using the Wireshark tool, we trace the destination and check the transmitted packet size for each protocol studied. Figure 5 shows the transmitted data via HTTP, MQTT-SN, and CoAP protocols and proves the data sent via the UDP protocol, which MQTT-SN and MQTT-SN gateway use.
Figure 5. Verification of the functionality of the program code.

5. Conclusions and Future Work

The paradigm of integrating data from sensor networks to various cloud platforms enables us to overcome sensor networks’ hardware and firmware limitations and process the collected data. This integration significantly reduces the operating costs of sensor networks and increases their application through monitoring and diagnostics of remote objects, which is especially important for critical infrastructure. One of the challenges in implementing the sensor–cloud paradigm is building a communication channel through various protocols between sensor devices, gateways, and cloud platforms. Its importance is also evidenced by the increased interest in research on this problem by the business and scientific communities.
The present document shows the results of the experimental studies, which involved data transmission from a stationary sensor network to a public cloud. The sensor network is built from XBee/Zigbee sensor devices, adopting a mesh topology for data transmission. The collected environmental data is transmitted from the stationary sensor network to the cloud through the Raspberry Pi as a gateway through the HTTP, MQTT-SN, and CoAP protocols. An algorithm and Python programming code were developed to conduct the experiments under different scenarios.
The experiments on a real-built sensor network and its logical connection with a cloud allowed us to study essential parameters for the performance of the resulting communication channel, such as the delay of transmitted data and CPU and RAM load. The functionality of our developed code has been verified with the Wireshark software tool.
Our survey shows that each protocol reduces productivity when increasing the variable values (to one degree or another). MQTT-SN shows the lowest dependency on the variable values, and HTTP is in second place. CoAP shows the highest dependency on the increasing variable values and substantially lower results than HTTP. During the experiments, an interesting trend was found, leading to the determination of limit values for the maximum number of packets transmitted to the cloud platform for the implemented hardware configuration regarding the COAP protocol. Increasing the number of transmitted packets above 70 degrades the performance of the communication channel.
In conclusion, the MQTT-SN protocol is preferable to the other two protocols for collecting environmental data from stationary sensor networks due to its lower delay and CPU and RAM load. This results in higher energy efficiency and longer lifetimes of sensors and sensor networks. Of course, any experimental result depends on hardware, firmware, and software configurations.

Author Contributions

Conceptualization, F.T. and M.P.; methodology, F.T.; resources, F.T.; software, M.P.; validation, M.P.; formal analysis, all; investigation, all; writing—original draft preparation, F.T.; writing—review and editing, F.T.; visualization, F.T.; contributed to the interpretation of the results, all; writing—review and editing, F.T. All authors have read and agreed to the published version of the manuscript.

Funding

The research and all payments for conducting the experiments and subsequent fees were borne by me, the author of the publication.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Data are obtained in the article.

Acknowledgments

The study was conducted in the laboratories of South-West University “Neofit Rilski”, Blagoevgrad, Bulgaria.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Dwivedi, R.K.; Sarika, S.; Rakesh, K. Integration of Wireless Sensor Networks with Cloud: A Review. In Proceedings of the 9th International Conference on Cloud Computing, Data Science & Engineering (Confluence), Noida, India, 10–11 January 2019; pp. 114–119. [Google Scholar] [CrossRef]
  2. Radha, D.; Kumar, M.A.; Telagam, N.; Sabarimuthu, M. Smart Sensor Network-Based Autonomous Fire Extinguish Robot Using IoT. Int. J. Onl. Eng. 2021, 17, 101–110. [Google Scholar] [CrossRef]
  3. Luca, C. Five Trends in Sensor Technologies for IoT. 5 January 2023. Available online: https://network-king.net/five-trends-in-sensor-technologies-for-iot/ (accessed on 23 January 2024).
  4. Sharma, G.; Shakya, R.; Dhakal, P. Future Trends of Wireless Sensor Network. J. Inform. Tech. Softw. Eng. 2021, 11, 265. [Google Scholar]
  5. Misra, S.; Chatterjee, S.; Obaidat, M. On Theoretical Modeling of Sensor Cloud: A Paradigm Shift From Wireless Sensor Network. IEEE Syst. J. 2017, 11, 1084–1093. [Google Scholar] [CrossRef]
  6. Ali, I.; Ahmedy, I.; Gani, A.; Talha, M.; Raza, M.A.; Anisi, M.H. Data collection in sensor-cloud: A systematic literature review. IEEE Access 2020, 8, 184664–184687. [Google Scholar] [CrossRef]
  7. Ketema, Z.; Mala, B.; Dzikanyanga, G.; Tomo, R.; Argungu, J. Sensor-cloud Architecture: A Security Taxonomy in Cloud-assisted Sensor Networks. Int. J. Adv. Eng. Manag. Res. 2024, 9, 33–50. [Google Scholar] [CrossRef]
  8. Tsvetanov, F.A. Storing Data from Sensor Networks. J. IOP Conf. Ser. Mater. Sci. Eng. 2021, 1032, 012012. [Google Scholar] [CrossRef]
  9. IEEE Std 1888-2011; IEEE Standard for Ubiquitous Green Community Control Network Protocol. IEEE: Piscataway, NJ, USA, 2011.
  10. Tsvetanov, F.; Pandurski, M. Some Aspects for the Integration of Sensor Networks in Cloud Structures. In Proceedings of the International Conference on High Technology for Sustainable Development (HiTech), Sofia, Bulgaria, 11–14 June 2018; pp. 1–4. [Google Scholar] [CrossRef]
  11. Tsvetanov, F.; Pandurski, M. Selection of Protocols for Integration of Sensory Data Networks in Cloud Structures. Int. J. Online Biomed. Eng. 2022, 18, 29–40. [Google Scholar] [CrossRef]
  12. Tsvetanov, F.; Pandurski, M.N. Efficiency of integration between sensor networks and clouds. Int. J. Electr. Comput. Eng. Syst. 2022, 13, 427–435. [Google Scholar] [CrossRef]
  13. Tsvetanov, F.; Pandurski, M. Delay of Transmitted Data in the Remote Patient Monitoring System through AMQP and CoAP. Int. J. Online Biomed. Eng. 2024, 20, 130–144. [Google Scholar] [CrossRef]
  14. Paraskevopoulos, D. 5 Things to Know About IoT Protocols. 14 September 2022. Available online: https://iot-analytics.com (accessed on 24 January 2024).
  15. Nitin, N. Choice of effective messaging protocols for IoT systems: MQTT, CoAP, AMQP, and HTTP. In Proceedings of the IEEE International Systems Engineering Symposium, Vienna, Austria, 11–13 October 2017; pp. 1–7. [Google Scholar] [CrossRef]
  16. Zakaria, L.; Roberto, M.; Tarik, T. Service Provisioning in Vehicular Networks Through Edge and Cloud: An Empirical Analysis. In Proceedings of the IEEE Conference on Standards for Communications and Networking (CSCN), Paris, France, 29–31 October 2018; pp. 1–6. [Google Scholar] [CrossRef]
  17. Herrero, R. MQTT-SN, CoAP, and RTP in Wireless IoT real-time communications. Multimed. Syst. 2020, 26, 643–654. [Google Scholar] [CrossRef]
  18. Bayılmış, C.; Ebleme, M.A.; Çavuşoğlu, Ü.; Küçük, K.; Sevin, A. A survey on communication protocols and performance evaluations for Internet of Things. Digit. Commun. Netw. 2022, 8, 1094–1104. [Google Scholar] [CrossRef]
  19. Roy, D.G.; Mahato, B.; De, D.; Buyya, R. Application-aware end-to-end delay and message loss estimation in Internet of Things (IoT)—MQTT-SN protocols. Future Gener. Comput. Syst. 2018, 89, 300–316. [Google Scholar] [CrossRef]
  20. Govindan, K.; Azad, A.P. End-to-end service assurance in IoT MQTT-SN. In Proceedings of the 2015 12th Annual IEEE Consumer Communications and Networking Conference (CCNC), Las Vegas, NV, USA, 9–12 January 2015; pp. 290–296. [Google Scholar] [CrossRef]
  21. Gregersen, C.R. The Basics of IoT’s Constrained Application Protocol (CoAP). 2021. Available online: https://www.embedded.com/the-basics-of-iots-constrained-application-protocol-coap/ (accessed on 25 January 2025).
  22. Seoane, V.; Garcia-Rubio, C.; Almenares, F.; Campo, C. Performance Evaluation of CoAP and MQTT with Security Support for IoT Environments. Comput. Netw. 2021, 197, 108338. [Google Scholar] [CrossRef]
  23. Digi’s Wall Router. 2017. Available online: https://www.digi.com/resources/documentation/digidocs/PDFs/90001537.pdf (accessed on 16 November 2024).
  24. Digi XBee Wall Router. 2018. Available online: https://ftp1.digi.com/support/documentation/ds_xbeewallrouter.pdf (accessed on 17 December 2024).
  25. Digi’s XCTU Software. 2022. Available online: https://www.digi.com/resources/documentation/digidocs/PDFs/90001458-13.pdf (accessed on 16 December 2024).
  26. Rakesh, P.; Prakash, I.M. Raspberry Pi-based E-Health System over Internet of Things. IOP Conf. Ser. Mater. Sci. Eng. 2020, 981, 042008. [Google Scholar] [CrossRef]
  27. The Official Raspberry Pi Beginner’s Guide. 2020. Available online: https://magazines-attachments.raspberrypi.org/books/full_pdfs/000/000/038/original/BeginnersGuide-4thEd-Eng_v2.pdf (accessed on 16 December 2024).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.