sift: a mac protocol for event-driven wireless sensor networks

33
Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks Kyle Jamieson , Hari Balakrishnan , Y.C. Tay MIT Computer Science and Artificial Intelligence Laboratory Dept. of Computer Science, National University of Singapore

Upload: temima

Post on 05-Feb-2016

41 views

Category:

Documents


0 download

DESCRIPTION

Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks. Kyle Jamieson † , Hari Balakrishnan † , Y.C. Tay ‡. † MIT Computer Science and Artificial Intelligence Laboratory ‡ Dept. of Computer Science, National University of Singapore. Periodic traffic Animal habitat monitoring - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Sift: A MAC Protocol for Event-Driven Wireless Sensor

NetworksKyle Jamieson†, Hari Balakrishnan†, Y.C. Tay‡

† MIT Computer Science and Artificial Intelligence Laboratory‡ Dept. of Computer Science, National University of Singapore

Page 2: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Types of Traffic in Sensor Networks

• Periodic traffic– Animal habitat

monitoring– Indoor

environment• Temperature• Room occupancy

– Medical monitoring

• Patient vital signs

• Event-driven traffic– Failure of

mechanical structures

• Water pipes• Airplane wings

– Medical emergencies

– Vehicle tracking

Page 3: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Airplane Wing Example

For critical systems, low latency is important!

Page 4: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Sift

• Focus of our work– Designing MAC protocol to handle

event-driven workload

• Challenges– Low-latency– Good throughput– Good fairness

Page 5: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Problems for Traditional MAC

1. Spatially-correlated contention: correlation between geographical neighbors’ traffic.

2. Bursty traffic: the number of senders can quickly change.

3. Suppression (counter-intuitively)

Suppression: often, not all sensing nodes need to report an event.

Page 6: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

The Status Quo: CSMA

Time

Busy Medium

MAC Goal: only one node transmit at a time

• Basis of existing sensornet MAC layers– B-MAC, S-MAC

• Timeslot: opportunity for a node to begin transmitting

• Process repeats after each packet

Page 7: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

The Status Quo: CSMA

• Pick a timeslot chosen uniformly in [0, CW]• Listen up to chosen slot

– Transmit if nobody else started transmitting– Wait if somebody else started transmitting

Time

Page 8: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Example: A Successful Transmission

• A and B happened to choose different slots– Node A chooses slot 4, hears nothing, transmits– Node B chooses slot 8, hears Node A, waits

Success: exactly one node in first non-vacant slot

Node A:

Node B:

Slot choice (slot #4)

Slot choice (slot #8)

Time

Page 9: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Example: A Collision

• A and B happened to choose slot 4– Both listen and hear nothing– Both transmit simultaneously

Collision: ≥ 2 nodes in first non-vacant slot

Node A:

Node B:

Slot choice (slot #4)

Slot choice (slot #4)

Time

Page 10: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

High Contention Causes Collisions in CSMA

Uniform distribution “fills up,” quickly

Numerical simulation

Unacceptable collision rate above ~15 transmitting sensors

Page 11: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Solving the Problem of Collisions in CSMA

1. Create more slots– Conventional approach– Called “binary exponential backoff”

(BEB)

2. Change the way we pick slots– Sift takes this approach

Page 12: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Create More Slots:Binary Exponential Backoff (BEB)

• The basis for Ethernet, B-MAC, S-MAC, 802.11, MACAW, many other MAC layers

Acknowledgement?

Reduce CWDouble CWand resend

Yes No

Page 13: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Problems with BEB

• Takes time for every node to increase CW– Especially if traffic is spatially-correlated

and bursty

• Waste backoff slots if collisions cause CW to increase– Especially with suppression

BEB causes performance to suffer

Page 14: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Our Proposal: Sift

• Sift is a MAC protocol for sensor networks– Event-driven traffic– Low-latency requirements

• Sift’s Properties– Extremely simple– Offers up to 7-fold lower latency– Maintains good channel utilization

(throughput)

Page 15: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Sift: Changing the Distribution

• Keep number of slots the same (simple)

• Use an increasing non-uniform slot selection probability distribution

– Make collisions unlikely for large range of N

1. Reduce the chance of collisions• Penalty: one packet- or RTS-time (ms)

2. Reduce wastage of backoff slots• Penalty: one slot time (μs)

Page 16: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Balls and Bins Analogy

• Bin represents a backoff slot in the contention window– Bin height represents probability of picking

that slot

• Ball represents a single node’s slot choice

A

Bins represent backoff slots →

Page 17: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Why an Increasing Slot-Selection Function?

Bins represent backoff slots →

Nod

es c

hoos

ing

each

slo

t →

Page 18: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Sift’s Slot Selection Distribution

rCW

CW

rp

1

)1(

Page 19: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Optimal Non-Persistent CSMA Performance

With knowledge of number of nodes (IEEE J-SAC ’04)

Numerical simulation

Page 20: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Sift Approaches Optimal

Sift needs no knowledge of the number of nodes

Numerical simulation

Sift keeps success rate above this unacceptable range

Page 21: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Experimental Setup

• Simulation-based results (ns-2)• Compare 802.11 (BEB), Sift,

and 802.11/copy– 802.11/copy: send CW in each

packet, copy overheard CW

Page 22: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Event-driven Traffic Pattern

• Event-based traffic pattern– Single-hop to one base

station– N nodes sense and report an

event– R ≤ N reports are required

• If a node hears ≥ R reports then it suppresses its own event report E.g. N=4, R=3

BaseStation

Page 23: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Sift Outperforms When N is Large

Experimental evaluation: R=1,16

R=16

R=1

Page 24: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Sift Outperforms as R Increases

Experimental evaluation: N=128

Page 25: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Exploring Sift’s Performance Space

Experimental evaluation

Page 26: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Hidden Terminal Experiment Setup

• Separate 128 sensors into mutually-hidden clusters– Nodes in one cluster cannot hear nodes in another

• All nodes send to the base station– Result: hidden

terminal collisions at the base station

Base Station

Page 27: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Sift Performs Well with Hidden Terminals

Experimental evaluation: N=128, R=1

Page 28: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Sift Resilient to Jitter in Event Time

Experimental evaluation: N=128, R=64

Page 29: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Sift Improves Fairness

Eight nodes 64 nodes

Experimental evaluation

Page 30: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Trace-Driven Experimental Setup

• Simulated vehicle tracking

• Captured live video from a street scene– Extract motion events

from image analysis

• Event trace drives ns-2 simulation– 128 sensors laid out in a

grid over the scene– Sensors nearby each

event send traffic in response to movement

Page 31: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Sift Outperforms When R is Large

Trace-driven experimental evaluation

Page 32: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Related Work

• TDMA suffers in terms of latency– PTD (Mowafi et al.), TSMA (Chlamtac et al.)

• BEB-based protocols waste time in backoff– MACAW (Bharghavan et al.), S-MAC (Ye et

al.), FAMA (Garcia-Luna-Aceves et al.)• The HIPERLAN standard for wireless LANs

uses noise bursts of exponentially-distributed length

• Periodic-sleeping and other MAC protocols can work with Sift– S-MAC (Ye et al.), B-MAC (Polastre)

Sift is a composable MAC primitive

Page 33: Sift: A MAC Protocol for Event-Driven Wireless Sensor Networks

Conclusion

• Sift is a latency- (and sometimes throughput-) enhancing MAC for event-driven sensor networks

• Sift can be used as a building block in many MAC protocols

http://nms.csail.mit.edu/projects/sift