LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NS2 network simulation problem:Change queue parameters dynamically during simulation (https://www.linuxquestions.org/questions/linux-networking-3/ns2-network-simulation-problem-change-queue-parameters-dynamically-during-simulation-833052/)

raeisy 09-18-2010 11:03 AM

NS2 network simulation problem:Change queue parameters dynamically during simulation
 
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

raeisy 11-21-2010 11:30 AM

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.
http://home.shirazu.ac.ir/~raeisy


All times are GMT -5. The time now is 01:58 PM.