Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Mar 2009 09:21:30 +0100
From:      =?ISO-8859-1?Q?Morgan_Wesstr=F6m?= <freebsd-pf@pp.dyndns.biz>
Cc:        freebsd-pf@freebsd.org
Subject:   Re: more tests - pf + altq + cbq(borrow) not borrowing from parent -  all LAN
Message-ID:  <49C3520A.9050500@pp.dyndns.biz>
In-Reply-To: <4857.216.241.167.208.1237522051.squirrel@webmail.pknet.net>
References:  <4857.216.241.167.208.1237522051.squirrel@webmail.pknet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49C3520A.9050500>