sensor network services for mobile userslu/ds08/slides/mobiquery.pdf · success ratio dtm ts = 6s...

10
1 1 Sensor Network Services for Mobile Users Chenyang Lu Department of Computer Science and Engineering 2 Fire Monitoring Fireman in wild fire report temperature within 100m of the moving user every 2s; temperature data must be no more than 1s old 3 Navigation through Fire 4 Cargo Tracking Shipping Yard Ship Train Truck Customer, Shipper, Customs 5 Services for Mobile Users Mobicast: information dissemination to moving areas. MobiQuery: spatiotemporal query for mobile users. Roadmap Query: navigation in dynamic environments. MLDS: mobile agent directory service for tracking applications. 6 Services for Mobile Users Mobicast: information dissemination to moving areas. MobiQuery: spatiotemporal query for mobile users. Roadmap Query: navigation in dynamic environments. MADS: mobile agent directory service for tracking applications.

Upload: others

Post on 14-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Sensor Network Services for Mobile Userslu/ds08/slides/mobiquery.pdf · Success Ratio DTM Ts = 6s DTM Ts = 12s OTC Ts = 6s OTC Ts = 12s 29 Communication Cost Figure 5. Under accurate

1

1

Sensor Network Services for Mobile Users

Chenyang LuDepartment of Computer Science and Engineering

2

Fire Monitoring

Fireman in wild fire• report temperature within 100m of the moving user every 2s;• temperature data must be no more than 1s old

3

Navigation through Fire

4

Cargo Tracking

Shipping Yard

Ship Train

TruckCustomer, Shipper, Customs

5

Services for Mobile Users

Mobicast: information dissemination to moving areas.MobiQuery: spatiotemporal query for mobile users.Roadmap Query: navigation in dynamic environments.MLDS: mobile agent directory service for tracking applications.

6

Services for Mobile Users

Mobicast: information dissemination to moving areas.MobiQuery: spatiotemporal query for mobile users.Roadmap Query: navigation in dynamic environments.MADS: mobile agent directory service for tracking applications.

Page 2: Sensor Network Services for Mobile Userslu/ds08/slides/mobiquery.pdf · Success Ratio DTM Ts = 6s DTM Ts = 12s OTC Ts = 6s OTC Ts = 12s 29 Communication Cost Figure 5. Under accurate

2

7

MobiQuery

8

A Motivating Application

Fireman in wild fire• report temperature within 100m of the moving user every 2s;• temperature data must be no more than 1s old

9

Spatiotemporal Constraints

Spatial constraintsQuery area moves with the userAll and only the sensors in the current query area should respond to the query

Temporal constraintsResult must be delivered within the current periodResult should not be older than data validity interval

Meeting the constraints are critical to the fireman’s safety!

Fireman in wild fire• report temperature within 100m of the moving user every 2s;• temperature data must be no more than 1s old

10

Key ChallengesLimited power, memory and bandwidth.Low duty cycle for extending network lifetime.

Sleep schedule consists of cycles of long sleep period followed by short active period.Lifetime of 450 days requires < 1% duty cycle. (based on Mica2 motes [J.Polastre et. al. Hot Chips ‘04])

cycle 1 cycle 2 cycle 3 cycle 4

14.85s

0.15s 0.15s 0.15s 0.15s

14.85s 14.85s 14.85s

active

asleep

11

Design Goals of MobiQuery

Allows a mobile user to periodically collect sensor data from surrounding areas

Meet spatiotemporal constraintsDeal with severe resource constraints

Reduce storage costReduce communication overhead

Robust against unpredictable user movement

12

Prefetching

Predict future query areasPrefetching

Forewarn nodes ahead of time so that they wake up at the right time to deliver the sensor data

Query dissemination and data collectionNodes wake up in time and upload fresh data to user

Page 3: Sensor Network Services for Mobile Userslu/ds08/slides/mobiquery.pdf · Success Ratio DTM Ts = 6s DTM Ts = 12s OTC Ts = 6s OTC Ts = 12s 29 Communication Cost Figure 5. Under accurate

3

