[go: up one dir, main page]

CN108696900A - A kind of packaging method of data packet, analytic method, device and equipment - Google Patents

A kind of packaging method of data packet, analytic method, device and equipment Download PDF

Info

Publication number
CN108696900A
CN108696900A CN201710232334.5A CN201710232334A CN108696900A CN 108696900 A CN108696900 A CN 108696900A CN 201710232334 A CN201710232334 A CN 201710232334A CN 108696900 A CN108696900 A CN 108696900A
Authority
CN
China
Prior art keywords
pdu
sdu
data packet
data
field
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.)
Pending
Application number
CN201710232334.5A
Other languages
Chinese (zh)
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.)
China Mobile Communications Group Co Ltd
China Mobile Communication Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communication 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 China Mobile Communications Group Co Ltd, China Mobile Communication Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710232334.5A priority Critical patent/CN108696900A/en
Priority to PCT/CN2018/081891 priority patent/WO2018188510A1/en
Publication of CN108696900A publication Critical patent/CN108696900A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of packaging method of data packet, analytic method, device and equipment, which includes:Obtain multiple Service Data Unit SDU to be packaged;According to the transformat of the protocol Data Unit PDU of Packet Data Convergence Protocol PDCP, multiple SDU are packaged into PDU.The present invention has reached the technique effect for reducing RLC PDU header overheads and MAC PDU header overheads, and then effectively improve the flexibility of business processing while reducing the PDU quantity of PDCP.The present invention solves in existing 5G technologies, and rlc layer does not have cascade function, increases the header overhead of RLC and MAC, the problem of reducing the flexibility of data transmission bauds and business processing.

Description

一种数据包的封装方法、解析方法、装置及设备Encapsulation method, analysis method, device and equipment of a data packet

技术领域technical field

本发明涉及移动通信技术领域,特别涉及一种数据包的封装方法、解析方法、装置及设备。The invention relates to the technical field of mobile communication, in particular to a data packet encapsulation method, analysis method, device and equipment.

背景技术Background technique

目前长期演进技术(Long Term Evolution,LTE)系统中,分组数据汇聚协议(Packet Data Convergence Protocol,PDCP)不具有级联功能。PDCP针对应用层下发的数据包都会分配PDCP序列(Serial Number,SN)号,并进行加密、头压缩增加PDCP头开销后,形成PDCP协议数据单元(Protocol Data Unit,PDU),然后发送给无线链路层控制协议(RadioLink Control,RLC)。RLC将多个PDCP PDU在一个RLC PDU中发送,完成包级联功能。In the current Long Term Evolution (Long Term Evolution, LTE) system, the Packet Data Convergence Protocol (Packet Data Convergence Protocol, PDCP) does not have a cascading function. PDCP assigns a PDCP serial number (Serial Number, SN) number to the data packets sent by the application layer, and encrypts and compresses the header to increase the PDCP header overhead to form a PDCP protocol data unit (Protocol Data Unit, PDU), and then sends it to the wireless Link layer control protocol (RadioLink Control, RLC). RLC sends multiple PDCP PDUs in one RLC PDU to complete the packet concatenation function.

然而,在第五代移动通信技术(5th-Generation,5G)最新的进展中,RLC层不再具有级联功能,即每个PDCP PDU只对应于一个RLC PDU。每个RLC PDU中只包含1个PDCP PDU。由于对于每个PDCP PDU都需要产生一个RLC PDU头开销和介质访问控制(Medium AccessControl,MAC)PDU头开销,所以会带来更多的开销,降低了数据传输速度以及业务处理的灵活性。However, in the latest progress of the fifth generation mobile communication technology (5th-Generation, 5G), the RLC layer no longer has a concatenation function, that is, each PDCP PDU corresponds to only one RLC PDU. Each RLC PDU contains only 1 PDCP PDU. Since each PDCP PDU needs to generate an RLC PDU header overhead and a Medium Access Control (Medium Access Control, MAC) PDU header overhead, more overhead will be brought, reducing the data transmission speed and the flexibility of service processing.

发明内容Contents of the invention

本发明提供了一种数据包的封装方法、解析方法、装置及设备,其目的是为了解决现有的5G技术中,RLC层不具有级联功能,增加了RLC和MAC的头开销,降低了数据传输速度以及业务处理的灵活性的问题。The present invention provides a data packet encapsulation method, parsing method, device and equipment, the purpose of which is to solve the problem that in the existing 5G technology, the RLC layer does not have a concatenation function, which increases the header overhead of RLC and MAC, and reduces the Data transmission speed and flexibility of business processing.

为了实现上述目的,本发明的实施例提供了一种数据包的封装方法,该封装方法包括:In order to achieve the above object, an embodiment of the present invention provides a method for encapsulating data packets, the encapsulation method comprising:

获取待封装的多个业务数据单元SDU;Obtain multiple service data unit SDUs to be encapsulated;

根据分组数据汇聚协议PDCP的协议数据单元PDU的传输格式,将多个SDU封装成PDU。According to the transmission format of the protocol data unit PDU of the packet data convergence protocol PDCP, multiple SDUs are encapsulated into a PDU.

优选地,根据分组数据汇聚协议PDCP的协议数据单元PDU的传输格式,将多个SDU封装成PDU的步骤包括:Preferably, according to the transmission format of the protocol data unit PDU of the packet data convergence protocol PDCP, the step of encapsulating a plurality of SDUs into a PDU includes:

根据PDU的传输格式,将多个SDU的数据包的长度信息添加在PDU数据包的预设字段中以及将多个SDU封装在PDU数据包的数据域字段中,得到封装后的PDU;或者According to the transmission format of the PDU, adding the length information of the data packets of multiple SDUs in the preset field of the PDU data packet and encapsulating the multiple SDUs in the data domain field of the PDU data packet to obtain the encapsulated PDU; or

根据PDU的传输格式,按照预设的多个SDU中每个SDU的长度信息,将多个SDU封装在PDU数据包的数据域字段中,得到封装后的PDU。According to the transmission format of the PDU, according to the preset length information of each SDU in the multiple SDUs, the multiple SDUs are encapsulated in the data field field of the PDU data packet to obtain the encapsulated PDU.

优选地,根据PDU的传输格式,将多个SDU的数据包的长度信息添加在PDU数据包的预设字段中以及将多个SDU封装在PDU数据包的数据域字段中,得到封装后的PDU的步骤包括:Preferably, according to the transmission format of the PDU, the length information of the data packets of multiple SDUs is added in the preset field of the PDU data packet and the multiple SDUs are encapsulated in the data domain field of the PDU data packet to obtain the encapsulated PDU The steps include:

根据PDU的传输格式,将多个SDU的数据包中的每个SDU的长度信息添加在PDU数据包的一连续的预设字段中,以及将多个SDU封装在PDU数据包的数据域字段中,得到封装后的PDU;或者According to the transmission format of the PDU, the length information of each SDU in the data packet of multiple SDUs is added in a continuous preset field of the PDU data packet, and the multiple SDUs are encapsulated in the data domain field of the PDU data packet , to get the encapsulated PDU; or

根据PDU的传输格式,将多个SDU封装在PDU数据包的数据域字段中,将多个SDU的数据包中的每个SDU的长度信息分别添加在该SDU的数据包的前面、并与该SDU相邻的一预设字段中,得到封装后的PDU。According to the transmission format of the PDU, multiple SDUs are encapsulated in the data domain field of the PDU data packet, and the length information of each SDU in the data packet of the multiple SDUs is respectively added in front of the data packet of the SDU, and the In a preset field adjacent to the SDU, the encapsulated PDU is obtained.

优选地,预设的多个SDU中每个SDU的长度信息由发送端通过预设信令发送给接收端或者由发送端和接收端预先约定。Preferably, the length information of each SDU in the preset plurality of SDUs is sent by the sending end to the receiving end through preset signaling, or is pre-agreed by the sending end and the receiving end.

优选地,封装后的PDU中还具有封装多个SDU的数量的字段,字段中携带有SDU的数量信息。Preferably, the encapsulated PDU further has a field for encapsulating the number of multiple SDUs, and the field carries information about the number of SDUs.

优选地,封装多个SDU的数量的字段位于PDU数据包的包头中。Preferably, the field encapsulating the number of multiple SDUs is located in the header of the PDU data packet.

优选地,封装后的PDU中还具有封装PDU的传输格式指示TFI;Preferably, the encapsulated PDU also has a transport format indication TFI of the encapsulated PDU;

TFI中携带有用于指示PDU数据包的长度信息对应的索引,索引是传输格式集合TFS包括的多个预设的PDU数据包的长度信息对应的索引。The TFI carries an index for indicating the length information of the PDU data packet, and the index is an index corresponding to the length information of multiple preset PDU data packets included in the transport format set TFS.

优选地,TFI为预先配置的或者依据发送端当前可传输的数据包的大小均值从TFS中选择的。Preferably, the TFI is pre-configured or selected from the TFS according to the average size of the currently transmittable data packets at the sending end.

优选地,发送端当前可传输的数据包的大小均值为:发送端当前所传输业务的平均速率与一时间间隔的乘积,时间间隔是PDU的发送时间与上一个PDU的发送时间之间的时间间隔。Preferably, the average size of the data packet currently transmittable by the sender is: the product of the average rate of the service currently transmitted by the sender and a time interval, and the time interval is the time between the sending time of the PDU and the sending time of the previous PDU interval.

优选地,TFS中所包含的预设的PDU数据包的长度信息为:N倍的应用层数据包大小与PDU的头开销的字节长度之和,其中N为正整数。Preferably, the preset length information of the PDU data packet contained in the TFS is: the sum of N times the size of the application layer data packet and the byte length of the header overhead of the PDU, where N is a positive integer.

为了实现上述目的,本发明的实施例还提供了一种数据包的解析方法,包括:In order to achieve the above object, an embodiment of the present invention also provides a method for parsing data packets, including:

接收封装有多个业务数据单元SDU的协议数据单元PDU数据包;receiving a protocol data unit PDU packet encapsulated with a plurality of service data units SDU;

根据PDU的传输格式,将PDU数据包解析成多个SDU。According to the transmission format of the PDU, the PDU data packet is parsed into multiple SDUs.

优选地,根据PDU的传输格式,将PDU数据包解析成多个SDU的步骤,包括:Preferably, according to the transmission format of the PDU, the step of parsing the PDU data packet into a plurality of SDUs includes:

获得多个SDU中每个SDU的长度信息;Obtain the length information of each SDU in multiple SDUs;

根据PDU的传输格式,以及每个SDU的长度信息,对PDU数据包进行解析,获得多个SDU。According to the transmission format of the PDU and the length information of each SDU, the PDU data packet is analyzed to obtain multiple SDUs.

优选地,获得多个SDU中每个SDU的长度信息的步骤,包括:Preferably, the step of obtaining the length information of each SDU in the multiple SDUs includes:

