A multi-device pressure testing method, device, system and electronic equipment
By configuring the microcomputer as a slave node and automatically connecting the SSID to obtain the IP address for traffic transmission, the performance testing problem of AP in a multi-STA environment is solved, and convenient AP performance testing and cost savings are achieved.
Patent Information
- Application Number
- CN202211476321.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-23
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2042-11-23
AI Technical Summary
When developing access point AP products, it is necessary to consider the stability and performance test of AP when connecting a large number of STAs. The existing testing instrument simulates STAs using polling to send data, which cannot fully expose the AP problems. And STAs The management and configuration cost is high.
By adding the microcomputer as a slave node to the preset software, configuring the SSID and automatically connecting to the wireless network interface, obtaining the IP address for traffic transmission, avoiding the interference of polling and sending data, and achieving AP performance testing.
It realizes convenient management and AP performance testing of multiple STAs, reduces testing costs, can deploy and manage test environments more effectively, and fully exposes AP performance problems.
Smart Images

Figure CN115865763B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of wireless local area network access, and in particular to a multi-device stress testing method, apparatus, system and electronic equipment. Background Art
[0002] Wireless Local Area Network (WLAN) is a wireless computer network that uses wireless channels instead of wired transmission media to connect two or more devices to form a local area network (LAN). It is widely deployed in homes, campuses, or enterprises. WLAN consists of two basic elements: workstation STA (Station) and access point AP (Access Point). STA refers to user terminal devices that support the 802.11 standard, such as computers with wireless network cards, mobile phones that support WLAN, etc. AP provides STA with wireless access services based on the 802.11 standard, acting as a bridge between wired and wireless networks. STA connects to AP through the service set identifier SSID (Service Set Identifier).
[0003] The inventors found that there are at least the following problems in the related technology: when developing AP products, it is necessary to consider the stability and performance of the AP when connecting to a maximum number of STAs. Generally, the number of STAs that the AP can support is more than 100, and the maximum can reach 500. This brings two difficulties to the test: First, hundreds of STAs are required for docking testing, which requires a large amount of money if a mobile phone or laptop is purchased; second, how to conveniently manage these STAs, including how to install and place them, how to centrally configure them, etc.
[0004] Currently, some companies are developing and selling WLAN or Wi-Fi test instruments. However, due to technical constraints, the STA simulated by the test instrument uses a polling communication method to send data, which is quite different from the actual situation. The actual concurrent communication of multiple STAs must be completed under the mutual competition and interference of wireless resources. Therefore, the stress test formed by the test instrument on the AP has certain limitations and cannot fully expose the problems of the AP. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a multi-device stress testing method, apparatus, system and electronic equipment, which not only avoids the use of a simulated STA to adopt a polling communication method to send data, but also can achieve convenient management of multiple STAs in a cost-saving manner to complete the performance test of the AP.
[0006] To solve the above technical problems, an embodiment of the present invention provides a multi-device stress testing method, including: adding all the microcomputers as slave nodes to the preset software according to the wired network interface IP, login username and login password of the microcomputer; configuring one or more service set identifiers SSID for the access point AP to be tested; with the assistance of the preset software, controlling all the microcomputers to configure each wireless network interface of the microcomputer to automatically connect to the corresponding SSID, and controlling all the microcomputers to obtain the IP addresses of each wireless network interface of the microcomputer; and transmitting traffic between the IP address and the streaming computer according to the IP addresses of each wireless network interface.
[0007] An embodiment of the present invention also provides an AP performance testing device, including: a configuration module, used to add all the microcomputers as slave nodes to the preset software according to the wired network interface IP, login username and login password of the microcomputer; configure one or more service set identifiers SSID for the access point AP to be tested; a connection module, used to control all the microcomputers to configure each wireless network interface of the microcomputer to automatically connect to the corresponding SSID with the assistance of the preset software, and control all the microcomputers to obtain the IP address of each wireless network interface of the microcomputer; a transmission module, used to transmit traffic between the IP address and the streaming computer according to the IP address of each wireless network interface.
[0008] An embodiment of the present invention also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned multi-device stress testing method.
[0009] An embodiment of the present invention further provides a computer-readable storage medium, comprising: the computer program implements the multi-device stress testing method when executed by a processor.
[0010] In the implementation mode of the present invention, first, according to the IP of the wired network interface of the microcomputer, the login username and the login password, all the microcomputers are added as slave nodes to the preset software; because the microcomputers with small size, low power consumption and strong scalability are selected as slave nodes, the communication method of using simulated STA to send data by polling is avoided, and the cost is greatly saved. Then, one or more service set identifiers SSID are configured for the access point AP to be tested; with the assistance of the preset software, all the microcomputers are controlled to configure each wireless network interface of the microcomputer to automatically connect to the corresponding SSID, and all the microcomputers are controlled to obtain the IP addresses of each wireless network interface of the microcomputer; according to the IP addresses of each wireless network interface, the traffic transmission between the IP address and the streaming computer is carried out. The test environment can be deployed more efficiently and the test equipment can be centrally managed, and convenient management of multiple STAs can be achieved in a cost-saving manner to complete the performance test of the AP.
[0011] In addition, with the assistance of the preset software, the control of all the microcomputers to configure the various wireless network interfaces of the microcomputers to automatically connect to the corresponding SSID includes: editing a wireless network configuration file; wherein the wireless network configuration file is used to configure the various wireless network interfaces of the microcomputers to automatically connect to the corresponding SSID; through the creation of a first preset task, the preset software is controlled to send a download file command to all the microcomputers, so that all the microcomputers download the wireless network configuration file and apply it, so as to control all the microcomputers to configure the various wireless network interfaces of the microcomputers to automatically connect to the corresponding SSID.
[0012] In addition, after controlling all the microcomputers to configure the wireless network interfaces of the microcomputers to automatically connect to the corresponding SSID, it also includes: controlling all the wireless network cards on the microcomputers to participate in the test through the created second preset task; wherein, controlling all the wireless network cards on the microcomputers to participate in the test includes: if there are multiple SSIDs and the multiple SSIDs are bridged to different VLANs respectively, controlling the preset software to send a command to modify the routing table to all the microcomputers, so as to control all the microcomputers to send data from the corresponding wireless network interface when streaming to each streaming computer. This step allows the AP to configure multiple SSIDs, and multiple SSIDs are bridged to different VLANs.
[0013] In addition, the control of all the microcomputers to obtain the IP addresses of the various wireless network interfaces of the microcomputers includes: editing a script module; wherein the script module is used to automatically obtain the IP addresses of the various wireless network interfaces of the microcomputers; and controlling the preset software to send a download script command to all the microcomputers through the creation of a third preset task, so that all the microcomputers download the script module and apply it to control all the microcomputers to obtain the IP addresses of the various wireless network interfaces of the microcomputers.
[0014] In addition, the traffic transmission between the IP address and the streaming computer is performed based on the IP address, including: according to the type of the wireless network interface, the acquired IP addresses of each wireless network interface of the microcomputer are sent to the corresponding streaming computer respectively, and the streaming computer is controlled to perform traffic transmission between the IP address and the streaming computer.
[0015] In addition, according to the type of the wireless network interface, the acquired IP addresses of each wireless network interface of the microcomputer are sent to the corresponding streaming computer respectively, and the streaming computer is controlled to perform traffic transmission between the IP address and the streaming computer, including: summarizing the acquired IP addresses of each wireless network interface of the microcomputer into different csv type files according to the type of the wireless network interface; copying each csv type file to the streaming computer respectively, and controlling the streaming computer to convert the corresponding csv type file into the test file and open it.
[0016] In addition, the controlling the streaming computer to convert the corresponding csv type file into the test file and open it includes: controlling the streaming computer to use streaming software to convert the corresponding csv type file into the test file. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0018] Figure 1 is a flow chart of a multi-device stress testing method in one embodiment of the present invention;
[0019] Figure 2 is a schematic diagram of the connection relationship of various devices in one embodiment of the present invention;
[0020] Figure 3 is a structural schematic diagram of an AP performance testing device according to another embodiment of the present invention;
[0021] Figure 4 It is a schematic structural diagram of an electronic device according to another embodiment of the present invention. DETAILED DESCRIPTION
[0022] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.
[0023] One embodiment of the present invention relates to a multi-device stress testing method, which can be applied to management devices, such as mobile phones, computers and other devices. In this embodiment, according to the wired network interface IP, login username and login password of the microcomputer, all the microcomputers are added as slave nodes to the preset software; one or more service set identifiers SSID are configured for the access point AP to be tested; with the assistance of the preset software, all the microcomputers are controlled to configure each wireless network interface of the microcomputer to automatically connect to the corresponding SSID, and all the microcomputers are controlled to obtain the IP address of each wireless network interface of the microcomputer; according to the IP address of each wireless network interface, the traffic transmission between the IP address and the streaming computer is performed, so that not only the interference of wireless resources caused by the communication method of using simulated STA to send data by polling can be avoided, but also multiple STAs can be conveniently managed in a cost-saving manner to complete the performance test of AP. The implementation details of the multi-device stress testing method of this embodiment are specifically described below. The following content is only the implementation details provided for the convenience of understanding, and is not necessary for the implementation of this solution.
[0024] like Figure 1 As shown, in step 101, the management device will add all the microcomputers as slave nodes to the preset software according to the wired network interface IP, login username and login password of the microcomputer.
[0025] In one example, a certain number of microcomputers, such as the most commonly used microcomputer, Raspberry Pi (a microcomputer developed by the Raspberry Pi Foundation, used as a carrier for USB wireless network card operation) microcomputer, and a certain number of USB wireless network cards (taking 400 as an example), and the wireless network cards are plugged into the four USB ports of the Raspberry Pi microcomputer, and 100 SD cards are selected as storage cards of the Raspberry Pi microcomputer. Then, the system environment running on the Raspberry Pi microcomputer is installed on the SD card. The system is first installed on one of the SD cards, and then the basic information such as the login user name and password is configured. The slave agent software corresponding to the preset software (such as Jenkins software) can be installed, and the endpoint software corresponding to the IxChariot software can be installed. Finally, the system environment installed on this SD card is burned to the other 99 SD cards. The installed SD card is inserted into the Raspberry Pi microcomputer for use.
[0026] Select a switch to build a LAN and configure the switch to assign an IP address. Figure 2 As shown, the solid line represents a wired connection, and the dotted line represents a wireless connection. The microcomputer is connected to the switch port with a network cable (this part is a wired connection), the management device (taking 1 as an example) and the streaming computer (taking 5 as an example) are also connected to the switch port with a network cable, and the AP to be tested (taking 1 as an example, the number of APs can be increased according to demand) is connected to the switch port with a network cable.
[0027] Then install the preset (such as Jenkins) software on the management computer, and add all microcomputers as slave nodes to the Jenkins software through the microcomputer wired network interface IP, login username and password.
[0028] In step 102, a management device configures one or more SSIDs for an AP.
[0029] In an example, one SSID is configured for the AP and named SSID1. If there are multiple SSIDs (for example, 5), they are named SSID1, SSID2, ..., SSID5 in sequence.
[0030] In step 103, the management device controls all microcomputers to configure each wireless network interface to automatically connect to the corresponding SSID.
[0031] In one example, with the assistance of the preset software, controlling all the microcomputers to configure each wireless network interface of the microcomputer to automatically connect to the corresponding SSID includes: editing a wireless network configuration file; wherein the wireless network configuration file is used to configure each wireless network interface of the microcomputer to automatically connect to the corresponding SSID; the connection relationship is as follows: Figure 2As shown, the solid line represents a wired connection, and the dotted line represents a wireless connection (here it represents a wireless connection); the preset software is controlled by the created first preset task to send a download file command to all the microcomputers, so that all the microcomputers download the wireless network configuration file and apply it, so as to control all the microcomputers to configure each wireless network interface of the microcomputer to automatically connect to the corresponding SSID.
[0032] In one example, after controlling all the microcomputers to configure each wireless network interface of the microcomputer to automatically connect to the corresponding SSID, the management device also includes: controlling all the wireless network cards on the microcomputers to participate in the test through the creation of a second preset task; wherein, controlling all the wireless network cards on the microcomputers to participate in the test includes: if there are multiple SSIDs and the multiple SSIDs are bridged to different VLANs respectively, controlling the preset software to send a command to modify the routing table to all the microcomputers, so as to control all the microcomputers to send data from the corresponding wireless network interface when streaming to each streaming computer.
[0033] In one example, if the management device configures an AP with multiple SSIDs (taking 5 as an example), and the 5 SSIDs are bridged to different VLANs, the 5 network interfaces of the microcomputer are configured to connect to the 5 SSIDs respectively. Then, a preset task 2 is created on the management computer, the content of which is to send a command to all microcomputer nodes to modify the routing table, the purpose of which is to control the microcomputer to send data from wireless interface 1 when streaming to computer 1, to send data from wireless interface 2 when streaming to computer 2, to send data from wireless interface 3 when streaming to computer 3, to send data from wireless interface 4 when streaming to computer 4, and to send data from wireless interface 5 when streaming to computer 5, so that all the wireless network cards on the microcomputer participate in the test. If the 5 streaming computers and the 5 SSIDs belong to the same VLAN, the command to modify the routing table does not need to be executed or the command to modify the routing table does not need to be sent. Among them, the command for modifying the microcomputer route is as follows: route add-host 192.168.120.10gw 192.168.140.1dev wlan1, where 192.168.120.10 is the IP address of the streaming computer 1, wlan1 is the name of the microcomputer wireless interface 1, and 192.168.140.1 is the gateway of the network connected to the wireless interface.
[0034] In step 104, all microcomputers are controlled to obtain the IP address of each wireless network interface.
[0035] In one example, a management device controls all of the microcomputers to obtain the IP addresses of the wireless network interfaces of the microcomputers, including: editing a script module; wherein the script module is used to automatically obtain the IP addresses of the wireless network interfaces of the microcomputers; and controlling the preset software to send a download script command to all of the microcomputers through the creation of a third preset task, so that all of the microcomputers download the script module and apply it to control all of the microcomputers to obtain the IP addresses of the wireless network interfaces of the microcomputers.
[0036] In step 105, traffic transmission is performed between the IP address and the streaming computer.
[0037] In one example, the management device transmits traffic between the IP addresses and the streaming computers according to the IP addresses of the wireless network interfaces.
[0038] In one example, the traffic transmission between the IP address and the streaming computer is performed based on the IP address, including: according to the type of the wireless network interface, controlling all the microcomputers to send the acquired IP addresses of each wireless network interface of the microcomputer to the corresponding streaming computer respectively, and controlling the streaming computer to perform traffic transmission between the IP address and the streaming computer.
[0039] In one example, according to the type of the wireless network interface, all the microcomputers are controlled to send the acquired IP addresses of each wireless network interface of the microcomputer to the corresponding streaming computer, and the streaming computer is controlled to transmit traffic between the IP address and the streaming computer, including: controlling all the microcomputers to aggregate the acquired IP addresses of each wireless network interface of the microcomputer into different csv type files according to the type of the wireless network interface; copying each csv type file to the streaming computer, and controlling the streaming computer to convert the corresponding csv type file into the test file and open it.
[0040] In one example, the controlling streaming computer converts the corresponding csv type file into the test file and opens it, including: controlling the streaming computer to use streaming software (such as IxChariot software, through the tcl api provided by the IxChariot software) to convert the corresponding csv type file into the test file.
[0041] In an example, all the microcomputers have 5 wireless network interfaces, and the IP addresses of the wireless network interface 1 obtained are summarized into a file named IP list1.csv, the IP addresses of the wireless network interface 2 obtained by all nodes are summarized into a file named IP list2.csv, the IP addresses of the wireless network interface 3 obtained by all nodes are summarized into a file named IP list3.csv, the IP addresses of the wireless network interface 4 obtained by all nodes are summarized into a file named IP list4.csv, and the IP addresses of the wireless network interface 5 obtained by all nodes are summarized into a file named IPlist5.csv.
[0042] Then copy the above IP list1.csv file to the traffic computer named traffic computer 1, and use the tcl api provided by the traffic software IxChariot to convert it to the tst test file of IxChariot, and open the tst test file to perform the traffic stress test. Similarly, traffic computer 2, traffic computer 3, traffic computer 4, and traffic computer 5 also use the same method to convert IP list2.csv, IP list3.csv, IP list4.csv, and IP list5.csv into tst test files and perform traffic stress test. When generating the tst test file above, you can specify to send traffic from the IP address in IPList to the traffic computer, or you can specify to send traffic from the traffic computer to the IP address in IPList.
[0043] In this embodiment, all the microcomputers are added as slave nodes to the preset software according to the IP, login username and login password of the wired network interface of the microcomputer; one or more service set identifiers SSID are configured for the access point AP to be tested; with the assistance of the preset software, all the microcomputers are controlled to configure the various wireless network interfaces of the microcomputers to automatically connect to the corresponding SSID, and all the microcomputers are controlled to obtain the IP addresses of the various wireless network interfaces of the microcomputers; according to the IP addresses of the various wireless network interfaces, the traffic is transmitted between the IP addresses and the streaming computers, so that not only the interference of wireless resources caused by the communication method of using simulated STA to send data by polling can be avoided, but also multiple STAs can be conveniently managed in a cost-saving manner to complete the performance test of AP.
[0044] The steps of the above method are divided only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.
[0045] Another embodiment of the present invention relates to an AP performance testing device, such as Figure 3 As shown, it includes: a configuration module, which is used to add all the microcomputers as slave nodes to the preset software according to the wired network interface IP, login username and login password of the microcomputer; configure one or more service set identifiers SSID for the access point AP to be tested; a connection module, which is used to control all the microcomputers to configure the various wireless network interfaces of the microcomputers to automatically connect to the corresponding SSID with the assistance of the preset software, and control all the microcomputers to obtain the IP addresses of the various wireless network interfaces of the microcomputers; a transmission module, which is used to transmit traffic between the IP addresses and the streaming computers according to the IP addresses of the various wireless network interfaces.
[0046] In one example, the connection module, with the assistance of the preset software, controls all the microcomputers to configure the various wireless network interfaces of the microcomputers to automatically connect to the corresponding SSID, including: editing a wireless network configuration file; wherein the wireless network configuration file is used to configure the various wireless network interfaces of the microcomputers to automatically connect to the corresponding SSID; through the creation of a first preset task, controls the preset software to send a download file command to all the microcomputers, so that all the microcomputers download the wireless network configuration file and apply it, so as to control all the microcomputers to configure the various wireless network interfaces of the microcomputers to automatically connect to the corresponding SSID.
[0047] In one example, the AP performance testing device also includes a bridging module, which is used to control all the microcomputers to configure each wireless network interface of the microcomputer to automatically connect to the corresponding SSID, and also includes: controlling all the wireless network cards on the microcomputers to participate in the test through the creation of a second preset task; wherein, controlling all the wireless network cards on the microcomputers to participate in the test includes: if there are multiple SSIDs and the multiple SSIDs are bridged to different VLANs respectively, controlling the preset software to send a command to modify the routing table to all the microcomputers, so as to control all the microcomputers to send data from the corresponding wireless network interface when streaming to each streaming computer.
[0048] In one example, the connection module controls all the microcomputers to obtain the IP addresses of the wireless network interfaces of the microcomputers, including: editing a script module; wherein the script module is used to automatically obtain the IP addresses of the wireless network interfaces of the microcomputers; and controlling the preset software to send a download script command to all the microcomputers through the creation of a third preset task, so that all the microcomputers download the script module and apply it to control all the microcomputers to obtain the IP addresses of the wireless network interfaces of the microcomputers.
[0049] In one example, the transmission module transmits traffic between the IP address and the streaming computer based on the IP address, including: according to the type of the wireless network interface, controlling all the microcomputers to send the acquired IP addresses of each wireless network interface of the microcomputer to the corresponding streaming computer respectively, and controlling the streaming computer to transmit traffic between the IP address and the streaming computer.
[0050] In one example, the transmission module is specifically used to control all the microcomputers to send the acquired IP addresses of each wireless network interface of the microcomputer to the corresponding streaming computer according to the type of the wireless network interface, and control the streaming computer to transmit traffic between the IP address and the streaming computer, including: controlling all the microcomputers to summarize the acquired IP addresses of each wireless network interface of the microcomputer into different csv type files according to the type of the wireless network interface; copying each csv type file to the streaming computer respectively, and controlling the streaming computer to convert the corresponding csv type file into the test file and open it.
[0051] In one example, the transmission module is specifically used to control the streaming computer to convert the corresponding csv type file into the test file and open it, including: controlling the streaming computer to use the tcl api provided by the IxChariot streaming software to convert the corresponding csv type file into the test file.
[0052] In this implementation, not only does it avoid using a simulated STA to send data in a polling communication mode, but it can also achieve convenient management of multiple STAs in a cost-saving manner to complete the performance test of the AP.
[0053] It is not difficult to find that this embodiment is a device embodiment corresponding to the above method embodiment, and this embodiment can be implemented in conjunction with the above method embodiment. The relevant technical details mentioned in the above method embodiment are still valid in this embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the above method embodiment.
[0054] It is worth mentioning that all modules involved in this embodiment are logic modules. In practical applications, a logic unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, this embodiment does not introduce units that are not closely related to solving the technical problem proposed by the present invention, but this does not mean that there are no other units in this embodiment.
[0055] Another embodiment of the present invention relates to an electronic device, such as Figure 4 As shown, it includes at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the multi-device stress testing method as described above.
[0056] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor.
[0057] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.
[0058] Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program, which implements the above method embodiment when executed by a processor.
[0059] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0060] Those skilled in the art will appreciate that the above-mentioned embodiments are specific examples for implementing the present invention, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present invention.
Claims
1. A multi-device stress testing method, characterized in that: include: According to the wired network interface IP, login username and login password of the microcomputer, all the microcomputers are added as slave nodes to the preset software; Configure one or more service set identifiers SSID for the access point AP to be tested; With the assistance of the preset software, all the microcomputers are controlled to configure each wireless network interface of the microcomputer to automatically connect to the corresponding SSID. After all the microcomputers are controlled to configure each wireless network interface of the microcomputer to automatically connect to the corresponding SSID, the method further includes: Control all wireless network cards on the microcomputers to participate in the test through the created second preset task; Wherein, the control of all wireless network cards on the microcomputers to participate in the test includes: If there are multiple SSIDs and the multiple SSIDs are bridged to different VLANs respectively, the preset software is controlled to send a command to modify the routing table to all the microcomputers, so as to control all the microcomputers to send data from the corresponding wireless network interface when making a flow to each flow computer; and controlling all the microcomputers to obtain the IP addresses of the wireless network interfaces of the microcomputers; Traffic transmission is performed between the IP address and the streaming computer according to the IP address of each wireless network interface.
2. The multi-device stress testing method according to claim 1, characterized in that: With the assistance of the preset software, the control of all the microcomputers to configure each wireless network interface of the microcomputer to automatically connect to the corresponding SSID includes: Editing a wireless network configuration file; wherein the wireless network configuration file is used to configure each wireless network interface of the microcomputer to automatically connect to the corresponding SSID; The preset software is controlled by the created first preset task to send a download file command to all the microcomputers, so that all the microcomputers download the wireless network configuration file and apply it, so as to control all the microcomputers to configure each wireless network interface of the microcomputer to automatically connect to the corresponding SSID.
3. The multi-device stress testing method according to claim 1, characterized in that: The controlling all the microcomputers to obtain the IP addresses of the wireless network interfaces of the microcomputers includes: Editing a script module; wherein the script module is used to automatically obtain the IP address of each of the wireless network interfaces of the microcomputer; The preset software is controlled by the created third preset task to send a download script command to all the microcomputers, so that all the microcomputers download the script module and apply it, so as to control all the microcomputers to obtain the IP addresses of the wireless network interfaces of the microcomputers.
4. The multi-device stress testing method according to any one of claims 1 to 3, characterized in that: The step of transmitting traffic between the IP address and the streaming computer according to the IP address includes: According to the type of the wireless network interface, all the microcomputers are controlled to send the acquired IP addresses of the wireless network interfaces of the microcomputers to the corresponding streaming computers, and the streaming computers are controlled to transmit traffic between the IP addresses and the streaming computers.
5. The multi-device stress testing method according to claim 4, characterized in that: According to the type of the wireless network interface, controlling all the microcomputers to send the acquired IP addresses of the wireless network interfaces of the microcomputers to the corresponding streaming computers respectively, and controlling the streaming computers to transmit traffic between the IP addresses and the streaming computers, comprises: Control all the microcomputers to collect the acquired IP addresses of the wireless network interfaces of the microcomputers into different csv type files according to the types of the wireless network interfaces; Copy each of the csv type files to the streaming computer respectively, and control the streaming computer to convert the corresponding csv type files into test files and open them.
6. The multi-device stress testing method according to claim 5, characterized in that: The control computer converts the corresponding csv type file into the test file and opens it, including: The streaming computer is controlled to use streaming software to convert the corresponding csv type file into the test file.
7. A multi-device pressure testing device, characterized in that: include: A configuration module, used to add all the microcomputers as slave nodes to the preset software according to the wired network interface IP, login username and login password of the microcomputer; Configure one or more service set identifiers SSID for the access point AP to be tested; A connection module, used for controlling all the microcomputers to configure each wireless network interface of the microcomputer to automatically connect to the corresponding SSID with the assistance of the preset software, and controlling all the microcomputers to obtain the IP address of each wireless network interface of the microcomputer; The transmission module is used to transmit the traffic between the IP address and the streaming computer according to the IP address of each of the wireless network interfaces.
8. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the multi-device stress testing method as described in any one of claims 1 to 6.
9. A multi-device stress testing system, characterized in that: include: Management equipment, a multi-device stress testing device as claimed in claim 7; A plurality of microcomputers are used to connect to the SSID corresponding to the access point AP to be tested, and obtain the IP address of each of the wireless network interfaces of the microcomputer; A plurality of streaming computers are used for transmitting traffic between the IP addresses and the streaming computers.
