40
IN4316 - Wireless Sensor Networks IN4316 IN4316 - - Wireless Sensor Wireless Sensor Networks Networks Koen Langendoen Koen Langendoen Stefan Stefan Dulman Dulman , , Kavitha Kavitha Muthukrishnan Muthukrishnan Anrei Anrei Pruteanu Pruteanu , , Niels Niels Brouwers Brouwers , Matthias Woehrle , Matthias Woehrle

IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

  • Upload
    others

  • View
    13

  • Download
    0

Embed Size (px)

Citation preview

Page 1: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

IN4316 - Wireless Sensor Networks

IN4316 IN4316 -- Wireless Sensor Wireless Sensor NetworksNetworks

Koen LangendoenKoen LangendoenStefan Stefan DulmanDulman, , KavithaKavitha MuthukrishnanMuthukrishnan

AnreiAnrei PruteanuPruteanu, , NielsNiels BrouwersBrouwers, Matthias Woehrle, Matthias Woehrle

Page 2: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

VLSI Trends: Moore’s Law

• in 1965, Gordon Moore predicted that transistors would continue to shrink, allowing:– doubled transistor density – doubled performanceevery 18-24 months

Gordon MooreIntel Co-Founder

Page 3: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Bell’s law:every decade a new generation

[Culler:2004]

log

(peo

ple

per c

ompu

ter)

1960 1970 1980 1990 2000 2010

0

Page 4: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Wireless Sensor NetworksThe beginning …

Next Century Challenges: Mobile Networking for “Smart Dust”

J. M. Kahn,R. H. Katz,K. S. J. Pister

(MobiCom 1999)

Page 5: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Smart Dust @ UC Berkeley

Advances in digital circuitry will bring us:• ultra low-power devices, with• small form factor, at • very low cost

fostering a new range of applications

Autonomous sensing and communication in a cubic millimeter

Page 6: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Wireless sensor networks

Many, cheap nodes• wireless ⇒ easy to install• intelligent ⇒ collaboration• low-power ⇒ long lifetime

EmbeddedProcessor

Transceiver

Memory

SensorsBattery

Page 7: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Process industry Agriculture

Envisioned applicationsFire fighting

Urban warfare

Medical

and many more…

Page 8: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

The first steps …

• Develop COTS hardware• Develop software (TinyOS)• Run experiments• Prototype applications

Tmote Sky

Imote

BTnode rev3Mica2

TNOdes

ATmega128L CPU (8-bit, 8 MHz)• 128 KB FLASH (program)• 4 KB DRAM (data memory)

Chipcon CC1000 radio (868 MHz)• modulation: FSK 76.8 kBaud• output power: -20 to 10 dBm

Great Duck Island

[UCB, 2002]

Sniper detection

[Vanderbilt, 2003]

[Princeton, 2004]

ZebraNet

Page 9: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

62

109142392

667

1370

2260

3340

41004440

4150

0500

100015002000250030003500400045005000

1998

1999

2000

2001

2002

2003

2004

2005

2006

2007

2008

Topics:• self-configuration• node localization • low-bitrate communication• ad-hoc routing• in-network data processing• time synchronization • …

WSN research

#publications

Constraints:• robustness• limited resources• energy efficiency

Page 10: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Energy breakdown

TNOdes

Page 11: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

The battery crisis (Moore’s law evil twin brother)

Limited capacity

Slow increase of capacity• ~8% yearly increase (Wh/cm3)• doubles every 9 years

~2 kcal (per battery)

Page 12: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Back to realityBack to realityBack to reality

Page 13: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Course information

• Goal: – to acquire knowledge and understanding of

Wireless Sensor Networks, in particular, of how the inherent need for energy-efficient operation requires a new approach to distributed computing.

• Means:– by reading, presenting, and discussing

state-of-the-art research papers

Page 14: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Course contents

• Lectures (2x)– wireless communication– ad-hoc + sensor networks

• Seminar (5x)– Medium access control, Localization, Routing

Programming, Systems

• Darjeeling Lab (1x)– hands-on experience

Page 15: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Seminar organization

• Audience– prepare by reading classic papers– submit short summary before class

• Presenters – select a special topic (today)– browse recent literature– propose paper for presentation (-1 week)– prepare Powerpoint slides (-2 days)– present paper + lead discussion– write report (+2 weeks)

Page 16: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Wireless CommunicationWireless CommunicationWireless Communicationcrash coursecrash course

Page 17: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Wireless technologies

SatelliteLinks

SWRadio

MWRadio

FMRadio

MobileTelephony,WLL

WLANsBlueoothIR

1,000 Km100 Km10 Km1 Km100 m10 m1 m

Page 18: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Wireless communication

• Error prone, unpredictable medium• Impact on protocol stack

– medium access control– localization– routing

R

Unit Disk Graph model

Unrealistic assumptionsin many WSN papers

Page 19: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Bottom-up approach

• Wireless channel– RF propagation– noise & interference

• Physical layer– modulation– coding

Page 20: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Wireless = Waves

• Electromagnetic radiation• Sinusoidal wave with a

frequency/wavelength• Emitted by sinusoidal current running

through a wire (transmitting antenna)• Induces current in receiving antenna

λcf =

Page 21: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Electromagnetic waves

• Propagation in vacuum

wave length λ

Page 22: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Electromagnetic waves

• Free-space loss– due to surface area increase

2

⎟⎠⎞

⎜⎝⎛4

=d

GGPP RTTR πλ

d

Also known as Friisfree space formula

Page 23: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Antenna basics

Isotropic Dipole High gain directional

0 dBi 2.2 dBi 14 dBi

isotropic

ldirectiona

PPG =Antenna gain:

Page 24: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

dB and friends

• dB (Decibel)– Denote the difference between two power levels– (P2/P1)[dB] = 10 * log10 (P2/P1)

• dBm (dB milliWatt)– Denote the power level relative to 1 mW– P[dBm] = 10 * log10 (P/1mW)

• dBi (dB isotropic)– Denote the gain a given antenna has, as compared

to a theoretical isotropic (point source) antenna

Page 25: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Antenna radiation in theory

Vertical Whip Antenna, 1/4 Wave

zy

elevation

x

y

azimuth

[http://www.rfcafe.com/references/electrical/antenna_patterns.htm]

Page 26: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Antenna radiation in practice

[http://www.mwrf.com/]

Distortion:• metal objects• electronics• polarization

Page 27: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Wireless Transmission Impairments

• Attenuation (free space loss, directionality)• Noise (thermal + impulse)• Objects

– reflection (+ scattering + diffraction)– absorption– refraction absorption

Page 28: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Reflections ⇒ multipath distortion

• Propagation along multiple paths leads to self interference

• Unlike attenuation and noise, multipath cannot be handled by increasing the send power

Ceiling

Floor

TX RX

Obstruction

Time

Received Signals

Combined Results

Time

Page 29: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Reflections ⇒ shadowing

• A large object shields the area behind it• As for multipath, shadowing cannot be

handled by increasing the send power

shadowshadowareaareaTXTX

Page 30: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Propagation loss

[G. Janssen, ET4358]

Attenuation = path loss + shadowing + multipath

Fading depends– location– frequency– time

Page 31: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Path-loss Exponents

• Depends on environment:– Free space 2– Urban area cellular 2.7 to 3.5– Shadowed urban cell 3 to 5– In building LOS 1.6 to 1.8– Obstructed in building 4 to 6– Obstructed in factories 2 to 3

2

⎟⎠⎞

⎜⎝⎛4

=d

GGPP RTTR πλ

Page 32: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

t

Physical layer

• Encoding information as waves– modification of a carrier signal– high frequency: low loss, small antennas

• Modulation– digital to analog conversion (and back)– options: amplitude, frequency, phase

Page 33: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Digital modulation

• Amplitude Shift Keying (ASK):– very simple– low bandwidth requirements– very susceptible to interference

• Frequency Shift Keying (FSK):– needs larger bandwidth

• Phase Shift Keying (PSK):– more complex– robust against interference

1 0 1

Page 34: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Mote Evolution

Page 35: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Physical layer techniques

• Handling noise– channel coding

• Handling fading– location: antenna diversity– frequency: hopping, spread spectrum, OFDM,

UWB– time: (retransmissions; link layer and up)

Page 36: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Channel coding

• Forward Error Correction (FEC)– add redundant information at sender– coding gain vs. overheads (code rate, processing)

• Types– block codes (BCH, Reed-Solomon)– convolution codes (Viterbi, Turbo)

• Error bursts– interleaving (at the expense of latency)

Page 37: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Radio Block Diagram

Coding Modulation Antenna

DemodulationDecoding Antenna pathloss

Page 38: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Radio interface

• Data– Serial Peripheral Interface (SPI) Bus

• Control– configuration (freq. channel, etc.)– TX/RX mode (half duplex)– power on/off (sleep modes)

CPU Radio

Page 39: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Wireless Sensor Networks

• Technology push– “Smart Dust: autonomous sensing and

communication in a cubic millimeter”

• Novel research area – focus on energy efficiency

• Hostile wireless environment– channel basics (RF propagation & interference)– physical layer (modulation & coding)

Page 40: IN4316 IN4316 - Wireless Sensor IN4316 - Wireless Sensor ...Reflections ⇒multipath distortion • Propagation along multiple paths leads to self interference • Unlike attenuation

Home work

• Check out info on Blackboard

• Register with the CPM submission system– send {Name, student nr, NetID} to

Koen Langendoen <[email protected]>

– try account at

http://cpm.ewi.tudelft.nl/