:2004-09-23:(1978),,,,P2P,(,230039):P2P,ServerClientP2P,ADSL,HTTPFTPP2P,P2P,P2PBittorrent,ED2K,FTPInternet,,:P2P;NAT;TCP/IP:TP393:A:1005-3751(2005)06-0158-03FileServerTechniqueBasedonP2PYUCheng2dan,CHENGJia2xing(Lab.ofIntelligentComputingandSignalProcessing,AnhuiUniv.,Hefei230039,China)Abstract:P2Pprotocolisnotastraditionalnetworksystem,ithasnottheconceptofserverandclient.TheP2Pprotocolisveryusefulto2day.TheusercountofInternetrisefastinrecentyearsandtheconnectionspeedbecomefasterandfasterbythepopularizationoftheAD2SLandtheBroadBandnetwork.ComparingtothisthecapacityofHTTPServerandFTPServercantkeepupwiththedemandofInter2net.ThispaperdesignsanewtypeoffileserverbasedonP2P.NotliketheBittorrentandED2KP2Pserver,itcanreplacetheFTPserverinalltime.Itneedntverypowerfulcomputertobeaserveranditsperformancewillnotreducewhentoomanyuserconnecttoit.Wede2signandtesttheserver.Itsperformanceisacceptableevenifuseaslowmachinetobetheserver.Keywords:P2P;NAT;TCP/IP0,,Internet,[1],ISP2002(ShawnFanning)Napster,MP3,1,P2P[2]Server,ServerUDPTCP[3],100000,100kB/s,100000100kB/s=10GB/s,,FTP,HTTP,P2P,P2PServer/Client,P2P[2]1P2PP2Ppeer-to-peer,,ServerClientP2PHTTP,FTP,P2P15620056MicrocomputerDevelopmentVol.15No.6Jun.2005©1995-2006TsinghuaTongfangOpticalDiscCo.,Ltd.Allrightsreserved.,P2P,,,,ASF,B,C,P2PA,B,C,AF1,B1,1AB,BA,C,,S,,,F,S[2]P2PHASH,,,,IP,32IP,IP,NAT,IPIP,P2PED2KLOWIDLOWID[4,5]2P2PP2PInternet,Bit2torrentEDK2,BittorrentEDK2,,HTTP,FTPP2P,P2P(ED2K),FTP,P2P,(1)P2P,,(2),IDIPP2P,(3)IP(LOWID)IDLOWID,(4),,,,,,,(5),,,,C#.NETWindowsXPP2P,Internet,3P2PFLASHGETCUTEFTP,:(1)IDNAT,IP,,IPID,ID(2),(3)(4)(LOWID),,,,,9516:P2P©1995-2006TsinghuaTongfangOpticalDiscCo.,Ltd.Allrightsreserved.ID,(5),,,P2P(6),,P2PDelphi8,4PIII500WindowsXPC#.NET[6,7],15[8],700MB,,20kB/s,1520%,,200300kB/s,,,P2PFTPHTTPED2K(1)1FTPHTTPED2KP2PED2K,,,ED2K(ED2K,)5P2PHTTP,FTP,,,.NETIE:[1]MillecanJ,HigginsJ,TsoP,etal.Internet[M].,,,.:,1998.[2].JavaP2P(JXTA:JavaP2PPro2gramming)[M].,.:,2003.[3]TanenbaumAS.(4)[M].:,2004.[4].TCP/IP[M].:,2003.[5].TCP/IP[M].:,2003.[6]B-Power.C#[M].:,2001.[7],.VisualC#.NET[M].:,,2004.[8].Delphi7[M].:,2003.(92)VisualC++PPMPQS,70:[1]GuanDJ.Experienceinfactoringlargeintegersusingquadrat2icsieve[EB/OL].[2]ContiniSP.Factoringintegerswiththeself-initializingquadraticsieve[D].[s.l.]:UniversityofGeorgia,1997.[3]BoenderH,teRieleHJJ.Factoringintegerswithlargeprimevariationsofthequadraticsieve[J].ExperimentalMathemat2ics,1996(5):257-273.[4]SilvaV.GT3[EB/OL].[5]LandquistE.TheQuadraticSieveFactoringAlgorithm[EB/OL].©1995-2006TsinghuaTongfangOpticalDiscCo.,Ltd.Allrightsreserved.