[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] Problem with "wireless2.tcl" in Marc Greis's tutorial



Hello,

I ran the tcl scrip "wireless2.tcl" from Marc Greis's tutorial (chapter
X.2)  but I received the following error messages:

------------------------------------------------------------------------
-
[warning: No channel specified.
num_nodes is set 3
warning: Both propType and propInstance are set.
*** NOTE: no connection pattern specified.
Loading scenario file...
Load complete...
Starting Simulation...
warning: Route to base_stn not known: dropping pkt
warning: Route to base_stn not known: dropping pkt
warning: Route to base_stn not known: dropping pkt
warning: Route to base_stn not known: dropping pkt
warning: Route to base_stn not known: dropping pkt
NS EXITING...
[susan@mac-sim]$ Cannot connect to existing nam instance. Starting a new
one...
Unknown Flag -Z in: n -t * -a 1.0.1 -s 3  -x 83.364418416244007 -y
239.43800983126101 -Z 0 -z 20  -v circle -c black

Unknown Flag -Z in: n -t * -a 1.0.2 -s 4  -x 257.04629832315698 -y
345.35773177920402 -Z 0 -z 20  -v circle -c black

Unknown Flag -Z in: n -t * -a 1.0.3 -s 5  -x 591.25656009383295 -y
199.37330681680399 -Z 0 -z 20  -v circle -c black

Unexpected end of line in: + -t 0.100952880 -s 5 -d -1 -p message -e 60
-c 2 -a 0 -i 0 -k MAC 
Perhaps you have extra spaces at the end of the line.
Last parsed attribute flag was -k

Unexpected end of line in: + -t 0.443187536 -s 4 -d -1 -p message -e 60
-c 2 -a 0 -i 1 -k MAC 
Perhaps you have extra spaces at the end of the line.
Last parsed attribute flag was -k

similar error message continues as simulation advances ....
------------------------------------------------------------------------
-------------------------------------------

Has anyone encounter similar problem when running the script?  
I'm using ns version (2.1b7-snapshot-20000808) and NAM version
(v1.0a10). The wireless2.tcl script is attached. 


Thank you.

Susan 

 <<wireless2.tcl>> 

wireless2.tcl