Good morning.
I'd like to realize something as this:
***************
***************
*
agent2 * *
agent1 *
***************
***************
|
|
|
***************
|
* tbf1 *
|
***************
| _____________________
|
|
|
***************
* tbf2 *
***************
|
***************
* node *
***************
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 this
figure: ***************
***************
*
agent2 * *
agent1 *
***************
***************
|
|
| _____________________
|
|
|
***************
* tbf2 *
***************
|
***************
* node *
*************** Why? And how can I
do? |