{"title":"IoT Protocols – MQTT versus CoAP","authors":"Alyaziya Almheiri, Z. Maamar","doi":"10.1145/3454127.3456594","DOIUrl":null,"url":null,"abstract":"The usage of Internet of Things has increased in the recent years allowing a new way of connecting devices together. Many transactions happen over the IoT calling for protocols to ensure the efficiency and management of the communication traffic. This paper examines 2 particular protocols, Message Queuing Telemetry Transport (MQTT) and Constrained application protocol (CoAP). The main differences between MQTT and CoAP that MQTT runs over TCP and CoAP runs over UDP. MQTT uses three level of QoS to ensure the message delivery while CoAP uses 4 types of transmission attempts which are confirmable, non-confirmable, acknowledgment, and rest. Through a set of experiments, we show that MQTT is more accurate when ensuring packet delivery. However, CoAP is better when it comes to performance when sending a limited number of messages.","PeriodicalId":432206,"journal":{"name":"Proceedings of the 4th International Conference on Networking, Information Systems & Security","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 4th International Conference on Networking, Information Systems & Security","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3454127.3456594","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1
Abstract
The usage of Internet of Things has increased in the recent years allowing a new way of connecting devices together. Many transactions happen over the IoT calling for protocols to ensure the efficiency and management of the communication traffic. This paper examines 2 particular protocols, Message Queuing Telemetry Transport (MQTT) and Constrained application protocol (CoAP). The main differences between MQTT and CoAP that MQTT runs over TCP and CoAP runs over UDP. MQTT uses three level of QoS to ensure the message delivery while CoAP uses 4 types of transmission attempts which are confirmable, non-confirmable, acknowledgment, and rest. Through a set of experiments, we show that MQTT is more accurate when ensuring packet delivery. However, CoAP is better when it comes to performance when sending a limited number of messages.