[go: up one dir, main page]

CN104202248B - The implementation method of forwarding is quickly concentrated in hotspot controller - Google Patents

The implementation method of forwarding is quickly concentrated in hotspot controller Download PDF

Info

Publication number
CN104202248B
CN104202248B CN201410347834.XA CN201410347834A CN104202248B CN 104202248 B CN104202248 B CN 104202248B CN 201410347834 A CN201410347834 A CN 201410347834A CN 104202248 B CN104202248 B CN 104202248B
Authority
CN
China
Prior art keywords
flow
capwap
message
address
source
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.)
Active
Application number
CN201410347834.XA
Other languages
Chinese (zh)
Other versions
CN104202248A (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.)
Zhejiang new home network technology Co.,Ltd.
Original Assignee
Shanghai Huanchuang 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 Shanghai Huanchuang Communication Technology Co Ltd filed Critical Shanghai Huanchuang Communication Technology Co Ltd
Priority to CN201410347834.XA priority Critical patent/CN104202248B/en
Publication of CN104202248A publication Critical patent/CN104202248A/en
Application granted granted Critical
Publication of CN104202248B publication Critical patent/CN104202248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to the implementation methods that forwarding is quickly concentrated in a kind of hotspot controller, comprising the following steps: 1) CAPWAP tunnel decapsulates, which includes following sub-step: 11) establishing flow table;12) flow table forwards;2) CAPWAP tunnel encapsulates, which includes following sub-step: 21) establishing flow table;22) flow table forwards;Compared with prior art, the present invention has many advantages, such as to improve efficiency, saves the time, is applied widely.

Description

