Skip to main content

Iperf Tests

Configure and run TCP, UDP, and Multicast Iperf v2 and v3 throughput tests as Scheduled Tests or Ad-Hoc Tests in NetBeez NextGen.

Written by Panickos Neophytou

Iperf measures maximum achievable TCP throughput or targeted UDP/Multicast bandwidth, packet loss, and delay jitter between two endpoints. NetBeez NextGen (Version 20.0+) supports Iperf Version 2 and Version 3 as both recurring Scheduled Tests (agent-to-agent or multi-agent to an external server) and instant Ad-Hoc Tests.

In this article:

Iperf Topologies: 1 to 1 vs. Many to 1

When adding a Scheduled Iperf Template under Scheduled Tests → Add Template, NetBeez offers two topologies:

  • Iperf, 1 to 1 (Agent-to-Agent): Runs between one NetBeez Source Agent (sender) and one NetBeez Destination agent (receiver). NetBeez automatically locks both agents and starts the Iperf listener on the Destination agent before starting traffic from the Source agent. Because a 1-to-1 template binds a fixed agent pair, it cannot be attached to Agent Groups or reassigned from Manage Assignments.

  • Iperf, Many to 1 (Agents to External Server): Runs from multiple NetBeez Source Agents and/or Agent Groups toward a single self-managed Iperf server (specified by IP address or hostname). Defaults to the SerialRun Mode so agents test one after another—which is especially important when targeting an external iperf3 server, since a single iperf3 daemon accepts one active client test at a time.

To host your own external Iperf listener on a Linux server for Iperf, Many to 1 or Ad-Hoc tests, start iperf (v2, default port 5001) or iperf3 (v3, default port 5201) in server mode and ensure the port is open in your firewall:

# Iperf Version 2 listener (default port 5001)
iperf -s -p 5001# Iperf Version 3 listener (default port 5201)
iperf3 -s -p 5201

Creating a Scheduled Iperf Test

  1. Go to Scheduled Tests in the primary left sidebar and click Add Template.

  2. Select either Iperf, 1 to 1 or Iperf, Many to 1.

  3. Details: Enter a Name and optional Description, then click Configure Test.

  4. Configure Test: Select TCP or UDP, adjust protocol parameters (detailed below), and choose the Interface (Wi-Fi or Wired) for Wi-Fi-capable agents.

  5. Source Agent: Select one agent (for Iperf, 1 to 1) or select multiple agents and/or Agent Groups (for Iperf, Many to 1).

  6. Destination / Select Destination: Select the receiving NetBeez agent (for Iperf, 1 to 1; the chosen Source Agent is automatically disabled) or enter the external Server Address IP/hostname (for Iperf, Many to 1).

  7. Schedule: Set the cron frequency and, for Iperf, Many to 1, verify the Run Mode (Serial by default, Parallel, or Random).

  8. Monitoring Conditions & Alerts: Optionally attach a Monitoring Condition and select Scheduled Test Alert Profiles (evaluating errors, Bandwidth, Jitter, or Packet Loss), then click Create Scheduled Test.

Scheduled Iperf wizard Configure Test step displaying protocol, version, port, duration, parallel streams, bandwidth cap, TCP window size, TOS, and interface settings

Iperf Configuration Parameters

Parameter

Default & Range

Description

Test Type

TCP (TCP or UDP)

TCP pushes maximum available throughput (unless capped) and reports Bandwidth (plus Retries on v3). UDP transmits at the target rate and reports Bandwidth, Jitter, and Packet Loss.

Multicast Iperf

Unchecked (UDP 1-to-1)

Available when UDP is selected (supported for 1-to-1 tests). Requires a Multicast Group Address (e.g., 224.1.1.1) and optional TTL (1–255, default 5).

Iperf Version

Version 2 (2 or 3)

Selects iperf (Version 2) or iperf3 (Version 3). Switching versions automatically updates the default Server Port (5001 for v2; 5201 for v3) and unlocks Reverse Traffic on Version 3.

Server Port

5001 (v2) / 5201 (v3), 1–65535

Destination port on the receiving agent or external Iperf server.

Test Duration

10 seconds

Length of each bandwidth test run in seconds.

Parallel Streams

1 (1–16)

Number of simultaneous client streams between sender and receiver.

Bandwidth & Unit

Empty (Max), 1–65535Mbps/Kbps

Target transmission rate. Leave empty for unthrottled maximum throughput.

TCP Window Size

Autodetect (MB, TCP only)

Socket TCP window size in megabytes. Leave empty to let the OS and Iperf autodetect.

TOS DSCP/PHB Class

None

Marks outgoing IP packets with a Type of Service / DSCP class to validate QoS policies.

Reverse Traffic

Unchecked (Version 3 only)

Reverses traffic direction so the destination server sends data to the source agent.

Interface

Wi-Fi (Wi-Fi or Wired)

Selects which network interface Wi-Fi-capable agents use. On agent-to-agent runs, NetBeez also resolves the destination agent's IP from its matching interface.

Note: When editing an existing Scheduled Iperf Template, fields that alter the stored metric schema or fixed endpoint topology (such as Test Type, Multicast, Bandwidth, TCP Window Size, TOS, and fixed 1-to-1 endpoints or external Server Address) are read-only; create a new template if you need to switch between TCP and UDP.

Viewing Results, TCP Retries, and Per-Agent Breakdown

Open any Iperf template under Scheduled Tests to inspect historical and live runs:

Scheduled Iperf detail page showing aggregate Bandwidth and Retries/Jitter/Packet Loss Results bars and the per-agent Breakdown view
  • Protocol-Specific Metrics: TCP Version 2 templates plot Bandwidth (Mbps); TCP Version 3 templates plot both Bandwidth and TCP Retries (retransmissions, which highlight congestion or packet loss along the path); UDP templates plot Bandwidth, Jitter (ms), and Packet Loss (%).

  • Multi-Agent Breakdown: Clicking a run bar in Results opens the Breakdown card—displaying a multi-metric scatter plot (for multi-agent templates with multiple metrics) or per-agent bar graph, plus a filterable table (Status, Severity, Agent Type, Agent Group, and ISP Name). Click any agent to inspect its historical run series in split view.

Running Ad-Hoc Iperf Tests

Users with Read Write or Administrator permissions can run instant one-off Iperf diagnostics from Ad-Hoc Tests (/ad_hoc):

  1. Navigate to Ad-Hoc Tests and click Iperf in the Test Type bar.

  2. Select an online, non-busy Source Agent (and choose Wi-Fi or Wired if it is a Wi-Fi agent).

  3. Choose Agent (and select a Destination Agent, using the middle swap arrow to flip sender and receiver at any time) or select Hostname or IP to test against an external Iperf server.

  4. Configure Test Type (TCP or UDP), Iperf Version, Server Port, Test Duration, Result Interval (1–60 seconds, default 1 second), Parallel Streams, optional Bandwidth, TCP Window Size, TOS DSCP/PHB Class, or Reverse Traffic (v3).

  5. Click Run Iperf Test. Live interval output from iperf streams line by line directly into the result card.

Did this answer your question?