zperf¶
WHAT IS THIS?¶
zperf is a network traffic generator for Zephyr that may be used to evaluate network bandwidth.
SOURCE CODE¶
git clone https://github.com/unisoc/apps.git
cd apps/zperf
BUILD¶
1) Please setup environment as the below URL.
2) Set PROFILE to zperf and make
PROFILE=zperf make
3) See the build result and check if binaries generated.
cd output/zperf/images
UPDATE FIRMWARE¶
Please update firmware as the below URL.
USAGE¶
For details, please refer to the following URL.
Here are examples.
UDP RX:
1) Run on board
zperf udp download 5001
2) Run on PC
iperf -l 1K -c 192.168.20.127 -p 5001 -i 1 -u
UDP TX:
1) Run on PC
iperf -s -l 1K -u -B 192.168.1.142
2) Run on board
zperf udp upload 192.168.1.142 5001 10 1K 100M
TCP RX:
1) Run on board
zperf tcp download 5001
2) Run on PC
iperf -l 1K -c 192.168.20.127 -p 5001 -i 1
TCP TX:
1) Run on PC
iperf -s -l 1K -B 192.168.1.142
2) Run on board
zperf tcp upload 192.168.1.142 5001 10 1K 100M