IoT 환경에서 MQTT통신의 자원소모를 줄이기 위한 Publisher 송신 주기조절 방법
- Author(s)
- 이연주
- Issued Date
- 2018
- Keyword
- 사물인터넷, MQTT
- Abstract
- IoT (Internet of Things) is an intelligent infrastructure and service technology that connects all things based on information and communication technology and exchanges information between people, things, things and things. At present, IoT is being actively researched and developed in various fields such as big data analysis through data collection, smart health care, and smart factory. IoT devices applied in these fields are being transmitted and received in a very limited environment in order to be applied to various environments. As the hardware technology developed, IoT devices became smaller and smaller, and the limited computing performance was achieved. As the existing communication method, TCP and HTTP over it, were not suitable, a new communication protocol was needed. In this paper, we propose a new protocol for object-oriented Internet applications such as Message Queue Telemetry (MQTT) and Constrained Application Protocol (COAP). MQTT is a protocol optimized for IoT devices, focusing on low power. Considering that resource utilization is limited for clients' application operation, a broker which is a mediator of communication is installed in order to minimize all resource occupation occupied by the protocol and a network communication method of a publish / subscribe structure suitable for a plurality of client connections is applied.
However, if the publish / subscribe structure does not go through any additional communication, Publisher will not know the broker's subscription status at all. Therefore, even if there is no subscriber to receive data by requesting from the Broker, continuous transmission continues and unnecessary power consumption occurs. Therefore, when the Publisher transmits, it is necessary to grasp the status of the broker communication in real time and to control the sending and receiving period.
In this paper, to solve this problem, we use QoS, which is basically provided by MQTT, to construct a service node in QoS 0 stage, allowing the Publisher to receive the communication status of the broker, and only in the QoS 1 stage, The PUBACK packet is partially modified to allow the Publisher to know the status of the Broker through the PUBACK packet returned when it is transmitted. The purpose of this method is to reduce unnecessary consumption of power by enabling Publisher to adjust Publisher 's transmission period according to broker' s Subscribe status.
Since the ACK packet does not exist in QoS 0, the service node is implemented using Nodejs because the new communication means was needed, so that the Publisher can receive the data from the Web and know the communication status of the Broker .
In the first stage of QoS, the structure of the PUBACK packet returned when transmitting and receiving is changed, and the information is stored in the new byte space added, allowing the Publisher to recognize the communication status of the broker. The PUBACK packet having the existing 2-byte fixed header is added with a flag indicating the presence or absence of the Topic to be sent and received in a total of 3 bytes.
Direct testing was performed by applying the proposed method according to QoS. According to the QoS, the transmission cycle of the Publisher is changed from 4 sec to 1.0 sec, 2.0 sec, 3.0 sec and 4.0 sec depending on the presence or absence of the recipient, and the CPU occupancy rate and the consumed current of the corresponding IoT equipment are measured and reduced I could confirm. Also, considering that the proposed method may be less effective than the conventional method, we measured the data transmission delay time, the current consumption and the data loss and compared them, and it was confirmed that there is no big difference to affect the data transmission / reception.
Reducing the unnecessary power consumption of these publishers is expected to help improve the performance of IoT devices with limited computing environments. Future research will focus on communication types that are better suited for limited computing environments by testing communication reliability in extreme hardware environments.
- Alternative Title
- Publisher Transmission Cycle Adjustment Method to Reduce Resource Consumption of MQTT Communication in IoT Device Environment
- Alternative Author(s)
- YeonJu Lee
- Affiliation
- 조선대학교 산업기술융합대학원
- Department
- 산업기술융합대학원 소프트웨어융합공학과
- Advisor
- 김판구
- Awarded Date
- 2019-02
- Table Of Contents
- ABSTRACT
I. 서론
A. 연구 배경 및 목적
B. 연구 내용 및 구성
II. 관련연구
A. MQTT
1. MQTT 개요
2. Topic
3. QoS(Quality of service)
4. MQTT 데이터 패킷 분석
B. WebSocket
1. WebSocket 기본 원리
C. MQTT의 전송주기에 관한 기존 연구
III. QoS에 따른 publish 주기 조절 방법
A. Publisher와 Broker의 송수신 상황
B. QoS 0단계에서 서비스 노드를 이용한 Publisher 주기 조절 방법
C. QoS 1단계에서 PUBACK패킷을 이용한 Publisher 주기 조절 방법
IV. 실험 및 평가
A. 실험환경
B. QoS 0단계의 테스트 구조
C. QoS 1단계의 테스트 구조
D. 성능 평가
1. QoS 0단계 전송 주기에 따른 CPU사용률 및 전류소모량
2. QoS 1단계 전송 주기에 따른 CPU사용률 및 전류소모량
3. QoS 0단계의 데이터 송수신 테스트
4. QoS 1단계의 데이터 송수신 테스트
V. 결론 및 제언
참고문헌
- Degree
- Master
- Publisher
- 조선대학교 산업기술융합대학원
- Citation
- 이연주. (2018). IoT 환경에서 MQTT통신의 자원소모를 줄이기 위한 Publisher 송신 주기조절 방법.
- Type
- Dissertation
- URI
- https://oak.chosun.ac.kr/handle/2020.oak/16558
http://chosun.dcollection.net/common/orgView/200000267070
-
Appears in Collections:
- Engineering > 3. Theses(Master)
- Authorize & License
-
- AuthorizeOpen
- Embargo2019-02-08
- Files in This Item:
-
Items in Repository are protected by copyright, with all rights reserved, unless otherwise indicated.