How to set the UDP Packet Size with iperf3? The flag "-M" does not work with iperf3. Is there an alternative?
-l is the suitable option for or UDP packet size in iperf3
not -M (which is MSS for TCP)
There isn't a way to do it directly in iperf3. However, you can adjust down the MTU size set on your network interface, and iperf will respect that. So long as you're looking to set your packet-sizes smaller than the actual network MTU, that is.