chapter1引言ados信息学院计算机系_第1页
chapter1引言ados信息学院计算机系_第2页
chapter1引言ados信息学院计算机系_第3页
chapter1引言ados信息学院计算机系_第4页
chapter1引言ados信息学院计算机系_第5页
已阅读5页,还剩88页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

AdvancedOperatingDistributedSystemsConceptsandQingDepartmentofComputerScience,RenminUniversity1ChapterCharacterizationofDistributed 2DistributedSystems–ConceptsandDesign,GeorgeCouloris, Dollimore,andTimKindberg(2,3,4,5版Thelectureisbasedonthis31.1简介1.2分布式系统实例(Distributed1.31.4 1.61.7资源共享和web(ResourceSharingand 1.94ChallengesofDistributedWhenconstructingadistributedsystemthedesignerencouterschallengesthatarespecifictodistributedsystems.Thesizeofeachchallengedependsontherequirementsofthespecificsystem.Thosechallengescanbeassignedtoseveral (异构性 (开放性 (安全性 (可伸缩性 Failure (并发性 (透明性5Networks:Ethernet(以太网),WLAN(无线局域网),GSM(数字通),UMTS(?军事训练),ATM,…Datatypes:integertypes,floatingpointtypes,…Computerhardware:Processor,printer,storage,…Operatingsystems:varioustypesofWindowsandUNIX,…Programminglanguages:C++,Java,Application6Commoninterfacesareneeded:TCP/IPfortheInternet,Middleware中间件Asoftwarelayerthatseparatestheapplicationfromthesystemsoftwareandhardware Itprovidesa codecanbesentfromonecomputertoanotherandrunatthedestination:Javabytecode7Inanopensystemnewservicescanbeaddedorexistingservicescanbere-implemented.Keysoftwareinterfacesofthecomponentsofanopensystemmustbestandardizedoratleastpublished.(RequestForComments征求(RFC)forInternetprotocols(),发布的。 sforCORBA(8Opendistributedsystemsarebaseduponauniformcommunicationmechanism(一致的通信机制).OpendistributedsystemsareindependentfromindividualvendorsTheconformanceofacomponenttothepublishedstandardmustbetestedandverified.9ItismoredifficulttoachievesecurityinadistributedsystemthaninacentralizedsystemduetothevulnerabilityofComponentsof 性:Protectionagainst )tounauthorizedindividualsorapplications防 Integrity完整性:Protectionagainstal tionorAvailability可用性Protectionagainstinterferencewiththemeanstoaccesstheresources Authentication鉴定:Reliableandcorrectidentificationofaremoteuseroranotheragent. ImportantpresentsecurityDenialofservice :Disruptionofaservicebyanotheruser.codeThiscodemayinclude 伊 心 就而言,JP一直。但在今年10月,JP了第二次,此次涉及万家庭和户的、地址、、 市场研究机构IDC,如今开源软件的触角几乎已名为心脏(Heartbleed)和S 。 举例来说,心脏 和号等隐私信息在内的敏感其中已被确认受影响的包括Imgur等。同时,在这一遭到披露后,有不少科技企业均表示自己会在今后 医生如何提 ChallengeScalability(可伸缩性Asystemisscalableifitremainsefficientalthoughthereissignificantincreaseinthenumberofresourcesandthenumberofusers.ChallengestoControllingthecostofphysicalThecostforaddingnusersshouldbeatmostChallengeScalability(可伸缩性ControllingtheperformancelossThecomputationalcomplexityofmethodstomanagenusersshouldbeO(logn).PreventingsoftwareresourcesfromrunningIPV4limitsthenumberofaddressestoConversiontoIPV6isrequiredtomaintainAlgorithmsinascalablesystemsshouldbeComputersinthe 1979,01989,01999,2003,Figure (第四版)FigureGrowthoftheInternet(computersandwebWeb1993,1995,1997,61999,2001,2003,2005,Instructor’sGuideforCoulouris,Dollimore,KindbergandBlair,DistributedSystems:ConceptsandDesignEdn.©PearsonEducation淘宝“双 年月日,注定会被载入互联网的历史2011年双十一支付宝额52亿元。年支付宝额亿元,而今年则达到额的。 双11当日网 自 年月日,淘宝商城(现名天猫)拉开网购狂欢节 此时 如何设 成为众 自 年月日,淘宝商城(现名天猫)拉开网购狂欢 此时 如何设 成为众 双11这样的大型促销活动带来的是流量暴涨,在高 瞬 此时,如何设 解决这一问题的 做,小系统大做。浓缩一下就是三个字:快、稳、炫。32Failuresinadistributedsystemarepartial–notallcomponentsfail.ThefunctioningsystemcanstillbeThehandlingoffailuresisparticularlyDetectionofacorrupteddatatransmissionbyachecksum出错数据传输的诊断Alocalizationofafaultynetworkcomponentmaybedifficult.错误网络组件的定位Challenge:FailureMaskingfailures:HidingafailurefromauseroranapplicationAutomaticretransmissionofmissingUseofRAIDtostoreThosemethodsdonotworkina(rare)worstChallenge:FailureHandlingToleratingfailures容错:The doesnotfailiftherearefailuresthatcannotbedetectedorhidden.Afterseveralunsuccessfulretransmissionattemptsthesystemgivesupandinformsthe.The continueswithotherworkandretriesthetransmissionlater.Recoveryfromfailures故障恢复Afailuredoesnotcausepermanentdamage.Afteraremoteinvocationhasbeenstoppedbyaservercrashtheoriginalstatebeforetheinvocationisrestored.Afaultycomponentisintegratedintothesystemafteritsrepair.Challenge:FailureRedundancy冗余Failurehidingcanoftenbeachievedbyuseofredundantcomponents.Differentroutesbetweentworoutersinthe Availability:TheproportionoftimeasystemisavailableforResourcesaresharedby sinadistributedAsharedresourcemaybeaccessedatthesametimebymorethanone Handlingall requestssequentiallylimitsthethroughputoftheserver.处理用户需求序列方法限制了吞吐量。Manyservicessupportconcurrentprocessingof ConcurrentrequestsmustnotinterferewitheachServicesandobjectsmustbesafeinaconcurrent中秋来了,来了,12306也来了。一个想回级12306,新增的车票预约和排队出票功能都17号晚上:接到决定回 年月日,11:0

的成功率。我觉得,我Transparencyistheconcealment(隐藏)fromtheuserandtheapplicationprogrammeroftheseparationofcomponentsinadistributedsystem.Thesystemisperceivedasasingle

Accesstransparency:LocalandremoteresourcesareaccessedbyusingidenticalmethodsFileaccessinadistributedfilesystemwithoutrequiringexplicitmethodslikeftp.Locationtransparency(位置的透明性)Resourcescanbeaccessedwithoutknowledgeoftheirlocations. Ausermaywanttoaddressaresourceataspecificlocation,likeaprinter:Locationawarecomputing.ThelocationofaresourcemustbeavailableonAccessandlocationtransparencytogetherarealsocallednetworktransparency.Challenge:TransparencyConcurrencytransparency(并发透明性):Severalprocessescanoperateconcurrentlyonsharedresourceswithoutinterferenceamongthem。seetheconcurrencyThesystemneedstopreventundesired(不希望的)concurrentactivities.TwouserscannotmodifythesamefileUseoflocksorChallenge:Replicationtransparency( 透明性):MultipleinstancesofresourcescanbeusedtoincreasereliabilityandperformancewithoutknowledgeofthereplicasbyusersorapplicationReplicasoffileserversinsomedistributedfileFailuretransparency(故障透明性)Faultsspecifictodistributedsystemsareconcealedfromusersandapplicationprograms分seethefailurehandlingChallenge:TransparencyMobility(migration)transparency(移动透明性):Resourcesand scanmoveinthesystemwithoutaffectingtheoperationofusersorprograms.Namesdonotchangewhenresourcesare Performancetransparency(性能透明性):Thesystemcanbereconfiguredtoimproveperformancewithoutrequiringuseractivity.Theloadofthesystemisbalancedbyautomaticallymovingsomeservices.Challenge:Scalingtransparency(伸缩透明性):Thesystemandthescaleofitsapplicationscangrowwithoutrequiringachangeinthesystemstructureortheapplicationalgorithms,seethescalabilitychallenge.

绿色农业工 公共安全城市管 医疗智能家居智能交通环境监

物 理中

3G

4G

传感

ZTE

ZTEITS智能交通物联网平台信息服务层

信息 互联网信服务 息服务

广播信息 动态导航服务 服务

……企业信息服务网络接入

应用层

数据融合、处 信息发 数 和调用软件支撑环 地理信息系 数据

操作系 JAVA语言运营商支撑系统

硬件支撑环境城市交通数据中心公路交通数据中心公共交通数据中心数据中心铁路数据中心数据中心城市交通数据中心公路交通数据中心公共交通数据中心数据中心铁路数据中心数据中心水路数据中心

网络传输设备 设备数据接口协议

Section1.5.7Accesstransparency:enableslocalandremoteresourcestobeaccessedusingidenticalLocationtransparency:enablesresourcestobeaccessedwithoutknowledgeoftheirphysicalornetworklocation(forexample,whichbuildingorIPaddress).Concurrencytransparency:enablesseveralprocessestooperateconcurrentlyusingsharedresourceswithoutinterferencebetweenthem.Replicationtransparency:enablesmultipleinstancesofresourcestobeusedtoincreasereliabilityandperformancewithoutknowledgeofthereplicasbyusersorapplicationprogrammers.Failuretransparency:enablestheconcealmentoffaults,allowingusersandapplicationprogramstocompletetheirtasksdespitethefailureofhardwareorsoftwareMobilitytransparency:allowsthemovementofresourcesandwithoutaffectingtheoperationofusersorprograms.

swithinaPerformancetransparency:allowsthesystemtobereconfiguredtoimprove asloadsvary.Scalingtransparency:allowsthesystemandapplicationstoexpandinscalewithout tothesystemstructureortheapplicationalgorithms.Instructor’sGuideforCoulouris,Dollimore,KindbergandBlair,DistributedSystems:ConceptsandDesignEdn.©PearsonEducation1.1简介1.2分布式系统实例(Distributed1.31.4 1.61.7资源共享和web(ResourceSharingand 1.9WhohasusedWhowasprogrammedinWhohasprogrammedunderDoyouhavedepartmentalPeopleLoveWebServers:LinuxvsWindowsWhypeoplelikepowerfulandhardto andGettingStartedWithUNIXSectionA:ObjectivesAfterstudyingthislesson,youshouldbeableDefineoperatingsystemsinDescribeLinuxasitrelatesto inthefunctionofUNIX DescribetheoptionsforconnectingtoaUNIXGettingStartedWithUNIXSectionA:ObjectivesAfterstudyingthislesson,youshouldbeableUsethedate,who,man,etc.EntermultiplecommandsonasinglecommandRecallacommandfromthecommandLogontoandlogoutofUnderstandingOperatingAnoperatingsystem(OS)isthemostimportantprogramthatrunsonacomputerOperatingsystemsenableyoutostoreinformation,processrawdata,useapplicationsoftware,compileyourownprograms,andaccessallhardwareattachedtoacomputerOperatingSystemWherecanwefindGameGameNetworkCommonPCOperatingA alcomputer(PC)OSconductsallI/O,processing,andstorageoperationsonastand-alonecomputer.CommonMainframeOperatingAmainframeOScontrolsalargecomputersystemwithmultipleprocessorsforI/O,processing,andstorageoperationsformanyusersRelationshipofServers sonaAnetworkOScontrolstheoperationsofaservercomputer(host),whichacceptsrequestsfromuserprogramsrunningonothercomputers( IntroducingtheUNIXOperatingUNIXisamulti-user,multitaskingoperatingsystemwithbuilt-innetworkinghistoric,butrare(onlyafewPDAsuseSingle-user,multi-SomePCsandworkstationsmaybeconfiguredlikethis.e.g.,Windowsusedonlarge,mainframesandPCs,workstationsandserverstoday.e.g.UNIX,WindowsXP,LinuxIntroducingtheUNIXOperatingUNIXisamulti-usersystem,whichletsmanypeoplesimultaneouslyaccessandsharetheresourcesofaservercomputerAmultitaskingsystemletsoneuserexecutemorethanoneprogramatatimeUNIXisalsoaportableoperatingIntroducingtheUNIXOperatingItsportabilitymeansitcanbeusedinavarietyofcomputingTraditionally,mostoperatingsystemswerewritteninAssembler,foraspecificVERYpainful-ifatallpossible-to`port'theoperatingsystemtootherUNIXismostlywrittenintheClanguage.ThisaloneallowsUNIXtobeportabletomanyarchitectures.UNIXrunsonawidervarietyofcomputersthananyotheroperatingABriefHistoryofAgroupofprogrammersatBellLabsoriginallydevelopedUNIXintheearlyBellLabsdistributedUNIXinitssourcecodeform,soanyonewhousedUNIXcouldcustomizeitasneededEventually,twostandardversionofUNIXAT&TproducedSystemVUniversityofCaliforniaatBerkeleydevelopedBSD(BerkeleySystemDistribution,2BSD,1978)ABriefHistoryofLayersofaUNIX s,ls,cp,Netscape,vi,pine,UNIX DOSand WindowsadoptedoriginalUNIXdesignconcepts,suchastheideaofas --aninterfacebetweentheuserandtheoperatingsystem--andthehierarchicalstructureofdirectoriesandThekernelisthebaseoperatingsystem,whichin ctsdirectlywiththe

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论