[ns] [Fwd: Re: LEACH problem]
Sita S. Krishnakumar
sita at ece.gatech.edu
Wed Apr 5 18:21:06 PDT 2006
Scenario files generally start with a node id. Yours seems to start with
the location. Maybe that is the problem?
Also, why are yoy specifying the parameters at the command prompt (not
that it is incorrect, I have not come across it).
On a separate note, where did you get the LEACH implementation from?
Regards,
Sita
>
> hi all,
>
> i m trying to run LEACH protocol but getting errors in scenario file. can
> anybody help regarding this .
> thnx in advance.
>
> bash-2.03$ ./ns tcl/ex/wireless.tcl -sc mit/uAMPS/sims/100nodes.txt -rp
> leach -x 1000 -y 1000 -nn 101 -stop 100 -eq_energy1 -init_energy 2
> -filename
> leach_file -dirname leach_dir -num_clusters 5 -bs_x 0 -bs_y 0
> Creating sensor nodes...
> 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
> 28
> 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
> 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
> 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 (100 == BS)
> *** NOTE: no connection pattern specified.
> Loading scenario file...
> invalid command name "65.745973803916002"
> while executing
> "65.745973803916002 92.581722416254564"
> (file "mit/uAMPS/sims/100nodes.txt" line 1)
> invoked from within
> "source.orig mit/uAMPS/sims/100nodes.txt"
> ("uplevel" body line 1)
> invoked from within
> "uplevel source.orig $fileName"
> (procedure "source" line 12)
> invoked from within
> "source $opt(sc)"
> (file "tcl/ex/wireless.tcl" line 298)
>
>
> with regards,
> Brajesh Gupta
>
More information about the Ns-users
mailing list