[go: up one dir, main page]

CN112789839B - A data packet processing method, device and storage medium - Google Patents

A data packet processing method, device and storage medium Download PDF

Info

Publication number
CN112789839B
CN112789839B CN201980064919.8A CN201980064919A CN112789839B CN 112789839 B CN112789839 B CN 112789839B CN 201980064919 A CN201980064919 A CN 201980064919A CN 112789839 B CN112789839 B CN 112789839B
Authority
CN
China
Prior art keywords
pdcp
electronic device
data packet
sending
receiving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201980064919.8A
Other languages
Chinese (zh)
Other versions
CN112789839A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN112789839A publication Critical patent/CN112789839A/en
Application granted granted Critical
Publication of CN112789839B publication Critical patent/CN112789839B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements

Landscapes

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

Abstract

The invention discloses a data packet processing method, which comprises the following steps: the first transmitting electronic device sets a Packet Data Convergence Protocol (PDCP) Sequence Number (SN) and/or a state variable of a PDCP data packet based on the first information; the first information is a pre-agreed PDCP SN and/or a PDCP SN distribution rule; or, the first information is a PDCP SN and/or a PDCP SN allocation rule sent by the first sending electronic device to the second sending electronic device and/or the receiving electronic device. The invention also discloses another data packet processing method, another data packet processing device and another storage medium.

Description

一种数据包处理方法、设备及存储介质A data packet processing method, device and storage medium

技术领域technical field

本发明涉及无线通信技术领域,尤其涉及一种数据包处理方法、设备及存储介质。The present invention relates to the technical field of wireless communication, in particular to a data packet processing method, device and storage medium.

背景技术Background technique

相关技术中,在对分组汇聚数据协议(Packet Data Convergence Protocol,PDCP)数据包进行传输时,接收电子设备接收到的PDCP数据包可能来自不同发送电子设备的PDCP实体;如接收电子设备接收源网络设备的PDCP实体和目标网络设备的PDCP实体发送的PDCP数据包。为了实现对PDCP数据包的有效管理,发送电子设备如何设置PDCP序号(Serial Number,SN),以及接收电子设备如何基于PDCP SN对接收的PDCP数据包进行处理,目前尚无有效解决方案。In related technologies, when transmitting Packet Data Convergence Protocol (PDCP) data packets, the PDCP data packets received by the receiving electronic device may come from different PDCP entities of the sending electronic device; for example, the receiving electronic device receives the source network PDCP packets sent by the PDCP entity of the device and the PDCP entity of the target network device. In order to realize effective management of PDCP data packets, there is currently no effective solution on how to set the PDCP serial number (Serial Number, SN) on the sending electronic device, and how to process the received PDCP data packets on the basis of the PDCP SN on the receiving electronic device.

发明内容Contents of the invention

为解决上述技术问题,本发明实施例提供一种数据包处理方法、设备及存储介质,能够实现对PDCP数据包的有效管理。In order to solve the above technical problems, embodiments of the present invention provide a data packet processing method, device, and storage medium, which can realize effective management of PDCP data packets.

第一方面,本发明实施例提供一种数据包处理方法,包括:第一发送电子设备基于第一信息设置PDCP数据包的PDCP SN和/或状态变量;所述第一信息为预先约定的PDCP SN和/或PDCP SN分配规则;或者,所述第一信息为所述第一发送电子设备向第二发送电子设备和/或接收电子设备发送的PDCP SN和/或PDCP SN分配规则。In the first aspect, an embodiment of the present invention provides a data packet processing method, including: the first sending electronic device sets the PDCP SN and/or state variable of the PDCP data packet based on the first information; the first information is a pre-agreed PDCP SN and/or PDCP SN assignment rule; or, the first information is the PDCP SN and/or PDCP SN assignment rule sent by the first sending electronic device to the second sending electronic device and/or receiving electronic device.

第二方面,本发明实施例提供一种数据包处理方法,包括:接收电子设备接收至少两个发送电子设备的PDCP SN和/或PDCP SN分配规则;所述接收电子设备根据所述PDCP SN和/或PDCP SN分配规则对PDCP数据包进行处理。In the second aspect, the embodiment of the present invention provides a data packet processing method, including: the receiving electronic device receives the PDCP SN and/or PDCP SN allocation rules of at least two sending electronic devices; the receiving electronic device according to the PDCP SN and /or the PDCP SN allocation rule processes the PDCP data packet.

第三方面,本发明实施例提供一种发送电子设备,所述发送电子设备包括:第一处理单元,配置为基于第一信息设置PDCP数据包的PDCP SN和/或状态变量;所述第一信息为预先约定的PDCP SN和/或PDCP SN分配规则;或者,所述第一信息为所述发送电子设备向第二发送电子设备和/或接收电子设备发送的PDCP SN和/或PDCP SN分配规则。In a third aspect, an embodiment of the present invention provides a sending electronic device, which includes: a first processing unit configured to set a PDCP SN and/or a state variable of a PDCP data packet based on first information; the first The information is a pre-agreed PDCP SN and/or PDCP SN allocation rule; or, the first information is the PDCP SN and/or PDCP SN allocation sent by the sending electronic device to the second sending electronic device and/or receiving electronic device rule.

第四方面,本发明实施例提供一种接收电子设备,所述接收电子设备包括:接收单元,配置为接收至少两个发送电子设备的PDCP SN和/或PDCP SN分配规则;In a fourth aspect, an embodiment of the present invention provides a receiving electronic device, the receiving electronic device comprising: a receiving unit configured to receive PDCP SNs and/or PDCP SN allocation rules of at least two sending electronic devices;

第二处理单元,配置为根据所述PDCP SN和/或PDCP SN分配规则对PDCP数据包进行处理。The second processing unit is configured to process the PDCP data packet according to the PDCP SN and/or the PDCP SN allocation rule.

第五方面,本发明实施例提供一种发送电子设备,包括处理器和用于存储能够在处理器上运行的计算机程序的存储器,其中,所述处理器用于运行所述计算机程序时,执行上述发送电子设备执行的数据包处理方法的步骤。In a fifth aspect, an embodiment of the present invention provides a sending electronic device, including a processor and a memory for storing a computer program that can run on the processor, wherein, when the processor is used to run the computer program, execute the above-mentioned The steps of the data packet processing method performed by the sending electronic device.

第六方面,本发明实施例提供一种接收电子设备,包括处理器和用于存储能够在处理器上运行的计算机程序的存储器,其中,所述处理器用于运行所述计算机程序时,执行上述接收电子设备执行的数据包处理方法的步骤。In a sixth aspect, an embodiment of the present invention provides a receiving electronic device, including a processor and a memory for storing a computer program that can run on the processor, wherein, when the processor is used to run the computer program, execute the above-mentioned The steps of the data packet processing method executed by the receiving electronic device.

第七方面,本发明实施例提供一种存储介质,存储有可执行程序,所述可执行程序被处理器执行时,实现上述发送电子设备执行的数据包处理方法。In a seventh aspect, an embodiment of the present invention provides a storage medium storing an executable program, and when the executable program is executed by a processor, implements the data packet processing method executed by the sending electronic device.

第八方面,本发明实施例提供一种存储介质,存储有可执行程序,所述可执行程序被处理器执行时,实现上述接收电子设备执行的数据包处理方法。In an eighth aspect, an embodiment of the present invention provides a storage medium storing an executable program, and when the executable program is executed by a processor, implements the data packet processing method performed by the above receiving electronic device.

本发明实施例提供的数据包处理方法,发送电子设备基于第一信息设置PDCP数据包的PDCP SN和/或状态变量;其中,所述第一信息为预先约定的PDCP SN和/或PDCP SN分配规则;或者,所述第一信息为所述第一发送电子设备向第二发送电子设备和/或接收电子设备发送的PDCP SN和/或PDCP SN分配规则。如此,使得终端设备与源网络设备和目标网络设备同时进行数据传输时,发送电子设备能够对PDCP数据包的PDCP SN和/或状态变量进行合理有序的设置,避免终端设备、源网络设备和目标网络设备对PDCP SN的理解不一致导致的对PDCP数据包进行错误处理的问题。接收电子设备根据所述PDCP SN和/或PDCP SN分配规则对PDCP数据包进行冗余排序、检测、删除、冗余检测,避免了接收到PDCP数据包后向高层递交延迟的问题,提高了网络系统整体的数据传输速率。In the data packet processing method provided by the embodiment of the present invention, the sending electronic device sets the PDCP SN and/or state variable of the PDCP data packet based on the first information; wherein, the first information is the pre-agreed PDCP SN and/or PDCP SN allocation A rule; or, the first information is the PDCP SN and/or PDCP SN allocation rule sent by the first sending electronic device to the second sending electronic device and/or receiving electronic device. In this way, when the terminal device and the source network device and the target network device perform data transmission at the same time, the sending electronic device can set the PDCP SN and/or state variables of the PDCP data packet in a reasonable and orderly manner, avoiding the terminal device, the source network device and the target network device. Inconsistent understanding of the target network device on the PDCP SN causes the problem of incorrect processing of the PDCP data packet. The receiving electronic device performs redundant sorting, detection, deletion, and redundancy detection on the PDCP data packets according to the PDCP SN and/or PDCP SN allocation rules, which avoids the problem of delaying delivery to the upper layer after receiving the PDCP data packets, and improves the network efficiency. The overall data transfer rate of the system.

附图说明Description of drawings

图1为本发明NR系统中小区切换的流程示意图;FIG. 1 is a schematic flow diagram of cell handover in the NR system of the present invention;

图2为本发明条件切换的流程示意图;Fig. 2 is a schematic flow chart of conditional switching in the present invention;

图3为本发明针对PDCP数据包的收发处理流程示意图;Fig. 3 is a schematic diagram of the present invention's sending and receiving process for PDCP packets;

图4为本发明COUNT的格式示意图;Fig. 4 is the format diagram of COUNT of the present invention;

图5为本发明实施例通信系统的组成结构示意图;FIG. 5 is a schematic diagram of the composition and structure of a communication system according to an embodiment of the present invention;

图6为本发明实施例数据包处理方法的一种可选处理流程示意图;FIG. 6 is a schematic diagram of an optional processing flow of a data packet processing method according to an embodiment of the present invention;

图7为本发明实施例PDCP controlPDU类型及类型指示的示意图示意图;7 is a schematic diagram of a PDCP controlPDU type and type indication according to an embodiment of the present invention;

图8为本发明实施例第一发送电子设备设置所述PDCP数据包的PDCP SN和/或状态变量的处理流程示意图;8 is a schematic diagram of a processing flow for setting the PDCP SN and/or state variable of the PDCP data packet by the first sending electronic device according to an embodiment of the present invention;

图9为本发明实施例数据包处理方法的另一种可选处理流程示意图;FIG. 9 is a schematic diagram of another optional processing flow of a data packet processing method according to an embodiment of the present invention;

图10为本发明实施例PDCP数据包处理方法的一种详细处理流程示意图;10 is a schematic diagram of a detailed processing flow of a PDCP data packet processing method according to an embodiment of the present invention;

图11为本发明实施例源网络设备与目标网络设备交互PDCP SN或PDCP SN分配规则示意图;FIG. 11 is a schematic diagram of a PDCP SN or a PDCP SN assignment rule between a source network device and a target network device according to an embodiment of the present invention;

图12为本发明实施例源网络设备和目标网络设备与终端设备的传输示意图;FIG. 12 is a schematic diagram of transmission between a source network device, a target network device, and a terminal device according to an embodiment of the present invention;

图13为本发明实施例携带PDCP SN bitmap指示的PDCP control PDU的格式示意图;FIG. 13 is a schematic diagram of the format of a PDCP control PDU carrying a PDCP SN bitmap indication according to an embodiment of the present invention;

图14为本发明实施例PDCP数据包处理方法的另一种详细处理流程示意图;FIG. 14 is a schematic diagram of another detailed processing flow of a PDCP packet processing method according to an embodiment of the present invention;

图15a携带有实际的PDCP SN和虚拟的PDCP SN的PDCP PDU的格式示意图一;Figure 15a is a schematic diagram of the format of a PDCP PDU carrying an actual PDCP SN and a virtual PDCP SN;

图15b携带有实际的PDCP SN和虚拟的PDCP SN的PDCP PDU的格式示意图二;Figure 15b is a second schematic diagram of the format of the PDCP PDU carrying the actual PDCP SN and the virtual PDCP SN;

图15c携带有实际的PDCP SN和虚拟的PDCP SN的PDCP PDU的格式示意图三;Figure 15c is a schematic diagram of the third format of the PDCP PDU carrying the actual PDCP SN and the virtual PDCP SN;

图16为本发明实施例源网络设备和目标网络设备发送给终端设备的PDCP实体的PDCP PDU中均携带实际的PDCP SN和虚拟的PDCP SN的示意图;FIG. 16 is a schematic diagram of the PDCP PDU sent by the source network device and the target network device to the terminal device's PDCP entity according to the embodiment of the present invention, both carrying the actual PDCP SN and the virtual PDCP SN;

图17为本发明实施例发送电子设备的组成结构示意图;FIG. 17 is a schematic diagram of the composition and structure of the sending electronic device according to the embodiment of the present invention;

图18为本发明实施例接收电子设备的组成结构示意图;FIG. 18 is a schematic diagram of the composition and structure of receiving electronic equipment according to an embodiment of the present invention;

图19为本发明实施例电子设备的硬件组成结构示意图。FIG. 19 is a schematic diagram of a hardware composition structure of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

为了能够更加详尽地了解本发明实施例的特点和技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明实施例。In order to understand the characteristics and technical contents of the embodiments of the present invention in more detail, the implementation of the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. The attached drawings are only for reference and description, and are not intended to limit the embodiments of the present invention.

在对本发明实施例提供的数据处理方法进行详细说明之前,先对相关技术数据处理过程进行简要说明。Before the data processing method provided by the embodiment of the present invention is described in detail, a brief description of the data processing process in the related technology is given first.

新无线(New Radio,NR)系统系统支持连接态终端设备的切换过程。当正在使用网络服务的终端设备从一个小区移动到另一个小区,或由于无线传输业务负荷量调整、激活操作维护、设备故障等原因,为了保证通信的连续性和服务的质量,系统要将该终端设备与原小区的通信链路转移到新的小区上,即执行切换过程。The new radio (New Radio, NR) system supports the handover process of the terminal equipment in the connected state. When a terminal device using network services moves from one cell to another, or due to wireless transmission business load adjustment, activation operation maintenance, equipment failure, etc., in order to ensure the continuity of communication and the quality of service, the system will The communication link between the terminal equipment and the original cell is transferred to the new cell, that is, the handover process is performed.

以Xn接口切换过程为例,适用于长期演进(Long Term Evolution,LTE)系统以及NR系统的小区切换过程,如图1所示,分为以下三个阶段:Taking the Xn interface handover process as an example, it is suitable for the long term evolution (Long Term Evolution, LTE) system and the cell handover process of the NR system. As shown in Figure 1, it is divided into the following three stages:

阶段1(包括步骤1至5),切换准备:包括测量控制和汇报,切换请求以及确认Phase 1 (including steps 1 to 5), handover preparation: including measurement control and reporting, handover request and confirmation

阶段2(包括步骤6至8),切换执行:终端设备在收到切换命令后立即执行切换过程,即终端设备断开源小区并与目标小区连接(如执行随机接入,发送无线资源控制(RadioResource Control,RRC)切换完成消息给目标网络设备等);辅节点(Secondary Node,SN)状态转移,数据转发。Phase 2 (including steps 6 to 8), handover execution: the terminal device immediately executes the handover process after receiving the handover command, that is, the terminal device disconnects the source cell and connects with the target cell (such as performing random access, sending radio resource control (RadioResource Control, RRC) switching completion message to the target network device, etc.); secondary node (Secondary Node, SN) state transfer, data forwarding.

阶段3(包括步骤9至12),切换完成:目标小区与(Acess and MobilityManagement Function,AMF)和用户面功能(User Port Function,UPF)执行路径切换(PathSwitch),释放源网络设备的终端设备上下文。Phase 3 (including steps 9 to 12), the handover is completed: the target cell performs path switching (PathSwitch) with (Acess and MobilityManagement Function, AMF) and user plane function (User Port Function, UPF), and releases the terminal device context of the source network device .

下面对conditional handover进行简要说明。The following is a brief description of conditional handover.

针对高速移动场景和高频部署场景存在频繁切换以及切换容易失败的问题,3GPP当前正在讨论为LTE和NR系统引入conditional handover。如图2所示,终端设备与源网络设备进行小区测量、配置和报告;源网络设备和目标网络设备进行切换准备;当终端设备满足触发条件切换到目标网络设备。Conditional handover中,通过为终端设备提前配置切换(Handover,HO)命令(command),避免了切换准备时间过长而导致的终端设备要切换的时候已经过晚的问题。并且,对于高铁场景,终端设备的运行轨迹是特定的,所以源网络设备可以提前把目标网络设备配给终端设备,并且在HO command中包含用于触发终端设备进行切换的条件,当满足所配的条件时,终端设备向目标网络设备发起接入请求。For high-speed mobile scenarios and high-frequency deployment scenarios, there are frequent handovers and handovers that are prone to failure. 3GPP is currently discussing the introduction of conditional handover for LTE and NR systems. As shown in Figure 2, the terminal device and the source network device perform cell measurement, configuration and reporting; the source network device and the target network device prepare for handover; when the terminal device meets the trigger conditions, it switches to the target network device. In the Conditional handover, by configuring a handover (Handover, HO) command (command) for the terminal device in advance, it avoids the problem that the terminal device is too late when the handover preparation time is too long. Moreover, for the high-speed rail scenario, the running track of the terminal device is specific, so the source network device can allocate the target network device to the terminal device in advance, and include the conditions used to trigger the terminal device to switch in the HO command. condition, the terminal device initiates an access request to the target network device.

3GPP RAN2#104次会议已经同意条件切换,并支持在条件切换的切换命令中配置多个目标小区,终端设备基于所配置的条件判断接入哪个目标小区。The 3GPP RAN2#104 meeting has agreed on conditional handover, and supports the configuration of multiple target cells in the handover command of conditional handover, and the terminal device judges which target cell to access based on the configured conditions.

在3GPP移动性增强课题中,提出了对于小区切换时减小中断时间的优化方法,包括以下两种架构:In the 3GPP mobility enhancement topic, an optimization method for reducing the interruption time during cell handover is proposed, including the following two architectures:

1)在进行小区切换时,先把目标网络设备添加为辅节点,再通过role change信令来把辅节点变为主节点,最后释放源网络设备;从而达到小区切换时中断时间减小的效果。1) When performing cell switching, first add the target network device as a secondary node, then use role change signaling to change the secondary node into a primary node, and finally release the source network device; thus achieving the effect of reducing the interruption time during cell switching .

2)基于现有的切换流程,终端设备(User Equipment,UE)在收到条件切换命令时,继续保持和源网络设备的连接,同时向目标网络设备发起随机接入,直至终端设备与目标网络设备接入完成才释放源基站的连接。2) Based on the existing handover process, when the terminal equipment (User Equipment, UE) receives the conditional handover command, it continues to maintain the connection with the source network equipment, and at the same time initiates random access to the target network equipment until the terminal equipment and the target network The connection to the source base station is released only after the device access is completed.

针对PDCP数据包的收发处理流程,如图3所示,以终端设备为例,PDCP实体发送端在从上层接收到一个PDCP SDU后,将接收的PDCP SDU的计数值(COUNT)与TX_NEXT关联,设置该PDCP SDU对应的PDCP SN为TX_NEXT modulo 2[pdcp-SN-SizeUL],TX_NEXT加l。For the sending and receiving processing flow of PDCP data packets, as shown in Figure 3, taking the terminal device as an example, after receiving a PDCP SDU from the upper layer, the PDCP entity sender associates the count value (COUNT) of the received PDCP SDU with TX_NEXT, Set the PDCP SN corresponding to the PDCP SDU to TX_NEXT modulo 2 [pdcp-SN-SizeUL] , and add 1 to TX_NEXT.

PDCP实体接收端基于t-reordering定时器对接收到的PDCP PDU进行重排序,并在t-reordering超时时或状态变量满足条件时(如RCVD_COUNT=RX_DELIV时),向高层按序递交PDCP SDU。具体的,在收到PDCP PDU,且RX_DELIV<RX_NEXT且t-reordering未运行时,开启t-reordering,设置RX_REOERD为RX_NEXT。在t-reordering超时时,向高层按序PDCPSDU。The receiving end of the PDCP entity reorders the received PDCP PDUs based on the t-reordering timer, and when the t-reordering times out or the state variable meets the conditions (such as when RCVD_COUNT=RX_DELIV), the PDCP SDUs are sequentially delivered to the upper layer. Specifically, when a PDCP PDU is received and RX_DELIV<RX_NEXT and t-reordering is not running, enable t-reordering and set RX_REOERD to RX_NEXT. When t-reordering times out, sequence PDCP SDUs to the upper layer.

其中,TX_NEXT,指示待发送的下一个PDCP SDU的COUNT值;RX_REOERD,表示触发t-reordering的PDCP data PDU对应的COUNT值;RX_NEXT,指示待接收的下一个PDCP SDU的COUNT值;RX_DELIV,指示第一个仍旧处于等待确认状态,未递交到upper layer的COUNT值;RCVD_COUNT,标识当前收到的PDCP数据PDU的COUNT值。COUNT的长度为32bit,COUNT的格式示意图,如图4所示,由超帧号(Hyper Frame Number,HFN)和PDCP SN共同组成,其为[HFN,SN]。HFN长度为32-PDCP SN长度。Among them, TX_NEXT indicates the COUNT value of the next PDCP SDU to be sent; RX_REOERD indicates the COUNT value corresponding to the PDCP data PDU that triggers t-reordering; RX_NEXT indicates the COUNT value of the next PDCP SDU to be received; RX_DELIV indicates the COUNT value of the next PDCP SDU to be received; A COUNT value that is still waiting for confirmation and has not been submitted to the upper layer; RCVD_COUNT, which identifies the COUNT value of the currently received PDCP data PDU. The length of COUNT is 32 bits, and the schematic diagram of the format of COUNT, as shown in FIG. 4 , is composed of Hyper Frame Number (Hyper Frame Number, HFN) and PDCP SN, which is [HFN, SN]. The HFN length is 32-PDCP SN length.

