http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_beginners.html#_Toc128325750

5: The above, but modifying the NS2 simulator yourself.
When you are doing cutting edge research, that nobody did before, the only
solution is to model your own additions to NS2.
The first thing you should do is to locate a similar module that does
something that you want to do also. perhaps another ad-hoc routing protocol,
another QoS queue discipline, etc etc. Then you should clone the code, and
change ALL names of variables, TCL bindings (*), C++ classes, packet
headers, etc etc, to YOUR component name. When you do this you'll get a
working component that you can start to SLOWLY modify to make YOUR
algorithms and operations.

If you do this way, instead of simply start coding from scratch, you'll be
able to work with a working component, step by step, that you are able to
validate every day. The alternative way, you spend months, or even more,
before the component worked for the first time.

This tutorial http://masimum.dif.um.es/nsrt-howto/html/ and marc greis’s
tutorials, on the part of the ping agent
http://www.isi.edu/nsnam/ns/tutorial/nsnew.html#third are very helpful to
know which modifications are needed to integrate a new module in NS2:

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of net sim
> Sent: terça-feira, 7 de Março de 2006 6:58
> To: ns-users@ISI.EDU
> Subject: [ns] Creating an Identical Ad Hoc Routing
> 
> 
> Hi,
> I would to create another identical TORA ad hoc routing protocol in Ns-2.
> But i would like it to be renamed as MYTORA.
> Can i copy all the files in TORA to a new folder call MYTORA and change
> tora.c & tora.h to mytora.c & mytora.h , then edit the Makefile and some
> files inside ns-2.29/tcl/lib. Can list out all the steps involve? I am new
> to NS-2.
> 
> Or is there any other simple method to achieve it?
> 
> Please help. Thanks in advance.
> 
> Regards
> Neil Niu
> 
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today - it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


Reply via email to