Network throughput Testing with Netcat

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.