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.
官方网站:点击访问CDN客服QQ:123008公司名:贵州青辞赋文化传媒有限公司域名和IP被墙封了怎么办?用cloudsecre.com网站被攻击了怎么办?用cloudsecre.com问:黑客为什么要找网站来攻击?答:黑客需要找肉鸡。问:什么是肉鸡?答:被控的服务器和电脑主机就是肉鸡。问:肉鸡有什么作用?答:肉鸡的作用非常多,可以用来干违法的事情,通常的行为有:VPN拨号,流量P2P,攻击傀儡,...
IonSwitch是一家2016年成立的国外VPS主机商,部落上一次分享的信息还停留在2019年,主机商提供基于KVM架构的VPS产品,数据中心之前在美国西雅图,目前是美国爱达荷州科德阿伦(美国西北部,西接华盛顿州和俄勒冈州),为新建的自营数据中心。商家针对新数据中心运行及4号独立日提供了一个5折优惠码,优惠后最低1GB内存套餐每月仅1.75美元起。下面列出部分套餐配置信息。CPU:1core内存...
Nocser刚刚在WHT发布了几款促销服务器,Intel Xeon X3430,8GB内存,1TB HDD,30M不限流量,月付$60.00。Nocser是一家注册于马来西亚的主机商,主要经营虚拟主机、VPS和马来西亚独立服务器业务,数据中心位于马来西亚AIMS机房,线路方面,AIMS到国内电信一般,绕日本NTT;联通和移动比较友好,联通走新加坡,移动走香港,延迟都在100左右。促销马来西亚服务器...
p2pover为你推荐
蓝牙ios6产业2014年2月25日支持ipad我研制千万亿次超级电脑支持ipad支持ipadipadwifiIPAD连上了WIFI,但是无法上网,急!!tcpip上的netbios网络连接详细信息上的netbios over tcpip是什么意思?x-router设置路由器是我的上网设置是x怎么弄x-routerX-TRAlL是什么意思
万网域名注册 电信服务器租赁 广东vps t牌 电影服务器 英语简历模板word 网页背景图片 一元域名 彩虹ip 英文站群 java虚拟主机 根服务器 空间登录首页 石家庄服务器托管 个人免费邮箱 广州虚拟主机 wordpress中文主题 酸酸乳 中国联通宽带测速 广东主机托管 更多