* [LARTC] Wondershaper and DSCP
@ 2006-01-06 2:04 Keith Mitchell
2006-01-08 22:00 ` Andy Furniss
0 siblings, 1 reply; 2+ messages in thread
From: Keith Mitchell @ 2006-01-06 2:04 UTC (permalink / raw)
To: lartc
Did anyone ever answer this one? THIS is what I am trying to do:
>[LARTC] cbq+sfq and DSCP marking
>Maria Joana Urbano stmaria@dei.uc.pt
>Thu, 13 Feb 2003 19:29:42 +0000
>
> * Previous message: [LARTC] Monitoring....
> * Next message: [LARTC] two routes 1 network card
> * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>
>--===}B32766===>Content-Type: text/plain; x-avg-checked=avg-ok-427B3C31;
charset=us-ascii; format=flowed
>Content-Transfer-Encoding: 8bit
>
>Hi,
>
>I am a little confused about traffic control at egress + DSCP marking.
>
>Suppose I have a home router and set three different traffic classes at
the
>egress interface in a similar way to what wondershaper (cbq version)
does:
>
>tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 10mbit
>tc class add dev $DEV parent 1: classid 1:1 cbq rate ${UPLINK}kbit
allot
>1500 prio 5 bounded isolated
>tc class add dev $DEV parent 1:1 classid 1:10 cbq rate ${UPLINK}kbit
allot
>1600 prio 1 avpkt 1000
>tc class add dev $DEV parent 1:1 classid 1:20 cbq rate
$[9*$UPLINK/10]kbit
>allot 1600 prio 2 avpkt 1000
>tc class add dev $DEV parent 1:1 classid 1:30 cbq rate
$[8*$UPLINK/10]kbit
>allot 1600 prio 2 avpkt 1000
>tc qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10
>tc qdisc add dev $DEV parent 1:20 handle 20: sfq perturb 10
>tc qdisc add dev $DEV parent 1:30 handle 30: sfq perturb 10
>
>Then, I would like to DSCP mark the packets that leave the router based
on
>their class. Ex., packets from class 1:10 would be marked with 0xb8 and
>packets from class 1:30 would have a 0x0 DSCP mark.
>
>
>However, after some reading, the only DS marking examples i found was
like
>this (i.e., no chance to
>add cbq and sfq filters):
>
>tc qdisc add $DEV handle 1:0 root dsmark indices 64
>tc class change $DEV classid 1:10 dsmark mask 0x3 value 0xb8
>tc class change $DEV classid 1:20 dsmark mask 0x3 value 0x90
>tc class change $DEV classid 1:30 dsmark mask 0x3 value 0x0
>
>I am not sure if I understood the dsmark and DSCP marking model. It is
not
>posible to add the DSCP marking to the cbq+sfq example above?
>
>
>Any help would be appreciate. Tnx!
>J.
>
>--===}B32766===>Content-Type: text/plain; charset=us-ascii; x-avgÎrt;
x-avg-checked=avg-ok-427B3C31
>Content-Disposition: inline
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.449 / Virus Database: 251 - Release Date: 27-01-2003
>
>--===}B32766====--
>
>
>
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] Wondershaper and DSCP
2006-01-06 2:04 [LARTC] Wondershaper and DSCP Keith Mitchell
@ 2006-01-08 22:00 ` Andy Furniss
0 siblings, 0 replies; 2+ messages in thread
From: Andy Furniss @ 2006-01-08 22:00 UTC (permalink / raw)
To: lartc
Keith Mitchell wrote:
> Did anyone ever answer this one? THIS is what I am trying to do:
>
>
>>[LARTC] cbq+sfq and DSCP marking
I haven't used dscp but it looks like you need to add cbq below dsmark
and then filter with tcindex see
http://lartc.org/howto/lartc.adv-qdisc.dsmark.html
Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-08 22:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-06 2:04 [LARTC] Wondershaper and DSCP Keith Mitchell
2006-01-08 22:00 ` Andy Furniss
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.