ADC CLI Commands

ns-rateControl

The following operations can be performed on “ns-rateControl”:

unset show set

unset ns rateControl

Use this command to remove ns rateControl settings.Refer to the set ns rateControl command for meanings of the arguments.

Synopsis

unset ns rateControl [-tcpThreshold] [-udpThreshold] [-icmpThreshold] [-tcprstThreshold]

show ns rateControl

Displays the values configured for rate control on the appliance.

Synopsis

show ns rateControl

Arguments

Output

tcpThreshold Number of SYNs permitted per 10 milliseconds.

udpThreshold Number of UDP packets permitted per 10 milliseconds.

icmpThreshold Number of ICMP packets permitted per 10 milliseconds.

tcprstThreshold The number of TCP RST packets permitted per 10 milli second. zero means rate control is disabled and 0xffffffff means every thing is rate controlled

statusInterval Status interval in milliseconds.

Example

By default, there is no rate control for TCP/UDP and for ICMP it will be 100. The output of the “show ns ratecontrol” command, with default setting,

show ns ratecontrol UDP threshold: 0 per 10 ms TCP threshold: 0 per 10 ms ICMP threshold: 100 per 10 ms Done

set ns rateControl

Sets the UDP/TCP/ICMP packet rate controls for any application that is not configured at System (direct access to the backend through System).

Synopsis

set ns rateControl [-tcpThreshold ] [-udpThreshold ] [-icmpThreshold ] [-tcprstThreshold ]

Arguments

tcpThreshold Number of SYNs permitted per 10 milliseconds. Minimum value: 0

udpThreshold Number of UDP packets permitted per 10 milliseconds. Minimum value: 0

icmpThreshold Number of ICMP packets permitted per 10 milliseconds. Default value: 100 Minimum value: 0

tcprstThreshold The number of TCP RST packets permitted per 10 milli second. zero means rate control is disabled and 0xffffffff means every thing is rate controlled Default value: 100 Minimum value: 0

Example

The following command will set the SYN rate to 100, icmp rate to 10 and the udp rate to unlimited.

set ns ratecontrol -tcpThreshold 100 -udpThreshold 0 -icmpThreshold 10

The 'show ns rate control' command can be used to view the current settings of the rate controls.

show ns ratecontrol UDP threshold: 0 per 10 ms TCP threshold: 0 per 10 ms ICMP threshold: 100 per 10 ms Done

ns-rateControl