Mailing List Archive

(OT) traffic shaping for a http server
Hi all,

I know this is somewhat OT, but since there are many wise people on this
list, I try to ask here... ;)

So, my config looks like this:

( www )---( Linux Router )---( ADSL line )---( intern network, pub. IP )

I have an http server behing the Linux Router in this intern network,
serving an "important" ASP solution for customers. The ADSL line has
around 1mbit down and 256kbit up speed.

What I want now is a mini traffic shaping solution for my http server. I
googled a bit, but only found some really huge examples and howtos, not
what I was looking for ... I just want to dedicate port 80 (to http
server's IP) maybe 512kbit traffic incoming, and 128kbit outgoing.

Ok, I can read and learn QoS and traffic shaping for the next few days. But
maybe one of you has a simple and easy to understand "howto" for just this
issue -- shaping for this http server...

So, big thanks in advance!
Greetings, Matthias

--
I couldn't very well chop your hand off and bring it to the store,
could I?

-- Homer Simpson
Life on the Fast Lane

--
gentoo-user@gentoo.org mailing list
Re: (OT) traffic shaping for a http server [ In reply to ]
Hello i write for point you at best "linux traffic shaping" oriented
document (around for a long while now), you can see it here:
http://lartc.org/lartc.txt or as title said "Linux Advanced Routing &
Traffic Control HOWTO"; it explain imo very good how to use the
utility tc for very good and very performing traffic shaping.
The syntax is like:
tc qdisc replace dev ppp0 root tbf rate 120Kbit latency 80ms burst 1540
it can seems a bit difficult but reading a little bit the area that
interest you in howto can make u understand it very quickly.

ps: sorry for my very bad english but i'm italian and don't know it very good :/

A little list that can help you:
http://www.shorewall.net/traffic_shaping.htm
http://www.greenend.org.uk/rjk/2004/tc.html
http://www.knowplace.org/shaper/

Have a nice day :D

N0bodY88
Spippolatori Member
Metro Olografix Member
Debian lover - Gentoo abuser
noob for life

On Mon, 11 Oct 2004 17:33:43 +0200, Matthias F. Brandstetter
<haimat@lame.at> wrote:
> Hi all,
>
> I know this is somewhat OT, but since there are many wise people on this
> list, I try to ask here... ;)
>
> So, my config looks like this:
>
> ( www )---( Linux Router )---( ADSL line )---( intern network, pub. IP )
>
> I have an http server behing the Linux Router in this intern network,
> serving an "important" ASP solution for customers. The ADSL line has
> around 1mbit down and 256kbit up speed.
>
> What I want now is a mini traffic shaping solution for my http server. I
> googled a bit, but only found some really huge examples and howtos, not
> what I was looking for ... I just want to dedicate port 80 (to http
> server's IP) maybe 512kbit traffic incoming, and 128kbit outgoing.
>
> Ok, I can read and learn QoS and traffic shaping for the next few days. But
> maybe one of you has a simple and easy to understand "howto" for just this
> issue -- shaping for this http server...
>
> So, big thanks in advance!
> Greetings, Matthias
>
> --
> I couldn't very well chop your hand off and bring it to the store,
> could I?
>
> -- Homer Simpson
> Life on the Fast Lane
>
> --
> gentoo-user@gentoo.org mailing list
>
>

--
gentoo-user@gentoo.org mailing list
Re: (OT) traffic shaping for a http server [ In reply to ]
Sorry for haven't found it before my post :D
HOWTO: Apache 2 bandwidth limiting
http://forums.gentoo.org/viewtopic.php?t=92439&highlight=modbandwidth

Bye ^^

N0bodY88
Gentoo abuser

--
gentoo-user@gentoo.org mailing list
Re: (OT) traffic shaping for a http server [ In reply to ]
---------- quoting N0bodY88 ----------
> Sorry for haven't found it before my post :D
> HOWTO: Apache 2 bandwidth limiting
> http://forums.gentoo.org/viewtopic.php?t=92439&highlight=modbandwidth

Unfortunately I can't use this module, since this webserver is not running
on the router itself, and not under my control. And it's an IIS...

I only want to set some sort of QoS / traffic shaping on my Linux router, I
think with iproute2's "tc" tool.

Greetings, Matthias

--
A boy without mischief is like a bowling ball without a liquid center.

-- Homer Simpson
Lisa the Greek

--
gentoo-user@gentoo.org mailing list
Re: (OT) traffic shaping for a http server [ In reply to ]
I think this can help you a little bit, because the main purpose of
the document is the one you are looking for :D (or so i hope =) )
http://www.groupedia.com/node/view/118
A little piece of the doc:
------- www.groupedia.com credits begin --------
The problem
When the web server was getting traffic, the interactive net
connection for the rest of the machine became terrible. Ping times to
the outside world which were normally around 50msec would jump up to
4-10 seconds while the web server was sending lots of data.

