Background technology
802.11WLAN network provides a kind of wireless connections service of local area network (LAN).AP is the wireless transmitting-receiving equipments in the WLAN (wireless local area network), and its data transaction that is used for receiving from cable network (as Internet) becomes wireless signal to send, and the wireless signal that receives is converted to data and is forwarded to cable network.
Demand at the enterprise customer, the Internet engineering work group (Internet Engineering TaskForce, IETF) set up special CAPWAP (Configuration and Provisioning forWireless Access Points, WAP (wireless access point) configuration and maintenance) working group and formulated the CAPWAP draft agreement.CAPWAP working group has proposed the notion of Fit AP, and Fit AP mainly finishes the real-time function, confirms, sends the Beacon frame as message, and need finish by AC is collaborative functions such as the management of AP, authentification of users.
The CAPWAP protocol definition will set up control and the Forwarding plane that control and data tunnel are finished network between AP and the AC.Before providing access to the wireless user, AC must finish parameter configuration to AP to finish the foundation of control plane.Therefore AP must need the method for a kind of AC of discovery, only after finding AC, just can finish subsequently control and the foundation of data tunnel.
Current CAPWAP draft agreement has defined AP can find AC by the mode of clean culture and broadcasting combination, and it comprises the steps:
Steps A 1 behind the AP electrifying startup, will obtain network configuration by DHCP (Dynamic Host ConfigurationProctol, DHCP) service, comprise IP address, default gateway, dns server IP address, default domain name etc.;
Steps A 2, AP sends Discovery request broadcasting packet, under the help of overtime control algolithm, if receive AC Discovery response message, AP just prepares being connected of foundation and the AC that sends this AC Discoveryresponse message, is the connection of the AC of its static allocation otherwise AP just prepares the person of developing and managing.
Wherein in the steps A 2, AC can determine whether respond Discovery response message to this AP after receiving Discovery request broadcasting packet.
Wherein in the steps A 2, AP is the IP address of the AC of its static allocation to dns server searching and managing person, similar " the AC@ domain name .com " name of such method sign AC that the DNS Query Information adopts, after DNS had responded the IP address of AC, AP can send Discovery request unicast message to this AC.Receive the Discovery response of this AC as AP after, AP will set up and being connected of this AC.
Mentioned above and had an overtime control algolithm, its effect is the AC that fully finds in the network, has comprised number of times (MaxDiscoveries) that sends Discovery request broadcasting packet and the time-out time (DiscoveryInterval) of at every turn waiting for Discovery response.
After AP has sent Discovery request broadcasting packet, need to wait for the Discoveryresponse of AC, before receiving response, AP must wait for DiscoveryInterval second at least, to guarantee to receive Discovery response.In addition, AP also will count request the number of Discovery that sends, and needs to send the number of times of MaxDiscoveries defined.Agreement has stipulated that the default value of DiscoveryInterval is 5 seconds, does not provide reference value for MaxDiscoveries.Suppose that MaxDiscoveries is 10, if do not have AC (or because certain reason can't be received the Discoveryresponse of AC) in a network so, broadcasting discovery procedure so just needs 50 seconds (not considering clean culture discovery procedure thereafter) at least, and this is the very long time.
Therefore, the AP of current CAPWAP draft agreement regulation finds that there is following shortcoming in the mode of AC:
Broadcasting discovery procedure meeting increases the cable network burden, comprises the processing burden to AC, and under the Fit AP network architecture, AC is crucial, should make great efforts to reduce AC unnecessary processing load;
In view of the overtime control algolithm of CAPWAP protocol definition, AP finds that the AC process may be very consuming time, will make network need the long period just can enter the state that access service is provided to the user, inefficiency;
Simultaneously, in clean culture discovery procedure subsequently, must in case do not dispose or configuration error, will cause clean culture discovery procedure failure in DHCP server side configuration domain name parameters.
Summary of the invention
The technical problem that will solve required for the present invention is to provide connection processing method, AP, computer software product and the equipment of a kind of AP and AC, reduces the time that AP finds AC, and then improves the efficient that AP finds AC.
To achieve these goals, the invention provides the connection processing method of a kind of access point and access controller, comprising:
Behind steps A 1, the first access point electrifying startup, obtain the access controller information of second access point broadcasting;
The access controller information foundation that steps A 2, the first access points basis is obtained is connected with access controller.
Above-mentioned method, wherein, described steps A 2 specifically comprises:
Steps A 21, the first access points are set up the access controller tabulation according to access controller information;
Access controller during steps A 22, the first access points are selected and access controller is tabulated connects.
Above-mentioned method wherein, also comprises:
The access controller information of the access controller that steps A 3, the first access point overseas broadcasts first access point is known.
Above-mentioned method wherein, in the described steps A 22, when the access controller in first access point and the access controller tabulation can't connect, is then pressed the discovery procedure foundation of CAPWAP agreement and being connected of access controller.
Above-mentioned method, wherein, in the described steps A 22, first access point is connected with access controller in the access controller tabulation by the ascending order of load.
Above-mentioned method, wherein, described access controller information comprises the IP address of access controller, the number of access point of the current connection of access controller, the number of wireless users of the current access of access controller.
In order better to realize above-mentioned purpose, the present invention also provides the connection processing method of a kind of access point and access controller, comprising:
Step B1, first access point and access controller connect;
Step B2, the access controller information of the access controller that the first access point overseas broadcast, first access point is known.
Above-mentioned method, wherein, among the described step B2, first access point is only by wired mouthful of access controller information of broadcasting the access controller of current connection in cable network, and/or the access controller information encryption to broadcasting.
In order better to realize above-mentioned purpose, the present invention also provides a kind of access point, comprising:
The access controller information collection module is used for behind the access point electrifying startup, obtains the access controller information of other access point broadcasting;
First connects and to set up module, is used for setting up and being connected of access controller according to the access controller information that obtains.
Above-mentioned access point, wherein, described first connection is set up module and is specifically comprised:
Module is set up in the access controller tabulation, is used for setting up the access controller tabulation according to access controller information;
First access controller connects sets up module, is used for selecting the access controller with the access controller tabulation to connect.
Above-mentioned access point wherein, also comprises:
The access controller information broadcast module is used for the access controller information of the access controller that the overseas broadcast access point self known.
Above-mentioned access point, wherein, described first access controller connection is set up module and also is used for pressing the discovery procedure foundation of CAPWAP agreement and being connected of access controller when the access controller of access point and access controller tabulation can't connect.
Above-mentioned access point, wherein, described access controller information broadcast module also is used for the access controller information of broadcasting is encrypted.
Above-mentioned access point, wherein, described access controller information comprises the IP address of access controller, the number of access point of the current connection of access controller, the number of wireless users of the current access of access controller.
In order better to realize above-mentioned purpose, the present invention also provides a kind of access point, comprising:
Module is set up in second connection, is used for connecting with access controller;
The access controller information broadcast module is used for the access controller information of the access controller that the overseas broadcast access point self known.
Above-mentioned access point, wherein, described access controller information broadcast module also is used for the access controller information of broadcasting is encrypted.
In order better to realize above-mentioned purpose, the present invention also provides a kind of computer software product, comprises some instructions, is used to make computer equipment to carry out above-mentioned method.
In order better to realize above-mentioned purpose, the present invention also provides a kind of computer equipment, comprises being used to carry out the software of said method and moving the necessary hardware of this software.
In the method and apparatus of the present invention, the new AP that inserts obtains AC by the AC information of other AP that has inserted broadcasting, and be connected with AC, simultaneously, if it is next by existing discovery procedure foundation of CAPWAP agreement and being connected of access controller with the situation that these AC can't be connected, after in case neighbor AP can provide AC information like this, AP just can attempt directly sending clean culture Discoveryrequest to AC, and do not need transmission to broadcast discovery request, reduced the processing load of network and AC, reduced simultaneously the time of AP discovery AC again, improved the efficient of AP discovery AC, make network provide service to inserting the user as early as possible, last, method and apparatus of the present invention can good and existing AC discovery procedure compatibility.
Embodiment
Before describing the specific embodiment of the present invention in detail, earlier some notions that the present invention relates to are described, so that better understand the present invention.
The one AP refers to new electrifying startup and does not also find the AP of AC;
The 2nd AP refers to move, and wherein preserves the AP of AC information;
AC information comprises the IP address of AC, the AP quantity of the current connection of AC, the number of wireless users of the current access of AC etc.;
Simultaneously, AP comprises two states: init state and running status, wherein, init state is AP electrifying startup but state when also not being connected with AC, is in state when being connected with AC and running status is AP.
The connection processing method of access point of the present invention and access controller comprises the steps: as shown in Figure 1
The AC information gathering procedure behind the one AP electrifying startup, selects a channel to start working in init state at random, scans all channels then fast, intercepts the message in the radio open, obtains the AC information broadcast message that comprises AC information of the 2nd AP broadcasting;
The AC establishment step of tabulating, an AP extracts AC information from the AC information broadcast message that obtains, and sets up the AC tabulation according to AC information;
The one AC connects establishment step, and the AC in an AP and the AC tabulation connects;
AC information broadcast step is utilized the AC information of the AC known to AC information broadcast message overseas broadcast the one AP.
Yet because the possibility that exists all AC in an AP and the AC tabulation all can't connect, for solving the above problems, the present invention comprises that also another one AC connects establishment step, and is as follows:
The 2nd AC connects establishment step, presses the discovery procedure foundation of CAPWAP agreement and being connected of AC.
Wherein, in AC information broadcast step, the AC information of AC known to self of the one AP overseas broadcast comprises two parts: AC information in the AC tabulation and the AC information of the current AC of connection, during the AC information of current connection AC may be included in the AC tabulation, under the situation that all AC in an AP and the AC tabulation all can't connect, the AC information of current connection AC then is not included in the AC tabulation.
Certainly, in AC information broadcast step, the AC information during also only the AC information of the current connection of overseas broadcast AC or AC tabulate.
In AC information broadcast step, if the AC information in the overseas broadcast AC tabulation then can be for the correspondence table item starts ageing timer, if surpass certain hour, AP does not hear the information of this AC again, AP thinks that this list item (AC information) is aging so, and AP will delete this information, no longer broadcasting, before aging, if AP receives this AC information, then upgrade corresponding list item, and with this ageing time zero clearing.
Access point of the present invention comprises as shown in Figure 2:
AC information gathering module is used for behind the AP electrifying startup, scans all channels fast according to the channel of selecting at random, and intercepts the message in the radio open, obtains the AC information broadcast message that comprises AC information of other AP broadcasting;
Module is set up in the AC tabulation, is used for extracting AC information from the AC information broadcast message spare that obtains, and sets up the AC tabulation according to AC information;
Module is set up in the one AC connection, is used for connecting with the AC of AC tabulation; With
AC information broadcast module is used to utilize the AC information of the AC known to AC information broadcast message overseas broadcast the one AP.
Equally, be to solve the problem that all AC in an AP and the AC tabulation all possibly can't connect, AP of the present invention comprises also that one the 2nd AC connects and sets up module, is used for setting up and being connected of AC by the discovery procedure of CAPWAP agreement.
Equally, if the AC information of the AC in the AC information broadcast module overseas broadcast AC tabulation, then AP also comprises an access controller list update module, be used for the list item that inserts controller list is provided with ageing timer, and be used for then in ageing timer, first access point does not receive that the information of list item corresponding access control device then deletes corresponding list item, otherwise upgrades corresponding list item, and with the ageing time zero clearing of list item correspondence.
Below in conjunction with different embodiment the present invention is described in more details.
<the first embodiment 〉
In the present embodiment, comprise that the AC information broadcast message of AC information is the message of redetermination.
Simultaneously, be that example describes only in the present embodiment with the current AC information that connects AC of overseas broadcast.
At 802.11 protocol definitions administrative message form as shown in Figure 3 (do not carry out the drafting of corresponding ratio among the figure, only show its structure) according to the length of various piece.
Simultaneously, 802.11 agreements have provided the mode of Extended Protocol message, and it represents the element expanded by Element ID, carry the particular content of element by Information, as shown in Figure 4, and wherein:
802.11 agreement has kept the Element ID in the 32-255 scope, the present invention expands in this scope and carries AC information.
Suppose that we have selected Element ID 254, Length=8 comprises in the Information field:
AC Address, i.e. the IP address of AC;
AP Number, i.e. the AP quantity of the current connection of AC; With
Station Number, i.e. the number of wireless users of the current access of AC.
Above-mentioned description when wired mouthful of broadcasting AC information, can be used identical form only at 802.11 messages of eating dishes without rice or wine, and just the carrier of message changes corresponding wired message frame form into, as 802.3 frame formats, does not repeat them here.
The access point of present embodiment and the connection processing method of access controller specifically comprise the steps: as shown in Figure 5
The AC information broadcast module of steps A 11, the two AP will comprise that the AC information broadcast message of AC information broadcasts;
In the steps A 11,, and after therefrom obtaining AC information, just regularly this AC information is broadcasted in the mode of AC information broadcast message in case the 2nd AP receives Discovery Response message from certain AC;
Simultaneously, if the 2nd AP adopts the discovery procedure foundation of CAPWAP agreement and being connected of AC, then the 2nd AP might receive the Discovery Response message of a plurality of AC, a plurality of AC information have been obtained, therefore, the 2nd AP can carry all AC information in AC information broadcast message, certainly, also can in AC information broadcast message, select to carry one of them AC information, be exemplified below by certain rule:
The Discovery Response of AC can provide AC current information on load, and the 2nd AP can only carry the information of the minimum preceding several AC of load in broadcasting packet.
Steps A 12, an AP electrifying startup of init state selects a channel to start working at random, and AC information gathering module scans all channels fast then, receives the AC information broadcast message that comprises AC information of the 2nd AP broadcasting within the predetermined time; Time at this collection AC information broadcast message that should be scheduled to can be set by system or user;
Steps A 13, above-mentioned preset time then after, AC tabulation is set up the AC information that module extracts in the AC information broadcast message and is set up the AC tabulation;
The AC tabulation of creating in the steps A 13 comprises information such as the IP address, load of AC.
Steps A 14, the one AC connection is set up module and select AC from the AC tabulation, and trial and selecteed AC connect, if set up successfully, enter steps A 16, otherwise attempt connecting, connect successfully in case an AC connects an AC who sets up in module and the AC tabulation with next AC, enter steps A 16, otherwise enter steps A 15;
Wherein, selecting the method for AC from the AC tabulation can be at first to select the little AC that loads, less as the current AP linking number of AC user's linking number less or that AC is current, perhaps takes all factors into consideration the current AP linking number of AC and user's linking number and selects.
Steps A 15, when an AC connects when setting up module and all can't connect with all AC in the AC tabulation, the 2nd AC connects and sets up module by after being connected of the discovery procedure foundation of CAPWAP agreement and AC, and switches to running status, and enters steps A 16;
Steps A 16, AC information broadcast module are utilized the AC information of the current connection of AC information broadcast message overseas broadcast AC.
In steps A 16, because the partial information in the AC information is dynamic change (as an information on load), so the action of the AC information of the current connection of overseas broadcast AC is preferably periodically carried out, so also need periodically to obtain the AC information of current connection AC in the steps A 16.
Simultaneously, mention above, in steps A 16 of the present invention, the AC information of the current connection of overseas broadcast AC periodically, but how the cycle of its broadcasting is set also is the problem that the present invention need solve, and in specific embodiments of the invention, can determine this this cycle in the following manner:
Relevant with the AC quantity in the network, if AC negligible amounts, then this cycle can be provided with longer, because AC negligible amounts, all are connected to the AP quantity of this AC and understand more relatively, and AP that all are connected to this AC can broadcast the AC information of this AC, if constantly the broadcasting in network of AC information that the short cycle will cause repetition is set like this;
Relevant with the AP quantity in the network, if AP quantity is more, then this cycle can be provided with longer, because AP quantity is more, and AP all is connected to AC, the chance of the identical AC information of AP broadcasting is just bigger like this, if setting constantly the broadcasting in network of AC information that also can cause repetition than cycle of weak point like this;
Can certainly take all factors into consideration the broadcast cycle that AP in the network and AC quantity decide AC information.
Simultaneously, user for security sensitive,, can to dispose AP and only send the AC information broadcast message that comprises AC information by wired mouthful in cable network because broadcasting comprises the address exposure of the AC that the AC information broadcast message of AC information causes in order preventing, the AP of phase same network segment just can obtain like this.
Certainly,, can also use the cryptographic algorithm of arranging in the network that AC information is encrypted, prevent leakage of information for the user of security sensitive.
Wherein, steps A 15 specifically comprises:
Steps A 151, the two AC connection is set up module and is obtained network configuration by the DHCP service, comprises IP address, default gateway, dns server IP address, default domain name etc.;
Steps A 152, the 2nd AC connection is set up module and is sent Discovery request broadcasting packet, under the help of overtime control algolithm, if receive the Discovery response message that AC returns, AP foundation and the AC that sends this Discovery response message are connected, otherwise enter steps A 153;
Steps A 153, the 2nd AC connection is set up module to the IP address of dns server searching and managing person for the AC of its static allocation, and after obtaining the IP address of this AC, the 2nd AC connection is set up module and is sent Discovery request unicast message to this AC, behind the Discovery response that receives this AC, foundation and this AC are connected.
<the second embodiment 〉
In the first embodiment of the present invention, comprise that the AC information broadcast message of AC information is the message of redetermination, and in the present embodiment, this AC information broadcast message is the expansion of existing Beacon message, AC information is broadcasted by the Beacon message after expanding.
The Beacon message is a kind of administrative message.This message will carry the service that AP provided by the transmission regularly of eating dishes without rice or wine of AP, parameters such as authentication, and these parameters are carried in Frame body.
In the second embodiment of the present invention, the Beacon message after the expansion also comprises on the basis of existing Beacon message:
AC Address, i.e. the IP address of AC;
AP Number, i.e. the AP quantity of the current connection of AC; With
Station Number, i.e. the number of wireless users of the current access of AC.
<the three embodiment 〉
In the first embodiment of the present invention, comprise that the AC information broadcast message of AC information is the message of redetermination, and in the present embodiment, this AC information broadcast message is the expansion of existing P robe message, AC information is broadcasted by the Probe message after expanding.
In the third embodiment of the present invention, the Probe message after the expansion also comprises on the basis of existing Probe message:
AC Address, i.e. the IP address of AC;
AP Number, i.e. the AP quantity of the current connection of AC; With
Station Number, i.e. the number of wireless users of the current access of AC.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds necessary general hardware platform, can certainly pass through hardware, but obviously the former is better execution mode.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product comprise some instructions with so that a computer equipment (said here computer equipment is a generalized concept, include but not limited to personal computer, server, the network equipment etc.) the described method of the execution embodiment of the invention.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.