CN103297311A - Method and device for achieving control and provision for wireless access point protocol (CAPWAP) data tunnels - Google Patents

Method and device for achieving control and provision for wireless access point protocol (CAPWAP) data tunnels Download PDF

Info

Publication number
CN103297311A
CN103297311A CN 201310257689 CN201310257689A CN103297311A CN 103297311 A CN103297311 A CN 103297311A CN 201310257689 CN201310257689 CN 201310257689 CN 201310257689 A CN201310257689 A CN 201310257689A CN 103297311 A CN103297311 A CN 103297311A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
capwap
packet
data packet
uplink
protocol stack
Prior art date
Application number
CN 201310257689
Other languages
Chinese (zh)
Inventor
王茂斌
吴明津
左延麟
Original Assignee
京信通信系统(中国)有限公司
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

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATIONS NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Abstract

The invention discloses a method and a device for achieving CAPWAP data tunnels and is used for solving the problems that the consumed time for data transmission is long and the transmission efficiencies are low caused by the fact that the CAPWAP data tunnels are achieved through application layer protocols in the prior art. The CAPWAP data tunnels are configured for a wireless terminal underlying protocol stack and a wired terminal underlying protocol stack of a wireless terminal point (WTP) according to configuration parameters from an access control (AC). Besides, the wireless terminal underlying protocol stack receives uplink data packets from a station, and the wired terminal underlying protocol stack encapsulates the uplink data packets into uplink CAPWAP data packets and sends the uplink CAPWAP data packets to the AC through the configured CAPWAP data tunnels; the wired terminal underlying protocol stack receives downlink CAPWAP data packets from the AC through the configured CAPWAP data tunnels and decapsulates the downlink CAPWAP data packets into downlink data packets; and the wireless terminal underlying protocol stack sends the downlink data packets to the station.

Description

无线接入点控制和提供协议数据隧道的实现方法及装置 Wireless access points and provide control data tunnel protocol implemented method and apparatus

技术领域 FIELD

[0001] 本发明涉及无线通信系统,具体地,涉及一种无线接入点控制和提供协议(CAPffAP, ControI and Provision for Wireless Access Point Protocol)数据隧道的实现方法及装置。 [0001] The present invention is to achieve a method and apparatus relates to wireless communication systems and, in particular, to a wireless access point and provides control protocol (CAPffAP, ControI and Provision for Wireless Access Point Protocol) data tunnel.

背景技术 Background technique

[0002] CAPWAP是一种应用在瘦无线接入点(WTP,Wireless Terminal Point)和接入控制器(AC,Access Control)之间的隧道,CAPffAP协议定义了WTP与AC之间如何进行通信,并为实现WTP和AC之间的互通性提供了一个通用的封装和传输机制。 Between [0002] CAPWAP a thin application of the wireless access point (WTP, Wireless Terminal Point) and an access controller (AC, Access Control) tunneling, CAPffAP between WTP protocol defines how to communicate with the AC, and it provides a generic encapsulation and transport mechanisms to achieve interoperability between the WTP and the AC.

[0003] 图1示出了瘦WTP和AC构成的无线局域网的结构,WTP通过无线方式接入站点(STA,Station), WTP和AC之间通过有线方式的CAPWAP进行通信。 [0003] FIG. 1 shows a structure of a wireless LAN configured thin WTP and AC, AC WTP between WTP and CAPWAP communicate by wired by wireless access station (STA, Station),. 具体地,WTP与AC间建立CAPWAP控制隧道,通过该CAPWAP控制隧道从AC下载软件版本、射频、功率等配置参数,利用这些信息进行相应配置后,与AC间建立CAPWAP数据隧道。 In particular, between the WTP and the AC CAPWAP control tunnel is established, through the CAPWAP control tunnel version software download, radio frequency, AC power, etc. from the configuration parameters using the corresponding configuration information, and establish a CAPWAP data tunnel between the AC.

[0004] 但是在目前关于CAPWAP数据隧道的技术中,通常是WTP的底层协议层接收数据后,将数据发送到CAPWAP的应用层协议栈进行数据解析处理后,再由应用层将解析后的数据返回给CAPWAP数据层,底层协议层对解析后的数据进行发送,也即由应用层协议实现数据隧道,这样就导致数据发送的时间消耗长,发送效率低的问题。 [0004] However, current techniques for CAPWAP data tunnels, usually when data is received WTP underlying protocol layer transmits the data to the application layer protocol stack CAPWAP the data obtained by data analysis processing, and then parses the application layer CAPWAP returned to the data layer, the underlying protocol layer transmits the parsed data, i.e. data tunnel realized by the application layer protocol, thus resulting in the consumption data transmitted long time, the problem of low transmission efficiency.

发明内容 SUMMARY

[0005] 有鉴于此,本发明实施例提供了一种CAPWAP数据隧道的实现方法和装置,用以解决现有技术中通过应用层协议实现数据隧道导致数据发送的时间消耗长,发送效率低的问题。 [0005] In view of this, embodiments provide a method and apparatus for implementing CAPWAP data tunnel of the present invention to solve the prior art achieved by the application layer protocol data tunnel leading to long time consumption data transmitted, the transmission efficiency is low problem.

[0006] 本发明实施例技术方案如下: [0006] Embodiments of the present invention are as follows:

[0007] 一种无线接入点控制和提供协议CAPWAP数据隧道的实现方法,包括:无线接入点WTP接收来自接入控制器AC的配置参数,WTP的无线端底层协议栈和有线端底层协议栈根据配置参数配置CAPWAP数据隧道;无线端底层协议栈接收来自站点的上行数据包,并将上行数据包发送给有线端底层协议栈;有线端底层协议栈将上行数据包封装成上行CAPWAP数据包,并通过配置的CAPWAP数据隧道将上行CAPWAP数据包发送给AC ;有线端底层协议栈通过配置的CAPWAP数据隧道接收来自AC的下行CAPWAP数据包,将下行CAPWAP数据包解封装成下行数据包,并将下行数据包发送给无线端底层协议栈;无线端底层协议栈将接收到的下行数据包发送给站点。 [0007] A wireless access point and control CAPWAP protocol implemented method for providing data tunnel, comprising: a wireless access point WTP receiving configuration parameters from the access controller AC, the bottom end of the WTP protocol stack of the wireless terminal and the wired underlying protocol stack is configured according to the configuration parameters CAPWAP data tunnel; the underlying protocol stack of the wireless terminal receives uplink data packet from the station, and an uplink data packet to the wired terminal of the underlying protocol stack; end of the underlying protocol stack wired uplink data packet encapsulated into an uplink data packet CAPWAP and by arranging the CAPWAP data tunnel uplink CAPWAP data packet to AC; wired side underlying protocol stack receives the downlink CAPWAP data packet from the AC through CAPWAP data tunnel configuration, downlink CAPWAP data packet decapsulated into downlink data packet, and the downlink data packet to the radio protocol stack bottom end; end of the underlying wireless protocol stack received downlink data packet sent to the station.

[0008] 一种无线接入点控制和提供协议CAPWAP数据隧道的实现装置,包括:接收模块,用于接收来自接入控制器AC的配置参数;无线端底层协议栈模块,用于根据接收模块接收到的配置参数配置CAPWAP数据隧道;接收来自站点的上行数据包,并将上行数据包发送给有线端底层协议栈模块;将来自有线端底层协议栈模块的下行数据包发送给站点;有线端底层协议栈模块,用于根据接收模块接收到的配置参数配置CAPWAP数据隧道;将来自无线端底层协议栈模块的上行数据包封装成上行CAPWAP数据包,并通过配置的CAPWAP数据隧道将上行CAPWAP数据包发送给AC ;通过配置的CAPWAP数据隧道接收来自AC的下行CAPWAP数据包,将下行CAPWAP数据包解封装成下行数据包,并将下行数据包发送给无线端底层协议栈模块。 [0008] A wireless access point and a control device for implementing the protocol CAPWAP data tunnel is provided, comprising: a receiving module, for receiving configuration parameters from the access controller AC; end of the underlying wireless protocol stack module, the receiving module according to received configuration parameters CAPWAP data tunnel; the received uplink data packet from the station, and an uplink data packet to the wired terminal of the underlying protocol stack module; the downlink data packet from the wired end of the underlying protocol stack module is sent to the station; cable ends underlying protocol stack module, according to the receiving module for receiving the configuration parameters CAPWAP data tunnel; the uplink data packet from a wireless terminal of the underlying protocol stack module CAPWAP packaged into an uplink data packet, and the data tunnel through the CAPWAP configured uplink data CAPWAP packet to the AC; CAPWAP receiving a downlink data packet from the AC through the CAPWAP tunnel configuration data, the downlink data packet decapsulating CAPWAP into downlink data packet, and transmitting downlink data packets to the wireless terminal of the underlying protocol stack module.

[0009] 本发明实施例通过由WTP的无线端底层协议栈和有线端底层协议栈根据来自AC的配置参数配置CAPWAP数据隧道,并且,无线端底层协议栈接收来自站点的上行数据包,并将上行数据包发送给有线端底层协议栈;有线端底层协议栈将上行数据包封装成上行CAPffAP数据包,并通过配置的CAPWAP数据隧道将上行CAPWAP数据包发送给AC ;有线端底层协议栈通过配置的CAPWAP数据隧道接收来自AC的下行CAPWAP数据包,将下行CAPWAP数据包解封装成下行数据包,并将下行数据包发送给无线端底层协议栈;无线端底层协议栈将接收到的下行数据包发送给站点,能够实现由底层协议栈实现CAPWAP数据隧道,相比现有技术中由应用层实现CAPWAP数据隧道,能够缩短数据发送时间、提高数据发送效率。 Example [0009] The present invention CAPWAP data tunnel configuration according to the configuration parameters from the AC by the wireless terminal through the underlying protocol stack and WTP underlying wired-side protocol stack, and the ends of the underlying wireless protocol stack receives uplink data packet from the station, and an uplink data packet to the wired terminal of the underlying protocol stack; wired side underlying protocol stack uplink data packet encapsulated into an uplink CAPffAP packets through CAPWAP data tunnel configuration uplink CAPWAP data packet to the AC; wired side underlying protocol stack by configuring the CAPWAP CAPWAP downlink data tunnel packet received from the AC of the downlink data packet decapsulating CAPWAP into downlink data packet, and transmits a downlink data packet to the radio protocol stack bottom end; end of the underlying wireless protocol stack received downlink data packet sent to the station, it is possible to realize CAPWAP data tunnel from the underlying protocol stack, compared to the prior art achieved by the application layer CAPWAP data tunnel, the data transmission time can be shortened, improving data transmission efficiency.

[0010] 本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。 [0010] Other features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or learned by practice of the present invention. 本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。 The objectives and other advantages of the invention may be realized and attained by the written description, claims, and drawings structure particularly pointed out.

附图说明 BRIEF DESCRIPTION

[0011] 图1为现有技术中瘦WTP和AC构成的无线局域网的结构框图; [0011] FIG. 1 is a block diagram of a prior art thin WTP and AC of the configuration of a wireless LAN;

[0012] 图2为本发明实施例提供的CAPWAP数据隧道的实现方法的工作流程图; [0012] FIG 2 is a flowchart of a method implemented CAPWAP data tunnel according to an embodiment of the present invention;

