[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Two TBFs in succession..



HI,
I am trying to put two TBFs in succession...

Will the following code work..??(The code is from test-tbf.tcl)

<..snip..>
set a [new Agent/UDP]

<.....Snip..>
set tbf [new TBF]
$tbf set bucket_ 1024
$tbf set rate_ 32000
$tbf set qlen_  100

$ns attach-tbf-agent $n0 $a $tbf

set tbf1 [new TBF]
$tbf1 set bucket_ 2048
$tbf1 set rate_ 32000
$tbf1 set qlen_  100

$ns attach-tbf-agent $n0 $a $tbf1

<.....Snip..>


Thanks,
Arni