付费下载
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
11Chapter2:SystemArchitectureFundamentalWhatWhatisaodelisintendedtoprovide,simplifiedbutdescriptionofarelevantaspectdistributedsystem2ArchitectureArchitectureArchitecturedefinethewayinwhichtheyaremappedontotheunderlyingnetworkofcomputersdeterminethedistributionofdataandcomputationaltasksamongstthephysicalnodesofthesystemevaluatingtheperformance,reliability,scalabilityandotherpropertiesofdistributedsystems.Client-serverPeerprocessVariationsoftheclient-server FundamentalFundamentalAreconcernedwithamoreformaldescriptionofthepropertiesthatarecommoninallofthearchitecturalTheinteractionmodel:dealwithperformanceandwiththedifficultyofsettingtimelimitsinadistributedsystemThefailuremodel:giveaprecisespecificationofthefaultsthatcanbeexhibitedbyprocessesandcommunicationchannelsThesecuritymodel:discussthepossiblethreatstoprocessesandcommunicationchannels455DifficutiesforandthreatstoWidelyvaryingmodesofWiderangeofsystemInternalExternalChapterChapter3:SystemArchitectureFundamental67the7theindividual–Achievedbyclassifyprocessesasserver,clientandpeerprocessesThenTheplacementoftheTheinterrelationshipsbetweenthesthefunctionsSimplifiesBuildarchitecturaldistributed8OperatingComputerComputerandnetwork99-----Arethelowest-levelhardwaresoftwareItspurposeistomaskheterogeneityandprovideaconvenientprogrammingmodele.g.OMG’sCORBA,JavaRMI,Support Remotemethodinvocation:SunGroupcommunication:NotificationofThereplicationofsharedTransmissionofmultimediaLimitationofsomesystemsrequiresupportattheapplicationlevel.E.g.transferoflargeelectronic -to-endargument’ somecommunication-relatedfunctionscanbe yandreliablyimplementedonlywiththeknowledgeandhelpoftheapplicationstandingatpointsofthecommunicationE.g.TCP,DNSandtheSystemSystemThedivisionofresponsibilitiesbetweensystemcomponents(applications,serverandotherprocesses)andtheplacementofthecomponentsoncomputersintheArch.Arch.1:BehistoricallythemostimportantandremainthemostwidelyemployedServersmayinturnbeclientsofotherArch.Arch.2:ServicesprovidedbymultiplePartitionserviceobjectsondifferent–e.g.Web,–e.g.SunNIS,Arch.Arch.3:ProxyserversandastoreofrecentlyuseddataobjectsthatiscloserthantheobjectsthemselvesE.g.,w gecacheatwebbrowserorwebproxyproxyserver5Arch.Arch.4:PeertoAllprocessesplaysimilarInteractingcooperativelytoperformadistributedMaintainconsistencyorsynchronizeatapplicationExample:apeertopeer...Ihave Whereisfile IhavefileIhavefileWhereisfileA?IhaveX!WhereisfileADBCADB CConsistentConsistentNodeidentifierhash=hash(IPKeyidentifierhash=InChordhashfunctionisSecureHashSHA-1Akeyisstoredatitssuccessor:nodewithnexthigherIDChord:保存键值的索Key NodeChordChord“Whereiskey“N90has Key(n+2k-1)mod2m,node>=n.finger[k].startthenextnodeontheidentifiercircle;finger[1]thepreviousnodeontheidentifierkisthefingertableFingerFingertablesandkeylocationswithnodes0,1,3andkeys1,2and6FingertableforNodeLookupLookupFindingsuccessorofidentifierTofindthesuccessorofanidChordreturnsthesuccessoroftheclosestprecedingfingertothisLookupLookupThefingerpointersatrepeatedlydoublingdistancesaroundthecirclecauseeachiterationoftheloopinfind_predecessortohalvethedistancetothe InanNnodeNetworkthenumberofmessagesisofO(Log路路由id 文件id的另一个file-保存在本地的id搜索如果文件 在本地,停止搜索,上传文145网络趋向于一个小世界-smallworld,类似六度隔(SixDegreesofSeparation)理因此,大部分查询只需经过少量…4459234835DistributedDistributedHash超立方体,跳表,蝶形网络...CFS,OceanStore,PAST,(文件共享put(key,getdeIPlookup(key)VariationsVariationsontheclient-serverReasonsofTheuseofmobilecodeandmobileUsersneedforlow-costcomputerswithlimitedhardwareresourcesTherequirementtoaddandremovemobiledevicesinaconvenientmannerArch.Arch.1.1:MobileForgoodinteractiveresponse,e.g.a)clientrequestresultsinthedownloadingofappletAppletb)clientinteractswiththe Arch.Arch.1.2:MobileArunningprogramthattravelsfromonecomputertoanotherinanetworkCarryingoutataskonsomeone’sbehalf,e.g.worm[XeroxPARC]Arch.1.3:NetworkDownloadoperatingsystemandanyapplicationsoftwarefromaremotefileserverAlltheapplicationdataandcodeisstoredbyafileserverUsersmayArch.Arch.1.4:ThinAGUIonacomputerthatislocaltotheExecuteapplicationprogramsonaremoteDrawback:highImplementation:X-11,VNC[AT&TComputeNetworkcomputerorArch.Arch.1.5:SpontaneousIntegratemobiledevicesandotherdevicesintoagivennetworkKeyEasyconnectiontoalocalEasyintegrationwithlocalKeydesignConvenientconnectionandLimitedmobiledevicemovearoundcontinuously,SecurityandDiscoverySpontaneousSpontaneousnetworkingina Interface--AsetoffunctionsavailableorInobject-oriented--ManyobjectscanbeencapsulatedinDistributionof--astaticclient-serverarchitectureorthemoredynamicobject-orientedmodelInterfacesandDesignDesignrequirementsfordistributedResourcesharingistakenforgranted,buteffectivedatasharingonalargescaleremainsasubstantialchallenge.PerformanceQualityofUseofcachingandDependabilityPerformancePerformanceResponsiveness.E.g.theperformanceofweb-browsingclientstheloadandperformanceoftheserveranddelayintheclientandserveroperatingsystem’scommunicationandmiddlewareservicesaswellascodeoftheservicetherateatwhichcomputationalworkisItisaffectedbyprocessingspeedsandbydatatransferratesBalancingcomputational E.g.applets,severalcomputersforaQualityQualityofReliability,security,performanceandThefailuremodel,thesecuritymodelandtheinteractionmodelQoSiscommandeeredtorefertotheabilitytomeettime-criticaldata(RSVP)QosappliestoOSsaswellasPerformanceissuesarebarstodeploydistributedReplicationandcaching,withavarietyofdifferentcacheconsistencyprotocolsE.g.Web-UseofcachingandDesignDesignrequirementsfordistributedDependabilityFaultredundancy,e.g.dataandprocessesbereplicated,messagesberetransmittede.g.locatesensitivedataincomputersthatcanbesecuredeffectivelyagainstArchitectureFundamentalChapter3:SystemAAsystemmodelshouldWhatarethemainentitiesintheHowdotheyWhatarethecharacteristicsthataffecttheirindividualandcollectivebehavior?MakeexplicitalltheassumptionsaboutthesystemweareMakegeneralizationsconcerningwhatispossibleorimpossiblebylogicalysisandmathematicalPurposeofafundamentalFundamentalFundamentalmodelsintendtoInteractionTheprocessesinteractbypassingmessages,resultingincommunicationanddelayareoftenofconsiderableIt’sdifficulttomaintainthesametimenotionindistributedsystemAccuracywithwhichoftheindependentprocessescanbecoordinatedislimitedbythetwofactsmentionedaboveFundamentalmodelsintendtoFailureafaultoccursincomputersorFailuremodelcanprovidetheabasisfor ysisofthepotentialeffectandforthedesignofsystemtobeabletotoleratefaultsofeachtypewhilecontinuingtoruncorrectlyFundamentalFundamentalmodelsintendtoSecurityModularnatureofdistributedandtheiropennessexposesthemtoattackbybothexternalandinternalagent.SecuritymodelprovidethebasisforysisofthreatstosystemandforthedesignofsystemthatareabletoresistInteractionExamplesofinteractionindistributedDNS,multipleserverprocessescooperatewithoneanotherP2Pvoiceconferencewithstrictreal-timeImplementationImplementationofainteractionadefinitionofthestepstobetakenbyeachoftheprocessesofwhichthesystemiscomposed,includingthetransmissionofmessagesbetweenthemTheproceedingrateandtransmissiontimingcannotbepredicted.difficulttodescribeallthestates,becauseoffailuresofprocessesandmessageItisimpossibletomaintainaglobalnotionofTwofactorsaffectinginteractingCommunicationperformanceisalwaysalimitedcharacteristicPerformancePerformanceofcommunicationthetimetakenforthe stringofbitstransmittedthroughanetworktoreachitsdestinationaccessingOScommunicationtotalamountofinformationthatcanbetransmittedovercomputernetworkinagiventimevariationinthetimetakentodeliveraseriesofE.g.consecutivesamplesofaudiodataareplayeddifferingtimefromaperfectreferenceTiming e.g.,GPS,LogicalomputerclockClockdrift therelativeamountComputerclocksandtimingTwoTwovariantsoftheinteractionSynchronousdistributedThetimetoexecuteeachstepofaprocesshasknowlowerandupperEaessagetransmittedoverachannelisreceivedwithinaknownboundedtimeEachprocesshasalocalclockwhosedriftratefromrealtimehasaknownTwoTwovariantsoftheinteractionAsynchronousdistributedsystem–noboundsonProcessexecutione.g.eachstepmaytakeanarbitrarilylongMessagetransmissione.g.amessagemaybereceivedafteranarbitrarilylongtimeClockdriftthedriftrateofaclockisExamplesExamplesofSyn.DSandAsyn.Asynchronous–VoiceConferenceEventEventX1m1 4mY22ZreceiveA receivereceivereceiveExampleofdisorderofAgroupincludingX,Y,ZandXsend“Meeting”toall;YandZreply“Re:Meeting”toAtA,themessagesreceivedareZ.“Re:X.“Meeting”,Y.“Re:FailureFailureDefinethewaysinwhichfailuremayoccurinordertoprovideanunderstandingoftheeffectsoffailuresTaxonomy[HadzilacosandToueg,OmissionArbitraryTime1.1.OmissionAprocessorcommunicationchannelfailstoperformactionsthatitissupposedtodoProcessomissionfailure:Fail-stop:Crashthatcanbedetectedbyotherprocessescertainly,e.g.,bytimeoutsinsynchronousDSCommunicationomissionfailures:drop–Sendomission,receiveomission,channelBenign 1.1.OmissionSendpqOutgoingmessageingmessageTheworstpossiblefailureArbitrarilyomitintendedprocessingstepsstepsortakeunintendedprocessingsteps.–E.g.returnawrongvalueinresponsetoananArbitraryfailuresinprocessishardtobeArbitraryfailuresincommunicationchannelexistbutrare.–E.g.checksum,sequence)2.ArbitraryClassoffailureAffectsFail-stopProcessPcessesmaydetectthisCrashProcessProcesshaltsandremainshalted.OthermaynotbeabletodetectthisOmissionChannelAmessageinsertedinanoutgoingmessagebufferarrivesattheotherend’s ingmessagebuffer. ProcessAprocesscompletesasend,butthemessageisnot putinitsoutgoingmessagebuffer. Amessageisputinaprocess’s ingmessage buffer,butthatprocessdoesnotreceiveit. ProcessorProcess/channelexhibitsarbitrarybehaviour:itmay )channel send/transmitarbitrarymessagesatarbitrarytimes,commitomissions;aprocessmaystoportakeanincorrectstep.3.TimingApplicableinsyn.distributedsystem,butnotinasyn.distributedsystemClassof Process’slocalclockexceedstheonitsrateofdriftfromrealPerformance ProcessexceedstheboundsonthebetweentwoPerformance thanthestatedMaskingMaskinge.g.replicatede.g.Checksum:arbitraryfailure->omissionReliabilityofone-to-oneanymessageintheoutgoingmessagebufferiseventuallydeliveredtothe ingmessagethemessagereceivedisidenticaltoonesent,nomessagesaredeliveredtwice,againstretransmitprotocolsandspuriousmessagesSecuritySecurityThesecurityofadistributedTheThecommunicationTheProtectingtheAccessrights:whoisallowedtoperformtheoperationsofanobjectPrincipal:theauthoritywhohassomerightso
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 学校食堂食材采购的管理制度(3篇)
- 职业礼仪实操题目及答案
- AI在政治学中的应用
- AI在应用统计中的应用
- 医师执业注册管理制度
- 第二类医疗器械经营备案表
- 公路与桥涵勘测设计与案例分析课件
- 2026年北师大版小学数学四年级下册期末综合测试卷及答案
- 永春东农产品冷链物流园水土保持报告表
- 网络信息安全基础(AIGC版)随堂前测练习题及参考答案 项目5-任务1-前测练习-单选题5
- 云南中考:英语高频考点
- 南方科大综评试题及答案
- 《通风工程》详细笔记
- DL∕T 5003-2017 电力系统调度自动化设计规程
- 创新设计前沿智慧树知到期末考试答案章节答案2024年浙江大学
- QY130V633技术规格书(含配套件)
- 目标选才讲学
- 居民自建桩安装告知书回执
- 项目5 S7-1200 PLC控制步进电机与伺服电机
- 辅导员基础知识试题及答案
- 部编版语文八年级下册第五单元游记散文阅读练习(含解析)
评论
0/150
提交评论