Hi, Have a look into the ~/ns-2.x/queue directory. You'll find all sorts of implementations for different active queues. This include RED, RIO, PRIO, JOBS, etc.
Implementing a new queue is rather easy actually, you'll have to inherit from Queue and implement the enque() and deque() methods. This is really it! Don't forget to add you source code to NS's makefile to get it compiled. Regards, Ilyes Gouta. On 4/29/06, Eduardo J. Ortega <[EMAIL PROTECTED]> wrote: > > hey there: > > anyone knows how to code new queue algorithms into NS? (for example, choke)? > Thanks. > > -- > Eduardo J. Ortega - Linux user #222873 > "No fake - I'm a big fan of konqueror, and I use it for everything." -- Linus > Torvalds > >