The root cause
The DSL modem has a large outgoing queue on it. When the web server
wanted to send data, it would basically fill up the whole queue. Any
other traffic would end up at the back of the queue, causing ping
times to go up and making interactive connections to !outside world
painful to use
------- www.groupedia.com credits end --------

Take a look at that page when you have a free moment, i really hope
this will help you a little bit :D

N0bodY88
The Mathematics is the alphabet in which God has written the universe
(Galileo Galilei)

On Mon, 11 Oct 2004 18:15:32 +0200, Matthias F. Brandstetter
<haimat@lame.at> wrote:
> ---------- quoting N0bodY88 ----------
> > Sorry for haven't found it before my post :D
> > HOWTO: Apache 2 bandwidth limiting
> > http://forums.gentoo.org/viewtopic.php?t=92439&highlight=modbandwidth
>
> Unfortunately I can't use this module, since this webserver is not running
> on the router itself, and not under my control. And it's an IIS...
>
> I only want to set some sort of QoS / traffic shaping on my Linux router, I
> think with iproute2's "tc" tool.
>
> Greetings, Matthias
>
> --
> A boy without mischief is like a bowling ball without a liquid center.
>
> -- Homer Simpson
> Lisa the Greek
>
>
>
> --
> gentoo-user@gentoo.org mailing list
>
>

--
gentoo-user@gentoo.org mailing list
Re: (OT) traffic shaping for a http server [ In reply to ]
On Tue, 2004-10-12 at 00:15, Matthias F. Brandstetter wrote:
> ---------- quoting N0bodY88 ----------
> > Sorry for haven't found it before my post :D
> > HOWTO: Apache 2 bandwidth limiting
> > http://forums.gentoo.org/viewtopic.php?t=92439&highlight=modbandwidth
>
> Unfortunately I can't use this module, since this webserver is not running
> on the router itself, and not under my control. And it's an IIS...
>
> I only want to set some sort of QoS / traffic shaping on my Linux router, I
> think with iproute2's "tc" tool.
Hi,

I've actually implemented that of sorts to control bittorrent
bandwidth. It's actually integrated together with shorewall but you
could use the script and start it up with rc.conf or something..
http://my-opensource.org/howto/qostrafficshaping-shorewall-wondershaper-howto.html



--
Ow Mun Heng
Fedora GNU/Linux Core 2 on D600 1.4Ghz CPU kernel
2.6.7-2.jul1-interactive
Neuromancer 09:52:25 up 28 min, 3 users, load average: 0.93, 0.79, 0.75

--
gentoo-user@gentoo.org mailing list
Re: (OT) traffic shaping for a http server [ In reply to ]
---------- quoting Ow Mun Heng ----------
> I've actually implemented that of sorts to control bittorrent
> bandwidth. It's actually integrated together with shorewall but you
> could use the script and start it up with rc.conf or something..

thx, I will check that out!
greets, Matthias

--
Love isn't hopeless. Look, maybe I'm no expert on the subject, but there
was one time I got it right.

-- Homer Simpson
Another Simpson's Clip Show

--
gentoo-user@gentoo.org mailing list