Wireless router WiFi performance testing method and system
By configuring the test environment and utilizing the test load for multiple tests, the problem of low WiFi performance testing of existing wireless routers is solved, and automated testing is realized, which improves testing efficiency and accuracy.
Patent Information
- Application Number
- CN202410246192.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-05
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2044-03-05
AI Technical Summary
Existing wireless routers have low performance testing efficiency and require multiple employees to cooperate on each test bench to conduct comprehensive performance testing.
By configuring the test environment of the router to be tested, using the upper industrial control machine and the lower test load for network testing, filtering the target router, and conducting uplink and downlink data testing, attenuation testing and quality testing, calculating various errors, filtering the effective value of the throughput, Build a performance test report.
It improves the efficiency and accuracy of wireless router performance testing, reduces the dependence of manual testing, and realizes an automated test process.
Smart Images

Figure CN118018461B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of performance testing, and in particular to a wireless router WiFi performance testing method and system. Background Art
[0002] Traditional wireless router WiFi production testing consists of two parts: board testing and final testing. The board testing mainly tests indicators such as receiving sensitivity, transmission power, spectrum, and frequency deviation, while the final testing mainly tests WiFi throughput. For the final testing, the WiFi throughput test is directly related to the user's experience. The quality of WiFi performance corresponds to the smoothness of the user's network behavior using the wireless router.
[0003] However, existing wireless router WiFi performance testing often requires multiple employees to cooperate in conducting comprehensive performance tests on wireless routers on various test benches according to test requirements, resulting in poor overall testing efficiency. Summary of the invention
[0004] The present invention provides a wireless router WiFi performance test method and system, the main purpose of which is to improve the effect of wireless router performance test.
[0005] To achieve the above object, the present invention provides a wireless router WiFi performance testing method, comprising:
[0006] Configure a test environment for the router to be tested, use the upper industrial computer in the test environment to open the networking gateway of the router to be tested, based on the networking gateway, use the lower test load in the test environment to perform a network test on the router to be tested, obtain a network test result, and screen a target router among the routers to be tested based on the network test result;
[0007] Performing an uplink data test on the target router, and using the upper industrial computer to record the uplink throughput PN of the target router, and calculating the uplink error of the target router according to the uplink throughput Pn and a preset standard uplink throughput Pn;
[0008] Performing a downlink data test on the target router, and recording the downlink throughput TN of the target router using the lower test load, and calculating the downlink error of the target router according to the downlink throughput TN and a preset standard downlink throughput Tn;
[0009] Performing an attenuation test on the target router, and using the upper industrial computer and the lower test load to record the uplink throughput PA and the downlink throughput TA of the target router respectively, and calculating the attenuation uplink error and the attenuation downlink error of the target router respectively based on the uplink throughput PA and the downlink throughput TA;
[0010] A quality test is performed on the target router, and the uplink throughput PX and the downlink throughput TX of the target router are recorded using the upper industrial computer and the lower test load respectively; based on the uplink throughput PX and the downlink throughput TX, the quality uplink error and the quality downlink error of the target router are calculated respectively; based on the uplink error, the downlink error, the attenuated uplink error, the attenuated downlink error, the quality uplink error and the quality downlink error, the throughput effective values of the uplink throughput PN, the downlink throughput TN, the uplink throughput PA, the downlink throughput TA, the uplink throughput PX and the downlink throughput TX are screened; and a performance test report of the target router is constructed through the throughput effective values.
[0011] Optionally, configuring a test environment of the router to be tested includes:
[0012] Identify the test indicators of the router to be tested;
[0013] Based on the test indicators, configure the test equipment of the router to be tested;
[0014] Identifying functional indicators of the test equipment;
[0015] Based on the test indicators and the functional indicators, a test environment for the router to be tested is constructed.
[0016] Optionally, the using a host industrial computer in the test environment to open a networking gateway of the router to be tested includes:
[0017] Marking the network management tool in the upper industrial computer;
[0018] Identifying a router network of the router to be tested;
[0019] Based on the router network, adjusting the network parameters of the network management tool to obtain adjustment parameters;
[0020] Based on the adjustment parameters, the upper industrial computer and the router to be tested are in the same network segment;
[0021] Based on the same network segment, the network management tool is used to open the networking gateway of the router to be tested.
[0022] Optionally, the performing an uplink data test on the target router and recording the uplink throughput PN of the target router by using the upper industrial computer includes:
[0023] Constructing an iperf test environment for the target router;
[0024] In the iperf test environment, the host industrial computer is used to run the iperf corresponding to the iperf test environment to obtain the server operation result;
[0025] In the iperf test environment, using the target router to run the iperf corresponding to the iperf test environment to obtain a client operation result;
[0026] Based on the server operation result and the client operation result, the uplink throughput PN of the target router is recorded.
[0027] Optionally, the performing a downlink data test on the target router and recording a downlink throughput TN of the target router by using the lower test load includes:
[0028] Analyzing the test stability coefficients of the target router and the lower test load;
[0029] When the test stability coefficient meets the requirements, using the test tool corresponding to the lower test load to send a data packet to the target router to obtain a data packet sending result;
[0030] Extracting the amount of data sent and the sending time from the data packet sending result;
[0031] Based on the amount of sent data and the sending time, the downlink throughput TN of the target router is calculated using the following formula:
[0032]
[0033] Among them, τ represents the downlink throughput TN of the target router, θ represents the amount of sent data, and T represents the sending time.
[0034] Optionally, the analyzing the test stability coefficients of the target router and the lower test load includes:
[0035] Identifying a stable impact factor of the target router and the lower test load;
[0036] Analyzing the factor characteristics of the stable impact factors;
[0037] Based on the factor characteristics, analyzing the relationship between the stability impact factor and the stability impact of the target router and the lower test load;
[0038] Based on the stable influencing factors, the factor characteristics and the stable influencing relationships, the test stable coefficients of the target router and the lower test loads are analyzed.
[0039] Optionally, analyzing the test stability coefficients of the target router and the lower test load based on the stability impact factor, the factor characteristics, and the stability impact relationship includes:
[0040] Based on the factor characteristics and the stable impact relationship, calculating the stable impact weight of the stable impact factor on the target router and the lower test load;
[0041] Based on the stability impact factor and the stability impact weight, the test stability coefficient of the target router and the lower test load is calculated using the following formula:
[0042]
[0043] in, represents the test stability coefficient of the target router and the lower test load, LoC represents the stable monitoring model, and A a represents the ath stable impact factor, S a represents the stable impact weight corresponding to the ath stable impact factor, and r represents the number of stable impact factors.
[0044] Optionally, performing an attenuation test on the target router, and using the upper industrial computer and the lower test load to record the uplink throughput PA and the downlink throughput TA of the target router respectively, includes:
[0045] Configuring a signal attenuation device of the target router;
[0046] Based on the signal attenuation device, construct a signal attenuation environment of the target router;
[0047] Perform signal attenuation of the target router based on the signal attenuation environment to obtain a signal attenuation network;
[0048] The upper industrial computer and the lower test load are used to record the uplink throughput PA and the downlink throughput TA of the target router in the signal attenuation network respectively.
[0049] Optionally, constructing a performance test report of the target router by using the throughput effective value includes:
[0050] Serializing the throughput effective value to obtain a sequence throughput effective value;
[0051] Based on the effective value of the sequence throughput, drawing a throughput waveform diagram of the target router;
[0052] Based on the throughput waveform diagram, a performance test report of the target router is constructed.
[0053] In order to solve the above problems, the present invention also provides a wireless router WiFi performance test system, the system comprising:
[0054] A router network test module is used to configure a test environment for a router to be tested, use a host industrial computer in the test environment to open a network gateway of the router to be tested, perform a network test on the router to be tested based on the network gateway and a lower test load in the test environment to obtain a network test result, and screen a target router from the routers to be tested based on the network test result;
[0055] An uplink data test module, used to perform an uplink data test on the target router, and use the upper industrial computer to record the uplink throughput PN of the target router, and calculate the uplink error of the target router according to the uplink throughput Pn and a preset standard uplink throughput Pn;
[0056] A downlink data test module, used to perform a downlink data test on the target router, and record the downlink throughput TN of the target router using the lower test load, and calculate the downlink error of the target router according to the downlink throughput TN and a preset standard downlink throughput Tn;
[0057] an attenuation test module, configured to perform an attenuation test on the target router, and respectively record the uplink throughput PA and the downlink throughput TA of the target router using the upper industrial computer and the lower test load, and respectively calculate the attenuation uplink error and the attenuation downlink error of the target router based on the uplink throughput PA and the downlink throughput TA;
[0058] The quality test module is used to perform a quality test on the target router, and use the upper industrial computer and the lower test load to record the uplink throughput PX and the downlink throughput TX of the target router respectively, and calculate the quality uplink error and the quality downlink error of the target router based on the uplink throughput PX and the downlink throughput TX respectively, and screen the throughput effective values of the uplink throughput PN, the downlink throughput TN, the uplink throughput PA, the downlink throughput TA, the uplink throughput PX and the downlink throughput TX based on the uplink error, the downlink error, the attenuated uplink error, the attenuated downlink error, the quality uplink error and the quality downlink error, and construct a performance test report of the target router through the throughput effective values.
[0059] The embodiment of the present invention can improve the data reliability of the test of the router to be tested by configuring the test environment of the router to be tested; the embodiment of the present invention is based on the networking gateway and uses the lower test load in the test environment to perform a network test on the router to be tested, and the network test result can provide a data basis for the later identification of the network function of the router to be tested; the embodiment of the present invention performs an uplink data test on the target router and uses the upper industrial computer to record the uplink throughput PN of the target router, which can provide a data basis for evaluating the communication efficiency of the target router; the embodiment of the present invention performs a downlink data test on the target router and uses the lower test load to record the downlink throughput of the target router TN can evaluate the data transmission speed of the target router. Furthermore, the embodiment of the present invention can evaluate the performance of the router under different signal qualities by performing an attenuation test on the target router and using the upper industrial computer and the lower test load to record the uplink throughput PA and downlink throughput TA of the target router respectively. The embodiment of the present invention can evaluate the quality of the target router by performing a quality test on the target router and using the upper industrial computer and the lower test load to record the uplink throughput PX and downlink throughput TX of the target router respectively. Finally, the embodiment of the present invention constructs a performance test report of the target router through the throughput effective value to realize the performance evaluation of the target router. Therefore, the wireless router WiFi performance test method and system proposed by the present invention can improve the effect of wireless router performance testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 A schematic diagram of a flow chart of a wireless router WiFi performance testing method provided by an embodiment of the present invention;
[0061] Figure 2 A functional module diagram of a wireless router WiFi performance test system provided by an embodiment of the present invention;
[0062] Figure 3 A schematic diagram of the structure of an electronic device of a wireless router WiFi performance test system provided by an embodiment of the present invention;
[0063] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0064] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0065] The embodiment of the present application provides a wireless router WiFi performance test method. The execution subject of the wireless router WiFi performance test method includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the wireless router WiFi performance test method can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
[0066] Reference Figure 1 FIG. 1 is a flow chart of a wireless router WiFi performance test method provided by an embodiment of the present invention. In this embodiment, the wireless router WiFi performance test method includes:
[0067] S1. Configure a test environment for a router to be tested, use a host industrial computer in the test environment to open a network gateway of the router to be tested, perform a network test on the router to be tested based on the network gateway and use a lower test load in the test environment to obtain a network test result, and select a target router from the routers to be tested based on the network test result.
[0068] The embodiment of the present invention can improve the data reliability of the test of the router to be tested by configuring the test environment of the router to be tested. The test environment refers to the environment for performing performance test on the router to be tested, such as equipment environment, space environment and other environments.
[0069] As an embodiment of the present invention, the configuration of the test environment of the router to be tested includes: identifying the test indicators of the router to be tested; configuring the test equipment of the router to be tested based on the test indicators; identifying the functional indicators of the test equipment; and constructing the test environment of the router to be tested based on the test indicators and the functional indicators.
[0070] Among them, the test indicators refer to indicators for performance testing of the router to be tested, such as network speed, signal range and other indicators; the test equipment refers to equipment for implementing the test indicators, such as upper industrial computers, lower test loads and other equipment; the functional indicators refer to the functions of the test equipment, such as test signal strength, test signal range, etc.
[0071] Furthermore, the embodiment of the present invention can effectively manage the networking gateway of the router to be tested by using the upper industrial computer in the test environment to open the networking gateway of the router to be tested, and provide a stable and controllable network connection for the test environment. This helps to ensure the accuracy and efficiency of the test. Among them, the networking gateway refers to the gateway that configures NAT (network address translation) or routing rules on the router to allow traffic from the upper industrial computer to pass through.
[0072] Optionally, as an embodiment of the present invention, the use of the upper industrial computer in the test environment to open the networking gateway of the router to be tested includes: marking the network management tool in the upper industrial computer; identifying the router network of the router to be tested; based on the router network, adjusting the network parameters of the network management tool to obtain adjustment parameters; based on the adjustment parameters, achieving that the upper industrial computer and the router to be tested are in the same network segment; based on the same network segment, using the network management tool to open the networking gateway of the router to be tested.
[0073] Among them, the network management tool refers to the software or tool for controlling the upper industrial computer network, the router network refers to the network of the router to be tested, the network parameters refer to the parameters of the upper industrial computer network, such as IP address, subnet mask, default gateway and other parameters, and the same network segment refers to making the upper industrial computer and the router to be tested in the same network.
[0074] The embodiment of the present invention is based on the networking gateway, and uses the lower-level test load in the test environment to perform a network test on the router to be tested, and the network test result obtained can provide a data basis for later identification of the network function of the router to be tested. Among them, the network test result refers to the result of whether the lower-level test load can access the WiFi network of the router to be tested. In detail, the network test is performed on the router to be tested using the lower-level test load in the test environment, and the network test result obtained can be used to send test data packets and monitor network conditions through the lower-level test loads such as ping, traceroute, loadrunner, etc., for example, using the ping command to test the connectivity between the lower-level test load and the router to be tested, sending a certain number of data packets and observing the response to determine whether the network is unobstructed.
[0075] In the embodiment of the present invention, the target router refers to a router with unobstructed network among the routers to be tested.
[0076] S2. Perform an uplink data test on the target router, and use the upper industrial computer to record the uplink throughput PN of the target router, and calculate the uplink error of the target router according to the uplink throughput Pn and a preset standard uplink throughput Pn.
[0077] The embodiment of the present invention can provide data basis for evaluating the communication efficiency of the target router by performing an uplink data test on the target router and using the upper industrial computer to record the uplink throughput PN of the target router. The uplink throughput PN is the amount of data that the user equipment can upload to the base station within a specific time.
[0078] As an embodiment of the present invention, the uplink data test on the target router and the uplink throughput PN of the target router are recorded by the upper industrial computer, including: constructing an iperf test environment for the target router; in the iperf test environment, using the upper industrial computer to run iperf corresponding to the iperf test environment to obtain a server operation result; in the iperf test environment, using the target router to run iperf corresponding to the iperf test environment; obtaining a client operation result, and recording the uplink throughput PN of the target router based on the server operation result and the client operation result.
[0079] Among them, the iperf test environment refers to installing the iperf tool on the upper industrial computer. If it has not been installed yet, you can use the command sudo apt-get install iperf (applicable to Linux system) to install it. The Iperf is an open source network performance testing tool, which is mainly used to evaluate key performance indicators such as network bandwidth, delay, jitter and packet loss rate. It supports TCP and UDP protocols and can provide users with an overall evaluation of network quality. The server operation result refers to the network bandwidth, delay, jitter and packet loss performance indicators obtained by the upper industrial computer running the iperf test environment corresponding to iperf, and iperf starts to execute the test. The client operation result refers to the test result obtained by the target router running the iperf test environment corresponding to iperf.
[0080] Optionally, the embodiment of the present invention calculates the uplink error of the target router according to the uplink throughput Pn and the preset standard uplink throughput Pn, so as to evaluate the network communication efficiency of the target router, thereby improving the accuracy of the performance test of the target router. The uplink error refers to the difference between the network communication efficiency of the target router and the network communication efficiency of the standard router. The standard uplink throughput Pn refers to the network communication efficiency of a normal router.
[0081] S3. Perform a downlink data test on the target router, and use the lower test load to record the downlink throughput TN of the target router, and calculate the downlink error of the target router according to the downlink throughput TN and a preset standard downlink throughput Tn.
[0082] The embodiment of the present invention can evaluate the data transmission speed of the target router by performing a downlink data test on the target router and recording the downlink throughput TN of the target router using the lower test load. The downlink throughput TN refers to the amount of data successfully transmitted per unit time in a network, device, port or other facility.
[0083] Optionally, as an embodiment of the present invention, the performing of a downlink data test on the target router and recording the downlink throughput TN of the target router using the lower test load includes: analyzing the test stability coefficients of the target router and the lower test load; when the test stability coefficient meets the requirements, using the test tool corresponding to the lower test load to send a data packet to the target router to obtain a data packet sending result; extracting the amount of data sent and the sending time from the data packet sending result; and based on the amount of data sent and the sending time, calculating the downlink throughput TN of the target router using the following formula:
[0084]
[0085] Among them, τ represents the downlink throughput TN of the target router, θ represents the amount of sent data, and T represents the sending time.
[0086] Among them, the test stability coefficient refers to the stability of the environment to be tested between the target router and the lower test load, the data packet sending result refers to the reception result obtained after the iperf, SmartBits, Chariot and other tool test tools of the lower test load send a data packet to the target router, and the sending data volume and the sending time refer to the number of data packets sent by the test tool to the target router and the duration of sending data.
[0087] Optionally, as an optional embodiment of the present invention, the analysis of the test stability coefficient of the target router and the lower test load includes: identifying the stability influencing factors of the target router and the lower test load; analyzing the factor characteristics of the stability influencing factors; based on the factor characteristics, analyzing the stability impact relationship between the stability influencing factors and the stability of the target router and the lower test load; based on the stability influencing factors, the factor characteristics and the stability impact relationship, analyzing the test stability coefficient of the target router and the lower test load.
[0088] Among them, the stable influencing factor refers to the factor affecting the stability of the target router and the lower test load test, such as connectivity, delay and other factors; the factor characteristic refers to the characteristic attribute of the stable influencing factor, such as persistence, randomness and other characteristics; the stable impact relationship refers to the relationship between the stable influencing factor and the stability of the target router and the lower test load test.
[0089] Optionally, as an optional embodiment of the present invention, the analyzing the test stability coefficient of the target router and the lower test load based on the stability impact factor, the factor characteristics and the stability impact relationship includes: calculating the stability impact weight of the stability impact factor on the target router and the lower test load based on the factor characteristics and the stability impact relationship; and calculating the test stability coefficient of the target router and the lower test load based on the stability impact factor and the stability impact weight using the following formula:
[0090]
[0091] in, represents the test stability coefficient of the target router and the lower test load, LoC represents the stable monitoring model, and A a represents the ath stable impact factor, S a represents the stable impact weight corresponding to the ath stable impact factor, and r represents the number of stable impact factors.
[0092] Furthermore, the embodiment of the present invention calculates the downlink error of the target router according to the downlink throughput TN and the preset standard downlink throughput Tn to provide a data basis for the subsequent evaluation of the data transmission performance of the target router. The downlink error refers to the difference between the number of data successfully transmitted per unit time of the target router and the number of data successfully transmitted per unit time of a normal router. The standard downlink throughput Tn refers to the number of data successfully transmitted per unit time of a normal router.
[0093] S4. Perform an attenuation test on the target router, and use the upper industrial computer and the lower test load to record the uplink throughput PA and the downlink throughput TA of the target router respectively, and calculate the attenuation uplink error and the attenuation downlink error of the target router respectively based on the uplink throughput PA and the downlink throughput TA.
[0094] The embodiment of the present invention can evaluate the performance of the router under different signal qualities by performing an attenuation test on the target router and using the upper industrial computer and the lower test load to record the uplink throughput PA and downlink throughput TA of the target router respectively. The uplink throughput PA refers to the amount of data that the user equipment of the target router under different signal qualities can upload to the base station within a specific time, and the downlink throughput TA refers to the data transmission speed of the target router under different signal qualities.
[0095] As an embodiment of the present invention, the attenuation test is performed on the target router, and the upstream throughput PA and the downstream throughput TA of the target router are recorded using the upper industrial computer and the lower test load respectively, including: configuring a signal attenuation device of the target router; based on the signal attenuation device, constructing a signal attenuation environment of the target router; performing signal attenuation of the target router based on the signal attenuation environment to obtain a signal attenuation network; and using the upper industrial computer and the lower test load respectively to record the upstream throughput PA and the downstream throughput TA of the target router in the signal attenuation network.
[0096] Among them, the signal attenuation device refers to a device that realizes the signal attenuation of the target router, such as a hardware attenuator, an attenuation simulator and other devices; the signal attenuation environment refers to installing the signal attenuation device at a position that can affect the signal of the target router; the signal attenuation network refers to a network in which the target router continuously reduces the signal.
[0097] Furthermore, the embodiment of the present invention calculates the attenuated uplink error and the attenuated downlink error of the target router based on the uplink throughput PA and the downlink throughput TA, respectively, which can provide data basis for the performance evaluation of the signal attenuation of the target router in the later stage. The attenuated uplink error and the attenuated downlink error are calculated using the standard attenuated uplink throughput and the standard attenuated downlink throughput. Among them, the standard attenuated uplink throughput and the standard attenuated downlink throughput refer to the amount of data and the data transmission speed that a user equipment of a normal router under different signal qualities can upload to a base station within a specific time.
[0098] S5. Perform a quality test on the target router, and use the upper industrial computer and the lower test load to record the uplink throughput PX and the downlink throughput TX of the target router respectively; based on the uplink throughput PX and the downlink throughput TX, calculate the quality uplink error and the quality downlink error of the target router respectively; based on the uplink error, the downlink error, the attenuated uplink error, the attenuated downlink error, the quality uplink error and the quality downlink error, screen the throughput effective values of the uplink throughput PN, the downlink throughput TN, the uplink throughput PA, the downlink throughput TA, the uplink throughput PX and the downlink throughput TX; and construct a performance test report of the target router through the throughput effective values.
[0099] The embodiment of the present invention can evaluate the quality of the target router by performing a quality test on the target router and using the upper industrial computer and the lower test load to record the uplink throughput PX and the downlink throughput TX of the target router respectively, wherein the uplink throughput PX and the downlink throughput TX refer to the upper throughput and the downlink throughput recorded by the upper industrial computer and the lower test load during the quality test. The quality test refers to a performance test that simulates the actual network usage of the target router.
[0100] Further, in the embodiment of the present invention, based on the uplink throughput PX and the downlink throughput TX, respectively calculating the quality uplink error and the quality downlink error of the target router can be analyzed by preset standard quality uplink throughput and standard quality downlink throughput. Wherein, the standard quality uplink throughput and the standard quality downlink throughput refer to the uplink throughput and downlink throughput of a normal router.
[0101] Optionally, the embodiment of the present invention screens the throughput effective values of the uplink throughput PN, the downlink throughput TN, the uplink throughput PA, the downlink throughput TA, the uplink throughput PX and the downlink throughput TX based on the uplink error, the downlink error, the attenuated uplink error, the attenuated downlink error, the quality uplink error and the quality downlink error, and can screen effective data as the basis for the performance evaluation of the target router. Improve the accuracy of the performance evaluation of the target router. The throughput effective value is mainly screened by the error threshold in the test process, and the error threshold is the test error allowed between the upper industrial computer and the lower test load.
[0102] The embodiment of the present invention constructs a performance test report of the target router through the throughput effective value to achieve performance evaluation of the target router. The performance test report refers to an analysis report for evaluating the performance of the target router.
[0103] Optionally, as an embodiment of the present invention, constructing a performance test report of the target router through the throughput effective value includes: serializing the throughput effective value to obtain a sequence throughput effective value; drawing a throughput waveform graph of the target router based on the sequence throughput effective value; and constructing a performance test report of the target router based on the throughput waveform graph.
[0104] The sequence throughput effective value refers to a data set of the throughput effective value arranged according to time, and the throughput waveform graph refers to a waveform graph formed by plotting the tested throughput value according to time.
[0105] The embodiment of the present invention can improve the data reliability of the test of the router to be tested by configuring the test environment of the router to be tested; the embodiment of the present invention is based on the networking gateway and uses the lower test load in the test environment to perform a network test on the router to be tested, and the network test result can provide a data basis for the later identification of the network function of the router to be tested; the embodiment of the present invention performs an uplink data test on the target router and uses the upper industrial computer to record the uplink throughput PN of the target router, which can provide a data basis for evaluating the communication efficiency of the target router; the embodiment of the present invention performs a downlink data test on the target router and uses the lower test load to record the downlink throughput of the target router TN can evaluate the data transmission speed of the target router. Furthermore, the embodiment of the present invention can evaluate the performance of the router under different signal qualities by performing an attenuation test on the target router and using the upper industrial computer and the lower test load to record the uplink throughput PA and downlink throughput TA of the target router respectively. The embodiment of the present invention can evaluate the quality of the target router by performing a quality test on the target router and using the upper industrial computer and the lower test load to record the uplink throughput PX and downlink throughput TX of the target router respectively. Finally, the embodiment of the present invention constructs a performance test report of the target router through the throughput effective value to realize the performance evaluation of the target router. Therefore, the wireless router WiFi performance test method proposed in the present invention can improve the effect of the performance test of the wireless router.
[0106] like Figure 2 , which is a functional module diagram of a wireless router WiFi performance testing system provided by an embodiment of the present invention.
[0107] The wireless router WiFi performance test system 200 of the present invention can be installed in an electronic device. According to the functions to be implemented, the wireless router WiFi performance test system 200 can include a router network test module 201, an uplink data test module 202, a downlink data test module 203, an attenuation test module 204 and a quality test module 205. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0108] In this embodiment, the functions of each module / unit are as follows:
[0109] The router network test module 201 is used to configure a test environment for the router to be tested, use the upper industrial computer in the test environment to open the networking gateway of the router to be tested, based on the networking gateway, use the lower test load in the test environment to perform a network test on the router to be tested, obtain a network test result, and screen the target router among the routers to be tested based on the network test result;
[0110] The uplink data test module 202 is used to perform an uplink data test on the target router, and use the upper industrial computer to record the uplink throughput PN of the target router, and calculate the uplink error of the target router according to the uplink throughput Pn and a preset standard uplink throughput Pn;
[0111] The downlink data test module 203 is used to perform a downlink data test on the target router, and use the lower test load to record the downlink throughput TN of the target router, and calculate the downlink error of the target router according to the downlink throughput TN and a preset standard downlink throughput Tn;
[0112] The attenuation test module 204 is used to perform an attenuation test on the target router, and use the upper industrial computer and the lower test load to record the uplink throughput PA and the downlink throughput TA of the target router respectively, and calculate the attenuation uplink error and the attenuation downlink error of the target router respectively based on the uplink throughput PA and the downlink throughput TA;
[0113] The quality test module 205 is used to perform a quality test on the target router, and use the upper industrial computer and the lower test load to record the uplink throughput PX and the downlink throughput TX of the target router respectively, and calculate the quality uplink error and the quality downlink error of the target router based on the uplink throughput PX and the downlink throughput TX respectively, and screen the throughput effective values of the uplink throughput PN, the downlink throughput TN, the uplink throughput PA, the downlink throughput TA, the uplink throughput PX and the downlink throughput TX based on the uplink error, the downlink error, the attenuated uplink error, the attenuated downlink error, the quality uplink error and the quality downlink error, and construct a performance test report of the target router through the throughput effective values.
[0114] In detail, the modules described in the wireless router WiFi performance test system 200 described in the embodiment of the present invention adopt the same technical means as the wireless router WiFi performance test method described in the accompanying drawings when used, and can produce the same technical effects, which will not be repeated here.
[0115] An embodiment of the present invention provides an electronic device for implementing a method for testing the WiFi performance of a wireless router.
[0116] See also Figure 3 As shown, the electronic device may include a processor 30, a memory 31, a communication bus 32 and a communication interface 33, and may also include a computer program stored in the memory 31 and executable on the processor 30, such as a wireless router WiFi performance test method program.
[0117] In some embodiments, the processor may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory (for example, executing a wireless router WiFi performance test program, etc.), and calls data stored in the memory to execute various functions of the electronic device and process data.
[0118] The memory includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. The memory may be an internal storage unit of an electronic device in some embodiments, such as a mobile hard disk of the electronic device. The memory may also be an external storage device of an electronic device in other embodiments, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory may also include both an internal storage unit of the electronic device and an external storage device. The memory may be used not only to store application software and various types of data installed in the electronic device, such as codes based on a wireless router WiFi performance test program, but also to temporarily store data that has been output or is to be output.
[0119] The communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory and at least one processor, etc.
[0120] The communication interface is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0121] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor through a power management system, so that the power management system can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0122] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0123] The wireless router WiFi performance test program stored in the memory of the electronic device is a combination of multiple instructions, and when running in the processor, it can achieve:
[0124] Configure a test environment for the router to be tested, use the upper industrial computer in the test environment to open the networking gateway of the router to be tested, based on the networking gateway, use the lower test load in the test environment to perform a network test on the router to be tested, obtain a network test result, and screen a target router among the routers to be tested based on the network test result;
[0125] Performing an uplink data test on the target router, and using the upper industrial computer to record the uplink throughput PN of the target router, and calculating the uplink error of the target router according to the uplink throughput Pn and a preset standard uplink throughput Pn;
[0126] Performing a downlink data test on the target router, and recording the downlink throughput TN of the target router using the lower test load, and calculating the downlink error of the target router according to the downlink throughput TN and a preset standard downlink throughput Tn;
[0127] Performing an attenuation test on the target router, and using the upper industrial computer and the lower test load to record the uplink throughput PA and the downlink throughput TA of the target router respectively, and calculating the attenuation uplink error and the attenuation downlink error of the target router respectively based on the uplink throughput PA and the downlink throughput TA;
[0128] A quality test is performed on the target router, and the uplink throughput PX and the downlink throughput TX of the target router are recorded using the upper industrial computer and the lower test load respectively; based on the uplink throughput PX and the downlink throughput TX, the quality uplink error and the quality downlink error of the target router are calculated respectively; based on the uplink error, the downlink error, the attenuated uplink error, the attenuated downlink error, the quality uplink error and the quality downlink error, the throughput effective values of the uplink throughput PN, the downlink throughput TN, the uplink throughput PA, the downlink throughput TA, the uplink throughput PX and the downlink throughput TX are screened; and a performance test report of the target router is constructed through the throughput effective values.
[0129] Specifically, the specific implementation method of the processor for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.
[0130] Furthermore, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium may include: any entity or system capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0131] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0132] Configure a test environment for the router to be tested, use the upper industrial computer in the test environment to open the networking gateway of the router to be tested, based on the networking gateway, use the lower test load in the test environment to perform a network test on the router to be tested, obtain a network test result, and screen a target router among the routers to be tested based on the network test result;
[0133] Performing an uplink data test on the target router, and using the upper industrial computer to record the uplink throughput PN of the target router, and calculating the uplink error of the target router according to the uplink throughput Pn and a preset standard uplink throughput Pn;
[0134] Performing a downlink data test on the target router, and recording the downlink throughput TN of the target router using the lower test load, and calculating the downlink error of the target router according to the downlink throughput TN and a preset standard downlink throughput Tn;
[0135] Performing an attenuation test on the target router, and using the upper industrial computer and the lower test load to record the uplink throughput PA and the downlink throughput TA of the target router respectively, and calculating the attenuation uplink error and the attenuation downlink error of the target router respectively based on the uplink throughput PA and the downlink throughput TA;
[0136] A quality test is performed on the target router, and the uplink throughput PX and the downlink throughput TX of the target router are recorded using the upper industrial computer and the lower test load respectively; based on the uplink throughput PX and the downlink throughput TX, the quality uplink error and the quality downlink error of the target router are calculated respectively; based on the uplink error, the downlink error, the attenuated uplink error, the attenuated downlink error, the quality uplink error and the quality downlink error, the throughput effective values of the uplink throughput PN, the downlink throughput TN, the uplink throughput PA, the downlink throughput TA, the uplink throughput PX and the downlink throughput TX are screened; and a performance test report of the target router is constructed through the throughput effective values.
[0137] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0138] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0139] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0140] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0141] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0142] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0143] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or systems stated in a system claim can also be implemented by one unit or system through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0144] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A wireless router WiFi performance testing method, characterized in that: The method comprises: Configure a test environment for the router to be tested, use the upper industrial computer in the test environment to open the networking gateway of the router to be tested, based on the networking gateway, use the lower test load in the test environment to perform a network test on the router to be tested, obtain a network test result, and screen a target router among the routers to be tested based on the network test result; Performing an uplink data test on the target router, and using the upper industrial computer to record the uplink throughput PN of the target router, and calculating the uplink error of the target router according to the uplink throughput PN and a preset standard uplink throughput Pn; Identify the stability impact factor of the target router and the lower test load, analyze the factor characteristics of the stability impact factor, analyze the stability impact relationship between the stability impact factor and the stability of the target router and the lower test load based on the factor characteristics, calculate the stability impact weight of the stability impact factor on the target router and the lower test load based on the factor characteristics and the stability impact relationship, and calculate the test stability coefficient of the target router and the lower test load based on the stability impact factor and the stability impact weight using the following formula: ; in, Indicates the test stability coefficient of the target router and the lower test load, represents the stationary monitoring model, No. A stable impact factor, Indicates The stable impact weight corresponding to the stable impact factor is represents the number of stable influencing factors. When the test stable coefficient meets the requirements, the test tool corresponding to the lower test load is used to send a data packet to the target router to obtain a data packet sending result, and the sending data volume and sending time in the data packet sending result are extracted. Based on the sending data volume and the sending time, the downlink throughput TN of the target router is calculated using the following formula: ; in, represents the downstream throughput TN of the target router, Indicates the amount of data sent. represents the sending time, and calculates the downlink error of the target router according to the downlink throughput TN and the preset standard downlink throughput Tn; Performing an attenuation test on the target router, and using the upper industrial computer and the lower test load to record the uplink throughput PA and the downlink throughput TA of the target router respectively, and calculating the attenuation uplink error and the attenuation downlink error of the target router respectively based on the uplink throughput PA and the downlink throughput TA; A quality test is performed on the target router, and the uplink throughput PX and the downlink throughput TX of the target router are recorded using the upper industrial computer and the lower test load respectively; based on the uplink throughput PX and the downlink throughput TX, the quality uplink error and the quality downlink error of the target router are calculated respectively; based on the uplink error, the downlink error, the attenuated uplink error, the attenuated downlink error, the quality uplink error and the quality downlink error, the throughput effective values of the uplink throughput PN, the downlink throughput TN, the uplink throughput PA, the downlink throughput TA, the uplink throughput PX and the downlink throughput TX are screened; and a performance test report of the target router is constructed through the throughput effective values.
2. The wireless router WiFi performance testing method according to claim 1, characterized in that: The configuration of the test environment of the router to be tested includes: Identify the test indicators of the router to be tested; Based on the test indicators, configure the test equipment of the router to be tested; Identifying functional indicators of the test equipment; Based on the test indicators and the functional indicators, a test environment for the router to be tested is constructed.
3. The wireless router WiFi performance testing method according to claim 1, characterized in that: The method of using the upper industrial computer in the test environment to open the networking gateway of the router to be tested includes: Marking the network management tool in the upper industrial computer; Identifying a router network of the router to be tested; Based on the router network, adjusting the network parameters of the network management tool to obtain adjustment parameters; Based on the adjustment parameters, the upper industrial computer and the router to be tested are in the same network segment; Based on the same network segment, the network management tool is used to open the networking gateway of the router to be tested.
4. The wireless router WiFi performance testing method according to claim 1, characterized in that: The performing of an uplink data test on the target router and recording the uplink throughput PN of the target router by using the upper industrial computer includes: Constructing an iperf test environment for the target router; In the iperf test environment, the upper industrial computer is used to run the iperf corresponding to the iperf test environment to obtain the server operation result; In the iperf test environment, using the target router to run the iperf corresponding to the iperf test environment to obtain a client operation result; Based on the server operation result and the client operation result, the uplink throughput PN of the target router is recorded.
5. The wireless router WiFi performance testing method according to claim 1, characterized in that: The attenuation test is performed on the target router, and the uplink throughput PA and the downlink throughput TA of the target router are recorded by using the upper industrial computer and the lower test load respectively, including: Configuring a signal attenuation device of the target router; Based on the signal attenuation device, construct a signal attenuation environment of the target router; Perform signal attenuation of the target router based on the signal attenuation environment to obtain a signal attenuation network; The upper industrial computer and the lower test load are used to record the uplink throughput PA and the downlink throughput TA of the target router in the signal attenuation network respectively.
6. The wireless router WiFi performance testing method according to claim 1, characterized in that: The step of constructing a performance test report of the target router by using the throughput effective value includes: Serializing the throughput effective value to obtain a sequence throughput effective value; Based on the effective value of the sequence throughput, drawing a throughput waveform diagram of the target router; Based on the throughput waveform diagram, a performance test report of the target router is constructed.
7. A wireless router WiFi performance test system, characterized in that: Used to execute the wireless router WiFi performance testing method according to any one of claims 1 to 6, the system comprising: A router network test module is used to configure a test environment for a router to be tested, use a host industrial computer in the test environment to open a network gateway of the router to be tested, perform a network test on the router to be tested based on the network gateway and a lower test load in the test environment to obtain a network test result, and screen a target router from the routers to be tested based on the network test result; An uplink data test module, used to perform an uplink data test on the target router, and use the upper industrial computer to record the uplink throughput PN of the target router, and calculate the uplink error of the target router according to the uplink throughput PN and a preset standard uplink throughput Pn; A downlink data test module is used to identify the stable impact factor of the target router and the lower test load, analyze the factor characteristics of the stable impact factor, analyze the stable impact relationship between the stable impact factor and the stable of the target router and the lower test load based on the factor characteristics, calculate the stable impact weight of the stable impact factor on the target router and the lower test load based on the factor characteristics and the stable impact relationship, and calculate the test stable coefficient of the target router and the lower test load based on the stable impact factor and the stable impact weight using the following formula: ; in, Indicates the test stability coefficient of the target router and the lower test load, represents the stationary monitoring model, No. A stable impact factor, Indicates The stable impact weight corresponding to the stable impact factor is represents the number of stable influencing factors. When the test stable coefficient meets the requirements, the test tool corresponding to the lower test load is used to send a data packet to the target router to obtain a data packet sending result, and the sending data volume and sending time in the data packet sending result are extracted. Based on the sending data volume and the sending time, the downlink throughput TN of the target router is calculated using the following formula: ; in, represents the downstream throughput TN of the target router, Indicates the amount of data sent. represents the sending time, and calculates the downlink error of the target router according to the downlink throughput TN and the preset standard downlink throughput Tn; an attenuation test module, configured to perform an attenuation test on the target router, and respectively record the uplink throughput PA and the downlink throughput TA of the target router using the upper industrial computer and the lower test load, and respectively calculate the attenuation uplink error and the attenuation downlink error of the target router based on the uplink throughput PA and the downlink throughput TA; The quality test module is used to perform a quality test on the target router, and use the upper industrial computer and the lower test load to record the uplink throughput PX and the downlink throughput TX of the target router respectively, and calculate the quality uplink error and the quality downlink error of the target router based on the uplink throughput PX and the downlink throughput TX respectively, and screen the throughput effective values of the uplink throughput PN, the downlink throughput TN, the uplink throughput PA, the downlink throughput TA, the uplink throughput PX and the downlink throughput TX based on the uplink error, the downlink error, the attenuated uplink error, the attenuated downlink error, the quality uplink error and the quality downlink error, and construct a performance test report of the target router through the throughput effective values.
Citation Information
Patent Citations
Wireless router WiFi performance test system and method
CN115664543A