From: "André Heßling" <ahessling@gmx.de>
To: lartc@vger.kernel.org
Subject: [LARTC] Traffic shaping: upload should not hurt download
Date: Mon, 12 Jul 2004 07:29:13 +0000 [thread overview]
Message-ID: <20040712092913.00000db0@ANDRE> (raw)
Hello!
I have a small home network and I'd like to use traffic shaping because
every time someone uploads a file at full speed, my download speed drops
to ~10 KB/s. My connection is 768/128 DSL.
I found a script at http://www.knowplace.org/shaper/examples.html
$TC qdisc add dev $INTERFACE root handle 1: htb default 60
$TC class add dev $INTERFACE parent 1: classid 1:1 htb rate 116kbit
$TC class add dev $INTERFACE parent 1:1 classid 1:10 htb rate 32kbit
ceil 116kbit prio 0
$TC class add dev $INTERFACE parent 1:1 classid 1:20 htb rate 22kbit
ceil 116kbit prio 1
$TC class add dev $INTERFACE parent 1:1 classid 1:30 htb rate 22kbit
ceil 116kbit prio 2
$TC class add dev $INTERFACE parent 1:1 classid 1:40 htb rate 20kbit
ceil 116kbit prio 3
$TC class add dev $INTERFACE parent 1:1 classid 1:50 htb rate 18kbit
ceil 116kbit prio 4
$TC class add dev $INTERFACE parent 1:1 classid 1:60 htb rate 2kbit ceil
116kbit prio 5
$TC qdisc add dev$INTERFACE parent 1:10 handle 10: sfq perturb 10
$TC qdisc add dev$INTERFACE parent 1:20 handle 20: sfq perturb 10
$TC qdisc add dev$INTERFACE parent 1:30 handle 30: sfq perturb 10
$TC qdisc add dev$INTERFACE parent 1:40 handle 40: sfq perturb 10
$TC qdisc add dev$INTERFACE parent 1:50 handle 50: sfq perturb 10
$TC qdisc add dev$INTERFACE parent 1:60 handle 60: sfq perturb 10
This works quite well as I can download a file at about 70 KB/s when
uploading a file at full speed. But http traffic is not that good. I
still want to have a good surfing speed.
I slightly modified the line where iptables classifies http packets. I
set this rule to class 1:10 (highest priority). But that doesn't change
very much.
It should be possible because I have seen such a solution under Windows
using the cFos PPPoE driver. You are able to upload and download a file
at full speed while surfing is still possible.
So do you have any ideas how to optimize the above script or do you know
a better solution? It is "only" important to me that downloading and
surfing is still possible while uploading at a good speed (should be
around 12 KB/s).
Thanks!
--
Regards,
André
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2004-07-12 7:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-12 7:29 André Heßling [this message]
2004-07-12 7:50 ` [LARTC] Traffic shaping: upload should not hurt download Ed Wildgoose
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040712092913.00000db0@ANDRE \
--to=ahessling@gmx.de \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox