LARTC
[Top] [All Lists]

Re: [LARTC] strict priority

To: "Flechsenhaar, Jon J" <Jon.J.Flechsenhaar@boeing.com>
Subject: Re: [LARTC] strict priority
From: "Alexander Sirotkin" <demiourgos@gmail.com>
Date: Wed, 28 Mar 2007 18:30:53 +0200
Cc: lartc@mailman.ds9a.nl
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R9WpSqhEzTbpltUWZnlOlNCtH/DvYJL74tFWdiHDZRslukn+xovbQtyhHV0urvcUCfN/UXDFNQDp2uzgZWVufmNh+AAJVTdf3kuCNgWEPjEslAsY2Uv1IurwX/4AsUAz41WXhLBLgfda31DuW1uyxg/tCbJqf06VG961kHaNnQU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iUK9caxr1As/7/w6XaPs/OT/h4Qfkec4tVKbDq0SJZcNiq0gk5LShzxjG+r/TSJ8n3MyQ/UVJB6LbTUSLoAFsKgVTpdXuIYy3gPA5sXEJo1c+vWEcOho5MpEWx0i7PPiSi2lYioRyQuNDRS/x0GsqaLfP+Ac3Un3tb4488E35J8=
In-reply-to: <0E24ED2A7F9AA349A8633E6A56A64BE0027A824E@XCH-SW-2V1.sw.nos.boeing.com>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <c4357ccd0703280913i59636bb4vb53d2a3e5a19e432@mail.gmail.com> <0E24ED2A7F9AA349A8633E6A56A64BE0027A824E@XCH-SW-2V1.sw.nos.boeing.com>
Sender: lartc-bounces@mailman.ds9a.nl
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

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>