Re: [ns] repeat simulation

2008-02-26 Thread Samer Bali

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: ns-users@ISI.EDU
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



Re: [ns] repeat simulation

2008-02-26 Thread Samer Bali

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: ns-users@ISI.EDU
 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





Re: [ns] repeat simulation

2008-02-26 Thread Samer Bali
 in an Industrial Application, accepted in
GLOBECOM'07: IEEE Workshop on Wireless Mesh and Sensor Networks, 30 Nov,
2007. Downloadable at:
http://www.ikt.uni-hannover.de/index.php?id=publikationen0

Best wishes,
Samer

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

hello Samer

I dont think if I quite understand the role of run_pl_sim? is it
another tcl file or trace file generated by gen_pl.tcl? what is this
30x50 runs..i mean the values for different parameters to be used in a
specific run?

lets consider one example of throughput averging: so you have 50 trace
file for a particular setup of parameters; only you repeat the
simulation with different seed values, while keeping other parameter
values same. Which means probably you have 50 trace files. Now you
need to average out these 50 trace file into one..right? probably the
way you would do it is to geneate a throughput file for each of these
50 files, and then add the corresponding values of same time interval,
and then divide by 50?

thanks many.
b

On Tue, Feb 26, 2008 at 12:01 PM, Samer Bali [EMAIL PROTECTED]
wrote:
 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: ns-users@ISI.EDU
  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
 
 





Re: [ns] ns-2 simulation

2008-01-17 Thread Samer Bali

Hi Suthapuch,

 

Yes , if DYMO is installed with ns-2, you can use my software with it.
However, you should make some changes regarding packet size at routing
level. First you should find the size of the packet in trace file. For
example, I found that when I set packet size in tcl file to 1024 bytes,
rpktsize will be 1084 bytes at routing level in case of OLSR and AODV, and
1064 for DSR. So you need to change spktsize and rpktsize in gen_pl.tcl
file to consider DYMO. Namely you should modify the following lines which
are found in three locations in the file gen_pl.tcl:

 set spktsize 1064

 if {$routing == AODV || $routing == OLSR} {

 set rpktsize 1084

 } else {

 set rpktsize 1064

 }

 

Hope this helps.

 

