Comparison of IoT Protocols Performance
Comparison of IoT Protocols Performance
Comparison of IoT Protocols Performance
ISSN No:-2456-2165
Abstract:- Internet of Things, it is been more than a and MQTT in terms of traffic, packet loss probability, and
decade since this concept was introduced to the society. latency conditions. Lavinia Nastasa in her research
In this research we aim to compare three IoT application concentrates on application layer protocols; CoAP, MQTT,
protocols; Advanced Messaging Queuing Protocol and XMPP from security point of view, described briefly the
(AMQP), Message Queuing Telemetry Transport three protocols and their vulnerabilities, and according to the
(MQTT) and Constrained Application Protocol (CoAP). study, it is none of them are best for any type of solutions in
The selected protocols efficiency will be evaluated using terms of both security and functionality (Nastasa, 2017).
indicators related to Throughput and Round-Trip time Alvin VALERA and Hwee TAN, have proposed a common
(RTT). In the considered scenario an IoT device will middleware using common application programming
transfer data to a server and waits for the response. The interface, and have tested CoAP and MQTT protocols, the
data will be sent in different sizes of packets. We have research results shows that; different network conditions can
proposed a testbed using python programing language’s affects the performance of different protocols, MQTT has
library SciPy and socket programming to evaluate the lower delay for lower packet loss and vice versa, CoAP
three protocols. Experimentation tests reveal which generates less traffic to ensure reliable delivery when the
protocol is best suited for different scenarios accordingly. massage size is small and loss rate is equal or less than 25%
Results show that overall MQTT achieves the highest (Valera & Tan, 2014). In (Paolo Bellavista, Alessandro
protocols efficiency among other protocols. Zanni., 2016), the authors proposed an innovative scalable
distributed architecture for efficient IoT-cloud integration.
Keywords:- IoT, IoT Protocols, Performance, MQTT, The two selected protocols were CoAP and MQTT. The
AMQP, COAP. performance benchmark for the time required to complete
the transmission of 1000, 10000 and 60000 messages was
I. INTRODUCTION set and according to the authors, the MQTT protocol was
much faster than CoAP.
The internet is the most important and transformative
technology have ever invented, it is like digital fabric that There are several published survey papers regard IoT
woven into our lives and rapidly changed the world. application layer protocols but as IoT technology is growing
Likewise, new technology has emerged and it is poised to tremendously fast, it was important to test these application
change the world again, this technology is not about protocols with different metrics. This experiment will
connecting people or computers, it is about connecting examine the following selected application services used for
objects “The Internet of Things”. The internet of things IoT data transfer:
represents a vision wherein the net extends into the actual
world embracing daily objects. Physical objects are no A. Constrained Application Protocol (CoAP)
longer disconnected from the digital world, however these Constrained Application Protocol was created and
objects can be managed remotely and can act as physical standardized by the Internet Engineering Task Force (IETF)
access points to Internet services. In the Network of things, Constrained Restful Environment working group (CoRE).
objects can start to share experience with other objects, by CoAP is specialized internet application protocol for
adding the ability to sense, communicate to control and constrained nodes and networks based on Representational
collaborate with each other, things that are connecting to the State Transfer (REST) (Shelby, Z; Hartke, K; Bormann,
internet allowing them to generate, send, receive and 2014). CoAP is a RESTful application protocol but in order
exchange data. to understand CoAP clearly the REST concept must be
introduced first. Representational State Transfer (REST) is a
IoT communication protocols are a subject of many web architectural style. RESTful systems are classified as
studies in research community. Bhattacharyya et al. (Soma they are stateless and separate concerns of client and servers.
Bandyopadhyay, Abhijan Bhattacharyya., 2013) have done a REST architecture is request-response architecture, client
comparison between CoAP's request-response model and sends request to server in order to get to stored resources in
MQTT publish-subscribe model. Application layer rules for it and these each resource has a Uniform Resource Identifier
IoT are explored in (Sotirios Kontogiannis, Angelos (URI) as an address. In case where server response, a
Chatzimparmpas, George Kokkonis., 2015); here, the content-type must be included in the header of the response.
authors have presented quantitative examinations of CoAP Unlike REST, CoAP uses datagram-oriented transport such
Figure 1: The relation between average processing delay and Figure 3: The relation between average processing delay and
number of connected devices in AMQP. number of connected devices in MQTT.
Figure 4: The relation between throughput and number of Figure 6: The relation between throughput and number of
connected devices in MQTT. connected devices in COAP.
F. Constrained Application Protocol (COAP) Figure 7 shows the relation between the average
Figure 5 shows that in COAP protocol, the average processing delay and the number of connected IoT devices
upstream processing delay is shorter than the average for AMQP, MQTT, and COAP routing protocols. It is
downstream processing delay. It means that the packet obvious that for small traffic volume, e.g., 150 connected
decapsulation from COAP packets and encapsulation into devices, AMQP routing protocol has the highest average
the TCP/UDP header takes lower processing time than round-trip processing delay among other routing protocols.
decapsulating the payload from the TCP/UDP header and COAP routing protocol comes second, and then MQTT has
encapsulating it into COAP header. the lowest average round-trip processing delay. While for
the high traffic volume, e.g., 550 connected devices and
Also, as the total number of connected devices beyond, AMQP routing protocol provides lower round-trip
increases, the upstream processing delay is almost constant processing delay than COAP, however MQTT still the
for different numbers of connected devices, while the lowest round-trip processing delay among other routing
downstream processing time increases, accordingly the total protocols.
average round-trip processing delay increases as well. This
means the total number of connected devices and the
downstream processing time have a direct effect on the
average round-trip processing delay.