Improvements of MQTT Retain Message Storage Mechanism

A287 to the disadvantage that MQTT agreement only saving one latest retain message which may result in missed and duplicate messages, it redesigned SUBSCRIBE and PUBLISH control packet format of MQTT, and realized new retain messages storage model in server and sending and receiving mechanism of retain messages. The experimental results showed that when publisher frequently publishes messages and subscriber disconnect, the subscriber will receive all the missed messages after being reconnected under new mechanism, while only the last missed message was received under old mechanism. When subscribers disconnect frequently and the server holds the retain message, subscribers received 0% repetitive messages under new mechanism while 100% repetitive messages was received under old mechanism. It proves that the new retain message storage mechanism can effectively prevent missing messages and repeatedly receiving messages.

[1]  Kitisak Osathanunkul,et al.  MQTT-Topics Management System for sharing of Open Data , 2017, 2017 International Conference on Digital Arts, Media and Technology (ICDAMT).

[2]  Vlado Handziski,et al.  Meeting IoT platform requirements with open pub/sub solutions , 2016, Annals of Telecommunications.

[3]  P. Balamuralidhar,et al.  Secure MQTT for Internet of Things (IoT) , 2015, 2015 Fifth International Conference on Communication Systems and Network Technologies.

[4]  Hyeonwoo Kim,et al.  Correlation analysis of MQTT loss and delay according to QoS level , 2013, The International Conference on Information Networking 2013 (ICOIN).