[ns] Implementing queue management
tomh at tomh.org
Sun Apr 16 22:01:44 PDT 2006
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.
The documentation on queues is found in Chapter 7 of the ns manual:
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:
Hope this helps,
More information about the Ns-users