Disclosure of Invention
The invention discloses a multi-protocol control method and an AP device for multi-protocol control, aiming at the defects of poor interoperability and difficult compatibility of a single wireless management protocol in the prior art, namely, two sets of relatively independent wireless management protocols are configured in AP equipment to carry out multi-protocol configuration and read-write operation on a common management object. Meanwhile, the conflict of the management objects can be limited in configuration, so that the wireless function of controlling the AP by coordinating different management protocols is achieved.
The invention provides a multi-protocol control method, which is used for a wireless network comprising an AC and one or more APs and comprises the following steps:
s1, powering on and starting the AP, initializing a first protocol module and a second protocol module, and registering the AP on the AC;
s2, the AP divides the management objects and generates a first management subset and a second management subset;
s3, the first protocol module manages the first management subset and manages the serial number; the second protocol module manages the second management subset and manages the serial number;
s4, the first protocol module and the second protocol module report corresponding management subsets to the AC;
s5, the AC issues a configuration instruction to configure the management object;
s6, the AC sends a query instruction to the AP, and the AP judges the protocol type to which the query instruction belongs;
and S7, the AP matches the management object under the management subset according to the protocol and executes the query instruction.
According to a preferred embodiment of the invention: the management object is an SSID of a wireless signal of the AP.
According to a preferred embodiment of the invention: the step of configuring the management object in any subset by the AC in S5 includes:
s501, after the AC determines the protocol, a configuration instruction is issued, wherein the configuration instruction comprises one or more of management object and name configuration, broadband limitation, VLAN number and authentication model;
s502, the corresponding protocol module receives and analyzes the configuration instruction, and issues the configuration instruction to a service configuration module;
s503, the service configuration module receives the configuration instruction and confirms whether the management object pointed by the configuration instruction is matched with the protocol module;
s504, if not, the service configuration module feeds back the mismatching result to the AC step by step;
s505, if yes, enabling the wireless driving module and issuing the configuration instruction, and turning to S506;
s506, the wireless driving module executes the configuration instruction and feeds back the operation result to the AC step by step.
According to a preferred embodiment of the invention: the operation step of the AC query instruction in S7 includes:
s701, after the protocol is determined by the AC, issuing a query instruction, wherein the query instruction comprises one or more of a management object, broadband limitation, VLAN number and an authentication model;
s702, the corresponding protocol module receives and analyzes the query instruction, and issues the query instruction to a service configuration module;
s703, the service configuration module receives the query instruction and confirms whether the management object pointed by the query instruction is matched with the protocol module;
s704, if not, the service configuration module feeds the mismatching result back to the AC step by step;
s705, if yes, enabling the wireless driving module and issuing the query instruction, and turning S706;
and S706, the wireless driving module executes the query instruction and feeds back the query result to the AC step by step.
According to a preferred embodiment of the invention: further comprising non-partitionable management objects including one or more of firmware upgrades, wireless channels, wireless transmit power, fragmentation thresholds, and preambles;
the AC is unable to execute configuration instructions on the non-partitionable management objects;
the AC has the right to execute a query instruction on the non-partitionable management object.
According to a preferred embodiment of the invention: and when the AC issues a configuration instruction and the service configuration module confirms that the management object can not be divided, the configuration failure is fed back to the AC.
The invention also provides an AP device for multi-protocol control; the wireless network comprises an AC, one or more APs, a first protocol module and a second protocol module; wherein:
the AP is used for initializing the first protocol module and the second protocol module; dividing the management object to generate a first management subset and a second management subset;
the AC is used for issuing a configuration instruction and a query instruction to perform configuration and query operations;
the first protocol module is used for managing the first management subset and managing the serial number; reporting the corresponding management subset to the AC;
the second protocol module is used for managing the second management subset and managing the serial number; and reporting the corresponding management subset to the AC.
According to a preferred embodiment of the invention: the management object is an SSID of a wireless signal of the AP.
According to a preferred embodiment of the invention: the system also comprises a service configuration module and a wireless drive module; wherein:
the any protocol module is used for receiving and analyzing the command of the AC and sending the command to the service configuration module; feeding back operation results to the AC;
the service configuration module is used for confirming whether the management object pointed by the query instruction is matched with the protocol module, if so, enabling the wireless drive module and issuing the instruction; feeding back an operation result to any protocol module;
the wireless driving module is used for executing the instruction; and feeding back the operation result to the service configuration module according to the query result.
According to a preferred embodiment of the invention: the instructions comprise configuration instructions and query instructions;
the configuration instruction comprises one or more of management object and name configuration, broadband limitation, VLAN number and authentication model;
the query instruction comprises one or more of a management object, broadband limitation, VLAN number and authentication model;
and the AC issues the instruction after determining the protocol.
According to a preferred embodiment of the invention: the AP further comprises an indivisible management object comprising one or more of a firmware upgrade, a wireless channel, a wireless transmit power, a fragmentation threshold, and a preamble;
the AC is unable to execute configuration instructions on the non-partitionable management objects;
the AC has the right to execute a query instruction on the non-partitionable management object.
According to a preferred embodiment of the invention: and when the AC issues a configuration instruction and the service configuration module confirms that the management object can not be divided, feeding back configuration failure to the AC.
Through the solution, the invention can configure two sets of relatively independent wireless management protocols in the AP equipment, and carry out multi-protocol configuration and read-write operation on a common management object. Meanwhile, the conflict management objects can be limited in configuration, so that the wireless function of controlling the AP by coordinating different management protocols is achieved, and the interoperability and compatibility among the protocols are improved.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, and the scope of the present invention will be more clearly and clearly defined. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, for simplicity and understanding, some components with the same structure or function are shown in some figures, only a part of the structure is schematically shown, or only one of the components is marked. In this document, "one" means not only "only one" but also a case of "more than one".
The invention discloses a multi-protocol control method aiming at the defects of poor interoperability and difficult compatibility of a single wireless management protocol in the prior art, namely, two sets of relatively independent wireless management protocols are configured in AP equipment to carry out multi-protocol configuration and read-write operation on a common management object. Meanwhile, the conflict of the management objects can be limited in configuration, so that the wireless function of controlling the AP by coordinating different management protocols is achieved.
A multi-protocol control method, comprising an AC, one or more APs, as shown in fig. 1, the steps are as follows:
s1, powering on and starting the AP, initializing a first protocol module and a second protocol module, and registering the AP on the AC;
s2, the AP divides the management objects and generates a first management subset and a second management subset;
s3, the first protocol module manages the first management subset and manages the serial number; the second protocol module manages the second management subset and manages the serial number;
s4, the first protocol module and the second protocol module report corresponding management subsets to the AC;
s5, the AC issues a configuration instruction to configure the management object;
s6, the AC sends a query instruction to the AP, and the AP judges the protocol type to which the query instruction belongs;
and S7, the AP matches the management object under the management subset according to the protocol and executes the query instruction.
Further, the management object is an SSID of a wireless signal of the AP.
Taking the CAPWAP protocol and the HTTP/HTTPS protocol as examples, S1-S4 specifically comprises the following steps:
(1) the AP is electrified and normally started, a CAPWAP protocol module is initialized, and a standard protocol is adopted to actively discover and register the AC;
(2) the AP is electrified and normally started, the HTTP/HTTPS protocol module is initialized, and the frequent link is actively initiated to the AC through the HTTP/HTTPS protocol and is registered;
(3) the AP divides 16 wireless SSIDs into two subsets, SSID 1-SSID 8 are the first subset of CAPWAP protocol, SSID 9-SSID 16 are the first subset of HTTP/HTTPS protocol, the latter is renumbered as SSID 1-SSID 8 from HTTP/HTTPS protocol management angle, and the corresponding AP internal numbers are SSID 9-SSID 16;
(4) the CAPWAP protocol module and the HTTP/HTTPS protocol module respectively report the first subset and the second subset to the AC.
Further, as shown in fig. 2, the step of configuring the management object in any subset of the AC in S5 includes:
s501, after the AC determines the protocol, a configuration instruction is issued, wherein the configuration instruction comprises one or more of a management object, name configuration, broadband limitation, WLAN number and an authentication model;
s502, the corresponding protocol module receives and analyzes the configuration instruction, and issues the configuration instruction to a service configuration module;
s503, the service configuration module receives the configuration instruction and confirms whether the management object pointed by the configuration instruction is matched with the protocol module;
s504, if not, the service configuration module feeds back the mismatching result to the AC step by step;
s505, if yes, enabling the wireless driving module and issuing the configuration instruction, and turning to S506;
s506, the wireless driving module executes the configuration instruction and feeds back the operation result to the AC step by step.
Taking the example of name configuration of the SSID under the CAPWAP protocol, the method specifically includes the following steps:
(1) the AC of the CAPWAP protocol issues a configuration instruction, wherein the configuration instruction comprises a management object SSID1 and a name configuration 'abc';
(2) after receiving the configuration instruction of the AC, the CAPWAP protocol module of the AP analyzes the message, converts the SSID1 issued by the AC into an internal coding SSID1, and issues the instruction that the name of the SSID1 is configured into 'abc' to the service configuration module;
(3) after receiving the SSID1 name configuration instruction, the service configuration module confirms that the name is the first subset managed by CAPWAP, and then transmits an instruction that the name of the SID1 is configured as 'abc' to the wireless drive module;
(4) the wireless driving module receives the name configuration instruction, writes the name 'abc' into a register of the SSID1 of the wireless chip, completes the configuration of the SSID1 and feeds back the operation result to the service configuration module;
(5) the service configuration module receives the operation result and feeds the operation result back to the CAPWAP protocol module;
(6) and the CAPWAP protocol module receives the operation result of the service configuration module and feeds back the configuration operation result to the AC.
The method for configuring the SSID under the HTTP/HTTPS protocol is the same as the above. The difference is that the HTTP/HTTPs protocol renumbers the management objects from the management perspective, and SSIDs 1 to SSID8 under the HTTP/HTTPs protocol correspond to the AP internal numbers SSID9 to SSID 16. Therefore, after receiving the configuration command of the AC, the HTTP/HTTPs protocol module parses the message, and converts the SSID1 sent by the AC into the internal encoding SSID9, where the configuration command is the configuration of the SSID 9.
Further, as shown in fig. 3, the operation step of the AC query instruction in S7 includes:
s701, after the AC determines the protocol, issuing a query instruction, wherein the query instruction comprises one or more of a management object, broadband limitation, a WLAN number and an authentication model;
s702, the corresponding protocol module receives and analyzes the query instruction, and issues the query instruction to a service configuration module;
s703, the service configuration module receives the query instruction and confirms whether the management object pointed by the query instruction is matched with the protocol module;
s704, if not, the service configuration module feeds the mismatching result back to the AC step by step;
s705, if yes, enabling the wireless driving module and issuing the query instruction, and turning S706;
and S706, the wireless driving module executes the query instruction and feeds back the query result to the AC step by step.
Taking the VLAN number of the SSID1 under the inquiry CAPWAP protocol as an example, the method specifically includes the following steps:
(1) an AC of the CAPWAP protocol issues an inquiry instruction, wherein the inquiry instruction comprises a management object SSID1 and a VLAN number reading command;
(2) after receiving the command of the AC, the CAPWAP protocol module of the AP analyzes the message, converts the SSID1 issued by the AC into an internal coding SSID1, and issues a command of reading the VLAN value of the SSID1 to the service configuration module;
(3) after receiving the instruction of reading the SSID1VLAN value, the service configuration module confirms that the VLAN value is a CAPWAP management subset, and then sends the reading instruction to the wireless driving module;
(4) the wireless drive module receives the instruction of reading the SSID1VLAN value, reads a corresponding VLAN register of the wireless chip SSID1, completes the reading operation of the VLAN of the SSID1 and returns the query result to the service configuration module;
(5) the service configuration module receives the query result and feeds the query result back to the CAPWAP protocol module;
(6) the CAPWAP protocol module receives the query result of the service configuration module and feeds back the query result to the AC.
The method for inquiring the SSID under the HTTP/HTTPS protocol is the same as the above. The difference is that the HTTP/HTTPs protocol renumbers the management objects from the management perspective, and SSIDs 1 to SSID8 under the HTTP/HTTPs protocol correspond to the AP internal numbers SSID9 to SSID 16. Therefore, after receiving the query instruction of the AC, the HTTP/HTTPs protocol module parses the message, and converts the SSID1 sent by the AC into the internal coded SSID9, where the query instruction is a query to the SSID 9.
Further, the system also comprises an un-partitionable management object, which comprises one or more of firmware upgrade, wireless channel, wireless transmission power, fragmentation threshold and preamble;
the AC is unable to execute configuration instructions on the non-partitionable management objects;
the AC has the right to execute a query instruction on the non-partitionable management object.
In step S1, the AP-divided management object is an SSID and is a divisible independent management object, and the APWAP protocol and the HTTP/HTTPs protocol manage respectively 8 SSIDs independent of each other without conflict. The speed limit based on SSID, VLAN and authentication mode can be configured independently. However, the setting of parameters such as firmware upgrade, wireless channel, wireless transmission power, fragmentation threshold and preamble directly affects the use of the AP, so that higher management authority is required for setting such parameters, but the reading operation can still be performed.
The invention also provides an AP device for multi-protocol control, which is used for a wireless network comprising an AC00 and one or more APs 01, and comprises a first protocol module 010 and a second protocol module 011; wherein:
the AP01 is configured to initialize the first protocol module 010 and the second protocol module 011; dividing the management object to generate a first management subset and a second management subset;
the AC00 is used for issuing a configuration instruction and a query instruction to perform configuration and query operations;
the first protocol module 010 is configured to manage the first management subset and perform management numbering; reporting the corresponding management subset to the AC 00;
the second protocol module 011 is used for managing the second management subset and managing serial numbers; and reporting the corresponding management subset to the AC 00.
Further, the management object is an SSID of a wireless signal of the AP 01.
Further, as shown in fig. 4, the system further includes a service configuration module 012 and a wireless driver module 013; wherein:
the any protocol module is configured to receive and analyze the instruction of the AC00, and issue the instruction to the service configuration module 012; feeding back operation results to the AC 00;
the service configuration module 012 is configured to confirm whether the management object pointed by the query instruction matches the protocol module, and if so, enable the wireless driver module 013 and issue the instruction; feeding back an operation result to any protocol module;
the wireless driving module 013 is configured to execute the instruction; and feeds back the operation result to the service configuration module 012 according to the inquiry result.
Further, the instructions comprise configuration instructions and query instructions;
the configuration instructions comprise one or more of management objects, name configuration, broadband restrictions, VLAN numbers, authentication models;
the query instruction comprises one or more of a management object, a broadband restriction, a VLAN number, and an authentication model;
the AC00 issues the instruction after determining the protocol.
Further, the AP01 also includes non-partitionable management objects including one or more of firmware upgrades, wireless channels, wireless transmit power, fragmentation thresholds, and preambles;
the AC00 is unable to execute configuration instructions on the non-partitionable management objects;
the AC00 has the right to execute query instructions on the non-partitionable management objects.
Further, when the AC00 issues a configuration command, and the service configuration module 012 confirms that the management object is an indivisible management object, it feeds back the configuration failure to the AC 00.
Through the solution, the invention can configure two sets of relatively independent wireless management protocols in the AP equipment, and carry out multi-protocol configuration and read-write operation on a common management object. Meanwhile, the conflict management objects can be limited in configuration, so that the wireless function of controlling the AP by coordinating different management protocols is achieved, and the interoperability and compatibility among the protocols are improved.
The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that are not thought of through the inventive work should be included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope defined by the claims.