Re: [ns] getting queue length problem

2006-06-10 Thread k s

PT version:

Hi ,

I saw a similar issue on
http://mailman.isi.edu/pipermail/ns-users/2003-January/028599.html

for accessing the length of the ifq in mac.  I did their fix (see the post
above) but it still doesn't work for me.  I still get a seg fault when the
program comes to 

int queueLen= ll_->ifq()->length();


It's in a couple of "if" statement for null pointers...
if (ll_!=NULL){ //if the ll_ pointer is set 
if(ll_->ifq()!=NULL){ //if the ll_->ifq_ pointer is
set
int queueLen= ll_->ifq()->length();
}
}

So that can't be the problem... I'm stuck!

Can anyone help me out?

Kathy



[ns] getting queue length problem

2006-06-10 Thread k s

Hi ,

I saw a similar issue on
http://mailman.isi.edu/pipermail/ns-users/2003-January/028599.html

for accessing the length of the ifq in mac.  I did their fix (see the post
above) but it still doesn't work for me.  I still get a seg fault when the
program comes to 

int queueLen= ll_->ifq()->length();


It's in a couple of "if" statement for null pointers...
if (ll_!=NULL){ //if the ll_ pointer is set 
if(ll_->ifq()!=NULL){ //if the ll_->ifq_ pointer is
set
int queueLen= ll_->ifq()->length();
}
}

So that can't be the problem... I'm stuck!

Can anyone help me out?

Kathy


[ns] Attaching routing agent to nodes

2006-06-10 Thread Erik Kline

Dear NS-users,

I have created a new routing protocol that is almost completely in
C++.  The routing protocol is designed for WIRED routing and has all
the basic properties (recv, command, forward_data, etc...).  The
problem I'm having is trying to determine how to attach my routing
agent to my nodes.  I can attach the agent using:

$node attach-agent [new Agent/Proto ...] 255

but when I build applications and agents, they do not use my routing
agent to route packets.  (Probably still using default static
routing).  So, I'm trying to figure out what TCL code I need to add to
make it such that my routing agent becomes the routing agent for the
nodes.

I have also tried adding TCL extensions similar to that of DV but I
continuously get errors.  For example, after telling the rtObject to
add my protocol, I want to run a few protocol commands.  I have set me
protocol to an object rtproto but when I run the command:

$rtproto cmd  

I get an error even though the error message is unclear, something like this:

 (_o46 cmd line 1)
invoked from within
"$rtproto cmd address [$node node-addr]"

even though I'm 100% sure the command I ask for is excepted in my
command function.  Any help would be appreciated.



Re: [ns] Clearing a queue at a node in ns-2

2006-06-10 Thread k s

Here is what I put in my code:
ll_->ifq_->reset();

which caused a segmentation fault initially. Those usually happen with NULL
pointers, so I changed it to this statement:

if (ll_!=NULL){
ll_->ifq_->reset();
}

but I found out that this "if" statement is never stepped into!

Can anyone help me out??

Kathy

On Fri, 9 Jun 2006, Shafiq Hashmi wrote:

