41
Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Embed Size (px)

Citation preview

Page 1: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Querying in Wireless Sensor Networks

By,Anil MoolaVaishnav KidambiPratapa Sanaga Reddy

Page 2: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Querying Sensor Networks

Why querying? To retrieve the information To save energy in WSN

Design goals for querying methods Scalability Efficiency Reliability Fault tolerance

Page 3: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

CSN (chord for Sensor Networks)

Based on DHT

Why not DHT

Bounded Look up time

Hierarchical Clustering approach

CSN over comes implosion and overlap

Page 4: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

CSN (chord for Sensor Networks)

Hierarchical clustering approach

Initial set up: Ring Problem

2 NP Complete problems!!

Chain Method

Set Average Method

Page 5: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

CSN (chord for Sensor Networks)

Chain Method

Chain Method for level 0(Base Station β , Set of all Sensorsπ0, Maximum no.of Sensors per Cluster λ0)1. cluster head ω = min(β )2. if (π0 == δ0) exit, where initially δ0 = /03. sensor αi = ω4. put αi in sets τ and δ0, where initially |τ | = 05. while(|τ| ≤λ0)6. αi.successor = min(αi)7. αi = αi.successor8. put αi in sets τ and δ09. αi.successor = ω10. ω = min(αi)11. goto 2

Page 6: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

CSN (chord for Sensor Networks)

Set Average MethodSet-Average Method for level 0 (Base Station β , Set of allSensors π0, Maximum no.of Sensors per Cluster λ0)1. cluster head ω = min(β )2. if (π0 == δ0) exit, where initially δ0 = /03. list ν1 = min(ω,λ0), and let m =λ04. for k = 2,3, . . . ,m:5. νk = min(kth element of ν1,λ0)6. let ν be a set of lists7. ν = {ν1,ν2, . . . ,νm} 8. now, 1 ≤ occurrence of a sensor αi in ν ≤λ0)9. let set ε = / 0, and variable x =λ010. while(x ≥ 1 AND |ε| ≤λ0),11. for all sensors in ν :

Page 7: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

CSN (chord for Sensor Networks)

12. if (occurrence of sensor αi in ν = x)13. insert sensor αi in set ε14. decrement x15. redefine min(X) to only return a sensor belongs to ε16. do step 3 to step 10 of the chain method17. goto 2

Page 8: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

CSN (chord for Sensor Networks)

Incremental set up/ parallel set up Energy efficient mode vs Robust Mode Naming sensor Nodes and data

Incremental / parallel Naming Hashing Nodes and keys: Look up Operation

Page 9: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Multi-Dimensional Range Queries

List all events that have temperature between 10C and 20C with humidity between 70% and 80%

It help user efficiently drill down their search for event of interest

It enables application software to correlate events

Page 10: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Traditional Indexing

Data is stored at a central point and uses indices which are computed when during insertion.

Not feasible for sensor networks due to energy and bandwidth constraint.

Page 11: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

DIM (Distributed Index for Multi dimensional data)

Foundations of DIMA locality preserving geographic hash -

Consistently maps events to the some location with in the sensor network. Events whose attributes are closer are placed beside each other.

User underlying geographic routing scheme such as GPSR to route events and queries to the corresponding node.

Page 12: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

In short..

Each node in the network self organizes to own some attribute space for itself called zone, so events falling in that space are routed and stored in that node.

Page 13: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Building zones

Assumption 1 : all nodes knowthe approximate geographic boundaries of the network.

Sensor Node

WSN boundary

Page 14: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Building zones cont…

If i is odd then parallel to Y-Axis else parallel to X-Axis

Zone of node

Level 2

Level 3

Level 4

Code : 00

Code : 010

Code : 011

Code : 100

Code : 101

Code : 110

Code : 1110

Code : 1111

Assumption 2: Each node knows its geographic location

Page 15: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

When a new event is generated..

Hashing an event to a zone : Use an algorithm which maps the event to a code.

Routing an event to its owner : Uses GPSR to send the event to its prospective owner.

Page 16: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Routing Queries

Node

Page 17: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Drawback of DIM

ScalabilityEach node has to aware of it boundaryEach node has to aware of its

