Research Article
August
2017
Computer Science and Software Engineering
ISSN: 2277-128X (Volume-7, Issue-8)
Prevention of Gray Hole Attack Using ABC and Fuzzy
Logic
Lokeshwar Singh
Student M Tech, Computer Science of Computer Engineering, BIMT, Shimla, Himachal Pradesh, India
Ashish Sharma
Assistant Professor Department of Computer Engineering, BIMT, Shimla, Himachal Pradesh, India
DOI: 10.23956/ijarcsse/V7I8/0128
Abstract— There are many advantages and reasons for wireless sensor network to be popular. The key concern while establishing wireless sensor network (Mobile ad-hoc network) is the routing protocol to be applied. Routing process is the process of discovering the path that a data packet will follow to get it from the source node to the destination node. As the mobile ad-hoc network consists of mobile nodes with no controlling unit in which each and every step of communication is handled by the nodes within the network itself. The selection of routing protocol is one of the difficult tasks and the key challenge faced by the routing is the energy consumption issue apart from the others. In this research, the routing technique is developed with a basic focus on reduction of the energy consumption while improving the overall performance of the network. Presently, various efficient routing protocols have been estimated for wireless sensor network. In the presence of malicious nodes, the network becomes penetrable to different kind of attacks. In wireless sensor network, routing-attacks are relatively serious. It has number of potential-applications in completely un-predictable in dynamic environment. Routing protocol utilized here are in a form of reactive-routing protocol known as OLSR. This routing protocol route is based on demand.
The proposed work has designed and implemented wireless sensor network in OLSR routing protocol. The gray hole attack is mitigated using Fuzzy Logic based on rule sets to have better routing process and ABC (Artificial Bee Colony) algorithm at superior rate for optimizing the route set at novel objective function. In this work, the performance analysis of the network with the scenarios consisting 50 nodes moving with the speed of the 5-10m/s within the area (1000X1000) m2 has been done in regards to the parameters, namely, Throughput, End-to-End Delay, BER (bit error rate) and Energy consumption).
Keywords— WSN, ABC, OLSR, Fuzzy logic, MATLAB.
I. INTRODUCTION
Wireless Sensor Network (WSN) technology enables design and implementation of novel; intriguing applications that can be used to address numerous industrial, environmental, societal and economical challenges and thus, the importance and potential of WSNs are constantly growing.
Fig. 1 Sensor Networks
A sensor node (as shown in the Fig. 1) is generally defined as a cheap and small piece of hardware, which consists of four main units:
• One or more sensors that detect physical phenomena. Common sensors monitor scalar values of temperature, pressure, humidity, light intensity, etc.
ISSN(E): 2277-128X, ISSN(P): 2277-6451, DOI: 10.23956/ijarcsse/V7I8/0128, pp. 1-9
• The data’s wireless transmission is provided by a communication interface. • For every operational electronic system an energy source is needed.
II. FUZZY LOGIC
Fuzzy Model is the generalized model of previous classic models. As the output is not limited to only 0 and 1, so the theory of fuzzy logic is introduced. It is also known as diffuse logic. Difference between fuzzy logic and classical model is introduced using membership functions. Consider a finite set:
C= {c1, c2, c3….cn}
It is the universal set. Now according to graphical representation, suppose fuzzy sets have only two elements c1 and c2. So the degree of fuzzification can be called as entropy. E=f1/f2 ; Where f1 and f2 are the distances
Fig. 2 Fuzzy Logic Model
III. ARTIFICIAL BEE COLONY
Artificial Bee Colony (ABC) is simple as Particle Swarm Optimization (PSO) and Differential Evolution (DE) algorithms, and uses only common control parameters such as colony size and maximum cycle number. ABC as an optimization tool provides a population-based search procedure in which individuals called foods positions are modified by the artificial bees with time and the bee’s aim is to discover the places of food sources with high nectar amount and finally the one with the highest nectar. In ABC system, artificial bees fly around in a multidimensional search space and some choose food sources depending on the experience of themselves and their nest mates, and adjust their positions. Two techniques have been developed for the process of carrying out the collection of honey bees nectar
Recruitment
Abandonment
The essential ABC algorithm can be divided into three stages: i. Employed bee phase
ii. Onlooker bee phase iii. Scout bee phase
Fig. 3 Foraging behaviour of honey bees
IV. OBJECTIVES Aims and objectives of the work are summarized as follow:
a) To study and analyse the various existing work on detection of gray hole attack using OLSR protocol in WSN. b) To design a WSN simulator over MATLAB 2010a with various parameters like no. of nodes, length and width
of network.
c) To design and implement Intrusion Detection system based on Computational method like fuzzy logic with ABC algorithm to detect gray-hole attack in network.
d) To define a novel objective function for ABC algorithm with the rule sets for fuzzy logic to minimize the drawback of existing work.
ISSN(E): 2277-128X, ISSN(P): 2277-6451, DOI: 10.23956/ijarcsse/V7I8/0128, pp. 1-9
V. LITERATURE SURVEY
S. P. Dongare and R. S. Mangrulkar, 2015 [5], proposed an efficient and trust based protocol for achieving energy efficiency in WSN for gray hole and black hole attacks. The proposed technique has been prevented and detected the attacker within the network. All the simulations have been carried out in NS-2 software and the performance in term of packet delivery ratio, throughput, less end-to-end delay have been compared with the LEACH protocol and find that the proposed algorithms perform better.
V.Kumar et.al, 2014 [31], has proposed some of the security goal for Wireless Sensor Network. Further, as security being vital to the acceptance and use of sensor networks for many applications; author have made an in depth threat analysis of Wireless Sensor Network. Lastly it proposed some security mechanisms against these threats in Wireless Sensor Network.
Deepali et.al , 2014 [21], proposed that the security of a wireless sensor network was compromised because of the random deployment of sensor nodes in open environment, memory limitations, power limitations and unattended nature. This paper focused on various attacks that manifest in the network and provides a tabular representation of the attacks, their effects and severity. The paper presented a comparison of attacks basis packet loss and packet corruption. Also, the paper discussed the known defense mechanisms and countermeasures against the attacks.
Marigowald et.al, 2013 [30], has provided comprehensive information on types of attacks WSN was exposed to and possible methods of countering such attacks effectively. The motto of the paper was to help novice researchers with objective to work on security challenges in Wireless Sensor Network environment.
Saoucene Mahfoudh et al, 2003 [7], have shown how the standardized OLSR routing protocol can be extended to make it energy efficient. By considering residual node energy, three novel selection algorithms of multipoint relays, dependent on minimum residual energy has been executed and the best one was chosen. This OLSR extension selected the path lessening the energy being consumed in the end-to-end transmission of flow packet and avoids nodes having less residual energy. The author has compared this extension with two-path source routing strategy. The evaluation has shown that this energy efficient extension maximize network lifetime as well as user data delivered.
Tiago Camilo et al. 2006 [16], proposed the Energy Efficient Ant Based Routing Algorithm for WSNs (EEABR), taking into account and ACO Meta heuristic, was another proposed burrowing little creature based calculation to expand the lifetime of WSNs. The calculation utilized a decent technique considering vitality levels of the hubs and the lengths of the steered ways.
Zhang et al, 2004 [15] proposed burrowing little creature based calculations for WSNs; their study incorporates three steering calculations named Sensor-driven and Cost-aware ant routing (SC), Flooded Forward ant (FF), and Flooded piggybacked ant routing (FP). The calculations are fruitful with starting pheromone settings to have a decent framework start-up; however the SC and FF calculations are not exactly powerful in dormancy, while giving better vitality proficiency. Plus, the FP calculation, while giving high achievement rates of information conveyance, devours much higher vitality than the FC and FF calculations.
Raja Wassem et.al, 2014 [9], presented that security is a fundamental requirement for these networks. In this research, the centre of attention was on physical attacks and issues in wireless sensor networks. The purpose of this research was to identify the attackers. Further, well-known approaches of security detection against physical attacks have been discussed.
VI. PROBLEM STATEMENT
Security is an essential service in wireless sensor network. WSN brings new challenges to the security of the network. Due to their unique characteristics, they are prone to various types of attacks. Securing network protocol requires detailed analysis of the network protocol. WSN is the challenging area from number of years for its network security problem. However, this feature provides various challenges as well as opportunities in achieving security goals. In the proposed work, we will discuss gray hole attack on the widely used OLSR routing protocol. Routing protocols are necessary to communicate with each other, so this work will utilise OLSR protocol. It has noticed from literature survey that computational methods are good for provision of accuracy; therefore, usage of fuzzy logic along with ABC method will be done with the comparison of with Fuzzy+ABC and without Fuzzy+ABC.
. The work will be evaluated using number of network parameters as defined below;
Throughput
Throughput is defined as the total number of packets transmitted n the whole simulation time. Mathematically, it is defined as:
Throughput= 𝑃𝑎𝑐𝑘𝑡𝑠𝑠𝑒𝑛𝑡 𝑇𝑜𝑡𝑎𝑙𝑑𝑎𝑡𝑎𝑝𝑎𝑐𝑘𝑒𝑡𝑠
End to end delay
The average time taken by data packet to reach the destination and includes all delays caused by buffering during route discovery latency, queuing at the interface queue. Mathematically, it can be defined as:
𝐴𝑣𝑔. 𝐸𝐸𝐷 = 𝑆/𝑁
S is the amount of the time spent to bring packet for each destination, and N is the number of packets received by the all destination nodes.
Bit error rate
ISSN(E): 2277-128X, ISSN(P): 2277-6451, DOI: 10.23956/ijarcsse/V7I8/0128, pp. 1-9
Energy consumption
Energy consumption is defined as the energy consumed by the whole routing process at different instants of time. It is obtained by energy consumed summation in every operation mode during simulation time. It is defined mathematically as below:
𝐸𝑛𝑒𝑟𝑔𝑦 𝐶𝑜𝑛𝑠𝑢𝑚𝑝𝑡𝑖𝑜𝑛 = (𝐸𝑛𝑒𝑟𝑔𝑦_𝑐𝑜𝑛𝑠𝑢𝑚𝑒𝑑_𝑏𝑦_𝑛𝑜𝑑𝑒(𝑖))
𝑛 −1
𝑖 =0
VII. METHODOLOGY USED Step 1 : Start
Step 2 : Initialize The Network With Various No. Of Nodes.
Step 3 : Enter Width And Length Of Network To Implement Network. Step 4 : Calculation Of X And Y Location Of Nodes
Step 5 : Deployment Of Sensor Nodes In Network Step 6 : Plotting Of Source And Destination
Step 7 : Find Coverage Set, And Then Find Distance Between Nodes. Step 8 : Define Rule Sets For Fuzzy Logic To Find Out The Routs.
Step 9 : Optimize The Rule Sets Using ABC Optimizer To Find Attackers Based On The Analysis Of QOS Parameters. Step 10 :If Attackers Are Founded Then Call The ABC To Discover The Route Which Provides The Best Optimal Results.
Step 11 :Calculate The QOS Performance Metrics Like Throughput, Delay Rate, Bit Error Rate And Energy Consumption.
Step 12 :End
Fig.4 Proposed Flowchart Start
Initialise the network with various no. of nodes;
W= width of network, L= Length of network
Cov = Coverage Set for each nodes If ( 𝑑 = (𝑥2 − 𝑥1)2+
𝑦2 − 𝑦12< (𝑤∗25
100)
Choose path and start transfer.
Initialise gray hole attack and start dropping packets
Analyse the network once the attack is predicted based on QOS
parameters Define rule sets for
fuzzy logic to discover a route
from source to destination
Db
Suspected attacks
ISSN(E): 2277-128X, ISSN(P): 2277-6451, DOI: 10.23956/ijarcsse/V7I8/0128, pp. 1-9
VIII. RESULT AND DISCUSSION Table I Network Requirements
Fig. 5 Network area of the existing work
The network area of the existing work in wireless sensor network consists of area 1000× 1000 having 50 numbers of nodes to run the network. The network is run for five times that means five iterations have been applied so that best results can be obtained.
As it is depicted in the above figure that the black colour line indicates the throughput values obtained from the wireless sensor network without optimization i.e. when LEACH protocol is used to find the route to reach the packet at the destination node. Whereas the blue line indicates the throughput values obtained for the wireless sensor network with optimization i.e. ABC and fuzzy logic is used to find the accurate path and the packet has to reach at exact destination. The process is repeated five times so that we can get accurate results. Thus, the maximum throughput values obtained for the network without optimization is 83202.4885 whereas the throughput values obtained for network with ABC and Fuzzy is 86348.1575.
Table II Comparison of throughput for existing and proposed work
Fig. 6 Throughput for existing and proposed work
0 100 200 300 400 500 600 700 800 900 1000
0 100 200 300 400 500 600 700 800 900 1000
Width of the network
H
ei
gh
t
of
t
he
n
et
w
or
k
Checking4/ Path elements-->Total affected:5-->2
Number of nodes 50-100
Area 1000-1000 meters
Simulation Tool MATLAB
Evaluation Parameter Throughput, Delay, BER, Energy Consumption
Number of rounds
Existing work LEACH (without optimization)
Proposed work OLSR (ABC+FUZZY with optimization)
1 4.8 5.2
2 4.7 5
3 8.3 8.6
4 5.8 6.2
ISSN(E): 2277-128X, ISSN(P): 2277-6451, DOI: 10.23956/ijarcsse/V7I8/0128, pp. 1-9
Table III comparison of delay for existing work with proposed
Fig. 7 Delay for existing and proposed work
The average values obtained for the existing work without ABC-Fuzzy and for proposed work with ABC-FUZZY are 19.892 and 7.3896 respectively. when we compare these values with the proposed work the average value obtained with LEACH protocol is 20.2353 and with optimization it get reduced and we obtained average delay of 0.70394, which is very much less than the existing work.
Table IV comparison of BER for existing work and proposed work
Fig. 8 BER for existing and proposed work Number
of rounds
Existing work LEACH (without optimization)
Proposed work OLSR
(ABC+FUZZY with optimization)
1 4 -8
2 3 -10
3 20 6
4 17 4
5 13 1
Number of rounds
Existing work LEACH (without optimization)
Proposed work OLSR
(ABC+FUZZY with optimization)
1 16.1 16
2 15.9 15.8
3 16.2 16.1
4 14.8 14.8
ISSN(E): 2277-128X, ISSN(P): 2277-6451, DOI: 10.23956/ijarcsse/V7I8/0128, pp. 1-9
The average value of bit error rate (BER) obtained for the existing work with LEACH protocol is 16.2101 and with OLSR (ABC-Fuzzy) the average value gets decreased and become 16.1861. It get decreased because with the OLSR protocol the BER obtained get optimized by using ABC optimization algorithm and for classification Fuzzy logic is used. Whereas, the average value obtained for the proposed work for with and without optimization algorithm are 16.7424 and 11.5814 respectively.
Table V Comparison of Energy Consumption for existing and Proposed work
Fig. 9 Energy consumption for existing and proposed work
Form the above graph, it is concluded that more energy is consumed without ABC+Fuzzy algorithm that is for the previous work than the ABC + fuzzy algorithm being applied to the network as we have proposed. Without optimization, the energy consumption is 121.168 whereas; with optimization the energy consumption is 109.2157 which is less as compared to without optimization.
IX. CONCLUSION
Wireless Sensor Network is quiet unsafe as well as susceptible to numerous attacks so it is required, a dependable, proficient as well as a protected protocol which can be able to quickly organized and also utilizes dynamic routing technique. OLSR is prone to countless attacks similar to alteration in the sequence quantities or hop counts, source route channelling, spoofing in addition to construction in the error messages. Gray hole attack is an actual threat in contradiction of OLSR protocol in wireless sensor network. Gray hole attack knows how to be certainly launched even in network grids that is available confidentiality in addition to authenticity. The malicious nodes generally target the routing controller messages interrelated to routing data.
In this research, we have analysed the effect of Gray Hole in the network. For this purpose, we have used an OLSR routing protocol. For analysing, fuzzy set and ABC are used as a classifier. It works on the basis of rule sets which can help to find whether the attack is present or not. Through fuzzy logic technique, the rules are being set as per OLSR routing protocol. The simulation has been executed using the MATLAB. The simulation results has shown that when the gray hole node exists in the network, the performance of the network is being affected and decreased and can be optimized by using ABC algorithm with fuzzy rule sets. In the proposed work, throughput value (99018.1835), delay (7.38 msec), BER (16.18) and energy consumption (89.9357) are obtained when optimization is being used.
REFERENCES
[1] Mark and J.W, “Evolution of wireless communications and networking,” in Quality of Service inHeterogeneous Wired/Wireless Networks, Second International Conference, pp.2 pp.-xxi, 24-24 Aug, 2005.
[2] Akyildiz, I.F., Weilian Su, Sankarasubramaniam and Y. Cayirci, E., “A survey on sensor networks,”
in Communications Magazine, IEEE, Vol.40, no.8, pp.102-114, Aug, 2002. Number
of rounds
Existing work LEACH (without optimization)
Proposed work OLSR (ABC+FUZZY with optimization)
1 16.1 16
2 15.9 15.8
3 16.2 16.1
4 14.8 14.8
ISSN(E): 2277-128X, ISSN(P): 2277-6451, DOI: 10.23956/ijarcsse/V7I8/0128, pp. 1-9
[3] S. Xu and T. Saadawi, “Does the IEEE802.11 MAC protocol work well in multihop wireless ad hoc networks?”, IEEE Commun. Mag., Vol. 39, pp.130 -137 2001.
[4] Toumpis, Stavros, Goldsmith and A.J., “Capacity regions for wireless ad hoc networks,” in Wireless Communications, IEEE Transactions on , Vol.2, no.4, pp.736-748, July 2003.
[5] S. P. Dongare and R. S. Mangrulkar, “Implementing energy efficient technique for defense against Gray-Hole and Black-Hole attacks in wireless sensor networks,” International Conference on Advances in Computer Engineering and Applications, Ghaziabad, pp. 167-173, 2015.
[6] Introduction to Wireless Sensor Networks. http://www.worldscibooks.com/ compsci/etextbook/6288/6288-chap1pdf, October, 2008
[7] Vieira, M.A.M., Coelho C.N., da Silva, D.C., Jr., da Mataand J.M., “Survey on wireless sensor network devices,”
in Emerging Technologies and Factory Automation, 2003. Proceedings. ETFA '03. IEEE Conference , Vol.1, pp.537-544, Sept. 2003
[8] Ennaji, R., Boulmalf, M., “Routing in wireless sensor networks,” in Multimedia Computing and Systems, International Conference, pp.495-500, April 2009.
[9] Raja Anwar, Majid Bakhtiari, Anazida Zainal, Abdul Hanan Abdullah and Kashif Naseer Qureshi “Security Issues and Attacks in Wireless Sensor Network”World Applied Sciences Journal 30 (10): 1224- 1227, 2014. [10] Weiwei Fang, Zhen Liu and Feng Liu, “A Cross-Layer Protocol For Reliable And Efficient Communication In
Wireless Sensor Networks,” International Journal of Innovative Computing, Information and Control, Vol. 8, no. 18, October 2012.
[11] Martin Engineer, “Energy-efficient communication in Wireless Sensor Networks ,” Network Architectures and Services, August 2012
[12] Chellaprabha, B and S. Chenthur Pandian, “A Multipath Energy Efficient Congestion Control Scheme for Wireless Sensor Network,” Journal of Computer Science, Vol.8, no.6, pp. 943-950, 2012.
[13] Selcuk Okdem and Dervis Karaboga, “Routing in Wireless Sensor Networks Using an Ant Colony Optimization (ACO),” Router Chip: In Sensors, 2009.
[14] Shio Kumar Singh, M P Singh, and D K Singh, “Energy Efficient Homogenous Clustering Algorithm for Wireless Sensor Networks,” International Journal of Wireless & Mobile Networks (IJWMN), Vol.2, no.3, August 2010.
[15] Y. Zhang, L. D. Kuhn and M. P. J. Fromherz, “Improvements on Ant Routing for Sensor Networks,” Springer-Verlag Berlin Heidelberg 2004, pp. 154-165, 2004.
[16] Tiago Camilo, Carlos Carreto, Jorge Sa Silva and Fernando Boavida, “An Energy-Efficient Ant-Based Routing Algorithm for Wireless Sensor Networks”,Springer, 2006.
[17] Rabiner, W.; Kulik, J. and Balakrishnan, H, “Adaptive Protocols for Information Dissemination in Wireless Sensor Networks,” In Proceedings of the Fifth Annual International Conference on Mobile Computing and Networking (MOBICOM), Seattle, WA, USA, pp. 174–185, August, 1999.
[18] C. Intanagonwiwat, R. Govindan, and D. Estrin, “Directed diffusion: a scalable and robust communication paradigm for sensor networks,” Proceedings of ACM MobiCom, pp. 56-67, 2000.
[19] Clausen, Thomas, and Philippe Jacquet, “Optimized link state routing protocol (OLSR)”, No. RFC 3626, 2003. [20] Mahfoudh, Saoucene, and Pascale Minet, “An energy efficient routing based on OLSR in wireless ad hoc and
sensor networks,” 22nd International Conference on. IEEE, 2008.
[21] Deepali Virmani, Ankita Soni, Shringarica Chandel, Manas Hemrajani, “Routing Attacks in Wireless Sensor Networks: A Survey”, International Journal of Computer Science and Information Technologies, Vol. 5 (2), 2014.
[22] Renold, A. Pravin, R. Poongothai, and R. Parthasarathy, “Performance analysis of LEACH with gray hole attack in Wireless Sensor Networks,” Computer Communication and Informatics (ICCCI), IEEE, 2012.
[23] Gupta, Indranil, Denis Riordan, and Srinivas Sampalli, “Cluster-head election using fuzzy logic for wireless sensor networks,” Communication Networks and Services Research Conference, Proceedings of the 3rd Annual, IEEE, 2005.
[24] K.Venkatraman, J.Vijay Daniel, G.Murugaboopathi “Various Attacks in Wireless Sensor Network:Survey” International Journal of Soft Computing and Engineering, Vol.3, Issue-1, March 2013.
[25] Taheri Hoda, Peyman Neamatollahi and Mohammah-H Yaghmaee “An energy-aware distributed clustering protocol in wireless sensor networks using fuzzy logic,” Ad Hoc Networks, Vol. 10, no. 7, pp. 1469-1481, 2012. [26] Kapitanova, Krasimira, Sang H. Son, and Kyoung-Don Kang, “Using fuzzy logic for robust event detection in
wireless sensor networks,” Ad Hoc Networks, Vol. 10, no. 4, pp. 709-722, 2012.
ISSN(E): 2277-128X, ISSN(P): 2277-6451, DOI: 10.23956/ijarcsse/V7I8/0128, pp. 1-9
[28] Yang, Zhang, Nirvana Meratnia, and Paul Havinga, “An online outlier detection technique for wireless sensor networks using unsupervised quarter-sphere support vector machine,” Intelligent Sensors, Sensor Networks and
Information Processing, International Conference on. IEEE, 2008.
[29] Viani, Federico, F. Viani, L. Lizzi, P. Rocca, M. Benedetti, M. Donelli, and Andrea Massa, “Object tracking through RSSI measurements in wireless sensor networks,” Electronics Letters, Vol. 44, no.10, pp 653-654, 2010. [30] K Marigowda1 and Manjunath Shingadi, “Security Vulnerability Issues In Wireless Sensor Networks: A Short
Survey”, International Journal of Advanced Research in Computer and Communication Engineering, Vol.2, July 2013.