hi everyone I am trying to run the BLUE AQM algorithm in ns-2 using Sunil thulasidasan's implementation. I followed the instructions but i am getting the following error: invalid command name "Queue/Blue" while executing "Queue/Blue set drop_front_false Can anyone help me on this please? The instruction given for implementing Blue are: Copy the following files into the c++ directory blue.h blue.cc fairblue.h fairblue.cc Add the following lines in ip.h (inside the struct hdr_ip declaration) int pmark_; //Marker for unresponsive flows - used //by Fairness algos like Fair Blue Add the following lines in ip.h where the member access functions are defined int& pmark() { return (pmark_);
Add the following lines to ns-default.tcl Queue/Blue set drop_front_ false Queue/Blue set bytes 0 Queue/Blue set setbit true ;#ECN support turned on by default Queue/Blue set decrement 0.00025 Queue/Blue set increment 0.0025 Queue/Blue set dhold-time 100ms Queue/Blue set ihold-time 100ms Queue/Blue set dalgorithm 0 Queue/Blue set ialgorithm 0 Queue/Blue set pmark 1 Queue/Blue set pktsize 1000 #For SFB (Stochastic Fair Blue) Queue/SFB set drop_front_ false Queue/SFB set bytes 0 Queue/SFB set setbit true ;#ECN support turned on by default Queue/SFB set decrement 0.001 Queue/SFB set increment 0.005 Queue/SFB set hold-time 100ms Queue/SFB set algorithm 0 Queue/SFB set pbox-time 50ms Queue/SFB set pktsize 1000 Queue/SFB set hinterval 20s ;#hash interval switching duration Add the following lines into ns-lib.tcl in the simple-link{} procedure (look for Simulator instproc simple-link{...} ) #For Blue if {$qtype == "Blue"} { $q link [$link_($sid:$did) set link_] } #For SFB if {$qtype == "SFB"} { $q link [$link_($sid:$did) set link_] } Add changes to makefile Copy test-blue.tcl, test-sfb.tcl (these are the test scripts) into tcl/test --------------------------------- Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.