1
1

Merge branch 'master' of github.com:esnet/iperf

Этот коммит содержится в:
Bruce A. Mah 2017-05-24 11:08:37 -07:00
родитель 3410d58fdc 0f081b7b2e
Коммит 39de1e0f27
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4984910A8CAAEE8A
6 изменённых файлов: 23 добавлений и 19 удалений

Просмотреть файл

@ -7,7 +7,7 @@ Summary
iperf is a tool for active measurements of the maximum achievable iperf is a tool for active measurements of the maximum achievable
bandwidth on IP networks. It supports tuning of various parameters bandwidth on IP networks. It supports tuning of various parameters
related to timing, protocols, and buffers. For each test it reports related to timing, protocols, and buffers. For each test it reports
the bandwidth, loss, and other parameters. the measured throughput / bitrate, loss, and other parameters.
This version, sometimes referred to as iperf3, is a redesign of an This version, sometimes referred to as iperf3, is a redesign of an
original version developed at NLANR/DAST. iperf3 is a new original version developed at NLANR/DAST. iperf3 is a new

Просмотреть файл

@ -9,7 +9,7 @@ iperf3
iperf is a tool for active measurements of the maximum achievable iperf is a tool for active measurements of the maximum achievable
bandwidth on IP networks. It supports tuning of various parameters bandwidth on IP networks. It supports tuning of various parameters
related to timing, protocols, and buffers. For each test it reports related to timing, protocols, and buffers. For each test it reports
the bandwidth, loss, and other parameters. the measured throughput, loss, and other parameters.
This version, sometimes referred to as iperf3, is a redesign of an This version, sometimes referred to as iperf3, is a redesign of an
original version developed at NLANR / DAST. iperf3 is a new original version developed at NLANR / DAST. iperf3 is a new

Просмотреть файл

@ -19,7 +19,7 @@ BuildRequires: openssl-devel
iperf3 is a tool for active measurements of the maximum achievable iperf3 is a tool for active measurements of the maximum achievable
bandwidth between two IP hosts. It supports tuning of various bandwidth between two IP hosts. It supports tuning of various
parameters related to timing, protocols, and buffers. For each test, parameters related to timing, protocols, and buffers. For each test,
it reports the bandwidth, loss, and other parameters. it reports the throughput, loss, and other parameters.
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}

Просмотреть файл

@ -118,24 +118,27 @@ connection establishment.
Providing a shorter value may speed up detection of a down iperf3 Providing a shorter value may speed up detection of a down iperf3
server. server.
.TP .TP
.BR -b ", " --bandwidth " \fIn\fR[KM]" .BR -b ", " --bitrate " \fIn\fR[KM]"
set target bandwidth to \fIn\fR bits/sec (default 1 Mbit/sec for UDP, unlimited for TCP). set target bitrate to \fIn\fR bits/sec (default 1 Mbit/sec for UDP,
If there are multiple streams (\-P flag), the bandwidth limit is applied unlimited for TCP/SCTP).
If there are multiple streams (\-P flag), the throughput limit is applied
separately to each stream. separately to each stream.
You can also add a '/' and a number to the bandwidth specifier. You can also add a '/' and a number to the bitrate specifier.
This is called "burst mode". This is called "burst mode".
It will send the given number of packets without pausing, even if that It will send the given number of packets without pausing, even if that
temporarily exceeds the specified bandwidth limit. temporarily exceeds the specified throughput limit.
Setting the target bandwidth to 0 will disable bandwidth limits Setting the target bitrate to 0 will disable bitrate limits
(particularly useful for UDP tests). (particularly useful for UDP tests).
This bandwidth limit is implemented internally inside iperf3, and is This throughput limit is implemented internally inside iperf3, and is
available on all platforms. available on all platforms.
Compare with the \--fq-rate flag. Compare with the \--fq-rate flag.
This option replaces the \--bandwidth flag, which is now deprecated
but (at least for now) still accepted.
.TP .TP
.BR --pacing-timer " \fIn\fR[KMG]" .BR --pacing-timer " \fIn\fR[KMG]"
set pacing timer interval in microseconds (default 1000 microseconds, set pacing timer interval in microseconds (default 1000 microseconds,
or 1 ms). or 1 ms).
This controls iperf3's internal pacing timer for the -b/--bandwidth This controls iperf3's internal pacing timer for the \-b/\--bitrate
option. option.
The timer fires at the interval set by this parameter. The timer fires at the interval set by this parameter.
Smaller values of the pacing timer parameter smooth out the traffic Smaller values of the pacing timer parameter smooth out the traffic
@ -146,7 +149,7 @@ more frequent timer processing.
Set a rate to be used with fair-queueing based socket-level pacing, Set a rate to be used with fair-queueing based socket-level pacing,
in bits per second. in bits per second.
This pacing (if specified) will be in addition to any pacing due to This pacing (if specified) will be in addition to any pacing due to
iperf3's internal bandwidth pacing (\-b flag), and both can be iperf3's internal throughput pacing (\-b/\--bitrate flag), and both can be
specified for the same test. specified for the same test.
Only available on platforms supporting the Only available on platforms supporting the
\fCSO_MAX_PACING_RATE\fR socket option (currently only Linux). \fCSO_MAX_PACING_RATE\fR socket option (currently only Linux).

