Re: [ns] Generating background web traffic

2007-08-31 Thread WangYaogong

the following link may be helpful:
http://www4.ncsu.edu/~rhee/export/bitcp/cubic-script/script.htm
it's the script written by the inventors of CUBIC and it contains adding web 
traffic as background traffic.



> Date: Fri, 31 Aug 2007 20:55:06 +0200> From: [EMAIL PROTECTED]> To: 
> ns-users@ISI.EDU> Subject: [ns] Generating background web traffic> > > Hi,> > 
> I'm trying to recreate the experiments from this paper> > 
> http://www.hamilton.ie/net/pfldnet2007_cubic_final.pdf> > in ns.> > Some 
> experiments study the impact of web traffic on the CUBIC. What> would be the 
> best/simplest way to simulate web traffic in ns?> > Should I use a Pareto 
> traffic sources with an UDP agent? The paper> mentions mean time between 
> requests and mean connection size in packets.> What would be reasonable 
> values to assign to the rate_ and shape_> parameters?> > > -- > Jasin> 
_
用 Live Search 搜尽天下资讯!
http://www.live.com/?searchOnly=true

Re: [ns] throughput calculation>>>>>>>>>>>>>>>>>

2007-08-31 Thread Teerawat Issariyakul


Hi,

There are several ways to compute throughput. If you use TCP, the
simplest way is to measure the sequence number and divide it by
simulation time. You add the following into your simulation script

...
$ns at 10.0 "$ftp stop"
$ns at 10.1 "puts "puts \"The final TCP sequence number is [$tcp set
$t_seqno_]\""
$ns at 10.2 "$ns halt"

Then, you can compute the number of transmitted packets in 10.0 second
simulation time.


Cheers,
Teerawat




On 8/31/2007, "JEHD MAHDI" <[EMAIL PROTECTED]> wrote:

>
>
>Hi there, is there any universal way to calculate packets throughput  and 
>delay with or without use of certain scripts, i've tried a couple of scripts 
>for this purpose but they don't seem to work!!
>
>
>J Mahdi
>Newcastle Upon Tyne
>**
>
>
>_
>Get free emoticon packs and customisation from Windows Live.
>http://www.pimpmylive.co.uk
>



Re: [ns] warning:no class variable Trafficfile::debug_

2007-08-31 Thread Teerawat Issariyakul


Hi,

I think your problem may be caused by

1. You did not bind variable debug_ to the OTcl domain. Go to the Class
TrafficFile and see whether the variable debug_ is bound properly.

2. Class TrafficFile does not have the variable debug_ at all. In this
case, you have to declare it in Class TrafficFile.

Cheers,
Teerawat

On 8/31/2007, "Candace Phelps" <[EMAIL PROTECTED]> wrote:

>
>Hello,
>
>> warning:no class variable Trafficfile::debug_
>>  see tcl-object.tcl in tclcl for info about this warning
>
>I was having a similar problem, and I found the solution here, as I
>posted a few days ago to this list:
>http://nile.wpi.edu/NS/
>Click on Otcl linkage, and search for 'warning' on the page and read
>about that.
>
>Basically, you need to set this variable (debug_) in ns-default.tcl
>(located here in my case:
>cphelps/ns-allinone-2.31/ns-2.31/tcl/lib/ns-default.tcl). The format
>of how to set the variable is as shown in the file:
>SuperClass/Class set _variable_name_ #
>eg
>Trafficfile set debug_ 1.0
>
>Hope that helps. 8-)
>
>> I tried adding "Trafficfile set debug_ false" in
>> ./tcl/lib/ns-default.tcl as mentioned in very old posts but
>> unfortunetly it doesnt work in my case.
>
>I think this "solution" was a work-around to ignore the problem.
>
>
>
>--
>Sincerely,
>
>Candace Phelps
>3rd Yr Honors CS Student
>
>
>Quoting Francesco Trebbi <[EMAIL PROTECTED]>:
>
>>
>> Hi,
>>
>> I am trying to use some trace files to generate traffic but When I run
>> the simulation I get
>> the warning message:
>>
>> warning:no class variable Trafficfile::debug_
>>  see tcl-object.tcl in tclcl for info about this warning
>>
>>
>>
>> I tried adding "Trafficfile set debug_ false" in
>> ./tcl/lib/ns-default.tcl as mentioned in very old posts but
>> unfortunetly it doesnt work in my case.
>>
>> Does anyone has any ideas to solve this problem?
>>
>>
>> Thanks, I appreciate.
>>
>> Francesco
>>
>>
>
>
>



