lartc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "kristiadi himawan" <kristiadi_himawan@dtp.net.id>
To: lartc@vger.kernel.org
Subject: [LARTC] HTB in a bridge+trunk
Date: Mon, 22 Sep 2003 11:37:43 +0000	[thread overview]
Message-ID: <marc-lartc-106423008619537@msgid-missing> (raw)

[-- 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 --]

             reply	other threads:[~2003-09-22 11:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-22 11:37 kristiadi himawan [this message]
2003-09-22 18:10 ` [LARTC] HTB in a bridge+trunk Stef Coene
2003-09-23  3:05 ` Rio Martin
2003-09-24  9:07 ` Kristiadi Himawan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-106423008619537@msgid-missing \
    --to=kristiadi_himawan@dtp.net.id \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).