Skip to contentSkip to conversation

quantity of qdisc

LARTC hanhbnetfilter 2 participants 4 messages May 10, 2002 – May 14, 2002

lore
Share & tools
lore
#0 lore raw

if i have a lot of workstation to define bandwidth the quantity of qdisc(class) is very large. the performance will be impacted, please tell me how can i improve performance.

_________________________________________________________
Do You Yahoo!?
摊开你的掌心 让我看看你
http://sweepstakes.yahoo.com/2002cnuser
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 4 lines · hanhbnetfilter

if i have a lot of workstation to define bandwidth the quantity of qdisc(class) is very large. the performance will be impacted, please tell me how can i improve performance.

If you want to give each host a class, you can not change the number of classes. But you can make the filter part faster. If you mark each host with a iptables mark, that mark is also the class of the host. Very fast filtering, but you need also a lot of iptables rules.
There is also a WRR qdisc. This qdisc will create for each host (or mac-address) it sess, a class and will assign some bandwidth to this class. Very easy if you have lot of hosts.

Stef

Btw, what are a lot of hosts? 1000, 10000, 100000, ... ?

Signature · 7 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to hanhbnetfilter

Dear sir:
There is a lot of work stations in my lan. Every one
should be seperate set bandwidth limit,so qdisc(class) will be very large.
These workstations can be included in several
groups,iptables rule can be set and mark can be used in filter,so class can be reduced,but in these groups the member of the group still has itself bandwidth limit.
The quantity of qdisc(class) will impact the
performance.I do not know how much it impact.100 and 200 or 500 must be different.
which qdisc and class rules should i use?
please tell me how can i do

hans
best regards
--- Stef Coene <[email protected]> 的正文:> On

Quoted 19 lines · hanhbnetfilter
Quoted 3 lines

if i have a lot of workstation to define bandwidth the quantity of qdisc(class) is very large. the performance will be impacted, please tell me how

can i

Quoted 1 line

improve performance.

If you want to give each host a class, you can not change the number of
classes. But you can make the filter part faster. If you mark each host
with a iptables mark, that mark is also the class of the host. Very fast
filtering, but you need also a lot of iptables rules.
There is also a WRR qdisc. This qdisc will create for each host (or
mac-address) it sess, a class and will assign some bandwidth to this class.
Very easy if you have lot of hosts.

Quoted 11 lines

Stef

Btw, what are a lot of hosts? 1000, 10000, 100000, ... ?

Signature · 4 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net 

_________________________________________________________
Do You Yahoo!?
摊开你的掌心 让我看看你
http://sweepstakes.yahoo.com/2002cnuser
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to hanhbnetfilter
Quoted 6 lines · hanhbnetfilter

Dear sir:
There is a lot of work stations in my lan. Every one
should be seperate set bandwidth limit,so qdisc(class) will be very large.
These workstations can be included in several
groups,iptables rule can be set and mark can be used

Quoted 8 lines

in filter,so class can be reduced,but in these groups the member of the group still has itself bandwidth limit.
The quantity of qdisc(class) will impact the
performance.I do not know how much it impact.100 and 200 or 500 must be different.
which qdisc and class rules should i use?
please tell me how can i do

HTB3 is still beta, but fast. Even faster then CBQ.
For the filters, you can use one fw filter. This filter will use the iptables mark direclty to find the class. If you mark a packet with 9, it will end in class :9. Very easy. So all filter logic is in the iptables rules. But you still have to create all the classes.

Or you can use the wrr qdisc (http://wipl-wrr.sourceforge.net). This qdisc
will create a class for each ip it sees. So you don't need to create the classes and the filters yourself.

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