Linux command
nuttcp 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Start server
nuttcp -S
Test throughput to server
nuttcp [server_ip]
Test UDP throughput
nuttcp -u [server_ip]
Specify bandwidth limit
nuttcp -R [100M] [server_ip]
Test for specific duration
nuttcp -T [30] [server_ip]
Receiver mode
nuttcp -r [server_ip]
Use multiple parallel streams
nuttcp -N [4] [server_ip]
Test with interval reporting
nuttcp -i [1] [server_ip]
说明
nuttcp is a network performance measurement tool. It measures TCP and UDP throughput between systems, providing detailed statistics about network performance. nuttcp is similar to iperf but includes features such as server mode, rate limiting, multiple parallel streams, and timer-based usage. It also supports IPv6, IPv4 multicast, and setting TOS/DSCP bits.
参数
- -S
- Server mode.
- -u
- UDP mode (default TCP).
- -R _rate_
- Rate limit (K, M, G).
- -T _time_
- Test duration.
- -t
- Transmitter mode.
- -r
- Receiver mode.
- -p _port_
- Data port.
- -P _port_
- Control port.
- -w _size_
- Window size (socket buffer size).
- -N _nstream_
- Number of parallel data streams (default 1, max 128).
- -i _interval_
- Interval reporting in seconds.
- -l _buflen_
- Length of network read/write buffer in bytes.
- -s
- Use stdin/stdout for data (enables disk-to-network transfers).
- -F
- Flip direction of data connection open (useful with firewalls/NAT).
- -b
- Brief one-line output (default format).
FAQ
What is the nuttcp command used for?
nuttcp is a network performance measurement tool. It measures TCP and UDP throughput between systems, providing detailed statistics about network performance. nuttcp is similar to iperf but includes features such as server mode, rate limiting, multiple parallel streams, and timer-based usage. It also supports IPv6, IPv4 multicast, and setting TOS/DSCP bits.
How do I run a basic nuttcp example?
Run `nuttcp -S` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -S do in nuttcp?
Server mode.