I have a LAN (eth1) and 1Mbit internet which is very unstable (from 100kbit - 2mbit) on eth0. I would like to prevent ip A downloading with 9 threads taking 90% bandwidth and ip B downloading with 1 thread taking 10%. I would like ip A as well as ip B to have each 50% of bandwith no care how many threads they are downloading. I suppose that it could be done on eth1. But how? Second problem: I want to lessen round-trips. Should I do it with priorizing small packets on eth0? How? I have 2.4.18, iproute2 with extra htb. PSCHED_JIFFIES (unfortunately - it''s only AMD 160MHz and does not have TSC) Thanks -- Vladimir Trebicky druid@mail.cz --- Odchozi zprava neobsahuje viry. Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz). Verze: 6.0.368 / Virová báze: 204 - datum vydání: 29.5.2002
Try WRR on eth1 see http://wipl-wrr.sourceforge.net/ for details or use ESFQ see mail from Alexander Atanasov 05.06.2002 I rename files gzip its and attach to this mail but don''t change anything patch kernel and tc cd iproute2 patch -p1 < ../esfq-tc.diff cd linux-2.4.18 patch -p1 < ../esfq-2.4.18.diff recompile kernel and tc thats all !! see README Note it give you equal division for a long term not at the moment Example: tc qdisc add dev eth1 root handle 1:0 esfq hash src It make equal priority for session based on ip address not tcp session like classic SFQ For detail see SFQ 05.06.2002 15:34:05, "Vladimir Trebicky" <druid@mail.cz> wrote:>I have a LAN (eth1) and 1Mbit internet which is very unstable (from >100kbit - 2mbit) on eth0. I would like to prevent ip A downloading with 9 >threads taking 90% bandwidth and ip B downloading with 1 thread taking 10%. >I would like ip A as well as ip B to have each 50% of bandwith no care how >many threads they are downloading. I suppose that it could be done on eth1. >But how? >Second problem: I want to lessen round-trips. Should I do it with priorizing >small packets on eth0? How? >I have 2.4.18, iproute2 with extra htb. PSCHED_JIFFIES (unfortunately - it''s >only AMD 160MHz and does not have TSC) > >Thanks > >-- >Vladimir Trebicky >druid@mail.cz > > >--- >Odchozi zprava neobsahuje viry. >Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz). >Verze: 6.0.368 / Virová báze: 204 - datum vydání: 29.5.2002 > >_______________________________________________ >LARTC mailing list / LARTC@mailman.ds9a.nl >http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >----------------------------------- mailto:alexey_talikov@texlab.com.uz BR Alexey Talikov FORTEK ----------------------------------- ------------bo3UKyM5wDT7sLKraEQAn7 Content-Disposition: attachment; filename="esfq.tar.gz" Content-Type: application/x-gzip; name="esfq.tar.gz" Content-Transfer-Encoding: Base64 H4sIACTz/TwCA+w8a3PbRpL+yq3a/zDxXnkJkqJI6mVTlmJJpixtZEk2qWRz joICgaGAFQhAeOixie+3X3fPABiAAC0ndm6vKixbJGZ6erp7+jUNDHg0u1kZ dNe7/eddy5nNnnyFT6/f622urz/piU/pe32wsbn1pLe1vrW11u9tbGwA/KC/ 1nvCek/+gE8SxUbI2JPQ9+NlcJ/q/3/6WVlZYa7jJfdSCVYdz3QTi69S42pw HeuRaXOra3f90LlqTBLO3hoPrL/OBmvDwcawv8YGvd7gr39pt9uPxFRCsrY+ 3NiSSF69Yiv9ja3OJmvjFyB/9eqvf2Hwb7XFxofvWMTN2PE91lql5jb3kjl8 /QL/G5ODPR1g9KO98ZF+cLI3Hh8fdBY6Xo8ni43j9wT5cRv+AOIoDhMzZrGp g3noN34QQyPMwRqJFzlXHrcaN4nhxcl8uwGE7T/EPGIBD1noJ57FDNf1TSPm Fot9NnP9OyKXeNtcJ962+p0twVpD15O1QaPhOnMn3m4gurfGvTM3XBYY5jWP I+Z47CbhIDNiOifBcm6dyA+JhCMjsplsYGVAJCEq4gaxTYFef0b0RWJIOx9i Az792vGsHPss8YTsgakk4mwGMxFzjsW92Jk5wHK2NChJsWyS8a01Yvx5v/Nc MM5a9KcxsTnzPfeBhdyIYDiijW0H2I4YnwFWh3vmQ4c5MbYEfhQ5U5eLsUCJ aRveFYcRHEgKjNCY85iHJDTTnweOC33OnHeBOxgg/h7P2IOfMI+LFQpc0MU7 J7bFvLeGm8ByIosclr9LU61mWvh+9LqghQsW5PF41Qlu1/HHzHGBGrgEMh0v 0k0/5F1TmNJh6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hi there! On Wed, 05 Jun 2002 16:19:41 +0500 "Alexey Talikov" <alexey_talikov@texlab.com.uz> wrote:> I rename files gzip its and attach to this mail but don''t change > anything patch kernel and tcI''ll put them somewhere on the web tonight and provide an url.> Note it give you equal division for a long term not at the moment > Example: > > tc qdisc add dev eth1 root handle 1:0 esfq hash src > > It make equal priority for session based on ip address not tcp session > like classic SFQ For detail see SFQNote that sfq is on egress and client IPs are destinations, not sources, so you should use dst hash to divide bandwidth between clients, if you use src hash you have equal priority on server flows not on clients ones: client A downloads from server X and from server Y, client B downloads from server Z - you have bandwidth devided to X:Y:Z, not A:B, since downloads are coming from X/Y/Z(source) to A/B(destination). -- have fun, alex P.S. Thank you for the feedback and trying it. :)
Thanks for your note about my error !! You right needed dst ip but I write src :(( 05.06.2002 16:53:29, Alexander Atanasov <alex@ssi.bg> wrote:> Hi there! > >On Wed, 05 Jun 2002 16:19:41 +0500 >"Alexey Talikov" <alexey_talikov@texlab.com.uz> wrote: > >> I rename files gzip its and attach to this mail but don''t change >> anything patch kernel and tc > > I''ll put them somewhere on the web tonight and provide an url. > >> Note it give you equal division for a long term not at the moment >> Example: >> >> tc qdisc add dev eth1 root handle 1:0 esfq hash src >> >> It make equal priority for session based on ip address not tcp session >> like classic SFQ For detail see SFQ > > Note that sfq is on egress and client IPs are destinations, not sources, >so you should use dst hash to divide bandwidth between clients, if you use src hash you have equalpriority on server flows not on clients ones: client A downloads from server X and from server Y, client B downloads from server Z - you have bandwidth devided to X:Y:Z, not A:B, since downloads are coming from X/Y/Z(source) to A/B(destination).> >-- >have fun, >alex >P.S. Thank you for the feedback and trying it. :) >----------------------------------- mailto:alexey_talikov@texlab.com.uz BR Alexey Talikov FORTEK -----------------------------------
use latest version iproute2-2.4.7-now-ss020116-try it work without problem (for me) esfq is more simple in configuration that wrr but in wrr more features for traffic control and its use another principle read more about WRR and also see doc in package wrr and see http://docum.org/. 05.06.2002 18:09:07, "Vladimir Trebicky" <druid@mail.cz> wrote:>That sound like something what I exactly need. > 1) what is the difference (adv & disadv) between esfq and wrr? > 2) little problem in attachment, I don''t know what to do. I tried latest >(that 2002-try) and latest stable version (ss010824). > > >> Try WRR on eth1 see http://wipl-wrr.sourceforge.net/ for details >> or use ESFQ >> see mail from Alexander Atanasov 05.06.2002 >> I rename files gzip its and attach to this mail but don''t change anything >> patch kernel and tc >> cd iproute2 >> patch -p1 < ../esfq-tc.diff >> cd linux-2.4.18 >> patch -p1 < ../esfq-2.4.18.diff >> recompile kernel and tc thats all !! >> see README >> Note it give you equal division for a long term not at the moment >> Example: >> >> tc qdisc add dev eth1 root handle 1:0 esfq hash src >> >> It make equal priority for session based on ip address not tcp session >like classic SFQ >> For detail see SFQ >> 05.06.2002 15:34:05, "Vladimir Trebicky" <druid@mail.cz> wrote: >> >> >I have a LAN (eth1) and 1Mbit internet which is very unstable (from >> >100kbit - 2mbit) on eth0. I would like to prevent ip A downloading with 9 >> >threads taking 90% bandwidth and ip B downloading with 1 thread taking >10%. >> >I would like ip A as well as ip B to have each 50% of bandwith no care >how >> >many threads they are downloading. I suppose that it could be done on >eth1. >> >But how? >> >Second problem: I want to lessen round-trips. Should I do it with >priorizing >> >small packets on eth0? How? >> >I have 2.4.18, iproute2 with extra htb. PSCHED_JIFFIES (unfortunately - >it''s >> >only AMD 160MHz and does not have TSC) >> > >> >Thanks >> > >> >-- >> >Vladimir Trebicky >> >druid@mail.cz >> > >> > >> >--- >> >Odchozi zprava neobsahuje viry. >> >Zkontrolov?no antivirov?m syst?mem AVG (http://www.grisoft.cz). >> >Verze: 6.0.368 / Virov? b?ze: 204 - datum vyd?n?: 29.5.2002 >> > >> >_______________________________________________ >> >LARTC mailing list / LARTC@mailman.ds9a.nl >> >http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >> > >> >> ----------------------------------- >> mailto:alexey_talikov@texlab.com.uz >> BR >> Alexey Talikov >> FORTEK >> ----------------------------------- >> > > >--- >Odchozi zprava neobsahuje viry. >Zkontrolov?no antivirov?m syst?mem AVG (http://www.grisoft.cz). >Verze: 6.0.368 / Virov? b?ze: 204 - datum vyd?n?: 29.5.2002 > >----------------------------------- mailto:alexey_talikov@texlab.com.uz BR Alexey Talikov FORTEK -----------------------------------
On Wed, 5 Jun 2002 15:09:07 +0200 "Vladimir Trebicky" <druid@mail.cz> wrote:> That sound like something what I exactly need. > 1) what is the difference (adv & disadv) between esfq and wrr? > 2) little problem in attachment, I don''t know what to do. I tried > latest > (that 2002-try) and latest stable version (ss010824). >You''re tring to build tc without kernel patch applied or with a different kernel source tree . Check is kernel patched and then check: iproute2/Makefile: KERNEL_INCLUDE=/usr/src/linux/include If your patched kernel is elsewhere change this to point there and then "make clean; make". -- have fun, alex
ESFQ !? Did I missed something ? :-) devik On Wed, 5 Jun 2002, Alexey Talikov wrote:> use latest version iproute2-2.4.7-now-ss020116-try > it work without problem (for me) > esfq is more simple in configuration that wrr > but in wrr more features for traffic control > and its use another principle > read more about WRR and also see doc in package wrr and > see http://docum.org/. > > 05.06.2002 18:09:07, "Vladimir Trebicky" <druid@mail.cz> wrote: > > >That sound like something what I exactly need. > > 1) what is the difference (adv & disadv) between esfq and wrr? > > 2) little problem in attachment, I don''t know what to do. I tried latest > >(that 2002-try) and latest stable version (ss010824). > > > > > >> Try WRR on eth1 see http://wipl-wrr.sourceforge.net/ for details > >> or use ESFQ > >> see mail from Alexander Atanasov 05.06.2002 > >> I rename files gzip its and attach to this mail but don''t change anything > >> patch kernel and tc > >> cd iproute2 > >> patch -p1 < ../esfq-tc.diff > >> cd linux-2.4.18 > >> patch -p1 < ../esfq-2.4.18.diff > >> recompile kernel and tc thats all !! > >> see README > >> Note it give you equal division for a long term not at the moment > >> Example: > >> > >> tc qdisc add dev eth1 root handle 1:0 esfq hash src > >> > >> It make equal priority for session based on ip address not tcp session > >like classic SFQ > >> For detail see SFQ > >> 05.06.2002 15:34:05, "Vladimir Trebicky" <druid@mail.cz> wrote: > >> > >> >I have a LAN (eth1) and 1Mbit internet which is very unstable (from > >> >100kbit - 2mbit) on eth0. I would like to prevent ip A downloading with 9 > >> >threads taking 90% bandwidth and ip B downloading with 1 thread taking > >10%. > >> >I would like ip A as well as ip B to have each 50% of bandwith no care > >how > >> >many threads they are downloading. I suppose that it could be done on > >eth1. > >> >But how? > >> >Second problem: I want to lessen round-trips. Should I do it with > >priorizing > >> >small packets on eth0? How? > >> >I have 2.4.18, iproute2 with extra htb. PSCHED_JIFFIES (unfortunately - > >it''s > >> >only AMD 160MHz and does not have TSC) > >> > > >> >Thanks > >> > > >> >-- > >> >Vladimir Trebicky > >> >druid@mail.cz > >> > > >> > > >> >--- > >> >Odchozi zprava neobsahuje viry. > >> >Zkontrolov?no antivirov?m syst?mem AVG (http://www.grisoft.cz). > >> >Verze: 6.0.368 / Virov? b?ze: 204 - datum vyd?n?: 29.5.2002 > >> > > >> >_______________________________________________ > >> >LARTC mailing list / LARTC@mailman.ds9a.nl > >> >http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > >> > > >> > >> ----------------------------------- > >> mailto:alexey_talikov@texlab.com.uz > >> BR > >> Alexey Talikov > >> FORTEK > >> ----------------------------------- > >> > > > > > >--- > >Odchozi zprava neobsahuje viry. > >Zkontrolov?no antivirov?m syst?mem AVG (http://www.grisoft.cz). > >Verze: 6.0.368 / Virov? b?ze: 204 - datum vyd?n?: 29.5.2002 > > > > > > ----------------------------------- > mailto:alexey_talikov@texlab.com.uz > BR > Alexey Talikov > FORTEK > ----------------------------------- > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > >
Sorry for my incompetence. I didn''t noticed that readme included in some of Alexes posts. Module works fine only if I do qdisc add dev eth1 root handle 1: esfq when I do qdisc add dev eth1 root handle 1: esfq hash dst the computer get totally freezed. ----- Original Message ----- From: "Alexey Talikov" <alexey_talikov@texlab.com.uz> To: <lartc@mailman.ds9a.nl>; "Vladimir Trebicky" <druid@mail.cz> Sent: Wednesday, June 05, 2002 1:19 PM Subject: Re: [LARTC] Bandwidth allocation by IP> Try WRR on eth1 see http://wipl-wrr.sourceforge.net/ for details > or use ESFQ > see mail from Alexander Atanasov 05.06.2002 > I rename files gzip its and attach to this mail but don''t change anything > patch kernel and tc > cd iproute2 > patch -p1 < ../esfq-tc.diff > cd linux-2.4.18 > patch -p1 < ../esfq-2.4.18.diff > recompile kernel and tc thats all !! > see README > Note it give you equal division for a long term not at the moment > Example: > > tc qdisc add dev eth1 root handle 1:0 esfq hash src > > It make equal priority for session based on ip address not tcp sessionlike classic SFQ> For detail see SFQ > 05.06.2002 15:34:05, "Vladimir Trebicky" <druid@mail.cz> wrote: > > >I have a LAN (eth1) and 1Mbit internet which is very unstable (from > >100kbit - 2mbit) on eth0. I would like to prevent ip A downloading with 9 > >threads taking 90% bandwidth and ip B downloading with 1 thread taking10%.> >I would like ip A as well as ip B to have each 50% of bandwith no carehow> >many threads they are downloading. I suppose that it could be done oneth1.> >But how? > >Second problem: I want to lessen round-trips. Should I do it withpriorizing> >small packets on eth0? How? > >I have 2.4.18, iproute2 with extra htb. PSCHED_JIFFIES (unfortunately -it''s> >only AMD 160MHz and does not have TSC) > > > >Thanks > > > >-- > >Vladimir Trebicky > >druid@mail.cz > > > > > >--- > >Odchozi zprava neobsahuje viry. > >Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz). > >Verze: 6.0.368 / Virová báze: 204 - datum vydání: 29.5.2002 > > > >_______________________________________________ > >LARTC mailing list / LARTC@mailman.ds9a.nl > >http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > ----------------------------------- > mailto:alexey_talikov@texlab.com.uz > BR > Alexey Talikov > FORTEK > ----------------------------------- >--- Odchozi zprava neobsahuje viry. Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz). Verze: 6.0.368 / Virová báze: 204 - datum vydání: 29.5.2002
Hi there! On Wed, 5 Jun 2002, Vladimir Trebicky wrote:> Sorry for my incompetence. I didn''t noticed that readme included in some of > Alexes posts. Module works fine only if I do > qdisc add dev eth1 root handle 1: esfq > when I do > qdisc add dev eth1 root handle 1: esfq hash dst > the computer get totally freezed. >Are you sure you''ve build the kernel correct? I''ve fixed some things about default parameters - i think you''ve hit this, hash_divisor was left to be 0 when not supplied as parameter. Now works and as built in - forgot to include sch_api.c when making diff first time, so it was in kernel but not registerd. I''ve setup a page for it on: http://www.ssi.bg/~alex/esfq/index.html -- have fun, alex
Well, I took 0.2 version, I compiled it as a module - no problem. tc qdisc add dev eth1 root handle 1: esfq hash dst - ok but then I started in one moment to upload (via eth1 of course) 3 scp''s. The first 2 were uploading on ip A and the third was uploading on ip B. But all those three threads were uploading with eqaul rate. Either I missed something (it''s not so rare) or something went wrong... what do you thing? root:/usr/src# tc -s qdisc show dev eth1 qdisc esfq 1: quantum 1514b hash: dst Sent 5615415 bytes 4513 pkts (dropped 0, overlimits 0) ----- Original Message ----- From: "Alexander Atanasov" <alex@ssi.bg> To: "Vladimir Trebicky" <druid@mail.cz> Cc: <alexey_talikov@texlab.com.uz>; <lartc@mailman.ds9a.nl> Sent: Thursday, June 06, 2002 4:47 AM Subject: Re: [LARTC] Bandwidth allocation by IP> Hi there! > > On Wed, 5 Jun 2002, Vladimir Trebicky wrote: > > > Sorry for my incompetence. I didn''t noticed that readme included in someof> > Alexes posts. Module works fine only if I do > > qdisc add dev eth1 root handle 1: esfq > > when I do > > qdisc add dev eth1 root handle 1: esfq hash dst > > the computer get totally freezed. > > > > Are you sure you''ve build the kernel correct? > > I''ve fixed some things about default parameters - i think you''ve > hit this, hash_divisor was left to be 0 when not supplied as parameter. > Now works and as built in - forgot to include sch_api.c when > making diff first time, so it was in kernel but not registerd. > I''ve setup a page for it on: http://www.ssi.bg/~alex/esfq/index.html > > -- > have fun, > alex > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/--- Odchozi zprava neobsahuje viry. Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz). Verze: 6.0.368 / Virová báze: 204 - datum vydání: 29.5.2002
On Thu, 6 Jun 2002, Vladimir Trebicky wrote:> Well, I took 0.2 version, I compiled it as a module - no problem. > tc qdisc add dev eth1 root handle 1: esfq hash dst > - ok > but then I started in one moment to upload (via eth1 of course) 3 scp''s. The > first 2 were uploading on ip A and the third was uploading on ip B. But all > those three threads were uploading with eqaul rate. Either I missed > something (it''s not so rare) or something went wrong... > > what do you thing?You attached esfq as your root qdisc it have 10/100MBits bandwidth. 3 SCPs can hardly fill up a 10/100MBits link - each one should send data 3.33/33.3MBits , i guess they send less. -- have fun, alex