通过预先约定的方式或者通过接收到的携带有多个SDU的各SDU的数据包的长度信息的信令,获得多个SDU中每个SDU的长度信息;或者Obtain the length information of each SDU in the plurality of SDUs in a pre-agreed manner or through the received signaling carrying the length information of the data packets of the SDUs of the plurality of SDUs; or

根据PDU的传输格式,从PDU数据包的预设字段中获取多个SDU中每个SDU的长度信息。According to the transmission format of the PDU, the length information of each SDU in the multiple SDUs is obtained from a preset field of the PDU data packet.

优选地,预设字段为:PDU数据包的一连续的预设字段;或者在每一个SDU的数据包的前面、并与该SDU相邻的一预设字段。Preferably, the preset field is: a continuous preset field of the PDU data packet; or a preset field in front of each SDU data packet and adjacent to the SDU.

优选地,PDU数据包中还具有封装PDU的传输格式指示TFI,TFI中携带有用于指示PDU数据包的长度信息对应的索引,索引是传输格式集合TFS包括的多个预设的PDU数据包中的长度信息对应的索引;和/或Preferably, the PDU data packet also has a transport format indication TFI for encapsulating the PDU, and the TFI carries an index corresponding to the length information indicating the PDU data packet, and the index is the number of preset PDU data packets included in the transmission format set TFS. The index corresponding to the length information of ; and/or

PDU数据包中还具有多个SDU的数量的字段,字段中携带有SDU的数量信息。The PDU data packet also has a field for the number of multiple SDUs, and the field carries the information about the number of SDUs.

为了实现上述目的,本发明的实施例还提供了一种数据包的封装装置,包括:In order to achieve the above object, an embodiment of the present invention also provides a device for encapsulating data packets, including:

获取模块,用于获取待封装的多个业务数据单元SDU;An acquisition module, configured to acquire multiple service data units SDUs to be encapsulated;

封装模块,用于根据分组数据汇聚协议PDCP的协议数据单元PDU的传输格式,将多个SDU封装成PDU。The encapsulation module is used for encapsulating multiple SDUs into a PDU according to the transmission format of the protocol data unit PDU of the packet data convergence protocol PDCP.

为了实现上述目的,本发明的实施例还提供了一种发送端设备,包括上述数据包的封装装置。In order to achieve the above object, an embodiment of the present invention further provides a sender device, including the above data packet encapsulation device.

为了实现上述目的,本发明的实施例还提供了一种数据包的解析装置,包括:In order to achieve the above object, an embodiment of the present invention also provides a data packet parsing device, including:

接收模块,用于接收封装有多个业务数据单元SDU的协议数据单元PDU数据包;A receiving module, configured to receive a protocol data unit PDU packet encapsulated with a plurality of service data units SDU;

解析模块,用于根据PDU的传输格式,将PDU数据包解析成多个SDU。The parsing module is configured to parse the PDU data packet into multiple SDUs according to the transmission format of the PDU.

为了实现上述目的,本发明的实施例还提供了一种接收端设备,包括上述数据包的解析装置。In order to achieve the above object, an embodiment of the present invention further provides a receiver device, including the above data packet parsing apparatus.

本发明的上述方案至少包括以下有益效果:Above-mentioned scheme of the present invention comprises following beneficial effect at least:

本发明提供的数据包的封装方法、解析方法、装置及设备,通过在PDCP层将PDU与上层数据的SDU设置成一对多关系,即将PDCP PDU级联多个上层数据的SDU,有效地减少了PDCP PDU数量;而PDCP PDU都需要产生一个RLC PDU头开销和MAC PDU头开销,因此,在减少PDCP的PDU数量的同时,达到了减少RLC PDU头开销和MAC PDU头开销的技术效果,进而有效地提高业务处理的灵活性。本发明解决了现有的5G技术中,RLC层不具有级联功能,增加了RLC和MAC的头开销,降低了数据传输速度以及业务处理的灵活性的问题。The data packet encapsulation method, parsing method, device and equipment provided by the present invention, by setting the PDU and the SDU of the upper layer data into a one-to-many relationship at the PDCP layer, that is, the PDCP PDU is concatenated with a plurality of SDUs of the upper layer data, effectively reducing The number of PDCP PDUs; while PDCP PDUs need to generate an RLC PDU header overhead and a MAC PDU header overhead, therefore, while reducing the number of PDCP PDUs, the technical effect of reducing the RLC PDU header overhead and MAC PDU header overhead is achieved, thereby effectively Improve the flexibility of business processing. The invention solves the problem that in the existing 5G technology, the RLC layer does not have a cascading function, which increases the header overhead of RLC and MAC, and reduces the data transmission speed and the flexibility of business processing.

附图说明Description of drawings

图1表示本发明的实施例提供的数据包的封装方法的基本步骤流程图;Fig. 1 represents the flow chart of the basic steps of the encapsulation method of the data packet that the embodiment of the present invention provides;

图2表示本发明的第一示例的场景示意图;FIG. 2 shows a schematic diagram of a scene of a first example of the present invention;

图3表示本发明的又一实施例提供的数据包的封装方法的基本步骤流程图;Fig. 3 shows the flow chart of the basic steps of the encapsulation method of the data packet provided by another embodiment of the present invention;

图4表示本发明的第二示例的PDU数据包的示意图;Fig. 4 represents the schematic diagram of the PDU packet of the second example of the present invention;

图5表示本发明的又一实施例提供的数据包的封装方法的基本步骤流程图;FIG. 5 shows a flow chart of basic steps of a data packet encapsulation method provided by another embodiment of the present invention;

图6表示本发明的第三示例的PDU数据包的示意图;Fig. 6 represents the schematic diagram of the PDU packet of the third example of the present invention;

图7表示本发明的第四示例的PDU数据包的示意图;Fig. 7 shows the schematic diagram of the PDU packet of the 4th example of the present invention;

图8表示本发明的实施例提供的数据包的封装装置的框图;FIG. 8 shows a block diagram of a data packet encapsulation device provided by an embodiment of the present invention;

图9表示本发明的实施例提供的数据包的解析方法的基本步骤流程图;Fig. 9 shows the flow chart of the basic steps of the analysis method of the data packet provided by the embodiment of the present invention;

图10表示本发明的实施例提供的数据包的解析装置的框图。FIG. 10 shows a block diagram of a device for parsing data packets provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.

本发明针对现有的问题,提供了一种数据包的封装方法、解析方法、装置及设备。Aiming at the existing problems, the present invention provides a data packet encapsulation method, analysis method, device and equipment.

参见图1,本发明的实施例提供了一种数据包的封装方法,包括:Referring to Fig. 1, the embodiment of the present invention provides a kind of encapsulation method of data packet, comprises:

步骤101,获取待封装的多个业务数据单元SDU。Step 101, obtain multiple service data units SDUs to be encapsulated.

其中,业务数据单元(Service Data Unit,SDU),又称服务数据单元,是指定层的用户服务的数据集,传送到接收方的时候同一协议层时数据没有发生变化,即业务部分;然后发给下层之后,下层将其封装在PDU中发送出去。服务数据单元是从高层协议来的信息单元传送到低层协议。根据协议数据单元的数据的不同,送到接收端的指定层。Among them, the service data unit (Service Data Unit, SDU), also known as the service data unit, is the data set of the user service of the specified layer. After giving it to the lower layer, the lower layer encapsulates it in a PDU and sends it out. Service data units are information units from higher-level protocols that are transmitted to lower-level protocols. According to the data of the protocol data unit, it is sent to the designated layer of the receiving end.

PDU为协议数据单元,N层协议实体之间所传递的数据,通过数据发送/接收管理把用户提交的SDU以PDU的形式,通过下层通道发送到对端协议实体。在接收端再将PDU还原成SDU发送给接收端用户。PDU is a protocol data unit, the data transferred between N-layer protocol entities, through the data sending/receiving management, the SDU submitted by the user is sent to the peer protocol entity through the lower layer channel in the form of PDU. At the receiving end, the PDU is restored to SDU and sent to the receiving end user.

现有技术中,第N层SDU和上一层的PDU是一一对应的,即每个PDU包含一个SDU;而本发明的实施例中,将PDCP层的PDU与SDU设置成一对多关系,即每个PDU级联多个SDU,这样,减少了PDCP的PDU数量。In the prior art, there is a one-to-one correspondence between the SDU of the Nth layer and the PDU of the upper layer, that is, each PDU contains one SDU; and in the embodiment of the present invention, the PDU and the SDU of the PDCP layer are set into a one-to-many relationship, That is, each PDU is cascaded with multiple SDUs, thus reducing the number of PDUs in the PDCP.

而对于每个PDCP PDU都需要产生一个RLC PDU头开销和MAC PDU头开销,因此,在减少PDCP的PDU数量的同时,达到了减少RLC PDU头开销和MAC PDU头开销的技术效果,进而有效地提高业务处理的灵活性。For each PDCP PDU, an RLC PDU header overhead and a MAC PDU header overhead need to be generated. Therefore, while reducing the number of PDCP PDUs, the technical effect of reducing the RLC PDU header overhead and the MAC PDU header overhead is achieved, thereby effectively Improve the flexibility of business processing.

步骤102,根据分组数据汇聚协议PDCP的协议数据单元PDU的传输格式,将多个SDU封装成PDU。Step 102: Encapsulate a plurality of SDUs into a PDU according to the transmission format of the Protocol Data Unit PDU of the Packet Data Convergence Protocol PDCP.

其中,在发送端,需将将用户递交的SDU加上协议控制信息(Protocol ControlInterface,PCI),封装成PDU,发送给接收端;其中,PCI表示PDU中用来封装上层数据的头部,可能包含源服务访问点和目标服务访问点等,用来指明该数据报来自上层的哪个实体以及需要对等实体把它交往上层的哪个实体。Among them, at the sending end, it is necessary to add protocol control information (Protocol Control Interface, PCI) to the SDU submitted by the user, encapsulate it into a PDU, and send it to the receiving end; among them, PCI indicates the header used to encapsulate the upper layer data in the PDU, which may Contains source service access point and target service access point, etc., which are used to indicate which entity of the upper layer the datagram comes from and which entity of the upper layer needs the peer entity to communicate it to.

而发送给接收端的PDU需按照指定的PDU的传输格式进行封装,便于接收端可根据PDU的传输格式解封装,去掉PCI,还原成SDU送交接收端用户。The PDU sent to the receiving end needs to be encapsulated according to the specified PDU transmission format, so that the receiving end can decapsulate according to the PDU transmission format, remove the PCI, and restore it to SDU and send it to the receiving end user.

作为第一示例,如图2所示,其中,201所示为PDCP PDU头开销,202所示为RLC PDU头开销,PDCP PDU的封装过程中,其中,PDCP层的每个PDU级联了3个SDU,每个PDCP PDU对应一个RLC PDU;这样,每3个PDCP SDU仅对应一个RLC PDU,在上层数据包的SDU数量一定的情况下,减少了PDCP的PDU数量,从而减少了PDCP PDU头开销201的数量并且进一步减少RLCPDU头开销202和MAC PDU头开销。As a first example, as shown in FIG. 2, 201 shows the overhead of the PDCP PDU header, and 202 shows the overhead of the RLC PDU header. During the encapsulation process of the PDCP PDU, each PDU of the PDCP layer is concatenated with 3 Each PDCP PDU corresponds to an RLC PDU; in this way, every 3 PDCP SDUs correspond to only one RLC PDU. When the number of SDUs in the upper layer data packet is constant, the number of PDCP PDUs is reduced, thereby reducing the number of PDCP PDU headers. The amount of overhead 201 and further reduce RLC PDU header overhead 202 and MAC PDU header overhead.

本发明的上述实施例中,通过在PDCP层将PDU与上层数据的SDU设置成一对多关系,即将PDCP PDU级联多个上层数据的SDU,有效地减少了PDCP PDU数量;而PDCP PDU都需要产生一个RLC PDU头开销和MAC PDU头开销,因此,在减少PDCP的PDU数量的同时,达到了减少RLC PDU头开销和MAC PDU头开销的技术效果,进而有效地提高业务处理的灵活性。本发明解决了现有的5G技术中,RLC层不具有级联功能,增加了RLC和MAC的头开销,降低了数据传输速度以及业务处理的灵活性的问题。In the foregoing embodiments of the present invention, by setting the PDU and the SDU of the upper layer data into a one-to-many relationship at the PDCP layer, that is, the PDCP PDU is concatenated with a plurality of SDUs of the upper layer data, effectively reducing the number of PDCP PDUs; and PDCP PDUs require An RLC PDU header overhead and a MAC PDU header overhead are generated. Therefore, while reducing the number of PDCP PDUs, the technical effect of reducing the RLC PDU header overhead and the MAC PDU header overhead is achieved, thereby effectively improving the flexibility of service processing. The invention solves the problem that in the existing 5G technology, the RLC layer does not have a cascading function, which increases the header overhead of RLC and MAC, and reduces the data transmission speed and the flexibility of business processing.

参见图3,本发明的又一实施例提供了一种数据包的封装方法,包括:Referring to Fig. 3, another embodiment of the present invention provides a method for encapsulating data packets, including:

步骤301,获取待封装的多个业务数据单元SDU。Step 301, acquire multiple service data units SDUs to be encapsulated.

通常情况下,第N层SDU和上一层的PDU是一一对应的,即每个PDU包含一个SDU;而本发明的实施例中,将PDCP层的PDU与SDU设置成一对多关系,即每个PDU级联多个SDU,这样,减少了PDCP的PDU数量。Normally, there is a one-to-one correspondence between the SDU of the Nth layer and the PDU of the upper layer, that is, each PDU contains one SDU; and in the embodiment of the present invention, the PDU and the SDU of the PDCP layer are set into a one-to-many relationship, that is Each PDU is cascaded with multiple SDUs, thus reducing the number of PDUs in PDCP.

而对于每个PDCP PDU都需要产生一个RLC PDU头开销和MAC PDU头开销,因此,在减少PDCP的PDU数量的同时,达到了减少RLC PDU头开销和MAC PDU头开销的技术效果,进而有效地提高业务处理的灵活性。For each PDCP PDU, an RLC PDU header overhead and a MAC PDU header overhead need to be generated. Therefore, while reducing the number of PDCP PDUs, the technical effect of reducing the RLC PDU header overhead and the MAC PDU header overhead is achieved, thereby effectively Improve the flexibility of business processing.

步骤302,根据PDU的传输格式,按照预设的多个SDU中每个SDU的长度信息,将多个SDU封装在PDU数据包的数据域字段中,得到封装后的PDU。Step 302, according to the transmission format of the PDU, according to the preset length information of each SDU in the multiple SDUs, encapsulate the multiple SDUs in the data field field of the PDU data packet, and obtain the encapsulated PDU.

其中,作为第二示例,如图4所示,按照多个SDU中,预设的每个SDU的长度信息,将上层数据的SDU封装在PDU数据包的数据域字段中,PDCP SDU中的SDU与PDCP PDU中的SDU一一对应,PDU包括n个SDU,每个SDU按照各自预设的长度信息进行封装,便于接收端根据预设的长度信息进行解析(即解封装)。Wherein, as a second example, as shown in FIG. 4, according to the preset length information of each SDU among the multiple SDUs, the SDU of the upper layer data is encapsulated in the data field field of the PDU packet, and the SDU in the PDCP SDU One-to-one correspondence with the SDUs in the PDCP PDU, the PDU includes n SDUs, and each SDU is encapsulated according to its preset length information, so that the receiving end can analyze (that is, decapsulate) according to the preset length information.

优选地,预设的多个SDU中每个SDU的长度信息由发送端通过预设信令发送给接收端或者由发送端和接收端预先约定。Preferably, the length information of each SDU in the preset plurality of SDUs is sent by the sending end to the receiving end through preset signaling, or is pre-agreed by the sending end and the receiving end.

具体地,每个SDU的长度信息可使发送端与接收端预先约定,也可在数据传输的同时通过预设信令单独配置,便于接收端根据预设的长度信息进行解析。Specifically, the length information of each SDU can be pre-agreed between the sending end and the receiving end, or can be configured separately through preset signaling during data transmission, so that the receiving end can analyze it according to the preset length information.

本发明的上述实施例中,通过在PDCP层将PDU与上层数据的SDU设置成一对多关系,即将PDCP PDU级联多个上层数据的SDU,在将SDU封装成PDU的过程中,每个SDU的长度信息可使发送端与接收端预先约定,也可在数据传输的同时通过预设信令单独配置,本发明有效地减少了PDCP PDU数量;而PDCP PDU都需要产生一个RLC PDU头开销和MAC PDU头开销,因此,在减少PDCP的PDU数量的同时,达到了减少RLC PDU头开销和MAC PDU头开销的技术效果,进而有效地提高业务处理的灵活性。In the above embodiments of the present invention, by setting the PDU and the SDU of the upper layer data into a one-to-many relationship at the PDCP layer, that is, the PDCP PDU is concatenated with a plurality of SDUs of the upper layer data. In the process of encapsulating the SDU into a PDU, each SDU The length information can be pre-agreed between the sending end and the receiving end, and can also be configured separately through preset signaling during data transmission. The present invention effectively reduces the number of PDCP PDUs; and PDCP PDUs need to generate an RLC PDU header overhead and MAC PDU header overhead. Therefore, while reducing the number of PDCP PDUs, the technical effect of reducing RLC PDU header overhead and MAC PDU header overhead is achieved, thereby effectively improving the flexibility of service processing.

参见图5,本发明的又一实施例提供了一种数据包的封装方法,包括:Referring to Fig. 5, another embodiment of the present invention provides a method for encapsulating data packets, including:

步骤501,获取待封装的多个业务数据单元SDU。Step 501, acquire multiple service data units SDUs to be encapsulated.

通常情况下,第N层SDU和上一层的PDU是一一对应的,即每个PDU包含一个SDU;而本发明的实施例中,将PDCP层的PDU与SDU设置成一对多关系,即每个PDU级联多个SDU,这样,减少了PDCP的PDU数量。Normally, there is a one-to-one correspondence between the SDU of the Nth layer and the PDU of the upper layer, that is, each PDU contains one SDU; and in the embodiment of the present invention, the PDU and the SDU of the PDCP layer are set into a one-to-many relationship, that is Each PDU is cascaded with multiple SDUs, thus reducing the number of PDUs in PDCP.

而对于每个PDCP PDU都需要产生一个RLC PDU头开销和MAC PDU头开销,因此,在减少PDCP的PDU数量的同时,达到了减少RLC PDU头开销和MAC PDU头开销的技术效果,进而有效地提高业务处理的灵活性。For each PDCP PDU, an RLC PDU header overhead and a MAC PDU header overhead need to be generated. Therefore, while reducing the number of PDCP PDUs, the technical effect of reducing the RLC PDU header overhead and the MAC PDU header overhead is achieved, thereby effectively Improve the flexibility of business processing.

步骤502,根据PDU的传输格式,将多个SDU的数据包的长度信息添加在PDU数据包的预设字段中以及将多个SDU封装在PDU数据包的数据域字段中,得到封装后的PDU。Step 502, according to the transmission format of the PDU, add the length information of the data packets of multiple SDUs in the preset field of the PDU data packet and encapsulate the multiple SDUs in the data field field of the PDU data packet, and obtain the encapsulated PDU .

其中,按照PDU的传输格式,将上层数据的SDU封装在PDU数据包的数据域字段中,并且将每个SDU的数据包的长度信息添加在PDU数据包的预设字段中,即PDU的传输格式中,存在预设字段,用于存放每个SDU的数据包的长度信息,这样,无需与接收端之间预先约定或者通过信令单独配置每个SDU的数据包的长度信息,而将SDU的数据包的长度信息封装在PDU中,增加了数据包传输的灵活性,PDCP SDU中的SDU与PDCP PDU中的SDU一一对应,每个SDU按照各自预设的长度信息进行封装,便于接收端根据预设的长度信息进行解析。Among them, according to the transmission format of the PDU, the SDU of the upper layer data is encapsulated in the data domain field of the PDU data packet, and the length information of the data packet of each SDU is added in the preset field of the PDU data packet, that is, the transmission of the PDU In the format, there is a preset field, which is used to store the length information of the data packet of each SDU. In this way, there is no need to pre-agree with the receiving end or separately configure the length information of each SDU data packet through signaling, and the SDU The length information of the data packet is encapsulated in the PDU, which increases the flexibility of data packet transmission. The SDU in the PDCP SDU corresponds to the SDU in the PDCP PDU. Each SDU is encapsulated according to its preset length information, which is convenient for receiving The terminal parses according to the preset length information.

优选地,步骤502包括:Preferably, step 502 includes:

第一步,根据PDU的传输格式,将多个SDU的数据包中的每个SDU的长度信息添加在PDU数据包的一连续的预设字段中,以及将多个SDU封装在PDU数据包的数据域字段中,得到封装后的PDU;或者In the first step, according to the transmission format of the PDU, the length information of each SDU in the data packet of the multiple SDUs is added in a continuous preset field of the PDU data packet, and the multiple SDUs are encapsulated in the PDU data packet In the data domain field, the encapsulated PDU is obtained; or

第二步,根据PDU的传输格式,将多个SDU封装在PDU数据包的数据域字段中,将多个SDU的数据包中的每个SDU的长度信息分别添加在该SDU的数据包的前面、并与该SDU相邻的一预设字段中,得到封装后的PDU。In the second step, according to the transmission format of the PDU, multiple SDUs are encapsulated in the data domain field of the PDU data packet, and the length information of each SDU in the data packet of the multiple SDUs is respectively added in front of the data packet of the SDU , and in a preset field adjacent to the SDU, the encapsulated PDU is obtained.

具体地,第一步中,多个SDU的数据包中,每个SDU的长度信息添加在PDU数据包的一连续的预设字段中,即每个PDU数据包中,存在一连续的预设字段,用于存储每个SDU的长度信息,每个SDU的长度信息集中存放,并包含所对应的SDU的指示,无需与接收端之间预先约定或者通过信令单独配置每个SDU的数据包的长度信息,而将SDU的数据包的长度信息封装在PDU中,增加了数据包传输的灵活性。Specifically, in the first step, in the data packets of multiple SDUs, the length information of each SDU is added in a continuous preset field of the PDU data packet, that is, there is a continuous preset field in each PDU data packet Field, used to store the length information of each SDU, the length information of each SDU is stored centrally, and contains the indication of the corresponding SDU, without pre-agreement with the receiving end or separately configuring the data packet of each SDU through signaling The length information of the SDU data packet is encapsulated in the PDU, which increases the flexibility of data packet transmission.

作为第三示例,参见图6,将每个SDU的长度信息添加在PDU数据包的一连续的预设字段中,如图中SDU1length至SDUn length,分别代表SDU1至SDUn的长度信息,将长度信息集中放置;并将上层数据的SDU封装在PDU数据包的数据域字段中,PDCP SDU中的SDU与PDCPPDU中的SDU一一对应,PDU包括n个SDU,每个SDU按照PDU数据包中指示的各自预设的长度信息进行封装,便于接收端进行解析,增加了数据包传输的灵活性。As a third example, referring to FIG. 6, the length information of each SDU is added in a continuous preset field of the PDU data packet, as shown in the figure, SDU 1 length to SDU n length, respectively representing the length of SDU 1 to SDU n information, place the length information centrally; and encapsulate the SDU of the upper layer data in the data domain field of the PDU packet, the SDU in the PDCP SDU corresponds to the SDU in the PDCP PDU one by one, and the PDU includes n SDUs, and each SDU is in accordance with the PDU The respective preset length information indicated in the data packet is encapsulated, which is convenient for the receiving end to analyze and increases the flexibility of data packet transmission.

具体地,第二步中,将多个SDU封装在PDU数据包的数据域字段中,且将数据域字段中的多个SDU的数据包中的每个SDU的长度信息分别添加在该SDU的数据包的前面、并与该SDU相邻的一预设字段中;Specifically, in the second step, multiple SDUs are encapsulated in the data domain field of the PDU data packet, and the length information of each SDU in the data packet of the multiple SDUs in the data domain field is respectively added to the SDU In front of the data packet and in a preset field adjacent to the SDU;

即每个SDU的数据包的长度信息与SDU的数据包相邻,且SDU的数据包的长度信息在SDU的数据包前面,这样,每个SDU的长度信息与SDU的数据包相邻存放,接收端在解析的过程中,可根据SDU的数据包前面的长度信息进行解析,无需与接收端之间预先约定或者通过信令单独配置每个SDU的数据包的长度信息,增加了数据包传输的灵活性。That is, the length information of the data packet of each SDU is adjacent to the data packet of the SDU, and the length information of the data packet of the SDU is in front of the data packet of the SDU, so that the length information of each SDU is stored adjacent to the data packet of the SDU, During the parsing process, the receiving end can analyze according to the length information in front of the SDU data packet, without pre-agreement with the receiving end or separately configuring the length information of each SDU data packet through signaling, which increases the data packet transmission flexibility.

作为第四示例,参见图7,将每个SDU的长度信息添加在相对应SDU的数据包之前,如图中SDU1length设置之前,SDUn length设置在SDUn之前,SDU1length至SDUn length,分别代表SDU1至SDUn的长度信息;PDCP SDU中的SDU与PDCP PDU中的SDU一一对应,PDU包括n个SDU,每个SDU按照PDU数据包中指示的各自预设的长度信息进行封装,便于接收端进行解析,增加了数据包传输的灵活性。As a fourth example, referring to FIG. 7, the length information of each SDU is added before the data packet of the corresponding SDU, as shown in the figure, before SDU 1 length is set, SDU n length is set before SDU n , and SDU 1 length to SDU n length, respectively representing the length information of SDU 1 to SDU n ; the SDUs in the PDCP SDU correspond to the SDUs in the PDCP PDU one by one, and the PDU includes n SDUs, and each SDU follows the respective preset length information indicated in the PDU packet Encapsulation is carried out, which is convenient for the receiving end to analyze, and increases the flexibility of data packet transmission.

可以理解的是,若每个PDCP SDU的长度是已知的,则不需要SDU length,如图4所示。It can be understood that if the length of each PDCP SDU is known, the SDU length is not needed, as shown in FIG. 4 .

优选地,本发明的具体实施例中,封装后的PDU中还具有封装多个SDU的数量的字段,字段中携带有SDU的数量信息。Preferably, in a specific embodiment of the present invention, the encapsulated PDU further has a field for encapsulating the number of multiple SDUs, and the field carries information about the number of SDUs.

其中,PDU中具有封装多个SDU的数量的字段,即如图4、图6以及图7中的SDU Num域,用于指示PDU中封装有多少个SDU,便于接收端SDU Num域中所指示的SDU数量进行解析;且SDU Num域为可选择域,是否携带可预先约定或者通过信令配置。Among them, there is a field of the number of encapsulated multiple SDUs in the PDU, that is, the SDU Num field in Figure 4, Figure 6 and Figure 7, which is used to indicate how many SDUs are encapsulated in the PDU, so that the receiver can indicate in the SDU Num field Analyze the number of SDUs; and the SDU Num field is an optional field, and whether to carry it can be pre-agreed or configured through signaling.

优选地,本发明的具体实施例中,封装多个SDU的数量的字段位于PDU数据包的包头中,即设置在PDU数据包之前,当接收端解析的过程中,在解析PDU数据包之前解析出SDU的数量的字段,以便根据SDU的数量解析PDU数据包。Preferably, in a specific embodiment of the present invention, the field that encapsulates the number of multiple SDUs is located in the header of the PDU data packet, that is, it is set before the PDU data packet, and when the receiving end is parsing, it is parsed before parsing the PDU data packet Output the field of the number of SDUs, so that the PDU data packet can be parsed according to the number of SDUs.

优选地,本发明的具体实施例中,封装后的PDU中还具有封装PDU的传输格式指示TFI;Preferably, in a specific embodiment of the present invention, the encapsulated PDU also has a transport format indication TFI of the encapsulated PDU;

TFI中携带有用于指示PDU数据包的长度信息对应的索引,索引是传输格式集合TFS包括的多个预设的PDU数据包的长度信息对应的索引。The TFI carries an index for indicating the length information of the PDU data packet, and the index is an index corresponding to the length information of multiple preset PDU data packets included in the transport format set TFS.

其中,索引是传输格式集合TFS包括的多个预设的PDU数据包的长度信息对应的索引,TFI中携带有用于指示PDU数据包的长度信息对应的索引;比如TFS假设为:{336,656,1516,…},下标从0开始,如果选择为656,则TFI=1,如果选择1516,则TFI=2。通过下表索引的方式代替直接封装PDU数据包的长度信息,目的是为了减少PDU数据包的长度,由于PDU数据包的长度信息数据较大,所占字节数目较多,而通过下标索引的方式,可有效地减少所占的字节空间。Wherein, the index is the index corresponding to the length information of multiple preset PDU data packets included in the transmission format set TFS, and TFI carries the index corresponding to the length information for indicating the PDU data packet; for example, TFS is assumed to be: {336, 656 , 1516, ...}, the subscript starts from 0, if 656 is selected, TFI=1, if 1516 is selected, TFI=2. Instead of directly encapsulating the length information of the PDU data packet by the index in the following table, the purpose is to reduce the length of the PDU data packet. Since the length information of the PDU data packet is large and occupies a large number of bytes, the subscript index The way can effectively reduce the occupied byte space.

即如图4、图6以及图7中的TFI域所示;且TFI域为可选择域,是否携带可预先约定或者通过信令配置。That is, as shown in the TFI field in FIG. 4 , FIG. 6 , and FIG. 7 ; and the TFI field is an optional field, and whether to carry it can be pre-agreed or configured through signaling.

可选地,本发明的具体实施例中,PDU数据包可不携带TFI域,可通过预先设定PDCPPDU格式的集合,为PDCP PDU的字节长度设置在PDCP PDU格式的集合中的下标索引,确定PDU数据包长度,使PDCP能够不需要接收到MAC的调度指示就可以组建PDCP PDU,比如,设置PDCP PDU格式集合TFS为:Optionally, in a specific embodiment of the present invention, the PDU data packet may not carry the TFI field, and the subscript index in the set of PDCP PDU formats may be set for the byte length of the PDCP PDU by presetting the set of PDCP PDU formats, Determine the length of the PDU packet so that PDCP can build a PDCP PDU without receiving a scheduling instruction from the MAC. For example, set the PDCP PDU format set TFS as:

{Size1,Size2,…,Sizen}{Size1, Size2,...,Sizen}

TFS中每个Size标识一个PDCP PDU的字节长度。Size的索引从0开始计数,记为TFI,即TFI=0,1,2,…Each Size in TFS identifies the byte length of a PDCP PDU. The index of Size starts counting from 0 and is recorded as TFI, that is, TFI=0,1,2,…

PDCP按照格式集合中的大小组建合适的PDCP PDU,TFI一旦确定,那么PDCP PDU格式集合为有限种组合。且PDCP产生的PDCP PDU的格式一定属于该集合,不能超出该集合的范围。PDCP constructs a suitable PDCP PDU according to the size in the format set. Once the TFI is determined, the PDCP PDU format set has limited combinations. And the format of the PDCP PDU generated by the PDCP must belong to this set and cannot exceed the range of this set.

引入预设格式后,该类PDCP PDU对应的RLC PDU长度也属于某些特定长度的值,所以RLC PDU的长度指示也可以进一步简化,由于PDCP PDU长度仅属于特定的集合,所以可以通过在MAC或者RLC头部中携带PDCP PDU对应的长度集合索引指示数据包的长度,而不必一定携带指示PDCP PDU字节长度的指示域,从而可以减少RLC或者MAC的头开销。After the introduction of the preset format, the length of the RLC PDU corresponding to this type of PDCP PDU also belongs to a certain length value, so the length indication of the RLC PDU can also be further simplified. Since the length of the PDCP PDU only belongs to a specific set, it can be passed in the MAC Or the length set index corresponding to the PDCP PDU is carried in the RLC header to indicate the length of the data packet, without necessarily carrying an indication field indicating the byte length of the PDCP PDU, thereby reducing the overhead of the RLC or MAC header.

优选地,本发明的具体实施例中,TFI为预先配置的或者依据发送端当前可传输的数据包的大小均值从TFS中选择的。Preferably, in the specific embodiment of the present invention, the TFI is pre-configured or selected from the TFS according to the average size of the currently transmittable data packets at the sending end.

