All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] tcf_action_destroy destroying
@ 2006-01-25  2:41 bend chen
  2006-01-25 15:20 ` gypsy
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bend chen @ 2006-01-25  2:41 UTC (permalink / raw)
  To: lartc


[-- Attachment #1.1: Type: text/plain, Size: 2846 bytes --]

Hi,lartc
   
  I used iproute-060110 with iptables1.3.4 on gentoo 2005r1 kernel 2.6.14-5.
  I find some error messages in system logfile:
   
  HTB: quantum of class 10001 is big. Consider r2q change.
HTB: quantum of class 10010 is big. Consider r2q change.
tcf_action_init_1: successfull police
HTB: quantum of class 20001 is big. Consider r2q change.
HTB: quantum of class 20020 is big. Consider r2q change.
HTB: quantum of class 10001 is big. Consider r2q change.
HTB: quantum of class 10010 is big. Consider r2q change.
tcf_action_destroy destroying dcf0ba60 next 00000000
tcf_action_init_1: successfull police
HTB: quantum of class 20001 is big. Consider r2q change.
HTB: quantum of class 20020 is big. Consider r2q change.
   
  and this is my script:
   
  /root/ct/sbin/ct qdisc del dev eth0 root ;
/root/ct/sbin/ct qdisc del dev eth0 ingress ;
/root/ct/sbin/ct qdisc add dev eth0 root handle 1: htb default 10 r2q 1;
/root/ct/sbin/ct class add dev eth0 parent 1: classid 1:1  htb rate 10000kbps;
/root/ct/sbin/ct class add dev eth0 parent 1:1 classid 1:10 htb rate 9990kbps ceil 10000kbps;
/root/ct/sbin/ct class add dev eth0 parent 1:1 classid 1:11 htb rate 10kbps;
/root/ct/sbin/ct qdisc add dev eth0 parent 1:10 handle 13: sfq perturb 5;
/root/ct/sbin/ct qdisc add dev eth0 parent 1:11 handle 14: sfq perturb 5;
/root/ct/sbin/ct filter add dev eth0 parent 1: protocol ip handle 1 fw classid 1:10;
/root/ct/sbin/ct filter add dev eth0 parent 1: protocol ip handle 2 fw classid 1:11;
  /root/ct/sbin/ct qdisc del dev eth1 root;
/root/ct/sbin/ct qdisc add dev eth1 root handle 2: htb default 20 r2q 1;
/root/ct/sbin/ct class add dev eth1 parent 2: classid 2:1 htb rate 10000kbps;
/root/ct/sbin/ct class add dev eth1 parent 2:1 classid 2:20 htb rate 990kbps ceil 10000kbps;
/root/ct/sbin/ct class add dev eth1 parent 2:1 classid 2:21 htb rate 100kbps;
/root/ct/sbin/ct qdisc add dev eth1 parent 2:20 handle 15: sfq perturb 5;
/root/ct/sbin/ct qdisc add dev eth1 parent 2:21 handle 16: sfq perturb 5;
/root/ct/sbin/ct filter add dev eth1 parent 2: protocol ip handle 3 fw classid 2:20;
/root/ct/sbin/ct filter add dev eth1 parent 2: protocol ip handle 4 fw classid 2:21;
iptables -t mangle -F;
iptables -F;
iptables -t mangle -A FORWARD -m physdev --physdev-in eth1 --physdev-out eth0 -m layer7 --l7proto bittorrent -j  MARK  --set-mark 0x2 ;
iptables -t mangle -A FORWARD -m physdev --physdev-in eth1 --physdev-out eth0 -m layer7 --l7proto bittorrent -j  RETURN;
iptables -t mangle -A FORWARD -m physdev --physdev-in eth0 --physdev-out eth1 -m layer7 --l7proto bittorrent -j  MARK  --set-mark 0x4 ;
iptables -t mangle -A FORWARD -m physdev --physdev-in eth0 --physdev-out eth1 -m layer7 --l7proto bittorrent -j RETURN;

  thanks your help.

		
---------------------------------
 雅虎1G免费邮箱百分百防垃圾信
 雅虎助手-搜索、杀毒、防骚扰  

[-- Attachment #1.2: Type: text/html, Size: 3228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] tcf_action_destroy destroying
  2006-01-25  2:41 [LARTC] tcf_action_destroy destroying bend chen
@ 2006-01-25 15:20 ` gypsy
  2006-01-26  8:35 ` bend chen
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: gypsy @ 2006-01-25 15:20 UTC (permalink / raw)
  To: lartc

bend chen wrote:
> 
> Hi,lartc
> 
> I used iproute-060110 with iptables1.3.4 on gentoo 2005r1 kernel
> 2.6.14-5.
> I find some error messages in system logfile:
> 
> HTB: quantum of class 10001 is big. Consider r2q change.
> HTB: quantum of class 10010 is big. Consider r2q change.
> tcf_action_init_1: successfull police
> HTB: quantum of class 20001 is big. Consider r2q change.
> HTB: quantum of class 20020 is big. Consider r2q change.
> HTB: quantum of class 10001 is big. Consider r2q change.
> HTB: quantum of class 10010 is big. Consider r2q change.
> tcf_action_destroy destroying dcf0ba60 next 00000000
> tcf_action_init_1: successfull police
> HTB: quantum of class 20001 is big. Consider r2q change.
> HTB: quantum of class 20020 is big. Consider r2q change.
> 
> and this is my script:
> 
> /root/ct/sbin/ct qdisc del dev eth0 root ;
> /root/ct/sbin/c! t qdisc del dev eth0 ingress ;
> /root/ct/sbin/ct qdisc add dev eth0 root handle 1: htb default 10 r2q
> 1;
> /root/ct/sbin/ct class add dev eth0 parent 1: classid 1:1  htb rate
> 10000kbps;
> /root/ct/sbin/ct class add dev eth0 parent 1:1 classid 1:10 htb rate
> 9990kbps ceil 10000kbps;
> /root/ct/sbin/ct class add dev eth0 parent 1:1 classid 1:11 htb rate
> 10kbps;
> /root/ct/sbin/ct qdisc add dev eth0 parent 1:10 handle 13: sfq perturb
> 5;
> /root/ct/sbin/ct qdisc add dev eth0 parent 1:11 handle 14: sfq perturb
> 5;
> /root/ct/sbin/ct filter add dev eth0 parent 1: protocol ip handle 1 fw
> classid 1:10;
> /root/ct/sbin/ct filter add dev eth0 parent 1: protocol ip handle 2 fw
> classid 1:11;
> /root/ct/sbin/ct qdisc del dev eth1 root;
> /root/ct/sbin/ct qdisc add dev eth1 root handle 2: htb default 20 r2q
> 1;

> /root/ct/sbin/ct class add dev eth1 parent 2: classid 2:1 htb rate
> 10000kbps;

This is HUGE; you cannot mean 10,000Kbit!??
--
gypsy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re:Re: [LARTC] tcf_action_destroy destroying
  2006-01-25  2:41 [LARTC] tcf_action_destroy destroying bend chen
  2006-01-25 15:20 ` gypsy