[0013] 图3为本发明实施例提供的CAPWAP数据隧道的实现装置的结构框图。 [0013] FIG. 3 is a block diagram showing the device structure to achieve CAPWAP data tunnel according to an embodiment of the present invention.

具体实施方式 Detailed ways

[0014] 以下结合附图对本发明的实施例进行说明,应当理解,此处所描述的实施例仅用于说明和解释本发明,并不用于限定本发明。 [0014] The following embodiments in conjunction with the accompanying drawings of embodiments of the present invention will be described, it should be understood that the embodiments described herein only to illustrate and explain the present invention and are not intended to limit the present invention.

[0015] 针对现有技术中通过应用层实现CAPWAP数据隧道导致数据发送时间长、发送效率低的问题,本发明实施例提出了一种从底层协议栈实现CAPWAP数据隧道的实现方案,用以解决该问题。 [0015] The proposed implementation for implementing CAPWAP data tunnel from the underlying protocol stack for the transmission of data results in a long time, low transmission efficiency problems of the prior art achieved through the application layer CAPWAP data tunnel, embodiments of the present invention, to solve the problem.

[0016] 图2示出了本发明实施例提供的CAPWAP数据隧道的实现方法的工作流程图,该方法包括: [0016] FIG. 2 shows a flow chart of the present invention to achieve a method CAPWAP data tunnel according to an embodiment, the method comprising:

[0017] 步骤201、WTP接收来自接入AC的配置参数; [0017] Step 201, WTP receive configuration parameters from the AC access;

[0018] 步骤202、WTP的无线端底层协议栈和有线端底层协议栈根据配置参数配置CAPffAP数据隧道; [0018] Step 202, WTP wireless terminal protocol stack and the bottom ends of the underlying protocol stack wired data tunnel configuration according to the configuration parameters CAPffAP;

[0019] 具体地,在WTP基于Linux系统的情况下,CAPffAP应用层将接收到的配置参数写入到proc文件系统中;无线端底层协议栈和有线端底层协议栈从proc文件系统中读取配置参数,根据读取的配置参数配置CAPWAP数据隧道;这种实现方式简便易行、配置操作效率闻; [0019] Specifically, in the case of Linux-based WTP, CAPffAP application layer the received configuration parameters written to the proc file system; wireless terminal protocol stack and the bottom end of the cable from the underlying protocol stack read proc file system configuration parameters, CAPWAP data tunnel configuration according to the configuration parameters read; this implementation is simple, efficient operation arranged smell;

[0020] 并且,在配置参数中包括CAPWAP数据隧道模式的参数即split_mode或者local_mode,这样,就可以通过AC下发的配置参数将CAPWAP数据隧道设置成splitjnode模式或者localjnode模式,能够实现CAPWAP数据隧道的自由选择或切换,能够提高WTP的网络架构兼容性; [0020] Further, in the configuration parameters comprises CAPWAP data tunnel mode parameters i.e. split_mode or local_mode, so it can configure parameters AC issued the CAPWAP data tunnel arranged splitjnode mode or localjnode mode, can be realized CAPWAP data tunnel of free choice or switch, compatibility can be improved network architecture of WTP;

[0021] 或者,CAPWAP应用层通过I/O接口或者总线接口将配置参数传送给无线端底层协议栈和有线端底层协议栈,无线端底层协议栈和有线端底层协议栈根据接收到的配置参数配置CAPWAP数据隧道;这种实现方式需要配置较为复杂的I/O接口或者总线接口; [0021] Alternatively, the CAPWAP application layer configuration parameters transmitted through the I / O interface or bus interface to the wireless terminal of the underlying protocol stack and the cable end underlying protocol stack, the wireless terminal underlying protocol stack and the cable end underlying protocol stack according to the received configuration parameters CAPWAP data tunnel configuration; configure such an implementation requires more complex I / O interface or bus interface;

[0022] 步骤203、无线端底层协议栈接收来自站点的上行数据包; [0022] Step 203, the underlying protocol stack receives wireless terminal uplink data packet from a station;

[0023] 步骤204、无线端底层协议栈将上行数据包发送给有线端底层协议栈; [0023] Step 204, the underlying protocol stack of the wireless terminal uplink data packet to the wired terminal of the underlying protocol stack;

[0024] 优选地,在无线端底层协议栈将上行数据包发送给有线端底层协议栈之前,还对上行数据包进行信道模式匹配处理,具体包括: [0024] Preferably, before the underlying protocol stack in the wireless terminal transmits uplink data packet to the wired terminal of the underlying protocol stack, also uplink data packet channel pattern matching process comprises:

[0025] 在配置参数中的CAPWAP数据隧道模式参数为split_mode的情况下,无线端底层协议栈对上行数据包进行split_mac处理;Split_mac处理为现有技术,这里不再赘述; [0025] CAPWAP data tunnel mode configuration parameters in the case where split_mode parameter, the radio protocol stack to the bottom end of the uplink data packet split_mac process; Split_mac the prior art process, is not repeated here;

[0026] 在配置参数中的CAPWAP数据隧道模式参数为local_mode的情况下,无线端底层协议栈对上行数据包中的管理类数据包进行split_mac处理,并对上行数据中的数据类数据包进行类型转换; In the case [0026] CAPWAP data tunnel mode parameters for local_mode configuration parameters of the underlying protocol stack for the wireless terminal uplink packet management class split_mac packet processing, and data in the uplink packet data class type conversion;

[0027] 无线端底层协议栈对上行数据包执行完信道模式匹配处理后,可以将上行数据包发送给WTP内部的网桥,由网桥将上行数据包发送给有线端底层协议栈; [0027] The wireless terminal protocol stack underlying uplink data packet channel mode after executing the matching process may be an uplink data packet to the bridge inside the WTP, the uplink data packet sent by the bridge to the cable end of the underlying protocol stack;

·[0028] 通过对上行数据包进行split_mac处理,以二层隧道封装的方式通过网桥环境传输数据包,能够保证数据包的正常传输,相比现有技术能够节省上层协议栈解析数据包的时间消耗、提高处理效率; * [0028] By the uplink data packet split_mac processed to floor by way of the bridge tunnel encapsulation packet transmission environment, it is possible to ensure the normal transmission of data packets, can be saved compared to the prior art upper protocol stack packet parsed time consumption, improving the processing efficiency;

[0029] 步骤205、有线端底层协议栈将上行数据包封装成上行CAPWAP数据包; [0029] Step 205, the underlying protocol stack will end wired uplink data packet encapsulated into an uplink data packet CAPWAP;

[0030] 优选地,在有线端底层协议栈将上行数据包封装成上行CAPWAP数据包之前,还对上行数据包进行去信道模式匹配处理,具体包括: [0030] Preferably, the bottom end of the wireline protocol stack prior to uplink data packet encapsulated into an uplink data packet CAPWAP, but also to the uplink packet channel pattern matching process comprises:

[0031] 有线端底层协议栈在根据所述配置参数中的虚拟接入点(VAP,Virtual AccessPoint)隧道配置参数将有线端底层协议栈与无线端底层协议栈之间的VAP隧道配置为tunnel_mode&sta_ssid_on情况下,并且,如果配置参数中的CAPWAP数据隧道模式参数为split_mode,对上行数据包进行去split_mac处理,如果配置参数中的CAPWAP数据隧道模式参数为local_mode,对上行数据包的管理类数据包进行去split_mac处理; [0031] cable end in the case of the underlying protocol stack (VAP, Virtual AccessPoint) tunnel configuration parameters configuration parameters according to the virtual access point VAP tunnel between the wired and wireless side end of the underlying protocol stack underlying protocol stack is configured to tunnel_mode & sta_ssid_on lower, and if the configuration CAPWAP data tunnel mode parameter parameter is split_mode, uplink data packets to split_mac process, if the configuration CAPWAP data tunnel mode parameter parameter is local_mode, management class packets for uplink data packet is to split_mac treatment;

[0032] 有线端底层协议栈将上行数据包封装成上行CAPWAP数据包的操作包括第一类处理或者第二类处理: [0032] The bottom end of the stack will wired uplink data packet encapsulated into an uplink CAPWAP packet processing operation comprises a first type or the second type of process:

[0033] 第一类处理:如果上行数据包的长度小于或等于最大传输单元MTU与预定的CAPffAP数据包头部长度的差值,且该上行数据包的长度大于或等于预定的最小数据包长度,则将该上行数据包封装为一个上行CAPWAP数据包;如果上行数据包的长度小于或等于MTU与预定的CAPWAP数据包头部长度的差值,且该数据包的长度小于预定的最小数据包长度,将该上行数据包填充到数据包的长度大于或等于预定的最小数据包长度、且小于或等于最大传输单元MTU与预定的CAPWAP数据包头部长度的差值的上行数据包中,并将填充后的上行数据包封装为一个上行CAPWAP数据包;其中,预定的CAPWAP数据包头部包括CAPWAP隧道信息、互联网协议(IP,Internet Protocol)信息和媒体接入控制(MAC,MediaAccess Control)信息; [0033] The first type of process: if the uplink data packet length is less than or equal to the difference between the maximum transmission unit MTU of the predetermined header Minister CAPffAP data, and the uplink length equal to or greater than a predetermined minimum packet length of the packet, the uplink data packet is encapsulated as a packet uplink CAPWAP; if the uplink data packet length is less than or equal to the difference of the MTU and CAPWAP header Minister predetermined data, and the length of the data packet is less than a predetermined minimum packet length, the uplink data packet is filled to a minimum packet length of the packet is greater than or equal to a predetermined, and less than or equal to the uplink data packet and a difference of the maximum transmission unit (MTU) of a predetermined Ministers CAPWAP packet header, and after filling the uplink data packet is an encapsulated packet CAPWAP upward; wherein a predetermined CAPWAP CAPWAP tunnel packet header includes information, Internet protocol (IP, Internet protocol) information and media access control (MAC, MediaAccess control) information;

[0034] 也即,第一类处理中判断上行数据包的长度彡MTU - CAPffAP隧道信息长度一IP信息长度一MAC信息长度是否成立,在成立的情况下,继续判断上行数据包的长度>最小数据包长度是否成立,在二者均成立的情况下,将数据包封装成上行CAPWAP数据包; [0034] That is, the first type of process determines the length of the uplink data packet MTU San - CAPffAP IP information of a length of the tunnel length of a MAC message length information is established, in the case of established, continue to determine the length of the uplink data packet> Minimum established whether the data packet length, in the case where both are established, an uplink packet CAPWAP encapsulated into data packets;