本申请实施例的数据包处理方法可以应用于各种通信系统,例如:全球移动通讯(Global System ofMobile communication,GSM)系统、码分多址(Code DivisionMultiple Access,CDMA)系统、宽带码分多址(Wideband Code Division MultipleAccess,WCDMA)系统、通用分组无线业务(General Packet Radio Service,GPRS)、LTE系统、LTE频分双工(Frequency Division Duplex,FDD)系统、LTE时分双工(Time Division Duplex,TDD)、通用移动通信系统(Universal Mobile Telecommunication System,UMTS)、全球互联微波接入(Worldwide Interoperability for Microwave Access,WiMAX)通信系统或5G系统等。The data packet processing method of the embodiment of the present application can be applied to various communication systems, such as: Global System of Mobile communication (Global System of Mobile communication, GSM) system, code division multiple access (Code Division Multiple Access, CDMA) system, wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA) system, General Packet Radio Service (General Packet Radio Service, GPRS), LTE system, LTE Frequency Division Duplex (Frequency Division Duplex, FDD) system, LTE Time Division Duplex (Time Division Duplex, TDD ), Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) communication system or 5G system, etc.

示例性的,本申请实施例应用的通信系统100如图5所示。该通信系统100可以包括网络设备110,网络设备110可以是与终端设备120(或称为通信终端、终端)通信的设备。网络设备110可以为特定的地理区域提供通信覆盖,并且可以与位于该覆盖区域内的终端设备进行通信。可选地,该网络设备110可以是GSM系统或CDMA系统中的基站(BaseTransceiver Station,BTS),也可以是WCDMA系统中的基站(NodeB,NB),还可以是LTE系统中的演进型基站(Evolutional Node B,eNB或eNodeB),或者是云无线接入网络(CloudRadio Access Network,CRAN)中的无线控制器,或者该网络设备可以为移动交换中心、中继站、接入点、车载设备、可穿戴设备、集线器、交换机、网桥、路由器、5G网络中的网络侧设备或者未来演进的公共陆地移动网络(Public Land Mobile Network,PLMN)中的网络设备等。Exemplarily, a communication system 100 applied in the embodiment of the present application is shown in FIG. 5 . The communication system 100 may include a network device 110, and the network device 110 may be a device for communicating with a terminal device 120 (or called a communication terminal, terminal). The network device 110 can provide communication coverage for a specific geographical area, and can communicate with terminal devices located in the coverage area. Optionally, the network device 110 may be a base station (Base Transceiver Station, BTS) in a GSM system or a CDMA system, or a base station (NodeB, NB) in a WCDMA system, or an evolved base station ( Evolutional Node B, eNB or eNodeB), or the wireless controller in the Cloud Radio Access Network (CloudRadio Access Network, CRAN), or the network device can be a mobile switching center, relay station, access point, vehicle equipment, wearable Devices, hubs, switches, bridges, routers, network-side devices in the 5G network or network devices in the future evolved Public Land Mobile Network (PLMN), etc.

该通信系统100还包括位于网络设备110覆盖范围内的至少一个终端设备120。作为在此使用的“终端设备”包括但不限于经由有线线路连接,如经由公共交换电话网络(Public Switched Telephone Networks,PSTN)、数字用户线路(Digital SubscriberLine,DSL)、数字电缆、直接电缆连接;和/或另一数据连接/网络;和/或经由无线接口,如,针对蜂窝网络、无线局域网(Wireless Local Area Network,WLAN)、诸如DVB-H网络的数字电视网络、卫星网络、AM-FM广播发送器;和/或另一终端设备的被设置成接收/发送通信信号的装置;和/或物联网(Internet ofThings,IoT)设备。被设置成通过无线接口通信的终端设备可以被称为“无线通信终端”、“无线终端”或“移动终端”。移动终端的示例包括但不限于卫星或蜂窝电话;可以组合蜂窝无线电电话与数据处理、传真以及数据通信能力的个人通信系统(Personal Communications System,PCS)终端;可以包括无线电电话、寻呼机、因特网/内联网接入、Web浏览器、记事簿、日历以及/或全球定位系统(Global PositioningSystem,GPS)接收器的PDA;以及常规膝上型和/或掌上型接收器或包括无线电电话收发器的其它电子装置。终端设备可以指接入终端、用户设备(User Equipment,UE)、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。接入终端可以是蜂窝电话、无绳电话、会话启动协议(Session InitiationProtocol,SIP)电话、无线本地环路(Wireless Local Loop,WLL)站、个人数字处理(Personal Digital Assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备、5G网络中的终端设备或者未来演进的PLMN中的终端设备等。The communication system 100 also includes at least one terminal device 120 located within the coverage of the network device 110 . As used herein, "terminal equipment" includes, but is not limited to, a connection via a wired line, such as via a Public Switched Telephone Network (PSTN), Digital Subscriber Line (DSL), digital cable, direct cable connection; and/or another data connection/network; and/or via a wireless interface, e.g., for cellular networks, wireless local area networks (Wireless Local Area Network, WLAN), digital television networks such as DVB-H networks, satellite networks, AM-FM A broadcast transmitter; and/or an apparatus of another terminal device configured to receive/send communication signals; and/or an Internet of Things (Internet of Things, IoT) device. A terminal device arranged to communicate over a wireless interface may be referred to as a "wireless communication terminal", "wireless terminal" or "mobile terminal". Examples of mobile terminals include, but are not limited to, satellite or cellular telephones; Personal Communications System (PCS) terminals that may combine cellular radiotelephones with data processing, facsimile, and data communication capabilities; may include radiotelephones, pagers, Internet/Internet PDAs with network access, Web browsers, organizers, calendars, and/or Global Positioning System (GPS) receivers; and conventional laptop and/or palmtop receivers or other electronic devices including radiotelephone transceivers device. The terminal equipment may refer to an access terminal, a user equipment (User Equipment, UE), a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, or user device. The access terminal can be a cellular phone, a cordless phone, a session initiation protocol (Session Initiation Protocol, SIP) phone, a wireless local loop (Wireless Local Loop, WLL) station, a personal digital processing (Personal Digital Assistant, PDA), a wireless communication function Handheld devices, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, wearable devices, terminal devices in 5G networks or terminal devices in future evolved PLMNs, etc.

可选地,终端设备120之间可以进行终端直连(Device to Device,D2D)通信。Optionally, direct device to device (Device to Device, D2D) communication may be performed between terminal devices 120 .

可选地,5G系统或5G网络还可以称为新无线(NewRadio,NR)系统或NR网络。Optionally, a 5G system or a 5G network may also be called a New Radio (New Radio, NR) system or an NR network.

图5示例性地示出了一个网络设备和两个终端设备,可选地,该通信系统100可以包括多个网络设备并且每个网络设备的覆盖范围内可以包括其它数量的终端设备,本申请实施例对此不做限定。FIG. 5 exemplarily shows one network device and two terminal devices. Optionally, the communication system 100 may include multiple network devices and each network device may include other numbers of terminal devices within the coverage area. This application The embodiment does not limit this.

可选地,该通信系统100还可以包括网络控制器、移动管理实体等其他网络实体,本申请实施例对此不作限定。Optionally, the communication system 100 may further include other network entities such as a network controller and a mobility management entity, which is not limited in this embodiment of the present application.

应理解,本申请实施例中网络/系统中具有通信功能的设备可称为通信设备。以图5示出的通信系统100为例,通信设备可包括具有通信功能的网络设备110和终端设备120,网络设备110和终端设备120可以为上文所述的具体设备,此处不再赘述;通信设备还可包括通信系统100中的其他设备,例如网络控制器、移动管理实体等其他网络实体,本申请实施例中对此不做限定。It should be understood that a device with a communication function in the network/system in the embodiment of the present application may be referred to as a communication device. Taking the communication system 100 shown in FIG. 5 as an example, the communication device may include a network device 110 and a terminal device 120 with communication functions, and the network device 110 and the terminal device 120 may be the specific devices described above, which will not be repeated here. The communication device may also include other devices in the communication system 100, such as network controllers, mobility management entities and other network entities, which are not limited in this embodiment of the present application.

本发明实施例提供的数据包处理方法的一种可选处理流程,如图6所示,包括以下步骤:An optional processing flow of the data packet processing method provided by the embodiment of the present invention, as shown in FIG. 6, includes the following steps:

步骤S201,第一发送电子设备基于第一信息设置PDCP数据包的PDCP SN和/或状态变量。Step S201, the first sending electronic device sets the PDCP SN and/or state variable of the PDCP data packet based on the first information.

本发明实施例中,所述第一信息为预先约定的PDCP SN和/或PDCP SN分配规则即PDCP SN和/或PDCP SN分配规则可以是预定义的;或者,所述第一信息为所述第一发送电子设备向第二发送电子设备和/或接收电子设备发送的PDCP SN和/或PDCP SN分配规则。在具体实施时,第一发送电子设备周期性的向第二发送电子设备和/或接收电子设备发送的PDCP SN和/或PDCP SN分配规则;或者,第一发送电子设备基于事件向第二发送电子设备和/或接收电子设备发送的PDCP SN和/或PDCP SN分配规则。其中,所述事件至少包括下述中的一项:通知后续共享的PDCP SN list/PDCP SN标识/PDCP SN比特图(bitmap)/PDCP SN图样(pattern),PDCP SN图样变更和PDCP SN分配规则变更。In the embodiment of the present invention, the first information is the pre-agreed PDCP SN and/or PDCP SN allocation rules, that is, the PDCP SN and/or PDCP SN allocation rules may be predefined; or, the first information is the The PDCP SN and/or PDCP SN assignment rules sent by the first sending electronic device to the second sending electronic device and/or the receiving electronic device. During specific implementation, the first sending electronic device periodically sends the PDCP SN and/or PDCP SN allocation rules sent to the second sending electronic device and/or receiving electronic device; or, the first sending electronic device sends the second sending electronic device based on an event. The electronic device and/or the PDCP SN sent by the receiving electronic device and/or the PDCP SN allocation rule. Wherein, the event includes at least one of the following: notification of subsequent shared PDCP SN list/PDCP SN identity/PDCP SN bitmap (bitmap)/PDCP SN pattern (pattern), PDCP SN pattern change and PDCP SN allocation rules change.

其中,所述预先约定的PDCP SN,或者所述第一发送电子设备向第二发送电子设备和/或接收电子设备发送的PDCP SN包括下述至少之一:PDCP SN、PDCP SN list、PDCP SNBitmap、PDCP SN pattern。PDCP SN分配规则是指如何对PDCP数据包分配PDCP SN。Wherein, the pre-agreed PDCP SN, or the PDCP SN sent by the first sending electronic device to the second sending electronic device and/or receiving electronic device includes at least one of the following: PDCP SN, PDCP SN list, PDCP SNBitmap , PDCP SN pattern. The PDCP SN assignment rule refers to how to assign a PDCP SN to a PDCP data packet.

在具体实施时,所述PDCP SN和/或PDCP SN分配规则通过下述中的至少一种发送:RRC信令、MAC CE、物理层信令承载和PDCP包;其中,PDCP包包括:PDCP控制包和PDCP数据包中的至少一种。即第一发送电子设备通过RRC信令、MAC CE、物理层信令承载、PDCP控制包、和PDCP数据包中的任意一种向第二发送电子设备和/或接收电子设备发送PDCP SN和/或PDCP SN分配规则。可选地,所述第一发送电子设备与第二发送电子设备、接收电子设备之间交互的PDCP SN也可以用PDCP SN对应的COUNT代替;即第一发送电子设备向第二发送电子设备或接收电子设备发送PDCP SN对应的COUTN。During specific implementation, the PDCP SN and/or PDCP SN allocation rules are sent through at least one of the following: RRC signaling, MAC CE, physical layer signaling bearer, and PDCP packets; wherein, the PDCP packets include: PDCP control At least one of packets and PDCP packets. That is, the first sending electronic device sends the PDCP SN and/or to the second sending electronic device and/or the receiving electronic device through any one of RRC signaling, MAC CE, physical layer signaling bearer, PDCP control packet, and PDCP data packet Or PDCP SN allocation rules. Optionally, the PDCP SN interacted between the first sending electronic device, the second sending electronic device, and the receiving electronic device may also be replaced by the COUNT corresponding to the PDCP SN; that is, the first sending electronic device sends the second sending electronic device or The receiving electronic device sends COUTN corresponding to the PDCP SN.

本发明实施例中,所述第一发送电子设备为源网络设备、所述接收电子设备为终端设备。或者,所述第一发送电子设备为源网络设备,所述接收电子设备为目标网络设备。或者,所述第一发送电子设备为源网络设备,所述第二发送电子设备为目标网络设备,所述接收电子设备为终端设备。或者,所述第一发送电子设备为目标网络设备、所述接收电子设备为终端设备。或者,所述第一发送电子设备为目标网络设备,所述第二发送电子设备为源网络设备,所述接收电子设备为终端设备。或者,所述第一发送电子设备为目标网络设备,所述接收电子设备为源网络设备。或者,所述第一发送电子设备为终端设备,所述接收电子设备为目标网络设备和/或源网络设备。或者,所述第一发送电子设备为终端设备内的第一发送实体,所述接收电子设备为所述终端设备内的第一接收实体。或者,所述第一发送电子设备为所述终端设备内的第一发送实体,所述第二发送电子设备为所述终端设备内的第二发送实体,所述接收电子设备为目标网络设备和源网络设备;或者,所述第一发送电子设备为源网络设备,所述第二发送电子设备为目标网络设备,所述接收电子设备为所述终端设备内的第一接收实体和/或第二接收实体。或者,所述第一发送电子设备为目标网络设备,所述第二发送电子设备为源网络设备,所述接收电子设备为所述终端设备内的第一接收实体和/或第二接收实体。In this embodiment of the present invention, the first sending electronic device is a source network device, and the receiving electronic device is a terminal device. Alternatively, the first sending electronic device is a source network device, and the receiving electronic device is a target network device. Alternatively, the first sending electronic device is a source network device, the second sending electronic device is a target network device, and the receiving electronic device is a terminal device. Alternatively, the first sending electronic device is a target network device, and the receiving electronic device is a terminal device. Alternatively, the first sending electronic device is a target network device, the second sending electronic device is a source network device, and the receiving electronic device is a terminal device. Alternatively, the first sending electronic device is a target network device, and the receiving electronic device is a source network device. Alternatively, the first sending electronic device is a terminal device, and the receiving electronic device is a target network device and/or a source network device. Alternatively, the first sending electronic device is the first sending entity in the terminal device, and the receiving electronic device is the first receiving entity in the terminal device. Alternatively, the first sending electronic device is a first sending entity in the terminal device, the second sending electronic device is a second sending entity in the terminal device, and the receiving electronic device is a target network device and A source network device; or, the first sending electronic device is a source network device, the second sending electronic device is a target network device, and the receiving electronic device is a first receiving entity and/or a second receiving entity in the terminal device 2. The receiving entity. Alternatively, the first sending electronic device is a target network device, the second sending electronic device is a source network device, and the receiving electronic device is a first receiving entity and/or a second receiving entity in the terminal device.

需要说明的是,终端设备内的第一接收实体和第二接收实体实现的功能,也可以由终端设备内的功能模块实现。It should be noted that the functions implemented by the first receiving entity and the second receiving entity in the terminal device may also be implemented by functional modules in the terminal device.

在一些实施例中,所述PDCP SN和/或PDCP SN分配规则由所述第一发送电子设备确定、或者所述PDCP SN由所述第二发送电子设备确定、或者所述PDCP SN由所述第一发送电子设备和所述第二发送电子设备共同确定。在具体实施时,所述PDCP SN和/或PDCP SN分配规则根据下述中的至少一种确定:业务特征、服务质量(Quality of Service,QoS)需求、调度情况、半静态调度(Semi-Persistent Scheduling,SPS)配置信息、配置授权(Configured Grant,CG)配置信息、激活的载波信息、激活的SPS信息、激活的CG信息、业务量大小、业务类型、小区负荷、小区干扰、以及小区信道质量。In some embodiments, the PDCP SN and/or PDCP SN assignment rules are determined by the first sending electronic device, or the PDCP SN is determined by the second sending electronic device, or the PDCP SN is determined by the The first sending electronic device and the second sending electronic device are jointly determined. During specific implementation, the PDCP SN and/or PDCP SN allocation rules are determined according to at least one of the following: service characteristics, Quality of Service (Quality of Service, QoS) requirements, scheduling conditions, semi-persistent scheduling (Semi-Persistent Scheduling, SPS) configuration information, configured authorization (Configured Grant, CG) configuration information, activated carrier information, activated SPS information, activated CG information, traffic size, business type, cell load, cell interference, and cell channel quality .

本发明实施例中,所述PDCP包为PDCP control PDU时,PDCP control PDU具有下述属性中的至少之一:In the embodiment of the present invention, when the PDCP packet is a PDCP control PDU, the PDCP control PDU has at least one of the following attributes:

1)所述PDCP control PDU携带所述PDCP SN的信息,和/或携带包含的PDCP SN信息的控制信息类型的指示。其中,所述PDCP control PDU为与已有的PDCP control PDU类型不同的、新的PDCP control PDU类型。可选的,新的PDCP control PDU类型为除ROHC反馈,PDCP状态报告之外的类型;可选的,新的PDCP control PDU类型的作用为指示该PDU中携带的是PDCP SN信息;如PDCP control PDU中包含的是PDCP SN信息的控制信息类型的指示。PDCP control PDU类型及类型指示的示意图,如图7所示,类型指示的比特值为000时,对应的PDCP control PDU类型为PDCP状态报告;类型指示的比特值为001时,对应的PDCPcontrol PDU类型为ROHC反馈;类型指示的比特值为010时,对应的PDCP control PDU类型为PDCP SN;类型指示的比特值为011~111时,对应的PDCP control PDU类型为预留值。1) The PDCP control PDU carries the information of the PDCP SN, and/or carries an indication of the type of control information contained in the PDCP SN information. Wherein, the PDCP control PDU is a new PDCP control PDU type different from existing PDCP control PDU types. Optionally, the new PDCP control PDU type is a type other than ROHC feedback and PDCP status report; optionally, the role of the new PDCP control PDU type is to indicate that the PDU carries PDCP SN information; such as PDCP control Included in the PDU is the indication of the control information type of the PDCP SN information. A schematic diagram of the PDCP control PDU type and type indication, as shown in Figure 7, when the bit value of the type indication is 000, the corresponding PDCP control PDU type is PDCP status report; when the bit value of the type indication is 001, the corresponding PDCP control PDU type It is ROHC feedback; when the bit value indicated by the type is 010, the corresponding PDCP control PDU type is PDCP SN; when the bit value indicated by the type is 011-111, the corresponding PDCP control PDU type is a reserved value.

新的PDCP control PDU携带所述PDCP SN的信息。其中,PDCP control PDU中可以包括以下信息至少之一:PDCP SN在PDCP数据包中的位置,如PDCP SN位于PDCP数据包的包头或者数据包内。The new PDCP control PDU carries the information of the PDCP SN. Wherein, the PDCP control PDU may include at least one of the following information: the position of the PDCP SN in the PDCP data packet, for example, the PDCP SN is located in the header of the PDCP data packet or in the data packet.

2)在所述PDCP control PDU中携带共同维护的PDCP SN。2) The commonly maintained PDCP SN is carried in the PDCP control PDU.

3)在所述PDCP control PDU中携带PDCP SN Bitmap,所述PDCP SN Bitmap对应的起始SN,和所述PDCP SN Bitmap对应的终止SN中的至少一个。3) At least one of the PDCP SN Bitmap, the start SN corresponding to the PDCP SN Bitmap, and the termination SN corresponding to the PDCP SN Bitmap is carried in the PDCP control PDU.

4)在所述PDCP control PDU中携带PDCP SN pattern,所述PDCP SN pattern对应的起始SN,和所述PDCP SN pattern对应的终止SN中的至少一个。4) At least one of the PDCP SN pattern, the start SN corresponding to the PDCP SN pattern, and the termination SN corresponding to the PDCP SN pattern is carried in the PDCP control PDU.

5)在所述PDCP control PDU中携带共同维护的PDCP SN中的起始SN和终止SN。5) The PDCP control PDU carries the start SN and the end SN of the commonly maintained PDCP SNs.

6)在所述PDCP control PDU中携带共同维护的PDCP SN的个数;6) carrying the number of commonly maintained PDCP SNs in the PDCP control PDU;

7)在所述PDCP control PDU中携带共同维护的PDCP SN Bitmap的长度;7) carrying the length of the commonly maintained PDCP SN Bitmap in the PDCP control PDU;

8)在所述PDCP control PDU中携带共同维护的PDCP SN pattern的长度或周期;8) carrying the length or period of the commonly maintained PDCP SN pattern in the PDCP control PDU;

9)在所述PDCP control PDU中携带共同维护的PDCP SN list。9) The commonly maintained PDCP SN list is carried in the PDCP control PDU.

可选的,所述PDCP control PDU中包括至少一个PDCP SN。Optionally, the PDCP control PDU includes at least one PDCP SN.

其中,为第一发送电子设备分配的PDCP SN/PDCP SN Bitmap/PDCP SN pattern/PDCP SN list,或者第一发送电子设备使用的PDCP SN/PDCP SN Bitmap/PDCP SNpattern/PDCP SN list;和/或为第二电子设备分配的PDCP SN/PDCP SN Bitmap/PDCP SNpattern/PDCP SN list,或者第二发送电子设备使用的PDCP SN/PDCP SN Bitmap/PDCP SNpattern/PDCP SN list,属于共同维护的PDCP SN/PDCP SN Bitmap/PDCP SN pattern/PDCP SN list。举例来说,为第一发送电子设备分配的PDCP SN list为1、3、5,和/或为第二发送电子设备分配的PDCP SN list为0、2、4;则0、2、4,或者,1、3、5,或者0、1、2、3、4、5属于共同维护的PDCP SN list。Wherein, the PDCP SN/PDCP SN Bitmap/PDCP SN pattern/PDCP SN list assigned to the first sending electronic device, or the PDCP SN/PDCP SN Bitmap/PDCP SN pattern/PDCP SN list used by the first sending electronic device; and/or The PDCP SN/PDCP SN Bitmap/PDCP SNpattern/PDCP SN list allocated for the second electronic device, or the PDCP SN/PDCP SN Bitmap/PDCP SN pattern/PDCP SN list used by the second sending electronic device belongs to the jointly maintained PDCP SN/ PDCP SN Bitmap/PDCP SN pattern/PDCP SN list. For example, the PDCP SN list assigned to the first sending electronic device is 1, 3, 5, and/or the PDCP SN list assigned to the second sending electronic device is 0, 2, 4; then 0, 2, 4, Or, 1, 3, 5, or 0, 1, 2, 3, 4, 5 belong to the commonly maintained PDCP SN list.

本发明实施例中,第一发送电子设备向第二发送电子设备和/或接收电子设备发送的PDCP SN包括两种:第一种是实际的PDCP SN,第二种是实际的PDCP SN和虚拟的PDCPSN。实际的PDCP SN在本实施例中也称为第二PDCP SN,虚拟的PDCP SN在本实施例中也称为第一PDCP SN。其中,第一发送电子设备的第一PDCP SN是指第一发送电子设备自身维护的PDCP SN,与第二发送电子设备的第一PDCP SN没有关联关系。In the embodiment of the present invention, the PDCP SN sent by the first sending electronic device to the second sending electronic device and/or receiving electronic device includes two types: the first is the actual PDCP SN, and the second is the actual PDCP SN and virtual PDCPSN. The actual PDCP SN is also called the second PDCP SN in this embodiment, and the virtual PDCP SN is also called the first PDCP SN in this embodiment. Wherein, the first PDCP SN of the first sending electronic device refers to the PDCP SN maintained by the first sending electronic device itself, and has no association relationship with the first PDCP SN of the second sending electronic device.

当第一发送电子设备向第二发送电子设备和/或接收电子设备发送的PDCP SN为实际的PDCP SN时,所述第一发送电子设备设置所述PDCP数据包的PDCP SN和/或状态变量的处理流程,如图8所示,包括:When the PDCP SN sent by the first sending electronic device to the second sending electronic device and/or the receiving electronic device is the actual PDCP SN, the first sending electronic device sets the PDCP SN and/or state variable of the PDCP data packet The processing flow, as shown in Figure 8, includes:

步骤1a,基于所述第一信息设置TX-NEXT的值和/或TX-NEXT的初始值。Step 1a, setting the value of TX-NEXT and/or the initial value of TX-NEXT based on the first information.

这里,所述TX-NEXT的初始值不一定是0;TX-NEXT的初始值与预先约定的PDCP SN和/或PDCP SN分配规则相关;或者,TX-NEXT的初始值与第一发送电子设备向第二发送电子设备和/或接收电子设备发送的PDCP SN和/或PDCP SN分配规则相关。Here, the initial value of TX-NEXT is not necessarily 0; the initial value of TX-NEXT is related to the pre-agreed PDCP SN and/or PDCP SN allocation rules; or, the initial value of TX-NEXT is related to the first sending electronic device The PDCP SN sent to the second sending electronic device and/or the receiving electronic device and/or the PDCP SN allocation rules are related.

步骤1b,将所述PDCP数据包的COUNT与TX-NEXT的值进行关联。Step 1b, associating the COUNT of the PDCP data packet with the value of TX-NEXT.

步骤1c,设置所述PDCP数据包的PDCP SN为利用TX-NEXT对PDCP SN大小的函数取模得到的值。Step 1c, setting the PDCP SN of the PDCP data packet as a value obtained by moduloing the function of the size of the PDCP SN by using TX-NEXT.

在一些实施例中,可设置PDCP数据包的PDCP SN为TX-NEXT modulo 2[PDCP SN -SizeDL]In some embodiments, the PDCP SN of the PDCP data packet can be set as TX-NEXT modulo 2 [PDCP SN -SizeDL] .

在另一些实施例中,可设置PDCP数据包的PDCP SN为TX-NEXT modulo 2[PDCP SN -SizeUL]In some other embodiments, the PDCP SN of the PDCP data packet may be set as TX-NEXT modulo 2 [PDCP SN -SizeUL] .

步骤1d,基于所述第一信息设置TX-NEXT的值为与当前PDCP SN相邻的下一个PDCPSN。Step 1d: Set the value of TX-NEXT to the next PDCPSN adjacent to the current PDCP SN based on the first information.

可选的是,上述步骤1a至1d中的任一步骤均是可选的。Optionally, any one of the above steps 1a to 1d is optional.

当第一发送电子设备向第二发送电子设备及接收电子设备发送的PDCP SN为第一PDCP SN和第二PDCP SN时,接收电子设备利用第二PDCP SN进行PDCP实体间的PDCP数据包处理;第一发送电子设备和第二发送电子设备使用自身的第一PDCP SN进行PDCP数据包的组包、PDCP数据包的传输、PDCP SN的设置、PDCP数据包的状态变量的维护、以及PDCP实体内的PDCP数据包处理中的至少一项;其中,第一发送电子设备根据第一PDCP SN进行PDCP数据包的PDCP SN的设置,是指第一发送电子设备仅考虑自身的PDCP SN,不受其他PDCP实体的影响。即使第一发送电子设备和第二发送电子设备均向接收电子设备发送PDCP SN,但是,第一发送电子设备的第一PDCP SN是从0开始的连续整数,TX-NEXT的初始值为0,每生成一个PDCP PDU,TX-NEXT的值加1。When the PDCP SN sent by the first sending electronic device to the second sending electronic device and the receiving electronic device is the first PDCP SN and the second PDCP SN, the receiving electronic device uses the second PDCP SN to perform PDCP packet processing between PDCP entities; The first sending electronic device and the second sending electronic device use their own first PDCP SN to group PDCP data packets, transmit PDCP data packets, set PDCP SNs, maintain state variables of PDCP data packets, and perform PDCP entity internal At least one of the PDCP data packet processing; wherein, the first sending electronic device sets the PDCP SN of the PDCP data packet according to the first PDCP SN, which means that the first sending electronic device only considers its own PDCP SN, and is not affected by other Impact of PDCP entities. Even if both the first sending electronic device and the second sending electronic device send PDCP SN to the receiving electronic device, the first PDCP SN of the first sending electronic device is a continuous integer starting from 0, and the initial value of TX-NEXT is 0, Every time a PDCP PDU is generated, the value of TX-NEXT is incremented by 1.

当第一发送电子设备向第二发送电子设备和/或接收电子设备发送的PDCP SN为第一PDCP SN和第二PDCP SN时,所述第一PDCP SN和所述第二PDCP SN的发送方式包括下述中的任意一种:When the PDCP SN sent by the first sending electronic device to the second sending electronic device and/or the receiving electronic device is the first PDCP SN and the second PDCP SN, the sending method of the first PDCP SN and the second PDCP SN Including any of the following:

所述第一PDCP SN和所述第二PDCP SN携带于所述PDCP数据包内;The first PDCP SN and the second PDCP SN are carried in the PDCP data packet;

所述第一PDCP SN携带于所述PDCP数据包的包头内,所述第二PDCP SN携带于所述PDCP数据包的包头内或所述PDCP数据包内;The first PDCP SN is carried in the header of the PDCP data packet, and the second PDCP SN is carried in the header of the PDCP data packet or in the PDCP data packet;

所述第二PDCP SN携带于所述PDCP数据包的包头内,所述第一PDCP SN携带于所述PDCP数据包的包头内或所述PDCP数据包内;The second PDCP SN is carried in the header of the PDCP data packet, and the first PDCP SN is carried in the header of the PDCP data packet or in the PDCP data packet;

所述第一PDCP SN携带于所述PDCP数据包的包头内或数据包内,所述第二PDCP SN通过专用信令发送;The first PDCP SN is carried in the header of the PDCP data packet or in the data packet, and the second PDCP SN is sent through dedicated signaling;

所述第二PDCP SN携带于所述PDCP数据包的包头内或数据包内,所述第一PDCP SN通过专用信令发送;The second PDCP SN is carried in the header of the PDCP data packet or in the data packet, and the first PDCP SN is sent through dedicated signaling;

所述第一PDCP SN和所述第二PDCP SN通过专用信令发送。The first PDCP SN and the second PDCP SN are sent through dedicated signaling.

当第一发送电子设备向第二发送电子设备和/或接收电子设备发送的PDCP SN为第一PDCP SN和第二PDCP SN时,或者仅一个PDCP SN时,所述PDCP数据包还包括第一指示信息,所述第一指示信息用于指示下述至少之一:所述PDCP数据包的类型、所述PDCP数据包的格式和所述PDCP数据包携带的PDCP SN信息。其中,所述PDCP数据包的类型是指所述PDCP数据包为已有的PDCP数据包类型,还是新的PDCP数据包类型;所述PDCP数据包的格式,是指所述PDCP数据包是新格式还是原来的格式,包含的是哪种PDCP SN,包含几种PDCP SN至少之一;所述PDCP数据包携带的PDCP SN信息是指所述PDCP数据包所携带的PDCP SN,如所述PDCP数据包携带第一PDCP SN、或者第二PDCP SN、或者携带第一PDCP SN和第二PDCP SN。当所述PDCP数据包携带的PDCP SN信息为所述PDCP数据包携带第一PDCP SN或第二PDCP SN时,PDCP数据包中未携带的另外一种PDCP SN可以由专用信令发送,也可以不存在或不使用另外一种PDCP SN。这里,可以用PDCP数据包中的R比特标识所述第一指示信息。When the PDCP SN sent by the first sending electronic device to the second sending electronic device and/or the receiving electronic device is the first PDCP SN and the second PDCP SN, or when there is only one PDCP SN, the PDCP data packet also includes the first Indication information, the first indication information is used to indicate at least one of the following: the type of the PDCP data packet, the format of the PDCP data packet, and the PDCP SN information carried in the PDCP data packet. Wherein, the type of the PDCP data packet refers to whether the PDCP data packet is an existing PDCP data packet type or a new PDCP data packet type; the format of the PDCP data packet refers to whether the PDCP data packet is a new The format is still the original format, which PDCP SN is included, and at least one of several PDCP SNs is included; the PDCP SN information carried by the PDCP data packet refers to the PDCP SN carried by the PDCP data packet, such as the PDCP SN The data packet carries the first PDCP SN, or the second PDCP SN, or carries the first PDCP SN and the second PDCP SN. When the PDCP SN information carried in the PDCP data packet is that the PDCP data packet carries the first PDCP SN or the second PDCP SN, another PDCP SN not carried in the PDCP data packet may be sent by dedicated signaling, or may be Another PDCP SN does not exist or is not used. Here, the R bit in the PDCP data packet may be used to identify the first indication information.

在一些实施例中,所述PDCP数据包还包括第二指示信息,所述第二指示信息用于指示下述至少之一:In some embodiments, the PDCP data packet further includes second indication information, and the second indication information is used to indicate at least one of the following:

所述PDCP数据包是否包含所述第一PDCP SN、所述PDCP数据包是否包含所述第二PDCP SN、所述第一PDCP SN在所述PDCP数据包的包头还是数据包内、所述第二PDCP SN在PDCP数据包的包头还是数据包内、所述第二PDCP SN和所述第一PDCP SN的先后顺序。其中,所述第二PDCP SN和所述第一PDCP SN的先后顺序是指,所述第二PDCP SN和所述第一PDCPSN都携带以下之一时,都在PDCP数据包内,都在数据包的包头内,一个在数据包的包头内一个在数据包内,所述第一PDCP SN在前面,所述第二PDCP SN在后面;或者,所述第一PDCP SN在后面,所述第二PDCP SN在前面。Whether the PDCP data packet contains the first PDCP SN, whether the PDCP data packet contains the second PDCP SN, whether the first PDCP SN is in the header of the PDCP data packet or in the data packet, the second Whether the two PDCP SNs are in the packet header of the PDCP data packet or in the data packet, the order of the second PDCP SN and the first PDCP SN. Wherein, the order of the second PDCP SN and the first PDCP SN means that when the second PDCP SN and the first PDCP SN both carry one of the following, they are both in the PDCP data packet, and both are in the data packet In the header of the data packet, one is in the header of the data packet and the other is in the data packet, the first PDCP SN is in the front, and the second PDCP SN is in the back; or, the first PDCP SN is in the back, and the second PDCP SN is in the back PDCP SN is in front.

在具体实施时,所述第一指示信息和/或所述第二指示信息所指示的内容,可由网络设备的指示确定,或者根据预定义信息确定。即网络设备向第一发送设备和/或第二发送设备发送第一指示信息和/或第二指示信息所指示的内容;或者,第一发送电子设备根据预定义信息确定第一指示信息和/或第二指示信息所指示的内容。During specific implementation, the content indicated by the first indication information and/or the second indication information may be determined by an indication of a network device, or determined according to predefined information. That is, the network device sends the content indicated by the first indication information and/or the second indication information to the first sending device and/or the second sending device; or, the first sending electronic device determines the first indication information and/or the first indication information according to predefined information or the content indicated by the second indication information.

当第一发送电子设备向第二发送电子设备和/或接收电子设备发送的PDCP SN包括实际的PDCP SN和虚拟的PDCP SN时,第一发送电子设备根据虚拟的PDCP SN设置PDCP数据包的状态变量的另一个可选处理流程,包括以下至少之一:源网络设备设置TX-NEXT的初始值为0,当源网络设备生成第一个PDCP SDU时,设置第一个PDCP SDU对应的PDCP SN为0,即TX-NEXT modulo 2[12];假设PDCP-SN-SizeDL=12,COUNT为1,HFN=0,令TX-NEXT=0+1=1。当源网络设备生成第二个PDCP SDU时,根据当前的TX-NEXT的取值1,确定对应第二个PDCP SDU的PDCP PDU的COUNT值为1,PDCP SN为1;TX-NEXT的取值在当前1的基础上再加1,即TX-NEXT的取值为2;以此类推。When the PDCP SN sent by the first sending electronic device to the second sending electronic device and/or the receiving electronic device includes the actual PDCP SN and the virtual PDCP SN, the first sending electronic device sets the state of the PDCP packet according to the virtual PDCP SN Another optional processing procedure for variables includes at least one of the following: the source network device sets the initial value of TX-NEXT to 0, and when the source network device generates the first PDCP SDU, sets the PDCP SN corresponding to the first PDCP SDU is 0, that is, TX-NEXT modulo 2 [12] ; suppose PDCP-SN-SizeDL=12, COUNT is 1, HFN=0, and TX-NEXT=0+1=1. When the source network device generates the second PDCP SDU, according to the current TX-NEXT value of 1, determine that the COUNT value of the PDCP PDU corresponding to the second PDCP SDU is 1, and the PDCP SN is 1; the value of TX-NEXT Add 1 to the current 1, that is, the value of TX-NEXT is 2; and so on.

当第一发送电子设备向第二发送电子设备和/或接收电子设备发送的PDCP SN为第一PDCP SN和第二PDCP SN时,第一发送电子设备设置PDCP数据包的状态变量的另一个可选处理流程,如下所示,包括:When the PDCP SN sent by the first sending electronic device to the second sending electronic device and/or the receiving electronic device is the first PDCP SN and the second PDCP SN, the first sending electronic device sets another possible state variable of the PDCP data packet. The optional processing flow is as follows, including:

步骤2a,基于第一PDCP SN设置TX-NEXT的值。Step 2a, set the value of TX-NEXT based on the first PDCP SN.

步骤2b,基于第一PDCP SN设置TX-NEXT的初始值。In step 2b, an initial value of TX-NEXT is set based on the first PDCP SN.

这里,所述TX-NEXT的初始值不一定是0;TX-NEXT的初始值与预先约定的第一PDCPSN和/或PDCP SN分配规则相关;或者,TX-NEXT的初始值与第一发送电子设备向第二发送电子设备和/或接收电子设备发送的第一PDCP SN和/或PDCP SN分配规则相关。Here, the initial value of TX-NEXT is not necessarily 0; the initial value of TX-NEXT is related to the pre-agreed first PDCPSN and/or PDCP SN allocation rules; or, the initial value of TX-NEXT is related to the first sending electronic The first PDCP SN and/or PDCP SN assignment rules sent by the device to the second sending electronic device and/or the receiving electronic device are related.

步骤2c,将所述PDCP数据包的计数值COUNT与TX-NEXT的值进行关联;Step 2c, associating the count value COUNT of the PDCP data packet with the value of TX-NEXT;

步骤2d,设置所述PDCP数据包的PDCP SN为利用TX-NEXT对PDCP SN大小的函数取模得到的值。Step 2d, setting the PDCP SN of the PDCP data packet as a value obtained by moduloing the function of the size of the PDCP SN by using TX-NEXT.

在一些实施例中,可设置PDCP数据包的PDCP SN为TX-NEXT modulo 2[PDCP SN -SizeDL]In some embodiments, the PDCP SN of the PDCP data packet can be set as TX-NEXT modulo 2 [PDCP SN -SizeDL] .

在另一些实施例中,可设置PDCP数据包的PDCP SN为TX-NEXT modulo 2[PDCP SN -SizeUL]In some other embodiments, the PDCP SN of the PDCP data packet may be set as TX-NEXT modulo 2 [PDCP SN -SizeUL] .

步骤2e,基于第一PDCP SN设置TX-NEXT的值为与当前PDCP SN相邻的下一个PDCPSN。Step 2e, based on the first PDCP SN, set the value of TX-NEXT to the next PDCP SN adjacent to the current PDCP SN.

可选的是,上述步骤2a至2d中的任一步骤均是可选的。Optionally, any one of the above steps 2a to 2d is optional.

本发明实施例提供的数据包处理方法的另一种可选处理流程,如图9所示,包括以下步骤:Another optional processing flow of the data packet processing method provided by the embodiment of the present invention, as shown in FIG. 9 , includes the following steps:

步骤S301,接收电子设备接收至少两个发送电子设备的PDCP SN和/或PDCP SN分配规则。In step S301, the receiving electronic device receives PDCP SNs and/or PDCP SN assignment rules of at least two sending electronic devices.

本发明实施例中,所述至少两个发送电子设备的PDCP SN和/或PDCP SN分配规则,可以由任意一个发送电子设备发送至接收电子设备。In the embodiment of the present invention, the PDCP SNs and/or PDCP SN allocation rules of the at least two sending electronic devices may be sent by any sending electronic device to the receiving electronic device.

或者,所述至少两个发送电子设备的PDCP SN和/或PDCP SN分配规则,可以由特定的一个发送电子设备发送至接收电子设备。Alternatively, the PDCP SNs and/or PDCP SN assignment rules of the at least two sending electronic devices may be sent to the receiving electronic device by a specific sending electronic device.

或者,所述至少两个发送电子设备的PDCP SN和/或PDCP SN分配规则,可以由每个发送电子设备发送至接收电子设备;即第一发送电子设备将至少两个发送电子设备的PDCPSN和/或PDCP SN分配规则发送至接收电子设备,第二发送电子设备也将至少两个发送电子设备的PDCP SN和/或PDCP SN分配规则发送至接收电子设备。Alternatively, the PDCP SN and/or PDCP SN assignment rules of the at least two sending electronic devices may be sent by each sending electronic device to the receiving electronic device; and/or the PDCP SN allocation rules are sent to the receiving electronic device, and the second sending electronic device also sends the PDCP SNs and/or PDCP SN allocation rules of at least two sending electronic devices to the receiving electronic device.

或者,每个发送电子设备的PDCP SN和/或PDCP SN分配规则,由所述发送电子设备自身和/或其他的发送电子设备发送至所述接收电子设备;即第一发送电子设备将第一电子设备的PDCP SN和/或PDCP SN分配规则发送至接收电子设备,第二电子设备将第二电子设备的PDCP SN和/或PDCP SN分配规则发送至接收电子设备。或者,第一发送电子设备除了将第一电子设备的PDCP SN和/或PDCP SN分配规则发送至接收电子设备,还将第二电子设备的PDCP SN和/或PDCP SN分配规则发送至接收电子设备;而第二电子设备除了将第二电子设备的PDCP SN和/或PDCP SN分配规则发送至接收电子设备,还将第一电子设备的PDCPSN和/或PDCP SN分配规则发送至接收电子设备。或者,第一发送电子设备将第二电子设备的PDCP SN和/或PDCP SN分配规则发送至接收电子设备,第二发送电子设备将第一电子设备的PDCP SN和/或PDCP SN分配规则发送至接收电子设备。Alternatively, the PDCP SN and/or PDCP SN allocation rule of each sending electronic device is sent to the receiving electronic device by the sending electronic device itself and/or other sending electronic devices; that is, the first sending electronic device sends the first The PDCP SN and/or PDCP SN allocation rule of the electronic device is sent to the receiving electronic device, and the second electronic device sends the PDCP SN and/or PDCP SN allocation rule of the second electronic device to the receiving electronic device. Alternatively, in addition to sending the PDCP SN and/or PDCP SN allocation rules of the first electronic device to the receiving electronic device, the first sending electronic device also sends the PDCP SN and/or PDCP SN allocation rules of the second electronic device to the receiving electronic device ; and the second electronic device not only sends the PDCP SN and/or PDCP SN allocation rules of the second electronic device to the receiving electronic device, but also sends the PDCP SN and/or PDCP SN allocation rules of the first electronic device to the receiving electronic device. Alternatively, the first sending electronic device sends the PDCP SN and/or PDCP SN allocation rules of the second electronic device to the receiving electronic device, and the second sending electronic device sends the PDCP SN and/or PDCP SN allocation rules of the first electronic device to Receive electronic equipment.

需要说明的是,本发明实施例中针对PDCP SN和PDCP SN分配规则的说明,与上述步骤S201相同,这里不再赘述。其中,针对PDCP SN和PDCP SN分配规则的说明至少可以包括下述中的一项或多项:PDCP SN和PDCP SN分配规则由谁确定、PDCP SN和PDCP SN分配规则根据什么参数确定、PDCP SN和PDCP SN分配规则的形式、内容。It should be noted that the description of the PDCP SN and the PDCP SN allocation rule in the embodiment of the present invention is the same as that of the above step S201, and will not be repeated here. Among them, the description of PDCP SN and PDCP SN allocation rules can at least include one or more of the following: who determines the PDCP SN and PDCP SN allocation rules, what parameters are used to determine the PDCP SN and PDCP SN allocation rules, PDCP SN and the form and content of PDCP SN allocation rules.

步骤S302,接收电子设备根据所述PDCP SN和/或PDCP SN分配规则对PDCP数据包进行处理。Step S302, the receiving electronic device processes the PDCP data packet according to the PDCP SN and/or the PDCP SN assignment rule.

本发明实施例中,所述对PDCP数据包进行处理,包括在PDCP实体内对PDCP数据包进行处理,以及在PDCP实体间对PDCP数据包进行处理的至少之一。其中,处理包括下述中的至少一项:PDCP数据包的重排序、PDCP数据包的冗余检测、PDCP数据包的删除。举例来说,若接收电子设备接收到第一发送电子设备发送的第一PDCP数据包和第二发送电子设备发送的第二PDCP数据包;接收电子设备针对第一PDCP数据包的处理为在PDCP实体内对PDCP数据包进行处理,接收电子设备针对第二PDCP数据包的处理为在PDCP实体内对PDCP数据包进行处理;接收电子设备针对第一PDCP数据包和第二PDCP数据包进行的处理为在PDCP实体间对PDCP数据包进行处理。相应的,接收电子设备在对所述PDCP数据包进行处理之前,需要先接收收PDCP数据包和/或PDCP control PDU。In the embodiment of the present invention, the processing of the PDCP data packet includes at least one of processing the PDCP data packet within a PDCP entity and processing the PDCP data packet between PDCP entities. Wherein, the processing includes at least one of the following: reordering of PDCP data packets, redundancy detection of PDCP data packets, and deletion of PDCP data packets. For example, if the receiving electronic device receives the first PDCP data packet sent by the first sending electronic device and the second PDCP data packet sent by the second sending electronic device; The PDCP data packet is processed within the entity, and the receiving electronic device processes the second PDCP data packet as processing the PDCP data packet within the PDCP entity; the receiving electronic device processes the first PDCP data packet and the second PDCP data packet To process PDCP packets between PDCP entities. Correspondingly, before processing the PDCP data packet, the receiving electronic device needs to receive the PDCP data packet and/or PDCP control PDU first.

当所述PDCP SN包括第一PDCP SN和第二PDCP SN时,接收电子设备根据所述PDCPSN对PDCP数据包进行处理,包括:When the PDCP SN includes the first PDCP SN and the second PDCP SN, the receiving electronic device processes the PDCP data packet according to the PDCPSN, including:

所述接收电子设备根据所述第一PDCP SN,对所述PDCP数据包进行PDCP实体内的处理;和/或,所述接收电子设备根据所述第二PDCP SN,对所述PDCP数据包进行PDCP实体间的处理。The receiving electronic device performs processing in the PDCP entity on the PDCP data packet according to the first PDCP SN; and/or, the receiving electronic device performs processing on the PDCP data packet according to the second PDCP SN Processing between PDCP entities.

在一些实施例中,接收电子设备在对PDCP数据包完成PDCP实体内处理后,将第一PDCP SN替换为与第一PDCP SN对应的第二PDCP SN。In some embodiments, the receiving electronic device replaces the first PDCP SN with the second PDCP SN corresponding to the first PDCP SN after completing the PDCP intra-entity processing on the PDCP data packet.

本发明实施例中,对PDCP数据包进行PDCP实体间处理和实体内处理的说明,与上述步骤S201中的相关说明相同,这里不再赘述。In the embodiment of the present invention, the description of performing PDCP inter-entity processing and intra-entity processing on the PDCP data packet is the same as the relevant description in the above step S201, and will not be repeated here.

在具体实施时,接收电子设备是否在PDCP实体内和/或在PDCP实体间对所述PDCP数据包处理,由预先设定、或网络设备配置、或由所述接收电子设备根据所述PDCP SN及状态变量的至少之一来确定的。举例来说,网络设备配置接收电子设备向高层按序递交PDCP数据包,如配置PDCP实体内的按序递交,则在t-reordering定时器超时的情况下,所述接收电子设备的PDCP实体向高层按序递交所述PDCP数据包;和/或,RCVD-COUNT=RX-DELIV的情况下,所述接收电子设备的PDCP实体向高层按序递交所述PDCP数据包。During specific implementation, whether the receiving electronic device processes the PDCP data packet within the PDCP entity and/or between PDCP entities is determined by preset or network device configuration, or by the receiving electronic device according to the PDCP SN and at least one of the state variables. For example, the network device configures the receiving electronic device to deliver PDCP data packets in order to the upper layer. If the in-order delivery in the PDCP entity is configured, when the t-reordering timer expires, the PDCP entity of the receiving electronic device sends The higher layer delivers the PDCP data packets sequentially; and/or, in the case of RCVD-COUNT=RX-DELIV, the PDCP entity of the receiving electronic device delivers the PDCP data packets sequentially to the higher layer.

其中,接收电子设备针对第一发送电子设备发送的PDCP数据包的处理、或者接收电子设备针对发送电子设备的第一发送实体发送的PDCP数据包的处理,属于PDCP数据包在PDCP实体内的处理。同理,接收电子设备针对第二发送电子设备发送的PDCP数据包的处理、或者接收电子设备针对发送电子设备的第二发送实体发送的PDCP数据包的处理,属于PDCP数据包在PDCP实体内的处理。接收电子设备分别对第一发送电子设备和第二发送电子设备发送的PDCP数据包进行实体内处理之后,或者接收电子设备分别对发送电子设备的第一发送实体和第二发送实体发送的PDCP数据包进行实体内处理之后,对第一发送电子设备和第二发送电子设备发送的PDCP数据包统一的进行处理,或者对发送电子设备的第一发送实体和第二发送实体发送的PDCP数据包统一的进行处理称为PDCP数据包在PDCP实体间的处理。可选的,可以不进行PDCP实体内的处理,只进行PDCP实体间的处理,或者,也可以不进行PDCP实体间的处理,只进行PDCP实体内的处理。Among them, the processing of the receiving electronic device for the PDCP data packet sent by the first sending electronic device, or the processing of the receiving electronic device for the PDCP data packet sent by the first sending entity of the sending electronic device belongs to the processing of the PDCP data packet in the PDCP entity . Similarly, the receiving electronic device's processing of the PDCP data packet sent by the second sending electronic device, or the receiving electronic device's processing of the PDCP data packet sent by the second sending entity of the sending electronic device belongs to the PDCP data packet within the PDCP entity. deal with. After the receiving electronic device performs intra-entity processing on the PDCP data packets sent by the first sending electronic device and the second sending electronic device, or the receiving electronic device separately sends the PDCP data sent by the first sending entity and the second sending entity of the sending electronic device After the packet is processed within the entity, uniformly process the PDCP data packets sent by the first sending electronic device and the second sending electronic device, or uniformly process the PDCP data packets sent by the first sending entity and the second sending entity of the sending electronic device The processing is called the processing of PDCP data packets between PDCP entities. Optionally, processing within PDCP entities may not be performed, and only processing between PDCP entities may be performed, or, processing between PDCP entities may not be performed, and only processing within PDCP entities may be performed.

需要说明的是,当接收电子设备为终端设备时,终端设备内的接收实体可以为终端设备的第一PDCP实体和/或终端设备的第二PDCP实体;或者,终端设备内的接收实体也可以为终端设备的PDCP实体内的第一功能模块和/或终端设备的PDCP实体内第二功能模块。相应的,当发送电子设备为终端设备时,终端设备内的发送实体可以为终端设备内的的第一PDCP实体和/或终端设备内的第二PDCP实体,或者,终端设备内的发送实体也可以为终端设备内的PDCP实体内的第一功能模块和/或终端设备内的PDCP实体内第二功能模块。It should be noted that when the receiving electronic device is a terminal device, the receiving entity in the terminal device may be the first PDCP entity of the terminal device and/or the second PDCP entity of the terminal device; or, the receiving entity in the terminal device may also be It is the first functional module in the PDCP entity of the terminal device and/or the second functional module in the PDCP entity of the terminal device. Correspondingly, when the sending electronic device is a terminal device, the sending entity in the terminal device may be a first PDCP entity in the terminal device and/or a second PDCP entity in the terminal device, or the sending entity in the terminal device may also be It may be the first functional module in the PDCP entity in the terminal device and/or the second functional module in the PDCP entity in the terminal device.

本发明实施例中,所述接收电子设备为终端设备,所述发送电子设备为源网络设备和/或目标网络设备;或者,所述接收电子设备为终端设备内的第一接收实体,所述发送电子设备为终端设备内的第一发送实体;或者,所述接收电子设备为源网络设备和/或目标网络设备,所述发送电子设备为终端设备;或者,所述接收电子设备为目标网络设备,所述发送电子设备为源网络设备;或者,所述接收电子设备为源网络设备,所述发送电子设备为目标网络设备;或者,所述接收电子设备为源网络设备,所述发送电子设备为终端设备内的第一发送实体和/或第二发送实体;或者,所述接收电子设备为目标网络设备,所述发送电子设备为终端设备内的第一发送实体和/或第二发送实体。In this embodiment of the present invention, the receiving electronic device is a terminal device, and the sending electronic device is a source network device and/or a target network device; or, the receiving electronic device is a first receiving entity in a terminal device, and the The sending electronic device is a first sending entity in the terminal device; or, the receiving electronic device is a source network device and/or a target network device, and the sending electronic device is a terminal device; or, the receiving electronic device is a target network device, the sending electronic device is a source network device; or, the receiving electronic device is a source network device, and the sending electronic device is a target network device; or, the receiving electronic device is a source network device, and the sending electronic device The device is the first sending entity and/or the second sending entity in the terminal device; or, the receiving electronic device is a target network device, and the sending electronic device is the first sending entity and/or the second sending entity in the terminal device entity.

下面针对DRB承载或SRB承载,终端设备支持同时与源网络设备和目标网络设备两条路径传输的情况,源网络设备向终端设备发送DRB承载或SRB承载,目标网络设备也向终端设备发送DRB承载或SRB承载的情景,对本发明实施例的PDCP数据包处理方法进行详细说明。For the DRB bearer or SRB bearer, the terminal device supports two paths of transmission with the source network device and the target network device at the same time. The source network device sends a DRB bearer or SRB bearer to the terminal device, and the target network device also sends a DRB bearer to the terminal device. Or the scenario of SRB bearer, the PDCP data packet processing method in the embodiment of the present invention will be described in detail.

以源网络设备与目标网络设备交互的PDCP SN为实际的PDCP SN为例,PDCP数据包处理方法的一种详细处理流程,如图10所示,包括:Taking the PDCP SN interacted between the source network device and the target network device as the actual PDCP SN as an example, a detailed processing flow of the PDCP packet processing method is shown in Figure 10, including:

步骤S401,源网络设备与目标网络设备交互PDCP SN或PDCP SN分配规则。In step S401, the source network device exchanges PDCP SN or PDCP SN assignment rules with the target network device.

本发明实施例中,可以认为源网络设备为第一发送电子设备,目标网络设备为第二发送电子设备。通过源网络设备与目标网络设备交互PDCP SN或PDCP SN分配规则,确定源网络设备与终端设备进行DRB承载或SRB承载传输时,源网络设备使用的PDCP SN;以及确定目标网络设备与终端设备进行DRB承载或SRB承载传输时,目标网络设备使用的PDCP SN。其中,源网络设备与目标网络设备交互PDCP SN和/或PDCP SN分配规则,是指源网络设备将确定的由目标网络设备与终端设备进行DRB承载或SRB承载传输时所采用的PDCP SN和/或PDCP SN分配规则发送至目标网络设备;或者,源网络设备将自身与终端设备进行DRB承载或SRB承载传输时所采用的PDCP SN和/或PDCP SN分配规则,以及确定的由目标网络设备与终端设备进行DRB承载或SRB承载传输时所采用的PDCP SN和/或PDCP SN分配规则发送至目标网络设备;或者源网络设备将自身与终端设备进行数据承载(Data Resource Bearer,DRB)或信令承载(Signal Resource Bearer,SRB)传输时所采用的PDCP SN和/或PDCP SN分配规则发送至目标网络设备;以及,目标网络设备将自身与终端设备进行DRB承载或SRB承载传输时所采用的PDCP SN和/或PDCP SN分配规则发送至源网络设备。如图11所示,源网络设备与目标网络设备交互PDCP SN或PDCP SN分配规则,可以是源网络设备的PDCP实体与目标网络设备的PDCP实体之间交互PDCP SN或PDCP SN分配规则。In the embodiment of the present invention, it may be considered that the source network device is the first sending electronic device, and the target network device is the second sending electronic device. Through the exchange of PDCP SN or PDCP SN allocation rules between the source network device and the target network device, determine the PDCP SN used by the source network device when the source network device and the terminal device perform DRB bearer or SRB bearer transmission; and determine the target network device and the terminal device. PDCP SN used by the target network device when DRB bearer or SRB bearer is transmitted. Wherein, the source network device and the target network device exchange PDCP SN and/or PDCP SN allocation rules, which refers to the PDCP SN and/or PDCP SN and/or PDCP SN that the source network device will determine when the target network device and the terminal device perform DRB bearer or SRB bearer transmission. or the PDCP SN allocation rule sent to the target network device; or, the PDCP SN and/or PDCP SN allocation rule adopted by the source network device when it performs DRB bearer or SRB bearer transmission with the terminal device, and the determined by the target network device and The PDCP SN and/or PDCP SN allocation rules adopted by the terminal device for DRB bearer or SRB bearer transmission are sent to the target network device; or the source network device performs data bearer (Data Resource Bearer, DRB) or signaling between itself and the terminal device Send the PDCP SN and/or PDCP SN allocation rules used for the bearer (Signal Resource Bearer, SRB) transmission to the target network device; and the PDCP used by the target network device for DRB bearer or SRB bearer transmission between itself and the terminal device The SN and/or PDCP SN allocation rules are sent to the source network device. As shown in FIG. 11 , the exchange of PDCP SN or PDCP SN allocation rules between the source network device and the target network device may be the exchange of PDCP SN or PDCP SN allocation rules between the PDCP entity of the source network device and the PDCP entity of the target network device.

举例来说,在切换过程中,源网络设备确定执行终端设备和两个网络设备进行同时传输的切换过程,如基于条件切换的增强移动宽带(Enhanced mobile broadband,eMBB)。对于DRB 1,源网络设备确定采用承载split的方式,进行源网络设备和目标网络设备与终端设备的传输;如图12所示,按照PDCP SDU的顺序,第1,3,5,7..个PDCP SDU从源网络设备传输,对应PDCP SN list为1,3,5,7...或PDCP SN pattern为{010101..};第0,2,4,6..个PDCP SDU从目标网络设备传输,对应PDCP SN list为0,2,4,6...或PDCP SN pattern为{101010..}。源目标网络将所确定的由目标目标网络传输的PDCP SN list或PDCP SNpattern,以及PDCP SDU交互给目标网络设备。For example, in the handover process, the source network device determines to perform a handover process in which the terminal device and two network devices perform simultaneous transmission, such as enhanced mobile broadband (eMBB) based on conditional handover. For DRB 1, the source network device determines to use the bearer split method to transmit the source network device, target network device and terminal device; as shown in Figure 12, according to the order of PDCP SDUs, the first, third, fifth, seventh... A PDCP SDU is transmitted from the source network device, and the corresponding PDCP SN list is 1, 3, 5, 7... or the PDCP SN pattern is {010101..}; the 0th, 2, 4, 6.. PDCP SDUs are sent from the target For network device transmission, the corresponding PDCP SN list is 0, 2, 4, 6... or PDCP SN pattern is {101010..}. The source target network exchanges the determined PDCP SN list or PDCP SN pattern transmitted by the target target network, and the PDCP SDU to the target network device.

其中,交互的PDCP SN和/或PDCP SN分配规则可以是源网络设备确定的,也可以是目标网络设备确定的,也可以是源网络设备和目标网络设备共同确定的。可选的,可以依据业务特征、QoS需求、调度情况、SPS配置信息、CG配置信息、激活的载波信息、激活的SPS信息、激活的CG信息、业务量大小,业务类型,小区负荷,小区干扰,小区信道质量等,确定源网络设备和目标网络设备各自的PDCP SN和/或PDCP SN。Wherein, the interactive PDCP SN and/or PDCP SN assignment rule may be determined by the source network device, may also be determined by the target network device, or may be jointly determined by the source network device and the target network device. Optionally, it can be based on service characteristics, QoS requirements, scheduling conditions, SPS configuration information, CG configuration information, activated carrier information, activated SPS information, activated CG information, traffic volume, service type, cell load, and cell interference , cell channel quality, etc., determine the respective PDCP SN and/or PDCP SN of the source network device and the target network device.

需要说明的是,交互的SN也可以使用SN对应的COUNT代替。It should be noted that the interactive SN may also be replaced by the COUNT corresponding to the SN.

步骤S402,源网络设备和目标网络设备根据所述PDCP SN或PDCP SN分配规则,进行PDCP数据包的PDCP SN和/或状态变量的设置。Step S402, the source network device and the target network device set the PDCP SN and/or state variable of the PDCP data packet according to the PDCP SN or the PDCP SN assignment rule.

以源网络设备为例,当源网络设备生成第一个PDCP SDU时,将根据确定的PDCP SNlist或PDCP SN pattern,确定第一个PDCP SDU对应的PDCP数据包的PDCP SN为1,TX_NEXT为1,COUNT为1(假设HFN=0)。当源网络设备生成第二个PDCP SDU时,将根据确定的PDCP SNlist或PDCP SN pattern,确定第二个PDCP SDU对应的PDCP数据包的PDCP SN为3,TX_NEXT为3,COUNT为3(假设HFN=0),以此类推。Taking the source network device as an example, when the source network device generates the first PDCP SDU, it will determine that the PDCP SN of the PDCP packet corresponding to the first PDCP SDU is 1 and TX_NEXT is 1 according to the determined PDCP SNlist or PDCP SN pattern , COUNT is 1 (assuming HFN=0). When the source network device generates the second PDCP SDU, according to the determined PDCP SNlist or PDCP SN pattern, it will be determined that the PDCP SN of the PDCP packet corresponding to the second PDCP SDU is 3, TX_NEXT is 3, and COUNT is 3 (assuming HFN = 0), and so on.

步骤S403,源网络设备将交互PDCP SN或PDCP SN分配规则发送给终端设备。Step S403, the source network device sends the interactive PDCP SN or PDCP SN assignment rule to the terminal device.

在一些实施例中,源网络设备采用PDCP control PDU向终端设备发送源网络设备使用的PDCP SN pattern或PDCP SN bitmap或PDCP SN list。可选的,PDCP control PDU中至少包括一个PDCPSN。相应的,终端设备根据源网络设备发送的PDCP SN pattern或PDCPSN bitmap或PDCP SN list,确定目标网络设备使用的PDCP SN;如连续的从0开始的PDCPSN去掉源网络设备使用的PDCP SN,即为目标网络设备使用的PDCP SN。In some embodiments, the source network device sends the PDCP SN pattern or PDCP SN bitmap or PDCP SN list used by the source network device to the terminal device by using a PDCP control PDU. Optionally, at least one PDCPSN is included in the PDCP control PDU. Correspondingly, the terminal device determines the PDCP SN used by the target network device according to the PDCP SN pattern or PDCPSN bitmap or PDCP SN list sent by the source network device; if the continuous PDCPSN starting from 0 removes the PDCP SN used by the source network device, it is PDCP SN used by the target network device.

在另一些实施例中,源网络设备采用不同的PDCP control PDU向终端设备发送源网络设备或目标网络设备使用的PDCP SN pattern或PDCP SN bitmap或PDCP SN list。可选的,PDCP control PDU中至少包括一个PDCP SN。相应的,终端设备根据源网络设备发送的PDCP SN pattern或PDCP SN bitmap或PDCP SN list,确定源网络设备和/或目标网络设备使用的PDCP SN。具体的,源网络设备还可以通过RRC信令、MAC CE、物理层信令承载、PDCP数据包将PDCP SN pattern或PDCP SN bitmap或PDCP SN list发送至终端设备。In some other embodiments, the source network device uses different PDCP control PDUs to send the PDCP SN pattern or PDCP SN bitmap or PDCP SN list used by the source network device or the target network device to the terminal device. Optionally, at least one PDCP SN is included in the PDCP control PDU. Correspondingly, the terminal device determines the PDCP SN used by the source network device and/or the target network device according to the PDCP SN pattern or PDCP SN bitmap or PDCP SN list sent by the source network device. Specifically, the source network device may also send the PDCP SN pattern or PDCP SN bitmap or PDCP SN list to the terminal device through RRC signaling, MAC CE, physical layer signaling bearer, or PDCP data packet.

在具体实施时,携带PDCP SN bitmap指示的PDCP control PDU的格式示意图,如图13所示。其中,D/C取值为1,代表PDCP PDU为PDCP control PDU,PDU type取值为SN交互类型或PDCP SN类型;Start FMC,代表交互的起始SN对应的COUNT;PDCP SN bitmap指示从起始SN开始的每一个SN是否被源网络设备使用。During specific implementation, a schematic diagram of the format of the PDCP control PDU carrying the PDCP SN bitmap indication is shown in FIG. 13 . Among them, the value of D/C is 1, which means that the PDCP PDU is a PDCP control PDU, and the value of PDU type is SN interaction type or PDCP SN type; Start FMC, which represents the COUNT corresponding to the starting SN of the interaction; PDCP SN bitmap indicates from Whether each SN starting from the original SN is used by the source network device.

步骤S404,终端设备根据交互的PDCP SN或PDCP SN分配规则,确定是否向高层递交PDCP数据包。Step S404, the terminal device determines whether to submit the PDCP data packet to the upper layer according to the interactive PDCP SN or the PDCP SN allocation rule.

在一些实施例中,终端设备根据接收到的PDCP SN bitmap、PDCP SN list或PDCPSN pattern,确定终端设备和源网络设备之间传输的PDCP数据包的PDCP SN信息,以及终端设备和目标网络设备之间传输的PDCP数据包的PDCP SN信息。例如,终端设备确定源网络设备使用的PDCP SN为1、3、5、7...,目标网络设备使用的PDCP SN为0、2、4、6、8...。In some embodiments, the terminal device determines the PDCP SN information of the PDCP data packet transmitted between the terminal device and the source network device, and the PDCP SN information between the terminal device and the target network device according to the received PDCP SN bitmap, PDCP SN list or PDCPSN pattern. PDCP SN information of the PDCP packets transmitted between them. For example, the terminal device determines that the PDCP SNs used by the source network device are 1, 3, 5, 7..., and the PDCP SNs used by the target network device are 0, 2, 4, 6, 8....

终端设备根据接收端的状态变量、PDCP SN list或PDCP SN pattern或PDCP SNbitmap、以及PDCP数据包的PDCP SN,确定是否满足向高层递交PDCP数据包的条件。若此时t-reordering=10ms,比t-reordering超时更早的,就满足RCVD_COUNT=RX_EDLIV的条件,如RCVD_COUNT=RX_DELIV=7时,终端设备的PDCP实体,如对应源网络设备的终端设备PDCP实体或功能模块触发向高层按PDCP SN的顺序递交PDCP数据包。本发明实施例中,终端设备在递交PDCP数据包前,需要对接收到的PDCP数据包进行重排序处理、冗余检测处理和删除处理。The terminal device determines whether the conditions for submitting the PDCP data packet to the upper layer are satisfied according to the state variable of the receiving end, the PDCP SN list or PDCP SN pattern or PDCP SN bitmap, and the PDCP SN of the PDCP data packet. If t-reordering=10ms at this time, which is earlier than t-reordering timeout, the condition of RCVD_COUNT=RX_EDLIV is met. For example, when RCVD_COUNT=RX_DELIV=7, the PDCP entity of the terminal device, such as the terminal device PDCP entity of the corresponding source network device Or the function module triggers delivery of PDCP data packets to the upper layer in the order of PDCP SNs. In the embodiment of the present invention, before the terminal device submits the PDCP data packets, it needs to perform reordering processing, redundancy detection processing and deletion processing on the received PDCP data packets.

