[ns] question concerning mac-timers.cc

2006-11-06 Thread Michael Timmers

Hello,

I am using ns-2.29 and I have a problem where an event is being scheduled
with a positive UID. It only happens in one simulation, but still I would
like to know, because this could also have impact on other results.


Detailed Info:

- Warning

---
 Scheduler: Event UID not valid!
---

  This warning comes from the method Scheduler::schedule(Handler* h, Event*
e, double delay) in /common/scheduler.cc (using CalendarScheduler) when
called from the method DeferTimer::start(double time) in /mac/mac-timers.cc

- Tracing
  I have traced the uid's in DeferTimer::start

 New Event ID = 27242 (given by Scheduler::schedule)
Event ID = -27242 (before calling Scheduler::schedule)
 New Event ID = 27250
Event ID = -27250
 New Event ID = 27282
Event ID = -27282
 New Event ID = 27287
Event ID = -27287
 New Event ID = 27312
Event ID = 27312

  - this is the event causing the warning + abort()
  - we are 12 seconds into simulation
  - normal procedure (i believe):
 * intr.uid_ (the event to be scheduled) is negative, because it has
been dispatched.
 * The scheduler assigns a new (positive and unique) uid to intr.
 * The scheduler dispatches the event and makes the ID negative.

  - because event 27132 seems not to be dispatched, the new event has a
positive ID

Does anybody know in what situation this might happen or how to prevent this
situation, because I cannot tell how mac-timers.cc can make sure that the
'intr' event is always dispatched before scheduling a new event?

Many thanks,

Michael


[ns] ns-2 rdg

2006-11-06 Thread Renata Rosa

Hi,

I am studying the protocol gossip for routing (route driven gossip and anonymous
gossip) in a ad hoc network and I would like to know if someone knows if the
implementation about gossip protocol in NS-2 is a extension or if it is
possible I simulate this protocol with the routing scripts that exist in the
native NS-2, does someone knows something about this or have the same
problem??

Thanks a lot,
Renata Rosa



[ns] HELP: Base Station routing??

2006-11-06 Thread Naxo


 Hi everybody,

 Does anyone know where is the piece of code that choose between
wired/wireless interface for routing packets in base stations??. I am
working with DSDV, and I want base station sends a packet through its
wireless domain although packet destination is from another domain. My
topology is like:
 BS0 - wired - BS1 - wireless - BS2 - wired - BS3
  And the problem becomes when BS1 (1.0.0) tries to send to BS3 (2.0.0),
because as its wireless domain is different from  packet destination domain,
it sends it through its wired link to BS0, and then it sends back to BS1...
making an infinite loop.

  I haver searched in dsdv/dsdv.cc, but it seems that when base station
sends packets through wired links, it does not use this code. Any suggestion
will be thankful. Thanks! 
-- 
View this message in context: 
http://www.nabble.com/HELP%3A-Base-Station-routing---tf2581706.html#a7196763
Sent from the ns-users mailing list archive at Nabble.com.



[ns] About UWB sensor network localization in NS-2

2006-11-06 Thread sainath bharadwaj

  
Dear all,
Is there anyone doing UWB sensor network localization in ns-2 platform?.If yes, 
please get in touch with me.
Thanks in advance
sainath.


[ns] Sensor Network Time Synchronization

2006-11-06 Thread Sana Jan

Dear all,

Is there anyone doing Refernce Broadcast Synchronization or TPSN in
sensor network Time synchroniztaion in ns-2 platform?.If yes, please
get in touch with me.

Thanks in advance

Sana



[ns] TRACE a 2 node connection in MANET

2006-11-06 Thread *bahareh NTC*

HI dear all,
   
  which command can be used instead of below command to trace a specific 
conncetion between 2 nodes in wireless networks? 
  TRACE_queue /TRACE-LIMIT (in wired network these command can work well  but 
for wireless I got error when I used same command ).

 
-
Want to start your own business? Learn how on Yahoo! Small Business.


[ns] R: TCP fixed data transfer

2006-11-06 Thread Marco Fiore

Andrea,

if you want to transmit 1 Mbps every 10 mins,
simply use a 
recursive function like:

proc sendData {} {
global ns_

puts time : [$ns_ now]
$ns at [$ns_ now] $ftp send 1e6 
$ns_ at [expr [$ns_ now] + 600.0] sendData
}
$ns_ at 600.0 
sendData

which every 600 sec send 1MB and reschedules itself.
$ftp 
is the FTP instance attached to TCP.

bye,

Marco


Messaggio 
originale
Da: [EMAIL PROTECTED]
Data: 5-nov-2006 6.56 PM
A: ns-
usersns-users@ISI.EDU
Ogg: [ns]  TCP fixed data transfer


Hi. I 
need to transfer 1MB every 10 minutes on wireless lan with TCP. How
can I stop tcp after 1MB is sent?

Thx for help and sorry for my 
poor english
Andrea M





[ns] Please help for invalid command Agent

