OPNET Modeler and Ns-2: Comparing The Accuracy of Network Simulators For Packet-Level Analysis Using A Network Testbed
OPNET Modeler and Ns-2: Comparing The Accuracy of Network Simulators For Packet-Level Analysis Using A Network Testbed
OPNET Modeler and Ns-2: Comparing The Accuracy of Network Simulators For Packet-Level Analysis Using A Network Testbed
Abstract: - This paper presents a comparative study of two well-known network simulators: OPNET Modeler and Ns-
2. Other studies in this area have generally been confined to just one simulator. The motivation of this paper is to
provide a guide to researchers undertaking packet-level network simulations. The simulator outputs were compared to
the output from a live network testbed. The experimental comparison consisted of deploying both CBR data traffic,
and an FTP session, both on the network testbed and the simulators. CBR data traffic was used due to its simplicity of
modeling. A custom analysis tool was employed to examine the behavior of the network in different background
traffic scenarios. The same scenarios were then recreated in the simulators in order to ascertain their realism. The
results show the necessity of fine-tuning the parameters within a simulator so that it closely tracks the behavior of a
real network.
4 Discussion
In terms of accuracy of bandwidth estimation for
the pure CBR-type traffic, Ns-2 performed better than
OPNET Modeler using the default Modeler package.
Fig. 10 FTP1 and FTP3: Router perspective (from This may be improved using additional OPNET
Server to Client). packages; the authors cannot verify this. Nevertheless,
in scenario CBR4, Ns-2 behaved differently to the
testbed, and instead Modeler gave more accurate
results.
2
Turning to the FTP experiments. The Ns-2 FTP
vsFTPd is available at http://vsftpd.beasts.org/ (current v 3 simulation model only indicated a general transfer rate
03).
rather than replicating the actual network flow.
Modeler performed closely to the testbed results, and standard form. FTP (through TCP flow control) adapts
in the case of the FTP2 and FTP4 scenarios the results its output to prevailing network conditions, whereas
were remarkably similar. the response of Ns-2 and OPNET Modeler did not
In terms of simulation speed, both Ns-2 and the always mimic this performance. However, when “fine-
Modeler proved to be fast, requiring less than a minute tuning” of parameters was performed, it was found
to obtain the results. that Modeler was a more accurate simulator for this
Ns-2 has a “small suite”, but for large-scale particular case.
networks several modifications and extra care has to We did not find creating these types of
be taken to manage memory allocation and CPU time comparisons between different network simulation
(abstraction techniques)[24]. OPNET Modeler has a tools to be an easy task. Further work to be performed
“heavy suite” (large software overhead) but provides includes establishing a scheme to model HTTP and
diverse statistics modules at different levels [25]. The other more complex protocols in the simulators and
freeware nature of Ns-2 is attractive to researchers the testbed.
compared to the need to enter into an OPNET Modeler
license agreement and associated direct costs. References:
Additionally, the constraint of not having access to [1] R. Currier. Test-drive your network designs.
other modules outside the standard version of OPNET, Network World, May 1999.
such as the Application Characterization Environment [2] J. Heidemann and K. Mills. Expanding confidence
(ACE) and the SPGuru package, limits the possibility in network simulations. IEEE Network Magazine,
of evaluating other performance measures such as 15(5): 58-63, 2001.
flow-analysis. [3] K. Pawlikowski, H-D. J. Jeong, and J-S. R. Lee.
At first glance, the evaluation of the different On the credibility of simulation studies of
network simulators by comparison with the testbed telecommunication networks. IEEE Communications
appears to be a straightforward procedure. However, Magazine, 40(1): 132-139, 2002.
this was not the case. The learning curve for each of [4] C. Zhu, O. W. W. Yang, J. Aweya, M. Oullette,
the simulators was different, and sometimes steeper and D. Y. Montuno. A comparison of active queue
than expected. To create an Ns-2 model involves management algorithms using the OPNET Modeler.
writing a script in an extension of tcl, which will be IEEE Communications Magazine, 40(6): 158-167,
unfamiliar to most of those using the simulator for the 2002.
same time. On the other hand, as benefits a [5] V. Paxson and S. Floyd. Why we don't know how
commercial product, OPNET has a well-engineered to simulate the Internet. In Winter Simulation
user-interface using mainstream software and Conference, pages 1037-1044, 1997.
operating system. [6] L. Breaslu, K. Estrin, D. Fall, S. Floyd, J.
Heidemann, A. Helmy, P. Huang, S. McCanne, K.
5 Conclusions and further work Varadhan, X. Ya, and H. Yu. Advances in network
In this paper, two network simulators were simulation. IEEE Computer, 33(5): 59-67, 2000.
compared with a network testbed. The accuracy of Ns- [7] E. Jammeh, M. Paredes, and M. Ghanbari.
2 and Modeler from OPNET was compared using Transporting real time transcoded video over the
CBR data traffic and an FTP session. Several scenarios Internet using end-to-end control. In International
were evaluated and regenerated in the simulation tools Packet Video Workshop, 2002.
and the network testbed. The results provide [8] R. Currier. Test-drive your network designs.
interesting guidelines to network researchers in the Network World, May 1999.
selection of network simulation tools. [9] OPNET Users' Manual, OPNET Architecture,
From the researchers point of view, Ns-2 provides OV.415.http://forums.opnet.com.
very similar results compared to OPNET Modeler, but [10] S. Bajaj, L. Breslau, D. Estrin, K. Fall, S. Floyd,
the “freeware” version of Ns-2 makes it more M. Haldar, P. Handley, A. Helmy, J. Heidemann, P.
attractive to a researcher. However, the complete set of Huang, S. Kumar, S. McCanne, R. Rejajie, S. Punnet,
OPNET Modeler modules provides more features than K. Varadhan, X. Ya, H. Yu, and D. Zappala.
Ns-2, and it therefore will be more attractive to Improving simulation for network research. Technical
network operators. Report 99-702b, USC Computer Science Department,
One specific observation can be made about these 1999.
network simulators as a result of these experiments. [11] K. Fall. Network emulation in the VINT/ns
For a simple CBR data traffic, it appears that the simulator. In Fourth IEEE Symposium on Computers
simulators had no significant problem in terms of and Communications (ISCC'99), pages 59-67,1999.
accurately modeling the testbed behavior. However, in [12] D. Estrin, M. Handley, J. Heidemann, S.
the case of an FTP session, the simulators using McCanne, Y. Xu, and H. Yu. Network visualization
default simulation settings did not adequately model with the VINT Network Animator Nam. Technical
the dynamic behavior of FTP when is used in its basic
Report 99-703b, USC Computer Science Department,
1999.
[13] W. Dinkel, D. Niehaus, M. Frisbie, and J.
Woltersdorf. KURT Linux Users Manual, 2002.
http://www.ittc.ku.edu/kurt/papers/user-manual-
DRAFT.pdf.
[14] The Otcl Tutorial, 1995.
http://bmrc.berkeley.edu/research/cmt/cmtdoc/otcl/tuto
rial.html (Current v 3 03).
[15] S.Y. Wang and H. T. Kung. A new methodology
for easily constructing extensible and high fidelity
TCP/IP network simulators. Computer Networks,
40(2): 257-278, 2002.
[16] A. Bhushan. A file transfer protocol, Internet
Engineering Task Force RFC 114. Technical report,
1971.
[17] J. Postel. File transfer protocol (ftp), Internet
Engineering Task Force RFC 959. Technical report,
1985.
[18] The New Reno Modification to TCP's Fast
Recovery Algorithm, Internet Engineering Task Force
RFC 2582.
[19] TCP Extensions for High Performance, Internet
Engineering Task Force RFC 1323. pages 9-11.
[20] tcpdump manual pages.
http://www.tcpdump.org/tcpdump man.html.
[21] V. Paxson, "Measurements and Analysis of End-
to-End Internet Dynamics," Ph.D. dissertation, U.C.
Berkeley, 1997
[22] Organizing server assets: Methodology for
organizing server assets, 2003. From the OPNET
Methodology and Case Studies Website, part of the
Technical Resources papers.
[23] M. Masuda and J. Ichimura. Evaluation of
simulation accuracy and network planning case study.
OPNET website white paper.
[24] The Network Simulator ns-2: Tips and Statistical
Data for Running Large Simulations in NS;
http://www.isi.edu/nsnam/ns/ns-largesim.html.
[25] W. G. Bragg. Which network design tool is right
for you? IEEE IT Pro Magazine, 2(5): 23-31,2000.