Eduardo J. Ortega wrote:
> 
> how do you add new queue management algorithms to NS? say, if i want to 
> implement a variant of RED, where should i add what code? Is there any 
> documentation about this? Thanks.
> 

Eduardo,
The documentation on queues is found in Chapter 7 of the ns manual:
http://www.isi.edu/nsnam/ns/ns-documentation.html

You can find the relevant code in the directory ns-2/queue/.  Most queue 
code is written in C++.  You can find already a couple of variants of 
RED there.  If you want to add a new variant, you can either directly 
alter the existing RED code or else clone or derive from the existing 
RED queue classes.

An extensive test suite that uses RED can be found in the file:
tcl/test/test-suite-adaptive-red.tcl or
tcl/test/test-suite-red.tcl


Hope this helps,
Tom

Reply via email to