Re: [ns] verying link capacity dynamically

2007-08-14 Thread Daniel Mahrenholz

bhaskar sardar schrieb:
  Is there any way to dynamically change the bandwidth of a wireless link. I
 mean, during first 10 sec of the simulation BW is 1 Mb, for next 10 seconds
 BW is 2 Mb and so on. This is required when a user moves very fast.
   
A wireless link does not have a link bandwidth. Maybe you mean the 
trasmission data rate. If so, use the new 80211 MAC layer with multirate 
support.
If you really need links with defined bandwidth, you first need to 
implement a bandwidth management / admission control which is quite 
difficult in wireless networks.

Regards,
Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



[ns] Memory problems

2007-08-14 Thread Ángel Cuevas Rumín

I am having some problems with my simulations.
I am generating quite a lot packets and at some point during the simulation,
it finishes with this messages in the screen:

  terminate called after throwing an instance of
'std::bad_alloc'
  what():  St9bad_alloc


It seems there is not more free space to allocate new entities.

I have tried to free memory by freeing packets (Packet::free(p)). I have
also tried some other solutions but they didn't work.

I would appreciate any kind of help from someone who had the same problem in
the past or someone who knows which is the problem.

Kind Regards.


[ns] i need help pls

2007-08-14 Thread kenneth nwizege

am working on QOS ISSUES FOR VOIP OVER WI-FI, and i need to use a class -based 
queue to schedule my voice and data. so that i give high priority to VOICE and 
low to DATA. pls am new to NS2 and my time is near for submission, can anyone 
help me with code, or what i should do to acheive this, pls i need help, and 
new to NS2 and and dont even know C++ language.
  thanks.

   
-
Need a vacation? Get great deals to amazing places on Yahoo! Travel. 


Re: [ns] Changing NS Unit disk model of radio range

2007-08-14 Thread Daniel Mahrenholz

Hi,

Faisal Aslam schrieb:
 I am using cmu extension to simulate a wireless-sensor protocol. I 
 believe NS-2 only support unit disk transmission range model. However, 
 unit disk model is not realistic.
100% true.
  I wish to have model that has following
 (1) Each node selects its transmission range (say c) using uniform 
 distribution from say [a, b].
   
Simply modify the antenna gain or transmission power before creating a node.
 (2) Each node randomly selects few nodes near the border of circular 
 transmission range to be out of range. It is because in practice 
 transmission range is not exactly circular.
   
You will need to implement (maybe there is already an implementation) a 
directional antenna. Also using the Shadowing propagation model 
introduces some probabilistic effects.

To select particular nodes that are not in range you could implement a 
new propagation model that uses some kind of lookup table to determine 
the reception of a packet.

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] Memory problems

2007-08-14 Thread Daniel Mahrenholz

Hi,

Ángel Cuevas Rumín schrieb:
 I am having some problems with my simulations.
 I am generating quite a lot packets and at some point during the simulation,
 it finishes with this messages in the screen:

   terminate called after throwing an instance of
 'std::bad_alloc'
   what():  St9bad_alloc


 It seems there is not more free space to allocate new entities.

 I have tried to free memory by freeing packets (Packet::free(p)). I have
 also tried some other solutions but they didn't work.

 I would appreciate any kind of help from someone who had the same problem in
 the past or someone who knows which is the problem.
   
For any memory problem I suggest to use valgrind (http://valgrind.org).
It saved my day several times.

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] Marc Greiss Tutorial Chapter 7 - Own protocol

2007-08-14 Thread Raphael

On Tuesday 14 August 2007 06:01:25 you wrote:
 Hi Mr.Rapheal,

 Conform the following steps:

 1. Had you run makedepend before make
 2. Had you binded the variable off_ping_ in the constructor.
