Article · International Journal of Innovative Research and Scientific Studies · January 31, 2025
Evaluating HTTP, MQTT over TCP and MQTT over WEBSOCKET for digital twin applications: A comparative analysis on latency, stability, and integration
Bauyrzhan Amirkhanov, Gulshat A. Amirkhanova, Murat Kunelbayev, Салтанат Адилжанова, Miras Tokhtassyn
Abstract
This study aims to identify the most suitable IoT communication protocol for a digital twin architecture, focusing on meeting the demands of real-time data transmission with stability and security. The research methodology involves a comparative performance analysis of MQTT over TCP, MQTT over WebSocket, and HTTP protocols, evaluating their latency, connectivity stability, and IoT application feasibility using an ESP32 microcontroller and DHT22 sensor setup. The experimental results demonstrate that MQTT over TCP achieves the lowest average latency at 290.5 ms, while MQTT over WebSocket exhibits more stable latency profiles with a 193.2 ms standard deviation; HTTP, despite its broader compatibility, showed higher average latency of 342.6 ms with a 307.9 ms standard deviation. These findings provide valuable insights for digital twin implementations, enabling developers to make informed protocol selections based on specific requirements, whether prioritizing real-time performance through MQTT protocols or emphasizing system compatibility and simplicity through HTTP.
More by Murat Kunelbayev
- Improving the Energy Efficiency of Photovoltaic-Powered Drip Irrigation: Analysis of Pressure LossesInternational Conference on Nuclear and Renewable Energy Resources · 2026
- Optimization of the Electrical and Thermal Characteristics of a Hybrid PV/T System Based on CuO–ZnO NanofluidInternational Conference on Nuclear and Renewable Energy Resources · 2026
- An Intelligent Control System for a Dual-Loop Solar Installation with Thermosiphon Circulation Based on Artificial Intelligence MethodsInternational Conference on Nuclear and Renewable Energy Resources · 2026
- Adaptive Maximum Power Point Tracking and High-Frequency Sinusoidal Pulse Width Modulation Single-Phase Inverter for Standalone Photovoltaic SystemsInternational Conference on Nuclear and Renewable Energy Resources · 2026