[0035] 第二类处理:如果上行数据包的长度大于MTU与预定的CAPWAP数据包头部长度的差值,确定切割偏移量,将上行数据包的头部至切割偏移量的部分作为分割得到的第一上行数据包,将上行数据包的其余部分作为分割得到的第二上行数据包,分别将这两个上行数据包封装为两个上行CAPWAP数据包;其中,切割偏移量为上行数据包长度、CAPffAP隧道信息长度和CAPWAP数据包头部的IP信息长度的和值与MTU的差值;其中,如果上行数据包头部的IP信息为IPv4信息,CAPffAP数据包头部的IP信息长度为上行数据包头部的IPv4信息的长度,如果上行数据包头部的IP信息为IPv6信息,CAPWAP数据包头部的IP信息长度为上行数据包头部的IPv6信息的长度; [0035] The second type of process: If the length is greater than the difference between the uplink data packet with MTU of the predetermined header Minister CAPWAP data to determine the offset cutting, the head of the uplink data packet to offset partial cutting as the division the first uplink packet data obtained, the rest of the uplink data packet as the second uplink packet data obtained by dividing, respectively, the two uplink data packet is encapsulated CAPWAP two uplink packet data; wherein, the offset is cut up packet length, and the difference between the value of the IP MTU length and information length CAPffAP CAPWAP tunnel header portion; wherein, if the IP packet header information of the uplink information is IPv4, the IP packet header length CAPffAP uplink portion the length of the IPv4 header information portion, if the IP packet header information of the uplink information is IPv6, the IP header length portion CAPWAP length IPv6 packet header information in an uplink portion;

[0036] 也即第二类处理中判断上行数据包的长度彡MTU - CAPffAP隧道信息长度一IP信息长度一MAC信息长度不成立的情况下,确定切割偏移量=上行数据包长度+CAPWAP隧道信息长度+CAPWAP数据包头部的IP信息长度一MTU,根据切割偏移量将上行数据包切割成两个数据包; [0036] i.e., the length of the second type of process is determined MTU San uplink data packet - a case where a length of the tunnel IP information CAPffAP length of a MAC information length information is not established, to determine the offset = cutting uplink data packet length + CAPWAP tunnel information CAPWAP length + IP packet header information length of an MTU, a cutting offset the uplink data packet was cut into two packets;

[0037] 在上述第一类处理和第二类处理中,对数据包长度进行校准,使数据包的长度符合协议要求,相比现有技术中通过上层协议对数据包长度校准,能够缩短数据包处理的时间、提高处理效率;并且,上述处理过程提供了针对IPv4数据包和IPv6数据包的处理方法,能够提高WTP的网络适应能力; [0037] In the first and the second type of handling processing, calibration data packet length, the length of the data packet conforms with the license, as compared to the prior art by the upper layer protocol of the packet length calibration, the data can be shortened packet processing time, processing efficiency is improved; and the process provides a processing method for IPv4 packets and IPv6 packets, it is possible to improve the network's ability to adapt WTP;

[0038] 在上述第一类处理和第二类处理的基础上,将上行数据包封装成上行CAPWAP数据包的操作包括: [0038] On the basis of the above-described first type and second type processing process on uplink data packet encapsulated into the CAPWAP uplink packet comprises:

[0039] 针对第一类处理,有线端底层协议栈将CAPWAP隧道信息、IP信息和上行数据包的MAC信息填入到CAPWAP数据包头部对应的部分,将上行数据包填入到CAPWAP数据包的净载荷部分;其中,如果上行数据包中的IP信息为IPv4信息,则填入到CAPWAP数据包的头部的IP信息为上行数据包中的IPv4信息(其中包括源IP地址信息和目的IP地址信息),如果上行数据包中的IP信息为IPv6信息,则填充到CAPWAP数据包头部的IP信息包括WTP的IP地址为源IP地址、AC的IP地址为目的IP地址; [0039] for a first type of process, the bottom end of the wired MAC protocol stack to fill information CAPWAP tunnel information, IP information and the uplink data packet to the corresponding portion of the CAPWAP data packet header, the uplink data packet data packet filled into CAPWAP a payload portion; wherein, if the IP information of the uplink data packet is an IPv4 message, then filled into the head of an IP packet CAPWAP information IPv4 packet information of the uplink (including source IP address and destination IP address information), if the IP information of the uplink data packet is an IPv6 information, IP information of the filled CAPWAP packet header includes an IP address as a source IP address WTP, the IP address for the destination IP address AC;

[0040] 针对第二类处理,对于第一上行数据包,有线端底层协议栈将CAPWAP隧道信息、IP信息和上行数据包的MAC信息填入到CAPWAP数据包的头部对应的部分,将第一上行数据包填充到CAPWAP数据包的净载荷部分,并在IP信息部分的预定字段中填写表示序号I的序号标识;对于第二上行数据包,有线端底层协议栈将IP信息和上行数据包的MAC信息填入到CAPWAP数据包的头部,将第二上行数据包填充到CAPWAP数据包的净载荷部分,并在IP信息部分的预定字段中填写表示序号2的序号标识;其中,如果第一上行数据包头部的IP信息为IPv4信息,CAPWAP数据包头部的IP信息为第一上行数据包头部的IPv4信息,如果第一上行数据包头部的IP信息为IPv6信息,CAPWAP数据包头部的IP信息为上行数据包头部的IPv6信息; [0040] The process for the second category, the first uplink data packet, the underlying protocol stack wired side CAPWAP tunnel information, IP information of the MAC information and the uplink data packet is filled into the head portion of the packet corresponding to the CAPWAP, the first uplink data packet to a payload portion filled CAPWAP packet, and a predetermined field of the IP information part represents the serial number I of the fill sequence number identifier; an uplink data packet to the second, bottom end of the wired IP protocol stack information and the uplink data packet filled into a MAC header information CAPWAP packet, the second uplink data packet to the payload section is filled CAPWAP packet, and a predetermined field of the IP information part represents the serial number of the identification number to fill a 2; wherein, if the first IP information of an uplink data packet header information of IPv4, the IP packet header CAPWAP an IPv4 packet header information of the first uplink, the first uplink message if the IP packet header information as IPv6, IP packet header portion CAPWAP information of uplink data IPv6 packet header portion;

[0041] 在上述数据包封装过程中,采用一次性封装的方法,相比现有技术中通过上层协议栈的多层次调用的处理方法,能够提高CAPWAP数据包封装的效率; [0041] In the packet encapsulation process, the method of packaging a disposable, multi-level call processing method compared to the prior art by the upper layer protocol stack, it is possible to improve the efficiency CAPWAP encapsulated data packet;

[0042] 步骤206、有线端底层协议栈通过配置的CAPWAP数据隧道将上行CAPWAP数据包发送给AC ; [0042] Step 206, the bottom end of the cable through the CAPWAP protocol stack data tunnel configuration CAPWAP uplink data packet to the AC;

[0043] 步骤207、有线端底层协议栈通过配置的CAPWAP数据隧道接收来自AC的下行CAPffAP数据包; [0043] Step 207, the underlying protocol stack wired terminal receives a downlink data packet from the AC CAPffAP by CAPWAP data tunnel configuration;

[0044] 优选地,有线端底层协议栈还对下行CAPWAP数据包进行完整性处理,完整性处理包括: [0044] Preferably, the bottom end of the cable further downlink CAPWAP protocol stack packet integrity processing integrity process comprises:

[0045] 解析接收到的下行CAPWAP数据包的头部信息得到完整性标志位,在存储的数据包中查找是否具有相同完整性标志位的数据包,如果没有查找到具有相同完整性标志位的数据包,存储接收到的下行CAPWAP数据包; [0045] Analytical data packet header information of the received downlink CAPWAP to obtain the integrity flag, to find out whether the same data packet integrity flag stored in the packet, if not found with the same integrity flag bits packet, storing the received downlink data packet CAPWAP;

[0046] 如果查找到具有相同完整性标志位的数据包,且接收到的下行CAPWAP数据包头部中包括的序号标识是1,将查找到的具有相同完整性标志位的数据包去掉CAPWAP数据包头部后,合并到接收到的下行CAPWAP数据包的尾部; [0046] If it finds a packet with the same integrity flag and CAPWAP downlink packet header included in the received identification number is 1, the found data packets with the same integrity flag CAPWAP packet header is removed after the unit incorporated into the tail CAPWAP downlink data packet received;

[0047] 如果查找到具有相同完整性标志位的数据包,且接收到的下行CAPWAP数据包头部中包括的序号标识是2,将接收到的下行CAPWAP数据包去掉CAPWAP数据包头部后,合并到查找到的具有相同完整性标志位的数据包的尾部; [0047] If a packet with the same lookup integrity flag and CAPWAP received downlink packet header included in the identification number is 2, the received downlink data packet CAPWAP CAPWAP packet header is removed, incorporated into Find the tail with the same integrity flag data packet;

[0048] 上述过程中,通过对接收到的下行CAPWAP数据包进行标志位查询和查找具有相同标志位的数据包、以及对下行CAPWAP数据包进行存储,能够对乱序到达的数据包进行重整,能够提高下行CAPWAP数据包的接收效率、以及对复杂网络环境的适应性; [0048] The above-described process, the received downlink packets CAPWAP query flag and find a packet having the same flag, and CAPWAP downlink data packet for storage, the data can arrive out of order packets reforming , reception efficiency can be improved CAPWAP downlink packet, and adaptability to a complex network environment;

[0049] 步骤208、有线端底层协议栈将下行CAPWAP数据包解封装成下行数据包; [0049] Step 208, the bottom end of the cable CAPWAP protocol stack downlink data packet to the downlink data packet decapsulation;

[0050] 具体地,将下行CAPWAP数据包中去除预定的CAPWAP数据包头部后的部分作为下行数据包; [0050] Specifically, the downstream portion of the predetermined CAPWAP CAPWAP packet header packet is removed as a downlink data packet;

[0051] 上述解封装的过程采用一次裁剪的方法对下行CAPWAP数据包进行解封装,与现有技术中通过上层协议栈进行解封装,能够提高处理效率; [0051] The above-described process of decapsulation method of clipping a CAPWAP downlink data packet is decapsulated, the prior art stacks decapsulated by the upper layer protocols, the processing efficiency can be improved;

[0052] 步骤209、有线端底层协议栈将下行数据包发送给无线端底层协议栈; [0052] Step 209, the bottom end of the wired protocol stack downlink data packet to the radio protocol stack bottom end;

[0053] 优选地,有线端底层协议栈将下行数据包发送给无线端底层协议栈之前,还对下行数据进行信道模式匹配处理: Before [0053] Preferably, the bottom end of the wireline protocol stack downlink data packet to the radio terminal of the underlying protocol stack, further downlink data channel pattern matching process:

[0054] 在配置参数中的CAPWAP数据隧道模式参数为split_mode的情况下,有线端底层协议栈对下行数据包进行split_mac处理; [0054] CAPWAP data tunnel mode configuration parameters in the case where the parameter split_mode, cable ends of the underlying protocol stack split_mac downlink packet processing;

[0055] 在配置参数中的CAPWAP数据隧道模式参数为local_mode的情况下,有线端底层协议栈对下行数据包中的管理类数据包进行split_mac处理; In the case [0055] CAPWAP data tunnel mode configuration parameters in the parameter local_mode, cable end of the underlying protocol stack packet downlink packet management class split_mac process;

[0056] 有线端底层协议栈对下行数据包执行完信道模式匹配处理后,可以将下行数据包发送给WTP内部的网桥,由网桥将下行数据包发送给无线端底层协议栈; After [0056] the bottom end of the wireline downlink data packet protocol stack after executing pattern matching process channel, downlink data packet may be transmitted to the interior of the WTP bridge, the bridge downlink data packet transmitted by the wireless terminal to the underlying protocol stack;

[0057] 步骤210、无线端底层协议栈将接收到的下行数据包发送给站点。 [0057] Step 210, the radio protocol stack to the bottom end of the received downlink data packet to the station.

[0058] 无线端底层协议栈将接收到的下行数据包发送给站点之前,还对下行数据包进行去信道模式匹配处理: Before [0058] The wireless terminal protocol stack underlying the received downlink data packet sent to the station, further data packets of the downlink channel to pattern matching process:

[0059] 在配置参数中的CAPWAP数据隧道模式参数为split_mode的情况下,无线端底层协议栈对下行数据包进行去split_mac处理; [0059] CAPWAP data tunnel mode configuration parameters in the case where the parameter split_mode, the underlying protocol stack of the wireless terminal downlink data packet to be processed split_mac;

[0060] 在配置参数中的CAPWAP数据隧道模式参数为local_mode的情况下,无线端底层协议栈对下行数据包中的管理数据包进行去split_mac处理。 In the case [0060] CAPWAP data tunnel mode parameters for local_mode configuration parameters of the underlying protocol stack of the wireless terminal downlink data packet to be a management packet processing split_mac.

[0061] 通过上述处理过程,由WTP的无线端底层协议栈和有线端底层协议栈根据来自AC的配置参数配置CAPWAP数据隧道,并且,无线端底层协议栈接收来自站点的上行数据包,并将上行数据包发送给有线端底层协议栈;有线端底层协议栈将上行数据包封装成上行CAPffAP数据包,并通过配置的CAPWAP数据隧道将上行CAPWAP数据包发送给AC ;有线端底层协议栈通过配置的CAPWAP数据隧道接收来自AC的下行CAPWAP数据包,将下行CAPWAP数据包解封装成下行数据包,并将下行数据包发送给无线端底层协议栈;无线端底层协议栈将接收到的下行数据包发送给站点,能够实现由底层协议栈实现CAPWAP数据隧道,相比现有技术中由应用层实现CAPWAP数据隧道,能够缩短数据发送时间、提高数据发送效率。 [0061] Through the above process, the wireless terminal is configured by the WTP protocol stack and the bottom ends of the underlying wired protocol stack according to the configuration parameters from the AC CAPWAP data tunnel, and the end of the underlying wireless protocol stack receives uplink data packet from the station, and an uplink data packet to the wired terminal of the underlying protocol stack; wired side underlying protocol stack uplink data packet encapsulated into an uplink CAPffAP packets through CAPWAP data tunnel configuration uplink CAPWAP data packet to the AC; wired side underlying protocol stack by configuring the CAPWAP CAPWAP downlink data tunnel packet received from the AC of the downlink data packet decapsulating CAPWAP into downlink data packet, and transmits a downlink data packet to the radio protocol stack bottom end; end of the underlying wireless protocol stack received downlink data packet sent to the station, it is possible to realize CAPWAP data tunnel from the underlying protocol stack, compared to the prior art achieved by the application layer CAPWAP data tunnel, the data transmission time can be shortened, improving data transmission efficiency.

[0062] 基于相同的发明构思,本发明实施例还提供了一种CAPWAP数据隧道的实现装置,如图3所示,该装置包括: [0062] Based on the same inventive concept, an embodiment of the present invention further provides an apparatus for implementing the CAPWAP data tunnel, shown in Figure 3, the apparatus comprising:

[0063] 接收模块31,用于接收来自接入控制器AC的配置参数; [0063] The receiving module 31, configured to receive configuration parameters from the access controller AC;

[0064] 无线端底层协议栈模块32,连接至接收模块31,用于根据接收模块31接收到的配置参数配置CAPWAP数据隧道;接收来自站点的上行数据包,并将上行数据包发送给有线端底层协议栈模块33 ;将来自有线端底层协议栈模块33的下行数据包发送给站点; [0064] The wireless terminal protocol stack module bottom 32 is connected to the receiving module 31, a data tunnel configuration according to the CAPWAP receiving module 31 receives configuration parameters; receiving uplink data packet from the station, and an uplink data packet to the wired side underlying protocol stack module 33; wired from the bottom end of the protocol stack module 33 transmits a downlink data packet to the station;

[0065] 具体地,无线端底层协议栈模块32,具体用于:从proc文件系统中读取配置参数,根据读取的配置参数配置CAPWAP数据隧道; [0065] Specifically, the radio terminal 32 underlying protocol stack module, configured to: read the configuration parameters from the proc file system, data tunnel configuration according to the configuration parameters CAPWAP read;

[0066] 无线端底层协议栈模块32,还用于:在配置参数中的CAPWAP数据隧道模式参数为split_mode的情况下,对上行数据包进行split_mac处理;在配置参数中的CAPWAP数据隧道模式参数为localjnode的情况下,对上行数据包中的管理类数据包进行split_mac处理,并对上行数据中的数据类数据包进行类型转换。 [0066] The wireless terminal protocol stack bottom module 32 is further configured to: in the case CAPWAP data tunnel mode parameters in the configuration parameters for the split_mode, split_mac uplink packet processing; CAPWAP data tunnel mode parameters for the configuration parameters localjnode the case, for the uplink packet management class split_mac packet processing, and data classes in the uplink data packet conversion.

[0067] 无线端底层协议栈模块32,还用于:在配置参数中的CAPWAP数据隧道模式参数为split_mode的情况下,对下行数据包进行去split_mac处理;在配置参数中的CAPWAP数据隧道模式参数为localjnode的情况下,对下行数据包中的管理数据包进行去split_mac处理。 [0067] The wireless terminal protocol stack bottom module 32 is further configured to: in the case CAPWAP data tunnel mode parameters configuration parameters for split_mode of downlink data packets to split_mac process; CAPWAP data tunnel mode parameters configuration parameters localjnode case, the downlink data packet to be a management packet processing split_mac.

[0068] 有线端底层协议栈模块33,连接至接收模块31和无线端底层协议栈模块32,用于根据接收模块31接收到的配置参数配置CAPWAP数据隧道;将来自无线端底层协议栈模块32的上行数据包封装成上行CAPWAP数据包,并通过配置的CAPWAP数据隧道将上行CAPWAP数据包发送给AC ;通过配置的CAPWAP数据隧道接收来自AC的下行CAPWAP数据包,将下行CAPffAP数据包解封装成下行数据包,并将下行数据包发送给无线端底层协议栈模块32。 [0068] The bottom end of the wired protocol stack module 33, the receiving module is connected to the bottom end 31 and a radio protocol stack module 32, for receiving the module 31 according to the received configuration parameters CAPWAP data tunnel; the wireless terminal from the underlying protocol stack module 32 the uplink data packet encapsulated into an uplink CAPWAP packets through CAPWAP data tunnel configuration uplink CAPWAP data packet to AC; receiving a downlink CAPWAP data packet from the AC through CAPWAP data tunnel configuration, downlink CAPffAP data packet decapsulated into downlink data packet, and transmits a downlink data packet to the radio terminal 32 underlying protocol stack module.

[0069] 具体地,有线端底层协议栈模块33从proc文件系统中读取配置参数,根据读取的配置参数配置CAPWAP数据隧道。 [0069] Specifically, the bottom end of the wireline protocol stack module 33 reads the configuration parameters from the proc file system, data tunnel configuration according to the configuration parameters CAPWAP read.

[0070] 有线端底层协议栈模块33,还用于:在根据配置参数中的VAP隧道配置参数将VAP隧道配置为tunnel_mode&sta_ssid_on情况下,并且,如果配置参数中的CAPWAP数据隧道模式参数为split_mode,对上行数据包进行去split_mac处理,如果配置参数中的CAPWAP数据隧道模式参数为localjnode,对上行数据包的管理类数据包进行去split_mac处理; [0070] cable end underlying protocol stack module 33 is further configured to: in the configuration according to the configuration parameters VAP tunnel parameters VAP tunnel configuration for the next tunnel_mode & sta_ssid_on case, and, if the configuration parameters CAPWAP data tunnel mode parameters split_mode, for split_mac uplink data packet to be processed, if the configuration parameters CAPWAP data tunnel mode parameters localjnode, management class data packet uplink data packet to be processed split_mac;

[0071] 有线端底层协议栈模块33,具体用于:对上行数据包执行第一类处理或第二类处理; [0071] The bottom end of the wired protocol stack module 33, configured to: perform a first packet handling the uplink data or the second type of treatment;

[0072] 第一类处理包括:如果上行数据包的长度小于或等于最大传输单元MTU与预定的CAPWAP数据包头部长度的差值,且该上行数据包的长度大于或等于预定的最小数据包长度,则将该上行数据包封装为一个上行CAPWAP数据包;如果上行数据包的长度小于或等于MTU与CAPWAP数据包头部长度的差值,且该上行数据包的长度小于预定的最小数据包长度,将该上行数据包填充到数据包的长度大于或等于预定的最小数据包长度、且小于或等于最大传输单元MTU与预定的CAPWAP数据包头部长度的差值,并将填充后的数据包封装为一个上行CAPWAP数据包;其中,预定的CAPWAP数据包头部包括CAPWAP隧道信息、IP信息和MAC信息; [0072] The first type of process comprises: if the uplink data packet length is less than or equal to the difference between the maximum transmission unit MTU of the predetermined header Minister CAPWAP data and the uplink data packet length is equal to or greater than a predetermined minimum packet length , the uplink data packet is encapsulated as a packet uplink CAPWAP; if the length of the uplink data packet length is less than or equal to the difference of the MTU Minister CAPWAP header data, and the uplink data packet is less than a predetermined minimum packet length, the uplink data packet is filled to a minimum packet length of the packet is greater than or equal to a predetermined, and less than or equal to the difference of the header and the Minister MTU of CAPWAP predetermined data, the data packet is encapsulated after filling a CAPWAP uplink packet data; wherein, the predetermined portion of the data packet header comprising a CAPWAP CAPWAP tunnel information, IP information and MAC information;

[0073] 第二类处理包括:如果上行数据包的长度大于MTU与预定的CAPWAP数据包头部长度的差值,确定切割偏移量,将上行数据包的头部至切割偏移量的部分作为分割得到的第一上行数据包,将上行数据包的其余部分作为分割得到的第二上行数据包,分别将这两个数据包封装为两个上行CAPWAP数据包;其中,切割偏移量为上行数据包长度、CAPffAP隧道信息长度和CAPWAP数据包头部的IP信息长度的和值与MTU的差值;其中,如果上行数据包头部的IP信息为IPv4信息,CAPffAP数据包头部的IP信息长度为上行数据包头部的IPv4信息的长度,如果上行数据包头部的IP信息为IPv6信息,CAPWAP数据包头部的IP信息长度为上行数据包头部的IPv6信息的长度 [0073] The second category process comprising: if the length is greater than the difference between the uplink data packet of the packet header with a predetermined MTU Minister CAPWAP data to determine the offset cutting, the uplink data packet to the header offset as partial cutting dividing a first uplink data packet obtained, the rest of the uplink data packet as the second uplink packet data obtained by dividing, respectively, the two two uplink packet encapsulation CAPWAP data packets; wherein the offset is cut up packet length, and the difference between the value of the IP MTU length and information length CAPffAP CAPWAP tunnel header portion; wherein, if the IP packet header information of the uplink information is IPv4, the IP packet header length CAPffAP uplink portion length of the IPv4 header information portion, if the IP packet header information of the uplink information is IPv6, the IP header length CAPWAP uplink portion of the IPv6 packet header information

