[ns] -DDEBUG option

2008-11-03 Thread Farhan Hyder

 Hello all,

I can't figure out what does it mean to 'compile NS with -DDEBUG option'.
Can anyone help me with it ? I mean the procedure, how exactly do we do it ?

Note: ns must be compiled with -DDEBUG for this option to
  work. Also, if debug_ (the standard debug flag) is set to 1, then
  all the bits in debugMask_ are set.


Thanks,
Farhan Hyder


[ns] No drop packet on wireless links

2008-11-03 Thread Ramy Eid

Hi,
I am trying to use the error model in ns2 with wireless links, I am using
ns2.33. I tried the uniform error model and the markov chain model.  No
errors from ns but when I am trying to find the dropped packets due to error
I can not find any of them using either the uniform or markov models. So
please help me if I made any error in using the error model.
My code is available here : http://pastebin.com/f68749435


-- 
Ramy Eid


[ns] how to add a variable in MAODV

2008-11-03 Thread 胡杰

 hello all,
i add a proteced variable int nbcount in class aodv in aodv.h file, run 
correctly. but 
in maodv ptotocol, i add the same variable in the same place, without use by 
any other 
operation, it's worong.
the error is: segmentation fault;
why, how can i do.
 
Best wishes to you!

 

 

Yours,

Hu Jie

 

Re: [ns] tracing on the User-equipement in UMTS network

2008-11-03 Thread Mats Folke

Hi!

Comments further down.

Imen HEDFI wrote:
 i'm using the NIST mobility release, i verified the set up with  a
 manual of UMTS, this is not a reference script, 

Sorry, I have not used the NIST mobility release, but I will make some guesses.

 i find in the archive the following comment
 
 
 Due to the reordering at the Mobile's MAC layer, because of the
 parallel 
 
 transmissions, only when the MAC-d PDUs are correctly
 reordered and passed up to the mobile's RLC, will there be a tracing
 event at the mobile node.So, an a example
 
 - 0.124 1 2 HARQ_1 322 --- 0 7.0 2.0 0 3 8
 
 r 0.124005 1 2 AM_Data 40 --- 0 7.0 2.0 0 3 8
 r 0.124005 1 2 AM_Data 40 --- 0 7.0 2.0 0 3 9
 r 0.124005 1 2 AM_Data 40 --- 0 7.0 2.0 0 4 10
 r 0.124005 1 2 AM_Data 40 --- 0 7.0 2.0 0 4 11
 r 0.124005 1 2 AM_Data 40 --- 0 7.0 2.0 0 4 12
 
 r 0.124005 1 2 AM_Data 40 --- 0 7.0 2.0 0 5 13
 r 0.124005 1 2 AM_Data 40 --- 0 7.0 2.0 0 5 14
 r 0.124005 1 2 AM_Data 40 --- 0 7.0 2.0 0 6 15
 
 Indicates that a MAC-hs PDU (of size 322) has been dequed and its
 first 
 
 MAC-d PDU is indicated by 3 8 (what these mean should be in the user
 guide) 
 
 and when it is receievd correctly at the mobile, and reordered, all
 the 
 individual MAC-d PDUs that constructed the MAC-hs PDU can be seen,
 
 i.e. 8-15 in this case.
 
 but i don't understand what are the nodes 1 and 2 ??

I would guess that node 1 is the BS and node 2 the UE (node 0 would be the RNC 
as you described earlier). I believe all nodes are numbered sequentially when 
created (perhaps someone can verify this?). This means that the first node 
created will get node id 0, the second 1 and so on. Check your script and look 
for the order of creation among the nodes.

Since you don't get any packets to node 2 (according to your trace, which is 
why you must be certain you are tracing correctly) there must be some 
connection missing between the BS and the UE.

Good luck!

Mats Folke

 
 
 2008/10/31 Mats Folke [EMAIL PROTECTED]
 
 
 
   Hi!
 
   I assume you are using the EURANE simulator. Are you sure you have
 set up the network correctly? Is this output from the reference
 scripts? Maybe some important line in the TCL script has been lost.
 Perhaps there is an error with the input traces of the radio channels
 resulting in the non-existence of transmission opportunities?
 
   Lots of questions.
 
   Good hunting,
   Mats Folke
 
 
   Imen HEDFI wrote:
Hi,
   
When simulating a traffic over an UMTS network, I obtain a trace
format containing the following lines (an extract of the trace
   file)) 
+ 11.319203 0 1 AM_Data 40  0 1.0.0.0 0.0.2.0 0 225 2754
- 11.319203 0 1 AM_Data 40  0 1.0.0.0 0.0.2.0 0 225 2754
+ 11.319206 0 1 AM_Data 40  0 1.0.0.0 0.0.2.0 0 225 2755
- 11.319206 0 1 AM_Data 40  0 1.0.0.0 0.0.2.0 0 225 2755
+ 11.319223 0 1 AM_Data 40  0 1.0.0.0 0.0.2.0 0 225 2756
- 11.319223 0 1 AM_Data 40  0 1.0.0.0 0.0.2.0 0 225 2756
  .
  .
  .
  .
r 11.334014 0 1 AM_Data 40  0 1.0.0.0 0.0.2.0 0 223 2737
r 11.334014 0 1 AM_Data 40  0 1.0.0.0 0.0.2.0 0 224 2738
r 11.334026 0 1 AM_Data 40  0 1.0.0.0 0.0.2.0 0 224 2739
r 11.33404 0 1 AM_Data 40  0 1.0.0.0 0.0.2.0 0 224 2740
r 11.334053 0 1 AM_Data 40  0 1.0.0.0 0.0.2.0 0 224 2741
r 11.33406 0 1 AM_Data 40  0 1.0.0.0 0.0.2.0 0 224 2742
r 11.334062 0 1 AM_Data 40  0 1.0.0.0 0.0.2.0 0 224 2743
   
the node 0 is the RNC and 1 is the BS,
i want to trace the received packet in the mobile node, but i don't
obtained the lines indicating that the packet reaches the mobile
   node. 
How can i view this trace???
   
best regards
   
--Imen
 
 
 
   --
 
   Mats Folke, M.Sc., Lic.Eng.
   Research Engineer
 
   Ericsson AB Office: +46 8 7571385
   Ericsson Research   Fax: +46 920 99621
   P.O. Box 920Mobile: +46 76 1271385
   SE-971 28 Luleå



-- 
Mats Folke, M.Sc., Lic.Eng.
Research Engineer

Ericsson AB Office: +46 8 7571385
Ericsson Research   Fax: +46 920 99621
P.O. Box 920Mobile: +46 76 1271385
SE-971 28 Luleå



[ns] How to add multiple interface queues at a node?

2008-11-03 Thread ajay shukla

hello

can any one tell me how to add multiple ifq's at any AP and attach it to a
specific wireless node i.e. frame for a node is to be stored in
corresponding queue...?

plz help me

--
thanx
ajay