13

Wakeup Process

Sleeping node

Active node

Forewarned node

Assuming backbone based power management (ex. CCP, GAF, Span)

42

1

3

Wake-up at T2

Wake-up at T3

Wake-up at T4

Wake-up at T1

14

Prefetching

Greedy PrefetchingForewarn nodes in future query areas ASAPMany routing trees set up simultaneouslyPrediction of far away query areas is likely to be wrong!

Just-in-time (JIT) PrefetchingForewarn nodes in future query areas at the right timeStore and forward strategyReduce network contention & storage costMore robust to user motion changes

15

Directional Tree Creation (DTC)

Forewarned node

Sleeping nodeActive node

Wake-up sensors ahead of the userCreate a new query tree in each query areaAggregate sensor data and deliver to the user when the user reaches a query area

16

MobiQuery Protocols

Directional Tree Creation (DTC) [ICDCS’05]High overhead and network contention at high query ratesRequires knowledge of user motion profile

Directional Tree Maintenance (DTM) [IPSN’05]Reduces overhead and contentionRequires knowledge of user motion profile

Omni-directional Tree Creation (OTC) [IPSN’05]Does not require knowledge of user motion profile

17

Generation of Motion Profile

Motion predictionPredict future user path based on movement historyMotion profile available after actual movement

Motion planningMotion planner plans user pathMotion profile available before actual movement

18

Directional Tree Maintenance (DTM)

Query

Forewarned node

Sleeping nodeActive node

Maintains a single moving tree rooted at the userLocal reconfiguration based on geographic location and user motion profile

Page 4: Sensor Network Services for Mobile Userslu/ds08/slides/mobiquery.pdf · Success Ratio DTM Ts = 6s DTM Ts = 12s OTC Ts = 6s OTC Ts = 12s 29 Communication Cost Figure 5. Under accurate

4

19

2

Directional Tree Maintenance (DTM)

1 3

4

5

Maintains a single moving tree rooted at the userLocal reconfiguration based on geographic location and user motion profile

Forewarned node

Sleeping nodeActive node

20

Omni-directional Tree Creation (OTC)

No motion profile requiredAssume knowledge of maximum user speed

Wake up sensors in a circular wake-up areaEncloses sensors in all possible query areas in the next few query periods

Create a tree when the user reaches a query area

21

QueryQuery

Sleeping nodeActive node

Query

OTC - Algorithm

22

Analysis

Derive parameters such that sensors in future query areas are woken up

early enough to respond to the query in timelate enough to reduce storage cost

DTM / DTCTime to forward wake-up/prefetch message

Based on user velocity and sensor sleep periodOTC

Size of wake-up areaBased on knowledge of maximum user velocity and sensor sleep period

23

Simulations - Metrics

Success ratio – fraction of queriesthat meet deadline for which, the faction of sensors that respond in a query area is above a threshold

Communication cost – total number of messages normalized by total number of query results

24

Simulations - Settings

Run on ns-2Backbone-based Power management: Coverage Configuration Protocol200 sensors in a 450mx450m areaQuery radius = 150mSensor nodes

Communication Range – 105mSensing Range – 50mBandwidth – 2Mbps

Page 5: Sensor Network Services for Mobile Userslu/ds08/slides/mobiquery.pdf · Success Ratio DTM Ts = 6s DTM Ts = 12s OTC Ts = 6s OTC Ts = 12s 29 Communication Cost Figure 5. Under accurate

5

25

Impact of Sleep Period

Figure 1. Effect on Success Ratio (Tp=0.5s); threshold = 90%

No prefetching performs extremely poorly

DTM > OTC >> DTC at long sleep periods

00.10.20.30.40.50.60.70.80.9

1

0 3 6 9 12 15Sleep Period (s)

Succ

ess

Rat

io

DTMOTCDTCNo Prefetching

26

Impact of User Speed

Figure 2. Effect on Success Ratio (Tp=1s, Ts=15s); threshold = 90%

DTM and OTC successfully adapt to different speed ranges.

00.10.20.30.40.50.60.70.80.9

1

