[ns] accessing vaiable of c++

2009-01-19 Thread neeraj gupta


hi all

   how can i access the variable in c++ in tcl script. Also if change the code 
in c++ to print the value of variable where that value will be printed.


Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] Energy Management in 802.11Phy

2009-01-19 Thread Eric . Wuensche

I just was curious about why in the routines UpdateSleepEnergy() and 
UpdateIdleEnergy() the first one reschedules itself and the second one 
doesn't. So where or which class handles the Idle Energy Management?


[ns] Associating a mobile node with a certain AP in 802.11

2009-01-19 Thread Ivan_Tiger


Hi!
Who knows how to associate a mobile node with a certain parent Access
Point AP?
Thanks in advance!
-- 
View this message in context: 
http://www.nabble.com/Associating-a-mobile-node-with-a-certain-AP-in-802.11-tp21543495p21543495.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Fw: Cbr traffic use in Tcp or not for MAODV

2009-01-19 Thread vaishali mandhare



--- On Mon, 19/1/09, vaishali mandhare v_mandh...@yahoo.com wrote:

From: vaishali mandhare v_mandh...@yahoo.com
Subject: Cbr traffic use in Tcp or not for MAODV
To: ns user ns-users@isi.edu
Date: Monday, 19 January, 2009, 1:24 PM







Hello,
I am doing performance comparision of tcp and cbr in maodv on ns2.26.Can 
anybody tell me that cbr traffic is used in tcp script for calculating the 
parameter packet dilivery ratio and latency.Plz Plz help me
Thanks!!! 


Add more friends to your messenger and enjoy! Invite them now.


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

[ns] TKN 802.11e - errors running CFB scenarios

2009-01-19 Thread Livia Ferreira Gerk

Hi, all,

 

I've successfully installed TKN 802.11e patch into NS2.31. I'm testing the
effects of 802.11e parameters on collision rate, loss rate, throughput and
average delay as network load increases. My topology is static with the
nodes randomly positioned and a random node starts 1 flow of each priority
level (total 4) every 20s of simulation time (total 14x4).

 

I was trying to test topologies with 10, 30 and 50 nodes. With 10 nodes,
I've got no problem at all in all scenarios I ran.

 

However, simulations that generate higher throughput in scenarios with 30
and 50 nodes consume so much memory that it can't finish. I get:

 

terminate called after throwing an instance of 'std::bad_alloc'

  what():  St9bad_alloc

 

So, comes one of my doubts: how scalable is this code? What's the maximum
number of nodes or flows I can have? What have you tested? I tried removing
the headers I'm not using and all that stuff for running large simulations
but I still get this error.

 

Besides that, I've got some errors when running the simulations with 30 and
50 nodes with CFB enabled:

 

ns: mac/802_11e/mac-802_11e.cc:80: : Assertion `dh-dh_fc.fc_type == 0x01'
failed.

 

This occurs when the packet that is to be transmitted in the function below
is a data packet and not a control packet.

 

inline void

Mac802_11e::transmit(Packet *p, double t)

{

/*

 * If I'm transmitting without doing CS, such as when

 * sending an ACK, any incoming packet will be missed

 * and hence, must be discarded.

 */

 if(rx_state_ != MAC_IDLE) {

struct hdr_mac802_11e *dh = HDR_MAC802_11E(p);

 

assert(dh-dh_fc.fc_type == MAC_Type_Control);

assert(dh-dh_fc.fc_subtype == MAC_Subtype_ACK);

 

assert(pktRx_);

struct hdr_cmn *ch = HDR_CMN(pktRx_);

 

ch-error() = 1;/* force packet discard */

}

.

 

My doubt is: when CFB is enabled, data packets may be transmitted without
doing CS too, right? If so, assert shouldn't check just if p is a control
packet but if it is a data packet too. I'd really appreciate your advice
here.

 

Other error I've got was:

 

ns: mac/802_11e/mac-802_11e.cc:1107: : Assertion `pktTx_[pri]' failed.

 

void

Mac802_11e::RetransmitDATA(int pri)

