* [LARTC] htb : server trafficcontrol
@ 2007-09-15 11:36 Mateusz Matusiak
2007-09-15 13:37 ` Jens Thiele
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Mateusz Matusiak @ 2007-09-15 11:36 UTC (permalink / raw)
To: lartc
Hi everyone,
I have a small problem. I have my debian server setup in my home.
I have setup htb that is working perfectly.
The only problem I have is to control the traffic server <-> internet
I have a daemon (bittorrent) and I would like to limit its download to a
certail amount. How can I do that ?
I have tried layer7 but it seems I'm doing something wrong in the htb
script.
Any idea how to control that traffic (serv <-> net)
Its the same problems with apt etc etc When I use it, it uses the entire
amount of bandwidth...
With Kind Regards
Matt
----------------------------------------------------
Ka¿dy morderca jest czyim¶ s±siadem...
Fascynuj±cy thriller NIEPOKÓJ - w kinach OD 14 wrze¶nia!
http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fniepokoj.html&sid#
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [LARTC] htb : server trafficcontrol
2007-09-15 11:36 [LARTC] htb : server trafficcontrol Mateusz Matusiak
@ 2007-09-15 13:37 ` Jens Thiele
2007-09-15 15:42 ` Marek Kierdelewicz
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Jens Thiele @ 2007-09-15 13:37 UTC (permalink / raw)
To: lartc
On 15 Sep 2007, mateusz-matusiak@wp.pl wrote:
> Hi everyone,
>
> I have a small problem. I have my debian server setup in my home.
> I have setup htb that is working perfectly.
> The only problem I have is to control the traffic server <-> internet
>
> I have a daemon (bittorrent) and I would like to limit its download to
> a certail amount. How can I do that ?
>
> I have tried layer7 but it seems I'm doing something wrong in the htb
> script.
>
>
> Any idea how to control that traffic (serv <-> net)
>
> Its the same problems with apt etc etc When I use it, it uses the
> entire amount of bandwidth...
>
>
> With Kind Regards
> Matt
Assuming your server does NAT for your LAN you probably want to use IMQ
<http://www.linuximq.net/>
Greetings
Jens
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [LARTC] htb : server trafficcontrol
2007-09-15 11:36 [LARTC] htb : server trafficcontrol Mateusz Matusiak
2007-09-15 13:37 ` Jens Thiele
@ 2007-09-15 15:42 ` Marek Kierdelewicz
2007-09-15 16:43 ` Jens Thiele
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Marek Kierdelewicz @ 2007-09-15 15:42 UTC (permalink / raw)
To: lartc
>Any idea how to control that traffic (serv <-> net)
>
>Its the same problems with apt etc etc When I use it, it uses the
>entire amount of bandwidth...
You can shape download to server on ingress using IFB:
http://linux-net.osdl.org/index.php?title=IFB
IMQ could also be helpfull, but IFB is included in vanilla kernels. IMQ
isn't and never will be.
Cheers,
Marek Kierdelewicz
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [LARTC] htb : server trafficcontrol
2007-09-15 11:36 [LARTC] htb : server trafficcontrol Mateusz Matusiak
2007-09-15 13:37 ` Jens Thiele
2007-09-15 15:42 ` Marek Kierdelewicz
@ 2007-09-15 16:43 ` Jens Thiele
2007-09-16 7:48 ` Marek Kierdelewicz
2007-09-16 15:31 ` Jens Thiele
4 siblings, 0 replies; 6+ messages in thread
From: Jens Thiele @ 2007-09-15 16:43 UTC (permalink / raw)
To: lartc
On 15 Sep 2007, marek@piasta.pl wrote:
> You can shape download to server on ingress using IFB:
> http://linux-net.osdl.org/index.php?title=IFB
But AFAIK at the moment practically only if there is no NAT involved (or
if you do not want to classify de-nated traffic).
Any news regarding this problem?
Greetings
Jens
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [LARTC] htb : server trafficcontrol
2007-09-15 11:36 [LARTC] htb : server trafficcontrol Mateusz Matusiak
` (2 preceding siblings ...)
2007-09-15 16:43 ` Jens Thiele
@ 2007-09-16 7:48 ` Marek Kierdelewicz
2007-09-16 15:31 ` Jens Thiele
4 siblings, 0 replies; 6+ messages in thread
From: Marek Kierdelewicz @ 2007-09-16 7:48 UTC (permalink / raw)
To: lartc
>But AFAIK at the moment practically only if there is no NAT involved
>(or if you do not want to classify de-nated traffic).
>Any news regarding this problem?
Suppose we have simple router with upstream interface connected
to internet (eth0) and downstream interface connected to lan (eth1).
Lan uses private addressing so there is NAT rule used for traffic
leaving eth0.
You can redirect lan->internet traffic from ingress qdisc
of eth1 to ifb0. Traffic on ifb0 will be in "before-nat" state, so
private address based shaping will be possible. So no need for
classifying de-nated traffic.
Some people here on lartc list shared opinions that shaping in ingress
is not effective. It worked for me well on routers with hundreds of
clients.
Cheers,
Marek Kierdelewicz
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [LARTC] htb : server trafficcontrol
2007-09-15 11:36 [LARTC] htb : server trafficcontrol Mateusz Matusiak
` (3 preceding siblings ...)
2007-09-16 7:48 ` Marek Kierdelewicz
@ 2007-09-16 15:31 ` Jens Thiele
4 siblings, 0 replies; 6+ messages in thread
From: Jens Thiele @ 2007-09-16 15:31 UTC (permalink / raw)
To: lartc
On 16 Sep 2007, marek@piasta.pl wrote:
> Suppose we have simple router with upstream interface connected
> to internet (eth0) and downstream interface connected to lan (eth1).
> Lan uses private addressing so there is NAT rule used for traffic
> leaving eth0.
>
> You can redirect lan->internet traffic from ingress qdisc
> of eth1 to ifb0. Traffic on ifb0 will be in "before-nat" state, so
> private address based shaping will be possible. So no need for
> classifying de-nated traffic.
Yes, this is of course possible. But then you don't shape the traffic
from/to the server itself which is what the original poster wants to do.
> Some people here on lartc list shared opinions that shaping in ingress
> is not effective. It worked for me well on routers with hundreds of
> clients.
It works for me quite well, too. (And IMHO would work really well if ECN
would be in widespread use)
(using IMQ + kernel 2.6.18 - as long as nobody floods me with UDP
packets ;-)
Greetings
Jens
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-09-16 15:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-15 11:36 [LARTC] htb : server trafficcontrol Mateusz Matusiak
2007-09-15 13:37 ` Jens Thiele
2007-09-15 15:42 ` Marek Kierdelewicz
2007-09-15 16:43 ` Jens Thiele
2007-09-16 7:48 ` Marek Kierdelewicz
2007-09-16 15:31 ` Jens Thiele
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.