201019690ResearchandDevelepmentNS2OPNET(400044)NS2OPNETCPUOPNETNS2OPNETNS2NS2OPNETNS2OPNETComparativeAnalysisonNetworkSimulationSoftwareNS2andOPNETWANGBo,ZHOUZhi-Wei(BuildingIntelligentizationandCityDigitalizationLab,CollegeofComputerScienceofChongqingUniversity,Chongqing400044,China)Abstract:ThispaperpresentsthefeaturesanddifferencesofNS2andOPNETbycomparingthemintheaspectsofsoftwaretechnique,operationmethodandengineerperformance.Astothesoftwaretechnique,itincludesfourpointsforcomparison:systemarchitecture,supportednetworktechnique,networkequipmentmodelbankandsoftwarescalability.Tocomparetheperformanceofthesimulatorengine,anabstractnetworkwhichisnotrealwasestablishedandsimulatedbythesetwosimulatorsseparatelyunderidenticalconditions.Meanwhile,twoperformanceindices(memoryconsumptionandcomputationtime)weremeasured,recordedandanalyzed.ThecomparisonresultindicatesthatOPENTasacommercialsoftwareisbetterthanNS2inuser-friendliness,simulationspeedandmemoryconsumptionwhileNS2issuperiortoOPNETintheaspectofopen-sourceandscalabilityandwellsuitedforsmallscalenetworksimulation.Keywords:networksimulation;networksimulationtest;NS2;OPNET1NS(NetworkSimulator)OPNET(OptimizedNetworkEngineeringTool)OMNeT++SSFNetNS2OPNETNS1986RealNetworkSimulator1995(Xerox)VINT[1]:(2008ZX07315001):2009-09-24;:2009-11-082010196ResearchandDevelopment91NSNS2NS3NS3NS2NS2NS2API[2]NS2NS3NS2NS2OPNETNS219861987OPNETOPNET10.0ModelerITGuruSPGuruWDMGuruOPNETModeler[3]NS2OPNETModelerNS2(OPNET)NS2OPNET[4]NS2OPNET()NS2OPNET2NS2OPNET2.1NS2OTclC++C++(PacketHeader)C++BugOTclOTcl(scenario)Bug[1]NS2TclCLC++OTclC++OTclTclCLOTclNS211NS2NS2OPNETNS2OPNETOPNET2(process)(nodeandlink)(network)2OPNET(FiniteStateMachine)(STD)C/C++OPNET(KernelProcedure)Proto-C201019692ResearchandDevelepment2.2OPNETNS2NS2OPNETNS2NS2.28[5,6]1OPNET8.1[5]21NS2ApplicationlevelProtocolsHTTP,Telnet,FTP,CBRTransportlevelProtocolsTCP,UDP,RTP,SRMMACProtocols802.3,802.11,TDMASchedulingdisciplinesDropTail,FIFO,RED,CBQ,WFQ,SFQ,DRRFQ,TrafficCharacterizationPoisson,Exponential,Pareto,CBRWirelessNetworkingDistanceVectorandLinkState,Ad-HocRoutingprotocols,Multi-hoproutingprotocols(DSR,AODV,TORA,DSDV)2.3NS2OTclNS2NS22OPNETApplicationlevelProtocolsHTTP,Telnet,DNS,POP3,SMTP,FTPTransportlevelProtocolsTCP,UDP,RTP,SRM,NCPDataLinkTechnologyATM,FDDI,FR,LANE,LAPB,STB,SRP,SNA,TR,VLAN,LAPB,STB,SRP,SNA,TR,X.25SchedulingdisciplinesDropTail,FIFO,RED,CBQ,WFQ,SFQ,DRR,FQ,RIP,OSPF,BGP,IGRP,EIGRP,IS-ISTrafficCharacterizationPoisson,ExponentialPareto,CBRbinomial,weibull,triangular,Rayleigh,pareto,normalWirelessNetworkingDistanceVectorandLinkState,Ad-HocRoutingprotocols,Multi-hoproutingprotocols(DSR,AODV,TORA,DSDV)Equipmentdonors3Com,AviciSystems,Cableltron,Cisco,ExtremeNetworks,Foundry,Networks,Hewlett-Packard,Juniper,Lucent&Ascend,MarconiSystems(ForeSys2tems),Newbridge,Nortel&BayNetworksOPNET2.4NS2NS2NS2makefileNS.exe2010196ResearchandDevelopment93NS2[7](1)C++(2)(3)TCL(4)C++TCL(5)makefileNSOPNET3NS2OPNETNS2OPNETNS2NS23OTclNS2namNAMtrNS2CC++NS2AWKtraceAWKGNUplotXGraph3NS2OPNET24(statistic)NS2OPNETOPNETOPNETNS2OPENT(simulationsequence)(scenario)NS24OPNET4NS2OPNETNS2OPNET[8,9]CPU4.1544201019694ResearchandDevelepment5nn(nN+n[2,32])10.1100s10s180s223232NS2OPNETCPU(Node)(Link)(Packet)IDID4.2Intelpentium43.00GHzCPU704MBNS22.28OPNETOPNETModeler10.0670.1CPUNS216,000[10]1000OPNETNS2CPUNS26(=0.1)7CPU(=0.1)4.3NS2OPNET3NS2OPNET3NS2OPNET2010196ResearchandDevelopment955NS2OPNET(1)NS2OPNETOPNETNS2NS2OPNET(2)NS2GUINS2OTclNS2OPNETAPI(3)NS2OPNETCPUOPNETNS2NS2OPNET1,,.NS,:,2003.2NS-3NetworkSimulator.[2009-9-21]:.2004.613.4,燚,..,2009,(3):85-88.5,,..,2003,20(10):8991.6TheNetworkSimulatorns-2:ValidationTests.[2009-9-2].(6):10091014.8G.Flores-Lucio.Opnet-modelerandNS-2:Comparingtheaccuracyofnetworksimulatorsforpacket-levelanalysisusinganetworktestbed.Proc.Int.Conf.Simul.,Model.,Optim.2003.700707.9GarridoPP,MalumbresMP.NS-2vs.OPNET:acom-parativestudyoftheIEEE802.11etechnologyonMANETenvironments.Proc.ofthe1stInternationalConferenceonSimulationToolsandTechniquesforCommunications,NetworksandSystems&Workshops.2008.10KrollerA.Shawn:Anewapproachtosimulatingwire-lesssensornetworks.Proc.Design,Analysis,andSimulationofDistributedSystems.2005.117124.20pages/research/p2p2004.php7WeiHY,LinYD.AssessingandImprovingTCPRateShapingoverEdgeGateways.IEEECommunicationsSurveysandTutorials,2005.4:240248.8SunYS,LeeC,BerryR,HaddadAH.AnApplica-tionoftheControlTheoreticModelingforaScalableTCPACKPacer.Proc.ofthe2004AmericanControlConference,2004,(5):4048.9CaserriC,MeoM.Anewapproachtomodelthesta-tionarybehaviorofTCPconnection.IEEEINFOCOM,2000,7(5):143149.10SivaramanV,FabioM,GerlaCM.TrafficShapingforEnd-to-EndDelayGuaranteeswithEDFScheduling.IEEE/ACMTransactions.2000.1018.11DimitriosStiliadiss,AnujanVarma.Latency-RateServers:AGeneralModelforAnalysisofTrafficSchedulingAlgorithms.IEEE/ACMTransactionsonNetworking,1998,(8):432438.12WehrleL,PaehlkeF.TheLinuxNetworkArchitec-ture:DesignandImplementatio