Re: [LARTC] Bandwidth allocation by IP

2002-06-06 Thread Vladimir Trebicky

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 [EMAIL PROTECTED]
To: Vladimir Trebicky [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
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 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

 ___
 LARTC mailing list / [EMAIL PROTECTED]
 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

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: [LARTC] Bandwidth allocation by IP

2002-06-05 Thread Alexey Talikov

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 [EMAIL PROTECTED] 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
[EMAIL PROTECTED]


---
Odchozi zprava neobsahuje viry.
Zkontrolovno antivirovm systmem AVG (http://www.grisoft.cz).
Verze: 6.0.368 / Virov bze: 204 - datum vydn: 29.5.2002

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


---
mailto:[EMAIL PROTECTED]
BR
Alexey Talikov
FORTEK
---



esfq.tar.gz
Description: GNU Zip compressed data


Re: [LARTC] Bandwidth allocation by IP

2002-06-05 Thread Alexander Atanasov

Hi there!

On Wed, 05 Jun 2002 16:19:41 +0500
Alexey Talikov [EMAIL PROTECTED] 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 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. :)
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: [LARTC] Bandwidth allocation by IP

2002-06-05 Thread Alexey Talikov

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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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
 [EMAIL PROTECTED]
 
 
 ---
 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 / [EMAIL PROTECTED]
 http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
 

 ---
 mailto:[EMAIL PROTECTED]
 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:[EMAIL PROTECTED]
BR
Alexey Talikov
FORTEK
---


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: [LARTC] Bandwidth allocation by IP

2002-06-05 Thread Martin Devera

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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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
  [EMAIL PROTECTED]
  
  
  ---
  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 / [EMAIL PROTECTED]
  http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
  
 
  ---
  mailto:[EMAIL PROTECTED]
  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:[EMAIL PROTECTED]
 BR
 Alexey Talikov
 FORTEK
 ---


 ___
 LARTC mailing list / [EMAIL PROTECTED]
 http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: [LARTC] Bandwidth allocation by IP

2002-06-05 Thread Vladimir Trebicky

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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Vladimir Trebicky [EMAIL PROTECTED]
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 session
like classic SFQ
 For detail see SFQ
 05.06.2002 15:34:05, Vladimir Trebicky [EMAIL PROTECTED] 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
 [EMAIL PROTECTED]
 
 
 ---
 Odchozi zprava neobsahuje viry.
 Zkontrolovno antivirovm systmem AVG (http://www.grisoft.cz).
 Verze: 6.0.368 / Virov bze: 204 - datum vydn: 29.5.2002
 
 ___
 LARTC mailing list / [EMAIL PROTECTED]
 http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
 

 ---
 mailto:[EMAIL PROTECTED]
 BR
 Alexey Talikov
 FORTEK
 ---



---
Odchozi zprava neobsahuje viry.
Zkontrolovno antivirovm systmem AVG (http://www.grisoft.cz).
Verze: 6.0.368 / Virov bze: 204 - datum vydn: 29.5.2002

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: [LARTC] Bandwidth allocation by IP

2002-06-05 Thread Alexander Atanasov

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

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/