下面针对DRB承载或SRB承载,终端设备支持同时与源网络设备和目标网络设备两条路径传输的情况,源网络设备向终端设备发送DRB承载或SRB承载,目标网络设备也向终端设备发送DRB承载或SRB承载的情景,对本发明实施例的PDCP数据包处理方法进行详细说明。For the DRB bearer or SRB bearer, the terminal device supports two paths of transmission with the source network device and the target network device at the same time. The source network device sends a DRB bearer or SRB bearer to the terminal device, and the target network device also sends a DRB bearer to the terminal device. Or the scenario of SRB bearer, the PDCP data packet processing method in the embodiment of the present invention will be described in detail.

以源网络设备与目标网络设备交互的PDCP SN为第一PDCP SN和第二PDCP SN为例,第一PDCP SN为虚拟的PDCP SN,第二PDCP SN为实际的PDCP SN;PDCP数据包处理方法的另一种详细处理流程,如图14所示,包括:Take the PDCP SN that the source network device interacts with the target network device as the first PDCP SN and the second PDCP SN as an example, the first PDCP SN is a virtual PDCP SN, and the second PDCP SN is an actual PDCP SN; PDCP packet processing method Another detailed processing flow of , as shown in Figure 14, includes:

步骤S501,源网络设备与目标网络设备交互PDCP SN或PDCP SN分配规则。In step S501, the source network device exchanges PDCP SN or PDCP SN allocation rules with the target network device.

本发明实施例中,可以认为源网络设备为第一发送电子设备,目标网络设备为第二发送电子设备。通过源网络设备与目标网络设备交互PDCP SN或PDCP SN分配规则,确定源网络设备与终端设备进行DRB承载或SRB承载传输时,源网络设备使用的PDCP SN;以及确定目标网络设备与终端设备进行DRB承载或SRB承载传输时,目标网络设备使用的PDCP SN。其中,源网络设备与目标网络设备交互PDCP SN和/或PDCP SN分配规则,是指源网络设备将确定的由目标网络设备与终端设备进行DRB承载或SRB承载传输时所采用的PDCP SN和/或PDCP SN分配规则发送至目标网络设备;或者,源网络设备将自身与终端设备进行DRB承载或SRB承载传输时所采用的PDCP SN和/或PDCP SN分配规则,以及确定的由目标网络设备与终端设备进行DRB承载或SRB承载传输时所采用的PDCP SN和/或PDCP SN分配规则发送至目标网络设备;或者源网络设备将自身与终端设备进行DRB承载或SRB承载传输时所采用的PDCP SN和/或PDCP SN分配规则发送至目标网络设备;以及,目标网络设备将自身与终端设备进行DRB承载或SRB承载传输时所采用的PDCP SN和/或PDCP SN分配规则发送至源网络设备。In the embodiment of the present invention, it may be considered that the source network device is the first sending electronic device, and the target network device is the second sending electronic device. Through the exchange of PDCP SN or PDCP SN allocation rules between the source network device and the target network device, determine the PDCP SN used by the source network device when the source network device and the terminal device perform DRB bearer or SRB bearer transmission; and determine the target network device and the terminal device. PDCP SN used by the target network device when DRB bearer or SRB bearer is transmitted. Wherein, the source network device and the target network device exchange PDCP SN and/or PDCP SN allocation rules, which refers to the PDCP SN and/or PDCP SN and/or PDCP SN that the source network device will determine when the target network device and the terminal device perform DRB bearer or SRB bearer transmission. or the PDCP SN allocation rule sent to the target network device; or, the PDCP SN and/or PDCP SN allocation rule adopted by the source network device when it performs DRB bearer or SRB bearer transmission with the terminal device, and the determined by the target network device and The PDCP SN and/or PDCP SN allocation rules used by the terminal device for DRB bearer or SRB bearer transmission are sent to the target network device; or the PDCP SN used by the source network device for DRB bearer or SRB bearer transmission between itself and the terminal device and/or send the PDCP SN allocation rule to the target network device; and, the target network device sends the PDCP SN and/or the PDCP SN allocation rule used when the target network device performs DRB bearer or SRB bearer transmission with the terminal device to the source network device.

步骤S502,源网络设备和目标网络设备使用虚拟的PDCP SN和实际的PDCP SN进行PDCP数据包的组包、传输、发送端PDCPSN和/或状态变量的维护。In step S502, the source network device and the target network device use the virtual PDCP SN and the actual PDCP SN to group and transmit PDCP data packets, and maintain the PDCPSN at the sending end and/or state variables.

以下以源网络设备举例进行说明,目标网络设备执行的操作与源网络设备相同。The source network device is used as an example for illustration below, and the operation performed by the target network device is the same as that of the source network device.

源网络设备使用虚拟的PDCP SN进行PDCP数据包的组包、PDCP PDU的传输、发送端PDCP SN和/或状态变量的维护。举例来说,源网络设备设置TX_NEXT初始值为0;当源网络设备生成第一个PDCP SDU时,设置第一个PDCP SDU对应的PDCP SN为0,即TX_NEXT modulo 2[12],假设,PDCP-SN-SizeDL=12,COUNT为1(假设HFN=0);而后,另一个TX_NEXT=0+1=1。当源网络设备生成第二个PDCP SDU时,根据当前的TX_NEXT的取值(1),确定第二个PDCPPDU的COUNT为1,SN为1。而后,TX_NEXT取值加1,变为2,以此类推。The source network device uses the virtual PDCP SN to group PDCP data packets, transmit PDCP PDUs, and maintain the PDCP SN and/or state variables at the sending end. For example, the source network device sets the initial value of TX_NEXT to 0; when the source network device generates the first PDCP SDU, set the PDCP SN corresponding to the first PDCP SDU to 0, that is, TX_NEXT modulo 2 [12] , assuming that PDCP - SN-SizeDL=12, COUNT is 1 (assuming HFN=0); then, another TX_NEXT=0+1=1. When the source network device generates the second PDCP SDU, it determines that the COUNT of the second PDCP PDU is 1 and the SN is 1 according to the current value of TX_NEXT (1). Then, the value of TX_NEXT is increased by 1 to become 2, and so on.

在PDCP PDU中可以携带虚拟的PDCP SN值,如源网络设备发送的PDCP PDU中携带的虚拟的PDCP SN值为1’、2’、3’、4’...,为一组有序排列的数值或字母或标识等。The virtual PDCP SN value can be carried in the PDCP PDU. For example, the virtual PDCP SN value carried in the PDCP PDU sent by the source network device is 1', 2', 3', 4'..., which is a set of ordered arrangement Numerical or alphabetic or logo, etc.

在PDCP PDU中还可以携带实际的PDCP SN值,如源网络设备发送的PDCP PDU中携带的实际的PDCP SN值为1、3、5、7...,目标网络设备发送的PDCP PDU中携带的实际的PDCPSN值为2、4、6、8....。The actual PDCP SN value can also be carried in the PDCP PDU. For example, the actual PDCP SN value carried in the PDCP PDU sent by the source network device is 1, 3, 5, 7..., and the PDCP PDU sent by the target network device carries The actual PDCPSN values are 2, 4, 6, 8....

携带有实际的PDCP SN和虚拟的PDCP SN的PDCP PDU的格式示意图一、示意图二和示意图三,分别如图15a、图15b和图15c所示。在图15a和图15b中,虚拟的PDCP SN均位于第一个字节和第二个字节,实际的PDCP SN均位于第三个字节和第四个字节。在图15c中,虚拟的PDCP SN位于第一个字节、第二个字节和第三个字节,实际的PDCP SN位于第四个字节、第五个字节和第六个字节,或者虚拟的PDCP SN位于第一个字节和第二个字节,实际的PDCPSN位于第五个字节和第六个字节,第三个字节既有实际的PDCP SN,又有虚拟的PDCP SN。可选的,虚拟的PDCP SN在前,时际的PDCP SN在后;当然,也可以虚拟的PDCP SN在后,时际的PDCP SN在前。The schematic diagrams 1, 2 and 3 of the format of the PDCP PDU carrying the actual PDCP SN and the virtual PDCP SN are shown in Fig. 15a, Fig. 15b and Fig. 15c respectively. In Figure 15a and Figure 15b, the virtual PDCP SN is located in the first byte and the second byte, and the actual PDCP SN is located in the third byte and the fourth byte. In Figure 15c, the virtual PDCP SN is located in the first byte, the second byte and the third byte, and the actual PDCP SN is located in the fourth byte, fifth byte and sixth byte , or the virtual PDCP SN is located in the first byte and the second byte, the actual PDCP SN is located in the fifth byte and the sixth byte, and the third byte has both the actual PDCP SN and the virtual The PDCP SN. Optionally, the virtual PDCP SN precedes the temporal PDCP SN; of course, the virtual PDCP SN can also precede the temporal PDCP SN.

步骤S503,终端设备接收分别来自源网络设备和目标网络设备的PDCP PDU,基于虚拟的PDCP SN对PDCP PDU进行实体内的处理。Step S503, the terminal device receives the PDCP PDUs from the source network device and the target network device respectively, and performs intra-entity processing on the PDCP PDUs based on the virtual PDCP SN.

本发明实施例中,终端设备按照虚拟的PDCP SN执行实体内的重排序,以及实体内的按序递交等操作。其中,是否执行实体内的重排序以及实体内的按序递交,可以是预定义的,也可以是网络设备配置的。In the embodiment of the present invention, the terminal device performs operations such as reordering within the entity and sequential delivery within the entity according to the virtual PDCP SN. Wherein, whether to perform the reordering within the entity and the sequential delivery within the entity may be predefined or configured by the network device.

对PDCP PDU进行处理包括:终端设备基于虚拟的PDCP SN进行t-reordering的维护,实体内重排序。基于虚拟的PDCP SN设置RX_COUNT。基于虚拟的PDCP SN维护状态变量,如RX_NEXT,RX_REORD,RX_DELIV。基于虚拟的PDCP SN执行实体内的冗余包删除,即删除接收到的虚拟的PDCP SN相同的数据包。基于虚拟的PDCP SN执行实体内的按序递交。在执行实体内按序递交,或者向上层递交PDCP数据包时,可选的,将虚拟的PDCP SN替换为实际的PDCP SN。按照虚拟的PDCP SN进行PDCP数据包的解压缩。按照虚拟的PDCP SN进行PDCP数据包的解密。按照虚拟的PDCP SN执行PDCP数据包的完整性保护验证。The processing of the PDCP PDU includes: the terminal device performs t-reordering maintenance based on the virtual PDCP SN, and intra-entity reordering. Set RX_COUNT based on the virtual PDCP SN. Based on virtual PDCP SN maintenance state variables, such as RX_NEXT, RX_REORD, RX_DELIV. Execute redundant packet deletion within the entity based on the virtual PDCP SN, that is, delete received data packets with the same virtual PDCP SN. Intra-entity in-order delivery is performed based on the virtual PDCP SN. When submitting in sequence within the execution entity, or submitting the PDCP data packet to the upper layer, optionally, the virtual PDCP SN is replaced with the actual PDCP SN. The PDCP packet is decompressed according to the virtual PDCP SN. The PDCP packet is decrypted according to the virtual PDCP SN. The integrity protection verification of the PDCP data packet is performed according to the virtual PDCP SN.

在具体实施时,设置初始的RX_NEXT=0.RX_DELIV=0。假设应收到的PDCP数据包的虚拟的PDCP SN为0.1.2.3.4.。当前收到的PDCP PDU的虚拟的PDCP SN为4,COUNT=RCVD_COUNT=4,由于RCVD_COUNT>=RX_NEXT,设置RX_NEXT=4+1=5.由于t-Reordering未运行,且RX_DELIV<RX_NEXT,则开启重排序定时器,设置RX_REORD=RX_NEXT=5。而后,终端设备又接收到SN=2的PDCP PDU。则对应的COUNT=RCVD_COUNT=2,放入重排序缓存队列中,并不更新RX_NEXT;此时,RCVD_COUNT<RX_NEXT。在定时器超时,将COUNT=2和5的PDCPPDU按照升序,递交到上层。During specific implementation, set initial RX_NEXT=0.RX_DELIV=0. Assume that the virtual PDCP SN of the PDCP packet to be received is 0.1.2.3.4. The virtual PDCP SN of the currently received PDCP PDU is 4, COUNT=RCVD_COUNT=4, and since RCVD_COUNT>=RX_NEXT, set RX_NEXT=4+1=5. Since t-Reordering is not running, and RX_DELIV<RX_NEXT, enable reordering Sort timer, set RX_REORD=RX_NEXT=5. Then, the terminal device receives the PDCP PDU with SN=2. Then the corresponding COUNT=RCVD_COUNT=2 is put into the reordering buffer queue, and RX_NEXT is not updated; at this time, RCVD_COUNT<RX_NEXT. When the timer expires, deliver the PDCP PDUs with COUNT=2 and 5 to the upper layer in ascending order.

步骤S504,终端设备基于实际的PDCP SN对PDCP PDU进行实体间的处理。In step S504, the terminal device performs inter-entity processing on the PDCP PDU based on the actual PDCP SN.

本发明实施例中,PDCP实体间的处理,包括实体间重排序、实体间的按序递交、实体间冗余包删除等操作。In the embodiment of the present invention, the processing between PDCP entities includes operations such as reordering between entities, sequential delivery between entities, and deletion of redundant packets between entities.

如图16所示,源网络设备和目标网络设备发送给终端设备的PDCP实体的PDCPPDU,如PDCP data PDU中均携带实际的PDCP SN和虚拟的PDCP SN。源网络设备和目标网络设备均基于虚拟的PDCP SN进行实体内的PDCP PDU排序,特定的网络实体或层(如位于源网络设备PDCP和目标网络设备PDCP之上的某一层)基于实际的PDCP SN进行实体间的PDCPPDU排序。As shown in FIG. 16 , the PDCP PDU of the PDCP entity sent by the source network device and the target network device to the terminal device, such as the PDCP data PDU, both carry the actual PDCP SN and the virtual PDCP SN. Both the source network device and the target network device perform PDCP PDU sorting within the entity based on the virtual PDCP SN, and a specific network entity or layer (such as a layer above the source network device PDCP and the target network device PDCP) is based on the actual PDCP SN performs PDCP PDU ordering among entities.

需要说明的是,上述针对下面针对DRB承载或SRB承载,终端设备支持同时与源网络设备和目标网络设备两条路径传输的情况,源网络设备向终端设备发送DRB承载或SRB承载,目标网络设备也向终端设备发送DRB承载或SRB承载的情景,对本发明实施例的PDCP数据包处理方法进行详细说明。在实际应用中,本发明实施例还适用于终端设备支持同时与源网络设备和目标网络设备两条路径传输的情况,终端设备向源网络设备发送DRB承载或SRB承载,终端设备也向目标网络设备也发送DRB承载或SRB承载的情景;在这种场景下,终端设备可以向网络设备交互PDCP SN和/或PDCP SN分配规则。具体的,可以通过RRC信令、MAC CE、物理层信令承载、PDCP control PDU,PDCP数据包将PDCP SN(如PDCP SN pattern或PDCP SN bitmap或PDCP SN list)和/或PDCP SN分配规则发送至网络设备。It should be noted that, the above is for the DRB bearer or SRB bearer, the terminal device supports two transmission paths with the source network device and the target network device at the same time, the source network device sends the DRB bearer or SRB bearer to the terminal device, and the target network device The scenario of sending the DRB bearer or the SRB bearer to the terminal device is also described in detail for the PDCP data packet processing method in the embodiment of the present invention. In practical applications, the embodiment of the present invention is also applicable to the case where the terminal device supports two paths of transmission with the source network device and the target network device at the same time. The terminal device sends a DRB bearer or an SRB bearer to the source network device, and the terminal device also sends a The device also sends the DRB bearer or SRB bearer scenario; in this scenario, the terminal device can exchange PDCP SN and/or PDCP SN allocation rules with the network device. Specifically, the PDCP SN (such as PDCP SN pattern or PDCP SN bitmap or PDCP SN list) and/or PDCP SN allocation rules can be sent through RRC signaling, MAC CE, physical layer signaling bearer, PDCP control PDU, and PDCP data packets to the network device.

在以上各情景下,发送电子设备可以为终端设备内部的一个PDCP实体,接收电子设备可以为终端设备内部的另一个PDCP实体。在具体实施时,对上行数据传输时,终端设备的一个PDCP实体或PDCP功能模块向源网络设备发送PDCP数据包,终端设备的另一个PDCP实体或PDCP功能模块向目标网络设备发送PDCP数据包;此外,终端设备的一个PDCP实体或PDCP功能模块可以与终端设备的另一个PDCP实体或PDCP功能模块进行PDCP SN和/或PDCPSN分配规则的交互。对下行数据传输时,源网络设备向终端设备的一个PDCP实体或PDCP功能模块发送PDCP数据包,目标网络设备向终端设备的另一个PDCP实体或PDCP功能模块发送PDCP数据包;此外,终端设备的一个PDCP实体或PDCP功能模块还可以与终端设备的另一个PDCP实体或PDCP功能模块进行PDCP SN和/或PDCP SN分配规则的交互。In each of the above scenarios, the sending electronic device may be a PDCP entity inside the terminal device, and the receiving electronic device may be another PDCP entity inside the terminal device. During specific implementation, when transmitting uplink data, a PDCP entity or PDCP functional module of the terminal device sends a PDCP data packet to the source network device, and another PDCP entity or PDCP functional module of the terminal device sends a PDCP data packet to the target network device; In addition, one PDCP entity or PDCP function module of the terminal device may perform PDCP SN and/or PDCPSN allocation rule interaction with another PDCP entity or PDCP function module of the terminal device. For downlink data transmission, the source network device sends a PDCP data packet to a PDCP entity or PDCP functional module of the terminal device, and the target network device sends a PDCP data packet to another PDCP entity or PDCP functional module of the terminal device; in addition, the terminal device's One PDCP entity or PDCP function module can also perform PDCP SN and/or PDCP SN assignment rule interaction with another PDCP entity or PDCP function module of the terminal device.

本发明实施例提供的数据包处理方法,明确了终端设备与源网络设备和目标网络设备同时进行数据传输,尤其是存在对应的两个PDCP实体传输缓存和/或接收缓存时如何对PDCP数据包的PDCP SN和PDCP数据包的状态变量进行管理。避免了由于PDCP数据包的PDCP SN和/或状态变量设置错误,导致的终端设备、源网络设备和目标网络设备对PDCP SN的理解不一致,以及对接收到的PDCP数据包进行错误处理的问题。同时,避免了接收到PDCP数据包后向高层递交延迟的问题,保证了系统整体的数据传输速率。The data packet processing method provided by the embodiment of the present invention clarifies that the terminal device performs data transmission with the source network device and the target network device at the same time, especially how to process the PDCP data packet when there are two corresponding PDCP entity transmission buffers and/or receiving buffers. The PDCP SN and the state variables of PDCP packets are managed. The problem of inconsistent understanding of PDCP SN by the terminal device, the source network device and the target network device caused by the PDCP SN and/or state variable setting of the PDCP data packet is avoided, and the problem of incorrect processing of the received PDCP data packet is avoided. At the same time, it avoids the problem of submitting the delay to the upper layer after receiving the PDCP data packet, and ensures the overall data transmission rate of the system.

为实现上述数据包处理方法,本发明实施例提供一种发送电子设备,所述发送电子设备600的组成结构,如图17所示,包括:In order to implement the above data packet processing method, an embodiment of the present invention provides a sending electronic device. The composition structure of the sending electronic device 600, as shown in FIG. 17 , includes:

第一处理单元601,配置为基于第一信息设置PDCP数据包的PDCP SN和/或状态变量;所述第一信息为预先约定的PDCP SN和/或PDCP SN分配规则;或者,所述第一信息为所述发送电子设备向第二发送电子设备和/或接收电子设备发送的PDCP SN和/或PDCP SN分配规则。The first processing unit 601 is configured to set the PDCP SN and/or state variable of the PDCP data packet based on the first information; the first information is a pre-agreed PDCP SN and/or PDCP SN allocation rule; or, the first The information is the PDCP SN and/or the PDCP SN allocation rule sent by the sending electronic device to the second sending electronic device and/or the receiving electronic device.

本发明实施例中,所述发送电子设备600还包括:In the embodiment of the present invention, the sending electronic device 600 further includes:

第一发送单元602,配置为向第二发送电子设备发送PDCP SN和/或PDCP SN分配规则。The first sending unit 602 is configured to send the PDCP SN and/or the PDCP SN assignment rule to the second sending electronic device.

本发明实施例中,所述发送电子设备600还包括:In the embodiment of the present invention, the sending electronic device 600 further includes:

第二发送单元603,配置为向接收电子设备发送PDCP SN和/或PDCP SN分配规则。The second sending unit 603 is configured to send the PDCP SN and/or the PDCP SN assignment rule to the receiving electronic device.

本发明实施例中,所述PDCP SN和/或PDCP SN分配规则由所述发送电子设备确定、或者所述PDCP SN由所述第二发送电子设备确定、或者所述PDCP SN由所述发送电子设备和所述第二发送电子设备共同确定。In the embodiment of the present invention, the PDCP SN and/or the PDCP SN allocation rule are determined by the sending electronic device, or the PDCP SN is determined by the second sending electronic device, or the PDCP SN is determined by the sending electronic device. The device and the second sending electronic device are jointly determined.

本发明实施例中,所述PDCP SN和/或PDCP SN分配规则根据下述中的至少一种确定:业务特征、QoS需求、调度情况、SPS配置信息、CG配置信息、激活的载波信息、激活的SPS信息、激活的CG信息、业务量大小、业务类型、小区负荷、小区干扰、以及小区信道质量。In the embodiment of the present invention, the PDCP SN and/or PDCP SN allocation rules are determined according to at least one of the following: service characteristics, QoS requirements, scheduling conditions, SPS configuration information, CG configuration information, activated carrier information, activated SPS information, activated CG information, traffic volume, service type, cell load, cell interference, and cell channel quality.

本发明实施例中,所述PDCP SN和/或PDCP SN分配规则通过下述中的至少一种发送:RRC信令、MAC CE、物理层信令承载和PDCP包。In the embodiment of the present invention, the PDCP SN and/or the PDCP SN allocation rule are sent through at least one of the following: RRC signaling, MAC CE, physical layer signaling bearer and PDCP packet.