[0074] 有线端底层协议栈模块33针对第一类处理,将CAPWAP隧道信息、IP信息和上行数据包的MAC信息填入到CAPWAP数据包头部对应的部分,将上行数据包填入到CAPWAP数据包的净载荷部分;其中,如果上行数据包中的IP信息为IPv4信息,则填入到CAPWAP数据包的头部的IP信息为上行数据包中的IPv4信息,如果上行数据包中的IP信息为IPv6信息,则填充到CAPWAP数据包头部的IP信息包括WTP的IP地址为源IP地址、AC的IP地址为目的IP地址; [0074] The bottom end of the wired protocol stack module 33 for processing a first type, the CAPWAP tunnel information, IP information of the MAC information and the uplink data packet to the corresponding portion of the fill CAPWAP data packet header, the uplink data packet to fill in the data CAPWAP payload portion of the packet; wherein, if the IP information of the uplink data packet is an IPv4 message, then filled into the IP header of an IPv4 packet CAPWAP information of the uplink data packet, if the IP information in the uplink data packet IPv6 information is then filled into the IP header section of the CAPWAP message including the IP address as the source IP address WTP, the IP address for the destination IP address AC;

[0075] 有线端底层协议栈模块33针对第二类处理,对于第一上行数据包,将CAPWAP隧道信息、IP信息和上行数据包的MAC信息填入到CAPWAP数据包的头部对应的部分,将第一上行数据包填充到CAPWAP数据包的净载荷部分,并在IP信息部分的预定字段中填写表示序号I的序号标识;对于第二上行数据包,有线端底层协议栈将IP信息和上行数据包的MAC信息填入到CAPWAP数据包的头部,将第二上行数据包填充到CAPWAP数据包的净载荷部分,并在IP信息部分的预定字段中填写表示序号2的序号标识;其中,如果第一上行数据包头部的IP信息为IPv4信息,CAPffAP数据包头部的IP信息为上行数据包头部的IPv4信息,如果第一上行数据包头部的IP信息为IPv6信息,CAPffAP数据包头部的IP信息为上行数据包头部的IPv6信息。 [0075] The bottom end of the wired protocol stack module 33 for processing a second type, for the first uplink data packet, the MAC information filled CAPWAP tunnel information, IP information and the uplink data packet to the header portion of the packet corresponding to the CAPWAP, the first uplink data packet to the payload section is filled CAPWAP packet, and a predetermined field of the IP information part represents the serial number I of the fill sequence number identifier; an uplink data packet to the second, bottom end of the wired IP protocol stack information and uplink MAC information packet to fill CAPWAP packet header, the second uplink data packet to the payload section is filled CAPWAP packet, and a predetermined field of the IP information part represents the serial number of the identification number to fill a 2; wherein, If the IP packet header information of the first upstream information is IPv4, the IP packet header portion CAPffAP uplink IPv4 packet header data portion, if the IP packet header information of the first upstream information is IPv6, the IP packet header CAPffAP information of uplink data IPv6 packet header portion.

[0076] 有线端底层协议栈模块33对接收到的下行CAPWAP数据包进行完整性校验,对没有通过完整性校验的下行CAPWAP数据包进行完整性处理;完整性处理包括:解析接收到的下行CAPWAP数据包的头部信息得到完整性标志位,在存储的数据包中查找是否具有相同完整性标志位的数据包,如果没有查找到具有相同完整性标志位的数据包,存储接收到的下行CAPWAP数据包; [0076] The bottom end of the wired protocol stack module 33 CAPWAP received downlink data packet integrity check does not pass the integrity check of the downlink data packet integrity CAPWAP processing; integrity processing comprising: parsing the received CAPWAP header information of the downlink data packet integrity flag obtained, have the same look integrity flag stored data packets in the packet, if the packet is not found to have the same integrity flag, storing the received CAPWAP downlink data packet;

[0077] 如果查找到具有相同完整性标志位的数据包,且接收到的下行CAPWAP数据包头部中包括的序号标识是1,将查找到的具有相同完整性标志位的数据包去掉CAPWAP数据包头部后,合并到接收到的下行CAPWAP数据包的尾部; [0077] If it finds a packet with the same integrity flag and CAPWAP downlink packet header included in the received identification number is 1, the found data packets with the same integrity flag CAPWAP packet header is removed after the unit incorporated into the tail CAPWAP downlink data packet received;

[0078] 如果查找到具有相同完整性标志位的数据包,且接收到的下行CAPWAP数据包头部中包括的序号标识是2,将接收到的下行CAPWAP数据包去掉CAPWAP数据包头部后,合并到查找到的具有相同完整性标志位的数据包的尾部。 [0078] If a packet with the same lookup integrity flag and CAPWAP received downlink packet header included in the identification number is 2, the received downlink data packet CAPWAP CAPWAP packet header is removed, incorporated into Find the tail with the same integrity flag packets.

[0079] 有线端底层协议栈模块33,具体用于:将下行CAPWAP数据包中去除预定的CAPWAP数据包头部后的部分作为下行数据包。 [0079] The bottom end of the wired protocol stack module 33, configured to: after a predetermined portion of the packet header CAPWAP CAPWAP a downlink data packet removing a downlink data packet. [0080] 有线端底层协议栈模块33,还用于:在配置参数中的CAPWAP数据隧道模式参数为split_mode的情况下对下行数据包进行split_mac处理;在配置参数中的CAPWAP数据隧道模式参数为localjnode的情况下,对下行数据包中的管理类数据包进行split_mac处理。 [0080] The bottom end of the wired protocol stack module 33 is further configured to: CAPWAP data tunnel mode parameters in the configuration parameters of the downlink packet processing split_mac the case where split_mode; the CAPWAP data tunnel mode parameters configuration parameters for localjnode in a case, downlink data packet management class packets split_mac process.

[0081] 通过如图3所示的装置,能够由底层协议栈实现CAPWAP数据隧道,相比现有技术中由应用层实现CAPWAP数据隧道,能够缩短数据发送时间、提高数据发送效率。 [0081] by the apparatus shown in Figure 3, can be realized by the underlying data tunnel CAPWAP protocol stack, as compared to the prior art achieved by the application layer CAPWAP data tunnel, the data transmission time can be shortened, improving data transmission efficiency.

[0082] 本领域普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。 [0082] Those of ordinary skill in the art may understand that the above-described embodiments of the method that all or part of the steps may be by a program instructing relevant hardware, the program may be stored in a computer-readable storage medium, the program when executed, or a combination of one embodiment includes a step of a method embodiment.

[0083] 另外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。 [0083] Further, each of the functional units in the embodiments of the present invention may be integrated in one processing module, or may be physically separate units exist, may be two or more units are integrated in one module. 上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。 The integrated module may be implemented in the form of hardware, software functional modules may also be implemented. 所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。 If the integrated module is implemented as an independent product sold or used in the form of a software functional module, it may be stored in a computer-readable storage medium.

[0084] 本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。 [0084] skilled in the art should understand that the embodiments of the present invention may provide a method, system, or computer program product. 因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。 Thus, embodiments of the present invention may be employed entirely hardware embodiment, an entirely software embodiment, or an embodiment in conjunction with the form of software and hardware aspects. 而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。 Further, in the present invention may comprise one or more of which computer usable storage medium having computer-usable program code (including but not limited to disk storage, and optical storage) in the form of a computer program product implemented on.

[0085] 本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。 [0085] The method of the present invention with reference to embodiments of the present invention embodiment, apparatus (systems) and computer program products flowchart and / or block diagrams described. 应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。 It should be understood and implemented by computer program instructions and block, and the flowchart / or block diagrams each process and / or flowchart illustrations and / or block diagrams of processes and / or blocks. 可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。 These computer program instructions may be provided to a processor a general purpose computer, special purpose computer, embedded processor or other programmable data processing apparatus to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing apparatus generating in a device for implementing the flow chart or more flows and / or block diagram of one or more blocks specified functions.

[0086] 这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。 [0086] These computer program instructions may also be stored in a computer can direct a computer or other programmable data processing apparatus to function in a particular manner readable memory produce an article of manufacture such that the storage instruction means comprises a memory in the computer-readable instructions the instruction means implemented in a flowchart or more flows and / or block diagram of one or more blocks specified functions.

[0087] 这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。 [0087] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps on the computer or other programmable apparatus to produce a computer implemented so that the computer or other programmable apparatus executing instructions for implementing the functions is provided a flow or flows and / or block diagram of one or more blocks in the block of step functions.

[0088] 显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。 [0088] Obviously, those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. 这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 Thus, if these modifications and variations of the present invention fall within the claims of the invention and the scope of equivalents thereof, the present invention intends to include these modifications and variations.

