From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Brian J. Murrell" Date: Sat, 03 Dec 2005 23:14:44 +0000 Subject: Re: [LARTC] HTB - prio and rate Message-Id: <1133651687.25718.19.camel@pc.local> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0652434951==" List-Id: References: In-Reply-To: To: lartc@vger.kernel.org --===============0652434951== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-V7Q5bi8QNeWlhIOa+YKJ" --=-V7Q5bi8QNeWlhIOa+YKJ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I really don't seem to be getting this. ~sigh~ As I wrote before I'm not interested in dividing bandwidth up, just prioritizing the use of the full bandwidth by all-comers. So I figure I want a TBF in my root class to prevent the queue in my DSL modem from filling up. I have about 128kb/s upstream so I added: # tc qdisc add dev ppp0 root handle 1: tbf rate 120kbit latency 50ms burst = 1540 (not sure what values I want for latency and burst) Then I figure I want a PRIO classifier with 3 bands. I want anything not otherwise matching a filter to go in band 2, known bulk to go in band 3 and priority, latency sensitive "interactive" stuff (i.e. ssh, not scp) to go in band 1: # tc qdisc add dev ppp0 parent 1: handle 10: prio And then only because some examples showed using it, I put an SFQ in each band. Do I really need this? Should I not do this step? # tc qdisc add dev ppp0 parent 10:1 handle 100: sfq # tc qdisc add dev ppp0 parent 10:2 handle 200: sfq # tc qdisc add dev ppp0 parent 10:3 handle 300: sfq Now I want to use iptables to put stuff into the different bands. Again, by example I have been trying to do some iptables rules with -j CLASSIFY --set-class (this one to get ping to be processed in the highest priority band to test the effectiveness of "interactive traffic): # iptables -t mangle -I POSTROUTING -p icmp --icmp-type echo-request -j CLA= SSIFY --set-class 10:100 I'm not sure what the class numbers I should be using. Would they be 10:100, 10:200 and 10:300 for the 3 bands? or 10:1, 10:2 and 10:3? Thanx, b. --=20 My other computer is your Microsoft Windows server. Brian J. Murrell --=-V7Q5bi8QNeWlhIOa+YKJ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDkibkl3EQlGLyuXARAmwuAKCG/HO6Lxz++DsIqGui7F9V9caqsACgwA6B o1JIZWvafHy2ekUY2gtW/Mw= =x03H -----END PGP SIGNATURE----- --=-V7Q5bi8QNeWlhIOa+YKJ-- --===============0652434951== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============0652434951==--