* [LARTC] Shapping
@ 2003-08-26 10:24 Jose Celestino
2003-08-26 17:17 ` Stef Coene
0 siblings, 1 reply; 2+ messages in thread
From: Jose Celestino @ 2003-08-26 10:24 UTC (permalink / raw)
To: lartc
Hi.
Is it possible to do shapping with on demand VCs with HTB? I mean, is it
possible to create a pair, without human intervention, for every
connection IP 1.2.3.4:
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 5kbps ceil 10kbps
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dtp 1.2.3.4 flowid 1:11
What I'm trying to achieve is to limit the download to a determined rate
on every connection, the application doesn't support it so I need to it
this way (without spending tons of $$$ on a comercial shapper).
--
Jose Celestino | http://xpto.org/~japc/files/japc-pgpkey.asc
----------------------------------------------------------------
"Lately, the only thing keeping me from becoming a serial killer is
my distaste for manual labor." -- Dilbert
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] Shapping
2003-08-26 10:24 [LARTC] Shapping Jose Celestino
@ 2003-08-26 17:17 ` Stef Coene
0 siblings, 0 replies; 2+ messages in thread
From: Stef Coene @ 2003-08-26 17:17 UTC (permalink / raw)
To: lartc
On Tuesday 26 August 2003 12:24, Jose Celestino wrote:
> Hi.
>
> Is it possible to do shapping with on demand VCs with HTB? I mean, is it
> possible to create a pair, without human intervention, for every
> connection IP 1.2.3.4:
>
> tc class add dev eth0 parent 1:1 classid 1:11 htb rate 5kbps ceil 10kbps
> tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dtp
> 1.2.3.4 flowid 1:11
>
> What I'm trying to achieve is to limit the download to a determined rate
> on every connection, the application doesn't support it so I need to it
> this way (without spending tons of $$$ on a comercial shapper).
There is a patch for the kernel/tc so you can add a wrrr qdisc. This qdisc
has a builtin filter and creates a class for each ip address it sees. I
never tried this qdisc, but you can find it on
http://wipl-wrr.sourceforge.net/
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-26 17:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-26 10:24 [LARTC] Shapping Jose Celestino
2003-08-26 17:17 ` Stef Coene
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.