Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-18-2010, 12:03 PM   #1
LQ Newbie
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0
Unhappy 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 ?
Old 11-21-2010, 12:30 PM   #2
LQ Newbie
Registered: Sep 2010
Posts: 2

Original Poster
Rep: Reputation: 0
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
in NS2 DOS and DDoS Simulation +Comparison and Analysis of Xgraph hinatariq Linux - General 31 09-07-2015 01:10 AM
tora simulation does not come to an end in ns2.34 mq15 Linux - Software 3 10-01-2012 01:19 PM
ns2 Wireless simulation Help md_imranullah Programming 1 06-13-2012 03:19 AM
Acoustic simulation program or (sound wave simulation program) tarotint Linux - Software 2 02-24-2010 05:04 AM
Plz.. help me. Network Simulation(NS2)'s problems everfree General 0 06-16-2008 02:06 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration