AdaptiveWirelessSensorNetworkTestbedforMultipleObjectives建構多樣化目的之無線感測網路實測環境Reporter:SunChung-YuehHSCCLaboratory,NationalCentralUniversity.3OutlineIntroductionMotivationRelatedWorkArchitectureImplementationApplicationExampleConclusionandFutureWork4IntroductionWirelessSensorNetworkissues:FaultToleranceScalabilitySensorCostsHardwareConstraintsTransmissionMediaEnvironmentSensorNetworkTopologyPowerConsumption5Introduction(cont.)Theresearcherneed:SetuptheWSNbythemselvesmanuallyMonitorandcontroltheWSNinarealtimeObtaininformationfromeachnodeEx:energy,linkquality,neighborsDebugandevaluatenetworkperformanceWecanprovideaexpresswayforthem…6IntroductionWhat’sourtestbed?Thisisa3-tierframework.Weusethewirenetworkasbackbone.TheCentralServer,ControlServerandeachSensorNodewithgatewayareconnectingthenetworkviaSwitch.7Introduction(cont.)Whatdoesourtestbeddo?BuildtheWirelessSensorNetwork(WSN)following802.15.4standard.ProvidetheIntegratedWebGUIforresearcherstousetheactualWSNNetworkEnvironment.Theycandotheexperimentsandverifytheresultsonline.Logtheworkinghistoryandyoucantracethem.8RelatedWorksEmulab(UtahUniversity)NetworkEmulationTestbedGivingresearchersawiderangeofenvironmentstodevelop,debug,andevaluatetheirsystems.Emulabisapublicfacility,available.9RelatedWorks(cont.)MoteLab(HarvardUniversity)Web-basedsensornetworktest-bedDeployedTmoteSkyconnectedtocentralserverReprogramming,datalogging…10RelatedWorks(cont.)TWIST(TechnicalUniversityBerlin)TWIST,ascalableandreconfigurabletestbedarchitectureforindoordeploymentofwirelesssensornetworks.11RelatedWorks(cont.)Kansei(OhioStateUniversity)Kanseiconsistsofstaticnetwork,portablenetworkandmobilenetwork,anditisauniversaltest-bedforhybridsimulation.Kanseitest-bedisexpensiveandisstillindeveloping.12RelatedWorks(cont.)But,what’sdifferent?SupportdifferentSensingDevicesMicaMotes/Octopusandetc.Supportcustomizedfunctions(addbyuser)StatusDetectingRe-programmingDataCollection&AggregationDebuggingandTestingAnyyouwant…13MotivationWeusethetestbedbecauseof:Environmentissue:Thesimulationresultsarenotequaltoruntimeresults.Codingandchangingparameterisagainandagain.Theexperimentresultcouldberecordeasily.Resourcesissue:WithoutenoughHWs/SWstobuildaWSN.TheyonlycanusespecificWSN.CannotusedifferentHW/SWforcomparing.14ArchitectureTheworkflow:WirelessSensorNetwork(Nodes)UserCentralServerControlServerRequestResponseCommunicationCommunication15Architecture(cont.)Users’role:TheycanusethebrowsertoconnecttoCentralServer.RunexperimentfromUsers’PCwiththeGUI.Setparameter,uploadcode….Getthenodestatusandexperimentresult…TheCentralServer’sroleItcanacceptusers’requestandqueuejob.ThennotifytheControlServertodothejob.16Architecture(cont.)TheCentralServer’sroleTheControlServerneedstomonitorandcommunicatewithnodes,returnthedatarecord,andsavetoMySQLDatabase.TheWSNNodes’roleTheydothejobswhichtheControlServer’srequest.Thegatewayshelpthesenodesaccesswirenetwork.17Architecture(cont.)Therealsetup:SwitchWirelessSensorNetworkNodesUserCentralServerControlServerNetworkcableInternet18Architecture(cont.)NodesoverEthernet:SensorNodesconnecttoP/B(ProgrammingBoard)P/BconnecttoRS232toTCP/IPConverterTheConverterconnecttotheswitch.(TheGateway)TheControlServercanaccessnodesviaEthernet.SensorNodeProgrammingBoardRS232Build-inSocketEthernetTCP/IPConverterControlServer19Architecture(cont.)SensorNodesdeployed:SensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeSensorNodeWirelessSensorNetworkNodes(5*5)SwitchUserCentralServerControlServerInternet(HTTP)EthernetBackbone20Architecture(cont.)SoftwarearchitectureForCentralServerandControlServerAnyOSApachePHPMySQLXDXDModuleSystemTMFileTransferHTMLTemplatePHPModulesWWYYSSIIWWYYGGEEddiittoorrMMoodduulleeGGeenneerraattoorr21ImplementationHardwareServer:ASUSPCServerGateway:UTekUT-620TCP/IPConverterSensorNode:MicaZ/OctopusProgrammingBoard:MIB510/OctopusP/B3comFastEthernet10/100Switch22Implementation(cont.)SoftwareCentralServerOS:FreeBSDApache+MySQL+PHPControlServerOS:WindowsXPCygwin+TinyOS+J2SE+MSVB+PCommApache+MySQL+PHPHyperTerminalCLImodeNodesTinyOSwithdeployedfunctions23Implementation(cont.)Front-endfunctionslisting:InformationNewsSystemArchitectureDocumentationPublicationPapersTalksSoftwarePeopleandPhotosUsersandSponsors24Implementation(cont.)EnvironmentStatusSystemStatusWorkingStatusNodeStatusOnlineExperimentCode&BinaryUploadOnlineComplierNodepicker(cluster、multiplex)UpdateProgram(submitjob)DumpdataCommandlineAdditionfunctionPowerconsumptionWhole/SignalHistoryTrackerHistoryrecordDownloaddataUsageStatisticsManagementAccountpermissionUsermanageQuota,BrokerBackendfunctionslisting:25Implementation(cont.)Demosite:(stillunderconstruction)Account:admin/Password:admin26Implemen