All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Help needed with traffic control script.
@ 2005-10-25 22:15 Omry Yadan
  2005-10-25 23:14 ` Omry Yadan
  2005-10-26 18:26 ` Omry Yadan
  0 siblings, 2 replies; 3+ messages in thread
From: Omry Yadan @ 2005-10-25 22:15 UTC (permalink / raw)
  To: lartc

[-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-26 18:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-25 22:15 [LARTC] Help needed with traffic control script Omry Yadan
2005-10-25 23:14 ` Omry Yadan
2005-10-26 18:26 ` Omry Yadan

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.