ISDN interface
U
SER
G
UIDE
59
ISDN
TRAFFIC CONTROL
The router can be configured in order to make a traffic control on the ISDN interface. In particular it
is possible to configure a threshold value and trigger events when the traffic in a given unit of time
is higher or lower than the defined threshold
5
.
set isdn traffic-control input-threshold <N>
the value of
N
bytes represents the threshold value for incoming traffic.
set isdn traffic-control output-threshold <N>
The value of
N
bytes represents the threshold value for outgoing traffic.
set isdn traffic-control timer-unit <N>
The value of
N
seconds represents the frequency of the check.
set isdn traffic-control mode or|and
Defines whether traffic control is about the input or the output threshold, or both.
set isdn traffic-control prewait <N>
Represents a waiting time (expressed in seconds) before starting the traffic control.
set isdn traffic-control on|off
Activates/deactivates traffic control
In order to activate the second ISDN channel the commands are usually used together with the
command
set trigger isdn-tc
. This is clarified in the following example:
set isdn traffic-control input-threshold 30000
set isdn traffic-control output-threshold 20000
set isdn traffic-control mode or
set isdn traffic-control timer-unit 10
set isdn traffic-control on
set trigger isdn-tc up isdnctrl addlink ippp1
set trigger isdn-tc down isdnctrl removelink ippp1
set trigger isdn up set isdn traffic-control on
set trigger isdn down set gprs traffic-control off
Traffic control is activated when the ISDN session starts and it is deactivated when the session ends.
It is set a threshold value of 30 Kbytes for incoming traffic and a threshold value of 20Kbytes for
outgoing traffic. The control is made every 10 seconds.
If in 10 seconds either incoming or outgoing traffic exceeds the threshold value, the
command specified by the
set isdn-tc up
trigger is executed. This activates the second ISDN
channel. Otherwise, if in 10 seconds traffic is lower than the threshold values, the command
specified by the
trigger gprs-tc down
trigger set is executed.
Sometimes it may be necessary to automatically activate the ISDN call only on the recognition of
special packages. To do so, type
set isdn-dial-control on
5
-
Traffic control commands are effective only on the ippp1 dialer map and have no influence when the ippp0 dialer is active.