* [LARTC] Traffic shaping: upload should not hurt download
@ 2004-07-12 7:29 André Heßling
2004-07-12 7:50 ` Ed Wildgoose
0 siblings, 1 reply; 2+ messages in thread
From: André Heßling @ 2004-07-12 7:29 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] Traffic shaping: upload should not hurt download
2004-07-12 7:29 [LARTC] Traffic shaping: upload should not hurt download André Heßling
@ 2004-07-12 7:50 ` Ed Wildgoose
0 siblings, 0 replies; 2+ messages in thread
From: Ed Wildgoose @ 2004-07-12 7:50 UTC (permalink / raw)
To: lartc
>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).
>
>
Yes its easily possible. Why not trying to start from one of the
following scripts (which are very good)
I prefer the first for most home applications
http://digriz.org.uk/jdg-qos-script/
http://www.metamorpher.de/fairnat/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-12 7:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-12 7:29 [LARTC] Traffic shaping: upload should not hurt download André Heßling
2004-07-12 7:50 ` Ed Wildgoose
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.