How hewlettpackard/netperf works
Netperf is a network performance benchmark for TCP, UDP, and other socket transports. The principal workflow is an operator configuring a test in the client, which coordinates with a remote netserver; transport-specific test code runs the data exchange and reports performance results. The source index identifies the client, server, shared library, and protocol-test modules, but the excerpts do not expose the complete runtime dispatch path, so those relationships are omitted or marked unverified. Platform measurement and transport variants are represented without assuming they are all enabled in a given build.
Main entry points: netlib.c Network runtime · netsh.c CLI configuration · netserver.c Netserver · nettest_bsd.c BSD sockets
Components 20
Benchmark control
- Netperf client
src/netperf.c - Netserver
src/netserver.c - CLI configuration
src/netsh.c
Transport tests
- BSD sockets
src/nettest_bsd.c - Omni tests
src/nettest_omni.c - Unix sockets
src/nettest_unix.c - DLPI tests
src/nettest_dlpi.c - SCTP tests
src/nettest_sctp.c - SDP tests
src/nettest_sdp.c - XTI tests
src/nettest_xti.c
Shared runtime
- Network runtime
src/netlib.c - Test protocol definitions
src/netlib.h - Latency histograms
src/hist.h - Address resolution
src/missing/getaddrinfo.c
Platform measurement
- CPU measurement
src/netcpu_procstat.c - CPU platform variants
src/netcpu_kstat.c - Network driver metrics
src/netdrv_ethtool.c - System metrics
src/netsys_linux.c
Other components
- Operator
- Remote host
Connections 27
- Operator → Netperf client: configures
- Netperf client → Remote host: runs remote test
- Remote host → Netserver: hosts
- Netserver → BSD sockets: dispatches
src/netserver.c - Netserver → Unix sockets: dispatches
src/netserver.c - Netserver → DLPI tests: dispatches
src/netserver.c - Netserver → SCTP tests: dispatches
src/netserver.c - CLI configuration → BSD sockets: references
src/netsh.c - CLI configuration → Unix sockets: references
src/netsh.c - CLI configuration → DLPI tests: references
src/netsh.c - CLI configuration → SCTP tests: references
src/netsh.c - CLI configuration → XTI tests: references
src/netsh.c - CLI configuration → Omni tests: references
- BSD sockets → Network runtime: uses
src/nettest_bsd.c - Omni tests → Network runtime: uses
src/nettest_omni.c - SCTP tests → Network runtime: uses
src/nettest_sctp.c - XTI tests → Network runtime: uses
src/nettest_xti.c - DLPI tests → Network runtime: uses
src/nettest_dlpi.c - Unix sockets → Network runtime: uses
src/nettest_unix.c - Network runtime → Test protocol definitions: uses definitions
src/netlib.c - Network runtime → Address resolution: uses
src/netlib.c - BSD sockets → Latency histograms: uses
src/nettest_bsd.c - Omni tests → Latency histograms: uses
src/nettest_omni.c - SCTP tests → Latency histograms: uses
src/nettest_sctp.c - XTI tests → Latency histograms: uses
src/nettest_xti.c - CPU measurement → Network runtime: uses
src/netcpu_procstat.c - CPU platform variants → Network runtime: uses
src/netcpu_kstat.c