Network transmission performance test and evaluation method and system based on iPerf tool, terminal and medium
By using the iPerf tool for network transmission performance testing and evaluation, the shortcomings of existing Ethernet performance testing technologies have been addressed, resulting in network performance optimization and stability improvement, reduced operation and maintenance costs, and enhanced user experience and business efficiency.
Patent Information
- Application Number
- CN202511761261.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-27
- Publication Date
- 2026-02-10
AI Technical Summary
Existing technologies lack effective Ethernet performance testing methods, which may lead to performance bottlenecks, network latency, and packet loss in devices during network transmission, affecting user experience and business efficiency, and making it difficult to optimize network performance to meet the growing demands.
The iPerf tool was used to test network transmission performance. A physical connection was established between the test device and the client, the client IP address was configured, and the network transmission performance was tested and evaluated based on the iPerf tool. The transmission data was acquired and analyzed to determine the test results.
Timely detection and resolution of network issues, optimization of network performance, reduction of operation and maintenance costs, ensuring that network quality meets industry standards and user needs, and improvement of user experience and business efficiency.
Smart Images

Figure CN121509276A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network testing technology, and in particular to a method, system, terminal, and medium for testing and evaluating network transmission performance based on the iPerf tool. Background Technology
[0002] Once hardware devices are connected to a network, the lack of effective Ethernet performance testing methods can lead to a series of specific problems and challenges. Performance bottlenecks may be hidden in the device's network transmission process, and the lack of corresponding testing methods means that these problems are difficult to detect and resolve in a timely manner. This can result in performance degradation such as network latency and packet loss when the device faces high loads or large data transmissions in practical applications, severely impacting user experience and business efficiency. Network stability is one of the important indicators for evaluating hardware device performance. The lack of effective Ethernet performance testing methods means that the device may exhibit unstable performance under network fluctuations or anomalies, increasing the risk of failure and maintenance costs. This may cause the device to malfunction at critical moments, affecting the continuity and reliability of services. Furthermore, network performance optimization and improvement of hardware devices also require accurate performance test data as support. Without such data, optimization measures may lack focus and effectiveness, and may even cause new problems. This will limit the device's performance improvement and prevent it from meeting the ever-increasing network demands. Therefore, establishing an effective Ethernet performance testing system is crucial to ensuring the stability and reliability of hardware device network performance.
[0003] Therefore, existing technologies still have shortcomings. Summary of the Invention
[0004] The technical problem to be solved by this invention is to provide a method, system, terminal, and medium for network transmission performance testing and evaluation based on the iPerf tool, addressing the aforementioned deficiencies of the prior art. The technical solution adopted by this invention is as follows: In a first aspect, the present invention provides a method for testing and evaluating network transmission performance based on the iPerf tool, wherein the method includes: Send the local iPerf tool to the test device, establish the physical connection between the test device and the client, and complete the client IP configuration; Launch the iPerf tool on the test device and test the network transmission performance based on the iPerf tool; Obtain network transmission data between the client and the test device, and determine the test results based on the network transmission data.
[0005] In one implementation, the local iPerf tool is sent to the test device, a physical connection is established between the test device and the client, and the client IP is configured, including: Locate the local iPerf tool, send the local iPerf tool to the test device based on a preset command, and after successful transmission, view the iPerf tool in the root directory of the test device; Connect the test device to the client via Ethernet and USB cables, and set the IP address for the client.
[0006] In one implementation, the local iPerf tool is sent to the test device, a physical connection is established between the test device and the client, and the client IP is configured. This also includes: Check for poor contact in the network and USB cables, whether the test device is occupied, and whether the iPerf tool is compatible.
[0007] In one implementation, the iPerf tool in the test device is launched, and network transmission performance is tested based on the iPerf tool, including: Determine the client's permission information, locate the iPerf tool on the test device, and start the iPerf tool; The client executes test commands based on the iPerf tool to test network transmission performance, including single-threaded test commands and multi-threaded test commands.
[0008] In one implementation, the iPerf tool in the test device is launched, and network transmission performance is tested based on the iPerf tool, further comprising: When the client is conducting tests, it simultaneously displays data logs of network transmission performance tests.
[0009] In one implementation, acquiring network transmission data between the client and the test device, and determining the test result based on the network transmission data, includes: Ensure a stable test environment and acquire uplink and downlink transmission test data between the client and the test device; The test results are determined based on the uplink transmission test data and the downlink transmission test data.
[0010] In one implementation, determining the test result based on the uplink transmission test data and the downlink transmission test data includes: The average transmission rate and packet loss number are determined based on the uplink transmission test data and the downlink transmission test data. If the average transmission rate is greater than the preset threshold and the number of packet losses is 0, the test result is determined to be satisfactory; otherwise, the network transmission performance test is re-executed.
[0011] Secondly, embodiments of the present invention also provide a network transmission performance testing and evaluation system based on the iPerf tool, wherein the system is used to implement the steps of the network transmission performance testing and evaluation method based on the iPerf tool described above, and the system includes: The test preparation module is used to send the local iPerf tool to the test device, establish a physical connection between the test device and the client, and complete the client IP configuration. The test execution module is used to launch the iPerf tool in the test device and perform network transmission performance tests based on the iPerf tool; The test verification module is used to acquire network transmission data between the client and the test device, and determine the test results based on the network transmission data.
[0012] In one implementation, the test preparation module includes: The tool sending unit is used to locate the local iPerf tool, send the local iPerf tool to the test device based on a preset command, and view the iPerf tool in the root directory of the test device after successful sending. The physical environment setup unit is used to connect the test equipment to the client via network cable and USB cable, and to set the IP address for the client.
[0013] In one implementation, the test preparation module also includes: The preliminary preparation unit is used to check whether the network cable and USB cable have poor contact, whether the test device is occupied, and whether the iPerf tool is compatible.
[0014] In one implementation, the test execution module 20 includes: The tool launch unit is used to determine the client's permission information, locate the iPerf tool in the test device, and launch the iPerf tool. The test execution unit is used by the client to execute test commands based on the iPerf tool to test network transmission performance. The test commands include single-threaded test commands and multi-threaded test commands.
[0015] In one implementation, the test execution module further includes: The data synchronization unit is used by the client to synchronously display the data logs of network transmission performance tests during testing.
[0016] In one implementation, the test verification module includes: The transmission test data determination unit is used to ensure the stability of the test environment and to acquire uplink and downlink transmission test data between the client and the test equipment. The test result determination unit is used to determine the test result based on the uplink transmission test data and the downlink transmission test data.
[0017] In one implementation, the test result determination unit includes: The data analysis subunit is used to determine the average transmission rate and the number of packet losses based on the uplink transmission test data and the downlink transmission test data. The result analysis subunit is used to determine that the test result is satisfactory if the average transmission rate is greater than a preset threshold and the number of packet losses is 0; otherwise, the network transmission performance test is re-executed.
[0018] Thirdly, embodiments of the present invention also provide a terminal, wherein the terminal includes a memory, a processor, and a network transmission performance testing and evaluation program based on the iPerf tool stored in the memory and executable on the processor. When the processor executes the network transmission performance testing and evaluation program based on the iPerf tool, it implements the steps of the network transmission performance testing and evaluation method based on the iPerf tool in any of the above-mentioned schemes.
[0019] Fourthly, embodiments of the present invention also provide a computer-readable storage medium, wherein the computer-readable storage medium stores a network transmission performance testing and evaluation program based on the iPerf tool, and the network transmission performance testing and evaluation program based on the iPerf tool implements the steps of the network transmission performance testing and evaluation method based on the iPerf tool as described in any of the above schemes on the computer-readable storage medium.
[0020] Beneficial Effects: Compared with existing technologies, this invention provides a method for testing and evaluating network transmission performance based on the iPerf tool. First, the local iPerf tool is sent to the test device, establishing a physical connection between the test device and the client, and configuring the client's IP address. Then, the iPerf tool on the test device is started, and network transmission performance is tested based on it. Finally, network transmission data between the client and the test device is acquired, and the test results are determined based on this data. This invention can promptly identify and resolve network problems, optimize network performance, and reduce operational costs. Furthermore, the effective testing method ensures that network quality meets industry standards and user needs, thereby improving user experience and business efficiency. It also helps ensure the stability and reliability of the network system, enhancing user experience and business efficiency. Attached Figure Description
[0021] Figure 1 A flowchart of a preferred embodiment of the network transmission performance testing and evaluation method based on the iPerf tool provided in this invention.
[0022] Figure 2 This is a block diagram illustrating the principle of a network transmission performance testing and evaluation system based on the iPerf tool, as provided in an embodiment of the present invention.
[0023] Figure 3 A schematic diagram of the terminal provided in an embodiment of the present invention. Detailed Implementation
[0024] To make the objectives, technical solutions, and effects of this invention clearer and more explicit, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0025] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content, operations, or steps, nor does it require execution in the described order. For example, some operations or steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.
[0026] It should be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise. It should be understood that, in order to clearly describe the technical solutions of the embodiments of the present invention, the terms "first" and "second" are used in the embodiments of the present invention to distinguish identical or similar items with essentially the same function and effect. For example, the first control information and the second control information are only used to distinguish different control information and do not limit their order. Those skilled in the art will understand that the words "first" and "second" do not limit the quantity or the order of execution, and that the words "first" and "second" do not necessarily imply that they are different. It should also be understood that the terms "and / or" as used in this specification and the appended claims refer to any combination of one or more of the associated listed items and all possible combinations, and include such combinations.
[0027] To address the problems of existing technologies, this invention also provides a network transmission performance testing and evaluation method based on the iPerf tool. This method can promptly identify and resolve network problems, optimize network performance, and reduce operation and maintenance costs. Furthermore, the effective testing method ensures that network quality meets industry standards and user needs, thereby improving user experience and business efficiency. This is beneficial for ensuring the stability and reliability of the network system. In specific application, this embodiment first sends the local iPerf tool to the test device, establishes a physical connection between the test device and the client, and completes the client's IP configuration. Then, the iPerf tool on the test device is started, and network transmission performance is tested based on the iPerf tool. Finally, network transmission data between the client and the test device is obtained, and the test results are determined based on the network transmission data.
[0028] The network transmission performance testing and evaluation method based on the iPerf tool in this embodiment can be applied to terminals, which can be intelligent products such as computers. Specifically, for example... Figure 1 As shown in the figure, the network transmission performance testing and evaluation method based on the iPerf tool in this embodiment includes the following steps: Step S100: Send the local iPerf tool to the test device, establish a physical connection between the test device and the client, and complete the client IP configuration.
[0029] Specifically, this embodiment requires sending the local iPerf tool to the test device. Before sending the local iPerf tool, this embodiment first needs to confirm that the version of the iPerf tool matches the architecture of the test device. For example, if the test device is ARM architecture, select the ARM version of the iPerf tool; if it is x86 architecture, select the x86 version to avoid the tool failing to run due to architecture incompatibility. The client has the HarmonyOS development toolkit (including the hdc tool) installed. The hdc tool is a command-line tool provided by HarmonyOS for developers for debugging, and the environment variables have been configured. Ensure that the hdc command can be directly called in any cmd window. The verification method is: type hdc version in cmd; if the version information is displayed, it is normal. In addition, this embodiment also requires ensuring that the test device is powered on and connected to the client via USB cable, and that developer mode and USB debugging mode are enabled.
[0030] In practical application, this embodiment first locates the local iPerf tool. On the client side, find the storage path of the iPerf tool, for example: C:\test_wifi_eth\iperf. Copy the complete path, avoiding Chinese characters or spaces to prevent transmission failure. Next, open the command prompt window on the PC and enter the following command to upload the iPerf tool to the / data directory of the test device. After successful transmission, the iPerf tool can be viewed in the root directory of the test device.
[0031] To ensure the successful transfer of the iPerf tool to the test device, this embodiment also includes verification. For example, the client executes `hdc shell` to enter the device command line, enters `cd / data` to change the directory, and then executes `ls -l` to view the files. Next, it checks if the file "iperf" exists in the list and if its permissions include "x" (representing executable permissions). If the permissions are insufficient (e.g., only `-rw-r--r--` is displayed), it executes `chmod +x / data / iperf` to grant executable permissions. Only when both conditions are met—the "iperf" file exists in the list and its permissions include "x"—is the iPerf tool successfully transferred to the test device.
[0032] Furthermore, in this embodiment, the test device and the client are connected via a network cable and a USB cable, and an IP address is configured for the client. This embodiment can use Cat 5e or higher specification network cables to support gigabit transmission, avoiding insufficient cable bandwidth that could lead to low test results. The original USB cable is used to ensure data transmission stability. The IP addresses of the client and the test device are planned in advance, ensuring they are on the same network segment, such as both 192.168.1.x with a subnet mask of 255.255.255.0, to avoid communication failures due to cross-segment issues. In specific applications, one end of the network cable is inserted into the Ethernet port of the test device, and the other end into the Ethernet port of the client; one end of the USB cable is inserted into the USB debugging port of the test device, and the other end into the USB port of the client (preferably the rear USB port on the client for more stable power supply). If the Ethernet interface indicator light (green / orange) on the test device flashes, and the client's Ethernet interface indicator light flashes synchronously, it indicates that the physical link is established. Additionally, when configuring the client's IP address, this embodiment allows right-clicking the "Network" icon in the taskbar and selecting "Network and Internet" settings. Under the "Ethernet" option, click "Change adapter options," locate the currently connected Ethernet network (e.g., "Ethernet 2"), right-click and select "Properties." Double-click "Internet Protocol Version 4 (TCP / IPv4)," select "Use the following IP address," and enter the following configuration: IPv4 address: 192.168.1.101 (can be customized, must be in the same network segment as the device IP); Subnet mask: 255.255.255.0; Default gateway: 192.168.1.1 (Same as the router gateway; if there is no router, enter the gateway address of the network segment where the device is located). DNS server: You can enter 8.8.8.8 (Google public DNS) or 114.114.114.114 (domestic public DNS). Click "OK" to save the configuration and close the properties window.
[0033] When configuring the IP address of the test device, this embodiment uses the `hdc shell` command on the client to access the device terminal. First, execute `ifconfig` to view the device's Ethernet interface name; then, execute the IP configuration command: `ifconfig eth0 192.168.1.105 netmask 255.255.255.0`; execute `ifconfig eth0` again to confirm the configuration: The display "inetaddr:192.168.1.105 Mask:255.255.255.0" indicates successful IP configuration.
[0034] Furthermore, this embodiment checks for poor contact of the network cable and USB cable, whether the test device is occupied, and the compatibility of the iPerf tool. It also verifies the connectivity between the client and the test device. Specifically, the client opens a new command prompt window and confirms that the client IP address is active, specifically displaying "IPv4 address: 192.168.1.101". Next, it executes the ping command to test connectivity. If pinging continues for 30 seconds without packet loss, the network link is stable. If an anomaly occurs, such as a ping failure, check if the network cable is securely plugged in and confirm that the client and test device IP addresses are on the same network segment. If a high ping packet loss rate occurs, replace the network cable to rule out cable faults, check if the device's Ethernet interface is loose, and close any background software using the network.
[0035] Step S200: Start the iPerf tool in the test device and test the network transmission performance based on the iPerf tool.
[0036] This embodiment first verifies the client's permissions, confirming that it has access to the device command line via hdc shell and possesses root privileges. Next, it checks for processes consuming network or CPU resources; if any are found, they are terminated to avoid affecting test results. Specifically, the iPerf tool requires temporary data storage during runtime. Then, it switches to the iPerf directory, ensuring the iPerf tool is present in the current directory. Finally, it starts the iPerf service. After starting the iPerf service, this embodiment also verifies that the iPerf service has started successfully, ensuring the iPerf service window is open and the listening port is functioning correctly. If the iPerf service is unresponsive, it is necessary to verify the client's permissions for the iPerf service and whether the test device has sufficient memory, and take appropriate corrective measures.
[0037] Furthermore, after the iPerf service starts and the client and test device are connected normally, the iPerf tool can be located, and test commands can be executed based on the iPerf tool to test network transmission performance. These test commands include single-threaded test commands and multi-threaded test commands. Simultaneously, the client displays network transmission performance test data logs during the test.
[0038] The single-threaded test command executed in this embodiment is as follows: bash iperf.exe -c 192.168.1.105 -t 10 -i 1 Command parameter explanation: -c 192.168.1.105: The IP address of the device being tested; -t 10: Test duration 10 seconds; -i 1: Output real-time test data every 1 second.
[0039] During the test, the cmd window displays the transmitted data every second in real time, such as "2.00-3.00 sec 18.5MBytes 155 Mbits / sec", which means that 18.5MB of data is transmitted per second with a bandwidth of 155Mbps.
[0040] The multi-threaded test command executed in this embodiment (4 threads, closely resembling a real-world multi-user / large data transmission scenario) is as follows: bash iperf.exe -c 192.168.1.105 -t 10 -P 4 -i 1 -P4 indicates that 4 concurrent test threads are enabled. The number of threads can be adjusted according to requirements, such as -P 8 for 8 threads, but the solution uses 4 threads to ensure comparability.
[0041] During the test, the cmd window displays the real-time data of each thread according to the thread ID (such as [4], [6], [8],
[10] ), and at the end of each 1 second, it displays the [SUM] line, recording the aggregated data of all threads. For example, "[SUM]3.00 - 4.00 sec 112 MBytes 942 Mbits / sec" represents the aggregated bandwidth of 4 threads, which is 942 Mbps.
[0042] In addition, this embodiment can also verify data consistency. Specifically, the "Bandwidth" value of each thread on the client side should be stable (the fluctuation range ≤ 10%), without a sudden significant decrease. If the fluctuation is too large, the network stability needs to be checked. When an abnormality occurs, this embodiment needs to detect whether the IP address of the test device in the test command sent by the client is correct, whether the firewall of the test device intercepts the test command, whether the network cable is qualified, and whether there are high-memory processes in the background of the test device, so as to take corresponding measures for improvement.
[0043] Step S300: Obtain the network transmission data between the client and the test device, and determine the test result based on the network transmission data.
[0044] This embodiment first ensures the stability of the test environment, and obtains the uplink transmission test data and the downlink transmission test data between the client and the test device. Then, based on the uplink transmission test data and the downlink transmission test data, it determines the test result. In practical applications, this embodiment determines the average transmission rate and the number of lost packets based on the uplink transmission test data and the downlink transmission test data. Among them, the average transmission rate includes the average transmission rate of the uplink transmission test data and the average transmission rate of the downlink transmission test data. If the average transmission rate is greater than a preset threshold, such as greater than 850 Mbps, and the number of lost packets is 0, it is determined that the test result is qualified; otherwise, the network transmission performance test is re-executed.
[0045] In addition, this embodiment will perform troubleshooting when the average transmission rate of uplink and downlink test data fails to meet the standards, including hardware troubleshooting, environmental troubleshooting, and tool troubleshooting. Specifically, hardware troubleshooting includes: replacing the gigabit network cable, confirming that the Ethernet interfaces of both the client and the test device are gigabit (not 100 Mbps), and checking whether the device power supply is stable, as insufficient power supply may affect network card performance. Environmental troubleshooting includes closing processes that consume network resources, such as client Windows automatic updates and background antivirus scans, and executing `free` on the device to confirm that available memory is ≥200MB. Tool troubleshooting includes re-uploading an adapted version of the iPerf tool (to avoid performance mismatch caused by an outdated tool version). When a high packet loss rate occurs, this embodiment can perform physical link troubleshooting and network interference troubleshooting. Physical link troubleshooting includes re-plugging and unplugging the network cable, cleaning the Ethernet interface to remove dust, changing the Ethernet port of the client or test device, and eliminating port failures. Network interference troubleshooting includes: keeping away from strong electromagnetic interference sources (such as routers and microwave ovens), using a dedicated network cable, and avoiding sharing switch ports with other devices.
[0046] In summary, this embodiment sends the local iPerf tool to the test device, establishes the physical connection between the test device and the client, and completes the client IP configuration. Then, the iPerf tool on the test device is started, and network transmission performance is tested based on the iPerf tool. Finally, network transmission data between the client and the test device is acquired, and the test results are determined based on this data. Effective Ethernet performance testing methods are crucial for ensuring the stability and reliability of network systems. By comprehensively evaluating key performance indicators such as network throughput, latency, and jitter, network problems can be identified and resolved in a timely manner, network performance can be optimized, and maintenance costs can be reduced. Effective testing methods also ensure that network quality meets industry standards and user needs, thereby improving user experience and business efficiency. Furthermore, this invention, through regular Ethernet performance testing, can also promptly identify and resolve potential network problems, preventing the escalation of faults and resulting in more severe business interruptions and losses. During the construction and maintenance of network systems, the selection and application of Ethernet performance testing methods should be given high priority to ensure the stability and reliability of the network system and improve user experience and business efficiency.
[0047] Based on the above embodiments, the present invention also provides a network transmission performance testing and evaluation system based on the iPerf tool, the system being used to implement the steps in the above method embodiments. Specifically, as follows... Figure 2As shown in the diagram, the network transmission performance testing and evaluation system based on the iPerf tool in this embodiment includes: a test preparation module 10, a test execution module 20, and a test verification module 30. Specifically, the test preparation module 10 is used to send the local iPerf tool to the test device, establish a physical connection between the test device and the client, and complete the client IP configuration. The test execution module 20 is used to start the iPerf tool in the test device and perform network transmission performance testing based on the iPerf tool. The test verification module 30 is used to acquire network transmission data between the client and the test device and determine the test results based on the network transmission data.
[0048] In one implementation, the test preparation module 10 includes: The tool sending unit is used to locate the local iPerf tool, send the local iPerf tool to the test device based on a preset command, and view the iPerf tool in the root directory of the test device after successful sending. The physical environment setup unit is used to connect the test equipment to the client via network cable and USB cable, and to set the IP address for the client.
[0049] In one implementation, the test preparation module 10 further includes: The preliminary preparation unit is used to check whether the network cable and USB cable have poor contact, whether the test device is occupied, and whether the iPerf tool is compatible.
[0050] In one implementation, the test execution module 20 includes: The tool launch unit is used to determine the client's permission information, locate the iPerf tool in the test device, and launch the iPerf tool. The test execution unit is used by the client to execute test commands based on the iPerf tool to test network transmission performance. The test commands include single-threaded test commands and multi-threaded test commands.
[0051] In one implementation, the test execution module 20 further includes: The data synchronization unit is used by the client to synchronously display the data logs of network transmission performance tests during testing.
[0052] In one implementation, the test verification module 30 includes: The transmission test data determination unit is used to ensure the stability of the test environment and to acquire uplink and downlink transmission test data between the client and the test equipment. The test result determination unit is used to determine the test result based on the uplink transmission test data and the downlink transmission test data.
[0053] In one implementation, the test result determination unit includes: The data analysis subunit is used to determine the average transmission rate and the number of packet losses based on the uplink transmission test data and the downlink transmission test data. The result analysis subunit is used to determine that the test result is satisfactory if the average transmission rate is greater than a preset threshold and the number of packet losses is 0; otherwise, the network transmission performance test is re-executed.
[0054] The working principles of each device or module in the network transmission performance testing and evaluation system based on the iPerf tool in this embodiment are the same as those of each step in the above method embodiment, and will not be repeated here.
[0055] The modules in the network transmission performance testing and evaluation system based on the iPerf tool described above can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the terminal in hardware form or independent of it, or stored in the memory of the terminal in software form, so that the processor can call and execute the corresponding operations of each module.
[0056] Based on the above embodiments, the present invention also provides a terminal, the principle block diagram of which can be as follows: Figure 3 As shown. The terminal may include one or more processors 100 ( Figure 3 (Only one is shown in the diagram), memory 101, and computer program 102 stored in memory 101 and executable on one or more processors 100. For example, a network transmission performance testing and evaluation program based on the iPerf tool. When one or more processors 100 execute computer program 102, they can implement the various steps in the embodiment of the network transmission performance testing and evaluation method based on the iPerf tool. Alternatively, when one or more processors 100 execute computer program 102, they can implement the functions of various modules / units in the embodiment of the network transmission performance testing and evaluation system based on the iPerf tool, which is not limited here.
[0057] In one embodiment, the processor 100 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0058] In one embodiment, memory 101 may be an internal storage unit of an electronic device, such as a hard drive or RAM. Memory 101 may also be an external storage device of the electronic device, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc. Furthermore, memory 101 may include both internal and external storage units. Memory 101 is used to store computer programs and other programs and data required by the terminal. Memory 101 can also be used to temporarily store data that has been output or will be output.
[0059] Those skilled in the art will understand that Figure 3 The block diagram shown is merely a partial structural diagram related to the present invention and does not constitute a limitation on the terminal to which the present invention is applied. A specific terminal may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0060] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, operational databases, or other media used in the embodiments provided by this invention can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual operating data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0061] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for testing and evaluating network transmission performance based on the iPerf tool, characterized in that, The method includes: Send the local iPerf tool to the test device, establish the physical connection between the test device and the client, and complete the client IP configuration; Launch the iPerf tool on the test device and test the network transmission performance based on the iPerf tool; Obtain network transmission data between the client and the test device, and determine the test results based on the network transmission data.
2. The network transmission performance testing and evaluation method based on the iPerf tool according to claim 1, characterized in that, Send the local iPerf tool to the test device, establish the physical connection between the test device and the client, and complete the client IP configuration, including: Locate the local iPerf tool, send the local iPerf tool to the test device based on a preset command, and after successful transmission, view the iPerf tool in the root directory of the test device; Connect the test device to the client via Ethernet and USB cables, and set the IP address for the client.
3. The network transmission performance testing and evaluation method based on the iPerf tool according to claim 2, characterized in that, Send the local iPerf tool to the test device, establish the physical connection between the test device and the client, and complete the client IP configuration. This also includes: Check for poor contact in the network and USB cables, whether the test device is occupied, and whether the iPerf tool is compatible.
4. The network transmission performance testing and evaluation method based on the iPerf tool according to claim 1, characterized in that, Launch the iPerf tool on the test device and test the network transmission performance based on the iPerf tool, including: Determine the client's permission information, locate the iPerf tool on the test device, and start the iPerf tool; The client executes test commands based on the iPerf tool to test network transmission performance, including single-threaded test commands and multi-threaded test commands.
5. The network transmission performance testing and evaluation method based on the iPerf tool according to claim 4, characterized in that, Launching the iPerf tool on the test device and testing network transmission performance based on the iPerf tool also includes: When the client is conducting tests, it simultaneously displays data logs of network transmission performance tests.
6. The network transmission performance testing and evaluation method based on the iPerf tool according to claim 1, characterized in that, Acquiring network transmission data between the client and the test device, and determining test results based on the network transmission data, including: Ensure a stable test environment and acquire uplink and downlink transmission test data between the client and the test device; The test results are determined based on the uplink transmission test data and the downlink transmission test data.
7. The network transmission performance testing and evaluation method based on the iPerf tool according to claim 6, characterized in that, Based on the uplink transmission test data and the downlink transmission test data, the test results are determined, including: The average transmission rate and packet loss number are determined based on the uplink transmission test data and the downlink transmission test data. If the average transmission rate is greater than the preset threshold and the number of packet losses is 0, the test result is determined to be satisfactory; otherwise, the network transmission performance test is re-executed.
8. A network transmission performance testing and evaluation system based on the iPerf tool, characterized in that, The system is used to implement the steps of the network transmission performance testing and evaluation method based on the iPerf tool as described in any one of claims 1-7, and the system includes: The test preparation module is used to send the local iPerf tool to the test device, establish a physical connection between the test device and the client, and complete the client IP configuration. The test execution module is used to launch the iPerf tool in the test device and perform network transmission performance tests based on the iPerf tool; The test verification module is used to acquire network transmission data between the client and the test device, and determine the test results based on the network transmission data.
9. A terminal, characterized in that, The terminal includes a memory, a processor, and a network transmission performance testing and evaluation program based on the iPerf tool stored in the memory and executable on the processor. When the processor executes the network transmission performance testing and evaluation program based on the iPerf tool, it implements the steps of the network transmission performance testing and evaluation method based on the iPerf tool as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a network transmission performance testing and evaluation program based on the iPerf tool, which implements the steps of the network transmission performance testing and evaluation method based on the iPerf tool as described in any one of claims 1-7 on the computer-readable storage medium.