All of lore.kernel.org
 help / color / mirror / Atom feed
* Fw: shaping vlans - revisited
@ 2011-02-03 17:29 Ethy H. Brito
  2011-02-03 18:50 ` Andrew Beverley
  0 siblings, 1 reply; 21+ messages in thread
From: Ethy H. Brito @ 2011-02-03 17:29 UTC (permalink / raw)
  To: netfilter

Date: Thu, 3 Feb 2011 15:28:59 -0200
From: "Ethy H. Brito" <ethy.brito@inexo.com.br>
To: Marek Kierdelewicz <marek@piasta.pl>
Subject: Re: shaping vlans - revisited


On Thu, 3 Feb 2011 16:46:53 +0100
Marek Kierdelewicz <marek@piasta.pl> wrote:

> >Hi All
> 
> Hi,
> 
> >I can see the counters increase (tc -s ...) for classid 1:2345 (eth0)
> >but they are zero for classid 2:2345 (eth1 - which the vlans are
> >attached in)
> 
> Are you seeing any traffic on root class on eth1? 

Yes I am.

> What's the output of following commang:
> 
> tc -s -d class sh dev eth1|grep -A 5 'root'

as requested:

# tc -s -d class sh dev eth1|grep -A 5 'root'
class htb 2:1 root rate 102400Kbit ceil 102400Kbit burst 52992b/8 mpu 0b overhead 0b cburst 52992b/8 mpu 0b overhead 0b level 7 
 Sent 8736060613 bytes 26878684 pkt (dropped 0, overlimits 0 requeues 0) 
 rate 3463Kbit 1547pps backlog 0b 0p requeues 0 
 lended: 0 borrowed: 0 giants: 0
 tokens: 4039 ctokens: 4039



-- 

Ethy H. Brito         /"\
InterNexo Ltda.       \ /  CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
+55 (12) 3797-6860     X   ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
S.J.Campos - Brasil   / \ 
 
PGP key: http://www.inexo.com.br/~ethy/0xC3F222A0.asc

^ permalink raw reply	[flat|nested] 21+ messages in thread
* shaping vlans - revisited
@ 2011-02-03 15:38 Ethy H. Brito
  2011-02-03 15:46 ` Marek Kierdelewicz
  0 siblings, 1 reply; 21+ messages in thread
From: Ethy H. Brito @ 2011-02-03 15:38 UTC (permalink / raw)
  To: netfilter


Hi All

I posted on 6th january about shaping vlans and got the answer bellow.

I may be wrong but I did some tests and it seems to me the the answer is not
correct.

I have this setup (partial):
The router where these rules are set is a border passthru router
(eth0=inner , eth1=outer interface with dozens of vlans attached).

/sbin/tc class add dev eth0 parent 1:23 classid 1:2345 htb prio 1 \
	rate 201kibit ceil 2024kibit
/sbin/tc filter add dev eth0 protocol ip parent 1: pref 3 \
        u32 match mark 0x2626 0x0000ffff \
        flowid 1:2345

/sbin/tc class add dev eth1 parent 2:23 classid 2:2345 htb prio 1 
	rate 201kibit ceil 2024kibit
/sbin/tc filter add dev eth1 protocol ip parent 2: pref 3 \
        u32 match mark 0x2626 0x0000ffff \
        flowid 2:2345

The vlans are attached only to eth1.

I can see the counters increase (tc -s ...) for classid 1:2345 (eth0) but
they are zero for classid 2:2345 (eth1 - which the vlans are attached in)

If the first answer to my last post is correct (shaping ethX will
automatically shape its attached vlans - which is the behavior I want)
what is wrong with this setup?

Regards

Ethy


List:       netfilter
Subject:    Re: shaping vlans
From:       Marek Kierdelewicz <marek () piasta ! pl>
Date:       2011-01-06 19:59:04
Message-ID: 20110106205904.4f248721 () kuguar
[Download message RAW]

>Hi all

Hi,

>question: if I shape the traffic (using "tc {qdisc,class,filter} add
>dev ...") through some ethX that has some 802.1q vlans attached to it,
>the vlans traffic will be also shaped or I will have to attach one
>qdisc to each vlan??

Traffic going out throu vlan interfaces will get shaped by qdisc on
the base interface. If you add qdisc on both ethX AND ethX.Y, then
traffic will be shaped on both.

If you want to do selective per vlan shaping then add qdiscs to ethX.Y
interfaces.

best regards,
Marek Kierdelewicz

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

end of thread, other threads:[~2011-02-05 23:26 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-03 17:29 Fw: shaping vlans - revisited Ethy H. Brito
2011-02-03 18:50 ` Andrew Beverley
2011-02-03 20:01   ` Ethy H. Brito
2011-02-04  2:59     ` Andrew Beverley
2011-02-04  7:43       ` Marek Kierdelewicz
2011-02-04 14:05       ` Ethy H. Brito
2011-02-04 14:24         ` Andrew Beverley
2011-02-04 16:24           ` Ethy H. Brito
2011-02-05  2:10             ` Andrew Beverley
2011-02-05 12:46             ` Marek Kierdelewicz
2011-02-05 14:42               ` Ethy H. Brito
2011-02-05 14:52                 ` Marek Kierdelewicz
2011-02-05 16:32                   ` Ethy H. Brito
2011-02-05 16:41                     ` Marek Kierdelewicz
2011-02-05 23:26                       ` Ethy H. Brito
2011-02-04  3:28     ` Jan Engelhardt
2011-02-04  3:42     ` Grant Taylor
2011-02-04 14:06       ` Ethy H. Brito
2011-02-05 13:56       ` Ethy H. Brito
  -- strict thread matches above, loose matches on Subject: below --
2011-02-03 15:38 Ethy H. Brito
2011-02-03 15:46 ` Marek Kierdelewicz

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.