@ 2006-01-26  8:35 ` bend chen
  2006-01-28  3:36 ` gypsy
  2006-01-28  6:15 ` bend chen
  3 siblings, 0 replies; 5+ messages in thread
From: bend chen @ 2006-01-26  8:35 UTC (permalink / raw)
  To: lartc


[-- Attachment #1.1: Type: text/plain, Size: 2150 bytes --]

hi.
   
   
  >gypsy worte:---------------------------
  >This is HUGE; you cannot mean 10,000Kbit!??
  ???,my script 10000Kbps is mean10Mbps.
  Iproute can not support 10Mbps?
   
   
   
  >bend chen wrote:
> 
> Hi,lartc
> 
> I used iproute-060110 with iptables1.3.4 on gentoo 2005r1 kernel
> 2.6.14-5.
> I find some error messages in system logfile:
> 
> HTB: quantum of class 10001 is big. Consider r2q change.
> HTB: quantum of class 10010 is big. Consider r2q change.
> tcf_action_init_1: successfull police
> HTB: quantum of class 20001 is big. Consider r2q change.
> HTB: quantum of class 20020 is big. Consider r2q change.
> HTB: quantum of class 10001 is big. Consider r2q change.
> HTB: quantum of class 10010 is big. Consider r2q change.
> tcf_action_destroy destroying dcf0ba60 next 00000000
> tcf_action_init_1: successfull police
> HTB: quantum of class 20001 is big. Consider r2q change.
> HTB: quantum of class 20020 is big. Consider r2q change.
> 
> and this is my script:
> 
> /root/ct/sbin/ct qdisc del dev eth0 root ;
> /root/ct/sbin/c! t qdisc del dev eth0 ingress ;
> /root/ct/sbin/ct qdisc add dev eth0 root handle 1: htb default 10 r2q
> 1;
> /root/ct/sbin/ct class add dev eth0 parent 1: classid 1:1  htb rate
> 10000kbps;
> /root/ct/sbin/ct class add dev eth0 parent 1:1 classid 1:10 htb rate
> 9990kbps ceil 10000kbps;
> /root/ct/sbin/ct class add dev eth0 parent 1:1 classid 1:11 htb rate
> 10kbps;
> /root/ct/sbin/ct qdisc add dev eth0 parent 1:10 handle 13: sfq perturb
> 5;
> /root/ct/sbin/ct qdisc add dev eth0 parent 1:11 handle 14: sfq perturb
> 5;
> /root/ct/sbin/ct filter add dev eth0 parent 1: protocol ip handle 1 fw
> classid 1:10;
> /root/ct/sbin/ct filter add dev eth0 parent 1: protocol ip handle 2 fw
> classid 1:11;
> /root/ct/sbin/ct qdisc del dev eth1 root;
> /root/ct/sbin/ct qdisc add dev eth1 root handle 2: htb default 20 r2q
> 1;
  > /root/ct/sbin/ct class add dev eth1 parent 2: classid 2:1 htb rate
> 10000kbps;
  --------------------------
  >This is HUGE; you cannot mean 10,000Kbit!??
--
gypsy

		
---------------------------------
 雅虎1G免费邮箱百分百防垃圾信
 雅虎助手-搜索、杀毒、防骚扰  

[-- Attachment #1.2: Type: text/html, Size: 2703 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] tcf_action_destroy destroying
  2006-01-25  2:41 [LARTC] tcf_action_destroy destroying bend chen
  2006-01-25 15:20 ` gypsy
  2006-01-26  8:35 ` bend chen
@ 2006-01-28  3:36 ` gypsy
  2006-01-28  6:15 ` bend chen
  3 siblings, 0 replies; 5+ messages in thread
From: gypsy @ 2006-01-28  3:36 UTC (permalink / raw)
  To: lartc

bend chen wrote:
> 
> hi.
> 
> 
> >gypsy worte:---------------------------
> >This is HUGE; you cannot mean 10,000Kbit!??
> ???,my script 10000Kbps is mean10Mbps.
> Iproute can not support 10Mbps?

Sure, yes it can handle 10Mbps - and 100Mbps too.  But the reason you
are getting the r2q error message is that you set a much smaller rate
for the children.

I stole this from a previous posting to LARTC and have never actually
used it, but try something like this, or search the archives for
messages containing "LAN" and "Klauer" to see from whom it was stolen ;)

DEV=eth1

# 100000 kbit ~= 100Mbit.
# Lower this value if your LAN doesn't actually make 100MBit.
LAN_SPEED\x100000
LAN_SUBNET\x192.168.223.0

# install root HTB, point default traffic to 1:20:
$BIN_TC qdisc add dev $DEV root handle 1: htb default 20

# Add fat class.
$BIN_TC class add dev $DEV parent 1: classid 1:2 htb rate
${LAN_SPEED}kbit quantum 1500

# Add local lan child.
$BIN_TC class add dev $DEV parent 1:2 classid 1:3 htb rate
$(($LAN_SPEED-$UPLINK))kbit quantum 1500

$BIN_TC class add dev $DEV parent 1:2 classid 1:1 htb rate ${UPLINK}kbit
burst 6k

# high prio class 1:10:
$BIN_TC class add dev $DEV parent 1:1 classid 1:10 htb rate
${UPLINK}kbit \
   burst 6k prio 1

# bulk & default class 1:20
$BIN_TC class add dev $DEV parent 1:1 classid 1:20 htb rate
$[9*$UPLINK/10]kbit \
   burst 6k prio 2
$BIN_TC class add dev $DEV parent 1:1 classid 1:30 htb rate
$[8*$UPLINK/10]kbit \
   burst 6k prio 2

# attach ingress policer:

$BIN_TC qdisc add dev $DEV handle ffff: ingress

# exclude LAN traffic
$BIN_TC filter add dev $DEV parent ffff: protocol ip prio 1 u32 \
    match ip src $LAN_SUBNET/24 \
    match ip dst $LAN_SUBNET/24 \
    flowid :1


> >bend chen wrote:
> >
> > Hi,lartc
> >
> > I used iproute-060110 with iptables1.3.4 on gentoo 2005r1 kernel
> > 2.6.14-5.
> > I find some error messages in system logfile:
> >
> > HTB: quantum of class 10001 is big. Consider r2q change.
> > HTB: quantum of class 10010 is big. Consider r2q change.
> > tcf_action_init_1: successfull police
> > HTB: quantum of class 20001 is big. Consider r2q change.
> > HTB: quantum of class 20020 is big. Consider r2q change.
> > HTB: quantum of class 10001 is big. Consider r2q change.
> > HTB: quantum of class 10010 is big. Consider r2q change.>
> tcf_action_destroy destroying dcf0ba60 next 00000000
> > tcf_action_init_1: successfull police
> > HTB: quantum of class 20001 is big. Consider r2q change.
> > HTB: quantum of class 20020 is big. Consider r2q change.
> >
> > and this is my script:
> >
> > /root/ct/sbin/ct qdisc del dev eth0 root ;
> > /root/ct/sbin/c! t qdisc del dev eth0 ingress ;
> > /root/ct/sbin/ct qdisc add dev eth0 root handle 1: htb default 10
> r2q
> > 1;
> > /root/ct/sbin/ct class add dev eth0 parent 1: classid 1:1  htb rate
> > 10000kbps;
> > /root/ct/sbin/ct class add dev eth0 parent 1:1 classid 1:10 htb rate
> > 9990kbps ceil 10000kbps;
> > /root/ct/sbin/ct class add dev eth0 parent 1:1 classid 1:11 htb rate
> > 10kbps;
> > /root/ct/sbin/ct qdisc add dev eth0 parent 1:10 handle 13: sfq
> perturb
> > 5;
> > /root/ct/sbin/ct qdisc add dev eth0 parent 1:11 handle 14: sfq
> perturb
> > 5;
> > /root/ct/sbin/ct filter! add dev eth0 parent 1: protocol ip handle 1
> fw
> > classid 1:10;
> > /root/ct/sbin/ct filter add dev eth0 parent 1: protocol ip handle 2
> fw
> > classid 1:11;
> > /root/ct/sbin/ct qdisc del dev eth1 root;
> > /root/ct/sbin/ct qdisc add dev eth1 root handle 2: htb default 20
> r2q
> > 1;
> > /root/ct/sbin/ct class add dev eth1 parent 2: classid 2:1 htb rate
> > 10000kbps;
> --------------------------
> >This is HUGE; you cannot mean 10,000Kbit!??
> --
> gypsy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re:Re: [LARTC] tcf_action_destroy destroying
  2006-01-25  2:41 [LARTC] tcf_action_destroy destroying bend chen
                   ` (2 preceding siblings ...)
  2006-01-28  3:36 ` gypsy
@ 2006-01-28  6:15 ` bend chen
  3 siblings, 0 replies; 5+ messages in thread
From: bend chen @ 2006-01-28  6:15 UTC (permalink / raw)
  To: lartc


[-- Attachment #1.1: Type: text/plain, Size: 156 bytes --]

Thanks gypsy's help.
   
  I will test your script :)
   

		
---------------------------------
 雅虎1G免费邮箱百分百防垃圾信
 雅虎助手-搜索、杀毒、防骚扰  

[-- Attachment #1.2: Type: text/html, Size: 308 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-01-28  6:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-25  2:41 [LARTC] tcf_action_destroy destroying bend chen
2006-01-25 15:20 ` gypsy
2006-01-26  8:35 ` bend chen
2006-01-28  3:36 ` gypsy
2006-01-28  6:15 ` bend chen

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.