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

question about token bucket filter



Title: question about token bucket filter

Hi,

 In the token bucket example /tcl/ex/test-tbf.tcl, the tbf is used as:

set exp1 [new Application/Traffic/Exponential]
set a [new Agent/UDP]
$exp1 attach-agent $a
set tbf [new TBF]
$ns attach-tbf-agent $n0 $a $tbf

Topology: n0----------n2

i.e., The node 0 perform both traffic generation and tbf.

Right now, I wish to sperate them into node0 and node1, where
node0 perform traffic generate and node1 perform tbf.

Topology n0----n1-------n2

set exp1 [new Application/Traffic/Exponential]
set a [new Agent/UDP]
$exp1 attach-agent $a
$ns attach-agent $n0 $a
set aa [new Agent/UDP]
set tbf [new TBF]
$ns attach-tbf-agent $n1 $aa $tbf

With this way, the traffic shape is the same before n1 and after n1.
It seems that tbf applied in n1 is "transparent" to the traffic.

Your help is very appreciated.


Po-Yuen Cheng