其中,TFI可预先配置,也可依据发送端当前可传输的数据包的大小均值从TFS中选择的,即PDCP可自主进行PDCP TFI选择,PDCP可以依据当前的业务情况例如平均速率与两个相邻的PDU之间的时间间隔(仅考虑发送时间的起点,不考虑发送数据占用的时间),合理的选择需要使用的PDCP格式,增加了PDCP的灵活性,然而产生的PDCP PDU的长度未必完全相同。Among them, TFI can be pre-configured, and can also be selected from TFS according to the average size of the data packet currently transmittable by the sender, that is, PDCP can independently select PDCP TFI, and PDCP can be based on current business conditions such as average rate and two relative The time interval between adjacent PDUs (only the starting point of the sending time is considered, not the time taken to send data), and the reasonable selection of the PDCP format to be used increases the flexibility of PDCP. However, the length of the generated PDCP PDU may not be completely same.

具体地,本发明的具体实施例中,发送端当前可传输的数据包的大小均值为:发送端当前所传输业务的平均速率与一时间间隔的乘积,时间间隔是PDU的发送时间与上一个PDU的发送时间之间的时间间隔。Specifically, in a specific embodiment of the present invention, the average size of the data packets currently transmittable by the sender is: the product of the average rate of the service currently transmitted by the sender and a time interval, and the time interval is the sending time of the PDU and the last Time interval between sending times of PDUs.

其中,发送端当前可传输的数据包的大小均值为:所传输业务的平均速率与PDU的发送时间与上一个PDU的发送时间之间的时间间隔的乘积,在数据传输的过程中,使发送端根据当前可传输数据包大小,从TFS中选择的与当前可传输数据包大小最为接近的PDCPPDU的长度信息,且当前可传输数据包大小应大于该PDCP PDU的长度信息,使得发送端获得最大传输速率。Among them, the average size of the data packet that the sender can currently transmit is: the product of the average rate of the transmitted service and the time interval between the sending time of the PDU and the sending time of the previous PDU. In the process of data transmission, the sending The terminal selects the length information of the PDCP PDU closest to the current transmittable data packet size from TFS according to the current transmittable data packet size, and the current transmittable data packet size should be greater than the length information of the PDCP PDU, so that the sender can obtain the maximum Transmission rate.

优选地,本发明的具体实施例中,TFS中所包含的预设的PDU数据包的长度信息为:N倍的应用层数据包大小与PDU的头开销的字节长度之和,其中N为正整数。Preferably, in a specific embodiment of the present invention, the length information of the preset PDU data packet contained in the TFS is: the sum of N times the size of the application layer data packet and the byte length of the header overhead of the PDU, where N is positive integer.

其中,TFS中所包含的预设的PDU数据包的长度信息为:正整数倍的应用层数据包大小与PDU的头开销的字节长度之和,即TFS中所包含的预设的PDU数据包的长度信息均为有效数据,均可能存在与其相对应的PDU数据包的,剔除无效数据,可有效地减少TFI所占的字节信息,减少PDU数据包的头开销,进而减少RLC或者MAC的头开销。Among them, the length information of the preset PDU data packet contained in the TFS is: the sum of the size of the application layer data packet of a positive integer multiple and the byte length of the header overhead of the PDU, that is, the preset PDU data contained in the TFS The length information of the packet is valid data, and there may be corresponding PDU data packets. Eliminating invalid data can effectively reduce the byte information occupied by TFI, reduce the header overhead of PDU data packets, and then reduce RLC or MAC head overhead.

本发明的上述实施例中,通过在PDCP层将PDU与上层数据的SDU设置成一对多关系,即将PDCP PDU级联多个上层数据的SDU,有效地减少了PDCP PDU数量;且可预先设计一组TFS集合,选择合适的PDCP PDU长用来发送,将多个应用层收到的数据包进行级联,并且在PDCP头中指示出应用层数据包的大小,方便接收端进行解包。通过PDCP的级联,一方面减少RLC和MAC头的个数,另一方面减少MAC中长度域的指示,同时如果采用配置的统一的PDCPPDU长度,数据包为固定长度,也会进一步降低数据包的处理时延。本发明在减少PDCP的PDU数量的同时,达到了减少RLC PDU头开销和MAC PDU头开销的技术效果,进而有效地提高业务处理的灵活性。本发明解决了现有的5G技术中,RLC层不具有级联功能,增加了RLC和MAC的头开销,降低了数据传输速度以及业务处理的灵活性的问题。In the above embodiments of the present invention, by setting the PDU and the SDU of the upper layer data into a one-to-many relationship at the PDCP layer, that is, the PDCP PDU is concatenated with multiple SDUs of the upper layer data, which effectively reduces the number of PDCP PDUs; and can pre-design a Set up a TFS set, select the appropriate PDCP PDU length for sending, concatenate the data packets received by multiple application layers, and indicate the size of the application layer data packets in the PDCP header, so that the receiving end can unpack them. Through the concatenation of PDCP, on the one hand, the number of RLC and MAC headers is reduced, and on the other hand, the indication of the length field in the MAC is reduced. At the same time, if the configured unified PDCP PDU length is used, the data packet is a fixed length, and the data packet will be further reduced. processing delay. While reducing the number of PDCP PDUs, the present invention achieves the technical effect of reducing RLC PDU header overhead and MAC PDU header overhead, thereby effectively improving the flexibility of business processing. The invention solves the problem that in the existing 5G technology, the RLC layer does not have a cascading function, which increases the header overhead of RLC and MAC, and reduces the data transmission speed and the flexibility of business processing.

参见图8,为了实现上述目的,本发明的实施例还提供了一种数据包的封装装置800,包括:Referring to FIG. 8, in order to achieve the above purpose, an embodiment of the present invention also provides a data packet encapsulation device 800, including:

获取模块801,用于获取待封装的多个业务数据单元SDU;An acquisition module 801, configured to acquire multiple service data units SDUs to be encapsulated;

封装模块802,用于根据分组数据汇聚协议PDCP的协议数据单元PDU的传输格式,将多个SDU封装成PDU。The encapsulation module 802 is configured to encapsulate multiple SDUs into a PDU according to the transmission format of the protocol data unit PDU of the packet data convergence protocol PDCP.

优选地,封装模块包括:Preferably, the packaging module includes:

第一封装子模块,用于根据PDU的传输格式,将多个SDU的数据包的长度信息添加在PDU数据包的预设字段中以及将多个SDU封装在PDU数据包的数据域字段中,得到封装后的PDU;或者The first encapsulation submodule is used to add the length information of the data packets of multiple SDUs in the preset field of the PDU data packet and encapsulate the multiple SDUs in the data domain field of the PDU data packet according to the transmission format of the PDU, Get the encapsulated PDU; or

第二封装子模块,用于根据PDU的传输格式,按照预设的多个SDU中每个SDU的长度信息,将多个SDU封装在PDU数据包的数据域字段中,得到封装后的PDU。The second encapsulation submodule is used to encapsulate the multiple SDUs in the data domain field of the PDU data packet according to the preset length information of each of the multiple SDUs according to the transmission format of the PDU, and obtain the encapsulated PDU.

优选地,第一封装子模块包括:Preferably, the first packaging submodule includes:

第一封装单元,用于根据PDU的传输格式,将多个SDU的数据包中的每个SDU的长度信息添加在PDU数据包的一连续的预设字段中,以及将多个SDU封装在PDU数据包的数据域字段中,得到封装后的PDU;或者The first encapsulation unit is used to add the length information of each SDU in the data packet of multiple SDUs to a continuous preset field of the PDU data packet according to the transmission format of the PDU, and encapsulate the multiple SDUs in the PDU In the data domain field of the data packet, the encapsulated PDU is obtained; or

第二封装单元,用于根据PDU的传输格式,将多个SDU封装在PDU数据包的数据域字段中,将多个SDU的数据包中的每个SDU的长度信息分别添加在该SDU的数据包的前面、并与该SDU相邻的一预设字段中,得到封装后的PDU。The second encapsulation unit is used to encapsulate multiple SDUs in the data domain field of the PDU data packet according to the transmission format of the PDU, and add the length information of each SDU in the data packets of the multiple SDUs to the data of the SDU respectively The encapsulated PDU is obtained in a preset field in front of the packet and adjacent to the SDU.

优选地,预设的多个SDU中每个SDU的长度信息由发送端通过预设信令发送给接收端或者由发送端和接收端预先约定。Preferably, the length information of each SDU in the preset plurality of SDUs is sent by the sending end to the receiving end through preset signaling, or is pre-agreed by the sending end and the receiving end.

优选地,封装后的PDU中还具有封装多个SDU的数量的字段,字段中携带有SDU的数量信息。Preferably, the encapsulated PDU further has a field for encapsulating the number of multiple SDUs, and the field carries information about the number of SDUs.

优选地,封装多个SDU的数量的字段位于PDU数据包的包头中。Preferably, the field encapsulating the number of multiple SDUs is located in the header of the PDU data packet.

优选地,封装后的PDU中还具有封装PDU的传输格式指示TFI;Preferably, the encapsulated PDU also has a transport format indication TFI of the encapsulated PDU;

TFI中携带有用于指示PDU数据包的长度信息对应的索引,索引是传输格式集合TFS包括的多个预设的PDU数据包的长度信息对应的索引。The TFI carries an index for indicating the length information of the PDU data packet, and the index is an index corresponding to the length information of multiple preset PDU data packets included in the transport format set TFS.

优选地,TFI为预先配置的或者依据发送端当前可传输的数据包的大小均值从TFS中选择的。Preferably, the TFI is pre-configured or selected from the TFS according to the average size of the currently transmittable data packets at the sending end.

优选地,发送端当前可传输的数据包的大小均值为:发送端当前所传输业务的平均速率与一时间间隔的乘积,时间间隔是PDU的发送时间与上一个PDU的发送时间之间的时间间隔。Preferably, the average size of the data packet currently transmittable by the sender is: the product of the average rate of the service currently transmitted by the sender and a time interval, and the time interval is the time between the sending time of the PDU and the sending time of the previous PDU interval.

优选地,TFS中所包含的预设的PDU数据包的长度信息为:N倍的应用层数据包大小与PDU的头开销的字节长度之和,其中N为正整数。Preferably, the preset length information of the PDU data packet contained in the TFS is: the sum of N times the size of the application layer data packet and the byte length of the header overhead of the PDU, where N is a positive integer.

