IDEAS home Printed from https://ideas.repec.org/a/aac/ijirss/v8y2025i1p679-694id4414.html
   My bibliography  Save this article

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

Author

Listed:
  • 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.

Suggested Citation

  • Bauyrzhan Amirkhanov & Gulshat Amirkhanova & Murat Kunelbayev & Saltanat Adilzhanova & Miras Tokhtassyn, 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, Innovative Research Publishing, vol. 8(1), pages 679-694.
  • Handle: RePEc:aac:ijirss:v:8:y:2025:i:1:p:679-694:id:4414
    as

    Download full text from publisher

    File URL: http://www.ijirss.com/index.php/ijirss/article/view/4414/623
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    Digital twin; ESP32; HTTP; MQTT; WebSocket.;
    All these keywords.

    JEL classification:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:aac:ijirss:v:8:y:2025:i:1:p:679-694:id:4414. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Natalie Jean (email available below). General contact details of provider: https://ijirss.com/index.php/ijirss/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.