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

Re: [ns] tbf for the intermediate nodes?



You can add to link node2 to node 3 as follows:

        set tbf [new TBF]
        set link [$ns link $node2 $node3]
        $link add-to-head $tbf

Now, you can use $tbf to set any parameter also.

Rajan

wei sun wrote:

> Hi,
>
> I'm trying to figure out how to use TBF on the intermediate nodes. Say we
> have the topology as follows:
>
>         node 1 -----> node2 -----> node3
>
> node 1 is the traffic source, node 3 is the destination, while node 2 is
> an intermediate node. I understand we can add TBF to node 1, the source.
> But is there any way to use it at node 2? Or I have to write the code my
> self? Anybody has done this before?
>
> Thank you very much!! (I'm not on the mailing list currently, please reply
> directly to my address.)
>
> Wei