本发明的上述实施例中提供的数据包的封装装置800,通过在PDCP层将PDU与上层数据的SDU设置成一对多关系,即将PDCP PDU级联多个上层数据的SDU,有效地减少了PDCPPDU数量;而PDCP PDU都需要产生一个RLC PDU头开销和MAC PDU头开销,因此,在减少PDCP的PDU数量的同时,达到了减少RLC PDU头开销和MAC PDU头开销的技术效果,进而有效地提高业务处理的灵活性。本发明解决了现有的5G技术中,RLC层不具有级联功能,增加了RLC和MAC的头开销,降低了数据传输速度以及业务处理的灵活性的问题。The data packet encapsulation device 800 provided in the above-mentioned embodiments of the present invention effectively reduces the number of PDCP PDUs by setting the PDU and the SDU of the upper layer data into a one-to-many relationship at the PDCP layer, that is, concatenating the PDCP PDU with multiple SDUs of the upper layer data. quantity; while PDCP PDUs need to generate an RLC PDU header overhead and MAC PDU header overhead, therefore, while reducing the number of PDCP PDUs, the technical effect of reducing RLC PDU header overhead and MAC PDU header overhead is achieved, thereby effectively improving Flexibility in business processing. The invention solves the problem that in the existing 5G technology, the RLC layer does not have a cascading function, which increases the header overhead of RLC and MAC, and reduces the data transmission speed and the flexibility of business processing.

需要说明的是,本发明实施例提供的数据包的封装装置800是应用上述方法的装置,即上述方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that the data packet encapsulation device 800 provided by the embodiment of the present invention is a device applying the above method, that is, all embodiments of the above method are applicable to the device, and can achieve the same or similar beneficial effects.

为了实现上述目的,本发明的实施例还提供了一种发送端设备,包括上述数据包的封装装置800。In order to achieve the above object, an embodiment of the present invention further provides a sender device, including the above data packet encapsulation apparatus 800 .

本发明的上述实施例中提供的发送端设备,通过在PDCP层将PDU与上层数据的SDU设置成一对多关系,即将PDCP PDU级联多个上层数据的SDU,有效地减少了PDCP PDU数量;而PDCP PDU都需要产生一个RLC PDU头开销和MAC PDU头开销,因此,在减少PDCP的PDU数量的同时,达到了减少RLC PDU头开销和MAC PDU头开销的技术效果,进而有效地提高业务处理的灵活性。本发明解决了现有的5G技术中,RLC层不具有级联功能,增加了RLC和MAC的头开销,降低了数据传输速度以及业务处理的灵活性的问题。The sender device provided in the above embodiments of the present invention effectively reduces the number of PDCP PDUs by setting the PDU and the SDU of the upper layer data into a one-to-many relationship at the PDCP layer, that is, concatenating the PDCP PDU with multiple SDUs of the upper layer data; However, PDCP PDUs need to generate an RLC PDU header overhead and a MAC PDU header overhead. Therefore, while reducing the number of PDCP PDUs, the technical effect of reducing the RLC PDU header overhead and MAC PDU header overhead is achieved, thereby effectively improving business processing. flexibility. The invention solves the problem that in the existing 5G technology, the RLC layer does not have a cascading function, which increases the header overhead of RLC and MAC, and reduces the data transmission speed and the flexibility of business processing.

参见图9,为了实现上述目的,本发明的实施例还提供了一种数据包的解析方法,包括:Referring to FIG. 9, in order to achieve the above object, an embodiment of the present invention also provides a method for parsing a data packet, including:

步骤901,接收封装有多个业务数据单元SDU的协议数据单元PDU数据包。Step 901, receiving a protocol data unit PDU data packet encapsulated with a plurality of service data units SDUs.

其中,业务数据单元(Service Data Unit,SDU),又称服务数据单元,是指定层的用户服务的数据集,传送到接收方的时候同一协议层时数据没有发生变化,即业务部分;然后发给下层之后,下层将其封装在PDU中发送出去。服务数据单元是从高层协议来的信息单元传送到低层协议。根据协议数据单元的数据的不同,送到接收端的指定层。Among them, the service data unit (Service Data Unit, SDU), also known as the service data unit, is the data set of the user service of the specified layer. After giving it to the lower layer, the lower layer encapsulates it in a PDU and sends it out. Service data units are information units from higher-level protocols that are transmitted to lower-level protocols. According to the data of the protocol data unit, it is sent to the designated layer of the receiving end.

PDU为协议数据单元,N层协议实体之间所传递的数据,通过数据发送/接收管理把用户提交的SDU以PDU的形式,通过下层通道发送到对端协议实体,在接收端再将PDU还原成SDU发送给接收端用户。PDU is a protocol data unit, the data transmitted between N-layer protocol entities, through data sending/receiving management, the SDU submitted by the user is sent to the peer protocol entity through the lower layer channel in the form of PDU, and the PDU is restored at the receiving end SDU is sent to the receiving end user.

现有技术中,第N层SDU和上一层的PDU是一一对应的,即每个PDU包含一个SDU;而本发明的实施例中,将PDCP层的PDU与SDU设置成一对多关系,即每个PDU级联多个SDU,这样,减少了PDCP的PDU数量。In the prior art, there is a one-to-one correspondence between the SDU of the Nth layer and the PDU of the upper layer, that is, each PDU contains one SDU; and in the embodiment of the present invention, the PDU and the SDU of the PDCP layer are set into a one-to-many relationship, That is, each PDU is cascaded with multiple SDUs, thus reducing the number of PDUs in the PDCP.

而对于每个PDCP PDU都需要产生一个RLC PDU头开销和MAC PDU头开销,因此,在减少PDCP的PDU数量的同时,达到了减少RLC PDU头开销和MAC PDU头开销的技术效果,进而有效地提高业务处理的灵活性。For each PDCP PDU, an RLC PDU header overhead and a MAC PDU header overhead need to be generated. Therefore, while reducing the number of PDCP PDUs, the technical effect of reducing the RLC PDU header overhead and the MAC PDU header overhead is achieved, thereby effectively Improve the flexibility of business processing.

步骤902,根据PDU的传输格式,将PDU数据包解析成多个SDU。Step 902, according to the transmission format of the PDU, parse the PDU data packet into multiple SDUs.

具体地,在接收端,根据发送端的PDU的传输格式,将PDU数据包解析(解封装)成多个SDU。Specifically, at the receiving end, the PDU data packet is parsed (decapsulated) into multiple SDUs according to the transmission format of the PDU at the sending end.

本发明的上述实施例中,通过在对PDU数据包进行解析的过程中,根据PDU的传输格式,将PDU数据包解析成多个SDU,即将PDCP PDU级联多个上层数据的SDU,有效地减少了PDCP PDU数量;本发明在减少PDCP的PDU数量的同时,达到了减少RLC PDU头开销和MAC PDU头开销的技术效果,进而有效地提高业务处理的灵活性。本发明解决了现有的5G技术中,RLC层不具有级联功能,增加了RLC和MAC的头开销,降低了数据传输速度以及业务处理的灵活性的问题。In the above embodiment of the present invention, in the process of parsing the PDU data packet, according to the transmission format of the PDU, the PDU data packet is parsed into multiple SDUs, that is, the PDCP PDU is concatenated with multiple SDUs of upper layer data, effectively The number of PDCP PDUs is reduced; while reducing the number of PDCP PDUs, the present invention achieves the technical effect of reducing RLC PDU header overhead and MAC PDU header overhead, thereby effectively improving the flexibility of business processing. The invention solves the problem that in the existing 5G technology, the RLC layer does not have a cascading function, which increases the header overhead of RLC and MAC, and reduces the data transmission speed and the flexibility of business processing.

优选地,步骤902包括:Preferably, step 902 includes:

获得多个SDU中每个SDU的长度信息;Obtain the length information of each SDU in multiple SDUs;

根据PDU的传输格式,以及每个SDU的长度信息,对PDU数据包进行解析,获得多个SDU。According to the transmission format of the PDU and the length information of each SDU, the PDU data packet is analyzed to obtain multiple SDUs.

其中,由于PDU数据包中包括多个SDU,在解析的过程中,需确定每个SDU的长度信息,并根据PDU的传输格式,以及每个SDU的长度信息,将PDU数据包解析成多个SDU,发送给接收端用户。Among them, since the PDU data packet includes multiple SDUs, in the parsing process, the length information of each SDU needs to be determined, and the PDU data packet is parsed into multiple SDUs according to the transmission format of the PDU and the length information of each SDU. SDU, sent to the receiving end user.

优选地,获得多个SDU中每个SDU的长度信息的步骤,包括:Preferably, the step of obtaining the length information of each SDU in the multiple SDUs includes:

通过预先约定的方式或者通过接收到的携带有多个SDU的各SDU的数据包的长度信息的信令,获得多个SDU中每个SDU的长度信息;或者Obtain the length information of each SDU in the plurality of SDUs in a pre-agreed manner or through the received signaling carrying the length information of the data packets of the SDUs of the plurality of SDUs; or

根据PDU的传输格式,从PDU数据包的预设字段中获取多个SDU中每个SDU的长度信息。According to the transmission format of the PDU, the length information of each SDU in the multiple SDUs is obtained from a preset field of the PDU data packet.

具体地,当PDU数据包中未携带有每个SDU的长度信息时,可根据发送端与接收端预先约定,也可在通过与发送端之间的预设信令单独配置,确定各SDU的数据包的长度信息。当PDU数据包的预设字段中携带有每个SDU的长度信息时,从预设字段中获取各SDU的数据包的长度信息。Specifically, when the PDU data packet does not carry the length information of each SDU, the length information of each SDU can be determined according to the pre-agreement between the sending end and the receiving end, or can be configured separately through preset signaling between the sending end and the sending end. Packet length information. When the preset field of the PDU data packet carries the length information of each SDU, the length information of the data packet of each SDU is obtained from the preset field.

优选地,预设字段为:PDU数据包的一连续的预设字段;或者在每一个SDU的数据包的前面、并与该SDU相邻的一预设字段。Preferably, the preset field is: a continuous preset field of the PDU data packet; or a preset field in front of each SDU data packet and adjacent to the SDU.

其中,预设字段中,每个SDU的长度信息添加在PDU数据包的一连续的预设字段中,即每个PDU数据包中,存在一连续的预设字段,用于存储每个SDU的长度信息,每个SDU的长度信息集中存放,并包含所对应的SDU的指示,无需与发送端之间预先约定或者通过信令单独配置每个SDU的数据包的长度信息,而将SDU的数据包的长度信息封装在PDU中,增加了数据包传输的灵活性。或者每个SDU的数据包的长度信息与SDU的数据包相邻,且SDU的数据包的长度信息在SDU的数据包前面,这样,每个SDU的长度信息与SDU的数据包相邻存放,接收端在解析的过程中,可根据SDU的数据包前面的长度信息进行解析,无需与发送端之间预先约定或者通过信令单独配置每个SDU的数据包的长度信息,增加了数据包传输的灵活性。Wherein, in the preset field, the length information of each SDU is added in a continuous preset field of the PDU data packet, that is, in each PDU data packet, there is a continuous preset field for storing the length of each SDU Length information, the length information of each SDU is stored centrally, and contains the indication of the corresponding SDU, there is no need to pre-agree with the sender or separately configure the length information of each SDU data packet through signaling, and the SDU data The length information of the packet is encapsulated in the PDU, which increases the flexibility of data packet transmission. Or the length information of the data packet of each SDU is adjacent to the data packet of the SDU, and the length information of the data packet of the SDU is in front of the data packet of the SDU, so that the length information of each SDU is stored adjacent to the data packet of the SDU, During the parsing process, the receiving end can analyze according to the length information in front of the SDU data packet, without pre-agreement with the sending end or separately configuring the length information of each SDU data packet through signaling, which increases the data packet transmission flexibility.

