[ns] MAC_802_11 Sendup and Senddown delay

2006-05-01 Thread Bahman Kalantari Sabet

Dear all,

I want to add an additional delay (suppose: a variable called delay2_ ) to
the NefIF of my node, so that all the packets sent from/to the WirelssPhy
are scheduled to go through this delay.

I want to investigate the MAC performance (throughtput) of the system when
this delay is increased from zero to the point where the system's throughput
becomes zero again.

I have been advised to check wireless-phy.cc/h, phy.cc/h  (sendup and
senddown function) and add some codes there.  But don't know where and what
to add.  I have studied most of the c++ codes of the related files
(including: mac-802_11, Phy, wireless-phy,mac-timers, scheduler) and have a
fair amount of understanding there.

The other point given was that I have to create a 'timer' so that all the
packets are scheduled by this timer i.e.s.schedule(delay_handler_, p,
delay2_).  How do I do this?  (do I write a new class in the mac-timers.cc/h
? )

Just to let you know that I have never carried out any changes in the c++
files of NS-2.  After I did this, what should I do in order that NS-2 works
with these new codes?

Looking forward to your suggestions,

Many thanks

Ben

PhD Researcher
Department of EE @ UCL.




Re: [ns] MAC_802_11 Sendup and Senddown delay

2006-05-01 Thread Ilyes Gouta

Hi,

As far as I can remember, there is already a delay Queue implementation 
in the ~/ns-2.2x/queue directory. This does the delay at packet level 
and not MAC level, so I don't know if will really fit your needs. The 
queue can be configured to apply a random delay too to the incoming 
packets. All you have to do is to configure your nodes w/

-ifqType Queue/DelayQueue (I really don't remember its exact name)

Hope it helps,
Ilyes Gouta.

Bahman Kalantari Sabet wrote:
 Dear all,
 
 I want to add an additional delay (suppose: a variable called delay2_ ) to
 the NefIF of my node, so that all the packets sent from/to the WirelssPhy
 are scheduled to go through this delay.
 
 I want to investigate the MAC performance (throughtput) of the system when
 this delay is increased from zero to the point where the system's throughput
 becomes zero again.
 
 I have been advised to check wireless-phy.cc/h, phy.cc/h  (sendup and
 senddown function) and add some codes there.  But don't know where and what
 to add.  I have studied most of the c++ codes of the related files
 (including: mac-802_11, Phy, wireless-phy,mac-timers, scheduler) and have a
 fair amount of understanding there.
 
 The other point given was that I have to create a 'timer' so that all the
 packets are scheduled by this timer i.e.s.schedule(delay_handler_, p,
 delay2_).  How do I do this?  (do I write a new class in the mac-timers.cc/h
 ? )
 
 Just to let you know that I have never carried out any changes in the c++
 files of NS-2.  After I did this, what should I do in order that NS-2 works
 with these new codes?
 
 Looking forward to your suggestions,
 
 Many thanks
 
 Ben
 
 PhD Researcher
 Department of EE @ UCL.
 
 
 



[ns] Developing DSR protocol, problem request:

2006-05-01 Thread Tariq Alsaifi

I am trying to develop dsr protocol with new ideas, and I did investigate C++
codes, NS-2 Manual  the email archive. I am using ns-2.29

So far I’m facing two problems  I have a request:

First – In trace file, the dsr flag related to routing request (-Pq: Routing
Request Flag) does not give the value 1 (ALL TIME) to indicate that “this is
dsr request packet”, however I used lots of different Topologies, Connections
scenarios,  Movement scenarios. That forced me to investigate the C++ code
related to it, and I found that the related code that is responsible to show
the route request flag is [srh-route_request()] and this  should be set to
equal 1 in case that we have route request packet! Some of the code in file
dsragent.cc DOES NOT contain such a code when it is - for sure - route
request, So I did added [srh-route_request()=1]. And still I don’t get
Routing Request Flag (-Pq: 1)! Can any body explain that? The trace file is
exist in ~/trace/cmu-trace.cc


Second - I am trying to add some new flags in a way similar to route request!
I did typical similar code to file hdr_sr.h  I added to file dsragent.cc and
set it to 1 always just to see it in trace file, and I always get strange
values (such: -1425044999) instead of 1, which leaded me to think that it may
access the address of it instead of the value itself! I did review it  review
the pointers  access in C++ information, and I did add the setting to value 1
within different files, but still get strange values (-1425044999)


My request Can any body explain to me what is going on? And if there is any
ideas to make the flag appear correctly?

.
.
.
.
=
Tariq Alsaifi,
PG Mail, Merz court,
School of EECE,
University of Newcastle,
Newcastle-upon-Tyne,
NE1 7RU



[ns] : Found Error in cmu-scen-gen / cbrgen.tcl

2006-05-01 Thread [EMAIL PROTECTED]

Hi,
I found an error in the cmu's script to generate traffic pattern.
The file is ns_dir/indep-utils/cmu-scen-gen/cbrgen.tcl
My ns version is ns-2.29

Error is in lines 166 and 183: 
you must change  [expr $opt(nn) + 1]   with  [expr $opt(nn)].

I think that this correction follows directly from basic modular math.
In fact without this correction node index, for a set of nn node, has 
a range from 0 to nn, instead that from 0 to nn-1.

Am I right?

Aledep





Milioni di oggetti, impossibile non trovare quello che cerchi. 

Dallo spillo all'elefante, non ti stupire. 

Sei su eBay! 

http://adfarm.mediaplex.com/ad/ck/724-7199-4110-179?id=2




Re: [ns] Error: Segmentation Fault (Core Dumped)

2006-05-01 Thread Jongman Heo

How about using gdb or valgrind to trace the problem?

Jongman.

2006/4/30, Tomáš Pataj [EMAIL PROTECTED]:

 Hi NS users,

 I tried to make some changes in DiffServ module according to Sergio
 Anderozzi DiffServ patch. His patch is functional in version NS-2.1b8a.
 Patch is here:
 http://www.cnaf.infn.it/~andreozzi/research/network/download.html
 http://www.cnaf.infn.it/~andreozzi/research/network/diffserv.patch

 I tried to rebuild his add-ons to version NS-2.29. I make changes and
 compiling seems to be OK but when I run some examples from Sergio:
 http://www.cnaf.infn.it/~andreozzi/research/network/example.html

 Always I will get Error mesage: Segmentation Fault (Core Dumped). Can
 you help me where is problem or how I can change patch or examples?

 I would appreciate any help
 Thank you

 Tomas Pataj





--
=
Jongman Heo



Re: [ns] [bug] Build failure on 64-bit Mandriva 2006.0

2006-05-01 Thread D. R. Evans

The final link stage where the executable ns is supposed to be built is
failing with the following error (after applying Tom Henderson's suggested
fix to the problem regarding teh X libraries):

... most of command elided for clarity... mp/ns-allinone-2.29/otcl-1.11
-lotcl -L/tmp/ns-allinone-2.29/lib -ltk8.4 -L/tmp/ns-allinone-2.29/lib
-ltcl8.4 -lnsl -ldl -lm -lm
`.gnu.linkonce.t._ZN11taskPending10taskStatusEh' referenced in section
`.rodata' of wpan/p802_15_4mac.o: defined in discarded section
`.gnu.linkonce.t._ZN11taskPending10taskStatusEh' of
wpan/p802_15_4mac.ocollect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!

I've never seen anything like this error before, and have no idea how to
fix it.

  Doc



[ns] why noone wants to help me? :(

2006-05-01 Thread lewapryb

I'm sorry that I am writing in such way, but I really need help. I
am trying to install ns-2.1b7a because I want to patch gprs wrote by
Richa Jain.
I tried installing it and I have such error:

tclcl-mappings.h: In static member function #8216;static int
TclObjectHelperT::dispatch_(void*, Tcl_Interp*, int, char**)#8217;:
tclcl-mappings.h:51: error: incomplete type #8216;Tcl#8217; used in nested
name specifier
tclcl-mappings.h:52: error: invalid use of undefined type #8216;struct 
Tcl#8217;
tclcl-mappings.h:41: error: forward declaration of #8216;struct Tcl#8217;
tclcl-mappings.h:57: error: invalid use of undefined type #8216;struct 
Tcl#8217;
tclcl-mappings.h:41: error: forward declaration of #8216;struct Tcl#8217;
make: *** [Tcl.o] Error 1
tclcl-1.0b10 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

I don't know what to do? I have fc4. I cannot patch gprs to ns-2.29
beacuse it doesn't work.
Please help me
Real thanks!!!





Re: [ns] why noone wants to help me? :(

2006-05-01 Thread Tiago Camilo

Did you already look to this page:
http://zzlinux.blogspot.com/2004/12/ns2-building-experiences.html
Good luck...
-- 
Tiago Camilo
PhD student
Laboratory of Communication and Telematics
University of Coimbra


Quoting [EMAIL PROTECTED]:


 I'm sorry that I am writing in such way, but I really need help. I
 am trying to install ns-2.1b7a because I want to patch gprs wrote by
 Richa Jain.
 I tried installing it and I have such error:

 tclcl-mappings.h: In static member function #8216;static int
 TclObjectHelperT::dispatch_(void*, Tcl_Interp*, int, char**)#8217;:
 tclcl-mappings.h:51: error: incomplete type #8216;Tcl#8217; used in nested
 name specifier
 tclcl-mappings.h:52: error: invalid use of undefined type 
 #8216;struct Tcl#8217;
 tclcl-mappings.h:41: error: forward declaration of #8216;struct Tcl#8217;
 tclcl-mappings.h:57: error: invalid use of undefined type 
 #8216;struct Tcl#8217;
 tclcl-mappings.h:41: error: forward declaration of #8216;struct Tcl#8217;
 make: *** [Tcl.o] Error 1
 tclcl-1.0b10 make failed! Exiting ...
 See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

 I don't know what to do? I have fc4. I cannot patch gprs to ns-2.29
 beacuse it doesn't work.
 Please help me
 Real thanks!!!







This message was sent using IMP, the Internet Messaging Program.



[ns] About setting meanPktSize value in DiffServ

2006-05-01 Thread Qiang \(Tony\) Yang

Dear NS users,

In DiffServ scenarioes, we need to set meanPktSize to let RED calculate 
average queue size. If we only have one physical queue, then we can set 
meanPktSize to be the packet size of the traffic through that queue.

My question then is, if we have multiple physical queues, say 3, then how 
can we set meanPktSize value? It seems to me that different physcial queue 
needs to use different meanPktSize values to accurately calculate the averge 
queue size for each physical queue.

PS. the examples in DiffServ module in ns distribution cannot help to answer 
this question.

Looking forward to your answer, many thanks,

Tony