3~5 ms/s 6 ~ 10 m/s 16 ~ 20 m/s 36~40 m/sUser Speed (m/s)

Succ

ess

Rat

io

DTMOTCDTC

27

Impact of Location Error

Figure 3. Effect on Success Ratio ; threshold = 80%

OTC is not affected by inaccuracy in the motion profile;

DTM delivers 80% of the query results for location error of 15m.

00.10.20.30.40.50.60.70.80.9

1

0 5 10 15 20Location Error (m)

Succ

ess

Rat

io

DTM Ts = 6sDTM Ts = 12sOTC Ts = 6sOTC Ts = 12s

28

Impact of Motion Changes

Figure 4. Effect on Success Ratio (location error = 10m); threshold = 80%

OTC is not affected by user motion changes

DTM maintains a success ratio greater than 80%

00.10.20.30.40.50.60.70.80.9

1

4 6 8 10 12

Number of Motion Changes

Succ

ess

Rat

io

DTM Ts = 6sDTM Ts = 12sOTC Ts = 6sOTC Ts = 12s

29

Communication Cost

Figure 5. Under accurate motion profile (Ts=9s)

DTM << DTC < OTC

0

20

40

60

80

100

120

O T C D T C D T M

Overhead per Query R

esult

Tp=1s

Tp=0.5s

30

Implementation on Motes

Implemented DTC and DTM on 6x3 grid of Mica2 motesAcroname PPRK robot carrying stargate was used to emulate the user

Page 6: Sensor Network Services for Mobile Userslu/ds08/slides/mobiquery.pdf · Success Ratio DTM Ts = 6s DTM Ts = 12s OTC Ts = 6s OTC Ts = 12s 29 Communication Cost Figure 5. Under accurate

6

31

SummaryMeet stringent spatiotemporal constraints.

DTC - good performance for query periods ≥ 2sDTM - lowest communication overhead.OTC - most robust to location error and motion changes.

DTM and OTC successfully deliver >80% of results when query period = 1s<1% duty cycleuser changes direction every minutelocation error = 15m

32

Roadmap Queryfor Navigation

33

Problem Addressed

Mobile entity navigation in dynamic environmentsExample dynamic environment fire

Applications - search and rescue, evacuationFind a safe path from a start point S to a goal point G, that is clear of fire.Safe path - path where the maximum temperature along the path is below ΔT.

34

Example Scenario

S

G

TAB < ΔTTAB > ΔTTCG < ΔTA

B

C

T > ΔT

35

Application Challenges

Dynamic environments may change quickly.Up-to-date information about the environment is required for successful navigation.On-board sensors insufficient due to limited sensing range.

Solution?

Obtain up-to-date information about the surrounding area through a sensor network!

36

New Challenges

Heavy communication workload

Congestion, communication delay and data loss.

Poor safety and navigation performance

Efficient query that can provide required information at minimum communication cost

Page 7: Sensor Network Services for Mobile Userslu/ds08/slides/mobiquery.pdf · Success Ratio DTM Ts = 6s DTM Ts = 12s OTC Ts = 6s OTC Ts = 12s 29 Communication Cost Figure 5. Under accurate

7

37

Assumptions

Sensor nodes are location aware.Mobile user communicates with sensor network through on-board gateway.Mobile user gets burnt at Δburn

Nodes have sensing range RS.

TR Tburn

S δΔ−Δ

=

Δburn

Rs

ΔT

δTTemperature Threshold

Burn Temperature

Max.Temperature Gradient (oC/m)

38

Roadmap-based Approach

Roadmap-based navigation algorithm – runs on the mobile entity.Roadmap Query (RQ) – collects sensor data from the sensor network.

39

Roadmap-based NavigationRoadmap

EdgeRoadmap

Vertex

Edge Weight = Weighted function of max temperature along edge (Tmax) and edge length.

If Tmax > ΔT, edge weight = infinity

S

G

40

Roadmap Query

Optimized for roadmap-based navigation.Collects sensor data only from vicinity of mobile user.Selective sampling: collects data only from nodes that lie along roadmap edges.