优选地,PDU数据包中还具有封装PDU的传输格式指示TFI,TFI中携带有用于指示PDU数据包的长度信息对应的索引,索引是传输格式集合TFS包括的多个预设的PDU数据包中的长度信息对应的索引;Preferably, the PDU data packet also has a transport format indication TFI for encapsulating the PDU, and the TFI carries an index corresponding to the length information indicating the PDU data packet, and the index is the number of preset PDU data packets included in the transmission format set TFS. The index corresponding to the length information of ;

和/或and / or

PDU数据包中还具有多个SDU的数量的字段,字段中携带有SDU的数量信息。The PDU data packet also has a field for the number of multiple SDUs, and the field carries the information about the number of SDUs.

其中,其中,索引是传输格式集合TFS包括的多个预设的PDU数据包的长度信息对应的索引,TFI中携带有用于指示PDU数据包的长度信息对应的索引;比如TFS假设为:{336,656,1516,…},下标从0开始,如果选择为656,则TFI=1,如果选择1516,则TFI=2。通过下表索引的方式代替直接封装PDU数据包的长度信息,目的是为了减少PDU数据包的长度,由于PDU数据包的长度信息数据较大,所占字节数目较多,而通过下标索引的方式,可有效地减少所占的字节空间。Wherein, where, the index is the index corresponding to the length information of a plurality of preset PDU data packets included in the transmission format set TFS, and TFI carries the index corresponding to the length information for indicating the PDU data packet; for example, TFS is assumed to be: {336 , 656, 1516, ...}, the subscript starts from 0, if 656 is selected, TFI=1, and if 1516 is selected, TFI=2. Instead of directly encapsulating the length information of the PDU data packet by the index in the following table, the purpose is to reduce the length of the PDU data packet. Since the length information of the PDU data packet is large and occupies a large number of bytes, the subscript index The way can effectively reduce the occupied byte space.

其中,PDU中具有封装多个SDU的数量的字段,即SDU Num域,用于指示PDU中封装有多少个SDU,便于接收端SDU Num域中所指示的SDU数量进行解析;且SDU Num域为可选择域,是否携带可与发送端预先约定或者通过信令配置。Among them, there is a field for encapsulating the number of multiple SDUs in the PDU, that is, the SDU Num field, which is used to indicate how many SDUs are encapsulated in the PDU, so that the number of SDUs indicated in the SDU Num field at the receiving end is analyzed; and the SDU Num field is Optional field, whether to carry it can be pre-agreed with the sender or configured through signaling.

本发明的上述实施例中,通过在对PDU数据包进行解析的过程中,根据PDU的传输格式,将PDU数据包解析成多个SDU,即将PDCP PDU级联多个上层数据的SDU,有效地减少了PDCP PDU数量;且可预先设计一组TFS集合,选择合适的PDCP PDU长用来发送,将多个应用层收到的数据包进行级联,并且在PDCP头中指示出应用层数据包的大小,方便接收端进行解包。通过PDCP的级联,一方面减少RLC和MAC头的个数,另一方面减少MAC中长度域的指示,同时如果采用配置的统一的PDCP PDU长度,数据包为固定长度,也会进一步降低数据包的处理时延。本发明在减少PDCP的PDU数量的同时,达到了减少RLC PDU头开销和MAC PDU头开销的技术效果,进而有效地提高业务处理的灵活性。本发明解决了现有的5G技术中,RLC层不具有级联功能,增加了RLC和MAC的头开销,降低了数据传输速度以及业务处理的灵活性的问题。In the above embodiment of the present invention, in the process of parsing the PDU data packet, according to the transmission format of the PDU, the PDU data packet is parsed into multiple SDUs, that is, the PDCP PDU is concatenated with multiple SDUs of upper layer data, effectively Reduce the number of PDCP PDUs; and a set of TFS sets can be pre-designed, an appropriate PDCP PDU length can be selected for transmission, data packets received by multiple application layers can be concatenated, and application layer data packets can be indicated in the PDCP header The size is convenient for the receiving end to unpack. Through the concatenation of PDCP, on the one hand, the number of RLC and MAC headers is reduced, and on the other hand, the indication of the length field in the MAC is reduced. At the same time, if the configured uniform PDCP PDU length is used, the data packet is a fixed length, which will further reduce the data Packet processing delay. While reducing the number of PDCP PDUs, the present invention achieves the technical effect of reducing RLC PDU header overhead and MAC PDU header overhead, thereby effectively improving the flexibility of business processing. The invention solves the problem that in the existing 5G technology, the RLC layer does not have a cascading function, which increases the header overhead of RLC and MAC, and reduces the data transmission speed and the flexibility of business processing.

参见图10,为了实现上述目的,本发明的实施例还提供了一种数据包的解析装置1000,包括:Referring to FIG. 10, in order to achieve the above purpose, an embodiment of the present invention also provides a data packet parsing device 1000, including:

接收模块1001,用于接收封装有多个业务数据单元SDU的协议数据单元PDU数据包;The receiving module 1001 is configured to receive a protocol data unit PDU packet encapsulated with a plurality of service data units SDU;

解析模块1002,用于根据PDU的传输格式,将PDU数据包解析成多个SDU。The parsing module 1002 is configured to parse the PDU data packet into multiple SDUs according to the transmission format of the PDU.

优选地,解析模块1002包括:Preferably, the parsing module 1002 includes:

第一解析子模块,用于获得多个SDU中每个SDU的长度信息;The first parsing submodule is used to obtain the length information of each SDU in the multiple SDUs;

第二解析子模块,用于根据PDU的传输格式,以及每个SDU的长度信息,对PDU数据包进行解析,获得多个SDU。The second parsing submodule is configured to parse the PDU data packet according to the transmission format of the PDU and the length information of each SDU to obtain multiple SDUs.

优选地,第一解析子模块包括:Preferably, the first parsing submodule includes:

第一获取单元,用于通过预先约定的方式或者通过接收到的携带有多个SDU的各SDU的数据包的长度信息的信令,获得多个SDU中每个SDU的长度信息;或者The first obtaining unit is configured to obtain the length information of each SDU in the plurality of SDUs in a pre-agreed manner or through the received signaling of the length information of the data packet carrying each SDU of the plurality of SDUs; or

第二获取单元,用于根据PDU的传输格式,从PDU数据包的预设字段中获取多个SDU中每个SDU的长度信息。The second obtaining unit is configured to obtain the length information of each SDU in the plurality of SDUs from a preset field of the PDU data packet according to the transmission format of the PDU.

优选地,预设字段为:PDU数据包的一连续的预设字段;或者在每一个SDU的数据包的前面、并与该SDU相邻的一预设字段。Preferably, the preset field is: a continuous preset field of the PDU data packet; or a preset field in front of each SDU data packet and adjacent to the SDU.

优选地,PDU数据包中还具有封装PDU的传输格式指示TFI,TFI中携带有用于指示PDU数据包的长度信息对应的索引,索引是传输格式集合TFS包括的多个预设的PDU数据包中的长度信息对应的索引;Preferably, the PDU data packet also has a transport format indication TFI for encapsulating the PDU, and the TFI carries an index corresponding to the length information indicating the PDU data packet, and the index is the number of preset PDU data packets included in the transmission format set TFS. The index corresponding to the length information of ;

和/或and / or

PDU数据包中还具有多个SDU的数量的字段,字段中携带有SDU的数量信息。The PDU data packet also has a field for the number of multiple SDUs, and the field carries the information about the number of SDUs.

本发明的上述实施例中提供的数据包的解析装置1000,通过在对PDU数据包进行解析的过程中,根据PDU的传输格式,将PDU数据包解析成多个SDU,即将PDCP PDU级联多个上层数据的SDU,有效地减少了PDCP PDU数量;本发明在减少PDCP的PDU数量的同时,达到了减少RLC PDU头开销和MAC PDU头开销的技术效果,进而有效地提高业务处理的灵活性。本发明解决了现有的5G技术中,RLC层不具有级联功能,增加了RLC和MAC的头开销,降低了数据传输速度以及业务处理的灵活性的问题。The data packet analysis device 1000 provided in the above-mentioned embodiments of the present invention parses the PDU data packet into multiple SDUs according to the transmission format of the PDU during the process of parsing the PDU data packet, that is, the PDCP PDU cascades multiple SDUs. The SDU of upper layer data effectively reduces the number of PDCP PDUs; while reducing the number of PDUs of PDCP, the present invention achieves the technical effect of reducing RLC PDU header overhead and MAC PDU header overhead, thereby effectively improving the flexibility of business processing . The invention solves the problem that in the existing 5G technology, the RLC layer does not have a cascading function, which increases the header overhead of RLC and MAC, and reduces the data transmission speed and the flexibility of business processing.

需要说明的是,本发明实施例提供的数据包的解析装置1000是应用上述方法的装置,即上述方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that the data packet parsing device 1000 provided by the embodiment of the present invention is a device applying the above method, that is, all embodiments of the above method are applicable to the device, and can achieve the same or similar beneficial effects.

为了实现上述目的,本发明的实施例还提供了一种接收端设备,包括上述数据包的解析装置1000。In order to achieve the above object, an embodiment of the present invention further provides a receiver device, including the above data packet parsing apparatus 1000 .

本发明的上述实施例中提供的接收端设备,通过在对PDU数据包进行解析的过程中,根据PDU的传输格式,将PDU数据包解析成多个SDU,即将PDCP PDU级联多个上层数据的SDU,有效地减少了PDCP PDU数量;本发明在减少PDCP的PDU数量的同时,达到了减少RLCPDU头开销和MAC PDU头开销的技术效果,进而有效地提高业务处理的灵活性。本发明解决了现有的5G技术中,RLC层不具有级联功能,增加了RLC和MAC的头开销,降低了数据传输速度以及业务处理的灵活性的问题。The receiver device provided in the above-mentioned embodiments of the present invention parses the PDU data packet into multiple SDUs according to the transmission format of the PDU during the process of parsing the PDU data packet, that is, cascading a plurality of upper layer data to the PDCP PDU SDUs effectively reduce the number of PDCP PDUs; while reducing the number of PDCP PDUs, the present invention achieves the technical effect of reducing RLC PDU header overhead and MAC PDU header overhead, thereby effectively improving the flexibility of business processing. The invention solves the problem that in the existing 5G technology, the RLC layer does not have a cascading function, which increases the header overhead of RLC and MAC, and reduces the data transmission speed and the flexibility of business processing.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (19)