Claims (20)

  1. 1.一种无线接入点控制和提供协议CAPWAP数据隧道的实现方法,其特征在于,包括: 无线接入点WTP接收来自接入控制器AC的配置参数,WTP的无线端底层协议栈和有线端底层协议栈根据配置参数配置CAPWAP数据隧道; 无线端底层协议栈接收来自站点的上行数据包,并将上行数据包发送给有线端底层协议栈;有线端底层协议栈将上行数据包封装成上行CAPWAP数据包,并通过配置的CAPWAP数据隧道将上行CAPWAP数据包发送给AC ; 有线端底层协议栈通过配置的CAPWAP数据隧道接收来自AC的下行CAPWAP数据包,将下行CAPWAP数据包解封装成下行数据包,并将下行数据包发送给无线端底层协议栈;无线端底层协议栈将接收到的下行数据包发送给站点。 CLAIMS 1. A method implemented to control and provide a wireless access point protocol CAPWAP data tunnel, characterized in that, comprising: a wireless access point configuration parameters WTP received from the access controller AC, WTP wireless terminal protocol stack and the underlying cable end of the underlying protocol stack configured in accordance with the configuration parameters CAPWAP data tunnel; the underlying protocol stack of the wireless terminal receives uplink data packet from the station, and an uplink data packet to the wired terminal of the underlying protocol stack; end of the underlying protocol stack wired uplink data packet encapsulated into upgoing CAPWAP packets through CAPWAP data tunnel configuration uplink CAPWAP data packet to AC; wired side underlying protocol stack receives the downlink CAPWAP data packet from the AC through CAPWAP data tunnel configuration, downlink CAPWAP data packet decapsulated into downlink data packet, and sends a downlink data packet to the radio protocol stack bottom ends; a wireless terminal of the underlying protocol stack received downlink data packet sent to the station.
  2. 2.根据权利要求1的方法,其特征在于,根据配置参数配置CAPWAP数据隧道,具体包括: 在WTP基于Linux系统的情况下,CAPffAP应用层将接收到的配置参数写入到proc文件系统中; 无线端底层协议栈和有线端底层协议栈从proc文件系统中读取配置参数,根据读取的配置参数配置CAPWAP数据隧道。 2. The method according to claim 1, characterized in that the CAPWAP data tunnel configuration according to the configuration parameters, comprises: in the case of Linux-based WTP, CAPffAP application layer the received configuration parameters written to the proc file system; wireless terminal ends of the underlying protocol stack and wired underlying protocol stack configuration parameters read from the proc file system, data tunnel configuration according to the configuration parameters CAPWAP read.
  3. 3.根据权利要求1所述的方法,其特征在于,无线端底层协议栈将上行数据包发送给有线端底层协议栈之前,所述方法包括: 在配置参数中的CAPWAP数据隧道模式参数为splitjnode的情况下,无线端底层协议栈对上行数据包进行sp Ii tjnac处理; 在配置参数中的CAPWAP数据隧道模式参数为localjnode的情况下,无线端底层协议栈对上行数据包中的管理类数据包进行split_mac处理,并对上行数据中的数据类数据包进行类型转换。 3. The method according to claim 1, characterized in that the underlying protocol stack of the wireless terminal before the uplink data packet to the wired terminal of the underlying protocol stack, the method comprising: CAPWAP data tunnel mode parameters configuration parameters for splitjnode in the case where the wireless terminal underlying protocol stack for the uplink packet sp Ii tjnac treatment; case CAPWAP data tunnel mode parameters configuration parameters for localjnode, the wireless terminal underlying protocol stack management class packet uplink data packet split_mac be processed, and the data type of uplink packet data type conversion.
  4. 4.根据权利要求3所述的方法,其特征在于,有线端底层协议栈将上行数据包封装成上行CAPWAP数据包之前,所述方法还包括: 有线端底层协议栈在根据配置参数中的虚拟接入点VAP隧道配置参数将有线端底层协议栈与无线端底层协议栈之间的VAP隧道配置为tunnel_mode&sta_ssid_on情况下,并且,如果配置参数中的CAPWAP数据隧道模式参数为splitjnode,对上行数据包进行去split_mac处理,如果配置参数中的CAPWAP数据隧道模式参数为local_mode,对上行数据包的管理类数据包进行去split_mac处理。 4. The method according to claim 3, characterized in that the wire bottom end of the stack before the uplink data packet encapsulated into CAPWAP uplink data packet, the method further comprising: the configuration parameters in the virtual cable end according to the underlying protocol stack access point VAP tunnel configuration parameters VAP tunnel between the wired side underlying protocol stack at the wireless terminal of the underlying protocol stack is configured to lower tunnel_mode & sta_ssid_on case, and, if the configuration CAPWAP data tunnel mode parameter parameter is splitjnode, uplink data packet to split_mac process, if the configuration parameters CAPWAP data tunnel mode parameter is local_mode, management class data packet uplink data packet to be processed split_mac.
  5. 5.根据权利要求1所述的方法,其特征在于,有线端底层协议栈将上行数据包封装成上行CAPWAP数据包,具体包括: 第一类处理:如果上行数据包的长度小于或等于最大传输单元MTU与预定的CAPWAP数据包头部长度的差值,且该上行数据包的长度大于或等于预定的最小数据包长度,则将该上行数据包封装为一个上行CAPWAP数据包;如果上行数据包的长度小于或等于MTU与预定的CAPWAP数据包头部长度的差值,且该数据包的长度小于预定的最小数据包长度,将该上行数据包填充到数据包的长度大于或等于预定的最小数据包长度、且小于或等于最大传输单元MTU与预定的CAPWAP数据包头部长度的差值的上行数据包中,并将填充后的上行数据包封装为一个上行CAPWAP数据包;其中,预定的CAPWAP数据包头部包括CAPWAP隧道信息、互联网协议IP信息和媒体接入控制MAC信息;或者,第二 5. The method according to claim 1, characterized in that the bottom end of the wired protocol stack uplink data packet encapsulated into an uplink data packet CAPWAP, comprises: a first type process: if the length of the uplink data packet transmission is less than or equal to the maximum unit (MTU) difference between a predetermined degree Baotou Minister CAPWAP data, and the uplink data packet length is equal to or greater than a predetermined minimum packet length, then the uplink data packet encapsulating as data a CAPWAP uplink packet; if the uplink data packet length less than or equal to the difference of the MTU and CAPWAP header Minister predetermined data, and the length of the data packet is less than a predetermined minimum packet length, the uplink data packet is filled to a minimum packet length of the packet is greater than or equal to a predetermined length, and less than or equal to the difference between the uplink data packet to the MTU of the predetermined header Minister CAPWAP data, and uplink data packet is encapsulated by filling up a CAPWAP packet; wherein the predetermined packet headers CAPWAP CAPWAP tunnel portion includes information, Internet protocol (IP) and media access control (MAC) message information; Alternatively, the second 处理:如果上行数据包的长度大于MTU与预定的CAPWAP数据包头部长度的差值,确定切割偏移量,将上行数据包的头部至切割偏移量的部分作为分割得到的第一上行数据包,将上行数据包的其余部分作为分割得到的第二上行数据包,分别将这两个上行数据包封装为两个上行CAPWAP数据包;其中,切割偏移量为上行数据包长度、CAPffAP隧道信息长度和CAPWAP数据包头部的IP信息长度的和值与MTU的差值;其中,如果上行数据包头部的IP信息为IPv4信息,CAPWAP数据包头部的IP信息长度为上行数据包头部的IPv4信息的长度,如果上行数据包头部的IP信息为IPv6信息,CAPWAP数据包头部的IP信息长度为上行数据包头部的IPv6信息的长度。 Processing: If the length of the uplink data packet header is greater than the difference of the predetermined Minister MTU CAPWAP data to determine the offset cutting, the head of the uplink data packet to the cutting portion as the first offset data is obtained by dividing up package, the rest of the uplink data packet as the second uplink packet data obtained by dividing, respectively, the two uplink data packet is encapsulated CAPWAP two uplink packet data; wherein the offset is cut uplink data packet length, CAPffAP tunnel and the difference between the value of the IP MTU length and CAPWAP message length header portion; wherein, if the IP packet header information of the uplink information is IPv4, the IP packet header length CAPWAP uplink portion of the IPv4 packet header information length, the length of the uplink information if the IP packet header information as IPv6, the IP header length CAPWAP uplink portion of the IPv6 packet header information.
  6. 6.根据权利要求5所述的方法,其特征在于,将上行数据包封装为上行CAPWAP数据包,具体包括: 针对第一类处理,有线端底层协议栈将CAPWAP隧道信息、IP信息和上行数据包的MAC信息填入到CAPWAP数据包头部对应的部分,将上行数据包填入到CAPWAP数据包的净载荷部分;其中,如果上行数据包中的IP信息为IPv4信息,则填入到CAPWAP数据包的头部的IP信息为上行数据包中的IPv4信息,如果上行数据包中的IP信息为IPv6信息,则填充到CAPffAP数据包头部的IP信息包括WTP的IP地址为源IP地址、AC的IP地址为目的IP地址;或者针对第二类处理,对于第一上行数据包,有线端底层协议栈将CAPWAP隧道信息、IP信息和上行数据包的MAC信息填入到CAPWAP数据包的头部对应的部分,将第一上行数据包填充到CAPWAP数据包的净载荷部分,并在IP信息部分的预定字段中填写表示序号I的序号标识;对于第 6. The method as claimed in claim 5, wherein the uplink data packet is encapsulated CAPWAP uplink data packet, comprises: a stack CAPWAP tunnel information, IP information and uplink data for a first type of process, the bottom end of the wired protocol MAC packet to the corresponding portion of the fill CAPWAP data packet header, the uplink data packet to the payload portion filled CAPWAP packet; wherein, if the IP information of the uplink data packet is an IPv4 message, the data filled into CAPWAP IP packet header information as IPv4 information the uplink data packet, if the IP information of the uplink data packet is an IPv6 information, the information filled CAPffAP IP packet header includes an IP address as the source IP address WTP, the AC of IP address as the destination IP address; or for a second type of process, for the first uplink data packet, the underlying protocol stack wired side CAPWAP tunnel information, IP information of the MAC information and the uplink data packet is filled into the head of the data packet corresponding to the CAPWAP part, the first uplink data packet filled partially CAPWAP payload packet, fill and I represents the serial number of the identification number in a predetermined field of the IP section; for the first 上行数据包,有线端底层协议栈将IP信息和上行数据包的MAC信息填入到CAPffAP数据包的头部,将第二上行数据包填充到CAPWAP数据包的净载荷部分,并在IP信息部分的预定字段中填写表示序号2的序号标识;其中,如果第一上行数据包头部的IP信息为IPv4信息,CAPWAP数据包头部的IP信息为第一上行数据包头部的IPv4信息,如果第一上行数据包头部的IP信息为IPv6信息,CAPffAP数据包头部的IP信息为上行数据包头部的IPv6信息。 Uplink data packet, the underlying cable end IP protocol stack to MAC information and uplink information packet header CAPffAP filled into packets, the second uplink data packet to the payload section is filled CAPWAP packet, and the IP section field indicates a predetermined number filled identification number 2; and wherein, if the IP packet header information of the first upstream information is IPv4, the IP CAPWAP IPv4 packet header information to a first portion of the uplink data packet header, if the first uplink IP packet header information of an IPv6 information, IP information CAPffAP IPv6 packet header portion of the packet header information of the uplink.
  7. 7.根据权利要求1所述的方法,其特征在于,有线端底层协议栈接收来自AC的下行CAPffAP数据包之后,所述方法还包括: 对接收到的下行CAPWAP数据包进行完整性校验,对没有通过完整性校验的下行CAPffAP数据包进行完整性处理; 完整性处理包括:解析接收到的下行CAPWAP数据包的头部信息得到完整性标志位,在存储的数据包中查找是否具有相同完整性标志位的数据包,如果没有查找到具有相同完整性标志位的数据包,存储接收到的下行CAPWAP数据包; 如果查找到具有相同完整性标志位的数据包,且接收到的下行CAPWAP数据包头部中包括的序号标识是1,将查找到的具有相同完整性标志位的数据包去掉CAPWAP数据包头部后,合并到接收到的下行CAPWAP数据包的尾部; 如果查找到具有相同完整性标志位的数据包,且接收到的下行CAPWAP数据包头部中包括的序号标识是2,将接 After 7. The method according to claim 1, characterized in that the cable receiving end of the underlying protocol stack CAPffAP downlink data packet from the AC, the method further comprises: the received downlink data packet integrity check CAPWAP, no treatment for integrity by the integrity check of the downlink data packet CAPffAP; integrity processing comprising: parsing the header information of the received downlink data packet to obtain CAPWAP integrity flag, looking up in the stored data packet have the same integrity flag data packet, if the packet is not found to have the same integrity flag, storing the received downlink data packet CAPWAP; If it finds a packet with the same integrity flag and the received downlink CAPWAP included in the packet header is a sequence number identifying the packet to find the same integrity flag CAPWAP after removal of the packet header, incorporated into the tail CAPWAP received downlink data packet; if found with the same integrity flag bit data packet, and CAPWAP received downlink packet header included in the identification number is 2, then the 到的下行CAPWAP数据包去掉CAPWAP数据包头部后,合并到查找到的具有相同完整性标志位的数据包的尾部。 After CAPWAP downlink data packet to the packet header CAPWAP removed, incorporated into the tail to find a packet having the same integrity flag.
  8. 8.根据权利要求1所述的方法,其特征在于,有线端底层协议栈将下行CAPWAP数据包解封装成下行数据包,具体包括: 将下行CAPWAP数据包中去除预定的CAPWAP数据包头部后的部分作为下行数据包。 After the removal of the downlink data packet CAPWAP CAPWAP predetermined packet headers: 8. The method according to claim 1, characterized in that the bottom end of the cable CAPWAP protocol stack downlink data packet to the downlink data packet decapsulating, comprises as part of a downlink data packet.
  9. 9.根据权利要求1所述的方法,其特征在于,有线端底层协议栈将下行数据包发送给无线端底层协议栈之前,所述方法还包括: 在配置参数中的CAPWAP数据隧道模式参数为splitjnode的情况下,有线端底层协议栈对下行数据包进行sp Iitjnac处理; 在配置参数中的CAPWAP数据隧道模式参数为localjnode的情况下,有线端底层协议栈对下行数据包中的管理类数据包进行split_mac处理。 9. The method according to claim 1, characterized in that the bottom end of the stack to the wired transmitting downlink data packets to the wireless terminal before the underlying protocol stack, the method further comprising: CAPWAP data tunnel mode parameters for the configuration parameters case splitjnode, cable end underlying protocol stack downlink packet sp Iitjnac process; case CAPWAP data tunnel mode parameters configuration parameters for localjnode, cable end underlying protocol stack downlink packet management class packets split_mac be processed.
  10. 10.根据权利要求9所述的方法,其特征在于,无线端底层协议栈将接收到的下行数据包发送给站点之前,所述方法还包括: 在配置参数中的CAPWAP数据隧道模式参数为splitjnode的情况下,无线端底层协议栈对下行数据包进行去spIitjnac处理; 在配置参数中的CAPWAP数据隧道模式参数为localjnode的情况下,无线端底层协议栈对下行数据包中的管理数据包进行去split_mac处理。 10. The method according to claim 9, characterized in that the underlying protocol stack of the wireless terminal received a downlink data packet before transmission to the station, the method further comprising: CAPWAP data tunnel mode parameters configuration parameters for splitjnode in the case where the wireless terminal underlying protocol stack downlink data packets to spIitjnac treatment; case CAPWAP data tunnel mode parameters configuration parameters for localjnode, the wireless terminal the underlying protocol stack downlink data packet management data packets to split_mac process.
  11. 11.一种无线接入点控制和提供协议CAPWAP数据隧道的实现装置,其特征在于,包括: 接收模块,用于接收来自接入控制器AC的配置参数; 无线端底层协议栈模块,用于根据接收模块接收到的配置参数配置CAPWAP数据隧道;接收来自站点的上行数据包,并将上行数据包发送给有线端底层协议栈模块;将来自有线端底层协议栈模块的下行数据包发送给站点; 有线端底层协议栈模块,用于根据接收模块接收到的配置参数配置CAPWAP数据隧道;将来自无线端底层协议栈模块的上行数据包封装成上行CAPWAP数据包,并通过配置的CAPffAP数据隧道将上行CAPWAP数据包发送给AC ;通过配置的CAPWAP数据隧道接收来自AC的下行CAPWAP数据包,将下行CAPWAP数据包解封装成下行数据包,并将下行数据包发送给无线端底层协议栈模块。 11. A wireless access point and provides protocol CAPWAP control apparatus for implementing data tunnel, characterized by comprising: a receiving module, for receiving configuration parameters from the access controller AC; end of the underlying wireless protocol stack module, for configuration of the receiving module receives the parameter configuration CAPWAP data tunnel; the received uplink data packet from the station, and transmits the uplink data packet to the wired terminal of the underlying protocol stack module; end wired from the underlying protocol stack module transmits a downlink data packet to the station ; underlying wired terminal protocol stack module, configured to receive the configuration parameters based on the reception module CAPWAP data tunnel; the uplink data packet from a wireless terminal of the underlying protocol stack module CAPWAP packaged into an uplink data packet, and the data through the tunnel configuration will CAPffAP CAPWAP uplink data packet to the AC; CAPWAP receiving a downlink data packet from the AC through the CAPWAP tunnel configuration data, the downlink data packet decapsulating CAPWAP into downlink data packet, and transmitting downlink data packets to the wireless terminal of the underlying protocol stack module.
  12. 12.根据权利要求11所述的装置,其特征在于,无线端底层协议栈模块,具体用于:从proc文件系统中读取配置参数,根据读取的配置参数配置CAPWAP数据隧道; 有线端底层协议栈模块,具体用于=Wproc文件系统中读取配置参数,根据读取的配置参数配置CAPWAP数据隧道。 12. The apparatus as claimed in claim 11, characterized in that the bottom end of the radio protocol stack module is configured to: read the configuration parameters from the proc file system, data tunnel configuration according to the configuration parameters CAPWAP read; the bottom end of cable protocol stack module, configured = Wproc file system reads the configuration parameters, the configuration CAPWAP data tunnel configuration according to the read parameters.
  13. 13.根据权利要求11所述的装置,其特征在于,无线端底层协议栈模块,还用于: 在配置参数中的CAPWAP数据隧道模式参数为splitjnode的情况下,对上行数据包进行split_mac 处理; 在配置参数中的CAPWAP数据隧道模式参数为localjnode的情况下,对上行数据包中的管理类数据包进行split_mac处理,并对上行数据中的数据类数据包进行类型转换。 13. The apparatus according to claim 11, characterized in that the bottom end of the radio protocol stack module is further configured to: CAPWAP data tunnel mode configuration parameters in the case where the parameter of splitjnode, split_mac uplink packet processing; case CAPWAP data tunnel mode parameters configuration parameters for localjnode of the uplink packet management class split_mac packet processing, and data classes in the uplink data packet conversion.
  14. 14.根据权利要求13所述的装置,其特征在于,有线端底层协议栈模块,还用于: 在根据配置参数中的虚拟接入点VAP隧道配置参数将VAP隧道配置为tunnel_mode&sta_ssid_on情况下,并且,如果配置参数中的CAPWAP数据隧道模式参数为split_mode,对上行数据包进行去split_mac处理,如果配置参数中的CAPWAP数据隧道模式参数为local_mode,对上行数据包的管理类数据包进行去split_mac处理。 14. The apparatus according to claim 13, characterized in that the underlying protocol stack cable end module is further configured to: the configuration parameters in the configuration parameters of the virtual access point VAP VAP tunnel tunnel configured to tunnel_mode & sta_ssid_on case, and If the configuration CAPWAP data tunnel mode parameter parameter is split_mode, uplink data packets to split_mac process, if the configuration CAPWAP data tunnel mode parameter parameter is local_mode, management class data packet uplink data packet is to split_mac process.
  15. 15.根据权利要求11所述的装置,其特征在于,有线端底层协议栈模块,具体用于:对上行数据包执行第一类处理或第二类处理; 第一类处理包括:如果上行数据包的长度小于或等于最大传输单元MTU与预定的CAPffAP数据包头部长度的差值,且该上行数据包的长度大于或等于预定的最小数据包长度,则将该上行数据包封装为一个上行CAPWAP数据包;如果上行数据包的长度小于或等于MTU与CAPWAP数据包头部长度的差值,且该上行数据包的长度小于预定的最小数据包长度,将该上行数据包填充到数据包的长度大于或等于预定的最小数据包长度、且小于或等于最大传输单元MTU与预定的CAPWAP数据包头部长度的差值的上行数据包中,并将填充后的上行数据包封装为一个上行CAPWAP数据包;其中,预定的CAPWAP数据包头部包括CAPffAP隧道信息、IP信息和MAC信息;或者, 第二类处理 15. The apparatus according to claim 11, characterized in that the bottom end of the wired protocol stack module is configured to: perform a first type or the second process handling the uplink data packet; first type of process comprises: if the uplink data the minimum packet length of the packet is less than or equal to the difference between the maximum transmission unit MTU of the predetermined header Minister CAPffAP data and the uplink data packet length is equal to or greater than a predetermined, the uplink data packet is encapsulated as an up CAPWAP packet; if the uplink data packet length is less than or equal to the difference of the MTU Minister CAPWAP header data, and the length of the uplink data packet is less than a predetermined minimum packet length, the length of the uplink data packet to fill the data packet is or equal to a predetermined minimum packet length, and less than or equal to the difference between the uplink data packet with maximum transmission unit MTU of the predetermined data CAPWAP Ministers header and encapsulates the uplink data packet to fill up a CAPWAP packet; wherein the predetermined portion of the data packet header comprising CAPffAP CAPWAP tunnel information, IP information and MAC information; Alternatively, the second type processing 包括:如果上行数据包的长度大于MTU与预定的CAPWAP数据包头部长度的差值,确定切割偏移量,将上行数据包的头部至切割偏移量的部分作为分割得到的第一上行数据包,将上行数据包的其余部分作为分割得到的第二上行数据包,分别将这两个上行数据包封装为两个上行CAPWAP数据包;其中,切割偏移量为上行数据包长度、CAPffAP隧道信息长度和CAPWAP数据包头部的IP信息长度的和值与MTU的差值;其中,如果上行数据包头部的IP信息为IPv4信息,CAPffAP数据包头部的IP信息长度为上行数据包头部的IPv4信息的长度,如果上行数据包头部的IP信息为IPv6信息,CAPWAP数据包头部的IP信息长度为上行数据包头部的IPv6信息的长度。 Comprising: if the length is greater than the difference between the uplink data packet with MTU of the predetermined header Minister CAPWAP data to determine the offset cutting, the head of the uplink data packet to the cutting portion as the first offset data is obtained by dividing up package, the rest of the uplink data packet as the second uplink packet data obtained by dividing, respectively, the two uplink data packet is encapsulated CAPWAP two uplink packet data; wherein the offset is cut uplink data packet length, CAPffAP tunnel and the difference between the value of the IP MTU length and CAPWAP message length header portion; wherein, if the IP packet header information of the uplink information is IPv4, the IP packet header length CAPffAP uplink portion of the IPv4 packet header information length, the length of the uplink information if the IP packet header information as IPv6, the IP header length CAPWAP uplink portion of the IPv6 packet header information.
  16. 16.根据权利要求15所述的装置,其特征在于,有线端底层协议栈模块,具体用于: 针对第一类处理,将CAPWAP隧道信息、IP信息和上行数据包的MAC信息填入到CAPWAP数据包头部对应的部分,将上行数据包填入到CAPWAP数据包的净载荷部分;其中,如果上行数据包中的IP信息为IPv4信息,则填入到CAPWAP数据包的头部的IP信息为上行数据包中的IPv4信息,如果上行数据包中的IP信息为IPv6信息,则填充到CAPWAP数据包头部的IP信息包括WTP的IP地址为源IP地址、AC的IP地址为目的IP地址;或者, 针对第二类处理,对于第一上行数据包,将CAPWAP隧道信息、IP信息和上行数据包的MAC信息填入到CAPWAP数据包的头部对应的部分,将第一上行数据包填充到CAPWAP数据包的净载荷部分,并在IP信息部分的预定字段中填写表示序号I的序号标识;对于第二上行数据包,有线端底层协议栈将IP信息和 16. Apparatus according to claim 15, characterized in that the bottom end of the wired protocol stack module is configured to: for a first type of process, the fill CAPWAP tunnel information, IP information of the MAC information and the uplink data packet to the CAPWAP the corresponding portion of the data packet header, the uplink data packet filled into CAPWAP packet payload portion; wherein, if the IP packet is the uplink information IPv4, the IP header is stuffed into the data packet is CAPWAP IPv4 information the uplink data packet, if the IP information of the uplink data packet is an IPv6 information is filled into the IP CAPWAP header portion includes IP addresses of the WTP source IP address, the IP address AC for the destination IP address; or , for the second type of process, for the first uplink data packet, the CAPWAP tunnel information, IP information of the MAC information and the uplink data packet to fill CAPWAP packet header portion corresponding to the first uplink data packet filled CAPWAP payload portion of the packet, fill and I represents the serial number of the identification number in a predetermined field of the IP section; an uplink data packet to the second, bottom end of the cable to the IP protocol stack and 行数据包的MAC信息填入到CAPWAP数据包的头部,将第二上行数据包填充到CAPWAP数据包的净载荷部分,并在IP信息部分的预定字段中填写表示序号2的序号标识;其中,如果第一上行数据包头部的IP信息为IPv4信息,CAPffAP数据包头部的IP信息为上行数据包头部的IPv4信息,如果第一上行数据包头部的IP信息为IPv6信息,CAPffAP数据包头部的IP信息为上行数据包头部的IPv6信息。 MAC information packet filled into line CAPWAP packet header, the second uplink data packet to the payload section is filled CAPWAP packet, and a predetermined field of the IP information part represents the serial number of the identification number to fill a 2; wherein , if the IP packet header information of the first upstream information is IPv4, the IP packet header portion CAPffAP an IPv4 packet header information of the uplink, the first uplink message if the IP packet header information as IPv6, a packet header CAPffAP IPv6 IP information uplink data packet header portion.
  17. 17.根据权利要求11所述的装置,其特征在于,有线端底层协议栈,还用于: 对接收到的下行CAPWAP数据包进行完整性校验,对没有通过完整性校验的下行CAPffAP数据包进行完整性处理; 完整性处理包括:解析接收到的下行CAPWAP数据包的头部信息得到完整性标志位,在存储的数据包中查找是否具有相同完整性标志位的数据包,如果没有查找到具有相同完整性标志位的数据包,存储接收到的下行CAPWAP数据包; 如果查找到具有相同完整性标志位的数据包,且接收到的下行CAPWAP数据包头部中包括的序号标识是1,将查找到的具有相同完整性标志位的数据包去掉CAPWAP数据包头部后,合并到接收到的下行CAPWAP数据包的尾部; 如果查找到具有相同完整性标志位的数据包,且接收到的下行CAPWAP数据包头部中包括的序号标识是2,将接收到的下行CAPWAP数据包去掉CAPWAP数据包头 17. The apparatus according to claim 11, characterized in that the bottom end of the wired protocol stack is further configured: CAPWAP received downlink data packet integrity check, CAPffAP no downlink data integrity check by package integrity processing; integrity processing comprising: parsing the header information of the received downlink data packet to obtain CAPWAP integrity flag, to find out whether the same data packet integrity flag stored in the packet, if there is no lookup the integrity of the data packets with the same flag, storing the received downlink data packet CAPWAP; if a packet with the same lookup integrity flag and CAPWAP received downlink data packet header comprising a sequence number identifier is, after the found data packets with the same integrity flag CAPWAP packet header is removed, incorporated into the tail CAPWAP received downlink data packet; if found with the same integrity data packet flag, and the received downlink CAPWAP the packet header is included in the identification number 2, the received downlink data packet removing CAPWAP CAPWAP header 后,合并到查找到的具有相同完整性标志位的数据包的尾部。 After incorporated into the tail to find the packets with the same integrity flag.
  18. 18.根据权利要求11所述的装置,其特征在于,有线端底层协议栈模块,具体用于: 将下行CAPWAP数据包中去除预定的CAPWAP数据包头部后的部分作为下行数据包。 18. The apparatus according to claim 11, characterized in that the bottom end of the wired protocol stack module is configured to: the downstream portion of the predetermined CAPWAP CAPWAP packet header packet is removed as a downlink data packet.
  19. 19.根据权利要求11所述的装置,其特征在于,有线端底层协议栈模块,还用于: 在配置参数中的CAPWAP数据隧道模式参数为splitjnode的情况下对下行数据包进行split_mac 处理; 在配置参数中的CAPWAP数据隧道模式参数为localjnode的情况下,对下行数据包中的管理类数据包进行split_mac处理。 19. The apparatus according to claim 11, characterized in that the bottom end of the wired protocol stack module is further configured to: CAPWAP data tunnel mode parameters in the configuration parameters of the downlink packet processing in case splitjnode split_mac; and in case CAPWAP data tunnel mode parameters for localjnode parameters of the downlink packet data packet split_mac management process.
  20. 20.根据权利要求19所述的装置,其特征在于,无线端底层协议栈模块,还用于: 在配置参数中的CAPWAP数据隧道模式参数为splitjnode的情况下,对下行数据包进行去split_mac处理; 在配置参数中的CAPWAP数据隧道模式参数为localjnode的情况下,对下行数据包中的管理数据包进行去s`plit_mac处理。 20. The apparatus according to claim 19, characterized in that the bottom end of the radio protocol stack module is further configured to: CAPWAP data tunnel mode parameters in the configuration parameters for the case where the splitjnode, downlink data packet to the processing split_mac ; case CAPWAP data tunnel mode parameters in the configuration parameters for the localjnode, downlink data packet to be a management packet processing s`plit_mac.
