[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
automaxidle in CBQ
Hi all,
i have a problem using the insert method with cbq links; here's a sample
of my script:
29 set n1 [$ns node]
30 set n2 [$ns node]
31
32
33
34
35 $ns simplex-link $n1 $n2 1Mb 100ms CBQ
36 set cbqlink [$ns link $n1 $n2]
37
38
39
40
41
42
43 set topClass [new CBQClass]
44 set lowerClass1 [new CBQClass]
45 set lowerClass2 [new CBQClass]
46
47
48 $topClass setparams none 0 0.98 auto 8 2 0
49 $lowerClass1 set params $topClass true 0.35 auto 1 1 150ms;
50 $lowerClass2 set params $topClass true 0.55 auto 2 1 250ms
51
52
53
54 set q1 [new Queue/DropTail]
55 $q1 set limit_ 20
56 set q2 [new Queue/DropTail]
57 $q2 set limit_ 30
58
59 $lowerClass1 install-queue $q1
60 $lowerClass2 install-queue $q2
61
62 $cbqlink insert $topClass
63 $cbqlink insert $lowerClass1
64 $cbqlink insert $lowerClass2
Now when i try to run the script i get the error message:
can't read "maxidle_": no such variable
while executing
"if { $maxidle_ == "auto" } {
$cbqcl automaxidle [$link_ set bandwidth_] [$queue_ set maxpkt_]
set maxidle_ [$cbqcl set maxidle_]
}"
(procedure "_o16" line 38)
(CBQLink insert line 38)
invoked from within
"$cbqlink insert $lowerClass1"
(file "cbq00.tcl" line 63)
The peculiar thing thought is that the compiler is not complaining about
the insert at line 62 but at line 63. When i try to change the setting in
setparams to a numeric value instead of auto, i get the same complaint. Can
anybody tell me what i have been doing wrong, if i have?
thanks,
Tarik