Find the answer to your Linux question:
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, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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):
    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 at shirazu.ac.ir

  2. #2
    Just 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •