The register method of a kind of AP and equipment
Technical field
The present invention relates to a kind of server/customer end technical field, relate in particular to register method and the corresponding apparatus of a kind of AP.
Background technology
WLAN (wireless local area network) (WLAN, Wireless Local Area Network) be the network that utilizes wireless communication technology in certain subrange, to set up, it is the product that computer network combines with wireless communication technology, it with the wireless multiple access channel as transmission medium, traditional cable LAN (LAN is provided, Local AreaNetwork) function, can make the user real realize at any time, everywhere, random broadband network inserts.
WLAN begins as the extension of wired local area network ground and exists, and each group, enterprises and institutions have adopted the WLAN technology to make up its office network widely.But along with further developing of using, WLAN develops into " public access wireless LAN " from traditional local area network technology just gradually, becomes Internet (Internet) broadband access means.WLAN has easy installation, easily expansion, manageability, easy care, high mobility, characteristics such as anti-interference.
WLAN adopts centralized Radio Access Controller-access point (AC-AP, AccessController-Access Point) framework usually.Wherein, AC provides the centralized management of wlan network, and AP then by setting up link with AC, behind the adding wlan network, provides the wireless access service.Wireless stations (STA, wireless station) is the client among the WLAN, and concrete can be the computer that includes 802.11 wireless network interface cards.
In the prior art, AP need register to AC, and its basic thought of its login mechanism is: the address information of configuration AC in DHCP (DHCP, Dynamic Host Configuration Protocol) server.Behind the AP electrifying startup, obtain Internet protocol IP address, tell AP by optional (option) 43 fields of DHCP message with the IP address of the AC in the network simultaneously to Dynamic Host Configuration Protocol server; AP joins certain specific AC according to the algorithm decision of self, promptly registers to this specific AC; After adding successfully, it is related that AC and AP form, thereby AC just can issue version and corresponding configuration information to AP.So far, the registration process of AP is finished.AP can normally transmit data flow.
Figure 1 shows that the structural representation of the wlan network of prior art, in the figure, have two AC (being AC1 and AC2), the IP address that on Dynamic Host Configuration Protocol server, has disposed AC1 and AC2 in the network.Behind the AP1 electrifying startup, judge at first whether this locality has configuring static IP address (comprise self IP address of this AP and for the IP address of the AC of the correspondence of its registration), if disposed static ip address, carry out related according to the AC of this address and correspondence; If no, then dynamically obtain the IP address to Dynamic Host Configuration Protocol server.Dynamic Host Configuration Protocol server is told AP1 by the option43 field of DHCP message with the IP address of AC1 and AC2 when being AP1 distributing IP address, then, AP1 is registered to certain specific AC (being assumed to be AC1) according to the algorithm decision of self.After succeeding in registration, form related between AC1 and the AP1.AC1 can issue version and corresponding configuration information to AP1 like this, and so far, the registration process of AP1 is finished, and AP1 can normally transmit data flow.
From above-mentioned analysis as can be known, the AC that needs AP to select needs to register according to algorithm in the prior art needs AP that certain processing operational capability is arranged, and this has relatively high expectations for AP's.And the AC information of Dynamic Host Configuration Protocol server is pre-configured, can not change the AC information of configuration on it according to the variation of actual environment automatically.If in the network after certain AC equipment failure, then related with this AC AP will lose and being connected of network, and if above-mentioned AP re-register, Dynamic Host Configuration Protocol server still may be the above-mentioned AC that had lost efficacy for its distribution, thereby cause the AP can't be successful, and then cause the AP can't proper communication.Obviously, this method can not adapt to the variation of network, and automaticity is not high.
Summary of the invention
Technical problem to be solved by this invention provides register method and the equipment of a kind of AP, the AC information that AP need be registered directly sends to AP, AP need not to select to need the AC of registration, thereby reduces in the registration process the requirement of AP, makes the registration of AP be easy to realize.The present invention also provides the method for supervising to AC, has improved the reliability of registration.
For solving the problems of the technologies described above, it is as follows to the invention provides scheme:
A kind of access point AP process registration of on access controller AC management server, implementing,
The identification information of AC is set up and safeguarded to the AC management server;
Behind the request message of the request that receives the requestor, according to pre-defined rule, be that described AP distributes the AC for its registration, and the identification information of the AC that distributed is sent to described request person for the AC of AP registration.
Method of the present invention, wherein,
Described foundation also safeguards that the identification information of AC comprises: the AC management server is preserved the identification information of described AC according to the register requirement that AC sends.
Method of the present invention, wherein,
Described foundation also safeguards that the identification information of AC also comprises: the AC management server detects its AC that safeguards, and when detecting the AC inefficacy, deletes the identification information of this inefficacy AC.
Method of the present invention, wherein,
The AC management server is further safeguarded the AP information that each AC is associated;
Further when the identification information of deletion inefficacy AC, the AP information associated according to described inefficacy AC triggers corresponding AP, and deletes the associated AP information of described inefficacy AC described AC management server.
Method of the present invention, wherein,
The described associated AP information of each AC of safeguarding is: the success that the AC management server sends according to each AC is registered to the information of the AP on this AC, safeguards the information of the AP that each AC is associated.
Method of the present invention, wherein,
The described AP that triggers correspondence comprises: according to pre-defined rule, for the AP of described correspondence redistributes the AC of its registration of confession, and the identification information of the described AC that redistributes is sent to the AP of described correspondence; Perhaps the AP to described correspondence sends the message that requires this AP to re-register.
Method of the present invention, wherein,
Described according to pre-defined rule, for distributing the AC for its registration, described AP comprises:
System resource according to each AC takies situation, or the quantity of the AP of the current association of each AC, or the repeating query order of each AC, distributes the AC that supplies its registration for described AP.
Method of the present invention, wherein,
Described AC management server is also preserved the identification information of legal AP, and the identification information of the AP of the request registration that sends according to AC, judges whether this AP is legal, and judged result is returned to AC.
Method of the present invention, wherein, described request person is dynamic host configuration protocol DHCP server or AP.
Method of the present invention, wherein, the identification information of described AC is Internet protocol IP address information or the domain name resolution server DNS domain-name information of AC.
The present invention also provides a kind of AP process registration of implementing on AC, AC sends register requirement according to the address of the AC management server of configuration on it to the AC management server.
Method of the present invention, wherein, AC further sends to the AC management server with the information that successfully is registered to the AP on it.
Method of the present invention, wherein, after receiving the register requirement of AP, AC sends to the AC management server with the identification information of the AP in the described register requirement, and judge the result that this AP is whether legal according to what the AC management server returned, allow or refuse this AP registration.
The present invention also provides a kind of enforcement AP process registration, and wherein, AP registers to the AC of correspondence according to the identification information of the AC of its registration of confession of AC management server distribution.
Method of the present invention, wherein, AP sends to corresponding AC with self identification information further when the AC to correspondence registers.
The present invention also provides a kind of AC management server accordingly, comprising:
AC identification information maintenance unit is used to set up and safeguard the identification information of AC;
The AC allocation units are used for after receiving the request message of request for the AC of AP registration that the requestor sends, and according to pre-defined rule, are that described AP distributes the AC for its registration, and the identification information of the AC that distributed is sent to described request person.
AC management server of the present invention, wherein,
Described AC identification information maintenance unit is further used for the register requirement according to the AC transmission, preserves the identification information of described AC.
AC management server of the present invention, wherein,
Described AC identification information maintenance unit is further used for detecting the AC that it is safeguarded, and when detecting the AC inefficacy, deletes the identification information of this inefficacy AC.
AC management server of the present invention, wherein,
Described AC identification information maintenance unit is further used for the AP information of safeguarding that each AC is associated, and when the identification information of deletion inefficacy AC, the AP information associated according to described inefficacy AC triggers corresponding AP, and deletes the associated AP information of described inefficacy AC.
AC management server of the present invention wherein, also comprises:
The AP judging unit is used to preserve the identification information of legal AP, and the identification information of the AP of the request registration that sends according to AC, judges whether this AP is legal, and judged result is returned to AC.
The present invention also provides a kind of AC accordingly, comprising:
AC management server registering unit is used for the address according to the AC management server of self configuration, sends register requirement to the AC management server.
AC of the present invention also comprises:
The AP registering unit is used for after receiving the register requirement of AP, and the identification information of the AP in the described register requirement is sent to the AC management server, and judges the result that this AP is whether legal according to what the AC management server returned, allows or refuse this AP registration.
The present invention also provides a kind of AP accordingly, comprising:
Registering unit is used for the identification information according to the AC of AC management server distribution, registers to the AC of correspondence.
AP of the present invention, wherein, described registering unit further according to the triggering of AC management server, is registered again.
From the above as can be seen, the register method of a kind of AP provided by the invention and equipment, by increasing the AC management server, AC information in the maintaining network, for AP distributes proper A C, thereby reduced the complexity that AP realizes in registration process, greatly reduced software and hardware requirement, improved the flexibility of AP registration AP.Simultaneously, the present invention safeguards AC information according to the keep-alive message between AC and the AC management server, makes network to make adjustment accordingly according to the variation of AC, has improved the automaticity of AP registration, has also improved the reliability of registration simultaneously.
Description of drawings
Fig. 1 is the structural representation of the wlan network of prior art;
Fig. 2 is the schematic diagram of applied environment of the register method of the described AP of the embodiment of the invention;
Fig. 3 is the flow chart of the register method of the described AP of the embodiment of the invention;
Fig. 4 is the structural representation of the described AC management server of the embodiment of the invention;
Fig. 5 is the structural representation of the described Dynamic Host Configuration Protocol server of the embodiment of the invention;
Fig. 6 is the structural representation of the described AC of the embodiment of the invention;
Fig. 7 is the structural representation of the described AP of the embodiment of the invention.
Embodiment
The invention provides register method and the equipment of a kind of AP, by increasing the AC management server, AC information in the maintaining network, and be that AP distributes AC, thereby reduced the implementation complexity of AP, and, when the AC in network changes, can adapt to this variation automatically, and be AP distribution proper A C.The present invention is described in detail by specific embodiment below in conjunction with accompanying drawing.
As shown in Figure 2, be the applied environment of the register method of the described a kind of AP of present embodiment.Compared with prior art, increased an AC management server.IP address information by the AC in this AC management server foundation and the maintaining network.The AC management server can be an independently server, also can be an embedded module in the application system that is embedded in other, for example, is embedded in Dynamic Host Configuration Protocol server or dns server etc.
Fig. 3 is the flow chart of the register method of the described a kind of AP of the embodiment of the invention, and as shown in Figure 3, this method may further comprise the steps:
Step 31 after AC starts, sends register requirement to the AC management server, after the AC management server is received the register requirement of AC, sets up and safeguard the IP address information of AC.
Here, after AC starts,, send register requirement to the AC management server according to the address of the AC management server that himself disposes.The AC management server is after the request of receiving, can return a confirmation message to AC, and according to the logon message of the AC that receives, a list item corresponding with this AC set up in the IP address that obtains this AC, in this list item, note the IP address of this AC, simultaneously, the AC management server can also be by detecting the AC that it is safeguarded, and (for example lost efficacy detecting AC, AC breaks down or situation such as AC outage) time, the IP address information of deletion inefficacy AC.The method of concrete detection AC can be: in the list item of setting up the AC correspondence, for this AC is provided with a timer and picks up counting; AC periodically sends the keep-alive message to the AC management server after succeeding in registration to the AC management server.If the AC management server receives the keep-alive message of this AC in the predetermined keep-alive time, then reset described timer and reclocking are if timer expired is judged that then this AC lost efficacy, thereby deleted the list item of this AC correspondence.Like this, just can be so that the AC management server according to the variation of the AC in the network, is changed the information that it is safeguarded accordingly, and if then when guaranteeing to have the AP request to distribute AC, can not distribute an AP who had lost efficacy for it.The AC list item of safeguarding on the AC management server may be as shown in table 1, comprises the address and the information such as keep-alive time that reach each AC of a plurality of AC.
The AC address |
Saturation time |
AC1 address 1 |
2S |
AC1 address 2 |
1.5S |
Table 1
Step 32 is after AP starts, if self there is not configuring static IP address, then to Dynamic Host Configuration Protocol server request IP address.
Here, after AP powers on, at first check the IP address of the static ip address that whether disposes self and corresponding AC, if having, then AP according to initialization after, register to the AC of correspondence according to the IP address of AC; If not configuration, then AP sends the DHCP request message to Dynamic Host Configuration Protocol server, and the request Dynamic Host Configuration Protocol server is its distributing IP address.
After step 33, Dynamic Host Configuration Protocol server are received the DHCP request message of AP, send the message of request for the AC of this AP registration to the AC management server.
Step 34, AC management server are that AP distributes the AC for its registration, and the IP address information of this AC is sent to Dynamic Host Configuration Protocol server.
Here, the AC management server is that AP distributes corresponding AC after the message of receiving the request AC that DHCP sends, register for this AP, and the address information of AC that should correspondence sends to Dynamic Host Configuration Protocol server.Concrete, the AC management server can be selected proper A C according to pre-defined rule from its AC that safeguards, distribute the AC that supplies its registration for AP.Wherein, described pre-defined rule can adopt fairly simple allocation algorithm, and this allocation algorithm can be the repeating query order according to AC, successively AC is distributed to each AP; Can also be that system resource according to each AC takies situation, perhaps what of the AP quantity of the current association of each AC distribute proper A C to give AP.
Step 35, Dynamic Host Configuration Protocol server are AP distributing IP address, will send to this AP for the IP address information of the AC of this AP registration simultaneously.
Here, after Dynamic Host Configuration Protocol server has obtained the IP address information of the AC that registers for this AP from the AC management server, when being this AP distributing IP address, by sending to this AP for the IP address information recording of the AC of this AP registration in the option43 of DHCP message field.
Step 36, AP registers to the AC of correspondence according to the IP address information of the AC that obtains.
Here, AP can obtain the IP address information of corresponding AC from the option43 field of DHCP message, thereby can register to the AC of correspondence according to this IP address.
Here, register, can also preserve sign (ID) information of legal AP at AC management server place in order to prevent illegal AP; AP sends to corresponding AC with self identification information further when the AC to correspondence registers; AC sends to the AC management server with the identification information of the AP of request registration; The AC management server is judged whether this AP is legal, and judged result is returned to AC according to the identification information of the AP of the request registration of AC transmission; AC judges the result that this AP is whether legal according to what the AC management server returned, allows or refuse this AP registration.
Above embodiment is that the IP address with AC describes, and what promptly the AC management server was safeguarded is the IP address information of AC.Obviously, being not limited only to the IP address here, can also be other identification informations of AC, for example domain name resolution server (DNS, Domain Name System) domain-name information.The DNS domain-name information that AC carries self is to the registration of AC management server, and the AC management server is safeguarded the DNS domain-name information of AC, and when distributing the AC of correspondence for AP, and the DNS domain name of this AC is sent to Dynamic Host Configuration Protocol server; AP can obtain the IP address information of this AC by domain name mapping after the DNS domain name of obtaining the AC that supplies its registration, equally also can register to AC.
From the above as can be seen, increase the AC management server among the present invention, by the AC information in the AC management server maintaining network, for AP distributes proper A C, thereby reduced the complexity that AP realizes, greatly reduced the software and hardware requirement of AP, improved the flexibility of AP registration.Simultaneously, the present invention safeguards AC information according to the keep-alive message between AC and the AC management server, makes network to make adjustment accordingly according to the variation of AC.For example, after certain AC lost efficacy, the AC management server will be deleted the information of this AC automatically.Like this, AP is when re-registering, and the AC management server is exactly the AC information of other operate as normal for its distribution, thereby AP can successfully be registered to AC, realizing normal communication, thereby, the present invention has improved the automaticity of AP registration, has also improved the reliability of AP registration.
After certain AC lost efficacy, the AP related with this AC will lose and being connected of above-mentioned inefficacy AC, and present embodiment can also further recover the proper communication of above-mentioned AP by following steps:
Step 41, AC management server are safeguarded the IP address information of each AC, also further safeguard the AP information that each AC is associated;
Here, be the AP that successfully has been registered to this AC with the associated AP of AC.AC will be associated with it AP information send to the AC management server, for example, after certain AP successfully is registered to AC, this AC sends to the AC management server with the information of this AP, thereby the AC management server can be safeguarded the information of the AP that each AC is associated according to above-mentioned information.
Here, the AC management server is safeguarded IP address information and the associated AP information of this AC of AC also according to the keep-alive message between itself and the AC.
Step 42, after certain AC lost efficacy, the AC management server was owing to can not normally receive the keep-alive message that this inefficacy AC sends, therefore, with IP address information and the associated AP information deletion of this inefficacy AC of this inefficacy AC, simultaneously associated according to this inefficacy AC AP information triggers corresponding AP; The associated AP of described inefficacy AC registers again according to described triggering.
Here, described triggering, can be that the AC management server is according to pre-defined rule, from its AC that safeguards, select proper A C, again the AP that is described association distributes the AC that supplies its registration, and the IP address information of the AC that redistributes sent to corresponding AP, thereby the AP of described correspondence can register again according to the IP address information of the described AC that redistributes; Also can be that the AC management server directly sends a message that requires AP to re-register, the associated AP of described inefficacy AC registers to 36 again according to step 32 after receiving above-mentioned message.
Here, in the step 42, the described AP that triggers correspondence can be that the AC management server directly triggers corresponding AP, also can be to transmit described triggering by Dynamic Host Configuration Protocol server.
By above-mentioned steps, in the present embodiment, after AC lost efficacy, can realize re-registering of AP fast, and then improve the reliability of communication.
Based on the register method of above-mentioned AP, present embodiment also provides the concrete equipment of using above-mentioned register method, and is extremely shown in Figure 7 as Fig. 4 respectively, comprises AC management server, Dynamic Host Configuration Protocol server, AC and AP.
Wherein, as shown in Figure 4, described AC management service implement body comprises:
AC identification information maintenance unit is used to set up and safeguard the identification information of AC; Described AC identification information maintenance unit can also be further used for the register requirement according to the AC transmission, preserves the identification information of described AC.
The AC allocation units are used for after receiving the request message of request for the AC of AP registration that the requestor sends, and according to pre-defined rule, are that described AP distributes the AC for its registration, and the identification information of the AC that distributed is sent to described request person.
Here, described AC identification information maintenance unit can also be further used for detecting the AC that it is safeguarded, and when detecting the AC inefficacy, deletes the identification information of this inefficacy AC; And when the identification information of deletion inefficacy AC, the AP information associated according to described inefficacy AC triggers corresponding AP, and deletes the associated AP information of described inefficacy AC.
Here, described AC management server can also comprise:
The AP judging unit is used to preserve the identification information of AP, and the identification information of the AP of the request registration that sends according to AC, judges whether this AP is legal, and judged result is returned to AC.
As shown in Figure 5, described Dynamic Host Configuration Protocol server specifically comprises:
The AC request unit is used for sending the request message of request for the AC of AP registration to the AC management server;
AC information retransmission unit, the identification information that is used for AC that described AC management server is distributed sends to corresponding AP.
Here, described AC request unit can also be further used for sending the request message of request for the AC of described AP registration to AC after the message that receives AP request IP address; Described AC information retransmission unit further can also be used for in the AP distributing IP address, and the identification information of the described AC that described AC management server is distributed sends to corresponding AP.
As shown in Figure 6, described AC specifically comprises:
AC management server registering unit is used for the address according to the AC management server of self configuration, sends register requirement to the AC management server.Here, described management server registering unit can also be further used for periodically sending the keep-alive message to the AC management server.
The AP registering unit is used for after receiving the register requirement of AP, and the identification information of the AP in the described register requirement is sent to the AC management server, and judges the result that this AP is whether legal according to what the AC management server returned, allows or refuse this AP registration.
As shown in Figure 7, described AP specifically comprises:
Registering unit is used for the identification information according to the AC of AC management server distribution, registers to the AC of correspondence.
Here, described registering unit can also be further used for when the AC to correspondence registers, and self identification information is sent to corresponding AC.
Here,, described registering unit can also be further used for the triggering according to the AC management server, registers again.Concrete, if the IP address information of the AC that redistributes for this AP that described triggering is the AC management server to be sent then can directly be registered according to the IP address of the described AC that redistributes; If described triggering is the message that requires AP to re-register that the AC management server directly sends, then can register again to 36 according to step 32.
In sum, the identification information of AC is set up and safeguarded to the register method of the described a kind of AP of the embodiment of the invention and equipment by the AC management server, are that AP distributes the AC for its registration, do not need AP to select AC for its registration, reduced the complexity that AP realizes.
The register method of a kind of AP of the present invention and equipment, be not restricted to listed utilization in specification and the execution mode, it can be applied to various suitable the present invention's field fully, for those skilled in the art, can easily realize additional advantage and make amendment, therefore under the situation of the spirit and scope of the universal that does not deviate from claim and equivalency range and limited, the examples shown that the present invention is not limited to specific details, representational equipment and illustrates here and describe.