CN106685827A - Downlink message forwarding method and AP device - Google Patents

Downlink message forwarding method and AP device Download PDF

Info

Publication number
CN106685827A
CN106685827A CN201611160772.7A CN201611160772A CN106685827A CN 106685827 A CN106685827 A CN 106685827A CN 201611160772 A CN201611160772 A CN 201611160772A CN 106685827 A CN106685827 A CN 106685827A
Authority
CN
China
Prior art keywords
message
address
forwarded
terminal
access control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611160772.7A
Other languages
Chinese (zh)
Other versions
CN106685827B (en
Inventor
赵森林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201611160772.7A priority Critical patent/CN106685827B/en
Publication of CN106685827A publication Critical patent/CN106685827A/en
Application granted granted Critical
Publication of CN106685827B publication Critical patent/CN106685827B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/622Queue service order

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiments of the invention provide a downlink message forwarding method and an AP device, relate to the technical field of communication, and aim to improve the speed of message forwarding. The method comprises the following steps: a wireless access point AP device filters out a message to be forwarded from received downlink messages, wherein the destination MAC address of the message to be forwarded points to the AP device or a terminal device in data connection with the AP device or the destination MAC address of the message to be forwarded is not a unicast address; determining the forwarding strategy of the message to be forwarded; if the forwarding strategy of the message to be forwarded is a fast forwarding strategy and there is a terminal MAC address matching the destination MAC address of the message to be forwarded in a terminal address interface table, sending the message to be forwarded from the interface of an AP device corresponding to the terminal MAC address; and if the forwarding strategy of the message to be forwarded is a conventional forwarding strategy, submitting the message to be forwarded to a protocol stack for bridge forwarding. The method and the device are applied to downlink message forwarding.

Description

The retransmission method and AP equipment of a kind of downlink message
Technical field
The present invention relates to communication technical field, more particularly to a kind of downlink message retransmission method and AP equipment.
Background technology
In a distributed system, wireless access points (English:Wireless Access Point, referred to as:AP) equipment It is usually operated under bridge mode, wireless stations and Transmission system is connected by bridging engine, is responsible in wireless and wired Jie Converted frames between matter.This bridge joint mode generally uses simple two layers of forwarding mechanism, with forward efficiency relatively higher.
The bridge forwarding principle of AP equipment is similar with the forwarding principle of Layer 2 switch, specifically, it is by multiple network interfaces Organize together to form a bridge in logic, AP equipment can create multiple bridges, but each network interface can only add one Bridge, each bridge has respective bridge forward table.After message is from certain network interface access arrangement, whether added according to the network interface Bridge is entered and has determined whether message enters bridge forwarding.In bridge forwarding process, first can be according to the incoming interface of message and source MAC Carry out more new bridge forward table, then outgoing interface is searched in bridge forward table with the target MAC (Media Access Control) address of message, if be successfully found out connect Mouthful, then message is sent from corresponding outgoing interface, if not finding outgoing interface, make remaining on bridge in addition to message incoming interface Interface all sends the copy of a message.
In order to some specific demands for meeting client can typically introduce message policy controlling system, the mistake that message is forwarded in bridge Cheng Zhonghui passes through the policy controlling system.The policy controlling system is respectively in the entrance of bridge forwarding, forwarding point and exit point pair Message is processed.Here when entrance refers to that message enters bridge forwarding process, forward point to refer to and determined according to bridge forward table During the outgoing interface of message, exit point refer to message from outgoing interface send when.Each process points can have one in policy controlling system A little rules, each rule represents a message control strategy, and each strategy first can match each and treat with some occurrences Treatment message, if all of occurrence all the match is successful message can then be made some strategy treatment, include discardings, mark, Change message or message is delivered to application layer and make deep message parsing.
But, inventor has found, above-mentioned bridge repeater system has the following disadvantages:On the one hand, policy controlling system may Only need to process the message of only a few, most messages are actual not to need any control strategy, but still can be controlled by strategy The comparison of each rule of system processed, therefore the forward efficiency of these messages receives unnecessary influence;On the other hand, for Message in the downstream direction, AP equipment only need to processing intent MAC Address be to association wireless stations or to equipment from The message of body, but above-mentioned bridge repeater system can't abandon those unknown unicast messages, and these messages are due in bridge forward table In there is no outgoing interface, they can be broadcast on all other interface on bridge, when these messages are more, can be badly influenced The forwarding of normal message, so as to reduce the efficiency of message forwarding.
The content of the invention
Embodiments of the invention provide the retransmission method and AP equipment of a kind of downlink message, it is intended to improve the speed of message forwarding Rate.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
A kind of first aspect, there is provided retransmission method of downlink message, including:
Wireless access points AP equipment filters out message to be forwarded, the message to be forwarded from the downlink message for receiving Target MAC (Media Access Control) address point to the AP equipment itself or the terminal device or described to be forwarded being connected with the AP device datas The target MAC (Media Access Control) address of message is not unicast address;
Determine the forwarding strategy of the message to be forwarded;
If the forwarding strategy of the message to be forwarded be fast-forwarding strategy, and terminal address interface table in exist with it is described The MAC Address of the terminal that the target MAC (Media Access Control) address of message to be forwarded matches, then by the message to be forwarded from the terminal Sent in the interface of the corresponding AP equipment of MAC Address, the terminal address interface table includes and the AP device datas The interface of the MAC Address of the terminal of connection and AP equipment corresponding with the MAC Address of the terminal;
If the forwarding strategy of the message to be forwarded is conventional forwarding strategy, the message to be forwarded is submitted to agreement Stack carries out bridge forward process.
A kind of second aspect, there is provided AP equipment, including:
Filtering module, for filtering out message to be forwarded, the purpose of the message to be forwarded from the downlink message for receiving MAC Address points to the AP equipment itself or the terminal device that is connected with the AP device datas or the message to be forwarded Target MAC (Media Access Control) address is not unicast address;
Diverter module, the forwarding strategy for determining message described to be forwarded that the filtering module is filtered out;
Forwarding module, if the forwarding strategy of message described to be forwarded that the diverter module is determined is fast-forwarding plan Slightly, and in terminal address interface table there is the MAC Address of the terminal matched with the target MAC (Media Access Control) address of the message to be forwarded, Then it is used to send the message to be forwarded from the interface of the AP equipment corresponding with the MAC Address of the terminal, it is described Terminal address interface table includes the MAC Address of the terminal being connected with the AP device datas and the MAC ground with the terminal The interface of the corresponding AP equipment in location;If the forwarding strategy of the message described to be forwarded that the diverter module is determined is forwarded for conventional Strategy, then carry out bridge forward process for the message to be forwarded to be submitted into protocol stack.
The retransmission method and AP equipment of downlink message provided in an embodiment of the present invention, on the one hand by the descending report from reception Message to be forwarded is filtered out in text so that the message of the forwarding is the end for being sent to AP equipment itself or being connected with AP device datas End equipment or message to be forwarded target MAC (Media Access Control) address is not unicast address, unrelated message can be so filtered out, so as to keep away The central processing unit for having exempted to waste system is (English:Central Processing Unit, referred to as:CPU) resource;On the other hand, On the basis of conventional forwarding strategy in the prior art, increase fast-forwarding strategy so that when it is determined that message to be forwarded Forwarding strategy to there is the target MAC (Media Access Control) address phase with message to be forwarded in fast-forwarding strategy, and terminal address interface table The MAC Address of the terminal matched somebody with somebody, then send message to be forwarded from the interface of AP equipment corresponding with the MAC Address of terminal, makes Obtain most messages to be forwarded and process incoming terminal by fast-forwarding strategy, and fraction message is by conventional forwarding plan Incoming terminal is slightly processed, so as to reach under the premise of ensureing that message to be forwarded can be forwarded all and controlling policy is not controlled, The purpose of the speed of message forwarding can be improved.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be in embodiment or description of the prior art The required accompanying drawing for using is briefly described, it should be apparent that, drawings in the following description are only some realities of the invention Example is applied, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is a kind of network architecture diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of method flow diagram of the retransmission method of downlink message provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of AP equipment provided in an embodiment of the present invention;
Fig. 4 is the structural representation of another AP equipment provided in an embodiment of the present invention;
Fig. 5 is a kind of path flow graph of AP device forwards message provided in an embodiment of the present invention.
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.

Claims (10)

1. a kind of retransmission method of downlink message, it is characterised in that including:
Wireless access points AP equipment filters out message to be forwarded, the mesh of the message to be forwarded from the downlink message for receiving MAC Address point to the AP equipment itself or the terminal device or the message to be forwarded that are connected with the AP device datas Target MAC (Media Access Control) address be not unicast address;
Determine the forwarding strategy of the message to be forwarded;
If the forwarding strategy of the message to be forwarded is waited to turn to exist in fast-forwarding strategy, and terminal address interface table with described The MAC Address of the terminal that literary target MAC (Media Access Control) address of transmitting messages matches, then by the message to be forwarded from the MAC with the terminal Sent in the interface of the corresponding AP equipment in address, the terminal address interface table includes being connected with the AP device datas Terminal MAC Address and the interface of AP equipment corresponding with the MAC Address of the terminal;
If the forwarding strategy of the message to be forwarded is conventional forwarding strategy, the message to be forwarded is submitted to protocol stack and is entered Row bridge forward process.
2. method according to claim 1, it is characterised in that the forwarding strategy of the determination message to be forwarded is specific Including:
Search whether there is the target MAC (Media Access Control) address of the message to be forwarded in the terminal address interface table;
If in the absence of the target MAC (Media Access Control) address of the message to be forwarded in terminal address interface table, being turned using conventional forwarding strategy Send out message to be forwarded described;
If there is the target MAC (Media Access Control) address of the message to be forwarded in terminal address interface table, by the five of the message to be forwarded Tuple information is matched with the occurrence in flow table, determines the object matching that the match is successful in the flow table, the occurrence bag Include at least one in five-tuple information;The corresponding forwarding strategy of the object matching is obtained from flow table.
3. method according to claim 2, it is characterised in that methods described also includes:
If be not determined by the object matching with the five-tuple information match of the message to be forwarded, using fast-forwarding The strategy forwarding clear text.
4. method according to claim 1, it is characterised in that described to filter out report to be forwarded from the downlink message for receiving Text is specifically included:
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 the terminal address interface table is wireless AP devices MAC Address or the target MAC (Media Access Control) address are not unicast address, then the downlink message is message to be forwarded;
If not existing the target MAC (Media Access Control) address in the terminal address interface table and the target MAC (Media Access Control) address not being that wireless aps set The standby MAC Address and target MAC (Media Access Control) address is unicast address, then abandon the downlink message.
5. method according to claim 1, it is characterised in that the wireless access points AP equipment is descending from what is received Message to be forwarded is filtered out in message to specifically include:
When it is determined that downlink message is capwap data messages, by capwap data messages described in capwap protocol analysis, and The internal layer message obtained after being parsed to capwap data messages is filtered, and is filtered out target MAC (Media Access Control) address and is pointed to the AP equipment Itself or the terminal device or target MAC (Media Access Control) address that are connected with the AP device datas are not the internal layer message conducts of unicast address Message to be forwarded.
6. a kind of AP equipment, it is characterised in that including:
Filtering module, for filtering out message to be forwarded, the purpose MAC ground of the message to be forwarded from the downlink message for receiving The location sensing AP equipment itself or the terminal device being connected with the AP device datas or the purpose of the message to be forwarded MAC Address is not unicast address;
Diverter module, the forwarding strategy for determining message described to be forwarded that the filtering module is filtered out;
Forwarding module, if the forwarding strategy of message described to be forwarded that the diverter module is determined is fast-forwarding strategy, and There is the MAC Address of the terminal matched with the target MAC (Media Access Control) address of the message to be forwarded in terminal address interface table, be then used for The message to be forwarded is sent from the interface of the AP equipment corresponding with the MAC Address of the terminal, the terminal ground Location interface table includes the MAC Address of terminal connected with the AP device datas and corresponding with the MAC Address of the terminal AP equipment interface;If the forwarding strategy of the message described to be forwarded that the diverter module is determined is conventional forwarding strategy, Then bridge forward process is carried out for the message to be forwarded to be submitted into protocol stack.
7. equipment according to claim 6, it is characterised in that the diverter module specifically for:
Search whether there is the target MAC (Media Access Control) address of the message to be forwarded in terminal address interface table;
If in the absence of the target MAC (Media Access Control) address of the message to be forwarded in terminal address interface table, being turned using conventional forwarding strategy Send out message to be forwarded described;
If there is the target MAC (Media Access Control) address of the message to be forwarded in terminal address interface table, by the five of the message to be forwarded Tuple information is matched with the occurrence in flow table, determines the object matching that the match is successful in the flow table, the occurrence bag Include at least one in five-tuple information;The corresponding forwarding strategy of the object matching is obtained from flow table.
8. equipment according to claim 7, it is characterised in that
The diverter module, if being additionally operable to be not determined by the object matching with the five-tuple information match of the message to be forwarded Xiang Shi, then forward the clear text using fast-forwarding strategy.
9. equipment according to claim 6, it is characterised in that the filtering module 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 the terminal address interface table is wireless AP devices MAC Address or the target MAC (Media Access Control) address are not unicast address, then the downlink message is message to be forwarded;
If not existing the target MAC (Media Access Control) address in the terminal address interface table and the target MAC (Media Access Control) address not being that wireless aps set The standby MAC Address and target MAC (Media Access Control) address is unicast address, then abandon the downlink message.
10. equipment according to claim 6, it is characterised in that also include:
Parsing module, when it is determined that downlink message is capwap data messages, for by described in capwap protocol analysis Capwap data messages, and the internal layer message obtained after capwap data messages are parsed is sent to the filtering module and carried out Filter.
CN201611160772.7A 2016-12-15 2016-12-15 Downlink message forwarding method and AP (access point) equipment Active CN106685827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611160772.7A CN106685827B (en) 2016-12-15 2016-12-15 Downlink message forwarding method and AP (access point) equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611160772.7A CN106685827B (en) 2016-12-15 2016-12-15 Downlink message forwarding method and AP (access point) equipment

Publications (2)

Publication Number Publication Date
CN106685827A true CN106685827A (en) 2017-05-17
CN106685827B CN106685827B (en) 2020-02-18

Family

ID=58869330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611160772.7A Active CN106685827B (en) 2016-12-15 2016-12-15 Downlink message forwarding method and AP (access point) equipment

Country Status (1)

Country Link
CN (1) CN106685827B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900429A (en) * 2018-06-12 2018-11-27 北京奇安信科技有限公司 A kind of more policy control methods of shared access and device
CN109922466A (en) * 2019-03-25 2019-06-21 深圳市联智物联网科技有限公司 A method of realizing directional data access in multinode wireless transmitting system
CN110035470A (en) * 2019-03-25 2019-07-19 深圳市联智物联网科技有限公司 A kind of node device for realizing directional data access in multinode wireless transmitting system
CN114629791A (en) * 2020-12-21 2022-06-14 亚信科技(中国)有限公司 Data processing method and device, electronic equipment and computer readable storage medium
CN114697160A (en) * 2020-12-28 2022-07-01 国家计算机网络与信息安全管理中心 Tunnel message processing method and device
CN114760166A (en) * 2020-12-28 2022-07-15 国家计算机网络与信息安全管理中心 Tunnel message processing method and device
CN116055586A (en) * 2022-08-15 2023-05-02 荣耀终端有限公司 Fragment message matching method, router and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459601A (en) * 2008-12-04 2009-06-17 福建星网锐捷网络有限公司 Method for forwarding packet by network bridge and network bridge therefor
CN101510853A (en) * 2009-04-09 2009-08-19 杭州华三通信技术有限公司 Method and apparatus for implementing WLAN wireless bridge, and wireless access client terminal
CN102281594A (en) * 2011-09-06 2011-12-14 华为技术有限公司 Message forwarding method, wireless access point (AP) and message forwarding system
KR20130116475A (en) * 2012-04-03 2013-10-24 유넷시스템주식회사 System for blocking internal network intrusion and method the same
CN103988543A (en) * 2013-12-11 2014-08-13 华为技术有限公司 Control device in wireless local area network, network system, and service processing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459601A (en) * 2008-12-04 2009-06-17 福建星网锐捷网络有限公司 Method for forwarding packet by network bridge and network bridge therefor
CN101510853A (en) * 2009-04-09 2009-08-19 杭州华三通信技术有限公司 Method and apparatus for implementing WLAN wireless bridge, and wireless access client terminal
CN102281594A (en) * 2011-09-06 2011-12-14 华为技术有限公司 Message forwarding method, wireless access point (AP) and message forwarding system
KR20130116475A (en) * 2012-04-03 2013-10-24 유넷시스템주식회사 System for blocking internal network intrusion and method the same
CN103988543A (en) * 2013-12-11 2014-08-13 华为技术有限公司 Control device in wireless local area network, network system, and service processing method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900429A (en) * 2018-06-12 2018-11-27 北京奇安信科技有限公司 A kind of more policy control methods of shared access and device
CN109922466A (en) * 2019-03-25 2019-06-21 深圳市联智物联网科技有限公司 A method of realizing directional data access in multinode wireless transmitting system
CN110035470A (en) * 2019-03-25 2019-07-19 深圳市联智物联网科技有限公司 A kind of node device for realizing directional data access in multinode wireless transmitting system
CN110035470B (en) * 2019-03-25 2020-12-01 深圳市联智物联网科技有限公司 Node equipment for realizing directional data access in multi-node wireless transmission system
CN114629791A (en) * 2020-12-21 2022-06-14 亚信科技(中国)有限公司 Data processing method and device, electronic equipment and computer readable storage medium
CN114629791B (en) * 2020-12-21 2024-03-26 亚信科技(中国)有限公司 Data processing method, device, electronic equipment and computer readable storage medium
CN114697160A (en) * 2020-12-28 2022-07-01 国家计算机网络与信息安全管理中心 Tunnel message processing method and device
CN114760166A (en) * 2020-12-28 2022-07-15 国家计算机网络与信息安全管理中心 Tunnel message processing method and device
CN114697160B (en) * 2020-12-28 2023-05-26 国家计算机网络与信息安全管理中心 Tunnel message processing method and device
CN114760166B (en) * 2020-12-28 2023-05-26 国家计算机网络与信息安全管理中心 Tunnel message processing method and device
CN116055586A (en) * 2022-08-15 2023-05-02 荣耀终端有限公司 Fragment message matching method, router and storage medium
CN116055586B (en) * 2022-08-15 2023-09-01 荣耀终端有限公司 Fragment message matching method, router and storage medium

Also Published As

Publication number Publication date
CN106685827B (en) 2020-02-18

Similar Documents

Publication Publication Date Title
CN106685827A (en) Downlink message forwarding method and AP device
CN103428094B (en) Message forwarding method in open flows OpenFlow system and device
US9356844B2 (en) Efficient application recognition in network traffic
CN101047714B (en) Apparatus and method for processing network data
US10805390B2 (en) Automated mirroring and remote switch port analyzer (RSPAN) functions using fabric attach (FA) signaling
US20070058624A1 (en) Method for controlling packet forwarding in a routing device
CN102197627A (en) Improved convergence of multicast traffic
CN101141304A (en) Management method and equipment of ACL regulation
EP3200398B1 (en) Automated mirroring and remote switch port analyzer (rspan)/encapsulated remote switch port analyzer (erspan) functions using fabric attach (fa) signaling
EP3832960B1 (en) Establishment of fast forwarding table
CN107615710A (en) Direct reply action in SDN switch
CN106330742A (en) Flow control method and network controller
CN100466606C (en) Unknown multicasting message processing method
CN100446509C (en) Method for realizing re-oriented message correctly repeat and first-part and second-part
CN107645391B (en) Port configuration method and device of interface expansion equipment
CN107948104A (en) The method and switching equipment that message forwards in a kind of network address translation environment
JP2005150866A (en) Wireless communication system, wireless base station accommodating apparatus, and data packet transfer method
CN101997772A (en) Flow control method, device, system and network equipment
US20220116827A1 (en) Bidirectional Forwarding Detection (BFD) Parameter Negotiation Method, Apparatus and Chip
WO2009110445A1 (en) Address search method and packet processing device
CN115883149A (en) FPGA-based internal and external network communication method of PCIE link
CN114978563B (en) Method and device for blocking IP address
CN105791239A (en) TCP intermediary processing method
KR102412933B1 (en) System and method for providing network separation service based on software-defined network
US7898981B1 (en) System and method for improving network performance by controlling stub-routing behavior

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 610041 15-24 floor, 1 1 Tianfu street, Chengdu high tech Zone, Sichuan

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 610041 16 Hing Hing Road, Chengdu high tech Development Zone, Sichuan, China 16

Patentee before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 610041 nine Xing Xing Road 16, hi tech Zone, Sichuan, Chengdu

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 610041 15-24 floor, 1 1 Tianfu street, Chengdu high tech Zone, Sichuan

Patentee before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder