[ns] generic VBR Traffic - bit rate higher than the maximum rate set

2006-10-12 Thread ben

Hi,

Has anyone try using the generic VBR application made
by Håkan Byström? The source can be found here
http://mailman.isi.edu/pipermail/ns-users/2001-October/018453.html

I understand this code will vary the time interval
which packets are sent as well as the packet size. 

Application/Traffic/VBR set rate_ 16Kb
.
.
.
Application/Traffic/VBR set maxrate_ 32Kb;

The highest data rate for my simulation run is higher
than the maxrate parameter. Is this normal? I think
maximum rate should be below than the max rate. If it
is not normal then there is a flaw in my translated
code.Btw,I'm using a Java based network simulator.
Comments are appreciated.

Thank you very much.

Ben

Send instant messages to your online friends http://uk.messenger.yahoo.com 



[ns] NS2 + UCBT

2006-10-12 Thread Loreno Oliveira

Hi list,

sorry for this message. I know this is not the apropriate list for
discussing external NS modules, but the UCBT list seems to be no more
active, and I hope there are people here with some experience with UCBT.

Well, I have reproduced, using NS2 + UCBT, a scenario whose I have performed
some tests using real bluetooth devices. The problem is that the behavior
presented by UCBT is rather different from the behavior verified
empirically. Does anybody can help me with some hint of where, and how,
should I modify UCBT for modeling the bluetooth features I need to deal
with??

Thanks in advance!

Loreno


Re: [ns] reproducing the graphical results of EDCA model

2006-10-12 Thread Pedro Vale Estrela


Have you asked the original authors for their code?

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of wajid mehmood
> Sent: quinta-feira, 12 de Outubro de 2006 14:09
> To: ns-users@ISI.EDU
> Subject: [ns] reproducing the graphical results of EDCA model
> 
> 
> hi all,
>   I want to test the EDCF simulation of the guy
> from tu berlin,I want to reproduce the graph of his simulation
> mentioned in the paper
>   "Design and Verification of an IEEE 802.11e EDCF Simulation Model in ns-
> 2.26", Telecommunication Networks Group, Technische Universität Berlin,
> November 2003.I wrote the scenerio with one end station and one access
> point with no. of
> wireless nodes as a command line parameter.I got the throughput results
> w.r.t. time ,but i need to see the throughput with increasing no. of
> stations as shown on the page 28 of the paper.If somebody has already done
> this or any idea about it ,please do write.
>   many thanks
>   wajid
> 
>  Send instant messages to your online friends
> http://uk.messenger.yahoo.com




[ns] [Fwd: How to implement aggregation?]

2006-10-12 Thread g_fnoor

 Original Message 
Subject: How to implement aggregation?
From:[EMAIL PROTECTED]
Date:Thu, October 12, 2006 12:57 pm
To:  [EMAIL PROTECTED]
Cc:  ns-users@isi.edu
--

  Hi Everybody!
   I have to build a hierarchical network and then apply aggregation to
it, i already have the tcl scripts for the building the network, what i
need to know is, which C++ files do i need to change to implement the
aggregation? i mean how does one know what files to change in the ns
modules to add your own functionality.
   My project is to make a hierarchical network,not just one but its like
a 1:1 dual, 1+1 dual, 1:2 dual and 1:4 dual networks, i already have
the necessary files to build these networks, the next step is to
implement aggregation over these networks, and i do not know where to
start from?
Please help any guiding step would be really helpful. thanks a lot in
advance.

Thanking you

Regards,
Fatema.








[ns] How to implement aggregation?

2006-10-12 Thread g_fnoor

  Hi Everybody!
   I have to build a hierarchical network and then apply aggregation to
it, i already have the tcl scripts for the building the network, what i
need to know is, which C++ files do i need to change to implement the
aggregation? i mean how does one know what files to change in the ns
modules to add your own functionality.
   My project is to make a hierarchical network,not just one but its like
a 1:1 dual, 1+1 dual, 1:2 dual and 1:4 dual networks, i already have
the necessary files to build these networks, the next step is to
implement aggregation over these networks, and i do not know where to
start from?
Please help any guiding step would be really helpful. thanks a lot in
advance.

Thanking you

Regards,
Fatema.







[ns] pls help: buffer level and data transmission rate of a node

2006-10-12 Thread Alper Bereketli

Dear All,

I am implementing a MAC protocol for Wireless Sensor Networks. I am 
trying to:

- get the buffer level of a node,
- get the data "transmission" rate of a node, (not the "channel capacity")
- increase/decrease the transmission rate.

Could you please give me some hints on these? Thanks in advance.

Alper Bereketli
Next-Generation Wireless Communications Laboratory
Department of Electrical & Electronics Engineering
Middle East Technical University, Ankara, TURKEY