本发明实施例中,在所述PDCP包为PDCP control PDU时,In the embodiment of the present invention, when the PDCP packet is a PDCP control PDU,

所述PDCP control PDU携带所述PDCP SN的信息,和/或携带包含的PDCP SN信息的控制信息类型的指示;The PDCP control PDU carries the information of the PDCP SN, and/or carries an indication of the type of control information contained in the PDCP SN information;

和/或,在所述PDCP control PDU中携带共同维护的PDCP SN;And/or, carrying a commonly maintained PDCP SN in the PDCP control PDU;

和/或,在所述PDCP control PDU中携带PDCP SN Bitmap,所述PDCP SN Bitmap对应的起始SN,和所述PDCP SN Bitmap对应的终止SN中的至少一个;And/or, at least one of the PDCP SN Bitmap, the start SN corresponding to the PDCP SN Bitmap, and the termination SN corresponding to the PDCP SN Bitmap are carried in the PDCP control PDU;

和/或,在所述PDCP control PDU中携带PDCP SN pattern,所述PDCP SN pattern对应的起始SN,和所述PDCP SN pattern对应的终止SN中的至少一个;And/or, at least one of the PDCP SN pattern, the start SN corresponding to the PDCP SN pattern, and the termination SN corresponding to the PDCP SN pattern are carried in the PDCP control PDU;

和/或,在所述PDCP control PDU中携带共同维护的PDCP SN中的起始SN和终止SN;And/or, the PDCP control PDU carries the start SN and the end SN of the commonly maintained PDCP SN;

和/或,在所述PDCP control PDU中携带共同维护的PDCP SN的个数;And/or, carrying the number of commonly maintained PDCP SNs in the PDCP control PDU;

和/或,在所述PDCP control PDU中携带共同维护的PDCP SN Bitmap的长度;And/or, carrying the length of the commonly maintained PDCP SN Bitmap in the PDCP control PDU;

和/或,在所述PDCP control PDU中携带共同维护的PDCP SN pattern的长度或周期;And/or, carrying the length or period of the commonly maintained PDCP SN pattern in the PDCP control PDU;

和/或,在所述PDCP control PDU中携带共同维护的PDCP SN list。And/or, the commonly maintained PDCP SN list is carried in the PDCP control PDU.

本发明实施例中,所述第一处理单元601配置为执行下述至少之一:In this embodiment of the present invention, the first processing unit 601 is configured to perform at least one of the following:

基于所述第一信息设置TX-NEXT的值和/或TX-NEXT的初始值;Setting the value of TX-NEXT and/or the initial value of TX-NEXT based on the first information;

将所述PDCP数据包的计数值COUNT与TX-NEXT的值进行关联;Associating the count value COUNT of the PDCP data packet with the value of TX-NEXT;

设置所述PDCP数据包的PDCP SN为利用TX-NEXT对PDCP SN大小的函数取模得到的值;Setting the PDCP SN of the PDCP data packet is a value obtained by moduloing the function of the size of the PDCP SN by using TX-NEXT;

基于所述第一信息设置TX-NEXT的值为与当前PDCP SN相邻的下一个PDCP SN。Set the value of TX-NEXT to the next PDCP SN adjacent to the current PDCP SN based on the first information.

本发明实施例中,所述PDCP SN包括:第一PDCP SN和第二PDCP SN;In the embodiment of the present invention, the PDCP SN includes: a first PDCP SN and a second PDCP SN;

所述第一PDCP SN用于以下至少之一:所述第一发送电子设备进行PDCP数据包的组包和传输、设置所述PDCP数据包的PDCP SN和/或状态变量,以及接收电子设备进行PDCP实体内的PDCP数据包处理;The first PDCP SN is used for at least one of the following: the first sending electronic device packs and transmits PDCP data packets, sets the PDCP SN and/or state variables of the PDCP data packets, and the receiving electronic device performs PDCP packet processing within the PDCP entity;

所述第二PDCP SN用于接收电子设备进行PDCP实体间的PDCP数据包处理。The second PDCP SN is used for receiving electronic equipment to process PDCP data packets between PDCP entities.

本发明实施例中,所述第一PDCP SN和所述第二PDCP SN携带于所述PDCP数据包内;In the embodiment of the present invention, the first PDCP SN and the second PDCP SN are carried in the PDCP data packet;

或者,所述第一PDCP SN携带于所述PDCP数据包的包头内,所述第二PDCP SN携带于所述PDCP数据包的包头内或所述PDCP数据包内;Or, the first PDCP SN is carried in the packet header of the PDCP data packet, and the second PDCP SN is carried in the packet header of the PDCP data packet or in the PDCP data packet;

或者,所述第二PDCP SN携带于所述PDCP数据包的包头内,所述第一PDCP SN携带于所述PDCP数据包的包头内或所述PDCP数据包内;Or, the second PDCP SN is carried in the packet header of the PDCP data packet, and the first PDCP SN is carried in the packet header of the PDCP data packet or in the PDCP data packet;

或者,所述第一PDCP SN携带于所述PDCP数据包的包头内或数据包内,所述第二PDCP SN通过专用信令发送;Or, the first PDCP SN is carried in the header of the PDCP data packet or in the data packet, and the second PDCP SN is sent through dedicated signaling;

或者,所述第二PDCP SN携带于所述PDCP数据包的包头内或数据包内,所述第一PDCP SN通过专用信令发送;Or, the second PDCP SN is carried in the header of the PDCP data packet or in the data packet, and the first PDCP SN is sent through dedicated signaling;

或者,所述第一PDCP SN和所述第二PDCP SN通过专用信令发送。Or, the first PDCP SN and the second PDCP SN are sent through dedicated signaling.

本发明实施例中,所述PDCP数据包还包括第一指示信息,所述第一指示信息用于指示下述至少之一:所述PDCP数据包的类型、所述PDCP数据包的格式和所述PDCP数据包携带的PDCP SN信息。In the embodiment of the present invention, the PDCP data packet further includes first indication information, and the first indication information is used to indicate at least one of the following: the type of the PDCP data packet, the format of the PDCP data packet, and the The PDCP SN information carried in the PDCP data packet.

本发明实施例中,所述PDCP数据包还包括第二指示信息,所述第二指示信息用于指示下述至少之一:In the embodiment of the present invention, the PDCP data packet further includes second indication information, and the second indication information is used to indicate at least one of the following:

所述PDCP数据包是否包含所述第一PDCP SN、所述PDCP数据包是否包含所述第二PDCP SN、所述第一PDCP SN在所述PDCP数据包的包头还是数据包内、所述第二PDCP SN在PDCP数据包的包头还是数据包内、所述第二PDCP SN和所述第一PDCP SN的先后顺序。Whether the PDCP data packet contains the first PDCP SN, whether the PDCP data packet contains the second PDCP SN, whether the first PDCP SN is in the header of the PDCP data packet or in the data packet, the second Whether the two PDCP SNs are in the packet header of the PDCP data packet or in the data packet, the order of the second PDCP SN and the first PDCP SN.

本发明实施例中,所述第一处理单元601,还配置为根据网络设备的指示或预定义信息,确定以下信息至少之一:In the embodiment of the present invention, the first processing unit 601 is further configured to determine at least one of the following information according to the instruction of the network device or predefined information:

所述PDCP数据包的类型、所述PDCP数据包的格式、所述PDCP数据包的携带的PDCPSN信息、所述PDCP数据包是否包含所述第一PDCP SN、所述PDCP数据包是否包含所述第二PDCP SN、所述第一PDCP SN在所述PDCP数据包的包头还是数据包内、所述第二PDCP SN在所述PDCP数据包的包头还是数据包内、所述第二PDCP SN和所述第一PDCP SN的先后顺序。The type of the PDCP data packet, the format of the PDCP data packet, the PDCPSN information carried in the PDCP data packet, whether the PDCP data packet contains the first PDCP SN, whether the PDCP data packet contains the The second PDCP SN, the first PDCP SN is in the header of the PDCP data packet or in the data packet, the second PDCP SN is in the header of the PDCP data packet or in the data packet, the second PDCP SN and The sequence of the first PDCP SNs.

本发明实施例中,所述第一处理单元601,配置为执行以下至少之一:In the embodiment of the present invention, the first processing unit 601 is configured to perform at least one of the following:

基于所述第一PDCP SN设置TX-NEXT的值;setting a value of TX-NEXT based on the first PDCP SN;

基于所述第一PDCP SN设置TX-NEXT的初始值,初始值可以为0;Set an initial value of TX-NEXT based on the first PDCP SN, where the initial value may be 0;

将所述PDCP数据包的计数值COUNT与TX-NEXT的值进行关联;Associating the count value COUNT of the PDCP data packet with the value of TX-NEXT;

设置所述PDCP数据包的PDCP SN为利用TX-NEXT对PDCP SN的大小取模得到的值;Setting the PDCP SN of the PDCP data packet is a value obtained by moduloing the size of the PDCP SN by using TX-NEXT;

基于所述第一PDCP SN设置TX-NEXT的值为TX-NEXT加1。Set the value of TX-NEXT based on the first PDCP SN to TX-NEXT plus 1.

本发明实施例中,所述PDCP SN和/或PDCP SN分配规则被周期性发送,或基于事件被发送。In the embodiment of the present invention, the PDCP SN and/or the PDCP SN allocation rule are sent periodically or based on events.

本发明实施例中,所述事件至少包括下述中的一项:PDCP SN图样变更和PDCP SN分配规则变更。In the embodiment of the present invention, the event includes at least one of the following: PDCP SN pattern change and PDCP SN allocation rule change.

本发明实施例中,所述发送电子设备为源网络设备、所述接收电子设备为终端设备;In the embodiment of the present invention, the sending electronic device is a source network device, and the receiving electronic device is a terminal device;

或者,所述第一发送电子设备为源网络设备,所述第二发送电子设备为目标网络设备,所述接收电子设备为所述终端设备内的第一接收实体和/或第二接收实体;Alternatively, the first sending electronic device is a source network device, the second sending electronic device is a target network device, and the receiving electronic device is a first receiving entity and/or a second receiving entity in the terminal device;

或者,所述发送电子设备为源网络设备,所述接收电子设备为目标网络设备;Or, the sending electronic device is a source network device, and the receiving electronic device is a target network device;

或者,所述发送电子设备为源网络设备,所述第二发送电子设备为目标网络设备,所述接收电子设备为终端设备;Or, the sending electronic device is a source network device, the second sending electronic device is a target network device, and the receiving electronic device is a terminal device;

或者,所述发送电子设备为目标网络设备、所述接收电子设备为终端设备;Or, the sending electronic device is a target network device, and the receiving electronic device is a terminal device;

或者,所述第一发送电子设备为目标网络设备,所述第二发送电子设备为源网络设备,所述接收电子设备为所述终端设备内的第一接收实体和/或第二接收实体;Alternatively, the first sending electronic device is a target network device, the second sending electronic device is a source network device, and the receiving electronic device is a first receiving entity and/or a second receiving entity in the terminal device;

或者,所述发送电子设备为目标网络设备,所述第二发送电子设备为源网络设备,所述接收电子设备为终端设备;Or, the sending electronic device is a target network device, the second sending electronic device is a source network device, and the receiving electronic device is a terminal device;

或者,所述发送电子设备为目标网络设备,所述接收电子设备为源网络设备;或者,所述发送电子设备为终端设备,所述接收电子设备为目标网络设备和/或源网络设备;Or, the sending electronic device is a target network device, and the receiving electronic device is a source network device; or, the sending electronic device is a terminal device, and the receiving electronic device is a target network device and/or a source network device;

或者,所述发送电子设备为终端设备内的第一发送实体,所述接收电子设备为所述终端设备内的第一接收实体;Or, the sending electronic device is a first sending entity in the terminal device, and the receiving electronic device is a first receiving entity in the terminal device;

或者,所述发送电子设备为所述终端设备内的第一发送实体,所述第二发送电子设备为所述终端设备内的第二发送实体,所述接收电子设备为目标网络设备和源网络设备。Alternatively, the sending electronic device is a first sending entity in the terminal device, the second sending electronic device is a second sending entity in the terminal device, and the receiving electronic device is a target network device and a source network equipment.

本发明实施例中,所述预先约定的PDCP SN,或所述第一发送电子设备向第二发送电子设备和/或接收电子设备发送的PDCP SN包括下述至少之一:PDCP SN、PDCP SN list、PDCP SN Bitmap、PDCP SN pattern。In the embodiment of the present invention, the pre-agreed PDCP SN, or the PDCP SN sent by the first sending electronic device to the second sending electronic device and/or receiving electronic device includes at least one of the following: PDCP SN, PDCP SN list, PDCP SN Bitmap, PDCP SN pattern.

为实现上述数据包处理方法,本发明实施例提供一种接收电子设备,所述接收电子设备800的组成结构,如图18所示,包括:In order to implement the above data packet processing method, an embodiment of the present invention provides a receiving electronic device. The composition structure of the receiving electronic device 800, as shown in FIG. 18 , includes:

接收单元801,配置为接收至少两个发送电子设备的PDCP序列号SN和/或PDCP SN分配规则;The receiving unit 801 is configured to receive PDCP serial numbers SN and/or PDCP SN allocation rules of at least two sending electronic devices;

第二处理单元802,配置为根据所述PDCP SN和/或PDCP SN分配规则对PDCP数据包进行处理。The second processing unit 802 is configured to process the PDCP data packet according to the PDCP SN and/or the PDCP SN assignment rule.

本发明实施例中,所述发送电子设备的PDCP SN和/或PDCP SN分配规则包括:第一PDCP SN和第二PDCP SN;In the embodiment of the present invention, the PDCP SN and/or PDCP SN allocation rules of the sending electronic device include: a first PDCP SN and a second PDCP SN;

所述第一PDCP SN用于下述至少之一:所述发送电子设备进行PDCP数据包的组包和传输、设置所述PDCP数据包的PDCP SN和/或状态变量,以及接收电子设备进行PDCP实体内的PDCP数据包处理;The first PDCP SN is used for at least one of the following: the sending electronic device packs and transmits PDCP data packets, sets the PDCP SN and/or state variables of the PDCP data packets, and the receiving electronic device performs PDCP PDCP packet processing within the entity;

所述第二PDCP SN用于所述接收电子设备进行PDCP实体间的PDCP数据包处理。The second PDCP SN is used for the receiving electronic device to process PDCP data packets between PDCP entities.

本发明实施例中,所述第二处理单元802,配置为根据所述第一PDCP SN,对所述PDCP数据包进行PDCP实体内的处理;In the embodiment of the present invention, the second processing unit 802 is configured to process the PDCP data packet in the PDCP entity according to the first PDCP SN;

和/或,根据所述第二PDCP SN,对所述PDCP数据包进行PDCP实体间的处理。And/or, perform inter-PDCP entity processing on the PDCP data packet according to the second PDCP SN.

本发明实施例中,所述第一PDCP SN和所述第二PDCP SN携带于所述PDCP数据包内;In the embodiment of the present invention, the first PDCP SN and the second PDCP SN are carried in the PDCP data packet;

或者,所述第一PDCP SN携带于所述PDCP数据包的包头内,所述第二PDCP SN携带于所述PDCP数据包的包头内或所述PDCP数据包内;Or, the first PDCP SN is carried in the packet header of the PDCP data packet, and the second PDCP SN is carried in the packet header of the PDCP data packet or in the PDCP data packet;

或者,所述第二PDCP SN携带于所述PDCP数据包的包头内,所述第一PDCP SN携带于所述PDCP数据包的包头内或所述PDCP数据包内;Or, the second PDCP SN is carried in the packet header of the PDCP data packet, and the first PDCP SN is carried in the packet header of the PDCP data packet or in the PDCP data packet;

或者,所述第一PDCP SN携带于所述PDCP数据包的包头内或数据包内,所述第二PDCP SN通过专用信令发送;Or, the first PDCP SN is carried in the header of the PDCP data packet or in the data packet, and the second PDCP SN is sent through dedicated signaling;

或者,所述第二PDCP SN携带于所述PDCP数据包的包头内或数据包内,所述第一PDCP SN通过专用信令发送;Or, the second PDCP SN is carried in the header of the PDCP data packet or in the data packet, and the first PDCP SN is sent through dedicated signaling;

或者,所述第一PDCP SN和所述第二PDCP SN通过专用信令发送。Or, the first PDCP SN and the second PDCP SN are sent through dedicated signaling.

本发明实施例中,所述PDCP数据包还包括第一指示信息,所述第一指示信息用于指示下述至少之一:In the embodiment of the present invention, the PDCP data packet further includes first indication information, and the first indication information is used to indicate at least one of the following:

所述PDCP数据包的类型、所述PDCP数据包的格式和所述PDCP数据包携带的PDCPSN信息。The type of the PDCP data packet, the format of the PDCP data packet, and the PDCPSN information carried in the PDCP data packet.

本发明实施例中,所述PDCP数据包还包括第二指示信息,所述第二指示信息用于指示下述至少之一:In the embodiment of the present invention, the PDCP data packet further includes second indication information, and the second indication information is used to indicate at least one of the following:

所述PDCP数据包是否包含所述第一PDCP SN、所述PDCP数据包是否包含所述第二PDCP SN、所述第一PDCP SN在所述PDCP数据包的包头还是数据包内、所述第二PDCP SN在PDCP数据包的包头还是数据包内、所述第二PDCP SN和所述第一PDCP SN的先后顺序。Whether the PDCP data packet contains the first PDCP SN, whether the PDCP data packet contains the second PDCP SN, whether the first PDCP SN is in the header of the PDCP data packet or in the data packet, the second Whether the two PDCP SNs are in the packet header of the PDCP data packet or in the data packet, the order of the second PDCP SN and the first PDCP SN.

本发明实施例中,所述第二处理单元802,还配置为利用所述第二PDCP SN替换所述第一PDCP SN。In the embodiment of the present invention, the second processing unit 802 is further configured to replace the first PDCP SN with the second PDCP SN.

本发明实施例中,所述接收单元801,还配置为接收PDCP数据包和/或PDCPcontrol PDU。In the embodiment of the present invention, the receiving unit 801 is further configured to receive a PDCP data packet and/or a PDCP control PDU.

本发明实施例中,所述接收电子设备是否在PDCP实体内和/或在PDCP实体间对所述PDCP数据包处理,由预先设定、或网络设备配置、或由所述第二处理单元根据所述PDCPSN及状态变量的至少之一来确定的。In the embodiment of the present invention, whether the receiving electronic device processes the PDCP data packet within the PDCP entity and/or between PDCP entities is determined by preset or network device configuration, or by the second processing unit according to determined by at least one of the PDCPSN and state variables.

本发明实施例中,在t-reordering定时器超时的情况下,所述第二处理单元,配置为确定向高层按序递交所述PDCP数据包;In the embodiment of the present invention, when the t-reordering timer expires, the second processing unit is configured to determine to deliver the PDCP data packets in sequence to a higher layer;

和/或,RCVD-COUNT=RX-DELIV的情况下,所述第二处理单元,配置为确定向高层按序递交所述PDCP数据包。And/or, in the case of RCVD-COUNT=RX-DELIV, the second processing unit is configured to determine to deliver the PDCP data packets sequentially to a higher layer.

本发明实施例中,所述至少两个发送电子设备的PDCP SN和/或PDCP SN分配规则,由任意一个发送电子设备发送至所述接收电子设备;In the embodiment of the present invention, the PDCP SN and/or PDCP SN allocation rules of the at least two sending electronic devices are sent to the receiving electronic device by any sending electronic device;

或者,所述至少两个发送电子设备的PDCP SN和/或PDCP SN分配规则,由指定的一个发送电子设备发送至所述接收电子设备;Or, the PDCP SN and/or PDCP SN allocation rules of the at least two sending electronic devices are sent to the receiving electronic device by a designated sending electronic device;

或者,所述至少两个发送电子设备的PDCP SN和/或PDCP SN分配规则,均由每个发送电子设备发送至所述接收电子设备;Or, the PDCP SN and/or PDCP SN allocation rules of the at least two sending electronic devices are sent to the receiving electronic device by each sending electronic device;

或者,每个发送电子设备的PDCP SN和/或PDCP SN分配规则,由所述发送电子设备自身和/或其他的发送电子设备发送至所述接收电子设备。Or, the PDCP SN and/or PDCP SN assignment rule of each sending electronic device is sent to the receiving electronic device by the sending electronic device itself and/or other sending electronic devices.

本发明实施例中,所述至少两个发送电子设备的PDCP SN和/或PDCP SN分配规则,由任意一个发送电子设备确定;In the embodiment of the present invention, the PDCP SN and/or PDCP SN allocation rules of the at least two sending electronic devices are determined by any sending electronic device;

或者,所述至少两个发送电子设备的PDCP SN和/或PDCP SN分配规则,由指定的一个发送电子设备确定;Or, the PDCP SN and/or PDCP SN allocation rules of the at least two sending electronic devices are determined by a designated sending electronic device;

或者,所述至少两个发送电子设备的PDCP SN和/或PDCP SN分配规则,由所述至少两个发送电子设备共同确定。Alternatively, the PDCP SNs and/or PDCP SN allocation rules of the at least two sending electronic devices are jointly determined by the at least two sending electronic devices.

本发明实施例中,所述PDCP SN和/或PDCP SN分配规则根据下述中的至少一种确定:业务特征、QoS需求、调度情况、SPS配置信息、CG配置信息、激活的载波信息、激活的SPS信息、激活的CG信息、业务量大小、业务类型、小区负荷、小区干扰、以及小区信道质量。In the embodiment of the present invention, the PDCP SN and/or PDCP SN allocation rules are determined according to at least one of the following: service characteristics, QoS requirements, scheduling conditions, SPS configuration information, CG configuration information, activated carrier information, activated SPS information, activated CG information, traffic volume, service type, cell load, cell interference, and cell channel quality.

本发明实施例中,所述PDCP SN和/或PDCP SN分配规则通过下述中的至少一种接收:RRC信令、MAC CE、物理层信令承载和PDCP包。In the embodiment of the present invention, the PDCP SN and/or the PDCP SN allocation rule are received through at least one of the following: RRC signaling, MAC CE, physical layer signaling bearer and PDCP packet.

本发明实施例中,在所述PDCP包为PDCP control PDU时,In the embodiment of the present invention, when the PDCP packet is a PDCP control PDU,

所述PDCP control PDU携带所述PDCP SN的信息,和/或携带包含的PDCP SN信息的控制信息类型的指示;The PDCP control PDU carries the information of the PDCP SN, and/or carries an indication of the type of control information contained in the PDCP SN information;

