Performance Evaluation of CoAP and UDP using NS-2 for Fire Alarm System

Similar documents
Performance of DSDV Protocol over Sensor Networks

Cloud Based IoT Application Provisioning (The Case of Wireless Sensor Applications)

Simulation and Analysis of AODV and DSDV Routing Protocols in Vehicular Adhoc Networks using Random Waypoint Mobility Model

Distributed CoAP Handover Using Distributed Mobility Agents in Internet-of-Things Networks

Performance Improvement of Wireless Network Using Modern Simulation Tools

Performance Comparison of AODV, DSDV and DSR Protocols in Mobile Networks using NS-2

Quantitative Analysis and Evaluation of RPL with Various Objective Functions for 6LoWPAN

Energy Conservation through Sleep Scheduling in Wireless Sensor Network 1. Sneha M. Patil, Archana B. Kanwade 2

II. ROUTING CATEGORIES

Enhancement of CoAP Packet Delivery Performance for Internet of Things. Hang Liu

(JBE Vol. 21, No. 3, May 2016) 6LoWPAN. Implementation of CoAP/6LoWPAN over BLE Networks for IoT Services. Abstract

Impact of IEEE MAC Packet Size on Performance of Wireless Sensor Networks

Real-time and Reliable Video Transport Protocol (RRVTP) for Visual Wireless Sensor Networks (VSNs)

ScienceDirect. Sensor Based Communication Network for WACS with DNP3

An Iterative Greedy Approach Using Geographical Destination Routing In WSN

Virtual Machine Placement in Cloud Computing

Performance Evaluation of Routing Protocols for Mobile Ad Hoc Networks

A Study on the Behaviour of SAODV with TCP and SCTP Protocols in Mobile Adhoc Networks

Performance Analysis of Broadcast Based Mobile Adhoc Routing Protocols AODV and DSDV

Efficient Hybrid Multicast Routing Protocol for Ad-Hoc Wireless Networks

PERFORMANCE EVALUATION OF DSDV, AODV ROUTING PROTOCOLS IN VANET

Pardeep Mittal Assistant Professor, Department of Computer Science and Applications, Kurukshetra University, Kurukshetra, Haryana, India.

CROSS LAYER PROTOCOL (APTEEN) USING WSN FOR REAL TIME APPLICATION

SUMMERY, CONCLUSIONS AND FUTURE WORK

Relaxation Control of Packet Arrival Rate in the Neighborhood of the Destination in Concentric Sensor Networks

CHAPTER 5 THROUGHPUT, END-TO-END DELAY AND UTILIZATION ANALYSIS OF BEACON ENABLED AND NON-BEACON ENABLED WSN

Embedded Web Services

Performance Evaluation of AODV and DSDV Routing Protocol in wireless sensor network Environment

A COMPARISON OF REACTIVE ROUTING PROTOCOLS DSR, AODV AND TORA IN MANET

M2M Communication in Ad-Hoc WSNs for Industrial Application Using MQTT Protocol

Performance Evaluation of Routing Protocols (AODV, DSDV and DSR) with Black Hole Attack

The General Analysis of Proactive Protocols DSDV, FSR and WRP

CCNA R&S: Introduction to Networks. Chapter 7: The Transport Layer

Implementation of an Adaptive MAC Protocol in WSN using Network Simulator-2

PERFORMANCE ANALYSIS OF AODV ROUTING PROTOCOL IN MANETS

CLUSTER BASED ROUTING PROTOCOL FOR WIRELESS SENSOR NETWORKS

Performance Evaluation of MANET through NS2 Simulation

Performance Analysis of Proactive and Reactive Routing Protocols for QOS in MANET through OLSR & AODV

Performance analysis of QoS-Oriented Distributed Routing protocols for wireless networks using NS-2.35

A STUDY ON AODV AND DSR MANET ROUTING PROTOCOLS

Internet of Things: Latest Technology Development and Applications

Performance Analysis and Enhancement of Routing Protocol in Manet

PERFORMANCE ANALYSIS OF AF IN CONSIDERING LINK UTILISATION BY SIMULATION WITH DROP-TAIL

CHAPTER 3 HIERARCHICAL ENERGY TREE BASED ROUTING ALGORITHM FOR WIRELESS SENSOR NETWORKS

W3C Workshop on the Web of Things

ANewRoutingProtocolinAdHocNetworks with Unidirectional Links

Enhanced Cluster-based CoAP in Internet-of-Things Networks

Distributed Pub/Sub Model in CoAP-based Internet-of-Things Networks

Performance Analysis of AODV Routing Protocol with and without Malicious Attack in Mobile Adhoc Networks

