[LARTC] using tc on xen

Anand xen.mails at gmail.com
Sat Jan 28 19:37:31 CET 2006


Hi Everyone!

My knowledge of tc is very much limited and i got introduced to it by my
need for traffic limiting on xen based VM's. For every VM there is a
interface. The network is a bridged network.

Has any one tried out something like this ?

I tried the below script to limit download on an interface however it didn't
seem to work. Still the interface is able to download at full speeds.

   1. vm01 ==> is virtual interface
------------------------------------------------------------------------
#!/bin/sh
TC=/sbin/tc
DNLD=150Kbit   # DOWNLOAD Limit
DWEIGHT=15Kbit # DOWNLOAD Weight Factor

$TC qdisc add dev vm01 root handle 11: cbq bandwidth 100Mbit avpkt 1000 mpu 64
$TC class add dev vm01 parent 11:0 classid 11:1 cbq rate $DNLD weight
$DWEIGHT allot 1514 prio 1 avpkt 1000 bounded
$TC filter add dev vm01 parent 11:0 protocol ip handle 4 fw flowid 11:1


Any help would be highly appreciated.

--

regards,

Anand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ds9a.nl/pipermail/lartc/attachments/20060129/ae8ea951/attachment.htm


More information about the LARTC mailing list