Hi Jaya,
It's hard to explain the concept of the timer without knowing what event scheduler is, and how it works. But I am going to give you quick answer. Timer is used when you want to delay something. An example is TCP retransmission timer, which will trigger TCP to retransmit the packet after a given delay. Timer has interfaces to set (schedule), reset (reschedule), and cancel. I will blog about the event scheduler soon at my blog www.ns2ultimate.com (The current blog topic is routing modules and classifiers) Anyway if you are in hurry you can have a look at chapters 4 and 12 in the following books. T. Issaraiyakul and E. Hossain, Introduction to Network Simulator NS2, Springer 2009. Here is the link http://www.amazon.com/gp/product/0387717595?ie=UTF8&tag=ns2ultteeiss-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0387717595 You may also find lecture notes and other resource at the following website: http://www.ece.ubc.ca/~teerawat/NS2.htm Best Regards, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat n 3/28/2010, "jaya vignesh" <[email protected]> wrote: > > > >Hi, >I would like to know the functioning of timer handler functions like resched >and handle?? What is use of these? >Also, in my routing code, when i attach any traffic to my node like [cbr(0) >start] in my tcl, automatically i should invoke a beaconing procedure >function, where that particular node for which the cbr traffic is attached >should send the beacon packet to find the satisfactory neighbor based on >beacon reply. >Any sample flow to explain how to obtain the node for which the cbr traffic is >attached.? >Thanks, >Jayavignesh >________________________________ >Your Mail works best with the New Yahoo Optimized IE8. Get it NOW!. > > > Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! > http://downloads.yahoo.com/in/internetexplorer/ >
