Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to provide an AP rapid declaration registration method and an AC controller, so as to realize automatic declaration registration of an AP on the AC controller and improve the work efficiency of opening an office.
In order to achieve the purpose, the technical scheme provided by the invention is as follows:
an AP rapid declaration registration method comprises the following steps:
the method comprises the following steps that firstly, an AC controller receives a registration request of an AP and acquires a registration message of the AP;
step two, judging whether the AP exists according to the AP registration message;
and step three, performing corresponding declaration and registration processing on the AP according to the judgment result.
Further, the third step comprises:
if the judgment result is that the AP already exists, the AP configuration existing in the AC controller is synchronized to the AP;
and if the judgment result is that the AP does not exist, adding the AP into a pre-established default network and a pre-established default group.
Further, if the judgment result shows that the AP does not exist, whether the AC controller starts automatic declaration registration or not is further judged, if the automatic declaration registration is started, the AP is added into a pre-established default network and a pre-established default group, if the automatic declaration registration is not started, the AP is added into a non-declaration list, and the subsequent declaration, network adding and group flow are manually completed.
Further, before adding the AP to the pre-created default network and default group, the method further includes the following steps:
step S1, whether the AC controller has a default network is detected, if yes, the step S2 is entered, and if not, the AC controller reports and registers the AP, and counts into a reported list;
step S2, whether the AC controller has a default group is detected, if yes, the AP is added into the default network and the default group, and the SSID and other parameter configuration information in the group is issued, if not, the AC controller automatically adds the AP into the default network, and the AP group is not added.
Further, before the first step, the method further comprises the following steps:
a network is created in advance in the AC controller and set as a default network, and an AP group is created in the AC controller and set as a default group.
Further, in step two, whether the AP exists in the AC controller is determined according to the SN information of the AP in the AP registration message.
To achieve the above object, the present invention also provides an AC controller, comprising:
a registration request receiving unit, configured to receive a registration request of an AP and obtain a registration packet of the AP;
a registration message judging unit, configured to judge whether the AP already exists according to the AP registration message;
and the declaration and registration processing unit is used for performing corresponding declaration and registration processing on the AP according to the judgment result.
Further, if the judgment result of the registration message judgment unit is that the AP already exists, the declaration registration processing unit synchronizes the existing AP configuration in the AC controller to the AP; if the judgment result of the registration message judgment unit is that the AP does not exist, the declaration registration processing unit adds the AP into a pre-established default network and a pre-established default group.
Further, the AC controller further includes a declaration start monitoring unit, when the determination result of the registration message determining unit is that the AP does not exist, the declaration start monitoring unit further monitors whether the AC controller starts automatic declaration registration, if the AC controller starts automatic declaration registration, the declaration registration processing unit is started to add the AP to a pre-established default network and default group, and if the AC controller does not start automatic declaration registration, the declaration registration processing unit is started to add the AP to an un-declaration list.
Further, the declaration registration processing unit is further configured to detect whether the default network exists in the AC controller before adding the AP to the pre-created default network and default group, further detect whether the default group exists in the AC controller if the default network exists, add the AP to the default network and default group if the default group exists, and issue SSID and other parameter configuration information in the group, and automatically add the AP to the default network and not add the AP to the AP group if the default group does not exist; if no default network exists, the AP is declared and registered, a declared list is included, the network information is null, and the subsequent network adding operation is manually completed by an administrator.
Compared with the prior art, the AP rapid declaration registration method and the AC controller have the beneficial effects that:
according to the AP rapid declaration registration method and the AC controller, after the AP is powered on and the AP controller receives the registration request of the AP, the AP is automatically added to the default network and the default group which are created in advance according to the AP related information carried in the registration message, and the SSID in the group is issued, so that the automatic declaration registration function of the AP on the AC controller is realized, the work efficiency of opening an office is improved, the AP registration process is automatic, and the market demand can be rapidly responded.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. 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, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this document, "one" means not only "only one" but also a case of "more than one".
In an embodiment of the present invention, as shown in fig. 1, an AP rapid declaration registration method of the present invention includes the following steps:
step 101, the AC controller receives a registration request of the AP, and acquires a registration packet of the AP. In the specific embodiment of the present invention, after the AP is powered on, a registration request is sent to the AC controller based on the TCP Protocol and the TR069 specification, and the AC controller obtains a registration packet of the AP, where the registration packet carries relevant information of the AP, such as an SN (Serial Number) of the AP, an MAC (Media Access Control) address of the AP, an IP (Internet Protocol) address of the AP, and an AP version.
Step 102, determining whether the AP already exists according to the AP registration message, in an embodiment of the present invention, after receiving the AP registration message, the AC controller determines whether the AP already exists in the AC controller according to the SN information of the AP in the AP registration message.
And 103, performing corresponding declaration and registration processing on the AP according to the judgment result. Specifically, if the determination result is that the AP already exists, synchronizing the existing AP configuration in the AC controller to the AP; and if the judgment result is that the AP does not exist, adding the AP into a pre-established default network and a pre-established default group.
Preferably, when the determination result is that the AP does not exist, further determining whether the AC controller starts automatic registration declaration, if the automatic registration declaration is started, adding the AP to a default network and a default group created in advance, if the automatic registration declaration is not started, adding the AP to an unreported list, and a subsequent network and group declaration process requires manual operation, that is, a start switch for automatic registration declaration is provided in the AC controller, and when the switch is turned on, the automatic registration declaration is started, and when the switch is turned off, the automatic registration declaration is turned off.
Preferably, before adding the AP to the pre-created default network and default group, the AP rapid registration declaration method of the present invention further includes the following steps:
step S1, whether the AC controller has a default network is detected, if yes, the step S2 is entered, if not, the AC controller reports and registers the AP, the reported list is included, the network information is null, and the subsequent network adding operation is manually completed by an administrator;
step S2, detecting whether the AC controller has a default group, if yes, adding the AP to the default network and the default group, and issuing a Service Set Identifier (SSID) and other parameter configuration information, if not, the AC controller automatically adds the AP to the default network, and does not add the AP group, and the subsequent operation of adding the AP to the AP group is manually completed by an administrator.
Preferably, as shown in fig. 2, before step 101, the AP rapid declaration registration method of the present invention further includes the following steps:
step 100a, pre-creating a network in the AC controller and setting the network as a default network, an
Step 100b, creating an AP group in the AC controller, and setting the AP group as a default group.
Fig. 3 is a schematic structural diagram of an AC controller according to the present invention. As shown in fig. 3, an AC controller according to the present invention can implement fast declaration registration of an AP, and includes: registration request receiving section 301, registration message determining section 302, and declaration registration processing section 303.
A registration request receiving unit 301, configured to receive a registration request of an AP and obtain a registration packet of the AP. In the embodiment of the present invention, after the AP is powered on, a registration request is sent to the AC controller based on the TCP Protocol and the TR069 specification, and the registration request receiving unit 301 obtains a registration message of the AP, where the registration message carries relevant information of the AP, such as an SN (Serial Number) of the AP, a MAC (Media Access Control) address of the AP, an IP (Internet Protocol) address of the AP, and an AP version.
In an embodiment of the present invention, after the AC controller receives the AP registration packet, the registration packet determining unit 302 may determine whether the AP already exists in the AC controller according to the SN information of the AP in the AP registration packet.
And an declaration and registration processing unit 303, configured to perform corresponding declaration and registration processing on the AP according to the determination result. Specifically, if the determination result of the registration message determining unit 302 is that the AP already exists, the registration processing unit 303 is declared to synchronize the existing AP configuration in the AC controller to the AP; if the judgment result of the registration message judgment unit 302 is that the AP does not exist, the registration processing unit 303 is declared to add the AP to a pre-established default network and default group.
Preferably, the AC controller of the present invention further includes a declaration start monitoring unit, when the determination result of the registration message determining unit 302 is that the AP does not exist, the declaration start monitoring unit further monitors whether the AC controller starts automatic declaration registration, if the AC controller starts automatic declaration registration, the declaration registration processing unit 303 is started to add the AP to a default network and a default group that are created in advance, if the AC controller does not start automatic declaration registration, the declaration registration processing unit 303 is started to add the AP to a non-declaration list, and subsequent declaration, network and group processes require manual operations, that is, a start switch for automatic declaration registration is provided in the AC controller, when the switch is turned on, the automatic declaration registration is started, and when the switch is turned off, the automatic declaration registration is turned off.
Preferably, the declaration registration processing unit 303 is further configured to detect whether a default network exists in the AC controller before adding the AP to the pre-created default network and default group, further detect whether the default group exists in the AC controller if the default network exists, add the AP to the default network and default group if the default group exists, and issue configuration information of SSID and other parameters in the group, automatically add the AP to the default network if the default group does not exist, not add the AP group, manually complete subsequent addition of the AP to the AP group by an administrator, and declare and register the AP to be included in the declaration list if the default group does not exist, where the network information is null, and manually complete subsequent addition of the AP to the network by the administrator.
Preferably, the AC controller of the present invention further comprises:
a network creation unit configured to create a network in advance in the AC controller and set the network as a default network; and
and the AP group creating unit is used for creating the AP group in the AC controller and setting the AP group as a default group.
Fig. 4 is a flowchart illustrating an AP fast declaration registration process according to an embodiment of the present invention. In this embodiment, the AP rapid declaration registration is realized based on the TCP protocol and the TR069 specification, as shown in fig. 4, the AP rapid declaration registration process of the present invention is as follows:
1. on the AC controller side, an auto-declare switch is defined, turned off by default, as shown in fig. 5, and switch enable is defined as follows:
1) auto-declare enable shutdown: at the moment, the AC controller does not execute automatic declaration operation on the on-line AP, and all the processes are manually completed by an administrator after the AP is powered on;
2) automatic declare enable to open: the AC controller executes automatic declaration operation on the newly online AP, and subsequent actions of joining the network and the AP group are automatically completed by the AC controller;
2. the AC controller side creates a network and sets the network as a default network, as shown in fig. 6;
3. creating an AP group on the AC controller side and setting the AP group as a default group, as shown in fig. 7;
4. after the AP is powered on, the AP establishes connection with the AC controller through three-way handshake, and as shown in the following table 1, a TR069 power-on registration message is sent to the controller;
TABLE 1
No.
|
Time
|
Source
|
Destination
|
Protocol
|
Length
|
Info
|
20...
|
2016-09...
|
10.6.61.194
|
10.6.61.95
|
TCP
|
66
|
54893→9000[SYN] Seq=0 Win=8192 Len=0 MSS
=1460 WS=256 SACK_PERM=1
|
20...
|
2016-09...
|
10.6.61.95
|
10.6.61.194
|
TCP
|
66
|
9000→54893[SYN,ACK] Seq=0 Ack=1 Win=2920
Len=0 MSS=1460 SACK_PERM=1 WS=512
|
20...
|
2016-09...
|
10.6.61.194
|
10.6.61.95
|
TCP
|
54
|
54893→9000[ACK] Seq=1 Ack=1 Win=65536
Len=0 |
5. After receiving the AP power-on message, the AC controller judges whether the AP exists according to SN information in the registration message:
A. if yes, synchronizing the existing AP configuration in the AC controller to the AP;
B. if the AP is not started, judging whether to start automatic declaration, and if the AP is started, automatically adding the AP into a default network and a default group by the AC controller; if not, the AC controller adds the AP into the non-declaration list, and the subsequent declaration, network adding and group processes need manual operation. Specifically, if the automatic declaration is started, whether a default network exists at the AC controller side is detected, if the default network exists, whether a default group exists at the AC controller side is further detected, if the default group exists, the AC controller automatically adds the AP into the default network and the default group, and issues SSID (service set identifier) and other parameter configuration information in the group, if the default group does not exist, the AP is added into the default network, the AP group is not added, and the subsequent AP addition into the AP group is manually completed by an administrator; if the default network does not exist, reporting the AP, recording the AP into a reported list, wherein the network information is null, and the subsequent network adding operation is manually completed by an administrator.
In summary, according to the AP fast declaration registration method and the AC controller of the present invention, after the AP is powered on and the AP controller receives the registration request of the AP, the AP is automatically added to the default network and the default group created in advance according to the AP related information carried in the registration message, and the SSID in the group is issued, so that the automatic declaration registration function of the AP on the AC controller is realized, and the work efficiency of opening an office is improved.
It should be noted that the above embodiments can be freely combined as necessary. The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.