Between a kind of rack wireless controller customer service plate, method and device are shared in load equally
Technical field
The present invention relates to electronic communication field, particularly a kind of rack wireless controller userBetween business board, method and device are shared in load equally.
Background technology
In order to be more expressly understood the present invention, first for the general technology art in several this areasLanguage makes an explanation.
Interface board: the external unified interface of rack wireless controller complete machine, provides up-downgoing flowThe physical interface of turnover, is responsible for the forwarding of data, the functions such as service distributing.
Business board disposable plates: the veneer of being responsible for Business Processing in rack wireless controller. HaveHigh-performance polycaryon processor, high-speed internal memory, provides powerful traffic handing capacity, is complete machine industryThe core that business is processed.
WAP (AP, WirelessAccessPoint): also claim wireless bridge, wirelessGateway, as a bridge that is connected with spider lines and wireless network, by each wireless network visitorFamily end links together, and wireless network access network based on ethernet.
Radio Access Controller (AC, WirelessAccessControler): be in charge of nothingAP in spider lines, comprises and issues configuration, amendment relevant configured parameter etc., and by APThe wireless data of access forwards route processing.
VLAN(VirtualLocalAreaNetwork): VLAN is a kind of by officeTerritory net equipment is from being divided in logic the network segment one by one, thereby the data that realize virtual workgroup are handed overChange technology.
Rack wireless controller is generally by interface board, master control borad and polylith service processing board groupBecome. Adopt high-performance multi-core parallel concurrent processor as service process platform, high speed forward chip is doneFor data retransmission platform, provide operation level core stage traffic handing capacity.
Rack wireless controller is the main processing wireless data and wired of being responsible in whole networkThe work such as management, certification of conversion between data and wireless user and AP. When wireless useBetween family, AP, AC after normal association, user uplink business by AP by wireless dataSend to AC by cable network, first enter interface board, interface board is according in FrameBusiness is sent to master control borad by 802.1QVLAN mark, through the exchange plane of master control borad,The final business board disposable plates that arrives. Data enter the protocol stack of business board, and then find up connecingMouth arrives internet. Downlink business is added into 802.1QVLAN mark at service processing board equallyKnow, enter interface through the exchange plane of master control borad, arrive afterwards AP, finally send to nothingLine user. This normal data that has just realized wireless user and objective network is mutual.
In operation level core network, a rack wireless controller needs control and management conventionallyThousands of, even ten hundreds of AP. And these AP are generally with identical 802.1QVLAN mark, belongs to a double layer network, high-speed port by switch orAggregated links is docked with the interface board of AC, and all customer services are finally passed through AP, switchEnter AC with same VLAN mark. If these business are with same VLANMark enters different AC business boards, can bring to routing Design between plate and exchange plane forwardingVery large inconvenience. This just requires AC customer service can be diverted to different business flexiblyDisposable plates, realize rack wireless controller to customer service load share equally.
The most general current method is exactly at the Layer 2 switch place of AP access, and AP is dividedTo different VLAN, after switch, the business of different AP is stamped different VLANMark, enters AC. Forward different VLAN according to VLAN mark in AC insideBusiness be forwarded to different AC business boards, thereby realize the shunting of AP business.
Another scheme is that wireless traffic enters AC with same VLAN mark equally,Same VLAN and multiple service processing board are bound simultaneously, and wireless traffic arrives difference at randomService processing board. The downstream interface of service processing board is directly by two layers of transparent transmission of wireless traffic, orInterface configuration is become local mode by person, and the route of not carrying out inter-board interface in system is synchronous, separatelyProcess the local business that arrives. So also realize the shunting of AP business.
But the first scheme is brought very large inconvenience, in device upgrade in existing network networkingBefore, AP and the double layer network of general region have been disposed complete. Descending two layersNetwork many times only has a VLAN, and the shunting of this scheme just cannot realize.
First scheme, first AP flow is to be assigned randomly to different service processing boards, noCan the accurate load of guarantee share equally, AC can not realize the control completely to AP simultaneously. ThisKind of scheme is recommendation not in existing network generally.
Therefore, prior art be starved of a kind of can be by the nothing with same VLAN markLine service is diverted to the different business disposable plates in frame flexibly, thereby realizes complete machine list IPThe technology descending, customer service load is shared equally.
Summary of the invention
In view of problems of the prior art, the object of the invention be to provide a kind of rack withoutBetween lane controller customer service plate, method and device are shared in load equally.
According to an aspect of the present invention, provide a kind of rack wireless controller customer serviceBetween plate, method is shared in load equally, it is characterized in that comprising step:
S1, interface board carries out flow-dividing control to the uplink traffic of receiving, the phase in data intercept frameClose field information;
S2, calculates the relevant field information being truncated to according to the shunting rule of user's design;
S3, carries out Frame reconstruct according to result of calculation, amendment message corresponding field or interpolationExtra user-defined identification, thus make the uplink traffic that enters interface board meet shunting condition;
S4, the uplink traffic that docking oralia is about to send is carried out flow-dividing control.
Preferably, for downlink message, at interface board, place gathers message, carries out when upAn inverse process of shunting, after Frame is reconstructed, and then descendingly sends to corresponding AP,Reach wireless user.
Preferably, flow is corresponded to different according to the source MAC in wireless trafficVLANID, thus realize shunting.
Preferably, according to latter two bit of source MAC, all business are mapped to 4Individual different VLAN.
Preferably, flow is corresponded to different according to the VLANTAG field in messageVLANID, thus realize shunting.
Preferably, according to the PRI field in the 802.1QVLANTAG in message, by 3The PRI field mappings to 8 of a bit different VLAN.
Preferably, resolve the source MAC in customer flow, hash computing is carried out in alignment,Corresponding to different VLANID according to operation result shunts.
Preferably, described method is by arranging shunting on the interface board at rack wireless controllerModule realizes.
Preferably, described method is by the interface board and master control borad of rack wireless controllerDiverter module is set respectively to be realized.
Preferably, on the different service processing board of described rack wireless controller, interface existsWhile processing wireless message, configure same downstream IP address, use local mode, do not carry outSystem synchronization, processes the customer service of receiving separately.
According to a further aspect in the invention, provide a kind of rack wireless controller customer serviceBetween plate, device is shared in load equally, it is characterized in that comprising:
Entrance flow-dividing control unit, carries out flow-dividing control for docking the uplink traffic that oralia receives,Relevant field information in data intercept frame, sends related data and order to rule control listUnit; And the result of calculation of returning according to regular control module is carried out Frame reconstruct, amendment messageCorresponding field or add extra user-defined identification, thus make to enter the uplink traffic of interface boardMeet shunting condition;
Rule control module, for calculating according to the shunting rule of user's design, and will countCalculate result and return to entrance flow-dividing control unit;
Outlet flow-dividing control unit, the flow that is about to transmission for docking oralia carries out flow-dividing control.
Preferably, for downlink message, at interface board, place gathers message, carries out when upAn inverse process of shunting, after Frame is reconstructed, and then descendingly sends to corresponding AP,Reach wireless user.
Preferably, flow is corresponded to different according to the source MAC in wireless trafficVLANID, thus realize shunting.
Preferably, according to latter two bit of source MAC, all business are mapped to 4Individual different VLAN.
Preferably, flow is corresponded to different according to the VLANTAG field in messageVLANID, thus realize shunting.
Preferably, according to the PRI field in the 802.1QVLANTAG in message, by 3The PRI field mappings to 8 of a bit different VLAN.
Preferably, resolve the source MAC in customer flow, hash computing is carried out in alignment,Corresponding to different VLANID according to operation result shunts.
Preferably, described device is arranged on the interface board of described rack wireless controller.
Preferably, described device be arranged at respectively described rack wireless controller interface board andOn master control borad.
Preferably, on the different service processing board of described rack wireless controller, interface existsWhile processing wireless message, configure same downstream IP address, use local mode, do not carry outSystem synchronization, processes the customer service of receiving separately.
By the present invention, can will divide flexibly with the wireless traffic of same VLAN markFlow to the different business disposable plates in frame, thereby it is descending to realize complete machine list IP, customer serviceLoad is shared equally.
Brief description of the drawings
Fig. 1 is exemplified with between a kind of rack wireless controller of embodiment of the present invention customer service plateThe complete machine structure figure of device is shared in load equally;
Fig. 2 is exemplified with between a kind of rack wireless controller of embodiment of the present invention customer service plateThe structure chart of device is shared in load equally;
Fig. 3 is exemplified with a kind of preferred Diffluence Algorithm schematic diagram of the embodiment of the present invention;
Fig. 4 is exemplified with the another kind of preferred Diffluence Algorithm schematic diagram of the embodiment of the present invention;
Fig. 5 uses the PRI field in 802.1QVLANTAG exemplified with the embodiment of the present inventionThe mapping schematic diagram of shunting;
Fig. 6 is the schematic diagram by SMAC field mappings VLAN exemplified with the embodiment of the present invention;
Fig. 7 is the downlink traffic by SMAC field mappings VLAN exemplified with the embodiment of the present inventionConversion schematic diagram;
Fig. 8 is exemplified with between a kind of rack wireless controller of embodiment of the present invention customer service plateThe replacing structure figure of device is shared in load equally.
Detailed description of the invention
For above-mentioned purpose of the present invention, feature and advantage are become apparent more, below in conjunction with attachedThe present invention is further detailed explanation for figure and detailed description of the invention.
Fig. 1 is exemplified with between a kind of rack wireless controller of embodiment of the present invention customer service plateThe complete machine structure figure of device is shared in load equally.
As shown in Figure 1, the present invention realizes by a diverter module is set on the interface board of AC,First the wireless user's flow that enters AC arrives interface board when up, and at interface board, place entersDiverter module. Diverter module carries out high speed to Frame, and high precision coupling and reconstruct, makeThe flow that must export is added into different 802.1QVLAN marks, then enters master control borad,And then arrival service processing board, and then up arrival objective network. Downlink traffic is entering interfaceWhen plate, carry out message and gather, thereby send to wireless user.
Fig. 2 is exemplified with between a kind of rack wireless controller of embodiment of the present invention customer service plateThe structure chart of device is shared in load equally, i.e. above-mentioned diverter module. As shown in Figure 2, described deviceCarry out following flow process:
Entrance flow-dividing control unit docking oralia receives that flow carries out flow-dividing control, data intercept frameThe information such as 802.1Q field, source MAC field, send related data and orderGive regular control module;
Rule control module calculates according to the shunting rule of user's design, and by result of calculationReturn to entrance flow-dividing control unit;
Entrance flow-dividing control unit carries out Frame reconstruct according to returning results, amendment message correspondenceField or add extra user-defined identification, thus make the flow that enters interface board meet shuntingCondition;
The flow that docking oralia in outlet flow-dividing control unit is about to send carries out flow-dividing control, in factExisting process is consistent with entrance flow-dividing control unit place principle, and the message sending out the most at last is with spyFixed point traffic identifier, meets shunting condition.
About shunting rule set in above-mentioned regular control module, in the present invention, can adopt manyPlant algorithm, it will be understood by those skilled in the art that any available shunting rule all can be used for realizingThe present invention, following examples, only for the object of signal, are not intended to form for restriction of the present invention.
User uplink message Diffluence Algorithm, can be according to the source in wireless traffic in diverter moduleVLANTAG field in MAC Address or message is shunted.
Accompanying drawing 3 is exemplified with a kind of preferred Diffluence Algorithm schematic diagram of the embodiment of the present invention.
As shown in Figure 3, by analyzing the source MAC in message, flow is shared equally notIn same VLAN, source MAC in to message (address of user's corresponding A P)In analytic process, can get the different field in MAC Address according to user's flexible configuration,For example use latter two bit of MAC Address all business can be mapped to 4 differencesVLAN. Like this can be according to the SMAC address characteristic in different messages by different flowConvert different VLAN to, realize shunting.
Accompanying drawing 4 is exemplified with the another kind of preferred Diffluence Algorithm schematic diagram of the embodiment of the present invention.
As shown in Figure 4, for example can be according to the 802.1QVLANTAG in user uplink messageIn PRI field (UserPriority) shunt.
PRI field takies 3 bit, and the priority defining in 802.1P agreement has 8 kinds,Limit priority is 7, is applied to key network traffics, as RIP (RIP)Routing table update with Open Shortest Path First (OSPF) agreement. Priority 6 and 5 is mainBe used for delay-sensitive application program, as interactive video and voice. Priority 4 is main to 1For controlled load application program, as streamed multimedia and key service traffics etc. PriorityThe 0th, default value, and automatically enable in the situation that other priority value is not set.
The PRI field that we get is wherein shone upon, and Fig. 5 uses exemplified with the embodiment of the present inventionThe mapping schematic diagram that PRI field in 802.1QVLANTAG is shunted.
Preferably, in message, PRI field can be added voluntarily by AP side, or by under ACSend out rule to AP, add according to rule, can establish not according to the regulation of 802.1PPut, for example we only use front 4 priority etc.
In addition, preferred, the embodiment of the present invention provides the third signal Diffluence Algorithm again. ResolveSMAC in customer flow, hash computing is carried out in alignment, and this is applicable to have in existing networkA large amount of AP and use different size, different vendor, the random situation of MAC Address.SMAC is carried out to hash computing, shunt according to operation result, can more effective guaranteeThe load balancing of business between different business plate. But the hash computing in diverter module alsoExistent defect, such as taking more CPU, memory source.
Diffluence Algorithm is mainly resolved the heading of user uplink flow, can be according to existing networkVarying environment, carries out flexible configuration, realizes effectively shunting under different scenes. At this, weCarry out exemplary introduction with the better simply Diffluence Algorithm of the first. All customer services enter interfaceWhen plate, all with vlanM mark, in the entrance flow-dividing control unit of interface board, message is separatedAnalyse, take out the SMAC field of message, send to regular control module; Rule control moduleGet latter two bit in SMAC, be mapped as vlanA, vlanB, vlanC. As attachedShown in Fig. 6:
In SMACa1, SMACa2, SMACa3, latter two bit is 00;
In SMACb1, SMACb2, SMACb3, latter two bit is 01;
In SMACc1, SMACc2, SMACc3, latter two bit is 10.
In like manner, outlet flow-dividing control unit is according to the result of calculation of regular control module, by flowStamp different 802.1QVLAN mark vlanA, vlanB, vlanC, message reconstruct is completeAfter becoming, sent to master control borad. In the exchange plane of master control borad, message is respectively by passage 1, logicalRoad 2, passage 3 forward, and finally arrive service processing board with different VLAN marks.
On different service processing boards, interface, in the time processing wireless message, can configure sameDownstream IP address, is used local mode, does not carry out system synchronization, processes separately the use of receivingFamily business. Thereby realize, the load of customer service is shared equally.
User's downlink message Diffluence Algorithm, service processing board is by this plate interface message after treatmentRespectively with vlanA, vlanB, the several different VLAN marks of vlanC. Respectively through mainControl plate 3 passages be forwarded to interface board, need in the entrance flow-dividing control unit of interface board byMessage gathers, an inverse process of shunting when namely up, in Diffluence Algorithm according toVID field in VLAN mark is shunted, and principle as shown in Figure 7.
After Frame is reconstructed, the VLAN mark in flow is reduced, and then descendingDeliver to corresponding AP, reach wireless user.
Diverter module is a high priority system module in system, adopts high efficiency shunting to calculateMethod, can realize the front 128 byte exact matchings of Frame, surface speed forwarding. Current scheme is excellentFirst adopt according to VID field in the MAC Address of Frame and VLAN mark and divideStream, follow-up can expansion for the cascade of other fields of message and system, thus realizeMore high precision, more flexibly Diffluence Algorithm.
Preferably, consider that interface board may exist pressure mistake in the time of large flow in actual applicationsLarge problem, can be designed to diverter module two parts real on interface board and master control borad respectivelyExisting, thus the traffic pressure of interface board shared. Its structure as shown in Figure 8.
Be more than the detailed description that the preferred embodiments of the present invention are carried out, but this area is commonTechnical staff should be appreciated that within the scope of the present invention, and guided by the spirit, various improvement,It is all possible adding and replacing, for example, use algorithm, the use that can realize functional purpose of the same raceDifferent programming language (as C, C++, Java etc.) realizations etc. These are all of the present inventionIn the protection domain that claim limits.