Setup guide
kind (pfifo | bfifo | red | sfq | pcq; default: pfifo) - kind of the queuing algorithm used:
• pfifo - Packets First-In First-Out
• bfifo - Bytes First-In First-Out
• red - Random Early Detection
• sfq - Stohastic Fair Queuing
• pcq - Per Connection Queuing
bfifo-limit (integer; default: 15000) - BFIFO queue limit. Maximum byte count that queue can hold
pfifo-limit (integer; default: 10) - PFIFO queue limit. Maximum packet count that queue can hold
red-limit (integer; default: 60) - RED queue limit
red-min-threshold (integer; default: 10) - RED minimum threshold
red-max-threshold (integer; default: 50) - RED maximum threshold
red-burst (integer; default: 20) - RED burst
sfq-perturb (integer; default: 5) - how often to change hash function
sfq-allot (integer; default: 1514) - amount of data in bytes that can be sent in one round-robin round
pcq-rate (integer; default: 0) - maximal data rate (in bits per second) assigned to one group
• 0 - do not limit data rate
pcq-limit (integer; default: 50) - how many packets to hold in a PCQ
pcq-classifier (multiple choice: dst-address, dst-port, src-address, src-port; default: "") - the
classifier of grouping traffic flow
Notes
For small limitations (64kbps, 128kbps) RED is more preferable. For larger speeds PFIFO will be
as good as RED. RED consumes much more memory and CPU than PFIFO & BFIFO.
Example
To add red queue type with minimum threshold of 0, without any burst and named
CUSTOMER-def:
[admin@Wandy] queue type> add name=CUSTOMER-def kind=red \
\... red-min-threshold=0 red-burst=0
[admin@Wandy] queue type> print
0 name="default" kind=pfifo bfifo-limit=15000 pfifo-limit=50 red-limit=60
red-min-threshold=10 red-max-threshold=50 red-burst=20 sfq-perturb=5
sfq-allot=1514 pcq-rate=0 pcq-limit=50 pcq-classifier=""
1 name="ethernet-default" kind=pfifo bfifo-limit=15000 pfifo-limit=50
red-limit=60 red-min-threshold=10 red-max-threshold=50 red-burst=20
sfq-perturb=5 sfq-allot=1514 pcq-rate=0 pcq-limit=50 pcq-classifier=""
2 name="wireless-default" kind=sfq bfifo-limit=15000 pfifo-limit=50
red-limit=60 red-min-threshold=10 red-max-threshold=50 red-burst=20
sfq-perturb=5 sfq-allot=1514 pcq-rate=0 pcq-limit=50 pcq-classifier=""
3 name="synchronous-default" kind=red bfifo-limit=15000 pfifo-limit=50
red-limit=60 red-min-threshold=10 red-max-threshold=50 red-burst=20
sfq-perturb=5 sfq-allot=1514 pcq-rate=0 pcq-limit=50 pcq-classifier=""
4 name="CUSTOMER-def" kind=red bfifo-limit=15000 pfifo-limit=50
red-limit=60 red-min-threshold=0 red-max-threshold=50 red-burst=0
sfq-perturb=5 sfq-allot=1514 pcq-rate=0 pcq-limit=50 pcq-classifier=""
[admin@Wandy] queue type>
Interface Default Queues
queue interface