hi, there. #!/bin/sh tc qdisc del dev eth1 root tc qdisc add dev eth1 root handle 1: htb default 1 tc class add dev eth1 parent 1: classid 1:1 htb rate 32kbps tc qdisc add dev eth1 parent 1:1 handle 10: esfq This is my script to shape my download traffic on eth1 down to 32KB(ADSL=256kbit). How can I be sure the esfq disc is properly attached to the class? If I comment out the ESFQ line, I have quiet the same results of behaviour when I start downloading from different boxes on that lan attached to eth1. (2 boxes downloading are not having 50% each from the bandwitdth, and 3 boxes downloading neither have 33,3% of the available bandwidth) ESFQ is supposed to be "fair" ? or not? Something wrong on the script? If not how can I enhance my settings? Is there a way to see that ESFQ, SFQ is working? Thanks , Osgaldo _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Monday 26 May 2003 18:02, Osgaldo Suanzes wrote:> hi, there. > > #!/bin/sh > tc qdisc del dev eth1 root > tc qdisc add dev eth1 root handle 1: htb default 1 > tc class add dev eth1 parent 1: classid 1:1 htb rate 32kbps > tc qdisc add dev eth1 parent 1:1 handle 10: esfq > > This is my script to shape my download traffic on eth1 down to > 32KB(ADSL=256kbit). > How can I be sure the esfq disc is properly attached to the class? > If I comment out the ESFQ line, I have quiet the same results of > behaviour when I start downloading > from different boxes on that lan attached to eth1. (2 boxes downloading > are not having 50% each from the bandwitdth, > and 3 boxes downloading neither have 33,3% of the available bandwidth) > ESFQ is supposed to be "fair" ? or not?Yes. But it creates fairness between flows. And a flow is determined by ports and ip-addresses. I never tried esfq so I don''t know how it should behave.> Something wrong on the script? If not how can I enhance my > settings? > Is there a way to see that ESFQ, SFQ is working?Not that I know. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Mon, 26 May 2003 19:52:08 +0200 Stef Coene <stef.coene@docum.org> wrote: [ cut ] : Yes. But it creates fairness between flows. And a flow is determined by : ports and ip-addresses. : I never tried esfq so I don''t know how it should behave. I personally couldn''t achieve this. Maybe the authoer can help us? -- _____________________________________________________________ "Engineering does not require science. Science helps a lot but people built perfectly good brick walls long before they knew why cement works." -Alan Cox