{

 

struct hdr_cmn *ch;

struct hdr_mac802_11e *mh;

u_int32_t *rcount, *thresh;

 

assert(mhBackoff_.backoff(pri) == 0);

 

assert(pktTx_[pri]);

assert(pktRTS_[pri] == 0);

 

ch = HDR_CMN(pktTx_[pri]);

mh = HDR_MAC802_11E(pktTx_[pri]);

...

 

Does this mean that the packet that should be retransmitted doesn't exist??

 

Thank you very much for your help.

BR

Livia



Re: [ns] ns-2.33 Scheduler loosing events

2009-01-19 Thread Sidney Doria

Scheduler uses a simple ordered linked list to store events. You must consider:

- memory limits;
- invalid pointers (you cannot add an invalid pointer or dealocate it
before scheduler remove it from the list);

Invalid pointers are the main problem with scheduler. Beyond these
concerns, I suggest you debug with eclipse and gbd.

Sidney Doria
UFCG / BRAZIL



2009/1/19 Nicholas Loulloudes loulloude...@cs.ucy.ac.cy:


 Hi all,

 Is it possible the ns-2.33 scheduler is losing events?

 I generated aprox. 7000 events in a TCL source file and a lot of those
 events when given to the scheduler are lost.

 This is a code snippet:

 void ProtName::create_Pkt(Packet* p){
 /*
 * Create a packet with source and destination header
 */

 // Schedule it for later Transmission
 Scheduler::instance().schedule(target_, p2, 0.0);
 }

 Using printf's i can see the Scheduler correctly receives the packet,
 but later on there is no other trace of it.

 Any suggestions? Is there a limit to the events the scheduler  can handle?

 Thanks in advance.


 --
 _

 Nicholas Loulloudes
 High Performance Computing Systems Laboratory (HPCL)
 University of Cyprus,
 Nicosia, Cyprus

 Tel:  +357-22892663
 Email: loulloudes.n[at]cs.ucy.ac.cy






-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] accessing vaiable of c++

2009-01-19 Thread Sidney Doria

You must BIND a variable to use it in both sides.

Read the specific chapter for this in the NS-2 manual, or take a look
in a real example here:
http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf

Sidney Doria
UFCG / BRAZIL

2009/1/19 neeraj  gupta neerajgupt...@rediffmail.com:


 hi all

   how can i access the variable in c++ in tcl script. Also if change the code 
 in c++ to print the value of variable where that value will be printed.


 Neeraj Gupta
 Assistant Professor
 HOD, CSE  IT Department
 Hindu College of Engineering
 Sonepat




-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] How can I send variable sized packet, and measure the size ?

2009-01-19 Thread Sidney Doria

OK,

I suppose a wired network (if you want to do this in a wireless net,
read this tutorial:
http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf).

Any node receives a packet in the network layer by a method called RECV().

recv() decides what to do with the received packet. So the main
parameter is the packet pointer itself. It reads the headers and
decides discard that packet, forward it or send to upper layers. This
is what a routing protocol does. In a choosed protocol, in the code
fragment where It decides to forward a packet, change the code and add
your packet manipulation.

Sidney Doria
UFCG / BRAZIL


2009/1/19 Daehee Kim dahki...@gmail.com:
 Hi, Sidney

 Yes..

 Danny

 2009/1/18 Sidney Doria ssdo...@gmail.com

 You mean the packet size (and content) may be increased or decreased
 in a forwarder node?

 Sidney Doria
 UFCG / Brazil

 2009/1/18 Daehee Kim dahki...@gmail.com:
 
  Hi everyone.
 
  I want to send a packet which has variable size on the way to a
  destination.
 
  That is, the packet size when it starts from a source node will be
  different
  from when it is at one of forwarded nodes. ;
  the packet size is varied.
 
  How can I implement variable sized packet ? Also, How can I measure the
  size
  of the packet at any time ?
 
  Thanks
  Danny
 
  --
  DaeHee(Danny) Kim
  Department of Electrical Engineering and Computer Science(EECS), Wichita
  State University
  email-address : dxk...@wichita.edu, dahki...@gmail.com
 



 --
 Sidney Doria
 Redes ad hoc móveis
 Doutorado em Computação
 UFCG
 Brasil

 Nessa jornada, o conhecimento será o seu escudo...
 (Mestre dos Magos no episódio do grimoire de ouro)



 --
 DaeHee(Danny) Kim
 Department of Electrical Engineering and Computer Science(EECS), Wichita
 State University
 Cell Phone : 1-607-321-9574
 email-address : dxk...@wichita.edu, dahki...@gmail.com




--
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] script for broadcast message in VANET

2009-01-19 Thread dlil_346

hi there,
i need example script tcl for broadcast message in VANET, can anyone help
me ?
thank you.

Regards,

don pollo



[ns] how to generate graph in wireless scenario

2009-01-19 Thread Panks PB

hi ,
 I wanted to know the procedure to get Xgraph or Gnuplot from trace file.

Thank u

regards
pankaj