From: "Azim Samjani" Date: Tue, 03 Jan 2006 15:43:15 +0000 Subject: RE: [LARTC] TC in Wireless Environment Message-Id: <006301c6107c$6983eb00$6a01a8c0@AZIM> 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 Thanks very much. This is what I needed. Really appreciate your efforts! Azim.=20 -----Original Message----- From: lartc-bounces@mailman.ds9a.nl [mailto:lartc-bounces@mailman.ds9a.nl] On Behalf Of Kajetan Staszkiewicz Sent: Monday, January 02, 2006 12:02 PM To: lartc@mailman.ds9a.nl Subject: Re: [LARTC] TC in Wireless Environment 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=20 > 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=20 > enter system at 2 Mbps. I should be able to set it to 1Mbps or=20 > increase to 3Mbps depending on my wireless network conditions.=20 > Wireless links are dynamic and error rate is high. Hence I want to set=20 > 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.=20 > Similarly, here also, I should be able to dynamically set the out=20 > going rate, without reloading all the queue parameters. > > I want to control this on multiple interfaces. But initially, it would=20 > 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 rules should not be such a big problem. In my case adding new rules takes about 30 seconds (hundreds of rules for each user in the network), so as I mentioned I 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 ceil $ceildown quantum 2000 burst 10kbit`; `$TC class change dev imq$imqname parent 1:6667 classid 1:$klasa htb rate 5kbit ceil $ceilup quantum 2000 burst 10kbit`; It changes properties of specified class without deleting all clases on device (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 _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc