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

[ns] Date: Wed, 17 Jan 2001 11:50:50 -0000



Hi,
I have a code to create a link with CBQ and it works, with a topclass =
and in this topclass I insert my CBQ classes..
Now, I want to have another class, a special one that doesn't borrow its =
bandwidth to the other CBQ classes. Just like a rate limter, one rate =
limiter having CBQ classes, and another rate limiter with this special =
class only.
For this purpose, I created another topclass with this special class =
inside. In these topclasses the borrowing parameters are false, so they =
shouldn't borrow bandwidth between each other. When I run the =
simulation, I realize that there is borrowing between them. I am sending =
the piece of code below.
Does anyone knows why this borrowing is happening, and how to solve it?
Thnks in advance
Susana

  $self simplex-link $n0 $n1 $bw $delay CBQ/WRR
  $self simplex-link $n1 $n0 $bw $delay DropTail        
  set cbqlink [$self link $n0 $n1]
  set topclass1 [new CBQClass]
  $topclass1 setparams none 0 0.9 auto 1 2 0
  $cbqlink insert $topclass1
set weight(0) 0.45
set weight(1) 0.45
for {set i 0} {$i < 2} {incr i} {
       set classi($i) [new CBQClass]
       set queue($i) [new Queue/DropTail]
       $classi($i) install-queue $queue($i)
       $classi($i) setparams $topclass1 true $weight($i) auto 1 1 0
       $cbqlink insert $classi($i)
       set a1 [expr $i*2]
       set a2 [expr ($i+1)*2-1]=20
       $cbqlink bind $classi($i) $a1 $a2
  } 
  set topclass2 [new CBQClass]
  $topclass2 setparams none 0 0.1 auto 1 2 0
  $cbqlink insert $topclass2
  set class2 [new CBQClass]
  set queue2 [new Queue/DropTail]
  $class2 install-queue $queue2
  $class2 setparams $topclass2 false 1 auto 1 1 0
  $cbqlink insert $class2
  set a1 [expr 2*2]
  set a2 [expr 2*4]=20
  $cbqlink bind $class2 $a1 $a2