From: Omry Yadan <omry@firefang.net>
To: lartc@vger.kernel.org
Subject: [LARTC] Help needed with traffic control script.
Date: Tue, 25 Oct 2005 22:15:47 +0000 [thread overview]
Message-ID: <435EAE93.1050802@firefang.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 2106 bytes --]
Hi.
I am having shaping traffic using tc, I have been trying for a very long
time, and I just didn't get it to work the way I want it.
I will really appriciate it if you experts will have a look at my script
and tell me what I do wrong.
First, I`ll describe my envornment, than my requirements.
I run a small server on Debian etch with kernel version 2.6.7.
the server ip is 10.0.0.2
I have another machine in the lan, its ip is 10.0.0.1
I am connected to the internet via adsl model that acts as a router
(10.0.0.138, I set it to be the gateway for both machines).
my upload capacity is around 110 Kilo-bytes per second.
I want to control engress on the server.
my requrements:
1. I want the server to use no more than 100 Kbps when sending to the
internet.
2. I don't want to limit the upload at all to other machines in the
network (packets to the network gets free pass).
3. I want good download performence to the server. (prioritize ACK and
high TOS packets).
4. I want http traffic to the internet (not to the LAN) get at least
81Kbps (if it needs it).
5. I want other traffic to the internet get at least 9Kbps (if it needs it).
6. I want traffic http traffic to be shared fairly between connected ip
addresses, meaning if
two clients connects, one opens many connections and one opens one
connection, I want them both to get approximatly
the same bandwidth.
to do all this, I am trying to create a tree like this:
ROOT_QUEUE (HTB)
+- LAN_QUEUE (HTB, rate 100Mbit)
+- INET_QUEUE (HTB, rate 100Kbps)
+ INET_INTERACTIVE (HTB, rate 10Kbps, ceil 100Kbps, prio 2)
+ INET_DEFAULT (HTB, rate 90Kbps, ceil 100Kbps, prio 1)
+ INET_HTTP (HTB, rate 81Kbps, ceil 90Kbps)
+ SFQ
+ INET_UNCLASSIFIED (HTB, 9Kbps, ceil 90Kbps)
+SFQ
attached is my script, which does not seem to work.
some of the problems with it currently are :
1. unclassified packets (not http) can get bandwidth even if http needs it
2. users with many connections opened to http gets more bandwidth than
users with few connections.
Thanks.
[-- Attachment #2: tc_init.sh --]
[-- Type: application/x-shellscript, Size: 4063 bytes --]
[-- Attachment #3: Type: text/plain, Size: 143 bytes --]
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
next reply other threads:[~2005-10-25 22:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-25 22:15 Omry Yadan [this message]
2005-10-25 23:14 ` [LARTC] Help needed with traffic control script Omry Yadan
2005-10-26 18:26 ` Omry Yadan
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=435EAE93.1050802@firefang.net \
--to=omry@firefang.net \
--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.