Hi Stef, lo all, Am hoping someone could have the time to look at my simple script, it basically tries to restrict users based on their ip, but I also incorporated the hints given by Stef on being able to allow local traffic unrestricted. no iptable marking (fw filter) is used, just tc. I see traffic passing thru all the classes when ever those systems are in use. Ave done some stress test on the local traffic by plugging p2p/web crawlers on the LAN of one of the systems, each time i notice that the parent ceil limit is being broken. I have met the one major requirement, sum of child classes rate <= parent rate. I dont know what else i might be doing wrong, once placed perturb to 1, and internally(kernel) am using PSCHED_CPU and a sfq buffer length of 15 as against 128. (notes on docum.org) to try and increase speed. (Processor has TSC flag) Would be much obliged on any comments/improvements i can make on the script. Using kernel 2.4.22 TIA K _________________________________________________________________ MSN Shopping upgraded for the holidays! Snappier product search... http://shopping.msn.com
On Sunday 09 November 2003 07:26, Chijioke Kalu wrote:> Hi Stef, lo all, > > Am hoping someone could have the time to look at my simple script, it > basically tries to restrict users based on their ip, but I also > incorporated the hints given by Stef on being able to allow local traffic > unrestricted. no iptable marking (fw filter) is used, just tc. > > I see traffic passing thru all the classes when ever those systems are in > use. > > Ave done some stress test on the local traffic by plugging p2p/web crawlers > on the LAN of one of the systems, each time i notice that the parent ceil > limit is being broken. > > I have met the one major requirement, sum of child classes rate <= parent > rate. I dont know what else i might be doing wrong, once placed perturb to > 1, and internally(kernel) am using PSCHED_CPU and a sfq buffer length of 15 > as against 128. (notes on docum.org) to try and increase speed. (Processor > has TSC flag) > > Would be much obliged on any comments/improvements i can make on the > script.You attach class 1:2 and 1:3 to the root qdisc. It''s better to add 1 class to the root qdisc and attach all other classes to that class. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Thanks Stef, but then, what bandwidth should I place on the first class, 10mbit or 90Kbit? am re-writing the script to follow what you''ve just suggested, it will look like this... root (1:0) | class (1:2) (10mbit or 90Kbit or nothing ?) / \ class (1:3) class (1:4) (LAN Traffic) (10Mbit) (90Kbit) (Internet Traffic) | | ------------------------- ----------------------- | | | 1:10 1:11 - 1:31 1:50 (high prio icmp,ack) (sys01 ... sys20) (default) 1. Is this what you''re asking? 2. Is there any other improvements I can make on the script to make it efficient? Thanks K _________________________________________________________________ Frustrated with dial-up? Get high-speed for as low as $26.95. https://broadband.msn.com (Prices may vary by service area.) _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Monday 10 November 2003 19:46, Chijioke Kalu wrote:> Thanks Stef, > > but then, what bandwidth should I place on the first class, 10mbit or > 90Kbit?10 mbit.> am re-writing the script to follow what you''ve just suggested, it will look > like this... > > root > (1:0) > > class > (1:2) (10mbit or 90Kbit or nothing ?) > / > \ > class (1:3) > class (1:4) > (LAN Traffic) (10Mbit) (90Kbit) > (Internet Traffic) > > > > > > ------------------------- ----------------------- > > > 1:10 > 1:11 - 1:31 1:50 > (high prio > icmp,ack) (sys01 ... sys20) (default) > > > 1. Is this what you''re asking?Yep.> 2. Is there any other improvements I can make on the script to make it > efficient?I think the script is fine. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/