ALTQ/pf troubles

Max Laier max at love2party.net
Fri Oct 1 12:01:45 PDT 2004


On Friday 01 October 2004 15:55, Alexander S. Usov wrote:
> On Friday 01 October 2004 15:28, Brian Fundakowski Feldman wrote:
> > On Mon, Sep 27, 2004 at 10:40:00PM +0200, Alexander S. Usov wrote:
> > > Hello !!
> > > Just enabling the queueing on the interface with bandwidth == DSL
> > > bandwidth results in the appox. factor of 2 drop in the speed of the
> > > outgoing transfers.
> > >
> > > >From my experiments I got an impression that to make this slow-down
> > >
> > > away I have to specify the bandwith around 700Kb, which is twice bigger
> > > than real.
> >
> > Are you telling ALTQ to process _incoming_ packets?
>
> According to the pf manuals it should process only outgoing packets.
> And I believe it's the case as the incoming rate doesn't depends on
> queieing state.
>
> Just did an experiment adding only this 2 lines:
> ===
> altq on $ext priq bandwidth 350Kb queue {q}
> queue q priority 1 priq(default)
> ===
> and no queue statements in the filtering rules.
>
> If I understand the logick of the pf right, it means to create an outbound
> queue on $ext with bandwith 350Kb and put all outgoing traffic into it (due
> to the (default) statement).
>
> This results in the outgoing transfer speed of appox. 18KB/s, and incoming
> is unaffected and is approx. 117KB/s.
>
> Increasing bandwith in the altq rule to 700Kb, results in the upload speed
> of approx. 30-34 KB/s.

Hmmm ... you realize that ALTQ takes *BIT* per second?

> Is it a good idea to check the behavior of the ruleset with OpenBSD?

First of all a look at your queue statistics would be helpful:
 $ pfctl -vvsq
how many packets are being dropped? Which queues do the packets end up in?

If you can easily check OpenBSD behavior, that'd be a good check as well.

-- 
/"\  Best regards,                      | mlaier at freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier at EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20041001/058a7475/attachment.bin


More information about the freebsd-current mailing list