CN 201310257689 2013-06-25 2013-06-25 Method and device for achieving control and provision for wireless access point protocol (CAPWAP) data tunnels CN103297311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310257689 CN103297311A (en) 2013-06-25 2013-06-25 Method and device for achieving control and provision for wireless access point protocol (CAPWAP) data tunnels

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310257689 CN103297311A (en) 2013-06-25 2013-06-25 Method and device for achieving control and provision for wireless access point protocol (CAPWAP) data tunnels

Publications (1)

Publication Number Publication Date
CN103297311A true true CN103297311A (en) 2013-09-11

Family

ID=49097654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310257689 CN103297311A (en) 2013-06-25 2013-06-25 Method and device for achieving control and provision for wireless access point protocol (CAPWAP) data tunnels

Country Status (1)

Country Link
CN (1) CN103297311A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686947A (en) * 2013-12-12 2014-03-26 杭州华三通信技术有限公司 Message transmission method and device based on virtual AP
CN104469843A (en) * 2014-11-17 2015-03-25 京信通信系统(中国)有限公司 Processing method and device of CAPWAP data
WO2015051518A1 (en) * 2013-10-10 2015-04-16 华为技术有限公司 Wireless termination point and control method and system thereof and wireless control point
WO2015051553A1 (en) * 2013-10-12 2015-04-16 华为技术有限公司 Tunnel processing method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080072047A1 (en) * 2006-09-20 2008-03-20 Futurewei Technologies, Inc. Method and system for capwap intra-domain authentication using 802.11r
CN102780633A (en) * 2012-08-08 2012-11-14 北京傲天动联技术有限公司 Device and method for transmitting data based on CAPWAP (control and provisioning of wireless access points) protocol
CN102868647A (en) * 2012-09-26 2013-01-09 大唐移动通信设备有限公司 Data processing method and device based on Linux network core

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080072047A1 (en) * 2006-09-20 2008-03-20 Futurewei Technologies, Inc. Method and system for capwap intra-domain authentication using 802.11r
CN102780633A (en) * 2012-08-08 2012-11-14 北京傲天动联技术有限公司 Device and method for transmitting data based on CAPWAP (control and provisioning of wireless access points) protocol
CN102868647A (en) * 2012-09-26 2013-01-09 大唐移动通信设备有限公司 Data processing method and device based on Linux network core

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015051518A1 (en) * 2013-10-10 2015-04-16 华为技术有限公司 Wireless termination point and control method and system thereof and wireless control point
CN105247949A (en) * 2013-10-10 2016-01-13 华为技术有限公司 Wireless termination point and control method and system thereof and wireless control point
WO2015051553A1 (en) * 2013-10-12 2015-04-16 华为技术有限公司 Tunnel processing method, device and system
CN105191223A (en) * 2013-10-12 2015-12-23 华为技术有限公司 Tunnel processing method, device and system
CN103686947A (en) * 2013-12-12 2014-03-26 杭州华三通信技术有限公司 Message transmission method and device based on virtual AP
CN103686947B (en) * 2013-12-12 2017-05-17 杭州华三通信技术有限公司 OSPF packets transmission method and device based on the virtual ap
CN104469843A (en) * 2014-11-17 2015-03-25 京信通信系统(中国)有限公司 Processing method and device of CAPWAP data
CN104469843B (en) * 2014-11-17 2018-11-06 京信通信系统(中国)有限公司 Processing method and apparatus capwap data

Similar Documents

Publication Publication Date Title
US20080126559A1 (en) METHOD AND SYSTEM FOR SECURING A NETWORK UTILIZING IPSEC and MACSEC PROTOCOLS
US20130070745A1 (en) Communicating data frames across communication networks that use incompatible network routing protocols
US20100135495A1 (en) Mac layer packet data units for wireless communications
US8175015B1 (en) WiMAX MAC
US20060153203A1 (en) Concatenated frame structure for data transmission
US20060013255A1 (en) Efficient data transmission by data aggregation
US20140064280A1 (en) System and method for low-complexity, high-speed preprocessing of encapsulated packets in a broadband communications network
US20110310892A1 (en) Accelerating data routing
CN101369977A (en) Method, apparatus and system for transmitting data
CN103888386A (en) Extensible virtual local area network message transmission method, device and system
US20140328354A1 (en) Data processing apparatus, data processing method, and program
US20120236853A1 (en) Apparatus for transmitting mac pdu with a fragmentation and packing extended header and method thereof
CN102136989A (en) Message transmission method, system and equipment
CN102158461A (en) Method and device for transmitting non-I (in-phase)/Q (quadrature phase) data through common public radio interface (CPRI)
JP2006101061A (en) Communication method
CN103024852A (en) Method and equipment for forwarding services
CN1848973A (en) Short message group transmitting method, terminal and short message center
US20090077346A1 (en) Processing module, processor circuit, instruction set for processing data, and method for synchronizing the processing of codes
US20130097336A1 (en) Method, terminal and gateway for transmitting ipv6 packet in ipv4 network
US20150264726A1 (en) Bearer mobility and splitting in a radio access network-based, 3rd generation partnership project network having an integrated wireless local area network
US7554977B2 (en) Method and apparatus for indicating packet boundaries in frames
CN101729525A (en) Data packet sending and receiving method and device as well as processing method and system
US20130077557A1 (en) Method and system for transmitting information in relay communication network
CN102255808A (en) Congestion notification method, device, system and network equipment
CN104283785A (en) Method and device for processing flow table rapidly

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
RJ01