[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
About queue state snooping
Dear All,
I try to trace the queue data,i.e., just like "test-suite-red.tcl".
But my "all.q" is empty. Can you tell me why?
Great thanks.
---zhu
-----------------My tcl script is as follows ----------
proc createtestnet {} {
...
ns_duplex $r1 $r2 8Mb 0.001ms red
...
}
proc enable_tracequeue { } {
global r1 r2
set redq [[ns link $r1 $r2] queue]
set tchan_ [open all.q w]
$redq trace curq_
$redq trace ave_
$redq attach $tchan_
}
proc test_two_drops {} {
....
enable_tracequeue
ns at 1.0 "$ftp1 start"
....
}