A problem has been encountered in recent work: How do I need to test the throughput of the product's WiFi module, based on the existing Linux commands (closed read-only system)?
Before testing, I first looked at the commands that the current system had and searched for relevant data,
Find the use of NC This command, with DD can be used for throughput testing (local area network).
Advantages of using this method of testing: Eliminate the embedding of new software. Disadvantage: Only a rough measure of the upper and lower bandwidth (throughput)
Tool Preparation
1.DD for Windows
2.netcat (Windows edition)
Test device upload Speed
PC side:
NC-LVVP [Port] | DD Of=nul
The ※port is the port, which is consistent with the device side. Nul is similar to the/dev/null in Linux for receiving uploaded data.
Device side:
If=/dev/zero bs=10m count=| NC [IP] [port]
※ip is the PC-side local IP, this code means to take/dev/zero data, 10M as a piece, output 10 pieces of data.
Test device Download speed
PC side:
If=\\?\device\harddisk0\partition0 bs=10m count=8000
The ※pc end has no similar/dev/zero, so use \\?\device\harddisk0\partition0 instead.
Device side:
DD of=/dev/NULL
Disadvantages:
When the upload speed is measured, the device sends the data immediately (DD time is already counted), but the device takes time to connect to the PC, resulting in total transmission time > actual transmission time.
Network throughput Testing with Netcat