Re: [ns] how can I turn off the energy trace?

2007-08-31 Thread jianli guo

I konw how to turn it off now.
In file MobileNode.cc, there is a function named MobileNode::log_energy()
which will be called by class WirelessPhy everytime, we only need to delete
several lines in function log_energy().

void
MobileNode::log_energy(int flag)
{
 if (!log_target_)
  return;
 Scheduler &s = Scheduler::instance();
 /*if (flag) {
  sprintf(log_target_->pt_->buffer(),"N -t %f -n %d -e %f", s.clock(),
   address_, energy_model_->energy());
 } else {
  sprintf(log_target_->pt_->buffer(),"N -t %f -n %d -e 0 ", s.clock(),
   address_);
 }*/
 log_target_->pt_->dump();
}



2007/9/1, jianli guo <[EMAIL PROTECTED]>:
>
>  I dont want the following lines in my trace file
>
> N -t 11.236267 -n 59 -e .600820
> N -t 11.236267 -n 29 -e .600820
> N -t 11.236267 -n 10 -e .600820
> N -t 11.236267 -n 92 -e .600820
> N -t 11.236267 -n 21 -e .600820
> N -t 11.236267 -n 8 -e .600820
> N -t 11.236267 -n 38 -e .600820
> N -t 11.236267 -n 85 -e .600820
>
>
> charlie
>
>


[ns] how can I turn off the energy trace?

2007-08-31 Thread jianli guo

 I dont want the following lines in my trace file

N -t 11.236267 -n 59 -e .600820
N -t 11.236267 -n 29 -e .600820
N -t 11.236267 -n 10 -e .600820
N -t 11.236267 -n 92 -e .600820
N -t 11.236267 -n 21 -e .600820
N -t 11.236267 -n 8 -e .600820
N -t 11.236267 -n 38 -e .600820
N -t 11.236267 -n 85 -e .600820


charlie


[ns] wimax of Jenhui Che from Chang Gung University

2007-08-31 Thread jorbustos1


Hi, all ns-2 users
Is somebody working with wimax's module of Jenhui Che from Chang Gung
University ? The code is form the site
http://ndsl.csie.cgu.edu.tw/wimax_ns2.php 
I have  a pairs of doubts, help me please. 

Thanks so much
-- 
View this message in context: 
http://www.nabble.com/wimax-of-Jenhui-Che-from-Chang-Gung-University-tf4362983.html#a12435714
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Wimax module of Jenhui Chen of Chang Gung University

2007-08-31 Thread jorbustos1


Hi, all ns-2 users 
Is somebody working with wimax's module of Jenhui Che from Chang Gung
University ? I have  a pairs of doubts, help me please.

-- 
View this message in context: 
http://www.nabble.com/Wimax-module-of-Jenhui-Chen-of-Chang-Gung-University-tf4362975.html#a12435696
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Generating background web traffic

2007-08-31 Thread Jasin Zujovic

Hi,

I'm trying to recreate the experiments from this paper

http://www.hamilton.ie/net/pfldnet2007_cubic_final.pdf

in ns.

Some experiments study the impact of web traffic on the CUBIC. What
would be the best/simplest way to simulate web traffic in ns?

Should I use a Pareto traffic sources with an UDP agent? The paper
mentions mean time between requests and mean connection size in packets.
What would be reasonable values to assign to the rate_ and shape_
parameters?


-- 
Jasin



Re: [ns] warning:no class variable Trafficfile::debug_

2007-08-31 Thread Candace Phelps

Hello,

> warning:no class variable Trafficfile::debug_
>   see tcl-object.tcl in tclcl for info about this warning

I was having a similar problem, and I found the solution here, as I  
posted a few days ago to this list:
http://nile.wpi.edu/NS/
Click on Otcl linkage, and search for 'warning' on the page and read  
about that.

Basically, you need to set this variable (debug_) in ns-default.tcl  
(located here in my case:
cphelps/ns-allinone-2.31/ns-2.31/tcl/lib/ns-default.tcl). The format  
of how to set the variable is as shown in the file:
SuperClass/Class set _variable_name_ #
eg
Trafficfile set debug_ 1.0

Hope that helps. 8-)

