1
University of Freiburg Computer Networks and Telematics
- Prof. Christian Schindelhauer
Wireless Sensor Networks
12th Lecture 05.12.2006
Christian Schindelhauer
schindel@informatik.uni-freiburg.de schindel@informatik.uni-freiburg.de
Wireless Sensor Networks 12th Lecture 05.12.2006 Christian - - PowerPoint PPT Presentation
Wireless Sensor Networks 12th Lecture 05.12.2006 Christian Schindelhauer schindel@informatik.uni-freiburg.de schindel@informatik.uni-freiburg.de University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer 1
1
University of Freiburg Computer Networks and Telematics
Christian Schindelhauer
schindel@informatik.uni-freiburg.de schindel@informatik.uni-freiburg.de
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-2
Overview
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-3
Example
distant sound event using an array of acoustic sensors
x and d are known:
from differences in time of arrival – x = C Δt where C is the speed of sound – For d=1 m and Δt=0.001 we get θ = 0.336 radians = 19.3 degree – When Δt is estimated with 500 µs error, the θ estimates can vary between 0.166 and 0.518 radians (9.5 ... 29 degree)
synch can lead to significantly different angle estimates
d
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-4
The role of time in WSNs
synchronize clocks of sensor nodes
protocols: – Applications:
– Protocols:
– Distributed debugging
their correct order of appearance
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-5
What MAC Relies on Synchronized Clocks?
Wireless medium access Centralized Distributed Contention- based Schedule- based Fixed assignment Demand assignment
Contention- based
Schedule- based
Fixed assignment Demand assignment
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-6
Repetition: Sensor-MAC (S-MAC)
–Most of the time, nothing happens
allow packet exchange (rendez-vous) –Only in these active periods, packet exchanges happen –Need to also exchange wakeup schedule between neighbors –When awake, essentially perform RTS/CTS
Wakeup period Active period Sleep period For SYNCH For RTS For CTS
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-7
Repetition: S-MAC synchronized islands
schedules from different nodes – “Synchronized islands”
Time A A A A C C C C A B B B B D D D A C B D E E E E E E E
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-8
Low-Energy Adaptive Clustering Hierarchy (LEACH)
can reach sink directly
– Setup phase; details: later – About 5% of nodes become clusterhead (depends on scenario) – Role of clusterhead is rotated to share the burden – Clusterheads advertise themselves, ordinary nodes join CH with strongest signal – Clusterheads organize
– CHs collect & aggregate data from all cluster members – Report aggregated data to sink using CDMA
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-9
SMACS
Self-Organizing Medium Access Control for Sensor Networks
necessarily in phase, but still time synchronization required!)
– Link: radio channel + time slot at both sender and receiver – Free of collisions at receiver – Channel picked randomly, slot is searched greedily until a collision-free slot is found
superframe
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-10
TRAMA
Traffic Adaptive Medium Access Protocol
– Random access periods – Scheduled access periods
– Learning about their two-hop neighborhood – Using neighborhood exchange protocol: In random access period, send small, incremental neighborhood update information in randomly selected time slots
– Using schedule exchange protocol – Similar to neighborhood exchange
– Elect transmitter, receiver and stand-by nodes for each transmission slot – Remove nodes without traffic from election
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-11
IEEE 802.15.4 MAC needs Synchronized Clocks
– Forming a PAN, identified by a PAN identifier
– Single channel at any one time – Combines contention-based and schedule-based schemes
– GTS assigned to devices upon request
Active period Inactive period Contention access period Guaranteed time slots (GTS) Beacon
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-12
The role of time in WSNs
– notion of time should be related to physical time:
– one second of a WSN clock should be close to
– Coordinated Universal Time – generated from atomic clocks – modified by insertion of leap seconds to keep in synch with astronomical timescales (one rotation
– timescale based on the rotation of earth
– relative ordering of events counts but not their relation to real time
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-13
Clocks in WSN nodes
– Oscillator generates pulses at a fixed nominal frequency – A counter register is incremented after a fixed number of pulses
– Node i’s register value at real time t is Hi(t)
capital letters denote timestamps or anything else visible to nodes
– θi is the (drift) rate, φi the phase shift – Time synchronization algorithms modify θi and φi, but not the counter register
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-14
Synchronization accuracy / agreement
– synchronization with external real time scale like UTC – Nodes i=1, ..., n are accurate at time t within bound δ when |Li(t) – t|<δ for all i
scale
– No external timescale, nodes must agree on common time – Nodes i=1, ..., n agree on time within bound δ when |Li(t) – Lj(t)|<δ for all i,j
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-15
Sources of inaccuracies
– phases θi are random
– (drift, skew)
– the ppm value counts the additional pulses or lost pulses over the time
– For sensor nodes
second every 2.8 hours) are assumed – Berkeley motes have an average drift of 40 ppm
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-16
Sources of inaccuracies
– on time
– environment
– frequent re-synchronization necessary – However, stability over tens of minutes is often a reasonable assumption
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-17
General properties of time synchronization algorithms
– Keep all nodes of a WSN synchronized or only a local neighborhood?
– A GPS, Galileo, GLONASS receiver would be a hardware solution – German Broadcasts: A time signal from DCF77
can be received on 77.5 kHz to a range of about 2000 km. – Loran-C sends signals for synchronization – but often too
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-18
General properties of time synchronization algorithms
– Is time synchronization achieved before or after an interesting event? Post-facto synchronization
– Should backward jumps of local clocks be avoided?
– Avoid sudden jumps?
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-19
Performance metrics
– Deterministic algorithms:
– Stochastic algorithms
– # of exchanged packets – computational costs
University of Freiburg Institute of Computer Science Computer Networks and Telematics
Wireless Sensor Networks 05.12.2006 Lecture No. 12-20
Fundamental Building Blocks
– when to trigger a time synchronization round?
– figuring out the other nodes clocks with the help of exchanging packets
– compute adjustments for own local clock based on estimated clocks of
– figure out which node synchronizes with which other nodes
21
University of Freiburg Computer Networks and Telematics
(and thanks go also to Andreas Willig for providing slides)
Wireless Sensor Networks Christian Schindelhauer 12th Lecture 05.12.2006
schindel@informatik.uni-freiburg.de schindel@informatik.uni-freiburg.de