Re: [ns] timer on tcl

2009-05-25 Thread Mats Folke
Hi! The timer method is probably not executed because the finish-method gets scheduled first. Both methods should execute at 50s, but for some reason "finish" ends up ahead in the scheduler. My suggestion is to set the finish-time at 50.1s. Good luck! Mats Folke El hadi Cherkaoui wrote: >

[ns] problem with wireless multihop routing

2009-05-25 Thread Vishal Agarwal
Hello all, I am trying to simulate a wireless multihop scenario but facing some problem in setting the routing table. My topology contains 2 nodes at source,relay and destination, now what i want is that both the source nodes sent the data to both the relay nodes and as soon as relay nodes gets t

Re: [ns] timer on tcl

2009-05-25 Thread Vincent Chimaobi Emeakaroha
Hi how do you mean that the simulation doesn't take 50s? Bear in mind that simulation time ist not equal to clock time!! So you don't expect your simulation to last exactly 50s clock time. This is actually the essence of simulation. greetings Vincent. El hadi Cherkaoui wrote: > hi all, > > i w

Re: [ns] A problem about the length of a queue

2009-05-25 Thread Teerawat Issariyakul
Well, what you can do is to write a function, say lengthb()) in class PacketQueue (there is a variable pq_ of class Queue). In this function, determine the number of bytes of each packet from head_ to tail_ of a PacketQueue object and returns the total number of bytes. I posted how to determine

[ns] timer on tcl

2009-05-25 Thread El hadi Cherkaoui
hi all, i want ot creat a timer on tcl set ns [new Simulator] set bw bw2.dat set f [open $bw w] proc timer {} {     global ns f   set time 10      set now [$ns now]     set cost [expr floor( rand() * 40) + 20]   ;# exemple   puts $f "$now : $cost"   $ns at [expr $now+$time] "timer"        

[ns] TCP behaviour ....on Reconnection

2009-05-25 Thread LiViAn ZaH
Hello I m facing a problem : I want to know .suppose TCP suffers disconnection, . after reconnection which function will be called first ? I want to keep the previous Congestion window(before disconnection) after reconnection ...(to prevent slow star)t to implement that ..

Re: [ns] Re : Steps to install eurane??

2009-05-25 Thread Mats Folke
Hi! It seems as if (my French is a bit rusty...) you do not have the right permissions to install ns in the directory /usr/local/bin. This is not related to ns but an OS issue. Try to change the installation directory ( ./configure --help ) to a directory where you have write permission. Good