Skip to contentSkip to conversation

Bandwidth allocation by IP

LARTC Vladimir Trebicky 4 participants 13 messages Jun 5, 2002 – Jun 6, 2002

lore
Share & tools
lore
#0 lore raw

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/

#1 lore raw

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

Quoted 18 lines · Vladimir Trebicky

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]

Quoted 9 lines

---
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
-----------------------------------

#2 lore raw
In reply to Vladimir Trebicky

Hi there!

Quoted 2 lines · On Wed, 05 Jun 2002 16:19:41 +0500 "Alexey Talikov"…

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.

Quoted 7 lines

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/

#3 lore raw
In reply to Vladimir Trebicky

Thanks for your note about my error !!
You right needed dst ip but I write src :((

Quoted 13 lines · Alexander Atanasov

Hi there!

Quoted 2 lines · On Wed, 05 Jun 2002 16:19:41 +0500 "Alexey Talikov"…

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.

Quoted 3 lines

Note it give you equal division for a long term not at the moment Example:

Quoted 7 lines
Quoted 4 lines

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).

Quoted 6 lines

--
have fun,
alex
P.S. Thank you for the feedback and trying it. :)

-----------------------------------
mailto:[email protected]
BR
Alexey Talikov
FORTEK
-----------------------------------

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#4 lore raw
In reply to Vladimir Trebicky

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).

Quoted 14 lines

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:

Quoted 3 lines

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

Quoted 6 lines

For detail see SFQ

Quoted 3 lines · Vladimir Trebicky

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%.

Quoted 1 line
Quoted 1 line

I would like ip A as well as ip B to have each 50% of bandwith no care

how

Quoted 1 line
Quoted 1 line

many threads they are downloading. I suppose that it could be done on

eth1.

Quoted 2 lines
Quoted 2 lines

But how?
Second problem: I want to lessen round-trips. Should I do it with

priorizing

Quoted 2 lines
Quoted 2 lines

small packets on eth0? How?
I have 2.4.18, iproute2 with extra htb. PSCHED_JIFFIES (unfortunately -

it's

Quoted 19 lines
Quoted 9 lines

only AMD 160MHz and does not have TSC)

Thanks

--
Vladimir Trebicky
[email protected]

Quoted 9 lines

---
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/

Quoted 7 lines

-----------------------------------
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

gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -Werror -g -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux-2.4/include -I../include -DRESOLVE_HOSTNAMES -c -o q_esfq.o q_esfq.c
q_esfq.c: In function `esfq_parse_opt':
q_esfq.c:45: structure has no member named hash_kind' q_esfq.c:45: TCA_SFQ_HASH_CLASSIC' undeclared (first use in this function) q_esfq.c:45: (Each undeclared identifier is reported only once q_esfq.c:45: for each function it appears in.)
q_esfq.c:91: structure has no member named hash_kind' q_esfq.c:94: structure has no member named hash_kind' q_esfq.c:94: TCA_SFQ_HASH_DST' undeclared (first use in this function) q_esfq.c:97: structure has no member named hash_kind' q_esfq.c:97: TCA_SFQ_HASH_SRC' undeclared (first use in this function) q_esfq.c: In function esfq_print_opt':
q_esfq.c:140: structure has no member named hash_kind' q_esfq.c:142: TCA_SFQ_HASH_CLASSIC' undeclared (first use in this function) q_esfq.c:145: TCA_SFQ_HASH_DST' undeclared (first use in this function) q_esfq.c:148: TCA_SFQ_HASH_SRC' undeclared (first use in this function)
cc1: warnings being treated as errors
q_esfq.c:143: warning: unreachable code at beginning of switch statement make[1]: *** [q_esfq.o] Error 1
make[1]: Leaving directory `/usr/src/iproute2/tc'
make: *** [all] Error 2

#5 lore raw
In reply to Vladimir Trebicky

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/.

Quoted 69 lines · Vladimir Trebicky

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).

Quoted 14 lines

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:

Quoted 3 lines

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

Quoted 6 lines

For detail see SFQ

Quoted 3 lines · Vladimir Trebicky

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%.

Quoted 1 line
Quoted 1 line

I would like ip A as well as ip B to have each 50% of bandwith no care

how

Quoted 1 line
Quoted 1 line

many threads they are downloading. I suppose that it could be done on

eth1.

Quoted 2 lines
Quoted 2 lines

But how?
Second problem: I want to lessen round-trips. Should I do it with

priorizing

Quoted 2 lines
Quoted 2 lines

small packets on eth0? How?
I have 2.4.18, iproute2 with extra htb. PSCHED_JIFFIES (unfortunately -

it's

Quoted 19 lines
Quoted 9 lines

only AMD 160MHz and does not have TSC)

Thanks

--
Vladimir Trebicky
[email protected]

Quoted 9 lines

---
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/

Quoted 7 lines

