Actually, I am trying to implement the " Probabilistic Algorithm in NS2".
The problem is; when I generate a scenario file in a randomly distributed nodes in the network, I give the scenario file a filename using ./setdest.
But when I run the simulation it tells me that it cannot readt the scenario file. So I am afraid that I miss something and do not know it indeed.
the syntax to implement the tcl script is:
Script usage is : ns pbcast_randsim.tcl -scenfile (scenario-file) -prob (probability)
I use the following when implementing:
tamer@zeid:~/ns-allinone-2.34/ns-2.34/pbcast$ ns pbcast_randsim.tcl -scenfile scen-20 -prob 0.6
and it gives me the following:
num_nodes is set 20
couldn't read file "scen-20": no such file or directory
while executing
"source.orig scen-20"
("uplevel" body line 1)
invoked from within
"uplevel source.orig [list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source $val(scenfile)"
(file "pbcast_randsim.tcl" line 113)
The defining options are the following:
# ======================================================================
# Define options
# ======================================================================
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) 20 ;# default number of mobilenodes
set val(rp) AODV ;# routing protocol
set val(sc)"/home/tamer/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen/setdest/scen-20" ;# scenario file
set val(x)500.0 ;
set val(y)500.0 ;
set val(simtime)100.0 ; #sim time
Could any one help please?
Thank you in advance.
Best Wishes
Thamer Al-Jahamneh
No comments:
Post a Comment