geographic location

Page 18: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Bloom filters in Hierarchical Clustering approach

Hierarchical clustering for data aggregation and reporting.

ClusterHead – Summarize and forwards up data to application and guides queries down the hierarchy for appropriate data

Bloom filter are integrated with hierarchical clusters.

Page 19: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Bloom filters

Traditionally used it database and internet application.

Conventional hash coding VS Bloom filters

Space efficient

Page 20: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Construction of bloom filter

Suppose we have n elements in set S and m bits of memory

For each of n elements generate k different indices using k hash functions

…………………

0 1 2 3 M-2 M-1

Page 21: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Cluster Formation

Page 22: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Cluster formation cont…

Page 23: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Cluster formation cont..

Top level sensor send beacon so some cluster heads will rebind to the cluster head on the shortest path to top.

Remaining free sensors will go into hibernation

Page 24: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Data Discovery

Data retrieval by explicitly naming the node. Clusterhead maintains a set of bloom filters

One represents all sensors Another represents the data that maybe found.

To find the region of filters which has Temperature from 40 to 50 Moisture level from 20 to 30 etc…

Page 25: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Mobility!!!

What if the inquirer or the target are mobile?

Two algorithms – Two Tier Data Dissemination. Energy Efficient Data Dissemination.

Page 26: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Two Tier Data Dissemination(TTDD)

Source based grid structure.Grid creation.(grid points, dissemination

nodes…)Two Tier –

Source -> Dissemination NodeDissemination Node -> Dissemination Node

Grid Maintenance – Grid lifetime.

Page 27: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

TTDD Contd…

Page 28: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

TTDD Contd…

Aggregation and Routing.Query forwardingData forwarding

Page 29: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

TTDD Contd…

Page 30: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

TTDD Contd…

Mobile Sink??? – Trajectory Data Forwarding.

Primary Agent, Immediate Agent

Page 31: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

TTDD Contd…

Page 32: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Energy Efficient Data Dissemination(EEDD)

2 Disadvantages of TTDDSource based grid needs to be changed

everytime the target moves.No emphasis on Energy Conservation!

Page 33: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

EEDD Contd…

Each sensor is aware of it’s location after deployment(virtual origin).

Nodes are stationary while targets and inquirers can move.

Page 34: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

EEDD Contd…

Working Node Selection Working mode, detecting mode. Egridhead, Nnode,Tsleep.

Grid Head Election Grid ID(a,b), Rtrans. A sensor node can calculate its grid ID (a, b) from

its location (x, y) as: a =[ x−x0/grid size ] and b = [ y−y0/grid size ],

where (x0, y0) is the location of the virtual origin. And grid size is set to less than 1/2√2 R∗ trans. Energy(S).

Page 35: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

EEDD Contd…

Page 36: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

EEDD Contd…

Grid MaintenanceBroadcast a request to reelect.Node with Max(energy(S))>Egridhead wins. If there is no node with energy(S)???

Page 37: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

EEDD Contd…

Data Dissemination Target Location Aware

diagonally route to the target grid head and broadcast in the grid for the source node.

Source node sends the data packet to grid head and it’ll choose another path to the sink’s grid head, thus reducing collisions in two directions.

Data – Acknowledgement method. Resend after a delay. Forwarding enty = true, forward the packet, else broadcast

in the grid to reach the sink node. 2)Target Area Aware

route to the starting of the area and broadcast in the area to all nodes.

3)Broadcast over the entire network.

Page 38: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

EEDD Contd…

Page 39: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

EEDD Contd…

Inquirer Mobility issueThe inquirer will register with the new

grid head the details of the query made and the original grid ID.

Forwarding loop problem.

Page 40: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

EEDD Contd…

Target Mobility issue Normal/SMART. MaxSmartness for each node controlled by the

inquirer. A Normal sensor node will generate data

packets if detected has been inquired. A Smart sensor node will search for the

relevant query with the effort corresponding to it’s intelligence level if it is not inquired for the event.

Page 41: Querying in Wireless Sensor Networks By, Anil Moola Vaishnav Kidambi Pratapa Sanaga Reddy

Questions please…

Thank you