radperf(1) Manual
| RADPERF(1) | User Commands | RADPERF(1) |
NAME
radperf - RADIUS performance-testing client
SYNOPSIS
radperf [options] server[:port] command [secret]
DESCRIPTION
radperf sends RADIUS requests, waits for replies, and reports throughput and latency. It is an independent Rust reimplementation of the C radperf performance-testing client.
Use a positional secret or read it from a file with -S. The file takes precedence when both are supplied.
The default server port is 1813 for Accounting-Requests and 1812 for other request codes. Use brackets around an IPv6 address with an explicit port, for example [::1]:1812.
If neither -f nor -u is given, input packets are read from standard input.
COMMANDS
- auth
- Send an Access-Request.
- acct
- Send an Accounting-Request (default port 1813).
- status
- Send a Status-Server packet.
- coa
- Send a CoA-Request.
- disconnect
- Send a Disconnect-Request.
- auto
- Send an Access-Request, or an Accounting-Request when the input contains Acct-Status-Type.
- 1..255
- Send the given decimal RADIUS code.
OPTIONS
- -a type
- Authentication method: pap (default), chap or none. none requires -A and skips the authentication phase.
- -A d,l
- After an Access-Accept, send Accounting-Request packets every d seconds for l seconds.
- -c count
- Send each input packet count times (default 1).
- -C attr[,attr]
- Copy these attributes from the Access-Accept to the Accounting-Request.
- -d dir
- Directory containing the RADIUS dictionary files. The fallback is FREERADIUS_DICTIONARY_PATH, then ../share relative to the executable directory.
- -D file
- Write a per-packet num time delay line per verified reply. The send time is relative to the start of the run. The delay is measured from the first send to the reply, including any retries. Both times are written as seconds.microseconds. The file includes replies to accounting requests generated by -A.
- -f file
- Read packets from file. May be repeated; a .csv name selects the two-column name,password form.
- -F
- Also copy Framed-IP-Address from the Access-Accept.
- -h, --help
- Print usage and exit.
- -j, --json
- Print a JSON summary.
- -m mode
- Message-Authenticator handling: auto (default), yes or no.
- -n num
- Pace new requests at num per second (0 means unlimited). This setting does not pace retransmissions.
- -p num
- Allow at most num outstanding requests, including requests awaiting a retransmission (default 1).
- -P
- Print per-second progress statistics to standard error.
- -q
- Suppress the default per-response log and final summary.
- -r retries
- Retransmit a request up to retries times (default 5). Use 0 to disable retransmissions.
- -R realm
- Append @realm to unqualified input User-Name values. For generated users, use the supplied text as a literal suffix for both the name and password.
- -s
- Print a summary of results.
- -S file
- Read the shared secret from file.
- -t timeout
- Retransmit timeout in seconds (default 5; fractional values are allowed).
- -T file
- Add the attributes in file to every request.
- -u number
- Append requests for number generated users after any input files, starting at user1. Each generated name is also its password.
- -v, --version
- Print version and exit.
- -x
- Increase debug output (repeatable).
- -4
- Prefer an IPv4 server address.
- -6
- Prefer an IPv6 server address.
INPUT FILES
An attribute file uses one Name = value per line, with # comments and a blank line between packets. Values may be quoted with ". An attribute may carry a tag as Name:tag = value for attributes flagged has_tag. Tags range from 0 to 31. The operators =, +=, := and == append values in input order.
A file whose name ends in .csv is read as two columns, name,password.
ACCOUNTING FLOW
Each accepted Access-Request starts an accounting session. After the authentication phase, sessions can overlap. Each session sends a Start, periodic Interim-Updates and a Stop. The interval must be positive and the lifetime is bounded by any Session-Timeout in the Access-Accept. The pacing and outstanding request limits also apply to accounting requests. With -a none, a session starts for every input packet without authentication. Accounting uses port 1813 unless an explicit port was supplied.
OUTPUT
The -s summary and the -j JSON object follow the layout used by RadPerf 2.0.1. JSON scalar values are strings and the response histogram is an array of strings. radperf-rs computes total_time and packets_per_second. First attempts and retransmissions have separate counters. A request counts as unanswered when it exhausts all attempts. Packets/s is successful replies per second. The response-time histogram has eight buckets.
SIGINT (Ctrl+C) stops the run and prints the partial summary if enabled. A UDP socket error also prints the partial summary if enabled and exits with an error.
EXIT STATUS
- 0
- Success, including help and version requests.
- 1
- Configuration, input, dictionary or runtime error.
SEE ALSO
radclient(1), radiusd(8)
LICENSE
MIT.
| 2026-11-24 | radperf-rs |