present us prof

Upload: ngo-manh-dung

Post on 05-Apr-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/2/2019 Present US Prof

    1/46

    Wireless Sensors

    Discovery in Sleeping

    presented by: Ted Herman, University of Iowa

    March/April 2011, Vietnam

    http://find/
  • 8/2/2019 Present US Prof

    2/46

    IntroductionTechnical ProblemsNeighbor Discovery

    Plan of Presentation

    Introduce topics of Wireless Sensor Networks, and show some

    technical apects1 why wireless sensor networks?

    2 what are the problems?

    3 some ideas about neighbor discovery

    2 / 4 6

    http://find/
  • 8/2/2019 Present US Prof

    3/46

    IntroductionTechnical ProblemsNeighbor Discovery

    Wireless Embedded Computing

    Wireless Embedded Computing Vision

    Dream 1: Ubiquitous Computing - always connectedcomputing (= cloud computing + smart phone)

    Dream 2: Spimes, Sensors on Web - sensing data, putting incloud (measure temperature, light, in smart phone)

    Dream 3: Pervasive Computing - a world of smart objects(cars, buildings, roads, machines) - embedded computerseverywhere, sensing and adapting to changes

    works even without cloud

    3 / 4 6

    http://find/
  • 8/2/2019 Present US Prof

    4/46

    IntroductionTechnical ProblemsNeighbor Discovery

    Wireless Embedded Computing

    Wireless Embedded Computing Vision

    Dream 4: Extended Sensing

    what if you can know where is traffic, be aware ifgrandmother is OK, find out if heat is on/off athome, . . .

    these things are like sensing from a distance, enabled by

    sensors placed in our lives, with networked (wireless)communication

    4 / 4 6

    I d i

    http://find/
  • 8/2/2019 Present US Prof

    5/46

    IntroductionTechnical ProblemsNeighbor Discovery

    Sensor Types

    What kinds of sensors?

    Small, low-power sensors now made for:

    temperature, dark/light, CO2, vibration, pressure,ultrasound, movement

    Future small sensors will include:

    special chemicals, biological agents, radiation, visual

    patterns, radar, . . .

    5 / 4 6

    I t d ti

    http://find/
  • 8/2/2019 Present US Prof

    6/46

    IntroductionTechnical ProblemsNeighbor Discovery

    Current WSN Applications

    Wireless Sensor Networks (WSN) Applications

    monitor supply chain (inventory, transportation)

    security (shipping containers, borders) factory equipment (overheating, vibration) infrastructure (bridges, buildings)

    precision agriculture (vineyards, greenhouses)

    scientific experiments (measuring precisely)

    6 / 4 6

    Introduction

    http://find/
  • 8/2/2019 Present US Prof

    7/46

    IntroductionTechnical ProblemsNeighbor Discovery

    Example: Jindo Bridge, South Korea

    7 / 4 6

    Introduction

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    8/46

    IntroductionTechnical ProblemsNeighbor Discovery

    Example Bridge Sensor Hardware

    8 / 4 6

    Introduction

    http://find/
  • 8/2/2019 Present US Prof

    9/46

    IntroductionTechnical ProblemsNeighbor Discovery

    Other Sensor Deployments

    Sensors in Use

    1 Aircraft: hundreds of sensors (Airbus communicates sensor

    data by radio in real time)2 Vehicles: expensive vehicles may use hundreds of sensors

    (lookup wireless hack)

    3 RFID in supply chain: location, and even other attributes like

    temperature, vibrationSome usage, but wireless sensor networks very limited!

    9 / 4 6

    Introduction

    http://find/
  • 8/2/2019 Present US Prof

    10/46

    IntroductionTechnical ProblemsNeighbor Discovery

    What are the Problems?

    What is needed for future?

    Some technical problems to solve, for more widespread use of

    Wireless Sensor Networks: battery problems, radio problems,reliability, standards, . . .

    Two Main Practical Problems

    1 Cost. They are still too expensive (

    $100)

    2 Software. We need fault tolerant, flexible software for thesevery small devices

    10/46

    Introduction

    http://find/
  • 8/2/2019 Present US Prof

    11/46

    Technical ProblemsNeighbor Discovery

    Sensor Cost Problem

    Cost Factors

    1 processor, memory, radio cost $5$50 (depending onfeatures)

    2 board, enclosure, batteries, antenna cost

    $20$100

    3 sensors (temperature, acceleration, etc) cost $1-$10

    Comparison

    Note: cell phone processor is 100x more powerful than

    wireless sensor(But, cell phone consumes 10-100x more energy)

    Currently, some cell phones cost less than a wireless sensor!

    Why? Scale of manufacturing & competition

    11/46

    Introduction

    http://find/
  • 8/2/2019 Present US Prof

    12/46

    Technical ProblemsNeighbor Discovery

    Software Problems

    Challenges in Wireless Sensor Networks

    well-known research problems

    1 Localization: how does sensor know where it is?

    2 Clock Synchronization: how does sensor know what time it is?

    3 Power Conservation: how can sensors optimize battery life(and perhaps gain power from environment, from vibration,heat, sun)?

    4 Routing: how can sensors cooperate to forward data to theworld?

    5 Neighbor Discovery: how can sensors discover other sensors?

    12/46

    Introduction

    http://find/
  • 8/2/2019 Present US Prof

    13/46

    Technical ProblemsNeighbor Discovery

    Localization

    Problem: find (x, y) or even (x, y, z) coordinates of sensors.(Maybe sensors are dropped from airplane, maybe put randomly insome area.)

    Some Solution Ideas

    1 maybe a few sensors can have GPS they are called anchornodes

    2 sensing by ultrasound, by radar, or radio strength can estimatedistances between sensors

    3 from distances, each sensor can build a local map

    4 by messages between sensors, local maps are exchanged

    5 put together local maps to get big map of all sensor locations

    13/46

    Introduction

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    14/46

    Technical ProblemsNeighbor Discovery

    Localization

    14/46

    IntroductionT h i l P bl

    http://find/
  • 8/2/2019 Present US Prof

    15/46

    Technical ProblemsNeighbor Discovery

    Clock Synchronization

    Problem: each sensor has a clock, but how to make all clocks innetwork the same?

    Some Solution Ideas

    1 one sensor node is connected to internet, or has high-quality

    hardware clock that is accurate2 messages carry time from accurate clock to nearby (neighbor)

    sensors

    3 neighbors tell their neighbors, etc

    4 technical difficulty: messages may collide, then nobody getsmessage!

    5 hardware radio inserts random delay, to reduce collisions6 but random delay makes clocks unsynchronized!

    15/46

    IntroductionT h i l P bl s

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    16/46

    Technical ProblemsNeighbor Discovery

    Synchronization

    Best Case: random delay is known (access part is random amount)

    16/46

    IntroductionTechnical Problems

    http://find/
  • 8/2/2019 Present US Prof

    17/46

    Technical ProblemsNeighbor Discovery

    Synchronization

    Other Case: random delay is discovered later

    17/46

    IntroductionTechnical Problems

    http://find/
  • 8/2/2019 Present US Prof

    18/46

    Technical ProblemsNeighbor Discovery

    Power Conservation and Harvesting

    What Consumes or Supplies Power?

    1 sensors, local computing, radio consume power

    2

    batteries supply limited power ( 1.2 Amp Hours typical)3 ultra low-power sleep modes available (no radio, no sensing)

    sensor node could last for years, if mostly sleeping

    4 duty-cycle alternate sleep, wake periods (coordinated innetwork)

    5 active research: harvest solar power, energy from vibration,heat, . . .

    18/46

    IntroductionTechnical Problems

    http://find/
  • 8/2/2019 Present US Prof

    19/46

    Technical ProblemsNeighbor Discovery

    Routing

    1 sensors must forward data to base station

    2 for efficiency, sensor data can be aggregated in network

    3 some research: sensor network is queried like SQL data base!

    19/46

    IntroductionTechnical Problems

    http://find/
  • 8/2/2019 Present US Prof

    20/46

    Technical ProblemsNeighbor Discovery

    Neighbor Discovery

    Purpose: we look more in depth at one problem what if mostsensors use duty cycle to sleep most of time, to save power

    How can a sensor know if a new sensor was added tonetwork? What happens if sensor has batteries replace?What if a sensor reboots and forgets who areneighbors?

    Such events motivate neighbor discovery (hard, because radio isturned off most of time)

    20/46

    IntroductionTechnical Problems

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    21/46

    Neighbor Discovery

    BREAK OF PRESENTATION

    BREAK OF PRESENTATION: A Puzzle!Puzzle of Election

    1 n sensors, in line network (only communicate with limitedrange)

    2 each sensor has ID from [0, 264

    ]3 all have synchronized clocks, starting from 0

    4 puzzle: choose one sensor as leader using only n messages

    5 solution done when every sensor knows ID of leader

    21/46

    IntroductionTechnical Problems

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    22/46

    Neighbor Discovery

    Methods of Neighbor Discovery

    Survey of Techniques

    Hardware Ideas

    Wake by Radio (likeRFID) - messagesreceived wake up sensor

    Tiny Samples - very briefwakeup to sample radiowaves

    Software Ideas (ClassicalComputer Science) - use

    patterns of wake/sleep todiscover awake neighbor

    patterns must intersecteach other

    assume radio on forknown interval (longenough for discovery)

    22/46

    IntroductionTechnical Problems

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    23/46

    Neighbor Discovery

    Basic Notions in Discovery Problem

    Slotted Time (relax this later)

    although node clocks may be unsynchronized, assume time isdivided into slots and the slots are aligned

    Awake vs Asleep Slots

    for each node, some slots are asleep (radio off), others are awake

    Duty Cycle

    over time, ratio of awake time to sleep time should be /1duty cycles of 5%, 1%, 0.02%, . . . desired for good lifetime(goals depend on application requirement)

    23/46

    IntroductionTechnical ProblemsN i hb Di

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    24/46

    Neighbor Discovery

    B-MAC: Radio Sampling

    Radio Activity Sample (CCA)

    (CCA designed for sensing to prevent collisions) CCA quick, low-power wakeup to sample radio Idea: if sample looks like probable activity, then wake fully &

    read

    not a feature of all radios (only a few)

    24/46

    IntroductionTechnical ProblemsN i hb Di

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    25/46

    Neighbor Discovery

    B-MAC Low-level Behavior

    Leftmost peak is the sample, laterpeak is start of reading. If the sam-ple sees no radio activity, then crystaloscillator does not start.

    25/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    26/46

    Neighbor Discovery

    B-MAC Tradeoff

    Problem of Sampling

    The time taken after a sample, to turn on the radio ( 2ms)makes it too late to receive the message!

    Solution: longer messages

    1 change message format: increase the frame preamble (bytesfor synchronizing the start of a frame) enough to enablelisteners to receive the message

    2 alternative: back-to-back duplicate frames sent3 implicit tradeoffs:

    transmittors use more power, listeners use less power some bandwidth loss due to more bytes transmitted

    26/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    27/46

    Neighbor Discovery

    B-MAC Evaluation

    B-MAC implemented in TinyOS as LPL (Low-PowerListening)

    duty cycles reported in 0.52.5% range packet delivery success reported 98% (carefully tuned

    sampling) better than previous MAC protocols using CTS/RTS (5-10%

    duty cycles)

    success depends on hardware factors (CCA, bandwidth,

    transmission power costs) favors some application types over others (somecompute-sense tasks would interfere with real-time radiosampling; other applications need longer sleep periods andlower duty cycles)

    27/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    28/46

    Neighbor Discovery

    IEEE 802.11 Research

    Slot types: AW (active window), BW (beacon window), MTIM(RTS, CTS, ACK, data)

    28/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    29/46

    Neighbor Discovery

    Intersecting Patterns

    Power-Saving Modeintroduce sleeping as part of beacon interval (periodic) for dutycycle

    unsynchronized nodes may never see each other!Simple Solution

    Require AW > BI/2 + BW

    idea: if nodes are awake over half the time, there is overlap29/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    30/46

    g y

    Intersecting Patterns

    Quorum Solution

    1 not all periods contain sleep intervals

    2 for some parameter n, let 1/n of the periods be totally awake3 assumption: periods overlap enough for unsynchronized nodes

    to see each other

    4 n > space of node IDs

    5 nodes use fixed quorum to choose all-awake intervals, basedon ID

    30/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    31/46

    g y

    Intersecting Patterns

    31/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    32/46

    The Birthday Protocol

    Fact: given enough persons, some two will probably have samebirthday

    randomized sleeping

    node states: T, L, S (transmit, listen, sleep)

    modes: BLT, BL (birthday-listen-transmit or birthday-listen) each node randomly choses (depending on mode) which of T,

    L, S to do

    upon entry to BL: pt = 0, p = , ps = 1

    p

    upon entry to BLT: pt = t, p = , etcLike birthdays, high probability some are awake at same time(what to do after that . . . ?)

    32/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    33/46

    Birthday Example

    33/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    34/46

    Theory of Patterns

    Model Schedules as Block Designs

    each node has on/off schedule of T slots goal: discover neighbors within one scheduling period (one

    duty cycle)

    goal: deterministic, static cycle definition

    34/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    35/46

    Theory of Patterns

    definitions

    schedule for node v is given by fv =T1

    i=0 aixi where

    ai {0, 1} for on/off, xi is slot number f

    kv (x) = x

    k

    fv(x) mod (xT

    1) cyclic shift by k slots C(u, v) = minj,k | fju fkv | the (worst case) overlap Problem: design f so that C(u, v) m for all u, v let kv = fv(1) (duty-cycle) for symmetric designs, ku = kv

    for all u, v necessary condition: C(u, v) m km kv m T corollary: k m T (for symmetric designs)

    35/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    36/46

    Theory of Patterns

    Schedules follow a symmetric (v, k, ) design (node

    row)

    (Block Design theory found in most Discrete MathematicsTextbooks 36/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    37/46

    Theory of Patterns

    considerations for block design protocol

    fast, deterministic discovery

    can tune amount of overlap desired in design but, design requires knowing number of nodes each node needs individual pattern patterns irregular (difficult for some hardware/applications)

    higher duty cycle than other protocols: (T) (note, T hasto be large enough to accommodate number of nodes)

    37/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    38/46

    Discovery using Primes

    The DISCO Protocol

    1 wake schedule based on Chinese Remainder Theorem (note:schedules based on primes are in literature of wakeup problem)

    2 choose two primes p, q such that 1/p+ 1/q duty cycle3 cycle length at least max(p, q)

    4 number slots of cycle 1,2,3,. . . , then wake in slot i wheni mod p = 0 or i mod q = 0 (in a cycle, a node may wake

    more than once)5 eventually, neighbors must wake in common slot

    38/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    39/46

    Discovery using Primes

    39/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    40/46

    Discovery using Primes

    discovery rate may not be uniform ?!

    40/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    41/46

    Temporal Partition

    no-cost vs probing

    no-cost protocols: each cycle has awake and sleep intervals

    (each period is contiguous, unlike several other schemes) no-cost schedules based on primes selection of primes randomized (periodically) to assure

    intersection

    probing protocols add additional awake slots to speed updiscovery

    41/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    42/46

    Temporal Partition

    no-cost protocol

    parameter S is upper bound on how long a node may sleep duty cycle is 1/z for z S each synchronized group of nodes act identically duty cycle determined by max(p, q), for primes p, q each synchronized group pseudorandomly chooses from {p, q} choice is held for 2z cycles (after that, choose again)

    42/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    43/46

    Temporal Partition

    no-cost protocol results

    discovery of neighbor occurs in O(z2) slot times discovery for graph occurs in O(diam z2) slots times

    43/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    44/46

    Temporal Partition

    extra-cost protocols

    each cycle can have two awake intervals, normal andprobing

    probing interval consists of c consecutive slots trivial: c> z/2 assures fast discovery but with smaller c, need to increment start position in each

    cycle

    duty cycle is (1 + c)/z (normal is 1 slot) discovery upper bound is O(z2/c) slot times

    44/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    45/46

    Temporal Partition

    randomized probing protocols

    use one extra slot for probing selection of probing slot is random (per node) in each cycle result for clique topology: expected discovery of all nodes is

    O((log z + log log n) z) slot times

    45/46

    IntroductionTechnical ProblemsNeighbor Discovery

    http://find/http://goback/
  • 8/2/2019 Present US Prof

    46/46

    END OF PRESENTATION

    END OF PRESENTATION: A Puzzle

    1 There are 5 doors, numbered 1, 2, 3, 4, 5

    2 Behind each door is a room doors are closed

    3 Each door is labeled by its number, on both sides

    4 Two persons are in different rooms; other rooms are empty

    5 Operation: person can send a message to any numbered room

    6 Time is synchronous, starting with 1, then 2, 3, . . . with bothpersons starting at time 1

    Challenge: devise a protocol guaranteeing that one person willsend a message to the other with at most 3 total messages (not 3per person, but 3 in total)

    46/46

    http://find/http://goback/