From: Tom Aernoudt tom.aernoudt@intec.rug.ac.be
To: lartc@vger.kernel.org
Subject: [LARTC] dscp marking
Date: Wed, 17 Jan 2001 13:08:44 +0000 [thread overview]
Message-ID: <marc-lartc-98373940416894@msgid-missing> (raw)
<PRE>
I want to set the DSCP field of the incoming packets. And then put them
in the correct queues.
I can mark the packets:
iptables -A OUTPUT -t mangle -d 10.10.10.12 -j MARK --set-mark 1
tc qdisc add dev eth0 handle 1:0 dsmark indices 64 set_tc_index
tc class change dev eth0 classid 1:1 dsmark mask 0x3 value 0xb8
tc filter add dev eth0 parent 1:1 protocol ip prio 1 handle 1 fw
classid 1:1
Or i can set up the queues:
<bigger> #setting root DSMARK
#####################
echo Setting up DSMARK
$TC qdisc add dev $DEV root handle 1:0 dsmark indices 64 set_tc_index
$TC filter add dev $DEV protocol ip parent 1:0 prio 1 \
tcindex mask 0xfc shift 2 pass_on
#setting root CBQ
##################
echo Setting up root CBQ
$TC qdisc add dev $DEV parent 1:0 handle 2:0 cbq bandwidth $BANDWIDTH
\
avpkt 1000 cell 8 mpu 64
$TC filter add dev $DEV parent 2:0 protocol ip prio 1 \
tcindex mask 0xf0 shift 4 pass_on
#setting EF
############
echo Setting up EF
$TC class add dev $DEV parent 2:0 classid 2:5 cbq bandwidth $BANDWIDTH
\
rate $EF_RATE avpkt 1000 prio 1 bounded isolated allot 1514 \
maxburst 10
$TC qdisc add dev $DEV parent 2:5 pfifo limit 10
$TC filter add dev $DEV parent 1:0 protocol ip prio 1 \
handle 0x2e tcindex classid 1:51
$TC filter add dev $DEV parent 2:0 prio 1 handle 5 tcindex classid
2:5
#setting BE
############
echo Setting up BE
$TC class add dev $DEV parent 2:0 classid 2:6 cbq bandwidth $BANDWIDTH
\
rate $BE_RATE avpkt 1000 prio 6 allot 1514 maxburst 21
$TC qdisc add dev $DEV parent 2:6 red limit 60KB min 15KB max 45KB \
burst 20 avpkt 1000 bandwidth $BANDWIDTH probability 0.4
$TC filter add dev $DEV parent 1:0 protocol ip prio 1 \
handle 0x0 tcindex classid 2:161
$TC filter add dev $DEV parent 2:0 protocol ip prio 1 \
handle 6 tcindex classid 2:6
</bigger>
But I can't combine the two. What do I have to do to combine these 2?
I tried to do the marking at the ingress but that didn't work.
Thanks,
Tom Aernoudt
</PRE>
next reply other threads:[~2001-01-17 13:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-17 13:08 Tom [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-07-03 15:25 [LARTC] DSCP marking sun reflex4
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-98373940416894@msgid-missing \
--to=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.