From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] configuration + HTB: question
Date: Mon, 26 May 2003 18:19:30 +0000 [thread overview]
Message-ID: <marc-lartc-105397325312657@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105394931721332@msgid-missing>
On Monday 26 May 2003 13:40, Ruslan Spivak wrote:
> Hello!
>
> Can you help me with the following:
>
> i want to devide traffic to clients from my server and
> from internet. my intention is to mark with iptables
> packets with src = 193.220.70.3 as local, and with
> another src as going from internet. i need fairly
> divide 60 Mbit of local traffic(traffic from my
> server) between ethernet clients(192.168.1.2 -
> 192.168.1.20)
>
> i think i need to create class with rate 60Mbit(attach
> it to root qdisc) and to make 20 child classes with
> rate 32Kbit ceil 60Mbit and to attach to these child
> classes qdiscs with sfq. Then mark packets with
> src\x192.168.1.2-192.168.1.20 and to make thrm go to
> these clasess? Am i right, or wrong? Maybe there is
> better approach?
I think you are on the right track. But I think it's better that you create 2
classes. One for the internet traffic and one for the local traffic. So you
seperate the traffic from the internet from your local traffic.
The internet traffic has ceil = rate = 256kbit. The local traffic has rate =
60mbit - 256kbit and ceil = 60mbit. If you want more control, you can add 1
class / pc to each of these 2 classes.
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/
next prev parent reply other threads:[~2003-05-26 18:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-26 11:40 [LARTC] configuration + HTB: question Ruslan Spivak
2003-05-26 18:19 ` Stef Coene [this message]
2003-05-27 8:10 ` Ruslan Spivak
2003-05-28 12:23 ` Stef Coene
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-105397325312657@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 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.