A problem with NS2 network simulation:
I want to change parameters of a RED queue during the simulation but it seems that some parameters can be modified only before starting the simulation, not dynamically, while the simulation is in progress. For example the following subroutines works before "$ns run" command but it do not affect the behavior of the queue during the simulation( I want to change maxthresh_ and thresh_ after "$ns run" command):
PHP Code:
proc setREDParameters { redQueue MINth MAXth PER_MaxP Wq } {
$redQueue set thresh_ $MINth
$redQueue set maxthresh_ $MAXth
$redQueue set q_weight_ $Wq
$redQueue set linterm_ $PER_MaxP
return $redQueue
}
Who knows what I should do ?
Email:
raeisy@shirazu.ac.ir