A method, device and network system for testing performance of a wireless network
Patent Information
- Application Number
- CN202211509745.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-29
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2042-11-29
AI Technical Summary
[0004]本发明实施例提供一种无线网络性能的测试方法、装置、计算机设备及存储介质,以解决日常环境中测试无线网络时容易受到其他无线网络干扰的问题
[0015]上述无线网络性能的测试方法、装置及网络系统,通过主控设备检测无线接入设备的所有无线信道,将干扰最小的信道配置为当前第一无线信道,尽可能选出当前环境下受其他无线网络干扰最小的无线通信信道作为第一无线信道。将监听设备通过所述第一无线信道接入所述无线接入设备,接着测试所述第一无线信道的无线网络性能,并生成测试报告,这使得整个无线网络性能的测试过程在第一无线信道内完成,也就是,使得性能测试在其他无线网络干扰最小的无线通信信道中完成,令无线网络性能的测试数据更加准确、有效,提高了整体的测试效率。
Smart Images

Figure CN115835282B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wireless network testing, and more particularly to a method, apparatus, and network system for testing the performance of a wireless network. Background Technology
[0002] With the development of network technology, the coverage of wireless networks in daily environments is becoming wider and wider, and the types of wireless networks are also increasing. This makes it easy for the current wireless network to be interfered with by other wireless networks when conducting performance tests in daily environments, resulting in the wireless performance test data failing to meet the standards and making the wireless performance test inefficient.
[0003] Traditional solutions place the wireless network in a shielded environment. However, placing the entire network in a shielded environment is too costly, and the shielded environment cannot fully simulate other details that affect the network in a real-world environment. This leads to discrepancies between test results and real-world usage results, and these discrepancies cause the network performance test data to fail to meet standards. Summary of the Invention
[0004] This invention provides a method, apparatus, computer device, and storage medium for testing wireless network performance, in order to solve the problem that wireless networks are easily interfered with by other wireless networks when testing them in daily environments.
[0005] Firstly, a method for testing the performance of a wireless network is provided, including: Detect all wireless channels of the wireless access device and configure the channel with the least interference as the current first wireless channel; The listening device is connected to the wireless access device through the first wireless channel; The wireless network performance is tested through the first wireless channel, and a test report is generated.
[0006] In one implementation, before detecting all wireless channels of the wireless access device, the method further includes: Detect whether the network connection between the main control device, the monitoring device, and the wireless access device has been established; If the connection is established, all wireless channels of the wireless access device will be detected. If the connection is not established, a network failure message will be issued until the network connection between the main control device, the monitoring device, and the wireless access device is established.
[0007] In another implementation, detecting all wireless channels of the wireless access device and configuring the channel with the least interference as the current first wireless channel includes: Iterate through and query the channel occupancy parameters of all wireless channels in the wireless access device; When the channel occupancy parameter of the wireless channel is less than the expected occupancy value, the wireless channel is configured as the current first wireless channel of the wireless access device.
[0008] In another implementation, the method of traversing and querying the channel occupancy parameters of all wireless channels in the wireless access device further includes: When the channel occupancy parameter of the wireless channel is greater than or equal to the expected occupancy value, it indicates that the wireless channel does not meet the test conditions. An error message is returned if none of the wireless channels meet the test conditions.
[0009] In another implementation, after issuing a notification that a matching channel could not be detected, the method further includes: Obtain the specified second wireless channel; Query the channel occupancy parameters of the second wireless channel and return the query results.
[0010] In another implementation, after acquiring the specified second wireless channel, the method further includes: Check the legitimacy of the second wireless channel; If the legitimacy check passes, then query the channel occupancy parameters of the second wireless channel; If the validity check fails, an error message will be reported.
[0011] In another implementation, the returned query results include: Based on the query results, the channel occupancy parameter of the second wireless channel is used as the y-axis, and the time of parameter acquisition is used as the x-axis to show the change of the channel occupancy parameter of the second wireless channel over time. Based on the query results, the analysis results of the channel occupancy parameters of the second wireless channel are used as the y-axis, and the time of parameter acquisition is used as the x-axis to show the change of the analysis results of the channel occupancy parameters of the second wireless channel over time.
[0012] In another implementation, the step of testing the wireless network performance and generating a test report through the first wireless channel includes: The first data packet is sent to the monitoring device through the first wireless channel to obtain the downlink network test result; Configure the second data packet and send a test command to the monitoring device; Receive the second data packet sent by the monitoring device to obtain the uplink network test result; Configure the third data packet and specify the test time; Send the test command and the test time to the monitoring device; During the test period, the third data packet is sent to the monitoring device and the third data packet sent by the monitoring device is received to obtain the uplink and downlink network test results; Analyze the uplink network test results, downlink network test results, and uplink and downlink network test results to generate the test report.
[0013] Secondly, a wireless network performance testing device is provided, comprising: The detection module is used to detect all wireless channels of the wireless access device and configure the channel with the least interference as the current first wireless channel. A connection module is used to connect the monitoring device to the wireless access device through the first wireless channel; The testing module is used to test the performance of the wireless network through the first wireless channel and generate a test report.
[0014] Thirdly, a network system is provided, including a master control device, a wireless access point device, and at least one monitoring device. The master control device includes two wired network cards, and the monitoring device includes one wired network card and one wireless network card. The monitoring device is connected to the master control device via a network cable, and the master control device is connected to the wireless access point device via a network cable. The master control device also includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the above-described wireless network performance testing method.
[0015] The aforementioned wireless network performance testing method, apparatus, and network system, through a main control device, detects all wireless channels of the wireless access device and configures the channel with the least interference as the current first wireless channel. This prioritizes selecting the wireless communication channel least affected by interference from other wireless networks in the current environment as the first wireless channel. A monitoring device is then connected to the wireless access device via the first wireless channel. The wireless network performance of the first wireless channel is then tested, and a test report is generated. This ensures that the entire wireless network performance testing process is completed within the first wireless channel, meaning the performance test is performed on the wireless communication channel with the least interference from other wireless networks. This results in more accurate and effective test data and improves overall testing efficiency. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a schematic diagram of a network system according to an embodiment of the present invention; Figure 2 This is a schematic flowchart of a wireless network performance testing method according to an embodiment of the present invention; Figure 3 This is a schematic diagram of a channel query result of a wireless network performance testing method in one embodiment of the present invention; Figure 4 This is a schematic diagram of a channel query result of a wireless network performance testing method in one embodiment of the present invention; Figure 5 This is a schematic diagram of a wireless network performance testing device according to an embodiment of the present invention; Figure 6 This is a schematic diagram of the main control device in one embodiment of the present invention. Detailed Implementation
[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0019] The wireless network performance testing method provided in this embodiment of the invention can be applied to, for example... Figure 1 In this network system, the master control device communicates with the monitoring device via a wireless access device. The master control device connects the monitoring device to the wireless access device through an optimal wireless channel, and then tests the wireless network performance through the optimal wireless channel, generating a test report. The monitoring device can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The master control device can be, but is not limited to, a standalone server or a server cluster consisting of multiple servers. The wireless access device can be, but is not limited to, routers, multiplexers, or modems.
[0020] In one embodiment, such as Figure 2 As shown, a method for testing the performance of a wireless network is provided, and this method is applied to... Figure 1 Taking the server in the example, the following steps are included: S10: Detect all wireless channels of the wireless access device and configure the channel with the least interference as the current first wireless channel.
[0021] The main control device detects all wireless channels of the wireless access device. Based on the detection results, it selects the channel with the least interference as the test channel, i.e., the first wireless channel. The first wireless channel is then configured as the wireless channel currently used by the wireless access device. Methods for configuring the channel with the least interference as the current first wireless channel include, but are not limited to, configuring the ID of the channel with the least interference as the current wireless channel, and blocking all other channels except the channel with the least interference.
[0022] S20: Connect the monitoring device to the wireless access device through the first wireless channel.
[0023] The master control device connects the monitoring device to the wireless access device via a first wireless channel. In other words, a wireless network connection is established between the monitoring device and the wireless access device through the first wireless channel. In one embodiment, the master control device connects the monitoring device's wireless network to the first wireless channel by changing the monitoring device's wireless connection identifier. This access method includes, but is not limited to, switching the monitoring device's wireless connection to a specified wireless connection identifier, or disabling all other network connection methods of the monitoring device except for the specified wireless connection.
[0024] S30: Test the performance of the wireless network through the first wireless channel and generate a test report.
[0025] The main control system tests the wireless network performance through the first wireless channel. This performance includes, but is not limited to, uplink and downlink throughput. The final test report includes, but is not limited to, a performance analysis of the wireless network and charts displaying its performance. Methods for generating the test report include, but are not limited to, outputting tables via scripts and generating charts from retrieved values.
[0026] It should be noted that by detecting all wireless channels of the wireless access device through the main control device, the channel with the least interference is configured as the current first wireless channel. This prioritizes selecting the wireless communication channel least affected by interference from other wireless networks in the current environment. The monitoring device is then connected to the wireless access device through the first wireless channel. The wireless network performance of the first wireless channel is then tested, and a test report is generated. This ensures that the entire wireless network performance testing process is completed within the first wireless channel, meaning the performance test is performed on the wireless communication channel with the least interference from other wireless networks. This results in more accurate and effective test data, improving overall testing efficiency.
[0027] In one embodiment, before step S10, i.e. before detecting all wireless channels of the wireless access device, the wireless network performance testing method further includes the following steps: S41: Detect whether the network between the main control device, the monitoring device and the wireless access device has been connected.
[0028] S42: If connected, detect all wireless channels of the wireless access device.
[0029] S43: If the connection is not established, a network failure message will be issued until the network connection between the main control device, the monitoring device, and the wireless access device is established.
[0030] In steps S41-S43, before conducting the wireless network performance test, it is necessary to check the network connectivity of the overall network system. First, the master control device needs to check whether its own network connection is successful. The master control device sends a network test command to the wireless access device. For example, if the computer is used as the master control device and the router is used as the wireless access device, the computer sends a ping command to the router to check whether the network between the computer and the router is smooth. If there is a network abnormality between the master control device and the wireless access device, the master control device reports a network abnormality until the network connection between the master control device and the wireless access device is successfully established.
[0031] After successfully establishing a network connection between the main control device and the wireless access device, disable the wireless interface on the main control device. Next, test the network connectivity between the main control device and the monitoring device. It's important to note that this test checks the wired network connectivity between the main control device and the monitoring device. This wired network is primarily used for sending operation commands from the main control device to the monitoring device, not for subsequent wireless network performance testing.
[0032] It should be noted that in this embodiment, all wired networks were ensured to be operational before the wireless signal test, eliminating all possible communication failures. This ensures the smoothness of subsequent wireless performance testing and the efficiency of troubleshooting in case of any problems.
[0033] In one embodiment, step S10, which involves detecting all wireless channels of the wireless access device and configuring the channel with the least interference as the current first wireless channel, specifically includes the following steps: S11: Iterate through and query the channel occupancy parameters of all wireless channels in the wireless access device.
[0034] S12: When the channel occupancy parameter of the wireless channel is less than the expected occupancy value, the wireless channel is configured as the current first wireless channel of the wireless access device.
[0035] In steps S11-S12, the master control device sends a command to the wireless access device to query the network interference strength and obtains the channel occupancy parameters of all channels in the wireless access device. Then, the queried parameters and the time of parameter acquisition are statistically analyzed. The channel occupancy parameters include, but are not limited to, TXOP, OBSS, NOCAT, and NOPKT. A pre-set expected occupancy value is used. When the network occupancy of a wireless channel does not reach the expected occupancy value, the current wireless channel is designated as the first wireless channel, i.e., the channel least affected by interference from other wireless networks.
[0036] In one embodiment, TXOP (Media Idle, short for TX Opportunity, indicating no data transmission or reception), OBSS (Other BSS, indicating correct packet reception but no match for the boundary address or station MAC address), NOCAT (No Category, indicating received packets with error frame check sequences), and NOPKT (No Packet, indicating detected carrier sensing or energy but unable to decode into a Wi-Fi signal) are selected as channel occupancy parameters. After obtaining the above four parameters, the total value TOTAL of OBSS, NOCAT, and NOPKT is calculated. TXOP, TOTAL, OBSS, NOCAT, and NOPKT are used as indicators for analyzing the interference received by the wireless channel. In step S12, the expected occupancy value is set such that when the value of TXOP is greater than 10 and the value of TOTAL is less than 40, the current wireless channel receives less interference and can be used as the first wireless channel.
[0037] It should be noted that in this embodiment, the channel with the least interference is obtained by querying and analyzing multiple parameters. This can effectively prevent unexpected situations that may occur with a single parameter. By combining the results of multiple parameters, the interference situation of the current wireless network can be judged more reasonably and comprehensively. This allows for a more effective and efficient selection of a suitable first wireless channel as the channel for subsequent performance testing.
[0038] In one embodiment, after step S11, i.e., after iterating through and querying the channel occupancy parameters of all wireless channels in the wireless access device, the wireless network performance testing method further includes the following steps: S51: When the channel occupancy parameter of the wireless channel is greater than or equal to the expected occupancy value, it indicates that the wireless channel does not meet the test conditions.
[0039] S52: Return an error message when all the wireless channels do not meet the test conditions.
[0040] After iterating through and querying the channel occupancy parameters of all wireless channels in the wireless access device, on the one hand, wireless channels that have not reached the expected occupancy value are designated as the first wireless channels with less interference and meeting the performance testing conditions. On the other hand, if a wireless channel reaches or exceeds the expected occupancy value, as in step S51, it is determined that the current wireless channel does not meet the testing conditions, and the process continues to query the next wireless channel. In one embodiment, when the TXOP value of the current wireless channel is less than or equal to 10, or the TOTAL value is greater than or equal to 40, it indicates that the current wireless channel has too much interference and cannot be used as a channel for wireless network performance testing.
[0041] If, after completing the traversal query, no wireless channel matching the expected test conditions can still be found, proceed to step S52. The main control device returns an error message, indicating to the user that no channel matching the test conditions can be detected. This error message includes, but is not limited to, the inability to find a matching channel or a channel error.
[0042] It should be noted that when all channels fail to meet the expected test conditions, the main control device returns an error message. This allows users to choose whether to continue the performance test and promptly alerts them to potential anomalies, including but not limited to situations where the expected test conditions are set too high or the current wireless access device has communication problems.
[0043] In one embodiment, after step S52, i.e. after the error message is returned, the wireless network performance testing method further includes the following steps: S61: Obtain the specified second wireless channel.
[0044] S62: Query the channel occupancy parameters of the second wireless channel and return the query results.
[0045] When all wireless channels fail to meet the expected test conditions, the main control device returns an error message and allows the user to input test conditions, including but not limited to terminating or continuing the current test, querying a specified wireless channel, resetting the expected occupancy value, and resetting the expected test conditions.
[0046] In one embodiment, as in steps S61-S62, after all current wireless channels fail to meet the expected test conditions, the user inputs a command to continue the current test and simultaneously re-enters one or more second wireless channels. After the main control device obtains the second wireless channel, it queries the channel occupancy parameters of the second wireless channel in the wireless access device and returns the query result to the user.
[0047] For example, in current wireless access devices, the 2.4GHz band is divided into 13 channels, while the 5GHz band is divided into 10 channels. The main control device lists the IDs of these 23 channels to the user. The user inputs the channel ID, and after obtaining the channel ID, the main control device queries the TXOP, OBSS, NOCAT, and NOPKT parameters for that channel ID, compiles and analyzes the query results, and returns the results to the user. These query results include, but are not limited to, numerical values of the channel occupancy parameters and graphical representations of the channel occupancy parameters.
[0048] After returning the query results to the user, the user can choose one of the wireless channels as the first wireless channel, which is the wireless channel for the current performance test. Alternatively, the user can specify the expected test conditions, i.e., reset the expected occupancy value. The main control device will then find the wireless channel with the least interference as the first wireless channel based on the reset expected occupancy value.
[0049] It should be noted that in this embodiment, when all channels fail to meet the expected test conditions, the user is first allowed to choose whether to continue the performance test. If the user chooses to continue the performance test, they are also allowed to input a specified channel, i.e., a second wireless channel, and to modify the expected test conditions. This makes the process of selecting the wireless test channel efficient and smooth, and also makes the entire performance test process more reasonable, thereby improving the overall work efficiency of the performance test.
[0050] In one embodiment, after step S52, i.e., after the error message is returned, the user can input a specified duration as the duration for querying the second wireless channel. The final query results will divide the duration into multiple time periods, displaying the channel occupancy parameters or analysis results for each time period. For example, to query the TXOP parameters of the second wireless channel within one hour, the hour is divided into six 10-minute time periods, meaning the TXOP parameters of the second wireless channel are retrieved every 10 minutes, and the query results are generated.
[0051] In one embodiment, after step S61, i.e. after acquiring the specified second wireless channel, the method for testing the performance of the wireless network further includes the following steps: S71: Check the legitimacy of the second wireless channel.
[0052] S72: If the validity check passes, query the channel occupancy parameters of the second wireless channel.
[0053] S73: If the validity check fails, an error message will be reported.
[0054] In step S71, after receiving the second wireless channel input by the user, the master control device needs to perform a validity check. This validity check includes, but is not limited to, the master control device detecting whether the second wireless channel exists and whether the user input value contains any illegal intrusion codes.
[0055] In step S72, if the validity check passes, the master control device queries the channel occupancy parameters of the second wireless channel. These parameters include, but are not limited to, TXOP, TOTAL, OBSS, NOCAT, and NOPKT. If the validity check fails, as in step S73, the master control device reports an error message, which may include, but is not limited to, the input channel not existing or the input containing illegal characters.
[0056] It should be noted that in this embodiment, the legality of the user input is detected, which effectively prevents abnormal errors in subsequent query channels and better ensures the security of the entire performance testing network system and program.
[0057] In one embodiment, after step S62, i.e. after returning the query results, the wireless network performance testing method further includes the following steps: S81: Based on the query results, the channel occupancy parameter of the second wireless channel is used as the y-axis, and the time of parameter acquisition is used as the x-axis to show the change of the channel occupancy parameter of the second wireless channel over time.
[0058] S82: Based on the query results, the analysis results of the channel occupancy parameters of the second wireless channel are used as the y-axis, and the time of parameter acquisition is used as the x-axis to show the change of the analysis results of the channel occupancy parameters of the second wireless channel over time.
[0059] After the master control device queries the second wireless channel parameters specified by the user, it needs to return the query results to the user. In one embodiment, the results returned to the user can be displayed and analyzed in the form of charts.
[0060] In step S81, a chart is generated by using the channel occupancy parameter in the query results as the y-axis and the time of parameter acquisition as the x-axis. This chart shows the change of the channel occupancy parameter of the second wireless channel over time, allowing the user to understand the network interference affecting the second wireless channel. For example, using the TXOP parameter in the query results as the y-axis and the time of TXOP parameter acquisition as the x-axis, a chart is generated as shown below. Figure 3 The chart shown visually demonstrates to users when the second wireless channel is idle.
[0061] In step S82, the analysis results of the channel occupancy parameters in the query results are used as the y-axis, and the time when the parameters were acquired in the query results is used as the x-axis to generate a chart. This chart shows the changes in the analysis results of the channel occupancy parameters of the second wireless channel over time, allowing the user to understand the network interference situation of the second wireless channel. For example, the OBSS, NOCAT, and NOPKT parameters in the query results are added together to obtain the total value TOTAL. TOTAL is used as the y-axis, and the time when the three parameters were acquired is used as the x-axis to generate a chart like this. Figure 4 The chart shown visually illustrates to the user the situation where abnormal data packets are received on the second channel.
[0062] It should be noted that in this embodiment, the channel interference situation and analysis results are presented to the user in a graphical manner, which helps the user to more intuitively understand the changing trend of channel interference, enabling the user to more reasonably and quickly select the wireless channel desired for performance testing.
[0063] In one embodiment, step S30, which involves testing the wireless network performance through the first wireless channel and generating a test report, specifically includes the following steps: S31: Send a first data packet to the monitoring device through the first wireless channel to obtain downlink network test results.
[0064] S32: Configure the second data packet and send a test command to the listening device.
[0065] S33: Receive the second data packet sent by the monitoring device and obtain the uplink network test result.
[0066] S34: Configure the third data packet and specify the test time.
[0067] S35: Send a test command and the test time to the monitoring device.
[0068] S36: During the test period, send the third data packet to the monitoring device and receive the third data packet sent by the monitoring device to obtain the uplink and downlink network test results.
[0069] S37: Analyze the uplink network test results, downlink network test results, and uplink and downlink network test results to generate the aforementioned test report.
[0070] In one embodiment, a test endpoint is first enabled on both the master control device and the listening device. This test endpoint refers to a communication network node, which is a wellhead publicly disclosed by the communicating party or communication channel. In this embodiment, the test endpoint is mainly used to test the transmission of data packets.
[0071] Secondly, as in step S31, the master control device sends a test data packet, i.e., a first data packet, to the monitoring device through the first wireless channel. The monitoring device receives the first data packet and returns the reception result, i.e., the downlink network test result, to the master control device.
[0072] Next, as in steps S32-33, the master control device sends a test command to the monitoring device via the wired network and configures a test data packet, i.e., the second data packet. After receiving the test command, the monitoring device sends the second data packet to the master control device. The master control device receives the second data packet and returns the reception result, i.e., the uplink network test result.
[0073] Subsequently, as in steps S34-S36, the master control device sets the test time and test data packet, i.e., the third data packet. The master control device sends the test command and test time to the monitoring device via the wired network. During the test time, both the master control device and the monitoring device simultaneously send the third data packet. The master control device receives the third data packet sent by the monitoring device and returns a first reception result, while the monitoring device receives the third data packet sent by the master control device and returns a second reception result. The master control device combines the first and second reception results to obtain the uplink and downlink network test results.
[0074] Finally, the uplink network test results, downlink network test results, and uplink / downlink network test results are analyzed to generate a test report. In one embodiment, the master control device sets an expected target value for network throughput. Based on the uplink network test results, downlink network test results, and uplink / downlink network test results, it analyzes whether the current wireless network throughput has reached the expected target value, thereby determining whether the current wireless network throughput is qualified, and outputs the analysis results.
[0075] It should be noted that in this embodiment, the uplink network, downlink network, and wireless network throughput of the monitoring device when both uplink and downlink networks are used simultaneously are fully tested. This allows for better comprehensive analysis of the test results, obtaining the maximum speed and network performance indicators of the current wireless network, making a more reasonable judgment on the current network performance, and then analyzing it to derive the final test report.
[0076] In one embodiment, step S20 specifically involves the master control device sending a command from the wired network to the monitoring device to shut down all wireless channels. Upon receiving the command, the monitoring device shuts down all wireless channels. Next, the master control device sends a command to the monitoring device to open a specified wireless channel, specifically a command to open the first wireless channel. Upon receiving the command, the monitoring device opens the first wireless channel, allowing the listening device to access the wireless device through the first wireless channel.
[0077] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0078] In one embodiment, a wireless network performance testing apparatus is provided, which corresponds one-to-one with the wireless network performance testing methods described in the above embodiments. For example... Figure 5 As shown, the wireless network performance testing device includes a detection module, a connection module, and a testing module. Detailed descriptions of each functional module are as follows: The detection module is used to detect all wireless channels of the wireless access device and configure the channel with the least interference as the current first wireless channel. A connection module is used to connect the monitoring device to the wireless access device through the first wireless channel; The testing module is used to test the performance of the wireless network through the first wireless channel and generate a test report.
[0079] Specific limitations regarding the testing apparatus for wireless network performance can be found in the limitations of the testing methods for wireless network performance described above, and will not be repeated here. Each module in the aforementioned testing apparatus for wireless network performance can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independently of the processor in the computer device, or stored in software in the memory of the computer device, so that the processor can call and execute the corresponding operations of each module.
[0080] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 6 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for testing the performance of a wireless network.
[0081] In one embodiment, a network system is provided, including a master control device, a wireless access point device, and at least one monitoring device. The master control device includes two wired network interface cards (NICs), and the monitoring device includes one wired NIC and one wireless NIC. The monitoring device is connected to the master control device via a network cable, and the master control device is connected to the wireless access point device via a network cable. The master control device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the following steps: Detect all wireless channels of the wireless access device and configure the channel with the least interference as the current first wireless channel; The listening device is connected to the wireless access device through the first wireless channel; The wireless network performance is tested through the first wireless channel, and a test report is generated. In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, performs the following steps: Detect all wireless channels of the wireless access device and configure the channel with the least interference as the current first wireless channel; The listening device is connected to the wireless access device through the first wireless channel; The wireless network performance is tested through the first wireless channel, and a test report is generated.
[0082] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0083] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0084] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A method for testing the performance of a wireless network, characterized in that, include: Detect all wireless channels of the wireless access device and configure the channel with the least interference as the current first wireless channel; wherein, the method of configuring the channel with the least interference as the current first wireless channel includes configuring the ID of the channel with the least interference as the current first wireless channel; The listening device is connected to the wireless access device through the first wireless channel; The wireless network performance is tested through the first wireless channel, and a test report is generated. The step of detecting all wireless channels of the wireless access device and configuring the channel with the least interference as the current first wireless channel includes: traversing and querying the channel occupancy parameters of all wireless channels in the wireless access device; wherein the channel occupancy parameters include TXOP, OBSS, NOCAT, and NOPKT, where TXOP indicates no data transmission or reception, OBSS indicates correct data packet reception but no match for the boundary address or station MAC address, NOCAT indicates receiving a data packet with an error frame check sequence, and NOPKT indicates detecting carrier sensing or energy but unable to decode it into a WIFI signal; when the TXOP of the wireless channel is greater than a first expected occupancy value and TOTAL is less than a second expected occupancy value, the wireless channel is configured as the current first wireless channel of the wireless access device; when the TXOP of the wireless channel is less than or equal to the first expected occupancy value, or TOTAL is greater than or equal to the second expected occupancy value, it indicates that the wireless channel does not meet the test conditions; when all the wireless channels do not meet the test conditions, an error message is returned; The process includes, after returning the error message, obtaining the specified second wireless channel and the specified duration; determining multiple time periods based on the specified duration; querying the channel occupancy parameters of the second wireless channel in each time period; and returning the query results. The step of testing the wireless network performance and generating a test report through the first wireless channel includes: sending a first data packet to the monitoring device through the first wireless channel to obtain downlink network test results; configuring a second data packet and sending a test command to the monitoring device; receiving the second data packet sent by the monitoring device to obtain uplink network test results; configuring a third data packet and specifying a test time; sending the test command and the test time to the monitoring device; sending the third data packet to the monitoring device and receiving the third data packet sent by the monitoring device during the test time to obtain uplink and downlink network test results; and analyzing the uplink network test results, downlink network test results, and uplink and downlink network test results to generate the test report.
2. The method for testing wireless network performance as described in claim 1, characterized in that, Before detecting all wireless channels of the wireless access device, the method further includes: Detect whether the network connection between the main control device, the monitoring device, and the wireless access device has been established; If the connection is established, all wireless channels of the wireless access device will be detected. If the connection is not established, a network failure message will be issued until the network connection between the main control device, the monitoring device, and the wireless access device is established.
3. The method for testing wireless network performance as described in claim 1, characterized in that, After acquiring the specified second wireless channel, the method further includes: Check the legitimacy of the second wireless channel; If the legitimacy check passes, then query the channel occupancy parameters of the second wireless channel; If the validity check fails, an error message will be reported.
4. The method for testing wireless network performance as described in claim 1, characterized in that, The returned query results include: Based on the query results, the channel occupancy parameter of the second wireless channel is used as the y-axis, and the time of parameter acquisition is used as the x-axis to show the change of the channel occupancy parameter of the second wireless channel over time. Based on the query results, the analysis results of the channel occupancy parameters of the second wireless channel are used as the y-axis, and the time of parameter acquisition is used as the x-axis to show the change of the analysis results of the channel occupancy parameters of the second wireless channel over time.
5. A test device for wireless network performance, characterized in that, include: The detection module is used to detect all wireless channels of the wireless access device and configure the channel with the least interference as the current first wireless channel; wherein, the method of configuring the channel with the least interference as the current first wireless channel includes configuring the ID of the channel with the least interference as the current first wireless channel. A connection module is used to connect the monitoring device to the wireless access device through the first wireless channel; The testing module is used to test the performance of the wireless network through the first wireless channel and generate a test report; The step of detecting all wireless channels of the wireless access device and configuring the channel with the least interference as the current first wireless channel includes: traversing and querying the channel occupancy parameters of all wireless channels in the wireless access device; wherein the channel occupancy parameters include TXOP, OBSS, NOCAT, and NOPKT, where TXOP indicates no data transmission or reception, OBSS indicates correct data packet reception but no match for the boundary address or station MAC address, NOCAT indicates receiving a data packet with an error frame check sequence, and NOPKT indicates detecting carrier sensing or energy but unable to decode it into a WIFI signal; when the TXOP of the wireless channel is greater than a first expected occupancy value and TOTAL is less than a second expected occupancy value, the wireless channel is configured as the current first wireless channel of the wireless access device; when the TXOP of the wireless channel is less than or equal to the first expected occupancy value, or TOTAL is greater than or equal to the second expected occupancy value, it indicates that the wireless channel does not meet the test conditions; when all the wireless channels do not meet the test conditions, an error message is returned; After returning the error message, the testing device is further configured to acquire a specified second wireless channel and a specified duration; determine multiple time periods based on the specified duration; query the channel occupancy parameters of the second wireless channel in each time period; and return the query results. The step of testing the wireless network performance and generating a test report through the first wireless channel includes: sending a first data packet to the monitoring device through the first wireless channel to obtain downlink network test results; configuring a second data packet and sending a test command to the monitoring device; receiving the second data packet sent by the monitoring device to obtain uplink network test results; configuring a third data packet and specifying a test time; sending the test command and the test time to the monitoring device; sending the third data packet to the monitoring device and receiving the third data packet sent by the monitoring device during the test time to obtain uplink and downlink network test results; and analyzing the uplink network test results, downlink network test results, and uplink and downlink network test results to generate the test report.
6. A network system comprising a master control device, a wireless access point device, and at least one monitoring device, wherein, The main control device includes two wired network cards, the monitoring device includes one wired network card and one wireless network card, the monitoring device is connected to the main control device via a network cable, the main control device is connected to the wireless access point device via a network cable, the main control device further includes a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the computer program, it implements the steps of the wireless network performance testing method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Measuring unit and method for measuring transmission parameters for a test object
CN103125101A
