From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Htb, imq and sfq traffic shaping
Date: Tue, 25 Jan 2005 12:23:06 +0000 [thread overview]
Message-ID: <41F63A2A.6090604@dsl.pipex.com> (raw)
In-Reply-To: <20050124150857.7d530d34@drak.aard.net>
Ixen Gerthannes wrote:
> Hello, I wrote a simple traffic shaping script (below) that should
> have allowed me to shape my internet traffic a bit (ppp0 - adsl
> 128kbit/64kbit; local interface eth0). The script works only
> partially - the speed is being limited but too much. Without running
> this script my download rate is about 10kBytes (with second computer
> also downloading at about 6kBytes). After running it my download
> speed decreases to about 1..2kBytes and so the second computer. Could
> you tell me what have I done wrong ?
>
> Thank you for replies. Ixen
>
> -------------- My configuration:
If you are shaping on and using PC1 and forwarding traffic for PC2 then
you only need one IMQ.
You need to send all inbound on ppp0 to it in PREROUTING.
Shape egress directly on ppp0.
Traffic from the shaping PC will have ppp0s address not eth0s, you need
to mark local addresses in postrouting mangle for the queues on ppp0.
IMQ needs to be set to hook after nat in prerouting. This may be the
default AB?
To filter inbound local (denatted) ip addresses you can't mark with
iptables you need to use tc filters. Remember traffic to/from the
shaping PC over ppp0 will have ppp0s address.
You need to back off from 128/64 - maybe 100/50, it depends what you
want to shape for. There are other tweaks if you really care about latency.
You need to sacrifice downstream bandwidth - and upstream unless you are
prepared to find link overheads and tweak/patch.
Andy.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2005-01-25 12:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-24 14:08 [LARTC] Htb, imq and sfq traffic shaping Ixen Gerthannes
2005-01-24 17:26 ` George Alexandru Dragoi
2005-01-25 12:23 ` Andy Furniss [this message]
2005-01-26 16:18 ` Andre Correa
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=41F63A2A.6090604@dsl.pipex.com \
--to=andy.furniss@dsl.pipex.com \
--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 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.