[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RED parameters
Pedram Bagheri wrote:
>
> Hi
>
> I am running a simulation where I am using RED at the nodes. My quastion
> is:
> how is it posible to change the RED parameters(maxp, minth and maxth)i ns?
> I am going to keep maxp fixed(0.2) and let maxth=3*minth and vary minth
> from 5 to 100.
>
If you want to set parameters for all your RED queues, you
could set them at the beginning of your tcl file with:
Queue/RED set thresh_ "minth value"
Queue/RED set maxthresh_ "maxth value"
Queue/RED set linterm_ "1 / maxp value"
Max.
REF:
ns-default.tcl:
Queue/RED set thresh_ 5
Queue/RED set maxthresh_ 15
...
Queue/RED set linterm_ 10
red.cc:
bind("thresh_", &edp_.th_min); // minthresh
bind("maxthresh_", &edp_.th_max); // maxthresh
...
bind("linterm_", &edp_.max_p_inv);
red.h:
double th_min; /* minimum threshold of average queue size */
double th_max; /* maximum threshold of average queue size */
double max_p_inv; /* 1/max_p, for max_p = maximum prob. */