SlideShare a Scribd company logo
1 of 3
Download to read offline
IJSRD - International Journal for Scientific Research & Development| Vol. 3, Issue 10, 2015 | ISSN (online): 2321-0613
All rights reserved by www.ijsrd.com 918
An Improved Energy Efficiency Algorithm in Wireless Sensor Network
using Query Optimization
M.Sivakumar1
Prof. K. Senthil Prasad2
1,2
Assistant Professor
1,2
Department of Computer Science and Engineering
1,2
SVS College of Engineering, Coimbatore, India
Abstract— Wireless Sensor Networks (WSN) is an essential
guide foe anyone interested in wireless communications for
sensor networks, home networking, environment
monitoring, target tracking, and surveillance. In wireless
sensor network sensor nodes have very limited supply of
energy, and also should be available in function for
extremely long time (e.g. a couple of years) without being
recharged. So consider the energy resource of sensor node
and the life time of the sensors, to optimize the query plan,
based on user specified accuracy for wireless sensor
network. This proposed method aims at optimization of
periodical query, with careful consideration of accuracy,
along with energy consumption in data communication.
User may specify a value/time accuracy constraint,
according to which an optimized query plan can be created
to minimize the energy consumption. The main objective is
to propose an energy efficient algorithm to reduce data
transmission and to increase the life time of wireless sensor
network.
Key words: Wireless Sensor Network; query processing;
query optimization; energy efficiency; Value/Time
I. INTRODUCTION
Wireless sensor network consists of spatially distributed
autonomous sensors to monitor physical or environmental
conditions, such as temperature, sound, vibration, pressure,
motion or pollutants and to cooperatively pass their data
through the network to a main location [1]. The sensor field
constitutes sensor nodes. Typically, a sensor node can
perform tasks like computation of data, storage of data,
communication of data and sensing/actuation of data [2].
The communication device of sensor node sends and
receives information over a wireless channel, and the power
supply is necessary to provide energy.
In wireless sensor networks, power consumption
efficiency is one of the most important design
considerations. Therefore, these intertwined components
have to operate and balance the trade-offs between as small
energy consumption as possible and also need to fulfil their
tasks. One of the main characteristics of wireless sensor
network as power consumption constraints for the nodes
using batteries or energy harvesting. The base station post-
processes all the data received from individual sensors and
then produces the answer to the user who issues the query
[3]. Sensor data can be viewed as a table with a single
column per sensor type, and new tuples are appended to the
tables when they arrive at the base station. Power
consumption is the major consideration of designing sensor
network algorithms. Hence, it is important to understand the
energy consumption of various operations of sensors, to
optimize the design of query processing strategies. Wireless
sensor networks should try to minimize the number of
communication and sensing operations, so that the sensor
node energy consumption has been reduced.
The rest of this paper is arranged as follows.
Section 2 introduces the value based query optimization
algorithm. Section 3 introduces the time based query
optimization algorithm. Section 4 presents experiment.
Simulations and performance analysis will be presented in
section 5. Finally, conclusion is drawn in Section 6.
II. VALUE BASED OPTIMIZATION ALGORITHM
Value Based Optimization Algorithm is used for query
optimization, which can be performed based on the value
accuracy constraint.
Fig. 1: Query example1
In this above Query example1 collect temperature
Value from Area_C region, and also the special clause for
Accuracy clause value=1◦c. Once the timer will alive its
start from 00:00:00 s after 1s its collect temperature value
from sensor node. Continuously the loop will be executed
17 times interval between 1s. Once the temperature value
can be generated by the sensor node, it transmits that value
to the base station, and the accuracy of the temperature
reading is within one degree above or below the real data
[10].
In such a way that the value accuracy constraint to
optimize the query execution instead of every reading
directly delivery to sink from sensor node. (i.e.) when new
temperature reading was sensed by sensor node, it compare
to the previous reading, in that new reading is above or
below the accuracy value, we choose to report only updates.
Data communication can be minimized, so energy of sensor
node was saved. In this method particularly used for where
the attribute value changes sharply and smoothly, and also it
is never worse than the direct delivery.
Fig. 2: Value-based optimization
An Improved Energy Efficiency Algorithm in Wireless Sensor Network using Query Optimization
(IJSRD/Vol. 3/Issue 10/2015/204)
All rights reserved by www.ijsrd.com 919
Figure2. Illustrate the basic idea of the above
Query example 1 in that query simply specifying the
Accuracy constraint value =1◦c, instead of direct delivery of
every 17 readings at each interval. In my proposed method
value based optimization algorithm needs to send the
temperature reading has only 9 times, so largely reduced the
data transmission. The query was specified value accuracy
constraint ∆v, series of the attribute reading r0, r1, r2 ….. ,
timings t0, t1, t2 …... series of values v0, v1, v2 ….. , to be
delivered to sink or base station as the representation of real
reading serious, main problem is how to choose value vi
(i=0, 1, 2…) as representation of set of readings. In this
value based optimization algorithm create two methods; one
is fixed value and another one is adaptive average method
A. Fixed Value Method
In this algorithm, the value sets a fixed point V, before the
execution of query the set of values (v, v1, v2 ….. vK), vK=v
+ k∆v. when new reading has arrival ri [vK, vK+1] ri
replace with vK detailed algorithm shown in below
Algorithm: fixed value based optimization
Input : Query.
Output : optimized temperature reading
Variable : r0, vk, CV (current value).
1) Read the r0 value.
2) Find k.
3) Read the k value from the sensor node (vk).
4) Assign the vk value to CV and report the CV to base
station.
5) For (i=1; i<loop; i++)
6) Sleep(interval)
7) Read the new reading ri value.
8) Compare the current value from previous value vk .
9) Report (CV, i-1).
In this method, sensor node will generate the serious of
unnecessary report and ping pong effect. An adaptive
average method is proposed to avoid those problems.
B. Adaptive Average Method
This algorithm is run time method, value has been read
during the execution time period. In that reading value is
more accurate. Suppose a set of readings (r0, r1 … ri), we
define rMAX = MAX (r0, r1 … ri), rMIN = MIN (r0, r1 … ri),
rAVG = AVG (r0, r1 … ri), and rMAX - rMIN < Δv. When at the
next time point a new reading ri +1 is available, if rMAX – Δv
< ri +1 AND < rMIN + Δv, then adjust rMAX, rMIN, and rAVG
with ri +1; otherwise, report rAVG. Detailed algorithm is
shown in below
Algorithm: Adaptive average value based optimization
Input : Query
Output : optimized temperature reading
Variable : r0, rMAX, rMIN, rAVG, counter
1) Read the r0 value.
2) Assign r0 value to rAVG, and report (rAVG, 0).
3) Assign counter value as 1.
4) For (i=1; i<loop; i++)
5) Sleep(interval)
6) Read the new reading ri value.
7) If(rMAX – Δv < ri AND < rMIN – Δv)
8) Calculate rMAX, rMIN value.
9) rAVG=( rAVG*counter+ ri)/++counter
10) Report (rAVG, i-1).
III. TIME BASED OPTIMIZATION ALGORITHM
In this time based query optimization algorithm,
optimization can be done based on the time Accuracy QOS
constraints. Consider this Query example2.
Fig. 3: Query example2
This query as same as Query example1 but only
different is Accuracy clause value replace by time as 1
second. Accuracy of temperature readings acceptable by
application is within 1 second above or below the real
sampling time. The application does not need the exact time
point. In that query raises to optimize multi query execution.
Wireless sensor network having multiple queries for a
couple of application simultaneously [11]. If some of the
attributes and predicates values are same in the multiple
query execution it consider as a one query, same attribute
reading can be shared by multiple queries, in this way to
optimize for both sensing and data communication
especially for result returning to sink, so energy can be
saved in that optimization algorithm. Detailed proposed
algorithm is given below
Algorithm: Time based optimization.
Input : Multiple queries.
Output : optimized temperature reading.
Variable : i, j, n, ti, tj, tij, tn, rn, tAi, tBj .
1) Assign i, j, loopB =0.
2) for(n=0; n<loopA+loopB;n++)
3) Receive (Q2) and assign i=n.
4) Suppose Q2 is not alive tn= tAi and increment the i
value
5) Suppose Q1 is not alive tn= tBj and increment the j
value
6) if(tAi AND tBj are overlapping) tn= tij and increment
the i, j, n value.
7) Else tn = MIN (tAi, tBj).
8) If ( tn= tAi ) increment i otherwise increment j.
9) Sleep until the n second.
10) Read the value of rn.
11) Report (rn).
IV. EXPERIMENTS
The performance of proposed algorithm were compared and
analyzed for queries with and without optimization, here
consider the energy cost by performing optimization as
EOP and without optimization as ENOP then energy saving
as ES.
ES=ENOP-EOP (1)
Without losing any generality, the size of all data in same
size denoted by K. if suppose K amount of data can be
communication between node u to v the energy cost e= (u,
v). That energy consumption includes both u and v
transmitter and receiver respectively.
E (K) = ETx (K) + ERx (K). (2)
In that energy model is based on [8, 9]. Assume linear
relationship for energy spent per bit at
1) Transmitter circuitry,
2) Receiver circuitry,
3) d2
path energy loss due to channel transmission.
An Improved Energy Efficiency Algorithm in Wireless Sensor Network using Query Optimization
(IJSRD/Vol. 3/Issue 10/2015/204)
All rights reserved by www.ijsrd.com 920
To transmit a K bit message a distance d using the radio
model, energy used by transmitter and power amplifier and
receiver circuitry, ET and ERx can be expressed as in
equation (3).
ETx (K, d) = K (eTc + eTa d2
) (3)
ERx (K) = KeRc. (4)
eTa, eTc, eRc are hardware dependent parameters therefore
can be changed as in equation (5).
E = K (eRc + eTc + eTa d2
). (5)
V. RESULT
In this section, the simulation results in ns2 shows Figure7.
When increasing the value accuracy constraint, power
consumption is decreased, when performing optimization. In
that non-optimization condition power consumption is
approximately constant. In that result an adaptive-average
algorithm is better performance than fixed value approach.
Fig. 4: Value accuracy (%) vs energy consumption (j)
Figure4. Shows the impact of time accuracy constraints to
power consumption. In the simulation, Enop and Eop-1 use
the same network deployment. For Eop-2, a new network
layout is used, in which node distance is 2/3 on average of
the previous one, meaning that the overall number of hops is
lessen.
Fig. 5: Time accuracy (%) vs Energy consumption (j)
As shown in the above figure.5, power
consumption decreases when employing a higher time
accuracy setting (i.e. loose the constraint). Also when
network coverage is small, less power is needed for
collecting the same amount of data
VI. CONCLUSION
The proposed work concentrates on Multi query processing.
The main objective is to reduce energy consumption during
query processing in order to prolong the network lifetime. In
the proposed work, based on the value/time accuracy
constraint, two algorithms are proposed such as value based
and time based optimization. Multiple queries having same
attribute & predicates value, consider these queries can be
transmitted to base station at once, so unnecessary
communication and retransmission can be avoided and
hence the energy consumption of the whole network may be
largely reduced. Compare the performance of simulation
experiment between with query optimization and without
query optimization in sensor node. In summary, proposed
work consume less energy than direct delivery method. In
both value-based and time-based optimization algorithm,
energy saving is at the order of accuracy constraints.
REFERENCES
[1] G. J. Pottie and W. J. Kaiser, “Embedding the Internet:
wireless integrated network sensors”, Communications
of the ACM, 43(5):51–51, May 2000.
[2] C. Siva ram Murthy and B.S. Manoj, “AdHoc Wireless
Networks: Architectures and protocols”, Prentice Hall
PTR, 2004.
[3] Madden, S.R., Franklin, M.J., Hellerstein, J.M., Hong,
W, TinyDB: An Acquisitional, “Query Processing
System for Sensor Networks”, ACM Transactions on
Database Systems 30(1), 122–173 (2005).
[4] O. Younis and S. Fahmy. HEED, “A hybrid, energy
efficient, distributed clustering approach for ad hoc
sensor networks”, IEEE Trans-actions On Mobile
Computing, 3(4):366{379, December 2004.
[5] S. Lindsey and C. S. Raghavendra. PEGASIS, “Power
efficient gathering in sensor information systems”, In
Proc. of IEEE Aerospace Conference, 2002.
[6] X. Tang and J. Xu, “Extending network lifetime for
precision- constrained data aggregation in wireless
sensor networks”, In INFO-COM, 2006.
[7] S. Xiang, H. B. Lim, K. L. Tan, and Y. Zhou, “Two-tier
multiple query optimization for sensor networks”, In
Proc. of ICDCS, 2007.
[8] Govindan, R., Hellerstein, J.M., Hong, W., Madden, S.,
Franklin, M., Shenker, S, ” The sensor network as a
database”, USC Technical Report No. 02-771
(September 2002).
[9] Zou, Y., Chakrabarty, K, “Energy-Aware Target
Localization in Wireless Sensor Networks”, Proc. 1st
IEEE International Conference on Pervasive Computing
and Communications (PerCom 2003), Dallas-Fort
Worth, Texas, USA, pp. 60–67 (March 2003).
[10]Jun-Zhao Sun, “An Energy efficient query processing
algorithm for wireless sensor network”, Dept of
computer science, 2008, volume 5061, Ubiquitous
Intelligence and Computing, Pages 373-385.
[11]Afshin Behzadan and Alagan Anpalagan,
“timization of Multiple Overlapping Queries for
Energy Efficient Sensor Communication”,
communication (QBSC), 2010 25th Biennial
Symposium on Communications Page(s):181 – 186,
Publication Year: 2010.

More Related Content

What's hot

Daavettila.Hannah.MEEM2901Portfolio.Fall2014
Daavettila.Hannah.MEEM2901Portfolio.Fall2014Daavettila.Hannah.MEEM2901Portfolio.Fall2014
Daavettila.Hannah.MEEM2901Portfolio.Fall2014
Hannah Daavettila
 
Theory of time-resolved optical conductivity: comparing two methods for its e...
Theory of time-resolved optical conductivity: comparing two methods for its e...Theory of time-resolved optical conductivity: comparing two methods for its e...
Theory of time-resolved optical conductivity: comparing two methods for its e...
JohnRevelle1
 
SPACE TIME ADAPTIVE PROCESSING FOR CLUTTER SUPPRESSION IN RADAR USING SUBSPAC...
SPACE TIME ADAPTIVE PROCESSING FOR CLUTTER SUPPRESSION IN RADAR USING SUBSPAC...SPACE TIME ADAPTIVE PROCESSING FOR CLUTTER SUPPRESSION IN RADAR USING SUBSPAC...
SPACE TIME ADAPTIVE PROCESSING FOR CLUTTER SUPPRESSION IN RADAR USING SUBSPAC...
International Journal of Technical Research & Application
 
A Review: Compensation of Mismatches in Time Interleaved Analog to Digital Co...
A Review: Compensation of Mismatches in Time Interleaved Analog to Digital Co...A Review: Compensation of Mismatches in Time Interleaved Analog to Digital Co...
A Review: Compensation of Mismatches in Time Interleaved Analog to Digital Co...
IJERA Editor
 
Signal modelling
Signal modellingSignal modelling
Signal modelling
Debangi_G
 
DNN Project Report (Prathmesh)
DNN Project Report (Prathmesh)DNN Project Report (Prathmesh)
DNN Project Report (Prathmesh)
Prathmesh Kumbhare
 
user_defined_functions_forinterpolation
user_defined_functions_forinterpolationuser_defined_functions_forinterpolation
user_defined_functions_forinterpolation
sushanth tiruvaipati
 
Master's Thesis Slides
Master's Thesis SlidesMaster's Thesis Slides
Master's Thesis Slides
Matthew Motoki
 

What's hot (19)

Anchor Positioning using Sensor Transmission Range Based Clustering for Mobil...
Anchor Positioning using Sensor Transmission Range Based Clustering for Mobil...Anchor Positioning using Sensor Transmission Range Based Clustering for Mobil...
Anchor Positioning using Sensor Transmission Range Based Clustering for Mobil...
 
Daavettila.Hannah.MEEM2901Portfolio.Fall2014
Daavettila.Hannah.MEEM2901Portfolio.Fall2014Daavettila.Hannah.MEEM2901Portfolio.Fall2014
Daavettila.Hannah.MEEM2901Portfolio.Fall2014
 
Theory of time-resolved optical conductivity: comparing two methods for its e...
Theory of time-resolved optical conductivity: comparing two methods for its e...Theory of time-resolved optical conductivity: comparing two methods for its e...
Theory of time-resolved optical conductivity: comparing two methods for its e...
 
Green scheduling
Green schedulingGreen scheduling
Green scheduling
 
Datapath
DatapathDatapath
Datapath
 
Reduction of Active Power Loss byUsing Adaptive Cat Swarm Optimization
Reduction of Active Power Loss byUsing Adaptive Cat Swarm OptimizationReduction of Active Power Loss byUsing Adaptive Cat Swarm Optimization
Reduction of Active Power Loss byUsing Adaptive Cat Swarm Optimization
 
SPACE TIME ADAPTIVE PROCESSING FOR CLUTTER SUPPRESSION IN RADAR USING SUBSPAC...
SPACE TIME ADAPTIVE PROCESSING FOR CLUTTER SUPPRESSION IN RADAR USING SUBSPAC...SPACE TIME ADAPTIVE PROCESSING FOR CLUTTER SUPPRESSION IN RADAR USING SUBSPAC...
SPACE TIME ADAPTIVE PROCESSING FOR CLUTTER SUPPRESSION IN RADAR USING SUBSPAC...
 
A Review: Compensation of Mismatches in Time Interleaved Analog to Digital Co...
A Review: Compensation of Mismatches in Time Interleaved Analog to Digital Co...A Review: Compensation of Mismatches in Time Interleaved Analog to Digital Co...
A Review: Compensation of Mismatches in Time Interleaved Analog to Digital Co...
 
Signal modelling
Signal modellingSignal modelling
Signal modelling
 
DNN Project Report (Prathmesh)
DNN Project Report (Prathmesh)DNN Project Report (Prathmesh)
DNN Project Report (Prathmesh)
 
Cw4301569573
Cw4301569573Cw4301569573
Cw4301569573
 
Dynamic indoor thermal comfort model identification based on neural computing...
Dynamic indoor thermal comfort model identification based on neural computing...Dynamic indoor thermal comfort model identification based on neural computing...
Dynamic indoor thermal comfort model identification based on neural computing...
 
user_defined_functions_forinterpolation
user_defined_functions_forinterpolationuser_defined_functions_forinterpolation
user_defined_functions_forinterpolation
 
A Study on Task Scheduling in Could Data Centers for Energy Efficacy
A Study on Task Scheduling in Could Data Centers for Energy Efficacy A Study on Task Scheduling in Could Data Centers for Energy Efficacy
A Study on Task Scheduling in Could Data Centers for Energy Efficacy
 
Universal Scalability Law (USL)
Universal Scalability Law (USL) Universal Scalability Law (USL)
Universal Scalability Law (USL)
 
Dce a novel delay correlation
Dce a novel delay correlationDce a novel delay correlation
Dce a novel delay correlation
 
Web-app realization of Shor’s quantum factoring algorithm and Grover’s quantu...
Web-app realization of Shor’s quantum factoring algorithm and Grover’s quantu...Web-app realization of Shor’s quantum factoring algorithm and Grover’s quantu...
Web-app realization of Shor’s quantum factoring algorithm and Grover’s quantu...
 
Master's Thesis Slides
Master's Thesis SlidesMaster's Thesis Slides
Master's Thesis Slides
 
Quantum computation a review
Quantum computation a reviewQuantum computation a review
Quantum computation a review
 

Viewers also liked

Data Stream Controller for Enterprise Cloud Application
Data Stream Controller for Enterprise Cloud ApplicationData Stream Controller for Enterprise Cloud Application
Data Stream Controller for Enterprise Cloud Application
IJSRD
 
Problems in Getting Ambulatory Blood Pressure Monitoring using Infrared PPG
Problems in Getting Ambulatory Blood Pressure Monitoring using Infrared PPGProblems in Getting Ambulatory Blood Pressure Monitoring using Infrared PPG
Problems in Getting Ambulatory Blood Pressure Monitoring using Infrared PPG
IJSRD
 

Viewers also liked (18)

Data Stream Controller for Enterprise Cloud Application
Data Stream Controller for Enterprise Cloud ApplicationData Stream Controller for Enterprise Cloud Application
Data Stream Controller for Enterprise Cloud Application
 
Detection of Genetic variation in tissue culture clones of date palm using IS...
Detection of Genetic variation in tissue culture clones of date palm using IS...Detection of Genetic variation in tissue culture clones of date palm using IS...
Detection of Genetic variation in tissue culture clones of date palm using IS...
 
Multiple Person Tracking with Shadow Removal Using Adaptive Gaussian Mixture ...
Multiple Person Tracking with Shadow Removal Using Adaptive Gaussian Mixture ...Multiple Person Tracking with Shadow Removal Using Adaptive Gaussian Mixture ...
Multiple Person Tracking with Shadow Removal Using Adaptive Gaussian Mixture ...
 
A survey on various technologies available for Smart lab based on Internet of...
A survey on various technologies available for Smart lab based on Internet of...A survey on various technologies available for Smart lab based on Internet of...
A survey on various technologies available for Smart lab based on Internet of...
 
A Survey Paper on an Integrated Approach for Privacy Preserving In High Dimen...
A Survey Paper on an Integrated Approach for Privacy Preserving In High Dimen...A Survey Paper on an Integrated Approach for Privacy Preserving In High Dimen...
A Survey Paper on an Integrated Approach for Privacy Preserving In High Dimen...
 
Mitigation Strategies to Greenhouse Gas Emission Control: A Database for Emis...
Mitigation Strategies to Greenhouse Gas Emission Control: A Database for Emis...Mitigation Strategies to Greenhouse Gas Emission Control: A Database for Emis...
Mitigation Strategies to Greenhouse Gas Emission Control: A Database for Emis...
 
Graphical Based Password for Android Phones using Keystroke Dynamics - A Survey
Graphical Based Password for Android Phones using Keystroke Dynamics - A SurveyGraphical Based Password for Android Phones using Keystroke Dynamics - A Survey
Graphical Based Password for Android Phones using Keystroke Dynamics - A Survey
 
A Literature Survey on Comparative Analysis of RZ and NRZ Line Encoding over ...
A Literature Survey on Comparative Analysis of RZ and NRZ Line Encoding over ...A Literature Survey on Comparative Analysis of RZ and NRZ Line Encoding over ...
A Literature Survey on Comparative Analysis of RZ and NRZ Line Encoding over ...
 
A Defect Prediction Model for Software Product based on ANFIS
A Defect Prediction Model for Software Product based on ANFISA Defect Prediction Model for Software Product based on ANFIS
A Defect Prediction Model for Software Product based on ANFIS
 
Diagnosing lungs cancer Using Neural Networks
Diagnosing lungs cancer Using Neural NetworksDiagnosing lungs cancer Using Neural Networks
Diagnosing lungs cancer Using Neural Networks
 
A Review on Parametric Optimization of Laser Engraving using Fiber Laser on S...
A Review on Parametric Optimization of Laser Engraving using Fiber Laser on S...A Review on Parametric Optimization of Laser Engraving using Fiber Laser on S...
A Review on Parametric Optimization of Laser Engraving using Fiber Laser on S...
 
Solving Fuzzy Matrix Games Defuzzificated by Trapezoidal Parabolic Fuzzy Numbers
Solving Fuzzy Matrix Games Defuzzificated by Trapezoidal Parabolic Fuzzy NumbersSolving Fuzzy Matrix Games Defuzzificated by Trapezoidal Parabolic Fuzzy Numbers
Solving Fuzzy Matrix Games Defuzzificated by Trapezoidal Parabolic Fuzzy Numbers
 
A Non-isolated Hybrid Boost Three Level DC-DC Converter with High Step-up Con...
A Non-isolated Hybrid Boost Three Level DC-DC Converter with High Step-up Con...A Non-isolated Hybrid Boost Three Level DC-DC Converter with High Step-up Con...
A Non-isolated Hybrid Boost Three Level DC-DC Converter with High Step-up Con...
 
Problems in Getting Ambulatory Blood Pressure Monitoring using Infrared PPG
Problems in Getting Ambulatory Blood Pressure Monitoring using Infrared PPGProblems in Getting Ambulatory Blood Pressure Monitoring using Infrared PPG
Problems in Getting Ambulatory Blood Pressure Monitoring using Infrared PPG
 
Design Development and Simulation of Mobile Substation for Distribution Network
Design Development and Simulation of Mobile Substation for Distribution NetworkDesign Development and Simulation of Mobile Substation for Distribution Network
Design Development and Simulation of Mobile Substation for Distribution Network
 
Secret-Fragment-Visible Mosaic Image-Creation and Recovery via Colour Transfo...
Secret-Fragment-Visible Mosaic Image-Creation and Recovery via Colour Transfo...Secret-Fragment-Visible Mosaic Image-Creation and Recovery via Colour Transfo...
Secret-Fragment-Visible Mosaic Image-Creation and Recovery via Colour Transfo...
 
Spur Gear Design by Using MATLAB Code
Spur Gear Design by Using MATLAB CodeSpur Gear Design by Using MATLAB Code
Spur Gear Design by Using MATLAB Code
 
Review Paper on Computer Aided Design & Analysis of Rotor Shaft of a Rotavator
Review Paper on Computer Aided Design & Analysis of Rotor Shaft of a RotavatorReview Paper on Computer Aided Design & Analysis of Rotor Shaft of a Rotavator
Review Paper on Computer Aided Design & Analysis of Rotor Shaft of a Rotavator
 

Similar to An Improved Energy Efficiency Algorithm in Wireless Sensor Network Using Query Optimization

cosmic-ray-detection(2)
cosmic-ray-detection(2)cosmic-ray-detection(2)
cosmic-ray-detection(2)
Thomas Adams
 
LTE KPI Optimization - A to Z Abiola.pptx
LTE KPI Optimization - A to Z Abiola.pptxLTE KPI Optimization - A to Z Abiola.pptx
LTE KPI Optimization - A to Z Abiola.pptx
ssuser574918
 

Similar to An Improved Energy Efficiency Algorithm in Wireless Sensor Network Using Query Optimization (20)

Query optimization for_sensor_networks
Query optimization for_sensor_networksQuery optimization for_sensor_networks
Query optimization for_sensor_networks
 
Compressive Data Gathering using NACS in Wireless Sensor Network
Compressive Data Gathering using NACS in Wireless Sensor NetworkCompressive Data Gathering using NACS in Wireless Sensor Network
Compressive Data Gathering using NACS in Wireless Sensor Network
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
THRESHOLD SENSITIVE HETEROGENOUS ROUTING PROTOCOL FOR BETTER ENERGY UTILIZATI...
THRESHOLD SENSITIVE HETEROGENOUS ROUTING PROTOCOL FOR BETTER ENERGY UTILIZATI...THRESHOLD SENSITIVE HETEROGENOUS ROUTING PROTOCOL FOR BETTER ENERGY UTILIZATI...
THRESHOLD SENSITIVE HETEROGENOUS ROUTING PROTOCOL FOR BETTER ENERGY UTILIZATI...
 
THRESHOLD SENSITIVE HETEROGENOUS ROUTING PROTOCOL FOR BETTER ENERGY UTILIZATI...
THRESHOLD SENSITIVE HETEROGENOUS ROUTING PROTOCOL FOR BETTER ENERGY UTILIZATI...THRESHOLD SENSITIVE HETEROGENOUS ROUTING PROTOCOL FOR BETTER ENERGY UTILIZATI...
THRESHOLD SENSITIVE HETEROGENOUS ROUTING PROTOCOL FOR BETTER ENERGY UTILIZATI...
 
Efficient Broadcast Authentication with Highest Life Span in Wireless Sensor ...
Efficient Broadcast Authentication with Highest Life Span in Wireless Sensor ...Efficient Broadcast Authentication with Highest Life Span in Wireless Sensor ...
Efficient Broadcast Authentication with Highest Life Span in Wireless Sensor ...
 
Efficient Broadcast Authentication with Highest Life Span in Wireless Sensor ...
Efficient Broadcast Authentication with Highest Life Span in Wireless Sensor ...Efficient Broadcast Authentication with Highest Life Span in Wireless Sensor ...
Efficient Broadcast Authentication with Highest Life Span in Wireless Sensor ...
 
cosmic-ray-detection(2)
cosmic-ray-detection(2)cosmic-ray-detection(2)
cosmic-ray-detection(2)
 
Hr3114661470
Hr3114661470Hr3114661470
Hr3114661470
 
FPGA Design & Simulation Modeling of Baseband Data Transmission System
FPGA Design & Simulation Modeling of Baseband Data Transmission SystemFPGA Design & Simulation Modeling of Baseband Data Transmission System
FPGA Design & Simulation Modeling of Baseband Data Transmission System
 
Signal conditioning & condition monitoring using LabView by Prof. shakeb ahm...
Signal conditioning & condition monitoring  using LabView by Prof. shakeb ahm...Signal conditioning & condition monitoring  using LabView by Prof. shakeb ahm...
Signal conditioning & condition monitoring using LabView by Prof. shakeb ahm...
 
Converting Capacitance Into Controller Counts
Converting Capacitance Into Controller CountsConverting Capacitance Into Controller Counts
Converting Capacitance Into Controller Counts
 
LTE KPI Optimization - A to Z Abiola.pptx
LTE KPI Optimization - A to Z Abiola.pptxLTE KPI Optimization - A to Z Abiola.pptx
LTE KPI Optimization - A to Z Abiola.pptx
 
IRJET- Optimization with PSO and FPO based Control for Energy Efficient of Se...
IRJET- Optimization with PSO and FPO based Control for Energy Efficient of Se...IRJET- Optimization with PSO and FPO based Control for Energy Efficient of Se...
IRJET- Optimization with PSO and FPO based Control for Energy Efficient of Se...
 
Energy-Efficient Time Synchronization in Wireless Sensor Networks
Energy-Efficient Time Synchronization in Wireless Sensor NetworksEnergy-Efficient Time Synchronization in Wireless Sensor Networks
Energy-Efficient Time Synchronization in Wireless Sensor Networks
 
IRJET - Energy Efficient Enhanced K-Means Cluster-Based Routing Protocol for WSN
IRJET - Energy Efficient Enhanced K-Means Cluster-Based Routing Protocol for WSNIRJET - Energy Efficient Enhanced K-Means Cluster-Based Routing Protocol for WSN
IRJET - Energy Efficient Enhanced K-Means Cluster-Based Routing Protocol for WSN
 
Bt0064 logic design2
Bt0064 logic design2Bt0064 logic design2
Bt0064 logic design2
 
Iisrt seedha devi (networks)
Iisrt seedha devi (networks)Iisrt seedha devi (networks)
Iisrt seedha devi (networks)
 
Accurate indoor positioning system based on modify nearest point technique
Accurate indoor positioning system based on modify nearest point techniqueAccurate indoor positioning system based on modify nearest point technique
Accurate indoor positioning system based on modify nearest point technique
 
An Efficient top- k Query Processing in Distributed Wireless Sensor Networks
An Efficient top- k Query Processing in Distributed Wireless  Sensor NetworksAn Efficient top- k Query Processing in Distributed Wireless  Sensor Networks
An Efficient top- k Query Processing in Distributed Wireless Sensor Networks
 

More from IJSRD

More from IJSRD (20)

#IJSRD #Research Paper Publication
#IJSRD #Research Paper Publication#IJSRD #Research Paper Publication
#IJSRD #Research Paper Publication
 
Maintaining Data Confidentiality in Association Rule Mining in Distributed En...
Maintaining Data Confidentiality in Association Rule Mining in Distributed En...Maintaining Data Confidentiality in Association Rule Mining in Distributed En...
Maintaining Data Confidentiality in Association Rule Mining in Distributed En...
 
Performance and Emission characteristics of a Single Cylinder Four Stroke Die...
Performance and Emission characteristics of a Single Cylinder Four Stroke Die...Performance and Emission characteristics of a Single Cylinder Four Stroke Die...
Performance and Emission characteristics of a Single Cylinder Four Stroke Die...
 
Preclusion of High and Low Pressure In Boiler by Using LABVIEW
Preclusion of High and Low Pressure In Boiler by Using LABVIEWPreclusion of High and Low Pressure In Boiler by Using LABVIEW
Preclusion of High and Low Pressure In Boiler by Using LABVIEW
 
Prevention and Detection of Man in the Middle Attack on AODV Protocol
Prevention and Detection of Man in the Middle Attack on AODV ProtocolPrevention and Detection of Man in the Middle Attack on AODV Protocol
Prevention and Detection of Man in the Middle Attack on AODV Protocol
 
Comparative Analysis of PAPR Reduction Techniques in OFDM Using Precoding Tec...
Comparative Analysis of PAPR Reduction Techniques in OFDM Using Precoding Tec...Comparative Analysis of PAPR Reduction Techniques in OFDM Using Precoding Tec...
Comparative Analysis of PAPR Reduction Techniques in OFDM Using Precoding Tec...
 
Evaluation the Effect of Machining Parameters on MRR of Mild Steel
Evaluation the Effect of Machining Parameters on MRR of Mild SteelEvaluation the Effect of Machining Parameters on MRR of Mild Steel
Evaluation the Effect of Machining Parameters on MRR of Mild Steel
 
Filter unwanted messages from walls and blocking nonlegitimate user in osn
Filter unwanted messages from walls and blocking nonlegitimate user in osnFilter unwanted messages from walls and blocking nonlegitimate user in osn
Filter unwanted messages from walls and blocking nonlegitimate user in osn
 
Keystroke Dynamics Authentication with Project Management System
Keystroke Dynamics Authentication with Project Management SystemKeystroke Dynamics Authentication with Project Management System
Keystroke Dynamics Authentication with Project Management System
 
A Survey on Sentiment Analysis and Opinion Mining
A Survey on Sentiment Analysis and Opinion MiningA Survey on Sentiment Analysis and Opinion Mining
A Survey on Sentiment Analysis and Opinion Mining
 
Experimental Investigation of Granulated Blast Furnace Slag ond Quarry Dust a...
Experimental Investigation of Granulated Blast Furnace Slag ond Quarry Dust a...Experimental Investigation of Granulated Blast Furnace Slag ond Quarry Dust a...
Experimental Investigation of Granulated Blast Furnace Slag ond Quarry Dust a...
 
Product Quality Analysis based on online Reviews
Product Quality Analysis based on online ReviewsProduct Quality Analysis based on online Reviews
Product Quality Analysis based on online Reviews
 
Solving Fuzzy Matrix Games Defuzzificated by Trapezoidal Parabolic Fuzzy Numbers
Solving Fuzzy Matrix Games Defuzzificated by Trapezoidal Parabolic Fuzzy NumbersSolving Fuzzy Matrix Games Defuzzificated by Trapezoidal Parabolic Fuzzy Numbers
Solving Fuzzy Matrix Games Defuzzificated by Trapezoidal Parabolic Fuzzy Numbers
 
Study of Clustering of Data Base in Education Sector Using Data Mining
Study of Clustering of Data Base in Education Sector Using Data MiningStudy of Clustering of Data Base in Education Sector Using Data Mining
Study of Clustering of Data Base in Education Sector Using Data Mining
 
Fault Tolerance in Big Data Processing Using Heartbeat Messages and Data Repl...
Fault Tolerance in Big Data Processing Using Heartbeat Messages and Data Repl...Fault Tolerance in Big Data Processing Using Heartbeat Messages and Data Repl...
Fault Tolerance in Big Data Processing Using Heartbeat Messages and Data Repl...
 
Investigation of Effect of Process Parameters on Maximum Temperature during F...
Investigation of Effect of Process Parameters on Maximum Temperature during F...Investigation of Effect of Process Parameters on Maximum Temperature during F...
Investigation of Effect of Process Parameters on Maximum Temperature during F...
 
A Survey on Data Mining Techniques for Crime Hotspots Prediction
A Survey on Data Mining Techniques for Crime Hotspots PredictionA Survey on Data Mining Techniques for Crime Hotspots Prediction
A Survey on Data Mining Techniques for Crime Hotspots Prediction
 
Studies on Physico - Mechanical Properties of Chloroprene Rubber Vulcanizate ...
Studies on Physico - Mechanical Properties of Chloroprene Rubber Vulcanizate ...Studies on Physico - Mechanical Properties of Chloroprene Rubber Vulcanizate ...
Studies on Physico - Mechanical Properties of Chloroprene Rubber Vulcanizate ...
 
Secure Mining of Association Rules in Horizontally Distributed Databases
Secure Mining of Association Rules in Horizontally Distributed DatabasesSecure Mining of Association Rules in Horizontally Distributed Databases
Secure Mining of Association Rules in Horizontally Distributed Databases
 
A Review Paper on Stereo Vision Based Depth Estimation
A Review Paper on Stereo Vision Based Depth EstimationA Review Paper on Stereo Vision Based Depth Estimation
A Review Paper on Stereo Vision Based Depth Estimation
 

Recently uploaded

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
fonyou31
 

Recently uploaded (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 

An Improved Energy Efficiency Algorithm in Wireless Sensor Network Using Query Optimization

  • 1. IJSRD - International Journal for Scientific Research & Development| Vol. 3, Issue 10, 2015 | ISSN (online): 2321-0613 All rights reserved by www.ijsrd.com 918 An Improved Energy Efficiency Algorithm in Wireless Sensor Network using Query Optimization M.Sivakumar1 Prof. K. Senthil Prasad2 1,2 Assistant Professor 1,2 Department of Computer Science and Engineering 1,2 SVS College of Engineering, Coimbatore, India Abstract— Wireless Sensor Networks (WSN) is an essential guide foe anyone interested in wireless communications for sensor networks, home networking, environment monitoring, target tracking, and surveillance. In wireless sensor network sensor nodes have very limited supply of energy, and also should be available in function for extremely long time (e.g. a couple of years) without being recharged. So consider the energy resource of sensor node and the life time of the sensors, to optimize the query plan, based on user specified accuracy for wireless sensor network. This proposed method aims at optimization of periodical query, with careful consideration of accuracy, along with energy consumption in data communication. User may specify a value/time accuracy constraint, according to which an optimized query plan can be created to minimize the energy consumption. The main objective is to propose an energy efficient algorithm to reduce data transmission and to increase the life time of wireless sensor network. Key words: Wireless Sensor Network; query processing; query optimization; energy efficiency; Value/Time I. INTRODUCTION Wireless sensor network consists of spatially distributed autonomous sensors to monitor physical or environmental conditions, such as temperature, sound, vibration, pressure, motion or pollutants and to cooperatively pass their data through the network to a main location [1]. The sensor field constitutes sensor nodes. Typically, a sensor node can perform tasks like computation of data, storage of data, communication of data and sensing/actuation of data [2]. The communication device of sensor node sends and receives information over a wireless channel, and the power supply is necessary to provide energy. In wireless sensor networks, power consumption efficiency is one of the most important design considerations. Therefore, these intertwined components have to operate and balance the trade-offs between as small energy consumption as possible and also need to fulfil their tasks. One of the main characteristics of wireless sensor network as power consumption constraints for the nodes using batteries or energy harvesting. The base station post- processes all the data received from individual sensors and then produces the answer to the user who issues the query [3]. Sensor data can be viewed as a table with a single column per sensor type, and new tuples are appended to the tables when they arrive at the base station. Power consumption is the major consideration of designing sensor network algorithms. Hence, it is important to understand the energy consumption of various operations of sensors, to optimize the design of query processing strategies. Wireless sensor networks should try to minimize the number of communication and sensing operations, so that the sensor node energy consumption has been reduced. The rest of this paper is arranged as follows. Section 2 introduces the value based query optimization algorithm. Section 3 introduces the time based query optimization algorithm. Section 4 presents experiment. Simulations and performance analysis will be presented in section 5. Finally, conclusion is drawn in Section 6. II. VALUE BASED OPTIMIZATION ALGORITHM Value Based Optimization Algorithm is used for query optimization, which can be performed based on the value accuracy constraint. Fig. 1: Query example1 In this above Query example1 collect temperature Value from Area_C region, and also the special clause for Accuracy clause value=1◦c. Once the timer will alive its start from 00:00:00 s after 1s its collect temperature value from sensor node. Continuously the loop will be executed 17 times interval between 1s. Once the temperature value can be generated by the sensor node, it transmits that value to the base station, and the accuracy of the temperature reading is within one degree above or below the real data [10]. In such a way that the value accuracy constraint to optimize the query execution instead of every reading directly delivery to sink from sensor node. (i.e.) when new temperature reading was sensed by sensor node, it compare to the previous reading, in that new reading is above or below the accuracy value, we choose to report only updates. Data communication can be minimized, so energy of sensor node was saved. In this method particularly used for where the attribute value changes sharply and smoothly, and also it is never worse than the direct delivery. Fig. 2: Value-based optimization
  • 2. An Improved Energy Efficiency Algorithm in Wireless Sensor Network using Query Optimization (IJSRD/Vol. 3/Issue 10/2015/204) All rights reserved by www.ijsrd.com 919 Figure2. Illustrate the basic idea of the above Query example 1 in that query simply specifying the Accuracy constraint value =1◦c, instead of direct delivery of every 17 readings at each interval. In my proposed method value based optimization algorithm needs to send the temperature reading has only 9 times, so largely reduced the data transmission. The query was specified value accuracy constraint ∆v, series of the attribute reading r0, r1, r2 ….. , timings t0, t1, t2 …... series of values v0, v1, v2 ….. , to be delivered to sink or base station as the representation of real reading serious, main problem is how to choose value vi (i=0, 1, 2…) as representation of set of readings. In this value based optimization algorithm create two methods; one is fixed value and another one is adaptive average method A. Fixed Value Method In this algorithm, the value sets a fixed point V, before the execution of query the set of values (v, v1, v2 ….. vK), vK=v + k∆v. when new reading has arrival ri [vK, vK+1] ri replace with vK detailed algorithm shown in below Algorithm: fixed value based optimization Input : Query. Output : optimized temperature reading Variable : r0, vk, CV (current value). 1) Read the r0 value. 2) Find k. 3) Read the k value from the sensor node (vk). 4) Assign the vk value to CV and report the CV to base station. 5) For (i=1; i<loop; i++) 6) Sleep(interval) 7) Read the new reading ri value. 8) Compare the current value from previous value vk . 9) Report (CV, i-1). In this method, sensor node will generate the serious of unnecessary report and ping pong effect. An adaptive average method is proposed to avoid those problems. B. Adaptive Average Method This algorithm is run time method, value has been read during the execution time period. In that reading value is more accurate. Suppose a set of readings (r0, r1 … ri), we define rMAX = MAX (r0, r1 … ri), rMIN = MIN (r0, r1 … ri), rAVG = AVG (r0, r1 … ri), and rMAX - rMIN < Δv. When at the next time point a new reading ri +1 is available, if rMAX – Δv < ri +1 AND < rMIN + Δv, then adjust rMAX, rMIN, and rAVG with ri +1; otherwise, report rAVG. Detailed algorithm is shown in below Algorithm: Adaptive average value based optimization Input : Query Output : optimized temperature reading Variable : r0, rMAX, rMIN, rAVG, counter 1) Read the r0 value. 2) Assign r0 value to rAVG, and report (rAVG, 0). 3) Assign counter value as 1. 4) For (i=1; i<loop; i++) 5) Sleep(interval) 6) Read the new reading ri value. 7) If(rMAX – Δv < ri AND < rMIN – Δv) 8) Calculate rMAX, rMIN value. 9) rAVG=( rAVG*counter+ ri)/++counter 10) Report (rAVG, i-1). III. TIME BASED OPTIMIZATION ALGORITHM In this time based query optimization algorithm, optimization can be done based on the time Accuracy QOS constraints. Consider this Query example2. Fig. 3: Query example2 This query as same as Query example1 but only different is Accuracy clause value replace by time as 1 second. Accuracy of temperature readings acceptable by application is within 1 second above or below the real sampling time. The application does not need the exact time point. In that query raises to optimize multi query execution. Wireless sensor network having multiple queries for a couple of application simultaneously [11]. If some of the attributes and predicates values are same in the multiple query execution it consider as a one query, same attribute reading can be shared by multiple queries, in this way to optimize for both sensing and data communication especially for result returning to sink, so energy can be saved in that optimization algorithm. Detailed proposed algorithm is given below Algorithm: Time based optimization. Input : Multiple queries. Output : optimized temperature reading. Variable : i, j, n, ti, tj, tij, tn, rn, tAi, tBj . 1) Assign i, j, loopB =0. 2) for(n=0; n<loopA+loopB;n++) 3) Receive (Q2) and assign i=n. 4) Suppose Q2 is not alive tn= tAi and increment the i value 5) Suppose Q1 is not alive tn= tBj and increment the j value 6) if(tAi AND tBj are overlapping) tn= tij and increment the i, j, n value. 7) Else tn = MIN (tAi, tBj). 8) If ( tn= tAi ) increment i otherwise increment j. 9) Sleep until the n second. 10) Read the value of rn. 11) Report (rn). IV. EXPERIMENTS The performance of proposed algorithm were compared and analyzed for queries with and without optimization, here consider the energy cost by performing optimization as EOP and without optimization as ENOP then energy saving as ES. ES=ENOP-EOP (1) Without losing any generality, the size of all data in same size denoted by K. if suppose K amount of data can be communication between node u to v the energy cost e= (u, v). That energy consumption includes both u and v transmitter and receiver respectively. E (K) = ETx (K) + ERx (K). (2) In that energy model is based on [8, 9]. Assume linear relationship for energy spent per bit at 1) Transmitter circuitry, 2) Receiver circuitry, 3) d2 path energy loss due to channel transmission.
  • 3. An Improved Energy Efficiency Algorithm in Wireless Sensor Network using Query Optimization (IJSRD/Vol. 3/Issue 10/2015/204) All rights reserved by www.ijsrd.com 920 To transmit a K bit message a distance d using the radio model, energy used by transmitter and power amplifier and receiver circuitry, ET and ERx can be expressed as in equation (3). ETx (K, d) = K (eTc + eTa d2 ) (3) ERx (K) = KeRc. (4) eTa, eTc, eRc are hardware dependent parameters therefore can be changed as in equation (5). E = K (eRc + eTc + eTa d2 ). (5) V. RESULT In this section, the simulation results in ns2 shows Figure7. When increasing the value accuracy constraint, power consumption is decreased, when performing optimization. In that non-optimization condition power consumption is approximately constant. In that result an adaptive-average algorithm is better performance than fixed value approach. Fig. 4: Value accuracy (%) vs energy consumption (j) Figure4. Shows the impact of time accuracy constraints to power consumption. In the simulation, Enop and Eop-1 use the same network deployment. For Eop-2, a new network layout is used, in which node distance is 2/3 on average of the previous one, meaning that the overall number of hops is lessen. Fig. 5: Time accuracy (%) vs Energy consumption (j) As shown in the above figure.5, power consumption decreases when employing a higher time accuracy setting (i.e. loose the constraint). Also when network coverage is small, less power is needed for collecting the same amount of data VI. CONCLUSION The proposed work concentrates on Multi query processing. The main objective is to reduce energy consumption during query processing in order to prolong the network lifetime. In the proposed work, based on the value/time accuracy constraint, two algorithms are proposed such as value based and time based optimization. Multiple queries having same attribute & predicates value, consider these queries can be transmitted to base station at once, so unnecessary communication and retransmission can be avoided and hence the energy consumption of the whole network may be largely reduced. Compare the performance of simulation experiment between with query optimization and without query optimization in sensor node. In summary, proposed work consume less energy than direct delivery method. In both value-based and time-based optimization algorithm, energy saving is at the order of accuracy constraints. REFERENCES [1] G. J. Pottie and W. J. Kaiser, “Embedding the Internet: wireless integrated network sensors”, Communications of the ACM, 43(5):51–51, May 2000. [2] C. Siva ram Murthy and B.S. Manoj, “AdHoc Wireless Networks: Architectures and protocols”, Prentice Hall PTR, 2004. [3] Madden, S.R., Franklin, M.J., Hellerstein, J.M., Hong, W, TinyDB: An Acquisitional, “Query Processing System for Sensor Networks”, ACM Transactions on Database Systems 30(1), 122–173 (2005). [4] O. Younis and S. Fahmy. HEED, “A hybrid, energy efficient, distributed clustering approach for ad hoc sensor networks”, IEEE Trans-actions On Mobile Computing, 3(4):366{379, December 2004. [5] S. Lindsey and C. S. Raghavendra. PEGASIS, “Power efficient gathering in sensor information systems”, In Proc. of IEEE Aerospace Conference, 2002. [6] X. Tang and J. Xu, “Extending network lifetime for precision- constrained data aggregation in wireless sensor networks”, In INFO-COM, 2006. [7] S. Xiang, H. B. Lim, K. L. Tan, and Y. Zhou, “Two-tier multiple query optimization for sensor networks”, In Proc. of ICDCS, 2007. [8] Govindan, R., Hellerstein, J.M., Hong, W., Madden, S., Franklin, M., Shenker, S, ” The sensor network as a database”, USC Technical Report No. 02-771 (September 2002). [9] Zou, Y., Chakrabarty, K, “Energy-Aware Target Localization in Wireless Sensor Networks”, Proc. 1st IEEE International Conference on Pervasive Computing and Communications (PerCom 2003), Dallas-Fort Worth, Texas, USA, pp. 60–67 (March 2003). [10]Jun-Zhao Sun, “An Energy efficient query processing algorithm for wireless sensor network”, Dept of computer science, 2008, volume 5061, Ubiquitous Intelligence and Computing, Pages 373-385. [11]Afshin Behzadan and Alagan Anpalagan, “timization of Multiple Overlapping Queries for Energy Efficient Sensor Communication”, communication (QBSC), 2010 25th Biennial Symposium on Communications Page(s):181 – 186, Publication Year: 2010.