Upload
nguyencong
View
218
Download
0
Embed Size (px)
Citation preview
1
7/9/2007AIIT Summer Course - M1 - Intro 1
Wireless Embedded Systems and NetworkingFoundations of IP-based Ubiquitous Sensor Networks
Next-Tier of the Internet - IP-based Wireless Sensor Networks
David E. CullerUniversity of California, Berkeley
Arch Rock Corp.July 9, 2007
7/9/2007AIIT Summer Course - M1 - Intro 2
Lecture Outline• Introductions• Ubiquitous Networks => Integration Real World
Information• Overview of Wireless Sensor Networks
– Technology Enablers– Application Opportunities– Systems Challenge
• Overview of the week’s course• Discussion
2
7/9/2007AIIT Summer Course - M1 - Intro 3
Introductions• Instructor: Dr. David E. Culler
– http://www.eecs.berkeley.edu/~culler– [email protected]– [email protected]
• Teaching Assistant: Jaein Jeong– http://www.eecs.berkeley.edu/~jaein– [email protected]
• Class Members …
7/9/2007AIIT Summer Course - M1 - Intro 4
The Internet today
3
7/9/2007AIIT Summer Course - M1 - Intro 5
The Real Internet ahead
0 2 4 6 8 10 12 14 16 18
-1
-0.5
0
0.5
1
Low resolution Sensor, Test4, Increasing frequency
Time (sec)
Acc
eler
atio
n (g
)
7/9/2007AIIT Summer Course - M1 - Intro 6
Why “Real” Information is so Important?
Improve Productivity
Protect HealthHigh-Confidence Transport
Enhance Safety & Security
Improve Food & H20
Save Resources
Preventing Failures
IncreaseComfort
Enable New Knowledge
4
7/9/2007AIIT Summer Course - M1 - Intro 7
The Web Today
ShoppingShopping
WeatherWeather
SciencSciencee
TechnologyTechnology
Financial Financial NEWSNEWS
MapsMaps
SportsSports
Integrates the World’s Human Generated Information
7/9/2007AIIT Summer Course - M1 - Intro 8
Most Real World Information goes “down the drain”
Wat
er U
sage
, Tem
p., Q
ualit
y
Sec
urity
and
Acc
ess
Con
trol
Gas
and
Ele
ctric
Usa
ge
Hea
ting,
AC
, and
Ven
tilat
ion
Sm
oke,
Fire
, CO
, Rad
on
Sm
art A
pplia
nces
Dig
ital H
ealth
Dev
ices
Bab
y M
onito
r (E
lder
car
e)
Ent
erta
inm
ent S
yste
m
Vid
eo G
ame
Con
sole
s
Clo
cks
and
Cal
enda
rs
Exe
rcis
e U
nits
5
7/9/2007AIIT Summer Course - M1 - Intro 9
Physical Information Streams
• Sensors are everywhere– But the data is mostly dropped on the floor
• Physical => Digital => Information• Each sensor becomes a network citizen
0 2 4 6 8 10 12 14 16 18
-1
-0.5
0
0.5
1
Low resolution Sensor, Test4, Increasing frequency
Time (sec)
Acce
lera
tion
(g)
010010001…
<value>temp=35
<\value>
7/9/2007AIIT Summer Course - M1 - Intro 10
SensorsBattery/Power
Mote:MicrocontrollerStorageRadioClock
Enclosure
Wireless Sensor Network• Network of tiny footprint computers• Optimized for long life on low power• Equipped to sense physical data• Networked using low-power radio
• Function:– Sense any measurable parameter
» Light, motion, chemicals, proximity, biometrics– Form network and communicate
» Automatic meshing and routing over the air– Apply user-defined business logic
» Sampling, summarizing, reporting events
• Form:– Mote (Processor, Radio, Storage) + Sensors– Embedded Operating System and Networking– Router & Gateways towards Enterprise IT systems
Router
Internet orEnterprise
Gateway
Wireless Sensor Nodes
6
7/9/2007AIIT Summer Course - M1 - Intro 11
Our goal: Ubiquitous Real Internet
802.15.4
<value>source=librarytime=12:31temp=25.1
<\value>
0 2 4 6 8 10 12 14 16 18
-1
-0.5
0
0.5
1
Low resolution Sensor, Test4, Increasing frequency
Time (sec)
Acce
lera
tion
(g)
Physical Signal
Wireless Packets
11 010010001Sampled Value010010001int temp;
<request service>
ServiceDescription
< get temp …set sample_rateset alarm … >
Web Services www.weather.com
XML information
<value>source=librarytime=12:53temp=26.7
<\value>
11 010110111
7/9/2007AIIT Summer Course - M1 - Intro 12
Technology Push / Application PullMonitoring & Managing Spaces and Things
technology
MEMSsensing Power
Comm. uRobotsactuate
Miniature, low-power connections to the physical world
ProcStore
7
7/9/2007AIIT Summer Course - M1 - Intro 13
Broad Technology Trends
Today: 1 million transistors per $
Moore’s Law: # transistors on cost-effective chip doubles every 18 months
Mote!years
ComputersPer Person
103:1
1:106
Laptop
PDA
Mainframe
Mini
WorkstationPC
Cell
1:1
1:103
Bell’s Law: a new computer class emerges every 10 years
Same fabrication technology provides CMOS radios for communication and micro-sensors
7/9/2007AIIT Summer Course - M1 - Intro 14
Enabling Technology
Microcontroller RadioCommunication
FlashStorage
Sensors
IEEE 802.15.4
Network
8
7/9/2007AIIT Summer Course - M1 - Intro 15
Enabling Technology
PhysicalWorld
7/9/2007AIIT Summer Course - M1 - Intro 16
The New Power Point
• Microcontrollers: – 1-10 mW active, 1 uW passive => 10-100 uW average
• Micro-sensors (MEMS, Materials, Circuits)– acceleration, vibration, gyroscope, tilt, magnetic, heat, motion,
pressure, temp, light, moisture, humidity, barometric– chemical (CO, CO2, radon), biological, microradar, ...– actuators too (mirrors, motors, smart surfaces, micro-robots)
• Micro-Radios– CMOS, short range (10 m), low bit-rate (200 kbps), 10 mW
• Micro-Power– Batteries: 1,000 mW*s/mm3, fuel cells– solar (10 mW/cm2, 0.1 mW indoors), vibration (~uW/gm), flow
• 1 cm3 battery => 1 year at 1 msgs/sec
9
7/9/2007AIIT Summer Course - M1 - Intro 17
Technology Push / Application Pull
applications
Monitoring & Managing Spaces and Things
technology
MEMSsensing Power
Comm. uRobotsactuate
Miniature, low-power connections to the physical world
ProcStore
7/9/2007AIIT Summer Course - M1 - Intro 18
WSN Applications
• Monitoring Spaces– Env. Monitoring, Conservation biology, ...– Precision agriculture, – built environment comfort & efficiency ... – alarms, security, surveillance, EPA, OSHA, treaty verification …
• Monitoring Things– automated meter reading – condition-based maintenance– disaster management– Civil infrastructure
• Interactions of Space and Things– manufacturing, asset tracking, fleet & franchise– context aware computing, non-verbal communication– Assistance - home/elder care
• Action and control– Optimizing processes– Automation
10
7/9/2007AIIT Summer Course - M1 - Intro 19
Early Industrial Examples
Temperature and Energy Monitoring
AMI – NURI Telecom & SK Telecom :
7/9/2007AIIT Summer Course - M1 - Intro 20
Example: A Month in the Life of a Redwood Tree
• Time: 1 month• Period: 5 minutes• Height: 15m to 70m• Angle: west side• Radius: 10-100cm• Count: 33 nodes/tree
– 155 sensors• Spacing: ~2m
11
7/9/2007AIIT Summer Course - M1 - Intro 21
(Mariscal et al. 2004)
The Result: Spatial Gradients over time
Macroscope in the Redwoods, Tolle et all, ACM SENSYS 2005
7/9/2007AIIT Summer Course - M1 - Intro 22
BatteryShielding skirt
O-rings
Top endcap
Cylindrical enclosure
Bottom endcap
Top Sensing Surface(incident PAR and TSR)
Bottom Sensing Surface(temperature, humidity,barometric pressurereflected PAR and TSR)
mote
The Node
The Complete Solution
DBMS(PostgreSQL)
TinyDB Sensor Network
TASK Gateway
GPRSModem
The Infrastructure
SELECT result_time, epoch, nodeid, parent, voltage, depth,humidity, humid_temp, hamatop, hamabot
FROM sensors
SAMPLE PERIOD 5 min
The Program
wake1.3%
samplelog send
forward
sleep98.7%
The Behavior
12
7/9/2007AIIT Summer Course - M1 - Intro 23
NIMS RD Merced and San Joaquin River Confluence(Harmon, Kaiser, et al)
confluence
nitrate distribution
San Joaquin R.
Merced R.
mixing zone
gagingstation
river bedmap
Sonar-based bathymetry (depth)
7/9/2007AIIT Summer Course - M1 - Intro 24
Environmental Monitoring Characteristics
• Large number of nodes spread over physical space of interest
• Low sample rate (of multiple sensor modes)– Further reduced by node signal processing and compression
• Reliable dissemination of configuration, command, or query• Low-rate scalar data collection
– Many options for reliability, Predictable reporting delays
• Low duty cycle for long lifetime
• Energy availability is application specific• Extension to event detection and triggering demands more
responsive protocols• Extension to control requires predictable outward routing
13
7/9/2007AIIT Summer Course - M1 - Intro 25
Intel Fab & BP Machine Monitoring
• Goal: Pre-empt equipment failures through non-destructive analysis
• Media Gap: Majority of data is collected by hand
– Thousands of sense points• Intel Fab and an Oil Tanker engine room• Wireless vibration data collection
– High-speed sampling, reliable bulk transfer– Sensor-to-Analysis App flow– Overcome interference– Support disconnected operation
• Loch Rannoch Network– 150 accelerometers– 26 motes– 4 stargates– 1 PC
• Efficient installation and management– 36hr install period on tanker– No crew intervention
Intranet
802.11Backbone
Cluster Head
RootStargate
EnterpriseServer
SensorClusters
Stargate Gateway
BridgeStargate
Intranet
802.11Backbone
Cluster Head
RootStargate
EnterpriseServer
SensorClusters
Stargate Gateway
BridgeStargate
7/9/2007AIIT Summer Course - M1 - Intro 26
GGB Structural Monitoring
Base Station
Berkeley SF Bay
mid-spanquarter-span59
260ft16ft
27 1
1310 38 41211
14
L3L5 L1L4 L2
50 51 52 53 54 55 56 57 58 59 60-15
-10
-5
0
5
10
15
Time (sec)
Acce
lera
tion
(mg) V2
V4V13V7V9
-0.99
0.19-0.73
1.000.74
Frequency: 1.41 HzDamping Ratio: 2%
14
7/9/2007AIIT Summer Course - M1 - Intro 27
Machine Monitoring Characteristics• Nodes clustered on specific equipment• High sample rate (over short bursts)
– Substantial local signal processing• Control and management is like Env. Monitoring• Data collection in single-point streams
– Reliable end-to-end transport• Shallow networks in practice
• Well understood– but not yet well supported
• Energy availability is site specific• Natural extensions for local access (inspector)• Structural monitoring is much harder than CBM
– Time coordinated samples, cross-node data analysis• Environmental factors critical to sensing accuracy
7/9/2007AIIT Summer Course - M1 - Intro 28
Medical Monitoring
Wireless module
15
7/9/2007AIIT Summer Course - M1 - Intro 29
Large-Scale Security and Tracking
• 557 nodes over several km• Self-powered, self-maintaining• 2 person-day deployment• OTA programming and management
infrastructure
Solar Cell
Buzzer
Passive IR x4
User / Reset
USB Port
Microphone
Magnetometer
7/9/2007AIIT Summer Course - M1 - Intro 30
Example Tiers
telos-USB
telos
USB-WiFi
WiFi repeater
WiFi AP
Root Server
trio
557 node DARPA NEST Aug 05
UCB Trio node
802.15.4 – 802.11 gateway
Transit Network(IP or not)
Access point- Base station- Proxy
Sensor PatchPatch Network
Data Service
Intranet/Internet (IP)
Client Data Browsingand Processing
Sensor Node
Gateway
Other information sources
Sensor Node
16
7/9/2007AIIT Summer Course - M1 - Intro 31
Sensing => Understanding
Plus UAV exfiltration, distributed tracking
Wireless PIR readings
7/9/2007AIIT Summer Course - M1 - Intro 32
Transit Network(IP or not)
Access point- Base station- Proxy
Sensor Patch
Patch Network
Data Service
Intranet/Internet (IP)
Client Data Browsingand Processing
Sensor Node
GatewayGateway
Verification links
Other information sources
Sensor Node
Canonical SensorNet Network Architecture
17
7/9/2007AIIT Summer Course - M1 - Intro 33
Proximity, Tracking, Compliance
Industrial:Asset mgmt
CBMProcess control
Energy mgmtenvironmental
MedicalAgriculture
HLS…
Home:LightingHVACaccess
Prox. Tracking Shipping QoS:Vibration threshold
Temperature/humidity threshold
Safety:Chemical-to-chemical
safety alertsHuman-to-chemical
safety alerts
Building:SecurityHVACAMR
LightingAccess control
“The information about the package is as valuable as the delivery of the package itself.”
-Fred SmithCEO, FedEx
Current Conditions: In Motion, No Magnetic Fields, 67°• Humidity Range: 30-35%• Temp. Range: 55 ° - 78 °
7/9/2007AIIT Summer Course - M1 - Intro 34
Interaction Monitoring Characteristics
• Many different forms of monitoring– Untagged vs tagged items
• Mobility is central– Mobile nodes moving through stationary networks– Networks moving through networks– Proximity detection and action
• Wide range of communication patterns– Mobile-mobile routing
• Adaptive protocols• Sophisticated routing• Reliability through custody transfer• Deep interactions with IT infrastructure
18
7/9/2007AIIT Summer Course - M1 - Intro 35
Example: Petroleum Industry
Condition-based Maintenance
Safety
workersstorage
process
Pipelines
integritysecurity
Tracking
tankcars
constructionassets
“This technology will transform everything we touch, not just in business but in our personal lives as well.”
--P.P. Darukhanavala, CTO, British Petroleum
7/9/2007AIIT Summer Course - M1 - Intro 36
Characteristics of Sensor Nets?
• Not Universal pt-pt file transfer and keystrokes between hosts!• Aggregate communication
– dissemination, data collection, aggregation
• Resource constraints– Limited bandwidth, limited storage, limited energy
• In-network processing and storage– Really
• Intermittent connectivity– Low-power operation, out of range, obstructions
• Communicate with data or logical services, not just devices– Datacentric
• Mobility– Devices moving, tags, networks moving through networks
19
7/9/2007AIIT Summer Course - M1 - Intro 37
Core challenges
• Long-lived, unattended, reliable operation– Power
» Wireless often means self-powered• Batteries• Ambient sources (light, current, vibration, heat, …)
– Limited Memory– Self-organization and Management– Error, fault, noise mitigation
• Ease of broad application development– New forms of information– Integration into enterprise processes and actions– Extracting value from vast, novel sources of information
7/9/2007AIIT Summer Course - M1 - Intro 38
A Systems Challenge
applications
service
network
system
architecture
data mgmt
Monitoring & Managing Spaces and Things
technology
MEMSsensing Power
Comm. uRobotsactuate
Miniature, low-power connections to the physical world
ProcStore
20
7/9/2007AIIT Summer Course - M1 - Intro 39
Mote Architecture Evolution
SmartDustWeC Rene Mica
Intel/UCBdot
InteliMOTE
XBOWcc-dot
XBOWmica2
Intelrene’
XBOWrene2
Intelcf-mica
Boschcc-mica
Dust Incblue cc-TI
digital sunrain-mica
XBOWmica
zeevo BT
Telos
XBOWmicaZ
IntelMOTE2
EyesBTNode
trio
97
LWIM-III(UCLA)
9998 00 01 0302 04 0605 07
DA
RPA
SE
NS
IT
LWIM
Expe
ditio
n
NES
T
NE
TS/
NO
SS
CE
NS
S
TC
NSF Cyb
er-
Phy
sica
l
WINS(UCLA/ROckwell)
7/9/2007AIIT Summer Course - M1 - Intro 40
Storage ProcessingWireless SensorsWSN mote platform
Operating Systems and Networking
Radio Serial
Flash ADC, Sensor I/F
MCU, Timers, Bus,…
Link
NetworkProtocols Blocks,
Logs, FilesScheduling,
ManagementStreaming
drivers
Over-the-air Programming
Applications and Services
Communication CentricResource-ConstrainedEvent-driven Execution
Tiny
OS
2.0
21
7/9/2007AIIT Summer Course - M1 - Intro 41
Self-Organized Mesh Routing
0
112
2
2
22
7/9/2007AIIT Summer Course - M1 - Intro 42
A worldwide community
StorageWireless Processing
Sensors
SmartDustNEST
Wireless Sensor Networks
22
7/9/2007AIIT Summer Course - M1 - Intro 43
Plan for the Course
Deep Embedded Systems
Development or
Self-Directed
TinyOS 2.0 based embedded
Applications
Using IP and 6LoWPAN
Networking
Making USNsubiquitous - build
WSN applications as Web Services
Experience with IP-based Wireless Sensor
NetworksLab
Future Developments
In-networking Processing and
Sensor Data Analysis
6LoWPAN and IP Concepts
Embedded Web Services and
Industrial Standards
Operating Systems for Communication-centric Devices
Topic 3
Security and Reliability
Time-Synch &Embedded Distributed
Systems
Low-Power Wireless
Communication
Robust Embedded Networking
WSN Technology and Hardware
ArchitecturesTopic 2
Micro-Power Systems
Timers and System
Resources
Self-Organized Multi-hop Routing
TinyOS 2.0 and Application Services
Next-Tier of the Internet - IP-based Wireless Sensor Networks (WSN)
Topic 1
FridayThursdayWednesdayTuesdayMonday
Technical Depth and Detail
7/9/2007AIIT Summer Course - M1 - Intro 44
Perspective on the Labs• Traditional TinyOS “bootcamp”
– Start with raw hardware, learn installation tools, learn lowest level system concepts, follow series of lessons from blinking the LED, on up.
– If lucky have very basic “hello’ app at the end
• This week’s State-of-the Art approach– Begin with complete sensor network solution – rich
application, built on web services, over embedded IP, robust, low-power, responsive mesh networking.
– Deploy and test custom application, and work our way down– Web services – full programmatic access from the
infrastructure– IP network layer– Embedded programming on a powerful, communication-
centric kernel– Experience with the open-source tools and code base.
23
7/9/2007AIIT Summer Course - M1 - Intro 45
Technology That We’ll Use
• Broad Open-Source Resources– www.tinyos.net, http://sourceforge.net/projects/tinyos/
» TinyOS 2.0, NesC– Sourceforge, Cygwin, Redhat, FSF, GCC, PHP., Java, …
• Key Commercial Offerings– Mote Hardware
» Arch Rock, KETI, Crossbow, Moteiv, Maxfor, …– IP / Web Service Based Wireless Sensor Network Solution
» Arch Rock Primer Pack / IP– Widely available Wintel / Linux systems, networking & Prog.
7/9/2007AIIT Summer Course - M1 - Intro 46
Questions