From: Leonardo Balliache <leoball@opalsoft.net>
To: lartc@vger.kernel.org
Subject: [LARTC] DS examples misunderstood
Date: Tue, 17 Sep 2002 00:56:12 +0000 [thread overview]
Message-ID: <marc-lartc-103222445529063@msgid-missing> (raw)
Hi everyone:
Could anyone help me to clear some misunderstood with DS examples in
iproute2 distribution?
In Edge31-ca-u32 we have these sentences --------------------------:
tc qdisc add dev eth0 handle ffff: ingress
tc filter add dev eth0 parent ffff: protocol ip prio 4 handle 1: u32 \
divisor 1
tc filter add dev eth0 parent ffff: protocol ip prio 4 u32 \
match ip tos 0x88 0xfc \
police index 1 rate 1500kbit burst 90k \
continue flowid :1
In Edge32-ca-u32 also we have --------------------------------------:
tc qdisc add dev eth2 handle ffff: ingress
tc filter add dev eth2 parent ffff: protocol ip prio 1 u32 \
match ip tos 0x88 0xfc \
police index 1 rate 1000kbit burst 90k \
continue flowid :1
tc filter add dev eth2 parent ffff: protocol ip prio 2 u32 \
match ip tos 0x88 0xfc \
police index 2 rate 1000kbit burst 30k \
continue flowid :1
-------------------------------------------------------------------------
I have 2 questions:
1. Why next sentence (below) is only present in Edge31-ca-u32 and not in
Edge32-ca-u32? What's the meaning or reason of this command and what in
fact it does?
tc filter add dev eth0 parent ffff: protocol ip prio 4 handle 1: u32 \
divisor 1
2. I don't understand the expresion "police index 1" or "police index 2"
above. Are those just simple way of numbering polices? Also this command:
tc filter add dev eth2 parent ffff: protocol ip prio 2 u32 \
match ip tos 0x88 0xfc \
police index 2 rate 1000kbit burst 30k
continue flowid :1
Combines "police index 2" with "flowid :1" and I thought (perhaps
erroneusly) that "flowid :1" corresponded to "tcindex 1" but now I'm really
confused.
Are "police index n" and "tc index n" different things? What are the
different meaning of those expressions in the examples? What the
relationship is between "flowid :1 or :2", "tc index 1 or 2" and "police
index 1 or 2"?
Hoping any help.
Best regards.
Leonardo Balliache
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
reply other threads:[~2002-09-17 0:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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-103222445529063@msgid-missing \
--to=leoball@opalsoft.net \
--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 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.