From: Daniel Ortiz Date: Tue, 27 May 2003 09:11:37 +0000 Subject: [LARTC] Rate & Ceil MIME-Version: 1 Content-Type: multipart/mixed; boundary="m51xatjYGsM+13rf" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org --m51xatjYGsM+13rf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I have a little problem with tc. That's my cfg: =20 /*****************************************/ #!/bin/bash =20 DEV=3D"dev eth0" =20 tc qdisc del $DEV root =20 tc qdisc add $DEV root handle 1: htb default 1 =20 tc class add $DEV parent 1: classid 1:1 htb rate 100kbit ceil 100kbps =20 tc class add $DEV parent 1:1 classid 1:10 htb rate 40kbps ceil 100kbps =20 tc class add $DEV parent 1:1 classid 1:11 htb rate 30kbps ceil 100kbps =20 tc class add $DEV parent 1:1 classid 1:12 htb rate 30kbps ceil 100kbps =20 tc qdisc add $DEV parent 1:10 handle 10: sfq =20 tc qdisc add $DEV parent 1:11 handle 11: sfq =20 tc qdisc add $DEV parent 1:12 handle 12: sfq =20 tc filter add $DEV protocol ip parent 1:0 prio 1 handle 1 fw flowid 1:10 =20 tc filter add $DEV protocol ip parent 1:0 prio 3 handle 2 fw flowid 1:11 =20 tc filter add $DEV protocol ip parent 1:0 prio 1 handle 3 fw flowid 1:12 =20 iptables -A PREROUTING -t mangle -j MARK -p icmp --set-mark 1 =20 iptables -A OUTPUT -t mangle -j MARK -p icmp --set-mark 1 =20 iptables -A PREROUTING -t mangle -j MARK -p tcp --set-mark 2 =20 iptables -A OUTPUT -t mangle -j MARK -p tcp --set-mark 2 =20 iptables -A OUTPUT -t mangle -j MARK -p tcp --sport 22 --set-mark 3 =20 iptables -A PREROUTING -t mangle -j MARK -p tcp --sport 22 --set-mark 3 =20 /*************************************/ =20 All works correctly and the packets pass in his own class and filter, but an ftp connection (mark 2 --> 1:11 , 30kbps rate --> 100kbps ceil) only get 30kbps,=20 Why, if the bw is alvailable, don't get all the bw? =20 Thx. =20 --=20 BSD ownz me -- Daniel Ortiz d.ortiz@in.ilimit.es ILIMIT Comunicacions Departament Sistemes http://www.ilimit.es Tel: (+34) 93 733 33 75 Fax: (+34) 93 733 32 43 --m51xatjYGsM+13rf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+0yvJPprEQTARuLoRAqbLAKCyAw8PChvGS/ii81Qn+YskkIUeIwCdFs15 KpPDpdnm5VASjopynrcsAcc= =/2AX -----END PGP SIGNATURE----- --m51xatjYGsM+13rf-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/