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

[ns] I'd like to know...



Good morning.
I'd like to realize something as the figure 1 ( you see the attachment, please ).
So I have written the the following code:

set agent1 [new Agent/UDP]
 
set tbf1 [new TBF]
$tbf set bucket_ ....
$tbf set rate_ ....
$tbf set qlen_ ....
 
set tbf2 [new TBF]
$tbf set bucket_ ....
$tbf set rate_ ....
$tbf set qlen_ ....
 
$ns attach-tbf-agent $node $agent1 $tbf2
 
$tbf1 target [$tbf2 target]
$tbf2 target $tbf1
 
set agent2 [new Agent/UDP]
 
$ns attach-tbf-agent $node $agent2 $tbf2
 
But what I get is something like figure 2.
Why? And how can I do?

doc1.doc