Hi,
I am working on protocol performance analysis fro Ad Hoc Networks.
I am trying replicate data produced by the Author of AODV from the paper
S.R.Das,C.E.Perkins, and E.M.Royer, “Performance
comparison of two on-demand routing protocols for ad hoc
networks, in Proc. INFOCOM 2000, pp3-12.
*But the problem is that they are getting 90+ % throughput but I am unable
to get that kind of output I am getting around 35% throught what could be
the reason behind that.....*
*pls if anyone can throw light at y i m getting that kind of results....its
very urgent...*
I am generating mobility trace using this
../setdest -v 1 -n 50 -p 0 -M 20 -t 900 -x 1500 -y 300 >mobility_20

and traffic files  using  this

 ns cbrgen.tcl -type cbr -nn 50 -seed 7 -mc 20 -rate 4.0 > traffic_scen

the file i m using is as below
# A two node wireless simulation with movement.

# Define options
# ======================================================================
set val(chan)           Channel/WirelessChannel    ;# channel type
set val(prop)           Propagation/FreeSpace   ;# 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(ifq)            CMUPriQueue                ;# interface queue type
set val(ll)             LL                         ;# link layer type
set val(ant)            Antenna/OmniAntenna        ;# antenna model
set val(ifqlen)       64                         ;# max packet in ifq
set val(nn)           50                          ;# number of mobilenodes
set val(rp)            DSR                       ;# routing protocol
set val(x)    1500                        ;# X dimension of topography
set val(y)    300                        ;# Y dimension of topography
set val(finish)      900                        ;# time of simulation end
# ======================================================================

# Main Program
# ======================================================================

# Initialize Global Variables

set ns_ [new Simulator]
set tracefd [open trace_10_0_1.tr w]
set log [open output1.tr w]
set namtrace [open out1.nam w]

$ns_ trace-all $tracefd
$ns_ use-newtrace
$ns_ namtrace-all-wireless $namtrace $val(x) $val(y)

# Define a 'finish' procedure

proc finish {} {
    global ns_ tracefd log namtrace
    $ns_ flush-trace
    close $tracefd
    close $namtrace
    close $log
    #exec nam out.nam &
}
# Set up topography object
set topo       [new Topography]
$topo load_flatgrid $val(x) $val(y)

# Create God
create-god $val(nn)

#Create channel
set channel1_ [new $val(chan)]

Phy/WirelessPhy set RXThresh_ 4.4619e-10
Phy/WirelessPhy set Pt_ 0.2818
Phy/WirelessPhy set freq_ 2400e+6
Phy/WirelessPhy set L_ 1.0
#range approximate 250
# Configure nodes
        $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) \
 -channel $channel1_ \
 -topoInstance $topo \
 -agentTrace ON \
 -routerTrace ON \
 -macTrace ON \
 -movementTrace OFF \
 -txPower 0.6 \

for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns_ node]
}
# Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes
source "mobility/mobility_20"
#loading the traffic gen file
source "traffic/traffic_scen"


# Define node initial position in nam
for { set i 0 } { $i < $val(nn) } { incr i } {
$ns_ initial_node_pos $node_($i) 40
}
# Telling nodes when the simulation ends
for {set i 0 } {$i < $val(nn) } {incr i} {
$ns_ at $val(finish) "$node_($i) reset";
}
# Ending nam and the simulation
$ns_ at $val(finish) "$ns_ nam-end-wireless $val(finish)"
$ns_ at $val(finish) "finish"
$ns_ at 900.01 "puts \"ns EXITING...\" ; $ns_ halt"

puts "Starting Simulation..."
$ns_ run

Reply via email to