From: Sander thrill12@gmx.net Date: Tue, 28 Nov 2000 13:10:26 +0000 Subject: [LARTC] load balancing fails Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org
Hi, I am trying to loadbalance our system to an upstream limit of 128Kbit, 
where each connected machine (there are 6 of them) is limited to 21Kbit 
upstream. Each time I enter the commands, it seems that nothing happens, 
this is the output for tc -d -s qdisc, applied for one machine:

qdisc sfq 8001: dev eth1 quantum 1514b limit 128p flows 128/1024 perturb 15sec
  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)   <= shouldn't here be 
some packets??

  qdisc cbq 10: dev eth1 rate 128Kbit cell 8b (bounded,isolated) prio 
no-transmit/8 weight 128Kbit allot 1514b
level 2 ewma 5 avpkt 1000b maxidle 1906us
  Sent 72299 bytes 1310 pkts (dropped 0, overlimits 0)
   borrowed 0 overactions 0 avgidle 49999 undertime 0

Our configuration is as follows:

eth0: internal interface, local network adresses 192.168.0.1-192.168.0.10
eth1: internet interface

I tried to limit the upstream both at eth0 and eth1, but I am quite 
confused now that they both don't work.
The commands entered for eth1 are:

tc qdisc add dev eth1 root handle 10: cbq bandwidth 128Kbit avpkt 1000
tc class add dev eth1 parent 10:0 classid 10:1 cbq bandwidth 128Kbit rate 
128Kbit allot 1514 weight 12Kbit prio 8 maxburst 20 avpkt 1000
tc class add dev eth1 parent 10:1 classid 10:100 cbq bandwidth 128Kbit rate 
21Kbit allot 1514 weight 2Kbit prio 5 maxburst 20 avpkt 1000 bounded
tc qdisc add dev eth1 parent 10:100 sfq quantum 1514b perturb 15
tc filter add dev eth1 parent 10:0 protocol ip prio 100 u32 match ip src 
192.168.0.1 flowid 10:100

For eth0 I tried practically the same, also with src 192.168.0.1
I compiled the kernel with all qos-options enabled (except the broken code).

I hope I have given enough information for someone to do something with ;)

Thanks in advance,

Sander Raaijmakers