1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy...

129
1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury

Transcript of 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy...

Page 1: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

1

Wireless Sensor Networking(Understanding the radio, MAC, & routing

protocols)

Romit Roy Choudhury

Page 2: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

2

Sensor Networking – Why ??

Data Collection – A basic need Will the volcano erupt? Need temperature/gas

signatures How much Global Warming? Need ocean current data How many enemy tanks crossed?

Human monitoring possible/feasible ? Often risky, impenetrable, costly, …

But science has collected data for centuries … Manual (wired) placement, periodic human visits Wireless data transmitters Community accepted barriers/defiiencies

Page 3: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

3

New Opportunities

Device miniaturization Moore’s law Processors envisioned as smart dust

Innovations in wireless communication Low power communication Antenna sizes smaller with high frequency

Device + RF + sensors - A new breakthrough:Scattered sensor motes self-organize themselves forming a

network.Sensed data aggregated, processed, and transported to base

station.Low risk, low cost, and heavy penetration

Device + RF + sensors - A new breakthrough:Scattered sensor motes self-organize themselves forming a

network.Sensed data aggregated, processed, and transported to base

station.Low risk, low cost, and heavy penetration

Page 4: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

4

Plethora of Applications

Page 5: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

5

Plethora of Challenges

Devices Reducing energy consumption Heavy programming constraints (16 KB RAM)

Wireless Radio Network Reliable low power communication Medium access control (MAC) Network wide energy conservation Routing Aggregation, compression, suppression …

Page 6: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

6

Today’s Talk

Understanding the wireless channel The departure from wireline The key challenges

Medium access control Protocol design Energy-awareness (coordinated sleeping)

Routing Unicast (Diffusion) Broadcast (Gossip)

Page 7: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

7

The Wireless Channel

Page 8: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

8

Many Motivations for Wireless

Unrestricted mobility / deployability Unplugged from power outlet

Significantly lower cost No cable layout, service provision Low maintenance

Ease Direct communication with minimum

infratructure

Page 9: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

9

From Links to Networks

Variety of architectures

Single hop networks

Multi-hop networks

Page 10: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

10

The Wireless Future …

Internet

Page 11: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

11

No Free Lunch

Numerous challenges Channel fluctuation Lower bandwidth Limited Battery power Disconnection due to mobility Security …

Page 12: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

12

Question Is …

Can’t we use the rich “wireline” knowledge ?In solving the wireless challenges

Page 13: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

13

The Answer

Wireless channel: A dispersive mediumThe PHY and MAC layer completely dissimilar

The whole game changes

Page 14: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

14

On Our Agenda

Quick Glimpse Medium Access Control

•Wired

•Wireless

The emergence of 802.11

Evolution of sensor network MAC protocols•Energy awareness

Page 15: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

15

Medium Access Control

Page 16: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

16

The Channel Access Problem

Multiple nodes share a channel

Pairwise communication desired Simultaneous communication not possible

MAC Protocols Suggests a scheme to schedule communication

•Maximize number of communications•Ensure fairness among all transmitters

AA CCBB

Page 17: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

17

The Trivial Solution

Transmit and pray Plenty of collisions --> poor throughput at high

load

AA CCBB

Page 18: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

18

The Simple Fix

Transmit and pray Plenty of collisions --> poor throughput at high

load

Listen before you talk Carrier sense multiple access (CSMA) Defer transmission when signal on channel

AA CCBB

Don’ttransmit

Don’ttransmit

Can collisions still occur?Can collisions still occur?

Page 19: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

19

CSMA collisions

Collisions can still occur:Propagation delay non-zero between transmitters

When collision:Entire packet transmission time wasted

spatial layout of nodes

note:Role of distance & propagation delay in determining collision probability

Page 20: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

20

CSMA/CD (Collision Detection)

Keep listening to channel While transmitting

If (Transmitted_Signal != Sensed_Signal) Sender knows it’s a Collision ABORT

