From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] HTB classes, ceil and prio
Date: Sat, 18 Jan 2003 14:11:55 +0000 [thread overview]
Message-ID: <marc-lartc-104291159010801@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104280585510802@msgid-missing>
On Thursday 16 January 2003 13:18, Remus wrote:
> Hello,
>
> I'm looking some recommendation how to configure htb.
> I have ADSL 512k/256k connection at my home for the 3 clients PCs and one
> Linux Box like firewall.
>
> Network looks like usual:
> ADSL connection (eth0) - | firewall | - (eth1) local network
>
> I would like to divide Internet connection like this:
> Download eth0 (512K)
> SSH/IPSec rate%6k, ceilQ2k and prio=0 (it can be used from the local
> PC1 or PC2)
> PC1 1.2.3.1(local ip) rate\x170k, ceilQ2k and prio=1
> PC2 1.2.3.2 (local ip) rate\x170k, ceilQ2k and prio=1
> PC3 1.2.3.3 (local ip) rate\x170k, ceilQ2k and prio=1
> SMTP server (exist on firewall) ratedk, ceil\x128k and prio=2 or better 1
>
> Do I understand right if some of PCs (PC1or PC2) use SSH/IPsec it gets
> speed from 256k up to 512k if it not in use.
No. If all PC's are generating traffic, PC2 will get
(170/(256+170+170+64)*512.
> Two anothers PCs and SMTP server share 256k between them. Is that right?
> What speed they get each?
>
> Upload eth0 (256k) htb/imq
> SSH/IPSec rate\x128k, ceil%6k and prio=0 (it can be used from the local
> PC1 or PC2)
> PC1 1.2.3.1(local ip) rate€k, ceil%6k and prio=1
> PC2 1.2.3.2 (local ip) rate€k, ceil%6k and prio=1
> PC3 1.2.3.3 (local ip) rate€k, ceil%6k and prio=1
> SMTP server (exist on firewall) ratedk, ceil\x128k and prio=2 or better 1
>
> If I'm not correct just correct me, please.
It's not so easy to explain how the classe will behave. I have some basic htb
shaping rules on www.docum.org on the faq page. If you follow them, it's
easier to figure out how much traffic each class will get.
And you also have to tell us how what's the parent-child relation ship between
the classes.
> I know that running htb on external eth, htb cannot see local ip addresses.
> Can I mark them with the iptables and use it with the htb?
> Or do I have to make htb rules on my local eth1 as well?
Indeed, you will have to use firewall marks.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2003-01-18 14:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-16 12:18 [LARTC] HTB classes, ceil and prio Remus
2003-01-18 14:11 ` Stef Coene [this message]
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=marc-lartc-104291159010801@msgid-missing \
--to=stef.coene@docum.org \
--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