* [Qdisc] Prioritizing traffic per vlan using qdisc.
@ 2008-08-12 0:48 Pravin Bathija
2008-08-12 0:56 ` Pravin Bathija
2008-08-12 1:17 ` Stephen Hemminger
0 siblings, 2 replies; 4+ messages in thread
From: Pravin Bathija @ 2008-08-12 0:48 UTC (permalink / raw)
To: netdev
Using Linux 2.6.23 I want to create multiple Vlans for voice, data,
video etc. The requirement is to prioritize each vlan on the ingress and
egress. I am looking at qdisc to do this however without success. Could
you please advise is there is a way to do this using qdisc tc(traffic
control) commands. If not - is there another way to do this in Linux ?
Any help would be greatly appreciated.
Thanks,
Pravin
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [Qdisc] Prioritizing traffic per vlan using qdisc.
2008-08-12 0:48 [Qdisc] Prioritizing traffic per vlan using qdisc Pravin Bathija
@ 2008-08-12 0:56 ` Pravin Bathija
2008-08-12 1:17 ` Stephen Hemminger
1 sibling, 0 replies; 4+ messages in thread
From: Pravin Bathija @ 2008-08-12 0:56 UTC (permalink / raw)
To: netdev
For example if I create 3 vlans on interface 0 : eth0.1, eth0.2 and
eth0.3 I want to assign them priorities of 1, 2 and 3 respectively (1
being the highest and 3 the lowest)
-----Original Message-----
From: netdev-owner@vger.kernel.org [mailto:netdev-owner@vger.kernel.org]
On Behalf Of Pravin Bathija
Sent: Monday, August 11, 2008 5:48 PM
To: netdev@vger.kernel.org
Subject: [Qdisc] Prioritizing traffic per vlan using qdisc.
Using Linux 2.6.23 I want to create multiple Vlans for voice, data,
video etc. The requirement is to prioritize each vlan on the ingress and
egress. I am looking at qdisc to do this however without success. Could
you please advise is there is a way to do this using qdisc tc(traffic
control) commands. If not - is there another way to do this in Linux ?
Any help would be greatly appreciated.
Thanks,
Pravin
--
To unsubscribe from this list: send the line "unsubscribe netdev" in the
body of a message to majordomo@vger.kernel.org More majordomo info at
http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qdisc] Prioritizing traffic per vlan using qdisc.
2008-08-12 0:48 [Qdisc] Prioritizing traffic per vlan using qdisc Pravin Bathija
2008-08-12 0:56 ` Pravin Bathija
@ 2008-08-12 1:17 ` Stephen Hemminger
2008-08-13 17:05 ` Pravin Bathija
1 sibling, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2008-08-12 1:17 UTC (permalink / raw)
To: Pravin Bathija; +Cc: netdev
On Mon, 11 Aug 2008 17:48:22 -0700
"Pravin Bathija" <pbathija@amcc.com> wrote:
> Using Linux 2.6.23 I want to create multiple Vlans for voice, data,
> video etc. The requirement is to prioritize each vlan on the ingress and
> egress. I am looking at qdisc to do this however without success. Could
> you please advise is there is a way to do this using qdisc tc(traffic
> control) commands. If not - is there another way to do this in Linux ?
> Any help would be greatly appreciated.
>
> Thanks,
> Pravin
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
For 2.6.25, an addition to the tc meta match to allow matching on
vlan tag was added. Using this it is possible to use meta match
to convert tag -> flowid then use the flowid with a priority
(or htb) queue.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [Qdisc] Prioritizing traffic per vlan using qdisc.
2008-08-12 1:17 ` Stephen Hemminger
@ 2008-08-13 17:05 ` Pravin Bathija
0 siblings, 0 replies; 4+ messages in thread
From: Pravin Bathija @ 2008-08-13 17:05 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: netdev
-----Original Message-----
From: Stephen Hemminger [mailto:stephen.hemminger@vyatta.com]
Sent: Monday, August 11, 2008 6:17 PM
To: Pravin Bathija
Cc: netdev@vger.kernel.org
Subject: Re: [Qdisc] Prioritizing traffic per vlan using qdisc.
On Mon, 11 Aug 2008 17:48:22 -0700
"Pravin Bathija" <pbathija@amcc.com> wrote:
> Using Linux 2.6.23 I want to create multiple Vlans for voice, data,
> video etc. The requirement is to prioritize each vlan on the ingress
> and egress. I am looking at qdisc to do this however without success.
> Could you please advise is there is a way to do this using qdisc
> tc(traffic
> control) commands. If not - is there another way to do this in Linux ?
> Any help would be greatly appreciated.
>
> Thanks,
> Pravin
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org More majordomo info
> at http://vger.kernel.org/majordomo-info.html
> For 2.6.25, an addition to the tc meta match to allow matching on vlan
tag was added. Using this it is possible to use meta match to> convert
tag -> flowid then use the flowid with a priority (or htb) queue.
Thanks for your input Stephen. So here is the problem: I created 3 vlans
on "eth1" interface with the following ips
eth1.4: 192.152.0.11
eth1.5: 192.154.0.11
eth1.6: 192.156.0.11
Now I created an ingress qdisc on eth1 and defined filters in the
following way. The filter configuration below gives priority to packets
received from subnet 192.152.0.0 then 192.154.0.0 and finally
192.156.0.0
tc qdisc add dev eth1 ingress
tc filter add dev eth1 parent ffff: protocol ip prio 1 u32 match ip src
192.152.0.0/24 flowid :1
tc filter add dev eth1 parent ffff: protocol ip prio 2 u32 match ip src
192.154.0.0/24 flowid :2
tc filter add dev eth1 parent ffff: protocol ip prio 3 u32 match ip src
192.156.0.0/24 flowid :3
# tc qdisc show eth1
qdisc ingress ffff: parent ffff:fff1 ----------------
When I send concurrent traffic to these 3 interfaces using "ttcp" all of
the above complete reception of data at the same time. With the above
filter I would expect flowid :1 to complete receiving data before
others. I also notice that when I run the following command "tc filter
show dev eth1" it does not list any filters. My linux kernel is compiled
with CONFIG_NET_SCHED.
Am I missing something here ? Please advise.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-08-13 17:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-12 0:48 [Qdisc] Prioritizing traffic per vlan using qdisc Pravin Bathija
2008-08-12 0:56 ` Pravin Bathija
2008-08-12 1:17 ` Stephen Hemminger
2008-08-13 17:05 ` Pravin Bathija
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).