Results 1 to 2 of 2
Dear friend,
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, ...
- 09-19-2010 #1Just Joined!
- Join Date
- Sep 2010
- Posts
- 2
Change queue parameters dynamically during the simulation under NS2 simulator!!!
Dear friend,
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 change the behavior of the queue during the simulation( I want to change maxthresh_ and thresh_ after $ns run command):
Who knows what I should do ?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 }
Email: raeisy at shirazu.ac.ir
- 11-21-2010 #2Just Joined!
- Join Date
- Sep 2010
- Posts
- 2
NS2 Initialize some parameters only at the begining of the simulation with "reset" subroutine in the RED.CC file. I have to add a simillar routine to this file to set the intermediate parameters. Use make utility to recompile NS2.
raeisy[at]shirazu.ac.ir


Reply With Quote