The method of search access controller and acting server in the WLAN (wireless local area network)
Technical field
The present invention relates to WLAN (Wireless Local Area Network, WLAN (wireless local area network)) CAPWAP (Control and Provisioning of Wireless Access Points, wireless access point control and regulation) the tunnel agent technology, specifically, relate to the method and the CAPWAP acting server of search access controller in a kind of WLAN (wireless local area network).
Background technology
WLAN provides a kind of wireless connections service of local area network (LAN), because wireless data access at a high speed can be provided, WLAN is one of relatively more popular technology of present IT industry, also is popular wireless access way.WLAN adopts centralized AC-AP (Access Controller-Access Point, access controller-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.
Define concentrated WLAN framework in the existing C APWAP agreement, described the division of WLAN function on AP equipment and AC equipment.The CAPWAP agreement has also defined the communication protocol between AP and the AC.At present, though the communication protocol CAPWAP between AC-AP also among revision, basic framework has been determined, needs to seek earlier AC after AP powers on that is:, sets up CAPWAP tunnel.If AC is interconnected with two layers of AP, then can find AC by broadcasting packet; If AC is interconnected by three layers with AP, then need be by other agreements such as DHCP (Dynamic Host Configuration Protocol, DHCP), DNS (Domain Name Server, name server) obtains the information of AC, sets up CAPWAP tunnel with AC then.
As shown in Figure 1, according to existing C APWAP agreement, existing system comprises: access point AP, access controller AC and DHCP/DNS server.Access point AP search access controller AC detailed process is as follows:
Step 101: access point AP successfully starts and initialization;
Step 102:AP distributes by static configuration, Dynamic Host Configuration Protocol server or configuration automatically (as, IPv6 stateless address configuration), obtains self IP address;
Step 103:AP sends broadcasting and finds the AC message;
Step 104:AP waits for and finds the AC response message;
Step 105:AP judges whether successfully to find AC,, whether receives the discovery AC response message that AC sends that is, if receive, then execution in step 109, otherwise, execution in step 106;
Step 106:AP obtains the IP address of AC from the DHCP/DNS server, as, AP obtains the domain-name information of AC earlier from Dynamic Host Configuration Protocol server, according to the AC domain-name information that obtains, obtain the IP address of AC again from dns server;
Step 107:AP sends clean culture and finds the AC message according to the IP address of the AC that obtains;
Step 108:AC responds and finds the AC response message;
Step 109:AP determines the AC that will insert, sets up the mapping relations of the IP of the IP of AP and AC, then, sets up CAPWAP tunnel.
By said process, we can see that AP seeks AC earlier on double layer network, seek less than AC, then continues to seek AC by the three-layer network mode on double layer network, and Fu Za discovery procedure causes finding the overlong time of AC like this; In addition, under the automatic situation about disposing of the stateless of IPV6, be not need the DHCP/DNS server in fact in the system, that is to say that under the situation of not supporting the DHCP/DNS server, AP can not find AC by three-layer network, as seen, this networking that has limited WLAN is greatly used.
Therefore, in WLAN (wireless local area network), how to provide a kind of simplification, fast, the method and the acting server of search access controller reliably, become the technical problem that needs to be resolved hurrily.
Summary of the invention
Technical problem to be solved by this invention provides the method and the acting server of search access controller in a kind of WLAN (wireless local area network), simplifies the process of access point discovery access controller, improves and finds efficient.
For solving the problems of the technologies described above, it is as follows to the invention provides scheme:
The method of search access controller in a kind of WLAN (wireless local area network) comprises at least one access point in the described WLAN (wireless local area network), comprise the steps:
Step 1: receive the CAPWAP that sends from access point and find message;
Step 2: after receiving that described CAPWAP finds message,, select the IP address of an access controller, CAPWAP is found that message is sent to described access controller according to the IP address information of the access controller of safeguarding in advance.
Method of the present invention wherein, further comprises the steps: before the described step 1
Access point starts and finishes initialization, by static configuration, dynamic host configuration protocol DHCP server-assignment or configuration automatically, obtains self IP address.
Method of the present invention, wherein, in the described step 1, described reception is found message from the CAPWAP that access point sends, be that receiving from access point is the IP address of access point by the source address that broadcast mode sends, destination address is that the CAPWAP of broadcast address (255.255.255.255) finds message.
Method of the present invention, wherein, in the described step 2, the IP address information of the access controller that described basis is safeguarded in advance, select the IP address of an access controller, CAPWAP is found that message is sent to described access controller, is that described CAPWAP is found that the destination address of message is revised as IP address and the transmission of selected AC.
Method of the present invention wherein, further comprises the steps:
Step 3: after described access controller receives that CAPWAP finds message, send the CAPWAP response message to access point;
Step 4: after described access point is received the CAPWAP response message, between access controller-access point, set up CAPWAP tunnel.
Method of the present invention, wherein, in the described step 3, described access controller sends the CAPWAP response message to access point, is when sending the CAPWAP response message, and described CAPWAP is found the destination address of the source address of message as the CAPWAP response message.
Method of the present invention, wherein, in the described step 2, the IP address information of the access controller that described basis is safeguarded in advance, select the IP address of an access controller, when being the maximum number of access point that on considering the access controller of safeguarding in advance, can control, make the quantity basis equalization of the access point that each access controller controls as far as possible, select the IP address of an access controller.
A kind of CAPWAP acting server comprises: IP address maintenance module, monitoring forwarding module; Wherein,
IP address maintenance module is used to safeguard the IP address information of all access controllers;
Monitor forwarding module, be used for the IP address information of the access controller safeguarded according to IP address maintenance module, select the IP address of an access controller, the CAPWAP that receives is found that message is forwarded to described access controller.
CAPWAP acting server of the present invention, wherein, described monitoring forwarding module further comprises: insert balanced submodule, be used for when selecting access controller, the AP that each access controller is controlled carries out the quantity equilibrium.
A kind of computer software product wherein, comprises that some instructions are used so that a computer equipment is carried out the method for the invention.
A kind of computer equipment comprises in order to the software of carrying out the method for the invention and moves the necessary hardware of this software.
The method of the invention and CAPWAP acting server, safeguard by IP address information all access controllers, when access point is sought access controller by broadcast mode, IP address according to the access controller of being safeguarded, CAPWAP is found that message sends on the AC, even if make and under the situation of not supporting the DHCP/DNS server, can pass three-layer network, fast, set up CAPWAP tunnel with AC reliably.When selecting AC according to the IP address information of the AC that is safeguarded, further the AP that each AC controlled is carried out the quantity equilibrium again, realized the load balancing between AC, optimized network configuration.
Technical problem to be solved by this invention, technical scheme main points and beneficial effect will be in conjunction with the embodiments, are described further with reference to accompanying drawing.
Description of drawings
Fig. 1 is the sequential chart of access point search access controller in the prior art;
Fig. 2 is the sequential chart of the described access point search access controller of the embodiment of the invention;
Fig. 3 is the structural representation of the described CAPWAP acting server of the embodiment of the invention.
Embodiment
With reference to Fig. 2, the described method of the embodiment of the invention has proposed a kind of CAPWAP agent skill group.By at a network equipment independently, be the CAPWAP acting server (as, gateway) goes up configuration CAPWAP agency, safeguard the IP address information of all AC, AP only seeks AC by broadcast mode, by the IP address of CAPWAP acting server according to the AC of its maintenance, be responsible for to find that the AC message sends on the AC, make access point AP under the situation that does not need the DHCP/DNS server, can pass three-layer network, fast, set up CAPWAP tunnel with AC reliably.Program process is as follows when concrete:
Step 201: access point AP starts and finishes initialization, and obtains self IP address; For example, can pass through that static configuration, Dynamic Host Configuration Protocol server are distributed or the mode of configuration automatically (as, IPv6 stateless address configuration), obtain self IP address;
Step 202: access point AP finds message to CAPWAP acting server broadcast transmission CAPWAP, and described CAPWAP finds that the source address of message is the IP address of AP, and destination address is broadcast address (255.255.255.255);
After step 203:CAPWAP acting server receives that described CAPWAP finds message, IP address according to the AC of its maintenance, select the IP address of an AC, described CAPWAP is found the IP address that the destination address of message is revised as selected AC, and CAPWAP is found that message is sent to described AC;
Step 204: after described AC receives that CAPWAP finds message, be destination address, send the CAPWAP response message with the IP address of described AP;
Step 205: after described AP receives the CAPWAP response message, between AC-AP, set up CAPWAP tunnel.
In said process, described CAPWAP acting server except the IP address information of safeguarding all AC, the AP quantity that can also each AC of balance be controlled.For example, limit the quantity of its AP that can control for each AC that is safeguarded, like this, after the CAPWAP acting server receives that CAPWAP that AP sends finds message, in the time of the maximum AP quantity considering to control on its AC that safeguards, make the AP quantity basis equalization of each AC control as far as possible, thereby, realize the load balancing between AC for AP distributes a suitable AC.
With reference to Fig. 3, the described CAPWAP acting server of the embodiment of the invention comprises: IP address maintenance module, monitoring forwarding module.
Wherein, IP address maintenance module is used to safeguard the IP address information of all access controller AC;
Monitor forwarding module, be used for the IP address information of the access controller safeguarded according to IP address maintenance module, select the IP address of an access controller, the CAPWAP that receives is found that message is forwarded to described access controller.For example, after the CAPWAP acting server receives that CAPWAN finds message, by monitoring forwarding module from described IP address maintenance module, select the IP address of an AC, to find the IP address that the destination address of message is revised as selected AC from the CAPWAP that AP sends, described CAPWAP will be found that message is sent to described AC.
Here, the monitoring forwarding module in the CAPWAP acting server can also comprise that one is inserted balanced submodule, when being used to select access controller, carries out the quantity equilibrium to the AP that each AC controlled.For example, limit the AP that each AC controls and mostly be 50 most, suppose to have safeguarded in the IP address maintenance module IP address of 2 AC, one of them AC1 has inserted 1 AP, and also do not insert any AP on another AC2, though the AP quantity that is inserted on the AC1 also is far from reaching 50, for the load balancing between AC1 and AC2, AC2 is distributed to described AP.
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 comprises that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of the embodiment of the invention.
Equally, can also also realize that described computer equipment comprises in order to the software of carrying out the method for the invention and moves the necessary hardware of this software by a kind of computer equipment.
In sum, described method of the embodiment of the invention and CAPWAP acting server provide a kind of simply effective, practicable CAPWAP agent skill group, have alleviated the AC discovery procedure of AP complexity; And need not the DHCP/DNS server and support the AC discovery procedure, especially find the AC process for the AP that uses IPv6 stateless IP address assignment technology.
The method and the acting server of search access controller in a kind of WLAN (wireless local area network) of the present invention, 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.