[ns] Help!!

2009-03-13 Thread vap9999
After I run my tcl, it shows the following error, someone, please, give me a hint why that happened? Thanks so much! --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o107: no target for slot -1 _o107 type: Classifier/Hash/Dest content dump: classifier _o107

[ns] help! Why show me the error info ?

2009-02-23 Thread vap9999
Here is my piece of code: if { ( [info exist flowEF_$link] && $flowEF_$link != "" ) || ( [info exists flowBE_$link] && $flowBE_$link != "" )} { ..} The error info is following : ns: flowstats E1C1: syntax error in expression " ( [info exist flowEF_$link] && $flowEF_$link != ""

[ns] monitor flow problem?

2009-02-18 Thread vap9999
I wrote a tcl script to monitor individual flow, here is the code : set fmon [$ns makeflowmon Fid] set ecLink [$ns link $e1 $core] $ns attach-fmon $ecLink $fmon set fclassifier [$fmon classifier] set flow1 [$fclassifier lookup auto 0 0 10] set parr [$flow1 set parrivals_] puts "flow: $parr"