A Study of Comparison of Network Simulator - 3 and Network Simulator - 2
A Study of Comparison of Network Simulator - 3 and Network Simulator - 2
A Study of Comparison of Network Simulator - 3 and Network Simulator - 2
ABSTRACT - Network simulation is undoubtedly one of test any network there is a need of real system or tools
the most prevalent evaluation methodologies in the area of or simulators, but installing a real network is unfeasible
computer networks. While simulation is not the only tool due to several reasons such as – high implementation
used for data networking research, it is extremely useful cost, expensive field tests etc. Moreover experiments
because it often allows research questions and prototypes
to be explored at relatively lesser cost and time than that
(especially wireless) can be hard to reproduce. A
required to experiment with real implementations and typical network simulator can provide the programmer
networks. The network simulators allow one to model an with the abstraction of multiple threads of control and
arbitrary computer network by specifying both the inter-thread communication. Functions and protocols
behavior of the network nodes and the communication are described either by finite-state machine, native
channels. It provides a virtual environment for an programming code, or a combination of the two. A
assortment of desirable features such as modeling a simulator typically comes with a set of predefined
network based on a specific criteria and analyzing its modules and user-friendly GUI. Some network
performance under different scenarios. The newly simulators even provide extensive support for
proposed network simulator NS-3 supports coupling,
visualization and animations. There are lots of good
interoperability, good memory management, debugging of
split language objects, coding in C++ and object oriented things about simulation:
concepts, as well as supports models supported by NS-2
and most suitable for wireless networks. The primary Reproducibility
purpose of this paper is to review this new simulator, as Easier to setup, deploy, instrument
well as find its advantages in the field of research and how
it is different from others mainly Ns2. Investigate non-existent systems
Scalability
KEYWORDS - Ns-2, TCl, Simulation, Network Simulator, Most available network simulation toolkits are based
on the paradigm of discrete event-based simulation [5]
I. INTRODUCTION (DES). Here, the simulated network nodes trigger
events, for instance, when a packet is sent to another
Simulation is a key component of network research node. The simulator maintains an event queue sorted by
which requires debuggability, reproducibility, the scheduled event execution time. The simulation
parameter exploration and no dependency on existing itself is performed by successively processing the
hardware or software [3]. Simulation is the imitation of events in the queue. Section 2 will discuss about
some real thing, state of affairs, or process. It is widely network simulators and their roll and will compare ns-2
used for the development of new communication and ns-3. The overview of NS-3 is given in section-3
architectures and network protocols. Due to growth of with its features and advantages. Section 4 reviews the
computer networks and complex scenarios the role of basic models, fundamental Objects and Code
Network simulators in research field cannot be ignored. architecture. Emulation support and the Tracing Model
Simulators are useful tools when one wants to consider are also given in this section. Conclusion and future
time and resources, implementation of new security work is discussed next.
solutions, performance estimation etc. Key issues in
simulation include acquisition of valid source II. NETWORK SIMULATOR
information about the relevant selection of key
characteristics and behaviors, the use of simplifying NS or the network simulator is a discrete event
approximations and assumptions within the simulation, network simulator. It is popular in academia for its
and fidelity and validity of the simulation outcomes. To extensibility (due to its open source model) and
3085
Rachna Chaudhary et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 3 (1) , 2012, 3085 - 3092
3086
Rachna Chaudhary et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 3 (1) , 2012, 3085 - 3092
1) To develop a preferred, open simulation environment and Georgia Tech University (Atlanta) George Riley
for networking research (main author of GTNetS) and Raj Bhattacharjea[5].
2) A tool aligned with the simulation needs of modern A. NS-3 version release[6]:
networking research
The brief overview of simulator is discussed in this Fig 2: An open source project building a new network simulator [4]
section with its features [4]. Ns 3 I is basically a
synthesis of:
B. Ns-3 Features[7,8,9]
YANS( Yet Another Network Simulator),
The ns-2 simulator has long been a widely used
Ns-2, simulator for research and education on Internet and
other network systems. However, work is progressing
on a replacement for ns-2. The features of NS3 are as
GTNetS simulators, and under:
3087
Rachna Chaudhary et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 3 (1) , 2012, 3085 - 3092
including support for tying together virtual machines of reliability results under a network environment of high
various types. degree of complexity.
1. Testbed integration: Ns-3 will enable the b) Forecast function of network simulation is
testbed-based researcher to experiment with unmatched by any other method.
novel protocol stacks and emit/consume
network packets over real device drivers or c) Wide range of use, both optimization and expansion
VLANs. The internal representation of packets of the existing networks and design of the new network
is network-byte order to facilitate serialization. can be used, and particularly applicable for design and
optimization of Medium and large network.
2. Attribute system: Researchers require a means
to identify and possibly reassign all values d) Low initial application cost, only very few funds will
used to configure parameters in the simulator. be able to provide practical network design and
Ns-3 provides an attribute system that operating environment for large number of students,
integrates the handling and documentation of furthermore, the constructed network model can
default and configured values. continue to use so that the latter investment will still
decline continuously.
3. Tracing architecture: Ns-3 is building a tracing
and statistics gathering framework using a e) It is flexible, vivid and visual to use simulator for
callback-based design that decouples trace teaching. To teach via NS-3, students can visually see
sources from trace sinks, enabling the dealing of the network protocol and understand the
customization of the tracing or statistics output effect of various environmental or other factors on the
without rebuilding the simulation core network, can also demonstrate the advantages and
disadvantages of various strategies through comparison.
4. Topology: For ease of use, a number of stock
topology objects should be predefined. These f) The simulation results can be reproduced and easily
stock objects can be instantiated by a single analysis. In this platform, the experimenter can obtain
line of C++ code constructing the object, with "ideal" network environment via configuring
configurable arguments. Stock objects should environmental parameters and can real-time track and
include trees, meshes, stars, and random record important information of key node so as to gain
topologies of arbitrary size. the first-hand information about network performance
evaluation. Moreover, certain special circumstances can
be reproduced at any time, which is difficult to do in the
real network.
3088
Rachna Chaudhary et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 3 (1) , 2012, 3085 - 3092
3089
Rachna Chaudhary et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 3 (1) , 2012, 3085 - 3092
F. Ns-3 Models
Fig 7 The NS-3 source code
The simulators must be updated for the rapid growth in
D. The WAF Build System[4] wireless networking, including the many variants of
The build system used on the ns-3 project is Waf. It is IEEE 802.11 networking, emerging IEEE standards
one of the new generation of Python-based build such as WiMax (802.16), and cellular data services
systems.Ns-3 uses the waf build system i.e., instead of (GPRS, CDMA). Table 2 summarizes the models used
“./configure; make” ,” ./waf” is used . in the current ns-2, as well as models planned for ns-3.
Many of the planned models may already exist in some
Waf is a Python-based framework for configuring, form as contributed code; for a new model to be
compiling and installing applications. It is a incorporated into the main branch of ns-3, it will need
replacement for other tools such as Autotools, Scons, to be validated, conform as appropriate to the coding
CMake or Ant. style, be licensed in a compatible way, and be
maintained going forward. Table 3 lists the Models
Example[6]: built so far for ns3 project.
3090
Rachna Chaudhary et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 3 (1) , 2012, 3085 - 3092
3091
Rachna Chaudhary et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 3 (1) , 2012, 3085 - 3092
REFERENCES
3092