By default, the <buffer_len> is 128 KB for TCP and 8 KB for UDP. Larger buffer length may improve the performance. You can change it by the -l option of iperf3.
Note that if the <buffer_len> is greater than 1472 (total packet length is exceeded the MTU of the NIC) when use UDP, packets fragmentation will occur. You should enable fragmentation features in smoltcp:
How to run iperf on Ruxos and benchmark network performance
Build & run
Build and start the
iperf3
server on Ruxos:Benchmark
In another shell, run the
iperf3
client:iperf on Ruxos as the receiver:
You need to set the
<sender_bitrate>
(in bits/sec) to avoid sending packets too fast from the client when use UDP.iperf on Ruxos as the sender:
By default, the
<buffer_len>
is 128 KB for TCP and 8 KB for UDP. Larger buffer length may improve the performance. You can change it by the-l
option ofiperf3
.Note that if the
<buffer_len>
is greater than1472
(total packet length is exceeded the MTU of the NIC) when use UDP, packets fragmentation will occur. You should enable fragmentation features in smoltcp: