Hi Basim,

Yes, you are right. The file "gen_pl.tcl" generates a file called
"run_pl_sim" in which 30X50 simulation runs (using the file "pl.tcl" and the
default values listed in the file "defaults-802.15.4a.tcl") will be listed,
i.e., there is 30 simulation experiments, and each experiment is repeated 50
times. 

Also the file "run_pl_sim" will contain some commands to extract 4 trace
files from the original trace file for each simulation run (using the files
frd1.txt, frd3.txt, frd8.txt, frs1.txt, frs3.txt, and frs8.txt). 

When the file "run_pl_sim" is executed , there will be 30X50X4 = 6000 trace
files.

(*) What should I do with these 6000 trace files?
In MATLAB, run the file "info_pl.m" with the same 5 parameters as in
"run_pl" file (see file 'instructions-before-using-codes.txt'). This will
extract the useful information from the trace files. The 6000 trace files
will be replaced by 30X50 files.
(NOTE: "run_pl" and "info_pl" can be executed simultaneously to save time)

(*) What should I do with the 1500 information files?
In MATLAB, run the file "analyse_pl.m" with the same 5 parameters as in
"run_pl" file. This will tabulate the results obtained from 1500 files into
one file only.

(*) What should I do with this one file?
In MATLAB, run the file "plot_pl_avg.m" to obtain various plots and graphs.

Hope this help.

Best wishes,
Samer

-----Original Message-----
From: Basim Javed [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 26, 2008 11:35 AM
To: Samer Bali
Subject: Re: [ns] repeat simulation

Hello Samer

its a nice effort.
after having an overview, I think u wrote your code in tcl. right?

would u kindly guide me, as also I want to run many simulations:

whats the high level view of your approach? what i mean is:

BIG PICTURE
loop:

initialize NS
create a scenario
run the simulation
get the results processed
terminate NS

end loop:

Also could you plz specify how are u getting the throughput stuff by
processing the out.tr files by something like perl...? How do u
average out the throughput for different runs, as I guess, you would
get different separate out.tr files?

thanks many.
basim
On Tue, Feb 26, 2008 at 10:55 AM, Samer Bali <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> I wrote a code to calculate many parameters: packet delivery ratio,
> normalized throughput, routing overhead ratio, end2end delay, hop count
and
> connection time. Furthermore, this code is suitable in case you want to
> repeat your simulation experiment many times to take the average of them.
> This code is freely available and you can download it from the following
> link between '(' and  ')':
>
> (
>
http://www.ikt.uni-hannover.de/fileadmin/institut/mitarbeiter/bali/pl-sim-1.
> 1.zip )
>
> There is a text file that explains how to use the code. However, I wrote
> this code for my own use and for my specific scenario.
>
> Best Regards,
> Samer
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of amel ksentini
> Sent: Monday, February 25, 2008 11:13 AM
> To: [email protected]
> Subject: [ns] repeat simulation
>
>
> hi everybody
> how can i repeat a simulation in a script?
> is there a proc to implement in the script ti do so?
> thanks
>
>

Reply via email to