scieee AI-readable full text Open interactive document viewer

Secure Routing Protocol Using Cross-Layer Design and Energy Harvesting in Wireless Sensor Networks

Alrajeh, Nabil Ali,Khan, Shafiullah,Lloret, Jaime,Loo, Jonathan

Abstract

Energy efficiency is the main concern of research community while designing routing protocols for wireless sensor networks (WSNs). is concern can be addressed by using energy-harvesting scheme in routing protocols. In this paper, we propose a secure routing protocol that is based on cross layer design and energy-harvesting mechanism. It uses a distributed cluster-based security mechanism. In the cross-layer design, parameters are exchanged between different layers to ensure efficient use of energy. Energy-harvesting system is used to extract and store energy, which is used to take decisions for the node state and thus for the routing issues. Simulation results show that our routing protocol can perform better in many scenarios and in hostile attack-prone environment.

Full text

Hindawi Publishing Corporation International Journal of Distributed Sensor Networks Volume 2013, Article ID 374796, 11 pages http://dx.doi.org/10.1155/2013/374796 Research Article Secure Routing Protocol Using Cross-Layer Design and Energy Harvesting in Wireless Sensor Networks Nabil Ali Alrajeh, 1 Sha�ullah �han, 2 Jaime Lloret, 3 and Jonathan Loo 4 1 Biomedical Technology Department, College of Applied Medical Sciences, King Saud University, Riyadh 11633, Saudi Arabia 2 Institute of Information Technology, Kohat University of Science and Technology (KUST), Kohat City 26000, Pakistan 3 Department of Communications, Universidad Politecnica de Valencia, Camino de Vera 46022, Valencia, Spain 4 School of Engineering and Information Sciences, Middlesex University, London NW4 4BT, UK Correspondence should be addressed to Nabil Ali Alrajeh; [email protected] Received 28 November 2012; Accepted 23 December 2012 Academic Editor: Shuai Li Copyright © 2013 Nabil Ali Alrajeh et al. is is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited. Energy efficiency is the main concern of research community while designing routing protocols for wireless sensor networks (WSNs). is concern can be addressed by using energy-harvesting scheme in routing protocols. In this paper, we propose a secure routing protocol that is based on cross layer design and energy-harvesting mechanism. It uses a distributed cluster-based security mechanism. In the cross-layer design, parameters are exchanged between different layers to ensure efficient use of energy. Energyharvesting system is used to extract and store energy, which is used to take decisions for the node state and thus for the routing issues. Simulation results show that our routing protocol can perform better in many scenarios and in hostile attack-prone environment. 1. Introduction WSN is typically used to monitor environmental or geographical location for some speci�c purpose. WSN consists of sensor nodes that have the capability of self-con�guration and its deployment in target area is so easy. WSNs have some limitations in terms of battery power, data rates, memory, and processing. Energy efficiency is one of the most important factors in designing a WSN. As WSN is deployed in many hostile and extreme environments, it is not possible to supply energy source or recharging facility. e entire network has to perform its task on the embedded batteries. If some nodes died due to low battery power, it may result in the breakdown of entire network termed as network partitioning [1], so one of the main purposes is to enlarge the WSN lifetime [2]. Built-in power technologies such as batteries are consistently improving [3], and there are many power saving and energy saving techniques for WSNs [4]. However, most of WSNs are deployed in harsh environments in which there is a need of environmental energy harvesting. Energy harvesting is a mechanism in which sensor nodes have the ability to extract energy from environment, store it, and then use it whenever needed. In WSN more energy is used in data transmission from source to multihop away destination. is is the reason; energy-efficient routing is always desirable in such kind of networks [5]. Energy efficiency can be achieved by utilizing clustering mechanism in WSN. Clustering is a technique in which many sensor nodes are grouped together to perform a task. Cluster head is responsible for monitoring all the nodes in its own cluster. In cluster-based WSN, routing mechanism is more simple and easy as compared to noncluster WSN. Cluster head facilitates the routing protocol to reliably send data from source to destination. On the other hand, routing protocol is responsible for �nding optimal route from source to destination. In classical OSI model, all the layers operate independently. In such case, routing protocol would select a path regardless of physical layer (battery power) and MAC layer (data rates) requirements. Networks having energy or bandwidth limitations must interact with upper layers 2 International Journal of Distributed Sensor Networks for selecting energy-efficient path. is kind of interaction between different layers is only possible using cross-layer technique. e idea behind cross-layer information exchange [6, 7] is to optimize network usage and resources by communicating different layers. Cross-layer optimization technique can be used to make intelligent decisions about power saving, QoS routing, enhanced scheduling, and bandwidth allocation algorithms in multihop networks. e important fact of using cross-layer design is to exchange multiple parameters across the protocol stack to increase network performance and efficiency of network resources. Network resources in WSN can be threatened by many security attacks such as sleep deprivation attack, packet dropping attack, or collecting sensitive information [1, 8–10]. e attacker conducts sleep deprivation attack at physical layer while packet dropping attack at network layer. Such kind of multilayered security attacks cannot be prevented by using a security mechanism at single layer. To counter multilayer security attacks, again cross-layer security mechanism is highly desirable for detecting and responding to different attacks at different layers. One possible solution can be cross-layer secure routing. Secure routing is highly desirable for multihop wireless networks such as WSN. Multihop wireless networks are more vulnerable to security attacks as compared to singlehop wireless networks. e reason is that most of multihop wireless networks are distributed having no centralized body. Designing an appropriate secure routing protocol for WSN is a challenging task. In WSN the ideal routing protocol should be secure and efficient in terms of energy consumption. In this paper, we present a secure routing protocol which is based on cross-layer information exchange and energyharvesting technique. Our proposal is capable to consistently monitor the energy consumption and select secure and energy-efficient path from source to destination. e rest of the paper is organized as follows. Section 2 discusses related work. Protocol design considerations and parameters are covered in Section 3.Section 4 describes the evaluation and simulation results. Section 5 concludes the paper and provides our future work. 2. Related Work WSN has many applications such as wide area surveillance for borders security, monitoring heat, sound, and pressure in a given area [11]. Routing packets from source to destination is one of the important operations in WSN. Many Routing protocols have been proposed in the literature [12–16]. Most of these protocols are either application speci�c or lacking security mechanism. Research community is paying special attention to propose various security mechanisms for WSN [17–20]. Most of these security mechanisms operate and counter speci�c security threat. Many secure routing protocols are developed for WSN as mentioned in [21–24], which are used to address particular security concern. Furthermore, most of these proposed routing protocols are based on key management schemes to encrypt the data. Although key management scheme is efficient to protect data con�dentiality, it cannot prevent data dropping or packet misdirecting kind of attacks [8].Itisalsoimportanttomentionthatmost of these existing secure routing protocols operate without taking energy into consideration. Some researchers proposed energy-aware routing protocols for WSN [25–27]. However, most of these energy-aware routing protocols lack security mechanism. Furthermore, these proposed mechanisms have no concept of energy-harvesting mechanism in WSN. It is important to consider energy limitations while designing any mechanism for WSN. Majority of current energy-aware routing protocols determine efficient use of energy. Such mechanisms may increase the life time of WSN, but do not offer harvesting of environmental energy to provide durable solution. Research community is now seriously considering such mechanisms for WSN, in which environmental energy is harvested and stored so that to provide a durable source of more energy to sensor nodes especially for those sensor networks which are deployed for long-term activities. Many routing protocols have been proposed so far which are based on the concept of energy harvesting in WSN. Low latency geographic routing using energy harvesting is proposed for WSN [28]. is proposal estimates the energy consumption and the expected energy from harvesting device. e authors made a claim about reliable data delivery with low latency. However, this scheme cannot ensure reliable data delivery in case of security attack or malicious activity in WSN. Another beaconless geographic routing based on energyharvesting technique is proposed for WSN [29]. e main idea of this proposal is same as presented in [28] except that its nodes send data packets �rst instead of control packet and the nodes have no prior information of neighbors. is proposal also harvests energy from harvesting device. However,theperformanceisyetnotknownincaseofmobility, multimedia traffic, and large network size. Furthermore, security concerns are not addressed in this proposal. Adaptive opportunistic routing based on energy harvesting technique is proposed in [30]. is proposal considers grouping of nodes and estimating distance of nodes from sink. In this work, the authors assume that all the nodes have energy harvesting capability. In [31], a routing protocol is proposed on the basis of energy transfer mechanism using electromagnetic waves. Another routing protocol based on the concept of energy harvesting is proposed in [32] for environmental monitoring ofsustainableWSN.Inthiswork,theauthorsequippedWSN networks with two types of node, that is, battery-power- driven nodes and energy-harvesting-driven nodes. Two types of routing are proposed for these two categories of nodes. Authors in [33] proposed a novel mechanism for transmission power control based on energy level and harvesting technique. e authors claim that the problem of unbalanced energy consumption is solved by using unbalanced energy capability. Routing protocol with hybrid energy storage system is proposed [34] to extend the network lifetime with a new cost metric. Another harvesting-aware mechanism [35] is designed for sustainable mobile sensor nodes. In this mechanism, mobile sensor nodes move to energy station International Journal of Distributed Sensor Networks 3 for recharging if the energy is found below threshold value. However, this mechanism is not suitable for static WSN. A detailed work is done on opportunistic routing based on ambient energy harvesting [36]. In this proposal, nodes are grouped together to improve throughput and minimize delay. 3. Proposed Routing Scheme Data transmission from source to destination node requires some sort of routing mechanism. Typical WSN nodes sense information and forward to sink node over multi-hop intermediate nodes using routing protocol. e objective behind this work is to transmit packets along such path, which is reliable and energy efficient. We assume that each WSN node is equipped with energy harvesting system. It is capable to harvest environmental energy and convert it into electrical energy. e proposed mechanism consists of four important modules as given in Figure 1. (i) e proposed mechanism is cluster based in which when WSN is deployed for any application, nodes form two-hop cluster for coordination. In clusterbased WSN, the optimal cluster size is two hop as presented in [37]. (ii) Energy consumption can be reduced when nodes only communicate with cluster head. So our energy model is cluster-based WSN. (iii) Proposed mechanism is cross-layer in nature so that it can get energy parameters at network layer using cross-layer interface. (iv) e mechanism is secure in nature especially against variety of active and passive attacks. 3.1. Cluster Formation. e �rst step consists of cluster formations. ere are many clustering schemes [38],butwe haveusedthefollowingone.Inthestartofthenetwork deployment, all the nodes are assumed to have equal battery power. Initially, each node broadcasts a neighbor-discovery message. All nodes in their coverage area will reply with a neighbor-discovery ack message. us, network links and topology are built. en, interested cluster head nodes send acluster-invitation message to all one-hop and two-hop neighbors in order to become its cluster members. One- and two-hop neighbors respond back with cluster-joining message. In cluster-joining message, the node enables hopcount �eld, so that when cluster head receives cluster-joining message, it can con�rm that the distance of the joining member is not more than two hops. Interested cluster head nodes may be de�ned in advance or selected randomly by the system based on their position. Described message �ow system is shown in Figure 2. We assume that cluster head is aware of its position with respect to sink node. Such location information can be obtained using global positioning system or using built-in con�guration. 3.2. Energy Model. WSN is deployed in such areas where wired network is not feasible to maintain and con�gure. WSN Cluster formation Energy model Cross-layer design Security mechanism F 1: Modules of proposed routing mechanism. Head cluster node 1 hop neighbors 2 hops neighbors Neighbors response Neighbour-discovery Neighbour-discovery Neighbour-discovery Neighbour-discovery ask Neighbour-discovery ask Neighbour-discovery ask Cluster-invitation Cluster-joining F 2: Message �ow for cluster formation. is used to sense information, analyzes them, and transmits to base station. WSN nodes have built-in batteries which determine the network lifetime. e battery life of nodes in WSN depends on the location and other environmental factors. A node that is located in the center of WSN has less battery life as compared to those nodes which are located at edges, because the centre nodes not only collect information around its own �eld but also forward data for othersaswelltowardsthebasestation.Itisnotpossibleto replace or recharge batteries of dying nodes. ere is a need for a constant power source for WSN nodes especially for sustainable WSN. Energy harvesting is a promising technique in which sensor nodes are empowered to extract energy from environment, store it, and later on use it for performing different tasks. Some important sources of energy harvesting are mentioned in [39–41], which are summarized below. (i) Mechanical vibration is used to create movement which is later on converted to electrical energy using piezoelectric, electrostatic or electromagnetic schemes. 4 International Journal of Distributed Sensor Networks (ii) Photovoltaic cells are used to convert sun light energy into electric energy. Some other sources of energy are radio frequency (RF) radiation and thermal energy [42]. In RF scheme, high power electromagnetic waves are directed towards sensor nodes from nearby source. In thermal energy-harvesting schemes, sensor nodes have the capability to convert heat energy to electric energy. More investigation is needed to explore all possible merits and demerits of these energy sources especially factors like environmental pollution. Furthermore, some energy harvesting schemes may perform well in one scenario but may not in other. For example, usage of photo cells to harvest solar energy may perform well in those WSN applications where nodes have more exposure to sunlight. Some other challenges are mentioned in [43] such as energy harvesting hardware and soware overheads. Enabling energy harvesting in sensor nodes demands specialized hardware to harvest and store energy. Furthermore, speci�c soware is needed to control and manage harvested energy. Such specialized demand of soware and hardware will de�nitely increase the overall cost of WSN deployment. From the literature survey, it is observed that less attention is given to security mechanisms in WSN having energyharvesting mechanism. Any new mechanism for WSN must consider that as WSNs are deployed in harsh areas, so only battery power may not be sufficient for medium and long-term monitoring. It is indeed necessary to harvest environmental energy so that to provide constant and durable source of energy to all nodes. In the proposed mechanism, the energy model is considered in next step. We are considering sunlight as the source for harvesting in WSN. For perpetual operation, a duty cycle and energy harvesting mechanism using a mathematical model is present in [44]. Using this equation, we can get the power output from energy source and energy harvested. e proposed equations in [44] also estimate power consumption of a node during speci�c interval of time. We de�ned three energy ranges for every sensor node. ese three energy ranges de�ne three states of sensor node. e three states are active state, semiactive state, and idle state. e three states and their characteristics are listed in Table 1. In active state, WSN node is actively participating in WSN operations, that is, as soon as it sense, or receives any packet, itisimmediatelyroutedtoclusterhead.Inactivestate,node does not harvest environmental energy. A node remains in active state as far as its energy is greater than 𝑋𝑋. In semiactive state, node starts harvesting environmental energy. A node remains in semiactive state as far as its energy (𝑌𝑌)isin between 𝑋𝑋and 𝑍𝑍. In semiactive state, a node does not actively participate in WSN operation. It collects and stores packets and later on sends to cluster head. In semiactive state, when node is in the process of harvesting energy, it collects and stores packets. Aer some time, it stops harvesting process and sends a bulk of packets to cluster head and again starts harvesting energy. Itisakindofsleepandwakestate.Insleepstate,itonly harvests energy and collects packets. When in wake state, it T 1: e energy related states of WSN node. State Energy range Energy harvesting Active Above XNo Semi active YYes Idle Below 𝑍𝑍Yes forwards packets to cluster head and stop energy-harvesting process. In idle state, a node does not perform any operation, only harvest environmental energy. A node remains in idle state as far as its energy is below 𝑍𝑍. In idle state, node calculates its harvested energy aer interval of time. If the energy value is greater than “𝑋𝑋,” then itswitchestoactivestate.Iftheharvestedenergyisstillbelow “𝑍𝑍,” it remains in idle state or otherwise switchs to semiactive state. Given 𝐸𝐸𝐸AR)as the energy in active range and 𝐸𝐸𝐸SAR)as energy in semiactive range, the algorithm for the three states of sensor node is given in Figure 3. Along a node lifetime, it will be in any of these three states. Now we can de�ne 𝑡𝑡𝑎𝑎astheamountoftimethathasbeen in active mode, 𝑡𝑡𝑠𝑠astheamountoftimethathasbeenin semiactive mode, and 𝑡𝑡𝑖𝑖astheamountoftimethathasbeen in idle range. e node lifetime 𝑇𝑇can be expressed by 𝑇𝑇𝑇𝑡𝑡 𝑎𝑎+𝑡𝑡𝑠𝑠+𝑡𝑡𝑖𝑖.(1) Now, we can estimate the energy consumed along the node lifetime. It is given by the following expression: 𝐸𝐸𝐸𝑡𝑡)𝑇𝐸𝐸𝐸AR)⋅𝑡𝑡𝑎𝑎+𝐸𝐸𝐸SAR)⋅𝑡𝑡𝑠𝑠+𝐸𝐸𝐸IR)⋅𝑡𝑡𝑖𝑖.(2) 𝐸𝐸𝐸AR)varies according the number of packets to transmit, packets to receive, acknowledgements to transmit, acknowledgements to receive, and the number of retransmissions during 𝑡𝑡𝑎𝑎time. Bearing in mind that in a wireless link there is a packet retransmission probability (𝑃𝑃𝑠𝑠), because there can be lost or error packets, 𝐸𝐸𝐸AR)canbegivenbythe following expression: 𝐸𝐸𝐸AR)𝑇󶀡󶀡1+𝑃𝑃𝑠𝑠󶀱󶀱⋅󶀡󶀡𝐸𝐸TX +𝐸𝐸RX +𝐸𝐸TX_ACK +𝐸𝐸RX_ACK󶀱󶀱, (3) where 𝐸𝐸TX is the energy consumed because of the transmitted packets, 𝐸𝐸RX is the energy consumed because of the received packets, 𝐸𝐸TX_ACK is the energy consumed because of the transmitted acknowledgement packets, and 𝐸𝐸RX_ACK is the energy consumed because of the received acknowledgement packets. If we take into account the following parameters and the energy model for wireless sensor nodes provided in [45], weobtain(4) to estimate 𝐸𝐸𝐸AR)in free space: (i) number of packets to be transmitted (𝑛𝑛𝑡𝑡), (ii) average number of bits of each transmitted packet (𝑥𝑥𝑡𝑡), (iii) average number of acknowledgements transmitted for a packet (𝑛𝑛at), International Journal of Distributed Sensor Networks 5 Active state Calculate energy Yes Semiactive state No Yes Harvest energy No Idle state No Yes Harvest energy Yes No No Yes *G 4"3 5JNF *OUFSWBM  *G 4"3 *G 4"3 5JNF *OUFSWBM  *G 4"3 *G 4"3 *OUFSWBM  F 3: Algorithm for the three states of sensor node. (iv) average number of bits of each transmitted acknowledgement packet (𝑥𝑥at), (v) number of packets to be received (𝑛𝑛𝑟𝑟), (vi) average number of bits of each received packet (𝑥𝑥𝑟𝑟), (vii) average number of acknowledgements received for a packet (𝑛𝑛ar), (viii) average number of bits of each received acknowledgement packet (𝑥𝑥ar) 𝐸𝐸(AR)=󶀡󶀡1+𝑃𝑃𝑠𝑠󶀱󶀱⋅󶀡󶀡𝐸𝐸elec ⋅󶀡󶀡𝑛𝑛𝑡𝑡⋅𝑥𝑥𝑡𝑡𝑟𝑟 +𝑛𝑛𝑟𝑟⋅𝑥𝑥𝑡𝑡𝑟𝑟 +𝑛𝑛 atr ⋅𝑥𝑥atr +𝑛𝑛atr ⋅𝑥𝑥atr󶀱󶀱 +𝜀𝜀 amp ⋅𝑑𝑑2⋅󶀡󶀡𝑛𝑛𝑡𝑡⋅𝑥𝑥𝑡𝑡𝑟𝑟 +𝑛𝑛atr ⋅𝑥𝑥atr󶀱󶀱󶀱󶀱. (4) We have assumed that generally 𝑥𝑥𝑡𝑡=𝑥𝑥 𝑟𝑟(we will call it 𝑥𝑥𝑡𝑡𝑟𝑟), 𝑥𝑥at =𝑥𝑥 ar (we will call it 𝑥𝑥atr), and 𝑛𝑛at =𝑛𝑛 ar (we will call it 𝑛𝑛atr). When any node switches to idle state, it informs its neighbors. In return, neighbor nodes start routing packets through another route. For energy-efficient routing, all the member nodes of cluster periodically exchange route energy packets (REP). In REP, nodes communicate energy value. A node always selects that path in which the neighbors have more energy. For example, node A has three one-hop neighbors K, L, and M. Now A will select that neighbor which has more energy. 3.3. Cross-Layer Design. Interaction amongst parameters across the protocol stack is performed using methodology of cross-layer design. In proposed mechanism, the interaction between physical layer and network layer is possible due to this methodology. REP is generated using cross-layer design. Energy is physical layer scheme, while routing is the mechanism of network layer. To bring current energy value of a node in routing packet is only possible using cross-layer design. In cross-layer design, energy value is �rst captured at application layer and then inserted to network packet using cross-layer interface [9]. is selection of energy efficient route helps semiactive nodes to harvest more energy and to participate less in WSN operations so that they become active soon. is kind of intelligent routing is possible with cross-layer design. 6 International Journal of Distributed Sensor Networks a b S c e f h d g (a) a b S c e f h d g (b) a b S c e f h d g (c) F 4: Energy-efficient route selection. e energy-efficient route selection process is given in Figure 4. In Figure 4(a), “S” is a cluster head forming a two-hop cluster of many nodes. Initially all the nodes are in active state and as soon as any node gathers some information, it transfers that information immediately to cluster head for further processing. As in active state, environmental energy is not harvested so that all the nodes are using battery power. In WSN, those nodes which are in center or having many neighbors are supposed to consume more energy as they not only gather information and transmit to cluster head but also relay data for all other neighbors. In Figure 4(a),node“b” isnotonlyforwardingitsowndatato“S,”butalsorelaying datafor“a”aswell.So“b”energyconsumptionismoreas compared to “a.” Here “b” cannot remain in active state for long time. When “b” energy falls in semiactive range, it will switch to semiactive state. Here “a” has an alternate path to start routing data through node “c” as shown in Figure 4(b). Node “b” will start energy harvesting and will remain in semiactive state. Let suppose node “c” is not there and node“a”hasnoalternatepath.Insuchcase,node“a”will still forward data to node “b” and node “b” will relay data for node “a” aer some interval of time. As in semiactive state, node “b” will harvest environmental energy for some time and will forward collected data to cluster head for some time. Let suppose node “b” is in idle state and node “a” has noalternateroutetoclusterhead.Inthatcase,node“a”will collect information and has to wait till it receives a control packet from node “b” about its active or semiactive state. From Figure 4(a), suppose node “b,” “h,” and “d” are under heavy traffic load. Aer some time, these three nodes switch to semiactive state. eir neighbors will start data relaying through other alternate routes as given in Figure 4(b). In this �gure, node “a” is now routing data through node “c,” node “e” is communicating with cluster head through node “f”, while node “g” is relaying data through “f.” However, now node “f” is relaying packets for many nodes. Suppose, node “f” switches to semiactive state, then the nodes will reorganize themselves to alternate paths as shown in Figure 4(c). As nodes periodically communicate REP packet, so all the nodes are informed of neighbors current state. When a neighbor receives REP packet and the energy value in REP packet is in semiactive or idle range, the corresponding neighbors start searching for alternate routes. is kind of mechanism ensures energy-efficient routing in cluster-based sustainable WSN. However, there is a need of some kind of security scheme to ensure reliable data forwarding, 3.4. Security Mechanism. Most of WSNs are used to sense, collect, and process sensitive information. Data con�dentiality and integrity is one of the important objectives in such cases. is kind of objective can be achieved by designing some sort of security mechanism especially enabling security mechanism in routing protocol. Important requirement of any network is to ensure con�dentiality, integrity, and availability [1, 8, 10]. �on�dentiality ensures the secrecy of data sent from source to destination. Integrity makes sure that the destination received data in correct format and sequence without any alteration. Availability means that all the nodes and network devices are operating in harmonious mode and the network resources are available all the time. e attacker uses active or passive attacks to violate either con�dentiality of sensitive data or integrity of transmitted data by altering the real information Different kinds of active and passive attacks can bring serious disruption in overall performance of WSN. Passive attacks [10] do not harm the network or network resources; however, these attacks collect, analyze, and decode sensitive information. Active attacks [1] have the capability to drop or misdirect routing packets. To counter passive attacks and to ensure secrecy and con�dentiality of data, we are using similar kind of mechanism as used in [46]. To counter packet dropping or misdirecting kinds of active attacks, we modi�ed a bit the security mechanism proposed in [9]. e security mechanism proposed in [9] sends passive acknowledgement for every successful delivery of packet. For example, if a source node sends 100 packets to destination node through intermediate node(s), the destination node sends back 100 International Journal of Distributed Sensor Networks 7 DSBA Acknowledgement F 5: Proposed security mechanism. passive acknowledgements to source node for every packet arrived. Keeping in view the limited resources and bandwidth, in WSN we cannot use this kind of heavy mechanism. e reason is that, such mechanism will greatly increase routing overheads and could create congestion. In our case, a packet counter is introduced at every node including cluster head. Suppose in Figure 4(a), node “e” forwards 300 packets to cluster head. When cluster head will not receive any further packets from node “e” till �xed interval of time, it will assume that node “e” has no more packets to send. e cluster head will send a packet count of 300 to node “e,” which means that cluster head successfully received 300 packets. When node “e” receives packet count from cluster head which matches to its own packet count, it means node “d” is not malicious and all the packets are successfully relayed through node “d.” Our mechanism is per session basis contrary to the per packet bases mechanism proposed in [9]. e proposed security model can counter many kinds of active attacks such as blackhole, greyhole, and wormhole [1, 8, 9]. Blackhole is a compromised node and if it is located as intermediate node between source and destination, it is used to drop all the packets passing through it. Greyhole is a less harsh version of blackhole attack. Greyhole is such a malicious node, which is used to selectively drop packets passing through it. Wormhole is basically packet misdirecting attack, in which the attacker establishes a wormhole link between two malicious nodes. e wormhole link is established using fast medium such as �ber optic. One malicious node captures packets at one end and tunnel them through wormhole link to other malicious node. e objective of this attack is to create routing overheads and congestion in network. Our security mechanism is further explained in Figure 5 In Figure 5, “S” is a source node, while “D” is cluster head acting as destination node. Node “A” and “B” are intermediate nodes which relay packets for “S” towards “D.” Let us suppose, node “A” is malicious and acting as greyhole. Node “S” sent 12 packets to “A.” Node “A” dropped 4 packets. Node “D” received only 8 packets. At the end of the transmission, node “D” sent an acknowledgement to “S” that 8 packets are received successfully. At this stage, node “S” assumes that the next node is malicious and dropping the packets. Now, node “S” starts searching an alternate route to n o de “D.” Similarly, if node “A” is acting as blackhole or greyhole, the acknowledgement at the end of the session can easily detect such packet dropping or packet misdirecting kind of malicious activities. 0 300 600 900 1200 1500 1800 2100 2400 0 50 100 150 200 250 300 350 400 Rounds Number of nodes Proposed routing HEED LEACH F 6: Network life time based on number of rounds. On the other hand, the mechanism proposed in [9] uses every next hop passive acknowledgement. For example, node “B” sends passive acknowledgment to node “S” for every packet received. Similarly node “D” sends passive acknowledgement to node “A” for every packet received. 4. Performance Evaluation e performance of secure routing protocol based on crosslayer design and energy harvesting technique is simulated using realistic scenarios. We simulated a WSN having 200 nodes capable of harvesting environmental energy using NS- 2. ese nodes are randomly deployed at 100 m ×100 m. Each data packet is of 200 bytes, while PER packet size is 40 bytes. We compared our routing mechanism with low energy adaptive clustering hierarchy (LEACH) and hybrid energyefficient distributed (HEED) cluster-based routing protocol. Figure 6 shows the network lifetime comparison of three routing protocols based on number of rounds. e performance of the proposed protocol is better as compared to LEACH and HEED. e reason is that the proposed routing scheme selects energy efficient path to cluster head; furthermore, environmental energy-harvesting mechanism can create great difference in network lifetime. In Figure 7, the remaining network energy is presented with respect to number of rounds. e total number of nodes is 400 and the network remaining energy is computed for 80 rounds. It is observed that the proposed routing mechanism is better than the rest of two. is difference is again created by the usage of energy harvesting mechanism. e proposed routing scheme is capable to balance the energy usage and harvesting. HEED performance is also satisfactory till the end of 40 rounds. e reason is that HEED is also energy-efficient routing mechanism. However, aer 40 rounds, HEED gradually decreases energy value as it has no support of energy harvesting. On the other hand, LEACH performance shows gradual degradation as soon as the number of rounds increases. e reason is that LEACH is not energy efficient in nature. 8 International Journal of Distributed Sensor Networks 0 20 40 60 80 100 0 10 20 30 40 50 60 70 80 Number of rounds Proposed routing HEED LEACH Energy (%) F 7: Remaining network energy. 0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0 50 100 150 200 250 300 350 400 End to end delay (ms) Number of nodes Active state HEED LEACH Semiactive state F 8: End to end delay. In Figure 8, end to end delay is presented, which shows some interesting results. When the proposed mechanism is in active states, it shows lowest end to end delay from source to cluster head. is is because, the proposed mechanism follows such a path which is rich in energy. However, the proposedschemeshowsmoreendtoenddelayifsomeofits nodes are in semi-active state. e reason is that, if a node(s) is in semiactive state, it harvests energy for some time. During energy harvesting period, nodes do not forward packets or take part in communication. In this case, a neighbor has only oneroute to cluster head through the node in semiactive state. e node has to wait for its neighbor to harvest energy for some time and then forwards its packets through it to cluster head. Figure 9, compares routing overheads of all three routing protocols with 400 nodes. e proposed routing scheme has more routing overheads as compared to LEACH. It is due to periodic exchange of REP packets to inform the neighbors about energy value. Figure 10 shows a number of live nodes with respect to rounds in a network of 400 nodes. is simulation result is obtained with increased traffic from sensor nodes to destination. It is observed, that even aer 1500 rounds, 0 10000 20000 30000 40000 0 50 100 150 200 250 300 350 400 Routing overhead (bits/sec) Number of nodes Proposed routing HEED LEACH F 9: Routing overhead comparison. 0 40 80 120 160 200 240 280 320 360 400 0 250 500 750 1000 1250 1500 Number of live nodes Number of rounds Proposed routing HEED LEACH F 10: Number of live nodes in increased traffic scenario. the number of live nodes in proposed mechanism is more than 300, whereas great performance degradation is seen in LEACH just aer 200 rounds. In Figure 11, a malicious node is introduced to observe the packet loss ratio of all the routing protocols. e malicious node is acting as a greyhole [8]. Greyhole node selectively drops packets which it receives from neighbors. We selected greyhole attack as it represents an entire class of packet dropping and packet misdirecting attacks such as blackhole, sinkhole, jelly�sh, and wormhole attacks [1, 9]. is simulation is setup in many sessions. Every session is used to forward 150 packets toward cluster head. Greyhole node is introduced from second session onward (i.e., in sessions 3, 4, 5, and �). In �rst two sessions, all the routing protocols successfully forward all the packets without any loss. However, when greyhole malicious node is introduced, almost half of the packets are dropped by all the routing schemes. However, our proposed mechanism adapted a new route from session 4 and onward. Our proposed mechanism also dropped almost half of the packets in session 3. At the end of session 3, our mechanism waits for response of cluster head to receive a packet counter in which the cluster head will mention the number of packets International Journal of Distributed Sensor Networks 9 0 30 60 90 120 150 123456 Packet loss Number of sessions Proposed routing HEED LEACH F 11: Packet loss in presence of malicious node. successfully arrived. Cluster head sends packets to nodes by enabling packet counter in it. e node sees that the total number of packets sent to cluster head were 150 while only 70 packets are successfully transferred. At this stage, our routing scheme assumes that the neighbor is malicious and it is dropping packets. at is why in session 4 and onward, packet loss in our routing mechanism is negligible due to selection of alternate path. On the other hand, HEED and LEACH cannot distinguish malicious node in their way. 5. Conclusion Research community is trying to explore different possibilities to enable energy harvesting in WSN. In this way, the lifetime of sustainable WSN can be increased to a great extent to achieve all goals of sensors deployment. In this paper, we presented in detail a secure routing protocol for WSN, which is based on cross-layer design and energyharvesting technique. We use a cluster-based approach to group together nodes of two-hop neighbors. Initially all the nodes are in active state, in which nodes actively participate in WSN operations. However, as long as the energy value of sensor node decreases, it switches to semiactive state. In semiactive state, nodes are in wake and sleep conditions. In wake position, nodes take part in network operations, while in sleep position, nodes only harvest environmental energy. In idle state, nodes only harvest energy till it switches back either to active or semiactive states. When compared to other cluster-based routing protocols such as HEED and LEACH, our proposed routing scheme shows better performance in terms of network lifetime, number of live nodes, remaining network energy, and the presence of malicious node. Some packet loss is observed in our mechanism especially in session 3 as shown in Figure 11. We cannot use per packet acknowledgement as it may result in high routing overheads. We are planning to devise a mechanism in which such packet loss could be reduced. Our future work is to design such distributed algorithm, which is capable of operating in both cluster and non-cluster-based WSN. Furthermore, such mechanism is also desirable since it enables sensor nodes to harvest environmental energy as well as participate in network operations simultaneously. Security mechanism can be improved by using lightweight hash function mechanism or advanced cryptographic scheme to handle active and passive attacks. An interesting technique of arti�cial neural network (ANN) can be considered to locate those nodes having less remaining energy. Acknowledgments e authors extend their appreciation to the Research Centre, College of Applied Medical Sciences, and the Deanship of Scienti�c Research at King Saud �niversity for funding this research. References [1] S. Khan, N. Mast, and J. Loo, “Denial of service attacks and mitigation techniques in IEEE 802.11 Wireless mesh networks,” Information, vol. 12, pp. 1–8, 2009. [2] M. Segal, “Improving lifetime of wireless sensor networks,” Network Protocols and Algorithms, vol. 1, no. 2, pp. 48–60, 2009. [3] J. M. Gilbert and F. Balouchi, “Comparison of energy harvesting systems for wireless sensor networks,” International Journal of Automation and Computing, vol. 5, no. 4, pp. 334–347, 2008. [4] S. Sendra, J. Lloret, M. Garcia, and J. F. Toledo, “Power saving and energy optimization techniques for Wireless Sensor Networks,” Journal of Communications, vol. 6, no. 6, pp. 439–459, 2011. [5] A. H. Mohsin, K. Abu Bakar, A. Adekiigbe, and K. Z. Ghafoor, “A survey of energy-aware routing protocols in Mobile Adhoc networks: trends and challenges,” Network Protocols and Algorithms, vol. 4, no. 2, pp. 82–107, 2012. [6] S. Shakkottai, T. S. Rappaport, and P. C. Karlsson, “Cross-layer design for wireless networks,” IEEE Communications Magazine, vol. 41, no. 10, pp. 74–80, 2003. [7] V. Srivastava and M. Motani, “Cross-layer design: a survey and the road ahead,” IEEE Communications Magazine, vol. 43, no. 12, pp. 112–119, 2005. [8] S. Khan, K. K. Loo, N. Mast, and T. Naeem, “SRPM: secure routing protocol for IEEE 802.11 infrastructure based wireless mesh networks,” Journal of Network and Systems Management, vol. 18, no. 2, pp. 190–209, 2010. [9] S. Khan and J. Loo, “Cross layer secure and resource-aware ondemand routing protocol for hybrid wireless mesh networks,” Wireless Personal Communications, vol. 62, pp. 201–214, 2010. [10] S. Khan, N. Mast, J. Loo, and A. Silahuddin, “Passive security threats and consequences in IEEE 802. 11 wireless mesh networks,” International Journal of Digital Content Technology and Its Applications (JDCTA), vol. 2, pp. 4–8, 2008. [11] M. Frederickson, A publication of the National Electronics Manufacturing Center of Excellence, 2005. [12] K. Akkaya and M. Younis, “A survey on routing protocols for wireless sensor networks,” Ad Hoc Networks, vol. 3, no. 3, pp. 325–349, 2005. [13] S. Singh, M. Singh, and D. Singh, “Routing protocols in wireless sensor networks, A survey,” International Journal of Computer Science & Engineering Survey (IJCSES), vol. 1, pp. 25–34, 2010.