Skip to contentSkip to conversation

Shapping

LARTC Jose Celestino 2 participants 2 messages Aug 26, 2003

lore
Share & tools
lore
#0 lore raw

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).

Signature · 7 lines
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#1 lore raw
Quoted 6 lines · Jose Celestino

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:

Quoted 7 lines

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

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/