和/或,在所述PDCP control PDU中携带共同维护的PDCP SN;And/or, carrying a commonly maintained PDCP SN in the PDCP control PDU;

和/或,在所述PDCP control PDU中携带PDCP SN Bitmap,所述PDCP SN Bitmap对应的起始SN,和所述PDCP SN Bitmap对应的终止SN中的至少一个;And/or, at least one of the PDCP SN Bitmap, the start SN corresponding to the PDCP SN Bitmap, and the termination SN corresponding to the PDCP SN Bitmap are carried in the PDCP control PDU;

和/或,在所述PDCP control PDU中携带PDCP SN pattern,所述PDCP SN pattern对应的起始SN,和所述PDCP SN pattern对应的终止SN中的至少一个;And/or, at least one of the PDCP SN pattern, the start SN corresponding to the PDCP SN pattern, and the termination SN corresponding to the PDCP SN pattern are carried in the PDCP control PDU;

和/或,在所述PDCP control PDU中携带共同维护的PDCP SN中的起始SN和终止SN;And/or, the PDCP control PDU carries the start SN and the end SN of the commonly maintained PDCP SN;

和/或,在所述PDCP control PDU中携带共同维护的PDCP SN的个数;And/or, carrying the number of commonly maintained PDCP SNs in the PDCP control PDU;

和/或,在所述PDCP control PDU中携带共同维护的PDCP SN Bitmap的长度;And/or, carrying the length of the commonly maintained PDCP SN Bitmap in the PDCP control PDU;

和/或,在所述PDCP control PDU中携带共同维护的PDCP SN pattern的长度或周期;And/or, carrying the length or period of the commonly maintained PDCP SN pattern in the PDCP control PDU;

和/或,在所述PDCP control PDU中携带共同维护的PDCP SN list。And/or, the commonly maintained PDCP SN list is carried in the PDCP control PDU.

本发明实施例中,所述接收电子设备为终端设备,所述发送电子设备为源网络设备和/或目标网络设备;In the embodiment of the present invention, the receiving electronic device is a terminal device, and the sending electronic device is a source network device and/or a target network device;

或者,所述接收电子设备为终端设备内的第一接收实体,所述发送电子设备为终端设备内的第一发送实体;Or, the receiving electronic device is a first receiving entity in the terminal device, and the sending electronic device is a first sending entity in the terminal device;

或者,所述接收电子设备为源网络设备和/或目标网络设备,所述发送电子设备为终端设备;Alternatively, the receiving electronic device is a source network device and/or a target network device, and the sending electronic device is a terminal device;

或者,所述接收电子设备为目标网络设备,所述发送电子设备为源网络设备;Or, the receiving electronic device is a target network device, and the sending electronic device is a source network device;

或者,所述接收电子设备为源网络设备,所述发送电子设备为目标网络设备;Or, the receiving electronic device is a source network device, and the sending electronic device is a target network device;

或者,所述接收电子设备为源网络设备,所述发送电子设备为终端设备内的第一发送实体和/或第二发送实体;Or, the receiving electronic device is a source network device, and the sending electronic device is a first sending entity and/or a second sending entity in a terminal device;

或者,所述接收电子设备为目标网络设备,所述发送电子设备为终端设备内的第一发送实体和/或第二发送实体。Alternatively, the receiving electronic device is a target network device, and the sending electronic device is a first sending entity and/or a second sending entity in a terminal device.

本发明实施例中,所述至少两个发送电子设备的PDCP序列号SN,包括下述至少之一:PDCP SN、PDCP SN list、PDCP SN Bitmap、PDCP SN pattern。In the embodiment of the present invention, the PDCP serial numbers SN of the at least two sending electronic devices include at least one of the following: PDCP SN, PDCP SN list, PDCP SN Bitmap, and PDCP SN pattern.

本发明实施例还提供一种发送电子设备,包括处理器和用于存储能够在处理器上运行的计算机程序的存储器,其中,所述处理器用于运行所述计算机程序时,执行上述终端设备执行的数据包处理方法的步骤。An embodiment of the present invention also provides a sending electronic device, including a processor and a memory for storing a computer program that can run on the processor, wherein, when the processor is used to run the computer program, execute the above-mentioned terminal device to execute The steps of the packet processing method.

本发明实施例还提供一种接收电子设备,包括处理器和用于存储能够在处理器上运行的计算机程序的存储器,其中,所述处理器用于运行所述计算机程序时,执行上述网络设备执行的数据包处理方法的步骤。An embodiment of the present invention also provides a receiving electronic device, including a processor and a memory for storing a computer program that can run on the processor, wherein, when the processor is used to run the computer program, execute the above-mentioned network device to execute The steps of the packet processing method.

图19是本发明实施例的电子设备(发送电子设备和接收电子设备)的硬件组成结构示意图,电子设备700包括:至少一个处理器701、存储器702和至少一个网络接口704。电子设备700中的各个组件通过总线系统705耦合在一起。可理解,总线系统705用于实现这些组件之间的连接通信。总线系统705除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图19中将各种总线都标为总线系统705。FIG. 19 is a schematic diagram of the hardware composition structure of an electronic device (sending electronic device and receiving electronic device) according to an embodiment of the present invention. The electronic device 700 includes: at least one processor 701 , memory 702 and at least one network interface 704 . Various components in the electronic device 700 are coupled together through a bus system 705 . It can be understood that the bus system 705 is used to realize connection and communication between these components. In addition to the data bus, the bus system 705 also includes a power bus, a control bus and a status signal bus. However, the various buses are labeled as bus system 705 in FIG. 19 for clarity of illustration.

可以理解,存储器702可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是ROM、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,ErasableProgrammable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,ElectricallyErasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagneticrandom access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,SynchronousStatic Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random AccessMemory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random AccessMemory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data RateSynchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本发明实施例描述的存储器702旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 702 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. Wherein, the non-volatile memory can be ROM, Programmable Read-Only Memory (PROM, Programmable Read-Only Memory), Erasable Programmable Read-Only Memory (EPROM, Erasable Programmable Read-Only Memory), Electrically Erasable Programmable Read-only memory (EEPROM, ElectricallyErasable Programmable Read-Only Memory), magnetic random access memory (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface memory, optical disc, or CD-ROM (CD-ROM, Compact Disc Read-Only Memory); magnetic surface storage can be disk storage or tape storage. The volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM, Static Random Access Memory), Synchronous Static Random Access Memory (SSRAM, Synchronous Static Random Access Memory), Dynamic Random Access Memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), Enhanced Synchronous Dynamic Random Access Memory Access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronous connection dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, Direct Rambus Random Access Memory). The memory 702 described in the embodiments of the present invention is intended to include, but not be limited to, these and any other suitable types of memory.

本发明实施例中的存储器702用于存储各种类型的数据以支持电子设备700的操作。这些数据的示例包括:用于在电子设备700上操作的任何计算机程序,如应用程序7022。实现本发明实施例方法的程序可以包含在应用程序7022中。The memory 702 in the embodiment of the present invention is used to store various types of data to support the operation of the electronic device 700 . Examples of such data include: any computer programs for operating on electronic device 700 , such as application programs 7022 . The program for realizing the method of the embodiment of the present invention may be included in the application program 7022 .

上述本发明实施例揭示的方法可以应用于处理器701中,或者由处理器701实现。处理器701可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器701中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器701可以是通用处理器、数字信号处理器(DSP,Digital Signal Processor),或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器701可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本发明实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器702,处理器701读取存储器702中的信息,结合其硬件完成前述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 701 or implemented by the processor 701 . The processor 701 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 701 or instructions in the form of software. The aforementioned processor 701 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. The processor 701 may implement or execute various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, and the storage medium is located in the memory 702. The processor 701 reads the information in the memory 702, and completes the steps of the foregoing method in combination with its hardware.

在示例性实施例中,电子设备700可以被一个或多个应用专用集成电路(ASIC,Application Specific Integrated Circuit)、DSP、可编程逻辑器件(PLD,ProgrammableLogic Device)、复杂可编程逻辑器件(CPLD,Complex Programmable Logic Device)、FPGA、通用处理器、控制器、MCU、MPU、或其他电子元件实现,用于执行前述方法。In an exemplary embodiment, the electronic device 700 may be implemented by one or more Application Specific Integrated Circuit (ASIC, Application Specific Integrated Circuit), DSP, Programmable Logic Device (PLD, ProgrammableLogic Device), Complex Programmable Logic Device (CPLD, Complex Programmable Logic Device), FPGA, general-purpose processor, controller, MCU, MPU, or other electronic components to implement the aforementioned method.

本申请实施例还提供了一种存储介质,用于存储计算机程序。The embodiment of the present application also provides a storage medium for storing computer programs.

可选的,该存储介质可应用于本申请实施例中的终端设备,并且该计算机程序使得计算机执行本申请实施例的各个方法中的相应流程,为了简洁,在此不再赘述。Optionally, the storage medium may be applied to the terminal device in the embodiment of the present application, and the computer program causes the computer to execute the corresponding process in each method of the embodiment of the present application, for the sake of brevity, details are not repeated here.

可选的,该存储介质可应用于本申请实施例中的网络设备,并且该计算机程序使得计算机执行本申请实施例的各个方法中的相应流程,为了简洁,在此不再赘述。Optionally, the storage medium may be applied to the network device in the embodiment of the present application, and the computer program causes the computer to execute the corresponding processes in the methods of the embodiments of the present application, and details are not repeated here for brevity.

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

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

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention, and is not used to limit the protection scope of the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the within the protection scope of the present invention.

Claims (72)