From: suthapuch purnaveja [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 16. Januar 2008 10:44
To: [EMAIL PROTECTED]
Subject: ns-2 simulation

 

January 16, 2008

 

Dear Mr. Samer Bali

 

I am from Thailand. I am studying master degree at KMUTT. I have
been interested in ad hoc network and DYMO routing protocol. I would measure
routing overhead and  packet delivery ratio for my project. I would like to
ask you that your modules can be used with DYMO and if it is available,
could you explain how to used it. I will appreciate much for your kindness.
Finally, I apologize you at taking your time and your effort on my poor
english skill. And thank you much.





 

Best Regards

Suthapuch Purnaveja

 

  _  

Never miss a thing. Make Yahoo
http://us.rd.yahoo.com/evt=51438/*http:/www.yahoo.com/r/hs  your homepage.




Re: [ns] Genrating graphs from trace file generated by OLSR ( tracegraph)

2007-11-27 Thread Samer Bali

Dear Sasi,

I used tracegraph some time ago, but I found it inefficient and sometimes
gives misleading results. Therefore I do not use it anymore. Instead, I
wrote my own 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:

(
http://www.ikt.uni-hannover.de/fileadmin/institut/mitarbeiter/bali/pl-sim-1.
1.zip )
NOTE: Be sure to include all text between '(' and  ')' when navigating to
this code location!

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. Therefore, I
encourage you to write your own code because this is the only way to obtain
what you need.

Best Regards,
Samer

-Original Message-
From: Sasidhar [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 27. November 2007 00:38
To: [EMAIL PROTECTED]
Subject: Genrating graphs from trace file generated by OLSR ( tracegraph)

Hi

  I am comparing AODV and OLSR protocols.I just attached the three files
which I implemented for both AODV and OLSR. I am sending the traffic and
mobility scenarios. For comparison of different adhoc routing protocols the
tcl file remains same except I am just changing the value of adhocRouting
variable as AODV/OLSR/DSR, etc and calculating the results.Then when
calculating for AODV I just put adhocRouting variable as AODV and run the
simulation and got the trace files from which I generated the output
successfully using tracegraph.
Well did the same for OLSR. successful in simulation and generating the
trace files but can't get graphs from the tracefiles generated by it using
tracegraph. It is giving messages like  converting nodes to ip saving in
*.tr.ip file messages.Can you check if it happens to you also? What should
I do to get the graphs for OLSR protocol from trace files? Please let me
know if I have to do something with tcl code or some thing else.

Thanks and regards.
sasi.




Re: [ns] Problem with Realistic Channel Propagation made by Wu Xiuchao

2007-09-15 Thread Samer Bali

Did you recompile ns-2? After changing any tcl file you should run 'make'
command again.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Ghada Al-Mashaqbeh
Sent: Samstag, 15. September 2007 11:22
To: ns-users@ISI.EDU
Subject: [ns] Problem with Realistic Channel Propagation made by Wu Xiuchao


Dear all,
   
  I am using the patch available at
http://nsnam.isi.edu/nsnam/index.php/Contributed_Code, which is supported by
Marco Fiore, to make use of the realistic chnnel propagation module. I have
installed it on ns-2.31 and I have done the failed hunks manually. When I am
using this model in my testing scenarios I face the following error:
  //
  invalid command name ErrorModel80211
  at line ...
  ErrorModel80211 noise1  -91
  //
   
  I have added the default values of this model variables to
~/tcl/ns-default.tcl file, but still I am getting the error.
   
  Can anybody help me please?
   
  Thanx,
   
  Ghada
   
   

   
-
Catch up on fall's hot new shows on Yahoo! TV.  Watch previews, get
listings, and more!




Re: [ns] Problem ricean propagation model

2007-09-15 Thread Samer Bali

You should make changes in some tcl files in the directory '.../tcl/lib/'.

See the following link:

http://icapeople.epfl.ch/widmer/uwb/ns-2/index.html

In this link many changes are made to install new changes in the physical
and mac layers of ns-2. Also a new propagation model (tarokh propagation) is
also added. See what are changed in the directory '.../tcl/lib/' regarding
tarokh propagation only (DO NOT MAKE the other changes of course). You will
find the changes in patch.tcl.lib file that you can download from the link
above.

 

I hope that this will help you.

 

From: ibrahim koda [mailto:[EMAIL PROTECTED] 
Sent: Samstag, 15. September 2007 12:29
To: [EMAIL PROTECTED]
Subject: Problem ricean propagation model

 

Dear Samer Bali

I am new to NS-2, and frankly I am still in the learning phase to use it in 
 my study, I am trying to include the .cc and .h classes of the 
 Ricean propagation model within the simulator. I am working under windows 
 (using Cygwin).I have put the classes  in the mobile directory in ns.

  When I am trying to test the Ricean propagation model (after I have added
it to NS-2) using the following code I got the following error: 

 invalid command name Propagation/ricean
 while executing
 Propagation/ricean create _o12 
 invoked from within

 

can't read propInstance_: no such variable 
  while executing 
  $ns_ set propInstance_ ...  

.

.

.

Here is the code portion related to the error: 
  /** 
  set val(chan)   Channel/WirelessChannel;#Channel Type 
set val(prop)   Propagation/Ricean ;# 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) 2  ;# number of mobilenodes 
set val(rp) DSDV   ;# routing protocol 
#set val(rp) DSR   ;# routing protocol 
set val(x)  500 
set val(y)  500 
  
# Initialize Global Variables 
set ns_  [new Simulator] 
set tracefd [open wireless_mitf.tr w] 
$ns_ trace-all $tracefd 
  set namtrace [open wireless_mitf.nam w] 
$ns_ namtrace-all-wireless $namtrace $val(x) $val(y) 
  # set up topography object 
set topo   [new Topography] 
  $topo load_flatgrid $val(x) $val(y) 
  # 
set prop_inst [$ns_ set propInstance_] 
$prop_inst MaxVelocity  2.5; 
$prop_inst RiceanK6; 
$prop_inst LoadRiceFile  rice_table.txt; 


How can I solve such error


 Please if u can help me

thank you



Ibrahim Khider Eltahir Khider
Communication Software and Switch Technology Research Center
Dept of Electronic and Information Systems
Huazhong University of Science and Technology
,P.R.China-Wuhan-430074
Mobile: 0086-27-63452269
Home Tel: 0086-27-87540211

  

  _  

Tonight's top picks. What will you watch tonight? Preview
http://us.rd.yahoo.com/tv/mail/tagline/tonightspicks/evt=48220/*http:/tv.ya
hoo.com/%20%0d%0a  the hottest shows on Yahoo! TV. 



Re: [ns] How to add new C++ classes to NS-2 2.31?

2007-09-12 Thread Samer Bali

You should make changes in some tcl files in the directory '.../tcl/lib/'.
See the following link:
http://icapeople.epfl.ch/widmer/uwb/ns-2/index.html
In this link many changes are made to install new changes in the physical
and mac layers of ns-2. Also a new propagation model (tarokh propagation) is
also added. See what are changed in the directory '.../tcl/lib/' regarding
tarokh propagation only (DO NOT MAKE the other changes of course). You will
find the changes in patch.tcl.lib file that you can download from the link
above.

I hope that this will help you.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Ghada Al-Mashaqbeh
Sent: Mittwoch, 12. September 2007 10:01
To: ns-users@ISI.EDU
Subject: Re: [ns] How to add new C++ classes to NS-2 2.31?


OK, after that do I need to modify any files or classes in ns2, I have added
the Ricean model classes to the mobile directory using this method, but when
I try to use it in my Tcl test code using the follwing code :
  /
  /**
  set val(prop)   Propagation/Ricean  ;# radio-propagation
model

set prop_inst [$ns_ set propInstance_]
$prop_inst MaxVelocity  2.5;
$prop_inst RiceanK6;
$prop_inst LoadRiceFile  rice_table.txt;
/
  ***/
   
  I got the follwing error:
  invalid command Propagation/Ricean
   
  What shall I do?
   
  Thanx 

Samer Bali [EMAIL PROTECTED] wrote:
  You should add it to Makefile.in under OBJ_CC (as I remember). Then you
run
configure then make.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Ghada Al-Mashaqbeh
Sent: Dienstag, 11. September 2007 20:21
To: ns-users@ISI.EDU
Subject: Re: [ns] How to add new C++ classes to NS-2 2.31?



Do I must add the line mobile/Ricean.o to the Makefile or the Makefile.in
then run configure then make in the ns2 directory?

Is this method correct?

Thanx



Ye YiBin wrote:
 
 
 You may need this page:
 http://www.isi.edu/nsnam/ns/tutorial/nsnew.html
 
 Is that Ricean.h and Ricean.cc?
 Try to add mobile/Ricean.o around Line235 on Makefile in ns directory.
 Paste your error messages here if it doesn't work.
 
 On 9/11/07, Ghada Al-Mashaqbeh wrote:


 Dear all,

 I am new to NS-2, and frankly I am still in the learning phase to use it
 in
 my Master Thesis, I am trying to include the .cc and .h classes of the
 Ricean propagation model within the simulator. I am working under windows
 (using Cygwin), and I have no .o file of the classes, I have put the
 classes
 in the mobile directory in ns, but when I am trying to compile them, a
 list
 of errors appears since many of the included classes (such as
 wireless_phy.h) is not exist in mobile directory. Then how can I include
 this class with ns-2? I have tried ./install (reinstall ns-2), also I
 have
 tried to run configure then make, but nothing work, and still there is no
 .o
 file generated nor NS-2 has added the new class.

 Please can anybody help me and give me simple instruction to that under
 windows ASAP?

 Thanx

 --
 View this message in context:

http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581
.html#a12597152
 Sent from the ns-users mailing list archive at Nabble.com.


 
 
 -- 
 Regards
 -Ye
 
 
 

-- 
View this message in context:
http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581
.html#a12620738
Sent from the ns-users mailing list archive at Nabble.com.



   
-
Catch up on fall's hot new shows on Yahoo! TV.  Watch previews, get
listings, and more!



Re: [ns] How to add new C++ classes to NS-2 2.31?

2007-09-11 Thread Samer Bali

You should add it to Makefile.in under OBJ_CC (as I remember). Then you run
configure then make.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Ghada Al-Mashaqbeh
Sent: Dienstag, 11. September 2007 20:21
To: ns-users@ISI.EDU
Subject: Re: [ns] How to add new C++ classes to NS-2 2.31?



Do I must add the line mobile/Ricean.o to the Makefile or the Makefile.in
then run configure then make in the ns2 directory?

Is this method correct?

Thanx



Ye YiBin wrote:
 
 
 You may need this page:
 http://www.isi.edu/nsnam/ns/tutorial/nsnew.html
 
 Is that Ricean.h and Ricean.cc?
 Try to add mobile/Ricean.o around Line235 on Makefile in ns directory.
 Paste your error messages here if it doesn't work.
 
 On 9/11/07, Ghada Al-Mashaqbeh [EMAIL PROTECTED] wrote:


 Dear all,

 I am new to NS-2, and frankly I am still in the learning phase to use it
 in
 my Master Thesis, I am trying to include the .cc and .h classes of the
 Ricean propagation model within the simulator. I am working under windows
 (using Cygwin), and I have no .o file of the classes, I have put the
 classes
 in the mobile directory in ns, but when I am trying to compile them, a
 list
 of errors appears since many of the included classes (such as
 wireless_phy.h) is not exist in mobile directory. Then how can I include
 this class with ns-2? I have tried ./install (reinstall ns-2), also I
 have
 tried to run configure then make, but nothing work, and still there is no
 .o
 file generated nor NS-2 has added the new class.

 Please can anybody help me and give me simple instruction to that under
 windows ASAP?

 Thanx

 --
 View this message in context:

http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581
.html#a12597152
 Sent from the ns-users mailing list archive at Nabble.com.


 
 
 -- 
 Regards
 -Ye
 
 
 

-- 
View this message in context:
http://www.nabble.com/How-to-add-new-C%2B%2B-classes-to-NS-2-2.31--tf4416581
.html#a12620738
Sent from the ns-users mailing list archive at Nabble.com.




Re: [ns] implementation of OLSR in ns2.29 or ns2.31

2007-08-24 Thread Samer Bali

Try this link:
http://masimum.dif.um.es/?Software:UM-OLSR

I installed it on ns2-29 under linux suse 10.1, and it works without
problems.

Hope this helps.
Samer

- Original Message - 
From: Ababaa Hamba [EMAIL PROTECTED]
To: ns-users@ISI.EDU
Sent: Friday, August 24, 2007 8:58 AM
Subject: [ns] implementation of OLSR in ns2.29 or ns2.31



 Hi there: I'm working on Mesh routing protocols and I look for OLSR,MRP in 
 ns2.29. The one I got is OLSR for ns2.1b9 and it doesn't apply for 
 ns2.29.Anyone who can share me his help?

 -
 Park yourself in front of a world of choices in alternative vehicles.
 Visit the Yahoo! Auto Green Center. 



Re: [ns] Problem regarding make.

2007-03-05 Thread Samer Bali

try:
  make clean
  make depend
  make

- Original Message - 
From: aritra pal [EMAIL PROTECTED]
To: ns-users@ISI.EDU
Sent: Monday, March 05, 2007 6:34 PM
Subject: [ns] Problem regarding make.



 hello all ,
  I am facing a problem regarding the ns-2.26.i have 
 created
 a new packet format and want to implement the new agent in the ns-2.26 to 
 be
 used in subsequent simulations.for that, i have to modify some file 
 contents
 and do a 'make depend' before doing 'make'for doing that,i went to the
 ns-2.26 directory and had executed the command by writing
./make clean
./make depend
./make
 but on executing each of these commands,its is giving an error 
 stating:cant
 find make.
 i am in total darkness regarding this.please help!!

 -aritra. 



Re: [ns] Tracegraph CANNOT BE TRUSTED in all simulation scenarios

2007-02-26 Thread Samer Bali

Hi all,

As I said, it depends on what you want to extract from the trace file. In my 
case, for example, one parameter that I want to calculate is the average 
normalized throughput. I defined it as the ratio between the useful throughput 
or goodput (received data packets without duplication divided by simulation 
time) to the offered data rate (amount of useful data sent without 
retransmission devided by simulation time). To calculate the normalized 
throughput I need to find number of received data packets without duplications 
at AGT level. To do so (assuming that the trace file is output.tr in new 
wireless format):

grep -e r -t  output.tr  temp1.tr
grep -e tcp -Il $rpktsize temp1.tr  temp2.tr
grep -e -Nl AGT  temp2.tr  datarecv.tr
(now datarecv.tr contains all trace lines concerning the received data only on 
AGT level but with duplications. $rpktsize depends on your simulation. 
output.tr, temp1.tr, and temp2.tr can be deleted if you do not need them 
anymore.)
To calculate number of received data without duplications I used matlab making 
use of the source address.source port number (-Is), dest address.dest port 
number (-Id), and packet uniqe id (-Ii). Tracegraph does not deal with -Is and 
-Id, so with Tracegraph one cannot calculate number of received data packets 
without duplications at AGT level (throghput calculated in Tracegraph is not 
the useful throughput, so be careful !!!). ***THIS IS ONLY ONE EXAMPLE. 

All these steps are done automatically by a certain software written in tcl and 
matlab that I did it for my own simulations, I do not extend them to support 
other simulations. 

Anyway, as a final conclusion: with ns-2, one should write his own scripts to 
ensure that he obtains the right results from trace files. I spent 3 months 
trying understanding how Tracegrapgh works, whereas it tooks only 2 weeks to 
write my own script.

Cheers,
Samer
  - Original Message - 
  From: Pragasen Mudali 
  To: Samer Bali 
  Sent: Monday, February 26, 2007 7:42 AM
  Subject: Re: [ns] Tracegraph CANNOT BE TRUSTED in all simulation scenarios


  Hi,

  Thanks for the posting. Do you have any other scripts that you use for 
analysis. If so, can you forward them to me please.


  On 24/02/07, Samer Bali [EMAIL PROTECTED] wrote:

hi all,
I used Tracegraph to analyse trace file of ns-2. I found that it works good
when there is no frequent packet drops and retransmission. In a simulation
where a large packet drops and retransmission exist (for example in my case 
I used the shadowing model in the PHY layer and used a multihop scenario
with up to 4 hops) Tracegraph fails to give a correct analysis results. I
think that Tracegraph CANNOT BE TRUSTED in all simulation scenarios. One 
should check his results using another tool (do some sample checks with awk
or perl or grep command) or do his own analysis code.
Yours,
Samer





  -- 
  Pragasen Mudali 
  Research Student
  Department of Computer Science 
  University of Zululand 


Re: [ns] ns2 post-analysis of the trace files

2007-02-24 Thread Samer Bali

hi all,
I used Tracegraph to analyse trace file of ns-2. I found that it works good 
when there is no frequent packet drops and retransmission. In a simulation 
where a large packet drops and retransmission exist (for example in my case 
I used the shadowing model in the PHY layer and used a multihop scenario 
with up to 4 hops) Tracegraph fails to give a correct analysis results. I 
think that Tracegraph CANNOT BE TRUSTED in all simulation scenarios. One 
should check his results using another tool (do some sample checks with awk 
or perl or grep command).
Yours,
Samer

- Original Message - 
From: Old Maven [EMAIL PROTECTED]
To: ns-users@ISI.EDU
Sent: Saturday, February 24, 2007 7:29 PM
Subject: Re: [ns] ns2 post-analysis of the trace files



 I used ns2 simulator to create trace files in two formats from tdma
 simulation.

 1) old wireless format
 2) new wireless format

 I usually feed this to tracegraph to get my results and plot them. I 
 have
 been looking for custom AWK/PERL scripts to write those analysis myself.

 In the old wireless format , with some simple counts and pattern matching, 
 i
 can find the generated packets, dropped packets and bytes, forwarded 
 packets
 and bytes. But sent packets: i couldnt find anyway that matches with the
 output from the tracegraph file.

 And when i run the same scripts for the new wireless format .. [ i mean 
 the
 idea same with counts ] , most of the parameters differ. Basically, i have
 to come up with scripts to calculate average delay, variation in delays 
 (or
 jitter), throughput in bits per seconds, packets
 generated/sent/forwarded/dropped.


 Is there any available scripts already, or any documentation that can lead
 me to find the exact definition of how to calculate these.[ in the new
 wireless format ].

 I tried this link
 http://mailman.isi.edu/pipermail/ns-users/2004-September/044669.html from
 the archives, but no luck.

 Thanks 



[ns] need EMERGENCY HELP PLZ segmentation fault pbm

2007-02-07 Thread Samer Bali

don't let the node move to the border limit exactly. You should write, 
e.g.,:
$node($i) setdest  [expr $x-0.01] [expr $y-0.01] $vitess

or extend your area limit a little bit.

Good Luck,
Samer

 - Original Message - 
 From: amira bourayou [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; ns-users@ISI.EDU
 Sent: Tuesday, February 06, 2007 6:49 PM
 Subject: [ns] need EMERGENCY HELP PLZ segmentation fault pbm



 hi every one!
 when i use
 $node($i) setdest  $x $y $vitess
 i got the following error:*segmentation fault* when i run my script.

 how to repare this?

 please help me.it's urgent.

 best regards.
 



[ns] need EMERGENCY HELP PLZ segmentation fault pbm

2007-02-07 Thread Samer Bali

don't let the node move to the border limit exactly. You should write, 
e.g.,:
$node($i) setdest  [expr $x-0.01] $y $vitess

or extend your area limit a little bit.

Good Luck,
Samer
 - Original Message - 
 From: amira bourayou [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; ns-users@ISI.EDU
 Sent: Tuesday, February 06, 2007 6:49 PM
 Subject: [ns] need EMERGENCY HELP PLZ segmentation fault pbm



 hi every one!
 when i use
 $node($i) setdest  $x $y $vitess
 i got the following error:*segmentation fault* when i run my script.

 how to repare this?

 please help me.it's urgent.

 best regards.
 



Re: [ns] warning: no class variable God::path_analysis_

2006-11-22 Thread Samer Bali

Hi,

To solve this problem, simply add the following line in 
tcl/lib/ns-default.tcl file (with god parameters):

god set path_analysis_ 0

Best wishes,
samer
---
Matthias Budde matthi.budde at web.de  wrote:
Wed Oct 4 09:53:41 PDT 2006 

Hi,

After applying the GPSR patch to ns 2.29.3, I get the following warning message 
when running simple-wireless.tcl from Marc Greis' Tutorial:


warning: no class variable God::path_analysis_


What does this mean? Can I safely ignore this?

Thank you, best,

-Matt


Re: [ns] ns2.26 installation problem

2006-10-18 Thread Samer Bali

Hi,

ns-2.26 will only work with GCC-3.2.3 or lower. Therefore, follow these steps:
  1. Install GCC-3.2.3 (mind the 3.2.x) ( http://gcc.gnu.org/ ). To compile and 
install it is quite 
easy, simply read the INSTALL/index.html file. Then, make sure the GCC 
binary is used for the compilation of the ns-allinone package. For instance, 
set the PATH environment variable to have the directory containing the 
gcc-3.2.3 binary at the beginning.
  2. Download and compile ns-allinone-2.26.
  3. Setup your environment to use ns-2.

good luck
Samer
- Original Message - 
From: Karena Xu [EMAIL PROTECTED]
To: ns-users@ISI.EDU
Sent: Tuesday, October 17, 2006 3:48 PM
Subject: [ns] ns2.26 installation problem



 Hi all,

 Would like to know if any of you encountered this problem before during
 installation?

 /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/vector.tcc:384: error:
 expected unqualified-id before '(' token
 make: *** [diffusion3/ns/difftimer.0] Error 1
 Ns make failed!

 My installation is almost done until the above problem appears. =(

 Thank you.

 Best regards,
 Karena

 _
 Receive MSN Hotmail alerts over SMS!
 http://en-asiasms.mobile.msn.com/ac.aspx?cid=1002
 


Re: [ns] NOAH Patch with NS-2.2[789]

2006-07-28 Thread Samer Bali

Try this link:
http://icawww1.epfl.ch/uwb/ns-2.html

From: Alexander Sayenko [EMAIL PROTECTED]
To: ns-users@ISI.EDU
Sent: Friday, July 28, 2006 11:46 AM
Subject: Re: [ns] NOAH Patch with NS-2.2[789]









 Hi

 I have been using this NOAH patch with ns-2.28. Hope it also works with
 other versions.

 Sincerely,
 Alexander Sayenko (PhD)
 Senior Assistant
 Telecommunication laboratory, MIT department
 University of Jyvaskyla, Finland




 Hi guys,

 I have been fightin with the NOAH patch for over sometime now. Has 
 anybody
 worked on NOAH extension for NS2 before? I tried patchin (atleast 
 followin
 d
 instructions on the NOAH page which do not include recompilin NS2 even
 though if I try recompilin it fails).

 I really need to make this work. Any suggestion will be appreciated. 
 Note,
 If there's any alternative of extension that can perform the
 Infrastructure
 Network facility of wireless communication btw mobile nodes will b
 appreciated.

 Pls, anybody with success story on NOAH with NS-2.29, NS-2.28,
 NS-2.27should pls share it.

 Thnx.

 Lekkie.



 -- 
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.394 / Virus Database: 268.10.4/402 - Release Date: 
 27.07.2006


 



Re: [ns] ns226 - ns228 differences

2006-07-11 Thread Samer Bali

Hi  Christos, Hi all,

I noticed also that TCP behaviour is different between the two versions 
(ns-2.26  ns-2.28). I ran the same simulation on both versions and I 
noticed that in ns-2.26 there is more dropped packet than in ns-2.28. I do 
not know if this is a bug in ns-2.26 or not. Has any body an idea about this 
problem???

Yours,
Samer

 - Original Message - 
 From: Christos Antonopoulos [EMAIL PROTECTED]
 To: ns-users@ISI.EDU
 Sent: Tuesday, July 11, 2006 2:44 PM
 Subject: [ns] ns226 - ns228 differences



 Hello everyone,



 I am running the same simulations of ad-hoc network with ns2.26 and 
 ns2.28 and I get significant differences at delay measurements.

 Especially when DSR is considered the differences are quite high.

 Can someone verify these conclusions?

 Is the implementation of DSR so significantly changed between the two 
 versions?



 Please I need urgent help



 Christos
 



Re: [ns] why noone wants to help me? :(

2006-05-02 Thread Samer Bali

Hi,

Go to this web link:
http://mailman.isi.edu/pipermail/ns-users/2004-December/046223.html
and read Message: 34. I think you will find the solution for your prblem 
there.

Regards,
Samer bali

- Original Message - 
From: [EMAIL PROTECTED]
To: ns-users@ISI.EDU
Sent: Monday, May 01, 2006 10:30 PM
Subject: [ns] why noone wants to help me? :(



 I'm sorry that I am writing in such way, but I really need help. I
 am trying to install ns-2.1b7a because I want to patch gprs wrote by
 Richa Jain.
 I tried installing it and I have such error:

 tclcl-mappings.h: In static member function #8216;static int
 TclObjectHelperT::dispatch_(void*, Tcl_Interp*, int, char**)#8217;:
 tclcl-mappings.h:51: error: incomplete type #8216;Tcl#8217; used in 
 nested
 name specifier
 tclcl-mappings.h:52: error: invalid use of undefined type #8216;struct 
 Tcl#8217;
 tclcl-mappings.h:41: error: forward declaration of #8216;struct 
 Tcl#8217;
 tclcl-mappings.h:57: error: invalid use of undefined type #8216;struct 
 Tcl#8217;
 tclcl-mappings.h:41: error: forward declaration of #8216;struct 
 Tcl#8217;
 make: *** [Tcl.o] Error 1
 tclcl-1.0b10 make failed! Exiting ...
 See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

 I don't know what to do? I have fc4. I cannot patch gprs to ns-2.29
 beacuse it doesn't work.
 Please help me
 Real thanks!!!


 



Re: [ns] help to find OBJ_CC !!

2006-04-17 Thread Samer Bali

Salam Mohammad,

You can find it in the following file:
.../ns-allinone-2.29/ns-2.29/Makefile.in

Regards,
Samer Bali

- Original Message - 
From: Mohammed Abu-Khadra [EMAIL PROTECTED]
To: ns-users@ISI.EDU
Sent: Sunday, April 16, 2006 7:11 PM
Subject: [ns] help to find OBJ_CC !!


 
 hi all,
 
 where can i find OBJ_CC list in ns-2.29 ? does it exist ? if yes in which
 folder plz !!
 i need to modify it for a multimedia traffic
 
 thanx in advance