CN110475269B - Multi-AP test method and device - Google Patents

Multi-AP test method and device Download PDF

Info

Publication number
CN110475269B
CN110475269B CN201910650837.3A CN201910650837A CN110475269B CN 110475269 B CN110475269 B CN 110475269B CN 201910650837 A CN201910650837 A CN 201910650837A CN 110475269 B CN110475269 B CN 110475269B
Authority
CN
China
Prior art keywords
script
executed
tested
aps
supported
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910650837.3A
Other languages
Chinese (zh)
Other versions
CN110475269A (en
Inventor
范秋香
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN201910650837.3A priority Critical patent/CN110475269B/en
Publication of CN110475269A publication Critical patent/CN110475269A/en
Application granted granted Critical
Publication of CN110475269B publication Critical patent/CN110475269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a multi-AP test method and a device, wherein the method comprises the following steps: acquiring a script to be executed from a script set; determining at least one AP to be tested corresponding to the script to be executed according to the AP function table of each AP; transmitting an instruction corresponding to the script to be executed to the at least one AP to be tested, so that the at least one AP to be tested executes the instruction and returns an execution result; and receiving an execution result returned by the at least one AP to be tested. According to the scheme, each AP in the multi-AP scene can be automatically tested, manual participation in script selection is not needed, so that human resources can be greatly saved, and the testing efficiency is greatly improved.

Description

Multi-AP test method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for testing multiple Access Points (APs).
Background
With the rapid development of wireless communication technology, the application range of a wireless network is larger and larger, and an AP in the wireless network is a wireless switch in the wireless network, which is an access point for a mobile terminal to enter a wired network, and a plurality of APs are usually required to be set in places with large traffic such as airports, markets, hospitals and the like, so that a multi-AP scene is formed. In the multi-AP scenario, after the multi-AP is deployed or updated, the multi-AP needs to be tested.
At present, manual mode is usually adopted to select scripts to test each AP in the multi-AP scene, which greatly wastes human resources and greatly reduces testing efficiency.
Disclosure of Invention
The embodiment of the invention provides a multi-AP testing method and device, which are used for solving the problems of great waste of human resources and great reduction of testing efficiency in the prior art.
According to an embodiment of the present invention, there is provided a multi-AP testing method applied to a testing terminal, where the testing terminal establishes communication connection with each AP, and the method is characterized in that the method includes:
acquiring a script to be executed from a script set;
determining at least one AP to be tested corresponding to the script to be executed according to the AP function table of each AP;
transmitting an instruction corresponding to the script to be executed to the at least one AP to be tested, so that the at least one AP to be tested executes the instruction and returns an execution result;
and receiving an execution result returned by the at least one AP to be tested.
Specifically, acquiring a script to be executed from a script set specifically includes:
determining whether unexecuted scripts exist in the script set;
if the fact that the script set contains unexecuted scripts is determined, selecting one script from the unexecuted scripts as a script to be executed.
Optionally, the method further comprises:
and if the fact that the unexecuted script does not exist in the script set is determined, generating a test report corresponding to each AP according to the received execution result.
Specifically, determining at least one AP to be tested corresponding to the script to be executed according to the AP function table of each AP specifically includes:
determining the function names supported by the script to be executed;
searching an AP identifier corresponding to a function name supported by the script to be executed from the AP function table;
and determining at least one AP corresponding to the searched at least one AP identifier as the AP to be tested.
Optionally, the method further comprises:
the AP identifications and the supported function names of the APs are respectively obtained, and the AP identifications and the supported function names of the APs are added into the AP function table; or alternatively, the process may be performed,
and acquiring the AP identifications and the supported function names of the APs through a wireless controller AC connected with the APs, and adding the AP identifications and the supported function names of the APs into the AP function table.
According to an embodiment of the present invention, there is further provided a multi-AP testing device, which is applied to a testing terminal, where the testing terminal establishes communication connection with each AP, and the device includes:
the acquisition module is used for acquiring a script to be executed from the script set;
the determining module is used for determining at least one AP to be tested corresponding to the script to be executed according to the AP function table of each AP;
the sending module is used for sending an instruction corresponding to the script to be executed to the at least one AP to be tested so that the at least one AP to be tested executes the instruction and returns an execution result;
and the receiving module is used for receiving the execution result returned by the at least one AP to be tested.
Specifically, the acquiring module is configured to acquire a script to be executed from a script set, and specifically is configured to:
determining whether unexecuted scripts exist in the script set;
if the fact that the script set contains unexecuted scripts is determined, selecting one script from the unexecuted scripts as a script to be executed.
Optionally, the method further comprises a generating module for:
and if the fact that the unexecuted script does not exist in the script set is determined, generating a test report corresponding to each AP according to the received execution result.
Specifically, the determining module is configured to determine, according to the AP function table of each AP, at least one AP to be tested corresponding to the script to be executed, and specifically is configured to:
determining the function names supported by the script to be executed;
searching an AP identifier corresponding to a function name supported by the script to be executed from the AP function table;
and determining at least one AP corresponding to the searched at least one AP identifier as the AP to be tested.
Optionally, the acquiring module is further configured to:
the AP identifications and the supported function names of the APs are respectively obtained, and the AP identifications and the supported function names of the APs are added into the AP function table; or alternatively, the process may be performed,
and acquiring the AP identifications and the supported function names of the APs through a wireless controller AC connected with the APs, and adding the AP identifications and the supported function names of the APs into the AP function table.
The invention has the following beneficial effects:
the embodiment of the invention provides a multi-AP test method and a multi-AP test device, which are characterized in that scripts to be executed are obtained from a script set; determining at least one AP to be tested corresponding to the script to be executed according to the AP function table of each AP; transmitting an instruction corresponding to the script to be executed to the at least one AP to be tested, so that the at least one AP to be tested executes the instruction and returns an execution result; and receiving an execution result returned by the at least one AP to be tested. According to the scheme, each AP in the multi-AP scene can be automatically tested, manual participation in script selection is not needed, so that human resources can be greatly saved, and the testing efficiency is greatly improved.
Drawings
Fig. 1 is a flowchart of a multi-AP testing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of S12 in an embodiment of the invention;
fig. 3 is a schematic structural diagram of a multi-AP testing device according to an embodiment of the present invention.
Detailed Description
Aiming at the problems of great waste of human resources and great reduction of test efficiency in the prior art, the embodiment of the invention provides a multi-AP test method, which is applied to a test terminal, wherein the test terminal establishes communication connection with each AP in a multi-AP scene, a technician can acquire login modes of each AP in advance, then the login modes of the APs are stored in a device list, and communication connection is established with corresponding APs based on the login modes of the APs, wherein the login modes can be, but are not limited to, telnet or Secure Shell (SSH). The current networking modes of the wireless network mainly comprise two modes: a thin AP architecture comprising an AP and a wireless controller (Access Controller, AC), all APs being uniformly controlled by the AC; another is a fat AP architecture, comprising only APs. The device list is constructed in the same manner in the two ways, and the device list in the first case is described below as an example, and table 1 is as follows:
Figure BDA0002135142260000041
Figure BDA0002135142260000051
TABLE 1
The flow of the multi-AP test method is shown in FIG. 1, and the execution steps are as follows:
s11: and acquiring the script to be executed from the script set.
In a multi-AP scenario, multiple scripts may need to be executed to perform the test, where the scripts may form a script set, and when the test is required, the scripts may be obtained from the script set, and the obtained scripts may be defined as the scripts to be executed.
S12: and determining at least one AP to be tested corresponding to the script to be executed according to the AP function table of each AP.
An AP function table may be established in advance based on each AP, and the AP identifier and the supported function name of each AP are stored, and since each AP is not required to execute each script, when testing for multiple APs is required, at least one AP corresponding to the script to be executed may be determined according to the AP function table, and the determined AP may be defined as at least one AP to be tested.
S13: and sending the instruction corresponding to the script to be executed to at least one AP to be tested, so that the at least one AP to be tested executes the instruction and returns an execution result.
The instructions corresponding to the script to be executed may be sent to at least one AP to be tested at the same time, or may be sent to at least one AP to be tested one by one, where the instructions corresponding to the script to be executed may include a plurality of instructions. In two networking modes of the wireless network, if the wireless network is a thin AP architecture, an instruction corresponding to the execution script can be sent to the AC, and then the AC forwards the instruction to the AP to be tested; if the AP architecture is fat, the instruction can be directly sent to the AP to be tested. At least one AP to be tested that receives these instructions may execute the received instructions and then return the execution results.
S14: and receiving an execution result returned by at least one AP to be tested.
S11-S14 may be performed for each script in the set of scripts until all scripts have been executed, so that the test may be ended.
According to the scheme, each AP in the multi-AP scene can be automatically tested, manual participation in script selection is not needed, so that human resources can be greatly saved, and the testing efficiency is greatly improved.
Specifically, in S11, the obtaining a script to be executed from the script set includes:
determining whether unexecuted scripts exist in the script set;
if the fact that the script set contains unexecuted scripts is determined, selecting one script from the unexecuted scripts as a script to be executed.
The scripts in the script set may have been executed, and some are not executed, and each time the script to be executed is obtained from the script set, one script needs to be selected from the unexecuted scripts to be used as the script to be executed. In order to facilitate distinguishing whether the script is executed, an execution identifier may be added to the executed script in the script set, and each time the script to be executed is obtained from the script set, the script that does not carry the execution identifier may be obtained as the script to be executed. Sometimes, there may be multiple scripts without carrying an execution identifier, and at this time, one script may be selected randomly as a script to be executed, or one script may be selected sequentially as a script to be executed.
In an alternative implementation manner, if it is determined that no unexecuted script exists in the script set, a test report corresponding to each AP is generated according to the received execution result. At this time, it is explained that all scripts in the script set have been executed, a test report may be generated according to the received execution result, and for convenience of reading, the execution results of the same AP may be put together, so that a technician may perform subsequent tasks such as test analysis.
Specifically, in S12, at least one AP to be tested corresponding to the script to be executed is determined according to the AP function table of each AP, as shown in fig. 2, and the implementation process specifically includes:
s121: and determining the names of the functions supported by the script to be executed.
The script to be executed may support only a few functions, and the names of the functions supported by the script to be executed may be described in the script to be executed, and when determining at least one AP to be tested corresponding to the script to be executed, the names of the functions supported by the script to be executed may be determined first.
S122: and searching an AP identification corresponding to the function name supported by the script to be executed from the AP function table.
Because the function names supported by the APs are recorded in the AP function table, the AP identity identical to the function name supported by the script to be executed can be searched based on the AP function table.
S123: and determining at least one AP corresponding to the searched at least one AP identifier as the AP to be tested.
There may be one or more AP identities found through S123, and the AP corresponding to these AP identities may be defined as the AP to be tested.
An alternative embodiment describes a process of establishing an AP function table, and a process of establishing an AP function table is described below by taking two kinds of networking of a wireless network as examples.
First, in fat AP architecture:
and respectively acquiring the AP identifications and the supported function names of the APs, and adding the AP identifications and the supported function names of the APs into an AP function table.
Second, in the thin AP architecture:
and the AC connected with each AP acquires the AP identification and the supported function name of each AP, and adds the AP identification and the supported function name of each AP into an AP function table.
In the thin AP architecture, each AP is managed by the AC, so each AP may report the supported function names to the AC, and the test terminal may directly obtain the AP identifier and the supported function name of each AP from the AC and add the AP identifier and the supported function name to the AP function table. It should be noted that each AP may be connected to one AC, or may be connected to a plurality of ACs.
In the two ways above, each AP may store the supported function names in the form of a table, and an exemplary table is shown in table 2 below, where a function value of 1 indicates that the function is supported, and a function value of 0 indicates that the function is not supported.
Function name avn Function value avr
func1_support 1
func2_support 1
func3_support 0
func4_support 0
TABLE 2
The AP function table may store function names supported by each AP, where the AP identifier may include, but is not limited to, two parts including a PID and a model, and may be set according to actual needs, and table 3 is an exemplary AP function table, which is described below by taking two parts including a PID and a model as an example.
Figure BDA0002135142260000081
TABLE 3 Table 3
Based on the same inventive concept, an embodiment of the present invention provides a multi-AP testing device, which is applied to a testing terminal, wherein the testing terminal establishes communication connection with each AP in a multi-AP scenario, and the device has a structure as shown in fig. 3, and includes:
an obtaining module 31, configured to obtain a script to be executed from a script set;
a determining module 32, configured to determine at least one AP to be tested corresponding to the script to be executed according to the AP function table of each AP;
the sending module 33 is configured to send an instruction corresponding to the script to be executed to at least one AP to be tested, so that the at least one AP to be tested executes the instruction and returns an execution result;
and the receiving module 34 is configured to receive an execution result returned by the at least one AP to be tested.
According to the scheme, each AP in the multi-AP scene can be automatically tested, manual participation in script selection is not needed, so that human resources can be greatly saved, and the testing efficiency is greatly improved.
Specifically, the obtaining module 31 is configured to obtain a script to be executed from the script set, and specifically is configured to:
determining whether unexecuted scripts exist in the script set;
if the fact that the script set contains unexecuted scripts is determined, selecting one script from the unexecuted scripts as a script to be executed.
Optionally, the method further comprises a generating module for:
if the fact that the unexecuted script does not exist in the script set is determined, generating a test report corresponding to each AP according to the received execution result.
Specifically, the determining module 33 is configured to determine, according to the AP function table of each AP, at least one AP to be tested corresponding to the script to be executed, and specifically is configured to:
determining function names supported by the script to be executed;
searching an AP identifier corresponding to a function name supported by a script to be executed from an AP function table;
and determining at least one AP corresponding to the searched at least one AP identifier as the AP to be tested.
Optionally, the obtaining module 31 is further configured to:
the method comprises the steps of respectively obtaining an AP identifier and a supported function name of each AP, and adding the AP identifier and the supported function name of each AP into an AP function table; or alternatively, the process may be performed,
and acquiring the AP identifications and the supported function names of the APs through a wireless controller AC connected with the APs, and adding the AP identifications and the supported function names of the APs into an AP function table.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While alternative embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims and the equivalents thereof, the present invention is also intended to include such modifications and variations.

Claims (8)

1. The method for testing the multiple wireless Access Points (APs) is applied to a test terminal, and the test terminal establishes communication connection with each AP, and is characterized by comprising the following steps:
acquiring a script to be executed from a script set;
determining at least one AP to be tested corresponding to the script to be executed according to the AP function table of each AP;
transmitting an instruction corresponding to the script to be executed to the at least one AP to be tested, so that the at least one AP to be tested executes the instruction and returns an execution result;
receiving an execution result returned by the at least one AP to be tested;
the method for acquiring the script to be executed from the script set specifically comprises the following steps:
determining whether unexecuted scripts exist in the script set;
if the fact that the script set contains unexecuted scripts is determined, selecting one script from the unexecuted scripts as a script to be executed.
2. The method as recited in claim 1, further comprising:
and if the fact that the unexecuted script does not exist in the script set is determined, generating a test report corresponding to each AP according to the received execution result.
3. The method of claim 1, wherein determining at least one AP to be tested corresponding to the script to be executed according to the AP function table of each AP, specifically comprises:
determining the function names supported by the script to be executed;
searching an AP identifier corresponding to a function name supported by the script to be executed from the AP function table;
and determining at least one AP corresponding to the searched at least one AP identifier as the AP to be tested.
4. A method according to any one of claims 1-3, further comprising:
the AP identifications and the supported function names of the APs are respectively obtained, and the AP identifications and the supported function names of the APs are added into the AP function table; or alternatively, the process may be performed,
and acquiring the AP identifications and the supported function names of the APs through a wireless controller AC connected with the APs, and adding the AP identifications and the supported function names of the APs into the AP function table.
5. A multi-AP testing apparatus, applied in a testing terminal, the testing terminal establishing communication connection with each AP, the apparatus comprising:
the acquisition module is used for acquiring a script to be executed from the script set;
the determining module is used for determining at least one AP to be tested corresponding to the script to be executed according to the AP function table of each AP;
the sending module is used for sending an instruction corresponding to the script to be executed to the at least one AP to be tested so that the at least one AP to be tested executes the instruction and returns an execution result;
the receiving module is used for receiving an execution result returned by the at least one AP to be tested;
the acquiring module is configured to acquire a script to be executed from a script set, and is specifically configured to:
determining whether unexecuted scripts exist in the script set;
if the fact that the script set contains unexecuted scripts is determined, selecting one script from the unexecuted scripts as a script to be executed.
6. The apparatus of claim 5, further comprising a generation module to:
and if the fact that the unexecuted script does not exist in the script set is determined, generating a test report corresponding to each AP according to the received execution result.
7. The apparatus of claim 5, wherein the determining module is configured to determine at least one AP to be tested corresponding to the script to be executed according to an AP function table of each AP, specifically configured to:
determining the function names supported by the script to be executed;
searching an AP identifier corresponding to a function name supported by the script to be executed from the AP function table;
and determining at least one AP corresponding to the searched at least one AP identifier as the AP to be tested.
8. The apparatus of any of claims 5-7, wherein the acquisition module is further configured to:
the AP identifications and the supported function names of the APs are respectively obtained, and the AP identifications and the supported function names of the APs are added into the AP function table; or alternatively, the process may be performed,
and acquiring the AP identifications and the supported function names of the APs through a wireless controller AC connected with the APs, and adding the AP identifications and the supported function names of the APs into the AP function table.
CN201910650837.3A 2019-07-18 2019-07-18 Multi-AP test method and device Active CN110475269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910650837.3A CN110475269B (en) 2019-07-18 2019-07-18 Multi-AP test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910650837.3A CN110475269B (en) 2019-07-18 2019-07-18 Multi-AP test method and device

Publications (2)

Publication Number Publication Date
CN110475269A CN110475269A (en) 2019-11-19
CN110475269B true CN110475269B (en) 2023-04-25

Family

ID=68508214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910650837.3A Active CN110475269B (en) 2019-07-18 2019-07-18 Multi-AP test method and device

Country Status (1)

Country Link
CN (1) CN110475269B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686813A (en) * 2013-12-20 2014-03-26 上海斐讯数据通信技术有限公司 Device and method for testing automatic switching stability of wireless AP (access point) channels
CN104486791A (en) * 2014-12-19 2015-04-01 上海斐讯数据通信技术有限公司 Wireless access equipment anti-interference test system and method
CN104717103A (en) * 2013-12-13 2015-06-17 中国移动通信集团公司 Method and device for testing network device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2902439C (en) * 2013-03-15 2022-04-05 Vivint, Inc Bandwidth estimation based on location in a wireless network
US20180338187A1 (en) * 2017-05-19 2018-11-22 7Signal Solutions, Inc. Advanced wi-fi performance monitoring

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717103A (en) * 2013-12-13 2015-06-17 中国移动通信集团公司 Method and device for testing network device
CN103686813A (en) * 2013-12-20 2014-03-26 上海斐讯数据通信技术有限公司 Device and method for testing automatic switching stability of wireless AP (access point) channels
CN104486791A (en) * 2014-12-19 2015-04-01 上海斐讯数据通信技术有限公司 Wireless access equipment anti-interference test system and method

Also Published As

Publication number Publication date
CN110475269A (en) 2019-11-19

Similar Documents

Publication Publication Date Title
CN111885144B (en) Equipment binding method and device
CN111865736B (en) Equipment control method and device
CN105357475A (en) Video playing method and device
CN112737816B (en) Equipment binding method and device
CN111641996B (en) Equipment network access method and device based on Bluetooth Mesh network, and storage medium
EP4142238A1 (en) Pico base station configuration method and apparatus, and storage medium and electronic apparatus
CN113038499B (en) Terminal Wi-Fi compatibility testing method, device, system, equipment and medium
CN112105025B (en) eSIM-based operator network test system and method
CN112333284B (en) 5G intelligent gateway-based data transmission method, system and storage medium
CN111832273A (en) Method and device for determining destination message, storage medium and electronic device
CN111818611B (en) Equipment binding method and device
CN110475269B (en) Multi-AP test method and device
CN112637221A (en) Equipment control method and device
CN111147585B (en) Equipment upgrading method, device, storage medium and system
CN110990381B (en) Processing method and device of server, storage medium and electronic device
CN111698281A (en) Resource downloading method and device, electronic equipment and storage medium
CN115460102A (en) Packet grabbing system, packet grabbing method and packet grabbing device
CN112910572B (en) Base station test method, device and readable storage medium
CN112420019B (en) Equipment testing method and device
CN102857939A (en) Configuration method and device of cell parameters
CN107547723B (en) Method and device for receiving information by application
CN112770360A (en) Wireless parameter optimization method, device and system
CN111294314A (en) Message processing method, device and system
CN111294414A (en) Message processing method, device and system
CN109729530B (en) Cell establishing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant