Background technology
Along with the continuous maturation of WLAN technology, the application scale of wireless network is increasing, and particularly the situation that has a large amount of terminal equipments to exist, appearred in single AP WLAN (wireless local area network) in the maturation of thin AP wireless (wireless access node) framework networking application.As shown in Figure 1, in this AP WLAN (wireless local area network), be provided with: a wireless controller equipment, a router device, a plurality of wireless terminal, a plurality of server apparatus and a plurality of WAP (wireless access point); Require the separate unit wireless controller equipment to possess very jumbo mac address forwarding table.Usually Ethernet switching chip and the software forward module of the forwarded special use that integrated level is higher in wireless controller equipment, have all been adopted, this software forward module realizes the forwarding management of Ethernet data message, in this Ethernet data message, includes: target MAC (Media Access Control) address, source MAC and purpose IP address; Yet the mac address forwarding table capacity generally all is limited in the individual entry of 32K (being 32*1024) in special-purpose Ethernet switching chip, so the whole mac address forwarding table capacity of wireless controller equipment is difficult to do greatly.
At present, common way is two layers of Wireless Communication Equipment quantity of restriction maximum under existing hardware architecture or changes hardware architecture and with exchange chip, do not carry out accelerating network message processing forward.The shortcoming of the former way is the application scenario of having limited wireless controller, can not in large-scale WLAN (wireless local area network), use, and the wireless network of operator's (such as telecommunications, movement) normally has a large amount of two layers of Wireless Communication Equipment terminal quantity.The shortcoming of latter's way is to bring into play the hardware net forwarding performance of exchange chip, has increased function complexity and the performance load requirement of software development.
In prior art, disclose " a kind of mac address table method for building up and provider edge equipment ", seen that publication number is: 102164091A open day was: the Chinese patent of 2011-08-24, and this equipment comprises: PE receives the first service message by coupled PW; When determining that this first service message received is the specified type message, the foundation of cancellation to the address list item of the source MAC of this first service message, wherein, the specified type message is the broadcasting packet of unknown name unicast message, multicast message or non-gratuitous ARP packet.The scheme that adopts this inventive embodiments to provide, reduced the quantity of the address list item that PE sets up, thereby reduced the capacity of its mac address table.But this patent of invention describe to as if provider edge equipment, mainly refer to an access switch or router device; And patent of the present invention is described to as if wireless controller (AC) equipment.And the method that this patent is described is to reduce provider edge equipment the source MAC study of special packet to be reached to the purpose of the capacity requirement that has reduced its mac address table; The method that patent of the present invention is described is by the agency of the MAC Address to wireless terminal device, to reach the purpose of extended wireless controller equiment MAC Address capacity.In addition, the basis of this patent of invention is the message traffic feature of provider edge equipment; The basis of patent of the present invention is the tunnel forwarding model feature of wireless controller.
In prior art, also disclose " a kind of message forwarding method and device ", seen that publication number is: 102318290A open day was: the Chinese patent of 2012-01-11, and it relates to the field local area network (LAN), and the method comprises: receive user's message; The source MAC of described user's message is converted to virtual mac address, and the user's message after changing according to the target MAC (Media Access Control) address of described user's message forwards.This device comprises: receiver module, modular converter and forwarding module.A kind of message forwarding method also is provided, and the method comprises: receive user's message, judge whether the target MAC (Media Access Control) address of described user's message is virtual mac address; If the target MAC (Media Access Control) address of described user's message is virtual mac address, corresponding transmitting forwards described user's message according to described virtual mac address.The memory space of intermediate equipment MAC Address memory has been saved in this invention; But this invention is mainly by when receiving message, the designated bit position of learned addresses only, and forward according to this designated bit position, make while in the more network of subscriber equipment, carrying out message repeating, be not subjected to the restriction of hardware device capacity or ability, avoided the dilatation to the device mac address table, simplified the learning process to the irregular MAC Address of each subscriber equipment, reduced costs and safeguard when guaranteeing communication efficiency.Be not to use and act on behalf of the source MAC that MAC Address is replaced message in the present invention, thereby allow Ethernet switching chip think that the MAC Address of all wireless terminals (STA) is to act on behalf of MAC Address; The MAC Address that can allow AC device interior Ethernet switching chip not need to preserve a large amount of wireless terminals still can work, and can realize jumbo wireless controller equipment.
Summary of the invention
The technical problem to be solved in the present invention, be to provide a kind of method of capacity of extended wireless controller equiment mac address forwarding table, the purpose of the MAC Address capacity that it can the extended wireless controller equiment; Improved the operating efficiency of wireless controller equipment.
The present invention is achieved in that a kind of method of capacity of extended wireless controller equiment mac address forwarding table, described method is applied in an AP WLAN (wireless local area network), in described wireless controller equipment, be provided with a MAC Address proxy module, this MAC Address proxy module is realized: the corresponding relation of setting up target MAC (Media Access Control) address and purpose IP address in each Ethernet data message; And the source MAC in the Ethernet data message is replaced with to the MAC Address of acting on behalf of arranged in the MAC Address proxy module; Described method specifically comprises the steps:
Step 1, MAC proxy module carry out initialization, and arrange and act on behalf of MAC Address in the MAC proxy module; Described wireless controller equipment judgement is now to send the Ethernet data message or receive the Ethernet data message; If send the Ethernet data message, enter step 2; If receive the Ethernet data message, enter step 4;
One or more wireless terminal in step 2, AP WLAN (wireless local area network) by corresponding Ethernet data message after WAP (wireless access point) sends to wireless controller equipment, wireless controller equipment will carry out transmit operation, and the MAC Address proxy module in wireless controller equipment is associated the target MAC (Media Access Control) address in each Ethernet data message with corresponding purpose IP address; And the source MAC in each Ethernet data message is all replaced with to the described MAC Address of acting on behalf of;
After the Ethernet switching chip of step 3, wireless controller equipment receives the Ethernet data message after each replacement, and each Ethernet data message is sent to the corresponding server apparatus of each target MAC (Media Access Control) address; Whether a judgement server apparatus arbitrarily has the Ethernet data of transmission message, is to enter step 4; No, process ends;
One or more server apparatus in step 4, AP WLAN (wireless local area network) sends to wireless controller equipment by corresponding Ethernet data message through router, and this Ethernet data message is the Ethernet data message that step 3 is replaced; Wireless controller equipment will receive operation, after the MAC Address proxy module in wireless controller equipment receives each Ethernet data message, by the relation that be associated of target MAC (Media Access Control) address in step 2 with corresponding purpose IP address, revert to corresponding target MAC (Media Access Control) address by the Ethernet data message, acting on behalf of MAC Address;
Each Ethernet data message after step 5, wireless controller equipment will recover sends to corresponding wireless terminal through WAP (wireless access point).
The present invention has following advantage: the present invention is by the MAC Address proxy module at the inner establishment of wireless controller equipment wireless terminal device, external server equipment can only be seen and act on behalf of MAC Address, the wireless terminal device of maximum in WLAN (wireless local area network) is hidden in to the software forward inside of wireless controller equipment on logical view, uses and to act on behalf of MAC Address and replace relief they and PERCOM peripheral communication.At the MAC Address proxy module, realize the mapping table of the real MAC address of an IP address and wireless terminal device; Thereby reach the purpose of the MAC Address capacity of extended wireless controller equiment; Improved the operating efficiency of wireless controller equipment.
Embodiment
Refer to shown in Figure 2, the present invention is a kind of method of capacity of extended wireless controller equiment mac address forwarding table, described method is applied in an AP WLAN (wireless local area network), in described wireless controller equipment, be provided with a MAC Address proxy module, this MAC Address proxy module is realized: the corresponding relation of setting up target MAC (Media Access Control) address and purpose IP address in each Ethernet data message; And the source MAC in the Ethernet data message is replaced with to the MAC Address of acting on behalf of arranged in the MAC Address proxy module; Described method specifically comprises the steps:
Step 1, MAC proxy module carry out initialization, and arrange and act on behalf of MAC Address in the MAC proxy module; Described wireless controller equipment judgement is now to send the Ethernet data message or receive the Ethernet data message; If send the Ethernet data message, enter step 2; If receive the Ethernet data message, enter step 4;
One or more wireless terminal in step 2, AP WLAN (wireless local area network) by corresponding Ethernet data message after WAP (wireless access point) sends to wireless controller equipment, wireless controller equipment will carry out transmit operation, and the MAC Address proxy module in wireless controller equipment is associated the target MAC (Media Access Control) address in each Ethernet data message with corresponding purpose IP address; And the source MAC in each Ethernet data message is all replaced with to the described MAC Address of acting on behalf of;
After the Ethernet switching chip of step 3, wireless controller equipment receives the Ethernet data message after each replacement, and each Ethernet data message is sent to the corresponding server apparatus of each target MAC (Media Access Control) address; Whether a judgement server apparatus arbitrarily has the Ethernet data of transmission message, is to enter step 4; No, process ends;
One or more server apparatus in step 4, AP WLAN (wireless local area network) sends to wireless controller equipment by corresponding Ethernet data message through router, and this Ethernet data message is the Ethernet data message that step 3 is replaced; Wireless controller equipment will receive operation, after the MAC Address proxy module in wireless controller equipment receives each Ethernet data message, by the relation that be associated of target MAC (Media Access Control) address in step 2 with corresponding purpose IP address, by in the Ethernet data message, acting on behalf of MAC Address, revert to corresponding target MAC (Media Access Control) address (target MAC (Media Access Control) address corresponding to this purpose IP address searched in the purpose IP address be about in the Ethernet data message in the relation be associated, revert to by acting on behalf of MAC Address in the Ethernet data message target MAC (Media Access Control) address that this finds after finding);
Each Ethernet data message after step 5, wireless controller equipment will recover sends to corresponding wireless terminal through WAP (wireless access point).
In the present invention, being undertaken by the CAPWAP host-host protocol alternately between described WAP (wireless access point) and wireless controller equipment, this agreement is the agreement of controlling with the configuration wireless access point device; This protocol definition control channel and data tunnel; Described control channel function is: WAP (wireless access point) detects finds that wireless controller equipment, wireless controller equipment can carry out batch configuration management WAP (wireless access point); Described data tunnel function is: how the Ethernet data message completes the concentrated forwarding management of data service by the data tunnel of this agreement; Be that described wireless terminal sends to wireless controller equipment by corresponding Ethernet data message through the data tunnel of WAP (wireless access point) and CAPWAP host-host protocol.
In addition, the ethernet local area network agreement commonly used of using in WLAN (wireless local area network) comprises ARP agreement, IPv4 agreement, IPv6 agreement.The characteristics of these agreements are that message can extract MAC Address and IP address simultaneously.Utilize these characteristics in the software forward module of wireless controller equipment, to realize the MAC Address agent functionality.
When described wireless controller equipment is multi-service board machine frame form, need in each business board, one MAC proxy module be set equal correspondence; In each MAC proxy module, correspondence arranges one and acts on behalf of MAC Address; The MAC proxy module that each business board in wireless controller equipment is corresponding completes and receives the Ethernet data message or send the Ethernet data message; The step 1 that this MAC proxy module completes the concrete scheme that receives or send the Ethernet data message and method of the present invention is to 5 identical.
The invention will be further described below in conjunction with specific embodiment:
The first embodiment: refer to shown in Figure 3ly, wireless controller equipment sends the flow process of Ethernet data message.Wherein wireless terminal device logically belongs to wireless controller equipment inside, externally respectively with wireless access point device and server devices communicating.Ethernet switching chip forwarding part at wireless controller equipment does not just need to preserve a large amount of wireless terminal device MAC Address like this, and the MAC Address that only need to preserve wireless access point device and server apparatus, the total quantity of these equipment in a local area network (LAN) is generally several thousand.
The MAC proxy module carries out initialization, and arranges and act on behalf of MAC Address in the MAC proxy module; Described wireless controller equipment is now to send the Ethernet data message;
Two wireless terminals in the AP WLAN (wireless local area network) by corresponding Ethernet data message after WAP (wireless access point) sends to wireless controller equipment, wireless controller equipment will carry out transmit operation, and the MAC Address proxy module in wireless controller equipment is associated the target MAC (Media Access Control) address in each Ethernet data message with corresponding purpose IP address; And the source MAC in each Ethernet data message is all replaced with to the described MAC Address of acting on behalf of;
After the Ethernet switching chip of wireless controller equipment receives the Ethernet data message after each replacement, and each Ethernet data message is sent to the corresponding server apparatus of each target MAC (Media Access Control) address.
As can be drawn from Figure 3, can corresponding two wireless terminal devices (STA) at mac address forwarding table item of Ethernet switching chip module.After the message that wireless terminal device (STA) sends had passed through the MAC Address proxy module, source MAC was replaced, and unified the use acted on behalf of the MAC Address transmission.The Ethernet switching chip module is carried out source MAC study after receiving the message that will send, and from what two message datas, extract, is at this time all to act on behalf of MAC Address, so formed same mac address forwarding table item.
The second embodiment: refer to shown in Figure 4ly, wireless controller equipment receives the flow process of Ethernet data message.
The MAC proxy module carries out initialization, and arranges and act on behalf of MAC Address in the MAC proxy module; Described wireless controller equipment is now to receive the Ethernet data message;
Two server apparatus in the AP WLAN (wireless local area network) send to wireless controller equipment by corresponding Ethernet data message through router, the Ethernet data message of this Ethernet data message for replacing; Wireless controller equipment will receive operation, after the MAC Address proxy module in wireless controller equipment receives each Ethernet data message, by the relation that be associated of target MAC (Media Access Control) address with corresponding purpose IP address, by in the Ethernet data message, acting on behalf of MAC Address, revert to corresponding target MAC (Media Access Control) address (target MAC (Media Access Control) address corresponding to this purpose IP address searched in the purpose IP address be about in the Ethernet data message in the relation be associated, revert to by acting on behalf of MAC Address in the Ethernet data message target MAC (Media Access Control) address that this finds after finding);
Each Ethernet data message after wireless controller equipment will recover sends to corresponding wireless terminal through WAP (wireless access point).
That is to say that the MAC Address proxy module does opposite operation, according to the purpose IP address of message, search target MAC (Media Access Control) address in inner list item and then replace, give wireless terminal device equipment thereby recover original Ethernet message.
The 3rd embodiment: refer to shown in Figure 5, when wireless controller equipment is multi-service board machine frame form, the implementation of MAC proxy module.In this figure, describe one and possessed two business boards and the wireless controller equipment (AC) that complete machine exchange board forms.For arranging one, every business board acts on behalf of MAC Address, this is acted on behalf of MAC Address and represents the handled wireless terminal of this this business board (STA) business, and complete machine exchange board can be distributed to corresponding service message on corresponding business board according to the concrete numerical value of acting on behalf of MAC Address.For the situation that has N to open the business board, need to arrange N and act on behalf of MAC Address.
The foregoing is only preferred embodiment of the present invention, all equalizations of doing according to the present patent application the scope of the claims change and modify, and all should belong to covering scope of the present invention.