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
On Friday 10 May 2002 05:32, hanhbnetfilter wrote:> 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, ... ? -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net
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 <stef.coene@docum.org> 的正文:> On Friday 10 May 2002 05:32, hanhbnetfilter wrote:> > 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, > ... ? > > -- > > stef.coene@docum.org > "Using Linux as bandwidth manager" > http://www.docum.org/ > #lartc @ irc.openprojects.net_________________________________________________________ Do You Yahoo!? 摊开你的掌心 让我看看你 http://sweepstakes.yahoo.com/2002cnuser
On Tuesday 14 May 2002 04:20, hanhbnetfilter wrote:> 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 doHTB3 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