1. a kind of packaging method of data packet, which is characterized in that including:
Obtain multiple Service Data Unit SDU to be packaged;
According to the transformat of the protocol Data Unit PDU of Packet Data Convergence Protocol PDCP, multiple SDU are packaged into PDU.
2. according to the method described in claim 1, it is characterized in that, the agreement number according to Packet Data Convergence Protocol PDCP According to the transformat of unit PDU, the step of multiple SDU are packaged into PDU, includes:
According to the transformat of PDU, the length information of the data packet of the multiple SDU is added into the predetermined word in PDU data packet It is encapsulated in the data field field of the PDU data packet in section and by the multiple SDU, the PDU after being encapsulated;Or
According to the transformat of PDU, according to the length information of each SDU in preset the multiple SDU, by the multiple SDU It is encapsulated in the data field field of PDU data packet, the PDU after being encapsulated.
3. according to the method described in claim 2, it is characterized in that, the transformat according to PDU, by the multiple SDU The length information of data packet add and be encapsulated in the PDU numbers in the preset field of PDU data packet and by the multiple SDU According in the data field field of packet, the step of PDU after being encapsulated, includes:
According to the transformat of PDU, the length information of each SDU in the data packet of the multiple SDU is added in the PDU In one continuous preset field of data packet, and the multiple SDU is encapsulated in the data field field of the PDU data packet In, the PDU after being encapsulated;Or
According to the transformat of PDU, the multiple SDU is encapsulated in the data field field of the PDU data packet, it will be described more The length information of each SDU in the data packet of a SDU adds before the data packet of the SDU and adjacent with the SDU respectively A preset field in, the PDU after being encapsulated.
4. according to the method described in claim 2, it is characterized in that, in the preset the multiple SDU each SDU length Information is sent to receiving terminal by default signaling by transmitting terminal or is made an appointment by the transmitting terminal and the receiving terminal.
5. according to claim 1-4 any one of them methods, which is characterized in that also have described in encapsulation in the PDU after encapsulation The field of the quantity of multiple SDU carries the quantity information of the SDU in the field.
6. according to the method described in claim 5, it is characterized in that, the field of the quantity of the multiple SDU of encapsulation is located at In the packet header of PDU data packet.
7. according to claim 1-4 any one of them methods, which is characterized in that also have described in encapsulation in the PDU after encapsulation The transformat of PDU indicates TFI;
The corresponding index of length information for being used to indicate PDU data packet is carried in the TFI, the index is TFS Transport Format Set Close the corresponding index of length information for multiple preset PDU data packets that TFS includes.
8. the method according to the description of claim 7 is characterized in that the TFI is preconfigured or works as according to transmitting terminal What the size mean value of the preceding data packet transmitted was selected from the TFS.
9. according to the method described in claim 8, it is characterized in that, the size for the data packet that the transmitting terminal can currently transmit is equal Value is:The product of the Mean Speed and a time interval of the currently transmitted business of transmitting terminal, the time interval is described Time interval between the sending time of PDU and the sending time of a upper PDU.
10. the method according to the description of claim 7 is characterized in that preset PDU data packet included in the TFS Length information is:N times of application layer data packet size and the sum of the byte length of header overhead of the PDU, wherein N are just whole Number.
11. a kind of analytic method of data packet, which is characterized in that including:
Receive the protocol Data Unit PDU data packet for being packaged with multiple Service Data Unit SDU;
According to the transformat of PDU, by the PDU data Packet analyzing at multiple SDU.
12. according to the method for claim 11, which is characterized in that the transformat according to PDU, by the PDU numbers The step of according to Packet analyzing at multiple SDU, including:
Obtain the length information of each SDU in the multiple SDU;
According to the transformat of PDU and the length information of each SDU, the PDU data packet is parsed, is obtained Multiple SDU.
13. according to the method for claim 12, which is characterized in that the length for obtaining each SDU in the multiple SDU The step of information, including:
The length of data packet by way of making an appointment or by each SDU for carrying the multiple SDU received The signaling of information obtains the length information of each SDU in the multiple SDU;Or
According to the transformat of the PDU, each SDU in the multiple SDU is obtained from the preset field of the PDU data packet Length information.
14. according to the method for claim 13, which is characterized in that the preset field is:One company of the PDU data packet Continuous preset field;Or before the data packet of each SDU and a preset field adjacent with the SDU.
15. according to claim 11-14 any one of them methods, which is characterized in that also have encapsulation in the PDU data packet The transformat of the PDU indicates TFI, and the corresponding rope of length information for being used to indicate the PDU data packet is carried in TFI Draw, the index is the corresponding index of length information in multiple preset PDU data packets that transmission format set TFS includes; And/or
Also there is the field of the quantity of the multiple SDU in the PDU data packet, the number of the SDU is carried in the field Measure information.
16. a kind of packaging system of data packet, which is characterized in that including:
Acquisition module, for obtaining multiple Service Data Unit SDU to be packaged;
Package module is used for the transformat of the protocol Data Unit PDU according to Packet Data Convergence Protocol PDCP, will be multiple SDU is packaged into PDU.
17. a kind of sending ending equipment, which is characterized in that including:The packaging system of data packet as claimed in claim 16.
18. a kind of resolver of data packet, which is characterized in that including:
Receiving module, for receiving the protocol Data Unit PDU data packet for being packaged with multiple Service Data Unit SDU;
Parsing module, for the transformat according to PDU, by the PDU data Packet analyzing at multiple SDU.
19. a kind of receiving device, which is characterized in that including:The resolver of data packet as claimed in claim 18.
CN201710232334.5A 2017-04-11 2017-04-11 A kind of packaging method of data packet, analytic method, device and equipment Pending CN108696900A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710232334.5A CN108696900A (en) 2017-04-11 2017-04-11 A kind of packaging method of data packet, analytic method, device and equipment
PCT/CN2018/081891 WO2018188510A1 (en) 2017-04-11 2018-04-04 Method, apparatus and device for encapsulating and parsing data packet in data link layer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710232334.5A CN108696900A (en) 2017-04-11 2017-04-11 A kind of packaging method of data packet, analytic method, device and equipment

Publications (1)

Publication Number Publication Date
CN108696900A true CN108696900A (en) 2018-10-23

Family

ID=63842439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710232334.5A Pending CN108696900A (en) 2017-04-11 2017-04-11 A kind of packaging method of data packet, analytic method, device and equipment

Country Status (1)

Country Link
CN (1) CN108696900A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688606A (en) * 2018-12-29 2019-04-26 京信通信系统(中国)有限公司 Data processing method, device, computer equipment and storage medium
WO2021078075A1 (en) * 2019-10-21 2021-04-29 华为技术有限公司 Communication method and device, and system
WO2022073460A1 (en) * 2020-10-06 2022-04-14 Mediatek Singapore Pte. Ltd. Pdu rate reduction in mobile communications
WO2022147801A1 (en) * 2021-01-08 2022-07-14 华为技术有限公司 Data processing method and apparatus
WO2025030466A1 (en) * 2023-08-10 2025-02-13 Shenzhen Tcl New Technology Co., Ltd. Wireless communication method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101932128A (en) * 2009-06-25 2010-12-29 大唐移动通信设备有限公司 Data receiving, transmitting and processing method and equipment for data link layer
US20110033048A1 (en) * 2001-01-16 2011-02-10 Wi-Lan, Inc. Packing source data packets into transporting packets with fragmentation
CN102655448A (en) * 2011-03-03 2012-09-05 工业和信息化部电信传输研究所 Data transmission method for medium access control layer of long-term evolution system
CN106233696A (en) * 2014-04-22 2016-12-14 Lg电子株式会社 Send method and the equipment thereof of the explicit signal of layer 2 state variable for D2D communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110033048A1 (en) * 2001-01-16 2011-02-10 Wi-Lan, Inc. Packing source data packets into transporting packets with fragmentation
CN101932128A (en) * 2009-06-25 2010-12-29 大唐移动通信设备有限公司 Data receiving, transmitting and processing method and equipment for data link layer
CN102655448A (en) * 2011-03-03 2012-09-05 工业和信息化部电信传输研究所 Data transmission method for medium access control layer of long-term evolution system
CN106233696A (en) * 2014-04-22 2016-12-14 Lg电子株式会社 Send method and the equipment thereof of the explicit signal of layer 2 state variable for D2D communication system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688606A (en) * 2018-12-29 2019-04-26 京信通信系统(中国)有限公司 Data processing method, device, computer equipment and storage medium
CN109688606B (en) * 2018-12-29 2022-03-25 京信网络系统股份有限公司 Data processing method, device, computer equipment and storage medium
WO2021078075A1 (en) * 2019-10-21 2021-04-29 华为技术有限公司 Communication method and device, and system
CN112770267A (en) * 2019-10-21 2021-05-07 华为技术有限公司 Communication method, device and system
CN112770267B (en) * 2019-10-21 2022-05-13 华为技术有限公司 A communication method, device and system
WO2022073460A1 (en) * 2020-10-06 2022-04-14 Mediatek Singapore Pte. Ltd. Pdu rate reduction in mobile communications
WO2022147801A1 (en) * 2021-01-08 2022-07-14 华为技术有限公司 Data processing method and apparatus
WO2025030466A1 (en) * 2023-08-10 2025-02-13 Shenzhen Tcl New Technology Co., Ltd. Wireless communication method and device

Similar Documents

Publication Publication Date Title
CN102377803B (en) A data processing method, device and system
CN108696900A (en) A kind of packaging method of data packet, analytic method, device and equipment
CN112333151B (en) Method, device and system for receiving CPRI data stream and Ethernet frame
WO2019233310A1 (en) Method and apparatus for device to be configured with network to access network hotspot device
KR102633193B1 (en) Message processing methods and related devices
WO2017198236A1 (en) Data transmission method, device, and system
US20090296683A1 (en) Transmitting a protocol data unit using descriptors
WO2016197804A1 (en) Method and device for compressing data packet
JP2018182769A (en) Apparatus and method for transferring multimedia data in broadcast system
US20120275471A1 (en) Aligning Protocol Data Units
JP2020506595A (en) Data processing method, communication device, and network device
CN106713415B (en) A data transmission method and system
CN108632326B (en) Method and device for transmitting data by protocol data unit
WO2009033371A1 (en) System and apparatus for filling protocol data unit (pdu) and the processing method thereof
US20180131609A1 (en) Protocol frame transmission method, apparatus, and system, and node device
US20180146077A1 (en) Method and apparatus for determining processing mode for data packet
CN102118792A (en) Method and device for transmitting data packets
US20090323584A1 (en) Method and Apparatus for Parallel Processing Protocol Data Units
CN102916936A (en) IP data encapsulating method and system applicable to IP over DVB (digital video broadcasting)
US20090298508A1 (en) Receiving and Processing Protocol Data Units
US20090323585A1 (en) Concurrent Processing of Multiple Bursts
CN103634229B (en) A kind of Inter-chip communication method and control device
CN116017564B (en) Satellite reverse link efficient transmission method, system, equipment and storage medium
CN106209318B (en) A MAC protocol data transmission method for TD-LTE
WO2018188510A1 (en) Method, apparatus and device for encapsulating and parsing data packet in data link layer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181023

RJ01 Rejection of invention patent application after publication