* [LARTC] About ingress
@ 2003-02-11 16:57 Nelson Guedes Paulo Junior
2003-02-11 17:17 ` Stef Coene
0 siblings, 1 reply; 2+ messages in thread
From: Nelson Guedes Paulo Junior @ 2003-02-11 16:57 UTC (permalink / raw)
To: lartc
Hi all,
I couldn't figure, in the following command, whats the meaning of the
flowid.
tc filter add dev eth0 parent ffff: protocol ip prio 50 u32 match ip /
src 0.0.0.0/0 police rate 38kbit burst 38kbit drop flowid :1
:1 means what??
There's some way to create other classes like the egress has?
For example, I coulde use this:
tc qdisc add dev eth0 root handle 1: prio
tc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10
tc qdisc add dev eth0 parent 1:2 handle 20: sfq perturb 10
tc qdisc add dev eth0 parent 1:3 handle 30: sfq perturb 10
And create a prio qdisc with 3 qdiscs inside.
There's some way to do that with a ingress filter???
Thanks, any help will be apreciated.
[]'s
-----
Nelson Guedes Paulo Junior
E-mail: <npaulo@linux.ime.usp.br> UIN: 2489382 (Tender [:alpha:]*)
-----------------------------------------------------------------------
Eu cavo, tu cavas, ele cava, nós cavamos, vós cavais,
eles cavam... Não é bonito, mas é profundo.
-----------------------------------------------------------------------
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] About ingress
2003-02-11 16:57 [LARTC] About ingress Nelson Guedes Paulo Junior
@ 2003-02-11 17:17 ` Stef Coene
0 siblings, 0 replies; 2+ messages in thread
From: Stef Coene @ 2003-02-11 17:17 UTC (permalink / raw)
To: lartc
On Tuesday 11 February 2003 17:57, Nelson Guedes Paulo Junior wrote:
> Hi all,
>
> I couldn't figure, in the following command, whats the meaning of the
> flowid.
>
> tc filter add dev eth0 parent ffff: protocol ip prio 50 u32 match ip /
> src 0.0.0.0/0 police rate 38kbit burst 38kbit drop flowid :1
>
> :1 means what??
It means that's going to redirect all traffic to class ffff:1 (flowid =
classid). But ingress is classless. So the there is no real class ffff:1.
But you have to redirect the traffic to something. Actually, the ingress
qdisc is a dummy qdisc. The only thing you can do with it is add filters.
> There's some way to create other classes like the egress has?
No.
> For example, I coulde use this:
>
> tc qdisc add dev eth0 root handle 1: prio
> tc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10
> tc qdisc add dev eth0 parent 1:2 handle 20: sfq perturb 10
> tc qdisc add dev eth0 parent 1:3 handle 30: sfq perturb 10
>
> And create a prio qdisc with 3 qdiscs inside.
>
> There's some way to do that with a ingress filter???
No.
Long answer : yes. You can use the imq device. If you patch the kernel and
iptables, you can make a virutal imq device and redirect all incoming traffic
to it. You can add egress qdisc to the imq device.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-11 17:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-11 16:57 [LARTC] About ingress Nelson Guedes Paulo Junior
2003-02-11 17:17 ` Stef Coene
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.