Re: [ns] how to add a procedure in a .tcl file and make the requiredchanges in related .cc files?

2006-10-12 Thread Pedro Vale Estrela



Yes, This code seems ok,
What are the errors that occur?

Try this:

   $self instvar mac_
   $mac_(0) cmd node-change ;# force calling directly the c++ command() 


and put a breakpoint the command() function in DDD to check what is
happening.
Pedro Vale Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of amir zare
> Sent: quinta-feira, 12 de Outubro de 2006 15:22
> To: ns-users@ISI.EDU
> Subject: [ns] how to add a procedure in a .tcl file and make the
> requiredchanges in related .cc files?
> 
> 
> -- Forwarded message --
> From: amir zare <[EMAIL PROTECTED]>
> Date: Oct 12, 2006 5:47 PM
> Subject: how to add a procedure in a .tcl file and make the required
> changes
> in related .cc files?
> To: ns-users@isi.edu
> 
> Hello All,
> 
> I want to add a procedure in ns-mobilenode.tcl to implement a new
> feature. For this reason, I changed mac-802_11.cc ( where I want to add my
> change) by adding a method. So, in ns-mobilenode.tcl , in my added
> procedure, you see:
> 
> Node/MobileNode instproc node-change {} {
> 
>$self instvar mac_
> 
>$mac_(0) node-change
> 
> }
> 
>  and in mac-802_11.cc you see :
> 
> Mac802_11::command(int argc, const char*const* argv) {
> 
>  if (strcmp(argv[1], "node-change") == 0) {
> 
>   node_change();  // this
> is
> the method I added in mac802_11
> 
>   return TCL_OK;
> 
>  }
> 
> }
> 
> but when I run my program that uses new feature. I mean:
> 
> $node_(0)   node-change
> 
> I face to errors generated by ns.  I am really confused and dont know how
> to
> solve this problem. I think I dont know the correct way to add the
> procedure. I hope someone can tell me where my fault is or correct the way
> I have to add this procedure to work.
> 
> I learnd this way of adding a procedure by observing the procedure node-
> down
> in ~ns/tcl/lib/ns-mobilenode.cc and the related .cc file in:
> ~ns/wpan/p802_15_4mac.cc -> Mac802_15_4::command(int argc, const
> char*const*
> argv)
> 
> I would appriciate any help.
> 
> Regards,
> 
> Amir




[ns] how to add a procedure in a .tcl file and make the required changes in related .cc files?

2006-10-12 Thread amir zare

-- Forwarded message --
From: amir zare <[EMAIL PROTECTED]>
Date: Oct 12, 2006 5:47 PM
Subject: how to add a procedure in a .tcl file and make the required changes
in related .cc files?
To: ns-users@isi.edu

Hello All,

I want to add a procedure in ns-mobilenode.tcl to implement a new
feature. For this reason, I changed mac-802_11.cc ( where I want to add my
change) by adding a method. So, in ns-mobilenode.tcl , in my added
procedure, you see:

Node/MobileNode instproc node-change {} {

   $self instvar mac_

   $mac_(0) node-change

}

 and in mac-802_11.cc you see :

Mac802_11::command(int argc, const char*const* argv) {

 if (strcmp(argv[1], "node-change") == 0) {

  node_change();  // this is
the method I added in mac802_11

  return TCL_OK;

 }

}

but when I run my program that uses new feature. I mean:

$node_(0)   node-change

I face to errors generated by ns.  I am really confused and dont know how to
solve this problem. I think I dont know the correct way to add the
procedure. I hope someone can tell me where my fault is or correct the way
I have to add this procedure to work.

I learnd this way of adding a procedure by observing the procedure node-down
in ~ns/tcl/lib/ns-mobilenode.cc and the related .cc file in:
~ns/wpan/p802_15_4mac.cc -> Mac802_15_4::command(int argc, const char*const*
argv)

I would appriciate any help.

Regards,

Amir


[ns] reproducing the graphical results of EDCA model

2006-10-12 Thread wajid mehmood

hi all,
  I want to test the EDCF simulation of the guy 
from tu berlin,I want to reproduce the graph of his simulation 
mentioned in the paper 
  "Design and Verification of an IEEE 802.11e EDCF Simulation Model in 
ns-2.26", Telecommunication Networks Group, Technische Universität Berlin, 
November 2003.I wrote the scenerio with one end station and one access point 
with no. of 
wireless nodes as a command line parameter.I got the throughput results 
w.r.t. time ,but i need to see the throughput with increasing no. of 
stations as shown on the page 28 of the paper.If somebody has already done this 
or any idea about it ,please do write.
  many thanks 
  wajid

 Send instant messages to your online friends http://uk.messenger.yahoo.com 


[ns] BIC TCP / CUBIC TCP under ns-2.29