The implementation method of forwarding is quickly concentrated in hotspot controller
Technical field
The present invention relates to a kind of methods of hotspot controller message forwarding, control more particularly, to a kind of hotspot The implementation method of forwarding is quickly concentrated in device.
Background technique
Wlan user data carries out concentration forwarding, convergent point of the hotspot controller as all data, to performance It is required that very high, HardwareUpgring must bring cost increase.The method of this patent can be in the case where hardware condition be constant, greatly The data forwarding performance of width promotion hotspot controller.
In message repeating process, user's message carries out concentration forwarding, to look into two-layer retransmitting table, routing table, ARP table, user Multiple tables such as table could be completed once to forward.
User's message has CAPWAP tunnel when reaching hotspot controller, a message is needed by protocol stack twice It could complete forwarding.
Summary of the invention
It is an object of the present invention to overcome the above-mentioned drawbacks of the prior art and provide one kind to improve efficiency, saves The implementation method that forwarding is quickly concentrated in time, hotspot controller applied widely, can be constant in hardware condition In the case of, the data forwarding performance of hotspot controller is substantially improved.
The purpose of the present invention can be achieved through the following technical solutions:
The implementation method of forwarding is quickly concentrated in a kind of hotspot controller, which comprises the following steps:
1) CAPWAP tunnel decapsulates, which includes following sub-step:
11) flow table is established, which includes:
111) it establishes imperfect flow entry: establishing FLOW after the message that physical drives receive CAPWAP encapsulation, and record The physical port of message, source and destination MAC Address and source and destination IP address are received, imperfect flow entry is established;
112) AP FLOW is set: during CAPWAP is sent to CAPWAP driving, being looked into according to source and destination IP address Imperfect flow entry is looked for, setting type is AP FLOW, and records CAPWAP information;
113) imperfect list item is marked: if the message received is IPv4 message, according to CAPWAP tunnel internal layer message FLOW is established in source, purpose IP address, and is labeled as imperfect list item;
114) USER FLOW is set: according to source and destination IP address, searching imperfect list item, source when record is sent and Target MAC (Media Access Control) address, the physical port of transmission, and it is labeled as complete list item, type is set as USERFLOW;
12) flow table forwards, which includes:
121) solution CAPWAP encapsulation: physical drives receive the message of CAPWAP encapsulation, search and are labeled as complete flow table, and For AP FLOW type, directly solution CAPWAP encapsulation;
122) send message: the message after decapsulating uses the source of internal layer, purpose IP address to search complete flow table again, such as Fruit is found, and be USER FLOW type, then according to recorded in flow table MAC Address modification message in source, target MAC (Media Access Control) address, And it is sent from the physics exit port of record;
2) CAPWAP tunnel encapsulates, which includes following sub-step:
21) flow table is established, which includes:
211) it establishes imperfect flow entry: during physical drives send message to Ethernet, establishing FLOW, and remember Record receives the physical port of message, source, target MAC (Media Access Control) address, source, purpose IP address, and is labeled as imperfect flow entry;
212) type USER FLOW is set: according to source, purpose IP address, searching imperfect flow entry, record CAPWAP letter Breath, type is set as USER FLOW, and the message is marked to need to carry out CAPWAP encapsulation;
213) it marks complete list item: according to the source of message, purpose IP address, searching imperfect flow entry, as needed The tunnel outer layer source that obtains in CAPWAP module, purpose IP address search complete list item, if finding list item and being AP FLOW Type is then associated internal layer USER FLOW list item and outer layer AP FLOW list item, and records CAPWAP packaging information, completes List item is labeled as complete list item afterwards;
22) flow table forwards, which includes:
221) CAPWAP Information encapsulation: driving receives IPv4 message, first searches and is labeled as complete flow table, if found, It and is USER FLOW type, and labeled as needing CAPWAP to encapsulate, then sealed according to the CAPWAP information recorded in USERFLOW Fill CAPWAP tunnel head;
222) send message: associated AP FLOW is found by USER FLOW, according to the IP recorded in AP FLOW, MAC, port information, UDP, IP, the MAC header of encapsulation tunnel outer layer, and message is sent from the inbound port of APFLOW.
This method is suitable to be also used for IPv6 network or IPv6 and IPv4 hybrid network.
Compared with prior art, the present invention has the following advantages:
1, fast process has got around the complex process of existing protocol stack, simplifies message forwarding process, and collection greatly improved Middle forwarding performance;
2, multiple list items such as two-layer retransmitting table, routing table, ARP table, NAT table are cached in flow table, only need to be once tabled look-up It can complete forwarding;
3, different list items can be established using different keywords according to different configurations.
Detailed description of the invention
Fig. 1 is flow chart of the method for the present invention;
Fig. 2 is that CAPWAP tunnel of the present invention decapsulates schematic diagram;
Fig. 3 is CAPWAP tunnel encapsulation schematic diagram of the present invention.
Specific embodiment
The present invention is described in detail with specific embodiment below in conjunction with the accompanying drawings.The present embodiment is with technical solution of the present invention Premised on implemented, the detailed implementation method and specific operation process are given, but protection scope of the present invention is not limited to Following embodiments.
Embodiment:
As shown in Figure 1, quickly concentrating the implementation method of forwarding in a kind of hotspot controller, comprising the following steps:
1) CAPWAP tunnel decapsulates, which includes following sub-step:
11) flow table is established, which includes:
111) it establishes imperfect flow entry: after the message that physical drives receive CAPWAP encapsulation, 1 is indicated in Fig. 2 FLOW is established in position, and records the physical port for receiving message, source and destination MAC Address and source and destination IP address, establishes Imperfect flow entry;
112) AP FLOW is set: (indicating 4 position in Fig. 2) during CAPWAP is sent to CAPWAP driving, Imperfect flow entry is searched according to source and destination IP address, setting type is AP FLOW, and records CAPWAP information;
113) it marks imperfect list item: indicating 5 position in Fig. 2, if the message received is IPv4 message, basis FLOW is established in the source of CAPWAP tunnel internal layer message, purpose IP address, and is labeled as imperfect list item;
114) USER FLOW is set: indicating 8 position in Fig. 2, according to source and destination IP address, searches imperfect table , source and destination MAC Address when record is sent, the physical port of transmission, and it is labeled as complete list item, type is set as USER FLOW;
12) flow table forwards, which includes:
121) solution CAPWAP encapsulation: physical drives receive the message of CAPWAP encapsulation, search and are labeled as complete flow table, and For AP FLOW type, directly solution CAPWAP encapsulation;
122) send message: the message after decapsulating uses the source of internal layer, purpose IP address to search complete flow table again, such as Fruit is found, and be USER FLOW type, then according to recorded in flow table MAC Address modification message in source, target MAC (Media Access Control) address, And it is sent from the physics exit port of record;
2) CAPWAP tunnel encapsulates, which includes following sub-step:
21) flow table is established, which includes:
211) it establishes imperfect flow entry: (indicating a1 in Fig. 3 during physical drives send message to Ethernet Position), establish FLOW, and record the physical port for receiving message, source, target MAC (Media Access Control) address, source, purpose IP address, and mark For imperfect flow entry;
212) type USER FLOW is set: indicating the position of a4 in Fig. 3, according to source, purpose IP address, is searched endless List item is rectified, records CAPWAP information, type is set as USER FLOW, and the message is marked to need to carry out CAPWAP encapsulation;
213) it marks complete list item: indicating the position of a5 in Fig. 3, according to the source of message, purpose IP address, search endless List item is rectified, the tunnel outer layer source obtained in CAPWAP module as needed, purpose IP address search complete list item, if found List item and be AP FLOW type, then be associated internal layer USER FLOW list item and outer layer AP FLOW list item, and record List item is labeled as complete list item after the completion by CAPWAP packaging information;
22) flow table forwards, which includes:
221) CAPWAP Information encapsulation: driving receives IPv4 message, first searches and is labeled as complete flow table, if found, It and is USER FLOW type, and labeled as needing CAPWAP to encapsulate, then sealed according to the CAPWAP information recorded in USERFLOW Fill CAPWAP tunnel head;
222) send message: associated AP FLOW is found by USER FLOW, according to the IP recorded in AP FLOW, MAC, port information, UDP, IP, the MAC header of encapsulation tunnel outer layer, and message is sent from the inbound port of AP FLOW.
The method of the present invention is suitable for being also used for IPv6 network or IPv6 and IPv4 hybrid network, it may be assumed that
1) in IPv6 network, same method can be used to carry out fast-forwarding;
2) it is IPv4, user IPv6 between AP and AC, v6 user can be used to flow association v4AP stream and carry out fast-forwarding;
3) it is IPv6, user IPv4 between AP and AC, v4 user can be used to flow association v6AP stream and carry out fast-forwarding.

