improvep2pover

p2pover  时间:2021-05-21  阅读:()
EfficientGnutella-likeP2POverlayConstructionYunhaoLiu1,LiXiao2,LionelM.
Ni1andBaijianYang31DepartmentofComputerScience,HongKongUniversityofScienceandTechnology,Kowloon,HongKong,Chinani@cs.
ust.
hk2DepartmentofComputerScienceandEngineering,MichiganStateUniversity,EastLansing,MI48824,USAlxiao@cse.
msu.
edu3DepartmentofIndustryandTechnology,BallStateUniversity,Muncie,IN47306,USAbyang@bsu.
eduAbstract.
Withoutassuminganyknowledgeoftheunderlyingphysicaltopol-ogy,theconventionalP2Pmechanismsaredesignedtorandomlychooselogi-calneighbors,causingaserioustopologymismatchproblembetweentheP2Poverlaynetworkandtheunderlyingphysicalnetwork.
ThismismatchproblemincursagreatstressintheInternetinfrastructureandadverselyrestraintstheperformancegainsfromthevarioussearchorroutingtechniques.
Inordertoal-leviatethemismatchproblem,reducetheunnecessarytrafficandresponsetime,weproposetwoschemes,namely,location-awaretopologymatching(LTM)andscalablebipartiteoverlay(SBO)techniques.
BothLTMandSBOachievetheabovegoalswithoutbringinganynoticeableextraoverheads.
More-over,bothtechniquesarescalablebecausetheP2Pover-laynetworksareconstructedinafullydistributedmannerwhereglobalknowledgeofthenetworkisnotnecessary.
ThispaperdemonstratestheeffectivenessofLTMandSBO,andcomparestheperformanceofthesetwoapproachesthroughsimulationstudies.
1IntroductionAsanemergingmodelofcommunicationandcomputation,peer-to-peersystemsarecurrentlyunderintensivestudy[6,10,12,15,16].
ThispaperfocusesonunstructuredP2Psystems,suchasGnutella[2]andKaZaA[4],sincetheyaremostcommonlyusedintoday'sInternet.
Fileplacementisrandominthesesystems,whichhasnocorrelationwiththenetworktopology.
Thetypicalsearchmechanismadoptedwillblindly"flood"aquerytothenetworkamongpeers(suchasinGnutella)oramongsupernodes(suchasinKaZaA).
Thequeryisbroadcastedandrelayeduntilacertaincriterionissatisfied.
Ifaninquiredpeercanprovidetherequestedobject,aresponsemessagewillbesentbacktothesourcepeeralongtheinverseofthequerypath.
ThefloodmechanismensuresthatthequerymessagescanreachasmanypeersaspossiblewithinashortperiodoftimeinaP2Poverlaynetwork.
Studiesin[15]and[14]haveindicatedthatP2Psystems,suchasFastTrack(in-cludingKaZaAandGrokster)[1],Gnutella,andDirectConnect,contributethelargestportionoftheInternettraffic.
AmongthoseP2Ptraffic,aconsiderableportionoftheH.
Jinetal.
(Eds.
):NPC2004,LNCS3222,pp.
146-153,2004.
IFIPInternationalFederationforInformationProcessing2004EfficientGnutella-likeP2POverlayConstruction147loadiscausedbytheinefficientoverlaytopologyandtheblindflooding,whichalsomakestheunstructuredP2Psystemsfarfrombeingscalable[13].
Aimingatalleviatingthemismatchproblem,reducingtheunnecessarytraffic,andaddressingthelimitsofexistingsolutions,weproposelocation-awaretopologymatching(LTM)andscalablebipartiteoverlay(SBO)scheme.
InLTM,eachpeerissuesadetectorinasmallregionsothatthepeersreceivingthedetectorcanrecordrelativedelayinformation.
Basedonthedelayinformation,areceivercandetectandcutmostoftheinefficientandredundantlogicallinks,andaddclosernodesasitsdirectneighbors.
SBOtakesanotherapproachwhereGnutella-likepeer-to-peerover-laysareoptimizedbydisconnectingredundantconnectionsandchoosingphysicallyclosernodesaslogicalneighbors.
OursimulationstudiesrevealthatthetotaltrafficandresponsetimeofthequeriescanbesignificantlyreducedbybothLTMandSBOwithoutshrinkingthesearchscope.
Therestofthepaperisorganizedasfollows.
Section2introducesrelatedwork.
Section3discussesunnecessarytrafficandtopologymismatchproblems.
Section4outlinesthedesignsofLTMandSBOschemes.
Simulationandperformanceevalua-tionoftheLTMandSBOarepresentedinSection5,andweconcludeourworkinSection7.
2RelatedWorkManyeffortshavebeenmadetoavoidthelargevolumeofunnecessarytrafficin-curredbytheflooding-basedsearchindecentralizedunstructuredP2Psystems.
Ingeneral,threetypesofapproacheshavebeenproposedtoimprovesearchefficiencyinunstructuredP2Psystems:forwarding-based,cache-basedandoverlayoptimiza-tion.
Theabovethreedifferentapproachesarenotexclusiveandcanbeintegratedtoachievebetterresults.
Inforwarding-basedapproaches,insteadofpassingonthequerymessagestoallbutincominglogicalneighbors,apeerselectsasubsetofitsneighborstorelaythequery.
Thesecondapproachiscache-basedsearch,whichincludesdataindexcach-ingandcontentcaching.
CentralizedP2Psystemsprovidecentralizedindexserverstokeepindicesofsharedfilesofallpeers.
KaZaAutilizescooperativesuperpeers,eachofwhichisanindexserverofasubsetofpeers.
Somesystemsdistributethefunctionofkeepingindicestoallpeers[11].
Thethirdsearchstrategyisoverlaytopologyoptimization,whichinspirestheworkwearepresentinginthispaper.
Endsystemmulticast,Narada,proposedin[7],con-structsshortest-path-spanningtreesontopofarichconnectedgraph.
Eachtreerootedatthecorrespondingsourceemploysthewell-knownDVMRProutingalgorithm.
Naradahasproventobeasoundoverlaysystemwhenthenumberofparticipantsisnotsignificant.
However,becauseitssystemoverheadsareexponentialtothesizeofthemulticastgroup,itisnotsuitablefortheP2Psystem,whichisnormallyverydy-namicandinvolvesagoodmanynodescrossingawideareaofnetworks.
Recently,researchersin[17]haveproposedtomeasurethelatencybetweeneachpeertomulti-plestableInternetserverscalled"landmarks".
Themeasuredlatencycanthenbeservedtodeterminethedistancebetweenpeers.
Thismeasurementisconductedina148Y.
Liuetal.
globalP2Pdomain.
Incontrast,wechooseacompletelydistributedapproachwheredistancemeasurementismanagedinmanysmallregions.
Asaresult,ourschemescansignificantlyreducethenetworktrafficwhileretaininghighaccuracy.
3UnnecessaryTrafficandTopologyMismatchInaP2Psystem,allparticipatingpeersformaP2Pnetworkoveraphysicalnetwork.
MaintainingandsearchingoperationsofaGnutellapeeraredescribedin[3].
WhenjoiningaP2Pnetwork,anewpeer-nodegetstheIPaddressesofalistofexistingpeersfromabootstrappingnode.
Itthenattemptstoconnectitselftothesepeersastheirneighbors.
OncethenewpeergetsconnectedwithaP2Pnetwork,itwillperi-odicallypingthenetworkconnectionstoobtaintheIPaddressesofsomeotherpeersinthenetwork.
Unfortunately,thejoinmechanismspecifiedinaP2Pnetwork,thedynamicsofpeermemberships,andthenatureoffloodingwouldendupwithamis-matchedoverlaynetworkstructureandthusincuralargeamountofunnecessarytraffic[12].
Fig.
1.
AnexampleoftopologymismatchproblemAnexampleoftopologymismatchisillustratedinFig.
1,wheresolidlinesrepre-senttheunderlyingphysicalconnectionsanddottedlinesdenotetheoverlayconnec-tionsinaGnutella-likeP2Psystem.
ForaquerymessagesentalongtheoverlaypathACB,nodeBisvisitedtwice.
AlthoughBisapeeringnode,Bisfirstvisitedasanon-peeringnodewhenAtriestoreachC.
Becauseofthemismatchproblem,thesamemessagemaytraversethesamephysicallinks,suchasBE,EFandFCinFig.
1,multipletimes,causingalargeamountofunnecessarytrafficandincreasingtheP2Pusers'querysearchlatencyaswell.
ToquantitativelyevaluatehowseriousthetopologymismatchproblemisinGnutella-likenetworks,wesimulate1,000,000queriesondifferentGnutella-liketopologieswithaveragenumberofneighborsbeing4,6,8and10.
Inthissimulation,wetracktheresponseofeachquerymessagetocheckiftheresponsecomesbackalongamismatchedpath.
Wecountapathasamismatchedpathifapeeringnodeonthepathhasbeenvisitedmorethanonce.
Resultshowsmorethan70%ofthepathsaresufferedfromthetopologymismatchproblem.
EfficientGnutella-likeP2POverlayConstruction149Wealsohavethefollowingobservationsfromthesimulation.
First,aquerymaybefloodedtomultiplepathsthataremergedtothesamepeer.
Second,twoneighbor-ingpeersmayforwardthesamequerymessagetoeachotherbeforetheyreceiveitfromtheotherone.
Inbothcases,redundantquerymessagesaregeneratedevenamonglogicallinks.
Existingstudiesonoverlayoptimizationconnectphysicallyclosernodesasover-layneighborsusingdifferenttechniques.
However,thesekindsofapproachesmaydestroytheconnectivityoftheoverlayandthuscreatemanyisolatedislandsintheP2Psystem.
ThereforetheyarenotfeasibleinunstructuredP2Psystems.
4LTMandSBOOptimizinginefficientoverlaytopologiescanfundamentallyimproveP2Psearchefficiency.
Inthissection,wepresentoursolutions,LTMandSBO.
4.
1LTMIfthesystemcandetectanddisconnectthelowproductivelogicalconnectionsandswitchtheconnectionofACtoABasshowninFig.
1,thetotalnetworktrafficcouldbesignificantlyreducedwithoutshrinkingthesearchscopeofqueries.
Thisisthebasicprincipleofourproposedlocation-awaretopologymatchingtechnique[8].
Lo-cation-awaretopologymatchingconsistsofthreeoperations:TTL2detectorflooding,lowproductiveconnectioncutting,andsourcepeerprobing.
BasedonGnutella0.
6P2Pprotocol,wedesignanewmessagetypecalledTTL2-detector.
InadditiontotheGnutella'sunified23-byteheaderforallmessagetypes,aTTL2-detectormessagehasamessagebodyintwoformats.
Theshortformatisusedinthesourcepeer,whichcontainsthesourcepeer'sIPaddressandthetimestamptofloodthedetector.
Thelongformatisusedinaone-hoppeerthatisadirectneighborofthesourcepeer,whichincludesfourfields:SourceIPAddress,SourceTimestamp,TTL1IPAddress,TTL1Timestamp.
ThefirsttwofieldscontainthesourceIPaddressandthesourcetimestampobtainedfromthesourcepeer.
ThelasttwofieldsaretheIPaddressofthesourcepeer'sdirectneighborwhoforwardsthedetectorandthetime-stampwhenforwardit.
Inthemessageheader,theinitialTTLvalueis2.
Thepayloadtypeofthedetectorcanbedefinedas0x82.
EachpeerfloodsaTTL2-detectorperiodically.
Weused(i,S,v)todenotetheTTL2-detectorwhohasthemessageIDofiwithTTLvalueofvandisinitiatedbyS.
WeuseN(S)todenotethesetofdirectlogicalneighborsofS,anduseN2(S)tode-notethesetofpeersbeingtwohopsawayfromS.
ATTL2-detectorcanonlyreachpeersinN(S)andN2(S).
Weusenetworkdelaybetweentwonodesasametricformeasuringthecostbetweennodes.
Theclocksinallpeerscanbesynchronizedby150Y.
Liuetal.
currenttechniquesinanacceptableaccuracy1.
ByusingtheTTL2-detectormessage,apeercancomputethecostofthepathstoasourcepeer,andoptimizesthetopologybyconductinglowproductioncuttingandsourcepeerprobingoperations.
4.
2SBOInsteadoffloodingqueriestoallneighbors,SBOemploysanefficientstrategytoselectqueryforwardingpathandlogicalneighbors[9].
ThetopologyconstructionandoptimizationofSBOconsistoffourphases:bootstrappinganewpeer,neighbordistanceprobingandreporting,forwardingconnectionscomputing,anddirectneighborreplacement.
Phase1:bootstrappinganewpeer.
WhenanewpeerisjoiningtheP2Psystem,itwillrandomlytakeaninitialcolor:redorwhite.
Apeershouldkeepitscoloruntilitleaves,andagainrandomlyselectacolorwhenitrejoinsthesystem.
Thus,eachpeerhasacolorassociatedwithit,andallpeersareseparatedintotwogroups,redandwhite.
InSBO,abootstraphostwillprovidethejoiningpeeralistofactivepeerswithcolorinformation.
Thejoiningpeerthentriestocreateconnectionstothediffer-entcolorpeersinthelist.
Insuchaway,allthepeersformabipartiteoverlay,inwhicharedpeerwillonlyhavewhitepeersasitsdirectneighbors,andviceversa.
Phase2:neighbordistanceprobingandreportingbywhitepeers.
Weusenet-workdelaybetweentwopeersasametricformeasuringthetrafficcostbetweenpeers.
WemodifytheLimewireimplementationofGnutella0.
6P2Pprotocol[3]byaddingoneroutingmessagetypeforapeertoprobethelinkcosttoitsneighbors.
Eachwhitepeerbroadcastthismessageonlytoitsimmediatelogicalneighbors,formsaneighborcosttable,andsendsthistabletoallitsredneighbors.
Fig.
2.
AnexampleofSBOoperations1CurrentimplementationofNTPversion4.
1.
1inpublicdomaincanreachthesynchronizationaccuracydownto7.
5milliseconds[5].
Anotherapproachistousedistancetomeasurethecommunicationcost,suchasthenumberofhopsweightedbyindividualchannelbandwidth.
EfficientGnutella-likeP2POverlayConstruction151Phase3:forwardingconnectionscomputingbyredpeers.
Basedontheobtainedneighborcosttables,aminimumspanningtree(MST)canbebuiltbyeachredpeer,suchasPinfig.
2-(b).
SincearedpeerbuildsaMSTinatwo-hopdiameter,awhitepeerdoesnotneedtobuildaMST.
ThethicklinesintheMSTareselectedasfor-wardingconnections(FC),whilethethinlinesarenon-forwardingconnections(NFC).
QueriesareforwardedonlyalongtheFCs.
Phase4:directneighborreplacementbywhitepeers.
Afterphase3whereaMSTwithintwohopsdistanceisconstructed,aredpeerPisabletosenditsqueriestoallthepeerswithinthisrange.
Somewhitepeersbecomenon-forwardingneighbors,suchasEinFig.
2.
Inthiscase,forpeerE,Pisnolongeritsneighbor.
Inthephaseofdirectneighborreplacement,anon-forwardingneighbor,E,willtrytofindanotherredpeerbeingtwohopsawayfromPtoreplacePasitsnewneighbor.
5PerformanceEvaluationToevaluatetheeffectivenessofLTMandSBO,wegeneratebothphysicalnetworktopologiesandlogicaltopologiesinoursimulation.
ThephysicaltopologyshouldrepresenttherealtopologywithInternetcharacteristics.
Thelogicaltopologyrepre-sentstheoverlayP2Ptopologybuiltontopofthephysicaltopology.
AllP2Pnodesareinasubsetofnodesinthephysicaltopology.
Inourfirstsimulation,westudytheeffectivenessofLTMandSBOinastaticP2Penvironmentwherethe8,000peersdonotjoinandleavethesystem.
Figures3and4showthetrafficcostreductionofLTMandSBO,respectively.
Inthesefigures,thecurveof'cn-neigh'showstheaveragetrafficcostcausedbyaquerytocoverthewholenetworkandtheaveragenumberoflogicalneighborsisdenotedascn.
WecanseethatthetrafficcostdecreaseswhenLTMandSBOareconductedmultipletimes.
Theybothreachathresholdafterseveralstepsofoptimization.
LTMmayreducetrafficcostbyaround80-85%whileSBOreducestrafficcostbetween85%and90%.
However,LTMconvergesinaround2-3stepswhileSBOneeds4-5steps.
Thesimu-lationresultsinFig.
5andFig.
6showthatLTMreducesresponsetimebymorethan60%in3stepsbutSBOneeds8stepstoreduce60%oftheresponsetimeinastaticenvironment.
02468100102030405060708090100LTMoptimization(steps)Averagetrafficcostperquery(105)4neigh6neigh8neigh10neigh24681012140102030405060708090100SBOoptimizationstepsTrafficcostperquery(105)10neighbors8neighbors6neighbors4neighborsFig.
3.
Trafficreductionvs.
optimizationstepinLTMFig.
4.
Trafficreductionvs.
optimizationstepinSBO152Y.
Liuetal.
02468108101214161820222426LTMoptimization(steps)Averageresponsetimeperquery4neigh6neigh8neigh10neigh02468101268101214161820222426SBOoptimization(steps)averageresponsetimeperquery4neigh6neigh8neigh10neighFig.
5.
AverageResponsetimevs.
opt.
stepinLTMFig.
6.
AverageResponsetimevs.
opt.
stepinSBO510152025300102030405060Queries(105)averagetrafficcostperquery(105)Gnutella-likeLTMSBO510152025300510152025Queries(105)Responese-timeperqueryGnutella-likeLTMSBOFig.
7.
AveragetrafficcostcomparisonofLTMandSBOinadynamicP2PenvironmentFig.
8.
AverageresponsetimecomparisonofLTMandSBOinadynamicP2PenvironmentP2Pnetworksarehighlydynamicwithpeersjoiningandleavingfrequently.
Theobservationsin[15]haveshownthatover20%ofthelogicalconnectionsinaP2Plast1minuteorless,andaround60%oftheIPaddresseskeepactiveinFastTrackfornomorethan10minuteseachtimeaftertheyjointhesystem.
WefurtherevaluatetheeffectivenessofLTMandSBOindynamicP2Psystems.
Inthissimulation,weassumethatpeeraveragelifetimeinaP2Psystemis10minutes;0.
3queriesareis-suedbyeachpeerperminute.
Fig.
7showstheaveragetrafficcostperqueryofGnutella-likeP2Psystems,LTMenabledGnutellaandSBOenabledGnutella.
Herethetrafficcostincludesalltheoverheadneededintheoptimizationsteps.
SBOandLTMdroptheaveragecostby85%and80%,respectively.
Fig.
8plotstheaveragequeryresponsetimeofeachsystem.
Withthehelpofourcarefullydesignedtheop-timizationalgorithms,theLTMreducestheresponsetimeto30%andSBOdecreasetheresponsetimeto35%.
EfficientGnutella-likeP2POverlayConstruction1536ConclusionWehaveevaluatedourproposedLTMandSBOoverlaytopologymatchalgorithmsinstaticaswellasdynamicenvironments.
Bothschemesarefullydistributedandscalableinthateachpeercanconductthealgorithmindependentlywithoutrequestinganyglobalknowledge.
TheotherstrengthofLTMandSBOisthattheyarecomple-mentarytocache-basedandforwarding-basedapproachessothatfurtherimprove-mentscanbemadewhendeployedtogether.
LTMshowsitsadvantagesinconvergentspeedbutslightlycreatesmoreoverheadthanSBO.
Italsodemandssynchronizedtimeamongpeers,whichimpliesthatanadditionaloverheadisneededtorunaclocksynchronizationprotocol,suchasNTP.
References[1]Fasttrack,http://www.
fasttrack.
nu[2]Gnutella,http://gnutella.
wego.
com/[3]TheGnutellaprotocolspecification0.
6,http://rfc-gnutella.
sourceforge.
net[4]KaZaA,http://www.
kazaa.
com[5]NTP:TheNetworkTimeProtocol,http://www.
ntp.
org/[6]Y.
Chawathe,S.
Ratnasamy,L.
Breslau,N.
Lanham,andS.
Shenker,"MakingGnutella-likeP2PSystemsScalable,"ProceedingsofACMSIGCOMM,2003.
[7]Y.
Chu,S.
G.
Rao,andH.
Zhang,"ACaseforEndSystemMulticast,"ProceedingsofACMSIGMETRICS,2000.
[8]Y.
Liu,X.
Liu,L.
Xiao,L.
M.
Ni,andX.
Zhang,"Location-AwareTopologyMatchinginUnstructuredP2PSystems,"ProceedingsofIEEEINFOCOM,2004.
[9]Y.
Liu,L.
Xiao,andL.
M.
Ni,"BuildingaScalableBipartiteP2POverlayNetwork,"Proceedingsof18thInternationalParallelandDistributedProcessingSymposium(IPDPS),2004.
[10]Y.
Liu,Z.
Zhuang,L.
Xiao,andL.
M.
Ni,"ADistributedApproachtoSolvingOverlayMismatchProblem,"Proceedingsofthe24thInternationalConferenceonDistributedComputingSystems(ICDCS),2004.
[11]D.
A.
MenasceandL.
Kanchanapalli,"ProbabilisticScalableP2PResourceLocationServices,"ACMSIGMETRICSPerformanceEvaluationReview,vol.
30,pp.
48-58,2002.
[12]M.
Ripeanu,A.
Iamnitchi,andI.
Foster,"MappingtheGnutellaNetwork,"IEEEInternetComputing,2002.
[13]Ritter,WhyGnutellaCan'tScale.
No,Really,http://www.
tch.
org/gnutella.
html[14]S.
Saroiu,K.
P.
Gummadi,R.
J.
Dunn,S.
D.
Gribble,andH.
M.
Levy,"AnAnalysisofInternetContentDeliverySystems,"Proceedingsofthe5thSymposiumonOperatingSys-temsDesignandImplementation,2002.
[15]S.
SenandJ.
Wang,"AnalyzingPeer-to-peerTrafficAcrossLargeNetworks,"Proceed-ingsofACMSIGCOMMInternetMeasurementWorkshop,2002.
[16]C.
Wang,L.
Xiao,Y.
Liu,andP.
Zheng,"DistributedCachingandAdaptiveSearchinMultilayerP2PNetworks,"Proceedingsofthe24thInternationalConferenceonDistrib-utedComputingSystems(ICDCS),2004.
[17]Z.
Xu,C.
Tang,andZ.
Zhang,"BuildingTopology-awareOverlaysUsingGlobalSoft-state,"Proceedingsofthe23rdInternationalConferenceonDistributedComputingSys-tems(ICDCS),2003.

