From: Kajetan Staszkiewicz Date: Mon, 02 Jan 2006 17:01:37 +0000 Subject: Re: [LARTC] TC in Wireless Environment Message-Id: <200601021801.37454.kajtek@biezanow.net> List-Id: References: <008701c60b32$4e4b5cf0$6a01a8c0@AZIM> In-Reply-To: <008701c60b32$4e4b5cf0$6a01a8c0@AZIM> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Dnia =B6roda, 28 grudnia 2005 17:10, napisa=B3e(a)=B6:=20 > Thank you so much for your reply. Its my mistake - I should have made it a > bit more transparent. But yes, you got me right on that. > > I will try to discuss 2 probable scenarios - > > 1. Ingress - suppose I have a ingress policer, which allows data to enter > system at 2 Mbps. I should be able to set it to 1Mbps or increase to 3Mbps > depending on my wireless network conditions. Wireless links are dynamic a= nd > error rate is high. Hence I want to set the policer to these values, > without losing any packets and without disturbing the queuing discipline. > > 2. Egress - I use a token bucket to shape out going traffic. Similarly, > here also, I should be able to dynamically set the out going rate, without > reloading all the queue parameters. > > I want to control this on multiple interfaces. But initially, it would be > good to try such a thing on only one interface. > > I would like to know, if such a provision is available in TC. So it is only settings for one machine? Deleting and adding just a few rule= s=20 should not be such a big problem. In my case adding new rules takes about 3= 0=20 seconds (hundreds of rules for each user in the network), so as I mentioned= I=20 use `tc class change`. It works just like `tc class add`: (from a perl script) `$TC class change dev $ifname parent 1:6667 classid 1:$klasa htb rate 5kbit= =20 ceil $ceildown quantum 2000 burst 10kbit`; `$TC class change dev imq$imqname parent 1:6667 classid 1:$klasa htb rate=20 5kbit ceil $ceilup quantum 2000 burst 10kbit`; It changes properties of specified class without deleting all clases on dev= ice=20 (like `tc qdisc del dev eth0.11 root` does). --=20 | pozdrawiam / greetings | powered by Trustix, Gentoo and FreeBSD | | Kajetan Staszkiewicz | JID: vegeta@chrome.pl | | Vegeta | IMQ devnames: http://tuxpowered.net | `------------------------^----------------------------------------' _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc