Claus,

Great effort! 

Please, we need more volunteers for this effort, especially the users which
are just starting NS2 (as documenting NS2 is an excellent way to learn it!)

Regarding the agent creating, please check this info:

http://tagus.inesc-id.pt/~pestrela/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.


Regarding packet sending, I've updated this page with agent->send()
http://nsnam.isi.edu/nsnam/index.php/Sending_Packets



-----

Also 1: I'm planning to revamp the mark greis NS2 tutorial, by retesting,
and updating it. At first I'll do it in html; later I'll port it to the
wiki. If anyone wants to help, please step in.

Also 2: I've got a lot of useful info that should be ported to the wiki. 
Namely my debugging tutorials, 
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging2.html
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging3.html

and for instance this web page:
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_tips.html

Index:
How to modify existing procedures from the standard TCL library (/tcl/lib/)
without having to recompile NS2 at each step. 1
How to know values at run-time which are "easy" to store at configuration
time. 2
How to trigger procedures in other modules at run-time. 3
How to call oTCL code from C++ counterpart an illustrated example. 3
How to known which Agents are implemented in NS2 / which protocols are
implemented in NS2  5
What info options are available in otcl classes and objects?. 5
How to check the syntax of .tcl files. 7
How to get a trace of the oTcl procedures: 8
Which linux distro NOT to use: 8

And my beginners tips:
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_beginners.html



I'm severely time-limited at this very moment because my phd defense, but I
can help others porting it.

Pedro Estrela
http://tagus.inesc-id.pt/~pestrela/ns2





> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Claus Christmann
> Sent: quarta-feira, 21 de Novembro de 2007 21:26
> To: ns users
> Subject: [ns] HOW [EMAIL PROTECTED] - a new/custom (routing) agent - Who
> knowssomething?
> 
> 
> Hi List,
> 
> I have been trying to get my own routing algorithm working in ns2 for
> quite some time now and still haven't gotten as far as I hoped...
> 
> I received a lot of support from the ns-users list so far, but still
> need some more insight into ns2. In order to collect all that knowledge
> out there and to make it easier to find/read/change/update, I started a
> small effort on the ns2 wiki on
> 
> *How to Write Your Own Agent*
> http://nsnam.isi.edu/nsnam/index.php/Writing_an_Agent
> 
> *How to Send Packets*
> http://nsnam.isi.edu/nsnam/index.php/Sending_Packets
> 
> *The OSI layers and ns2*
> http://nsnam.isi.edu/nsnam/index.php/OSI_Reference_Model
> 
> PLEASE, if YOU have ever struggled on one of these issues or maybe even
> on the issue of writing your own _routing_agent_ , PLEASE go to the wiki
> and write your knowledge down. (Or email me, then I will write it down)
> 
> I am looking forward to tackle this big issue with the help off you all.
> 
> *THANK YOU*
> 
> Claus
> 
> --
> Claus Christmann
> Graduate Research Assistant
> 
> Georgia Institute of Technology
> 270 Ferst Drive
> Atlanta, GA 30332-0150
> 
> http://uav.ae.gatech.edu


Reply via email to