I本科毕业论文(20届)集中目录式P2P网络的设计与仿真所在学院专业班级计算机科学与技术学生姓名指导教师完成日期集中目录式P2P网络的设计与仿真II摘要P2P网络是目前国际上计算机网络领域的研究热点。随着因特网的迅速发展,使用因特网的用户可以实现分布在世界各地的网络终端信息的共享。集中目录式P2P模式是当今三大主流P2P网络之一,以Napster为典型代表,改变了传统的客户端/服务器(C/S)模式。该网络的主要特点是弱化了中央目录服务器的作用,充分利用了节点的存储能力,网络中每个节点的地位都是对等的。集中目录式P2P模式的诞生,引出了对等网络的新概念。作为第一代P2P网络,集中目录式P2P模式具有广阔的应用空间和重要的研究价值。本课题通过阅读P2P技术相关文献,分析国内外前沿的P2P网络技术,并结合集中目录式P2P架构的自身特点及适用范围,提出了一种针对集中目录式P2P网络的设计与仿真方案。以适合网络仿真的新型工具OMNeT++为仿真平台,对集中目录式P2P网络进行设计与仿真实验。经过OMNeT++仿真实验,在仿真平台上实现了集中目录式P2P网络模型的工作全过程,这对于进一步研究集中目录式P2P模式的性能具有一定的参考价值。关键词:对等网络;集中目录式模式;仿真;OMNeT++哈尔滨工程大学学士学位论文IIIABSTRACTCurrentlyP2Pnetworkisahotresearchfieldofinternationalcomputernetworks.WiththerapiddevelopmentoftheInternet,userscansharenetworksterminalinformationdistributedaroundtheworld.AtpresentCentralizedDirectory-BasedP2PmodelisoneofthethreemainstreamP2Pnetworks.ItusesNapsterasatypicalrepresentative,whichchangesthetraditionalclient/server(C/S)mode.Themainfeatureofthisnetworkisnotonlytoweakentheroleofthecentraldirectoryserver,butalsomakefulluseofthestoragecapacityofthenode,andthestatusofeachnodeinthenetworkisequal.ThebirthoftheCentralizedDirectory-BasedP2Pmodelleadstoanewconceptofpeertopeernetwork.AsthefirstgenerationofP2Pnetworks,CentralizedDirectory-BasedP2Pmodelpossessesbroadapplicationspaceandisofgreatresearchvalue.ByreadingrelevantliteratureofP2Ptechnology,Thisprojectanalyzesdomesticandinternationalcutting-edgeP2Pnetworktechnology,combinedwithitsowncharacteristicsandscopeofCentralizedDirectory-BasedP2Pframework,andproposesadesignandsimulationschemeforCentralizedDirectory-BasedP2Pnetworks.ThenewtypetoolOMNeT++istakenasasimulationplatformsuitabletonetworkssimulation,todesignandsimulatetheCentralizedDirectory-BasedP2Pnetwork.ByexperimentingwithOMNeT++simulation,theentireworkingprocessofCentralizedDirectory-BasedP2Pnetworksmodelisachievedonthesimulationplatform,whichhasacertainreferencevalueforfurtherresearchfocusingontheperformanceofdirectory-basedP2Pmode.Keywords:PeerToPeernetworks;Centralizeddirectorymodel;Simulation;OMNeT++集中目录式P2P网络的设计与仿真IV目录第1章绪论······························································································11.1选题背景及意义···············································································11.2国内外研究现状···············································································21.3课题主要研究内容············································································41.4论文内容的组织与安排······································································5第2章集中目录式P2P相关理论··································································62.1集中目录式P2P工作原理···································································62.2集中目录式P2P关键技术···································································72.2.1线性表的链式表示····································································72.2.2集中式P2P搜索技术·································································72.2.3集中索引模型··········································································82.3本章小结························································································9第3章集中目录式P2P网络的设计·····························································113.1P2P网络总体设计···········································································113.1.1网络拓扑图···········································································113.1.2网络元器件设计·····································································123.2网络主要功能设计··········································································133.3仿真主要源代码·············································································153.4本章小结······················································································18第4章仿真实现与分析·············································································194.1实验目的······················································································194.2OMNET++仿真工具·········································································194.2.1仿真工具简介········································································194.2.2仿真工具原理与NED语言·······················································204.2.3仿真环境设置········································································234.3实验方案及结果分析·······································································234.4本章小结······················································································32结论·······································································································33哈尔滨工程大学学士学位论文V参考文献································································································34攻读士学位期间发表的论文和取得的科研成果················································36致谢·······································································································37第1章绪论1第1章绪论1.1选题背景及意义近年来,P2P技术成为了因特网行业非常热门的技术。随着计算机技术的进步与因特网应用的飞速发展,因特网用户数量不断增加,网上信息资源呈现出爆炸性的增长态势。传统的客户端/服务器(C/S)模式已经很难适应用户的需求,对等网络(P2P)作为一种新兴的模式,打破了传统的客户端/服务器(C/S)模式,它具有自组织、扩展性好、容错能力强等优点,美国《财富》杂志更是将P2P列为影响因特网未来发展走向的四