Содержание
-
- Настройка
- Типичные конфигурации
- Шейпер
Ссылки
Контакты
- contact@accel-ppp.org
- accel-ppp-users@lists.sourceforge.net
Если вы не используете cisco-like формат, то burst вычисляется на основе произведения полосы пропускания и burst-factor (rate*burst-factor).
Пример:
[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.
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…
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.
Command line interface supports following commands to control shaper:
change shaper on specified interface, if temp is specified then previous settings may be restored later by shaper restore
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
restores shaper settings on specified interface made by shaper change command with temp flag
restores shaper settings on all interfaces made by shaper change command with temp flag