Simulation of RPL in Iot Network Using Cooja Simulator
Simulation of RPL in Iot Network Using Cooja Simulator
Abstract—The IoT, or Internet of Things, is a relatively new Objective functions, metrics, and restrictions are used by
development in the electronics and communication industries. IoT RPL to determine the optimal action to do. ETX (Expected
devices collect data through various types of sensors and send transmission count), AVG DEL (Average delay), along with
that to servers present in Cloud. IoT has made physical things
such as home appliances ,lights, fans to be connected to internet PDR (Packet delivery ratio) [3] are often used metrics for
and monitor ,control them from remote places. When many IoT assessing RPL. IoT devices Contiki OS which is lightweight.
devices are connected to internet this forms IoT network. IoT Contiki OS is written in C programming language ,hence
devices collect data from the Physical environment using sensors it is programmer friendly and fast and hardware friendly.
and forward that to the cloud. As a result, IoT networks rely .Contiki OS various Internet protocols stacks such as IPv4
heavily on the successful transmission of sensor data to the cloud.
A routing protocol is needed for this purpose. One kind of routing ,IPv6.6LoWPAN,RPL,CoAP,Telenet.Contiki OS supports mul-
protocol used in IoT networks is the Routing Protocol for Low titasking, multithreading ,GUI,networking TCP/IP suite for
Power Lossy Networks (RPL). Storage and processing capacity communication. This OS is suitable for constrained devices
in IoT devices are limited and the connections between them because it consumes less operating power ,less memory[12].
in IoT networks are often unstable. In this study, we evaluate Cooja is the network simulator supported in Contiki OS. This
RPL’s efficacy. Throughput, Latency, Network convergence time,
Packet delivery ratio are just few of the performance metrics simulator supports Graphical user interface type simulation.
that are calculated and examined. Different configurations of the Cooja simulator was implemented using c and Java. Cooja
simulated IoT networks are compared. network simulator supports different types of motes such as
Keywords: IoT (Internet of things), RPL (Routing protocol for sky, zmote. In collect view we can node information, operating
low power lossy networks), LLN Low (power lossy networks), power, number of packets received, latency ,Expected trans-
latency.
mission count(ETX). Cooja simulator is very useful tool for
analysis of IoT networks. Cooja simulator data can be saved
I. I NTRODUCTION in pcap file and analyzed using Wireshark network analyzer
X
T otalLatency = (P acketreceivedtime−packetsenttime) Fig. 4. Sample Simulation network
(3)
TABLE I [11] X. Liu, Z. Sheng, C. Yin, F. Ali and D. Roggen, ”Performance Analysis
Q O S PARAMETERS M EASURED of Routing Protocol for Low Power and Lossy Networks (RPL) in Large
Scale Networks,” in IEEE Internet of Things Journal, vol. 4, no. 6, pp.
Sl no Quality of parameter/nodes 10 Nodes 20 Nodes 2172-2185, Dec.2017. Doi: 10.1109/JIOT.2017.2755980
1 PDR(%) 55 85 [12] A. R. Jadhao and S. S. Solapure, ”Analysis of routing protocol for
2 ETX 16 35 Low Power and Lossy Networks (RPL) using Cooja simulator,” 2017
3 Latency(nsec) 20.178 100.6 International Conference on Wireless Communications, Signal Processing
4 Network Convergence time(msec) 12.485 26.5 and Networking (WiSPNET), Chennai, India, 2017, pp. 2364-2368, doi:
5 Contro traffic 350 850 10.1109/WiSPNET.2017.8300183.
6 Packet Transmission Rate(bytes/sec) 883 472 [13] O. Gaddour, A. Koubâa, S. Chaudhry, M. Tezeghdanti, R. Chaari and
7 Throughtput(%) 35 87 M. Abid, ”Simulation and performance evaluation of DAG construction
with RPL,” Third International Conference on Communications and
Networking, Hammamet, Tunisia, 2012, pp. 1-8, doi: 10.1109/Com-
Net.2012.6217747.
analyzer reads the pcap file. Convergence time is calculated by [14] P. Janani, V. C. Diniesh and M. J. Auxilius Jude, ”Impact of Path Metrics
subtracting the timings of the first and final DIO messages. As on RPL’s Performance in Low Power and Lossy Networks,” 2018 Inter-
national Conference on Communication and Signal Processing (ICCSP),
can be observed in Table 1, because the network we simulated Chennai, India, 2018, pp. 0835-0839, doi: 10.1109/ICCSP.2018.8524141.
was lossless, the PDR and ETX remained unchanged through- [15] M. Asif, S. Khan, R. Ahmad, M. Sohail and D. Singh, ”Quality of
out our simulations. Throughput decrease and Convergence Service of Routing Protocols in Wireless Sensor Networks: A Review,”
in IEEE Access, vol. 5, pp. 1846-1871, 2017
time increase with increased nodes. Latency increases.
R EFERENCES
[1] K. Ashton, That “Internet of Things”, RFiD Journal (2009)
[2] Luigi Atzori Antonio Iera, Giacomo Morabito, The Internet of Things:
A survey, Computer Networks, Volume 54, Issue 15, 2010,Pages 2787-
2805,ISSN 1389-1286, https://doi.org/10.1016/j.comnet.2010.05.010.
[3] A. Nauman, Y. A. Qadri, M. Amjad, Y. B. Zikria, M. K. Afzal and
S. W. Kim, ”Multimedia Internet of Things: A Comprehensive Sur-
vey,” in IEEE Access, vol. 8, pp. 8202-8250, 2020, doi: 10.1109/AC-
CESS.2020.2964280.
[4] S. Kalyani and D. Vydeki, ”Measurement and Analysis of QoS Pa-
rameters in RPL Network,” 2018 Tenth International Conference on
Advanced Computing (ICoAC), Chennai, India, 2018, pp. 307-312, doi:
10.1109/ICoAC44903.2018.8939052.
[5] Charles, A.s. Joseph and Palanisamy, Kalavathi. (2018). QoS Measure-
ment of RPL using Cooja Simulator and Wireshark Network Analyser.
International Journal of Computer Sciences and Engineering. 06. 283-291.
[6] H. Xie, G. Zhang, D. Su, P. Wang and F. Zeng, ”Performance evaluation
of RPL routing protocol in 6lowpan,” 2014 IEEE 5th International
Conference on Software Engineering and Service Science, Beijing, 2014,
pp. 625-628. Doi: 10.1109/ICSESS.2014.6933646.
[7] M. S. Aman, K. Yelamarthi and A. Abdelgawad, ”A comparative analysis
of simulation and experimental results on RPL performance,” 2017 IEEE
8th Annual Ubiquitous Computing, Electronics and Mobile Communica-
tion Conference (UEMCON), New York City, NY, 2017, pp. 483-487.
Doi: 10.1109/UEMCON.2017.8248996.
[8] W. Khallef, M. Molnar, A. Bensliman and S. Durand, ”On the QoS routing
with RPL,” 2017 International Conference on Performance Evaluation
and Modeling in Wired and Wireless Networks (PEMWN), Paris, France,
2017, pp. 1-5, doi: 10.23919/PEMWN.2017.8308028.
[9] Nguyen Thanh Long, N. De Caro, W. Colitti, A. Touhafi and K. Steenhaut,
”Comparative performance study of RPL in Wireless Sensor Networks,”
2012 19th IEEE Symposium on Communications and Vehicular
[10] S. Solapure, H. Kenchannavar and U. P. Kulkarni, ”Analysis of Var-
ious RPL Protocol Objective Functions for Quality of Service Param-
eters,” 2022 IEEE International Conference on Blockchain and Dis-
tributed Systems Security (ICBDS), Pune, India, 2022,pp. 1-5, doi:
10.1109/ICBDS53701.2022.9935956