RE: Re: PQ questions

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's PQ that is required. Here is what I have for config so far:

tc qdisc add dev eth0 root handle 1: prio bands 4 priomap 0 1 2 3

tc filter add dev eth0 parent 1:0 prio 1 protocol ip u32 match ip tos 0xb8
0xff flowid 1:1

tc filter add dev eth0 parent 1:0 prio 2 protocol ip u32 match ip tos 0x50
0xff flowid 1:2

tc filter add dev eth0 parent 1:0 prio 3 protocol ip u32 match ip tos 0x28
0xff flowid 1:3

tc filter add dev eth0 parent 1:0 prio 4 protocol ip u32 match ip tos 0x00
0xff flowid 1:4


tc qdisc add dev eth0 parent 1:1 handle 10: pfifo limit 2

tc qdisc add dev eth0 parent 1:2 handle 11: pfifo limit 2

tc qdisc add dev eth0 parent 1:3 handle 12: pfifo limit 2

tc qdisc add dev eth0 parent 1:4 handle 13: pfifo limit 2

__________

The above config works fine. The last four qdisc lines (handles 10: - 13:
inclusive) also work as prio if you leave out the 'limit' part of course.

The remaining part is to set children for the last four qdiscs (one for
each). Said children qdiscs would have all the same attributes (as the
parents (limit is something I'd change; the '2' is just an example). Is this
possible?

> -----Original Message-----
> From: Andy Furniss [mailto:lists@xxxxxxxxxxxxxxxxxxxxxxx]
> Sent: Tuesday, June 19, 2007 6:17 PM
> To: Tim Enos
> Cc: 'Christian Benvenuti'; lartc@xxxxxxxxxxxxxxx
> Subject: Re:  Re: PQ questions
> 
> Tim Enos wrote:
> > Cool,
> >
> > Thanks Christian! I'm wishing that all of those same params showed up in
> the
> > output without having to run anything. No problem. Should it matter that
> I'm
> > using an emulated interface?
> 
> Quite possibly - using prio on real devices still can appear not to work
> until you have filled up any buffer the driver uses.
> 
> On my 100meg eth it would take 5/6 unscaled tcp connections to fill
> enough for prio to do anything.
> 
> You can use prio as a child of hfsc/htb so that they set the rate. It
> may be nicer to use htb's own prio though, if you need a slow rate and
> care about latency.
> 
> Andy.

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

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux