more tests - pf + altq + cbq(borrow) not borrowing from parent - all LAN

Morgan Wesström freebsd-pf at pp.dyndns.biz
Fri Mar 20 01:21:34 PDT 2009


Peter wrote:
> The server was just updated to
>  7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #0: Thu Mar 19 20:00:29 MDT 2009
> 
> another test:
>   server <-> 100Mb switch <-> desktop
>   172.20.1.1 <-switch-> 172.20.1.2
>   ALL traffic stays on local lan.
> 
> altq on fxp0 cbq bandwidth 100Mb queue {extranet}
>    queue extranet bandwidth 886Kb {poshta}
>         queue poshta bandwidth 156Kb cbq(borrow,default)
> 
> I sftp from desktop to server, and do 'get blob.tgz'
> download to desktop from server goes at ~20KB
> 
> vi /etc/pf.conf
> 
> altq on fxp0 cbq bandwidth 100Mb queue {extranet}
>    queue extranet bandwidth 886Kb {poshta}
>         queue poshta bandwidth 856Kb cbq(borrow,default)
> 
> /sbin/pfctl -nf /etc/pf.conf && /sbin/pfctl -f /etc/pf.conf
> 
> I sftp from desktop to server, and do 'get blob.tgz'
> download to desktop from server goes at ~100KB
> 
> this is all local file system from /tmp/blob.tgz to /tmp/blob.tgz
> 
> Going to try this tomorrow with 'server' being -CURRENT/latest snapshot.
> 
> ]Peter[
> 

You are missing "cbq" in your extranet queue definition... don't know
how that would affect the behaviour though. Check with pfctl -sq if pf's
interpretation of the queue definitions is what you intended.

The default queue makes me curious too. Although the man page doesn't
give any restrictons to it (other than that there can only be one), I
have never seen any example where one of the child queues are used as
default queue. Might work perfectly... :-)

On a sidenote - although this is an internal LAN with 100Mb you probably
can't get that speed during full utilization. Depending on your NIC a
more reasonable value would be 80-90% of the linkspeed. This is probably
not related to your problem and would only be a potential problem when
your trying to use your full bandwidth.

Max: Would I be correct in assuming that the bandwidth value for a 100Mb
NIC should reflect its real throughput in the root queue definition and
not its linkspeed?


Regards
Morgan


More information about the freebsd-pf mailing list