[go: up one dir, main page]

CN106161410A - Data processing method, Apparatus and system - Google Patents

Data processing method, Apparatus and system Download PDF

Info

Publication number
CN106161410A
CN106161410A CN201510201161.1A CN201510201161A CN106161410A CN 106161410 A CN106161410 A CN 106161410A CN 201510201161 A CN201510201161 A CN 201510201161A CN 106161410 A CN106161410 A CN 106161410A
Authority
CN
China
Prior art keywords
subframe
delimiter
mpdu
length
kth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510201161.1A
Other languages
Chinese (zh)
Other versions
CN106161410B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510201161.1A priority Critical patent/CN106161410B/en
Publication of CN106161410A publication Critical patent/CN106161410A/en
Application granted granted Critical
Publication of CN106161410B publication Critical patent/CN106161410B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/105Multiple levels of security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0044Allocation of payload; Allocation of data channels, e.g. PDSCH or PUSCH
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0058Allocation criteria
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种数据处理方法、装置及系统,属于通信技术领域,包括:根据多个MPDU生成A-MPDU,A-MPDU包括y个子帧;若第k个子帧是非空子帧,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍,则对第k个子帧进行第一处理,第一处理使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,1≤k≤y,k为整数;向接收端发送处理后的A-MPDU,以便于接收端根据处理后的A-MPDU解析得到多个MPDU。本发明解决了通信系统资源的浪费的问题,实现了减少了通信系统资源的浪费的效果,本发明用于数据的传输。

The invention discloses a data processing method, device and system, belonging to the technical field of communication, comprising: generating an A-MPDU according to multiple MPDUs, and the A-MPDU includes y subframes; if the kth subframe is a non-empty subframe and is located in the first The length of the data part after the delimiter of the k subframe and before the delimiter of the k+1th subframe is not an integer multiple of x, then the first processing is performed on the kth subframe, and the first processing makes it located at the kth subframe The length of the data part after the delimiter of the subframe and before the delimiter of the k+1th subframe is an integer multiple of x, 1≤k≤y, k is an integer; send the processed A-MPDU to the receiving end , so that the receiving end can obtain multiple MPDUs according to the processed A-MPDU analysis. The invention solves the problem of waste of communication system resources and realizes the effect of reducing the waste of communication system resources. The invention is used for data transmission.

Description

数据处理方法、装置及系统Data processing method, device and system

技术领域technical field

本发明涉及通信技术领域,特别涉及一种数据处理方法、装置及系统。The present invention relates to the field of communication technology, in particular to a data processing method, device and system.

背景技术Background technique

802.11是一种无线局域网通信标准。802.11n引入了可选的聚合媒体接入控制协议数据单元(英文:Aggregation-Medium access control Protocol Data Unit;简称:A-MPDU)的传输机制,在随后的802.11ac中A-MPDU则变成了必选机制。在A-MPDU传输机制中,发送端将多个消息在MAC层聚合成A-MPDU形式的一个消息,并将该消息传输至接收端。802.11 is a wireless local area network communication standard. 802.11n introduces an optional Aggregation-Medium access control Protocol Data Unit (English: Aggregation-Medium access control Protocol Data Unit; abbreviation: A-MPDU) transmission mechanism. In the subsequent 802.11ac, A-MPDU becomes Required mechanism. In the A-MPDU transmission mechanism, the sending end aggregates multiple messages into one message in the form of A-MPDU at the MAC layer, and transmits the message to the receiving end.

A-MPDU包括多个子帧,每个子帧由位于该子帧头部的定界符(英文:Delimiter)、位于子帧中间的媒体接入控制协议数据单元(英文:Medium accesscontrol Protocol Data Unit;简称:MPDU)和位于子帧尾部的填充位(英文:Pad)组成。其中,Delimiter长为4字节,Delimiter包括MPDU长度指示(英文:MPDULength)和MPDU特征位(英文:MPDU Signature),MPDU Length用于指示该子帧中MPDU的长度,MPDU Signature用于标识该子帧的起始位置,MPDUSignature的内容为给定序列(当前802.11标准中为“0x4E”);Pad的长度为0-3字节,其作用是使得MPDU和Pad的长度之和为4字节整数倍,故Pad的长度可以根据该MPDU的长度进行调节。在数据解析时,接收端根据Delimiter中MPDULength推测下一个子帧的起始位置,若某一子帧的MPDU Length解码错误,则可以在A-MPDU中搜索下一个MPDU Signature,从而确定下一个子帧的起始位置。由于Delimiter的长度为4个字节,所以,接收端可以以4字节为单位,在该A-MPDU中搜索MPDU Signature序列。若当前4字节中最后一个字节与MPDU Signature匹配,则可认为当前4字节就是一个子帧的Delimiter;否则,搜索下一个4字节并重新执行匹配操作。显然,这种以4字节为单位进行搜索的方式相比以1字节为单位进行搜索,在数据解析的速度上快了很多。因此,可以根据每个子帧中MPDU的长度调节相应Pad的长度,使得MPDU与相应Pad的长度之和为4字节的整数倍,以便于接收端在接收到该数据消息后能够以4字节为单位进行快速搜索。802.11ac还引入了下行多用户多入多出(英文:DownLink Multiple User-MultipleInput Multiple Output;简称:DL MU-MIMO)机制,即发送端能够生成多个数据消息,其中的每个数据消息均以A-MPDU的形式进行传输,发送端同时将多个数据消息承载在不同空间流上发送至多个接收端。The A-MPDU includes a plurality of subframes, and each subframe consists of a delimiter (English: Delimiter) at the head of the subframe, and a media access control protocol data unit (English: Medium accesscontrol Protocol Data Unit; : MPDU) and padding bits (English: Pad) at the end of the subframe. Among them, Delimiter is 4 bytes long, and Delimiter includes MPDU length indication (English: MPDULength) and MPDU characteristic bit (English: MPDU Signature), MPDU Length is used to indicate the length of the MPDU in this subframe, and MPDU Signature is used to identify this subframe The starting position of the frame, the content of MPDUSignature is a given sequence ("0x4E" in the current 802.11 standard); the length of Pad is 0-3 bytes, and its function is to make the sum of the length of MPDU and Pad a 4-byte integer times, so the length of the Pad can be adjusted according to the length of the MPDU. During data parsing, the receiving end guesses the starting position of the next subframe according to the MPDULength in the Delimiter. If the MPDU Length of a certain subframe is decoded incorrectly, it can search for the next MPDU Signature in the A-MPDU to determine the next subframe. The starting position of the frame. Since the length of the Delimiter is 4 bytes, the receiver can search for the MPDU Signature sequence in the A-MPDU in units of 4 bytes. If the last byte of the current 4 bytes matches the MPDU Signature, it can be considered that the current 4 bytes are the Delimiter of a subframe; otherwise, search for the next 4 bytes and perform the matching operation again. Obviously, this method of searching in units of 4 bytes is much faster in data parsing than searching in units of 1 byte. Therefore, the length of the corresponding Pad can be adjusted according to the length of the MPDU in each subframe, so that the sum of the length of the MPDU and the corresponding Pad is an integer multiple of 4 bytes, so that the receiving end can use 4 bytes after receiving the data message. Do a quick search for your unit. 802.11ac also introduces the Downlink Multiple User-Multiple Input Multiple Output (English: DownLink Multiple User-Multiple Input Multiple Output; abbreviation: DL MU-MIMO) mechanism, that is, the sender can generate multiple data messages, and each data message is The transmission is performed in the form of A-MPDU, and the sending end simultaneously carries multiple data messages on different spatial streams and sends them to multiple receiving ends.

在802.11ac下一代的技术标准802.11ax中,MAC层同样采用A-MPDU结构,并且子帧的基本结构与802.11ac中子帧的基本结构相同,且802.11ax中也采用了DL MU-MIMO机制。此外,802.11ax还引入了其他多用户机制,如正交频分复用(英文:Orthogonal Frequency Division Multiple Access;简称:OFDMA)和上行多用户多入多出(英文:Uplink Multiple User-Multiple Input Multiple Output;简称:UL MU-MIMO)。无论哪种多用户传输机制,都会导致多个A-MPDU同时存在,而每个A-MPDU包含多个子帧,即多用户传输机制导致传输中同时出现大量子帧,相应地,需要通过Pad进行填充的子帧个数也会很多,增加了通信系统的额外开销,因此,造成了通信系统资源的浪费。In 802.11ax, the next-generation technical standard of 802.11ac, the MAC layer also adopts the A-MPDU structure, and the basic structure of the subframe is the same as that in 802.11ac, and the DL MU-MIMO mechanism is also adopted in 802.11ax . In addition, 802.11ax also introduces other multi-user mechanisms, such as Orthogonal Frequency Division Multiple Access (English: Orthogonal Frequency Division Multiple Access; OFDMA for short) and uplink multiple user multiple input multiple output (English: Uplink Multiple User-Multiple Input Multiple Output; abbreviation: UL MU-MIMO). Regardless of the multi-user transmission mechanism, it will cause multiple A-MPDUs to exist at the same time, and each A-MPDU contains multiple subframes, that is, the multi-user transmission mechanism causes a large number of subframes to appear simultaneously in the transmission. The number of filled subframes will also be large, which increases the additional overhead of the communication system, thus causing a waste of communication system resources.

发明内容Contents of the invention

为了解决通信系统资源的浪费的问题,本发明提供了一种数据处理方法、装置及系统。所述技术方案如下:In order to solve the problem of waste of communication system resources, the present invention provides a data processing method, device and system. Described technical scheme is as follows:

第一方面,提供了一种数据处理方法,用于发送端,所述数据处理方法包括:In a first aspect, a data processing method is provided for a sending end, the data processing method includes:

根据多个媒体接入控制协议数据单元MPDU生成聚合媒体接入控制协议数据单元A-MPDU,所述A-MPDU包括y个子帧,每个所述子帧包括定界符和数据部分,所述数据部分包括所述MPDU,每个所述子帧的数据部分的长度均大于等于零,每个所述子帧的定界符的长度均为x字节,x≥1,x为整数,y≥2,y为整数;Generate an aggregated media access control protocol data unit A-MPDU according to a plurality of media access control protocol data units MPDU, the A-MPDU includes y subframes, each of which includes a delimiter and a data part, the The data part includes the MPDU, the length of the data part of each subframe is greater than or equal to zero, the length of the delimiter of each subframe is x bytes, x≥1, x is an integer, and y≥ 2, y is an integer;

若第k个子帧是非空子帧,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍,则对所述第k个子帧进行第一处理,所述第一处理使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,1≤k≤y,k为整数;If the kth subframe is a non-empty subframe, and the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer multiple of x, then for the kth Subframes perform the first processing, the first processing makes the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe be an integer multiple of x, 1≤k≤ y, k are integers;

其中,当存在第k+1个子帧且是非空子帧时,对第k个子帧的第一处理的过程包括:将位于第k+1个子帧的MPDU的头部的长度为m的部分移至位于第k个子帧的定界符之后的所述第k个子帧的MPDU之后、所述第k+1个子帧的定界符之前,使得位于所述第k个子帧的定界符之后、所述第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,其中,0<m≤x-1,m为整数;Wherein, when there is a k+1th subframe and it is a non-empty subframe, the process of the first processing of the kth subframe includes: moving the part of the length m of the head of the MPDU located in the k+1th subframe to After the MPDU of the kth subframe after the delimiter of the kth subframe, before the delimiter of the k+1th subframe, so that after the delimiter of the kth subframe, the The length of the data part before the delimiter of the k+1th subframe is an integer multiple of x, wherein, 0<m≤x-1, m is an integer;

向接收端发送处理后的所述A-MPDU,以便于所述接收端根据处理后的所述A-MPDU解析得到所述多个MPDU。and sending the processed A-MPDU to the receiving end, so that the receiving end can obtain the multiple MPDUs by parsing the processed A-MPDU.

结合第一方面,在第一方面的第一种可实现方式中,In combination with the first aspect, in the first implementable manner of the first aspect,

所述数据处理方法还包括:当第k个子帧是最后一个子帧或存在第k+1个子帧且是空子帧时,所述对第k个子帧的第一处理的过程包括:The data processing method further includes: when the kth subframe is the last subframe or the k+1th subframe exists and is an empty subframe, the process of the first processing of the kth subframe includes:

在位于所述第k个子帧的定界符之后的所述第k个子帧的MPDU之后添加长度为Q的填充位,使得所述填充位的长度Q与所述位于所述第k个子帧的定界符之后的所述第k个子帧的MPDU的长度之和等于所述x的整数倍,其中,0<Q≤x-1,Q为整数。After the MPDU of the kth subframe after the delimiter of the kth subframe, a padding bit with a length of Q is added, so that the length Q of the padding bit is the same as that of the MPDU located in the kth subframe The sum of the lengths of the MPDUs of the kth subframe after the delimiter is equal to an integer multiple of x, where 0<Q≤x−1, and Q is an integer.

结合第一方面或第一方面的第一种可实现方式,在第一方面的第二种可实现方式中,In combination with the first aspect or the first implementable manner of the first aspect, in the second implementable manner of the first aspect,

当k≥2时,第k个子帧的定界符中包括第一长度指示信息和第二长度指示信息;When k≥2, the delimiter of the kth subframe includes first length indication information and second length indication information;

其中,所述第一长度指示信息用于指示所述第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度,所述第二长度指示信息用于指示所述第k个子帧的MPDU移至第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度;Wherein, the first length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication information is used to indicate the length of the MPDU of the kth subframe The MPDU of the frame is moved to the length of the part after the MPDU of the k-1th subframe and before the delimiter of the kth subframe;

或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k+1个子帧的MPDU移至所述第k个子帧的MPDU之后、所述第k+1个子帧的定界符之前的部分的长度;Alternatively, the first length indication information is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe. The sum of the lengths of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication information is used to indicate that the MPDU of the k+1th subframe is moved to the The length of the part after the MPDU of the kth subframe and before the delimiter of the k+1th subframe;

或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度;Alternatively, the first length indication information is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe. The sum of the lengths of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information is used to indicate that the MPDU of the kth subframe is moved to the The length of the part after the MPDU of the k-1 subframe and before the delimiter of the kth subframe;

或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度。Alternatively, the first length indication information is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe. The sum of the lengths of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information is used to indicate that the MPDU of the kth subframe is located in the kth subframe The length of the part after the delimiter of subframes.

第二方面,提供了一种数据处理方法,用于发送端,所述数据处理方法包括:In a second aspect, a data processing method is provided for a sending end, and the data processing method includes:

根据多个媒体接入控制协议数据单元MPDU生成聚合媒体接入控制协议数据单元A-MPDU,所述A-MPDU包括y个子帧,每个所述子帧包括定界符和数据部分,所述数据部分包括所述MPDU,每个所述子帧的数据部分的长度均大于等于零,每个所述子帧的定界符的长度均为x,x≥1,x为整数,y≥2,y为整数;Generate an aggregated media access control protocol data unit A-MPDU according to a plurality of media access control protocol data units MPDU, the A-MPDU includes y subframes, each of which includes a delimiter and a data part, the The data part includes the MPDU, the length of the data part of each subframe is greater than or equal to zero, the length of the delimiter of each subframe is x, x≥1, x is an integer, y≥2, y is an integer;

若第k个子帧是非空子帧,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍,则对所述第k个子帧进行第二处理,所述第二处理使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,1≤k≤y,k为整数;If the kth subframe is a non-empty subframe, and the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer multiple of x, then for the kth Subframes carry out the second processing, the second processing makes the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe be an integer multiple of x, 1≤k≤ y, k are integers;

其中,当存在第k+1个子帧且是非空子帧时,对第k个子帧的第二处理的过程包括:将位于第k个子帧的MPDU的尾部的长度为m的部分移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后,使得位于第k个子帧的定界符之后、第k+1个定界符之前的数据部分的长度为x的整数倍,其中,0≤m≤x-1,m为整数;Wherein, when there is a k+1th subframe and it is a non-empty subframe, the process of the second processing of the kth subframe includes: moving the part with a length of m at the end of the MPDU of the kth subframe to the k+th subframe Before the MPDU of 1 subframe and after the delimiter of the k+1th subframe, the length of the data part after the delimiter of the kth subframe and before the k+1th delimiter is an integer multiple of x , where, 0≤m≤x-1, m is an integer;

向接收端发送处理后的所述A-MPDU,以便于所述接收端根据处理后的所述A-MPDU解析得到所述多个MPDU。and sending the processed A-MPDU to the receiving end, so that the receiving end can obtain the multiple MPDUs by parsing the processed A-MPDU.

结合第二方面,在第二方面的第一种可实现方式中,In combination with the second aspect, in the first implementable manner of the second aspect,

所述数据处理方法还包括:当第k个子帧是最后一个子帧或存在第k+1个子帧且是空子帧时,所述对第k个子帧的第二处理的过程包括:The data processing method further includes: when the kth subframe is the last subframe or the k+1th subframe exists and is an empty subframe, the process of the second processing of the kth subframe includes:

在位于所述第k个子帧的定界符之后的所述第k个子帧的MPDU之后添加长度为Q的填充位,使得第k-1个子帧的MPDU移至所述第k个子帧的MPDU之前、所述第k个子帧的定界符之后的部分的长度、所述填充位的长度Q与所述第k个子帧的MPDU的长度之和等于所述x的整数倍,其中,0<Q≤x-1,Q为整数。After the MPDU of the kth subframe located after the delimiter of the kth subframe, a padding bit with a length of Q is added, so that the MPDU of the k-1th subframe is moved to the MPDU of the kth subframe The sum of the length of the part before and after the delimiter of the kth subframe, the length Q of the padding bit, and the length of the MPDU of the kth subframe is equal to an integer multiple of x, where 0< Q≤x-1, Q is an integer.

结合第二方面或第二方面的第一种可实现方式,在第二方面的第二种可实现方式中,In combination with the second aspect or the first possible implementation of the second aspect, in the second possible implementation of the second aspect,

当k≥2时,第k个子帧的定界符中包括第一长度指示信息和第二长度指示信息;When k≥2, the delimiter of the kth subframe includes first length indication information and second length indication information;

其中,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k+1个子帧的MPDU之前、所述第k+1个子帧的定界符之后的部分的长度与所述第k个子帧的MPDU位于所述第k+1个子帧的定界符之前的部分的长度之和,所述第二长度指示信息用于指示第k-1个子帧的MPDU移至所述第k个子帧的MPDU之前、所述第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the part before the MPDU of the k+1th subframe and after the delimiter of the k+1th subframe The sum of the length and the length of the part of the MPDU of the kth subframe located before the delimiter of the k+1th subframe, the second length indication information is used to indicate that the MPDU of the k-1th subframe is moved The length of the part before the MPDU of the kth subframe and after the delimiter of the kth subframe.

结合第二方面的第二种可实现方式,在第二方面的第三种可实现方式中,In combination with the second possible realization of the second aspect, in the third possible realization of the second aspect,

所述每个子帧的定界符中还包括用于指示所述每个子帧位置的位置标识,当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,所述多个子帧中除所述第k个子帧之外的其他子帧定界符中的位置标识与所述第k个子帧定界符中的位置标识不同。The delimiter of each subframe also includes a position identifier for indicating the position of each subframe, when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe When there is an empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, the position identifiers in the delimiters of other subframes in the multiple subframes except the kth subframe are consistent with the The location identifiers in the kth subframe delimiter are different.

结合第二方面的第二种可实现方式或第二方面的第三种可实现方式,在第二方面的第四种可实现方式中,In combination with the second implementable manner of the second aspect or the third implementable manner of the second aspect, in the fourth implementable manner of the second aspect,

所述每个子帧的定界符中还包括用于指示所述每个子帧中是否存在填充位的填充标识。The delimiter of each subframe further includes a stuffing flag used to indicate whether there are stuffing bits in each subframe.

第三方面,提供了一种数据处理方法,用于接收端,所述数据处理方法包括:In a third aspect, a data processing method is provided for a receiving end, and the data processing method includes:

接收发送端发送的聚合媒体接入控制协议数据单元A-MPDU,所述A-MPDU包括y个子帧,每个所述子帧包括定界符和数据部分,每个所述子帧的数据部分的长度均大于等于零,每个所述子帧的定界符的长度均为x,x≥1,x为整数,所述定界符中包括第一长度指示信息和第二长度指示信息,所述数据部分包括媒体接入控制协议数据单元MPDU,每两个所述子帧的定界符之间的数据部分的长度均为x的整数倍,y≥2,y为整数;Receive the aggregated media access control protocol data unit A-MPDU sent by the sending end, the A-MPDU includes y subframes, each of the subframes includes a delimiter and a data part, and the data part of each of the subframes The lengths are greater than or equal to zero, the length of the delimiter of each subframe is x, x≥1, x is an integer, and the delimiter includes the first length indication information and the second length indication information, so The data part includes a media access control protocol data unit MPDU, the length of the data part between the delimiters of each two subframes is an integer multiple of x, y≥2, and y is an integer;

依次对所述多个子帧中的子帧以长度x为单位进行解析处理得到多个MPDU,其中,第k个子帧为所述y个子帧中的任意一个,1≤k≤y,k为整数,对第k个子帧的解析处理过程包括:根据所述第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从第k-1个子帧的数据部分中获取所述第k个子帧的MPDU的第一部分,从所述第k个子帧的数据部分中获取所述第k个子帧的MPDU的第二部分,将所述第一部分和所述第二部分合并,组成所述第k个子帧的MPDU,此时2≤k≤y;Analyzing and processing the subframes in the plurality of subframes in units of length x in order to obtain a plurality of MPDUs, wherein the kth subframe is any one of the y subframes, 1≤k≤y, and k is an integer , the parsing process for the kth subframe includes: according to the first length indication information and the second length indication information in the delimiter of the kth subframe, the data part of the k-1th subframe is obtained from the The first part of the MPDU of the kth subframe is obtained, the second part of the MPDU of the kth subframe is obtained from the data part of the kth subframe, and the first part and the second part are combined to form The MPDU of the kth subframe, at this time 2≤k≤y;

其中,所述第一长度指示信息用于指示所述第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度,所述第二长度指示信息用于指示所述第k个子帧的MPDU移至第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度;或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k+1个子帧的MPDU移至所述第k个子帧的MPDU之后、所述第k+1个子帧的定界符之前的部分的长度;或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度;或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication information is used to indicate the length of the MPDU of the kth subframe The MPDU of the frame is moved to the length of the part after the MPDU of the k-1th subframe and before the delimiter of the kth subframe; or, the first length indication information is used to indicate the length of the kth subframe The length of the part where the MPDU is moved to after the MPDU of the k-1th subframe and before the delimiter of the kth subframe is the same as the length of the part where the MPDU of the kth subframe is located at the delimiter of the kth subframe The sum of the lengths of the following parts, the second length indication information is used to indicate that the MPDU of the k+1th subframe is moved to after the MPDU of the kth subframe, and the location of the k+1th subframe The length of the part before the delimiter; or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to after the MPDU of the k-1th subframe, and the location of the kth subframe The sum of the length of the part before the delimiter and the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information is used to indicate that the kth subframe The MPDU of the frame is moved to the length of the part after the MPDU of the k-1th subframe and before the delimiter of the kth subframe; or, the first length indication information is used to indicate that the kth subframe The length of the part where the MPDU of the frame is moved to after the MPDU of the k-1th subframe and before the delimiter of the kth subframe is the same as the length of the part where the MPDU of the kth subframe is located in the kth subframe sum of the lengths of the part after the delimiter, and the second length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe.

第四方面,提供了一种数据处理方法,用于接收端,所述数据处理方法包括:In a fourth aspect, a data processing method is provided for a receiving end, the data processing method includes:

接收发送端发送的聚合媒体接入控制协议数据单元A-MPDU,所述A-MPDU包括y个子帧,每个所述子帧包括定界符和数据部分,每个所述子帧的数据部分的长度均大于等于零,每个所述子帧的定界符的长度均为x,x≥1,x为整数,所述定界符中包括第一长度指示信息和第二长度指示信息,所述数据部分包括媒体接入控制协议数据单元MPDU,每两个所述子帧的定界符之间的数据部分的长度均为x的整数倍,y≥2,y为整数;Receive the aggregated media access control protocol data unit A-MPDU sent by the sending end, the A-MPDU includes y subframes, each of the subframes includes a delimiter and a data part, and the data part of each of the subframes The lengths are greater than or equal to zero, the length of the delimiter of each subframe is x, x≥1, x is an integer, and the delimiter includes the first length indication information and the second length indication information, so The data part includes a media access control protocol data unit MPDU, the length of the data part between the delimiters of each two subframes is an integer multiple of x, y≥2, and y is an integer;

依次对所述多个子帧中的子帧以长度x为单位进行解析处理得到多个MPDU,其中,第k个子帧为所述y个子帧中的任意一个,1≤k≤y,k为整数,所述解析处理包括对第k个子帧进行第一解析处理:根据所述第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从所述第k个子帧的数据部分中获取所述第k个子帧的MPDU的第一部分,从第k+1个子帧的数据部分中获取所述第k个子帧的MPDU的第二部分,将所述第一部分和所述第二部分合并,组成所述第k个子帧的MPDU,此时1≤k≤y-1;Analyzing and processing the subframes in the plurality of subframes in units of length x in order to obtain a plurality of MPDUs, wherein the kth subframe is any one of the y subframes, 1≤k≤y, and k is an integer , the parsing process includes performing a first parsing process on the kth subframe: according to the first length indication information and the second length indication information in the delimiter of the kth subframe, from the kth subframe Obtaining the first part of the MPDU of the kth subframe in the data part, obtaining the second part of the MPDU of the kth subframe from the data part of the k+1th subframe, and combining the first part with the The two parts are combined to form the MPDU of the kth subframe, at this time 1≤k≤y-1;

其中,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k+1个子帧的MPDU之前、所述第k+1个子帧的定界符之后的部分的长度与所述第k个子帧的MPDU位于所述第k+1个子帧的定界符之前的部分的长度之和,所述第二长度指示信息用于指示第k-1个子帧的MPDU移至所述第k个子帧的MPDU之前、所述第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the part before the MPDU of the k+1th subframe and after the delimiter of the k+1th subframe The sum of the length and the length of the part of the MPDU of the kth subframe located before the delimiter of the k+1th subframe, the second length indication information is used to indicate that the MPDU of the k-1th subframe is moved The length of the part before the MPDU of the kth subframe and after the delimiter of the kth subframe.

结合第四方面,在第四方面的第一种可实现方式中,In combination with the fourth aspect, in the first implementable manner of the fourth aspect,

所述定界符中还包括填充标识,所述解析处理还包括:The delimiter also includes a filling identifier, and the parsing process also includes:

检测所述第k个子帧中的填充标识;Detecting a filling identifier in the kth subframe;

当检测出所述填充标识指示所述第k个子帧中不存在所述填充位时执行所述第一解析处理;Executing the first parsing process when it is detected that the padding flag indicates that the padding bit does not exist in the kth subframe;

当检测出所述填充标识指示所述第k个子帧中存在所述填充位,则对所述第k个子帧执行第二解析处理:根据所述第k个子帧的定界符中的第一长度指示信息与第二长度指示信息,在所述第k个子帧的数据部分中,获取与所述第k个子帧的定界符的距离为e,且长度为f的部分,作为所述第k个子帧的MPDU,e为所述第k个子帧的定界符中的第二长度指示信息所指示的长度,f为所述第k个子帧的定界符中的第一长度指示信息所指示的长度。When it is detected that the padding flag indicates that the padding bit exists in the kth subframe, the second parsing process is performed on the kth subframe: according to the first in the delimiter of the kth subframe In the length indication information and the second length indication information, in the data part of the kth subframe, the part with a distance of e from the delimiter of the kth subframe and a length of f is obtained as the part of the kth subframe For the MPDU of the k subframe, e is the length indicated by the second length indication information in the delimiter of the kth subframe, and f is the length indicated by the first length indication information in the delimiter of the kth subframe indicated length.

第五方面,提供了一种数据处理装置,所述数据处理装置为发送端,所述数据处理装置包括:In a fifth aspect, a data processing device is provided, the data processing device is a sending end, and the data processing device includes:

生成单元,用于根据多个媒体接入控制协议数据单元MPDU生成聚合媒体接入控制协议数据单元A-MPDU,所述A-MPDU包括y个子帧,每个所述子帧包括定界符和数据部分,所述数据部分包括所述MPDU,每个所述子帧的数据部分的长度均大于等于零,每个所述子帧的定界符的长度均为x字节,x≥1,x为整数,y≥2,y为整数;A generating unit, configured to generate an aggregated media access control protocol data unit A-MPDU according to a plurality of media access control protocol data units MPDU, the A-MPDU includes y subframes, and each of the subframes includes a delimiter and A data part, the data part includes the MPDU, the length of the data part of each subframe is greater than or equal to zero, and the length of the delimiter of each subframe is x bytes, x≥1, x is an integer, y≥2, and y is an integer;

第一处理单元,用于在第k个子帧是非空子帧,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍时,对所述第k个子帧进行第一处理,所述第一处理使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,1≤k≤y,k为整数;The first processing unit is configured to be a non-empty subframe in the kth subframe, and the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer multiple of x , the first processing is performed on the kth subframe, and the first processing makes the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe be x Integer multiple, 1≤k≤y, k is an integer;

其中,当存在第k+1个子帧且是非空子帧时,对第k个子帧的第一处理的过程包括:将位于第k+1个子帧的MPDU的头部的长度为m的部分移至位于第k个子帧的定界符之后的所述第k个子帧的MPDU之后、所述第k+1个子帧的定界符之前,使得位于所述第k个子帧的定界符之后、所述第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,其中,0<m≤x-1,m为整数;Wherein, when there is a k+1th subframe and it is a non-empty subframe, the process of the first processing of the kth subframe includes: moving the part of the length m of the head of the MPDU located in the k+1th subframe to After the MPDU of the kth subframe after the delimiter of the kth subframe, before the delimiter of the k+1th subframe, so that after the delimiter of the kth subframe, the The length of the data part before the delimiter of the k+1th subframe is an integer multiple of x, wherein, 0<m≤x-1, m is an integer;

发送单元,用于向接收端发送处理后的所述A-MPDU,以便于所述接收端根据处理后的所述A-MPDU解析得到所述多个MPDU。The sending unit is configured to send the processed A-MPDU to the receiving end, so that the receiving end can obtain the multiple MPDUs by analyzing the processed A-MPDU.

结合第五方面,在第五方面的第一种可实现方式中,In combination with the fifth aspect, in the first implementable manner of the fifth aspect,

当第k个子帧是最后一个子帧或存在第k+1个子帧且是空子帧时,所述对第k个子帧的第一处理的过程包括:When the kth subframe is the last subframe or the k+1th subframe exists and is an empty subframe, the process of the first processing of the kth subframe includes:

在位于所述第k个子帧的定界符之后的所述第k个子帧的MPDU之后添加长度为Q的填充位,使得所述填充位的长度Q与所述位于所述第k个子帧的定界符之后的所述第k个子帧的MPDU的长度之和等于所述x的整数倍,其中,0<Q≤x-1,Q为整数。After the MPDU of the kth subframe after the delimiter of the kth subframe, a padding bit with a length of Q is added, so that the length Q of the padding bit is the same as that of the MPDU located in the kth subframe The sum of the lengths of the MPDUs of the kth subframe after the delimiter is equal to an integer multiple of x, where 0<Q≤x−1, and Q is an integer.

结合第五方面或第五方面的第一种可实现方式,在第五方面的第二种可实现方式中,In combination with the fifth aspect or the first possible realization of the fifth aspect, in the second possible realization of the fifth aspect,

当k≥2时,第k个子帧的定界符中包括第一长度指示信息和第二长度指示信息;When k≥2, the delimiter of the kth subframe includes first length indication information and second length indication information;

其中,所述第一长度指示信息用于指示所述第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度,所述第二长度指示信息用于指示所述第k个子帧的MPDU移至第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度;Wherein, the first length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication information is used to indicate the length of the MPDU of the kth subframe The MPDU of the frame is moved to the length of the part after the MPDU of the k-1th subframe and before the delimiter of the kth subframe;

或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k+1个子帧的MPDU移至所述第k个子帧的MPDU之后、所述第k+1个子帧的定界符之前的部分的长度;Alternatively, the first length indication information is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe. The sum of the lengths of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication information is used to indicate that the MPDU of the k+1th subframe is moved to the The length of the part after the MPDU of the kth subframe and before the delimiter of the k+1th subframe;

或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度;Alternatively, the first length indication information is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe. The sum of the lengths of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information is used to indicate that the MPDU of the kth subframe is moved to the The length of the part after the MPDU of the k-1 subframe and before the delimiter of the kth subframe;

或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度。Alternatively, the first length indication information is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe. The sum of the lengths of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information is used to indicate that the MPDU of the kth subframe is located in the kth subframe The length of the part after the delimiter of subframes.

第六方面,提供了一种数据处理装置,所述数据处理装置为发送端,所述数据处理装置包括:In a sixth aspect, a data processing device is provided, the data processing device is a sending end, and the data processing device includes:

生成单元,用于根据多个媒体接入控制协议数据单元MPDU生成聚合媒体接入控制协议数据单元A-MPDU,所述A-MPDU包括y个子帧,每个所述子帧包括定界符和数据部分,所述数据部分包括所述MPDU,每个所述子帧的数据部分的长度均大于等于零,每个所述子帧的定界符的长度均为x,x≥1,x为整数,y≥2,y为整数;A generating unit, configured to generate an aggregated media access control protocol data unit A-MPDU according to a plurality of media access control protocol data units MPDU, the A-MPDU includes y subframes, and each of the subframes includes a delimiter and A data part, the data part includes the MPDU, the length of the data part of each subframe is greater than or equal to zero, and the length of the delimiter of each subframe is x, where x≥1, and x is an integer , y≥2, y is an integer;

第二处理单元,用于在第k个子帧是非空子帧,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍时,对所述第k个子帧进行第二处理,所述第二处理使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,1≤k≤y,k为整数;The second processing unit is used for the kth subframe is a non-empty subframe, and the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer multiple of x , the second processing is performed on the kth subframe, and the second processing makes the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe be x Integer multiple, 1≤k≤y, k is an integer;

其中,当存在第k+1个子帧且是非空子帧时,对第k个子帧的第二处理的过程包括:将位于第k个子帧的MPDU的尾部的长度为m的部分移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后,使得位于第k个子帧的定界符之后、第k+1个定界符之前的数据部分的长度为x的整数倍,其中,0≤m≤x-1,m为整数;Wherein, when there is a k+1th subframe and it is a non-empty subframe, the process of the second processing of the kth subframe includes: moving the part with a length of m at the end of the MPDU of the kth subframe to the k+th subframe Before the MPDU of 1 subframe and after the delimiter of the k+1th subframe, the length of the data part after the delimiter of the kth subframe and before the k+1th delimiter is an integer multiple of x , where, 0≤m≤x-1, m is an integer;

发送单元,用于向接收端发送处理后的所述A-MPDU,以便于所述接收端根据处理后的所述A-MPDU解析得到所述多个MPDU。The sending unit is configured to send the processed A-MPDU to the receiving end, so that the receiving end can obtain the multiple MPDUs by analyzing the processed A-MPDU.

结合第六方面,在第六方面的第一种可实现方式中,In combination with the sixth aspect, in the first implementable manner of the sixth aspect,

当第k个子帧是最后一个子帧或存在第k+1个子帧且是空子帧时,所述对第k个子帧的第二处理的过程包括:When the kth subframe is the last subframe or the k+1th subframe exists and is an empty subframe, the process of the second processing of the kth subframe includes:

在位于所述第k个子帧的定界符之后的所述第k个子帧的MPDU之后添加长度为Q的填充位,使得第k-1个子帧的MPDU移至所述第k个子帧的MPDU之前、所述第k个子帧的定界符之后的部分的长度、所述填充位的长度Q与所述第k个子帧的MPDU的长度之和等于所述x的整数倍,其中,0<Q≤x-1,Q为整数。After the MPDU of the kth subframe located after the delimiter of the kth subframe, a padding bit with a length of Q is added, so that the MPDU of the k-1th subframe is moved to the MPDU of the kth subframe The sum of the length of the part before and after the delimiter of the kth subframe, the length Q of the padding bit, and the length of the MPDU of the kth subframe is equal to an integer multiple of x, where 0< Q≤x-1, Q is an integer.

结合第六方面或第六方面的第一种可实现方式,在第六方面的第二种可实现方式中,In combination with the sixth aspect or the first possible realization of the sixth aspect, in the second possible realization of the sixth aspect,

当k≥2时,第k个子帧的定界符中包括第一长度指示信息和第二长度指示信息;When k≥2, the delimiter of the kth subframe includes first length indication information and second length indication information;

其中,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k+1个子帧的MPDU之前、所述第k+1个子帧的定界符之后的部分的长度与所述第k个子帧的MPDU位于所述第k+1个子帧的定界符之前的部分的长度之和,所述第二长度指示信息用于指示第k-1个子帧的MPDU移至所述第k个子帧的MPDU之前、所述第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the part before the MPDU of the k+1th subframe and after the delimiter of the k+1th subframe The sum of the length and the length of the part of the MPDU of the kth subframe located before the delimiter of the k+1th subframe, the second length indication information is used to indicate that the MPDU of the k-1th subframe is moved The length of the part before the MPDU of the kth subframe and after the delimiter of the kth subframe.

结合第六方面的第二种可实现方式,在第六方面的第三种可实现方式中,In combination with the second possible realization of the sixth aspect, in the third possible realization of the sixth aspect,

所述每个子帧的定界符中还包括用于指示所述每个子帧位置的位置标识,当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,所述多个子帧中除所述第k个子帧之外的其他子帧定界符中的位置标识与所述第k个子帧定界符中的位置标识不同。The delimiter of each subframe also includes a position identifier for indicating the position of each subframe, when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe When there is an empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, the position identifiers in the delimiters of other subframes in the multiple subframes except the kth subframe are consistent with the The location identifiers in the kth subframe delimiter are different.

结合第六方面的第二种可实现方式或第六方面的第三种可实现方式,在第六方面的第四种可实现方式中,In combination with the second implementable manner of the sixth aspect or the third implementable manner of the sixth aspect, in the fourth implementable manner of the sixth aspect,

所述每个子帧的定界符中还包括用于指示所述每个子帧中是否存在填充位的填充标识。The delimiter of each subframe further includes a stuffing flag used to indicate whether there are stuffing bits in each subframe.

第七方面,提供了一种数据处理装置,所述数据处理装置为接收端,所述数据处理装置包括:In a seventh aspect, a data processing device is provided, the data processing device is a receiving end, and the data processing device includes:

接收单元,用于接收发送端发送的聚合媒体接入控制协议数据单元A-MPDU,所述A-MPDU包括y个子帧,每个所述子帧包括定界符和数据部分,每个所述子帧的数据部分的长度均大于等于零,每个所述子帧的定界符的长度均为x,x≥1,x为整数,所述定界符中包括第一长度指示信息和第二长度指示信息,所述数据部分包括媒体接入控制协议数据单元MPDU,每两个所述子帧的定界符之间的数据部分的长度均为x的整数倍,y≥2,y为整数;The receiving unit is configured to receive the aggregated media access control protocol data unit A-MPDU sent by the sending end, the A-MPDU includes y subframes, each of which includes a delimiter and a data part, and each of the The length of the data part of the subframe is greater than or equal to zero, the length of the delimiter of each subframe is x, x≥1, x is an integer, and the delimiter includes the first length indication information and the second Length indication information, the data part includes a media access control protocol data unit MPDU, the length of the data part between the delimiters of each two subframes is an integer multiple of x, y≥2, and y is an integer ;

解析单元,用于依次对所述多个子帧中的子帧以长度x为单位进行解析处理得到多个MPDU,其中,第k个子帧为所述y个子帧中的任意一个,1≤k≤y,k为整数,对第k个子帧的解析处理过程包括:根据所述第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从第k-1个子帧的数据部分中获取所述第k个子帧的MPDU的第一部分,从所述第k个子帧的数据部分中获取所述第k个子帧的MPDU的第二部分,将所述第一部分和所述第二部分合并,组成所述第k个子帧的MPDU,此时2≤k≤y;An analysis unit, configured to sequentially analyze and process the subframes in the plurality of subframes in units of length x to obtain a plurality of MPDUs, wherein the kth subframe is any one of the y subframes, 1≤k≤ y, k is an integer, and the parsing process for the kth subframe includes: according to the first length indication information and the second length indication information in the delimiter of the kth subframe, from the k-1th subframe Obtaining the first part of the MPDU of the kth subframe in the data part, obtaining the second part of the MPDU of the kth subframe from the data part of the kth subframe, combining the first part with the The two parts are combined to form the MPDU of the kth subframe, at this time 2≤k≤y;

其中,所述第一长度指示信息用于指示所述第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度,所述第二长度指示信息用于指示所述第k个子帧的MPDU移至第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度;或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k+1个子帧的MPDU移至所述第k个子帧的MPDU之后、所述第k+1个子帧的定界符之前的部分的长度;或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度;或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication information is used to indicate the length of the MPDU of the kth subframe The MPDU of the frame is moved to the length of the part after the MPDU of the k-1th subframe and before the delimiter of the kth subframe; or, the first length indication information is used to indicate the length of the kth subframe The length of the part where the MPDU is moved to after the MPDU of the k-1th subframe and before the delimiter of the kth subframe is the same as the length of the part where the MPDU of the kth subframe is located at the delimiter of the kth subframe The sum of the lengths of the following parts, the second length indication information is used to indicate that the MPDU of the k+1th subframe is moved to after the MPDU of the kth subframe, and the location of the k+1th subframe The length of the part before the delimiter; or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to after the MPDU of the k-1th subframe, and the location of the kth subframe The sum of the length of the part before the delimiter and the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information is used to indicate that the kth subframe The MPDU of the frame is moved to the length of the part after the MPDU of the k-1th subframe and before the delimiter of the kth subframe; or, the first length indication information is used to indicate that the kth subframe The length of the part where the MPDU of the frame is moved to after the MPDU of the k-1th subframe and before the delimiter of the kth subframe is the same as the length of the part where the MPDU of the kth subframe is located in the kth subframe sum of the lengths of the part after the delimiter, and the second length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe.

第八方面,提供了一种数据处理装置,所述数据处理装置为接收端,所述数据处理装置包括:In an eighth aspect, a data processing device is provided, the data processing device is a receiving end, and the data processing device includes:

接收单元,用于接收发送端发送的聚合媒体接入控制协议数据单元A-MPDU,所述A-MPDU包括y个子帧,每个所述子帧包括定界符和数据部分,每个所述子帧的数据部分的长度均大于等于零,每个所述子帧的定界符的长度均为x,x≥1,x为整数,所述定界符中包括第一长度指示信息和第二长度指示信息,所述数据部分包括媒体接入控制协议数据单元MPDU,每两个所述子帧的定界符之间的数据部分的长度均为x的整数倍,y≥2,y为整数;The receiving unit is configured to receive the aggregated media access control protocol data unit A-MPDU sent by the sending end, the A-MPDU includes y subframes, each of which includes a delimiter and a data part, and each of the The length of the data part of the subframe is greater than or equal to zero, the length of the delimiter of each subframe is x, x≥1, x is an integer, and the delimiter includes the first length indication information and the second Length indication information, the data part includes a media access control protocol data unit MPDU, the length of the data part between the delimiters of each two subframes is an integer multiple of x, y≥2, and y is an integer ;

解析单元,用于依次对所述多个子帧中的子帧以长度x为单位进行解析处理得到多个MPDU,其中,第k个子帧为所述y个子帧中的任意一个,1≤k≤y,k为整数,所述解析单元包括:An analysis unit, configured to sequentially analyze and process the subframes in the plurality of subframes in units of length x to obtain a plurality of MPDUs, wherein the kth subframe is any one of the y subframes, 1≤k≤ y, k are integers, and the parsing unit includes:

第一解析单元,用于对第k个子帧执行第一解析处理:根据所述第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从所述第k个子帧的数据部分中获取所述第k个子帧的MPDU的第一部分,从第k+1个子帧的数据部分中获取所述第k个子帧的MPDU的第二部分,将所述第一部分和所述第二部分合并,组成所述第k个子帧的MPDU,此时1≤k≤y-1;The first parsing unit is configured to perform a first parsing process on the kth subframe: according to the first length indication information and the second length indication information in the delimiter of the kth subframe, from the kth subframe Obtain the first part of the MPDU of the kth subframe from the data part of the k+1th subframe, obtain the second part of the MPDU of the kth subframe from the data part of the k+1th subframe, and combine the first part and the The second part is combined to form the MPDU of the kth subframe, at this time 1≤k≤y-1;

其中,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k+1个子帧的MPDU之前、所述第k+1个子帧的定界符之后的部分的长度与所述第k个子帧的MPDU位于所述第k+1个子帧的定界符之前的部分的长度之和,所述第二长度指示信息用于指示第k-1个子帧的MPDU移至所述第k个子帧的MPDU之前、所述第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the part before the MPDU of the k+1th subframe and after the delimiter of the k+1th subframe The sum of the length and the length of the part of the MPDU of the kth subframe located before the delimiter of the k+1th subframe, the second length indication information is used to indicate that the MPDU of the k-1th subframe is moved The length of the part before the MPDU of the kth subframe and after the delimiter of the kth subframe.

结合第八方面,在第八方面的第一种可实现方式中,In combination with the eighth aspect, in the first implementable manner of the eighth aspect,

所述定界符中还包括填充标识,所述解析单元还包括:The delimiter also includes a padding identifier, and the parsing unit also includes:

检测单元,用于检测所述第k个子帧中的填充标识;a detection unit, configured to detect the filling identifier in the kth subframe;

所述第一解析单元,具体用于在所述检测单元检测出所述第k个子帧中不存在所述填充位时,对所述第k个子帧进行所述第一解析处理;The first parsing unit is specifically configured to perform the first parsing process on the kth subframe when the detection unit detects that the filling bit does not exist in the kth subframe;

第二解析单元,用于在所述检测单元检测出所述填充标识指示所述第k个子帧中存在所述填充位时,对所述第k个子帧执行第二解析处理:根据所述第k个子帧的定界符中的第一长度指示信息与第二长度指示信息,在所述第k个子帧的数据部分中,获取与所述第k个子帧的定界符的距离为e,且长度为f的部分,作为所述第k个子帧的MPDU,e为所述第k个子帧的定界符中的第二长度指示信息所指示的长度,f为所述第k个子帧的定界符中的第一长度指示信息所指示的长度。The second parsing unit is configured to perform a second parsing process on the kth subframe when the detection unit detects that the stuffing flag indicates that the stuffing bits exist in the kth subframe: according to the kth subframe The first length indication information and the second length indication information in the delimiter of the k subframe, in the data part of the kth subframe, the distance from the delimiter of the kth subframe is e, And the part with a length of f is used as the MPDU of the kth subframe, e is the length indicated by the second length indication information in the delimiter of the kth subframe, and f is the length of the kth subframe The first length in the delimiter indicates the length indicated by the information.

第九方面,提供了一种数据处理系统,所述数据处理系统包括:发送端和接收端,In a ninth aspect, a data processing system is provided, and the data processing system includes: a sending end and a receiving end,

所述发送端为第五方面或第六方面所述的数据处理装置;The sending end is the data processing device described in the fifth aspect or the sixth aspect;

所述接收端为第七方面或第八方面所述的数据处理装置。The receiving end is the data processing device described in the seventh aspect or the eighth aspect.

综上所述,本发明提供了一种数据处理方法、装置及系统,对于A-MPDU的两个相邻子帧,发送端将后一子帧的MPDU头部的部分字节前移至前一子帧的MPDU的尾部,或发送端将前一子帧的MPDU尾部的部分字节后移至后一子帧的MPDU的头部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。In summary, the present invention provides a data processing method, device and system. For two adjacent subframes of an A-MPDU, the sending end moves some bytes of the MPDU header of the next subframe forward to the front The end of the MPDU of a subframe, or the sender moves some bytes at the end of the MPDU of the previous subframe to the head of the MPDU of the next subframe, so that it is located after the delimiter of the previous subframe. The length of the data part before the delimiter of a subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本发明。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1是本发明实施例提供的一种数据处理系统的场景示意图;FIG. 1 is a schematic diagram of a scene of a data processing system provided by an embodiment of the present invention;

图2为本发明实施例提供的一种A-MPDU的结构示意图;FIG. 2 is a schematic structural diagram of an A-MPDU provided by an embodiment of the present invention;

图3是本发明实施例提供的一种数据处理方法的方法流程图;Fig. 3 is a method flowchart of a data processing method provided by an embodiment of the present invention;

图4是本发明实施例提供的另一种数据处理方法的方法流程图;Fig. 4 is a method flowchart of another data processing method provided by an embodiment of the present invention;

图5是本发明实施例提供的又一种数据处理方法的方法流程图;Fig. 5 is a method flowchart of another data processing method provided by an embodiment of the present invention;

图6是本发明实施例提供的一种两个相邻的子帧的结构示意图;FIG. 6 is a schematic structural diagram of two adjacent subframes provided by an embodiment of the present invention;

图7是本发明实施例提供的一种第一处理的示意图;Fig. 7 is a schematic diagram of a first treatment provided by an embodiment of the present invention;

图8是本发明实施例提供的另一种第一处理的示意图;Fig. 8 is a schematic diagram of another first treatment provided by an embodiment of the present invention;

图9是本发明实施例提供的一种定界符的结构示意图;FIG. 9 is a schematic structural diagram of a delimiter provided by an embodiment of the present invention;

图9-1是本发明实施例提供的另一种定界符的结构示意图;Fig. 9-1 is a schematic structural diagram of another delimiter provided by an embodiment of the present invention;

图9-2是本发明实施例提供的又一种定界符的结构示意图;Fig. 9-2 is a schematic structural diagram of another delimiter provided by an embodiment of the present invention;

图9-3是本发明实施例提供的再一种定界符的结构示意图;FIG. 9-3 is a schematic structural diagram of another delimiter provided by an embodiment of the present invention;

图9-4是本发明另一实施例提供的一种定界符的结构示意图;Fig. 9-4 is a schematic structural diagram of a delimiter provided by another embodiment of the present invention;

图9-5是本发明另一实施例提供的另一种定界符的结构示意图;Fig. 9-5 is a schematic structural diagram of another delimiter provided by another embodiment of the present invention;

图10是本发明实施例提供的再一种数据处理方法的方法流程图;Fig. 10 is a method flowchart of another data processing method provided by an embodiment of the present invention;

图11是本发明另一实施例提供的一种数据处理方法的方法流程图;Fig. 11 is a method flowchart of a data processing method provided by another embodiment of the present invention;

图12是本发明另一实施例提供的另一种数据处理方法的方法流程图;Fig. 12 is a method flowchart of another data processing method provided by another embodiment of the present invention;

图13是本发明实施例提供的另一种两个相邻的子帧的结构示意图;FIG. 13 is a schematic structural diagram of another two adjacent subframes provided by an embodiment of the present invention;

图14是本发明实施例提供的一种第二处理的示意图;Fig. 14 is a schematic diagram of a second process provided by an embodiment of the present invention;

图15是本发明实施例提供的另一种第二处理的示意图;Fig. 15 is a schematic diagram of another second processing provided by an embodiment of the present invention;

图16是本发明实施例提供的一种解析处理的过程的方法流程图;Fig. 16 is a method flow chart of a parsing process provided by an embodiment of the present invention;

图17是本发明实施例提供的一种数据处理装置的结构示意图;Fig. 17 is a schematic structural diagram of a data processing device provided by an embodiment of the present invention;

图18是本发明实施例提供的另一种数据处理装置的结构示意图;Fig. 18 is a schematic structural diagram of another data processing device provided by an embodiment of the present invention;

图19是本发明实施例提供的又一种数据处理装置的结构示意图;Fig. 19 is a schematic structural diagram of another data processing device provided by an embodiment of the present invention;

图20是本发明实施例提供的再一种数据处理装置的结构示意图;Fig. 20 is a schematic structural diagram of another data processing device provided by an embodiment of the present invention;

图21是本发明实施例提供的一种解析单元的结构示意图;Fig. 21 is a schematic structural diagram of an analysis unit provided by an embodiment of the present invention;

图22是本发明实施例提供的另一种解析单元的结构示意图;Fig. 22 is a schematic structural diagram of another parsing unit provided by an embodiment of the present invention;

图23是本发明另一实施例提供的一种数据处理装置的结构示意图;Fig. 23 is a schematic structural diagram of a data processing device provided by another embodiment of the present invention;

图24是本发明另一实施例提供的另一种数据处理装置的结构示意图;Fig. 24 is a schematic structural diagram of another data processing device provided by another embodiment of the present invention;

图25是本发明另一实施例提供的又一种数据处理装置的结构示意图;Fig. 25 is a schematic structural diagram of another data processing device provided by another embodiment of the present invention;

图26是本发明另一实施例提供的再一种数据处理装置的结构示意图。Fig. 26 is a schematic structural diagram of another data processing device provided by another embodiment of the present invention.

通过上述附图,已示出本发明明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本发明构思的范围,而是通过参考特定实施例为本领域技术人员说明本发明的概念。By way of the above drawings, specific embodiments of the invention have been shown and will be described in more detail hereinafter. These drawings and written descriptions are not intended to limit the scope of the inventive concept in any way, but to illustrate the inventive concept for those skilled in the art by referring to specific embodiments.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

如图1所示,本发明实施例提供了一种数据处理系统的场景示意图,该数据处理系统包括发送端A和接收端B,发送端A能够生成多个数据消息,并能够同时将该多个数据消息聚合为A-MPDU发送至接收端B,该A-MPDU可以包括多个子帧。该发送端A可以为路由器,该接收端B可以为计算机或手机。需要说明的是,该发送端A和该接收端B还可以为其他设备,本发明实施例对此不做限定。As shown in FIG. 1 , an embodiment of the present invention provides a schematic diagram of a scenario of a data processing system. The data processing system includes a sending end A and a receiving end B. The sending end A can generate multiple data messages, and simultaneously send multiple data messages to A data message is aggregated into an A-MPDU and sent to the receiving end B, and the A-MPDU may include multiple subframes. The sending end A may be a router, and the receiving end B may be a computer or a mobile phone. It should be noted that the sending end A and the receiving end B may also be other devices, which is not limited in this embodiment of the present invention.

图2为802.11n和802.11ac中的A-MPDU的结构示意图,如图2所示,该A-MPDU包括n个子帧,且n大于等于1,每个子帧由位于子帧头部的定界符、位于子帧中间的MPDU和位于子帧尾部的填充位组成。每个子帧的定界符中包括MPDU长度指示和MPDU特征位,MPDU长度指示用于指示该子帧中MPDU的长度(单位为字节),MPDU特征位用于标识该子帧的起始位置,在802.11标准中,该定界符的长度为4字节。接收端在接收到该A-MPDU并在进行解析时,接收端根据定界符中MPDU长度指示推测下一个子帧的起始位置,若某一子帧的MPDU长度指示解码错误,则可以通过在A-MPDU中搜索下一个MPDU特征位,找到下一个子帧并进行下一个子帧的解析。由于该MPDU特征位位于子帧的定界符中,为了便于接收端通过搜索下一个MPDU特征位来确定下一个子帧的位置,通常在每个子帧的MPDU之后添加填充位,使得MPDU和填充位的长度之和为定界符的长度的整数倍,填充位的长度可以根据子帧中MPDU的长度进行调整。填充位的具体填充内容可以是全0或全1或随机序列,属于冗余位。Figure 2 is a schematic structural diagram of the A-MPDU in 802.11n and 802.11ac, as shown in Figure 2, the A-MPDU includes n subframes, and n is greater than or equal to 1, and each subframe is delimited by the Symbol, MPDU located in the middle of the subframe and padding bits located at the end of the subframe. The delimiter of each subframe includes an MPDU length indication and an MPDU flag, the MPDU length indication is used to indicate the length of the MPDU in the subframe (in bytes), and the MPDU flag is used to identify the starting position of the subframe , in the 802.11 standard, the length of the delimiter is 4 bytes. When the receiving end receives the A-MPDU and parses it, the receiving end guesses the starting position of the next subframe according to the MPDU length indication in the delimiter. If the MPDU length indication of a certain subframe indicates a decoding error, it can pass Search the next MPDU flag in the A-MPDU, find the next subframe and analyze the next subframe. Since the MPDU flag is located in the delimiter of the subframe, in order to facilitate the receiving end to determine the position of the next subframe by searching for the next MPDU flag, it usually adds padding bits after the MPDU of each subframe, so that the MPDU and the padding The sum of the bit lengths is an integer multiple of the length of the delimiter, and the length of the padding bits can be adjusted according to the length of the MPDU in the subframe. The specific filling content of the stuffing bits can be all 0s or all 1s or a random sequence, which is a redundant bit.

示例的,本发明实施例中的长度以字节为单位,例如,定界符的长度为4字节,即该定界符中字节的数目为4。示例的,图2中的子帧2,由位于该子帧2头部的定界符、位于子帧2中间的MPDU和位于子帧2尾部的填充位组成,其中该定界符的长度为4个字节,填充位的长度为0-3个字节,在该子帧2的MPDU的长度不是4字节的整数倍时,通过在该子帧的MPDU之后添加填充位使得该子帧2的MPDU和填充位长度之和为4字节的整数倍。As an example, the length in this embodiment of the present invention is in units of bytes, for example, the length of the delimiter is 4 bytes, that is, the number of bytes in the delimiter is 4. For example, subframe 2 in FIG. 2 consists of a delimiter at the head of subframe 2, an MPDU at the middle of subframe 2, and padding bits at the end of subframe 2, wherein the length of the delimiter is 4 bytes, the length of the padding bit is 0-3 bytes, when the length of the MPDU of subframe 2 is not an integer multiple of 4 bytes, the subframe is made by adding padding bits after the MPDU of the subframe The sum of the MPDU length of 2 and the padding bit length is an integer multiple of 4 bytes.

如图3所示,本发明实施例提供了一种数据处理方法,该数据处理方法可以用于发送端,该数据处理方法方法可以包括:As shown in Figure 3, the embodiment of the present invention provides a data processing method, the data processing method can be used at the sending end, and the data processing method can include:

步骤301、根据多个MPDU生成A-MPDU,A-MPDU包括y个子帧,每个子帧可以包括定界符和数据部分,数据部分可以包括MPDU,每个子帧的数据部分的长度均大于等于零,每个子帧的定界符的长度均为x字节,x≥1,x为整数,y≥2,y为整数。Step 301, generate an A-MPDU according to multiple MPDUs, the A-MPDU includes y subframes, each subframe may include a delimiter and a data part, the data part may include an MPDU, and the length of the data part of each subframe is greater than or equal to zero, The length of the delimiter of each subframe is x bytes, x≥1, x is an integer, y≥2, and y is an integer.

示例的,当前802.11n和802.11ac标准中定界符长度x为4字节。假设共有N1个MPDU,而A-MPDU中的子帧个数为N2,则N2大于或等于N1。其中,N1个子帧与N1个MPDU对应,剩余N2-N1个子帧为空子帧,其作用为使相邻非空子帧之间的距离满足预设要求(空子帧位于两个非空子帧之间)或将A-MPDU填充至一定长度(非空子帧位于所有非空子帧之后)。当然,A-MPDU中也可能仅包含N1个非空子帧而不含空子帧,即N1=N2。空子帧仅包括定界符而不包括MPDU,即空子帧可以包括定界符和长度为零的数据部分,所以空子帧的长度为固定的x字节。所述多个子帧是指由N1个非空子帧和可能存在的空子帧组成的有序子帧序列。空子帧的数据部分的长度等于零,非空子帧的数据部分的长度大于零。For example, the delimiter length x in the current 802.11n and 802.11ac standards is 4 bytes. Assuming that there are N1 MPDUs in total, and the number of subframes in the A-MPDU is N2, then N2 is greater than or equal to N1. Among them, N1 subframes correspond to N1 MPDUs, and the remaining N2-N1 subframes are empty subframes, which function to make the distance between adjacent non-empty subframes meet the preset requirements (the empty subframe is located between two non-empty subframes) Or fill the A-MPDU to a certain length (non-empty subframes are located after all non-empty subframes). Of course, the A-MPDU may also contain only N1 non-empty subframes without empty subframes, that is, N1=N2. The empty subframe only includes a delimiter and does not include an MPDU, that is, the empty subframe may include a delimiter and a data part with a length of zero, so the length of the empty subframe is fixed to x bytes. The multiple subframes refer to an ordered subframe sequence composed of N1 non-empty subframes and possible empty subframes. The length of the data part of the empty subframe is equal to zero, and the length of the data part of the non-empty subframe is greater than zero.

步骤302、若第k个子帧是非空子帧,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍,则对第k个子帧进行第一处理,第一处理使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,1≤k≤y,k为整数;其中,当存在第k+1个子帧且是非空子帧时,对第k个子帧的第一处理的过程可以包括:将位于第k+1个子帧的MPDU的头部的长度为m的部分移至位于第k个子帧的定界符之后的第k个子帧的MPDU之后、第k+1个子帧的定界符之前,使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,其中,0<m≤x-1,m为整数。Step 302, if the kth subframe is a non-empty subframe, and the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer multiple of x, then the K subframes perform the first processing, and the first processing makes the length of the data part located after the delimiter of the kth subframe and before the delimiter of the k+1th subframe be an integer multiple of x, 1≤k≤y , k is an integer; wherein, when there is a k+1th subframe and it is a non-empty subframe, the process of the first processing of the kth subframe may include: the length of the header of the MPDU located in the k+1th subframe The part that is m is moved to after the MPDU of the k-th subframe after the delimiter of the k-th subframe, and before the delimiter of the k+1-th subframe, so that after the delimiter of the k-th subframe, The length of the data part before the delimiter of k+1 subframes is an integer multiple of x, where 0<m≤x-1, m is an integer.

步骤303、向接收端发送处理后的所述A-MPDU,以便于所述接收端根据处理后的所述A-MPDU解析得到所述多个MPDU。Step 303: Send the processed A-MPDU to the receiving end, so that the receiving end can obtain the multiple MPDUs by analyzing the processed A-MPDU.

综上所述,由于本发明实施例提供的数据处理方法中,对于A-MPDU的两个相邻子帧,发送端将后一子帧的MPDU头部的部分字节前移至前一子帧的MPDU的尾部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。To sum up, in the data processing method provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sending end will forward some bytes of the MPDU header of the next subframe to the previous subframe. The end of the MPDU of the frame, so that the length of the data part after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

值得说明的是,上述第一处理过程从A-MPDU的第一个子帧开始逐子帧执行,前一子帧的执行结果会影响后一子帧执行时需要前移的字节数。上述第一处理过程的执行结果是对于多个子帧中的任一子帧,其数据部分的一部分位于其定界符之前,其数据部分的另一部分位于其定界符之后。当然,若第k个子帧为第一个子帧时,由于该第一个子帧前面没有子帧,所以该第一个子帧的数据部分中位于定界符之前的一部分不存在,即该第一个子帧的数据部分均位于该第一个子帧的定界符之后。It is worth noting that the above first processing procedure is executed subframe by subframe starting from the first subframe of the A-MPDU, and the execution result of the previous subframe will affect the number of bytes that need to be shifted forward when the subsequent subframe is executed. The execution result of the above-mentioned first processing procedure is that for any subframe in the plurality of subframes, a part of its data part is located before its delimiter, and another part of its data part is located after its delimiter. Of course, if the kth subframe is the first subframe, since there is no subframe before the first subframe, the part before the delimiter in the data part of the first subframe does not exist, that is, the The data part of the first subframe is located after the delimiter of the first subframe.

当第k个子帧为空子帧且第k个子帧是最后一个子帧,或第k个子帧为空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,对第k个子帧的第一处理的过程可以包括:在位于第k个子帧的定界符之后的第k个子帧的MPDU之后添加长度为Q的填充位,使得填充位的长度Q与位于第k个子帧的定界符之后的第k个子帧的MPDU的长度之和等于x的整数倍,其中,0<Q≤x-1,Q为整数。换言之,当第k个子帧为空子帧且第k个子帧是最后一个子帧,或第k个子帧为空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,对第k个子帧的处理规则与其它子帧不同,由于此时第k个子帧没有后续子帧给它提供前移字节,故只能采用填充冗余位的方法。需要说明的是,空子帧仅包括定界符而不包括MPDU,即空子帧包括定界符和长度为零的数据部分,所以空子帧的长度为固定的x字节,非空子帧为数据子帧。When the kth subframe is an empty subframe and the kth subframe is the last subframe, or the kth subframe is an empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, for the kth The process of the first processing of the subframe may include: adding a padding bit with a length of Q after the MPDU of the kth subframe after the delimiter of the kth subframe, so that the length Q of the padding bit is the same as that in the kth subframe The sum of the MPDU lengths of the kth subframe after the delimiter is equal to an integer multiple of x, where 0<Q≤x−1, and Q is an integer. In other words, when the kth subframe is an empty subframe and the kth subframe is the last subframe, or the kth subframe is an empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, the The processing rule of the kth subframe is different from that of other subframes. Since there is no subsequent subframe for the kth subframe at this time to provide it with a forward byte, the method of filling redundant bits can only be used. It should be noted that the empty subframe only includes the delimiter and does not include the MPDU, that is, the empty subframe includes the delimiter and the data part with a length of zero, so the length of the empty subframe is fixed x bytes, and the non-empty subframe is the data subframe. frame.

进一步的,当k≥2时,第k个子帧的定界符中包括第一长度指示信息和第二长度指示信息;其中,第一长度指示信息用于指示第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度,第二长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度,当k=1时,第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU的长度,第k个子帧的定界符中的第二长度指示信息所指示的长度为零。或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k+1个子帧的MPDU移至第k个子帧的MPDU之后、第k+1个子帧的定界符之前的部分的长度,当k=1时,第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU的长度,第k个子帧的定界符中的第二长度指示信息用于指示第二个子帧的MPDU移至第一个子帧的MPDU之后、第二个子帧的定界符之前的部分的长度。或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度,当k=1时,第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU的长度,第k个子帧的定界符中的第二长度指示信息所指示的长度为零。或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度,当k=1时,第k个子帧的定界符中的第一长度指示信息和第二长度指示信息均用于指示第k个子帧的MPDU的长度。需要注意的是,空子帧的定界符中的第一长度指示和第二长度指示均设置为零。Further, when k≥2, the delimiter of the kth subframe includes the first length indication information and the second length indication information; wherein, the first length indication information is used to indicate that the MPDU of the kth subframe is located in the kth subframe The length of the part after the delimiter of the subframe, the second length indication information is used to indicate that the MPDU of the kth subframe is moved to the part after the MPDU of the k-1th subframe and before the delimiter of the kth subframe Length, when k=1, the first length indication information in the delimiter of the kth subframe is used to indicate the length of the MPDU of the kth subframe, and the second length indication information in the delimiter of the kth subframe The indicated length is zero. Or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the MPDU of the k-1th subframe, and the length of the part before the delimiter of the kth subframe is the same as the MPDU of the kth subframe. The sum of the lengths of the part after the delimiter of the k subframe, the second length indication information is used to indicate that the MPDU of the k+1th subframe is moved to after the MPDU of the kth subframe, and the delimitation of the k+1th subframe The length of the part before the symbol, when k=1, the first length indication information in the delimiter of the kth subframe is used to indicate the length of the MPDU of the kth subframe, the length of the MPDU in the delimiter of the kth subframe The second length indication information is used to indicate the length of the part where the MPDU of the second subframe is moved after the MPDU of the first subframe and before the delimiter of the second subframe. Or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the MPDU of the k-1th subframe, and the length of the part before the delimiter of the kth subframe is the same as the MPDU of the kth subframe. The sum of the lengths of the parts after the delimiter of the k subframe, the second length indication information is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe The length of the part, when k=1, the first length indication information in the delimiter of the kth subframe is used to indicate the length of the MPDU of the kth subframe, the second in the delimiter of the kth subframe The length indicated by the length indication information is zero. Or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the MPDU of the k-1th subframe, and the length of the part before the delimiter of the kth subframe is the same as the MPDU of the kth subframe. The sum of the lengths of the part after the delimiter of the k subframe, the second length indication information is used to indicate the length of the part of the MPDU of the k subframe after the delimiter of the k subframe, when k=1, Both the first length indication information and the second length indication information in the delimiter of the kth subframe are used to indicate the length of the MPDU of the kth subframe. It should be noted that both the first length indication and the second length indication in the delimiter of the empty subframe are set to zero.

综上所述,由于本发明实施例提供的数据处理方法中,对于A-MPDU的两个相邻子帧,发送端将后一子帧的MPDU头部的部分字节前移至前一子帧的MPDU的尾部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。To sum up, in the data processing method provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sending end will forward some bytes of the MPDU header of the next subframe to the previous subframe. The end of the MPDU of the frame, so that the length of the data part after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

如图4所示,本发明实施例提供了另一种数据处理方法,该数据处理方法可以用于接收端,该数据处理方法可以包括:As shown in Figure 4, the embodiment of the present invention provides another data processing method, which can be used at the receiving end, and the data processing method can include:

步骤401、接收发送端发送的A-MPDU,A-MPDU包括y个子帧,每个子帧可以包括定界符和数据部分,每个子帧的数据部分的长度均大于等于零,每个子帧的定界符的长度均为x,x≥1,x为整数,定界符中可以包括第一长度指示信息和第二长度指示信息,数据部分可以包括MPDU,每两个子帧的定界符之间的数据部分的长度均为x的整数倍,y≥2,y为整数。Step 401, receive the A-MPDU sent by the sending end, the A-MPDU includes y subframes, each subframe may include a delimiter and a data part, the length of the data part of each subframe is greater than or equal to zero, and the delimiter of each subframe The length of the symbol is x, x≥1, x is an integer, the delimiter may include the first length indication information and the second length indication information, the data part may include MPDU, and the delimiter between every two subframes The length of the data part is an integer multiple of x, y≥2, and y is an integer.

步骤402、依次对多个子帧中的子帧以长度x为单位进行解析处理得到多个MPDU,其中,第k个子帧为所述y个子帧中的任意一个,1≤k≤y,k为整数,对第k个子帧的解析处理过程可以包括:根据第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从第k-1个子帧的数据部分中获取第k个子帧的MPDU的第一部分,从第k个子帧的数据部分中获取第k个子帧的MPDU的第二部分,将第一部分和第二部分合并,组成第k个子帧的MPDU,此时2≤k≤y。Step 402, sequentially analyze and process the subframes in the multiple subframes in units of length x to obtain multiple MPDUs, wherein the kth subframe is any one of the y subframes, 1≤k≤y, and k is Integer, the parsing process for the kth subframe may include: according to the first length indication information and the second length indication information in the delimiter of the kth subframe, obtain the first length from the data part of the k-1th subframe The first part of the MPDU of the k subframe, the second part of the MPDU of the kth subframe is obtained from the data part of the kth subframe, and the first part and the second part are combined to form the MPDU of the kth subframe. At this time, 2 ≤k≤y.

示例的,第一长度指示信息用于指示第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度,第二长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度;或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k+1个子帧的MPDU移至第k个子帧的MPDU之后、第k+1个子帧的定界符之前的部分的长度;或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度;或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度。For example, the first length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication information is used to indicate that the MPDU of the kth subframe is moved to the kth subframe. -The length of the part after the MPDU of 1 subframe and before the delimiter of the kth subframe; or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to after the MPDU of the k-1th subframe, The sum of the length of the part before the delimiter of the kth subframe and the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information is used to indicate the k+1th subframe The MPDU of the frame is moved to the length of the part after the MPDU of the kth subframe and before the delimiter of the k+1th subframe; or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the kth- The sum of the length of the part after the MPDU of 1 subframe and before the delimiter of the kth subframe and the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information uses After the MPDU indicating the kth subframe is moved to the MPDU of the k-1th subframe, the length of the part before the delimiter of the kth subframe; or, the first length indication information is used to indicate the MPDU of the kth subframe The sum of the length of the part after the MPDU of the k-1th subframe and before the delimiter of the kth subframe and the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, the The two-length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe.

综上所述,由于本发明实施例提供的数据处理方法中,对于A-MPDU的两个相邻子帧,发送端将后一子帧的MPDU头部的部分字节前移至前一子帧的MPDU的尾部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。To sum up, in the data processing method provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sending end will forward some bytes of the MPDU header of the next subframe to the previous subframe. The end of the MPDU of the frame, so that the length of the data part after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

需要注意的是,接收端生成A-MPDU时必须逐子帧进行第一处理,前一子帧的处理结果会影响后一子帧的处理。但在接收端解析任一子帧时,仅需根据该子帧定界符中的第一长度指示信息和第二长度指示信息对该子帧进行解析即可,而无需依赖其它子帧的信息。It should be noted that when the receiving end generates the A-MPDU, the first processing must be performed subframe by subframe, and the processing result of the previous subframe will affect the processing of the next subframe. However, when the receiving end parses any subframe, it only needs to analyze the subframe according to the first length indication information and the second length indication information in the subframe delimiter, without relying on information of other subframes .

综上所述,由于本发明实施例提供的数据处理方法中,对于A-MPDU的两个相邻子帧,发送端将后一子帧的MPDU头部的部分字节前移至前一子帧的MPDU的尾部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。To sum up, in the data processing method provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sending end will forward some bytes of the MPDU header of the next subframe to the previous subframe. The end of the MPDU of the frame, so that the length of the data part after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

如图5所示,本发明实施例提供了又一种数据处理方法,用于发送端和接收端,该数据处理方法可以包括:As shown in FIG. 5, the embodiment of the present invention provides another data processing method for the sending end and the receiving end. The data processing method may include:

步骤501、发送端获取多个数据消息。Step 501, the sender acquires multiple data messages.

示例的,该数据消息可以是与该发送端相连接的通信设备生成的,该通信设备可以为计算机,该数据消息也可以是该发送端本地生成的,本发明实施例对此不做限定。For example, the data message may be generated by a communication device connected to the sender, where the communication device may be a computer, or the data message may be generated locally by the sender, which is not limited in this embodiment of the present invention.

步骤502、发送端根据多个数据消息生成多个MPDU。Step 502, the sender generates multiple MPDUs according to multiple data messages.

该发送端可以根据步骤501中获取的多个数据消息生成多个相应的MPDU,且每个MPDU中记录有与该子帧对应的数据消息相对应的数据。The sending end may generate multiple corresponding MPDUs according to the multiple data messages acquired in step 501, and each MPDU records data corresponding to the data message corresponding to the subframe.

步骤503、发送端根据多个MPDU生成A-MPDU。Step 503, the sender generates an A-MPDU according to multiple MPDUs.

示例的,该A-MPDU可以包括y个子帧,y≥2,y为整数。每个子帧包括定界符和数据部分,该数据部分可以包括MPDU,每个子帧的数据部分的长度均大于等于零,每个子帧的定界符的长度均为x字节,x≥1,x为整数。例如,当前802.11n和802.11ac标准中定界符长度为4字节。需要说明的是,在802.11ax的通信标准或其他通信标准中,该定界符的长度也可以为其它值,本发明实施例对此不做限定。该多个MPDU的个数与该A-MPDU中子帧的个数可能不相等。假设共有N1个MPDU,而A-MPDU中的子帧个数为N2,则N2大于或等于N1。其中,N1个子帧与N1个MPDU对应,剩余N2-N1个子帧为空子帧,其作用为使相邻非空子帧之间的距离满足预设要求(空子帧位于两个非空子帧之间)或将A-MPDU填充至一定长度(非空子帧位于所有非空子帧之后)。当然,A-MPDU中也可能仅包含N1非空子帧而不含空子帧,即N1=N2。空子帧仅包括定界符而不包括MPDU,即空子帧包括定界符和长度为零的数据部分,所以空子帧的长度为固定的x字节,即空子帧中定界符的长度。多个子帧是指由N1个非空子帧和可能存在的空子帧组成的有序子帧序列,空子帧的数据部分的长度等于零,非空子帧的数据部分的长度大于零。Exemplarily, the A-MPDU may include y subframes, y≥2, and y is an integer. Each subframe includes a delimiter and a data part, the data part may include MPDU, the length of the data part of each subframe is greater than or equal to zero, and the length of the delimiter of each subframe is x bytes, x≥1, x is an integer. For example, the delimiter length in the current 802.11n and 802.11ac standards is 4 bytes. It should be noted that, in the 802.11ax communication standard or other communication standards, the length of the delimiter may also be other values, which is not limited in this embodiment of the present invention. The number of the multiple MPDUs may not be equal to the number of subframes in the A-MPDU. Assuming that there are N1 MPDUs in total, and the number of subframes in the A-MPDU is N2, then N2 is greater than or equal to N1. Among them, N1 subframes correspond to N1 MPDUs, and the remaining N2-N1 subframes are empty subframes, which function to make the distance between adjacent non-empty subframes meet the preset requirements (the empty subframe is located between two non-empty subframes) Or fill the A-MPDU to a certain length (non-empty subframes are located after all non-empty subframes). Of course, the A-MPDU may only include N1 non-empty subframes without empty subframes, that is, N1=N2. The empty subframe only includes the delimiter and does not include the MPDU, that is, the empty subframe includes the delimiter and a data part with a length of zero, so the length of the empty subframe is fixed x bytes, that is, the length of the delimiter in the empty subframe. A plurality of subframes refers to an ordered subframe sequence composed of N1 non-empty subframes and possible empty subframes, the length of the data part of the empty subframe is equal to zero, and the length of the data part of the non-empty subframe is greater than zero.

步骤504、发送端依次对多个子帧中的子帧进行第一处理,得到处理后的A-MPDU。Step 504, the sending end sequentially performs the first processing on the subframes in the multiple subframes to obtain the processed A-MPDU.

需要说明的是,对子帧进行第一处理是指对通过子帧进行处理,使得位于当前子帧的定界符之后、下一个子帧的定界符之前的数据部分的长度为x的整数倍,即子帧的MPDU的长度为x的整数倍,其中,子帧MPDU的长度是指从子帧定界符的最后一个字节至下一个子帧定界符的第一个字节之间的数据部分的长度。空子帧仅包括定界符而不包括MPDU,即空子帧包括定界符和长度为零的数据部分,所以空子帧的长度为固定的x字节,空子帧中位于该空子帧的定界符之后、位于该空子帧下一个子帧的定界符之前的数据部分的长度为零,是x的整数倍,因此无需对空子帧进行第一处理。需要说明的是,本发明实施例中一个子帧是非空子帧,指的是该子帧不是空子帧。若第k个子帧是非空子帧,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍,则对第k个子帧进行第一处理,第一处理使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,1≤k≤y,k为整数;需要说明的是,当k=y时,该第k个子帧为最后一个子帧,由于该A-MPDU中子帧的个数为y,此时不存在第k+1个子帧,故该第一处理可以使得位于该第k个子帧的定界符之后的第k个子帧的数据部分的长度为x的整数倍。It should be noted that performing the first processing on the subframe refers to processing the passed subframe so that the length of the data part located after the delimiter of the current subframe and before the delimiter of the next subframe is an integer of x times, that is, the length of the MPDU of a subframe is an integer multiple of x, where the length of a subframe MPDU refers to the distance from the last byte of the subframe delimiter to the first byte of the next subframe delimiter The length of the data part between. The empty subframe only includes the delimiter and does not include the MPDU, that is, the empty subframe includes the delimiter and the data part with a length of zero, so the length of the empty subframe is fixed x bytes, and the delimiter located in the empty subframe in the empty subframe After that, the length of the data part before the delimiter of the next subframe of the empty subframe is zero, which is an integer multiple of x, so there is no need to perform the first processing on the empty subframe. It should be noted that, in the embodiment of the present invention, a subframe is a non-empty subframe, which means that the subframe is not an empty subframe. If the kth subframe is a non-empty subframe, and the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer multiple of x, then for the kth subframe Perform the first processing, the first processing makes the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe be an integer multiple of x, 1≤k≤y, k is Integer; It should be noted that when k=y, the kth subframe is the last subframe, since the number of subframes in the A-MPDU is y, there is no k+1th subframe at this time, so The first processing may make the length of the data part of the kth subframe after the delimiter of the kth subframe be an integer multiple of x.

一方面,当第k个子帧是非空子帧,存在第k+1个子帧且是非空子帧时,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍,对第k个子帧的第一处理的过程可以包括:将位于第k+1个子帧的MPDU的头部的长度为m的部分移至位于第k个子帧的定界符之后的第k个子帧的MPDU之后、第k+1个子帧的定界符之前,使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,其中,0<m≤x-1,m为整数。On the one hand, when the kth subframe is a non-empty subframe, there is a k+1th subframe and it is a non-empty subframe, and the data located after the delimiter of the kth subframe and before the delimiter of the k+1th subframe The length of the part is not an integer multiple of x, and the first processing process for the kth subframe may include: moving the part of the length m of the head of the MPDU located in the k+1th subframe to the kth subframe After the delimiter of the kth subframe after the MPDU of the k+1th subframe, before the delimiter of the k+1th subframe, so that after the delimiter of the kth subframe and before the delimiter of the k+1th subframe The length of the data part is an integer multiple of x, where, 0<m≤x-1, m is an integer.

如图6所示,第k个子帧和第k+1个子帧为两个相邻的子帧,且该第k个子帧是非空子帧,该第k+1个子帧也是非空子帧,该第k个子帧位于该第k+1个子帧之前,第k个子帧和第k+1个子帧的定界符的长度均为x,位于该第k个子帧的定界符之后、位于该第k+1个子帧的定界符之前的数据部分的长度为M。在对第k个子帧进行第一处理之前,可以判断该位于该第k个子帧的定界符之后、位于该第k+1个子帧的定界符之前的数据部分的长度M是否为x的整数倍,若M是x的整数倍,则不对第k个子帧进行第一处理。如图7所示,若M不是x的整数倍,则对第k个子帧进行第一处理,具体的,发送端可以计算M除以x的余数,以及x与M除以x的余数的差值m,并将第k+1个子帧的MPDU的头部的长度为m字节的数据部分,移至第k个子帧的定界符之后的第k个子帧的MPDU之后、第k+1个子帧的定界符之前,使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍。此时,位于第k个子帧的MPDU之后、第k+1个子帧的定界符之前的数据部分为第k+1个子帧的MPDU1,位于第k+1个子帧的定界符之后的第k+1个子帧的数据部分为第k+1个子帧的MPDU 2,MPDU1与MPDU2组成第k+1个子帧的MPDU。As shown in FIG. 6, the kth subframe and the k+1th subframe are two adjacent subframes, and the kth subframe is a non-empty subframe, and the k+1th subframe is also a non-empty subframe. The k subframe is located before the k+1th subframe, the length of the delimiter of the kth subframe and the k+1th subframe are both x, and it is located after the delimiter of the kth subframe, located in the kth subframe The length of the data part before the delimiter of +1 subframe is M. Before performing the first processing on the kth subframe, it can be judged whether the length M of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is x Integer multiple, if M is an integer multiple of x, then the first processing is not performed on the kth subframe. As shown in Figure 7, if M is not an integer multiple of x, the first processing is performed on the kth subframe. Specifically, the sender can calculate the remainder of M divided by x, and the difference between x and the remainder of M divided by x value m, and move the data part of the header of the MPDU of the k+1th subframe whose length is m bytes to after the MPDU of the kth subframe after the delimiter of the kth subframe, k+1 before the delimiter of the subframe, so that the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is an integer multiple of x. At this time, the data part after the MPDU of the kth subframe and before the delimiter of the k+1th subframe is MPDU1 of the k+1th subframe, and the data part after the delimiter of the k+1th subframe The data part of the k+1 subframe is MPDU 2 of the k+1 subframe, and MPDU1 and MPDU2 form the MPDU of the k+1 subframe.

例如,当第k个子帧是非空子帧,存在第k+1个子帧,且第k+1个子帧也是非空子帧时,第k个子帧和第k+1个子帧的定界符的长度均为x字节,x等于4,位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为M等于9字节,9不是4的整数倍即M不是x的整数倍。M除以x的余数等于9除以4的余数1,x与M除以x的余数的差值m等于4与1的差值3,由于M不是x的整数倍,即位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不是定界符长度的整数倍,所以可以对该第k个子帧进行第一处理,使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度是定界符长度的整数倍。具体的,可以将第k+1个子帧的MPDU的头部的长度为3字节的数据部分,移至第k个子帧的定界符之后的第k个子帧的MPDU之后、第k+1个子帧的定界符之前,此时位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为9字节与3字节的和12字节,12字节为4字节的整数倍,即位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。For example, when the kth subframe is a non-empty subframe, there is a k+1th subframe, and the k+1th subframe is also a non-empty subframe, the lengths of the delimiters of the kth subframe and the k+1th subframe are the same is x bytes, x is equal to 4, the length of the data part located after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is M equals to 9 bytes, and 9 is not an integer multiple of 4. M is not an integer multiple of x. The remainder of M divided by x is equal to the remainder 1 of 9 divided by 4, and the difference m between x and M divided by x is equal to the difference 3 between 4 and 1. Since M is not an integer multiple of x, it is located in the kth subframe The length of the data part after the delimiter of the k+1th subframe and before the delimiter of the delimiter is not an integer multiple of the length of the delimiter, so the first processing can be performed on the kth subframe so that it is located in the kth subframe The length of the data part after the delimiter of the k+1th subframe and before the delimiter of the subframe is an integer multiple of the length of the delimiter. Specifically, the data part of the header of the MPDU of the k+1th subframe with a length of 3 bytes can be moved to after the MPDU of the kth subframe after the delimiter of the kth subframe, the k+1th Before the delimiter of the subframe, the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is 9 bytes, 3 bytes and 12 bytes , 12 bytes is an integer multiple of 4 bytes, that is, the length of the data part located after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is an integer multiple of the length of the delimiter.

值得说明的是,上述第一处理过程从A-MPDU的第一个子帧开始逐子帧执行,前一子帧的执行结果会影响后一子帧执行时需要前移的字节数。上述第一处理过程的执行结果是对于多个子帧中的任一子帧,其数据部分的一部分位于其定界符之前,其数据部分的另一部分位于其定界符之后。当然,若第k个子帧为第一个子帧时,由于该第一个子帧前面没有子帧,所以该第一个子帧的数据部分中位于定界符之前的一部分不存在,即该第一个子帧的数据部分均位于该第一个子帧的定界符之后。It is worth noting that the above first processing procedure is executed subframe by subframe starting from the first subframe of the A-MPDU, and the execution result of the previous subframe will affect the number of bytes that need to be shifted forward when the subsequent subframe is executed. The execution result of the above-mentioned first processing procedure is that for any subframe in the plurality of subframes, a part of its data part is located before its delimiter, and another part of its data part is located after its delimiter. Of course, if the kth subframe is the first subframe, since there is no subframe before the first subframe, the part before the delimiter in the data part of the first subframe does not exist, that is, the The data part of the first subframe is located after the delimiter of the first subframe.

例如,若第k个子帧是非空子帧,存在第k+1个子帧,且第k+1个子帧也是非空子帧,在对第k个子帧进行第一处理之前,第k个子帧和第k+1个子帧的定界符的长度均为x字节,且x等于4,假设位于第k个子帧定界符之后、第k+1个子帧的定界符之前的数据部分的长度为M等于9字节,9字节不是4字节的整数倍即M不是x的整数倍。假设位于第k+1个子帧的定界符之后、第k+2个子帧的定界符之前的数据部分的长度为8字节,8字节是4字节的整数倍,即第k+1个子帧MPDU中位于第k+1个子帧的定界符之后的数据部分的长度是x的整数倍。由于位于第k个子帧定界符之后、第k+1个子帧的定界符之前的数据部分的长度不是x的整数倍,所以需要对第k个子帧进行第一处理,M除以x的余数等于9除以4的余数1,x与M除以x的余数的差值m等于4与1的差值3,在对第k个子帧进行第一处理时,将第k+1个子帧的MPDU的头部的长度为3字节的数据部分,移至第k个子帧的定界符之后的第k个子帧的MPDU之后、第k+1个子帧的定界符之前,使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为9字节与3字节的和12字节,12字节为4字节的整数倍。在对第k个子帧进行第一处理之后,第k+1个子帧的MPDU中位于第k+1个子帧的定界符之后的数据部分的长度为8-3等于5字节,5字节不是4字节的整数倍,即在对第k个子帧进行第一处理之后相对于在第k个子帧进行第一处理之前,第k+1个子帧MPDU中位于第k+1个子帧的定界符之后的数据部分的长度发生了变化。For example, if the kth subframe is a non-empty subframe, there is a k+1th subframe, and the k+1th subframe is also a non-empty subframe, before the first processing is performed on the kth subframe, the kth subframe and the kth subframe The length of the delimiter of +1 subframe is x bytes, and x is equal to 4, assuming that the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is M Equal to 9 bytes, 9 bytes is not an integer multiple of 4 bytes, that is, M is not an integer multiple of x. Assume that the length of the data part after the delimiter of the k+1 subframe and before the delimiter of the k+2 subframe is 8 bytes, and 8 bytes is an integer multiple of 4 bytes, that is, the k+th subframe The length of the data part after the delimiter of the k+1th subframe in the MPDU of one subframe is an integer multiple of x. Since the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer multiple of x, it is necessary to perform the first processing on the kth subframe, and divide M by x The remainder is equal to the remainder 1 of 9 divided by 4, and the difference m between x and M divided by the remainder of x is equal to the difference 3 between 4 and 1. When performing the first processing on the kth subframe, the k+1th subframe The data part of the head of the MPDU whose length is 3 bytes is moved to the MPDU of the kth subframe after the delimiter of the kth subframe, and before the delimiter of the k+1th subframe, so that it is located at the delimiter of the kth subframe The length of the data part after the delimiter of the k subframe and before the delimiter of the k+1th subframe is 9 bytes, 3 bytes and 12 bytes, and 12 bytes is an integer multiple of 4 bytes. After performing the first processing on the kth subframe, the length of the data part after the delimiter of the k+1th subframe in the MPDU of the k+1th subframe is 8-3 equal to 5 bytes, 5 bytes It is not an integer multiple of 4 bytes, that is, after performing the first processing on the k-th subframe relative to before performing the first processing on the k-th subframe, in the k+1-th subframe MPDU, the fixed number located in the k+1th subframe The length of the data portion after the delimiter has changed.

需要说明的是,当第k个子帧是非空子帧,存在第k+1个子帧且是非空子帧时,在对第k-1个子帧进行第一处理后,若位于该第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为定界符的长度x的整数倍,则无需对该第k个子帧进行第一处理。It should be noted that when the kth subframe is a non-empty subframe, and there is a k+1th subframe and is a non-empty subframe, after the first processing is performed on the k-1th subframe, if the kth subframe is located The length of the data part after the delimiter and before the delimiter of the k+1th subframe is an integer multiple of the length x of the delimiter, so the first processing does not need to be performed on the kth subframe.

另一方面,当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,对第k个子帧的第一处理的过程可以包括:在位于第k个子帧的定界符之后的第k个子帧的MPDU之后添加长度为Q的填充位,使得填充位的长度Q与位于第k个子帧的定界符之后的第k个子帧的MPDU的长度之和等于x的整数倍,其中,0<Q≤x-1,Q为整数。On the other hand, when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe , the process of the first processing of the kth subframe may include: adding a padding bit with a length of Q after the MPDU of the kth subframe after the delimiter of the kth subframe, so that the length Q of the stuffing bit is the same as that located at The sum of the lengths of the MPDUs of the kth subframe after the delimiter of the kth subframe is equal to an integer multiple of x, where 0<Q≤x−1, and Q is an integer.

具体的,当第k个子帧是非空子帧且第k个子帧为最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,对第k个子帧的第一处理的过程与上述若第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是非空子帧时,对第k个子帧的第一处理过程不同,由于此时第k个子帧没有后续的非空子帧向它提供前移字节,故只能采用填充冗余位的方法。在对该第k个子帧进行第一处理之前,可以检测位于第k个子帧的定界符之后的数据部分的长度是否为x的整数倍,需要说明的是,此时,位于第k个子帧的定界符之后的数据部分为位于最后一个子帧的定界符之后的MPDU。若经过检测,得知位于第k个子帧的定界符之后的数据部分的长度为x的整数倍,则不对该第k个子帧进行第一处理。若经过检测,得知位于第k个子帧的定界符之后的数据部分的长度不是x的整数倍,则对该第第k个子帧进行第一处理。其中,对该第k个子帧的第一处理过程可以包括:计算位于第k个子帧的定界符之后的数据部分的长度除以x的余数,以及x与该余数的差值Q,并在第k个子帧的定界符之后的第k个子帧的数据部分之后添加长度为Q的填充位,使得填充位的长度Q与位于最后一个子帧的定界符之后的最后一个子帧的数据部分的长度之和等于x的整数倍。Specifically, when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, The process of the first processing of the kth subframe is the same as the first processing of the kth subframe if the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is a non-empty subframe The process is different, since the kth subframe has no subsequent non-empty subframe to provide it with forward bytes, so the method of filling redundant bits can only be used. Before performing the first processing on the kth subframe, it can be detected whether the length of the data part after the delimiter of the kth subframe is an integer multiple of x. It should be noted that at this time, the length of the data part located in the kth subframe The data part after the delimiter is the MPDU after the delimiter of the last subframe. If after detection, it is known that the length of the data part after the delimiter of the kth subframe is an integer multiple of x, then the first processing is not performed on the kth subframe. If it is detected that the length of the data part after the delimiter of the kth subframe is not an integer multiple of x, the first process is performed on the kth subframe. Wherein, the first processing procedure of the kth subframe may include: calculating the remainder of dividing the length of the data part after the delimiter of the kth subframe by x, and the difference Q between x and the remainder, and After the data part of the kth subframe after the delimiter of the kth subframe, a stuffing bit with a length of Q is added, so that the length Q of the stuffing bit is the same as the data of the last subframe after the delimiter of the last subframe The sum of the lengths of the parts is equal to an integer multiple of x.

如图8所示,若第k个子帧是非空子帧且第k个子帧为最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧,第k个子帧的定界符的长度为x,在对第k-1个子帧进行了第一处理前,该第k个子帧的数据部分的长度为M。假设在对第k-1个子帧进行了第一处理时,将第k个子帧的MPDU的头部的长度为m的数据部分,移至第k-1个子帧的定界符之后的第k-1个子帧的MPDU之后、第k个子帧的定界符之前,第k-1个子帧的定界符之后的第k-1个子帧的MPDU之后、第k个子帧的定界符之前的长度为m的数据部分为第k个子帧的MPDU1,位于第k个子帧的定界符之后的第k个子帧的数据部分可以为MPDU2,第k个子帧的MPDU1与第k个子帧的MPDU2组成第k个子帧的MPDU。此时,位于第k个子帧的定界符之后的数据部分的长度为M-m。若M-m为x的整数倍,则不对第k个子帧进行第一处理。若M-m不是x的整数倍,则对该第k个子帧进行第一处理。具体的,发送端可以计算位于第k个子帧的定界符之后的数据部分的长度除以x的余数,以及x该余数的差值Q,并在位于第k个子帧的定界符之后的第k个子帧的数据部分之后添加长度为Q的填充位,使得填充位的长度Q与位于第k个子帧的定界符之后的第k个子帧的数据部分的长度之和等于x的整数倍。As shown in Figure 8, if the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe frame, the length of the delimiter of the kth subframe is x, and the length of the data part of the kth subframe is M before the first processing is performed on the k-1th subframe. Assume that when the first processing is performed on the k-1th subframe, the data part of the length m of the head of the MPDU of the kth subframe is moved to the kth after the delimiter of the k-1th subframe After the MPDU of the 1st subframe, before the delimiter of the kth subframe, after the delimiter of the k-1th subframe, after the MPDU of the k-1th subframe, before the delimiter of the kth subframe The data part with a length of m is the MPDU1 of the kth subframe, the data part of the kth subframe after the delimiter of the kth subframe can be MPDU2, and the MPDU1 of the kth subframe is composed of the MPDU2 of the kth subframe MPDU of the kth subframe. At this time, the length of the data part after the delimiter of the kth subframe is M-m. If M-m is an integer multiple of x, the first process is not performed on the kth subframe. If M-m is not an integer multiple of x, perform the first processing on the kth subframe. Specifically, the sending end may calculate the remainder of dividing the length of the data part after the delimiter of the kth subframe by x, and the difference Q of the remainder of x, and calculate the remainder after the delimiter of the kth subframe Add padding bits of length Q after the data part of the kth subframe, so that the sum of the length Q of the padding bits and the length of the data part of the kth subframe after the delimiter of the kth subframe is equal to an integer multiple of x .

需要说明的是,若位于第k-1个子帧的定界符之后、第k个子帧的定界符之前的数据部分的长度为x的整数倍,则无需对第k-1个子帧进行第一处理,此时,无需将第k个子帧的MPDU的头部的长度为m的数据部分,移至第k-1个子帧的定界符之后的第k-1个子帧的MPDU之后、第k个子帧的定界符之前,即位于第k个子帧的定界符之后的数据部分的长度为M。It should be noted that if the length of the data part after the delimiter of the k-1th subframe and before the delimiter of the kth subframe is an integer multiple of x, then it is not necessary to perform the first Once processed, at this time, there is no need to move the data part of the length m of the head of the MPDU of the kth subframe to after the MPDU of the k-1th subframe after the delimiter of the k-1th subframe, the second The length of the data part before the delimiter of the k subframe, that is, after the delimiter of the kth subframe is M.

例如,多个子帧中的每个子帧的定界符的长度均为x等于4字节,若第k个子帧是非空子帧且第k个子帧为最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧,位于第k个子帧的定界符之后的数据部分的长度为9字节,9字节不是4字节的整数倍,即位于第k个子帧的定界符之后的数据部分的长度不是x的整数倍,需要说明的是,此时,位于第k个子帧的定界符之后的数据部分为位于最后一个子帧的定界符之后的MPDU。位于第k个子帧的定界符之后的数据部分的长度除以x的余数等于9除以4的余数1,x与该余数的差值等于9除以4的余数的差值Q等于4与1的差值3,在位于第k个子帧的定界符之后的数据部分之后添加长度为3字节的填充位,使得填充位的长度与位于最后一个子帧的定界符之后的第k个子帧的MPDU的长度之和等于4字节的整数倍。For example, the length of the delimiter of each subframe in the plurality of subframes is x equal to 4 bytes, if the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe frame and there is a k+1th subframe and the k+1th subframe is an empty subframe, the length of the data part after the delimiter of the kth subframe is 9 bytes, and 9 bytes are not an integer multiple of 4 bytes , that is, the length of the data part after the delimiter of the kth subframe is not an integer multiple of x. It should be noted that, at this time, the data part after the delimiter of the kth subframe is located in the last subframe MPDU after the delimiter. The length of the data part after the delimiter of the kth subframe is divided by the remainder of x equal to the remainder 1 of 9 divided by 4, and the difference between x and this remainder is equal to the remainder Q of 9 divided by 4. The difference Q is equal to 4 and The difference of 1 is 3, and a padding bit with a length of 3 bytes is added after the data part after the delimiter of the kth subframe, so that the length of the padding bit is the same as that of the kth subframe after the delimiter of the last subframe The sum of the lengths of the MPDUs of each subframe is equal to an integer multiple of 4 bytes.

需要说明的是,当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,在对第k个子帧之前的子帧进行第一处理后,若位于该第k个子帧的定界符之后的数据部分的长度仍为定界符的长度x的整数倍,则无需对该第k个子帧进行第一处理。当该A-MPDU中仅包含一个子帧,即y=1时,对该子帧的第一处理的过程可以参考当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,对第k个子帧的第一处理的过程,即当该子帧的定界符之后的数据部分的长度不是定界符长度的整数倍时,在该子帧的MPDU之后添加填充位,使得该子帧的定界符之后的MPDU的长度与填充位的长度之和为定界符长度的整数倍。It should be noted that when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe When, after the first processing is performed on the subframe before the kth subframe, if the length of the data part after the delimiter of the kth subframe is still an integer multiple of the length x of the delimiter, there is no need to The kth subframe performs the first processing. When the A-MPDU contains only one subframe, that is, when y=1, the process of the first processing of the subframe can refer to when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or When the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, the process of the first processing of the kth subframe, that is, when the subframe after the delimiter When the length of the data part is not an integer multiple of the length of the delimiter, padding bits are added after the MPDU of the subframe, so that the sum of the length of the MPDU after the delimiter of the subframe and the length of the stuffing bits is the length of the delimiter Integer multiples of .

进一步的,在步骤503中发送端根据多个MPDU生成A-MPDU时,该A-MPDU可以包括多个子帧,且该多个子帧中的任意一个子帧均包括定界符和MPDU,在步骤504中发送端第k个子帧进行第一处理的同时,该发送端可以根据对第k个子帧的第一处理过程,对第k个子帧的定界符进行设置。示例的,当k≥2时,该第k个子帧的定界符中可以包括第一长度指示信息和第二长度指示信息。Further, when the sending end generates an A-MPDU according to multiple MPDUs in step 503, the A-MPDU may include multiple subframes, and any subframe in the multiple subframes includes a delimiter and an MPDU, and in step In 504, while the sending end performs the first processing on the kth subframe, the sending end may set the delimiter of the kth subframe according to the first processing procedure on the kth subframe. Exemplarily, when k≧2, the delimiter of the kth subframe may include the first length indication information and the second length indication information.

第一方面,该第k个子帧的定界符中的第一长度指示信息可以用于指示该第k个子帧的MPDU位于第k个子帧的定界符之后的数据部分的长度,该第k个子帧的定界符中的第二长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的数据部分的长度。请参考图7,该第k+1个子帧的定界符中的第一长度指示信息可以用于指示该MPDU2的长度,该第k+1个子帧的定界符中的第二长度指示信息可以用于指示该MPDU1的长度。需要说明的是,当k=1时,第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU的长度,第k个子帧的定界符中的第二长度指示信息所指示的长度为零。若第k个子帧为空子帧,则该第k个子帧的定界符中的第一长度指示所指示的长度和该第二长度指示所指示的长度均为零。In the first aspect, the first length indication information in the delimiter of the kth subframe may be used to indicate the length of the data part of the MPDU of the kth subframe after the delimiter of the kth subframe, the kth The second length indication information in the delimiter of the subframe is used to indicate the length of the data part after the MPDU of the kth subframe is moved to after the MPDU of the k-1th subframe and before the delimiter of the kth subframe. Please refer to FIG. 7, the first length indication information in the delimiter of the k+1th subframe can be used to indicate the length of the MPDU2, and the second length indication information in the delimiter of the k+1th subframe Can be used to indicate the length of the MPDU1. It should be noted that when k=1, the first length indication information in the delimiter of the kth subframe is used to indicate the length of the MPDU of the kth subframe, and the second length indication information in the delimiter of the kth subframe The length indicated by the length indication information is zero. If the kth subframe is an empty subframe, the length indicated by the first length indication and the length indicated by the second length indication in the delimiter of the kth subframe are both zero.

第二方面,该第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的数据部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的数据部分的长度之和,该第k个子帧的定界符中的第二长度指示信息用于指示第k+1个子帧的MPDU移至第k个子帧的MPDU之后、第k+1个子帧的定界符之前的数据部分的长度。请参考图7,该第k+1个子帧的定界符中的第一长度指示信息可以用于指示该MPDU1与MPDU2的长度之和,该第k+1个子帧的定界符中的第二长度指示信息可以用于指示第k+2个子帧(图7中未画出)的MPDU移至第k+1个子帧的MPDU之后、第k+2个子帧的定界符之前的数据部分的长度。需要说明的是,当k=1时,第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU的长度,第k个子帧的定界符中的第二长度指示信息用于指示第二个子帧的MPDU移至第一个子帧的MPDU之后、第二个子帧的定界符之前的部分的长度。若第k个子帧为空子帧,则该第k个子帧的定界符中的第一长度指示所指示的长度和该第二长度指示所指示的长度均为零。In the second aspect, the first length indication information in the delimiter of the kth subframe is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe The sum of the length of the data part of the kth subframe and the length of the data part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information in the delimiter of the kth subframe is used to indicate The length of the data part after the MPDU of the k+1 subframe is moved to the MPDU of the kth subframe and before the delimiter of the k+1th subframe. Please refer to FIG. 7, the first length indication information in the delimiter of the k+1th subframe can be used to indicate the sum of the lengths of MPDU1 and MPDU2, and the first length indication information in the delimiter of the k+1th subframe The two-length indication information can be used to indicate that the MPDU of the k+2th subframe (not shown in FIG. 7) is moved to the data part after the MPDU of the k+1th subframe and before the delimiter of the k+2th subframe length. It should be noted that when k=1, the first length indication information in the delimiter of the kth subframe is used to indicate the length of the MPDU of the kth subframe, and the second length indication information in the delimiter of the kth subframe The length indication information is used to indicate the length of the part where the MPDU of the second subframe is moved after the MPDU of the first subframe and before the delimiter of the second subframe. If the kth subframe is an empty subframe, the length indicated by the first length indication and the length indicated by the second length indication in the delimiter of the kth subframe are both zero.

第三方面,该第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的数据部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的数据部分的长度之和,该第k个子帧的定界符中的第二长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的数据部分的长度。当该第k个子帧为该多个子帧中的第一个子帧时,该第一个子帧的定界符中的第一长度指示信息用于指示该第一个子帧的MPDU的长度,该第一个子帧的定界符中的第二长度指示信息的长度为零。请参考图7,该第k+1个子帧的定界符中的第一长度指示信息可以用于指示该MPDU1与MPDU2的长度之和,该第k+1个子帧的定界符中的第二长度指示信息可以用于指示该MPDU1的长度。需要说明的是,当k=1时,第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU的长度,第k个子帧的定界符中的第二长度指示信息所指示的长度为零。若第k个子帧为空子帧,则该第k个子帧的定界符中的第一长度指示所指示的长度和该第二长度指示所指示的长度均为零。In the third aspect, the first length indication information in the delimiter of the kth subframe is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe The sum of the length of the data part of the kth subframe and the length of the data part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information in the delimiter of the kth subframe is used to indicate The length of the data part after the MPDU of the k subframe is moved to the MPDU of the k-1th subframe and before the delimiter of the kth subframe. When the kth subframe is the first subframe in the plurality of subframes, the first length indication information in the delimiter of the first subframe is used to indicate the length of the MPDU of the first subframe , the length of the second length indication information in the delimiter of the first subframe is zero. Please refer to FIG. 7, the first length indication information in the delimiter of the k+1th subframe can be used to indicate the sum of the lengths of MPDU1 and MPDU2, and the first length indication information in the delimiter of the k+1th subframe The two-length indication information may be used to indicate the length of the MPDU1. It should be noted that when k=1, the first length indication information in the delimiter of the kth subframe is used to indicate the length of the MPDU of the kth subframe, and the second length indication information in the delimiter of the kth subframe The length indicated by the length indication information is zero. If the kth subframe is an empty subframe, the length indicated by the first length indication and the length indicated by the second length indication in the delimiter of the kth subframe are both zero.

第四方面,该第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的数据部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的数据部分的长度之和,该第k个子帧的定界符中的第二长度指示信息用于指示第k个子帧的MPDU位于第k个子帧的定界符之后的数据部分的长度。当该第k个子帧为该多个子帧中的第一个子帧时,该第一个子帧的定界符中的第一长度指示信息和第二长度指示信息均用于指示该第一个子帧的MPDU的长度。请参考图7,该第k+1个子帧的定界符中的第一长度指示信息可以用于指示该MPDU1与MPDU2的长度之和,该第k+1个子帧的定界符中的第二长度指示信息可以用于指示该MPDU2的长度。需要说明的是,当k=1时,第k个子帧的定界符中的第一长度指示信息和第二长度指示信息均用于指示第k个子帧的MPDU的长度。若第k个子帧为空子帧,则该第k个子帧的定界符中的第一长度指示所指示的长度和该第二长度指示所指示的长度均为零。In the fourth aspect, the first length indication information in the delimiter of the kth subframe is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe The sum of the length of the data part of the kth subframe and the length of the data part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information in the delimiter of the kth subframe is used to indicate The length of the data part after the delimiter of the kth subframe in the MPDU of the k subframe. When the kth subframe is the first subframe among the plurality of subframes, both the first length indication information and the second length indication information in the delimiter of the first subframe are used to indicate that the first The length of the MPDU of subframes. Please refer to FIG. 7, the first length indication information in the delimiter of the k+1th subframe can be used to indicate the sum of the lengths of MPDU1 and MPDU2, and the first length indication information in the delimiter of the k+1th subframe The second length indication information may be used to indicate the length of the MPDU2. It should be noted that when k=1, both the first length indication information and the second length indication information in the delimiter of the kth subframe are used to indicate the length of the MPDU of the kth subframe. If the kth subframe is an empty subframe, the length indicated by the first length indication and the length indicated by the second length indication in the delimiter of the kth subframe are both zero.

步骤505、发送端向接收端发送处理后的A-MPDU。Step 505, the sending end sends the processed A-MPDU to the receiving end.

在步骤504中发送端依次对多个子帧中的子帧进行第一处理后,得到处理后的AMPDU。然后,发送端可以将该处理后的A-MPDU发送至接收端,以便于接收端在根据该处理后的A-MPDU解析得到多个MPDU。需要说明的是,接收端接收到的发送端发送的处理后的A-MPDU可以包括y个子帧,每个子帧包括定界符和数据部分,假设第k个子帧为y个子帧中的任意一个子帧,则该第k个子帧的数据部分为位于该第k个子帧的定界符和第k+1个子帧的定界符之间的数据部分。每个子帧的数据部分的长度均大于等于零,每个子帧的定界符的长度均为x,x≥1,且x为整数,定界符中包括第一长度指示信息和第二长度指示信息,每两个子帧的定界符之间的数据部分的长度均为x的整数倍,y≥2,y为整数。In step 504, after the sending end sequentially performs the first processing on the subframes in the multiple subframes, the processed AMPDU is obtained. Then, the sending end can send the processed A-MPDU to the receiving end, so that the receiving end can obtain multiple MPDUs by parsing the processed A-MPDU. It should be noted that the processed A-MPDU sent by the sender and received by the receiver may include y subframes, and each subframe includes a delimiter and a data part, assuming that the kth subframe is any one of the y subframes subframe, the data part of the kth subframe is the data part between the delimiter of the kth subframe and the delimiter of the k+1th subframe. The length of the data part of each subframe is greater than or equal to zero, the length of the delimiter of each subframe is x, x≥1, and x is an integer, and the delimiter includes the first length indication information and the second length indication information , the length of the data part between the delimiters of each two subframes is an integer multiple of x, y≥2, and y is an integer.

步骤506、接收端依次对处理后的A-MPDU中的子帧进行解析处理得到多个MPDU。Step 506, the receiving end sequentially analyzes and processes the subframes in the processed A-MPDU to obtain multiple MPDUs.

具体的,该处理后的A-MPDU可以包括y个子帧,第k个子帧为所述y个子帧中的任意一个,1≤k≤y,k为整数,对第k个子帧的解析处理过程可以包括:根据第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从第k-1个子帧的数据部分中获取第k个子帧的MPDU的第一部分,从第k个子帧的数据部分中获取第k个子帧的MPDU的第二数据部分,将第一部分和第二部分合并,组成第k个子帧的MPDU,此时2≤k≤y。Specifically, the processed A-MPDU may include y subframes, the kth subframe is any one of the y subframes, 1≤k≤y, k is an integer, and the analysis process of the kth subframe It may include: obtaining the first part of the MPDU of the kth subframe from the data part of the k-1th subframe according to the first length indication information and the second length indication information in the delimiter of the kth subframe, and obtaining the first part of the MPDU of the kth subframe from the data part of the kth subframe. The second data part of the MPDU of the kth subframe is obtained from the data part of the k subframe, and the first part and the second part are combined to form the MPDU of the kth subframe. In this case, 2≤k≤y.

由于步骤504中该第k个子帧的定界符中的第一长度指示信息和第二长度指示信息有四种指示方式,因此,相应的在步骤506中存在四种对该第k个子帧的解析方式。Since there are four indication modes for the first length indication information and the second length indication information in the delimiter of the kth subframe in step 504, accordingly, there are four kinds of indication methods for the kth subframe in step 506. Parsing method.

第一方面,当第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU位于第k个子帧的定界符之后的数据部分的长度,第k个子帧的定界符中的第二长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的数据部分的长度时,根据第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从第k-1个子帧的数据部分中获取第k个子帧的MPDU的第一部分,从第k个子帧的数据部分中获取第k个子帧的MPDU的第二部分,可以包括:In the first aspect, when the first length indication information in the delimiter of the kth subframe is used to indicate the length of the data part of the MPDU of the kth subframe after the delimiter of the kth subframe, the kth subframe When the second length indication information in the delimiter is used to indicate the length of the data part after the MPDU of the kth subframe is moved to the MPDU of the k-1th subframe and before the delimiter of the kth subframe, according to The first length indication information and the second length indication information in the delimiter of the subframe, obtain the first part of the MPDU of the kth subframe from the data part of the k-1th subframe, and obtain the first part of the MPDU of the kth subframe from the data part of the kth subframe Obtaining the second part of the MPDU of the k-th subframe may include:

根据第k个子帧的定界符中的第二长度指示信息,从第k-1个子帧的数据部分中,获取靠近第k个子帧的定界符且长度为m的数据部分(即第k-1个子帧的数据部分中靠后的m个字节),作为第k个子帧的MPDU的第一部分,m为第k个子帧的定界符中的第二长度指示信息所指示的长度;根据第k个子帧的定界符中的第一长度指示信息,从第k个子帧的数据部分中,获取靠近第k个子帧的定界符且长度为p的数据部分(即第k个子帧的数据部分中靠前的p个字节),作为第k个子帧的MPDU的第二部分,p为第k个子帧的定界符中的第一长度指示信息所指示的长度。需要说明的是,在对该第k个子帧进行解析处理之后,可以根据该第k个子帧的定界符中的第一长度指示信息所指示的长度p与该定界符的长度x,确定该第k个子帧的定界符之后,与该第k个子帧的定界符之间的距离为x×ceil(p/x)的位置为第k+1个子帧的起始位置,该起始位置为该第k+1个子帧的定界符的起始位置,具体的,ceil(p/x)表示p与x的商的上整数,x×ceil(p/x)表示p与x的商的上整数与x的乘积,示例的,p与x的商的上整数为:大于等于p与x的商,且与p与x的商最接近的整数,例如,p与x的商为5.1,则p与x的商的上整数为6;p与x的商为5,p与x的商的上整数为5。与第k个子帧的定界符之间的距离定义为与第k个子帧的定界符中的最后一个字节之间的距离。如果在对第k个子帧进行解析的过程中,对第k个子帧的定界符解码错误,接收端则无法获得正确的第一长度指示信息和第二长度指示信息,此时可通过搜索下一个MPDU Signature获得下一个子帧的起始位置,这与现有技术中的做法是一致的。According to the second length indication information in the delimiter of the kth subframe, from the data part of the k-1th subframe, obtain the data part that is close to the delimiter of the kth subframe and has a length of m (that is, the kth subframe - the last m bytes in the data part of 1 subframe), as the first part of the MPDU of the kth subframe, m is the length indicated by the second length indication information in the delimiter of the kth subframe; According to the first length indication information in the delimiter of the kth subframe, from the data part of the kth subframe, obtain the data part close to the delimiter of the kth subframe and having a length of p (that is, the kth subframe The first p bytes in the data part of the kth subframe), as the second part of the MPDU of the kth subframe, p is the length indicated by the first length indication information in the delimiter of the kth subframe. It should be noted that, after parsing the kth subframe, it can be determined according to the length p indicated by the first length indication information in the delimiter of the kth subframe and the length x of the delimiter After the delimiter of the kth subframe, the position with a distance of x×ceil(p/x) from the delimiter of the kth subframe is the starting position of the k+1th subframe, and the starting position of the k+1th subframe is The starting position is the starting position of the delimiter of the k+1th subframe. Specifically, ceil(p/x) represents the upper integer of the quotient of p and x, and x×ceil(p/x) represents the value of p and x The product of the upper integer of the quotient of p and x, for example, the upper integer of the quotient of p and x is: greater than or equal to the quotient of p and x, and the integer closest to the quotient of p and x, for example, the quotient of p and x is 5.1, then the upper integer of the quotient of p and x is 6; the upper integer of the quotient of p and x is 5, and the upper integer of the quotient of p and x is 5. The distance from the delimiter of the k-th subframe is defined as the distance from the last byte in the delimiter of the k-th subframe. If in the process of parsing the kth subframe, the delimiter of the kth subframe is decoded incorrectly, the receiving end cannot obtain the correct first length indication information and the second length indication information. At this time, the following can be searched One MPDU Signature obtains the starting position of the next subframe, which is consistent with the practice in the prior art.

需要说明的是,当k=1时,由于处理前的第一个子帧之前没有子帧,即第一个子帧没有将第一个子帧的MPDU头部的数据部分移动至前一个子帧,因此,第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU的长度,第k个子帧的定界符中的第二长度指示信息所指示的长度为零。所以,在对该第一个子帧进行解析时,可以根据第k个子帧的定界符中的第一长度指示信息,从第k个子帧的数据部分中,获取靠近第k个子帧的定界符且长度为p的数据部分(即第k个子帧的数据部分中靠前的p个字节),作为第k个子帧的MPDU,p为第k个子帧的定界符中的第一长度指示信息所指示的长度。It should be noted that when k=1, since there is no subframe before the first subframe before processing, that is, the first subframe does not move the data part of the MPDU header of the first subframe to the previous subframe Therefore, the first length indication information in the delimiter of the kth subframe is used to indicate the length of the MPDU of the kth subframe, and the length indicated by the second length indication information in the delimiter of the kth subframe to zero. Therefore, when parsing the first subframe, according to the first length indication information in the delimiter of the kth subframe, the delimiter near the kth subframe can be obtained from the data part of the kth subframe. Delimiter and the data part of length p (that is, the first p bytes in the data part of the kth subframe), as the MPDU of the kth subframe, p is the first in the delimiter of the kth subframe The length indicates the length indicated by the information.

第二方面,当第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的数据部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的数据部分的长度之和,第k个子帧的定界符中的第二长度指示信息用于指示第k+1个子帧的MPDU移至第k个子帧的MPDU之后、第k+1个子帧的定界符之前的数据部分的长度时,根据第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从第k-1个子帧的数据部分中获取第k个子帧的MPDU的第一部分,从第k个子帧的数据部分中获取第k个子帧的MPDU的第二部分,可以包括:In the second aspect, when the first length indication information in the delimiter of the kth subframe is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe The sum of the length of the data part of the kth subframe and the length of the data part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information in the delimiter of the kth subframe is used to indicate the kth subframe When the MPDU of the +1 subframe is moved to the length of the data part after the MPDU of the kth subframe and before the delimiter of the k+1th subframe, according to the first length indication information in the delimiter of the kth subframe And the second length indication information, obtain the first part of the MPDU of the kth subframe from the data part of the k-1th subframe, and obtain the second part of the MPDU of the kth subframe from the data part of the kth subframe, Can include:

根据第k个子帧的定界符中的第一长度指示信息与第二长度指示信息,从第k-1个子帧的数据部分中,获取靠近第k个子帧的定界符且长度为F的数据部分(即第k-1个子帧的数据部分中靠后的F个字节),作为第k个子帧的MPDU的第一部分,F为第k个子帧的定界符中的第一长度指示信息所指示的长度与第二长度指示信息所指示的长度之和除以x的余数;根据第k个子帧的定界符中的第一长度指示信息与F,从第k个子帧的数据部分中,获取靠近第k个子帧的定界符且长度为q的数据部分(即第k个子帧的数据部分中靠前的q个字节),作为第k个子帧的MPDU的第二部分,q为第k个子帧的定界符中的第一长度指示信息所指示的长度与F的差值。需要说明的是,在对该第k个子帧进行解析处理之后,可以根据该第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,确定该第k个子帧的定界符之后,与该第k个子帧的定界符之间的距离为x×ceil(q/x)的位置为第k+1个子帧的起始位置,即该起始位置为该第k+1个子帧的定界符的起始位置,示例的,与该第k个子帧的定界符之间的距离定义为与该第k个子帧的定界符中的最后一个字节之后的位置之间的距离,x×ceil(q/x)的含义可以参考上述对x×ceil(p/x)含义的解释,本发明实施例在此不做赘述。如果第k个子帧的定界符解码错误,接收端则无法获得正确的第一长度指示信息和第二长度指示信息,此时可通过搜索下一个MPDU Signature获得下一个子帧的起始位置,这与现有技术中的做法是一致的。According to the first length indication information and the second length indication information in the delimiter of the kth subframe, from the data part of the k-1th subframe, obtain a delimiter close to the kth subframe and a length of F The data part (that is, the last F bytes in the data part of the k-1th subframe), as the first part of the MPDU of the kth subframe, F is the first length indication in the delimiter of the kth subframe The remainder of dividing the sum of the length indicated by the information and the length indicated by the second length indication information by x; according to the first length indication information and F in the delimiter of the kth subframe, from the data part of the kth subframe In, get the data part close to the delimiter of the kth subframe and the length is q (that is, the first q bytes in the data part of the kth subframe), as the second part of the MPDU of the kth subframe, q is a difference between the length indicated by the first length indication information in the delimiter of the kth subframe and F. It should be noted that, after parsing the kth subframe, the definition of the kth subframe can be determined according to the first length indication information and the second length indication information in the delimiter of the kth subframe. After the delimiter, the position with a distance of x×ceil(q/x) from the delimiter of the kth subframe is the starting position of the k+1th subframe, that is, the starting position is the kth subframe The starting position of the delimiter of the +1 subframe, for example, the distance from the delimiter of the kth subframe is defined as the distance after the last byte in the delimiter of the kth subframe For the distance between locations, the meaning of x×ceil(q/x) can refer to the above-mentioned explanation of the meaning of x×ceil(p/x), and the embodiment of the present invention does not repeat it here. If the delimiter of the kth subframe is decoded incorrectly, the receiving end cannot obtain the correct first length indication information and second length indication information. At this time, the starting position of the next subframe can be obtained by searching the next MPDU Signature, This is consistent with the practice in the prior art.

需要说明的是,当k=1时,由于处理前的第一个子帧之前没有子帧,即第一个子帧没有将第一个子帧的MPDU头部的数据部分移动至前一个子帧,因此,第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU的长度,第k个子帧的定界符中的第二长度指示信息用于指示第二个子帧的MPDU移至第一个子帧的MPDU之后、第二个子帧的定界符之前的部分的长度。此时,F等于零,在对该第k个子帧解析时,仅需根据第k个子帧的定界符中的第一长度指示信息,从第k个子帧的数据部分中,获取靠近第k个子帧的定界符且长度为q的数据部分(即第k个子帧的数据部分中靠前的q个字节),作为第k个子帧的MPDU,q为第k个子帧的定界符中的第一长度指示信息所指示的长度。It should be noted that when k=1, since there is no subframe before the first subframe before processing, that is, the first subframe does not move the data part of the MPDU header of the first subframe to the previous subframe Therefore, the first length indication information in the delimiter of the kth subframe is used to indicate the length of the MPDU of the kth subframe, and the second length indication information in the delimiter of the kth subframe is used to indicate the length of the MPDU of the kth subframe. The length of the part where the MPDU of the two subframes is moved after the MPDU of the first subframe and before the delimiter of the second subframe. At this time, F is equal to zero. When parsing the kth subframe, it is only necessary to obtain the subframe near the kth subframe from the data part of the kth subframe according to the first length indication information in the delimiter of the kth subframe. The delimiter of the frame and the data part of length q (that is, the first q bytes in the data part of the kth subframe), as the MPDU of the kth subframe, and q is the delimiter of the kth subframe The first length of indicates the length indicated by the information.

第三方面,当第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的数据部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的数据部分的长度之和,第k个子帧的定界符中的第二长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的数据部分的长度时,根据第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从第k-1个子帧的数据部分中获取第k个子帧的MPDU的第一部分,从第k个子帧的数据部分中获取第k个子帧的MPDU的第二部分,可以包括:In the third aspect, when the first length indication information in the delimiter of the kth subframe is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe The sum of the length of the data part of the kth subframe and the length of the data part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information in the delimiter of the kth subframe is used to indicate the kth subframe When the MPDU of the subframe is moved to the length of the data part after the MPDU of the k-1th subframe and before the delimiter of the kth subframe, according to the first length indication information in the delimiter of the kth subframe and the first length indication information in the delimiter of the kth subframe Two length indication information, obtain the first part of the MPDU of the kth subframe from the data part of the k-1th subframe, and obtain the second part of the MPDU of the kth subframe from the data part of the kth subframe, which may include :

根据第k个子帧的定界符中的第二长度指示信息,从第k-1个子帧的数据部分中,获取靠近第k个子帧的定界符且长度为r的数据部分(即第k-1个子帧的数据部分中靠后的r个字节),作为第k个子帧的MPDU的第一部分,r为第k个子帧的定界符中的第二长度指示信息所指示的长度;根据第k个子帧的定界符中的第一长度指示信息与r,从第k个子帧的数据部分中,获取靠近第k个子帧的定界符且长度为s的数据部分(即第k个子帧的数据部分中靠前的s个字节),作为第k个子帧的MPDU的第二部分,s为第k个子帧的定界符中的第一长度指示信息所指示的长度与r的差值。需要说明的是,在对该第k个子帧进行解析处理之后,可以根据该第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,确定该第k个子帧的定界符之后,与该第k个子帧的定界符之间的距离为x×ceil(s/x)的位置为第k+1个子帧的起始位置,即该起始位置为该第k+1个子帧的定界符的起始位置,示例的,与该第k个子帧的定界符之间的距离定义为与该第k个子帧的定界符中的最后一个字节之后的位置之间的距离,x×ceil(s/x)的含义可以参考上述对x×ceil(p/x)含义的解释,本发明实施例在此不做赘述。如果第k个子帧的定界符解码错误,接收端则无法获得正确的第一长度指示信息和第二长度指示信息,此时可通过搜索下一个MPDUSignature获得下一个子帧的起始位置,这与现有技术中的做法是一致的。According to the second length indication information in the delimiter of the kth subframe, from the data part of the k-1th subframe, obtain the data part that is close to the delimiter of the kth subframe and has a length of r (that is, the kth subframe -the last r bytes in the data part of 1 subframe), as the first part of the MPDU of the kth subframe, r is the length indicated by the second length indication information in the delimiter of the kth subframe; According to the first length indication information and r in the delimiter of the kth subframe, from the data part of the kth subframe, obtain the data part that is close to the delimiter of the kth subframe and has a length of s (that is, the kth subframe The first s bytes in the data part of the subframe), as the second part of the MPDU of the kth subframe, s is the length indicated by the first length indication information in the delimiter of the kth subframe and r difference. It should be noted that, after parsing the kth subframe, the definition of the kth subframe can be determined according to the first length indication information and the second length indication information in the delimiter of the kth subframe. After the delimiter, the position with a distance of x×ceil(s/x) from the delimiter of the kth subframe is the starting position of the k+1th subframe, that is, the starting position is the kth subframe The starting position of the delimiter of the +1 subframe, for example, the distance from the delimiter of the kth subframe is defined as the distance after the last byte in the delimiter of the kth subframe For the distance between locations, the meaning of x×ceil(s/x) can refer to the above explanation of the meaning of x×ceil(p/x), which will not be described in detail here in the embodiment of the present invention. If the delimiter of the kth subframe is decoded incorrectly, the receiving end cannot obtain the correct first length indication information and second length indication information. At this time, the starting position of the next subframe can be obtained by searching the next MPDUSignature, which means It is consistent with the practice in the prior art.

需要说明的是,当k=1时,由于处理前的第一个子帧之前没有子帧,即第一个子帧没有将第一个子帧的MPDU头部的数据部分移动至前一个子帧,因此,第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU的长度,第k个子帧的定界符中的第二长度指示信息所指示的长度为零。即r等于零,在对该第k个子帧解析时,仅需根据第k个子帧的定界符中的第一长度指示信息,从第k个子帧的数据部分中,获取靠近第k个子帧的定界符且长度为s的数据部分(即第k个子帧的数据部分中靠前的s个字节),作为第k个子帧的MPDU,s为第k个子帧的定界符中的第一长度指示信息所指示的长度。It should be noted that when k=1, since there is no subframe before the first subframe before processing, that is, the first subframe does not move the data part of the MPDU header of the first subframe to the previous subframe Therefore, the first length indication information in the delimiter of the kth subframe is used to indicate the length of the MPDU of the kth subframe, and the length indicated by the second length indication information in the delimiter of the kth subframe to zero. That is, r is equal to zero. When parsing the kth subframe, it is only necessary to obtain the data close to the kth subframe from the data part of the kth subframe according to the first length indication information in the delimiter of the kth subframe. The delimiter and the data part with a length of s (that is, the first s bytes in the data part of the kth subframe), as the MPDU of the kth subframe, s is the delimiter of the kth subframe. A length indicates the length indicated by the information.

第四方面,当第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的数据部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的数据部分的长度之和,第k个子帧的定界符中的第二长度指示信息用于指示第k个子帧的MPDU位于第k个子帧的定界符之后的数据部分的长度时,根据第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从第k-1个子帧的数据部分中获取第k个子帧的MPDU的第一部分,从第k个子帧的数据部分中获取第k个子帧的MPDU的第二部分,可以包括:In the fourth aspect, when the first length indication information in the delimiter of the kth subframe is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe The sum of the length of the data part of the kth subframe and the length of the data part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information in the delimiter of the kth subframe is used to indicate the kth subframe When the MPDU of the subframe is located at the length of the data part after the delimiter of the kth subframe, according to the first length indication information and the second length indication information in the delimiter of the kth subframe, from the k-1th subframe Obtaining the first part of the MPDU of the kth subframe in the data part of the frame, and obtaining the second part of the MPDU of the kth subframe from the data part of the kth subframe may include:

根据第k个子帧的定界符中的第一长度指示信息与第二长度指示信息,从第k-1个子帧的数据部分中,获取靠近第k个子帧的定界符且长度为u的数据部分(即第k-1个子帧的数据部分中靠后的u个字节),作为第k个子帧的MPDU的第一部分,u为第k个子帧的定界符中的第一长度指示信息所指示的长度与第二长度指示信息所指示的长度的差值;根据第k个子帧的定界符中的第二长度指示信息,从第k个子帧的数据部分中,获取靠近第k个子帧的定界符且长度为v的数据部分(即第k个子帧的数据部分中靠前的v个字节),作为第k个子帧的MPDU的第二部分,v为第k个子帧的定界符中的第二长度指示信息所指示的长度。需要说明的是,在对该第k个子帧进行解析处理之后,可以根据该第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,确定该第k个子帧的定界符之后,与该第k个子帧的定界符之间的距离为x×ceil(v/x)的位置为第k+1个子帧的起始位置,即该起始位置为该第k+1个子帧的定界符的起始位置,示例的,与该第k个子帧的定界符之间的距离定义为与该第k个子帧的定界符中的最后一个字节之后的位置之间的距离,x×ceil(v/x)的含义可以参考上述对x×ceil(p/x)含义的解释,本发明实施例在此不做赘述。如果第k个子帧的定界符解码错误,接收端则无法获得正确的第一长度指示信息和第二长度指示信息,此时可通过搜索下一个MPDU Signature获得下一个子帧的起始位置,这与现有技术中的做法是一致的。According to the first length indication information and the second length indication information in the delimiter of the kth subframe, from the data part of the k-1th subframe, obtain the delimiter close to the kth subframe and have a length of u The data part (that is, the last u bytes in the data part of the k-1th subframe), as the first part of the MPDU of the kth subframe, u is the first length indication in the delimiter of the kth subframe The difference between the length indicated by the information and the length indicated by the second length indication information; according to the second length indication information in the delimiter of the kth subframe, from the data part of the kth subframe, obtain the The delimiter of the subframe and the data part of length v (that is, the first v bytes in the data part of the kth subframe), as the second part of the MPDU of the kth subframe, v is the kth subframe The second length in the delimiter indicates the length indicated by the information. It should be noted that, after parsing the kth subframe, the definition of the kth subframe can be determined according to the first length indication information and the second length indication information in the delimiter of the kth subframe. After the delimiter, the position with a distance of x×ceil(v/x) from the delimiter of the kth subframe is the starting position of the k+1th subframe, that is, the starting position is the kth subframe The starting position of the delimiter of the +1 subframe, for example, the distance from the delimiter of the kth subframe is defined as the distance after the last byte in the delimiter of the kth subframe For the distance between positions, the meaning of x×ceil(v/x) can refer to the above-mentioned explanation of the meaning of x×ceil(p/x), and the embodiment of the present invention does not repeat it here. If the delimiter of the kth subframe is decoded incorrectly, the receiving end cannot obtain the correct first length indication information and second length indication information. At this time, the starting position of the next subframe can be obtained by searching the next MPDU Signature, This is consistent with the practice in the prior art.

需要说明的是,当k=1时,由于处理前的第一个子帧之前没有子帧,即第一个子帧没有将第一个子帧的MPDU头部的数据部分移动至前一个子帧,因此,第k个子帧的定界符中的第一长度指示信息和第二长度指示信息均用于指示第k个子帧的MPDU的长度。此时,u等于零,在对该第k个子帧解析时,仅需根据第k个子帧的定界符中的第一长度指示信息或第二长度指示信息,从第k个子帧的数据部分中,获取靠近第k个子帧的定界符且长度为v的数据部分(即第k个子帧的数据部分中靠前的v个字节),作为第k个子帧的MPDU,v为第k个子帧的定界符中的第一长度指示信息或第二长度指示信息所指示的长度。It should be noted that when k=1, since there is no subframe before the first subframe before processing, that is, the first subframe does not move the data part of the MPDU header of the first subframe to the previous subframe Therefore, both the first length indication information and the second length indication information in the delimiter of the kth subframe are used to indicate the length of the MPDU of the kth subframe. At this time, u is equal to zero, and when parsing the kth subframe, it is only necessary to extract from the data part of the kth subframe according to the first length indication information or the second length indication information in the delimiter of the kth subframe , get the data part close to the delimiter of the kth subframe and the length is v (that is, the first v bytes in the data part of the kth subframe), as the MPDU of the kth subframe, v is the kth subframe The length indicated by the first length indication information or the second length indication information in the frame delimiter.

需要注意的是,接收端生成A-MPDU时必须逐子帧进行第一处理,前一子帧的处理结果影响后一子帧的处理。但在接收端解析任一子帧时,仅需根据该子帧定界符中的第一长度指示信息和第二长度指示信息对该子帧进行解析即可,而无需依赖其它子帧的信息。It should be noted that when the receiving end generates the A-MPDU, the first processing must be performed subframe by subframe, and the processing result of the previous subframe affects the processing of the next subframe. However, when the receiving end parses any subframe, it only needs to analyze the subframe according to the first length indication information and the second length indication information in the subframe delimiter, without relying on information of other subframes .

步骤507、接收端根据多个MPDU得到多个数据消息。Step 507, the receiving end obtains multiple data messages according to multiple MPDUs.

具体的,由于步骤502中发送端根据多个数据消息生成多个相应的MPDU,且每个MPDU中记录有与该子帧对应的数据消息相对应的数据,所以步骤507中该接收端在获取该多个MPDU之后,可以根据该多个MPDU得到多个数据消息。Specifically, since in step 502, the sending end generates multiple corresponding MPDUs according to multiple data messages, and data corresponding to the data message corresponding to the subframe is recorded in each MPDU, so in step 507, the receiving end acquires After the multiple MPDUs, multiple data messages can be obtained according to the multiple MPDUs.

需要说明的是,在发送端依次对多个子帧中的子帧进行第一处理之前,若多个子帧中两个相邻子帧之间的距离小于预设距离,则需要在两个子帧之间插入一个或多个空子帧,使得两相邻子帧之间的距离达到预设距离要求,空子帧仅包括定界符而不包括MPDU,即空子帧包括定界符和长度为零的数据部分,所以空子帧的长度为固定的x字节。两个相邻子帧之间的距离,定义为两个子帧的MPDU起始位置之间的字节距离,即从前一个子帧的定界符中的最后一个字节的位置到下一个子帧的定界符中的最后一个字节的位置之间的距离。包含MPDU的子帧称为数据子帧,两个数据子帧之间插入一个或多个空子帧之后,将两个数据子帧中的前一个数据子帧称为前位子帧,表示该子帧为数据子帧且该子帧之后的子帧为空子帧;将两个数据子帧中的后一个数据子帧称为后位子帧,表示该子帧为数据子帧且该子帧之前的子帧为空子帧,数据子帧即非空子帧。在发送端依次对多个子帧中的子帧进行第一处理时,发送端还可以检测当前处理的第k个子帧是否为前位子帧。It should be noted that, before the sending end sequentially performs the first processing on the subframes in the multiple subframes, if the distance between two adjacent subframes in the multiple subframes is less than the preset distance, you need to One or more empty subframes are inserted between them, so that the distance between two adjacent subframes reaches the preset distance requirement. The empty subframes only include delimiters and do not include MPDUs, that is, empty subframes include delimiters and zero-length data. part, so the length of the empty subframe is fixed x bytes. The distance between two adjacent subframes, defined as the byte distance between the MPDU start positions of two subframes, that is, from the position of the last byte in the delimiter of the previous subframe to the next subframe The distance between the position of the last byte in the delimiter. A subframe containing an MPDU is called a data subframe. After inserting one or more empty subframes between two data subframes, the previous data subframe of the two data subframes is called a previous subframe, indicating that the subframe It is a data subframe and the subframe after this subframe is an empty subframe; the latter data subframe in the two data subframes is called a subsequent subframe, which means that this subframe is a data subframe and the subframe before this subframe A frame is an empty subframe, and a data subframe is a non-empty subframe. When the sending end sequentially performs the first processing on the subframes in the multiple subframes, the sending end may also detect whether the currently processed kth subframe is a preceding subframe.

进一步的,在为该多个子帧中的第k个子帧进行第一处理时,若该第k个子帧为前位子帧,即第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧,对该前位子帧的第一处理的过程可以参考步骤504中当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,对第k个子帧的第一处理过程。具体的,由于前位子帧下一位子帧为空子帧,没有后续子帧向前位子帧提供前移字节,故只能采用填充冗余位的方法,在对该前位子帧进行第一处理之前,可以检测位于该前位子帧的定界符之后的数据部分的长度是否为x的整数倍,若位于该前位子帧的定界符之后的数据部分的长度为x的整数倍,则不需要对该前位子帧进行第一处理。若位于该前位子帧的定界符之后的数据部分的长度不是x的整数倍,则在该前位子帧的定界符之后的MPDU之后添加填充位,使得填充位的长度与位于该前位子帧的定界符之后的MPDU的长度之和等于x的整数倍。由于该第前位子帧的下一个子帧为空子帧,空子帧仅包括定界符而不包括MPDU,即空子帧包括定界符和长度为零的数据部分,所以空子帧的长度为固定的x字节,位于空子帧的定界符之后、位于空子帧下一位子帧的定界符之前的数据部分为零,是x的整数倍,所以无需对该前位子帧的下一个子帧进行第一处理,可以按照该多个子帧的顺序,继续对后面的子帧进行第一处理,当处理至后位子帧时,可以参考当第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是非空子帧时,对第k个子帧的第一处理的过程,即后位子帧的处理无需特殊对待。Further, when performing the first processing for the kth subframe in the plurality of subframes, if the kth subframe is a previous subframe, that is, the kth subframe is a non-empty subframe and there is a k+1th subframe and the kth subframe is The k+1 subframe is an empty subframe, and the process of the first processing of the previous subframe can refer to step 504 when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe When there is an empty subframe and the k+1th subframe exists and the k+1th subframe is an empty subframe, the first processing procedure for the kth subframe. Specifically, since the next subframe of the previous subframe is an empty subframe, there is no subsequent subframe to provide the forward byte to the previous subframe, so the method of filling redundant bits can only be used to perform the first processing on the previous subframe Before, it can be detected whether the length of the data part after the delimiter of the previous subframe is an integer multiple of x, if the length of the data part after the delimiter of the previous subframe is an integer multiple of x, then no The first processing needs to be performed on the preceding subframe. If the length of the data part after the delimiter of the previous subframe is not an integer multiple of x, a padding bit is added after the MPDU after the delimiter of the previous subframe, so that the length of the stuffing bit is the same as that of the previous subframe. The sum of the lengths of MPDUs after the frame delimiter is equal to an integer multiple of x. Since the next subframe of the first subframe is an empty subframe, the empty subframe only includes the delimiter and does not include the MPDU, that is, the empty subframe includes the delimiter and the data part with a length of zero, so the length of the empty subframe is fixed x bytes, the data part after the delimiter of the empty subframe and before the delimiter of the next subframe of the empty subframe is zero, which is an integer multiple of x, so there is no need to perform the next subframe of the previous subframe The first processing can continue to perform the first processing on the following subframes according to the order of the multiple subframes. When processing to the next subframe, you can refer to when the kth subframe is a non-empty subframe and there is a k+1th subframe And when the k+1th subframe is a non-empty subframe, the process of the first processing of the kth subframe, that is, the processing of the subsequent subframes, does not need special treatment.

如图9所示,802.11ac中每个子帧的定界符的字节数为4,一个字节为8个比特位,故定界符中共有32个比特位,其中包括的信息有位置标识、MPDU长度指示、循环冗余码(英文:Cyclic Redundancy Code;简称:CRC)和MPDU特征位,其中,位置标识占用定界符中的1位,MPDU长度指示占用14位,CRC占用8位,该MPDU特征位占用8位,这样,定界符中还剩余有1位预留位,且该预留位为空。该位置标识、预留位、MPDU长度指示、CRC和MPDU特征位按照顺序依次排列。As shown in Figure 9, the number of bytes of the delimiter of each subframe in 802.11ac is 4, and one byte is 8 bits. Therefore, there are 32 bits in the delimiter, and the information included in it includes position identification , MPDU length indication, cyclic redundancy code (English: Cyclic Redundancy Code; abbreviation: CRC) and MPDU feature bits, wherein, the position identifier occupies 1 bit in the delimiter, the MPDU length indication occupies 14 bits, and the CRC occupies 8 bits. The MPDU flag occupies 8 bits, so there is one reserved bit left in the delimiter, and the reserved bit is empty. The location identifier, reserved bits, MPDU length indication, CRC and MPDU flag bits are arranged in sequence.

假设通过对802.11ac的定界符格式的改造,来实现本实施例中的定界符,即定界符中包含第一长度指示信息和第二长度指示信息。当该x等于4时,子帧的定界符中的第一长度指示信息和第二长度指示信息在四种指示方式中,在设置该子帧的定界符时,均需要在该子帧对应的原子帧的定界符的基础上,提取两位空闲位,该子帧的定界符中的第一长度指示信息和第二长度指示信息可以分别占用该用两位空闲位和原有的MPDU长度指示所占用的14位,或第一长度指示信息和第二长度指示信息可以分别占用原有的MPDU长度指示所占用的14位和该用两位空闲位。优选的,为该第一长度指示信息分配的比特位的个数应该大于为该第二长度指示信息分配的比特位的个数,可以为该第一长度指示信息分配该MPDU长度指示所占用的14位,为第二长度指示信息分配该两位空闲位。需要说明的是,在为该第一长度指示信息和该第二长度指示信息分配该MPDU长度指示所占用的14位和该两位空闲位时,还可以采用其他方法,本发明实施例对此不做限定,在802.11ac的定界符中仅剩余一位空闲位,因此还需获得另外一位空闲位,组成两位空闲位。示例的,可通过下面几种方法获得2位空闲位,用于承载第二长度指示信息。Assume that the delimiter in this embodiment is implemented by modifying the format of the 802.11ac delimiter, that is, the delimiter includes the first length indication information and the second length indication information. When x is equal to 4, the first length indication information and the second length indication information in the delimiter of the subframe need to be in the subframe when setting the delimiter of the subframe in the four indication modes. On the basis of the delimiter of the corresponding atomic frame, two idle bits are extracted, and the first length indication information and the second length indication information in the delimiter of the subframe can respectively occupy the two idle bits and the original The 14 bits occupied by the MPDU length indication, or the first length indication information and the second length indication information may respectively occupy the 14 bits occupied by the original MPDU length indication and the two idle bits. Preferably, the number of bits allocated for the first length indication information should be greater than the number of bits allocated for the second length indication information, and the MPDU length indication occupied by the first length indication information may be allocated 14 bits, the two idle bits are allocated for the second length indication information. It should be noted that when allocating the 14 bits occupied by the MPDU length indication and the two idle bits for the first length indication information and the second length indication information, other methods can also be used. Without limitation, there is only one free bit left in the 802.11ac delimiter, so another free bit needs to be obtained to form two free bits. For example, the following methods can be used to obtain 2 idle bits for carrying the second length indication information.

第一方面,两位空闲位可以为子帧对应的原子帧的定界符中的一位预留位和任意一位第二特征指示所占用的8位。In the first aspect, the two free bits may be a reserved bit in the delimiter of the atomic frame corresponding to the subframe and any 8 bits occupied by the second characteristic indicator.

示例的,如图9-1所示,该两位空闲位可以为该子帧对应的原子帧的定界符中的一位预留位以及该子帧对应的原子帧的定界符中的第二特征指示所占用的8位中的任意1位。For example, as shown in Figure 9-1, the two free bits can be a reserved bit in the delimiter of the atomic frame corresponding to the subframe and a reserved bit in the delimiter of the atomic frame corresponding to the subframe. The second characteristic indicates any 1 bit among the 8 bits occupied.

如图9-2所示,该两位空闲位可以为该子帧对应的原子帧的定界符中的位置标识所占用的1位以及该子帧对应的原子帧的定界符中的一位预留位。As shown in Figure 9-2, the two free bits can be 1 bit occupied by the position identifier in the delimiter of the atomic frame corresponding to the subframe and one of the delimiters of the atomic frame corresponding to the subframe bit reserved.

如图9-3所示,该两位空闲位可以为该子帧对应的原子帧的定界符中的一位预留位以及该子帧对应的原子帧的定界符中的第二特征指示所占用的8位中的任意1位。并将该MPDU长度指示占用的14位与该第一特征指示占用的8位向后移动一位。As shown in Figure 9-3, the two free bits can be reserved for one bit in the delimiter of the atomic frame corresponding to the subframe and the second feature in the delimiter of the atomic frame corresponding to the subframe Indicates any 1 of the 8 bits occupied. The 14 bits occupied by the MPDU length indication and the 8 bits occupied by the first characteristic indication are moved backward by one bit.

第二方面,如图9-4所示,两位空闲位可以为子帧对应的原子帧的定界符中的一位预留位和位置标识所占用的一位。In the second aspect, as shown in FIG. 9-4 , the two free bits can be a reserved bit in the delimiter of the atomic frame corresponding to the subframe and a bit occupied by the position identifier.

第三方面,两位空闲位可以为子帧对应的原子帧的定界符中第一特征指示所占用的8位中的任意2位或MPDU长度指示所占用的14位中的任意2位。如图9-5所示,在802.11ah机制中,子帧的定界符中的第一特征指示仅需占用四位比特位即可,类似地,这里也可将CRC缩短,例如采用6位CRC。这样,就可以用CRC省出的2比特来承载第二长度指示信息。In the third aspect, the two free bits may be any 2 bits in the 8 bits occupied by the first feature indication or any 2 bits in the 14 bits occupied by the MPDU length indication in the delimiter of the atomic frame corresponding to the subframe. As shown in Figure 9-5, in the 802.11ah mechanism, the first feature indication in the subframe delimiter only needs to occupy four bits. Similarly, the CRC can also be shortened here, for example, using 6 bits CRC. In this way, the 2 bits saved by the CRC can be used to carry the second length indication information.

本发明实施例中,在步骤504中发送端依次对多个子帧中的子帧进行第一处理的过程中,若第k个子帧为空子帧,由于空子帧中位于空子帧的定界符之后和位于空子帧的下一位的子帧的定界符之前的数据部分的长度为零,为定界符长度的整数倍,所以无需对空子帧进行第一处理。在对该多个子帧中的每个子帧的定界符进行设置时,每个子帧的定界符中均设置有第一长度指示信息和第二长度指示信息,空子帧的定界符中的第一长度指示信息和第二长度指示信息所指示的长度均为零。在步骤506中接收端依次对该处理后的A-MPDU中的子帧进行解析时,仅需获取每个子帧的定界符中的第一长度指示信息和第二长度指示信息即可对该子帧进行解析。In the embodiment of the present invention, in step 504, during the process of performing the first processing on the subframes in the multiple subframes sequentially by the sending end, if the kth subframe is an empty subframe, since the empty subframe is located after the delimiter of the empty subframe The length of the data part before the delimiter of the subframe next to the empty subframe is zero, which is an integer multiple of the length of the delimiter, so there is no need to perform the first processing on the empty subframe. When setting the delimiter of each subframe in the plurality of subframes, the first length indication information and the second length indication information are set in the delimiter of each subframe, and the delimiter of the empty subframe The lengths indicated by the first length indication information and the second length indication information are both zero. When the receiving end in step 506 parses the subframes in the processed A-MPDU in turn, it only needs to obtain the first length indication information and the second length indication information in the delimiter of each subframe. Subframes are parsed.

可选的,在步骤504中,发送端在依次对多个子帧中的子帧进行第一处理时,可以检测当前处理的子帧是否为空子帧,若当前处理的子帧为空子帧则不对空子帧进行处理;若当前处理的子帧是非空子帧,则判断是否需要对当前子帧进行第一处理,若需要对当前子帧进行第一处理,则可以参考步骤504中对子帧的第一处理的具体过程。并且若子帧为空子帧则可以不对空子帧的定界符进行设置,即空子帧中定界符的格式可以与现有技术中相同;若该子帧是非空子帧,则在该子帧的定界符中设置第一长度指示信息和第二长度指示信息。在步骤506中,接收端在对该处理后的A-MPDU进行解析时,首先可以检测当前子帧是否为空子帧,若当前子帧为空子帧,则可以按照现有技术中对空子帧的解析方法对该子帧进行解析。若当前子帧是非空子帧,则可以参考步骤506中对子帧的具体解析方法,对当前子帧进行解析。Optionally, in step 504, when the sending end sequentially performs the first processing on the subframes in the multiple subframes, it may detect whether the currently processed subframe is an empty subframe, and if the currently processed subframe is an empty subframe, then it is not true. Empty subframe is processed; If the subframe of current processing is non-empty subframe, then judge whether need to carry out first processing to current subframe, if need to carry out first processing to current subframe, then can refer to the first processing of subframe in step 504 A specific process of processing. And if the subframe is an empty subframe, the delimiter of the empty subframe can not be set, that is, the format of the delimiter in the empty subframe can be the same as in the prior art; if the subframe is a non-empty subframe, then in the delimiter of the subframe The first length indication information and the second length indication information are set in the delimiter. In step 506, when the receiving end parses the processed A-MPDU, it can first detect whether the current subframe is an empty subframe. The parsing method parses the subframe. If the current subframe is a non-empty subframe, the current subframe may be analyzed with reference to the specific analysis method for subframes in step 506 .

综上所述,由于本发明实施例提供的数据处理方法中,对于A-MPDU的两个相邻子帧,发送端将后一子帧的MPDU头部的部分字节前移至前一子帧的MPDU的尾部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。To sum up, in the data processing method provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sending end will forward some bytes of the MPDU header of the next subframe to the previous subframe. The end of the MPDU of the frame, so that the length of the data part after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

如图10所示,本发明实施例提供了再一种数据处理方法,该数据处理方法可以用于发送端,该数据处理方法可以包括:As shown in Figure 10, the embodiment of the present invention provides another data processing method, which can be used at the sending end, and the data processing method can include:

步骤901、根据多个MPDU生成A-MPDU,A-MPDU包括y个子帧,每个子帧包括定界符和数据部分,数据部分包括MPDU,每个子帧的数据部分的长度均大于等于零,每个子帧的定界符的长度均为x,x≥1,x为整数,y≥2,y为整数。Step 901, generate A-MPDU according to multiple MPDUs, A-MPDU includes y subframes, each subframe includes a delimiter and a data part, the data part includes MPDU, the length of the data part of each subframe is greater than or equal to zero, each subframe The length of the frame delimiter is x, x≥1, x is an integer, y≥2, y is an integer.

示例的,当前802.11n和802.11ac标准中定界符长度x为4。假设共有N1个MPDU,而A-MPDU中的子帧个数为N2,则N2大于或等于N1。其中,N1个子帧与N1个MPDU对应,剩余N2-N1个子帧为空子帧,其作用为使相邻非空子帧之间的距离满足预设要求(空子帧位于两个非空子帧之间)或将A-MPDU填充至一定长度(非空子帧位于所有非空子帧之后)。当然,A-MPDU中也可能仅包含N1非空子帧而不含空子帧,即N1=N2。空子帧仅包括定界符而不包括MPDU,即空子帧包括定界符和长度为零的数据部分,所以空子帧的长度为固定的x字节。所述多个子帧是指由N1个非空子帧和可能存在的空子帧组成的有序子帧序列。空子帧的数据部分的长度等于零,非空子帧的数据部分的长度大于零。For example, the delimiter length x is 4 in the current 802.11n and 802.11ac standards. Assuming that there are N1 MPDUs in total, and the number of subframes in the A-MPDU is N2, then N2 is greater than or equal to N1. Among them, N1 subframes correspond to N1 MPDUs, and the remaining N2-N1 subframes are empty subframes, which function to make the distance between adjacent non-empty subframes meet the preset requirements (the empty subframe is located between two non-empty subframes) Or fill the A-MPDU to a certain length (non-empty subframes are located after all non-empty subframes). Of course, the A-MPDU may only include N1 non-empty subframes without empty subframes, that is, N1=N2. The empty subframe only includes a delimiter and does not include an MPDU, that is, the empty subframe includes a delimiter and a data part with a length of zero, so the length of the empty subframe is fixed x bytes. The multiple subframes refer to an ordered subframe sequence composed of N1 non-empty subframes and possible empty subframes. The length of the data part of the empty subframe is equal to zero, and the length of the data part of the non-empty subframe is greater than zero.

步骤902、若第k个子帧是非空子帧,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍,则对第k个子帧进行第二处理,第二处理使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,1≤k≤y,k为整数;其中,当存在第k+1个子帧且是非空子帧时,对第k个子帧的第二处理的过程可以包括:将位于第k个子帧的MPDU的尾部的长度为m的部分移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后,使得位于第k个子帧的定界符之后、第k+1个定界符之前的数据部分的长度为x的整数倍,其中,0≤m≤x-1,m为整数。Step 902, if the kth subframe is a non-empty subframe, and the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer multiple of x, then the K subframes perform the second processing, the second processing makes the length of the data part located after the delimiter of the kth subframe and before the delimiter of the k+1th subframe be an integer multiple of x, 1≤k≤y , k is an integer; wherein, when there is a k+1th subframe and it is a non-empty subframe, the process of the second processing of the kth subframe may include: the length of the tail of the MPDU located in the kth subframe is m The part is moved before the MPDU of the k+1th subframe and after the delimiter of the k+1th subframe, so that the part of the data located after the delimiter of the kth subframe and before the k+1th delimiter The length is an integer multiple of x, where 0≤m≤x-1, and m is an integer.

需要说明的是,对子帧进行第二处理是指对通过子帧进行处理,使得子帧长度为x的整数倍,其中,子帧长度是指子帧的定界符的长度与子帧的定界符与下一个子帧的定界符之间的数据部分的长度之和。空子帧仅包括定界符而不包括MPDU,即空子帧包括定界符和长度为零的数据部分,所以空子帧的长度为固定的x字节,空子帧中位于空子帧的定界符之后和空子帧下一个子帧的定界符之前的数据部分的长度是x的整数倍,因此无需对空子帧进行第二处理。It should be noted that performing the second processing on the subframe refers to processing the passed subframe so that the length of the subframe is an integer multiple of x, where the length of the subframe refers to the length of the delimiter of the subframe and the length of the subframe The sum of the lengths of the data portion between the delimiter and the delimiter of the next subframe. The empty subframe only includes the delimiter and does not include the MPDU, that is, the empty subframe includes the delimiter and the data part with a length of zero, so the length of the empty subframe is fixed x bytes, and the empty subframe is located after the delimiter of the empty subframe The length of the data part before the delimiter of the next subframe and the empty subframe is an integer multiple of x, so there is no need to perform the second processing on the empty subframe.

步骤903、向接收端发送处理后的A-MPDU,以便于接收端根据处理后的A-MPDU解析得到多个MPDU。Step 903: Send the processed A-MPDU to the receiving end, so that the receiving end can analyze and obtain multiple MPDUs according to the processed A-MPDU.

综上所述,由于本发明实施例提供的数据处理方法中,对于A-MPDU的两个相邻子帧,发送端将前一子帧的MPDU尾部的部分字节后移至后一子帧的MPDU的头部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。To sum up, in the data processing method provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sender moves some bytes at the end of the MPDU of the previous subframe to the next subframe The head of the MPDU, so that the length of the data part located after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

值得说明的是,上述第二处理过程从A-MPDU的第一个子帧开始逐子帧执行,前一子帧的执行结果会影响后一子帧执行时需要前移的字节数。上述第二处理过程的执行结果是对于多个子帧中的任一子帧,其数据部分的一部分位于其当前子帧的定界符与下一子帧的定界符之间,其数据部分的另一部分位于下一子帧的定界符之后。当然,当第k个子帧为空子帧且第k个子帧是最后一个子帧,或第k个子帧为空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,由于第k个子帧后面没有非空子帧,所以该第k个子帧的数据部分中位于下一子帧的定界符之后的部分不存在,即该第k个子帧的数据部分均位于该第k个子帧的定界符之后。It is worth noting that the above-mentioned second processing procedure is executed subframe by subframe starting from the first subframe of the A-MPDU, and the execution result of the previous subframe will affect the number of bytes that need to be moved forward when the subsequent subframe is executed. The execution result of the above-mentioned second processing procedure is that for any subframe in the plurality of subframes, a part of its data part is located between the delimiter of its current subframe and the delimiter of the next subframe, and part of its data part The other part is located after the delimiter of the next subframe. Of course, when the kth subframe is an empty subframe and the kth subframe is the last subframe, or the kth subframe is an empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, because There is no non-empty subframe after the kth subframe, so the part after the delimiter of the next subframe in the data part of the kth subframe does not exist, that is, the data part of the kth subframe is located in the kth subframe after the frame delimiter.

当第k个子帧是最后一个子帧或存在第k+1个子帧且是空子帧时,对第k个子帧的第二处理的过程可以包括:在位于第k个子帧的定界符之后的第k个子帧的MPDU之后添加长度为Q的填充位,使得第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的部分的长度、填充位的长度Q与第k个子帧的MPDU的长度之和等于x的整数倍,其中,0<Q≤x-1,Q为整数。换言之,当第k个子帧为空子帧且第k个子帧是最后一个子帧,或第k个子帧为空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,对第k个子帧的处理规则与其它子帧不同,由于此时第k个子帧后续没有非空子帧,第k个子帧无法后移字节,故只能采用填充冗余位的方法。需要说明的是,空子帧仅包括定界符而不包括MPDU,即空子帧包括定界符和长度为零的数据部分,所以空子帧的长度为固定的x字节,非空子帧为数据子帧。When the kth subframe is the last subframe or the k+1th subframe exists and is an empty subframe, the process of the second processing of the kth subframe may include: after the delimiter of the kth subframe Add padding bits of length Q after the MPDU of the kth subframe, so that the MPDU of the k-1th subframe is moved to the length of the part after the delimiter of the kth subframe before the MPDU of the kth subframe, padding bits The sum of the length Q of and the length of the MPDU of the kth subframe is equal to an integer multiple of x, where 0<Q≤x-1, and Q is an integer. In other words, when the kth subframe is an empty subframe and the kth subframe is the last subframe, or the kth subframe is an empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, the The processing rule of the kth subframe is different from that of other subframes. Since there is no non-empty subframe following the kth subframe at this time, the kth subframe cannot be shifted backwards, so the method of filling redundant bits can only be used. It should be noted that the empty subframe only includes the delimiter and does not include the MPDU, that is, the empty subframe includes the delimiter and the data part with a length of zero, so the length of the empty subframe is fixed x bytes, and the non-empty subframe is the data subframe. frame.

当k≥2时,第k个子帧的定界符中包括第一长度指示信息和第二长度指示信息;其中,第一长度指示信息用于指示第k个子帧的MPDU移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后的部分的长度与第k个子帧的MPDU位于第k+1个子帧的定界符之前的部分的长度之和,第二长度指示信息用于指示第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的部分的长度。当k=1时,第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后的部分的长度与第k个子帧的MPDU位于第k+1个子帧的定界符之前的部分的长度之和,第二长度指示信息所指示的长度为零。当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度,第k个子帧的定界符中的第二长度指示信息用于指示第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的部分的长度。需要注意的是,空子帧的定界符中的第一长度指示和第二长度指示均设置为零。When k≥2, the delimiter of the kth subframe includes the first length indication information and the second length indication information; wherein, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the k+1th The sum of the length of the part before the MPDU of the subframe and after the delimiter of the k+1 subframe and the length of the part of the MPDU of the k subframe before the delimiter of the k+1 subframe, the second length The indication information is used to indicate the length of the part where the MPDU of the k-1th subframe is moved before the MPDU of the kth subframe and after the delimiter of the kth subframe. When k=1, the first length indication information in the delimiter of the kth subframe is used to indicate that the MPDU of the kth subframe is moved before the MPDU of the k+1th subframe, and the definition of the k+1th subframe The sum of the length of the part after the delimiter and the length of the part of the MPDU of the k-th subframe before the delimiter of the k+1-th subframe, the length indicated by the second length indication information is zero. When the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, the kth subframe The first length indication information in the delimiter of the frame is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication in the delimiter of the kth subframe The information is used to indicate the length of the part before the MPDU of the k-1th subframe before the MPDU of the kth subframe and after the delimiter of the kth subframe. It should be noted that both the first length indication and the second length indication in the delimiter of the empty subframe are set to zero.

可选的,多个子帧中的每个子帧的定界符中还可以包括用于指示每个子帧位置的位置标识,当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,多个子帧中除第k个子帧之外的其他子帧定界符中的位置标识与第k个子帧定界符中的位置标识不同。使用位置标识的目的是为了将当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,将第k个子帧和其他子帧区分开来。由于当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,第k个子帧的在发送端的处理规则和其他子帧不同,相应地,接收端的解析规则也不同,因此需要特别标识,以便接收端针对不同位置的子帧采用不同解析规则。例如,802.11ac标准中,每个子帧的定界符中存在帧结束EoF(英文:End of Frame)位,即位置标识,在本发明实施例中,若第k个子帧是非空子帧且第k个子帧为最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,可以将第k个子帧的EoF设置为1,以便区别于多个子帧中除第k个子帧之外的其它子帧。多个子帧中的每个子帧的定界符中还包括用于指示每个子帧中是否存在填充位的填充标识,填充标识和位置标识可以是同一标识。Optionally, the delimiter of each subframe in the multiple subframes may also include a position identifier for indicating the position of each subframe, when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, Or when the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, the position identifier in the delimiter of other subframes except the kth subframe in multiple subframes It is different from the position identifier in the kth subframe delimiter. The purpose of using the location identifier is to identify when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe When is an empty subframe, distinguish the kth subframe from other subframes. Since when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, the kth The processing rules of a subframe at the sending end are different from other subframes. Correspondingly, the parsing rules at the receiving end are also different, so special identification is required so that the receiving end adopts different parsing rules for subframes at different positions. For example, in the 802.11ac standard, there is a frame end EoF (English: End of Frame) bit in the delimiter of each subframe, that is, a position identifier. In the embodiment of the present invention, if the kth subframe is a non-empty subframe and the kth subframe When the subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, the EoF of the kth subframe can be set to 1 to distinguish other subframes except the kth subframe in the plurality of subframes. The delimiter of each subframe in the multiple subframes further includes a padding identifier used to indicate whether there is a padding bit in each subframe, and the padding identifier and the position identifier may be the same identifier.

综上所述,由于本发明实施例提供的数据处理方法中,对于A-MPDU的两个相邻子帧,发送端将前一子帧的MPDU尾部的部分字节后移至后一子帧的MPDU的头部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。To sum up, in the data processing method provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sender moves some bytes at the end of the MPDU of the previous subframe to the next subframe The head of the MPDU, so that the length of the data part located after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

如图11所示,本发明另一实施例提供了一种数据处理方法,该数据处理方法可以用于接收端,该数据处理方法可以包括:As shown in Figure 11, another embodiment of the present invention provides a data processing method, which can be used at the receiving end, and the data processing method can include:

步骤1001、接收发送端发送的A-MPDU,A-MPDU包括y个子帧,每个子帧包括定界符和数据部分,每个子帧的数据部分的长度均大于等于零,每个子帧的定界符的长度均为x,x≥1,x为整数,定界符中包括第一长度指示信息和第二长度指示信息,数据部分包括媒体接入控制协议数据单元MPDU,每两个子帧的定界符之间的数据部分的长度均为x的整数倍,y≥2,y为整数。Step 1001, receive the A-MPDU sent by the sending end, the A-MPDU includes y subframes, each subframe includes a delimiter and a data part, the length of the data part of each subframe is greater than or equal to zero, and the delimiter of each subframe The length of each is x, x≥1, x is an integer, the delimiter includes the first length indication information and the second length indication information, the data part includes the media access control protocol data unit MPDU, and the delimitation of every two subframes The length of the data part between symbols is an integer multiple of x, y≥2, and y is an integer.

步骤1002、依次对多个子帧中的子帧以长度x为单位进行解析处理得到多个MPDU,其中,第k个子帧为y个子帧中的任意一个,1≤k≤y,k为整数,解析处理包括对第k个子帧进行第一解析处理:根据第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从第k个子帧的数据部分中获取第k个子帧的MPDU的第一部分,从第k+1个子帧的数据部分中获取第k个子帧的MPDU的第二部分,将第一部分和第二部分合并,组成第k个子帧的MPDU,此时1≤k≤y-1。Step 1002, sequentially analyze and process the subframes in the multiple subframes in units of length x to obtain multiple MPDUs, wherein the kth subframe is any one of the y subframes, 1≤k≤y, k is an integer, The parsing process includes performing a first parsing process on the kth subframe: according to the first length indication information and the second length indication information in the delimiter of the kth subframe, the kth subframe is obtained from the data part of the kth subframe The first part of the MPDU of the frame, the second part of the MPDU of the kth subframe is obtained from the data part of the k+1th subframe, and the first part and the second part are combined to form the MPDU of the kth subframe. At this time, 1 ≤k≤y-1.

其中,第一长度指示信息用于指示第k个子帧的MPDU移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后的部分的长度与第k个子帧的MPDU位于第k+1个子帧的定界符之前的部分的长度之和,第二长度指示信息用于指示第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate that the MPDU of the kth subframe is moved before the MPDU of the k+1th subframe, and the length of the part after the delimiter of the k+1th subframe is the same as the length of the MPDU of the kth subframe. The sum of the lengths of the parts before the delimiter of the k+1th subframe, the second length indication information is used to indicate that the MPDU of the k-1th subframe is moved to before the MPDU of the kth subframe, and the length of the kth subframe The length of the part after the delimiter.

综上所述,由于本发明实施例提供的数据处理方法中,对于A-MPDU的两个相邻子帧,发送端将前一子帧的MPDU尾部的部分字节后移至后一子帧的MPDU的头部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的部分的长度为定界符长度的整数倍。由于本发明实施例减少了对子帧添加冗余填充位使得子帧MPDU的字节数为定界符中字节数的整数倍,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。To sum up, in the data processing method provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sender moves some bytes at the end of the MPDU of the previous subframe to the next subframe The head of the MPDU, so that the length of the part after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Since the embodiment of the present invention reduces the addition of redundant padding bits to the subframe so that the number of bytes in the subframe MPDU is an integer multiple of the number of bytes in the delimiter, the additional overhead of the communication system is reduced, so the resources of the communication system are reduced waste.

可选的,定界符中还包括填充标识,解析处理还可以包括:检测第k个子帧中的填充标识;当检测出填充标识指示第k个子帧中不存在填充位时执行第一解析处理;当检测出填充标识指示第k个子帧中存在填充位,则对第k个子帧执行第二解析处理:根据第k个子帧的定界符中的第一长度指示信息与第二长度指示信息,在第k个子帧的数据部分中,获取与第k个子帧的定界符的距离为e,且长度为f的部分,作为第k个子帧的MPDU,e为第k个子帧的定界符中的第二长度指示信息所指示的长度,f为第k个子帧的定界符中的第一长度指示信息所指示的长度。Optionally, the delimiter also includes a padding flag, and the parsing process may also include: detecting the padding flag in the kth subframe; performing the first parsing process when the padding flag is detected indicating that there is no stuffing bit in the kth subframe ; When it is detected that the padding flag indicates that there is a padding bit in the kth subframe, the second parsing process is performed on the kth subframe: according to the first length indication information and the second length indication information in the delimiter of the kth subframe , in the data part of the kth subframe, obtain the part whose distance from the delimiter of the kth subframe is e and whose length is f, as the MPDU of the kth subframe, e is the delimiter of the kth subframe f is the length indicated by the second length indication information in the delimiter of the kth subframe, and f is the length indicated by the first length indication information in the delimiter of the kth subframe.

示例的,填充标识可以复用802.11ac定界符中的EoF来指示,即当EoF为1时表示当前子帧采用填充方法;否则,本子帧的MPDU的尾部部分自己移到了下一个子帧中。For example, the filling flag can be indicated by multiplexing the EoF in the 802.11ac delimiter, that is, when the EoF is 1, it means that the current subframe adopts the filling method; otherwise, the tail part of the MPDU of this subframe is moved to the next subframe by itself .

综上所述,由于本发明实施例提供的数据处理方法中,对于A-MPDU的两个相邻子帧,发送端将前一子帧的MPDU尾部的部分字节后移至后一子帧的MPDU的头部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。To sum up, in the data processing method provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sender moves some bytes at the end of the MPDU of the previous subframe to the next subframe The head of the MPDU, so that the length of the data part located after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

如图12所示,本发明另一实施例提供了另一种数据处理方法,用于发送端和接收端,该数据处理方法可以包括:As shown in FIG. 12, another embodiment of the present invention provides another data processing method for the sending end and the receiving end. The data processing method may include:

步骤1101、发送端获取多个数据消息。Step 1101, the sender acquires multiple data messages.

示例的,该数据消息可以是与该发送端相连接的通信设备生成的,该通信设备可以为计算机,该数据消息也可以是该发送端本地生成的,本发明实施例对此不做限定。802.11ax是一种无线局域网通信标准,在该802.11ax中,该发送端可以获取多个数据消息。For example, the data message may be generated by a communication device connected to the sender, where the communication device may be a computer, or the data message may be generated locally by the sender, which is not limited in this embodiment of the present invention. 802.11ax is a wireless local area network communication standard, and in the 802.11ax, the sender can obtain multiple data messages.

步骤1102、发送端根据多个数据消息生成多个MPDU。Step 1102, the sender generates multiple MPDUs according to multiple data messages.

该发送端可以根据步骤1101中获取的多个数据消息生成多个相应的MPDU,且每个MPDU中记录有与该子帧对应的数据消息相对应的数据。The sending end may generate multiple corresponding MPDUs according to the multiple data messages acquired in step 1101, and each MPDU records data corresponding to the data message corresponding to the subframe.

步骤1103、发送端根据多个MPDU生成A-MPDU。Step 1103, the sender generates an A-MPDU according to multiple MPDUs.

示例的,该A-MPDU可以包括y个子帧,y≥2,y为整数。每个子帧包括定界符和数据部分,该数据部分可以包括MPDU,每个子帧的数据部分的长度均大于等于零,每个子帧的定界符的长度均为x字节,x≥1,x为整数。例如,当前802.11n和802.11ac标准中定界符长度x为4字节,需要说明的是,在该802.11ax的通信标准或其他通信标准中,该定界符的长度也可以为其它值,本发明实施例对此不做限定。Exemplarily, the A-MPDU may include y subframes, y≥2, and y is an integer. Each subframe includes a delimiter and a data part, the data part may include MPDU, the length of the data part of each subframe is greater than or equal to zero, and the length of the delimiter of each subframe is x bytes, x≥1, x is an integer. For example, the length x of the delimiter in the current 802.11n and 802.11ac standards is 4 bytes. It should be noted that, in the 802.11ax communication standard or other communication standards, the length of the delimiter can also be other values, This embodiment of the present invention does not limit this.

该多个MPDU的个数与该A-MPDU中子帧的个数可能不相等。假设共有N1个MPDU,而A-MPDU中的子帧个数为N2,则N2大于或等于N1。其中,N1个子帧与N1个MPDU对应,剩余N2-N1个子帧为空子帧,其作用为使相邻非空子帧之间的距离满足预设要求(空子帧位于两个非空子帧之间)或将A-MPDU填充至一定长度(非空子帧位于所有非空子帧之后)。当然,A-MPDU中也可能仅包含N1非空子帧而不含空子帧,即N1=N2。空子帧仅包括定界符而不包括MPDU,即空子帧包括定界符和长度为零的数据部分,所以空子帧的长度为固定的x字节,即空子帧中定界符的长度。多个子帧是指由N1个非空子帧和可能存在的空子帧组成的有序子帧序列,空子帧的数据部分的长度等于零,非空子帧的数据部分的长度大于零。The number of the multiple MPDUs may not be equal to the number of subframes in the A-MPDU. Assuming that there are N1 MPDUs in total, and the number of subframes in the A-MPDU is N2, then N2 is greater than or equal to N1. Among them, N1 subframes correspond to N1 MPDUs, and the remaining N2-N1 subframes are empty subframes, which function to make the distance between adjacent non-empty subframes meet the preset requirements (the empty subframe is located between two non-empty subframes) Or fill the A-MPDU to a certain length (non-empty subframes are located after all non-empty subframes). Of course, the A-MPDU may only include N1 non-empty subframes without empty subframes, that is, N1=N2. The empty subframe only includes the delimiter and does not include the MPDU, that is, the empty subframe includes the delimiter and a data part with a length of zero, so the length of the empty subframe is fixed x bytes, that is, the length of the delimiter in the empty subframe. A plurality of subframes refers to an ordered subframe sequence composed of N1 non-empty subframes and possible empty subframes, the length of the data part of the empty subframe is equal to zero, and the length of the data part of the non-empty subframe is greater than zero.

步骤1104、发送端依次对多个子帧中的子帧进行第二处理,得到处理后的A-MPDU。Step 1104, the sending end sequentially performs the second processing on the subframes in the multiple subframes to obtain the processed A-MPDU.

需要说明的是,对子帧进行第二处理是指对通过子帧进行处理,使得位于当前子帧的定界符之后、下一个子帧的定界符之前的数据部分的长度为x的整数倍,即子帧的MPDU的长度为x的整数倍,其中,子帧MPDU的长度是指从子帧定界符的最后一个字节至下一个子帧定界符的第一个字节之间的数据部分的长度。空子帧仅包括定界符而不包括MPDU,即空子帧包括定界符和长度为零的数据部分,所以空子帧的长度为固定的x字节,空子帧中位于该空子帧的定界符之后、位于该空子帧下一个子帧的定界符之前的数据部分的长度为零,是x的整数倍,因此无需对空子帧进行第二处理。需要说明的是,本发明实施例中一个子帧是非空子帧,指的是该子帧不是空子帧。若第k个子帧是非空子帧,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍,则对第k个子帧进行第二处理,第二处理使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,1≤k≤y,k为整数;需要说明的是,当k=y时,该第k个子帧为最后一个子帧,由于该A-MPDU中子帧的个数为y,此时不存在第k+1个子帧,故该第二处理可以使得位于该第k个子帧的定界符之后的第k个子帧的数据部分的长度为x的整数倍。It should be noted that performing the second processing on the subframe refers to processing the passed subframe so that the length of the data part located after the delimiter of the current subframe and before the delimiter of the next subframe is an integer of x times, that is, the length of the MPDU of a subframe is an integer multiple of x, where the length of a subframe MPDU refers to the distance from the last byte of the subframe delimiter to the first byte of the next subframe delimiter The length of the data part between. The empty subframe only includes the delimiter and does not include the MPDU, that is, the empty subframe includes the delimiter and the data part with a length of zero, so the length of the empty subframe is fixed x bytes, and the delimiter located in the empty subframe in the empty subframe Thereafter, the length of the data part before the delimiter of the next subframe of the empty subframe is zero, which is an integer multiple of x, so there is no need to perform the second processing on the empty subframe. It should be noted that, in the embodiment of the present invention, a subframe is a non-empty subframe, which means that the subframe is not an empty subframe. If the kth subframe is a non-empty subframe, and the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer multiple of x, then for the kth subframe Perform the second processing, the second processing makes the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe be an integer multiple of x, 1≤k≤y, k is Integer; It should be noted that when k=y, the kth subframe is the last subframe, since the number of subframes in the A-MPDU is y, there is no k+1th subframe at this time, so The second processing may make the length of the data part of the kth subframe after the delimiter of the kth subframe be an integer multiple of x.

一方面,当第k个子帧是非空子帧,存在第k+1个子帧且是非空子帧时,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍,对第k个子帧的第二处理的过程可以包括:将位于第k个子帧的MPDU的尾部的长度为m的部分移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后,使得位于第k个子帧的定界符之后、第k+1个定界符之前的数据部分的长度为x的整数倍,其中,0≤m≤x-1,m为整数。On the one hand, when the kth subframe is a non-empty subframe, there is a k+1th subframe and it is a non-empty subframe, and the data located after the delimiter of the kth subframe and before the delimiter of the k+1th subframe The length of the part is not an integer multiple of x, and the second processing process for the kth subframe may include: moving the part with a length of m at the end of the MPDU of the kth subframe to the MPDU of the k+1th subframe Before and after the delimiter of the k+1th subframe, so that the length of the data part after the delimiter of the kth subframe and before the k+1th delimiter is an integer multiple of x, where 0≤ m≤x-1, m is an integer.

如图13所示,第k个子帧和第k+1个子帧为两个相邻的子帧,且该第k个子帧是非空子帧,该第k+1个子帧也是非空子帧,该第k个子帧位于该第k+1个子帧之前,该第k个子帧和该第k+1个子帧的定界符的长度均为x,位于该第k个子帧的定界符之后、位于该第k+1个子帧的定界符之前的数据部分的长度为M。在对该第k个子帧进行第二处理之前,可以判断位于该第k个子帧的定界符之后、位于该第k+1个子帧的定界符之前的数据部分的长度M是否为x的整数倍,若M是x的整数倍,则不对该第k个子帧进行第二处理。如图14所示,若M不是x的整数倍,则对该第k个子帧进行第二处理,具体的,该发送端可以计算出M除以x的余数m,并将位于第k个子帧的MPDU的尾部的长度为m的数据部分移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后,使得位于该第k个子帧的定界符之后、该第k+1个子帧的定界符之前的数据部分的长度为x的整数倍。此时,位于该第k个子帧的MPDU之后且长度为M-m的数据部分为该第k个子帧的MPDU1,位于该第k+1个子帧的定界符之后靠近该第k+1个子帧的定界符且长度为m的数据部分为该第k个子帧的MPDU 2,该MPDU1与该MPDU2组成该第k个子帧的MPDU。As shown in FIG. 13, the kth subframe and the k+1th subframe are two adjacent subframes, and the kth subframe is a non-empty subframe, and the k+1th subframe is also a non-empty subframe. The k subframe is located before the k+1th subframe, the length of the delimiter of the kth subframe and the k+1th subframe is x, and it is located after the delimiter of the kth subframe. The length of the data part before the delimiter of the k+1th subframe is M. Before the second processing is performed on the kth subframe, it may be determined whether the length M of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is x Integer multiple, if M is an integer multiple of x, the kth subframe is not subjected to the second processing. As shown in Figure 14, if M is not an integer multiple of x, the second processing is performed on the kth subframe. Specifically, the sender can calculate the remainder m of dividing M by x, and place The data part of the tail of the MPDU whose length is m is moved before the MPDU of the k+1th subframe and after the delimiter of the k+1th subframe, so that it is located after the delimiter of the kth subframe and after the delimiter of the k+1th subframe. The length of the data part before the delimiter of k+1 subframes is an integer multiple of x. At this time, the data part after the MPDU of the kth subframe and with a length of M-m is the MPDU1 of the kth subframe, and after the delimiter of the k+1th subframe, the data part close to the k+1th subframe The data part with a delimiter and a length of m is the MPDU 2 of the kth subframe, and the MPDU1 and the MPDU2 form the MPDU of the kth subframe.

例如,当第k个子帧是非空子帧,存在第k+1个子帧,且第k+1个子帧也是非空子帧时,该第k个子帧和该第k+1个子帧的定界符的长度均为x字节,x等于4,位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为M等于9字节,9不是4的整数倍即M不是x的整数倍。由于M不是x的整数倍,即位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不是定界符长度的整数倍,所以可以对该第k个子帧进行第二处理,使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度是定界符长度的整数倍。因为M除以x的余数等于1(9除以4的余数),所以可以将位于该第k个子帧的MPDU的尾部的长度为f的数据部分移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后,使得位于该第k个子帧的定界符之后、该第k+1个子帧的定界符之前的数据部分的长度8(为9与1的差)为4的整数倍。For example, when the kth subframe is a non-empty subframe, there is a k+1th subframe, and the k+1th subframe is also a non-empty subframe, the delimiter of the kth subframe and the k+1th subframe The length is x bytes, x is equal to 4, the length of the data part located after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is M equals to 9 bytes, and 9 is not an integer of 4 Times means that M is not an integer multiple of x. Since M is not an integer multiple of x, that is, the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer multiple of the length of the delimiter, so the The k subframes perform the second processing, so that the length of the data part located after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is an integer multiple of the length of the delimiter. Because the remainder of M divided by x is equal to 1 (the remainder of 9 divided by 4), the data part of length f at the end of the MPDU of the kth subframe can be moved to before the MPDU of the k+1th subframe, After the delimiter of the k+1 subframe, the length of the data part after the delimiter of the k+1 subframe and before the delimiter of the k+1 subframe is 8 (the difference between 9 and 1 ) is an integer multiple of 4.

注意,上述第二处理过程从A-MPDU的第一个子帧开始逐子帧执行,前一子帧的执行结果会影响后一子帧执行时需要前移的字节数。上述第二处理过程的执行结果是对于经过第二处理的多个子帧中的任一子帧,其数据部分的一部分位于其当前子帧的定界符与下一子帧的定界符之间,其数据部分的另一部分位于下一子帧的定界符之后,当然也有些例外的情况,例如,当第k个子帧为空子帧且第k个子帧是最后一个子帧,或第k个子帧为空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,由于第k个子帧后面没有非空子帧,所以该第k个子帧的数据部分中位于下一子帧的定界符之后的部分不存在,即该第k个子帧的数据部分均位于该第k个子帧的定界符之后。Note that the above-mentioned second processing procedure is executed subframe by subframe starting from the first subframe of the A-MPDU, and the execution result of the previous subframe will affect the number of bytes that need to be moved forward when the subsequent subframe is executed. The execution result of the above-mentioned second processing procedure is that for any subframe among the multiple subframes that have undergone the second processing, a part of its data part is located between the delimiter of the current subframe and the delimiter of the next subframe , the other part of its data part is located after the delimiter of the next subframe, of course there are some exceptions, for example, when the kth subframe is an empty subframe and the kth subframe is the last subframe, or the kth subframe When the frame is an empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, since there is no non-empty subframe after the kth subframe, the data part of the kth subframe is located in the next subframe The part after the delimiter does not exist, that is, the data part of the kth subframe is located after the delimiter of the kth subframe.

例如,若第k个子帧是非空子帧,存在第k+1个子帧,且第k+1个子帧也是非空子帧,在对第k个子帧进行第二处理之前,该第k个子帧和该第k+1个子帧的定界符的长度均为x字节,x等于4,假设位于第k个子帧定界符之后、第k+1个子帧的定界符之前的数据部分的长度为M等于9字节,9字节不是4字节的整数倍即M不是x的整数倍。假设位于第k+1个子帧的定界符之后、第k+2个子帧的定界符之前的数据部分的长度为8字节,8字节是4字节的整数倍,即第k+1个子帧MPDU中位于第k+1个子帧的定界符之后的数据部分的长度是x的整数倍。由于位于第k个子帧定界符之后、第k+1个子帧的定界符之前的数据部分的长度不是x的整数倍,所以需要对第k个子帧进行第二处理,M除以x的余数等于1(9除以4的余数),在对该第k个子帧进行第二处理时,可以将位于该第k个子帧的MPDU的尾部的长度为1的数据部分,移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后,使得位于该第k个子帧的定界符之后、该第k+1个子帧的定界符之前的数据部分的长度为8字节(9与1的差),8字节是4字节的整数倍。For example, if the kth subframe is a non-empty subframe, there is a k+1th subframe, and the k+1th subframe is also a non-empty subframe, before the second processing is performed on the kth subframe, the kth subframe and the The length of the delimiter of the k+1th subframe is x bytes, and x is equal to 4. Assume that the length of the data part after the kth subframe delimiter and before the k+1th subframe delimiter is M is equal to 9 bytes, and 9 bytes is not an integer multiple of 4 bytes, that is, M is not an integer multiple of x. Assume that the length of the data part after the delimiter of the k+1 subframe and before the delimiter of the k+2 subframe is 8 bytes, and 8 bytes is an integer multiple of 4 bytes, that is, the k+th subframe The length of the data part after the delimiter of the k+1th subframe in the MPDU of one subframe is an integer multiple of x. Since the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer multiple of x, the second processing needs to be performed on the kth subframe, and M is divided by x The remainder is equal to 1 (the remainder of dividing 9 by 4), and when the second processing is performed on the kth subframe, the data part with a length of 1 at the end of the MPDU of the kth subframe can be moved to the k+th subframe Before the MPDU of 1 subframe and after the delimiter of the k+1 subframe, the length of the data part after the delimiter of the k subframe and before the delimiter of the k+1 subframe is 8 bytes (the difference between 9 and 1), 8 bytes is an integer multiple of 4 bytes.

在对该第k个子帧进行第二处理之前,位于该第k+1个子帧的定界符之后、第k+2个子帧的定界符之前的数据部分的长度为8字节,8字节是4字节的整数倍;在对该第k个子帧进行第二处理之后,位于该第k+1个子帧的定界符之后、第k+2个子帧的定界符之前的数据部分的长度为8+1等于9字节,9字节不是4字节的整数倍,即在对该第k个子帧进行第二处理之后相对于在该第k个子帧进行第二处理之前,位于该第k+1个子帧的定界符之后、第k+2个子帧的定界符之前的数据部分的长度发生了变化。Before the second processing is performed on the kth subframe, the length of the data part after the delimiter of the k+1th subframe and before the delimiter of the k+2th subframe is 8 bytes, 8 bytes The section is an integer multiple of 4 bytes; after the second processing of the kth subframe, the data part after the delimiter of the k+1th subframe and before the delimiter of the k+2th subframe The length of 8+1 is equal to 9 bytes, and 9 bytes is not an integer multiple of 4 bytes, that is, after performing the second processing on the kth subframe relative to before performing the second processing on the kth subframe, the The length of the data part after the delimiter of the k+1 subframe and before the delimiter of the k+2 subframe changes.

另一方面,当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,由于第k个子帧后续没有非空子帧,故只能采用填充冗余位的方法。此时,对该第k个子帧的第二处理的过程可以包括:计算第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的部分的长度与第k个子帧的MPDU的长度之和除以x的余数,以及x与该余数的差值Q,并在位于第k个子帧的定界符之后的该第k个子帧的MPDU之后添加长度为Q的填充位,使得第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的部分的长度、填充位的长度Q与第k个子帧的MPDU的长度之和等于x的整数倍,其中,0<Q≤x-1,Q为整数。On the other hand, when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe , since there is no non-empty subframe following the kth subframe, only the method of filling redundant bits can be used. At this time, the process of the second processing of the kth subframe may include: calculating the length of the part where the MPDU of the k-1th subframe is moved before the MPDU of the kth subframe and after the delimiter of the kth subframe The remainder of dividing the sum of the length of the MPDU of the k-th subframe by x, and the difference Q between x and the remainder, and adding the length after the MPDU of the k-th subframe after the delimiter of the k-th subframe is the filling bit of Q, so that the MPDU of the k-1th subframe is moved before the MPDU of the kth subframe, the length of the part after the delimiter of the kth subframe, the length Q of the filling bit and the length of the kth subframe The sum of the lengths of the MPDUs is equal to an integer multiple of x, where 0<Q≤x-1, and Q is an integer.

当第k个子帧是非空子帧且第k个子帧为最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,对第k个子帧的第二处理的过程与上述若第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是非空子帧时,对第k个子帧的第二处理过程不同,由于第k个子帧没有后续的非空子帧向它提供前移字节,故只能采用填充冗余位的方法。在对该第k个子帧进行第二处理之前,可以检测第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的部分的长度与位于第k个子帧的定界符之后的该第k个子帧的MPDU的长度之和是否为x的整数倍,若经过检测,得知第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的部分的长度与位于第k个子帧的定界符之后的该第k个子帧的MPDU的长度之和为x的整数倍,则不对第k个子帧进行第二处理。若经过检测,得知第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的部分的长度与位于第k个子帧的定界符之后的该第k个子帧的MPDU的长度之和不是x的整数倍,则对该第k个子帧进行第二处理。When the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, for the kth The second processing process of the subframe is different from the second processing process of the kth subframe if the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is a non-empty subframe. Since the kth subframe has no subsequent non-empty subframe to provide it with a forward byte, only the method of filling redundant bits can be used. Before the second processing is performed on the kth subframe, the length and the length of the part after the delimiter of the kth subframe after the MPDU of the k-1th subframe is moved to the MPDU of the kth subframe can be detected. Whether the sum of the MPDU lengths of the kth subframe after the delimiter of the subframe is an integer multiple of x, if after detection, it is known that the MPDU of the k-1th subframe is moved to before the MPDU of the kth subframe, The sum of the length of the part after the delimiter of the kth subframe and the length of the MPDU of the kth subframe after the delimiter of the kth subframe is an integer multiple of x, then the kth subframe is not performed. Two processing. If it is detected, it is known that the MPDU of the k-1th subframe is moved before the MPDU of the kth subframe and the length of the part after the delimiter of the kth subframe is the same as the length of the part after the delimiter of the kth subframe. If the sum of the lengths of the MPDUs of the kth subframe is not an integer multiple of x, the second processing is performed on the kth subframe.

如图15所示,若第k个子帧是非空子帧且第k个子帧为最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧,第k个子帧的定界符的长度为x,该第k个子帧的MPDU的长度为M,假设在对第k-1个子帧进行了第二处理时,将位于第k-1个子帧的MPDU的尾部的长度为m的数据部分移至第k个子帧的MPDU之前、第k个子帧的定界符之后,该第k-1个子帧的MPDU的尾部的长度为m的数据部分为该第k-1个子帧的MPDU2。因此,位于该第k个子帧的定界符之后的数据部分的长度为M+m。若M+m为x的整数倍,则不对该第k个子帧进行第二处理。若M+m不是x的整数倍,则计算M+m除以x的余数,以及x与该余数的差值Q,并在该第k个子帧的MPDU位于第k个子帧的定界符之后的数据部分之后添加长度为Q的填充位,使得第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的数据部分的长度、填充位的长度与第k个子帧的MPDU的长度之和等于x的整数倍。As shown in Figure 15, if the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe frame, the length of the delimiter of the kth subframe is x, and the length of the MPDU of the kth subframe is M, assuming that when the second processing is performed on the k-1th subframe, it will be located in the k-1th subframe The data part with a length of m at the end of the MPDU of the frame is moved before the MPDU of the kth subframe and after the delimiter of the kth subframe, and the data part with a length of m at the end of the MPDU of the k-1th subframe is the MPDU2 of the k-1th subframe. Therefore, the length of the data part after the delimiter of the kth subframe is M+m. If M+m is an integer multiple of x, the kth subframe is not subjected to the second processing. If M+m is not an integer multiple of x, calculate the remainder of dividing M+m by x, and the difference Q between x and the remainder, and place the MPDU of the kth subframe after the delimiter of the kth subframe After the data part of , add a padding bit with a length of Q, so that the MPDU of the k-1th subframe is moved before the MPDU of the kth subframe, the length of the data part after the delimiter of the kth subframe, and the length of the padding bit The sum of lengths of the MPDU and the length of the kth subframe is equal to an integer multiple of x.

需要说明的是,若位于该第k-1个子帧的定界符之后、该第k个子帧的定界符之前的数据部分的长度为x的整数倍,则无需对该第k-1个子帧进行第二处理,此时,无需将第k-1个子帧的MPDU的尾部的长度为m的数据部分,移至第k个子帧的定界符之后、第k个子帧的MPDU之前,即位于该第k个子帧的定界符之后的该第k个子帧的MPDU的长度为M。It should be noted that, if the length of the data part after the delimiter of the k-1 subframe and before the delimiter of the k-th subframe is an integer multiple of x, there is no need to The frame is subjected to the second processing. At this time, there is no need to move the data part of the length m at the end of the MPDU of the k-1 subframe to after the delimiter of the k subframe and before the MPDU of the k subframe, that is The length of the MPDU of the kth subframe after the delimiter of the kth subframe is M.

例如,多个子帧中的每个子帧的定界符的长度均为x等于4字节,第k个子帧是非空子帧且第k个子帧为最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧,位于第k个子帧的定界符之后的数据部分的长度为9字节,9字节不是4字节的整数倍。位于第k个子帧的定界符之后的数据部分的长度除以x的余数等于1(9除以4的余数),x与该余数的差值Q等于3(4与1的差值),可以在该第k个子帧的MPDU之后添加长度为3字节的填充位,使得位于第k个子帧的定界符之后的数据部分的长度为12字节(9与3的和),即第k个子帧的定界符之后的数据部分的长度等于4字节的整数倍。For example, the length of the delimiter of each subframe in the plurality of subframes is x equal to 4 bytes, the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe And there is a k+1th subframe and the k+1th subframe is an empty subframe, the length of the data part after the delimiter of the kth subframe is 9 bytes, and 9 bytes is not an integer multiple of 4 bytes. The length of the data part after the delimiter of the kth subframe is divided by the remainder of x equal to 1 (the remainder of 9 divided by 4), and the difference Q between x and the remainder is equal to 3 (the difference between 4 and 1), A padding bit with a length of 3 bytes can be added after the MPDU of the kth subframe, so that the length of the data part after the delimiter of the kth subframe is 12 bytes (the sum of 9 and 3), that is, The length of the data part after the delimiter of the k subframes is equal to an integer multiple of 4 bytes.

需要说明的是,当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,在对第k个子帧之前的子帧进行第二处理后,若位于该第k个子帧的定界符之后的数据部分的长度仍为定界符的长度x的整数倍,则无需对该第k个子帧进行第二处理。当该A-MPDU中仅包含一个子帧,即y=1时,对该子帧的第二处理的过程可以参考当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,对第k个子帧的第二处理的过程,即当该子帧的定界符之后的数据部分的长度不是定界符长度的整数倍时,在该子帧的MPDU之后添加填充位,使得该子帧的定界符之后的MPDU的长度与填充位的长度之和为定界符长度的整数倍。It should be noted that when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe When, after the second processing is performed on the subframe before the kth subframe, if the length of the data part after the delimiter of the kth subframe is still an integer multiple of the length x of the delimiter, there is no need to The kth subframe performs the second processing. When the A-MPDU contains only one subframe, that is, when y=1, the process of the second processing of the subframe can refer to when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or When the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, the second processing process for the kth subframe, that is, when the subframe is after the delimiter When the length of the data part is not an integer multiple of the length of the delimiter, padding bits are added after the MPDU of the subframe, so that the sum of the length of the MPDU after the delimiter of the subframe and the length of the stuffing bits is the length of the delimiter Integer multiples of .

进一步的,在步骤1103中发送端根据多个MPDU生成A-MPDU时,该A-MPDU可以包括多个子帧,且该多个子帧中的任意一个子帧均可以包括定界符和MPDU,在步骤1104中发送端该第k个子帧进行第二处理的同时,该发送端可以根据对该第k个子帧的第二处理过程,设置该第k个子帧的定界符。示例的,当k≥2时,该第k个子帧的定界符中可以包括第一长度指示信息和第二长度指示信息。Further, when the sending end generates an A-MPDU according to multiple MPDUs in step 1103, the A-MPDU may include multiple subframes, and any subframe in the multiple subframes may include a delimiter and an MPDU. In step 1104, while the sending end is performing the second processing on the kth subframe, the sending end may set the delimiter of the kth subframe according to the second processing process on the kth subframe. Exemplarily, when k≧2, the delimiter of the kth subframe may include the first length indication information and the second length indication information.

具体的,该第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后的数据部分的长度与第k个子帧的MPDU位于第k+1个子帧的定界符之前的数据部分的长度之和,该第k个子帧的定界符中的第二长度指示信息用于指示第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的数据部分的长度。需要说明的是,当k=1时,该第k个子帧的定界符中的第一长度指示信息所指示的长度为该第k个子帧的MPDU的长度,该第k个子帧的定界符中的第二长度指示信息所指示的长度为零。若第k个子帧为空子帧,则该第k个子帧的定界符中的第一长度指示所指示的长度和该第二长度指示所指示的长度均为零。Specifically, the first length indication information in the delimiter of the kth subframe is used to indicate that the MPDU of the kth subframe is moved to before the MPDU of the k+1th subframe, and the delimiter of the k+1th subframe The sum of the length of the following data part and the length of the data part before the delimiter of the k+1 subframe of the MPDU of the kth subframe, the second length indication information in the delimiter of the kth subframe is used The length of the data part after the delimiter of the kth subframe before the MPDU indicating that the k-1th subframe is moved to the kth subframe. It should be noted that when k=1, the length indicated by the first length indication information in the delimiter of the kth subframe is the length of the MPDU of the kth subframe, and the delimiter of the kth subframe The length indicated by the second length indication information in the symbol is zero. If the kth subframe is an empty subframe, the length indicated by the first length indication and the length indicated by the second length indication in the delimiter of the kth subframe are both zero.

进一步的,当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,由于对该第k个子帧的处理方法为在该第k个子帧的MPDU后添加填充位,此时,该第k个子帧的定界符中的第一长度指示信息用于指示第k个子帧的MPDU位于第k个子帧的定界符之后的数据部分的长度,该第k个子帧的定界符中的第二长度指示信息用于指示第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的数据部分的长度。Further, when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, Since the processing method for the kth subframe is to add padding bits after the MPDU of the kth subframe, at this time, the first length indication information in the delimiter of the kth subframe is used to indicate the kth subframe The length of the data part of the MPDU located after the delimiter of the kth subframe, the second length indication information in the delimiter of the kth subframe is used to indicate that the MPDU of the k-1th subframe is moved to the kth subframe The length of the data part before the MPDU of the frame and after the delimiter of the kth subframe.

可选的,每个子帧的定界符中还可以包括用于指示每个子帧位置的位置标识,当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,多个子帧中除第k个子帧之外的其他子帧定界符中的位置标识与第k个子帧定界符中的位置标识不同。由于当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,发送端对第k个子帧的处理规则和其他子帧不同,相应地,接收端的解析规则也不同,因此需要特别标识,以便接收端针对不同位置的子帧采用不同解析规则。例如,802.11ac标准中,每个子帧的定界符中存在帧结束EoF(英文:End of Frame)位,即位置标识,在本发明实施例中,若第k个子帧是非空子帧且第k个子帧为最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,可以将第k个子帧的EoF设置为1,以便区别于多个子帧中除第k个子帧之外的其它子帧。Optionally, the delimiter of each subframe may also include a position identifier for indicating the position of each subframe, when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, the location identifiers in the delimiters of other subframes except the kth subframe in multiple subframes are related to the kth subframe The location identifiers in the delimiters are different. Since when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, the sending end The processing rules for the kth subframe are different from other subframes, and correspondingly, the parsing rules of the receiving end are also different, so special identification is required so that the receiving end adopts different parsing rules for subframes at different positions. For example, in the 802.11ac standard, there is an EoF (English: End of Frame) bit in the delimiter of each subframe, that is, a position identifier. In the embodiment of the present invention, if the kth subframe is a non-empty subframe and the kth subframe When the subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, the EoF of the kth subframe can be set to 1 to distinguish other subframes except the kth subframe in the plurality of subframes.

示例的,当第k个子帧是非空子帧且第k个子帧为最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,该位置标识可以为1,当该第k个子帧为多个子帧中除第k个子帧之外的其他子帧时,该位置标识可以为0。需要说明的是,在当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,多个子帧中除第k个子帧之外的其他子帧定界符中的位置标识与第k个子帧定界符中的位置标识不同的前提下,该位置标识还可以为其他值,本发明实施例对此不做限定。可选的,多个子帧中的每个子帧的定界符中还可以包括用于指示每个子帧中是否存在填充位的填充标识,该填充标识和位置标识可以是同一标识。For example, when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, The location identifier may be 1, and when the kth subframe is a subframe other than the kth subframe among the multiple subframes, the location identifier may be 0. It should be noted that when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe frame, on the premise that the location identifiers in the subframe delimiters other than the kth subframe in multiple subframes are different from the location identifiers in the kth subframe delimiter, the location identifier can also be other values , which is not limited in this embodiment of the present invention. Optionally, the delimiter of each subframe in the multiple subframes may further include a padding identifier used to indicate whether there is a padding bit in each subframe, and the padding identifier and the location identifier may be the same identifier.

步骤1105、发送端向接收端发送处理后的A-MPDU。Step 1105, the sending end sends the processed A-MPDU to the receiving end.

在步骤1104中发送端依次对多个子帧中的子帧进行第二处理后,得到处理后的AMPDU。然后,发送端可以将该处理后的A-MPDU发送至接收端,以便于接收端在根据该处理后的A-MPDU解析得到多个MPDU。需要说明的是,该处理后的A-MPDU可以包括y个子帧,每个子帧包括定界符和数据部分,每个子帧的数据部分的长度均大于等于零,每个子帧的定界符的长度均为x,x≥1,x为整数,定界符中包括第一长度指示信息和第二长度指示信息,数据部分包括媒体接入控制协议数据单元MPDU,每两个子帧的定界符之间的数据部分的长度均为x的整数倍,y≥2,y为整数。In step 1104, after the sending end sequentially performs the second processing on the subframes in the multiple subframes, the processed AMPDU is obtained. Then, the sending end can send the processed A-MPDU to the receiving end, so that the receiving end can obtain multiple MPDUs by parsing the processed A-MPDU. It should be noted that the processed A-MPDU may include y subframes, each subframe includes a delimiter and a data part, the length of the data part of each subframe is greater than or equal to zero, and the length of the delimiter of each subframe Both are x, x≥1, x is an integer, the delimiter includes the first length indication information and the second length indication information, the data part includes the media access control protocol data unit MPDU, and the delimiter of every two subframes The length of the data part between is an integer multiple of x, y≥2, and y is an integer.

示例的,第一长度指示信息可以用于指示第k个子帧的MPDU移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后的部分的长度与第k个子帧的MPDU位于第k+1个子帧的定界符之前的部分的长度之和,第二长度指示信息用于指示第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的部分的长度。需要说明的是,当第k个子帧中有填充位时,第k个子帧的MPDU移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后的数据部分的长度为0,此时第k个子帧可能为最后一个子帧或第k个子帧的下一位子帧为空子帧。For example, the first length indication information may be used to indicate that the MPDU of the kth subframe is moved before the MPDU of the k+1th subframe and the length of the part after the delimiter of the k+1th subframe is the same as the length of the part of the kth subframe The sum of the lengths of the parts of the MPDU located before the delimiter of the k+1th subframe, the second length indication information is used to indicate that the MPDU of the k-1th subframe is moved to before the MPDU of the kth subframe, and the kth subframe The length of the part after the delimiter of the frame. It should be noted that when there is a padding bit in the kth subframe, the MPDU of the kth subframe is moved to the length of the data part before the MPDU of the k+1th subframe and after the delimiter of the k+1th subframe is 0, at this time the kth subframe may be the last subframe or the subframe next to the kth subframe is an empty subframe.

步骤1106、接收端依次对处理后的A-MPDU中的子帧进行解析处理得到多个MPDU。Step 1106, the receiving end sequentially analyzes and processes the subframes in the processed A-MPDU to obtain multiple MPDUs.

如图16所示,第k个子帧为所述y个子帧中的任意一个,1≤k≤y,k为整数,步骤1106中对该第k个子帧进行解析处理的过程可以包括:As shown in Figure 16, the kth subframe is any one of the y subframes, 1≤k≤y, k is an integer, and the process of parsing the kth subframe in step 1106 may include:

步骤11061、接收端通过检测第k个子帧定界符中的填充标识,判断第k个子帧中是否存在填充位。若是,执行步骤11063;若否,执行步骤11062。Step 11061, the receiving end judges whether there is a padding bit in the kth subframe by detecting the padding flag in the delimiter of the kth subframe. If yes, go to step 11063; if not, go to step 11062.

由于在步骤1104中,发送端根据对该第k个子帧的第二处理过程,设置该第k个子帧的定界符,该第k个子帧的定界符中可以包括用于指示第k个子帧中是否存在填充位的填充标识。因此,接收端能够通过检测该第k个子帧定界符中的填充标识来判断该第k个子帧中是否存在填充位。Since in step 1104, the sending end sets the delimiter of the kth subframe according to the second processing procedure of the kth subframe, the delimiter of the kth subframe may include Whether there is a stuffing flag of stuffing bits in the frame. Therefore, the receiving end can determine whether there is a stuffing bit in the kth subframe by detecting the stuffing flag in the delimiter of the kth subframe.

步骤11062、接收端根据第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,对第k个子帧进行第一解析处理。Step 11062, the receiving end performs the first parsing process on the kth subframe according to the first length indication information and the second length indication information in the delimiter of the kth subframe.

具体的,接收端可以从第k个子帧的数据部分中获取第k个子帧的MPDU的第一部分,从第k+1个子帧的数据部分中获取第k个子帧的MPDU的第二部分,将第一部分和第二部分合并,组成第k个子帧的MPDU,此时1≤k≤y-1。Specifically, the receiving end may obtain the first part of the MPDU of the kth subframe from the data part of the kth subframe, obtain the second part of the MPDU of the kth subframe from the data part of the k+1th subframe, and convert The first part and the second part are combined to form the MPDU of the kth subframe, and at this time, 1≤k≤y-1.

首先接收端可以计算第k个子帧的定界符中的第一长度指示信息所指示的长度与第二长度指示信息所指示的长度之和,并将第k个子帧的定界符中的第一长度指示信息所指示的长度与第二长度指示信息所指示的长度之和与m的差值作为第k+1个子帧的定界符与第k个子帧的定界符之间的数据部分的长度,其中,m为第k+1个子帧的定界符中的第一长度指示信息所指示的长度与第二长度指示信息所指示的长度之和除以x的余数。First, the receiving end may calculate the sum of the length indicated by the first length indication information in the delimiter of the kth subframe and the length indicated by the second length indication information, and calculate the sum of the length indicated by the length indicated by the second length indication information in the delimiter of the kth subframe The difference between the length indicated by the first length indication information and the length indicated by the second length indication information and m is used as the data part between the delimiter of the k+1th subframe and the delimiter of the kth subframe where m is the remainder of dividing the sum of the length indicated by the first length indication information in the delimiter of the k+1th subframe and the length indicated by the second length indication information by x.

其次,接收端可以根据该第k个子帧的定界符以及第k+1个子帧的定界符与第k个子帧的定界符之间的数据部分的长度,确定第k+1个子帧的定界符的位置。需要说明的是,该第k+1个子帧的定界符与第k个子帧的定界符之间的数据部分的长度为位于该第k个子帧的定界符中的最后一个字节至该第k+1个子帧的定界符中的第一个字节之间的数据部分的长度,该第k个子帧的定界符的位置为该第k个子帧的定界符中第一个字节的位置。具体的,该接收端可以根据该第k个子帧的定界符的位置、该第k个子帧定界符的长度x以及该第k+1个子帧的定界符与第k个子帧的定界符之间的数据部分的长度,确定与该第k个子帧的定界符中的第一个字节的距离为该第k+1个子帧的定界符与第k个子帧的定界符之间的数据部分的长度以及x之和的位置为该第k+1个子帧的定界符的位置,即该第k+1个子帧的定界符中的第一个字节的位置。Secondly, the receiving end can determine the k+1th subframe according to the delimiter of the kth subframe and the length of the data part between the delimiter of the k+1th subframe and the delimiter of the kth subframe The position of the delimiter. It should be noted that the length of the data part between the delimiter of the k+1th subframe and the delimiter of the kth subframe is from the last byte in the delimiter of the kth subframe to The length of the data part between the first byte in the delimiter of the k+1th subframe, the position of the delimiter of the kth subframe is the first byte in the delimiter of the kth subframe byte position. Specifically, the receiving end may base on the position of the delimiter of the kth subframe, the length x of the delimiter of the kth subframe, and the delimiter of the k+1th subframe and the delimiter of the kth subframe The length of the data part between the delimiters, determine the distance from the first byte in the delimiter of the kth subframe as the delimiter of the k+1th subframe and the delimitation of the kth subframe The length of the data part between symbols and the position of the sum of x is the position of the delimiter of the k+1th subframe, that is, the position of the first byte in the delimiter of the k+1th subframe .

在确定了该第k+1个子帧的定界符的位置后,根据该第k+1个子帧的定界符的长度,确定该第k+1个子帧的数据部分的起始位置,具体的,该第k+1个子帧的数据部分的起始位置为与该第k+1个子帧的定界符的第一个字节之间的长度为x-1的位置。接收端可以从该第k+1个子帧的数据部分中,获取靠近该第k+1个子帧的定界符,且长度为m的数据部分(即第k+1个子帧的数据部分中靠前的m个字节),作为该第k个子帧的MPDU的第二部分;并根据该第k个子帧的定界符中的第一长度指示信息与m,从第k个子帧的数据部分中,获取靠近第k+1个子帧的定界符且长度为w的数据部分(即第k个子帧的数据部分中靠后的w个字节),作为第k个子帧的MPDU的第一部分,w为第一长度指示信息所指示的长度与m的差值。After determining the position of the delimiter of the k+1th subframe, determine the starting position of the data part of the k+1th subframe according to the length of the delimiter of the k+1th subframe, specifically Yes, the start position of the data part of the k+1th subframe is a position with a length of x-1 between the first byte of the delimiter of the k+1th subframe. The receiving end can obtain the delimiter close to the k+1 subframe from the data part of the k+1 subframe, and the data part with a length of m (that is, the data part of the k+1 subframe near m bytes before), as the second part of the MPDU of the kth subframe; and according to the first length indication information and m in the delimiter of the kth subframe, from the data part of the kth subframe , get the data part close to the delimiter of the k+1th subframe and the length is w (that is, the last w bytes in the data part of the kth subframe), as the first part of the MPDU of the kth subframe , w is the difference between the length indicated by the first length indication information and m.

需要说明的是,当k=1时,由于处理前的第一个子帧之前没有子帧,即第一个子帧的数据部分中不包括前一个子帧的MPDU尾部移至第一个子帧的数据部分,因此,该第k个子帧的定界符中的第一长度指示信息所指示的长度为该第k个子帧的MPDU的长度,该第k个子帧的定界符中的第二长度指示信息所指示的长度为零。It should be noted that when k=1, since there is no subframe before the first subframe before processing, that is, the data part of the first subframe does not include the MPDU tail of the previous subframe moved to the first subframe The data part of the frame, therefore, the length indicated by the first length indication information in the delimiter of the kth subframe is the length of the MPDU of the kth subframe, and the length of the MPDU in the delimiter of the kth subframe The length indicated by the two-length indication information is zero.

在获取该第k个子帧MPDU的第一部分和第二部分之后,可以将第k个子帧MPDU的第一部分和第二部分合并,组成第k个子帧的MPDU。After the first part and the second part of the MPDU of the kth subframe are acquired, the first part and the second part of the MPDU of the kth subframe may be combined to form the MPDU of the kth subframe.

步骤11063、接收端根据第k个子帧的定界符中的第一长度指示信息与第二长度指示信息,对第k个子帧进行第二解析处理。Step 11063: The receiving end performs a second parsing process on the kth subframe according to the first length indication information and the second length indication information in the delimiter of the kth subframe.

具体的,接收端可以在第k个子帧的数据部分中,获取第k个子帧的MPDU。Specifically, the receiving end may acquire the MPDU of the kth subframe in the data part of the kth subframe.

需要说明的是,当第k个子帧中有填充位时,第k个子帧的MPDU移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后的数据部分的长度为0,此时第k个子帧可能为最后一个子帧或其后为空子帧。若该第k个子帧中存在填充位,此时,该第k个子帧的定界符中的第一长度指示信息所指示的长度为第k个子帧的MPDU的长度,该第k个子帧的定界符中的第二长度指示信息所指示的长度为第k-1个子帧移至第k个子帧的定界符之后、第k个子帧的MPDU之前的数据部分的长度,接收端可以根据第k个子帧的定界符中的第一长度指示信息与第二长度指示信息,在第k个子帧的数据部分中,获取与第k个子帧的定界符的距离为e,且长度为f的数据部分,作为第k个子帧的MPDU,e为第k个子帧的定界符中的第二长度指示信息所指示的长度,f为第k个子帧的定界符中的第一长度指示信息所指示的长度。It should be noted that when there is a padding bit in the kth subframe, the MPDU of the kth subframe is moved to the length of the data part before the MPDU of the k+1th subframe and after the delimiter of the k+1th subframe is 0, at this time the kth subframe may be the last subframe or thereafter be empty subframes. If there is a padding bit in the kth subframe, at this time, the length indicated by the first length indication information in the delimiter of the kth subframe is the length of the MPDU of the kth subframe, and the length of the MPDU of the kth subframe The length indicated by the second length indication information in the delimiter is the length of the data part before the MPDU of the kth subframe after the k-1th subframe is moved to the kth subframe's delimiter, and the receiving end can according to The first length indication information and the second length indication information in the delimiter of the kth subframe, in the data part of the kth subframe, the distance from the delimiter of the kth subframe is e, and the length is The data part of f, as the MPDU of the kth subframe, e is the length indicated by the second length indication information in the delimiter of the kth subframe, and f is the first length in the delimiter of the kth subframe Indicates the length indicated by the message.

例如,如图15所示,该处理后的第k个子帧中存在填充位,在对第k-1个子帧进行第二处理时,将第k-1个子帧的数据部分中,长度为m的数据部分移至第k个子帧的定界符之后、第k个子帧的MPDU之前,该第k个子帧的MPDU的长度为M,此时,该第k个子帧的定界符中的第一长度指示信息所指示的长度为该第k个子帧的MPDU的长度M,该第k个子帧的第二长度指示信息所指示的长度为第k-1个子帧移至第k个子帧的定界符之后、第k个子帧的MPDU之前的数据部分的长度m。所以,接收端可以根据第k个子帧的定界符中的第一长度指示信息与第二长度指示信息,在第k个子帧的数据部分中,获取与第k个子帧的定界符的距离为m,且长度为M的数据部分,作为第k个子帧的MPDU。For example, as shown in FIG. 15 , there are stuffing bits in the kth subframe after the processing, and when the second processing is performed on the k-1th subframe, in the data part of the k-1th subframe, the length is m The data part of the kth subframe is moved after the delimiter of the kth subframe and before the MPDU of the kth subframe. The length of the MPDU of the kth subframe is M. At this time, the delimiter of the kth subframe The length indicated by the length indication information is the length M of the MPDU of the kth subframe, and the length indicated by the second length indication information of the kth subframe is the fixed time when the k-1th subframe is moved to the kth subframe. The length m of the data part after the delimiter and before the MPDU of the kth subframe. Therefore, the receiving end can acquire the distance from the delimiter of the kth subframe in the data part of the kth subframe according to the first length indication information and the second length indication information in the delimiter of the kth subframe is m, and the data part whose length is M is used as the MPDU of the kth subframe.

步骤1107、接收端根据多个MPDU得到多个数据消息。Step 1107, the receiving end obtains multiple data messages according to multiple MPDUs.

具体的,由于步骤1102中发送端根据多个数据消息生成多个相应的MPDU,且每个MPDU中记录有与该子帧对应的数据消息相对应的数据,所以步骤1107中该接收端在获取该多个MPDU之后,可以根据该多个MPDU得到多个数据消息。Specifically, since in step 1102, the sending end generates multiple corresponding MPDUs according to multiple data messages, and data corresponding to the data message corresponding to the subframe is recorded in each MPDU, so in step 1107, the receiving end acquires After the multiple MPDUs, multiple data messages can be obtained according to the multiple MPDUs.

需要说明的是,在发送端依次对多个子帧中的子帧进行第二处理之前,若多个子帧中两个相邻子帧之间的距离小于预设距离,则需要在两个子帧之间插入一个或多个空子帧,使得两相邻子帧之间的距离达到预设距离要求,空子帧仅包括定界符而不包括MPDU,即空子帧包括定界符和长度为零的数据部分,所以空子帧的长度为固定的x字节。两个相邻子帧之间的距离,定义为两个子帧的MPDU起始位置之间的字节距离,即从前一个子帧的定界符中的最后一个字节的位置到下一个子帧的定界符中的最后一个字节的位置之间的距离。包含MPDU的子帧称为数据子帧,两个数据子帧之间插入一个或多个空子帧之后,将两个数据子帧中的前一个数据子帧称为前位子帧,表示该子帧为数据子帧且该子帧之后的子帧为空子帧;将两个数据子帧中的后一个数据子帧称为后位子帧,表示该子帧为数据子帧且该子帧之前的子帧为空子帧,数据子帧即非空子帧。在发送端依次对多个子帧中的子帧进行第二处理时,发送端还可以检测当前处理的第k个子帧是否为前位子帧。It should be noted that before the sending end sequentially performs the second processing on the subframes in the multiple subframes, if the distance between two adjacent subframes in the multiple subframes is less than the preset distance, it is necessary to One or more empty subframes are inserted between them, so that the distance between two adjacent subframes reaches the preset distance requirement. The empty subframes only include delimiters and do not include MPDUs, that is, empty subframes include delimiters and zero-length data. part, so the length of the empty subframe is fixed x bytes. The distance between two adjacent subframes, defined as the byte distance between the MPDU start positions of two subframes, that is, from the position of the last byte in the delimiter of the previous subframe to the next subframe The distance between the position of the last byte in the delimiter. A subframe containing an MPDU is called a data subframe. After inserting one or more empty subframes between two data subframes, the previous data subframe of the two data subframes is called a previous subframe, indicating that the subframe It is a data subframe and the subframe after this subframe is an empty subframe; the latter data subframe in the two data subframes is called a subsequent subframe, which means that this subframe is a data subframe and the subframe before this subframe A frame is an empty subframe, and a data subframe is a non-empty subframe. When the sending end sequentially performs the second processing on the subframes in the multiple subframes, the sending end may also detect whether the currently processed kth subframe is a previous subframe.

进一步的,在为该多个子帧中的第k个子帧进行第二处理时,若该第k个子帧为前位子帧,即第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧,对该前位子帧的第二处理的过程可以参考步骤504中当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,对第k个子帧的第二处理过程。具体的,由于前位子帧下一位子帧为空子帧,没有后续子帧向前位子帧提供前移字节,故只能采用填充冗余位的方法,在对该前位子帧进行第二处理之前,可以检测位于该前位子帧的定界符之后的数据部分的长度是否为x的整数倍,若位于该前位子帧的定界符之后的数据部分的长度为x的整数倍,则不需要对该前位子帧进行第二处理。若位于该前位子帧的定界符之后的数据部分的长度不是x的整数倍,则在该前位子帧的定界符之后的MPDU之后添加填充位,使得填充位的长度与位于该前位子帧的定界符之后的MPDU的长度之和等于x的整数倍。由于该第前位子帧的下一个子帧为空子帧,空子帧仅包括定界符而不包括MPDU,即空子帧包括定界符和长度为零的数据部分,所以空子帧的长度为固定的x字节,位于空子帧的定界符之后、位于空子帧下一位子帧的定界符之前的数据部分为零,是x的整数倍,所以无需对该前位子帧的下一个子帧进行第二处理,可以按照该多个子帧的顺序,继续对后面的子帧进行第二处理,当处理至后位子帧时,可以参考当第k个子帧是非空子帧且存在第k+1个子帧且是非空子帧时,对第k个子帧的第二处理的过程,即后位子帧的处理无需特殊对待。Further, when performing the second processing for the kth subframe among the plurality of subframes, if the kth subframe is a previous subframe, that is, the kth subframe is a non-empty subframe and there is a k+1th subframe and the kth subframe is The k+1 subframe is an empty subframe, and the process of the second processing of the previous subframe can refer to when the kth subframe is a non-empty subframe and the kth subframe is the last subframe in step 504, or the kth subframe is a non-empty subframe. When there is an empty subframe and the k+1th subframe exists and the k+1th subframe is an empty subframe, the second processing procedure for the kth subframe. Specifically, since the next subframe of the previous subframe is an empty subframe, there is no subsequent subframe to provide the forward byte to the previous subframe, so the method of filling redundant bits can only be used to perform the second processing on the previous subframe Before, it can be detected whether the length of the data part after the delimiter of the previous subframe is an integer multiple of x, if the length of the data part after the delimiter of the previous subframe is an integer multiple of x, then no The second processing needs to be performed on the preceding subframe. If the length of the data part after the delimiter of the previous subframe is not an integer multiple of x, a padding bit is added after the MPDU after the delimiter of the previous subframe, so that the length of the stuffing bit is the same as that of the previous subframe. The sum of the lengths of MPDUs after the frame delimiter is equal to an integer multiple of x. Since the next subframe of the first subframe is an empty subframe, the empty subframe only includes the delimiter and does not include the MPDU, that is, the empty subframe includes the delimiter and the data part with a length of zero, so the length of the empty subframe is fixed x bytes, the data part after the delimiter of the empty subframe and before the delimiter of the next subframe of the empty subframe is zero, which is an integer multiple of x, so there is no need to perform the next subframe of the previous subframe The second processing can continue to perform the second processing on the following subframes according to the order of the multiple subframes. When processing to the next subframe, you can refer to when the kth subframe is a non-empty subframe and there is a k+1th subframe And when it is a non-empty subframe, the process of the second processing of the kth subframe, that is, the processing of the subsequent subframe does not need special treatment.

如图9所示,802.11ac中每个子帧的定界符的字节数为4,一个字节为8个比特位,故定界符中共有32个比特位,其中包括的信息有位置标识、MPDU长度指示、循环冗余码(英文:Cyclic Redundancy Code;简称:CRC)和MPDU特征位,其中,位置标识占用定界符中的1位,MPDU长度指示占用14位,CRC占用8位,该MPDU特征位占用8位,这样,定界符中还剩余有1位预留位,该预留位为空。该位置标识、预留位、MPDU长度指示、CRC和MPDU特征位按照顺序依次排列。As shown in Figure 9, the number of bytes of the delimiter of each subframe in 802.11ac is 4, and one byte is 8 bits. Therefore, there are 32 bits in the delimiter, and the information included in it includes position identification , MPDU length indication, cyclic redundancy code (English: Cyclic Redundancy Code; abbreviation: CRC) and MPDU feature bits, wherein, the position identifier occupies 1 bit in the delimiter, the MPDU length indication occupies 14 bits, and the CRC occupies 8 bits. The MPDU flag occupies 8 bits, so there is one reserved bit left in the delimiter, and the reserved bit is empty. The location identifier, reserved bits, MPDU length indication, CRC and MPDU flag bits are arranged in sequence.

假设通过对802.11ac的定界符格式的改造,来实现本实施例中的定界符,即定界符中包含第一长度指示信息和第二长度指示信息。当该x等于4时,子帧的定界符中的第一长度指示信息和第二长度指示信息在四种指示方式中,在设置该子帧的定界符时,均需要在该子帧对应的原子帧的定界符的基础上,提取两位空闲位,该子帧的定界符中的第一长度指示信息和第二长度指示信息可以分别占用该用两位空闲位和原有的MPDU长度指示所占用的14位,或第一长度指示信息和第二长度指示信息可以分别占用原有的MPDU长度指示所占用的14位和该用两位空闲位。优选的,为该第一长度指示信息分配的比特位的个数应该大于为该第二长度指示信息分配的比特位的个数,可以为该第一长度指示信息分配该MPDU长度指示所占用的14位,为第二长度指示信息分配该两位空闲位。需要说明的是,在为该第一长度指示信息和该第二长度指示信息分配该MPDU长度指示所占用的14位和该两位空闲位时,还可以采用其他方法,本发明实施例对此不做限定,在802.11ac的定界符中仅剩余一位空闲位,因此还需获得另外一位空闲位,组成两位空闲位。示例的,可通过下面几种方法获得2位空闲位,用于承载第二长度指示信息。Assume that the delimiter in this embodiment is implemented by modifying the format of the 802.11ac delimiter, that is, the delimiter includes the first length indication information and the second length indication information. When x is equal to 4, the first length indication information and the second length indication information in the delimiter of the subframe need to be in the subframe when setting the delimiter of the subframe in the four indication modes. On the basis of the delimiter of the corresponding atomic frame, two idle bits are extracted, and the first length indication information and the second length indication information in the delimiter of the subframe can respectively occupy the two idle bits and the original The 14 bits occupied by the MPDU length indication, or the first length indication information and the second length indication information may respectively occupy the 14 bits occupied by the original MPDU length indication and the two idle bits. Preferably, the number of bits allocated for the first length indication information should be greater than the number of bits allocated for the second length indication information, and the MPDU length indication occupied by the first length indication information may be allocated 14 bits, the two idle bits are allocated for the second length indication information. It should be noted that when allocating the 14 bits occupied by the MPDU length indication and the two idle bits for the first length indication information and the second length indication information, other methods can also be used. Without limitation, there is only one free bit left in the 802.11ac delimiter, so another free bit needs to be obtained to form two free bits. For example, the following methods can be used to obtain 2 idle bits for carrying the second length indication information.

示例的,每个子帧的定界符中还包括用于指示每个子帧位置的位置标识,当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,多个子帧中除第k个子帧之外的其他子帧定界符中的位置标识与第k个子帧定界符中的位置标识不同。Exemplarily, the delimiter of each subframe also includes a position identifier for indicating the position of each subframe, when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe frame and there is a k+1th subframe and the k+1th subframe is an empty subframe, the position identifiers in the delimiters of other subframes except the kth subframe in multiple subframes are delimited by the kth subframe The location identifiers in the symbols are different.

在802.11ac中,子帧的定界符中仅剩余一位空闲位,而第二长度指示信息需要两位来承载。因此,可通过下面几种方法获得2位空闲位,用于承载第二长度指示信息。In 802.11ac, only one idle bit is left in the delimiter of the subframe, and the second length indication information needs two bits to bear. Therefore, 2 idle bits can be obtained through the following methods to carry the second length indication information.

第一方面,两位空闲位可以为子帧对应的原子帧的定界符中的一位预留位和任意一位第二特征指示所占用的8位,该子帧的位置标识可以占用该子帧对应的原子帧的定界符中的位置标识所占用的1位。In the first aspect, the two free bits can be a reserved bit in the delimiter of the atomic frame corresponding to the subframe and any 8 bits occupied by the second feature indicator, and the position identifier of the subframe can occupy the 1 bit occupied by the position identifier in the delimiter of the atomic frame corresponding to the subframe.

示例的,如图9-1所示,该两位空闲位可以为该子帧对应的原子帧的定界符中的一位预留位以及该子帧对应的原子帧的定界符中的第二特征指示所占用的8位中的任意1位,该子帧的位置标识可以占用该子帧对应的原子帧的定界符中的位置标识所占用的1位。For example, as shown in Figure 9-1, the two free bits can be a reserved bit in the delimiter of the atomic frame corresponding to the subframe and a reserved bit in the delimiter of the atomic frame corresponding to the subframe. Any 1 bit among the 8 bits occupied by the second feature indication, the position identifier of the subframe may occupy 1 bit occupied by the position identifier in the delimiter of the atomic frame corresponding to the subframe.

如图9-2所示,该两位空闲位可以为该子帧对应的原子帧的定界符中的位置标识所占用的1位以及该子帧对应的原子帧的定界符中的一位预留位,该子帧定界符中的位置标识可以占用该子帧对应的原子帧的定界符中的第二特征指示所占用的8位中的任意1位。As shown in Figure 9-2, the two free bits can be 1 bit occupied by the position identifier in the delimiter of the atomic frame corresponding to the subframe and one of the delimiters of the atomic frame corresponding to the subframe Bits are reserved, and the position identifier in the subframe delimiter may occupy any one of the 8 bits occupied by the second feature indication in the delimiter of the atomic frame corresponding to the subframe.

如图9-3所示,该两位空闲位可以为该子帧对应的原子帧的定界符中的一位预留位以及该子帧对应的原子帧的定界符中的第二特征指示所占用的8位中的任意1位。并将该MPDU长度指示占用的14位与该第一特征指示占用的8位向后移动一位,该子帧的位置标识可以占用该子帧对应的原子帧的定界符中的位置标识所占用的1位。As shown in Figure 9-3, the two free bits can be reserved for one bit in the delimiter of the atomic frame corresponding to the subframe and the second feature in the delimiter of the atomic frame corresponding to the subframe Indicates any 1 of the 8 bits occupied. And move the 14 bits occupied by the MPDU length indication and the 8 bits occupied by the first feature indication backward by one bit, and the position identifier of the subframe can occupy the position identifier in the delimiter of the atomic frame corresponding to the subframe. 1 bit occupied.

第二方面,如图9-4所示,两位空闲位可以为子帧对应的原子帧的定界符中的一位预留位和位置标识所占用的一位,此时,该子帧对应的原子帧的第二特征指示用于指示该子帧的位置。例如,该第二特征指示可以为:01001011、10110100等,其中,设置当该子帧的定界符中的第二特征指示为01001011时,代表该子帧是非空子帧且该子帧为最后一个子帧,或该子帧是非空子帧且该子帧存在下一个子帧且下一个子帧是空子帧。In the second aspect, as shown in Figure 9-4, the two free bits can be a reserved bit and a bit occupied by the position identifier in the delimiter of the atomic frame corresponding to the subframe. At this time, the subframe The second characteristic indication of the corresponding atomic frame is used to indicate the position of the subframe. For example, the second characteristic indication may be: 01001011, 10110100, etc., wherein, when the second characteristic indication in the delimiter of the subframe is set to 01001011, it means that the subframe is a non-empty subframe and the subframe is the last subframe, or the subframe is a non-empty subframe and there is a next subframe in the subframe and the next subframe is an empty subframe.

第三方面,两位空闲位可以为子帧对应的原子帧的定界符中第一特征指示所占用的8位中的任意2位或MPDU长度指示所占用的14位中的任意2位,该子帧的位置标识可以占用该子帧对应的原子帧的定界符中的位置标识所占用的1位。如图9-5所示,在802.11ah机制中,子帧的定界符中的第一特征指示仅需占用四位比特位即可,类似地,这里也可将CRC缩短,例如采用6位CRC。这样,就可以用CRC省出的2比特来承载第二长度指示信息。In the third aspect, the two free bits may be any 2 bits in the 8 bits occupied by the first characteristic indication in the delimiter of the atomic frame corresponding to the subframe or any 2 bits in the 14 bits occupied by the MPDU length indication, The position identifier of the subframe may occupy 1 bit occupied by the position identifier in the delimiter of the atomic frame corresponding to the subframe. As shown in Figure 9-5, in the 802.11ah mechanism, the first feature indication in the subframe delimiter only needs to occupy four bits. Similarly, the CRC can also be shortened here, for example, using 6 bits CRC. In this way, the 2 bits saved by the CRC can be used to carry the second length indication information.

需要说明的是,该第k个子帧的定界符中还可以包括填充标识,填充标识可以复用802.11ac定界符中的EoF来指示,即当EoF为1时表示当前子帧采用填充方法;否则,本子帧的MPDU的尾部数据部分自己移到了下一个子帧中。在图9-5所示的该第k个子帧的定界符的结构中,该填充标识可以占用该第k个子帧对应的原子帧的定界符中的一位预留位。示例的,当第k个子帧是非空子帧且第k个子帧为最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,该第k个子帧的填充标识可以设置为“填充”,用于指示该第k个子帧内存在填充位。需要说明的是,该该第k个子帧的填充标识的形式也可以为其他形式,本发明实施例对此不做限定。It should be noted that the delimiter of the kth subframe may also include a padding flag, which may be indicated by multiplexing the EoF in the 802.11ac delimiter, that is, when the EoF is 1, it means that the current subframe adopts the padding method ; Otherwise, the tail data part of the MPDU of this subframe is moved to the next subframe by itself. In the structure of the delimiter of the kth subframe shown in FIG. 9-5 , the padding identifier may occupy a reserved bit in the delimiter of the atomic frame corresponding to the kth subframe. For example, when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, The filling flag of the kth subframe may be set to "filling", which is used to indicate that there are filling bits in the kth subframe. It should be noted that, the form of the filling identifier of the kth subframe may also be in other forms, which is not limited in this embodiment of the present invention.

本发明实施例中,在步骤1104中发送端依次对多个子帧中的子帧进行第二处理的过程中,若第k个子帧为空子帧,由于空子帧中位于空子帧的定界符之后和位于空子帧的下一位的子帧的定界符之前的数据部分的长度为零,为定界符长度的整数倍,所以无需对空子帧进行第二处理。在对该多个子帧中的每个子帧的定界符进行设置时,每个子帧的定界符中均设置有第二长度指示信息和第二长度指示信息,空子帧的定界符中的第二长度指示信息和第二长度指示信息所指示的长度均为零。在步骤1106中接收端依次对该处理后的A-MPDU中的子帧进行解析时,仅需获取每个子帧的定界符中的第二长度指示信息和第二长度指示信息即可对该子帧进行解析。In the embodiment of the present invention, in step 1104, during the process of performing the second processing on the subframes in the multiple subframes sequentially by the sending end, if the kth subframe is an empty subframe, since the empty subframe is located after the delimiter of the empty subframe The length of the data part before the delimiter of the subframe next to the empty subframe is zero, which is an integer multiple of the length of the delimiter, so there is no need to perform the second processing on the empty subframe. When setting the delimiter of each subframe in the plurality of subframes, the second length indication information and the second length indication information are set in the delimiter of each subframe, and the delimiter of the empty subframe Both the second length indication information and the length indicated by the second length indication information are zero. When the receiving end in step 1106 parses the subframes in the processed A-MPDU in turn, it only needs to obtain the second length indication information and the second length indication information in the delimiter of each subframe. Subframes are parsed.

可选的,在步骤1104中,发送端在依次对多个子帧中的子帧进行第二处理时,可以检测当前处理的子帧是否为空子帧,若当前处理的子帧为空子帧则不对空子帧进行处理;若当前处理的子帧是非空子帧,则判断是否需要对当前子帧进行第二处理,若需要对当前子帧进行第二处理,则可以参考步骤1104中对子帧的第二处理的具体过程。并且若子帧为空子帧则不对空子帧的定界符进行设置,即空子帧中定界符的格式与现有技术中相同;若该子帧是非空子帧,则在该子帧的定界符中设置第二长度指示信息和第二长度指示信息。在步骤1106中,接收端在对该处理后的A-MPDU进行解析时,首先可以检测当前子帧是否为空子帧,若当前子帧为空子帧,则可以按照现有技术中对空子帧的解析方法对该子帧进行解析。若当前子帧是非空子帧,则可以参考步骤1106中对子帧的具体解析方法,对当前子帧进行解析。Optionally, in step 1104, when the sending end sequentially performs the second processing on the subframes in the multiple subframes, it may detect whether the currently processed subframe is an empty subframe, and if the currently processed subframe is an empty subframe, then it is not true. Empty subframe is processed; If the subframe of current processing is non-empty subframe, then judge whether to need to carry out second processing to current subframe, if need to carry out second processing to current subframe, then can refer to the second processing of subframe in step 1104 2. The specific process of treatment. And if the subframe is an empty subframe, the delimiter of the empty subframe is not set, that is, the format of the delimiter in the empty subframe is the same as in the prior art; if the subframe is a non-empty subframe, then the delimiter in the subframe Set the second length indication information and the second length indication information in . In step 1106, when the receiving end parses the processed A-MPDU, it can first detect whether the current subframe is an empty subframe. The parsing method parses the subframe. If the current subframe is a non-empty subframe, the current subframe may be analyzed by referring to the specific analysis method for subframes in step 1106 .

综上所述,由于本发明实施例提供的数据处理方法中,对于A-MPDU的两个相邻子帧,发送端将前一子帧的MPDU尾部的部分字节后移至后一子帧的MPDU的头部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。To sum up, in the data processing method provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sender moves some bytes at the end of the MPDU of the previous subframe to the next subframe The head of the MPDU, so that the length of the data part located after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

如图17所示,本发明实施例提供了一种数据处理装置160,该数据处理装置160可以用于发送端,该数据处理装置160可以包括:As shown in Figure 17, the embodiment of the present invention provides a data processing device 160, which can be used at the sending end, and the data processing device 160 can include:

生成单元1601,用于根据多个媒体接入控制协议数据单元MPDU生成聚合媒体接入控制协议数据单元A-MPDU,A-MPDU包括y个子帧,每个子帧包括定界符和数据部分,数据部分包括MPDU,每个子帧的数据部分的长度均大于等于零,每个子帧的定界符的长度均为x字节,x≥1,x为整数,y≥2,y为整数。The generating unit 1601 is configured to generate an aggregated media access control protocol data unit A-MPDU according to a plurality of media access control protocol data units MPDU, A-MPDU includes y subframes, each subframe includes a delimiter and a data part, and the data The part includes MPDU, the length of the data part of each subframe is greater than or equal to zero, the length of the delimiter of each subframe is x bytes, x≥1, x is an integer, y≥2, y is an integer.

第一处理单元1602,用于在第k个子帧是非空子帧,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍时,对第k个子帧进行第一处理,第一处理使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,1≤k≤y,k为整数。The first processing unit 1602 is configured to be a non-empty subframe in the kth subframe, and the length of the data part located after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer of x When multiple times, the first processing is performed on the kth subframe, the first processing makes the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe be an integer multiple of x, 1≤k≤y, k is an integer.

其中,当存在第k+1个子帧且是非空子帧时,对第k个子帧的第一处理的过程可以包括:将位于第k+1个子帧的MPDU的头部的长度为m的部分移至位于第k个子帧的定界符之后的第k个子帧的MPDU之后、第k+1个子帧的定界符之前,使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,其中,0<m≤x-1,m为整数。Wherein, when there is a k+1th subframe and it is a non-empty subframe, the process of the first processing of the kth subframe may include: shifting the part of the head of the MPDU located in the k+1th subframe whose length is m After the MPDU of the k-th subframe after the delimiter of the k-th subframe, before the delimiter of the k+1-th subframe, so that after the delimiter of the k-th subframe, the k+1-th subframe The length of the data part before the delimiter is an integer multiple of x, where, 0<m≤x-1, m is an integer.

发送单元1603,用于向接收端发送处理后的A-MPDU,以便于接收端根据处理后的A-MPDU解析得到多个MPDU。The sending unit 1603 is configured to send the processed A-MPDU to the receiving end, so that the receiving end can analyze and obtain multiple MPDUs according to the processed A-MPDU.

当第k个子帧是最后一个子帧或存在第k+1个子帧且是空子帧时,对第k个子帧的第一处理的过程可以包括:When the kth subframe is the last subframe or the k+1th subframe exists and is an empty subframe, the first processing procedure for the kth subframe may include:

在位于第k个子帧的定界符之后的第k个子帧的MPDU之后添加长度为Q的填充位,使得填充位的长度Q与位于第k个子帧的定界符之后的第k个子帧的MPDU的长度之和等于x的整数倍,其中,0<Q≤x-1,Q为整数。After the MPDU of the kth subframe after the delimiter of the kth subframe, a padding bit with a length of Q is added, so that the length Q of the padding bit is the same as that of the kth subframe after the delimiter of the kth subframe The sum of the lengths of the MPDUs is equal to an integer multiple of x, where 0<Q≤x-1, and Q is an integer.

当k≥2时,第k个子帧的定界符中包括第一长度指示信息和第二长度指示信息。When k≥2, the delimiter of the kth subframe includes the first length indication information and the second length indication information.

其中,第一长度指示信息用于指示第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度,第二长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度。Wherein, the first length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication information is used to indicate that the MPDU of the kth subframe is moved to the kth subframe. The length of the part after the MPDU of 1 subframe and before the delimiter of the kth subframe.

或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k+1个子帧的MPDU移至第k个子帧的MPDU之后、第k+1个子帧的定界符之前的部分的长度。Or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the MPDU of the k-1th subframe, and the length of the part before the delimiter of the kth subframe is the same as the MPDU of the kth subframe. The sum of the lengths of the part after the delimiter of the k subframe, the second length indication information is used to indicate that the MPDU of the k+1th subframe is moved to after the MPDU of the kth subframe, and the delimitation of the k+1th subframe The length of the part before the break.

或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度。Or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the MPDU of the k-1th subframe, and the length of the part before the delimiter of the kth subframe is the same as the MPDU of the kth subframe. The sum of the lengths of the parts after the delimiter of the k subframe, the second length indication information is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe the length of the section.

或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度。Or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the MPDU of the k-1th subframe, and the length of the part before the delimiter of the kth subframe is the same as the MPDU of the kth subframe. The sum of the lengths of the parts after the delimiter of the k subframes, the second length indication information is used to indicate the length of the part of the MPDU of the k th subframe after the delimiter of the k th subframe.

综上所述,由于本发明实施例提供的数据处理装置中,对于A-MPDU的两个相邻子帧,发送端将后一子帧的MPDU头部的部分字节前移至前一子帧的MPDU的尾部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。To sum up, in the data processing device provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sender moves forward some bytes of the MPDU header of the subsequent subframe to the previous subframe. The end of the MPDU of the frame, so that the length of the data part after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

如图18所示,本发明实施例提供了另一种数据处理装置170,该数据处理装置170可以用于发送端,该数据处理装置170可以包括:As shown in Figure 18, the embodiment of the present invention provides another data processing device 170, which can be used at the sending end, and the data processing device 170 can include:

生成单元1701,用于根据多个媒体接入控制协议数据单元MPDU生成聚合媒体接入控制协议数据单元A-MPDU,A-MPDU包括y个子帧,每个子帧包括定界符和数据部分,数据部分包括MPDU,每个子帧的数据部分的长度均大于等于零,每个子帧的定界符的长度均为x,x≥1,x为整数,y≥2,y为整数。The generating unit 1701 is configured to generate an aggregated media access control protocol data unit A-MPDU according to a plurality of media access control protocol data units MPDU, A-MPDU includes y subframes, each subframe includes a delimiter and a data part, and the data The part includes MPDU, the length of the data part of each subframe is greater than or equal to zero, the length of the delimiter of each subframe is x, x≥1, x is an integer, y≥2, and y is an integer.

第二处理单元1702,用于在第k个子帧是非空子帧,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍时,对第k个子帧进行第二处理,第二处理使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,1≤k≤y,k为整数。The second processing unit 1702 is configured to be a non-empty subframe in the kth subframe, and the length of the data part located after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer of x When multiple times, the second processing is performed on the kth subframe, the second processing makes the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe be an integer multiple of x, 1≤k≤y, k is an integer.

其中,当存在第k+1个子帧且是非空子帧时,对第k个子帧的第二处理的过程可以包括:将位于第k个子帧的MPDU的尾部的长度为m的部分移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后,使得位于第k个子帧的定界符之后、第k+1个定界符之前的数据部分的长度为x的整数倍,其中,0≤m≤x-1,m为整数。Wherein, when there is a k+1th subframe and it is a non-empty subframe, the process of the second processing of the kth subframe may include: moving the part of length m at the end of the MPDU of the kth subframe to the kth subframe Before the MPDU of the +1 subframe and after the delimiter of the k+1th subframe, the length of the data part located after the delimiter of the kth subframe and before the k+1th delimiter is an integer of x Times, where, 0≤m≤x-1, m is an integer.

发送单元1703,用于向接收端发送处理后的A-MPDU,以便于接收端根据处理后的A-MPDU解析得到多个MPDU。The sending unit 1703 is configured to send the processed A-MPDU to the receiving end, so that the receiving end can analyze and obtain multiple MPDUs according to the processed A-MPDU.

当第k个子帧是最后一个子帧或存在第k+1个子帧且是空子帧时,对第k个子帧的第二处理的过程可以包括:When the kth subframe is the last subframe or the k+1th subframe exists and is an empty subframe, the process of the second processing of the kth subframe may include:

在位于第k个子帧的定界符之后的第k个子帧的MPDU之后添加长度为Q的填充位,使得第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的部分的长度、填充位的长度Q与第k个子帧的MPDU的长度之和等于x的整数倍,其中,0<Q≤x-1,Q为整数。After the MPDU of the kth subframe after the delimiter of the kth subframe, a padding bit of length Q is added, so that the MPDU of the k-1th subframe is moved to before the MPDU of the kth subframe, and the kth subframe The sum of the length of the part after the delimiter, the length Q of stuffing bits and the length of the MPDU of the kth subframe is equal to an integer multiple of x, where 0<Q≤x-1, and Q is an integer.

当k≥2时,第k个子帧的定界符中包括第一长度指示信息和第二长度指示信息。When k≥2, the delimiter of the kth subframe includes the first length indication information and the second length indication information.

其中,第一长度指示信息用于指示第k个子帧的MPDU移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后的部分的长度与第k个子帧的MPDU位于第k+1个子帧的定界符之前的部分的长度之和,第二长度指示信息用于指示第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate that the MPDU of the kth subframe is moved before the MPDU of the k+1th subframe, and the length of the part after the delimiter of the k+1th subframe is the same as the length of the MPDU of the kth subframe. The sum of the lengths of the parts before the delimiter of the k+1th subframe, the second length indication information is used to indicate that the MPDU of the k-1th subframe is moved to before the MPDU of the kth subframe, and the length of the kth subframe The length of the part after the delimiter.

每个子帧的定界符中还可以包括用于指示每个子帧位置的位置标识,当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,多个子帧中除第k个子帧之外的其他子帧定界符中的位置标识与第k个子帧定界符中的位置标识不同。The delimiter of each subframe may also include a position identifier for indicating the position of each subframe, when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and When there is a k+1th subframe and the k+1th subframe is an empty subframe, the position identifiers in the subframe delimiters other than the kth subframe in the multiple subframes are the same as those in the kth subframe delimiter The location identifiers are different.

每个子帧的定界符中还可以包括用于指示每个子帧中是否存在填充位的填充标识。The delimiter of each subframe may also include a stuffing flag used to indicate whether there is a stuffing bit in each subframe.

综上所述,由于本发明实施例提供的数据处理装置中,对于A-MPDU的两个相邻子帧,发送端将前一子帧的MPDU尾部的部分字节后移至后一子帧的MPDU的头部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。In summary, in the data processing device provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sender moves some bytes at the end of the MPDU of the previous subframe to the next subframe The head of the MPDU, so that the length of the data part located after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

如图19所示,本发明实施例提供了又一种数据处理装置180,该数据处理装置180可以用于接收端,该数据处理装置180可以包括:As shown in FIG. 19, the embodiment of the present invention provides another data processing device 180, which can be used at the receiving end. The data processing device 180 can include:

接收单元1801,用于接收发送端发送的聚合媒体接入控制协议数据单元A-MPDU,A-MPDU包括y个子帧,每个子帧包括定界符和数据部分,每个子帧的数据部分的长度均大于等于零,每个子帧的定界符的长度均为x,x≥1,x为整数,定界符中包括第一长度指示信息和第二长度指示信息,数据部分包括媒体接入控制协议数据单元MPDU,每两个子帧的定界符之间的数据部分的长度均为x的整数倍,y≥2,y为整数。The receiving unit 1801 is configured to receive the aggregated media access control protocol data unit A-MPDU sent by the sending end, the A-MPDU includes y subframes, each subframe includes a delimiter and a data part, and the length of the data part of each subframe are greater than or equal to zero, the length of the delimiter of each subframe is x, x≥1, x is an integer, the delimiter includes the first length indication information and the second length indication information, and the data part includes the media access control protocol In the data unit MPDU, the length of the data part between the delimiters of each two subframes is an integer multiple of x, y≥2, and y is an integer.

解析单元1802,用于依次对多个子帧中的子帧以长度x为单位进行解析处理得到多个MPDU,其中,第k个子帧为y个子帧中的任意一个,1≤k≤y,k为整数,对第k个子帧的解析处理过程包括:根据第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从第k-1个子帧的数据部分中获取第k个子帧的MPDU的第一部分,从第k个子帧的数据部分中获取第k个子帧的MPDU的第二部分,将第一部分和第二部分合并,组成第k个子帧的MPDU,此时2≤k≤y。The parsing unit 1802 is configured to sequentially parse and process the subframes in the multiple subframes in units of length x to obtain multiple MPDUs, wherein the kth subframe is any one of the y subframes, 1≤k≤y, k is an integer, and the parsing process for the kth subframe includes: according to the first length indication information and the second length indication information in the delimiter of the kth subframe, obtain the first length from the data part of the k-1th subframe The first part of the MPDU of the k subframe, the second part of the MPDU of the kth subframe is obtained from the data part of the kth subframe, and the first part and the second part are combined to form the MPDU of the kth subframe. At this time, 2 ≤k≤y.

其中,第一长度指示信息用于指示第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度,第二长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度。或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k+1个子帧的MPDU移至第k个子帧的MPDU之后、第k+1个子帧的定界符之前的部分的长度。或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度。或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication information is used to indicate that the MPDU of the kth subframe is moved to the kth subframe. The length of the part after the MPDU of 1 subframe and before the delimiter of the kth subframe. Or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the MPDU of the k-1th subframe, and the length of the part before the delimiter of the kth subframe is the same as the MPDU of the kth subframe. The sum of the lengths of the part after the delimiter of the k subframe, the second length indication information is used to indicate that the MPDU of the k+1th subframe is moved to after the MPDU of the kth subframe, and the delimitation of the k+1th subframe The length of the part before the break. Or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the MPDU of the k-1th subframe, and the length of the part before the delimiter of the kth subframe is the same as the MPDU of the kth subframe. The sum of the lengths of the parts after the delimiter of the k subframe, the second length indication information is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe the length of the section. Or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the MPDU of the k-1th subframe, and the length of the part before the delimiter of the kth subframe is the same as the MPDU of the kth subframe. The sum of the lengths of the parts after the delimiter of the k subframes, the second length indication information is used to indicate the length of the part of the MPDU of the k th subframe after the delimiter of the k th subframe.

综上所述,由于本发明实施例提供的数据处理装置中,对于A-MPDU的两个相邻子帧,发送端将后一子帧的MPDU头部的部分字节前移至前一子帧的MPDU的尾部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。To sum up, in the data processing device provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sender moves forward some bytes of the MPDU header of the subsequent subframe to the previous subframe. The end of the MPDU of the frame, so that the length of the data part after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

如图20所示,本发明实施例提供了再一种数据处理装置190,该数据处理装置190可以用于接收端,该数据处理装置190可以包括:As shown in Figure 20, the embodiment of the present invention provides another data processing device 190, which can be used at the receiving end, and the data processing device 190 can include:

接收单元1901,用于接收发送端发送的聚合媒体接入控制协议数据单元A-MPDU,A-MPDU包括y个子帧,每个子帧包括定界符和数据部分,每个子帧的数据部分的长度均大于等于零,每个子帧的定界符的长度均为x,x≥1,x为整数,定界符中包括第一长度指示信息和第二长度指示信息,数据部分包括媒体接入控制协议数据单元MPDU,每两个子帧的定界符之间的数据部分的长度均为x的整数倍,y≥2,y为整数。The receiving unit 1901 is configured to receive the aggregated media access control protocol data unit A-MPDU sent by the sending end, the A-MPDU includes y subframes, each subframe includes a delimiter and a data part, and the length of the data part of each subframe are greater than or equal to zero, the length of the delimiter of each subframe is x, x≥1, x is an integer, the delimiter includes the first length indication information and the second length indication information, and the data part includes the media access control protocol In the data unit MPDU, the length of the data part between the delimiters of each two subframes is an integer multiple of x, y≥2, and y is an integer.

解析单元1902,用于依次对多个子帧中的子帧以长度x为单位进行解析处理得到多个MPDU,其中,第k个子帧为y个子帧中的任意一个,1≤k≤y,k为整数,如图21所示,解析单元1902可以包括:The parsing unit 1902 is configured to sequentially parse and process the subframes in the multiple subframes in units of length x to obtain multiple MPDUs, wherein the kth subframe is any one of the y subframes, 1≤k≤y, k is an integer, as shown in Figure 21, the parsing unit 1902 may include:

第一解析单元19021,用于对第k个子帧执行第一解析处理:根据第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从第k个子帧的数据部分中获取第k个子帧的MPDU的第一部分,从第k+1个子帧的数据部分中获取第k个子帧的MPDU的第二部分,将第一部分和第二部分合并,组成第k个子帧的MPDU,此时1≤k≤y-1。The first parsing unit 19021 is configured to perform a first parsing process on the kth subframe: according to the first length indication information and the second length indication information in the delimiter of the kth subframe, from the data part of the kth subframe Obtain the first part of the MPDU of the kth subframe, obtain the second part of the MPDU of the kth subframe from the data part of the k+1th subframe, and combine the first part and the second part to form the kth subframe. MPDU, at this time 1≤k≤y-1.

其中,第一长度指示信息用于指示第k个子帧的MPDU移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后的部分的长度与第k个子帧的MPDU位于第k+1个子帧的定界符之前的部分的长度之和,第二长度指示信息用于指示第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate that the MPDU of the kth subframe is moved before the MPDU of the k+1th subframe, and the length of the part after the delimiter of the k+1th subframe is the same as the length of the MPDU of the kth subframe. The sum of the lengths of the parts before the delimiter of the k+1th subframe, the second length indication information is used to indicate that the MPDU of the k-1th subframe is moved to before the MPDU of the kth subframe, and the length of the kth subframe The length of the part after the delimiter.

定界符中还可以包括填充标识,如图22所示,该解析单元1902可以包括:The delimiter may also include a padding identifier. As shown in FIG. 22, the parsing unit 1902 may include:

检测单元19022,用于检测第k个子帧中的填充标识。The detecting unit 19022 is configured to detect the filling indicator in the kth subframe.

第一解析单元19021,具体用于在检测单元检测出第k个子帧中不存在填充位时,对第k个子帧进行第一解析处理。The first parsing unit 19021 is specifically configured to perform the first parsing process on the kth subframe when the detecting unit detects that there is no stuffing bit in the kth subframe.

第二解析单元19023,用于在检测单元检测出填充标识指示第k个子帧中存在填充位时,对第k个子帧执行第二解析处理:根据第k个子帧的定界符中的第一长度指示信息与第二长度指示信息,在第k个子帧的数据部分中,获取与第k个子帧的定界符的距离为e,且长度为f的部分,作为第k个子帧的MPDU,e为第k个子帧的定界符中的第二长度指示信息所指示的长度,f为第k个子帧的定界符中的第一长度指示信息所指示的长度。The second parsing unit 19023 is configured to perform a second parsing process on the kth subframe when the detection unit detects that the padding flag indicates that there is a padding bit in the kth subframe: according to the first in the delimiter of the kth subframe The length indication information and the second length indication information, in the data part of the kth subframe, obtain the part with a distance of e from the delimiter of the kth subframe and a length of f, as the MPDU of the kth subframe, e is the length indicated by the second length indication information in the delimiter of the kth subframe, and f is the length indicated by the first length indication information in the delimiter of the kth subframe.

综上所述,由于本发明实施例提供的数据处理装置中,对于A-MPDU的两个相邻子帧,发送端将前一子帧的MPDU尾部的部分字节后移至后一子帧的MPDU的头部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。In summary, in the data processing device provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sender moves some bytes at the end of the MPDU of the previous subframe to the next subframe The head of the MPDU, so that the length of the data part located after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

本发明实施例提供了一种数据处理系统,该数据处理系统可以包括:发送端和接收端,该发送端可以包括图17或图18所示的数据处理装置。该接收端可以包括图19或图20所示的数据处理装置。An embodiment of the present invention provides a data processing system. The data processing system may include: a sending end and a receiving end. The sending end may include the data processing apparatus shown in FIG. 17 or FIG. 18 . The receiving end may include the data processing device shown in FIG. 19 or FIG. 20 .

综上所述,由于本发明实施例提供的数据处理系统中,对于A-MPDU的两个相邻子帧,发送端将后一子帧的MPDU头部的部分字节前移至前一子帧的MPDU的尾部,或发送端将前一子帧的MPDU尾部的部分字节后移至后一子帧的MPDU的头部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。To sum up, in the data processing system provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sender moves forward some bytes of the MPDU header of the subsequent subframe to the previous subframe. The end of the MPDU of the frame, or the sender moves some bytes at the end of the MPDU of the previous subframe to the head of the MPDU of the next subframe, so that after the delimiter of the previous subframe, the next subframe The length of the data part before the delimiter of the frame is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

如图23所示,本发明另一实施例提供了一种数据处理装置210,该数据处理装置210可以用于发送端,该数据处理装置210可以包括:As shown in FIG. 23, another embodiment of the present invention provides a data processing device 210, which can be used at the sending end, and the data processing device 210 can include:

处理器2101(一个或多个),用于根据多个媒体接入控制协议数据单元MPDU生成聚合媒体接入控制协议数据单元A-MPDU,A-MPDU包括y个子帧,每个子帧包括定界符和数据部分,数据部分包括MPDU,每个子帧的数据部分的长度均大于等于零,每个子帧的定界符的长度均为x字节,x≥1,x为整数,y≥2,y为整数。Processor 2101 (one or more), configured to generate an aggregated media access control protocol data unit A-MPDU according to a plurality of media access control protocol data units MPDU, A-MPDU includes y subframes, and each subframe includes delimited Delimiter and data part, the data part includes MPDU, the length of the data part of each subframe is greater than or equal to zero, the length of the delimiter of each subframe is x bytes, x≥1, x is an integer, y≥2, y is an integer.

处理器2101还用于在第k个子帧是非空子帧,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍时,对第k个子帧进行第一处理,第一处理使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,1≤k≤y,k为整数。The processor 2101 is also used when the kth subframe is a non-empty subframe, and the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer multiple of x , perform the first processing on the kth subframe, the first processing makes the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe be an integer multiple of x, 1≤ k≤y, k is an integer.

其中,当存在第k+1个子帧且是非空子帧时,对第k个子帧的第一处理的过程可以包括:将位于第k+1个子帧的MPDU的头部的长度为m的部分移至位于第k个子帧的定界符之后的第k个子帧的MPDU之后、第k+1个子帧的定界符之前,使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,其中,0<m≤x-1,m为整数。Wherein, when there is a k+1th subframe and it is a non-empty subframe, the process of the first processing of the kth subframe may include: shifting the part of the head of the MPDU located in the k+1th subframe whose length is m After the MPDU of the k-th subframe after the delimiter of the k-th subframe, before the delimiter of the k+1-th subframe, so that after the delimiter of the k-th subframe, the k+1-th subframe The length of the data part before the delimiter is an integer multiple of x, where, 0<m≤x-1, m is an integer.

发送机2102,用于向接收端发送处理后的A-MPDU,以便于接收端根据处理后的A-MPDU解析得到多个MPDU。The sender 2102 is configured to send the processed A-MPDU to the receiving end, so that the receiving end can analyze and obtain multiple MPDUs according to the processed A-MPDU.

当第k个子帧是最后一个子帧或存在第k+1个子帧且是空子帧时,对第k个子帧的第一处理的过程可以包括:When the kth subframe is the last subframe or the k+1th subframe exists and is an empty subframe, the first processing procedure for the kth subframe may include:

在位于第k个子帧的定界符之后的第k个子帧的MPDU之后添加长度为Q的填充位,使得填充位的长度Q与位于第k个子帧的定界符之后的第k个子帧的MPDU的长度之和等于x的整数倍,其中,0<Q≤x-1,Q为整数。After the MPDU of the kth subframe after the delimiter of the kth subframe, a padding bit with a length of Q is added, so that the length Q of the padding bit is the same as that of the kth subframe after the delimiter of the kth subframe The sum of the lengths of the MPDUs is equal to an integer multiple of x, where 0<Q≤x-1, and Q is an integer.

当k≥2时,第k个子帧的定界符中可以包括第一长度指示信息和第二长度指示信息。When k≥2, the delimiter of the kth subframe may include the first length indication information and the second length indication information.

其中,第一长度指示信息用于指示第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度,第二长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度。Wherein, the first length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication information is used to indicate that the MPDU of the kth subframe is moved to the kth subframe. The length of the part after the MPDU of 1 subframe and before the delimiter of the kth subframe.

或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k+1个子帧的MPDU移至第k个子帧的MPDU之后、第k+1个子帧的定界符之前的部分的长度。Or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the MPDU of the k-1th subframe, and the length of the part before the delimiter of the kth subframe is the same as the MPDU of the kth subframe. The sum of the lengths of the part after the delimiter of the k subframe, the second length indication information is used to indicate that the MPDU of the k+1th subframe is moved to after the MPDU of the kth subframe, and the delimitation of the k+1th subframe The length of the part before the break.

或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度。Or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the MPDU of the k-1th subframe, and the length of the part before the delimiter of the kth subframe is the same as the MPDU of the kth subframe. The sum of the lengths of the parts after the delimiter of the k subframe, the second length indication information is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe the length of the section.

或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度。Or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the MPDU of the k-1th subframe, and the length of the part before the delimiter of the kth subframe is the same as the MPDU of the kth subframe. The sum of the lengths of the parts after the delimiter of the k subframes, the second length indication information is used to indicate the length of the part of the MPDU of the k th subframe after the delimiter of the k th subframe.

综上所述,由于本发明实施例提供的数据处理装置中,对于A-MPDU的两个相邻子帧,发送端将后一子帧的MPDU头部的部分字节前移至前一子帧的MPDU的尾部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。To sum up, in the data processing device provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sender moves forward some bytes of the MPDU header of the subsequent subframe to the previous subframe. The end of the MPDU of the frame, so that the length of the data part after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

如图24所示,本发明另一实施例提供了另一种数据处理装置220,该数据处理装置220可以用于发送端,该数据处理装置220可以包括:As shown in FIG. 24, another embodiment of the present invention provides another data processing device 220, which can be used at the sending end. The data processing device 220 can include:

处理器2201(一个或多个),用于根据多个媒体接入控制协议数据单元MPDU生成聚合媒体接入控制协议数据单元A-MPDU,A-MPDU可以包括y个子帧,每个子帧可以包括定界符和数据部分,数据部分可以包括MPDU,每个子帧的数据部分的长度均大于等于零,每个子帧的定界符的长度均为x,x≥1,x为整数,y≥2,y为整数。Processor 2201 (one or more), configured to generate an aggregated media access control protocol data unit A-MPDU according to multiple media access control protocol data units MPDU, A-MPDU may include y subframes, and each subframe may include Delimiter and data part, the data part can include MPDU, the length of the data part of each subframe is greater than or equal to zero, the length of the delimiter of each subframe is x, x≥1, x is an integer, y≥2, y is an integer.

处理器2201还用于在第k个子帧是非空子帧,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍时,对第k个子帧进行第二处理,第二处理使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,1≤k≤y,k为整数。The processor 2201 is also used when the kth subframe is a non-empty subframe, and the length of the data part located after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer multiple of x , the second processing is performed on the kth subframe, the second processing makes the length of the data part located after the delimiter of the kth subframe and before the delimiter of the k+1th subframe be an integer multiple of x, 1≤ k≤y, k is an integer.

其中,当存在第k+1个子帧且是非空子帧时,对第k个子帧的第二处理的过程可以包括:将位于第k个子帧的MPDU的尾部的长度为m的部分移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后,使得位于第k个子帧的定界符之后、第k+1个定界符之前的数据部分的长度为x的整数倍,其中,0≤m≤x-1,m为整数。Wherein, when there is a k+1th subframe and it is a non-empty subframe, the process of the second processing of the kth subframe may include: moving the part of length m at the end of the MPDU of the kth subframe to the kth subframe Before the MPDU of the +1 subframe and after the delimiter of the k+1th subframe, the length of the data part located after the delimiter of the kth subframe and before the k+1th delimiter is an integer of x Times, where, 0≤m≤x-1, m is an integer.

发送机2202,用于向接收端发送处理后的A-MPDU,以便于接收端根据处理后的A-MPDU解析得到多个MPDU。The sender 2202 is configured to send the processed A-MPDU to the receiving end, so that the receiving end can analyze and obtain multiple MPDUs according to the processed A-MPDU.

当第k个子帧是最后一个子帧或存在第k+1个子帧且是空子帧时,对第k个子帧的第二处理的过程可以包括:When the kth subframe is the last subframe or the k+1th subframe exists and is an empty subframe, the process of the second processing of the kth subframe may include:

在位于第k个子帧的定界符之后的第k个子帧的MPDU之后添加长度为Q的填充位,使得第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的部分的长度、填充位的长度Q与第k个子帧的MPDU的长度之和等于x的整数倍,其中,0<Q≤x-1,Q为整数。After the MPDU of the kth subframe after the delimiter of the kth subframe, a padding bit of length Q is added, so that the MPDU of the k-1th subframe is moved to before the MPDU of the kth subframe, and the kth subframe The sum of the length of the part after the delimiter, the length Q of stuffing bits and the length of the MPDU of the kth subframe is equal to an integer multiple of x, where 0<Q≤x-1, and Q is an integer.

当k≥2时,第k个子帧的定界符中包括第一长度指示信息和第二长度指示信息。When k≥2, the delimiter of the kth subframe includes the first length indication information and the second length indication information.

其中,第一长度指示信息用于指示第k个子帧的MPDU移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后的部分的长度与第k个子帧的MPDU位于第k+1个子帧的定界符之前的部分的长度之和,第二长度指示信息用于指示第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate that the MPDU of the kth subframe is moved before the MPDU of the k+1th subframe, and the length of the part after the delimiter of the k+1th subframe is the same as the length of the MPDU of the kth subframe. The sum of the lengths of the parts before the delimiter of the k+1th subframe, the second length indication information is used to indicate that the MPDU of the k-1th subframe is moved to before the MPDU of the kth subframe, and the length of the kth subframe The length of the part after the delimiter.

每个子帧的定界符中还可以包括用于指示每个子帧位置的位置标识,当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,多个子帧中除第k个子帧之外的其他子帧定界符中的位置标识与第k个子帧定界符中的位置标识不同。The delimiter of each subframe may also include a position identifier for indicating the position of each subframe, when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe and When there is a k+1th subframe and the k+1th subframe is an empty subframe, the position identifiers in the subframe delimiters other than the kth subframe in the multiple subframes are the same as those in the kth subframe delimiter The location identifiers are different.

每个子帧的定界符中还可以包括用于指示每个子帧中是否存在填充位的填充标识。The delimiter of each subframe may also include a stuffing flag used to indicate whether there is a stuffing bit in each subframe.

综上所述,由于本发明实施例提供的数据处理装置中,对于A-MPDU的两个相邻子帧,发送端将前一子帧的MPDU尾部的部分字节后移至后一子帧的MPDU的头部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。In summary, in the data processing device provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sender moves some bytes at the end of the MPDU of the previous subframe to the next subframe The head of the MPDU, so that the length of the data part located after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

如图25所示,本发明另一实施例提供了又一种数据处理装置230,该数据处理装置230可以用于接收端,该数据处理装置230可以包括:As shown in FIG. 25, another embodiment of the present invention provides another data processing device 230, which can be used at the receiving end, and the data processing device 230 can include:

接收机2301,用于接收发送端发送的聚合媒体接入控制协议数据单元A-MPDU,A-MPDU包括y个子帧,每个子帧包括定界符和数据部分,每个子帧的数据部分的长度均大于等于零,每个子帧的定界符的长度均为x,x≥1,x为整数,定界符中包括第一长度指示信息和第二长度指示信息,数据部分包括媒体接入控制协议数据单元MPDU,每两个子帧的定界符之间的数据部分的长度均为x的整数倍,y≥2,y为整数。The receiver 2301 is configured to receive the aggregated media access control protocol data unit A-MPDU sent by the sender, the A-MPDU includes y subframes, each subframe includes a delimiter and a data part, and the length of the data part of each subframe are greater than or equal to zero, the length of the delimiter of each subframe is x, x≥1, x is an integer, the delimiter includes the first length indication information and the second length indication information, and the data part includes the media access control protocol In the data unit MPDU, the length of the data part between the delimiters of each two subframes is an integer multiple of x, y≥2, and y is an integer.

处理器2302(一个或多个),用于依次对多个子帧中的子帧以长度x为单位进行解析处理得到多个MPDU,其中,第k个子帧为y个子帧中的任意一个,1≤k≤y,k为整数,对第k个子帧的解析处理过程包括:根据第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从第k-1个子帧的数据部分中获取第k个子帧的MPDU的第一部分,从第k个子帧的数据部分中获取第k个子帧的MPDU的第二部分,将第一部分和第二部分合并,组成第k个子帧的MPDU,此时2≤k≤y。Processor 2302 (one or more), configured to sequentially analyze and process the subframes in the multiple subframes in units of length x to obtain multiple MPDUs, wherein the kth subframe is any one of the y subframes, 1 ≤k≤y, k is an integer, and the parsing process for the kth subframe includes: according to the first length indication information and the second length indication information in the delimiter of the kth subframe, from the k-1th subframe Obtain the first part of the MPDU of the kth subframe from the data part of the kth subframe, obtain the second part of the MPDU of the kth subframe from the data part of the kth subframe, combine the first part and the second part to form the kth subframe MPDUs, at this time 2≤k≤y.

其中,第一长度指示信息用于指示第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度,第二长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度。或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k+1个子帧的MPDU移至第k个子帧的MPDU之后、第k+1个子帧的定界符之前的部分的长度。或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度。或者,第一长度指示信息用于指示第k个子帧的MPDU移至第k-1个子帧的MPDU之后、第k个子帧的定界符之前的部分的长度与第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度之和,第二长度指示信息用于指示第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication information is used to indicate that the MPDU of the kth subframe is moved to the kth subframe. The length of the part after the MPDU of 1 subframe and before the delimiter of the kth subframe. Or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the MPDU of the k-1th subframe, and the length of the part before the delimiter of the kth subframe is the same as the MPDU of the kth subframe. The sum of the lengths of the part after the delimiter of the k subframe, the second length indication information is used to indicate that the MPDU of the k+1th subframe is moved to after the MPDU of the kth subframe, and the delimitation of the k+1th subframe The length of the part before the break. Or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the MPDU of the k-1th subframe, and the length of the part before the delimiter of the kth subframe is the same as the MPDU of the kth subframe. The sum of the lengths of the parts after the delimiter of the k subframe, the second length indication information is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe the length of the section. Or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the MPDU of the k-1th subframe, and the length of the part before the delimiter of the kth subframe is the same as the MPDU of the kth subframe. The sum of the lengths of the parts after the delimiter of the k subframes, the second length indication information is used to indicate the length of the part of the MPDU of the k th subframe after the delimiter of the k th subframe.

综上所述,由于本发明实施例提供的数据处理装置中,对于A-MPDU的两个相邻子帧,发送端将后一子帧的MPDU头部的部分字节前移至前一子帧的MPDU的尾部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。To sum up, in the data processing device provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sender moves forward some bytes of the MPDU header of the subsequent subframe to the previous subframe. The end of the MPDU of the frame, so that the length of the data part after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

如图26所示,本发明另一实施例提供了再一种数据处理装置240,该数据处理装置240可以用于接收端,该数据处理装置240可以包括:As shown in FIG. 26, another embodiment of the present invention provides another data processing device 240, which can be used at the receiving end. The data processing device 240 can include:

接收机2401,用于接收发送端发送的聚合媒体接入控制协议数据单元A-MPDU,A-MPDU包括y个子帧,每个子帧包括定界符和数据部分,每个子帧的数据部分的长度均大于等于零,每个子帧的定界符的长度均为x,x≥1,x为整数,定界符中包括第一长度指示信息和第二长度指示信息,数据部分包括媒体接入控制协议数据单元MPDU,每两个子帧的定界符之间的数据部分的长度均为x的整数倍,y≥2,y为整数。The receiver 2401 is configured to receive the aggregated media access control protocol data unit A-MPDU sent by the sender, the A-MPDU includes y subframes, each subframe includes a delimiter and a data part, and the length of the data part of each subframe are greater than or equal to zero, the length of the delimiter of each subframe is x, x≥1, x is an integer, the delimiter includes the first length indication information and the second length indication information, and the data part includes the media access control protocol In the data unit MPDU, the length of the data part between the delimiters of each two subframes is an integer multiple of x, y≥2, and y is an integer.

处理器2402(一个或多个),用于依次对多个子帧中的子帧以长度x为单位进行解析处理得到多个MPDU,其中,第k个子帧为y个子帧中的任意一个,1≤k≤y,k为整数,如图21所示,Processor 2402 (one or more), configured to sequentially analyze and process the subframes in the multiple subframes in units of length x to obtain multiple MPDUs, wherein the kth subframe is any one of the y subframes, 1 ≤k≤y, k is an integer, as shown in Figure 21,

处理器2402还用于对第k个子帧执行第一解析处理:根据第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从第k个子帧的数据部分中获取第k个子帧的MPDU的第一部分,从第k+1个子帧的数据部分中获取第k个子帧的MPDU的第二部分,将第一部分和第二部分合并,组成第k个子帧的MPDU,此时1≤k≤y-1。The processor 2402 is also configured to perform a first parsing process on the kth subframe: according to the first length indication information and the second length indication information in the delimiter of the kth subframe, obtain from the data part of the kth subframe The first part of the MPDU of the kth subframe, the second part of the MPDU of the kth subframe is obtained from the data part of the k+1th subframe, and the first part and the second part are combined to form the MPDU of the kth subframe, At this time, 1≤k≤y-1.

其中,第一长度指示信息用于指示第k个子帧的MPDU移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后的部分的长度与第k个子帧的MPDU位于第k+1个子帧的定界符之前的部分的长度之和,第二长度指示信息用于指示第k-1个子帧的MPDU移至第k个子帧的MPDU之前、第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate that the MPDU of the kth subframe is moved before the MPDU of the k+1th subframe, and the length of the part after the delimiter of the k+1th subframe is the same as the length of the MPDU of the kth subframe. The sum of the lengths of the parts before the delimiter of the k+1th subframe, the second length indication information is used to indicate that the MPDU of the k-1th subframe is moved to before the MPDU of the kth subframe, and the length of the kth subframe The length of the part after the delimiter.

定界符中还可以包括填充标识。Padding flags can also be included in the delimiter.

处理器2402还用于检测第k个子帧中的填充标识。The processor 2402 is further configured to detect a stuffing flag in the kth subframe.

处理器2402还具体用于在检测单元检测出第k个子帧中不存在填充位时,对第k个子帧进行第一解析处理。The processor 2402 is also specifically configured to perform the first parsing process on the kth subframe when the detection unit detects that there is no stuffing bit in the kth subframe.

处理器2402还用于在检测单元检测出填充标识指示第k个子帧中存在填充位时,对第k个子帧执行第二解析处理:根据第k个子帧的定界符中的第一长度指示信息与第二长度指示信息,在第k个子帧的数据部分中,获取与第k个子帧的定界符的距离为e,且长度为f的部分,作为第k个子帧的MPDU,e为第k个子帧的定界符中的第二长度指示信息所指示的长度,f为第k个子帧的定界符中的第一长度指示信息所指示的长度。The processor 2402 is also configured to perform a second parsing process on the kth subframe when the detection unit detects that the padding flag indicates that there is a stuffing bit in the kth subframe: according to the first length indication in the delimiter of the kth subframe information and the second length indication information, in the data part of the kth subframe, obtain the part whose distance from the delimiter of the kth subframe is e, and the length is f, as the MPDU of the kth subframe, e is The length indicated by the second length indication information in the delimiter of the kth subframe, and f is the length indicated by the first length indication information in the delimiter of the kth subframe.

综上所述,由于本发明实施例提供的数据处理装置中,对于A-MPDU的两个相邻子帧,发送端将前一子帧的MPDU尾部的部分字节后移至后一子帧的MPDU的头部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。In summary, in the data processing device provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sender moves some bytes at the end of the MPDU of the previous subframe to the next subframe The head of the MPDU, so that the length of the data part located after the delimiter of the previous subframe and before the delimiter of the next subframe is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

本发明实施例提供了一种数据处理系统,该数据处理系统可以包括:发送端和接收端,该发送端可以包括图23或图24所示的数据处理装置。该接收端可以包括图25或图26所示的数据处理装置。An embodiment of the present invention provides a data processing system. The data processing system may include: a sending end and a receiving end. The sending end may include the data processing apparatus shown in FIG. 23 or FIG. 24 . The receiving end may include the data processing device shown in FIG. 25 or FIG. 26 .

综上所述,由于本发明实施例提供的数据处理系统中,对于A-MPDU的两个相邻子帧,发送端将后一子帧的MPDU头部的部分字节前移至前一子帧的MPDU的尾部,或发送端将前一子帧的MPDU尾部的部分字节后移至后一子帧的MPDU的头部,从而使得位于前一个子帧的定界符之后、后一个子帧的定界符之前的数据部分的长度为定界符长度的整数倍。相比现有技术中通过在子帧的MPDU之后添加冗余的填充位使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍,通过本发明实施例在同样可以使得两子帧的定界符之间的数据部分的字节数为定界符中字节数的整数倍的同时,减少了对子帧添加冗余的填充位,方便了接收端对发送端处理后的A-MPDU统一以定界符中字节数为单位进行解析,减少了通信系统的额外开销,所以,减少了通信系统资源的浪费。To sum up, in the data processing system provided by the embodiment of the present invention, for two adjacent subframes of the A-MPDU, the sender moves forward some bytes of the MPDU header of the subsequent subframe to the previous subframe. The end of the MPDU of the frame, or the sender moves some bytes at the end of the MPDU of the previous subframe to the head of the MPDU of the next subframe, so that after the delimiter of the previous subframe, the next subframe The length of the data part before the delimiter of the frame is an integer multiple of the length of the delimiter. Compared with the prior art, the number of bytes of the data part between the delimiters of the two subframes is an integer multiple of the number of bytes in the delimiters by adding redundant padding bits after the MPDU of the subframe. The embodiment of the invention can also make the number of bytes of the data part between the delimiters of the two subframes be an integer multiple of the number of bytes in the delimiters, and reduce the number of redundant padding bits added to the subframes, which is convenient This enables the receiving end to analyze the A-MPDU processed by the sending end uniformly in units of the number of bytes in the delimiter, which reduces the additional overhead of the communication system, thus reducing the waste of communication system resources.

上述所有可选技术方案,可以采用任意结合形成本发明的可选实施例,在此不再一一赘述。All the above optional technical solutions can be combined in any way to form an optional embodiment of the present invention, which will not be repeated here.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.

需要说明的是,本发明实施例提供的数据处理方法步骤的先后顺序可以进行适当调整,步骤也可以根据情况进行相应增减,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本发明的保护范围之内,因此不再赘述。It should be noted that the order of the steps of the data processing method provided by the embodiment of the present invention can be appropriately adjusted, and the steps can also be increased or decreased accordingly according to the situation. Anyone familiar with the technical field within the technical scope disclosed in the present invention, Changes that can be easily thought of should be covered within the protection scope of the present invention, and thus will not be repeated here.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

Claims (23)

1.一种数据处理方法,其特征在于,用于发送端,所述数据处理方法包括:1. A data processing method, characterized in that, for the sending end, the data processing method comprises: 根据多个媒体接入控制协议数据单元MPDU生成聚合媒体接入控制协议数据单元A-MPDU,所述A-MPDU包括y个子帧,每个所述子帧包括定界符和数据部分,所述数据部分包括所述MPDU,每个所述子帧的数据部分的长度均大于等于零,每个所述子帧的定界符的长度均为x字节,x≥1,x为整数,y≥2,y为整数;Generate an aggregated media access control protocol data unit A-MPDU according to a plurality of media access control protocol data units MPDU, the A-MPDU includes y subframes, each of which includes a delimiter and a data part, the The data part includes the MPDU, the length of the data part of each subframe is greater than or equal to zero, the length of the delimiter of each subframe is x bytes, x≥1, x is an integer, and y≥ 2, y is an integer; 若第k个子帧是非空子帧,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍,则对所述第k个子帧进行第一处理,所述第一处理使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,1≤k≤y,k为整数;If the kth subframe is a non-empty subframe, and the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer multiple of x, then for the kth Subframes perform the first processing, the first processing makes the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe be an integer multiple of x, 1≤k≤ y, k are integers; 其中,当存在第k+1个子帧且是非空子帧时,对第k个子帧的第一处理的过程包括:将位于第k+1个子帧的MPDU的头部的长度为m的部分移至位于第k个子帧的定界符之后的所述第k个子帧的MPDU之后、所述第k+1个子帧的定界符之前,使得位于所述第k个子帧的定界符之后、所述第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,其中,0<m≤x-1,m为整数;Wherein, when there is a k+1th subframe and it is a non-empty subframe, the process of the first processing of the kth subframe includes: moving the part of the length m of the head of the MPDU located in the k+1th subframe to After the MPDU of the kth subframe after the delimiter of the kth subframe, before the delimiter of the k+1th subframe, so that after the delimiter of the kth subframe, the The length of the data part before the delimiter of the k+1th subframe is an integer multiple of x, wherein, 0<m≤x-1, m is an integer; 向接收端发送处理后的所述A-MPDU,以便于所述接收端根据处理后的所述A-MPDU解析得到所述多个MPDU。and sending the processed A-MPDU to the receiving end, so that the receiving end can obtain the multiple MPDUs by parsing the processed A-MPDU. 2.根据权利要求1所述的数据处理方法,其特征在于,所述数据处理方法还包括:当第k个子帧是最后一个子帧或存在第k+1个子帧且是空子帧时,所述对第k个子帧的第一处理的过程包括:2. The data processing method according to claim 1, further comprising: when the kth subframe is the last subframe or there is the k+1th subframe and is an empty subframe, the The process of the first processing of the kth subframe includes: 在位于所述第k个子帧的定界符之后的所述第k个子帧的MPDU之后添加长度为Q的填充位,使得所述填充位的长度Q与所述位于所述第k个子帧的定界符之后的所述第k个子帧的MPDU的长度之和等于所述x的整数倍,其中,0<Q≤x-1,Q为整数。After the MPDU of the kth subframe after the delimiter of the kth subframe, a padding bit with a length of Q is added, so that the length Q of the padding bit is the same as that of the MPDU located in the kth subframe The sum of the lengths of the MPDUs of the kth subframe after the delimiter is equal to an integer multiple of x, where 0<Q≤x−1, and Q is an integer. 3.根据权利要求1或2所述的数据处理方法,其特征在于,3. The data processing method according to claim 1 or 2, characterized in that, 当k≥2时,第k个子帧的定界符中包括第一长度指示信息和第二长度指示信息;When k≥2, the delimiter of the kth subframe includes first length indication information and second length indication information; 其中,所述第一长度指示信息用于指示所述第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度,所述第二长度指示信息用于指示所述第k个子帧的MPDU移至第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度;Wherein, the first length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication information is used to indicate the length of the MPDU of the kth subframe The MPDU of the frame is moved to the length of the part after the MPDU of the k-1th subframe and before the delimiter of the kth subframe; 或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k+1个子帧的MPDU移至所述第k个子帧的MPDU之后、所述第k+1个子帧的定界符之前的部分的长度;Alternatively, the first length indication information is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe. The sum of the lengths of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication information is used to indicate that the MPDU of the k+1th subframe is moved to the The length of the part after the MPDU of the kth subframe and before the delimiter of the k+1th subframe; 或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度;Alternatively, the first length indication information is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe. The sum of the lengths of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information is used to indicate that the MPDU of the kth subframe is moved to the The length of the part after the MPDU of the k-1 subframe and before the delimiter of the kth subframe; 或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度。Alternatively, the first length indication information is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe. The sum of the lengths of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information is used to indicate that the MPDU of the kth subframe is located in the kth subframe The length of the part after the delimiter of subframes. 4.一种数据处理方法,其特征在于,用于发送端,所述数据处理方法包括:4. A data processing method, characterized in that, for the sending end, the data processing method comprises: 根据多个媒体接入控制协议数据单元MPDU生成聚合媒体接入控制协议数据单元A-MPDU,所述A-MPDU包括y个子帧,每个所述子帧包括定界符和数据部分,所述数据部分包括所述MPDU,每个所述子帧的数据部分的长度均大于等于零,每个所述子帧的定界符的长度均为x,x≥1,x为整数,y≥2,y为整数;Generate an aggregated media access control protocol data unit A-MPDU according to a plurality of media access control protocol data units MPDU, the A-MPDU includes y subframes, each of which includes a delimiter and a data part, the The data part includes the MPDU, the length of the data part of each subframe is greater than or equal to zero, the length of the delimiter of each subframe is x, x≥1, x is an integer, y≥2, y is an integer; 若第k个子帧是非空子帧,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍,则对所述第k个子帧进行第二处理,所述第二处理使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,1≤k≤y,k为整数;If the kth subframe is a non-empty subframe, and the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer multiple of x, then for the kth Subframes carry out the second processing, the second processing makes the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe be an integer multiple of x, 1≤k≤ y, k are integers; 其中,当存在第k+1个子帧且是非空子帧时,对第k个子帧的第二处理的过程包括:将位于第k个子帧的MPDU的尾部的长度为m的部分移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后,使得位于第k个子帧的定界符之后、第k+1个定界符之前的数据部分的长度为x的整数倍,其中,0≤m≤x-1,m为整数;Wherein, when there is a k+1th subframe and it is a non-empty subframe, the process of the second processing of the kth subframe includes: moving the part with a length of m at the end of the MPDU of the kth subframe to the k+th subframe Before the MPDU of 1 subframe and after the delimiter of the k+1th subframe, the length of the data part after the delimiter of the kth subframe and before the k+1th delimiter is an integer multiple of x , where, 0≤m≤x-1, m is an integer; 向接收端发送处理后的所述A-MPDU,以便于所述接收端根据处理后的所述A-MPDU解析得到所述多个MPDU。and sending the processed A-MPDU to the receiving end, so that the receiving end can obtain the multiple MPDUs by parsing the processed A-MPDU. 5.根据权利要求4所述的数据处理方法,其特征在于,所述数据处理方法还包括:当第k个子帧是最后一个子帧或存在第k+1个子帧且是空子帧时,所述对第k个子帧的第二处理的过程包括:5. The data processing method according to claim 4, further comprising: when the kth subframe is the last subframe or there is the k+1th subframe and is an empty subframe, the The process of the second processing of the kth subframe includes: 在位于所述第k个子帧的定界符之后的所述第k个子帧的MPDU之后添加长度为Q的填充位,使得第k-1个子帧的MPDU移至所述第k个子帧的MPDU之前、所述第k个子帧的定界符之后的部分的长度、所述填充位的长度Q与所述第k个子帧的MPDU的长度之和等于所述x的整数倍,其中,0<Q≤x-1,Q为整数。After the MPDU of the kth subframe located after the delimiter of the kth subframe, a padding bit with a length of Q is added, so that the MPDU of the k-1th subframe is moved to the MPDU of the kth subframe The sum of the length of the part before and after the delimiter of the kth subframe, the length Q of the padding bit, and the length of the MPDU of the kth subframe is equal to an integer multiple of x, where 0< Q≤x-1, Q is an integer. 6.根据权利要求4或5所述的数据处理方法,其特征在于,6. The data processing method according to claim 4 or 5, characterized in that, 当k≥2时,第k个子帧的定界符中包括第一长度指示信息和第二长度指示信息‘When k≥2, the delimiter of the kth subframe includes the first length indication information and the second length indication information' 其中,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k+1个子帧的MPDU之前、所述第k+1个子帧的定界符之后的部分的长度与所述第k个子帧的MPDU位于所述第k+1个子帧的定界符之前的部分的长度之和,所述第二长度指示信息用于指示第k-1个子帧的MPDU移至所述第k个子帧的MPDU之前、所述第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the part before the MPDU of the k+1th subframe and after the delimiter of the k+1th subframe The sum of the length and the length of the part of the MPDU of the kth subframe located before the delimiter of the k+1th subframe, the second length indication information is used to indicate that the MPDU of the k-1th subframe is moved The length of the part before the MPDU of the kth subframe and after the delimiter of the kth subframe. 7.根据权利要求6所述的数据处理方法,其特征在于,7. The data processing method according to claim 6, wherein: 所述每个子帧的定界符中还包括用于指示所述每个子帧位置的位置标识,当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,所述多个子帧中除所述第k个子帧之外的其他子帧定界符中的位置标识与所述第k个子帧定界符中的位置标识不同。The delimiter of each subframe also includes a position identifier for indicating the position of each subframe, when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe When there is an empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, the position identifiers in the delimiters of other subframes in the multiple subframes except the kth subframe are consistent with the The location identifiers in the kth subframe delimiter are different. 8.根据权利要求6或7所述的数据处理方法,其特征在于,8. The data processing method according to claim 6 or 7, characterized in that, 所述每个子帧的定界符中还包括用于指示所述每个子帧中是否存在填充位的填充标识。The delimiter of each subframe further includes a stuffing flag used to indicate whether there are stuffing bits in each subframe. 9.一种数据处理方法,其特征在于,用于接收端,所述数据处理方法包括“9. A data processing method, characterized in that, for the receiving end, the data processing method includes " 接收发送端发送的聚合媒体接入控制协议数据单元A-MPDU,所述A-MPDU包括y个子帧,每个所述子帧包括定界符和数据部分,每个所述子帧的数据部分的长度均大于等于零,每个所述子帧的定界符的长度均为x,x≥1,x为整数,所述定界符中包括第一长度指示信息和第二长度指示信息,所述数据部分包括媒体接入控制协议数据单元MPDU,每两个所述子帧的定界符之间的数据部分的长度均为x的整数倍,y≥2,y为整数;Receive the aggregated media access control protocol data unit A-MPDU sent by the sending end, the A-MPDU includes y subframes, each of the subframes includes a delimiter and a data part, and the data part of each of the subframes The lengths are greater than or equal to zero, the length of the delimiter of each subframe is x, x≥1, x is an integer, and the delimiter includes the first length indication information and the second length indication information, so The data part includes a media access control protocol data unit MPDU, the length of the data part between the delimiters of each two subframes is an integer multiple of x, y≥2, and y is an integer; 依次对所述多个子帧中的子帧以长度x为单位进行解析处理得到多个MPDU,其中,第k个子帧为所述y个子帧中的任意一个,1≤k≤y,k为整数,对第k个子帧的解析处理过程包括:根据所述第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从第k-1个子帧的数据部分中获取所述第k个子帧的MPDU的第一部分,从所述第k个子帧的数据部分中获取所述第k个子帧的MPDU的第二部分,将所述第一部分和所述第二部分合并,组成所述第k个子帧的MPDU,此时2≤k≤y;Analyzing and processing the subframes in the plurality of subframes in units of length x in order to obtain a plurality of MPDUs, wherein the kth subframe is any one of the y subframes, 1≤k≤y, and k is an integer , the parsing process for the kth subframe includes: according to the first length indication information and the second length indication information in the delimiter of the kth subframe, the data part of the k-1th subframe is obtained from the The first part of the MPDU of the kth subframe is obtained, the second part of the MPDU of the kth subframe is obtained from the data part of the kth subframe, and the first part and the second part are combined to form The MPDU of the kth subframe, at this time 2≤k≤y; 其中,所述第一长度指示信息用于指示所述第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度,所述第二长度指示信息用于指示所述第k个子帧的MPDU移至第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度;或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k+1个子帧的MPDU移至所述第k个子帧的MPDU之后、所述第k+1个子帧的定界符之前的部分的长度;或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度;或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication information is used to indicate the length of the MPDU of the kth subframe The MPDU of the frame is moved to the length of the part after the MPDU of the k-1th subframe and before the delimiter of the kth subframe; or, the first length indication information is used to indicate the length of the kth subframe The length of the part where the MPDU is moved to after the MPDU of the k-1th subframe and before the delimiter of the kth subframe is the same as the length of the part where the MPDU of the kth subframe is located at the delimiter of the kth subframe The sum of the lengths of the following parts, the second length indication information is used to indicate that the MPDU of the k+1th subframe is moved to after the MPDU of the kth subframe, and the location of the k+1th subframe The length of the part before the delimiter; or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to after the MPDU of the k-1th subframe, and the location of the kth subframe The sum of the length of the part before the delimiter and the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information is used to indicate that the kth subframe The MPDU of the frame is moved to the length of the part after the MPDU of the k-1th subframe and before the delimiter of the kth subframe; or, the first length indication information is used to indicate that the kth subframe The length of the part where the MPDU of the frame is moved to after the MPDU of the k-1th subframe and before the delimiter of the kth subframe is the same as the length of the part where the MPDU of the kth subframe is located in the kth subframe sum of the lengths of the part after the delimiter, and the second length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe. 10.一种数据处理方法,其特征在于,用于接收端,所述数据处理方法包括:10. A data processing method, characterized in that, for a receiving end, the data processing method comprises: 接收发送端发送的聚合媒体接入控制协议数据单元A-MPDU,所述A-MPDU包括y个子帧,每个所述子帧包括定界符和数据部分,每个所述子帧的数据部分的长度均大于等于零,每个所述子帧的定界符的长度均为x,x≥1,x为整数,所述定界符中包括第一长度指示信息和第二长度指示信息,所述数据部分包括媒体接入控制协议数据单元MPDU,每两个所述子帧的定界符之间的数据部分的长度均为x的整数倍,y≥2,y为整数;Receive the aggregated media access control protocol data unit A-MPDU sent by the sending end, the A-MPDU includes y subframes, each of the subframes includes a delimiter and a data part, and the data part of each of the subframes The lengths are greater than or equal to zero, the length of the delimiter of each subframe is x, x≥1, x is an integer, and the delimiter includes the first length indication information and the second length indication information, so The data part includes a media access control protocol data unit MPDU, the length of the data part between the delimiters of each two subframes is an integer multiple of x, y≥2, and y is an integer; 依次对所述多个子帧中的子帧以长度x为单位进行解析处理得到多个MPDU,其中,第k个子帧为所述y个子帧中的任意一个,1≤k≤y,k为整数,所述解析处理包括对第k个子帧进行第一解析处理:根据所述第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从所述第k个子帧的数据部分中获取所述第k个子帧的MPDU的第一部分,从第k+1个子帧的数据部分中获取所述第k个子帧的MPDU的第二部分,将所述第一部分和所述第二部分合并,组成所述第k个子帧的MPDU,此时1≤k≤y-1;Analyzing and processing the subframes in the plurality of subframes in units of length x in order to obtain a plurality of MPDUs, wherein the kth subframe is any one of the y subframes, 1≤k≤y, and k is an integer , the parsing process includes performing a first parsing process on the kth subframe: according to the first length indication information and the second length indication information in the delimiter of the kth subframe, from the kth subframe Obtaining the first part of the MPDU of the kth subframe in the data part, obtaining the second part of the MPDU of the kth subframe from the data part of the k+1th subframe, and combining the first part with the The two parts are combined to form the MPDU of the kth subframe, at this time 1≤k≤y-1; 其中,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k+1个子帧的MPDU之前、所述第k+1个子帧的定界符之后的部分的长度与所述第k个子帧的MPDU位于所述第k+1个子帧的定界符之前的部分的长度之和,所述第二长度指示信息用于指示第k-1个子帧的MPDU移至所述第k个子帧的MPDU之前、所述第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the part before the MPDU of the k+1th subframe and after the delimiter of the k+1th subframe The sum of the length and the length of the part of the MPDU of the kth subframe located before the delimiter of the k+1th subframe, the second length indication information is used to indicate that the MPDU of the k-1th subframe is moved The length of the part before the MPDU of the kth subframe and after the delimiter of the kth subframe. 11.根据权利要求10所述的数据处理方法,其特征在于,11. The data processing method according to claim 10, characterized in that, 所述定界符中还包括填充标识,所述解析处理还包括:The delimiter also includes a filling identifier, and the parsing process also includes: 检测所述第k个子帧中的填充标识;Detecting a filling identifier in the kth subframe; 当检测出所述填充标识指示所述第k个子帧中不存在所述填充位时执行所述第一解析处理;Executing the first parsing process when it is detected that the padding flag indicates that the padding bit does not exist in the kth subframe; 当检测出所述填充标识指示所述第k个子帧中存在所述填充位,则对所述第k个子帧执行第二解析处理:根据所述第k个子帧的定界符中的第一长度指示信息与第二长度指示信息,在所述第k个子帧的数据部分中,获取与所述第k个子帧的定界符的距离为e,且长度为f的部分,作为所述第k个子帧的MPDU,e为所述第k个子帧的定界符中的第二长度指示信息所指示的长度,f为所述第k个子帧的定界符中的第一长度指示信息所指示的长度。When it is detected that the padding flag indicates that the padding bit exists in the kth subframe, the second parsing process is performed on the kth subframe: according to the first in the delimiter of the kth subframe In the length indication information and the second length indication information, in the data part of the kth subframe, the part with a distance of e from the delimiter of the kth subframe and a length of f is obtained as the part of the kth subframe For the MPDU of the k subframe, e is the length indicated by the second length indication information in the delimiter of the kth subframe, and f is the length indicated by the first length indication information in the delimiter of the kth subframe indicated length. 12.一种数据处理装置,其特征在于,所述数据处理装置用于发送端,所述装置包括:12. A data processing device, characterized in that the data processing device is used for a sending end, and the device comprises: 生成单元,用于根据多个媒体接入控制协议数据单元MPDU生成聚合媒体接入控制协议数据单元A-MPDU,所述A-MPDU包括y个子帧,每个所述子帧包括定界符和数据部分,所述数据部分包括所述MPDU,每个所述子帧的数据部分的长度均大于等于零,每个所述子帧的定界符的长度均为x字节,x≥1,x为整数,y≥2,y为整数;A generating unit, configured to generate an aggregated media access control protocol data unit A-MPDU according to a plurality of media access control protocol data units MPDU, the A-MPDU includes y subframes, and each of the subframes includes a delimiter and A data part, the data part includes the MPDU, the length of the data part of each subframe is greater than or equal to zero, and the length of the delimiter of each subframe is x bytes, x≥1, x is an integer, y≥2, and y is an integer; 第一处理单元,用于在第k个子帧是非空子帧,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍时,对所述第k个子帧进行第一处理,所述第一处理使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,1≤k≤y,k为整数;The first processing unit is configured to be a non-empty subframe in the kth subframe, and the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer multiple of x , the first processing is performed on the kth subframe, and the first processing makes the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe be x Integer multiple, 1≤k≤y, k is an integer; 其中,当存在第k+1个子帧且是非空子帧时,对第k个子帧的第一处理的过程包括:将位于第k+1个子帧的MPDU的头部的长度为m的部分移至位于第k个子帧的定界符之后的所述第k个子帧的MPDU之后、所述第k+1个子帧的定界符之前,使得位于所述第k个子帧的定界符之后、所述第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,其中,0<m≤x-1,m为整数;Wherein, when there is a k+1th subframe and it is a non-empty subframe, the process of the first processing of the kth subframe includes: moving the part of the length m of the head of the MPDU located in the k+1th subframe to After the MPDU of the kth subframe after the delimiter of the kth subframe, before the delimiter of the k+1th subframe, so that after the delimiter of the kth subframe, the The length of the data part before the delimiter of the k+1th subframe is an integer multiple of x, wherein, 0<m≤x-1, m is an integer; 发送单元,用于向接收端发送处理后的所述A-MPDU,以便于所述接收端根据处理后的所述A-MPDU解析得到所述多个MPDU。The sending unit is configured to send the processed A-MPDU to the receiving end, so that the receiving end can obtain the multiple MPDUs by analyzing the processed A-MPDU. 13.根据权利要求12所述的数据处理装置,其特征在于,当第k个子帧是最后一个子帧或存在第k+1个子帧且是空子帧时,所述对第k个子帧的第一处理的过程包括:13. The data processing device according to claim 12, wherein when the kth subframe is the last subframe or there is a k+1th subframe and is an empty subframe, the kth subframe's A treatment process includes: 在位于所述第k个子帧的定界符之后的所述第k个子帧的MPDU之后添加长度为Q的填充位,使得所述填充位的长度Q与所述位于所述第k个子帧的定界符之后的所述第k个子帧的MPDU的长度之和等于所述x的整数倍,其中,0<Q≤x-1,Q为整数。After the MPDU of the kth subframe after the delimiter of the kth subframe, a padding bit with a length of Q is added, so that the length Q of the padding bit is the same as that of the MPDU located in the kth subframe The sum of the lengths of the MPDUs of the kth subframe after the delimiter is equal to an integer multiple of x, where 0<Q≤x−1, and Q is an integer. 14.根据权利要求12或13所述的数据处理装置,其特征在于,14. The data processing device according to claim 12 or 13, wherein: 当k≥2时,第k个子帧的定界符中包括第一长度指示信息和第二长度指示信息;When k≥2, the delimiter of the kth subframe includes first length indication information and second length indication information; 其中,所述第一长度指示信息用于指示所述第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度,所述第二长度指示信息用于指示所述第k个子帧的MPDU移至第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度;Wherein, the first length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication information is used to indicate the length of the MPDU of the kth subframe The MPDU of the frame is moved to the length of the part after the MPDU of the k-1th subframe and before the delimiter of the kth subframe; 或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k+1个子帧的MPDU移至所述第k个子帧的MPDU之后、所述第k+1个子帧的定界符之前的部分的长度;Alternatively, the first length indication information is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe. The sum of the lengths of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication information is used to indicate that the MPDU of the k+1th subframe is moved to the The length of the part after the MPDU of the kth subframe and before the delimiter of the k+1th subframe; 或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度;Alternatively, the first length indication information is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe. The sum of the lengths of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information is used to indicate that the MPDU of the kth subframe is moved to the The length of the part after the MPDU of the k-1 subframe and before the delimiter of the kth subframe; 或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度。Alternatively, the first length indication information is used to indicate that the MPDU of the kth subframe is moved after the MPDU of the k-1th subframe and before the delimiter of the kth subframe. The sum of the lengths of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information is used to indicate that the MPDU of the kth subframe is located in the kth subframe The length of the part after the delimiter of subframes. 15.一种数据处理装置,其特征在于,所述数据处理装置用于发送端,所述装置包括:15. A data processing device, characterized in that, the data processing device is used for a sending end, and the device comprises: 生成单元,用于根据多个媒体接入控制协议数据单元MPDU生成聚合媒体接入控制协议数据单元A-MPDU,所述A-MPDU包括y个子帧,每个所述子帧包括定界符和数据部分,所述数据部分包括所述MPDU,每个所述子帧的数据部分的长度均大于等于零,每个所述子帧的定界符的长度均为x,x≥1,x为整数,y≥2,y为整数;A generating unit, configured to generate an aggregated media access control protocol data unit A-MPDU according to a plurality of media access control protocol data units MPDU, the A-MPDU includes y subframes, and each of the subframes includes a delimiter and A data part, the data part includes the MPDU, the length of the data part of each subframe is greater than or equal to zero, and the length of the delimiter of each subframe is x, where x≥1, and x is an integer , y≥2, y is an integer; 第二处理单元,用于在第k个子帧是非空子帧,且位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度不为x的整数倍时,对所述第k个子帧进行第二处理,所述第二处理使得位于第k个子帧的定界符之后、第k+1个子帧的定界符之前的数据部分的长度为x的整数倍,1≤k≤y,k为整数;The second processing unit is used for the kth subframe is a non-empty subframe, and the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe is not an integer multiple of x , the second processing is performed on the kth subframe, and the second processing makes the length of the data part after the delimiter of the kth subframe and before the delimiter of the k+1th subframe be x Integer multiple, 1≤k≤y, k is an integer; 其中,当存在第k+1个子帧且是非空子帧时,对第k个子帧的第二处理的过程包括:将位于第k个子帧的MPDU的尾部的长度为m的部分移至第k+1个子帧的MPDU之前、第k+1个子帧的定界符之后,使得位于第k个子帧的定界符之后、第k+1个定界符之前的数据部分的长度为x的整数倍,其中,0≤m≤x-1,m为整数;Wherein, when there is a k+1th subframe and it is a non-empty subframe, the process of the second processing of the kth subframe includes: moving the part with a length of m at the end of the MPDU of the kth subframe to the k+th subframe Before the MPDU of 1 subframe and after the delimiter of the k+1th subframe, the length of the data part after the delimiter of the kth subframe and before the k+1th delimiter is an integer multiple of x , where, 0≤m≤x-1, m is an integer; 发送单元,用于向接收端发送处理后的所述A-MPDU,以便于所述接收端根据处理后的所述A-MPDU解析得到所述多个MPDU。The sending unit is configured to send the processed A-MPDU to the receiving end, so that the receiving end can obtain the multiple MPDUs by analyzing the processed A-MPDU. 16.根据权利要求15所述的数据处理装置,其特征在于,当第k个子帧是最后一个子帧或存在第k+1个子帧且是空子帧时,所述对第k个子帧的第二处理的过程包括:16. The data processing device according to claim 15, wherein when the kth subframe is the last subframe or there is a k+1th subframe and is an empty subframe, the kth subframe's The second processing process includes: 在位于所述第k个子帧的定界符之后的所述第k个子帧的MPDU之后添加长度为Q的填充位,使得第k-1个子帧的MPDU移至所述第k个子帧的MPDU之前、所述第k个子帧的定界符之后的部分的长度、所述填充位的长度Q与所述第k个子帧的MPDU的长度之和等于所述x的整数倍,其中,0<Q≤x-1,Q为整数。After the MPDU of the kth subframe located after the delimiter of the kth subframe, a padding bit with a length of Q is added, so that the MPDU of the k-1th subframe is moved to the MPDU of the kth subframe The sum of the length of the part before and after the delimiter of the kth subframe, the length Q of the padding bit, and the length of the MPDU of the kth subframe is equal to an integer multiple of x, where 0< Q≤x-1, Q is an integer. 17.根据权利要求15或16所述的数据处理装置,其特征在于,17. The data processing device according to claim 15 or 16, wherein: 当k≥2时,第k个子帧的定界符中包括第一长度指示信息和第二长度指示信息;When k≥2, the delimiter of the kth subframe includes first length indication information and second length indication information; 其中,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k+1个子帧的MPDU之前、所述第k+1个子帧的定界符之后的部分的长度与所述第k个子帧的MPDU位于所述第k+1个子帧的定界符之前的部分的长度之和,所述第二长度指示信息用于指示第k-1个子帧的MPDU移至所述第k个子帧的MPDU之前、所述第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the part before the MPDU of the k+1th subframe and after the delimiter of the k+1th subframe The sum of the length and the length of the part of the MPDU of the kth subframe located before the delimiter of the k+1th subframe, the second length indication information is used to indicate that the MPDU of the k-1th subframe is moved The length of the part before the MPDU of the kth subframe and after the delimiter of the kth subframe. 18.根据权利要求17所述的数据处理装置,其特征在于,18. The data processing device according to claim 17, wherein: 所述每个子帧的定界符中还包括用于指示所述每个子帧位置的位置标识,当第k个子帧是非空子帧且第k个子帧是最后一个子帧,或第k个子帧是非空子帧且存在第k+1个子帧且第k+1个子帧是空子帧时,所述多个子帧中除所述第k个子帧之外的其他子帧定界符中的位置标识与所述第k个子帧定界符中的位置标识不同。The delimiter of each subframe also includes a position identifier for indicating the position of each subframe, when the kth subframe is a non-empty subframe and the kth subframe is the last subframe, or the kth subframe is a non-empty subframe When there is an empty subframe and there is a k+1th subframe and the k+1th subframe is an empty subframe, the position identifiers in the delimiters of other subframes in the multiple subframes except the kth subframe are consistent with the The location identifiers in the kth subframe delimiter are different. 19.根据权利要求17或18所述的数据处理装置,其特征在于,19. The data processing device according to claim 17 or 18, wherein: 所述每个子帧的定界符中还包括用于指示所述每个子帧中是否存在填充位的填充标识。The delimiter of each subframe further includes a stuffing flag used to indicate whether there are stuffing bits in each subframe. 20.一种数据处理装置,其特征在于,所述数据处理装置用于接收端,所述数据处理装置包括:20. A data processing device, characterized in that, the data processing device is used for a receiving end, and the data processing device comprises: 接收单元,用于接收发送端发送的聚合媒体接入控制协议数据单元A-MPDU,所述A-MPDU包括y个子帧,每个所述子帧包括定界符和数据部分,每个所述子帧的数据部分的长度均大于等于零,每个所述子帧的定界符的长度均为x,x≥1,x为整数,所述定界符中包括第一长度指示信息和第二长度指示信息,所述数据部分包括媒体接入控制协议数据单元MPDU,每两个所述子帧的定界符之间的数据部分的长度均为x的整数倍,y≥2,y为整数;The receiving unit is configured to receive the aggregated media access control protocol data unit A-MPDU sent by the sending end, the A-MPDU includes y subframes, each of which includes a delimiter and a data part, and each of the The length of the data part of the subframe is greater than or equal to zero, the length of the delimiter of each subframe is x, x≥1, x is an integer, and the delimiter includes the first length indication information and the second Length indication information, the data part includes a media access control protocol data unit MPDU, the length of the data part between the delimiters of each two subframes is an integer multiple of x, y≥2, and y is an integer ; 解析单元,用于依次对所述多个子帧中的子帧以长度x为单位进行解析处理得到多个MPDU,其中,第k个子帧为所述y个子帧中的任意一个,1≤k≤y,k为整数,对第k个子帧的解析处理过程包括:根据所述第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从第k-1个子帧的数据部分中获取所述第k个子帧的MPDU的第一部分,从所述第k个子帧的数据部分中获取所述第k个子帧的MPDU的第二部分,将所述第一部分和所述第二部分合并,组成所述第k个子帧的MPDU,此时2≤k≤y;An analysis unit, configured to sequentially analyze and process the subframes in the plurality of subframes in units of length x to obtain a plurality of MPDUs, wherein the kth subframe is any one of the y subframes, 1≤k≤ y, k is an integer, and the parsing process for the kth subframe includes: according to the first length indication information and the second length indication information in the delimiter of the kth subframe, from the k-1th subframe Obtaining the first part of the MPDU of the kth subframe in the data part, obtaining the second part of the MPDU of the kth subframe from the data part of the kth subframe, combining the first part with the The two parts are combined to form the MPDU of the kth subframe, at this time 2≤k≤y; 其中,所述第一长度指示信息用于指示所述第k个子帧的MPDU位于第k个子帧的定界符之后的部分的长度,所述第二长度指示信息用于指示所述第k个子帧的MPDU移至第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度;或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k+1个子帧的MPDU移至所述第k个子帧的MPDU之后、所述第k+1个子帧的定界符之前的部分的长度;或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度;或者,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k-1个子帧的MPDU之后、所述第k个子帧的定界符之前的部分的长度与所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度之和,所述第二长度指示信息用于指示所述第k个子帧的MPDU位于所述第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, and the second length indication information is used to indicate the length of the MPDU of the kth subframe The MPDU of the frame is moved to the length of the part after the MPDU of the k-1th subframe and before the delimiter of the kth subframe; or, the first length indication information is used to indicate the length of the kth subframe The length of the part where the MPDU is moved to after the MPDU of the k-1th subframe and before the delimiter of the kth subframe is the same as the length of the part where the MPDU of the kth subframe is located at the delimiter of the kth subframe The sum of the lengths of the following parts, the second length indication information is used to indicate that the MPDU of the k+1th subframe is moved to after the MPDU of the kth subframe, and the location of the k+1th subframe The length of the part before the delimiter; or, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to after the MPDU of the k-1th subframe, and the location of the kth subframe The sum of the length of the part before the delimiter and the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe, the second length indication information is used to indicate that the kth subframe The MPDU of the frame is moved to the length of the part after the MPDU of the k-1th subframe and before the delimiter of the kth subframe; or, the first length indication information is used to indicate that the kth subframe The length of the part where the MPDU of the frame is moved to after the MPDU of the k-1th subframe and before the delimiter of the kth subframe is the same as the length of the part where the MPDU of the kth subframe is located in the kth subframe sum of the lengths of the part after the delimiter, and the second length indication information is used to indicate the length of the part of the MPDU of the kth subframe after the delimiter of the kth subframe. 21.一种数据处理装置,其特征在于,所述数据处理装置用于接收端,所述数据处理装置包括:21. A data processing device, characterized in that, the data processing device is used for a receiving end, and the data processing device comprises: 接收单元,用于接收发送端发送的聚合媒体接入控制协议数据单元A-MPDU,所述A-MPDU包括y个子帧,每个所述子帧包括定界符和数据部分,每个所述子帧的数据部分的长度均大于等于零,每个所述子帧的定界符的长度均为x,x≥1,x为整数,所述定界符中包括第一长度指示信息和第二长度指示信息,所述数据部分包括媒体接入控制协议数据单元MPDU,每两个所述子帧的定界符之间的数据部分的长度均为x的整数倍,y≥2,y为整数;The receiving unit is configured to receive the aggregated media access control protocol data unit A-MPDU sent by the sending end, the A-MPDU includes y subframes, each of which includes a delimiter and a data part, and each of the The length of the data part of the subframe is greater than or equal to zero, the length of the delimiter of each subframe is x, x≥1, x is an integer, and the delimiter includes the first length indication information and the second Length indication information, the data part includes a media access control protocol data unit MPDU, the length of the data part between the delimiters of each two subframes is an integer multiple of x, y≥2, and y is an integer ; 解析单元,用于依次对所述多个子帧中的子帧以长度x为单位进行解析处理得到多个MPDU,其中,第k个子帧为所述y个子帧中的任意一个,1≤k≤y,k为整数,所述解析单元包括:An analysis unit, configured to sequentially analyze and process the subframes in the plurality of subframes in units of length x to obtain a plurality of MPDUs, wherein the kth subframe is any one of the y subframes, 1≤k≤ y, k are integers, and the parsing unit includes: 第一解析单元,用于对第k个子帧执行第一解析处理:根据所述第k个子帧的定界符中的第一长度指示信息和第二长度指示信息,从所述第k个子帧的数据部分中获取所述第k个子帧的MPDU的第一部分,从第k+1个子帧的数据部分中获取所述第k个子帧的MPDU的第二部分,将所述第一部分和所述第二部分合并,组成所述第k个子帧的MPDU,此时1≤k≤y-1;The first parsing unit is configured to perform a first parsing process on the kth subframe: according to the first length indication information and the second length indication information in the delimiter of the kth subframe, from the kth subframe Obtain the first part of the MPDU of the kth subframe from the data part of the k+1th subframe, obtain the second part of the MPDU of the kth subframe from the data part of the k+1th subframe, and combine the first part and the The second part is combined to form the MPDU of the kth subframe, at this time 1≤k≤y-1; 其中,所述第一长度指示信息用于指示所述第k个子帧的MPDU移至所述第k+1个子帧的MPDU之前、所述第k+1个子帧的定界符之后的部分的长度与所述第k个子帧的MPDU位于所述第k+1个子帧的定界符之前的部分的长度之和,所述第二长度指示信息用于指示第k-1个子帧的MPDU移至所述第k个子帧的MPDU之前、所述第k个子帧的定界符之后的部分的长度。Wherein, the first length indication information is used to indicate that the MPDU of the kth subframe is moved to the part before the MPDU of the k+1th subframe and after the delimiter of the k+1th subframe The sum of the length and the length of the part of the MPDU of the kth subframe located before the delimiter of the k+1th subframe, the second length indication information is used to indicate that the MPDU of the k-1th subframe is moved The length of the part before the MPDU of the kth subframe and after the delimiter of the kth subframe. 22.根据权利要求21所述的数据处理装置,其特征在于,22. The data processing device according to claim 21, wherein: 所述定界符中还包括填充标识,所述解析单元还包括:The delimiter also includes a padding identifier, and the parsing unit also includes: 检测单元,用于检测所述第k个子帧中的填充标识;a detection unit, configured to detect the filling identifier in the kth subframe; 所述第一解析单元,具体用于在所述检测单元检测出所述第k个子帧中不存在所述填充位时,对所述第k个子帧进行所述第一解析处理;The first parsing unit is specifically configured to perform the first parsing process on the kth subframe when the detection unit detects that the filling bit does not exist in the kth subframe; 第二解析单元,用于在所述检测单元检测出所述填充标识指示所述第k个子帧中存在所述填充位时,对所述第k个子帧执行第二解析处理:根据所述第k个子帧的定界符中的第一长度指示信息与第二长度指示信息,在所述第k个子帧的数据部分中,获取与所述第k个子帧的定界符的距离为e,且长度为f的部分,作为所述第k个子帧的MPDU,e为所述第k个子帧的定界符中的第二长度指示信息所指示的长度,f为所述第k个子帧的定界符中的第一长度指示信息所指示的长度。The second parsing unit is configured to perform a second parsing process on the kth subframe when the detection unit detects that the stuffing flag indicates that the stuffing bits exist in the kth subframe: according to the kth subframe The first length indication information and the second length indication information in the delimiter of the k subframe, in the data part of the kth subframe, the distance from the delimiter of the kth subframe is e, And the part with a length of f is used as the MPDU of the kth subframe, e is the length indicated by the second length indication information in the delimiter of the kth subframe, and f is the length of the kth subframe The first length in the delimiter indicates the length indicated by the information. 23.一种数据处理系统,其特征在于,所述数据处理系统包括:发送端和接收端,23. A data processing system, characterized in that the data processing system comprises: a sending end and a receiving end, 所述发送端包括权利要求12至19任一权利要求所述的数据处理装置;The sending end includes the data processing device according to any one of claims 12 to 19; 所述接收端包括权利要求20至22任一权利要求所述的数据处理装置。The receiving end includes the data processing device according to any one of claims 20 to 22.
CN201510201161.1A 2015-04-24 2015-04-24 Data processing method, device and system Active CN106161410B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510201161.1A CN106161410B (en) 2015-04-24 2015-04-24 Data processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510201161.1A CN106161410B (en) 2015-04-24 2015-04-24 Data processing method, device and system

Publications (2)

Publication Number Publication Date
CN106161410A true CN106161410A (en) 2016-11-23
CN106161410B CN106161410B (en) 2019-07-19

Family

ID=57347140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510201161.1A Active CN106161410B (en) 2015-04-24 2015-04-24 Data processing method, device and system

Country Status (1)

Country Link
CN (1) CN106161410B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108123775A (en) * 2016-11-29 2018-06-05 华为技术有限公司 The method and apparatus of transmission packet
CN111064727A (en) * 2019-12-18 2020-04-24 电信科学技术第五研究所有限公司 High-performance software analysis method for frame format streaming signal data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120163354A1 (en) * 2010-12-23 2012-06-28 Robert Stacey Single mpdu frame signaling
CN102595494A (en) * 2012-02-07 2012-07-18 北京新岸线无线技术有限公司 Data transmission method and data transmission device
US20120314653A1 (en) * 2011-06-08 2012-12-13 Yong Liu Efficient Transmission for Low Data Rate WLAN
CN103069872A (en) * 2010-08-11 2013-04-24 高通股份有限公司 Signaling for extended mpdu, a-mpdu and a-msdu frame formats
CN103248449A (en) * 2012-02-02 2013-08-14 中兴通讯股份有限公司 Code element delimiting method and device for parallel data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103069872A (en) * 2010-08-11 2013-04-24 高通股份有限公司 Signaling for extended mpdu, a-mpdu and a-msdu frame formats
US20120163354A1 (en) * 2010-12-23 2012-06-28 Robert Stacey Single mpdu frame signaling
US20120314653A1 (en) * 2011-06-08 2012-12-13 Yong Liu Efficient Transmission for Low Data Rate WLAN
CN103248449A (en) * 2012-02-02 2013-08-14 中兴通讯股份有限公司 Code element delimiting method and device for parallel data
CN102595494A (en) * 2012-02-07 2012-07-18 北京新岸线无线技术有限公司 Data transmission method and data transmission device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
侯丽俊: "无线局域网MAC层帧聚合技术的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108123775A (en) * 2016-11-29 2018-06-05 华为技术有限公司 The method and apparatus of transmission packet
CN108123775B (en) * 2016-11-29 2020-09-29 华为技术有限公司 Method and device for transmitting data packets
US10904121B2 (en) 2016-11-29 2021-01-26 Huawei Technologies Co., Ltd. Data packet transmission method and device
CN111064727A (en) * 2019-12-18 2020-04-24 电信科学技术第五研究所有限公司 High-performance software analysis method for frame format streaming signal data
CN111064727B (en) * 2019-12-18 2022-02-11 电信科学技术第五研究所有限公司 High-performance software analysis method for frame format streaming signal data

Also Published As

Publication number Publication date
CN106161410B (en) 2019-07-19

Similar Documents

Publication Publication Date Title
JP7051914B2 (en) Methods and equipment for transmitting wireless local area network information
CN111698067B (en) Data transmission method and device
US9949256B2 (en) Method and apparatus for generating, transmitting, and receiving a data frame in a wireless communication system
WO2020048280A1 (en) Method and apparatus for transmitting data
EP3800801A2 (en) Method and apparatus for conveying antenna configuration information
CN108123775B (en) Method and device for transmitting data packets
EP3576478A1 (en) Data sending method, receiving method and related equipment
US7697535B2 (en) Error resilient protocol data unit boundary detection
RU2467477C2 (en) Method and apparatus for conveying antenna configuration information via masking
CN101658008B (en) Apparatus and method for providing dynamic sharing of resources between uplink and downlink allocations for separately coded users
KR20060071831A (en) Mac header compression for use in collecting frames
CN112423399B (en) Data transmission method and device
WO2012151976A1 (en) Method and device for judging error detection
TWI734829B (en) Method for transmitting data, receiving equipment, and sending equipment
CN105939181B (en) Method and electronic device for use with aggregated data frame structure
JP2014531836A (en) Downlink control information transmission method, blind detection method, base station, and terminal device
CN103139844B (en) The analytic method of control information and terminal
CN112217776A (en) Data transmission and reception method and device
CN106161410B (en) Data processing method, device and system
KR20110121597A (en) Apparatus and method for encoding and decoding control information in a medium access control protocol data unit
CN119544413A (en) Downlink control information detection method, device, electronic device, storage medium and computer program product
CN102957494B (en) Method for blind test calibration and related devices
CN111294954A (en) Time slot indication method, terminal device, network device and computer storage medium
CN115052358B (en) PDCCH blind detection method, device, electronic equipment and storage medium
CN106888072B (en) Data transmission method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant