Wireless access point batch simulation test method, device and equipment and storage medium
By building a wireless access point simulator, generating a virtual wireless access point and simulating its interaction with the wireless access control device, the problems of high cost and inaccurate simulation of traditional testing methods are solved, and efficient and accurate batch simulation testing of wireless access point is achieved.
Patent Information
- Application Number
- CN202510267657.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-07
- Publication Date
- 2025-06-03
AI Technical Summary
In the scenario of large-scale wireless LAN network deployment, traditional wireless access point (AP) testing methods require a large amount of hardware cost investment and are difficult to accurately simulate various network conditions, affecting the accuracy and comprehensiveness of the test.
By building a wireless access point simulator, the network identifier of the virtual wireless access point is generated, including simulated IP addresses and simulated MAC addresses, and interactive packets between the virtual wireless access point and the wireless access control device are constructed based on the control configuration protocol, and simulation tests are performed.
It reduces the material cost of testing, improves the efficiency and accuracy of batch wireless access point simulation tests, and enables the performance of AC devices to be tested without real hardware.
Smart Images

Figure CN120091344A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of wireless communication, and in particular, to a method, device, equipment, and storage medium for batch simulation testing of wireless access points. Background Art
[0002] In the rapid development and application of WLAN (Wireless Local Area Network) technology, as key components for building an efficient and stable wireless network, the performance and compatibility testing of APs (Access Points) and ACs (Access Controllers) are particularly important. However, traditional testing methods face many challenges in practical applications. Especially in the scenario of large-scale network deployment, the testing cost and time consumption have become key factors restricting testing efficiency. Currently, AC devices on the market generally support managing hundreds or even more APs to meet the coverage requirements of complex network environments such as large enterprises and public places. However, when testing AC devices, if real APs are used for testing, not only a large amount of hardware cost investment is required, but also corresponding instrument testers need to be equipped during the testing process, further increasing the testing cost. In addition, due to the complexity and uncertainty of the testing environment, the testing of real APs often fails to accurately simulate various possible network conditions, thus affecting the accuracy and comprehensiveness of the testing.
[0003] However, there are still some problems with existing simulation testing technologies in practical applications. For example, some simulation tools can only simulate a limited number of APs and cannot meet the needs of large-scale network testing; although some other simulation tools can simulate a large number of APs, they have problems such as insufficient accuracy or poor stability when simulating key processes such as AP online connection and configuration distribution, thus affecting the reliability of the test results.
[0004] Therefore, how to test the performance of AC devices without real hardware is an urgent problem to be solved currently. Summary of the Invention
[0005] The main purpose of this application is to provide a method, device, equipment, and storage medium for batch simulation testing of wireless access points, aiming to solve the technical problem of how to test the performance of AC devices without real hardware.
[0006] To achieve the above objective, this application proposes a method for batch simulation testing of wireless access points. The method is applied to a batch simulation testing system for wireless access points. The batch simulation testing system for wireless access points includes: a test terminal and a wireless access control device. The test terminal includes a network card, and the network card is used to communicate with the wireless access control device. The method includes:
[0007] Generate a network identifier for the virtual wireless access point according to a preset policy, where the network identifier includes an analog IP address and an analog MAC address;
[0008] Construct an interaction message between the virtual wireless access point and the wireless access control device based on a control configuration protocol and the network identifier, where the interaction message includes a join request message, a configuration status request message, a status change request message, a configuration report message, and a heartbeat message;
[0009] Perform a wireless access point simulation test according to the interaction message.
[0010] In one embodiment, the step of generating a network identifier for the virtual wireless access point according to a preset policy includes:
[0011] Construct an IP generator and a MAC generator according to a preset policy;
[0012] Allocate an analog IP address and an analog MAC address to each virtual wireless access point according to the IP generator and the MAC generator.
[0013] In one embodiment, the step of performing a wireless access point simulation test according to the interaction message includes:
[0014] Obtain a protocol sending policy and test requirement data;
[0015] Send the interaction message to the wireless access control device according to the protocol sending policy, and perform a simulation test of the virtual wireless access point according to the interaction message and the test requirement data.
[0016] In one embodiment, the step of sending the interaction message to the wireless access control device according to the protocol sending policy includes:
[0017] Obtain a first format sending policy and a second format sending policy according to the protocol sending policy;
[0018] Send the join request message, the configuration status request message, and the status change request message to the wireless access control device according to the first format sending policy;
[0019] Send a configuration report message to the wireless access control device according to the second format sending policy.
[0020] In one embodiment, after the step of sending a configuration report message to the wireless access control device according to the second format sending policy, it further includes:
[0021] Obtain a periodic sending policy, and send the heartbeat message to the radio access control device according to the periodic sending policy;
[0022] Maintain the online status of the virtual wireless access point on the radio access control device according to the heartbeat message.
[0023] In one embodiment, the steps of performing a simulation test of a virtual wireless access point according to the interaction message and the test requirement data include:
[0024] Dynamically modify the configuration parameters in the configuration reporting message according to the test requirement data, where the configuration parameters include a service set identifier, an encryption mode, and an authentication key;
[0025] Simulate a batch online test and a batch distribution test of the wireless access point configuration by the radio access control device according to the modified configuration parameters.
[0026] In one embodiment, the steps of simulating a batch online test and a batch distribution test of the wireless access point configuration by the radio access control device according to the modified configuration parameters include:
[0027] Obtain the number of target wireless access points to go online according to the configuration parameters, and simulate the online of the corresponding number of virtual wireless access points according to the number of target wireless access points to go online;
[0028] After the simulation is completed, record the actual number of virtual wireless access points to go online and the number of virtual wireless access points distributed;
[0029] When the actual number of virtual wireless access points to go online is equal to the number of target wireless access points to go online, determine that the batch online test of the radio access control device passes;
[0030] When the actual number of virtual wireless access points distributed is equal to the number of target wireless access points to go online, determine that the batch distribution test of the radio access control device passes.
[0031] In addition, to achieve the above object, the present application also proposes a wireless access point batch simulation test device, and the device includes:
[0032] A device simulation module, configured to generate a network identifier of a virtual wireless access point according to a preset policy, where the network identifier includes a simulated IP address and a simulated MAC address;
[0033] A communication construction module, configured to construct an interaction message between the virtual wireless access point and the radio access control device based on a control configuration protocol and the network identifier, where the interaction message includes a join request message, a configuration status request message, a status change request message, a configuration reporting message, and a heartbeat message;
[0034] A simulation test module for performing a wireless access point simulation test according to the interaction message.
[0035] In addition, to achieve the above object, the present application also provides a wireless access point batch simulation test device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the wireless access point batch simulation test method as described above.
[0036] In addition, to achieve the above object, the present application also provides a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium, and when the computer program is executed by a processor, it implements the steps of the wireless access point batch simulation test method as described above.
[0037] In addition, to achieve the above object, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the wireless access point batch simulation test method as described above.
[0038] The present application provides a wireless access point batch simulation test method, and the method of the present application includes: generating a network identifier of a virtual wireless access point according to a preset policy, where the network identifier includes an analog IP address and an analog MAC address; constructing an interaction message between the virtual wireless access point and the wireless access control device based on a control configuration protocol and the network identifier, where the interaction message includes a join request message, a configuration status request message, a status change request message, a configuration report message, and a heartbeat message; performing a wireless access point simulation test according to the interaction message. In summary, it can be seen that the present application reduces the material cost of the test and improves the efficiency and accuracy of the batch wireless access point simulation test by constructing a wireless access point simulator for simulation. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0040] To more clearly illustrate the technical solutions in the embodiments of the present application or in the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0041] Figure 1 It is a schematic flowchart provided for the first embodiment of the wireless access point batch simulation test method of the present application;
[0042] Figure 2 Schematic diagram of IP simulation in an embodiment of the method for batch simulation testing of wireless access points in this application;
[0043] Figure 3 Schematic flow chart provided by the second embodiment of the method for batch simulation testing of wireless access points in this application;
[0044] Figure 4 Schematic diagram of simulating the online of an access point (AP) in an embodiment of the method for batch simulation testing of wireless access points in this application;
[0045] Figure 5 Schematic diagram of the module structure of the device for batch simulation testing of wireless access points in an embodiment of this application;
[0046] Figure 6 Schematic diagram of the device structure of the hardware operating environment involved in the method for batch simulation testing of wireless access points in an embodiment of this application.
[0047] The realization of the purpose, functional features, and advantages of this application will be further described with reference to the embodiments and the accompanying drawings. Detailed implementation manners
[0048] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of this application and are not used to limit this application.
[0049] To better understand the technical solutions of this application, the following will be described in detail in combination with the drawings in the specification and specific implementation manners.
[0050] The main solution of the embodiments of this application is: generating a network identifier of a virtual wireless access point according to a preset policy, where the network identifier includes an analog IP address and an analog MAC address; constructing an interaction message between the virtual wireless access point and the wireless access control device based on a control configuration protocol and the network identifier, where the interaction message includes a join request message, a configuration status request message, a status change request message, a configuration report message, and a heartbeat message; performing wireless access point simulation testing according to the interaction message.
[0051] In the rapid development and application of WLAN technology, as key components for building an efficient and stable wireless network, the performance and compatibility testing of APs and ACs are particularly important. However, traditional testing methods face numerous challenges in practical applications. Especially in the scenario of large-scale network deployment, the testing cost and time consumption have become the key factors restricting testing efficiency. Currently, AC devices on the market generally support managing hundreds or even more APs to meet the coverage requirements of complex network environments such as large enterprises and public places. However, when testing AC devices, if real APs are used for testing, not only a large amount of hardware cost investment is required, but also corresponding instrument testers need to be equipped during the testing process, further increasing the testing cost. In addition, due to the complexity and uncertainty of the testing environment, it is often difficult to accurately simulate various possible network conditions in the testing of real APs, thus affecting the accuracy and comprehensiveness of the testing.
[0052] However, there are still some problems in the existing simulation testing technologies in practical applications. For example, some simulation tools can only simulate a limited number of APs and cannot meet the needs of large-scale network testing; although some other simulation tools can simulate a large number of APs, there are problems such as insufficient accuracy or poor stability in simulating key processes such as AP online connection and configuration distribution, thus affecting the reliability of the testing results. Therefore, how to test the performance of AC devices without real hardware is an urgent problem to be solved currently.
[0053] This application conducts simulation by constructing a wireless access point simulator, reducing the testing material cost and improving the efficiency and accuracy of batch wireless access point simulation testing.
[0054] It should be noted that the execution subject of this embodiment can be a batch wireless access point simulation testing system, or a computing service device with data processing, network communication, and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of implementing the above batch wireless access point simulation testing function. This embodiment does not specifically limit this. Hereinafter, taking the batch wireless access point simulation testing system as an example, this embodiment and the following embodiments will be described.
[0055] Based on this, the embodiment of this application provides a batch wireless access point simulation testing method, referring to Figure 1 , Figure 1 which is the flow schematic diagram of the first embodiment of the batch wireless access point simulation testing method of this application.
[0056] In this embodiment, the method is applied to a wireless access point batch simulation test system, which includes a test terminal and a wireless access control device. The test terminal includes a network card for communicating with the wireless access control device.
[0057] The wireless access point batch simulation test method includes steps S10 to S30:
[0058] Step S10: Generate a network identifier for a virtual wireless access point according to a preset policy. The network identifier includes an analog IP address and an analog MAC address.
[0059] It should be noted that the IP address and the MAC address are the unique identifiers of network devices in the network, and are used for communication at the network layer and the data link layer respectively. In this step, the network identifier includes an analog IP address and an analog MAC address. It can be understood that in order to simulate multiple APs, the system will assign a unique analog IP address and an analog MAC address to each virtual AP to ensure their uniqueness and identifiability in the network, so as to simulate the APs in the real environment. Additionally, it should be noted that the preset policy refers to the policy pre-written or set in the system for simulating and generating IP addresses and MAC addresses.
[0060] In a feasible implementation manner, step S10 specifically includes:
[0061] Step S101: Construct an IP generator and a MAC generator according to a preset policy.
[0062] It should be noted that as Figure 2 shown, the IP generator is a system that, based on the ipaddress library in Python, generates a series of IP addresses according to the preset IP address range and subnet mask. For example, if the preset policy requires generating 500 consecutive IP addresses, it can start from 192.168.1.1 and generate up to 192.168.1.500. The IP generator is responsible for generating an IP address list within this range. The MAC generator starts from a preset starting MAC address (such as 00:00:00:00:00:01) and generates the required MAC address list according to the MAC address generation rule (i.e., incrementing every two hexadecimal digits). Taking the generation of 500 MAC addresses as an example, the MAC address will increment to 00:00:00:00:01:F4 (assuming special addresses of all zeros or all Fs are not considered). Then, the system will execute a Windows command according to the subprocess library to set the generated IP to the network card.
[0063] Additionally, it should be noted that the IP generator and the MAC generator are automated tools constructed according to preset policies (such as IP address range, MAC address starting value, generation quantity, etc.) for batch generating network identifiers required for testing. The preset policies include but are not limited to the range of IP addresses, subnet masks, starting values of MAC addresses, generation quantities, and whether to exclude specific addresses (such as known conflicting or reserved addresses), etc.
[0064] Step S102: Assign simulated IP addresses and simulated MAC addresses to each virtual wireless access point according to the IP generator and the MAC generator.
[0065] It should be noted that the purpose of this step is to use the constructed IP generator and MAC generator to assign unique simulated IP addresses and simulated MAC addresses to each virtual AP. Specifically, the system sequentially retrieves an IP address from the IP generator as the simulated IP address of the current virtual AP. At the same time, it retrieves the corresponding sequential MAC address from the MAC generator as the simulated MAC address of the current virtual AP. Repeat the above process until network identifiers are assigned to all preset quantities of virtual APs. If it is found during the generation process that a specific address (such as a MAC address) conflicts or is already occupied, corresponding processing should be carried out according to the preset policy (such as skipping this address, regenerating, etc.). It can be understood that assigning unique simulated IP addresses and simulated MAC addresses to each virtual AP ensures their independence and identifiability in the simulated environment, thus enabling the accurate simulation of the communication process between APs and ACs in the real environment.
[0066] Step S20: Construct interaction messages between the virtual wireless access point and the wireless access control device based on the control configuration protocol and the network identifier. The interaction messages include join request messages, configuration status request messages, state change request messages, configuration reporting messages, and heartbeat messages.
[0067] It should be noted that the interaction messages include join request messages (Join Request), configuration status request messages (Configuration Status Request), state change request messages (Change State Request), configuration reporting messages (Keep - Alive), and heartbeat messages (Echo Request). These messages are constructed based on the control configuration protocol (capwap) and are used to simulate the communication process between APs and ACs. Specifically, the system constructs join request messages, configuration status request messages, and state change request messages based on the message formats defined by the capwap protocol, and these messages contain the necessary information sent by the AP to the AC. Among them, the heartbeat message is used to keep the AP in an online state and is sent at a preset time interval (such as every 10 seconds).
[0068] Additionally, it should be noted that the CAPWAP protocol is the standard protocol for communication between an AP and an AC, which defines communication processes such as how an AP joins an AC, how it reports its status, and how it receives configurations.
[0069] Step S30: Perform wireless access point emulation testing based on the interaction message.
[0070] It should be noted that in this step, the system will send the constructed interaction message to the specified port of the AC device. After receiving the message, the AC device will process it according to the CAPWAP protocol and return a corresponding response message. The system will determine whether the AP has successfully come online and whether the configuration has been successfully issued based on the response message from the AC. If all tests pass, it indicates that the tested AC device has the corresponding batch management ability and configuration issuance ability. Repeat the above process, simulate different numbers of APs for testing, to verify the maximum management ability and performance of the AC.
[0071] Additionally, it should be noted that the testing method in this embodiment is applicable to AC devices of various brands and models, and only needs to be appropriately adjusted according to the specific implementation details of the CAPWAP protocol and the characteristics of the AC device.
[0072] This embodiment provides a method for batch emulation testing of wireless access points. The method of this embodiment includes: generating a network identifier of a virtual wireless access point according to a preset policy, where the network identifier includes an analog IP address and an analog MAC address; constructing an interaction message between the virtual wireless access point and the wireless access control device based on a control configuration protocol and the network identifier, where the interaction message includes a join request message, a configuration status request message, a status change request message, a configuration report message, and a heartbeat message; performing wireless access point emulation testing according to the interaction message. In summary, this embodiment reduces the material cost of testing and improves the efficiency and accuracy of batch wireless access point emulation testing by constructing a wireless access point simulator.
[0073] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar content as that in the above-mentioned first embodiment can be referred to the above introduction and will not be elaborated hereinafter. On this basis, please refer to Figure 3 , Figure 3 is a schematic flowchart of the second embodiment of the method for batch emulation testing of wireless access points of the present application. The specific steps of step S30 include:
[0074] Step S301: Obtain a protocol sending policy and test requirement data.
[0075] It should be noted that in this step, the system's AP simulator will read the relevant message data of the capwap protocol from the preset configuration file. These message data form the basis of the protocol sending strategy. Secondly, the system will obtain the test requirement data according to the specifications and test requirements of the AC device to be tested. For example, the number of simulated APs, the configuration information of each AP, etc.
[0076] In addition, it should be noted that the protocol sending strategy refers to the policy information such as the sending order, time interval, and message content of different messages obtained according to the capwap protocol. The test requirement data refers to the pre-set data for the test of the current AC device to be tested, including the number of simulated APs, configuration parameters, test scenarios, etc.
[0077] Step S302: sending the interaction message to the wireless access control device according to the protocol sending strategy, and performing a simulation test of a virtual wireless access point according to the interaction message and the test requirement data.
[0078] It should be noted that in this step, the system will send interactive messages to the AC device in a predetermined order and time interval according to the protocol sending strategy. First, the system will use the unique MAC address and IP address of each simulated AP as an identifier, and send Join Request, Configuration Status Request, and Change State Request messages in sequence to complete the online process of the simulated AP. Secondly, the system constructs and sends a Keep-Alive message based on the configuration information in the test requirement data. The message carries the configuration parameters of the simulated AP. Finally, the system will send an Echo Request message to keep the simulated AP online for a long time.
[0079] In a feasible implementation manner, sending the interaction message to the wireless access control device according to the protocol sending strategy specifically includes:
[0080] Step A10: Obtain a first format sending strategy and a second format sending strategy according to the protocol sending strategy.
[0081] It should be noted that the protocol sending strategy includes different message formats required for communication with the AC device and their sending methods. Specifically, the first format sending strategy refers to sending messages in the hexadecimal byte stream format specified by the capwap protocol. This is mainly applicable to Join Request messages, Configuration Status Request messages, and Change State Request messages. These messages are key steps for the AP to go online and establish a connection with the AC, as well as for status change and configuration synchronization. The second format sending strategy refers to sending configuration reporting messages (i.e., keep-alive messages) in the json format. This message is used to be sent regularly by the AP to the AC after it goes online to maintain the connection status and report the configuration information of the AP. For example, the first format sending strategy specifies the hexadecimal byte stream format of the Join Request message, Configuration Status Request message, and Change State Request message, as well as the order and interval time for sending these messages. The second format sending strategy, on the other hand, specifies the structure of the json format configuration reporting message, including which fields need to be included and how to construct the values of these fields.
[0082] In addition, it should be noted that the hexadecimal byte stream format is a compact and efficient binary data representation method, suitable for data messages transmitted in network communication. The json format is a lightweight data exchange format, which is easy to write and is also easy for machines to parse and generate. Therefore, it is used for the reporting and synchronization of configuration information.
[0083] Step A20: Send the Join Request message, the Configuration Status Request message, and the Change State Request message to the wireless access control device according to the first format sending strategy.
[0084] It should be noted that, as Figure 4 shown, the AP simulator includes an IP generator and a MAC generator. In this step, the system will sequentially send a Join Request message, a Configuration Status Request message, and a Change State Request message to the AC device according to the provisions of the first format sending strategy. These messages are constructed in the form of a hexadecimal byte stream and sent to the specified port (such as port 5246) of the AC device through a socket connection. For example, in an actual situation, the system first sends a Join Request message to request to establish a connection with the AC device. After the AC device receives and processes this message, the connection between the AP and the AC is successfully established. Subsequently, a Configuration Status Request message is sent to request the AC device to send the current configuration status of the AP. Finally, a Change State Request message is sent to request the AC device to change the status of the AP, such as setting the AP to the online state.
[0085] Step A30: Send a configuration reporting message to the radio access control device according to the second format sending policy.
[0086] It should be noted that in this step, the system will regularly send a configuration reporting message (i.e., keep-alive) to the AC device according to the provisions of the second format sending policy. This message is constructed in json format and contains the configuration information of the AP, such as SSID, BSSID, authentication mode, encryption method, etc. By sending this message, the AP can maintain the connection status with the AC device and report its current configuration information.
[0087] In addition, it should be noted that in this embodiment, the configuration reporting message contains various configuration information of the simulated AP, such as device name, device description, number of radio units, vendor ID, direct connection flag, model name, customer name, management MAC address, status, IP address of the AP, subnet mask, location information, hardware version, software version, serial number, vendor information, AP configuration status, AP working mode, AP web page password, AP LED status, MAC address access control flag and number, running time, etc. In addition, the configuration reporting message also includes an array of radio units, which is used to describe in detail the configuration information of each radio unit, such as radio ID, channel, actual channel, physical mode, enabled status, area code, isolation status, VLAN (Virtual LAN) tag, transmit power, maximum transmit power, transmit power change, bandwidth, low RSSI offline enable flag, offline RSSI, BSSID, and configuration information of virtual access points, etc.
[0088] In a feasible implementation manner, after the step A30, it further includes:
[0089] Step A40: Obtain a periodic sending policy and send the heartbeat message to the radio access control device according to the periodic sending policy.
[0090] It should be noted that in this step, the system needs to obtain the periodic sending policy and send heartbeat packets (i.e., Echo Request packets) to the AC device at a fixed period according to this policy. In this embodiment, the periodic sending policy can be a preset sending interval, for example, sending a heartbeat packet every 10 seconds. Specifically, the system will read or receive the preset periodic sending policy, and then start a timer or counter according to this policy. Whenever the timer reaches the preset sending interval, the system generates a heartbeat packet and sends it out through the communication connection established with the AC device. The format of the heartbeat packet can be a preset hexadecimal byte stream, which is used to inform the AC device that the simulator is still online and active. It can be understood that by periodically sending heartbeat packets, the simulator can maintain its communication connection with the AC device and ensure that the online status of the virtual AP on the AC device is updated and maintained in a timely manner.
[0091] In addition, it should be noted that the sending interval in the periodic sending policy can be adjusted according to actual needs. A shorter sending interval can provide a higher online status update frequency, but it will increase the communication overhead; while a longer sending interval can reduce the communication overhead, but it will reduce the real-time performance of the online status update. Therefore, when selecting the sending interval, the system will make a trade-off according to the specific test scenario and requirements.
[0092] Step A50: Maintain the online status of the virtual wireless access point on the wireless access control device according to the heartbeat packet.
[0093] It should be noted that in this step, after the system sends the heartbeat packet to the AC device according to the periodic sending policy, the AC device will maintain the online status of the virtual wireless access point (i.e., the simulated AP) according to the received heartbeat packet. Whenever the AC device receives a valid heartbeat packet, it will update the online status information of the corresponding AP, so as to ensure that the registration and configuration information of the AP on the AC device is retained.
[0094] In a feasible implementation manner, the specific simulation test of the virtual wireless access point according to the interaction packet and the test requirement data specifically includes:
[0095] Step B10: Dynamically modify the configuration parameters in the configuration report packet according to the test requirement data, where the configuration parameters include service set identifier, encryption mode, and authentication key.
[0096] It should be noted that, in order to simulate the behavior of APs under different configurations, the system supports dynamically modifying the configuration parameters in the configuration reporting message according to the test requirement data. These configuration parameters include, but are not limited to, SSID (Service Set Identifier), encryption mode, and authentication key. Specifically, the system reads the predefined test requirement data, which contains the expected configuration parameters under different test scenarios, and then generates an initial configuration reporting message based on the default AP configuration or the initial configuration in the test requirements. According to the test requirement data, the parameters such as SSID, encryption mode, and authentication key in the configuration reporting message are dynamically modified.
[0097] In addition, it should be noted that SSID, i.e., the service set identifier, is an identifier used to distinguish different networks in a wireless local area network. The encryption mode refers to the encryption method adopted during the transmission process, such as AES, WPA2-PSK, WPA3-SAE, etc., which is used to protect the data transmission security of the wireless network. The encryption mode adopted in this embodiment is not limited. The authentication key is the key used to verify the device identity and authenticate the encrypted data transmission. Only the device that provides the correct key can connect successfully.
[0098] Step B20: Simulate the batch online test and batch distribution test of the wireless access point configuration by the wireless access control device according to the modified configuration parameters.
[0099] It should be noted that, in this embodiment, the batch online test refers to simultaneously simulating multiple APs to send online requests to the AC device and confirming whether the AC device can successfully go online with the corresponding number of AP devices. The batch distribution test refers to the AC device sending configuration information to multiple online APs and verifying whether this configuration information can be correctly distributed.
[0100] In a feasible implementation manner, the specific steps of step B20 include:
[0101] Step B201: Obtain the number of target wireless access points to go online according to the configuration parameters, and simulate the online of the corresponding number of virtual wireless access points according to the number of target wireless access points to go online.
[0102] It should be noted that in this step, the system will parse the configuration parameters modified by the requirement data, and extract the number of simulated APs required for the current test, that is, the number of target wireless access points to go online. Subsequently, using the wireless AP simulator, the corresponding number of virtual wireless access points will be generated according to this number, and these virtual wireless access points will be simulated to go through the online process according to the capwap protocol. And finally, the online process will be completed by sending keep-alive to report the configuration parameters. Additionally, it should be noted that the number of virtual wireless access points to go online refers to the number of virtual APs set in the system and planned to go online; while the actual number of virtual wireless access points to go online refers to the number of virtual APs that have successfully completed the online process during the simulation.
[0103] Step B202: After the simulation is completed, record the actual number of virtual wireless access points to go online and the number of virtual wireless access points to which the configuration is sent.
[0104] It should be noted that after the simulation is completed, the system will automatically record the number of virtual wireless access points that have successfully gone online, that is, the actual number of virtual wireless access points to go online. At the same time, the system will also record the number of configuration parameters successfully sent by the wireless access control device (AC) to the virtual wireless access points, that is, the number of virtual wireless access points to which the configuration is sent (in actual tests, since the virtual APs that have gone online need to receive and confirm the configuration sent, the actual number of virtual wireless access points to which the configuration is sent is usually equal to the actual number of virtual wireless access points to go online). Additionally, it should be noted that the number of virtual wireless access points to which the configuration is sent refers to the number of virtual wireless access points to which the AC successfully sends the configuration parameters; while the actual number of virtual wireless access points to which the configuration is sent is the number of virtual APs that have actually received the configuration sent during the test. These two numbers should be equal under ideal circumstances to verify the batch sending ability of the AC.
[0105] Step B203: When the actual number of virtual wireless access points to go online is equal to the number of target wireless access points to go online, it is determined that the batch online test of the wireless access control device passes; when the actual number of virtual wireless access points to which the configuration is sent is equal to the number of target wireless access points to go online, it is determined that the batch sending test of the wireless access control device passes.
[0106] It should be noted that after the simulation test is completed, the system will automatically compare the actual number of virtual wireless access points (APs) that go online with the target number of APs that go online, and the actual number of virtual APs configured and issued with the target number of APs that go online. If both sets of numbers are equal, it indicates that the wireless access control device (AC) has successfully managed the specified number of virtual APs and successfully issued the configuration parameters. Therefore, it is determined that both the batch online test and the batch configuration test have passed. It can be understood that if any one of the two sets of numbers is not equal, it means that the simulation online or configuration test of the wireless access control device has failed, and the device fails to meet its expected performance standards.
[0107] In this embodiment, the system effectively simulates the communication process between the virtual wireless access point (AP) and the wireless access control device (AC) by constructing an AP simulator, and performs corresponding simulation tests according to the test requirement data. This not only reduces the test material cost and time cost, but also improves the accuracy and efficiency of the test.
[0108] This application also provides a wireless access point batch simulation test device. Please refer to Figure 5 , the wireless access point batch simulation test device includes:
[0109] The device simulation module 10 is used to generate the network identifier of the virtual wireless access point according to the preset policy, and the network identifier includes the simulated IP address and the simulated MAC address;
[0110] The communication construction module 20 is used to construct the interaction messages between the virtual wireless access point and the wireless access control device based on the control configuration protocol and the network identifier. The interaction messages include the join request message, the configuration status request message, the status change request message, the configuration report message, and the heartbeat message;
[0111] The simulation test module 30 is used to perform the wireless access point simulation test according to the interaction messages.
[0112] The wireless access point batch simulation test device provided by this application adopts the wireless access point batch simulation test method in the above embodiment, and can solve the technical problem of how to test the performance of the AC device without real hardware. Compared with the prior art, the beneficial effects of the wireless access point batch simulation test device provided by this application are the same as those of the wireless access point batch simulation test method provided by the above embodiment, and other technical features in the wireless access point batch simulation test device are the same as the features disclosed in the above embodiment method, and will not be elaborated here.
[0113] In one embodiment, the device simulation module 10 is further configured to construct an IP generator and a MAC generator according to a preset policy; and allocate an analog IP address and an analog MAC address to each virtual wireless access point according to the IP generator and the MAC generator.
[0114] In one embodiment, the simulation test module 30 is further configured to obtain a protocol sending policy and test requirement data; send the interaction message to the wireless access control device according to the protocol sending policy, and perform a simulation test on the virtual wireless access point according to the interaction message and the test requirement data.
[0115] In one embodiment, the simulation test module 30 is further configured to obtain a first format sending policy and a second format sending policy according to the protocol sending policy; send the join request message, the configuration status request message, and the status change request message to the wireless access control device according to the first format sending policy; and send a configuration report message to the wireless access control device according to the second format sending policy.
[0116] In one embodiment, the simulation test module 30 is further configured to obtain a periodic sending policy, and send the heartbeat message to the wireless access control device according to the periodic sending policy; and maintain the online state of the virtual wireless access point on the wireless access control device according to the heartbeat message.
[0117] In one embodiment, the simulation test module 30 is further configured to dynamically modify configuration parameters in the configuration report message according to the test requirement data, where the configuration parameters include a service set identifier, an encryption mode, and an authentication key; and simulate a batch online test and a batch distribution test of the wireless access point configuration by the wireless access control device according to the modified configuration parameters.
[0118] In one embodiment, the simulation test module 30 is further configured to obtain the number of target wireless access points to be online according to the configuration parameters, and simulate the online of the corresponding number of virtual wireless access points according to the number of target wireless access points to be online; after the simulation is completed, record the actual number of virtual wireless access points online and the number of virtual wireless access points distributed; when the actual number of virtual wireless access points online is equal to the number of target wireless access points to be online, determine that the batch online test of the wireless access control device passes; and when the actual number of virtual wireless access points distributed is equal to the number of target wireless access points to be online, determine that the batch distribution test of the wireless access control device passes.
[0119] The present application provides a wireless access point batch simulation test device. The wireless access point batch simulation test device 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 to enable the at least one processor to execute the wireless access point batch simulation test method in Embodiment 1 above.
[0120] Reference is made below Figure 6 , which shows a schematic structural diagram of a wireless access point batch simulation test device suitable for implementing the embodiments of the present application. The wireless access point batch simulation test device in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions, tablet computers), PMPs (Portable Media Players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The shown wireless access point batch simulation test device is merely an example and should not impose any limitation on the functions and usage scope of the embodiments of the present application.
[0121] As Figure 6As shown, the wireless access point batch simulation test device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which may perform various appropriate actions and processes according to the program stored in the ROM (Read Only Memory) 1002 or the program loaded from the storage device 1003 into the RAM (Random Access Memory) 1004. In the RAM 1004, various programs and data required for the operation of the wireless access point batch simulation test device are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. The input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, an LCD (Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the wireless access point batch simulation test device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows a wireless access point batch simulation test device having various systems, it should be understood that it is not required to implement or have all the shown systems. More or fewer systems may be implemented or had alternatively.
[0122] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from the network through the communication device, or installed from the storage device 1003, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above functions defined in the methods of the embodiments disclosed in the present application are executed.
[0123] The wireless access point batch simulation test device provided by the present application adopts the wireless access point batch simulation test method in the above embodiments, and can solve the technical problem of how to test the performance of the AC device without real hardware. Compared with the prior art, the beneficial effects of the wireless access point batch simulation test device provided by the present application are the same as those of the wireless access point batch simulation test method provided by the above embodiments, and other technical features in the wireless access point batch simulation test device are the same as the features disclosed in the method of the previous embodiment, and will not be elaborated here.
[0124] It should be understood that each part disclosed in this application can be implemented by hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in a suitable manner in any one or more embodiments or examples.
[0125] As mentioned above, the above are only specific embodiments of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application, and all of them should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
[0126] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the wireless access point batch simulation test method in the above embodiments.
[0127] The computer-readable storage medium provided by this application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, RAM (Random Access Memory), ROM (Read Only Memory), EPROM (Erasable Programmable Read Only Memory or flash memory), optical fibers, CD-ROM (CD-Read Only Memory, portable compact disk read-only memory), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or combined with an instruction execution system, device, or device. The program code contained on the computer-readable storage medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0128] The above computer-readable storage medium can be included in the wireless access point batch simulation test device; it can also exist separately without being assembled into the wireless access point batch simulation test device.
[0129] The above computer-readable storage medium carries one or more programs, which, when executed by the wireless access point batch simulation testing device, cause the wireless access point batch simulation testing device to: generate a network identifier for the virtual wireless access point according to a preset policy, where the network identifier includes an analog IP address and an analog MAC address; construct an interaction message between the virtual wireless access point and the wireless access control device based on a control configuration protocol and the network identifier, where the interaction message includes a join request message, a configuration status request message, a status change request message, a configuration report message, and a heartbeat message; and perform wireless access point simulation testing according to the interaction message.
[0130] Computer program code for performing the operations of the present application may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partially on the user's computer, execute as a stand-alone software package, execute partially on the user's computer and partially on a remote computer, or execute entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a LAN (Local Area Network) or a WAN (Wide Area Network), or may be connected to an external computer (e.g., by connecting through the Internet using an Internet service provider).
[0131] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.
[0132] The modules involved in the embodiments of the present application can be implemented in software or in hardware. In some cases, the name of the module does not constitute a limitation on the unit itself.
[0133] The readable storage medium provided by the present application is a computer-readable storage medium. The computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned wireless access point batch simulation test method, which can solve the technical problem of how to test the performance of AC devices without real hardware. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as those of the wireless access point batch simulation test method provided by the above embodiments, and will not be elaborated here.
[0134] The present application also provides a computer program product, including a computer program, and the steps of the above-mentioned wireless access point batch simulation test method are implemented when the computer program is executed by a processor.
[0135] The computer program product provided by the present application can solve the technical problem of how to test the performance of AC devices without real hardware. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as those of the wireless access point batch simulation test method provided by the above embodiments, and will not be elaborated here.
[0136] The above are only some embodiments of the present application, and thus do not limit the patent scope of the present application. Any equivalent structural transformation made under the technical concept of the present application by using the content of the specification and drawings of the present application, or any direct / indirect application in other related technical fields, is included in the patent protection scope of the present application.
Claims
1. A wireless access point batch simulation test method, characterized in that: The method is applied to a wireless access point batch simulation test system, the wireless access point batch simulation test system comprises: a test terminal and a wireless access control device, the test terminal comprises a network card, the network card is used to communicate with the wireless access control device, the method comprises: Generate a network identifier of a virtual wireless access point according to a preset strategy, wherein the network identifier includes a simulated IP address and a simulated MAC address; Constructing an interaction message between the virtual wireless access point and the wireless access control device based on the control configuration protocol and the network identifier, wherein the interaction message includes a join request message, a configuration state request message, a state change request message, a configuration report message, and a heartbeat message; A wireless access point simulation test is performed according to the interaction message.
2. The method according to claim 1, characterized in that The step of generating a network identifier of a virtual wireless access point according to a preset strategy includes: Build IP generator and MAC generator according to preset strategies; A simulated IP address and a simulated MAC address are allocated to each virtual wireless access point according to the IP generator and the MAC generator.
3. The method according to claim 1, characterized in that The step of performing a wireless access point simulation test according to the interaction message comprises: Obtain protocol sending strategy and test requirement data; The interaction message is sent to the wireless access control device according to the protocol sending strategy, and a simulation test of a virtual wireless access point is performed according to the interaction message and the test requirement data.
4. The method according to claim 3, characterized in that The step of sending the interaction message to the wireless access control device according to the protocol sending strategy includes: Obtaining a first format sending strategy and a second format sending strategy according to the protocol sending strategy; sending the join request message, the configuration state request message, and the state change request message to the wireless access control device according to the first format sending strategy; Send a configuration reporting message to the wireless access control device according to the second format sending strategy.
5. The method according to claim 4, characterized in that After the step of sending the configuration report message to the wireless access control device according to the second format sending strategy, the method further includes: Acquire a periodic sending strategy, and send the heartbeat message to the wireless access control device according to the periodic sending strategy; The online state of the virtual wireless access point on the wireless access control device is maintained according to the heartbeat message.
6. The method according to claim 3, characterized in that The step of performing a simulation test of a virtual wireless access point according to the interaction message and the test requirement data comprises: Dynamically modify the configuration parameters in the configuration report message according to the test requirement data, the configuration parameters including the service set identifier, encryption mode and authentication key; The batch online test and batch sending test of the wireless access point configuration performed by the wireless access control device are simulated according to the modified configuration parameters.
7. The method according to claim 6, characterized in that The step of simulating the batch online test and batch sending test of the wireless access point configuration by the wireless access control device according to the modified configuration parameters includes: Obtaining the number of online target wireless access points according to the configuration parameters, and simulating the number of online virtual wireless access points corresponding to the number of online target wireless access points; After the simulation is completed, the actual number of online virtual wireless access points and the number of distributed virtual wireless access points are recorded; When the number of online actual virtual wireless access points is equal to the number of online target wireless access points, determining that a batch online test of the wireless access control device passes; When the number of actually sent virtual wireless access points is equal to the number of online target wireless access points, it is determined that the batch sending test of the wireless access control device passes.
8. A wireless access point batch simulation test device, characterized in that: The device comprises: A device simulation module, used to generate a network identifier of a virtual wireless access point according to a preset strategy, wherein the network identifier includes a simulated IP address and a simulated MAC address; A communication construction module, used to construct an interactive message between the virtual wireless access point and the wireless access control device based on the control configuration protocol and the network identifier, wherein the interactive message includes a join request message, a configuration status request message, a status change request message, a configuration report message, and a heartbeat message; A simulation test module is used to perform a simulation test of a wireless access point according to the interaction message.
9. A wireless access point batch simulation test device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the wireless access point batch simulation test method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the wireless access point batch simulation test method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Method for wirelessly identifying wireless access point based on event log and electronic equipment
CN120529352A