Publish/Subscribe Protocol in Wireless Sensor Networks: Improved Reliability and Timeliness

Performance Evaluation of Various Routing Protocols in MANET

Routing Protocols in MANET: Comparative Study

Review: Performance Evaluation of TCP Congestion Control Mechanisms Using Random-Way-Point Mobility Model

Analysis and Comparison of DSDV and NACRP Protocol in Wireless Sensor Network

PERFORMANCE BASED EVALUATION OF DSDV, AODV AND DSR ROUTING PROTOCOLS IN MANET

Performance Analysis Of Qos For Different MANET Routing Protocols (Reactive, Proactive And Hybrid) Based On Type Of Data

MANET With ADMEN SIMULATION

IPv6 Stack. 6LoWPAN makes this possible. IPv6 over Low-Power wireless Area Networks (IEEE )

Reliable and Energy Efficient Protocol for Wireless Sensor Network

Impact of End-to-end QoS Connectivity on the Performance of Remote Wireless Local Networks

Analysis of Routing Protocols in MANETs

Detection and Removal of Black Hole Attack in Mobile Ad hoc Network

An Extensive Simulation Analysis of AODV Protocol with IEEE MAC for Chain Topology in MANET

A New Conception of Information Requisition in Web of Things

UDP-Lite Enhancement Through Checksum Protection

2013, IJARCSSE All Rights Reserved Page 85

Efficient Cluster Based Data Collection Using Mobile Data Collector for Wireless Sensor Network

Performance analysis of aodv, dsdv and aomdv using wimax in NS-2

End-To-End Delay Optimization in Wireless Sensor Network (WSN)

Performance Evaluation of Routing Protocols in Wireless Mesh Networks. Motlhame Edwin Sejake, Zenzo Polite Ncube and Naison Gasela

Appointed BrOadcast (ABO): Reducing Routing Overhead in. IEEE Mobile Ad Hoc Networks

OSI Layer OSI Name Units Implementation Description 7 Application Data PCs Network services such as file, print,

Keywords: AODV, MANET, WRP

PERFORMANCE BASED EVALUATION OF DSDV, AODV AND DSR ROUTING PROTOCOLS IN MANET

Performance Evaluation of DSDV, DSR AND ZRP Protocol in MANET

Ashish Srivastava Information Technology, Rajkiya Engineering College, Azamgarh, India

Multi-metrics based Congestion Control protocol in Wireless Sensor Network

A REVIEW PAPER ON DETECTION AND PREVENTION OF WORMHOLE ATTACK IN WIRELESS SENSOR NETWORK

Chapter - 1 INTRODUCTION

Dynamic Deferred Acknowledgment Mechanism for Improving the Performance of TCP in Multi-Hop Wireless Networks

Subject: Adhoc Networks

CC-SCTP: Chunk Checksum of SCTP for Enhancement of Throughput in Wireless Network Environments

Cross Layer Detection of Wormhole In MANET Using FIS

Performance Analysis of Wireless Mobile ad Hoc Network with Varying Transmission Power

PERFORMANCE EVALUATION OF DSR USING A NOVEL APPROACH

CompSci 356: Computer Network Architectures. Lecture 8: Spanning Tree Algorithm and Basic Internetworking Ch & 3.2. Xiaowei Yang

A Neighbor Coverage Based Probabilistic Rebroadcast Reducing Routing Overhead in MANETs

DYNAMIC SEARCH TECHNIQUE USED FOR IMPROVING PASSIVE SOURCE ROUTING PROTOCOL IN MANET

Transport Layer. Gursharan Singh Tatla. Upendra Sharma. 1

IJMIE Volume 2, Issue 6 ISSN:

Comparison of Two Synchronization Protocol in Wireless Sensor Network

Anil Saini Ph.D. Research Scholar Department of Comp. Sci. & Applns, India. Keywords AODV, CBR, DSDV, DSR, MANETs, PDF, Pause Time, Speed, Throughput.

TCP /IP Fundamentals Mr. Cantu

Performance Comparison of DSDV, AODV, DSR, Routing protocols for MANETs

AVC College of Engineering, Mayiladuthurai, India

A Comparative Analysis of Energy Preservation Performance Metric for ERAODV, RAODV, AODV and DSDV Routing Protocols in MANET

A Survey - Energy Efficient Routing Protocols in MANET

Politecnico di Milano Advanced Network Technologies Laboratory. Constrained Application Protocol (CoAP)

Energy Efficient Collection Tree Protocol in Wireless Sensor Networks

Balanced Load Sharing Protocol for Wireless Sensor Networks

Transcription:

Indian Journal of Science and Technology, Vol 9(20), DOI: 10.17485/ijst/2016/v9i20/92603, May 2016 ISSN (Print) : 0974-6846 ISSN (Online) : 0974-5645 Performance Evaluation of CoAP and UDP using NS-2 for Fire Alarm System M. Divya*, D. Shruthi and Ratnamala Korlepara Department of Computer Science and Engineering, Amrita School of Engineering, Amrita Vishwa Vidyapeetham Amrita University, Coimbatore 641112, Tamil Nadu, India; m_divya@cb.amrita.edu, shruthitup@gmail.com, ratna1994@gmail.com Abstract Objective: In this work, we measure the performance metrics for the combination of Constrained Application Protocol (CoAP) and User Datagram Protocol (UDP) protocols. Method: In this work, number of nodes is changed to check the performance of CoAP and UDP and ns-2 simulator is used to simulate Fire Alarm System. Findings: Throughput values are high for multiple servers compared to single server and the values increase with the number of nodes. It is helpful in saving a person s life and prevents property loss when there is a fire accident since the packets are processed at a faster rate. Overhead, delay and packet loss values are less for multiple servers compared to single server which is an advantage but the values increase when the number of nodes increase which is disadvantageous in case of fire accidents as the packets might not reach on time or it might be lost during transmission. For single server, the values for overhead, delay and packet loss kept fluctuating for different number of nodes. Novelty: CoAP protocol implementation in ns-2 and comparison of performance for single server and multiple servers. Keywords: CoAP, Fire Alarm System, NS-2, Performance Metrics, UDP, WSN 1. Introduction The use of Internet of Things (IoT) 1 for emerging networking applications like Smart City, Smart Health Care, and Smart Energy Management system is of high importance. IoT involves communication between many devices with constrained resources which are readable, locatable, and recognizable via the internet. In some sensitive applications like Fire Alarm System IoT plays a very important role. At present times, fire accidents claim a million lives every year. Securing human life and property against such accidents have become so crucial these days. Monitoring all the residential areas is an effective method to reduce personal and property losses that are caused due to fire disasters. Automatic fire alarm systems with several fire detectors are deployed in those sites. Wireless Sensor Network has been deployed efficiently as mentioned in 2 for health monitoring, environmental monitoring and industrial monitoring systems because they provide low cost solutions. Fire Alarm system hence uses WSN as mentioned in 3,4 for communication between the nodes because a network without any infrastructure reduces wiring costs and also it consists of small-sized, low power and low-cost devices that are integrated with limited computation. Evacuation cannot be efficiently finished if the necessary information about a fire outbreak is not collected on time. Environment is monitored for timely evacuation with the help of sensors having wireless connectivity and processing capability to collect information faster and assist in environmental protection. These sensors transfer temperature information to the servers to detect fire. Internet enabled wireless sensor networks can be realized by adapting those protocols suitable for the application. Transmission of sensor data requires a protocol with less bandwidth and energy. CoAP is used to address the intense requirements of these real world constrained networks. In addition, most of the applications today require multicast and asynchronous communication compared to the unicast and synchronous approach. CoAP is based on Representational State Transfer (REST) archi- *Author for correspondence

Performance Evaluation of CoAP and UDP using NS-2 for Fire Alarm System tecture where every resource is uniquely addressed using a set of commands like GET, PUT, POST and DELETE. The main objective of the project is to study the performance of CoAP and UDP for the given scenarios in Fire Alarm System application. Performance metrics like throughput, overhead and delay overhead, throughput, packet loss and delay are calculated for the application and transport layer protocols and the results are analyzed as mentioned in 5,6. The analysis is based on how the system works when there is a single server and when we have multiple servers. 2. Application and Transport Layer Protocols (CoAP and UDP) 2.1 Constrained Application Layer Protocol (CoAP) IoT network consists of millions of nodes most of which are resource constrained. CoAP is a recently developed Application Layer protocol that is intended to operate in such constrained networks. It is deployed highly in most of the current industrial projects. It is based on Representational State Transfer (REST) architecture which is a style of architecture that helps in addressing each resource uniquely by using set of commands like GET, PUT, POST and DELETE. It also provides energy-efficiency and bandwidth-efficiency in packet transmission. CoAP has four message types namely, Confirmable (CON), Non- Confirmable (NON), Acknowledgement (ACK) and Reset (RST) as mentioned in Figure 1. CoAP uses two message types, request and response, by making use of a simple binary base header format. CoAP also has some additional functionality when compared to HTTP which makes it suitable for Machine-to-Machine (M2M) applications. 2.2 User Datagram Protocol CoAP uses UDP as the transport layer protocol which is a connectionless protocol. UDP helps in transmitting messages to many nodes with high speed. The unreliability of UDP is compromised by providing the CoAP with retransmission mechanism to avoid high packet loss. UDP allows communications to take place without the Figure 1. CoAP protocol interaction. establishment of connection. Hence UDP is much faster when compared to TCP. 3. System Design The evaluation of the performance metrics of CoAP and UDP are done for the following two scenarios for a residential building. Single server: In this scenario, a single server will be used for the entire building and all the nodes will send packets to the main server. This server will check if the temperature or carbon monoxide values are greater than the threshold value. If values are high, the server will send a fire alarm message. Multiple servers: In this scenario, multiple servers are used for the building and the nodes send the packets to the server which is nearer to them. Then the server will check if the temperature or carbon monoxide values are greater than the threshold value. If values are high, the server will send a fire alarm message. These two scenarios are simulated using Network Simulator-2 (ns-2) 7. It is an open source simulator used for the simulation of network protocols. It is also capable of simulating wired as well as wireless networks. In ns-2, complex scenarios can be easily tested and results can be quickly obtained which in turn helps in testing more ideas in a smaller time frame. It also has better CPU utilization compared to other simulators. 2 Vol 9 (20) May 2016 www.indjst.org Indian Journal of Science and Technology