2006-11-06 Thread pooja Vyavahare

Hi all,

I am working on video multicast. I downloaded the
EvalVid version used for NS. In that they have created
new agent called myUDP agent. I follwed all the
steps given in 

http://hpds.ee.ncku.edu.tw/~smallko/ns2/Evalvid_in_NS2.htm

I made the relevant changes in the packet.h and
Makefile etc. when I compiled the ns again everything
was fine.But when I run the file be.tcl which is
given in the link only the error was: 
invalid command name Agent/myUDP
while executing
Agent/myUDP create _o82 
invoked from within
catch $className create $o $args msg
invoked from within
if [catch $className create $o $args msg] {
if [string match __FAILED_SHADOW_OBJECT_ $msg] {
delete $o
return 
}
global errorInfo
error class $...
(procedure new line 3)
invoked from within
new Agent/myUDP
invoked from within
set udp1 [new Agent/myUDP]
(file be.tcl line 24)
Please help me regarding this. 
thanks in advance,
 regards,
POOJA VYAVAHARE



__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/



[ns] TRACE a 2 node connection in wireless

2006-11-06 Thread *bahareh NTC*

HI dear all,
   
  which command can be used instead of below command to trace a specific 
conncetion between 2 nodes in mobile ad hoc wireless networks? 
  TRACE_queue /TRACE-LIMIT (in wired network these command can work well  but 
for wireless I got error when I used same command ).

 
-
Sponsored Link

$200,000 mortgage for $660/mo - 30/15 yr fixed, reduce debt, home equity - 
Click now for info


[ns] URGENT HELP! warning: no class variable LanRouter::debug_

2006-11-06 Thread sinem kokten

When i tried to run the lantest.tcl under /cygdrive/c/cygwin/home/NS/ns-
allinone-2.29/ns-2.29/tcl/ex, it gives the following error

$ns lantest.tcl
warning: no class variable LanRouter::debug_

see tcl-object.tcl in tclcl for info about this warning.
ns: finish: couldn't execute ../../../nam-1/nam: no such file or directory
while executing
exec ../../../nam-1/nam lantest.nam
(procedure finish line 8)
invoked from within
finish


does anybody know the solution how to fix it?


[ns] URGENT HELP! no files matched glob pattern out.*

2006-11-06 Thread sinem kokten

Hi;
when i run the program lantest.tcl under  /cygdrive/c/cygwin/home/NS/ns-
allinone-2.29/ns-2.29/tcl/ex, i face the following problem


$ ns lantest.tcl
no files matched glob pattern out.*
while executing
glob $opt(tr).*
invoked from within
if [file exists $opt(tr)] {
catch exec rm -f $opt(tr) $opt(tr)-bw [glob $opt(tr).*]
}
(procedure create-trace line 4)
invoked from within
create-trace
invoked from within
set trfd [create-trace]
(file lantest.tcl line 91)


Has anybody idea how to fix it?


[ns] measuring time to execute a block of code

2006-11-06 Thread sagar tamhane

Hi All,

I have a simualtion with 50 nodes. I am writing a new
agent and want to measure the time spent in the some
of the helper functions. These helper functions do not
transmit / receive any packets and do computations
like matrix multiplication. How do I measure the time
taken for executing the functions. I tried the
following:

node sends packet1 to self
call function1();
node sends packet2 to self 

then I checked the trace file to see the time
difference between sending / receiving packet1 and
sending packet2. But this time difference always
equals 0 (zero). how do I get the time consumption of
function1()??

I cannot use system time since the 50 nodes execute
their code in parallel and hence the system time
difference will be adulterated with context switches.

Regards,
Sagar




 
__
Sponsored Link

Talk more and pay less. Vonage can save you up to $300 a year on your phone 
bill. 
Sign up now. http://www.vonage.com/startsavingnow/



[ns] NS- Installation Problem-Urgent

2006-11-06 Thread Shaili Desai

Hey all

I installed NS-2.30 now after deleting all of ns-2.29 and it installs fine
but after that when I run the example1a.tcl it gives me the same error and
that too there is no directory like ns-allinone-2.29w

ERROR:
When configured, ns found the right version of tclsh in
/root/ns-allinone-2.29w/bin/tclsh8.4
but it doesn't seem to be there anymore, so ns will fall back on
running the first tclsh in your path. The wrong version of tclsh may
break the test suites. Reconfigure and rebuild ns if this is a
problem.
ns:
[code omitted because of length]
: invalid command name Queue/WFQ
   while executing
Queue/WFQ set bandwidth_ 0


Can anyone pl help me whether I need to reinstall LINUX??
-- 
Thanx
Shaili Desai
Master's Candidate
Telecommunications and Management
University of Maryland,College Park,USA


[ns] sensor network scenario

2006-11-06 Thread antonis antoniou



hi all,

i am new on sensor networks and i would like to ask for your help.

is there any ready scenarios to run ?
can anyone help,with tcl or something else?


THANKS