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

[altq 485] Re: Something wrong with my CBQ configuration file ?




Aries Wang wrote:
>     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?

Use altqstat to monitor the internal state.
See section 2.7 in altq-2.2/docs/TIPS.txt for how to interpret the
output. 

>     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.

It seems to be the same phenomenon.

-Kenjiro