Benjamin Fraenkel wrote:
[snip]
I was busy yesterday and thought someone else might have posted by now.
My post was meant to:
a) make sure you weren't simply trying out some scipt you had picked up
from somewhere, anywhere
b) provide you with an alternative that did not require QoS shaping at
a central point as your drawing showed
c) keep it as simple as possible ;-)
Your current set up really won't have any effect till the pipe/queues
begin to fill up. Till then it's just a large SFQ scheduler. Entails
added latency (compared to Linux w/o p2p running and using its default
queue) and has no prios set up to prioritize traffic.
Even then you have to size your queue(s) so that _they_ don't overflow
the upstream queues -- like your switch or (most likely) dsl modem if
it queues packets (which most do, IIRC, especially for upload).
Effectively clamps the bandwidth available at the shaping point. Not
good for intra-lan traffic.
My comment about SFQ's inablilty to help much comes from experience of
students in the lab as well as the author of HTB.
http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm
Any filestreaming through HTB is problematic for other protocols,
especially those that send a number of short packets back-n-forth. SFQ
only assures that these smaller packets will get _some_ benefit when
competeing for bandwidth/scheduling -- ie., won't get "locked out".
SSH and telnet users usually remain unhappy campers. HTML can also be
a pain with DNS and multiple uri accesses required for most pages these
days. Ditto SMTP.
Now you _could_ keep playing with this and incorporate a priority qdisc
into the structure. But that can get _really_ tricky when running a
number of different prototcols and requires that you play with the
higher priority queue lengths, else the higher priority traffic will
block lower priority traffic entirely.
http://www.opalsoft.net/qos/DS-23.htm
http://www.docum.org/docum.org/docs/
There are two projects that have ready-made approaches, more or less,
for clamping p2p clients at a router/switch. IPP2P seems the most used
and l7-filter needs lots of hand feeding.
http://www.ipp2p.org/
http://l7-filter.sourceforge.net/
Haven't checked at netfilter.org for patch-o-matic solutions or
reviewed any scripts lately.
http://www.netfilter.org/patch-o-matic/pom-extra.html
Every couple of years I give the bored students in the computer (Linux)
lab classes the challenge of bandwidth limiting/blocking p2p software.
It provides very interesting (and disappointing) results as the "users"
battle the "admins" -- users always find a way ;-0. It's also a good
way to test software solutions for effectiveness and usability.
hth and good luck,
prg
email above disabled