Simulation of Wireless Networks Using NS2 Simulator
Simulation of Wireless Networks Using NS2 Simulator
Introduction:
NS2 simulator is a tool used to simulate wireless networks for developing a mobile
network used analyse different patterns in the systems .we can observe the network
and generate results showing patterns in networks. simulator can be used to analyse
various problems in network elated to traffic control, congestion and other
issuses.this tool is built up on the principles of object oriented principles. since this
tool is user friendly we don’t need to write code for simulating a network we just
have to specify the values for a geographic area .ns 2 tool is based on c++ language
were the parameters are defined as objects that can be instantiated depending on
the method .Ns2 simulator can also be used to analyse different traffic problems and
also to simulate complex networks like multi-hop environment with in geographical
area . this paper presents a example for two node network with in area of 500 by
600 using TCP as medium for information transfer . packets are transferred as they
move apart and 3 mobile node to simulate a multi hop network .the analysis and
results of this network is provided .
Here is network which simulates two simple node wireless environment . any
wireless network as following criteria they are 1)Node Configuration 2)basic
simulation 3)Movement Definition 4) Results for trace file analysis. The network
design consists of two mobile nodes, nod 0 and node 1. The mobile nodes revolve
among an area which is specified in the boundary of 600mX500m. Mobile node
consists of components which specifies channel type, propagation model used for
communication, antenna type ,link layer type ,interface queue type, maximum number
of packets allowed ,interface type used , MAC type , Adhoc protocol and number
nodes. The nodes commence at two inverse sides of the boundary. Then it comes to
each other in the first half of the simulation and goes away in the second half. A TCP
connection is used as medium two mobile nodes. Packets are transferred between the
nodes as they come close to the range of one another. When the packets move away,
packets start getting dangled.
A mobile node comprises of network variables such as Link Layer (LL), “Interface
Queue (IfQ), MAC layer, the wireless channel nodes are used for transmitting signals
from each other. Before simulating a wireless network, we have to specify the type for
network components. we also need to mention other variables like antenna, the radio-
propagation model, the type of ad-hoc routing protocol used by mobile nodes etc.
God object is used to data which as all-knowing commentator would have number of
nodes connectivity information which else would have to be calculated on-the-fly One
single” GOD object per simulation involved by the MAC layer gives the hypothesis to
assess.
# configure nodes
NS-2 simulation tools is widely used in the research work of mobile ad hoc networks.
NS-2 comes fully outfitted of protocols, prototypes, methods, tools, and is for free.
hence, in terms of scientific credence, number of tools/modules and cost, NS-2 would
be a sort of ideal choice.
Demerits in NS simulation :
ISO/IEC and IEEE draft international standards, Part 11: Wireless LAN Medium
Access Control (MAC) and Physical Layer (PHY) specifications, ISO/IEC 8802-11,
IEEE P802.11/D10, Jan 1999.
IEEE Std 802.11b-1999 (Supplement to ANSI/IEEE Std 802.11, 1999 Edition).