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

[altq 482] Something wrong with my CBQ configuration file ?



Hi:
 
    I tried to use altq-2.2 on FreeBSD 3.4-STABLE, the experimental environment is depicted
following:
 
        Host A --------- Gateway B ---------- Host B
                             (^vr2)           (^vr1)
                                                  ^CBQ
 
/etc/altq.conf:
 
interface vr2 bandwidth 10M cbq
class cbq vr2 root_class NULL priority 0 admission none pbandwidth 100
class cbq vr2 unres_class root_class  priority 3 pbandwidth 60 default
class cbq vr2 res_class root_class priority 6 pbandwidth 40 admission cntlload
interface vr1 bandwidth 10M cbq
class cbq vr1 root_class NULL priority 0 admission none pbandwidth 100
class cbq vr1 unres_class root_class  priority 3 pbandwidth 60 default
class cbq vr1 res_class root_class priority 6 pbandwidth 40 admission cntlload
 
    Run altqd, then, I run MGEN to generate 8Mbps traffic from Host-A to Host-B.
I used ttt to monitor the traffic on Host-B, and I saw that Host-B received 8Mbps(
not expected 2Mbps(=10M*60%)) !!  Is there any error in my altq.conf?
 
    Another phenomenon, if I commanded "kldload altq_cbq" rather than "altqd",
Host-B will receive 8Mbps traffic no matter the percentage is in altq.conf.
 
    Any suggestion or instruction will be much appreciated!
 
 
Cheers,
Aries Wang