[LARTC] rate limiting netmask w/ dd-wrt

2007-05-26 Thread Ryan O'Toole
I'm trying to setup a DD-WRT router (www.dd-wrt.com; embedded micro-device linux for the uninitiated) to rate limit all the traffic it receives from its wi-fi interface. I followed the instructions from the cookbook section on rate limiting (http://lartc.org/howto/lartc.ratelimit.single.html), but

[LARTC] Re: Problem with the tc statistcis

2007-05-26 Thread Christian Benvenuti
Hi Yang, >I had a linux wireless router. I would like to monitor the queue lengh >of the wireless interface. By default, the wifi0 interface is with >pfifo_fast qdisc which does not report backlog packet. Actually it does: # tc -s -d qdisc list dev eth1 qdisc pfifo_fast root bands 3 priomap 1

Re: [LARTC] big problem with HTB/CBQ and CPU for more than 1.700 customers

2007-05-26 Thread Acácio Alves dos Santos
Pablo, Here we have HTB being used for more than 10.000 customers. The difference, is that we use tc and u32 filters to classify the packets.. I use the same Dell PE 1850, but I have two Quad-Core Xeon (1.86GHz) on it :) # uptime 13:18:08 up 16 days, 12:32, 1 user, load average: 0.02, 0

Re: [LARTC] big problem with HTB/CBQ and CPU for more than 1.700 customers

2007-05-26 Thread VladSun
Pablo Fernandes Yahoo написа: Hello, have HTB „rules“ in 4 different ISPs and i control for each customer this way: Flush and 1:0 class tc qdisc del dev eth0 root tc qdisc add dev eth0 root handle 1:0 htb tc class add dev eth0 parent 1:0 classid 1:1 htb rate 100mbit tc qdisc del dev eth1

Re: [LARTC] big problem with HTB/CBQ and CPU for more than 1.700 customers

2007-05-26 Thread Marek Kierdelewicz
>Hello, Hi there! >iptables -t mangle -A POSTROUTING --dest x.x.x.x -o eth0 -j CLASSIFY >--set-class 1:5 >iptables -t mangle -A FORWARD --src x.x.x.x -o eth1 -j CLASSIFY >--set-class 1:5 3k iptables rules strike me as something suicidaly slow. Try using tc hashing filters for traffic classifi

[LARTC] big problem with HTB/CBQ and CPU for more than 1.700 customers

2007-05-26 Thread Pablo Fernandes Yahoo
Hello, have HTB "rules" in 4 different ISPs and i control for each customer this way: Flush and 1:0 class tc qdisc del dev eth0 root tc qdisc add dev eth0 root handle 1:0 htb tc class add dev eth0 parent 1:0 classid 1:1 htb rate 100mbit tc qdisc del dev eth1 root tc qdisc add dev eth1

[LARTC] Need cbq or htb optimal solution

2007-05-26 Thread Arman
Hi all, Can anyone in this mailing list answer a few theoretical question which r confusing me. Here is the scenario I have a total Bandwidth of 2Mbps for a private LAN I am managing. I am using cbq standard script available online and for controlling bandwidth, squid and iptables. I have diff

[LARTC] Problem with the tc statistcis

2007-05-26 Thread Yang Su
I had a linux wireless router. I would like to monitor the queue lengh of the wireless interface. By default, the wifi0 interface is with pfifo_fast qdisc which does not report backlog packet. I replaced pfifo_fast with pfifo: 'tc qdisc replace dev wifi0 root pfifo' Then I use iperf to send UDP pkt