41

Roadmap Query Approach

S

G

42

Roadmap Query Approach

S

G

Page 8: Sensor Network Services for Mobile Userslu/ds08/slides/mobiquery.pdf · Success Ratio DTM Ts = 6s DTM Ts = 12s OTC Ts = 6s OTC Ts = 12s 29 Communication Cost Figure 5. Under accurate

8

43

Roadmap Query Approach

S

G

44

Roadmap Query Approach

S

G

45

Roadmap Query Approach

S

G

46

Query Execution

B

A

CD

E

Node that forwards the queryNode that heard the query

47

RQ - Forwarding Rule

B

C

2

1

4

3

5

7 8

910

Node that forwards the queryNode that heard the query

If received query from node i, forward query if

(a) cover roadmap edge BC, AND

(b) is closest to C among node i’sneighbors.

6

48

RQ - Reply Rule

Send query reply if(a) forwarded query, OR(b) cover edge BC and temperature > ΔT

B

C

2

1

4

3

5

7 8

910

Node that forwards the queryNode that heard the query

6

Page 9: Sensor Network Services for Mobile Userslu/ds08/slides/mobiquery.pdf · Success Ratio DTM Ts = 6s DTM Ts = 12s OTC Ts = 6s OTC Ts = 12s 29 Communication Cost Figure 5. Under accurate

9

49

Query Propagation

B

A

CD

E

13

5

9 10

8

Node that forwards the queryNode that heard the query

24

7

6

50

Query Propagation

B

A

CD

E

13

5

9 10

7 8

24

Node that forwards the queryNode that heard the query

6

51

Data Aggregation

B

A

CD

E

13

5

9 10

8

Node that forwards the queryNode that heard the query

7

24

6

52

Implementation

Implemented on Agilla - our mobile agent middlewareDeployed on Mica2 motes.

53

Simulation Setting

Simulations done in NS-2NIST Fire Dynamics Simulator (FDS) used to obtain realistic fire scenarios.Two simulation environments

More Dynamic – start time 50sLess Dynamic – start time 200s

Compared RQ with Dartmouth Algorithm (DA) [Q. Li, et al. 2003]Global Query (GQ)Local Query (LQ) [G. Alankus, et al. 2005]

54

Success Ratio

RQ > LQ > DA > GQ

Page 10: Sensor Network Services for Mobile Userslu/ds08/slides/mobiquery.pdf · Success Ratio DTM Ts = 6s DTM Ts = 12s OTC Ts = 6s OTC Ts = 12s 29 Communication Cost Figure 5. Under accurate

10

55

Communication Cost

RQ has 70% lower communication cost than LQ.RQ reduces node participation by 60%

(a) Communication cost (b) Node participation per query

0.00.10.20.30.40.50.60.70.80.91.0

ForwardingQuery Msg

Sending QueryReply

no. o

f nod

es in

RQ

/no.

of

node

s in

LQ

Start time 50sStart time 200s

0

500

1000

1500

2000

2500

RQ LQ

Num

ber o

f msg

s

Start time 50sStart time 200s

56

Summary

Roadmap Query is optimized for navigation in dynamicenvironments

Uses selective sampling guided by roadmaps.Effectively handles node failures.

Successfully deployed and tested RQ on the Agillamobile agent middleware and Mica2 motes.Simulation results show that under realistic fire scenarios, Roadmap Query has

higher success ratio and lower communication cost.

57

References

C. Lu, G. Xing, O. Chipara, C.-L. Fok, and S. Bhattacharya, A Spatiotemporal Query Service for Mobile Users in Sensor Networks, ICDCS'05.S. Bhattacharya, G. Xing, C. Lu, G.-C. Roman, B. Harris, and O. Chipara, Dynamic Wake-up and Topology Maintenance Protocols with Spatiotemporal Guarantees, IPSN'05.S. Bhattacharya, N. Atay, G. Alankus, C. Lu, O.B. Bayazit and G.-C. Roman, Roadmap Query for Sensor Network Assisted Navigation in Dynamic Environments, DCOSS'06.