Composable Models for Timing and Liveness Analysis

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

ComposableModelsforTimingandLivenessAnalysisinDistributedReal-TimeEmbeddedSystemsMiddlewareVenkitaSubramonianandChristopherGillC´esarS´anchezandHennyB.Sipmavenkita,cdgill@cse.wustl.educesar,sipma@cs.stanford.eduCSEDepartment,WashingtonUniversity,St.Louis,MOCSDepartment,StanfordUniversity,Stanford,CAAbstractMiddlewarefordistributedreal-timeembedded(DRE)systemshasgrownincreasinglycomplex,toaddressfunctionalandtemporalrequirementsofdiverseapplications.Whilecurrentapproachestomodelingmiddlewarehaveeasedthetaskofassembling,deployingandconfiguringmiddlewareandtheapplicationsthatuseit,alower-levelsetofformalmodelsisneededtouncoversubtletimingandlivenesshazardsintroducedbyinterferencebetweenandwithindistributedcomputations,particularlyinthefaceofalternativemiddlewareconcurrencystrategies.Inthispaper,weproposetimedautomataasaformalmodeloflow-levelmiddlewarebuildingblocksfromwhichavarietydifferentmiddlewareconfigurationscanbeconstructed.Whencombinedwithanalysistechniquessuchasmodelchecking,thisformalmodelcanhelpdevelopersinverifyingthecorrectnessofvariousmiddlewareconfigurationswithrespecttothetimingandlivenessconstraintsofeachparticularapplication.Keywords.Model-drivenMiddleware,EmbeddedSystemsMiddleware,FormalMiddleware.TechnicalArea.OperatingSystemsandMiddleware1IntroductionSignificantresearchoverthepastdecadehasmademiddlewaremorecustomizablethroughtheuseofpattern-orientedsoftwareframeworks[1,2].Althoughthishasmademiddlewaresolutionssuitableforawiderrangeofapplications,managingtheresultingmultiplicityofcustomizationoptionshasbecomeanincreasingconcern.Toallowmiddlewaretobecustomizedtomeetthestringentdemandsofdifferentdistributedreal-timeembedded(DRE)applications,recentresearchhasfocusedonapplyingmodel-driventech-niquestoDREmiddleware[3].Althoughcurrentmodel-drivenmiddlewareapproachesfacilitatethecorrectassembly,deploymentandconfigurationofDREapplicationsandmiddleware,weargueinthispaperthatamoredetailedandformalbasisforreasoningabouttimingandlivenesspropertiesinavarietyofdifferentmiddlewareconfigurationsisbothnecessaryandpossible.Formalmodelshavebeenusedtouncoverhigh-leveldesignflawsearlyinsystemdevelopment[4,5].However,suchmodelsarecurrentlydifficulttomaintainadequatelyasthesystem’sspecificationisrefinedsuccessivelythroughoutthesystemdevelopmentThisresearchwassupportedinpartbyNSFCAREERawardCCF-0448562.ThisresearchwassupportedinpartbyNSFgrantsCCR-01-21403,CCR-02-20134,CCR-02-09237,CNS-0411363,andCCF-0430102,AROgrantDAAD19-01-1-0723,andNAVY/ONRcontractN00014-03-1-0939.1life-cycle.Forexample,decisionsregardingthedeploymentofapplicationcomponentsontoend-systems,orthechoiceofmiddlewareconcurrencystrategies,oftenarenotreflectedinthesehigh-levelmodels.Thismayresultinsubtletimingandlivenesshazardsfromunexpectedinterferencebetweenthemiddlewarepoliciesandmechanismsusedbyasetofdistributedcomputations.ServiceRequestorServiceProviderChannelChannelChannelChanneleventdemultiplexerChanneleventdemultiplexerSendRequestReceiveRequestEvent-drivenEvent-drivenEvent-drivenTime-drivenFigure1.RemoteFunctionCallasaTimeandEvent-drivenInteractionFigure1showshowasystemthatisspecifiedwithonlytime-drivenconstraintsinitshigh-levelmodelmayberefinedintoatimeandevent-drivensystemduringitsdesignandimplementationphases.Inthehigh-levelmodel,apurelytime-triggeredrequestissentfromaservicerequestertoaserviceproviderthroughamiddleware-implementedremotefunctioncall.However,theimplementationofthisremotefunctioncallgoesthroughmultiplemiddleware,OSandnetworkprocessingstacks,eachofwhichlikelycontainsevent-drivensystemelements.Forexample,Figure1showsmiddlewarebasedeventdemultiplexersonthesenderandreceiverside,whichenableasinglethreadoneachsidetobeusedtodemultiplexI/Oevents(e.g.,packetarrivalsandtransmissions)fromandontomultipleinteractionchannels(e.g.,socketsandpipes).Eventheinteractionchannelsarelikelytobeeventdriven,forexamplewhenIPpacketsarriveandaremovedfromthenetworkinterfacecardintoanapplication-accessibletransport-layerbuffer.Thisexampleillustratesthegeneralconcernthatmanyoftheabstractionsusedduringhigh-levelmodeling,suchasthenotionofapurelytime-driveninteractionbetweentheservicerequesterandtheserviceprovider,maybecomedecreasinglyrepresentativeofthesystemduringitsdesignandimplementation.Thismayinturnresultinachasmbetweenthehigh-levelmodelandtheactualimplementation,unlesstheabstractionsusedinthehighlevelmodelcanberefinedduringdesignandimplementation.Thus,afoundationalsetofformalmodelsthatcanexpressboth(1)high-levelabstractionssuchastimedremotemethodinvocations,and(2)low-levelrefinementssuchasconcurrencyandinteractionsemanticsbetweentheobjectsthatimplementthehigh-levelmodel,isneededtosupportverificationofthehighlevelmodelintermsofitslow-leveldesignandimplementation.Furthermore,theinsightsobtainedfrommodelingandanalysisshouldbemadeavailableandusedwhilemakingdesignandde-velopmentdecisions,andvice-versa.Suchaclosecorrespondencebetweenthesystemmodeling,analysis,designanddevelopmentactivitiesoffersthefollowingbenefits:(1)morecomplete,detailedandexecuta

1 / 25
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功