108
Because RADIUS uses UDP packets to transmit data, the communication is not reliable. If the device does
not receive a response to its request from the RADIUS server within the response timeout period, it
retransmits the RADIUS request. If the number of transmission attempts exceeds the limit but the device
still receives no response from the RADIUS server, the device considers the request a failure.
The maximum number of packet transmission attempts multiplied by the RADIUS server response timeout
period cannot be greater than 75.
Related commands:
radius scheme
and
timer response-timeout
.
Examples
# Set the maximum number of RADIUS request transmission attempts to 5 for RADIUS scheme
radius1
.
<Sysname> system-view
[Sysname] radius scheme radius1
[Sysname-radius-radius1] retry 5
retry realtime-accounting
Syntax
retry realtime-accounting
retry-times
undo retry realtime-accounting
View
RADIUS scheme view
Default level
2: System level
Parameters
retry-times
: Maximum number of accounting attempts, in the range 1 to 255.
Description
Use the
retry realtime-accounting
command to set the maximum number of accounting attempts.
Use the
undo retry realtime-accounting
command to restore the default.
By default, the maximum number of accounting attempts is 5.
A RADIUS server usually checks whether a user is online by using a timeout timer. If it receives no
real-time accounting request for a user in the timeout period from the NAS, it considers that there may be
line or device failures and stops accounting for the user. This may happen when some unexpected failure
occurs. To cooperate with this feature of the RADIUS server, the NAS needs to keep pace with the server
in disconnecting the user. The maximum number of accounting attempts, together with some other
parameters, enables the NAS to disconnect the user in time.