Claims (2)

1. quickly concentrating the implementation method of forwarding in a kind of hotspot controller, which comprises the following steps:
1) CAPWAP tunnel decapsulates, which includes following sub-step:
11) flow table is established, which includes:
111) it establishes imperfect flow entry: establishing FLOW after the message that physical drives receive CAPWAP encapsulation, and record and receive The physical port of message, source and destination MAC Address and source and destination IP address, establish imperfect flow entry;
112) AP FLOW is set: during CAPWAP is sent to CAPWAP driving, being searched not according to source and destination IP address Complete flow entry, setting type is AP FLOW, and records CAPWAP information;
113) imperfect list item is marked: if the message received is IPv4 message, according to the source of CAPWAP tunnel internal layer message, mesh IP address establish FLOW, and be labeled as imperfect list item;
114) USER FLOW is set: according to source and destination IP address, searching imperfect list item, source and destination when record is sent MAC Address, the physical port of transmission, and it is labeled as complete list item, type is set as USER FLOW;
12) flow table forwards, which includes:
121) solution CAPWAP encapsulation: physical drives receive the message of CAPWAP encapsulation, search and are labeled as complete flow table, and are AP FLOW type, directly solution CAPWAP encapsulation;
122) send message: the message after decapsulating uses the source of internal layer, purpose IP address to search complete flow table again, if looked into It arrives, and is USER FLOW type, then according to the source in the MAC Address modification message recorded in flow table, target MAC (Media Access Control) address, and from The physics exit port of record is sent;
2) CAPWAP tunnel encapsulates, which includes following sub-step:
21) flow table is established, which includes:
211) it establishes imperfect flow entry: during physical drives send message to Ethernet, establishing FLOW, and record receipts To the physical port of message, source, target MAC (Media Access Control) address, source, purpose IP address, and it is labeled as imperfect flow entry;
212) type USER FLOW is set: according to source, purpose IP address, searching imperfect flow entry, records CAPWAP information, Type is set as USER FLOW, and the message is marked to need to carry out CAPWAP encapsulation;
213) it marks complete list item: according to the source of message, purpose IP address, searching imperfect flow entry, CAPWAP as needed The tunnel outer layer source of module acquisition, purpose IP address search complete list item, if finding list item and being AP FLOW type, Internal layer USER FLOW list item and outer layer AP FLOW list item are associated, and record CAPWAP packaging information, after the completion table Item is labeled as complete list item;
22) flow table forwards, which includes:
221) CAPWAP Information encapsulation: driving receives IPv4 message, first searches and is labeled as complete flow table, if found, and is USER FLOW type, and labeled as needing CAPWAP to encapsulate, then according to the CAPWAP Information encapsulation recorded in USER FLOW CAPWAP tunnel head;
222) send message: associated AP FLOW is found by USER FLOW, according to the IP, MAC recorded in AP FLOW, Port information, UDP, IP, the MAC header of encapsulation tunnel outer layer, and message is sent from the inbound port of AP FLOW.
2. quickly concentrating the implementation method of forwarding in a kind of hotspot controller according to claim 1, feature exists In this method is also applied for IPv6 network or IPv6 and IPv4 hybrid network.
CN201410347834.XA 2014-07-21 2014-07-21 The implementation method of forwarding is quickly concentrated in hotspot controller Active CN104202248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410347834.XA CN104202248B (en) 2014-07-21 2014-07-21 The implementation method of forwarding is quickly concentrated in hotspot controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410347834.XA CN104202248B (en) 2014-07-21 2014-07-21 The implementation method of forwarding is quickly concentrated in hotspot controller