Page 21: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

21

2 Observations on CSMA/CD

Transmitter can send/listen concurrently If (Sensed - received = null)? Then success

The signal is identical at Tx and Rx Non-dispersive

The transmitter can DETECT if and when collision occurs

The transmitter can DETECT if and when collision occurs

Page 22: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

22

Unfortunately …

Both observations do not hold for wireless

Leading to …

Page 23: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

23

Wireless Medium Access Control

A B

C D

Distance

Signalpower

SINR threhold

Page 24: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

24

Wireless Media Disperse Energy

A B

C D

Distance

Signalpower

SINR threhold

A cannot send and listen in parallel

Signal not same at different locations

Page 25: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

25

Collision Detection Difficult

Signal reception based on SINR Transmitter can only hear itself Cannot determine signal quality at

receiver

Page 26: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

26

Calculating SINR

AB

C

α

α

CB

CtransmitC

B

AB

AAB

d

PI

d

PSoI

NNoiseIceInterferen

SoIterestSignalOfInSINR

transmit

=

=

+=

)()(

)(

α

α

CB

Ctransmit

AB

A

AB

dP

N

d

P

SINR

transmit

+

=

Page 27: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

27

A B

C D

Distance

Signalpower

SINR threhold

Red signal >> Blue signal

X

Red < Blue = collision

Page 28: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

28

A B

C D

Distance

Signalpower

SINR threhold

Important: C has not heard A, but can interfere at receiver B

X

C is the hidden terminal to A

Page 29: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

29

A B

C D

Distance

Signalpower

SINR threhold

Important: X has heard A, but should not defer transmission to Y

X

X is the exposed terminal to AY

Page 30: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

30

A B

C D

Distance

Signalpower

SINR threhold

X

A Project Idea!

Sensitivity threshold

Page 31: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

31

A B

C D

Distance

Signalpower

SINR threhold

Sensitivity threshold

X

T

A Project Idea!Will this solve the wireless MAC problem? Do not transmit in this region

Page 32: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

32

The Emergence of 802.11

Wireless MAC proved to be non-trivial

1992 - research by Karn (MACA) 1994 - research by Bhargavan (MACAW)

Led to IEEE 802.11 committee The standard was ratified in 1999

Page 33: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

33

CTS = Clear To Send

RTS = Request To Send

IEEE 802.11 with Omni Antenna

D

Y

S

M

K

RTS

CTS

Page 34: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

34

IEEE 802.11 with Omni Antenna

D

Y

S

X

M

Ksilenced

silenced

silenced

silencedData

ACK

Page 35: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

35

But is that enough?

Page 36: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

36

RTS/CTS

Does it solve hidden terminals ? Assuming carrier sensing zone =

communication zone

C

F

A B

E

D

CTS

RTS

E does not receive CTS successfully Can later initiate transmission to D.Hidden terminal problem remains.

E does not receive CTS successfully Can later initiate transmission to D.Hidden terminal problem remains.

Page 37: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

37

Hidden Terminal Problem

How about increasing carrier sense range ?? E will defer on sensing carrier no

collision !!!

CB DData

A

E

CTS

RTSF

Page 38: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

38

Hidden Terminal Problem

But what if barriers/obstructions ?? E doesn’t hear C Carrier sensing does not

help

CB DData

A

EF

CTS

RTS

Page 39: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

39

Exposed Terminal

B should be able to transmit to A RTS prevents this

CA B

E

D

CTSRTS

Page 40: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

40

Exposed Terminal

B should be able to transmit to A Carrier sensing makes the situation worse

CA B

E

D

CTSRTS

Page 41: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

41

Thoughts !

802.11 does not solve HT/ET completely Only alleviates the problem through RTS/CTS and

recommends larger CS zone

Large CS zone aggravates exposed terminals Spatial reuse reduces A tradeoff RTS/CTS packets also consume bandwidth Moreover, backing off mechanism is also wasteful

The search for the best MAC protocol is still on. However, 802.11 is being optimized too.Thus, wireless MAC research still alive

Page 42: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

42

Questions?

Page 43: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

43

Energy-Awareness

802.11 optimizes for throughput/latency Energy savings is second priority

Unattended sensor networks Operate on AA batteries Yet, expected to last for months or years

Energy-awareness is the key Throughput and latency is secondary

Page 44: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

44

An Energy-Efficient MAC Protocol for Wireless Sensor Networks (S-MAC)

Wei Ye, John Heidemann, Deborah Estrin

Page 45: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

45

Major source of energy waste

Collision

Overhearing

Control Overhead

Idle Listening Listening to possible traffic that is not sent 50%-100% energy drain compared with receiving

Page 46: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

46

Avenues to Reduce Energy Consumption

(1) Periodic listen and sleep(2) Collision avoidance(3) Overhearing avoidance(4) Message passing

Page 47: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

47

(1) Periodic Listen and Sleep

The main idea Put nodes to sleep periodically

Called “Duty Cycles”

However, ensure that sleep/wake-up is synchronous

Page 48: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

48

Listen for SYNC

td

Listen/Sleep Schedule Assignment

Choosing Schedule (1)

Sleep

Listen

Go to sleep after time t

Sleep

Listen

Broadcasts

A

B

Broadcasts

Go to sleep after time t- td

Synchronizer• Listen for a mount of time• If hear no SYNC, select its

own SYNC• Broadcasts its SYNC

immediately

Follower• Listen for a mount of time• Hear SYNC from A, follow

A’s SYNC• Rebroadcasts SYNC after

random delay td

Page 49: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

49

Listen for SYNC Go to sleep after time t2

td

Listen for SYNC

Listen/Sleep Schedule Assignment

Choosing Schedule (2)

Sleep

Listen

Go to sleep after time t1

Sleep

Listen

A

Broadcasts

Sleep

Listen

C

Broadcasts

B

Only need to broadcast once

1. B receives A’s schedule and rebroadcast it.

2. Hear different SYNC from C3. Adapt both schedules

1. B receives A’s schedule and rebroadcast it.

2. Hear different SYNC from C3. Adapt both schedules

Nodes only rarely adopt multiple schedulesNodes only rarely adopt multiple schedules

Page 50: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

50

Keeping Clocks in SYNC

SYNC packets must not collide Reserve separate time window for SYNC

transmission

Page 51: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

51

(2) Collision Avoidance

Identical to 802.11 RTS/CTS Virtual carrier sense (NAV) Physical carrier sense

Page 52: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

52

(3) Overhearing Avoidance

A is talking to BD receives CTS from B -> sleep• D’s transmission will collide B’s

C receives RTS from A -> sleep• C cannot receive CTS/DATA from E

All immediate neighbours of transmitting node sleep

How long should they sleep?C and D update their NAVKeeping sleeping until NAV count down to zero

Neighbors go to sleepon overhearing RTS/CTS

Page 53: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

53

(4) Message Passing

How to transmit long message? Transmitting one long message is inefficient Many small packets with RTS/CTS/ACK for

each

S-MAC: Divide into fragments, transmit in burst

RTS/CTS reserve medium for the entire sequence

Fragment-errors recovery with ACK• no control packets for fragments

Page 54: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

54

Acknowledgment to Pro. Jun Yang

Neighbors can sleep for whole message

Page 55: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

55

Message Passing

Advantages: Energy saving:

Neighbors go to sleep when sense transmissions Reduces control overhead by sending multiple ACK

Disadvantage: Node-to-node fairness reduces

However, message-level latency reduces

Page 56: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

56

ExperimentListen time: 300msSleeping time: 1sSYNC: every 13s (10 listen/sleep period)A, B, C use the same schedule

Page 57: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

57Heavy Traffic Light Traffic

Energy save due to avoiding overhearing by using message passing

Energy save due to periodic sleep 802.11

OA

SMAC

Page 58: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

58

OA: In light traffic status, nodes keep listening for quite a long time

Page 59: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

59

Heavy Traffic Light Traffic

SYNC overhead

Overhearing avoidance still benefit

Page 60: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

60

Questions?

Page 61: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

61

Studied MAC protocols till now

Another important challenge:How does a packet get transported end to

end

i.e., How do you perform Routing

Page 62: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

62

The Problem

A region requires event-monitoring (harmful gas, vehicle motion, seismic vibration, temperature, etc.)

Deploy sensors forming a distributed network

On event, sensed and/or processed information delivered to the inquiring destination

Event

Event

Sensor sources

Sensor sink

Directed Diffusion

A sensor field

Page 63: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

63

Directed Diffusion

Page 64: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

64

The Proposal

Proposes an application-aware paradigm to facilitate efficient aggregation, and delivery of sensed data to inquiring destination

Challenges: Scalability Energy efficiency Robustness / Fault tolerance in outdoor areas Efficient routing (multiple source destination

pairs)

Page 65: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

65

IP or not to IP

IP is the pivot of wired/wireless networks All networking protocol over and below IP

Should we stick to this model?

Comments ?

Page 66: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

66

Directed Diffusion

Typical IP based networks Requires unique host ID addressing Application is end-to-end, routers unaware

Directed diffusion – uses publish/subscribe Inquirer expresses an interest, I, using

attribute values Sensor sources that can service I, reply with

data

Page 67: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

67

Data Naming

Expressing an Interest Using attribute-value pairs E.g.,

Other interest-expressing schemes possible E.g., hierarchical (different problem)

Type = Wheeled vehicle // detect vehicle locationInterval = 20 ms // send events every 20ms Duration = 10 s // Send for next 10 sField = [x1, y1, x2, y2] // from sensors in this area

Page 68: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

68

Gradient Set Up

Inquirer (sink) broadcasts exploratory interest, i1 Intended to discover routes between source and sink

Neighbors update interest-cache and forwards i1

Gradient for i1 set up to upstream neighbor No source routes Gradient – a weighted reverse link Low gradient Few packets per unit time needed

Page 69: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

69

Low

Exploratory Gradient

EventEvent

LowLow

Exploratory RequestGradient

Bidirectional gradients established on all links through flooding

Page 70: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

70

Event-data propagation

Event e1 occurs, matches i1 in sensor cache e1 identified based on waveform pattern

matching

Interest reply diffused down gradient (unicast) Diffusion initially exploratory (low packet-rate)

Cache filters suppress previously seen data Problem of bidirectional gradient avoided

Page 71: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

71

Reinforcement

From exploratory gradients, reinforce optimal path for high-rate data download Unicast

By requesting higher-rate-i1 on the optimal path

Exploratory gradients still exist – useful for faults

EventEvent

SinkA sensor field

Reinforced gradientReinforced gradient

Page 72: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

72

Path Failure / Recovery

Link failure detected by reduced rate, data loss Choose next best link (i.e., compare links

based on infrequent exploratory downloads)

Negatively reinforce lossy link Either send i1 with base (exploratory) data rate Or, allow neighbor’s cache to expire over time

EventEvent

Sink

Src AC

B

MD

Link A-M lossyA reinforces BB reinforces C …D need notA (–) reinforces MM (–) reinforces D

Page 73: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

73

M gets same data from both D and P, but P always delivers late due to looping M negatively-reinforces (nr) P, P nr Q, Q nr M Loop {M Q P} eliminated

Conservative nr useful for fault resilience

Loop Elimination

A

QP

D M

Page 74: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

74

Simulation Setup & Metrics

ns2, 50 nodes in 160x160 sqm., range 40m Node density maintained, 802.11 MAC

Random 5 sources in 70x70, random 5 sinks Average Dissipated Energy

Per node energy dissipation / # events seen by sinks

Average Delay Latency of event transmission to reception at sink

Distinct event delivery ratio Ratio of # events sent to # events received by sink

Page 75: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

75

Average Dissipated Energy

In-network aggregation reduces DD redundancy Flooding poor because of multiple paths from source to

sink

flooding

DiffusionMulticast

Page 76: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

76

Delay

DD finds least delay paths, as OM – encouraging Flooding incurs latency due to high MAC contention,

collision

flooding

Diffusion

Multicast

Page 77: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

77

Delivery ratio degrades with higher % node failures Graceful degradation indicates efficient negative

reinforcement

Event Delivery Ratio under node failures

0 %

10%20%

Page 78: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

78

Conclusion

Directed diffusion, a paradigm proposed for event monitoring sensor networks

Energy efficiency achievable Diffusion mechanism resilient to fault tolerance

Conservative negative reinforcements proves useful

A careful MAC protocol, designed for such specifics, can yield further performance gains

Page 79: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

79

Rumor Routing LEACH SPIN

Some other proposals for sensor routing

Page 80: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

80

Rumor Routing

Page 81: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

81

LEACH

Proposes clustering of sensors + cluster leaders Can aggregate data in single (local) cluster Rotating cluster head balances energy

consumption Cluster formation distributed and energy

efficientCluster-head always awake

Member nodes cansleep when not Txing

Page 82: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

82

LEACH – The Protocol

Time is divided into rounds A node self-elects itself as the cluster head

Higher residual energy, higher probability to be head Close-by sensors join this cluster-head Cluster head does TDMA scheduling and gathers

data Gathered data compressed based on spatial

correlation Transmits data to Base Station (@ higher power)

In the next round, another cluster head elected Probabilistic load balancing Network lifetime can increase manifolds

Page 83: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

83

SPIN: Information Via Negotiation

Flooding many sensors transmit same data Redundant

Make sensors disseminate spatially/temporally disjoint data sets Name data with meta-data to define space/time

property Sensors compare overheard data with self-

sensed data Combine data to minimize overlap

Make sensors resource-adaptive When low battery perform minimum activities

Page 84: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

84

The SPIN 3-Step Protocol

B

AADVREQDATA

ADV

AD

VADV

ADV

AD

V ADV

REQ

RE

Q

REQ

RE

Q

REQ

DATADA

TA

DATA

DA

TA

DATA

Page 85: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

85

The SPIN 3-Step Protocol

B

A

DATADA

TA

DATA

DA

TA

DATA

Notice the color of the data packets sent by node B

Page 86: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

86

The SPIN 3-Step Protocol

B

A

DATADA

TA

DATA

DA

TA

DATA

SPIN effective when DATA sizes are large : REQ, ADV overhead gets amortized

Page 87: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

87

SmartGossip: A Reliable Broadcast Service for Wireless Sensor

Networks

Romit Roy ChoudhuryDept. of ECE, Duke University

Joint work withPradeep Kyasanur (Google)

Indranil Gupta (UIUC)

Page 88: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

88

Problem

Broadcast in Sensor Networks A widely used service

Network layer functions heavily depend on it

Examples:•Directed Diffusion

•Unicast or multicast routing

• Instruction / code dissemination

•Query propagation

Page 89: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

89

Several approaches evolved over time

Approaches

Complexalgo

Floo

ding

Mul

ti-p

oint

rela

ys

BroadcastStorm

Dom

inat

ing

sets

Single pointof failures

Gos

sipi

ng

LoadBalance

Page 90: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

90

Recent Past

Gossiping = Probabilistic flooding Nodes forward with probability, p

Source

Page 91: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

91

Recent Past

Gossip based broadcast Nodes forward with probability, p

Source

Heads

Tails

Page 92: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

92

Recent Past

Gossip based broadcast Nodes forward with probability, p

Source

Heads

Tails

Page 93: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

93

Recent Past

Gossip based broadcast Nodes forward with probability, p

Source

HeadsHeads

Tails

Page 94: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

94

Recent Past

Gossip based broadcast Nodes forward with probability, p

Source

HeadsHeads

Tails

Page 95: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

95

Recent Past

Gossip based broadcast Nodes forward with probability, p

Source Heads

Tails

Tails

HeadsHeads

Tails

Page 96: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

96

Recent Past

Gossip based broadcast Nodes forward with probability, p

Source Heads

Tails

Tails

HeadsHeads

Tails

Page 97: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

97

Recent Past

Gossip based broadcast Nodes forward with probability, p

Source Heads

Tails

Tails

HeadsHeads

Tails

Heads

Tails

Page 98: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

98

Recent Past

Gossip based broadcast Nodes forward with probability, p

Source Heads

Tails

Tails

HeadsHeads

Tails

Heads

Tails

Page 99: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

99

Recent Past

Gossip based broadcast Nodes forward with probability, p

Source Heads

Tails

Tails

HeadsHeads

Tails

Heads

Tails

Heads

Tails

Page 100: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

100

Recent Past

Gossip based broadcast Nodes forward with probability, p

Source Heads

Tails

Tails

HeadsHeads

Tails

Heads

Tails

Heads

TailsFor carefully chosen ‘p’

the message reaches all nodes in minimal transmissions

1. Simple, 2. Fault tolerant3. Load-balanced

Page 101: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

101

We Ask …

Given some topology deployment How do we choose a suitable value of “p” ?

One option is to simulatethe gossip offline, and determine “p”

But, for this example, simulation result will be

p = 1

Page 102: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

102

We Ask …

Given some topology deployment How do we choose a suitable value of “p” ?

Even if topology is homogeneous It may change over time due to failure and

mobility

Page 103: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

103

We Ask …

Given some topology deployment How do we choose a suitable value of “p” ?

Even if topology is homogeneous It may change over time due to failure and

mobility

Say computed p = 0.85

Page 104: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

104

We Ask …

Given some topology deployment How do we choose a suitable value of “p” ?

Even if topology is homogeneous It may change over time due to failure and

mobility Fails

Say computed p = 0.85

Page 105: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

105

We Ask …

Given some topology deployment How do we choose a suitable value of “p” ?

Even if topology is homogeneous It may change over time due to failure and

mobility

Say computed p = 0.85

15% of packetswill not reach these nodes

Page 106: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

106

We Ask …

Given some topology deployment How do we choose a suitable value of “p” ?

Even if topology is homogeneous It may change over time due to failure and

mobility

Finally, what if topology is not known a priori ? How can you choose “p” ?

Page 107: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

107

A broadcast service necessary that customizes itself to the underlying topology

andrepairs itself with failures and mobility

We Argue …

Page 108: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

108

Smart Gossip

Intuition Identify which of YOUR friends get to know

gossips earlier than you do•Request those friends to gossip more

Friends who get to know gossips later than you will request you to gossip more

You choose your gossip probability as:•MAX value of all requests from YOUR friends

Page 109: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

109

For Example …

When H spreads a gossip F gets gossip only from G F asks G to always gossip Thus, pG = 1.0

B receives gossip from A,C,D,E,F B also observes that A,C,D,E received gossip

from F• Indicates that B must depend only on F (parent)

•A,C,D,E and B are independent (siblings)

B asks F to always gossip, thus pF = 1.0

Page 110: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

110

For Example …

B asks F to always gossip,thus pF = 1.0

B does not require siblingsA,C,D,E to gossip at all

Thus pA = 0, pC = 0, pD = 0, pE = 0

Observe that only 2 transmissions (from G and F) are sufficient for broadcast

Page 111: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

111

Protocol Details

For first gossip pkt, nodes transmit with p=1 Enables nodes to deduce neighbor dependences

Transmitters piggyback pkt with parent-id from which it received the pkt

Nodes record transmitter-id, and its parent-id, and deduce parent, child, sibling relationships …

… see next slide

Page 112: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

112

Deducing Relationships

S A B C

E

SASASA Parent = {A}

Parent = {A}

Child = {A}

Page 113: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

113

Parent = {A}

Parent = {A}

Child = {A}

Deducing Relationships

S A B C

E

ABABAB

Sibling = {B}

Child = {B} Parent = {B}

Page 114: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

114

Parent = {A}

Parent = {A}

Child = {A}

Deducing Relationships

S A B C

EAEAE

Sibling = {B}

Child = {B} Parent = {B}

AE

Page 115: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

115

Parent = {A}

Parent = {A}

Child = {A}

Deducing Relationships

S A B C

E

Sibling = {B}

Child = {B,E} Parent = {B,E}

Sibling = {E}

Page 116: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

116

Choosing Probabilities

Each node calculates number of parents ( k ) Assume 99% assurance necessary for gossip

Node suggests each parent to gossip using ‘p’:

0.99 = ( 1 – (1 - p)k )

Each node receives multiple requests of ‘p’ Uses Max { pi } as its own gossip probability

S A B C

E

Parent={B,E}

Page 117: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

117

Choosing Probabilities

Each node calculates number of parents ( k ) Assume 99% assurance necessary for gossip

Node suggests each parent to gossip using ‘p’:

0.99 = ( 1 – (1 - p)k )

Each node receives multiple requests of ‘p’ Uses Max { pi } as its own gossip probability

S A B C

E

p = 0.9

p = 0.9p = 1.0

p = 1.0p = 1.0

Page 118: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

118

Choosing Probabilities

Each node calculates number of parents ( k ) Assume 99% assurance necessary for gossip

Node suggests each parent to gossip using ‘p’:

0.99 = ( 1 – (1 - p)k )

Each node receives multiple requests of ‘p’ Uses Max { pi } as its own gossip probability

S A B C

E

p = 0

p = 0.9

p = 0.9p = 1.0p = 1.0

Page 119: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

119

The Bigger Picture

Src

Page 120: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

120

Reliability (Details in paper)

Node Failures Node failures affect broadcast Source node flags packet periodically (p=1) Allows for updating dependences

Link Losses Node requests upstream nodes to retransmit

•We require each node to buffer few packets

Children overhear this request Children do not request retransmissions

themselves

Page 121: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

121

Evaluation

Qualnet Simulator, ver 3.7(Currently implementing on Moteiv tmotes +

TinyOS)

Metrics used Average Reception Percentage Average Forwarding Percentage Resilience to link/node failures

Page 122: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

122

Percolation

Smart Gossip

Adaptive Overhead

Adaptive Neighbor

Page 123: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

123

Forwarding Overhead

Page 124: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

124

Adaption to Node Failures

Nodes gossip more to compensate for other failing nodes

Page 125: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

125

Conclusion

Broadcast is an important problem Gossip is good – but not practical for sensor nets Need to adapt gossip based on topology / failures

Smart Gossip Form dependence graphs using distributed

protocol Dependence relations suggest suitable probability

Results Overheads are low, and yet good percolation Robust to node and link failures

Page 126: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

126

Questions?

Page 127: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

127

Percolation

Smart Gossip

Adaptive Overhead

Adaptive Neighbor

Page 128: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

128

Wireless Routing

Link instability causes many routing issues Shortest hop routing often worst choice Scarce bandwidth makes overhead

conspicuous Battery power a concern Security and misbehavior …

If that’s not bad enough Add node mobility

•Note: Routes may break, and reconnect later

Page 129: 1 Wireless Sensor Networking (Understanding the radio, MAC, & routing protocols) Romit Roy Choudhury.

129

Routing in wireless Mobile Networks

Imagine hundreds of hosts moving Routing algorithm needs to cope up with

varying wireless channel and node mobility

Where’s RED guy