Challenges and Optimization of Message Queuing Telemetry Transport-Resource Discovery Operation †
Abstract
1. Introduction
2. Literature Review
- RD: Each sniffer maintains a resource directory that records information about Devices and Sniffers within the network. The data is dynamically updated using the MQTT protocol, ensuring real-time synchronization and system scalability.
- Topic management: Specific MQTT topics are utilized for resource discovery, device registration, and message exchange with the following subcommands.
- -
- /getlist: Retrieves the resource directory, providing a list of available devices in the network.
- -
- /registdevice: Devices register their information with Sniffers, updating the resource directory.
- -
- /sniffercommunication: Facilitates message exchange and data synchronization between Sniffers.
- Multicast mechanism: Sniffers and devices use multicast IP to discover Sniffers within the network and retrieve the corresponding Broker’s location information.
- MQTT: By subscribing to specific topics (e.g., /getlist), network resource information is retrieved and synchronized.
- Resource detection and management to maintain information on Sniffers and Devices within the network and ensure the accuracy of the resource directory.
- Resource directory synchronization to synchronize and update the resource directory with other Sniffers, ensuring consistency across multiple Sniffers.
- Local Sniffer operates exclusively within the local network, detecting and managing local devices without external network communication capabilities.
- Internet sniffers include the functionalities of a local Sniffer with the added capability of external network communication. They exchange information with other Internet Sniffers via the cloud broker, suitable for applications requiring cross-network resource synchronization.
3. MQTT-RD System Operation
- Initialization stage: The Sniffer uses multicast to discover other Sniffers within the same subnet and retrieves the latest resource directory data via the /getlist topic. For Internet Sniffers, additional information is obtained from the cloud broker.
- Update resource directory stage: The Sniffer integrates the retrieved resource lists and updates the local directory to ensure data synchronization and consistency.
- Subscribe stage: The Sniffer subscribes to topics such as /sniffercommunication and /registdevice, allowing it to receive and process updates from other Sniffers and devices.
- Publish stage: The Sniffer periodically publishes the updated local resource directory via the /getlist topic, making it accessible for other devices and Sniffers to retrieve and synchronize.
4. Results and Discussion
- Internet Sniffer: 0.285 KB
- Internet Sniffer & Local Sniffer: 0.473 KB
- 2 × (Internet Sniffer and local Sniffer): 0.744 KB
- Internet: Each Sniffer needed to send one message, but the number of received messages was m, where m is the total number of Sniffers connected to the cloud broker.
- Local network: Each Sniffer encountered network congestion during n − 1 message exchanges, where n represents the total number of local Sniffers.
5. Discussion
- Publish/subscribe optimization: Refine topic design (e.g., /getlist/controls) and use retained messages and random delays to reduce traffic and improve performance.
- Centralized management: Upgrade the cloud broker for centralized synchronization and publication to enhance data efficiency.
- PingAlive optimization: Lower message frequency and improve processing to reduce redundancy and traffic.
- Hierarchical design: Classify Sniffers into local and regional layers to optimize data exchange and load distribution.
6. Conclusions and Future Work
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Gubbi, J.; Buyya, R.; Marusic, S.; Palaniswami, M. Internet of Things (IoT): A vision, architectural elements, and future directions. Future Gener. Comput. Syst. 2013, 29, 1645–1660. [Google Scholar] [CrossRef]
- Musaddiq, A.; Zikria, Y.B.; Hahm, O.; Yu, H.; Bashir, A.K.; Kim, S.W. A survey on resource management in IoT operating systems. IEEE Access 2018, 6, 8459–8482. [Google Scholar] [CrossRef]
- Liu, M.; Leppänen, T.; Harjula, E.; Ou, Z.; Ramalingam, A.; Ylianttila, M.; Ojala, T. Distributed resource directory architecture in Machine-to-Machine communications. In Proceedings of the 2013 IEEE 9th International Conference on Wireless and Mobile Computing, Networking and Communications (WiMob), Lyon, France, 7–9 October 2013; IEEE: New York, NY, USA, 2013; pp. 319–324. [Google Scholar]
- Datta, S.K.; Da Costa, R.P.F.; Bonnet, C. Resource discovery in Internet of Things: Current trends and future standardization aspects. In Proceedings of the 2015 IEEE 2nd World Forum on Internet of Things (WF-IoT), Milan, Italy, 14–16 December 2015; IEEE: New York, NY, USA, 2015; pp. 542–547. [Google Scholar]
- Pereira, E.M.; Pinto, R.; Reis, J.P.C.D.; Gonçalves, G. MQTT-RD: A MQTT based Resource Discovery for Machine to Machine Communication. In Proceedings of the 4th International Conference on Internet of Things, Big Data and Security—IoTBDS, Crete, Greece, 2–4 May 2019; pp. 115–124. [Google Scholar]
- Galetić, V.; Bojić, I.; Kušek, M.; Ježić, G.; Dešić, S.; Huljenić, D. Basic principles of Machine-to-Machine communication and its impact on telecommunications industry. In Proceedings of the 2011 Proceedings of the 34th International Convention MIPRO, Opatija, Croatia, 23–27 May 2011; IEEE: New York, NY, USA, 2011; pp. 380–385. [Google Scholar]
- Song, J.; Kunz, A.; Schmidt, M.; Szczytowski, P. Connecting and managing m2m devices in the future internet. Mob. Netw. Appl. 2014, 19, 4–17. [Google Scholar] [CrossRef]
- Fysarakis, K.; Askoxylakis, I.; Soultatos, O.; Papaefstathiou, I.; Manifavas, C.; Katos, V. Which IoT protocol? Comparing standardized approaches over a common M2M application. In Proceedings of the 2016 IEEE Global Communications Conference (GLOBECOM), Washington, DC, USA, 4–8 December 2016; IEEE: New York, NY, USA, 2016; pp. 1–7. [Google Scholar]
- Shelby, Z.; Hartke, K.; Bormann, C. The Constrained Application Protocol (CoAP); Internet Engineering Task Force: Fremont, CA, USA, 2014; ISSN 2070–1721. [Google Scholar]
- Rizzardi, A.; Sicari, S.; Miorandi, D.; Coen-Porisini, A. AUPS: An open source AUthenticated Publish/Subscribe system for the Internet of Things. Inf. Syst. 2016, 62, 29–41. [Google Scholar] [CrossRef]
- Eclipse. Eclipse Mosquitto. Available online: https://mosquitto.org/ (accessed on 18 August 2023).
- VMware. Available online: https://www.vmware.com/ (accessed on 1 September 2025).
- Oracle Corporation. Openjdk. Available online: https://openjdk.org/ (accessed on 7 January 2025).
- Apache. Apache Ant. Available online: https://ant.apache.org/ (accessed on 7 January 2025).
- OASIS. MQTT version 3.1.1. Available online: https://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html (accessed on 7 January 2025).
- OASIS. MQTT Version 5.0. Available online: https://docs.oasis-open.org/mqtt/mqtt/v5.0/mqtt-v5.0.html (accessed on 11 August 2023).
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. |
Term | Description |
---|---|
Sniffer | Maintains and syncs the resource directory; classified as Local or Internet Sniffer. |
Broker | Handles communication and data management; includes Local and Cloud (Remote) Broker. |
Devices | IoT entities connected to the Broker, such as sensors. |
Network | Local network for discovering Sniffers using multicast (e.g., 224.0.1.1:9876). |
Sniffer Configuration | configPath/config1.json: Contains Sniffer ID, Broker settings, and network parameters. |
Resource Directory | RD/listPath/list_path/yellowpages1.json: Stores and syncs lists of Devices and Sniffers. |
/sniffercommunication | Facilitates communication between Sniffers. |
/registdevice | Handles device registration and updates the Resource Directory. |
/getlist | Publishes or subscribes to the Resource Directory for synchronization. |
System | Ubuntu 22.04 LTS |
Virtual Machine | VMware [12] |
Java Environment | OpenJDK Version: 11.0.25 [13] |
Tools and Compiler | Apache Ant™ Version: 1.10.12 [14] |
Broker (Sniffer) | Moquette MQTT Broker (supports only MQTT 3.1.1 protocol [15], not MQTT 5.0) [16] |
VM | IP | Multicast ID | Multicast IP |
---|---|---|---|
Ubuntu | 192.168.138.10 | None | None |
SnifferA1 | 192.168.138.11 | n1 | 224.0.1.11 |
SnifferA2 | 192.168.138.12 | n1 | 224.0.1.11 |
SnifferB1 | 192.168.138.21 | n2 | 224.0.1.12 |
SnifferB2 | 192.168.138.22 | n2 | 224.0.1.12 |
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. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Shih, A.-T.; Chien, H.-Y.; Huang, Y.-M. Challenges and Optimization of Message Queuing Telemetry Transport-Resource Discovery Operation. Eng. Proc. 2025, 108, 24. https://doi.org/10.3390/engproc2025108024
Shih A-T, Chien H-Y, Huang Y-M. Challenges and Optimization of Message Queuing Telemetry Transport-Resource Discovery Operation. Engineering Proceedings. 2025; 108(1):24. https://doi.org/10.3390/engproc2025108024
Chicago/Turabian StyleShih, An-Tong, Hung-Yu Chien, and Yuh-Ming Huang. 2025. "Challenges and Optimization of Message Queuing Telemetry Transport-Resource Discovery Operation" Engineering Proceedings 108, no. 1: 24. https://doi.org/10.3390/engproc2025108024
APA StyleShih, A.-T., Chien, H.-Y., & Huang, Y.-M. (2025). Challenges and Optimization of Message Queuing Telemetry Transport-Resource Discovery Operation. Engineering Proceedings, 108(1), 24. https://doi.org/10.3390/engproc2025108024