Embodiment
Below, specify embodiments of the invention with reference to accompanying drawing.
Basic design of the present invention is: when a plurality of AC work simultaneously, through carrying out the priority setting by related AC to each AP, attempt thereby make AP carry out association according to preset priority.If the AC that priority is high breaks down and quits work, then can be associated with on the lower AC of priority, so, the lower AC of priority is promptly as the backup of the AC of high priority, thereby reaches the purpose of the N+1 backup of AC.
Specifically; Hold at AC; Because AC can support to be the different ACIP address list of heterogeneous networks interface configuration, therefore different AC IP address list orders, the AC priority of indication among order the present invention just of AC IP address wherein can be set for the various network interface.Specifically; When many AC work simultaneously, respectively select from each AC an interface to form a virtual group (for example VLAN, virtual LAN) in advance; So the interface on all AC is formed predetermined N virtual group (for example VLAN); N>1, each virtual group all are provided with identical AC IP address list order, and different AC IP address list orders is set between the virtual group.One of said N virtual group of each AP in the network and AC end is corresponding, that is to say that each AP belongs to AC in logic and holds one of said N VLAN.Preferably, when configuration AP, divide AP more fifty-fifty, a plurality of AP are distributed under the virtual group of AC end setting equably.For example, a plurality of AP are divided into N group with AC end similar number, wherein each organizes the interface virtual group of an AC of correspondence, the AP of each group each AC interface in can the access of virtual group.Like this, be linked on the different AC,,, just can guarantee all AP operate as normal as long as there is an AC to work if the AC fault takes place simultaneously when what the AP in the network relatively disperseed.
When the discovery request message that receives from AP, AC finds corresponding AC IP address list according to the virtual group of sending under the AP that finds request message.Then; IP address in the AC IP address list is carried out following selection strategy from front to back one by one: if this IP address is the IP of self; Then mean it self is first-selected related AC, thereby send the discovery response message that the AC IP address list is a sky, and finish association process; Otherwise, be in active state if having the AC of this IP, then mean it self is not first-selected related AC, thereby send the discovery response message that comprises the AC IP address list that finds, and finish association process; If this IP is neither self IP, the AC that has this IP is not in active state yet, then proceeds the selection strategy of next IP address.
On the other hand,, the priority setting is carried out in the AC address that obtains by different way, just carry out association and attempt according to priority order from high to low at the AP end, rather than as sending association request to all AC addresses simultaneously in the prior art.For example; In AC discovery and AC association process; AP at first obtains the AC IP address list as local AC IP address list through one of prior art AC discovery mode (like above-mentioned DHCP, DNS, static discovery etc.) commonly used, sends the discovery request message one by one according to the order of IP address in the AC IP address list that obtains then; If in the discovery response message that receives, comprise the AC IP address list; Then this AC IP address list is inserted the head of local AC IP address list; Restart the AC detection process again; Thereby guarantee to find that the ACIP address list in the response message has limit priority, make AP as early as possible with related at the first-selected AC of AC side configuration.To describe AC discovery and the association process of AP after a while with reference to Fig. 3 in detail.
Fig. 4 is the network diagram that comprises several A P and AC that illustrates according to exemplary embodiment of the present invention.
Network among Fig. 4 comprises 3 AP and 3 AC, i.e. AP1, AP2, AP3 and AC1, AC2, AC3.With reference to Fig. 4; On AC1, AC2 and AC3, respectively select an interface to constitute a virtual group (like eth0-1.1); Dispose 3 virtual group altogether; Promptly, that is to say, respectively dispose eth0-1.1, eth0-1.2 and eth0-1.3 on AC1, AC2 and the AC3 as eth0-1.1, eth0-1.2 and the eth0-1.3 of VLAN; And AP1, AP2 and AP3 can insert eth0-1.1, eth0-1.2 and eth0-1.3 among AC1, AC2 and the AC3 respectively, that is to say, AP1 belongs to eth0-1.1, AP2 belongs to eth0-1.2 and AP3 belongs to eth0-1.3.Simultaneously, on AC1, AC2 and AC3, disposed the AC IP address list (seeing also Fig. 5) of each virtual group (VLAN) respectively, and backed up each other between AC1~AC3.
Fig. 5 is the form that is illustrated in the AC IP address list that disposes respectively on the AC of Fig. 4.With reference to Fig. 5:
On AC1,
The corresponding AC IP address list of configuration eth0-1.1 is followed successively by the IP address of AC1, AC2, AC3;
The corresponding AC IP address list of configuration eth0-1.2 is followed successively by the IP address of AC2, AC1, AC3;
The corresponding AC IP address list of configuration eth0-1.3 is followed successively by the IP address of AC3, AC2, AC1.
On AC2,
The corresponding AC IP address list of configuration eth0-1.1 is followed successively by the IP address of AC1, AC2, AC3;
The corresponding AC IP address list of configuration eth0-1.2 is followed successively by the IP address of AC2, AC1, AC3;
The corresponding AC IP address list of configuration eth0-1.3 is followed successively by the IP address of AC3, AC2, AC1.
On AC3,
The corresponding AC IP address list of configuration eth0-1.1 is followed successively by the IP address of AC1, AC2, AC3;
The corresponding AC IP address list of configuration eth0-1.2 is followed successively by the IP address of AC2, AC1, AC3;
The corresponding AC IP address list of configuration eth0-1.3 is followed successively by the IP address of AC3, AC2, AC1.
Like this, the AC IP address list that is provided with to each VLAN is identical, and different to the AC IP address list of variant VLAN setting.The order that is arranged in the IP address of above-mentioned each AC IP address list is represented the priority of related AC, that is to say, the AC that is arranged in first AC IP address of tabulation is first-selected related AC, and second AC is its less preferred related AC or the like.
According to configuration shown in Figure 5, find and correlating method that according to AC of the present invention the AC1 of AP1 access under normal circumstances, AP2 insert AC2, AP3 inserts AC3, AC1, AC2, AC3 need to back up each other simultaneously.Unusual when the network appearance, as long as there is an AC also can use, these three AP just can operate as normal.
Following with reference to Fig. 3, explain according to the AC of exemplary embodiment of the present invention find and correlating method in the processing of AP.Fig. 3 be illustrate according to the AC of exemplary embodiment of the present invention find and correlating method in the flow chart of processing of AP.
At first, at operation S302, the mode that AP obtains the IP address of AC according to prior art obtain comprise one or more AC IP address tabulation as local AC IP address list.The mode that said prior art is obtained the IP address of AC comprises that foregoing CAPWAP finds, static state is found, DNS finds and DHCP finds.Usually, AP is according to a kind of AC IP address list of obtaining in the aforesaid way.If a kind of mode according to wherein can't obtain said AC IP address list, then AP can sequentially use above-mentioned several kinds of modes to obtain the AC IP address list.
Then, at operation S305, AP judges whether local AC IP address list is empty.Be sky if this is tabulated, then finish AC and find to handle.On the contrary, if should tabulation not be empty, then proceed to operation S310.
At operation S310, AP sends first AC IP address in local AC IP address list and finds request message.Then, at operation S320, confirm whether receive the discovery response message in the given time from this AC.If in the given time, do not receive the discovery response message, then, waited for for second scheduled time at operation S350.Then,, confirm whether also have next AC IP address in the local AC IP address list at operation S360, and if have, then at operation S370, this next one AC IP address in local AC IP address list is sent and is found request message.On the contrary; If at operation S360; Confirming has not had next AC IP address in the local AC IP address list, that is to say, the AC in all local AC IP address lists had sent the discovery request message; Then get back to operation S310, first AC IP address from local AC IP address list begins to restart to send the discovery request message again.
If S320 receives the discovery response message from AC in operation, then at operation S330, AP confirms in the discovery response message that receives, whether to comprise the AC IP address list.If do not find the AC IP address list, the AC that then shows this response is the first-selected AC according to current network configuration, thereby at operation S340, this transmission is found that the AC of response message is chosen to be related AC, accomplishes AC of the present invention and finds and related processing.
On the other hand; If at operation S330; Confirm in discovery response message, to have found the AC IP address list from AC; The AC that then shows this response is not the first-selected AC according to current network configuration, but this AC provides the related AC IP address list according to the AP according to priority orders configuration of the present invention.Thereby at operation S380, the AC IP address list in the discovery response message that AP will receive is saved in the head of local AC IP address list.Get back to operation S310 then, first AC IP address from local AC IP address list begins to restart to send the discovery request message again.
This shows; Find and correlating method that according to AC of the present invention AP one by one sends to AC and finds request message according to the sequence of addresses in the AC IP address list of obtaining; Rather than send simultaneously, thereby can be according to attempting carrying out the AC association from the AC priority of AC end configuration.
Fig. 6 illustrates the flow chart according to the processing of AC in the AC discovery of exemplary embodiment of the present invention and the correlating method.
Suppose to possess the function of mutual backup, mutual " monitoring " according to the AC in AC discovery of the present invention and the correlating method, and according to Fig. 4 and shown in Figure 5 the configuration.
With reference to Fig. 6, at operation S610, AC receives the discovery request message from one of AP1~AP3.At operation S620, AC confirms the VLAN under the said AP according to the IP address of the AP that sends said discovery request message.For example; If the discovery request message that the AP1 among Fig. 4 sends; Then any among AC1~AC3 can confirm that AP1 belongs to VLAN eth0-1.1 according to the IP address of AP1 after receiving the discovery request message that AP1 sends, and AP to attempt with VLAN be that first-selected AC among the eth0-1.1 is associated.According to another preferred embodiment of the invention, can be according to IP address and the subnet mask of AP, perhaps the identification information of other relevant AP or target AC confirms to send the affiliated VLAN of AP that finds request message.
At operation S630, AC search with AP under the AC IP address list of VLAN corresponding configuration, for example, the IP that disposes for eth0-1.1 among Fig. 5
AC1, IP
AC2, IP
AC3, then in operation S635, first AC IP address of extracting this AC IP address list.Whether then, at operation S640, the AC IP address of confirm extracting is this AC its own IP address.If its own IP address show that then this AC is the current first-selected AC according to the said VLAN of configuration, thereby at operation S650, making up the AC IP address list is empty discovery response message, the line correlation of going forward side by side is related to be provided with.For example, if AC1 receives the discovery request message from AP1, then after the check of operating S640, determine that it is the first-selected AC related, and respond with AP1.
If the AC IP address of confirm extracting at operation S640 is not this AC its own IP address, then proceed to operation S660, whether the AC of IP address that confirms to have extraction is in running order.If it is in running order to confirm to have the AC of IP address of extraction; Show that then this AC with IP address of extraction is the first-selected AC related with said AP; Thereby, make up the discovery response message be included in the AC IP address list that operation S630 finds, and send to corresponding AP at operation S670.For example, suppose that AC2 receives the discovery request message of AP1, then its first IP address ip in confirming as the AC IP address list of eth0-1.1 configuration at first
AC1After not being its own IP address (operation S640), confirm that again AC1 is in running order, thereby AC2 makes up and comprises and comprise IP successively
AC1, IP
AC2, IP
AC3The discovery response message of AC IP address list, AP1 is responded.
If confirm to have the AC not in running order (for example break down and can't respond) of the IP address of extraction at operation S660, then at operation S680, AC confirms in the AC IP address list that operation S630 finds, whether next AC IP address is arranged.If have, then at operation S685, AC extracts should next one AC IP address, proceeds to operation S640 then, proceeds to judge.For example, suppose that AC2 receives the discovery request message of AP1, then its first IP address ip in confirming as the AC IP address list of eth0-1.1 configuration at first
AC1After not being its own IP address (operation S640), it is in running order to confirm that again AC1 does not have, and then AC2 extracts the next AC IP address in the AC IP address list, i.e. IP
AC2Thereby, confirm finally that by operation S640 AC2 itself is current preferred related AC.On the contrary, if in the AC IP address list that operation S680 confirms to find, do not have next AC IP address, then finish according to AC association process of the present invention.
If increase an AC in the network; The AC that sees increase is as what role; If as backup AC, then need join the interface on the AC that increases in the existing virtual group, interface IP address joins the position after leaning in the AC IP address list of virtual group; After the forward AC of AC IP address list broke down, AP just can be associated with on this AC that increases newly; If as a main AC, the position before then can joining the interface IP address of this AC in the AC IP address list of virtual group if AP is related again, will be directly linked to this AC to go up, and with other AC as backing up AC.
If reduce by an AC in the network, then only need from the AC IP address list of each virtual group, delete the total interface address of this AC and get final product.
Below, another preferred embodiment that disposes AC according to AC discovery of the present invention and correlating method is described again.
According to this preferred embodiment of the invention, AP is divided according to focus, different hot belongs to different Management VLANs, from the corresponding interface access of AC.For example, the AP of focus 1 (with the APs1 sign), mapping management VLAN 1 is from the eth0-1.1 access of AC; The AP of focus 2 (with the APs2 sign), mapping management VLAN 2 is from the eth0-1.2 access of AC; ...; The AP of focus n (with the APsn sign), mapping management VLAN n is from the eth0-1.n access of AC.
Here, suppose 1<i '<I<j '<j<n '<n.Following at AC1, AC2, the last configuration of AC3 AC IP address list:
For eth0-1.1~eth0-1.i ', the AC IP address list is IP
AC1, IP
AC2, IP
AC3
For eth0-1. (i '+1)~eth0-1.i, the AC IP address list is IP
AC1, IP
AC3, IP
AC2
For eth0-1. (i+1)~eth0-1.j ', the AC IP address list is IP
AC2, IP
AC1, IP
AC3
For eth0-1. (j '+1)~eth0-1.j, the AC IP address list is IP
AC2, IP
AC3, IP
AC1
For eth0-1. (j+1)~eth0-1.n ', the AC IP address list is IP
AC3, IP
AC1, IP
AC2
For eth0-1. (n '+1)~eth0-1.n, the AC IP address list is IP
AC3, IP
AC2, IP
AC1
Like this, it is first-selected related AC with AC1 that APs1~APsi is set, and returns the AC1 management; These AP are divided into two parts, APs1~APsi ' with AC2, AC3 in support, APs (i '+1)~APsi is with AC3, AC2 in support; After guaranteeing the AC1 fault, these AP mean allocation are on AC2 and AC3.
It is first-selected related AC with AC2 that APs (i+1)~APsj is set, and returns the AC2 management; These AP are divided into two parts, APs (i+1)~APsj ' with AC1, AC3 in support, APs (j '+1)~APsj is with AC3, AC1 in support; After guaranteeing the AC2 fault, these AP mean allocation are on AC1 and AC3.
APs (j+1)~APsn is first-selected related AC with AC3, returns the AC3 management; These AP are divided into two parts, and APs (j+1)~APsn ' does reserve with AC1, AC2, and APs (n '+1)~APsn does reserve with AC2, AC1; After guaranteeing the AC3 fault, these AP mean allocation are on AC1 and AC2.
According to this preferred embodiment of the invention; Through being that each virtual group (VLAN) disposes the first-selected related AC and the AC of at least two reserve respectively; And can support the equally loaded of AC end through the form of mutual backup, residual A C still can make network normally work when being implemented in some AC and breaking down.
Therefore; Can find out from the foregoing description, when having at least 3 AC, can a said n virtual group be classified as m virtual groups (m<n) (like eth0-1.1~eth0-1.i ') more equably; For each virtual groups disposes the AC IP address list according to equal priority; And each virtual groups disposes each AC IP address list according to mutual different priority, and backup each other between each AC, then can equally loaded.
Though for exemplary purpose has been described exemplary embodiment of the present invention; But those skilled in the art will appreciate that; In not breaking away from, under the situation of disclosed scope of the present invention and spirit, can make various modifications, interpolation and alternative like claim.Effect of the present invention is not limited to above-mentioned effect, and other effects of not mentioning above can being expressly understood of the qualification that requires of those skilled in the art's accessory rights.