Hi and good day 


i want to use the " cmu-scen-gen" node movement generator , to create a 
movement node file 

i already made the file using this path " 
$NS2_HOME/indep-utils/cmu-scen-gen/setdest. " 

and i follow this instruction 

./setdest [-n
num_of_nodes] [-p pausetime] [-M maxspeed] [-t simtime] [-x maxx] [-y maxy]
> [scenario_output_file]so now when i run this commend 

./setdest -n 100
-p 2.0 -M 20.0 -t 250 -x 330 -y 220> scen-100
i get the file inside the setdest. folder in the ns-2.29 directory , but when i 
copy it and past it in the ns-2.29/tcl/mobility/scene dose not run 
so my question is after i create the file using the cmu-scen-gen , should i 
just copy it from the setdest folder and put on the scene folder or should i do 
something first like configure the ns-2 or is there any other way to make the 
ns2 recognize and read the movement file that i created 
thanks 


# ======================================================================
#                        Define options
# ======================================================================

set opt(tr-ns)   
 100nswimax-out.tr              ;# set trace file's name
set opt(tr-nam)  100nswimax-out.nam              ;# set nam's name
set opt(chan)   Channel/WirelessChannel          ;# channel type
set opt(prop)   Propagation/TwoRayGround         ;# radio-propagation model
set opt(netif)  Phy/WirelessPhy/OFDM             ;# network interface type
set opt(mac)    Mac/802_16                       ;# MAC type
set opt(ifq)    Queue/DropTail/PriQueue          ;#
 interface queue type
set opt(ll)     LL                               ;# link layer type
set opt(ant)    Antenna/OmniAntenna              ;# antenna model
set opt(ifqlen)         50                       ;# max packet in ifq
set opt(nn)             100                      ;# number of mobilenodes
set opt(adhocRouting)  
 NOAH                     ;# routing protocol

set opt(cp)     ""                               ;# cp file not used
set opt(sc)     "../tcl/mobility/scene/scen-100" ;# node movement file. 

set opt(x)      1500                             ;# x coordinate of topology
set opt(y)     
 1500                             ;# y coordinate of topology
set opt(stop)   250                              ;# time to stop simulation

set opt(ftp1-start)      0.01                    ;# time to start ftp
set num_wired_nodes      2

Reply via email to