-----------------------------------
mailto:[email protected]
BR
Alexey Talikov
FORTEK
-----------------------------------

Quoted 6 lines

---
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/

#6 lore raw
In reply to Vladimir Trebicky
Quoted 6 lines · On Wed, 5 Jun 2002 15:09:07 +0200 "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).

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
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#7 lore raw
In reply to Vladimir Trebicky

ESFQ !? Did I missed something ? :-)
devik

Quoted 94 lines · 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/.

Quoted 69 lines · Vladimir Trebicky

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).

Quoted 14 lines

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:

Quoted 3 lines

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

Quoted 6 lines

For detail see SFQ

Quoted 3 lines · Vladimir Trebicky

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%.

Quoted 1 line
Quoted 1 line

I would like ip A as well as ip B to have each 50% of bandwith no care

how

Quoted 1 line
Quoted 1 line

many threads they are downloading. I suppose that it could be done on

eth1.

Quoted 2 lines
Quoted 2 lines

But how?
Second problem: I want to lessen round-trips. Should I do it with

priorizing

Quoted 2 lines
Quoted 2 lines

small packets on eth0? How?
I have 2.4.18, iproute2 with extra htb. PSCHED_JIFFIES (unfortunately -

it's

Quoted 19 lines
Quoted 9 lines

only AMD 160MHz and does not have TSC)

Thanks

--
Vladimir Trebicky
[email protected]

Quoted 9 lines

---
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/

Quoted 7 lines

-----------------------------------
mailto:[email protected]
BR
Alexey Talikov
FORTEK
-----------------------------------

Quoted 6 lines

---
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
-----------------------------------

Quoted 5 lines

_______________________________________________
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/

#8 lore raw
In reply to Vladimir Trebicky

I've compiled tc (after hint to patch the kernel first :-) and also kernel. Both with extra wrr, esfq and htb. I forgot to ask whether is esfq supposed to be compiled as a module or to be built-in. So I've tried it as built-in and after command tc qdisc add dev eth1 root handle 1: esfq hash src:
RNETLING answers: Invalid argument
That seems to me like it wouldn't be in kernel, but it is :-( Please see my configuration for kernel in attachment.
Somewhere there is also something that does that my machine has address
like: mymachine.IN-ADDR-ARPA... I don't know what it is and I also don't want to uncheck something I could possibly need for Full-NAT and QoS...

----- 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

Quoted 14 lines

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:

Quoted 3 lines

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

Quoted 6 lines

For detail see SFQ

Quoted 3 lines · Vladimir Trebicky

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%.

Quoted 1 line
Quoted 1 line

I would like ip A as well as ip B to have each 50% of bandwith no care

how

Quoted 1 line
Quoted 1 line

many threads they are downloading. I suppose that it could be done on

eth1.

Quoted 2 lines
Quoted 2 lines

But how?
Second problem: I want to lessen round-trips. Should I do it with

priorizing

Quoted 2 lines
Quoted 2 lines

small packets on eth0? How?
I have 2.4.18, iproute2 with extra htb. PSCHED_JIFFIES (unfortunately -

it's

Quoted 19 lines
Quoted 9 lines

only AMD 160MHz and does not have TSC)

Thanks

--
Vladimir Trebicky
[email protected]

Quoted 9 lines

---
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/

Quoted 7 lines

-----------------------------------
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

#9 lore raw
In reply to 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

Quoted 14 lines

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:

Quoted 3 lines

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

Quoted 6 lines

For detail see SFQ

Quoted 3 lines · Vladimir Trebicky

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%.

Quoted 1 line
Quoted 1 line

I would like ip A as well as ip B to have each 50% of bandwith no care

how

Quoted 1 line
Quoted 1 line

many threads they are downloading. I suppose that it could be done on

eth1.

Quoted 2 lines
Quoted 2 lines

But how?
Second problem: I want to lessen round-trips. Should I do it with

priorizing

Quoted 2 lines
Quoted 2 lines

small packets on eth0? How?
I have 2.4.18, iproute2 with extra htb. PSCHED_JIFFIES (unfortunately -

it's

Quoted 19 lines
Quoted 9 lines

only AMD 160MHz and does not have TSC)

Thanks

--
Vladimir Trebicky
[email protected]

Quoted 9 lines

---
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/

Quoted 7 lines

-----------------------------------
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

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#10 lore raw
In reply to Vladimir Trebicky

Hi there!

Quoted 7 lines · 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.

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

Signature · 6 lines
have fun,
alex

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#11 lore raw
In reply to 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

Quoted 5 lines

Hi there!

Quoted 1 line · Vladimir Trebicky

Sorry for my incompetence. I didn't noticed that readme included in some

of

Quoted 15 lines
Quoted 6 lines

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

Quoted 7 lines

--
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/

#12 lore raw
In reply to Vladimir Trebicky
Quoted 9 lines · 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?

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.

Signature · 6 lines
have fun,
alex

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/