I''m trying to configure 4 queues with strict priorities based on DSCP. I tried to following commands, but it seems that the filters I defined have no effect tc qdisc add dev eth0 root handle 1: prio bands 4 tc qdisc add dev eth0 parent 1:0 handle 10: pfifo limit 100 tc qdisc add dev eth0 parent 1:1 handle 20: pfifo limit 100 tc qdisc add dev eth0 parent 1:2 handle 30: pfifo limit 100 tc qdisc add dev eth0 parent 1:3 handle 40: pfifo limit 100 tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip tos 224 0xff flowid 10: tc filter add dev eth0 parent 1:0 protocol ip prio 2 u32 match ip tos 160 0xff flowid 20: tc filter add dev eth0 parent 1:0 protocol ip prio 3 u32 match ip tos 0 0xff flowid 30: tc filter add dev eth0 parent 1:0 protocol ip prio 4 u32 match ip tos 32 0xff flowid 40: Any suggestions ?
Alex: 1. ~ tc qdisc add dev eth0 root handle 1: prio bands 4 This command created 4 priority classes 1:1 - 1:4 2. Attach your pfifo qidisc to these so basically not on the 1:0 ~ tc qdisc add dev eth0 parent 1:0 handle 10: pfifo limit 100 - should be tc qdisc add dev eth0 parent 1:1 handle 10: pfifo limit 100 3. filter traffic to 1:1 - 1:4 NOT ON THE PFIFO qdisc so... ... Flowid 1:1 not 10 Hope this helps. Jon Flechsenhaar Boeing WNW Team Network Services (714)-762-1231 202-E7 -----Original Message----- From: Alexander Sirotkin [mailto:demiourgos@gmail.com] Sent: Wednesday, March 28, 2007 9:13 AM To: lartc@mailman.ds9a.nl Subject: [LARTC] strict priority I''m trying to configure 4 queues with strict priorities based on DSCP. I tried to following commands, but it seems that the filters I defined have no effect tc qdisc add dev eth0 root handle 1: prio bands 4 tc qdisc add dev eth0 parent 1:0 handle 10: pfifo limit 100 tc qdisc add dev eth0 parent 1:1 handle 20: pfifo limit 100 tc qdisc add dev eth0 parent 1:2 handle 30: pfifo limit 100 tc qdisc add dev eth0 parent 1:3 handle 40: pfifo limit 100 tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip tos 224 0xff flowid 10: tc filter add dev eth0 parent 1:0 protocol ip prio 2 u32 match ip tos 160 0xff flowid 20: tc filter add dev eth0 parent 1:0 protocol ip prio 3 u32 match ip tos 0 0xff flowid 30: tc filter add dev eth0 parent 1:0 protocol ip prio 4 u32 match ip tos 32 0xff flowid 40: Any suggestions ? _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
On 3/28/07, Flechsenhaar, Jon J <Jon.J.Flechsenhaar@boeing.com> wrote:> Alex: > > 1. > ~ tc qdisc add dev eth0 root handle 1: prio bands 4 > This command created 4 priority classes 1:1 - 1:4 > > 2. Attach your pfifo qidisc to these so basically not on the 1:0 > > ~ tc qdisc add dev eth0 parent 1:0 handle 10: pfifo limit 100 > - should be tc qdisc add dev eth0 parent 1:1 handle 10: pfifo > limit 100 > 3. > filter traffic to 1:1 - 1:4 NOT ON THE PFIFO qdisc > so... > ... Flowid 1:1 not 10 > > Hope this helps.Thanks a lot, it did the trick. In this configuration, 10: will have the highest priority and 40: lowest, right ?> > > Jon Flechsenhaar > Boeing WNW Team > Network Services > (714)-762-1231 > 202-E7 > > -----Original Message----- > From: Alexander Sirotkin [mailto:demiourgos@gmail.com] > Sent: Wednesday, March 28, 2007 9:13 AM > To: lartc@mailman.ds9a.nl > Subject: [LARTC] strict priority > > I''m trying to configure 4 queues with strict priorities based on DSCP. > I tried to following commands, but it seems that the filters I defined > have no effect > > tc qdisc add dev eth0 root handle 1: prio bands 4 tc qdisc add dev eth0 > parent 1:0 handle 10: pfifo limit 100 tc qdisc add dev eth0 parent 1:1 > handle 20: pfifo limit 100 tc qdisc add dev eth0 parent 1:2 handle 30: > pfifo limit 100 tc qdisc add dev eth0 parent 1:3 handle 40: pfifo limit > 100 tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip > tos > 224 0xff flowid 10: > tc filter add dev eth0 parent 1:0 protocol ip prio 2 u32 match ip tos > 160 0xff flowid 20: > tc filter add dev eth0 parent 1:0 protocol ip prio 3 u32 match ip tos 0 > 0xff flowid 30: > tc filter add dev eth0 parent 1:0 protocol ip prio 4 u32 match ip tos > 32 0xff flowid 40: > > Any suggestions ? > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc >