The International Arab Journal of Information Technology (IAJIT)

..............................
..............................
..............................


Using the MQTT Protocol in Real Time for

This paper will present a design and implementation for an embedded system to connect to a Machine to Machine (M2M) broker. The proposed system will use the cloud server to communicate with other embedded systems. The system will be configurable from a cloud-based web service. The paper also will explore previous research on M2M protocols such as Message Queueing Telemetry Transport (MQTT) and Advanced Messaging Queuing Protocol (AMQP). The paper will present and demonstrate an MQTT based system for synchronizing IoT device state across multiple client nodes. The objective of the system is for state changes to be registered and distributed throughout the system in under 1 second; and initial registration of a new node should occur in under 30 seconds.


[1] AMQP protocol specification, (http://amqp.org), Last Visited, 2017.

[2] AngularJS Framework, (https://angularjs.org), Last Visited, 2017.

[3] Asensio A., Marco A., Blasco R., and Casas R., Protocol and Architecture to Bring Things into Internet of Things, International Journal of Distributed Sensor Networks, vol. 2014, pp.1-18, 2014.

[4] Atzori L., Iera A., and Morabito G., The Internet of Things: A Survey, Computer Networks, vol. 54, no. 15, pp. 2787-2805, 2010.

[5] Soundarabai P. and Chelliah P., Connected Environments for the Internet of Things. Computer Communications and Networks, Springer, 2017.

[6] Caro N., Colitti W., Steenhaut K., Mangino G., and Reali G., Comparison of Two Lightweight Protocols for Smartphone-Based Sensing, in Proceedings of IEEE 20th Symposium on Communications and Vehicular Technology in Benelux, Namur, pp. 1-6, 2013.

[7] CoAP protocol specification, (http://coap.technology), Last Visited, 2017.

[8] Chen Y. and Kunz T., Performance Evaluation of Iot Protocols Under A Constrained Wireless Access Network, in Proceedings of International Conference on Selected Topics in Mobile and Wireless Networking, Cairo, pp. 1-7, 2016.

[9] Daud M. and Suhaili W., Internet of Things (IoT) with CoAP and HTTP Protocol: A Study on Which Protocol Suits IoT in Terms of Performance, in Proceedings of the Computational Intelligence in Information Systems Conference, pp. 165-174, Cham, 2017.

[10] DDS protocol specification, 0 500 1000 1500 0%5%10%15%20%25% Latency vs. Packet Loss Latency (ms) Lost Messages 520 The International Arab Journal of Information Technology, Vol. 15, No. 3A, Special Issue 2018 (http://www.omg.org/spec/DDS), Last Visited, 2017.

[11] Dhar P. and Gupta P., Intelligent Parking Cloud Services Based on IoT using MQTT Protocol, in Proceedings of International Conference on Automatic Control and Dynamic Optimization Techniques, Pune, pp. 30-34, 2016.

[12] Ding Y., Binwen F., Xiaoming K., and Qianqian M., Design and Implementation of Mobile Health Monitoring System Based on MQTT Protocol, in Proceedings of IEEE Advanced Information Management, Communicates, Electronic and Automation Control Conference, Xi'an, pp. 1679-1682, 2016.

[13] Diogo, P., Lopes N., and Reis L., Cluster Computing 20: 2193, https://doi.org/10.1007/s10586-017-0861-0, Last Visited, 2017.

[14] Fernandes J., Lopes I., Rodrigues J., and Ullah S., Performance Evaluation Of Restful Web Services And AMQP Protocol, in Proceedings of the 5th International Conference on Ubiquitous and Future Networks, Da Nang, pp. 810-815, 2013.

[15] Hantrakul K., PramokchonP., KhoenkawP., Tantitharanukul N., and Osathanunkul K., Automatic Faucet with Changeable Flow Based on MQTT Protocol, in Proceedings of International Computer Science and Engineering Conference, Chiang Mai, pp. 1-5, 2016.

[16] HTTP protocol specification, (https://www.w3.org/Protocols/rfc2616/rfc2616.h tml), Last Visited, 2017.

[17] Ian F. and Melnikov A., The WebSocket Protocol, Internet Engineering Task Force, 2011.

[18] Kang D., Park M., Kim H., Kim D., Kim S., Son H., and Lee S., Room Temperature Control and Fire Alarm/Suppression IoT Service Using MQTT on AWS, in Proceedings of International Conference on Platform Technology and Service (PlatCon), Busan, pp. 1- 5, 2017.

[19] Luzuriaga J., Perez M., Boronat P., Cano J., Calafate C., and Manzoni P., A Comparative Evaluation of AMQP and MQTT Protocols over Unstable and Mobile Networks, in Proceedings of the 12th Annual IEEE Consumer Communications and Networking Conference, Las Vegas, pp. 931-936, 2015.

[20] Monitoring Your Devices with MQTT - Packt Publishing, https://www.packtpub.com/sites/default/files/dow nloads/1942OS_Chapter_9.pdf, Last Visited, 2018.

[21] Moreno M., Cerqueira R., and Colcher S., Synchronization Abstractions and Separation of Concerns as Key Aspects to the Interoperability in IoT, in Proceedings of Second International Conference, Inter IoT 2016 and Third International Conference SaSe IoT, Paris, pp. 26- 32, 2017.

[22] Mosquitto Project, (http://mosquitto.org), Last Visited, 2017.

[23] MQTT protocol specification, (http://mqtt.org), Last Visited, 2017.

[24] NetEM: Software Suite Provides Network Emulation Functionality, (https://wiki.linuxfoundation.org/start?do=search &id=NetEM), Last Visited, 2018.

[25] O Leary N., Arduino Client for MQTT, (http://pubsubclient.knolleary.net/), Last Visited, 2017.

[26] Rajaraajeswari S., Selvarani R., and Raj P., Connectivity Frameworks for Smart Devices, Springer, 2016.

[27] Rayes A. and Salam S., Internet of Things from Hype to Reality, Springer, 2017.

[28] Sarwat A., Sundararajan A., Parvez I., Moghaddami M., and Moghadasi A., Sustainable Interdependent Networks, Springer, 2018.

[29] Sheng Z., Yang S., Yu Y., Vasilakos A., McCann J., and Leung K., A Survey on the IETF Protocol Suite for the Internet of Things: Standards, Challenges, and Opportunities, The IEEE Wireless Communications, vol. 20, no. 6, pp. 91-98, 2013.

[30] Shovic J., Raspberry Pi IoT Projects, Springer, 2016.

[31] Suzuki L., Smart City Networks, Springer, 2017.

[32] Sutaria R. and Govindachari R., Making Sense of Interoperability: Protocols and Standardization Initiatives in IOT, in Proceedings of the2nd International Workshop on Computing and Networking for Internet of Things, Hyderabad, 2013.

[33] Thangavel D., Ma X., Valera A., Tan H., and Tan C., Performance Evaluation of MQTT and CoAP Via a Common Middleware, in Proceedings of IEEE 9th International Conference on Intelligent Sensors, Sensor Networks and Information Processing, Singapore, pp.1-6, 2014.

[34] XMPP protocol specification. (http://xmpp.org), https://www.packtpub.com/sites/default/files/dow nloads/1942OS_Chapter_9.pdf -, Last Visited, 2017.

[35] Yokotani T. and Sasaki Y., Comparison with HTTP and MQTT on Required Network Resources for IoT, in Proceedings of International Conference on Control, Electronics, Renewable Energy and Communications), Bandung, pp. 1-6, 2016. Using the MQTT Protocol in Real Time for Synchronizing IoT Device State 521 Adnan Shaout is a full professor and a Fulbright Scholar in the Computer Science Department at the Electrical and Computer Engineering Department at the University of Michigan-Dearborn. Dr. Shaout has more than 35 years of experience in teaching and conducting research in the Computer Science, Electrical and Computer Engineering fields at Syracuse University and the University of Michigan - Dearborn. Dr. Shaout has published over 230 papers in topics related to Computer Science, Electrical and Computer Engineering fields. Dr. Shaout has obtained his B.S.c, M.S. and Ph.D. in Computer Engineering from Syracuse University, Syracuse, NY, in 1982, 1983, 1987, respectively. Brennan Crispin is currently, a graduate student at the University of Michigan-Dearborn and a Software Engineer at Ford Smart Mobility, Ford Motor Company.