M. Divya, D. Shruthi and Ratnamala Korlepara 4. Simulation of Fire Alarm System When there is a single server, the decision for the temperature information transmitted is made only by that single main server. Each sensor node will search for the closest neighbouring node and will route the packet accordingly. In the multiple servers scenario, each floor has a server located locally to take the decisions for all the temperature information received in its range. These local servers cache the information received from the clients so that the main server can directly retrieve the data of a particular client from the local server itself. When a client does not find any local server in its range it will send the data to the neighbouring node which will then send it to the local server available. Once the servers receive the temperature information from the sensor nodes it is processed. If the temperature value is greater than the threshold value then a fire alarm is displayed, else the packet is dropped. The CoAP protocol features 8 are implemented using C language and Tool Command Language (TCL) scripts are written to simulate the topology for single server and multiple servers as shown in Figure 2a and Figure 2b respectively. From the trace file obtained after simulating, performance metrics are calculated. For both single server and multiple server scenarios, the number of nodes is varied from 20 to 100 and the protocols are tested against scalability. For each of the varied number of nodes all the above mentioned performance metrics were measured. 5. Performance Evaluation and Simulation Results In this section, we compare the performance of Fire Alarm System through simulation experiments with different network scenes. The performance is evaluated by means of dynamic simulations with the help of the Network Simulator NS-2. The simulation setup is described first and then the performance metrics are defined. Finally, the simulation results are depicted using graphs. 5.1 Simulation Set-up Simulations have shown that CoAP and UDP protocol can be considered reliable. In our experiment, network with as specified number of nodes are randomly distributed in an area of 500 500. IEEE 802.11 MAC protocol is used in the network. The number of nodes is varied as 20,40,60,80 and 100. The nodes are placed randomly in the specified area. Table 1 summarizes the simulation parameters used. 5.2 Performance Metrics The performance of the Fire Alarm system is analysed for the following scenarios. Several client nodes with single server Several client nodes with multiple servers Figure 2. servers. Network topology of single server and multiple Table 1. Simulation parameters Maximum Simulation Time 200 Sec Application Layer CoAP Transport Layer UDP outing protocol AODV Mac protocol 802.11 No of nodes 20,40,60,80,100 Nodes Placement Random Distribution Vol 9 (20) May 2016 www.indjst.org Indian Journal of Science and Technology 3

