版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1Lecture1:EvolutionofDistributedSystemsDrLuLiuTeachingTeamDrLuLiu -Room508 -chinaliulu@2DrLuLiuPhDatSurrySpaceCentre,theUniversityofSurreyandMScinBrunelUniversityPost-doctoralResearchFellowatWRGe-ScienceCentre,theUniversityofLeedsLectureratMiddlesexUniversitySeniorLecturerattheUniversityofDerbyUniversityReaderinDistributedComputingattheUniversityofDerbyProfessor,JiangsuUniversity3AssessmentYouwillbegivenopportunities,throughbothformativeandsummativeassessments,toreflectonyourlearningtosupportprofessionalandpersonaldevelopmentFormativeAssessment-thebidirectionalprocessbetweenteacherandstudenttoenhance,recognizeandrespondtothelearningSummativeAssessment-summarizesthedevelopmentoflearnersataparticulartimeSummativeAssessmentCWThestudentwillcarryoutaliteraturesurveyandproduceacriticalreportdetailingthecurrentapproachesandthelatestadvancesinthefieldofVirtualizationandCloudComputing.ContentFromClientServertoP2PExampleofP2PApplicationsClassificationofP2PnetworksAdvantagesP2PblindsearchSummary&nextlecture
LearningObjectivesAtthecompletionofthislessonyoushouldbeabletoUnderstandcutting-edgeInternetcommunicationtechnologies:P2PUnderstandP2Pdatasharinganddistribution78ExamplesofClient-ServerInternetApplications:
Client-ServerAdvantage-EfficientDisadvantage–single-point-of-failure,scalability,limitedresourcesattheserversideClient-ServerandP2PWWW,E-mail,FTP,etcGoogleDataCentresGooglespent$2.4Bin2007onnewdatacentresEachdatacentreuses50-100megawattsofpower910Eachpeeractsas,requestingresourcesfromaswellasroutingqueriesandservingresourcesforotherpeersPeer-to-Peer(P2P)bothclientandserverQuestionDoesanyonehereuseanyP2Psoftware?Why?11“InternetCommunications”“DataNetworks”FileDistributionBitTorrent
InternetTelephony:SkypeBitTorrentPopular,tensofmillionsofusersTodistributelargeamountsofdata.usersneedtocreateasmall.torrentfilethatcontainstheaddressofthetrackermachinethatlaunchesthefiledistribution.TorrentfilesarelocatedatBitTorrentdownloadwebsitesTorrentfilesleaddownloaderstotrackersTrackersdirectdownloaderstoswarms12BitTorrentFileisbrokenintosmallerfragments(typically256KBeach)Peerjoiningtorrent:hasnofragments,butwillaccumulatethemovertimeregisterswithtrackertogetlistofpeers,connectstosubsetofpeers(“neighbors”)simultaneouslyconnectstothesepeernodesthatareparticipatinginfiletransfer,anddownloadsdifferentpiecesofthefilefromdifferentpeernodes.Whiledownloading,peeruploadschunkstootherpeers.Terminology:Leecher:DownloadsfilesbutdoesnothavecompletefilesSeeder:Hascompletefilesandletsothersdownloadfilesfromhim/her13HowBitTorrentWorksPeerAPeerBPeerCSeederLeecherListofpeersPiecesPiecesWebsitewithlinkto.torrentTrackerPiecesLeecherSeederShrek.torrentPieces14Betteravailability,betterredundancy,higherspeed15InternetTelephony-SkypeAhybridP2PSystemClient-server:findingaddressofremotepartyP2P:direct(notthroughserver)HierarchicaloverlaywithSupernodes(SNs)IndexmapsusernamestoIPaddresses;distributedoverSNsSkypeclients(SC)Supernode(SN)Skypeloginserver16PeersasrelaysProblemwhenbothAliceandBobarebehind“NAT”–NATpreventsanoutsidepeerfrominitiatingacalltoinsiderpeerSolution:UsingAlice’sandBob’sSNs,RelayischosenEachpeerinitiatessessionwithrelay.PeerscannowcommunicatethroughNATsviarelayNetworkAddressTranslation
17PrivateaddressesMoresecure:notadvertisedorforwardedintheInternetNATisusedtomapprivateIPaddressesbetweenprivateandpublicaddressspaces.18NAT:NetworkAddressTranslationlocalnetwork(e.g.,homenetwork)restofInternetDatagramswithsourceordestinationinthisnetworkhaveprivateaddressforsource,destination(asusual)AlldatagramsleavinglocalnetworkhavesamesinglesourceNATIPaddress:,differentsourceportnumbers19NAT:NetworkAddressTranslationMotivation:localnetworkusesjustoneIPaddressasfarasoutsideworldisconcerned:rangeofaddressesnotneededfromISP:justoneIPaddressforalldevicescanchangeaddressesofdevicesinlocalnetworkwithoutnotifyingoutsideworldcanchangeISPwithoutchangingaddressesofdevicesinlocalnetworkdevicesinsidelocalnetnotexplicitlyaddressable,visiblebyoutsideworld(asecurityplus).20NAT:NetworkAddressTranslationImplementation:
NATroutermust:outgoingdatagrams:
replace(sourceIPaddress,port#)ofeveryoutgoingdatagramto(NATIPaddress,newport#) ...remoteclients/serverswillrespondusing(NATIPaddress,newport#)asdestinationaddr.remember(inNATtranslationtable)every(sourceIPaddress,port#)to(NATIPaddress,newport#)translationpairincomingdatagrams:
replace(NATIPaddress,newport#)indestfieldsofeveryincomingdatagramwithcorresponding(sourceIPaddress,port#)storedinNATtable21NAT:NetworkAddressTranslationS:,3345D:86,8011:hostsendsdatagramto86,80NATtranslationtableWANsideaddrLANsideaddr,5001,3345…………S:86,80D:,33454S:,5001D:86,8022:NATrouterchangesdatagramsourceaddrfrom,3345to,5001,updatestableS:86,80D:,500133:Replyarrivesdest.address:,50014:NATrouterchangesdatagramdestaddrfrom,5001to,3345
22NAT:NetworkAddressTranslation16-bitport-numberfield:60,000simultaneousconnectionswithasingleLAN-sideaddress!NATiscontroversial:violatesend-to-endargumentNATpossibilitymustbetakenintoaccountbyappdesigners,eg,P2PapplicationsaddressshortageshouldinsteadbesolvedbyIPv6NetworkLayer23NATtraversalNATedclientestablishesconnectiontorelayExternalclientconnectstorelayrelaybridgespacketsbetweentwoconnectionsClientNATrouter1.connectiontorelayinitiatedbyNATtedhost2.connectiontorelayinitiatedbyclient3.relayingestablishedContentFromClientServertoP2PExampleofP2PApplicationsClassificationofP2PnetworksAdvantagesP2PblindsearchSummary&nextlecture
CentralisedP2PApplicationsNapsterthefirstwidely-usedP2Pmusicsharingservice.Napsterutilisesasimplebuthighlyefficientmechanismtoshareandsearchfilesinthenetwork.ToparticipateintheNapsternetwork,newusersneedtoregistertotheNapsterserverandpublishalistoffilestheyarewillingtoshare.Tosearchasharedfileinthenetwork,userscanrequesttheNapsterserverandretrievealistofprovidershostingthefilesmatchingthequery.FiletransfertakesplacewithouttheNapsterserverparticipating.Therequestedfileistransferreddirectlybetweentherequesterandtheprovider25DecentralisedP2PNetworksGnutellaTheGnutellanetworkisadecentralisedfile-sharingP2Pnetwork,whichisbuiltonanopenprotocoldevelopedtoenablepeernodediscovery,distributedsearch,andfiletransfer.EachGnutellauserneedsaGnutellaclientsoftwaretojointheGnutellanetwork.TheGnutellaclientsoftwareontheinitialusecanbootstrapandfindanumberofpossiblyworkingpeernodesinthenetworkandtrytoconnecttothem.Ifsomeattemptssucceed,theseworkingpeernodeswillthenbecomethenewnode’sneighboursandgivethenewnodetheirownlistsofworkingnodes.Thenewnodecontinuestoconnecttotheseworkingpeernodes,untilitreachesacertainquota(usuallyuser-specified).26DecentralisedP2PNetworksGnutella(cont.)Breadth-FirstSearch(BFS)mechanismtosearchthenetworkbybroadcastingthequerywithaTime-to-Live(TTL)TTLrepresentsthenumberoftimesamessagecanbeforwardedbeforeitisdiscarded.Eachpeernodereceivingthequerywillprocessit,checkthelocalfilestorage,andrespondtothequeryifonematchedfileisfound.EachpeernodedecreasesTTLbyoneandforwardsthequerytoallofitsneighbours.ThisprocesscontinuesuntilTTLisequaltozero.27HybridP2PNetworksKazaaKazaareorganisespeernodesintoatwo-levelhierarchywithsupernodesandleaves.Asupernodeisatemporaryindexserverforotherpeernodes.AnewlyjoinednodewillattempttocontactanactivesupernodefromalistofsupernodesofferedbyKazaaclientsoftware.Thenewlyjoinednodewillsendalistoffilesitsharestotheconnectedsupernodesandfurtherretrievemoreactivesupernodesfromtheconnectedsupernodesforfutureconnectionattempts28HybridP2PNetworksKazzaInKazaa,eachleavenodebeginsalookupbysendingalookuprequesttoitsconnectedsupernode.Thesupernodenotonlychecksthelocalindexforthefilerequested,butalsocommunicateswithothersupernodesforalistofaddressesofpeernodessharingthefiles.Whenasupernodediscoverstherequestedfilefromitslocalindex,itwillrespondtotheoriginalsupernode.Thefileistransferreddirectlybetweenthequeryoriginatorandthetargetpeernodethatsharesthefile.29RequestResponseFiletransferAdvantagesP2Pfreesusersfromthetraditionaldependenceoncentralservers,whichenablesenduserstoeasilyshareresources(e.g.music,movies,gamesandothersoftware).P2Papplicationsaremoreresilientthanthosebuiltontheclient-serverarchitecturebyremovingthesingle-point-of-failure.P2Pdistributestheresponsibilityofprovidingservicesfromcentralisedserverstoeachindividualpeernodeinthenetwork.P2Pexploitsavailablebandwidth,processor,storageandotherresourcesacrosstheentirenetwork.P2Pinteractionsareonlybetweenindividualpeerswhicheliminatethebottleneckofcentralisedservers.MostP2Papplicationsusevirtualchannelsforcommunicationwhichbreaktheobstaclesofcorporateprivatenetworks,suchasfirewallsandNetworkAddressTranslation(NAT).30Question
ForaP2Pfile-sharingapplication,doyouagreewiththestatement,“Thereisnonotionofclientandserversidesofacommunicationsession”?Whyorwhynot?
No.Allcommunicationsessionshaveaclientsideandaserverside.InaP2Pfile-sharingapplication,thepeerthatisreceivingafileistypicallytheclientandthepeerthatissendingthefileistypicallytheserver.CCM481031ContentFromClientServertoP2PExampleofP2PApplicationsClassificationofP2PnetworksAdvantagesP2PblindsearchSummary&nextlecture
Peer-to-PeerSearchStructuredP2PSearchEstablishalinkbetweenthestoredcontentandtheaddressofanodeAlgorithms:Chord,ROME,Pastry,CANandKademliaNeedstomaintainaconsistentdistributedindexUnstructuredP2PSearchDonotmaintainnetworkstructureBlindSearch:e.g.Flooding,IterativeDeepeningInformedSearch:e.g.Neurogrid33BlindSearchPeernodesdonotmaintainadditionalinformationaboutresourcelocation.AdvantagesDonotneedanycommunicationoverheadtomaintaintheadditionalindicesaboutresourcelocationsextremelyresilientinthehighlydynamicnetworks.Floodingisthefundamentalapproachofblindsearchwherequeriesareforwardedtoallconnectedpeernodetoseewhethertheyhavearequestedfile.34Breadth-FirstSearchBreadth-FirstSearch(BFS)mechanismtosearchtheGnutellanetworkbybroadcastingthequerywithaTime-to-Live(TTL)TTLrepresentsthenumberoftimesamessagecanbeforwardedbeforeitisdiscarded.Eachpeernodereceivingthequerywillprocessit,checkthelocalfilestorage,andrespondtothequeryifonematchedfileisfound.EachpeernodedecreasesTTLbyoneandforwardsthequerytoallofitsneighbours.ThisprocesscontinuesuntilTTLisequaltozero.35IterativeDeepeningIterativedeepeningenablesqueryoriginators
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2026廣東廣州花都區(qū)新雅街尚雅小學(xué)招聘語(yǔ)文專任教師2人備考題庫(kù)及答案詳解(易錯(cuò)題)
- 2026新疆圖木舒克市馨潤(rùn)園藝工程有限公司招聘1人備考題庫(kù)帶答案詳解(完整版)
- 2026上海分子細(xì)胞卓越中心陳玲玲組招聘實(shí)驗(yàn)技術(shù)員2人備考題庫(kù)附答案詳解(奪分金卷)
- 2026上半年貴州事業(yè)單位聯(lián)考貴州省住房和城鄉(xiāng)建設(shè)廳招聘16人備考題庫(kù)及一套答案詳解
- 2026上半年貴州事業(yè)單位聯(lián)考貴州財(cái)經(jīng)大學(xué)招聘4人備考題庫(kù)含答案詳解(輕巧奪冠)
- 廣東省生態(tài)環(huán)境廳直屬事業(yè)單位招聘考試真題2025
- 詞源探秘:48天核心詞匯賦能計(jì)劃-基于構(gòu)詞法的中考英語(yǔ)詞匯深度學(xué)習(xí)方案
- 脂肪烴生產(chǎn)工崗前紀(jì)律考核試卷含答案
- 天然氣凈化操作工安全檢查知識(shí)考核試卷含答案
- 內(nèi)蒙古自治區(qū)2026屆高二生物第一學(xué)期期末質(zhì)量跟蹤監(jiān)視試題含解析
- 2025外研社小學(xué)英語(yǔ)三年級(jí)下冊(cè)單詞表(帶音標(biāo))
- 承包檳榔園合同轉(zhuǎn)讓協(xié)議書
- 鵬城實(shí)驗(yàn)室雙聘管理辦法
- 隧道滲漏檢測(cè)技術(shù)-洞察及研究
- x探傷安全管理制度
- 財(cái)政分局對(duì)賬管理制度
- 噴水機(jī)車間管理制度
- 云師大附中 2026 屆高三高考適應(yīng)性月考(一)-地理試卷(含答案)
- 商業(yè)銀行反洗錢風(fēng)險(xiǎn)管理自評(píng)估制度研究
- 2025年度法院拍賣合同模板:法院拍賣拍賣保證金退還合同
- DB34∕T 1555-2011 存量房交易計(jì)稅價(jià)格評(píng)估技術(shù)規(guī)范
評(píng)論
0/150
提交評(píng)論