Skip to contentSkip to conversation

About ingress

LARTC Nelson Guedes Paulo Junior 2 participants 2 messages Feb 11, 2003

lore
Share & tools
lore
#0 lore raw

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: <[email protected]> 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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 9 lines · Nelson Guedes Paulo Junior

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.

Quoted 1 line

There's some way to create other classes like the egress has?

No.

Quoted 10 lines

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

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/