DOI QR코드

DOI QR Code

Characterizing Power Consumption of MQTT Protocol Usage on Raspberry Pi

라즈베리 파이에서 MQTT 프로토콜 이용 시 전력 소모 분석

  • Kang, Seungwoo (School of Computer Science and Engineering, Korea University of Technology and Education)
  • Received : 2017.07.28
  • Accepted : 2017.08.22
  • Published : 2017.12.31

Abstract

Raspberry Pi has been widely used for a hardware platform to develop the Internet of Things (IoT) applications. The basic task of diverse IoT devices is to obtain their status or environmental information by using various sensors and to send them to a gateway or a remote server. For the purpose, one of application layer protocols for IoT, MQTT is widely used. IoT devices are often powered by batteries and they are required to operate for a long time without replacing or recharging their batteries. Thus, energy efficiency is one of the most critical problems for obtaining and sending sensor data. To develop energy-efficient IoT applications, the information about power consumption characteristics of the applications is necessary. However, there has been little study to analyze power consumption of IoT communication on IoT devices. This paper presents a study to measure and analyze the power consumption of sending/receiving data under various conditions via the MQTT protocol on Raspberry Pi.

라즈베리 파이는 사물 인터넷 애플리케이션 개발을 위한 범용 하드웨어 플랫폼으로 널리 사용되고 있다. 사물 인터넷에 연결된 각종 기기들이 수행하는 기본적인 작업은 다양한 센서를 이용하여 주변 환경 정보 혹은 기기의 상태 정보를 획득하고 이를 게이트웨이 혹은 원격 서버로 전송하는 것이다. 이를 위해 사물 인터넷 응용 프로토콜인 MQTT가 많이 사용되고 있다. 사물 인터넷 기기는 보통 배터리 파워로 동작하는 경우가 많고 배터리 교체 없이 장시간 동작할 수 있어야 한다. 따라서 센서 데이터 획득 및 전송 작업을 처리하는 데 있어서 에너지 효율성이 매우 중요한 문제 중 하나이다. 에너지 효율적인 사물 인터넷 애플리케이션을 만들기 위해서는 해당 애플리케이션의 전력 소모 특성에 대한 정보가 필수적이다. 하지만 사물 인터넷 기기에서 사물 인터넷 통신 시 전력 소모를 분석하는 연구는 많이 이루어지지 않았다. 본 논문에서는 사물 인터넷 하드웨어 플랫폼으로 널리 사용되는 라즈베리 파이에서 MQTT를 이용하여 데이터를 송수신하는 다양한 상황의 전력 소모를 측정하고 분석한다.

Keywords

References

  1. C. P. Kruger, A. M. Abu-Mahfouz, G. P. Hancke, "Rapid prototyping of a wireless sensor network gateway for the internet of things using off-the-shelf components," in Proceedings of 2015 IEEE International Conference on Industrial Technology (ICIT), pp. 1926-1931, 2015.
  2. P. H. Kulkarni, P. D. Kute, V. N. More, "IoT based data processing for automated industrial meter reader using Raspberry Pi," in Proceedings of the International Conference on Internet of Things and Applications (IOTA), pp. 107-111, 2016.
  3. MQTT Version 3.1.1 Protocol Specification. [Internet]. Available: http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html.
  4. S. Myung, S. Kim, "The design of Open IoT Platform based on oneM2M Standard Protocol," Journal of the Korea Institute of Information and Communication Engineering, vol. 21, no. 10, pp. 1943-1949, Oct. 2017. https://doi.org/10.6109/JKIICE.2017.21.10.1943
  5. M. Dong, T. Lan, L. Zhong, "Rethink energy accounting with cooperative game theory," in Proceedings of the 20th Annual International Conference on Mobile Computing and Networking (MobiCom), pp. 531-542, 2014.
  6. A. Pathak, Y. C. Hu, M. Zhang, P. Bahl, Y. M. Wang, "Fine-grained power modeling for smartphones using system call tracing," in Proceedings of the 6th European Conference on Computer Systems (EuroSys), pp. 153-168, 2011.
  7. A. Pathak, Y. C. Hu, M. Zhang, "Where is the energy spent inside my app?: fine grained energy accounting on smartphones with eprof," in Proceedings of the 7th European Conference on Computer Systems (EuroSys), pp. 29-42, 2012.
  8. X. Liu, F. Qian, "Poster: Measuring and Optimizing Android Smartwatch Energy Consumption," in Proceedings of the 22nd Annual International Conference on Mobile Computing and Networking (MobiCom), pp. 421-423, 2016.
  9. R. LiKamWa, et al, "Draining our Glass: An Energy and Heat Characterization of Google Glass," in Proceedings of 5th Asia-Pacific Workshop on Systems (APSys), Article No. 10, 2014.
  10. N. D. Lane, et al, "An Early Resource Characterization of Deep Learning on Wearables, Smartphones and Internet-of-Things Devices," in Proceedings of the 2015 International Workshop on Internet of Things towards Applications (IoT-App), pp. 7-12, 2015.
  11. CoAP specification (RFC 7252). [Internet]. Available: http://tools.ietf.org/html/rfc7252.
  12. oneM2M, MQTT Protocol Binding (TS-0010-V2.4.1), 2016. [Internet]. Available: http://www.onem2m.org/images/files/deliverables/Release2/TS-0010-MQTT%20Protocol%20Binding-V2_4_1.pdf.
  13. oneM2M, CoAP Protocol Binding (TS-0008-V1.3.2), 2016. [Internet]. Available: http://www.onem2m.org/images/files/deliverables/TS-0008-CoAP_Protocol_Binding-V1_3_2.pdf.
  14. S. Kim, D. Kim, H. Oh, H. Jeon, H. Park, "The Data Collection Solution Based on MQTT for Stable IoT Platforms," Journal of the Korea Institute of Information and Communication Engineering vol. 20, no. 4, pp. 728-738, Apr. 2016. https://doi.org/10.6109/jkiice.2016.20.4.728
  15. C. Berrhouma, et al, "Performance Evaluation of an M2M Platform in Different Deployment Setups," in Proceedings of 2016 IEEE First International Conference on Internetof-Things Design and Implementation. pp.223-228. 2016.
  16. Mosquitto. [Internet]. Available: https://mosquitto.org/.
  17. MQTT Paho Project. [Internet]. Available: https://github.com/eclipse/paho.mqtt.python.
  18. K. Park, J. Lee, M. Woo, J. Park, "Development of an IoT System Based on the oneM2M Communication Protocol," Asia-pacific Journal of Multimedia Services Convergent with Art, Humanities, and Sociology, vol.6, no.3, pp. 41-49, Mar. 2016.

Cited by

  1. 스마트빌딩 환경에서 Zigbee-MQTT를 이용한 사용자 패턴 기반 대기전력 저감 시스템 설계 및 구현 vol.24, pp.9, 2017, https://doi.org/10.6109/jkiice.2020.24.9.1158