Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.72 KB

README.md

File metadata and controls

58 lines (41 loc) · 1.72 KB

#qos-scripts-v2

This repository contains some fixes developped for the OpenWRT QOS Scripts package.

Traffic rules can be still be configured as presented in the OpenWRT documentation.

For help in defining traffic classes please scroll down.

##Installation

In order to install use scp to copy the files to your OpenWRT router.

scp -P 22 qos root@router:/etc/config/
scp -P 22 tcrules.awk root@router:/usr/lib/qos/
scp -P 22 generate.sh root@router:/usr/lib/qos/
ssh -p 22 -l root router "/etc/init.d/qos restart"

##Custom Queues

The qos file contains a sample setup which will work out of the box (well, you would still have to set the upload/download speed). However, if you would like to modify the traffic classes, the following should be kept in mind:

The parametes available to define a traffic class are as follow,

  • avgrate the average speed of the class in % (mandatory).
  • irate the initial (burst) speed of the class in % (default disabled).
  • duration the duration of the burst in ms (default disabled).
  • maxrate the absolute maximum of the class in % (default 100%)

The only mandatory parameter to define a traffic class is avgrate. As such the smallest class definable is as follow,

config class 'Class Name'
        option avgrate '15'

A full class would look like this,

config class 'Class Name'
        option avgrate '15'
        option irate '50'
        option duration '10'
        option maxrate '75'

Please note that a delay behaviour can be introduced with an irate set to 0 and a duration > 0:

config class 'Delayed by 10 ms'
        option avgrate '50'
        option irate '0'
        option duration '10'