Beruflich Dokumente
Kultur Dokumente
A CASE STUDY
On Implementation of mobile network using network simulator (NS2)
Prepared by:
Rohan A. Chavan
(Roll-No 10, T.E-COMP)
Department of Computer Engineering, Shri. L.R. Tiwari College of Engineering,
Mira Road, Maharashtra.
Presented to:
Prof: Garima Mishra
(Lecturer, Department of computer engineering)
Date of Submission
March 24, 2015
Abstract: the main goal of this paper is to present how to use NS2simulation for
designing wireless networks and using Cryptography algorithm as to security
information. It briefly describes the basic wireless networks categories, analyzes
wireless LAN networks, briefly describes their components and technologies, explains
the Wi-Fi technology and analyzes property sources related to wireless networks
simulators and its detailed description, Specify the configuration for the simple wireless
network and create corresponding model by using ns-2 simulator, demonstrates selected
characteristics of the specified network configuration using the simulation model, and
show scenario of transmission data among nodes.
Keywords: NS2, Wireless Network, Security, RC5 algorithm.
History about NS-2
1. NS-1
Introduction
NS (from network simulator) is a name for series of
discrete event network simulators, specifically ns-1,
ns-2 and ns-3. All of them are discrete-event
network simulators, primarily used in research [4]
and teaching. Ns-3 is free software, publicly
available under the GNU GPLv2 license for
research, development, and use.
A network that does not contain wire is known as
wireless network [9]. To design the wireless
scenario we are using very popular simulator NS2
among various simulation tools. It is an Object
oriented and discrete event driven network
simulator used by various researcher, teacher and
student into the education field for research point of
view
Design of wireless Network uses NS2, as a base on
Security evaluation, and describes the proposed
model of the system and complete description of
the Simulations and software program needed for
implementing the Network. Ns-2 is a widely used
tool to simulate of networks. Network simulator is a
part of software that predicates the performance of
a network without a real network being there.NS2
is a vital simulation tool for networks. It supports a
number of algorithms for routing and queuing. NS2
is very helpful because it is very costly to verify
viability of new algorithms, test architectures,
check topologies, check data transmission etc.
Network simulators are names for series of discrete
event network simulators and are heavily used in
ad-hoc networking res. and support popular
network protocols, offering simulation results for
wireless networks. Also using security in the
network the basic conceptions in the security of the
2
What is ns-2?
Implementation of NS-2
1. Installing ns-2
Ns-2 network simulator was installed from the
website
http://www.isi.edu/nsnam/ns/
Installation of ns-2 could be a bit lengthy and a
time-consuming process. It involved downloading
and setting up a 250 MB package. However,
getting the simulator to work was the first step
involved in carrying out the simulations.
2. Understanding the basics involved in
ns-2 simulations
A very good tutorial to understand basic ns-2
simulations is available at the website:
http://www.isi.edu/nsnam/ns/tutorial/index.html
3. CMUs wireless extensions to ns-2
CMUs wireless extension to ns-2 (incorporated in
the current release ns-2.1b9a) provides the
What's Nam?
Nam is a Tcl/TK based animation tool for viewing
network simulation traces and real world packet
traces. It supports topology layout, packet level
animation, and various data inspection tools.
Nam began at LBL. It has evolved substantially
over the past few years. The nam development
effort was an ongoing collaboration with the VINT
project. Currently, it is being developed as an open
source project hosted at Sourceforge.
WIRELESS NETWORK
Network is described as a network of devices which
communicates by using wireless technologies.
Network Wireless communication is used as a term
for transmission of information from one place to
another. This may be one-way communication as in
broadcasting systems (such as radio and TV), or
two-way communication (e.g. mobile phones
ground to Air and Computer network). In
telecommunications,
Network
wireless
communication is the transfer of information and
without the use of wires .Wireless Network
communication refers to any type of computer or
devices (for examples Access point, wireless
Router) network that is commonly associated with
communications
wireless
network
to
interconnections nodes. Network security is a
related topic in many organizations.
The widespread apprehension over network
security is due to the connectivity of many.
Consideration of security in the System
Development Life Cycle and save information is
essential for implementing and integrating a
3
CATEGORIES OF NETWORK
Wireless Networks can be classified into some
categories depending on different criteria (e.g. size
of the physical area that they are capable of
covering and domain of their use).The Wireless
networking refers to nearly every type of design as
some kind of area network. Common examples of
area network types are:
a.
b.
c.
d.
e.
FEATURES OF NS2
NS2 (Network Simulator version2): NS2 is a
discrete event simulator targeted at networking
research. It provides support for simulation of TCP,
routing, and multicast protocols over all networks
wireless.NS2 can be employed in most UNIX
systems and windows (XP, VESTA and 7), and in
this paper windows XP is used. Most procedure
processes of the NS2 code are written in C++. It
uses TCL as its scripting language, Otcl adds object
STRUCTURE OF NS2
1. NS is an object oriented discrete event
simulator
(a). Simulator maintains list of events and executes
one event after another.
(b). Single thread of control: no locking or race
conditions.
2. Back end is C++ event scheduler.
(a). Protocols mostly.
3. Source code:
(a). Most of process procedures of NS2 code are
written in C++ code.
4. Scripting language:
(a). It uses TCL as its scripting language OTcl adds
object Orientation to TCL.
5. Protocols implemented in NS2:
(a). Transport layer (Traffic Agent) TCP, UDP.
(TCP using in our design of wireless network).
(b). Interface queue, Drop Tail queue.
6. Scalability:
(a). Per-packet processing must be fast;
(b). Separating control and packet handling.
7. Import C++ code to TCL script program
Figure 1 refers to directory of NS2 to run tcl
program to show Nam tool and show nodes:
PROGRAMMING
NS2
LANGUAGE
IN
SECURITY
Security Goals:
RC5 Algorithm:
In this Paper, to design wireless network using RC5
algorithm to security of information (data), RC5
algorithm was developed by Ronald Rivest in 1995
as a parameterized symmetric encryption. RC
stands for "Rivest Cipher", oral ternatively, "Ron's
Code". RC5 parameters are: a variable block size
(w), a variable number of rounds (r), and a variable
key size (k).Allowable choices for the block size
(w) are 32, 64 and 128 bits. The number of rounds
range from 0 to 255 bits, and the key size range
from 0 to 2040 bits in size. RC5 has three modules:
key-expansion, encryption and decryption units.
Generally, implementing ciphers in software and
hardware is not efficient based on its speed in terms
of computation and hence the use of hardware
devices is an alternative The RC5 algorithm uses
three primitive operations and their inverses.
SIMULATION
Simulation is one of the important technology in this
modern time. There are so many objects in real or
hypothetical life. The network can also be simulated
on the computer. A network simulator is a technique
of implementing the network on the computer. Most
of the simulators are graphical user interface driven,
there are so many simulators which require
commands or scripts as we talk about the NS2 which
gives input in form of TCL scripts or in AWK scripts
etc. The network parameters describe the state of the
network (node placement, existing links) and the
events. An important output of simulations is the
trace file. Examples of network simulation software
are ns2/ns3, OPNET, NetSim. Network simulators
are particularly used to simulate, design and analyze
the various kinds of networks, also analyze the
performance by the effect of various network
parameters.
Parameters
Area of Simulation
Nodes number
Types of Routing
protocol
Internet protocol type
Antenna Model
Max package
Type of the MAC
Transmission speed
Bandwidth
Values
(500X500)m
35
AODV
TCP
Omnidirectiona
l
50
802.11
1,2 Mbps
20MHz
8
Security algorithm
RC5
References
10