That's the problem I had and the point which is wrong in the tutorial (at 
least for ns-2.31).
Thx for the tip!

 3. Had you modified ns-allinone-2.31/ns-2.31/tcl/lib/ns-packet.tcl. we
 should include one line for myProto in foreach port {.. myProto,
 ..} { add-packet-header $prot} loop. 4. And finally last but not
 least, you might compiled by having a saperate copy. $ns filename.tcl 
  will run by taking default path of ns
   $/directory of modified ns/ns-allinone-2.31/ns-2.31/ns filename.tcl
 ---  will run the code  with modified ns.


 byeee,
   Have A Nice Day,
 Ajay Kumar Patibandla.




   5, 50, 500, 5000 - Store unlimited mails in your inbox. Go to
 http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html




Re: [ns] i need help pls

2007-08-14 Thread aaa

Hi there,

check those two links...they may help you in your work...

http://info.iet.unipi.it/~cng/ns2hcca/http://info.iet.unipi.it/%7Ecng/ns2hcca/

http://planete.inria.fr/qni/fhcf/


good luck..

Ashraf Bourawy.



On 8/14/07, kenneth nwizege [EMAIL PROTECTED] wrote:


 am working on QOS ISSUES FOR VOIP OVER WI-FI, and i need to use a class
 -based queue to schedule my voice and data. so that i give high priority to
 VOICE and low to DATA. pls am new to NS2 and my time is near for submission,
 can anyone help me with code, or what i should do to acheive this, pls i
 need help, and new to NS2 and and dont even know C++ language.
   thanks.


 -
 Need a vacation? Get great deals to amazing places on Yahoo! Travel.



Re: [ns] Marc Greiss Tutorial Chapter 7 - Own protocol

2007-08-14 Thread Marcos Antônio Cavenaghi

As I have already stated in a past e-mail to the list:

--
The tutorial should be updated! I'm not telling that Mark should do that,
no, but someone on this list should update it!
If I had the qualification, I would volunteer. Unfortunately, I am not
qualified to the work.

an idea:
1- as ns has several release #s (2.30, 2.31...) Mark's Tutorial should also
has a corresponding number (2.30, 2.31 respectively), indicating its
correspondence to ns. I think the modifications to the Tutorial between ns
versions would not be very hard.
2- as many people use the Tutorial to get introduced to ns, why ns
developers don't assume this job (only if Mark doesn't oppose to the idea)?


kindly regards,

Marcos



--

2007/8/14, Raphael [EMAIL PROTECTED]:



 On Tuesday 14 August 2007 06:01:25 you wrote:
  Hi Mr.Rapheal,
 
  Conform the following steps:
 
  1. Had you run makedepend before make
  2. Had you binded the variable off_ping_ in the constructor.
 That's the problem I had and the point which is wrong in the tutorial (at
 least for ns-2.31).
 Thx for the tip!

  3. Had you modified ns-allinone-2.31/ns-2.31/tcl/lib/ns-packet.tcl. we
  should include one line for myProto in foreach port {.. myProto,
  ..} { add-packet-header $prot} loop. 4. And finally last but not
  least, you might compiled by having a saperate copy. $ns filename.tcl
   will run by taking default path of ns
$/directory of modified ns/ns-allinone-2.31/ns-2.31/ns
 filename.tcl
  ---  will run the code  with modified ns.
 
 
  byeee,
Have A Nice Day,
  Ajay Kumar Patibandla.
 
 
 
 
5, 50, 500, 5000 - Store unlimited mails in your inbox. Go to
  http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html






-- 

Prof. Dr. Marcos Antônio Cavenaghi  [EMAIL PROTECTED]
UNESP - Sao Paulo State University
Phone: +55 14 3103 6079 || Fax: +55 14 3103 6034



Re: [ns] floating point exception error (Elahe Alipour)

2007-08-14 Thread Phitsanu Eamsomboon

I think you should check your code and find the part of calculation which
having divide by zero value cause of floating point exception .


[ns] agent extension problem

2007-08-14 Thread Shuvo Salehin

Hello there,

I was trying to install a new agent in ns2 but come up with the following
error:

ns:
[code omitted because of length]
: invalid command name Agent/Pong
while executing
Agent/Pong set packetSize_ 64

Please let me know about its solution

Salehin
NJIT, New Jersey