Просмотреть файл

@ -633,6 +633,7 @@ iperf_parse_arguments(struct iperf_test *test, int argc, char **argv)
{"server", no_argument, NULL, 's'}, {"server", no_argument, NULL, 's'},
{"client", required_argument, NULL, 'c'}, {"client", required_argument, NULL, 'c'},
{"udp", no_argument, NULL, 'u'}, {"udp", no_argument, NULL, 'u'},
{"bitrate", required_argument, NULL, 'b'},
{"bandwidth", required_argument, NULL, 'b'}, {"bandwidth", required_argument, NULL, 'b'},
{"time", required_argument, NULL, 't'}, {"time", required_argument, NULL, 't'},
{"bytes", required_argument, NULL, 'n'}, {"bytes", required_argument, NULL, 'n'},

Просмотреть файл

@ -99,7 +99,7 @@ const char usage_longstr[] = "Usage: iperf3 [-s|-c host] [options]\n"
"Server or Client:\n" "Server or Client:\n"
" -p, --port # server port to listen on/connect to\n" " -p, --port # server port to listen on/connect to\n"
" -f, --format [kmgtKMGT] format to report: Kbits, Mbits, Gbits, Tbits\n" " -f, --format [kmgtKMGT] format to report: Kbits, Mbits, Gbits, Tbits\n"
" -i, --interval # seconds between periodic bandwidth reports\n" " -i, --interval # seconds between periodic throughput reports\n"
" -F, --file name xmit/recv the specified file\n" " -F, --file name xmit/recv the specified file\n"
#if defined(HAVE_CPU_AFFINITY) #if defined(HAVE_CPU_AFFINITY)
" -A, --affinity n/n,m set CPU affinity\n" " -A, --affinity n/n,m set CPU affinity\n"
@ -132,7 +132,7 @@ const char usage_longstr[] = "Usage: iperf3 [-s|-c host] [options]\n"
#endif /* HAVE_SCTP */ #endif /* HAVE_SCTP */
" -u, --udp use UDP rather than TCP\n" " -u, --udp use UDP rather than TCP\n"
" --connect-timeout # timeout for control connection setup (ms)\n" " --connect-timeout # timeout for control connection setup (ms)\n"
" -b, --bandwidth #[KMG][/#] target bandwidth in bits/sec (0 for unlimited)\n" " -b, --bitrate #[KMG][/#] target bitrate in bits/sec (0 for unlimited)\n"
" (default %d Mbit/sec for UDP, unlimited for TCP)\n" " (default %d Mbit/sec for UDP, unlimited for TCP)\n"
" (optional slash and packet count for burst mode)\n" " (optional slash and packet count for burst mode)\n"
" --pacing-timer #[KMG] set the timing for pacing, in microseconds (default 1000)\n" " --pacing-timer #[KMG] set the timing for pacing, in microseconds (default 1000)\n"
@ -302,19 +302,19 @@ const char report_read_length_times[] =
"[%3d] %5d bytes read %5d times (%.3g%%)\n"; "[%3d] %5d bytes read %5d times (%.3g%%)\n";
const char report_bw_header[] = const char report_bw_header[] =
"[ ID] Interval Transfer Bandwidth\n"; "[ ID] Interval Transfer Bitrate\n";
const char report_bw_retrans_header[] = const char report_bw_retrans_header[] =
"[ ID] Interval Transfer Bandwidth Retr\n"; "[ ID] Interval Transfer Bitrate Retr\n";
const char report_bw_retrans_cwnd_header[] = const char report_bw_retrans_cwnd_header[] =
"[ ID] Interval Transfer Bandwidth Retr Cwnd\n"; "[ ID] Interval Transfer Bitrate Retr Cwnd\n";
const char report_bw_udp_header[] = const char report_bw_udp_header[] =
"[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams\n"; "[ ID] Interval Transfer Bitrate Jitter Lost/Total Datagrams\n";
const char report_bw_udp_sender_header[] = const char report_bw_udp_sender_header[] =
"[ ID] Interval Transfer Bandwidth Total Datagrams\n"; "[ ID] Interval Transfer Bitrate Total Datagrams\n";
const char report_bw_format[] = const char report_bw_format[] =
"[%3d] %6.2f-%-6.2f sec %ss %ss/sec %s\n"; "[%3d] %6.2f-%-6.2f sec %ss %ss/sec %s\n";