Wireless simultion in NS2

Implementing Wireless simulation using NS2

What is wirless simulation?Benefits of wireless simulation in ns2?

Wireless simulation in ns2 employ airwaves communication which is implemented using physical level of the OSI model network structure.Initial setup of wireless simulation in ns2 requires infrastructure-based wireless network requires little more than a single access point.Wireless simulation in ns2 allows for easy connectivity between computers.Wireless network  provides connectivity to wireless devices within a limited geographic area.

Architecture-of-Wireless-Network

Topologies of wireless network:

  • Mesh or ad hoc network topology.
  • Point-to-point bridge topology.
  • Point-to-multipoint bridge topology.

Download sample source code for implementing Wireless simulation in ns2.

NS2 Projects Video Output

See our Latest Video Output of Ns2 Projects on Various Domain.

Ns2 Projects

Customized NS2 Projects for B.E/B.Tech/M.E/M.Tech/Ms/PhD Scholars.

Ns2 Projects Screen Shots

Ns2 Projects Screen Shots.Regular Update of NS2 Projects Screenshots here!

Sample code for wireless network



set val(chan)           Channel/WirelessChannel    ;# channel type 
set val(prop)           Propagation/TwoRayGround   ;# radio-propagation model 
set val(netif)          Phy/WirelessPhy            ;# network interface type 
set val(mac)            Mac/802_11                 ;# MAC type 
set val(ifq)            Queue/DropTail/PriQueue    ;# interface queue type 
set val(ll)             LL                         ;# link layer type 
set val(ant)            Antenna/OmniAntenna        ;# antenna model 
set val(ifqlen)         50                         ;# max packet in ifq 
set val(nn)             2                          ;# number of mobilenodes 
set val(rp)             DSDV                       ;# routing protocol 

 
 
set ns_		[new Simulator] 
set tracefd     [open simple.tr w] 
$ns_ trace-all $tracefd 
 
# set up topography object 
set topo       [new Topography] 
 
$topo load_flatgrid 500 500 
 
create-god $val(nn) 
 
        $ns_ node-config -adhocRouting $val(rp) \ 
			 -llType $val(ll) \ 
			 -macType $val(mac) \ 
			 -ifqType $val(ifq) \ 
			 -ifqLen $val(ifqlen) \ 
			 -antType $val(ant) \ 
			 -propType $val(prop) \ 
			 -phyType $val(netif) \ 
			 -channelType $val(chan) \ 
			 -topoInstance $topo \ 
			 -agentTrace ON \ 
			 -routerTrace ON \ 
			 -macTrace OFF \ 
			 -movementTrace OFF			 
			  
	for {set i 0} {$i < $val(nn) } {incr i} { 
		set node_($i) [$ns_ node]	 
		$node_($i) random-motion 0		;# disable random motion 
	} 
 

$node_(0) set X_ 5.0 
$node_(0) set Y_ 2.0 
$node_(0) set Z_ 0.0 
 
$node_(1) set X_ 390.0 
$node_(1) set Y_ 385.0 
$node_(1) set Z_ 0.0 
 
$ns_ at 50.0 "$node_(1) setdest 25.0 20.0 15.0" 
$ns_ at 10.0 "$node_(0) setdest 20.0 18.0 1.0" 
 
# Node_(1) then starts to move away from node_(0) 
$ns_ at 100.0 "$node_(1) setdest 490.0 480.0 15.0"  
 
set tcp [new Agent/TCP] 
$tcp set class_ 2 
set sink [new Agent/TCPSink] 
$ns_ attach-agent $node_(0) $tcp 
$ns_ attach-agent $node_(1) $sink 
$ns_ connect $tcp $sink 
set ftp [new Application/FTP] 
$ftp attach-agent $tcp 
$ns_ at 10.0 "$ftp start"  
 
for {set i 0} {$i < $val(nn) } {incr i} { 
    $ns_ at 150.0 "$node_($i) reset"; 
} 
$ns_ at 150.0 "stop" 
$ns_ at 150.01 "puts \"NS EXITING...\" ; $ns_ halt" 
proc stop {} { 
    global ns_ tracefd 
    $ns_ flush-trace 
    close $tracefd 
} 
 
puts "Starting Simulation..." 
$ns_ run 



Journal Support for Research Scholars
NS2 Projects Journal support
Ns2 Projects Work Progress
  • MANET – Mobile Ad Hoc Network 95%
  • VANET – Vechicle Ad Hoc Netwok 97%
  • LTE – Long Term Evolution 78%
  • IoT – Internet of Things 90%
  • Wireless Sensor Network 89%
  • Network Security 89%
  • Ns2 Attacks 96%
  • Cognitive Radio Network 85%
  • Parallel and Distributed Computing 73%
  • SDN – Software Defined Networking 95%
  • P2P , Video Streaming , Peersim 96%
  • IPV4 , IPV6 88%
  • 4G Network , 5G Network 80%
  • Visual , Underwater Sensor Network 79%
  • Multicasting Communication 84%
  • Wimax, WiFi 90%
  • OFDMA 94%
Our Achievements – Ns2 Projects
Ns2 Projects Achievements