Re: shaping: balancing hosts, then connections

green <[email protected]>
Newsgroups gmane.linux.debian.devel.firewall
Message-ID <20100313031519.GW10417@swansys>
green wrote at 2010-03-12 12:09 -0600:
> One of those groups:
> # ttc class add dev eth0 parent 1:1 classid 1:11 \
>   htb rate $( echo "$UP * 0.8" | bc )bps ceil ${UP}bps prio 1
> 
> Now this would logically follow:
> # tc qdisc add dev eth0 parent 1:11 handle 11: sfq perturb 10
> 
> But I want to balance hosts, not flows/connections, so I include:
> # tc filter add dev eth0 parent 11: handle 1 protocol ip \
>   flow hash keys nfct-src divisor 1024
> 
> Which I think works.  But then multiple connections on a single host are not 
> fairly balanced.  How can I do that?
> 
> More specifically: I would like, for each group like 1:11, to shape traffic in 
> this order:
> - source host balance (like SFQ and nfct-src)
> - PRIO qdisc (for TOS especially) for each
> - SFQ (for flows/connections) for each PRIO qdisc
> 
> I do not have a static set of source hosts.
> 
> Alternative methods are welcome, especially if they accomplish the same thing.

I guess I could script this with HTB and a class for each possible IP because I 
do have 2 static subnets...

Is WRR obsolete?  Would it help?  I have found almost no documentation for it.
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkubA0cACgkQ682C+dBP+oT8MQCeOTHJ+i5khoR/ANNtrvrb9kFY
q1gAnjaHkyL54LQHJHSZP11bbUmfn/f9
=N/oM
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.