> If you want to stop queueing at all, then
>
> in queue.cc, within void Queue::recv(Packet* p, Handler*) method, comment 
> everything else but the line
> target_->recv(p, &qh_);
>
> I dont know whether will it answer your problem or not.
>
> Shafiq
>
>
>
>
>
>
> - Original Message - From: <[EMAIL PROTECTED]>
> To: "Pedro Vale Estrela" <[EMAIL PROTECTED]>
> Cc: 
> Sent: Friday, June 09, 2006 6:32 PM
> Subject: Re: [ns] Clearing a queue at a node in ns-2
>
>
>> 
>> Whoah, that is too complicated for me.   I don't know ns-2 very well.
What 
>> do you mean by:
>> "make a pointer to the ITF" -- doesn't it have a pointer (uptarget_)? 
>> According to the diagram on pg 145 I should do uptarget_ 
>> ->downtarget_->reset()
>> since
>> uptarget will take me to the LL, downtarget will take me to the IFq, and 
>> reset will reset the queue for that node.
>> 
>> But this doesn't work.  Uptarget_ gives me an NsObject instead of a LL 
>> object...
>> 
>> 
>> 
>> On Fri, 9 Jun 2006, Pedro Vale Estrela wrote:
>> 
>>> 
>>> Yes,
>>> 
>>> http://www.isi.edu/nsnam/ns/doc/ns_doc.pdf
>>> pag 145,
>>> 
>>> - at your C++ MAC module, make a pointer to the ITF;
>>> - either search the C++ NODE methods for getting the pointer
>>> reference you need (you want the reverse of the downtarget_ on the ITF; 
>>> for
>>> making this, search the code that sets the downtarget_ variable in C++
in
>>> the ITF; (tip: use DDD, put a breakpoint somewhere in mobilenode.cc)
>>> in that moment, set something like:
>>>  downtarget_->my_ITF_ = this;
>>> 
>>> - then at the appropriate time, call reset() of it.
>>>my_ITF->reset();
>>> 
>>> Of course that this is not good C++ Object-Orientation practices, but
use 
>>> it
>>> to simply try your ideia; if it works nice, then make the same thing
with
>>> provte variables and public set/get methods.
>>> 
>>> 
>>> You can also perform the same trick by:
>>>   Calling TCL / searching the ITF object you want based on the current
MAC
>>> object / call reset of it. The benefit is that you can fine tune this 
>>> method
>>> without recompiling NS2 each time.
>>> 
>>> 
>>> If this works, please put this on the NS2 WIKI!
>>> Pedro Vale Estrela
>>> 
>>> 
 Hi ns,
 
 I'd like to clear a node's queue from the mac-layer in my simulation 
 after
 I've received a certain packet.  Can I call a PacketQueue function like
 "reset()" from the mac layer?  If not, how would I clear the queue?
 
 Thanks!
 
 Kathy
 
 
 
>>> 
>>> 
>>> 
>> 
>> 
>> 
>
>
>





[ns] Transmission Power for Common and Dedicated Channels

2006-06-10 Thread Ευαγελος Ρεκκας

 hi to all ns users,

i would like to ask if there is a function or something so that i can
measure transmitted power for DCH and FACH channels.

Actually i need to calculate the transmitted power from Base Station for
dedicated and common channels by considering
parameters such as number of UEs,distance of UEs from BS,bit rates etc.

Any comment would be of great help

Thanks...


[ns] SOMEONE Knows How implement STOP AND WAIT congestion control???

2006-06-10 Thread Edwin Cruz


HI everyone

 I work in a work about congestion control, and my question is if NS have
by default "congestion controls", for TCP what is the data tahat I need
modify?

 Or I need to program in c++ the controls?
Thanks in advance

Ing. Edwin Cruz.
Área de Comunicaciones.
50613800 Ext. 6357



[ns] Help needed on RSVP !

2006-06-10 Thread asma a

Hi ;;
   
  I try to RSVP implementation from Mr. Alexander Sayenko, but in the make step 
I get this error:
  g_test -I. -I/home/asma/ns-allinone-2.28/tclcl-1.16 
-I/home/asma/ns-allinone-2.2
  8/otcl-1.9 -I/home/asma/ns-allinone-2.28/include 
-I/home/asma/ns-allinone-2.28/i
  nclude -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue 
-I./ad
  c -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier 
-I.
  /mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr 
-I./diff
  usion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv 
-I./mac/802_1
  1e -I./wpan -o rsvp/rsvp-link.o rsvp/rsvp-link.cc
  rsvp/rsvp-link.cc: In constructor `RSVPChecker::RSVPChecker()':
  rsvp/rsvp-link.cc:47: error: call of overloaded `bind(const char[5], nsaddr_t*
 )' is ambiguous
  /home/asma/ns-allinone-2.28/tclcl-1.16/tclcl.h:182: error: candidates are: 
void
   
 TclObject::bind(const char*, unsigned int*) 
  /home/asma/ns-allinone-2.28/tclcl-1.16/tclcl.h:183: error: 
void
   
 TclObject::bind(const char*, int*) 
  make: *** [rsvp/rsvp-link.o] Error 1
 
   

  I am using ns-allinone-2.28 on the Cygwin environment.
  any advice??!!
   
  Sincerely,
  Asma
  
 
   

>Hi  >  >I support the following implementation:  
>>http://www.cc.jyu.fi/~sayenko/src/ns-2.28-rsvp2.diff.gz. The patch also  
>>installs the test scripts in tcl/ex/rsvp  >  >Sincerely,  >Alexander Sayenko 
>(PhD)  >Assistant  >Telecommunication laboratory, MIT department  >University 
>of Jyvaskyla, Finland  >  >  >>  >>  >>  >> Hi all!  >>  >>   IS any of u ppl 
>working on RSVP using NS-2???  >>   If so, then do send me some example codes 
>or some links where I can get  some direction about where shd I start 4m??  >> 
> >>   Thanks in advance,  >>   Deepti.  >>  >>  >> 
>-  >>  Jiyo cricket on Yahoo! India cricket  
>>> Yahoo! Messenger Mobile Stay in touch with your buddies all the time.

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


[ns] code for PEGASIS

2006-06-10 Thread 光光

 Hi everyone,

I'm using NS2 and I need the code for PEGASIS protocol in sensor
networks.
Can anyone send that to me. I'll be very appreciate it !

Thank you !


[ns] trace file problem

2006-06-10 Thread bema juke

Hello All
I'm doing researches on satellite networking, that's why using the ns2.29 
network simulator. I have tried example tcl script disributed in 
ns2.29(ns/tcl/ex/..). For now the simulation script are running alright. and I 
have got trace files, as an output result. 
But i've got a problem in trace file. according to my simulation, TCP traffic 
generator send FTP packets. In the trace file i cannot distinguish between data 
packets and routing packets. 
In the simulation script, the AgentTrace and Router/Trace are ON, but still 
there are no any agt or rtr descriptions in trace file.
I need any assisitance in this pronblem,Would u say if u have any answer or  
suggestion about the problem i've got.
Thanks in advance.



[ns] [help!]where can i find Freeze-tcp implement for ns-2??

2006-06-10 Thread 徐航宇

Can anyone help me??
i look for  it for days.but i can not find it.
Anyone who has it or knows the web site where it can be download from??
please do me a favor.
thanks!!


[ns] batch arival process

2006-06-10 Thread Pranay Prateek

Can anybody tell me what is meant by a "Batch Arrival Process" ?i mean what
is a batch ,are u aggregating the packets to make a batch or something else
?and in this sense what is meant by "batch size" and "batch interarrival
time "?is it the same as Burst size and burst interarrival time in Optical
burst networks ?
any help would be highly regarded .
thank you !
-- 
Pranay Prateek
Department of Electrical Enginnering
Indian Institute of Technology ,Madras
Chennai ,India .