zephyr/samples/net/zperf
Vytautas Virvičius 4bd85fe6c4 samples: net: zperf: add cellular modem support
This commit adds a cellular modem overlay to the zperf sample, enabling
the use of zperf with a cellular modem.

Signed-off-by: Vytautas Virvičius <vytautas@virvicius.dev>
2025-07-28 08:36:57 -04:00
..
boards samples: net: zperf: Enable i226 config with Intel Alderlake 2025-07-23 17:17:24 +01:00
src samples: net: zperf: Use highest frequency for nRF5340 2025-01-03 11:39:13 +01:00
CMakeLists.txt samples: net: zperf: Use highest frequency for nRF5340 2025-01-03 11:39:13 +01:00
Kconfig samples: net: zperf: fix NRF_WIFI_DATA_HEAP_SIZE 2025-04-22 10:00:19 +02:00
overlay-802154-subg.conf
overlay-cellular-modem.conf samples: net: zperf: add cellular modem support 2025-07-28 08:36:57 -04:00
overlay-loopback.conf samples: net: zperf: Disable L2 ethernet 2025-06-23 12:47:56 -07:00
overlay-netusb.conf
overlay-usbd_next.conf
prj.conf samples: net: enable NET_ZPERF_SERVER 2025-04-23 11:48:42 +02:00
README.rst doc: zbus: update iperf version information 2025-04-22 09:59:57 +02:00
sample.yaml samples: net: zperf: Add compilation of concurrent upload support 2025-04-25 10:22:33 +01:00
usbd_next_ecm.overlay
usbd_next_ncm.overlay

.. zephyr:code-sample:: zperf
   :name: zperf: Network Traffic Generator
   :relevant-api: net_config

   Use the zperf shell utility to evaluate network bandwidth.

Description
***********

The zperf sample demonstrates the :ref:`zperf shell utility <zperf>`, which
allows to evaluate network bandwidth.

Features
*********

- Compatible with iPerf v2.0.10 and newer. For older versions, enable
  :kconfig:option:`CONFIG_NET_ZPERF_LEGACY_HEADER_COMPAT`.

- Client or server mode allowed without need to modify the source code.

Supported Boards
****************

zperf is board-agnostic. However, to run the zperf sample application,
the target platform must provide a network interface supported by Zephyr.

This sample application has been tested on the following platforms:

- Freedom Board (FRDM K64F)
- QEMU x86
- Arm FVP BaseR AEMv8-R
- ARM BASE RevC AEMv8A Fixed Virtual Platforms

For best performance, the sample configures a lot of network packets and buffers.
Because of this, the sample's RAM requirements are quite large. In case the
sample does not fit into target platform RAM, reduce the following configs:

.. code-block:: cfg

   CONFIG_NET_PKT_RX_COUNT=40
   CONFIG_NET_PKT_TX_COUNT=40
   CONFIG_NET_BUF_RX_COUNT=160
   CONFIG_NET_BUF_TX_COUNT=160

Requirements
************

- iPerf 2.0.10 or newer installed on the host machine
- Supported board

Depending on the network technology chosen, extra steps may be required
to setup the network environment.

Usage
*****

See :ref:`zperf library documentation <zperf>` for more information about
the library usage.

Wi-Fi
=====

The IPv4 Wi-Fi support can be enabled in the sample with
:ref:`Wi-Fi snippet <snippet-wifi-ipv4>`.