Publications (2)

Publication Number Publication Date
CN104202248A CN104202248A (en) 2014-12-10
CN104202248B true CN104202248B (en) 2019-07-05

Family

ID=52087478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410347834.XA Active CN104202248B (en) 2014-07-21 2014-07-21 The implementation method of forwarding is quickly concentrated in hotspot controller

Country Status (1)

Country Link
CN (1) CN104202248B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428697A (en) * 2012-05-22 2013-12-04 华为技术有限公司 Network access method, device and system based on CAPWAP protocol
EP2672669A1 (en) * 2012-06-07 2013-12-11 Broadcom Corporation Tunnel acceleration for wireless access points
CN103532878A (en) * 2013-09-26 2014-01-22 华为技术有限公司 Data packet processing method, and method, device and system for managing network flow
CN103826217A (en) * 2012-11-16 2014-05-28 中国移动通信集团公司 WLAN user service access method and device
CN103916302A (en) * 2013-01-04 2014-07-09 上海贝尔股份有限公司 Method and device for providing SDN stream route for virtual WLAN

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428697A (en) * 2012-05-22 2013-12-04 华为技术有限公司 Network access method, device and system based on CAPWAP protocol
EP2672669A1 (en) * 2012-06-07 2013-12-11 Broadcom Corporation Tunnel acceleration for wireless access points
CN103826217A (en) * 2012-11-16 2014-05-28 中国移动通信集团公司 WLAN user service access method and device
CN103916302A (en) * 2013-01-04 2014-07-09 上海贝尔股份有限公司 Method and device for providing SDN stream route for virtual WLAN
CN103532878A (en) * 2013-09-26 2014-01-22 华为技术有限公司 Data packet processing method, and method, device and system for managing network flow

Also Published As

Publication number Publication date
CN104202248A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
CN102970227B (en) The method and apparatus of VXLAN message repeating is realized in ASIC
US11438260B2 (en) Method and apparatus for forwarding MPLS data packet
CN104579954B (en) The cross-domain retransmission method of message, device and communication equipment
CN104283785B (en) A kind of method and apparatus of quick processing flow table
CN104380667B (en) The method for routing and equipment of a kind of data message
CN102571613B (en) Method and network device for message forwarding
CN102316028B (en) Method and apparatus for sending internet protocol packet
CN102136989B (en) Message transmission method, system and equipment
CN107770072B (en) Method and equipment for sending and receiving message
CN101488904A (en) Method for GRE tunnel crossing network address translation apparatus and network address translation apparatus
WO2014036938A1 (en) Packet forwarding
CN109412927B (en) Multi-VPN data transmission method and device and network equipment
CN101227407A (en) Message sending method and device based on layer-2 tunneling protocol
CN105991433B (en) The method and apparatus of Layer3 Virtual Private Network access Layer 2 virtual private network
US20180048593A1 (en) Flow entry generating and packet processing based on flow entry
CN106790200B (en) Chip co-processing method for DTLS encryption and decryption of CAPWAP control channel
KR20150146449A (en) Method of forming a hash input from packet contents and an apparatus thereof
CN108259298A (en) A kind of message forwarding method and device
CN101286918A (en) Virtual private network system and its data processing method
CN107547338A (en) A kind of message forwarding method and device
CN102647347B (en) Realize based on the processing method of flow connected and system
EP2958285A2 (en) A method of extracting data from packets and an apparatus thereof
RU2007109068A (en) WAYS AND DEVICES FOR SUPPORTING VPN WITH MOBILITY MANAGEMENT
CN104202248B (en) The implementation method of forwarding is quickly concentrated in hotspot controller
CN100561981C (en) Multi-protocol label switching forwarding method and forwarding device

Legal Events

Date Code Title Description
C06 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
TR01 Transfer of patent right

Effective date of registration: 20210524

Address after: 314000 North District, 3rd Floor, Building 12, Phase III, 906 Asia-Pacific Road, Nanhu District, Jiaxing City, Zhejiang Province

Patentee after: Zhejiang new home network technology Co.,Ltd.

Address before: 200241 block 02B, 6 / F, jilou, 555 Dongchuan Road, Minhang District, Shanghai

Patentee before: SHANGHAI GBCOM COMMUNICATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Implementation of fast centralized forwarding in wireless hotspot controller

Effective date of registration: 20220616

Granted publication date: 20190705

Pledgee: Agricultural Bank of China Limited by Share Ltd. South Lake branch

Pledgor: Zhejiang new home network technology Co.,Ltd.

Registration number: Y2022330000994

PE01 Entry into force of the registration of the contract for pledge of patent right