1. A method of packet processing, the method comprising:
the first sending electronic device sets a PDCP sequence number SN and/or a state variable of a PDCP data packet based on the first information;
the first information is a pre-agreed PDCP SN and/or a PDCP SN distribution rule; or, the first information is a PDCP SN and/or a PDCP SN allocation rule sent by the first sending electronic device to the second sending electronic device and/or the receiving electronic device.
2. The method of claim 1, wherein the method further comprises:
the first transmitting electronic device transmits PDCP SNs and/or PDCP SN allocation rules to the second transmitting electronic device.
3. The method according to claim 1 or 2, wherein the method further comprises:
the first transmitting electronic device transmits PDCP SNs and/or PDCP SN assignment rules to the receiving electronic device.
4. The method of claim 1 or 2, wherein the PDCP SN and/or PDCP SN allocation rule is determined by the first transmitting electronic device, or the PDCP SN is determined by the second transmitting electronic device, or the PDCP SN is determined by both the first transmitting electronic device and the second transmitting electronic device.
5. The method according to claim 1 or 2, wherein the PDCP SN and/or PDCP SN allocation rule is determined according to at least one of:
the method comprises the following steps of service characteristics, qoS (quality of service) requirements, scheduling conditions, SPS (semi-persistent scheduling) configuration information, CG configuration information, activated carrier information, activated SPS information, activated CG information, traffic volume, service type, cell load, cell interference and cell channel quality.
6. The method according to claim 1 or 2, wherein the PDCP SNs and/or PDCP SN allocation rules are transmitted by at least one of:
radio Resource Control (RRC) signaling, a Media Access Control (MAC) control unit (CE), a physical layer signaling bearer and a PDCP packet.
7. The method according to claim 6, wherein, when the PDCP packet is a PDCP control PDU,
the PDCP control PDU carries the information of the PDCP SN and/or carries the indication of the control information type of the contained PDCP SN information;
and/or, carrying the PDCP SN maintained together in the PDCP control PDU;
and/or, carrying at least one of a PDCP SN Bitmap in the PDCP control PDU, a starting SN corresponding to the PDCP SN Bitmap, and a terminating SN corresponding to the PDCP SN Bitmap;
and/or, the PDCP control PDU carries at least one of a PDCP SN pattern, a starting SN corresponding to the PDCP SN pattern, and a terminating SN corresponding to the PDCP SN pattern;
and/or, carrying a starting SN and a terminating SN in the PDCP SN commonly maintained in the PDCP control PDU;
and/or, carrying the number of the PDCP SNs which are jointly maintained in the PDCP control PDU;
and/or, carrying the length of the PDCP SN Bitmap which is commonly maintained in the PDCP control PDU;
and/or, carrying the length or period of the PDCP SN pattern which is commonly maintained in the PDCP control PDU;
and/or, carrying the jointly maintained PDCP SN list in the PDCP control PDU.
8. The method according to claim 1 or 2, wherein the setting of the PDCP SN and/or the status variable of the PDCP data packet comprises at least one of:
setting a value of TX-NEXT and/or an initial value of TX-NEXT based on the first information;
associating a COUNT value COUNT of the PDCP data packet with a value of TX-NEXT;
setting the PDCP SN of the PDCP data packet as a value obtained by utilizing the function of TX-NEXT to the PDCP SN size to perform modular operation;
setting a value of TX-NEXT to a NEXT PDCP SN adjacent to a current PDCP SN based on the first information.
9. The method according to claim 1 or 2, wherein the PDCP SN comprises: a first PDCP SN and a second PDCP SN;
the first PDCP SN is used for at least one of: the first sending electronic equipment carries out the grouping and transmission of PDCP data packets, sets the PDCP SN and/or state variable of the PDCP data packets, and the receiving electronic equipment carries out the PDCP data packet processing in the PDCP entity;
the second PDCP SN is used for receiving the PDCP data packet processing between the PDCP entities of the electronic equipment.
10. The method of claim 9, wherein,
the first PDCP SN and the second PDCP SN are carried in the PDCP data packet;
or, the first PDCP SN is carried in a header of the PDCP data packet, and the second PDCP SN is carried in the header of the PDCP data packet or in the PDCP data packet;
or the second PDCP SN is carried in a packet header of the PDCP data packet, and the first PDCP SN is carried in the packet header of the PDCP data packet or in the PDCP data packet;
or, the first PDCP SN is carried in a header of the PDCP data packet or in a data packet, and the second PDCP SN is sent through a dedicated signaling;
or, the second PDCP SN is carried in a header of the PDCP data packet or in a data packet, and the first PDCP SN is sent through a dedicated signaling;
alternatively, the first PDCP SN and the second PDCP SN are transmitted through dedicated signaling.
11. The method as claimed in claim 9, wherein the PDCP data packet further includes first indication information indicating at least one of:
the type of the PDCP data packet, the format of the PDCP data packet and PDCP SN information carried by the PDCP data packet.
12. The method as claimed in claim 9, wherein the PDCP data packet further comprises second indication information indicating at least one of:
whether the PDCP data packet contains the first PDCP SN, whether the PDCP data packet contains the second PDCP SN, whether the first PDCP SN is in the packet head or the data packet of the PDCP data packet, whether the second PDCP SN is in the packet head or the data packet of the PDCP data packet, and the precedence order of the second PDCP SN and the first PDCP SN.
13. The method of claim 9, wherein the method further comprises: the first sending electronic device determines at least one of the following information according to the indication or predefined information of the network device:
the type of the PDCP data packet, the format of the PDCP data packet, the carried PDCP SN information of the PDCP data packet, whether the PDCP data packet contains the first PDCP SN, whether the PDCP data packet contains the second PDCP SN, whether the first PDCP SN is in the header or the data packet of the PDCP data packet, whether the second PDCP SN is in the header or the data packet of the PDCP data packet, and the sequence of the second PDCP SN and the first PDCP SN.
14. The method as claimed in claim 9, wherein the setting of the state variable of the PDCP packet comprises at least one of:
setting a value of TX-NEXT based on the first PDCP SN;
setting an initial value of TX-NEXT based on the first PDCP SN, wherein the initial value can be 0;
associating a COUNT value COUNT of the PDCP data packet with a value of TX-NEXT;
setting the PDCP SN of the PDCP data packet as a value obtained by utilizing TX-NEXT to perform modulus on the size of the PDCP SN;
setting a value of TX-NEXT to TX-NEXT plus 1 based on the first PDCP SN.
15. The method according to claim 1 or 2, wherein the first transmitting electronic device periodically transmits PDCP SNs and/or PDCP SN allocation rules;
alternatively, the first transmitting electronic device transmits the PDCP SNs and/or PDCP SN allocation rules based on an event.
16. The method of claim 15, wherein the event comprises at least one of:
PDCP SN pattern change and PDCP SN allocation rule change.
17. The method of claim 1 or 2,
the first sending electronic device is a source network device, and the receiving electronic device is a terminal device;
or the first sending electronic device is a source network device, and the receiving electronic device is a target network device;
or the first sending electronic device is a source network device, the second sending electronic device is a target network device, and the receiving electronic device is a terminal device;
or, the first sending electronic device is a source network device, the second sending electronic device is a target network device, and the receiving electronic device is a first receiving entity and/or a second receiving entity in the terminal device;
or, the first sending electronic device is a target network device, and the receiving electronic device is a terminal device;
or the first sending electronic device is a target network device, the second sending electronic device is a source network device, and the receiving electronic device is a terminal device;
or, the first sending electronic device is a target network device, the second sending electronic device is a source network device, and the receiving electronic device is a first receiving entity and/or a second receiving entity in the terminal device;
or, the first sending electronic device is a target network device, and the receiving electronic device is a source network device;
or, the first sending electronic device is a terminal device, and the receiving electronic device is a target network device and/or a source network device;
or the first sending electronic device is a first sending entity in the terminal device, and the receiving electronic device is a first receiving entity in the terminal device;
or, the first sending electronic device is a first sending entity in the terminal device, the second sending electronic device is a second sending entity in the terminal device, and the receiving electronic device is a target network device and/or a source network device.
18. The method of claim 1 or 2, wherein the pre-agreed PDCP SNs, or PDCP SNs transmitted by the first transmitting electronic device to the second transmitting electronic device and/or the receiving electronic device, comprise at least one of:
PDCP SN、PDCP SN list、PDCP SN Bitmap、PDCP SN pattern。
19. a method of packet processing, the method comprising:
receiving packet data convergence protocol sequence numbers (PDCP SN) and/or PDCP SN allocation rules of at least two sending electronic devices by a receiving electronic device;
the receiving electronic equipment processes the PDCP data packet according to the PDCP SN and/or the PDCP SN distribution rule;
wherein the PDCP SN and/or PDCP SN assignment rule of the transmitting electronic device comprises: a first PDCP SN and a second PDCP SN;
the first PDCP SN is used for at least one of: the sending electronic equipment performs packet packing and transmission of the PDCP data packet, sets the PDCP SN and/or state variable of the PDCP data packet, and the receiving electronic equipment performs PDCP data packet processing in the PDCP entity;
the second PDCP SN is used for the receiving electronic device to perform PDCP packet processing between PDCP entities.
20. The method of claim 19, wherein the receiving electronic device processes PDCP data packets according to the PDCP SN, comprising:
the receiving electronic equipment carries out the treatment in a PDCP entity on the PDCP data packet according to the first PDCP SN;
and/or the receiving electronic equipment carries out the treatment among PDCP entities on the PDCP data packet according to the second PDCP SN.
21. The method of claim 20, wherein the first PDCP SN and the second PDCP SN are carried within the PDCP data packet;
or the first PDCP SN is carried in a packet header of the PDCP data packet, and the second PDCP SN is carried in the packet header of the PDCP data packet or in the PDCP data packet;
or, the second PDCP SN is carried in a header of the PDCP data packet, and the first PDCP SN is carried in the header of the PDCP data packet or in the PDCP data packet;
or, the first PDCP SN is carried in a header of the PDCP data packet or in a data packet, and the second PDCP SN is transmitted through a dedicated signaling;
or, the second PDCP SN is carried in a header of the PDCP data packet or in a data packet, and the first PDCP SN is sent through a dedicated signaling;
alternatively, the first PDCP SN and the second PDCP SN are transmitted through dedicated signaling.
22. The method as claimed in claim 20 or 21, wherein the PDCP data packet further comprises first indication information indicating at least one of:
the type of the PDCP data packet, the format of the PDCP data packet and PDCP SN information carried by the PDCP data packet.
23. The method as claimed in claim 20 or 21, wherein the PDCP data packet further comprises second indication information indicating at least one of:
whether the PDCP data packet contains the first PDCP SN, whether the PDCP data packet contains the second PDCP SN, whether the first PDCP SN is in the packet head or the data packet of the PDCP data packet, whether the second PDCP SN is in the packet head or the data packet of the PDCP data packet, and the precedence order of the second PDCP SN and the first PDCP SN.
24. The method of any of claims 19 to 21, wherein the method further comprises:
the receiving electronic device replaces the first PDCP SN with the second PDCP SN.
25. The method of any of claims 19 to 21, wherein the method further comprises:
the receiving electronic device receives PDCP data packets and/or PDCP control PDUs.
26. The method according to any of claims 19 to 21, wherein whether the receiving electronic device handles the PDCP data packet within and/or between PDCP entities is determined by a pre-set, or a network device configuration, or by the receiving electronic device based on at least one of the PDCP SNs and a status variable.
27. The method as claimed in claim 26, wherein in case that the t-reordering timer expires, the receiving electronic device determines that the PDCP data packets are delivered in-order to a higher layer;
and/or, in the case of RCVD-COUNT = RX-DELIV, the receiving electronics determines in-order delivery of the PDCP packets to higher layers.
28. The method according to any of claims 19 to 21, wherein the PDCP SNs and/or PDCP SN assignment rules of the at least two transmitting electronic devices are transmitted by any one transmitting electronic device to the receiving electronic device;
or, the PDCP SNs and/or PDCP SN assignment rules of said at least two sending electronic devices are sent by a designated sending electronic device to said receiving electronic device;
or, the PDCP SNs and/or PDCP SN assignment rules of said at least two sending electronic devices are both sent by each sending electronic device to said receiving electronic device;
alternatively, the PDCP SNs and/or PDCP SN assignment rules of each transmitting electronic device are transmitted by the transmitting electronic device itself and/or other transmitting electronic devices to the receiving electronic device.
29. The method according to any of claims 19 to 21, wherein the PDCP SNs and/or PDCP SN assignment rules of the at least two transmitting electronic devices are determined by any one transmitting electronic device;
or, the PDCP SNs and/or PDCP SN assignment rules of said at least two transmitting electronic devices are determined by a designated one of the transmitting electronic devices;
alternatively, the PDCP SNs and/or PDCP SN assignment rules of said at least two transmitting electronic devices are jointly determined by said at least two transmitting electronic devices.
30. The method according to any of claims 19 to 21, wherein the PDCP SN and/or PDCP SN allocation rule is determined according to at least one of:
the method comprises the following steps of service characteristics, qoS requirements, scheduling conditions, SPS configuration information, configuration authorization CG configuration information, activated carrier information, activated SPS information, activated CG information, traffic volume size, service type, cell load, cell interference and cell channel quality.
31. The method according to any of claims 19 to 21, wherein the PDCP SN and/or PDCP SN allocation rule is received by at least one of:
radio Resource Control (RRC) signaling, a Media Access Control (MAC) control unit (CE), physical layer signaling bearer and a Packet Data Convergence Protocol (PDCP) packet.
32. The method according to claim 31, wherein, when the PDCP packet is a PDCP control PDU,
the PDCP control PDU carries the information of the PDCP SN and/or carries the indication of the control information type of the contained PDCP SN information;
and/or, carrying the PDCP SN maintained together in the PDCP control PDU;
and/or, carrying at least one of a PDCP SN Bitmap in the PDCP control PDU, a starting SN corresponding to the PDCP SN Bitmap, and a terminating SN corresponding to the PDCP SN Bitmap;
and/or, the PDCP control PDU carries at least one of a PDCP SN pattern, a starting SN corresponding to the PDCP SN pattern, and a terminating SN corresponding to the PDCP SN pattern;
and/or, carrying a starting SN and a terminating SN in the PDCP SN commonly maintained in the PDCP control PDU;
and/or, carrying the number of the PDCP SNs which are maintained together in the PDCP control PDU;
and/or, carrying the length of the PDCP SN Bitmap which is commonly maintained in the PDCP control PDU;
and/or, carrying the length or period of the PDCP SN pattern which is commonly maintained in the PDCP control PDU;
and/or, carrying the jointly maintained PDCP SN list in the PDCP control PDU.
33. The method of any one of claims 19 to 21,
the receiving electronic equipment is terminal equipment, and the sending electronic equipment is source network equipment and/or target network equipment;
or, the receiving electronic device is a first receiving entity in the terminal device, and the sending electronic device is a first sending entity in the terminal device;
or, the receiving electronic device is a source network device and/or a target network device, and the sending electronic device is a terminal device;
or, the receiving electronic device is a target network device, and the sending electronic device is a source network device;
or, the receiving electronic device is a source network device, and the sending electronic device is a target network device;
or, the receiving electronic device is a source network device, and the sending electronic device is a first sending entity and/or a second sending entity in the terminal device;
or, the receiving electronic device is a target network device, and the sending electronic device is a first sending entity and/or a second sending entity in the terminal device.
34. The method according to any of claims 19 to 21, wherein the PDCP sequence numbers, SN, of the at least two transmitting electronic devices comprise at least one of:
PDCP SN、PDCP SN list、PDCP SN Bitmap、PDCP SN pattern。
35. a transmitting electronic device, the transmitting electronic device comprising:
the first processing unit is configured to set a PDCP sequence number SN and/or a state variable of a PDCP data packet based on the first information;
the first information is a pre-agreed PDCP SN and/or a PDCP SN distribution rule; or, the first information is the PDCP SN and/or the PDCP SN assignment rule sent by the sending electronic device to the second sending electronic device and/or the receiving electronic device.
36. The transmitting electronic device of claim 35, wherein the transmitting electronic device further comprises:
a first sending unit configured to send PDCP SNs and/or PDCP SN allocation rules to said second sending electronic device.
37. The transmitting electronic device of claim 35 or 36, wherein the transmitting electronic device further comprises:
a second sending unit configured to send PDCP SNs and/or PDCP SN assignment rules to the receiving electronic device.
38. The transmitting electronic device of claim 35 or 36, wherein the PDCP SN and/or PDCP SN allocation rule is determined by the transmitting electronic device, or the PDCP SN is determined by the second transmitting electronic device, or the PDCP SN is determined by both the transmitting electronic device and the second transmitting electronic device.
39. The transmitting electronic device of claim 35 or 36, wherein the PDCP SN and/or PDCP SN allocation rule is determined according to at least one of:
the method comprises the following steps of service characteristics, qoS requirements, scheduling conditions, SPS configuration information, configuration authorization CG configuration information, activated carrier information, activated SPS information, activated CG information, traffic volume size, service type, cell load, cell interference and cell channel quality.
40. The transmitting electronic device of claim 35 or 36, wherein the PDCP SNs and/or PDCP SN assignment rules are transmitted by at least one of:
radio Resource Control (RRC) signaling, a Media Access Control (MAC) control unit (CE), a physical layer signaling bearer and a PDCP packet.
41. The transmitting electronic device of claim 40, wherein, when the PDCP packet is a PDCP control PDU,
the PDCP control PDU carries the information of the PDCP SN and/or carries the indication of the control information type of the contained PDCP SN information;
and/or, carrying the PDCP SN maintained together in the PDCP control PDU;
and/or, carrying at least one of a PDCP SN Bitmap in the PDCP control PDU, a starting SN corresponding to the PDCP SN Bitmap, and a terminating SN corresponding to the PDCP SN Bitmap;
and/or, the PDCP control PDU carries at least one of a PDCP SN pattern, a starting SN corresponding to the PDCP SN pattern, and a terminating SN corresponding to the PDCP SN pattern;
and/or, carrying a starting SN and a terminating SN in the PDCP SN commonly maintained in the PDCP control PDU;
and/or, carrying the number of the PDCP SNs which are maintained together in the PDCP control PDU;
and/or, carrying the length of the PDCP SN Bitmap which is commonly maintained in the PDCP control PDU;
and/or, carrying the length or period of the PDCP SN pattern which is commonly maintained in the PDCP control PDU;
and/or, carrying the jointly maintained PDCP SN list in the PDCP control PDU.
42. The transmitting electronic device of claim 35 or 36, wherein the first processing unit is configured to perform at least one of:
setting a value of TX-NEXT and/or an initial value of TX-NEXT based on the first information;
associating a COUNT value COUNT of the PDCP data packet with a value of TX-NEXT;
setting the PDCP SN of the PDCP data packet to be a value obtained by utilizing TX-NEXT to perform modulus on a function of the PDCP SN size;
setting a value of TX-NEXT as a NEXT PDCP SN adjacent to a current PDCP SN based on the first information.
43. The transmitting electronic device of claim 35 or 36, wherein the PDCP SN comprises: a first PDCP SN and a second PDCP SN;
the first PDCP SN is used for at least one of: the sending electronic equipment performs packet packing and transmission of PDCP data packets, sets PDCP SNs and/or state variables of the PDCP data packets, and the receiving electronic equipment performs PDCP data packet processing in a PDCP entity;
the second PDCP SN is used for receiving the PDCP data packet processing between the PDCP entities of the electronic equipment.
44. The transmitting electronic device of claim 43,
the first PDCP SN and the second PDCP SN are carried in the PDCP data packet;
or, the first PDCP SN is carried in a header of the PDCP data packet, and the second PDCP SN is carried in the header of the PDCP data packet or in the PDCP data packet;
or the second PDCP SN is carried in a packet header of the PDCP data packet, and the first PDCP SN is carried in the packet header of the PDCP data packet or in the PDCP data packet;
or, the first PDCP SN is carried in a header of the PDCP data packet or in a data packet, and the second PDCP SN is transmitted through a dedicated signaling;
or, the second PDCP SN is carried in a header of the PDCP data packet or in a data packet, and the first PDCP SN is transmitted through a dedicated signaling;
alternatively, the first PDCP SN and the second PDCP SN are transmitted through dedicated signaling.
45. The transmitting electronic device as claimed in claim 43, wherein the PDCP packet further comprises first indication information indicating at least one of:
the type of the PDCP data packet, the format of the PDCP data packet and PDCP SN information carried by the PDCP data packet.
46. The transmitting electronic device as claimed in claim 43, wherein the PDCP packet further comprises second indication information indicating at least one of:
whether the PDCP data packet contains the first PDCP SN, whether the PDCP data packet contains the second PDCP SN, whether the first PDCP SN is in the packet head or the data packet of the PDCP data packet, whether the second PDCP SN is in the packet head or the data packet of the PDCP data packet, and the precedence order of the second PDCP SN and the first PDCP SN.
47. The transmitting electronic device of claim 43, wherein the first processing unit is further configured to determine, from the indication of the network device or predefined information, at least one of:
the type of the PDCP data packet, the format of the PDCP data packet, the PDCP SN information carried by the PDCP data packet, whether the PDCP data packet contains the first PDCP SN, whether the PDCP data packet contains the second PDCP SN, whether the first PDCP SN is in the packet head or the data packet of the PDCP data packet, whether the second PDCP SN is in the packet head or the data packet of the PDCP data packet, and the precedence order of the second PDCP SN and the first PDCP SN.
48. The transmitting electronic device of claim 43, wherein the first processing unit is configured to perform at least one of:
setting a value of TX-NEXT based on the first PDCP SN;
setting an initial value of TX-NEXT based on the first PDCP SN, the initial value may be 0;
associating a COUNT value COUNT of the PDCP data packet with a value of TX-NEXT;
setting the PDCP SN of the PDCP data packet as a value obtained by utilizing TX-NEXT to perform modulus on the size of the PDCP SN;
setting a value of TX-NEXT to TX-NEXT plus 1 based on the first PDCP SN.
49. The transmitting electronic device of claim 35 or 36, wherein the PDCP SNs and/or PDCP SN allocation rules are transmitted periodically or based on an event.
50. The transmitting electronic device of claim 49, wherein the event comprises at least one of:
PDCP SN pattern change and PDCP SN allocation rule change.
51. The transmitting electronic device of claim 35 or 36, wherein the transmitting electronic device is a source network device and the receiving electronic device is a terminal device;
or, the sending electronic device is a source network device, and the receiving electronic device is a target network device;
or, the sending electronic device is a source network device, the second sending electronic device is a target network device, and the receiving electronic device is a terminal device;
or, the sending electronic device is a source network device, the second sending electronic device is a target network device, and the receiving electronic device is a first receiving entity and/or a second receiving entity in the terminal device;
or, the sending electronic device is a target network device, and the receiving electronic device is a terminal device;
or, the sending electronic device is a target network device, the second sending electronic device is a source network device, and the receiving electronic device is a terminal device;
or, the sending electronic device is a target network device, the second sending electronic device is a source network device, and the receiving electronic device is a first receiving entity and/or a second receiving entity in the terminal device;
or, the sending electronic device is a target network device, and the receiving electronic device is a source network device;
or, the sending electronic device is a terminal device, and the receiving electronic device is a target network device and/or a source network device;
or, the sending electronic device is a first sending entity in the terminal device, and the receiving electronic device is a first receiving entity in the terminal device;
or, the sending electronic device is a first sending entity in the terminal device, the second sending electronic device is a second sending entity in the terminal device, and the receiving electronic devices are a target network device and a source network device.
52. The transmitting electronic device of claim 35 or 36, wherein the pre-agreed PDCP SNs, or PDCP SNs transmitted by the transmitting electronic device to the second transmitting electronic device and/or the receiving electronic device, comprise at least one of:
PDCP SN、PDCP SN list、PDCP SN Bitmap、PDCP SN pattern。
53. a receiving electronic device, the receiving electronic device comprising:
a receiving unit configured to receive packet data convergence protocol sequence numbers, PDCP SNs, and/or PDCP SN assignment rules of at least two transmitting electronic devices;
a second processing unit, configured to process PDCP data packet according to the PDCP SN and/or PDCP SN allocation rule;
wherein the PDCP SN and/or PDCP SN assignment rule of the transmitting electronic device comprises: a first PDCP SN and a second PDCP SN;
the first PDCP SN is used for at least one of: the sending electronic equipment performs packet packing and transmission of PDCP data packets, sets PDCP SNs and/or state variables of the PDCP data packets, and the receiving electronic equipment performs PDCP data packet processing in a PDCP entity;
the second PDCP SN is used for the receiving electronic device to perform PDCP packet processing between PDCP entities.
54. The receiving electronic device of claim 53, wherein the second processing unit is configured to perform intra-PDCP entity processing on the PDCP data packets according to the first PDCP SN;
and/or, according to the second PDCP SN, processing between PDCP entities is carried out on the PDCP data packet.
55. The receiving electronic device as in claim 54, wherein the first PDCP SN and the second PDCP SN are carried within the PDCP data packet;
or the first PDCP SN is carried in a packet header of the PDCP data packet, and the second PDCP SN is carried in the packet header of the PDCP data packet or in the PDCP data packet;
or the second PDCP SN is carried in a packet header of the PDCP data packet, and the first PDCP SN is carried in the packet header of the PDCP data packet or in the PDCP data packet;
or, the first PDCP SN is carried in a header of the PDCP data packet or in a data packet, and the second PDCP SN is sent through a dedicated signaling;
or, the second PDCP SN is carried in a header of the PDCP data packet or in a data packet, and the first PDCP SN is sent through a dedicated signaling;
alternatively, the first PDCP SN and the second PDCP SN are transmitted through dedicated signaling.
56. The receiving electronic device of claim 54 or 55, wherein the PDCP data packet further comprises first indication information indicating at least one of:
the type of the PDCP data packet, the format of the PDCP data packet and PDCP SN information carried by the PDCP data packet.
57. The receiving electronic device as in claim 54 or 55, wherein the PDCP data packet further comprises second indication information indicating at least one of:
whether the PDCP data packet contains the first PDCP SN, whether the PDCP data packet contains the second PDCP SN, whether the first PDCP SN is in the packet head or the data packet of the PDCP data packet, whether the second PDCP SN is in the packet head or the data packet of the PDCP data packet, and the precedence order of the second PDCP SN and the first PDCP SN.
58. The receiving electronic device of any of claims 53 to 55, wherein the second processing unit is further configured to replace the first PDCP SN with the second PDCP SN.
59. The receiving electronic device according to any of claims 53 to 55, wherein the receiving unit is further configured to receive PDCP data packets and/or PDCP control PDUs.
60. The receiving electronic device of any of claims 53-55, wherein whether the receiving electronic device processes the PDCP data packets within and/or between PDCP entities is determined by a pre-set, or a network device configuration, or by the second processing unit based on at least one of the PDCP SNs and a status variable.
61. The receiving electronic device of claim 60, wherein, in case of a t-reordering timer expiring, the second processing unit is configured to determine in-order delivery of the PDCP data packets to higher layers;
and/or, in case RCVD-COUNT = RX-DELIV, the second processing unit is configured to determine in-order delivery of the PDCP packet to a higher layer.
62. The receiving electronic device according to any of claims 53 to 55, wherein the PDCP SNs and/or PDCP SN assignment rules of the at least two transmitting electronic devices are transmitted by any one transmitting electronic device to the receiving electronic device;
or, the PDCP SNs and/or PDCP SN assignment rules of said at least two sending electronic devices are sent by a designated sending electronic device to said receiving electronic device;
or, the PDCP SNs and/or PDCP SN assignment rules of the at least two transmitting electronic devices are both transmitted by each transmitting electronic device to the receiving electronic device;
alternatively, the PDCP SN and/or PDCP SN assignment rule of each transmitting electronic device is transmitted by the transmitting electronic device itself and/or other transmitting electronic devices to the receiving electronic device.
63. The receiving electronic device according to any of claims 53 to 55, wherein the PDCP SNs and/or PDCP SN assignment rules of the at least two transmitting electronic devices are determined by any one of the transmitting electronic devices;
or, the PDCP SNs and/or PDCP SN assignment rules of said at least two transmitting electronic devices are determined by a designated one of the transmitting electronic devices;
alternatively, the PDCP SNs and/or PDCP SN assignment rules of the at least two transmitting electronic devices are jointly determined by the at least two transmitting electronic devices.
64. The receiving electronic device according to any of claims 53 to 55, wherein the PDCP SN and/or PDCP SN allocation rule is determined according to at least one of:
traffic characteristics, qoS requirements, scheduling conditions, SPS configuration information, configuration authorization CG configuration information, activated carrier information, activated SPS information, activated CG information, traffic size, traffic type, cell load, cell interference and cell channel quality.
65. The receiving electronic device of any of claims 53 to 55, wherein the PDCP SN and/or PDCP SN allocation rule is received by at least one of:
radio Resource Control (RRC) signaling, a Media Access Control (MAC) control unit (CE), a physical layer signaling bearer and a PDCP packet.
66. The receiving electronic device as claimed in claim 65, wherein, when the PDCP packet is a PDCP control PDU,
the PDCP control PDU carries the information of the PDCP SN and/or carries the indication of the control information type of the contained PDCP SN information;
and/or, carrying the PDCP SN maintained together in the PDCP control PDU;
and/or, carrying at least one of a PDCP SN Bitmap in the PDCP control PDU, a starting SN corresponding to the PDCP SN Bitmap, and a terminating SN corresponding to the PDCP SN Bitmap;
and/or, carrying at least one of a PDCP SN pattern, a starting SN corresponding to the PDCP SN pattern, and a terminating SN corresponding to the PDCP SN pattern in the PDCP control PDU;
and/or, carrying a starting SN and a terminating SN in the PDCP SN commonly maintained in the PDCP control PDU;
and/or, carrying the number of the PDCP SNs which are jointly maintained in the PDCP control PDU;
and/or, carrying the length of the PDCP SN Bitmap which is commonly maintained in the PDCP control PDU;
and/or, carrying the length or period of the PDCP SN pattern which is commonly maintained in the PDCP control PDU;
and/or, carrying the jointly maintained PDCP SN list in the PDCP control PDU.
67. The receiving electronic device of any of claims 53 to 55, wherein the receiving electronic device is a terminal device and the sending electronic device is a source network device and/or a target network device;
or, the receiving electronic device is a first receiving entity in the terminal device, and the sending electronic device is a first sending entity in the terminal device;
or, the receiving electronic device is a source network device and/or a target network device, and the sending electronic device is a terminal device;
or, the receiving electronic device is a target network device, and the sending electronic device is a source network device;
or, the receiving electronic device is a source network device, and the sending electronic device is a target network device;
or, the receiving electronic device is a source network device, and the sending electronic device is a first sending entity and/or a second sending entity in the terminal device;
or, the receiving electronic device is a target network device, and the sending electronic device is a first sending entity and/or a second sending entity in the terminal device.
68. The receiving electronic device of any of claims 53 to 55, wherein the PDCP sequence numbers, SNs, of the at least two transmitting electronic devices comprise at least one of:
PDCP SN、PDCP SN list、PDCP SN Bitmap、PDCP SN pattern。
69. a transmitting electronic device comprising a processor and a memory for storing a computer program capable of running on the processor, wherein,
the processor is configured to execute the steps of the data packet processing method according to any one of claims 1 to 18 when running the computer program.
70. A receiving electronic device comprising a processor and a memory for storing a computer program capable of running on the processor, wherein,
the processor is adapted to perform the steps of the data packet processing method of any of claims 19 to 34 when running the computer program.
71. A storage medium storing an executable program which, when executed by a processor, implements the packet processing method of any one of claims 1 to 18.
72. A storage medium storing an executable program which, when executed by a processor, implements the packet processing method of any one of claims 19 to 34.
CN201980064919.8A 2019-06-25 2019-06-25 A data packet processing method, device and storage medium Active CN112789839B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/092713 WO2020258018A1 (en) 2019-06-25 2019-06-25 Data packet processing method and device, and storage medium

Publications (2)

Publication Number Publication Date
CN112789839A CN112789839A (en) 2021-05-11
CN112789839B true CN112789839B (en) 2023-01-24

Family

ID=74061159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980064919.8A Active CN112789839B (en) 2019-06-25 2019-06-25 A data packet processing method, device and storage medium

Country Status (2)

Country Link
CN (1) CN112789839B (en)
WO (1) WO2020258018A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11778683B2 (en) * 2020-10-21 2023-10-03 Qualcomm Incorporated Management of one or more state variables associated with a communication window
CN115942301A (en) * 2021-09-18 2023-04-07 维沃移动通信有限公司 Method and equipment for indicating state variable of multicast service
CN119603784A (en) * 2023-09-04 2025-03-11 展讯通信(上海)有限公司 Data packet processing method and communication device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101400156A (en) * 2007-09-29 2009-04-01 华为技术有限公司 Downlink and uplink data packet forwarding method based on S1 switching
CN101500289A (en) * 2008-01-29 2009-08-05 华为技术有限公司 Downlink data packet forwarding method, system and evolution base station
CN103533586A (en) * 2012-07-03 2014-01-22 电信科学技术研究院 Method and apparatus for signaling interaction and layer reconstruction in switching process
CN107438273A (en) * 2016-05-26 2017-12-05 中兴通讯股份有限公司 The determination method and device of data processing state in carrying transfer

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8477719B2 (en) * 2007-10-01 2013-07-02 Qualcomm Incorporated Systems and methods for in-order delivery in downlink during handover
CN109151918B (en) * 2017-06-13 2020-09-04 华为技术有限公司 Switching control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101400156A (en) * 2007-09-29 2009-04-01 华为技术有限公司 Downlink and uplink data packet forwarding method based on S1 switching
CN101500289A (en) * 2008-01-29 2009-08-05 华为技术有限公司 Downlink data packet forwarding method, system and evolution base station
CN103533586A (en) * 2012-07-03 2014-01-22 电信科学技术研究院 Method and apparatus for signaling interaction and layer reconstruction in switching process
CN107438273A (en) * 2016-05-26 2017-12-05 中兴通讯股份有限公司 The determination method and device of data processing state in carrying transfer

Also Published As

Publication number Publication date
CN112789839A (en) 2021-05-11
WO2020258018A1 (en) 2020-12-30

Similar Documents

Publication Publication Date Title
US12137384B2 (en) Handover method and device
US9949245B2 (en) Method, base station, and user equipment for implementing carrier aggregation
CN111787580B (en) A data stream processing method, device and storage medium
EP3664507B1 (en) Communication methods for a master base station and a terminal
CN104113875B (en) A kind of cell switching method, device and equipment
CN112956236B (en) Method and device, network device, and terminal for processing security information during handover
CN114258715B (en) A switching processing method and network device
CN112789839B (en) A data packet processing method, device and storage medium
US20240259888A1 (en) Data transmission method and communication apparatus
WO2020056880A1 (en) Connection release method, data processing method, device, and storage medium
US20250088922A1 (en) Cell handover method and apparatus, terminal device, and network device
WO2020024301A1 (en) Method and device for ensuring data transmission reliability, and network apparatus
CN113692755B (en) Uplink retransmission processing method, electronic equipment and storage medium
US11483735B2 (en) Information transmission method and apparatus
CN112703815B (en) A data packet reordering method, electronic equipment and storage medium
CN112789889B (en) A radio resource control message processing method, device and storage medium
KR20150110259A (en) Method and apparatus for transmitting/receiving signal in mobilre communication system supporting a plurality of carriers
WO2025012053A1 (en) Methods, communications devices, and infrastructure equipment
WO2025012055A1 (en) Methods and central units of wireless communications networks
CN118283699A (en) Communication method, communication device and computer readable storage medium
WO2021051384A1 (en) Handover processing method and network device

Legal Events

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