All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] HTB in a bridge+trunk
@ 2003-09-22 11:37 kristiadi himawan
  2003-09-22 18:10 ` Stef Coene
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: kristiadi himawan @ 2003-09-22 11:37 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 2364 bytes --]

Dear All,

Sorry if my question here ever asked before by someone else.
I have configuration like this :
                     |---------trunking------|
                    V  eth0         eth1  V
         router<--->bridge with htb<--->switch
202.xx.xx.227

#!/bin/bash
tc qdisc del dev eth0 root handle 1:
tc qdisc add dev eth0 root handle 1: htb default 10
tc class add dev eth0 parent 1: classid 1:1 htb rate 32kbit ceil 32kbit
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 24kbit ceil 24kbit
tc class add dev eth0 parent 1:1 classid 1:20 htb rate 8kbit ceil 8kbit
tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst 202.xx.xx.227 flowid 1:20

I already patch kernel and tc with htb3.6-020525.tgz from htb website.

Here is the result when there's traffic to 202.xx.xx.227, it should go to 1:20, but fill class 1:10 (red sign).

### eth0: queueing disciplines
qdisc htb 1: r2q 10 default 10 direct_packets_stat 0
 Sent 584256 bytes 881 pkts (dropped 0, overlimits 1113)
 backlog 35p

### eth0: traffic classes
class htb 1:1 root rate 32Kbit ceil 32Kbit burst 1639b cburst 14704b
 Sent 554186 bytes 846 pkts (dropped 0, overlimits 0)
 rate 3040bps 3pps
 lended: 0 borrowed: 0 giants: 0
 tokens: -7997 ctokens: 8145
class htb 1:10 parent 1:1 prio 0 rate 24Kbit ceil 24Kbit burst 1629b cburst 1629b
 Sent 584256 bytes 881 pkts (dropped 0, overlimits 0)
 rate 3040bps 3pps backlog 35p
 lended: 846 borrowed: 0 giants: 0
 tokens: -447876 ctokens: -447876
class htb 1:20 parent 1:1 prio 0 rate 8Kbit ceil 8Kbit burst 1609b cburst 1609b
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 1287999 ctokens: 1287999

### eth0: filtering rules
filter parent 1: protocol ip pref 1 u32
filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:20
  match ca2ba0e3/ffffffff at 16


Why when i put htb on eth0 to filter class 1:20 the shaping always goes to default class 1:10 not 1:20 class, the same problem occur when i put htb on eth1?
I already patch the kernel with 3c95x vlan patch too.
Any idea why the filter not working properly or i need another patch to get u32 working in bridging+trunking or i must replace u32 filter with fwmark from ebtables?

Thnx.

[-- Attachment #2: Type: text/html, Size: 3764 bytes --]

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

end of thread, other threads:[~2003-09-24  9:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-22 11:37 [LARTC] HTB in a bridge+trunk kristiadi himawan
2003-09-22 18:10 ` Stef Coene
2003-09-23  3:05 ` Rio Martin
2003-09-24  9:07 ` Kristiadi Himawan

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.