Latency Analysis of WebSocket and Industrial Protocols in Real-Time Digital Twin Integration
Latency Analysis of WebSocket and Industrial Protocols in Real-Time Digital Twin Integration |
||
|
||
© 2025 by IJETT Journal | ||
Volume-73 Issue-1 |
||
Year of Publication : 2025 | ||
Author : Mohammed Hlayel, Hairulnizam Mahdin, Husaini Aza Mohd Adam |
||
DOI : 10.14445/22315381/IJETT-V73I1P110 |
How to Cite?
Mohammed Hlayel, Hairulnizam Mahdin, Husaini Aza Mohd Adam, "Latency Analysis of WebSocket and Industrial Protocols in Real-Time Digital Twin Integration," International Journal of Engineering Trends and Technology, vol. 73, no. 1, pp. 120-135, 2025. Crossref, https://doi.org/10.14445/22315381/IJETT-V73I1P110
Abstract
Integrating digital twins with industrial automation, particularly in remote environments, demands efficient real-time communication to synchronize virtual models with physical devices. Latency and resource usage are critical for ensuring seamless operation, especially when considering IEC 61588 standards, which mandate response times under 100 milliseconds for real-time systems. This paper presents a comparative analysis of WebSocket as an intermediary protocol with Siemens S7, benchmarked against widely used industrial communication protocols, including MQTT, Modbus, and OPC UA. The study focuses on real-time performance and resource efficiency in remote setups, using Amazon Web Services (AWS) cloud-based Node-RED as the protocols’ server. Although WebSocket is not an industrial automation standard, it demonstrated competitive latency and resource efficiency, particularly when integrated with Siemens S7 for remote operations. The results show that WebSocket with S7 outperforms other protocols like MQTT, while Modbus and OPC UA exhibit higher latency in cloud-based Node-RED environments. OPC UA’s performance significantly improved after optimizing the currently used Node-RED’s server sampling parameters. These findings underscore the need for further optimization of Node-RED nodes to enhance protocol handling in remote industrial settings, as performance still lags behind local configurations.
Keywords
Digital Twin, Modbus, MQTT, OPC UA, WebSocket, Real-Time communication.
References
[1] Concetta Semeraro et al., “Digital Twin Paradigm: A Systematic Literature Review,” Computers in Industry, vol. 130, 2021.
[CrossRef] [Google Scholar] [Publisher Link]
[2] Ziqi Huang et al., “A Survey on Ai-Driven Digital Twins in Industry 4.0: Smart Manufacturing and Advanced Robotics,” Sensors, vol. 21, no. 19. pp. 1-35, 2021.
[CrossRef] [Google Scholar] [Publisher Link]
[3] Morteza Ghobakhloo, “Industry 4.0, Digitization, and Opportunities for Sustainability,” Journal of Cleaner Production, vol. 252, 2020.
[CrossRef] [Google Scholar] [Publisher Link]
[4] Thiago Lopes da Silva, and Urbano Chagas, “How Digital Twins Is Being Used in Industry 4.0,” Intechopen, 2023.
[CrossRef] [Google Scholar] [Publisher Link]
[5] Michael W. Grieves, Digital Twins: Past, Present, and Future, The Digital Twin, pp. 97-121, Springer, 2023.
[CrossRef] [Google Scholar] [Publisher Link]
[6] “ISO 23247-1, ISO 23247-4:2021: Automation Systems and Integration - Digital Twin Framework for Manufacturing, Part 1: Overview and General Principle,” Report, International Organization for Standardization, 2021.
[Google Scholar] [Publisher Link]
[7] Khalifa Alremeithi, Hassan Almaeeni, and Winston Sealy, “Virtualized Digital Twin (DT) of a Reconfigurable Programmable Logic Controller (PLC),” 2024 6th International Conference on Reconfigurable Mechanisms and Robots (ReMAR), Chicago, IL, USA, pp. 349-354, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[8] Luis Freitas et al., “OPC-UA in Digital Twins - A Performance Comparative Analysis,” International Conference Innovations in Mechatronics Engineering III, pp. 113-123, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[9] Eduardo Zancul, “A Digital Twin Design and Implementation Approach for Industrial Application Leveraging Programmable Logic Controllers,” International Journal on Interactive Design and Manufacturing (IJIDeM), pp. 1-9, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[10] Carlos Cremonini et al., “Design and Implementation of a Digital Twin for a Stone-Cutting Machine: A Case Study,” Procedia Computer Science, vol. 232, pp. 990-1000, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[11] Haoran Wang et al., “A Digital Twin Platform Integrating Process Parameter Simulation Solution for Intelligent Manufacturing,” Electronics, vol. 13, no. 4, pp. 1-21, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[12] Hanna Molin et al., “Automated Data Transfer for Digital Twin Applications: Two Case Studies,” Water Environment Research, vol. 96, no. 7, pp. 1-10, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[13] MQTT - The Standard for IoT Messaging, MQTT, 2024. [Online]. Available: https://mqtt.org/
[14] The OPC Unified Architecture (UA), OPC Foundation, 2024. [Online]. Available: https://opcfoundation.org/
[15] How do You Configure and Program an S7 Connection and the “PUT” and “GET” Instructions for Data Transfer between Two S7 CPUs?, Siemens, 2020. [Online]. Available: https://support.industry.siemens.com/cs/document/82212115/how-do-you-configure-and-program-an-s7-connection-and-the-%E2%80%9Cput%E2%80%9D-and-%E2%80%9Cget%E2%80%9D-instructions-for-data-transfer-between-two-s7-cpus-?dti=0&lc=en-US
[16] Modbus Organization, Modbus, 2024. [Online]. Available: https://www.modbus.org/
[17] Claire Palmer et al., Virtual Reality Based Digital Twin System for Remote Laboratories and Online Practical Learning, Advances in Transdisciplinary Engineering, pp. 277-283, 2021.
[CrossRef] [Google Scholar] [Publisher Link]
[18] M. Melo de Carvalho et al., “Industrial Real-Time Digital Twin System for Remote Teaching Using Node-Red,” 14th Annual International Conference of Education, Research and Innovation, pp. 6623-6632, Online Conference, 2021.
[CrossRef] [Google Scholar] [Publisher Link]
[19] IEC 61158-1: Fieldbus for Use in Industrial Control Systems - Data-Link Layer Service Definition, Industrial Communication Networks, International Electrotechnical Commission, 2007. [Online]. Available: https://webstore.iec.ch/en/publication/19154
[20] Diego R. C. Silva et al., “Latency Evaluation for MQTT and WebSocket Protocols: An Industry 4.0 Perspective,” 2018 IEEE Symposium on Computers and Communications (ISCC), Natal, Brazil, pp. 1233-1238, 2018.
[CrossRef] [Google Scholar] [Publisher Link]
[21] B.A. Enache, C.K. Banica, and Ana Geroge Bogdan, “Performance Analysis of MQTT Over Websocket for IoT Applications,” The Scientific Bulletin of Electrical Engineering Faculty, vol. 23, no. 1, pp. 46-49, 2023.
[CrossRef] [Google Scholar] [Publisher Link]
[22] Nick O'Leary, and Dave Conway-Jones, Node-RED, IBM Emerging Technology, Wikipedia, 2024. [Online]. Available: https://en.wikipedia.org/wiki/Node-RED
[23] Overview of Amazon Web Services - AWS Whitepaper, Amazon Web Services, 2023. [Online]. Available: https://docs.aws.amazon.com/whitepapers/latest/aws-overview/introduction.html
[24] Murilo Silveira Rocha et al., “On the Performance of OPC UA and MQTT for Data Exchange between Industrial Plants and Cloud Servers,” Acta IMEKO, vol. 8, no. 2, pp. 1-8, 2019.
[CrossRef] [Google Scholar] [Publisher Link]
[25] Arda Kocamuftuoglu, Okan Akbay, and Serkan Kaba, “A Comparative Study on Industrial Communication Protocols Using IoT Platforms,” The Eurasia Proceedings of Science Technology Engineering and Mathematics, vol. 14, pp. 57-65, 2021.
[CrossRef] [Google Scholar] [Publisher Link]
[26] Narongsak Putpuek, Apiradee Putpuek, and Sansern Phawandee, “Performance Evaluation of OPC UA and MQTT for ETAT Smart Lab (ESL),” 2023 7th International Conference on Information Technology, (InCIT), Chiang Rai, Thailand, pp. 17-21, 2023.
[CrossRef] [Google Scholar] [Publisher Link]
[27] Cornel Ventuneac, and Vasile Gheorghita Gaitan, “Industrial Internet of Things Gateway with OPC UA Based on Sitara AM335X with ModbusE Acquisition Cycle Performance Analysis,” Sensors, vol. 24, no. 7, pp. 1-13, 2024.
[CrossRef] [Google Scholar] [Publisher Link]
[28] Walczak Maciej, and Hetmanczyk Mariusz, “The Performance of IIOT Communication Standards,” Diagnostics, vol. 24, no. 3, pp. 1-8, 2023.
[CrossRef] [Google Scholar] [Publisher Link]
[29] Alexey Melnikov, and Ian Fette, RFC6455 - The WebSocket Protocol, IETF Datatracker, 2011. [Online]. Available: https://datatracker.ietf.org/doc/html/rfc6455
[30] Unity, Unity Platform, (2021).
[Google Scholar] [Publisher Link]
[31] S7-PLCSIM Advanced - Simulation for Virtual Commissioning and Testing, Siemens, 2024. [Online]. Available: https://www.siemens.com/global/en/products/automation/systems/industrial/plc/s7-plcsim-advanced.html
[32] GitHub - OPCFoundation/UA-.NETStandard: OPC Unified Architecture, OPC Foundation, 2024. [Online]. Available: https://github.com/OPCFoundation/UA-.NETStandard
[33] GitHub - Rossmann-Engineering/EasyModbusTCP.NET: Modbus TCP, Rossmann-Engineering, 2021. [Online]. Available: https://github.com/rossmann-engineering/EasyModbusTCP.NET
[34] GitHub - Eclipse-Paho/Paho.mqtt.m2mqtt, MqttClient, Paolo Patierno, 2017. [Online]. Available: https://github.com/eclipse/paho.mqtt.m2mqtt
[35] Websocket-Sharp, STA, 2024. [Online]. Available: https://sta.github.io/websocket-sharp/