Subject: ALTQ for controlling upload bandwidth (ADSL)?
To: None <netbsd-users@netbsd.org>
From: Amadeus Stevenson <amadeus.stevenson@gmail.com>
List: netbsd-users
Date: 01/16/2005 22:28:27
Hello all,
I have an adsl connection (468k up/4192k down) and I am getting bad
bottlenecks on the uploads for a lan which is slowing down the
internet connection.
What I'd like to do is give priority for certain services (http/smtp
etc.) to use what they need for uploading (ie 70%) then for everything
not specified use the remaining 30%. Hopefully this will eliminate the
bottlenecks (p2p). Downloads are not a problem.
I tried:
class cbq rtk0 root_class NULL priority 0 pbandwidth 100
class cbq rtk0 download root_class borrow pbandwidth 90 default
filter rtk0 download 192.168.0.0 netmask 0xffffff00 0 0 0 0
class cbq rtk0 upload root_class borrow pbandwidth 9
filter rtk0 upload 0 0 192.168.0.0 netmask 0xffffff00 0 0
but on consulation with altqstat nothing is using the upload class.
I read that altq only work for outgoing traffic - is there no way to
do what I would like to do?
I can reduce bottlenecks by blocking all p2p traffic; but
unfortunately this means blocking ftp traffic as well.
I'm using netbsd 2.0 with kernel options: ALTQ and ALTQ_CBQ. On starting altqd:
Jan 16 22:17:15 GATEWAY altqd[1831]: warning: filter for "upload" at
line 10 could override filter for "download" at line 8
Jan 16 22:17:15 GATEWAY altqd[1831]: cbq enabled on interface rtk0 (mtu:1500)
Thanks in advance for any advice,
Amadeus