Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on this
Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example is applied, the scope of protection of the invention is belonged to.
For the ease of clearly describing the technical scheme of the embodiment of the present invention, in an embodiment of the present invention, employ " the
One ", the printed words such as " second " make a distinction to function or the essentially identical identical entry of effect or similar item, and those skilled in the art can
To understand that the printed words such as " first ", " second " are not defined to quantity and execution order.
The embodiment of the present invention provides a kind of network architecture, and referring in particular to shown in Fig. 1, the network architecture includes:Server,
Wireless access points (English:Wireless Access Point, referred to as:AP) equipment and terminal device, wherein:Here
AP equipment include but is not limited to AP1 and AP2, terminal device equally here is also included but is not limited to:Terminal 1, terminal 2, end
End 3, terminal 4 and terminal 5.As shown in Figure 1, above-mentioned terminal 1, terminal 2 and terminal 3 and AP1 data cube computations, the He of terminal 4
Terminal 5 and AP2 data cube computations, and with the data cube computation of above-mentioned AP equipment can be wired company for above-mentioned terminal device
Connect, or wireless connection.Illustrated by taking AP1 as an example, terminal 1 and AP1 wired connections, and terminal 2 and terminal 3 and AP1
Wireless connection.
Based on the network architecture diagram shown in Fig. 1, the forwarding of downlink message provided in an embodiment of the present invention is illustrated below,
Forwarded by the message of AP1 or AP2 to terminal from server, and AP1 is identical with the retransmission method of the downlink message in AP2,
Hereinafter illustrated by taking AP1 as an example.
The embodiment of the present invention provides a kind of retransmission method of downlink message, as shown in Fig. 2 the method includes:
201st, message to be forwarded is filtered out from the downlink message for receiving.
The target MAC (Media Access Control) address of the message to be forwarded filtered out in the embodiment of the present invention points to AP equipment itself or is set with AP
The terminal device of standby data cube computation or the target MAC (Media Access Control) address of message to be forwarded are not unicast address.Exemplary, the institute of reference picture 1
The Organization Chart for showing, by taking AP1 as an example, the destination address of message to be forwarded is directed to AP1 itself or the terminal 1, terminal being connected with AP1
2 or terminal 3 or message to be forwarded be to be sent to whole network or certain network segment (target MAC (Media Access Control) address of message i.e. to be forwarded is not
Unicast address).
Preferably, above-mentioned step 201 specifically includes herein below:
201a, search whether from terminal address interface table the target MAC (Media Access Control) address that there is downlink message.
If there is target MAC (Media Access Control) address or target MAC (Media Access Control) address in a1, terminal address interface table is the MAC ground of wireless AP devices
Location or target MAC (Media Access Control) address are not unicast address, then downlink message is message to be forwarded.
If not existing target MAC (Media Access Control) address in a2, terminal address interface table and target MAC (Media Access Control) address not being wireless AP devices
MAC Address and purpose MAC is unicast address, then abandon downlink message.
Terminal address interface table in the embodiment of the present invention include the MAC Address of the terminal being connected with AP device datas with
And the interface of AP equipment corresponding with the MAC Address of terminal.The renewal of the content in the terminal address interface table is connected by terminal
It is connected to what the disconnection This move in AP equipment or from AP equipment was triggered.
Exemplary, message to be forwarded is filtered in said process, by taking the AP1 in Fig. 1 as an example, the purpose MAC of downlink message
Address is the MAC Address of terminal 4, and because terminal 4 is not the terminal device on AP1, therefore terminal address in above-mentioned AP1 connects
Oral thermometer does not exist the target MAC (Media Access Control) address, and the target MAC (Media Access Control) address nor AP1 in itself, and target MAC (Media Access Control) address is unicast address,
Then need the packet loss, which achieves the purpose for abandoning unknown message as early as possible, it is to avoid it wastes cpu resource.
Optionally, when above-mentioned downlink message is ipv6 messages, be may be replaced by above-mentioned steps 201:By report
Literary protocol number filters the ipv6 messages.
202nd, the forwarding strategy of message to be forwarded is determined.
Preferably, above-mentioned step 202 specifically includes herein below:
202a1, search whether in terminal address interface table the target MAC (Media Access Control) address that there is message to be forwarded.
If in the absence of the target MAC (Media Access Control) address of message to be forwarded in 202a2, terminal address interface table, being forwarded using conventional
Strategy forwarding message to be forwarded.
If there is the target MAC (Media Access Control) address of message to be forwarded in 202a3, terminal address interface table, by message to be forwarded
Five-tuple information is matched with the occurrence in flow table, determines the object matching that the match is successful in flow table, and the occurrence includes five
At least one in tuple information;The corresponding forwarding strategy of object matching is obtained from flow table.
Above-mentioned message to be forwarded includes three classes, respectively:Be sent to the terminal device that is connected with AP device datas wait turn
Transmit messages text, be sent to AP equipment itself message to be forwarded and target MAC (Media Access Control) address be not unicast address message to be forwarded, its
In:Two class messages need to be forwarded using conventional forwarding strategy afterwards, and first kind message needs inquiry flow table according in flow table
The corresponding forwarding strategy of occurrence forwards such message to be forwarded, exemplary, and above-mentioned step 202 is specifically included in following
Hold:
If the target MAC (Media Access Control) address of 202b1, message to be forwarded points to the purpose MAC ground of AP equipment itself or message to be forwarded
Location is not unicast address, then forward message to be forwarded using conventional forwarding strategy.
If the target MAC (Media Access Control) address of 202b2, message to be forwarded points to the terminal device of AP device datas connection, will wait to turn
Literary five-tuple information of transmitting messages is matched with the occurrence in flow table, determines the object matching that the match is successful in flow table, the matching
Item includes at least one in five-tuple information;The corresponding forwarding strategy of object matching is obtained from flow table.
Optionally, in above-mentioned step 202a3 and 202b2, the triple of message to be forwarded or other information can also be used
It is determined forwarding strategy.And above-mentioned use five-tuple is matched only optimal scheme given here.
Optionally, above-mentioned flow table is the foundation for being shunted to downlink message, and its list item have recorded the occurrence of message
And forwarding strategy.In order to improve the efficiency of shunting, herein according only to message five-tuple (agreement, source IP, purpose IP, source port,
Destination interface) make message matching, retransmission method is also only divided into three kinds of fast-forwarding, original forwarding and discarding, finer to message
Policy control forwarded by bridge in policy controlling system realize.
Exemplary, the list item in above-mentioned flow table is regular related in policy controlling system, it is ensured that need by plan
The message to be forwarded of slightly control system treatment must be that so the policy control to these messages will not according to bridge forward process
It is impacted.The flow table can not be treated to E-Packet and make finer control simultaneously, and it may inevitably make partly need not
The message processed through policy controlling system is also processed according to bridge forwarding process, such as when policy controlling system needs treatment to be set to AP
The dns response messages of the terminal associated by standby wlan1 interfaces, due to above-mentioned flow table matching message five-tuple, root
May can not judge whether message to be forwarded is to wlan1 interfaces, therefore to other wlan interfaces according to the five-tuple of message
Dns response messages also can only according to bridge forward process, despite this, the design principle of flow table be ensure do not influence
Allowed on the premise of policy control functions message as few as possible according to bridge forwarding process forward, and allow most messages still by
Processed according to fast-forwarding mode, the treatment that they will not be forwarded through bridge again, therefore would not also be subject to the shadow of policy controlling system
Ring.
If the 203rd, the forwarding strategy of message to be forwarded be fast-forwarding strategy, and terminal address interface table in exist and wait turn
The MAC Address of terminal that the target MAC (Media Access Control) address of text of transmitting messages matches, then by message to be forwarded from corresponding with the MAC Address of terminal
AP equipment interface in send.
Exemplary, by taking AP1 as an example, the particular content in above-mentioned terminal address interface table is referred to following table 1.
Table 1
It should be noted that the content in above-mentioned table 1 is not limited solely to 3 above-mentioned terminals, and above-mentioned terminal
The interface of the corresponding AP1 of MAC Address be only herein to be illustrated with example, connect with AP equipment in specific application
The number of the terminal device for connecing is defined, and interface of the interface of the corresponding AP1 of terminal MAC address also by specific connection is defined.
Exemplary, when the forwarding strategy of the message to be forwarded determined is fast-forwarding strategy, and in above-mentioned table 1
In find with the target MAC (Media Access Control) address of message to be forwarded match be terminal 1 MAC Address, then the message to be forwarded is pressed
According to directly being sent in the wireline interface a1 of the corresponding AP equipment of MAC Address of terminal 1 so that the message to be forwarded need not be by unrestrained
Bridge forward process long, so as to improve the forwarding rate of message.
If the 204, the forwarding strategy of message to be forwarded is conventional forwarding strategy, message to be forwarded is submitted to protocol stack and is entered
Row bridge forward process.
Exemplary, above-mentioned bridge forwarding principle is as follows:The principle of bridge forwarding and the forwarding principle class of Layer 2 switch
Seemingly, it organizes together multiple network interfaces to form a bridge in logic, and AP equipment can create multiple bridges, but each net
Network interface can only add the bridge, each bridge to have respective bridge forward table.After message is from certain network interface access arrangement, root
Determine whether message enters bridge and forward according to whether the network interface adds bridge.In bridge forwarding process, first can be according to message
Incoming interface and source MAC carry out more new bridge forward table, then found out in bridge forward table with the target MAC (Media Access Control) address of message and connect
Mouthful, if being successfully found outgoing interface, message is sent from corresponding outgoing interface, if not finding outgoing interface, make on bridge
Remaining interface in addition to message incoming interface all sends the copy of a message.In order to some specific demands for meeting client typically can
Message policy controlling system is introduced, message can pass through the policy controlling system during bridge is forwarded.The policy controlling system
Respectively in the entrance of bridge forwarding, forwarding point and exit point are processed message.Here entrance refers to that message enters bridge
During forwarding process, forwarding point refers to when the outgoing interface of message is determined according to bridge forward table, and exit point refers to that message sends from outgoing interface
When.Each process points can have some rules in policy controlling system, and each rule represents a message control strategy, often
One strategy can each clear text is first matched with some occurrences, if all of occurrence all the match is successful then can be right
Message makees some strategy treatment, includes discarding, marks, and changes message or message is delivered into application layer makees deep message solution
Analysis.
It should be noted that the bridge forwarding principle employed in the embodiment of the present invention is bridge of the prior art forwarding, this
Sample can ensure that the message of the control strategy for needing special can be forwarded completely, it is to avoid lose the segment message.
The retransmission method of downlink message provided in an embodiment of the present invention, on the one hand filters by from the downlink message for receiving
Go out message to be forwarded so that message to be forwarded be sent to AP equipment itself or be connected with AP device datas terminal device or
The target MAC (Media Access Control) address of message to be forwarded is not unicast address, can so filter out unrelated message, and system is wasted so as to avoid
Central processing unit (the English of system:Central Processing Unit, referred to as:CPU) resource;On the other hand, by existing
On the basis of conventional forwarding strategy in technology, increase fast-forwarding strategy so that when it is determined that the forwarding strategy of message to be forwarded
It is the presence of the terminal matched with the target MAC (Media Access Control) address of message to be forwarded in fast-forwarding strategy, and terminal address interface table
MAC Address, then the message to be forwarded sent from the interface of AP equipment corresponding with the MAC Address of terminal so that the overwhelming majority
Message to be forwarded process incoming terminal by fast-forwarding strategy, and fraction message is reached by conventional forwarding strategy treatment
Terminal, is ensureing that message to be forwarded can forward all and not under the premise of controlling policy control function, Neng Gouti so as to reach
The purpose of the speed of message forwarding high.
Optionally, in order that the most of messages that must be sent to the terminal device being connected with AP equipment all carry out fast-forwarding,
So as to improve the speed of downlink message forwarding, the method also includes herein below:
If be not determined by the object matching with the five-tuple information match of message to be forwarded, using fast-forwarding
Strategy forwarding clear text.
Optionally, the terminal device for being sent to AP equipment in itself and being connected with AP equipment in order to be received to AP equipment
Message all filtered, so as to complete the process of follow-up downlink message forwarding, the method also includes herein below:
When it is determined that downlink message is capwap data messages, by capwap datagrams described in capwap protocol analysis
Text, and to capwap data messages parse after obtain internal layer message filter, filter out target MAC (Media Access Control) address point to AP equipment
Itself or the terminal device that is connected with AP device datas or target MAC (Media Access Control) address are not the internal layer messages of unicast address as treating
E-Packet.
Optionally, in order to ensure the integrality of above-mentioned capwap data messages, such that it is able to correctly parse internal layer
Message, before capwap data messages are parsed, the method also includes:Above-mentioned capwap data messages are pre-processed,
The pretreatment mainly includes checking the legitimacy of the capwap data messages, and to the outer layer ip bursts of the capwap data messages
Carry out Packet reassembling.
The associated description in the embodiment of the retransmission method based on the corresponding downlink messages of Fig. 2 is implemented to the present invention below
A kind of AP equipment that example is provided is introduced.The technical term related to above-described embodiment, concept etc. says in following examples
It is bright to be referred to the above embodiments, repeat no more here.
The embodiment of the present invention provides a kind of AP equipment, as shown in figure 3, the AP equipment 3 includes:Filtering module 31, divergent die
Block 32 and forwarding module 33, wherein:
Filtering module 31, for filtering out message to be forwarded from the downlink message for receiving.
The target MAC (Media Access Control) address of the message to be forwarded in the embodiment of the present invention point to AP equipment itself or with the AP equipment
The target MAC (Media Access Control) address of the terminal device of data cube computation or message to be forwarded is not unicast address.
Diverter module 32, the forwarding strategy for determining the message to be forwarded that filtering module is filtered out.
Forwarding module 33, if the forwarding strategy of message to be forwarded that diverter module is determined is fast-forwarding strategy, and eventually
There is the MAC Address of the terminal matched with the target MAC (Media Access Control) address of message to be forwarded in the address interface table of end, then for that will wait to turn
Sent in the interface of the corresponding AP equipment of MAC Address of Wen Congyu terminals of transmitting messages;If the message to be forwarded that diverter module is determined
Forwarding strategy be conventional forwarding strategy, then carry out bridge forward process for message to be forwarded to be submitted into protocol stack.
Terminal address interface table in the embodiment of the present invention include the MAC Address of the terminal being connected with AP device datas with
And the interface of AP equipment corresponding with the MAC Address of terminal.
It is exemplary, above-mentioned filtering module 31 specifically for:
The target MAC (Media Access Control) address that there is downlink message is searched whether from terminal address interface table;
If there is the target MAC (Media Access Control) address or the target MAC (Media Access Control) address in terminal address interface table is wireless AP devices
MAC Address or target MAC (Media Access Control) address are not unicast address, then downlink message is message to be forwarded.
If not existing the target MAC (Media Access Control) address in terminal address interface table and the target MAC (Media Access Control) address not being that wireless aps set
Standby MAC Address and target MAC (Media Access Control) address is unicast address, then abandon downlink message.
Preferably, above-mentioned diverter module 32 specifically for:
The target MAC (Media Access Control) address that there is message to be forwarded is searched whether in terminal address interface table.
If in the absence of the target MAC (Media Access Control) address of message to be forwarded in terminal address interface table, being turned using conventional forwarding strategy
Send out message to be forwarded.
If there is the target MAC (Media Access Control) address of message to be forwarded in terminal address interface table, by the five-tuple of message to be forwarded
Information is matched with the occurrence in flow table, determines the object matching that the match is successful in flow table, and occurrence includes five-tuple information
In at least one;The corresponding forwarding strategy of object matching is obtained from flow table.
It is exemplary, above-mentioned diverter module 32 specifically for:
If the target MAC (Media Access Control) address of message to be forwarded points to AP equipment itself or the target MAC (Media Access Control) address of message to be forwarded
Unicast address, then forward message to be forwarded using conventional forwarding strategy.
If the target MAC (Media Access Control) address of message to be forwarded points to the terminal device of AP device datas connection, by message to be forwarded
Five-tuple information matched with the occurrence in flow table, determine the object matching that the match is successful in flow table, occurrence includes five
At least one in tuple information;The corresponding forwarding strategy of object matching is obtained from flow table.
Optionally, above-mentioned diverter module 32, is additionally operable to be not determined by the five-tuple information match with message to be forwarded
Object matching when, then using fast-forwarding strategy forwarding clear text.
Optionally, as shown in figure 4, above-mentioned AP equipment 3 also includes:Parsing module 34, wherein:
Parsing module 34, when it is determined that downlink message is capwap (Chinese:Tunnel protocol) data message when, for passing through
Capwap protocol analysis capwap data messages, and the internal layer message obtained after the parsing of capwap data messages is sent to filtering
Module 31.
Optionally, as shown in figure 4, above-mentioned AP equipment 3 also includes pretreatment module 35, wherein:
Pretreatment module 35 is mainly used in checking the legitimacy of the capwap data messages, and to the capwap data messages
Outer layer ip bursts carry out Packet reassembling.
AP equipment provided in an embodiment of the present invention, on the one hand filters out report to be forwarded by from the downlink message for receiving
Text so that the message of the forwarding is terminal device the or to be forwarded report for being sent to AP equipment itself or being connected with AP device datas
The target MAC (Media Access Control) address of text is not unicast address, unrelated message can be so filtered out, so as to avoid the CPU of waste system
Resource;On the other hand, on the basis of by conventional forwarding strategy in the prior art, fast-forwarding strategy is increased so that when
The forwarding strategy of message to be forwarded is determined to there is the mesh with message to be forwarded in fast-forwarding strategy, and terminal address interface table
The MAC Address of terminal that matches of MAC Address, then by message to be forwarded from AP equipment corresponding with the MAC Address of terminal
Sent in interface so that the message to be forwarded of the overwhelming majority is by fast-forwarding strategy treatment incoming terminal, and fraction message
Incoming terminal is processed by conventional forwarding strategy, can all be forwarded and not influenceed plan in guarantee message to be forwarded so as to reach
Slightly under the premise of control function, it is possible to increase the purpose of the speed of message forwarding.
Above-mentioned AP equipment provided in an embodiment of the present invention possesses following 4 big processing functions:Pretreatment, dissection process, report
Literary filtration treatment and message forward process.As shown in figure 5, the downlink message first passes around the wired driving treatment in Fig. 5, warp
Cross after wired driving receives the downlink message, the 4 big functions of calling above-mentioned AP equipment to provide are carried out to the downlink message respectively
Treatment, and finally realize shunting data so that fraction message to be forwarded is processed still according to conventional forwarding strategy, i.e.,
Through the treatment of pass a bridge forwarding and policy controlling system;And most of message to be forwarded is processed according to fast-forwarding strategy, directly look for
To outlet, terminal device then is eventually arrived at by being sent from the outlet after the wireless treatment for driving.
Above-mentioned strategies are forwarded for general categories forwarding, with less handling process, it is not necessary to pass through
The treatment of gap bridge forwarding, also without going past the treatment of policy controlling system, but is forwarded directly to wireless driving from wired driving,
The forwarding rate of downlink message can be significantly improved.
In several embodiments provided herein, it should be understood that disclosed AP equipment, can be by other
Mode is realized.For example, the embodiment of AP equipment described above is only schematical, for example, the division of the module, only
Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple module or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed
Coupling each other or direct-coupling or communication connection can be the INDIRECT COUPLINGs or logical of device or module by some interfaces
Letter connection, can be electrical, mechanical or other forms.
The module that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as module
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of module therein can be according to the actual needs selected to realize the mesh of this embodiment scheme
's.
In addition, during each business board in each embodiment of the invention can be integrated in a processing unit, or
The independent physics of modules includes, it is also possible to which two or more modules are integrated in a unit.Above-mentioned integrated unit
Both can be realized in the form of hardware, it would however also be possible to employ hardware adds the form of software operation plate to realize.
The above-mentioned integrated unit realized in the form of software operation plate, can store in an embodied on computer readable storage
In medium.Above-mentioned software operation plate storage is in a storage medium, including some instructions are used to so that a computer equipment
(can be personal computer, server, or network equipment etc.) performs the part step of each embodiment methods described of the invention
Suddenly.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (English:Read-Only Memory, referred to as:
ROM), random access memory (English:Random Access Memory, referred to as:RAM), magnetic disc or CD etc. are various can
With the medium of store program codes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
Modified with to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.