Could you  explore one thing regarding NS2? The thing is, how  you will explain 
the EVENT (::expire(e)) when you think it in microprocessors 
instruction-pointer level?

Is putting an event after certain amount of delay is setting an interrupt after 
certain amount of delay? And the instruction pointer jumps to the ::expire (*e) 
routine. pls discuss.



--- On Sat, 3/6/10, Teerawat Issariyakul <teera...@ece.ubc.ca> wrote:

> From: Teerawat Issariyakul <teera...@ece.ubc.ca>
> Subject: Re: [ns] Implementing a new protocol in NS2
> To: deeptisabnani.i...@pec.edu.in, ns-users@ISI.EDU
> Date: Saturday, March 6, 2010, 9:24 AM
>
>
> Hi,
>
> I don't mean to discourage you. But I think learning NS2
> within its
> scope is easy. But when you want to go beyond that, you've
> got a lot of
> work to do. If you really want to know NS2, here is the
> step that I
> would suggest you should learn.
>
> 1. Learn how NS2 pass packets from one object to another.
> The simplest
> one is from a Node to a SimpleLink.
> 2. Learn how to bind C++ and OTcl. This is a hard one. It
> will be easier
> when you understand the first step.
> 3. Learn the module you are interested in. Really, it's
> quite hard if
> you don't have the basic in NS2, and want to jump start to
> do your own
> work. It's like a baby trying to jump before learning how
> to crawl.
> 4. Modify, include, and build. This would be the final
> thing that you
> need to learn. In fact, this step is quite easy you can
> actually learn
> it first. You just have to change a few thing in the make
> file.
>
> If you are interested. Here is a book from springer:
>
> T. Issaraiyakul and E. Hossain, “Introduction to Network
> Simulator NS2”,
> Springer 2009.
>
> 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.ece.ubc.ca/~teerawat
> http://www.t-issariyakul.blogspot.com
>
> On 3/6/2010, "The Learner" <deeptisabnani.i...@pec.edu.in>
> wrote:
>
> >
> >
> >Hi all.
> >I am a newbie in NS2.
> >I need your help in guiding me as to how should I
> implement my own protocol
> >in Wireless sensor networks in NS2. How should I
> proceed ?
> >What is it that I need to know priori implementation of
> new protocol.
> >I know the scripting in tcl by reading the document -
> >http://www.isi.edu/nsnam/ns/tutorial/
> >but I am not clear with the C code it  uses to
> implement the new protocol in
> >NS2.
> >
> >Kindly guide me with the same asap.
> >
> >Thank You.
> >Regards,
> >The Learner...
> >--
> >View this message in context: 
> >http://old.nabble.com/Implementing-a-new-protocol-in-NS2-tp27803359p27803359.html
> >Sent from the ns-users mailing list archive at
> Nabble.com.
> >
>
>



      

Reply via email to