LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-18-2010, 11:03 AM   #1
raeisy
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 ?
Email:raeisy@shirazu.ac.ir
 
Old 11-21-2010, 11:30 AM   #2
raeisy
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.
http://home.shirazu.ac.ir/~raeisy
 
  


Reply


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 12:10 AM
tora simulation does not come to an end in ns2.34 mq15 Linux - Software 3 10-01-2012 12:19 PM
ns2 Wireless simulation Help md_imranullah Programming 1 06-13-2012 02:19 AM
Acoustic simulation program or (sound wave simulation program) tarotint Linux - Software 2 02-24-2010 04:04 AM
Plz.. help me. Network Simulation(NS2)'s problems everfree General 0 06-16-2008 01:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:04 PM.

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