[ns] schedular ERROR : PLZ HELP

2006-11-16 Thread Bilel Romdhani

Hi list,
i have a problem and i hope u can help me on it : i m simulating ad hoc on
ns2.27 version
and i m modifiying in transmit() function in the mac-802_11.cc file

before sending pkt i must do an admission control as described bellow :
  for each pkt i verify
  if  the idle time in the channel is   admission threashold
 So send pkt
  Else if the idle time in the channel is admission threashold
 So i must wait a random time after that i re calculate the
new idle time
 if
the new idle time So send pkt

Else drop pkt

my problem is how to wait this random time : when i use a timer i have the
schedular ERROR

i hope that u understand my problem.
thanks for ur time (if u want any other explanation i m here.)

tanks for any help


Re: [ns] Compilation Error ns2.1b8a

2006-11-16 Thread Renata Vidal

http://mailman.isi.edu/pipermail/ns-users/2003-August/035002.html

On 11/15/06, Mohammad Haseeb Zafar [EMAIL PROTECTED] wrote:

 Got answer from http://www.jlsnet.co.uk/index.php?tab=4page=ns2_comperror
 Cheers
 Haseeb

 -Original Message-
 From: [EMAIL PROTECTED] on behalf of Mohammad Haseeb Zafar
 Sent: Wed 15/11/2006 11:06 AM
 To: ns-users@ISI.EDU
 Subject: [ns] Compilation Error ns2.1b8a


 Hi
 I got following error while compiling ns2.1b8a. Please help.
 Haseeb


 c++ -c  -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR  
 -DNDEBUG
 -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H 
 -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H  -DHAVE_CONFIG_H 
 -I. -I/bonhome/haseeb/work/ns-allinone-2.1b8a/tclcl-1.0b11 
 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/otcl-1.0a7 
 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include 
 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -o route.o route.cc
 c++ -c  -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR  
 -DNDEBUG
 -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H 
 -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H  -DHAVE_CONFIG_H 
 -I. -I/bonhome/haseeb/work/ns-allinone-2.1b8a/tclcl-1.0b11 
 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/otcl-1.0a7 
 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include 
 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -o connector.o connector.cc
 c++ -c  -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR  
 -DNDEBUG
 -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H 
 -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H  -DHAVE_CONFIG_H 
 -I. -I/bonhome/haseeb/work/ns-allinone-2.1b8a/tclcl-1.0b11 
 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/otcl-1.0a7 
 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include 
 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -o ttl.o ttl.cc
 c++ -c  -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR  
 -DNDEBUG
 -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H 
 -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H  -DHAVE_CONFIG_H 
 -I. -I/bonhome/haseeb/work/ns-allinone-2.1b8a/tclcl-1.0b11 
 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/otcl-1.0a7 
 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include 
 -I/bonhome/haseeb/work/ns-allinone-2.1b8a/include -o trace.o trace.cc
 In file included from trace.cc:44:
 tfrc.h:116: friend declaration requires class-key, i.e. `friend class
TfrcSendTimer'
 tfrc.h:117: friend declaration requires class-key, i.e. `friend class
TfrcNoFeedbackTimer'
 make: *** [trace.o] Error 1
 Ns make failed!
 See http://www.isi.edu/nsnam/ns/ns-problems.html for problems





-- 
Renata Vidal
Triste é o destino de quem tenta vencer as batalhas e ter sucesso nos
ataques sem cultivar o espírito da iniciativa (A Arte da Guerra – SUN
TSU – pg 102)



[ns] error model not working... advice needed

2006-11-16 Thread luqman_ngs

hello,

I have having problems with error model attachment in a umts scenario. I 
followed the eurane user guide 1.6:

set em [new ErrorModel]
$em unit pkt
$em set rate 0.02
$em ranvar [new RandomVariable/Uniform]

$ue1 interface-errormodel $em 2

ue1 is a umts node with dch channel, cbr application and a null agent for 
receiving the packets. A fixed node is sending udp packets.

Q1) In user guide it is stated that $node interface-errormodel $em_ network 
interrace number is a new command addition to ns2. But I find it being 
mentioned in ns manual document, too. This is confusing, addition to the fact 
tat above configuration is not working.

Actually, I checked trace file to find any gaps in packets but all the packtes 
seem to arrive at target host even when error rate is set very hing (0.5 or 
above).

I am completely at loss. Any pointer is much appreciated.

Regards,
-- 
Ein Herz für Kinder - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!



[ns] How to aquire current queue length in MAC?

2006-11-16 Thread M. Shen

Dear all,

In 802_11 MAC, when one packet is received, how to aquire the current
queue length information, i.e. how many packets have already been in
the buffer of this receiver? I completely don't know what to do, since
I'm a ns beginner. Does anyone know this?

Thank you very much,
Maggie



[ns] MANNASIM SENSORS EXTENSION

2006-11-16 Thread antonis antoniou


Hello everyone,
i am new in ns-2 and i try mannasim extesion now.TCL examples give from 
mannasim webpage give me errors.

can any one help?



[ns] Installing ns-2.26 in FC5!

2006-11-16 Thread Diana Asnani

Hi folks,

Has anyone successfully installed ns-2.26 in FC5? It says
tcl8.3.2configuration failed! Is there a way to fix the tcl? Please
let me know.
Thanks.

Diana
-- 
visit my blog at http://sawkal.blogspot.com


[ns] Installing ns-2.26 in FC5!

2006-11-16 Thread Diana Asnani

Hi folks,
Has anyone successfully installed ns-2.26 in FC5? It says
tcl8.3.2configuration failed! Is there a way to fix the tcl? Please
let me
know.Thanks.

Diana
-- 
visit my blog at http://sawkal.blogspot.com


Re: [ns] how to calculate end to end delay in wireless scenario

2006-11-16 Thread Anoop Ramamurthy

Hi Venkat, 

If you want to find end to end delay of a single packet, here is 
the procesure. You can keep track of packet id (which signifies the 
uniquness of a particular packet) and find the difference between the 
start time (at the source  node) and end time (at destination node) for a 
particualr packet to find its end to end delay. Keep repeating the process 
for all the successfull packets and take the average to get average end to 
end delay.



Thanks and regards ,

Anoop M




Venkat Kotra Krishna [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
11/15/2006 03:20 PM

To
ns users ns-users@ISI.EDU
cc

Subject
[ns] how to calculate end to end delay in wireless scenario








 hi all,
 
 can any one tell me, how to calculate end to end delay in wireless 
scenario from the trace output or in any other way.
 
 its urgent please.
 
 thanks in advance
 venkat.
 

-
  Find out what India is talking about on  - Yahoo! Answers India 
  Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. 
Get it NOW

 
-
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. 
Get it NOW

__



__