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

[altq 1546] Re: cbq or hfsc ?



does no one know any bits of answers for my question ?

--On jeudi 13 juin 2002 15:30 +0200 Mathieu Arnold <m@absolight.fr> wrote:

> Hi
> 
> My firewall is a freebsd 4.5 (4.6 some day if it exist).
> I use ipfw with dummynet to limit my customers, cute, but not very
> effective, I can't assign them a minimum bandwidth, only a max one.
> I try to assign a minimum bandwidth to my customers, but I can't get which
> way I have to use with altq. Shall I use cbq or hfsc ?
> After long readings, I believe the 2 examples below should give quite the
> same result (but I'm not sure)
> 
> interface fxp0 bandwdth 100M cbq
> class cbq fxp0 root NULL pbandwidth 100
> class cbq fxp0 ctl root pbandwidth 4 control
> class cbq fxp0 def root borrow pbandwidth 95 default
> 
> class cbq fxp0 pocket def borrow pbandwidth 4 red
>    filter fxp0 pocket 212.43.217.66 0 0 0 0
>    filter fxp0 pocket 0 0 212.43.217.66 0 0
> 
> class cbq fxp0 paniak def borrow pbandwidth 2 red
>    filter fxp0 pocket 212.43.217.84 netmask 0xfffffff7 0 0 0 0
>    filter fxp0 pocket 0 0 212.43.217.84 netmask 0xfffffff7 0 0
> 
> and :
> 
> interface fxp0 bandwidth 100M hfsc 
> 
> class hfsc fxp0 def root pshare 50 default
> 
> class hfsc fxp0 pocket root grate 4M
>     filter fxp0 pocket 212.43.217.66 0 0 0 0
>     filter fxp0 pocket 0 0 212.43.217.66 0 0
> class hfsc fxp0 paniak root grate 2M
>     filter fxp0 pocket 212.43.217.84 netmask 0xfffffff7 0 0 0 0
>     filter fxp0 pocket 0 0 212.43.217.84 netmask 0xfffffff7 0 0
> 
> I can't get to know which one will work the way I want, this being :
> give at least 4Mo to pocket and at least 2Mo to paniak.
> 
> if someone could enlighten me, I'd really appreciate, because after
> reading all the man and txt docs, I can't fix my mind on a way or the
> other.

-- 
Mathieu  Arnold   \   Responsable R & D
a b s o l i g h t  \   www.absolight.fr
40, rue des Blancs Manteaux 75004 Paris
tel 01.48.92.77.73 / fax 01.48.53.11.09