2006-10-12 Thread Aleksandar Smolovic

Hi all,

Anyone have installed BIC TCP and CUBIC TCP under ns-2.29 ?

I have downloaded files (tcp.cc and tcp.h) from their site but they are for 
ns-2.26. Now, I need to make changes to my files in ns-29, since I cannot JUST 
use ns-2.26 files. I have downloaded ns-2.26 from NS2 site, find "tcp.cc and 
tcp.h" files and compare them with those downloaded from CUBIC site by using

#diff tcp_226-nomoduls.cc tcp_cubic_226.cc > diff_cc_files.txt
#diff tcp_226-nomoduls.cc tcp_cubic_226.cc > diff_cc_files.txt


Result is to many changes to be made. Now, I don't know what to do.

Am I missing something here ? It should be simple to install a modul.


[ns] two way communcation between wireless station and wired station

2006-10-12 Thread mayank kanthali

hi ns-user

i want to simulate two way communcation between
wireless station and wired station. how can i simulate
this scenario.
how can i set wired station as server and all mobile
stations as client.

if you know, please help me.
thanks alot
mayank


-
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail.


Re: [ns] how can we echange variable between layer???

2006-10-12 Thread Pedro Vale Estrela

If you pass these between c++ modules by calling TCL procedures, this is
very easy (but slow)

Start by checking this page
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_tips.html#_Toc124667331

Pedro Vale Estrela

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Bilel Romdhani
> Sent: terça-feira, 10 de Outubro de 2006 11:47
> To: Ns-users@ISI.EDU
> Subject: [ns] how can we echange variable between layer???
> 
> 
> hi everybody,
> i m using ns2.27 to simulate wireless scenario and i want to know how can
> we
> echange variable between layer, ie, i want to use the cw_ variable on the
> droptail.cc file how can i do that if it's possible of course!
> 
> thanks a lot




[ns] How to implement a new Protocol in NS2?

2006-10-12 Thread Christian Kellner

Hello,

I'm a beginner in NS2 and have tested to implement a new example Protocol in 
NS2, using the Tutorial:

"Implementing a New Manet Unicast Routing Protocol in NS2"

masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf

I did all changes who are necessary but I can't use this new Agent in a simple 
Tcl Script in the way like this, because I get the error message "invalid 
command name":

.
.
.
set p1 [new Agent/TestProt]
$ns attach-agent $n2 $p1
.
.
.

Who can help me?

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer



[ns] Digital fountain on ns2..

2006-10-12 Thread Pezhman Fallahi

hi all

i wonther if someone done digital fountain on ns2 or have the 
encoding/decoding source code in c/c++. please help me.

regards, 
pezhman



[ns] Standard Deviation

2006-10-12 Thread walid demigha

Hi,
What does it mean Standard Deviation metric in the MAC layer context? and
how do we calculate it?

-- 
best,
wal.


Re: [ns] Problems compiling ns-2.30 with g++ 4.1

2006-10-12 Thread Ignacio Mas Ivars

On Wed, 2006-10-11 at 22:38 -0700, Tom Henderson wrote:
> Ignacio Mas Ivars wrote:
> > Hi all!
> > I am trying to compile ns-2.30 in an linux Ubuntu box with g++ 4.1 and I
> > am having problems with the linker. All the files are compiled correctly
> > but when linking the following message appears:
> > 
> > /usr/bin/ld: ns: hidden symbol `__stack_chk_fail_local'
> > in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by
> > DSO
> > /usr/bin/ld: final link failed: Nonrepresentable section on output
> > collect2: ld returned 1 exit status
> > 
> > 
> > I have tried compiling as well with g++ 4.0 without success and now I am
> > a bit out of ideas. Any pointers on where to look? This is my version of
> > g++ (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
> > 
> > Thanks for the help!
> > /Nacho
> > 
> > ---
> >,,,
> >   (o o)
> > --ooO--(_)---Ooo---
> > Time flies like an arrow, fruit flies like a banana. -Groucho Marx 
> > --oo00oo---
> > 
> > 
> > 
> 
> This page seems to suggest to turn off SSP by changing the default 
> options to build with -fno-stack-protector
> 
> https://wiki.ubuntu.com/GccSsp
> 
> Let me know if that works.
> 
> Tom

Hi!
I tried that but still the same error. This are the flags passed to g++

g++ -c -O3 -march=pentium3 -pipe -fomit-frame-pointer -funroll-loops
-fexpensive-optimizations -fno-stack-protector -Wall

and the error while linking is still the same...
Thanks anyway!
/Nacho

---
   ,,,
  (o o)
--ooO--(_)---Ooo---
I only please one person per day. Today is not your day. Tomorrow isn't
looking good either. - Scott Adams 
--oo00oo---