妮妮云(119元/季)日本CN2 2核2G 30M 119元/季

妮妮云的知名度应该也不用多介绍了,妮妮云旗下的云产品提供商,相比起他家其他的产品,云产品还是非常良心的,经常出了一些优惠活动,前段时间的八折活动推出了很多优质产品,近期商家秒杀活动又上线了,秒杀产品比较全面,除了ECS和轻量云,还有一些免费空间、增值代购、云数据库等,如果你是刚入行安稳做站的朋友,可以先入手一个119/元季付的ECS来起步,非常稳定。官网地址:www.niniyun.com活动专区...

2021年恒创科技618活动:香港/美国服务器/云服务器/高防全场3折抢购

2021年恒创科技618活动香港美国服务器/云服务器/高防全场3折抢购,老客户续费送时长,每日限量秒杀。云服务器每款限量抢购,香港美国独服/高防每款限量5台/天,香港节点是CN2线路还不错。福利一:爆品秒杀 超低价秒杀,秒完即止;福利二:云服务器 火爆机型 3折疯抢;福利三:物理服务器 爆款直降 800元/月起;福利四:DDOS防护 超强防御仅 1750元/月。点击进入:2021年恒创科技618活...

DediPath($1.40),OpenVZ架构 1GB内存

DediPath 商家成立时间也不过三五年,商家提供的云服务器产品有包括KVM和OPENVZ架构的VPS主机。翻看前面的文章有几次提到这个商家其中机房还是比较多的。其实对于OPENVZ架构的VPS主机以前我们是遇到比较多,只不过这几年很多商家都陆续的全部用KVM和XEN架构替代。这次DediPath商家有基于OPENVZ架构提供低价的VPS主机。这次四折的促销活动不包括512MB内存方案。第一、D...

p2pover为你推荐
glucanotransferasechromeTestto中國信託商業銀行followcss支持ipad敬请参阅最后一页特别声明支持ipad支持ipad特斯拉苹果5《个人收入的分配过关检测》
合租服务器 谷歌域名邮箱 已经备案域名 qq云存储 国内免备案主机 老鹰主机 oneasiahost dreamhost 优惠码 申请个人网页 国外在线代理 个人空间申请 天互数据 七夕快乐英文 新家坡 登陆空间 lick 免费网络 atom处理器 lamp什么意思 更多