DOC PREVIEW
Berkeley COMPSCI 294 - SOS - Dynamic operating system for sensor networks

This preview shows page 1-2-3-18-19-36-37-38 out of 38 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 38 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 38 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 38 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 38 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 38 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 38 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 38 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 38 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 38 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

SOS - Dynamic operating system for sensor networksEmbedded Sensor NetworksRe-tasking sensor networksRe-programming ChallengesSensor Network OS State of the ArtTowards general purpose sensor OSSOS Operating SystemSOS ApplicationContributionsOutlineArchitecture OverviewSOS OverviewDesigning Safety FeaturesInstalling Dynamic ModulesInter-module CommunicationDynamic Linking OverviewDynamic Linking DesignDynamic Linking Safety FeaturesMessage Passing SystemMessaging Safety FeaturesModule-Kernel CommunicationDynamic Memory AllocationGarbage CollectionSlide 24EvaluationApplication Performance ComparisonPerformance OverheadUpdate CostsLessons LearntSummaryFuture WorkQuestions ?Extra SlidesProgrammingMemory FootprintMicro BenchmarksRe-programming CostSOS ApplicationsMobisys 2005 1SOS - Dynamic operating system for sensor networksSimon Han, Ram Kumar, Roy Shea, Eddie Kohler and Mani Srivastavahttp://nesl.ee.ucla.edu/projects/sosMobisys 20052Embedded Sensor NetworksEmergency ResponseHabitat MonitoringStructural MonitoringResource Constrained NodesLarge scale ad-hoc networksDesign Goal - Long lifetimeMobisys 20053Re-tasking sensor networksData GatheringBird LocalizationFire EmergencyRe-tasking a deployed networkRequires in-situ re-programmingMobisys 20054Re-programming ChallengesSevere resource constraints on nodes4 KB RAM, 128 KB FLASH Instruction Memory, 2 AA batteriesAvoiding crashesUnattended operation - Crashed node is uselessNo architecture support for protection e.g. MMUBalancing flexible and concise updatesUpdate applications, services and driversEnergy efficient distribution and storageMobisys 20055Sensor Network OS State of the ArtTinyOS - Application specific OSApplication, OS and drivers are NesC componentsSelect app components, statically analyze and optimizeExtensive set of well-tuned componentsSupports full binary upgradesMaté - Application specific Virtual MachineDomain specific bytecode interpreter on TinyOSPrograms are small scripts containing VM instructionsBetter suited for application specific tuningInterpreter updates require fallback to TinyOSMobisys 20056Towards general purpose sensor OSTinyOS and MatéApplication and OS are tightly linkedDesign Goal: An application independent sensor OSIndependently written & deployed apps run on one networkTowards traditional kernel space/user space programming modelRe-programming via binary modulesRisk: Lose safety provided by static analysis or dynamic interpreterDesign ChallengeProvide general purpose OS semantics on resource constrained embedded sensor nodesMobisys 20057SOS Operating SystemDynamic operating system for sensor networksKernel and dynamically-loadable modulesPorted to Mica2, MicaZ, XYZ and TelosConvenient, yet compact, kernel interfaceDynamic function links - 10 bytes overhead/functionSafety features through run-time checksType safe linkage, Memory overflow checksPerformanceNo worse than TinyOS for real world applicationsMobisys 20058SOS ApplicationNavigationNavigationObstacle DetectionObstacle DetectionLocalizationLocalizationMotor ControllerMotor ControllerRagobot - Mobile Sensor Node SoftwareAll modules are dynamically loadableInstall new robot behaviors by updating navigation moduleFuture ragobot versions will support hot-swap of peripheralsSOS provides automatic driver updatesMobisys 20059ContributionsFramework for binary modular re-programmingDynamic linkingMessage PassingDynamic MemoryInexpensive safety mechanisms for an embedded OSType safe linkingMonitored memory allocationGarbage collecting scheduler and error stubWatchdog mechanismGeneral purpose OS semantics on sensor nodesMobisys 200510OutlineIntroductionSOS ArchitectureEvaluationConclusionMobisys 200511Architecture OverviewDynamicMemoryDynamicMemoryMessageSchedulerMessageSchedulerDynamicLinkerDynamicLinkerKernelComponentsSensorManagerSensorManagerMessagingI/OMessagingI/OSystemTimerSystemTimerSOSServicesRadio*Radio*I2CI2CADC*ADC*DeviceDriversTree RoutingModuleTree RoutingModuleData CollectorApplicationData CollectorApplicationPhoto-sensorModulePhoto-sensorModuleDynamicallyLoaded modulesStatic SOS Kernel* - Drivers adapted from TinyOS for Mica2Mobisys 200512SOS OverviewProgrammed entirely in CCo-operatively scheduled systemEvent-driven programming modelSystem provides no memory protectionMobisys 200513Designing Safety FeaturesDynamically evolving systemUnspecified behavior resulting from transient statesGoalsEnsure system integrityGraceful recovery from failuresDesignMinimal set of run-time checksDesigned for low resource utilizationDoes not cover all failure modesMobisys 200514<Empty Space>Installing Dynamic ModulesModules implement specific function or taskPosition independent binaryLoader stores module at arbitrary program memory locationMinimal state maintenance8 bytes per moduleStores module identity and versionSOS KernelBootloaderModule 1FLASH Layout<Empty Space>Mobisys 200515Inter-module CommunicationModule FunctionPointer TableDynamicLinkingMessagePassingMessageBufferModule AModule AModule BModule BModule AModule AModule BModule BDynamic LinkingSynchronous communicationBlocking function calls that return promptlyMessage PassingAsynchronous communicationLong running operationsMobisys 200516Dynamic Linking OverviewGoalsLow latency inter-module communication comparable to direct function callsFunctional interface is convenient to programChallengesSafety features to address missing and updated modulesConstraintsMinimize RAM usageMobisys 200517Dynamic Linking DesignPublish functions for the other parts of system to useSubscribe to functions supplied by other modulesIndirection provides support for safety featuresDynamic function call overhead21 cycles compared to 4 cycles for direct function callModule AModule AModule BModule B<foo, B, FOO_ID, Type> <foo, B, FOO_ID, Type> Function Control Block Table (FCB)SubscribePublishMobisys 200518Dynamic Linking Safety FeaturesModule AModule A<foo, B, FOO_ID, Type> <foo, B, FOO_ID, Type> Function Control Block TableModule BModule BError StubError StubRun-time Type CheckingModule updates can introduce new function prototypeType mismatches are detected, error flag is raisedMobisys 200519Tree RoutingModuleTree RoutingModuleData


View Full Document

Berkeley COMPSCI 294 - SOS - Dynamic operating system for sensor networks

Documents in this Course
"Woo" MAC

"Woo" MAC

11 pages

Pangaea

Pangaea

14 pages

Load more
Download SOS - Dynamic operating system for sensor networks
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view SOS - Dynamic operating system for sensor networks and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view SOS - Dynamic operating system for sensor networks 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?