imagine there are 8 TCP and 8 TFRC sources sharing the same bottleneck  
(RED queue).

i would like to draw the average red queue _per_ flow (not aggregate).

i have used similar to the following tcl script in my simulation  
script, but it only traces the aggregate (8 tcp + 8 tfrc) average red  
queue plot. i tried printing directly from the source (printing  
"new_ave" variable in red.cc), but it did same.

<code>
set redq [[$ns link $node_(r1) $node_(r2)] queue]
set tchan_ [open red_q.tr w]
$redq trace curq_;      # you need to change "int" to "TracedInt" in
red.h
$redq trace ave_;       # you need to change "double" to "TracedDouble"
in  
red.h
$redq attach $tchan_
</code>

any help would be appreciated.

thanks,
soo-hyun

Reply via email to