Performance Evaluation of CoAP and UDP using NS-2 for Fire Alarm System These scenarios are simulated and the performance metrics are obtained from the graph. The following metrics are considered for the analysis of the performance of CoAP and UDP for various scenarios. 5.2.1 Overhead The extra bandwidth, memory and resources required to transmit a packet efficiently. Overhead is considered for analysis as multiple servers might require additional resources in Fire Alarm System. 5.2.2 Throughput It is the ratio of the number of packets that are successfully delivered to the main server to the number of packets sent by client node. Throughput is considered for analysis to check which scenario successfully delivers most of the packets to the server since it is necessary to receive fire alarm message early due to any fire accident. 5.2.3 Packet Loss It is the percentage of number of packets lost over the network during transmission to the number of packets sent. Packet loss is considered for analysis to check if multiple servers result in more packet loss or single server. According to the values for packet loss for both scenarios, the scenario with better performance or less packet loss can be chosen for Fire Alarm System. 5.2.4 Delay The delay of a network specifies the time taken for a bit of data to reach the destination from the source node. Delay of packets varies for different scenarios. Therefore, it is considered for analysis to check if multiple servers result in more delay or less and how it affects the Fire Alarm System. 5.3 Simulation Results The simulation results show the comparison of performance of Fire Alarm System when Single and Multiple Servers are used for different number of nodes. For single server and multiple servers used in a building, the graphs for overhead are given in Figure 3a and Figure 3b respectively. Figure 3 depicts that when multiple servers were used, the overhead value increased as the number of nodes were increased. When single server was used, the values kept fluctuating. When multiple server values were compared Figure 3. Overhead for single server and multiple servers. to single server, the overheads were mostly high for single server. For Single and multiple servers used in a building, the graphs for throughput are given in Figure 4a and Figure 4b respectively. Figure 4 depicts that when multiple servers were used, throughput was high compared to using single server. When multiple servers were used, increasing the number of nodes did not affect the throughput since multiple servers were available to take decisions locally. For single server and multiple servers used in a building, the graphs for packet loss are given in Figure 5a and Figure 5b respectively. Figure 5 depicts that when multiple servers were used, packet loss increases as the number of nodes were 4 Vol 9 (20) May 2016 www.indjst.org Indian Journal of Science and Technology

M. Divya, D. Shruthi and Ratnamala Korlepara Figure 5. Packet loss for single server and multiple servers. Figure 4. Throughput for single server and multiple servers. Figure 6. Delay for single server and multiple servers. Vol 9 (20) May 2016 www.indjst.org Indian Journal of Science and Technology 5

Performance Evaluation of CoAP and UDP using NS-2 for Fire Alarm System increased. But the values were lesser when compared to the number of packets lost when single server was used. For single server and multiple servers used in a building, the graphs for delay are given in Figure 6a and Figure 6b respectively. Figure 6 depicts that when multiple servers were used, delay values were lesser but closer to the values obtained when single server was used. But when the number of nodes was increased for multiple servers, delay increased which is a disadvantage while having more transmissions. 6. Conclusion We conclude that usage of multiple servers give better results compared to single server. Single server is not the best choice in case of fire emergency as the values for the performance metrics fluctuate and are high compared to multiple servers. In the future work, high packet loss which occurs in multiple servers due to the increase in the number of nodes can be reduced by discovering multiple paths from the source node to the server and it can be stored in a candidate set. If a particular path fails in transmitting the packet, then an alternative reliable path can be chosen from the set to transmit the packet. Also the end-to-end delay can be reduced by using mobile nodes instead of static nodes, where the nodes move from left to right direction and the delay is reduced if the speed of the mobile node is increased. 7. References 1. Velusamy K, Venkitaramanan D, Vasudevan SK, Periasamy P, Arumugam B. Internet of things in cloud. Journal of Engineering and Applied Sciences. 2013; 8(9):304 13. 2. Salehian S, Shamshiri R. A survey on mobility management protocols in wireless sensor network-internet protocol. Indian Journal of Science and Technology. 2015 June; 8(11):1 8. DOI: 10.17485/ijst/2015/v8i11/71774. 3. Zhang L, Wang G. Design and implementation of automatic fire evacuation system based on wireless sensor networks. 2009 International Symposium on Information Processing (ISIP 09); Huangshan: P. R. China. ISIP; 2009 August 21 23. p. 410 13. 4. Alkhatib AAA. Smart and low cost technique for forest fire detection using wireless sensor network. International Journal of Computer Applications. 2013 November; 81:12. 5. Radoi IE, Shenoy A, Arvind DK. Evaluation of routing protocols for internet-enabled wireless sensor networks. ICWMC 2012: The Eighth International Conference on Wireless and Mobile Communications; 2012. 6. Olempia KJ, Pandeeswaran C, Natarajan P. A survey on energy efficient contention based and hybrid MAC protocols for wireless sensor networks. Indian Journal of Science and Technology. 2016 Mar; 9(12):1 10. DOI: 10.17485/ ijst/2016/v9i12/89932. 7. Weing artner E, vom Lehn H, Wehrle K. a performance comparison of recent network simulators. 2009 IEEE International Conference on Communications, Dresden; 2009 June 14 18. p. 1 5. 8. Shelvy Z, Hartke K, Frank B. Constrained Application Protocol (CoAP) draft-ietf-core-coap-08. Core Working Group; 2011. p. 1 88. 6 Vol 9 (20) May 2016 www.indjst.org Indian Journal of Science and Technology