Evaluating HTTP, MQTT over TCP and MQTT over WEBSOCKET for digital twin applications: A comparative analysis on latency, stability, and integration

Bauyrzhan Amirkhanov, Gulshat Amirkhanova, Murat Kunelbayev, Saltanat Adilzhanova, 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.

Authors

Bauyrzhan Amirkhanov
Gulshat Amirkhanova
Murat Kunelbayev
Saltanat Adilzhanova
Miras Tokhtassyn
mirastoktasyn30@gmail.com (Primary Contact)
Amirkhanov, B., Amirkhanova, G. ., Kunelbayev, M. ., Adilzhanova, S., & Tokhtassyn, M. . (2025). Evaluating HTTP, MQTT over TCP and MQTT over WEBSOCKET for digital twin applications: A comparative analysis on latency, stability, and integration. International Journal of Innovative Research and Scientific Studies, 8(1), 679–694. https://doi.org/10.53894/ijirss.v8i1.4414

Article Details

Most read articles by the same author(s)

No Related Submission Found