User Tools

Site Tools

Translations of this page:

Sidebar

Table of contents

Contacts

  • contact@accel-ppp.org
  • accel-ppp-users@lists.sourceforge.net
shaperadvanced

Burst configuration

If you don't use cisco-like format then burst calculates from rate and specified burst factors.
To specify burst factors use down-burst-factor and up-burst-factor options, for example:

[shaper]
down-burst-factor=1.0
up-burst-factor=10.0

which means that burst for tbf/htb qdisc will be calculated as down-stream rate multiply to 1.0 and burst for policer will be calculated as up-stream rate multiply to 10.0.

Time ranges

You can specify time ranges for automatic rate reconfiguration.
To specify time ranges use following sample configuration:

[shaper]
time-range=1,1:00-3:00
time-range=2,3:00-5:00
time-range=3,5:00-7:00

first number is time range identifier.
To specify time range specific rates use following format of radius attributes: range-id,rate, range-id,down-rate/up-rate or cisco-like, for example:
Filter-Id=1000
Filter-Id=1,2000
Filter-Id=2,3000
Filter-Id=3,4000

which means: set 1000Kbit by default, set 2000Kbit in time range 1, set 3000Kbit in time range 2, set 4000Kbit in time range 3.
You have to pass multiple Filter-Id attributes to utilize this functionality.
Or cisco-like:
Cisco-AVPair=lcp:interface-config#1=rate-limit output access-group 1 1000000 8000 8000 conform-action transmit exceed-action drop
Cisco-AVPair=lcp:interface-config#1=rate-limit input access-group 1 1000000 8000 8000 conform-action transmit exceed-action drop

and so on…

chap-secrets

If you use chap-secrets instead of radius then there is way to utilize built-in shaper too.
The optional fifth column in chap-secrets file is used to pass rate information to shaper.
Its format is same as for radius attributes, except you can't utilize time ranges functionality.

Using cli

Command line interface supports following commands to control shaper:

  • shaper change <interface> <value> [temp]

change shaper on specified interface, if temp is specified then previous settings may be restored later by shaper restore

  • shaper change all <value> [temp]

change shaper on all interfaces, if temp is specified newly created interfaces will have specified shaper value too and previous settings may be restored later by shaper restore

  • shaper restore <interface>

restores shaper settings on specified interface made by shaper change command with temp flag

  • shaper restore all

restores shaper settings on all interfaces made by shaper change command with temp flag

shaperadvanced.txt · Last modified: 2014/10/12 16:44 by dmitry