150 likes | 353 Views
A Heterogeneous Testbed with TinyOS and EmStar. TinyOS Technology Exchange 02/11/05 Martin Lukac – mlukac@cs.ucla.edu Contributors : Lewis Girod, Thanos Stathopoulos, Nithya Ramanathan, Tom Schoellhammer, Ning Xu, Martin Lukac, Richard Guy, Deborah Estrin CENS Systems Lab.
E N D
A Heterogeneous Testbed with TinyOS and EmStar TinyOS Technology Exchange 02/11/05 Martin Lukac – mlukac@cs.ucla.edu Contributors: Lewis Girod, Thanos Stathopoulos, Nithya Ramanathan, Tom Schoellhammer, Ning Xu, Martin Lukac, Richard Guy, Deborah Estrin CENS Systems Lab
Testbeds for Heterogeneous Applications • Real applications are heterogeneous • Scaling beyond 40-50 motes is simpler with tiered architecture of low-power motes and 802.11-enabled microservers • Heterogeneous systems are still complicated • Separately motes and microservers are complex systems • 1 binary on one type of platform is hard enough to debug • Multiple interacting binaries running on several platforms is scary • We are interested in evaluating and debugging: • Motes operating under real RF conditions • Interacting motes and microservers • Coordinated and cooperating microservers
CENS Heterogeneous Testbed 3286 3256N 3256S … 3256 Copy Room 3531 Deborah’s Office … • 39 Nodes – 3rd floor of Boelter Hall • 26 Mica2s on MIB510s • MDA300’s • Connected through serial multiplexers to server
CENS Heterogeneous Testbed 3286 3256N 3256S … 3256 Copy Room 3531 Deborah’s Office … • 13 Stargates with 802.11 • Still have Mica2s with MDA300s • Connected through wired ethernet
Centralized SimulationDeployed Radios Simulation Server Node 1 Node 2 Node 3 Node 4 Node 5 Node 6 Node 7 Node 8 • All application code runs on one server • The server uses the real nodes as network interfaces • Access to all logs • Global view of order of events • Easier measurement Serial Wired Ethernet (Sockets)
Anatomy of a Node EmTOS TinyOS App Node 7 • EmStar • A Framework for simulation, emulation, and deployment of heterogeneous sensor networks • Multi-process architecture. Runs on Linux. • EmTOS • New platform for TinyOS: “make emstar” • Builds a Linux binary from TinyOS code that uses other EmStar services • Fusdnet • Remote access protocol for EmStar services • HostMote • Like serial forwarder: talks to motes over serial • Handles communication between EmTOS and mote • Transceiver (runs on the mote!) • Transmits and receives packets from hostmote and radio Fusdnet Ethernet HostMote Serial Transceiver
Centralized SimulationDeployed Radios EmStar App EmStar App EmTOS EmTOS EmTOS TinyOS App TinyOS App TinyOS App Simulation Server … … HostMote HostMote HostMote Fusdnet Fusdnet Serial Wired Ethernet (Sockets) … … • Collection of tools to script, visualize, and measure running simulation Sample command line to start testbed: $ emrun/emsim ../devel/objecttrack/tabs/track.sim
Validating Simulation Results EmStar App EmStar App EmTOS EmTOS EmTOS TinyOS App TinyOS App TinyOS App Simulation Server … … • Radios run in real time – No virtual clock • Can not do precise timing and hardware interrupts • Testbed provides “Native” mode • Program motes with TinyOS binary (like Motelab) HostMote HostMote HostMote Fusdnet Fusdnet Serial Wired Ethernet (Sockets) … …
Thanks for listening! Questions?
Mote Emulation EmTOS EmTOS EmTOS EmTOS EmTOS TinyOS App TinyOS App TinyOS App TinyOS App TinyOS App Simulation Server … … motenic motenic motenic motenic motenic HostMote HostMote HostMote Fusdnet Fusdnet Serial MUX to Motes Ethernet Switch Stargate Stargate Fusdnet Server Fusdnet Server … … HostMote HostMote Transceiver Transceiver Transceiver Transceiver
Microserver & Mote Emulation EmStar App EmTOS TinyOS App Simulation Server … Ethernet Switch Fusdnet Client Fusdnet Client Stargate Stargate Fusdnet Server Fusdnet Server HostMote udpd … HostMote udpd 802.11 802.11 Transceiver Transceiver
Hybrid Mode Transceiver EssDse Transceiver Transceiver Transceiver EssDse ESS Sink ESS Sink ESS Mote Multihop EssDse Multihop Simulation Server Serial MUX HostMote Serial Protocol Hybrid Mode • Mixture of real and emulated motes • Range of possibilities Dbg Stub Dbg Stub … Microservers Motes
EmSim Modes Pure Simulation Full Logs and Status Emulation Mode Hybrid Mode Visibility Limited “Out Of Band” Status Reports Real Mode Deployment No OOB Status Reality (Runs at scale of emulation array) Pure Sim Deployed
Testbed Supports Native Mode • Emulating motes lack reality • Can’t do precise timing and hardware interrupts • Packet timing • Can’t emulate MAC layer • Testbed provides “Native” mode • Push TinyOS binary to motes (like Motelab) • Can debug over serial line