> I tried adding "Trafficfile set debug_ false" in
> ./tcl/lib/ns-default.tcl as mentioned in very old posts but
> unfortunetly it doesnt work in my case.

I think this "solution" was a work-around to ignore the problem.



-- 
Sincerely,

Candace Phelps
3rd Yr Honors CS Student


Quoting Francesco Trebbi <[EMAIL PROTECTED]>:

>
> Hi,
>
> I am trying to use some trace files to generate traffic but When I run
> the simulation I get
> the warning message:
>
> warning:no class variable Trafficfile::debug_
>   see tcl-object.tcl in tclcl for info about this warning
>
>
>
> I tried adding "Trafficfile set debug_ false" in
> ./tcl/lib/ns-default.tcl as mentioned in very old posts but
> unfortunetly it doesnt work in my case.
>
> Does anyone has any ideas to solve this problem?
>
>
> Thanks, I appreciate.
>
> Francesco
>
>





[ns] Trace graph 2.05 (NS-2 trace analyser) compiled Windows version is available

2007-08-31 Thread Jaroslaw Malek

Hello!
Trace graph 2.05 compiled binaries for Windows with Matlab libraries 
(MCRInstaller.exe) are available to download at 
http://www.tracegraph.com/download.html.

Best regards,
Jaroslaw Malek

P.S.
If anybody has a Matlab Compiler (at least the one bundled with Matlab 6.1) 
license for Linux or other non-Windows OS and could compile Trace graph 2.05 to 
make it available for free to all its users, please email me: [EMAIL PROTECTED] 
Matlab libraries (mglinstaller or MCRInstaller files) for the target systems 
would also be required to run the compiled binaries. Thank you very much in 
advance.



[ns] throughput calculation>>>>>>>>>>>>>>>>>

2007-08-31 Thread JEHD MAHDI


Hi there, is there any universal way to calculate packets throughput  and delay 
with or without use of certain scripts, i've tried a couple of scripts for this 
purpose but they don't seem to work!!


J Mahdi
Newcastle Upon Tyne
**

 
_
Get free emoticon packs and customisation from Windows Live. 
http://www.pimpmylive.co.uk


[ns] make clean error

2007-08-31 Thread AZHAR MOHD ARIS

Hello there ..i got an error after i do make clean. I run make clean coz i
want to add new module/. There anoybody can explain is it an error or what?
Tq

[EMAIL PROTECTED]:/usr/local/ns2/ns-allinone-2.31/ns-2.31$ make clean
rm -f *.a *.o libtcl* core errs *~ \#* TAGS *.E a.out \
errors tclsh tcltest lib.exp Tcl
cd dltest ; make clean
make[1]: Entering directory `/usr/local/ns2/ns-allinone-2.31/ns-2.31/dltest'
rm -f *.o config.cache config.log config.status
rm -f lib.exp ../dltest.marker
rm -f *.so

-- 
AZHAR MOHD ARIS (GS16917)
Master in Computer Science Candidate (Distributed Computing)
University Putra of Malaysia
+^019.613.742.2
YM: azuan76


[ns] wireless.tcl vs wireless-test.tcl

2007-08-31 Thread uknown noname

What is the different between example ~/tcl/ex/wireless.tcl and 
~/tcl/ex/wireless-test.tcl ?

I found that the different is not just the number of nodes (50->3), sim time, 
movement file and traffic generator. some of the proc (proc create-god and proc 
cmu-trace ) are not used in wireless.tcl. some of the external file (source 
../lib/ns-mobilenode.tcl, source ../mobility/$opt(rp).tcl, source 
../lib/ns-bsnode.tcl, source ../mobility/com.tcl). Does anybody can explain why 
this different must be made rather than just change the number of nodes, sim 
time, movement file and traffic generator only?

many thanks..



My system :
FC 6
2.6.18-1.2869.fc6
ns2.30
   
-
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us.


[ns] warning:no class variable Trafficfile::debug_

2007-08-31 Thread Francesco Trebbi

Hi,

I am trying to use some trace files to generate traffic but When I run
the simulation I get
the warning message:

warning:no class variable Trafficfile::debug_
see tcl-object.tcl in tclcl for info about this warning



I tried adding "Trafficfile set debug_ false" in
./tcl/lib/ns-default.tcl as mentioned in very old posts but
unfortunetly it doesnt work in my case.

Does anyone has any ideas to solve this problem?


Thanks, I appreciate.

Francesco