+

CN110691377A - Sequence identification determining, sending and receiving method and sending and receiving equipment - Google Patents

Sequence identification determining, sending and receiving method and sending and receiving equipment Download PDF

Info

Publication number
CN110691377A
CN110691377A CN201810735458.XA CN201810735458A CN110691377A CN 110691377 A CN110691377 A CN 110691377A CN 201810735458 A CN201810735458 A CN 201810735458A CN 110691377 A CN110691377 A CN 110691377A
Authority
CN
China
Prior art keywords
sdap
sequence
sdu
pdcp
protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810735458.XA
Other languages
Chinese (zh)
Other versions
CN110691377B (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.)
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, Research Institute of China Mobile Communication Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201810735458.XA priority Critical patent/CN110691377B/en
Publication of CN110691377A publication Critical patent/CN110691377A/en
Application granted granted Critical
Publication of CN110691377B publication Critical patent/CN110691377B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0252Traffic management, e.g. flow control or congestion control per individual bearer or channel
    • H04W28/0263Traffic management, e.g. flow control or congestion control per individual bearer or channel involving mapping traffic to individual bearers or channels, e.g. traffic flow template [TFT]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0268Traffic management, e.g. flow control or congestion control using specific QoS parameters for wireless networks, e.g. QoS class identifier [QCI] or guaranteed bit rate [GBR]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0033Control or signalling for completing the hand-off for data sessions of end-to-end connection with transfer of context information

Landscapes

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

Abstract

本发明提供了一种顺序标识确定、发送和接收方法及发送和接收设备,其中顺序标识确定方法包括:根据分组数据汇聚协议PDCP或者服务数据适配协议SDAP,确定需要发送的多个SDAP服务数据单元SDU的顺序标识,通过确定SDAP SDU的顺序标识,可以基于先进先出顺序保证数据前转后SDAP SDU数据包不丢弃得以重新传输,避免了服务质量流在切换或者重映射时发生数据包乱序的问题。

Figure 201810735458

The present invention provides a sequence identification determination, transmission and reception method and transmission and reception equipment, wherein the sequence identification determination method comprises: determining a plurality of SDAP service data to be transmitted according to the packet data convergence protocol PDCP or the service data adaptation protocol SDAP The sequence identifier of the unit SDU, by determining the sequence identifier of the SDAP SDU, the SDAP SDU data packet can be retransmitted without being discarded after data forwarding based on the first-in-first-out sequence, which avoids packet chaos during switching or remapping of the quality of service flow. sequence problem.

Figure 201810735458

Description

一种顺序标识确定、发送和接收方法及发送和接收设备A kind of sequence identification determination, transmission and reception method and transmission and reception device

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种顺序标识确定、发送和接收方法及发送和接收设备。The present invention relates to the technical field of communications, and in particular, to a method for determining, sending and receiving a sequence identifier, and a sending and receiving device.

背景技术Background technique

在5G中,引入了SDAP(Service Data Adaptation Protocol,服务数据适配协议)协议层,当发生切换时,因为此时的PDCP(Packet Data Convergence Protocol,分组数据汇聚协议)PDU(Protocol Data Unit,协议数据单元)不再是IP(Internet Protocol,互联网协议)包,而是SDAP PDU,所以传统的切换方式中数据前转(Data Forwarding)方案已经不能继续使用。In 5G, the SDAP (Service Data Adaptation Protocol, Service Data Adaptation Protocol) protocol layer is introduced. When a switch occurs, because the PDCP (Packet Data Convergence Protocol, Packet Data Convergence Protocol) PDU (Protocol Data Unit, protocol) The data unit) is no longer an IP (Internet Protocol, Internet Protocol) packet, but an SDAP PDU, so the data forwarding (Data Forwarding) scheme in the traditional switching mode can no longer be used.

当切换或者重映射时,一个QoS Flow(Quality of Service Flow,服务质量流)从源DRB(Data Radio Bearer,数据无线承载)重映射到目标DRB时,为了实现无损的切换,如何保证数据包无丢失的前转,成为一个非常重要的问题。During handover or remapping, when a QoS Flow (Quality of Service Flow) is remapped from the source DRB (Data Radio Bearer, data radio bearer) to the target DRB, in order to achieve lossless handover, how to ensure that the data packets have no Lost forwarding becomes a very important issue.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种顺序标识确定、发送和接收方法及发送和接收设备,以解决现有技术中在发生切换或者重映射时,无法在实现无损切换的同时,保证数据包无丢失的前转的问题。Embodiments of the present invention provide a method for determining, sending and receiving a sequence identifier, and a sending and receiving device, so as to solve the problem that in the prior art, when switching or remapping occurs, it is impossible to achieve lossless switching and ensure no loss of data packets. Turning problem.

本发明实施例提供一种顺序标识确定方法,应用于发送端,包括:An embodiment of the present invention provides a method for determining a sequence identifier, which is applied to a sender and includes:

根据分组数据汇聚协议PDCP或者服务数据适配协议SDAP,确定需要发送的多个SDAP服务数据单元SDU的顺序标识。According to the Packet Data Convergence Protocol PDCP or the Service Data Adaptation Protocol SDAP, the sequence identifiers of the multiple SDAP service data units SDUs to be sent are determined.

优选的,所述顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定;或者所述顺序标识根据SDAP的SN号确定。Preferably, the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent; or the sequence identifier is determined according to the SDAP SN number.

优选的,当所述顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时,根据分组数据汇聚协议PDCP,确定需要发送的多个SDAP服务数据单元SDU的顺序标识的步骤包括:Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent, according to the packet data convergence protocol PDCP, it is determined that the number of data units to be sent is determined. The step of sequence identification of each SDAP service data unit SDU includes:

根据第二SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值,确定第一SDAP SDU的顺序标识;Determine the sequence identifier of the first SDAP SDU according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the second SDAP SDU;

其中所述第一SDAP SDU与所述第二SDAP SDU相邻,所述第一SDAP SDU的顺序标识与所述第二SDAP SDU的顺序标识所表示的次序相邻,且所述第一SDAP SDU位于所述第二SDAP SDU之前。The first SDAP SDU is adjacent to the second SDAP SDU, the sequence identifier of the first SDAP SDU is adjacent to the sequence indicated by the sequence identifier of the second SDAP SDU, and the first SDAP SDU before the second SDAP SDU.

优选的,当所述顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时,根据分组数据汇聚协议PDCP,确定需要发送的多个SDAP服务数据单元SDU的顺序标识的步骤包括:Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent, according to the packet data convergence protocol PDCP, it is determined that the number of data units to be sent is determined. The step of sequence identification of each SDAP service data unit SDU includes:

根据第一SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值定义一个SDAP变量参数;Define an SDAP variable parameter according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the first SDAP SDU;

将定义的SDAP变量参数确定为所述第一SDAP SDU的顺序标识;Determining the defined SDAP variable parameter as the sequence identifier of the first SDAP SDU;

其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

优选的,当所述顺序标识根据SDAP的SN号确定时,根据服务数据适配协议SDAP,确定需要发送的多个SDAP服务数据单元SDU的顺序标识的步骤包括:Preferably, when the sequence identifier is determined according to the SN number of SDAP, according to the service data adaptation protocol SDAP, the step of determining the sequence identifiers of multiple SDAP service data units SDUs to be sent includes:

根据SDAP协议子层内部可以识别的SDAP的SN号,确定SDAP SDU的顺序标识;According to the SN number of SDAP that can be recognized inside the SDAP protocol sublayer, determine the sequence identifier of SDAP SDU;

其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

本发明实施例提供一种顺序标识发送方法,应用于发送端,包括:An embodiment of the present invention provides a method for sending sequential identifiers, which is applied to a sending end and includes:

通过分组数据汇聚协议PDCP向接收端发送服务数据适配协议SDAP服务数据单元SDU的顺序标识,所述顺序标识根据PDCP或者SDAP确定。Send the sequence identifier of the service data adaptation protocol SDAP service data unit SDU to the receiving end through the packet data convergence protocol PDCP, where the sequence identifier is determined according to PDCP or SDAP.

优选的,所述通过分组数据汇聚协议PDCP向接收端发送服务数据适配协议SDAP服务数据单元SDU的顺序标识的步骤,包括:Preferably, the step of sending the sequence identifier of the service data adaptation protocol SDAP service data unit SDU to the receiving end through the packet data convergence protocol PDCP includes:

通过PDCP向所述接收端发送PDCP状态Status协议数据单元PDU,所述PDCP StatusPDU包含需要发送的SDAP SDU的顺序标识;或者Send a PDCP Status Protocol Data Unit PDU to the receiving end through PDCP, where the PDCP Status PDU contains the sequence identifier of the SDAP SDU to be sent; or

通过PDCP向所述接收端发送SDAP Status PDU,所述SDAP Status PDU包含需要发送的SDAP SDU的顺序标识。Send an SDAP Status PDU to the receiving end through PDCP, where the SDAP Status PDU includes a sequence identifier of the SDAP SDU to be sent.

优选的,所述通过分组数据汇聚协议PDCP向接收端发送服务数据适配协议SDAP服务数据单元SDU的顺序标识之后,还包括:Preferably, after sending the sequence identifier of the service data adaptation protocol SDAP service data unit SDU to the receiving end through the packet data convergence protocol PDCP, the method further includes:

接收所述接收端根据SDAP SDU的顺序标识对所接收的SDAP SDU的排列顺序进行检验后的检验结果。Receive a check result after the receiving end checks the arrangement sequence of the received SDAP SDUs according to the sequence identifier of the SDAP SDUs.

优选的,所述顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定;或者所述顺序标识根据SDAP的SN号确定。Preferably, the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent; or the sequence identifier is determined according to the SDAP SN number.

优选的,当所述顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时;Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent;

第一SDAP SDU的顺序标识为第二SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值;The sequence identifier of the first SDAP SDU is the SN number or COUNT value allocated by the PDCP PDU corresponding to the second SDAP SDU;

其中所述第一SDAP SDU与所述第二SDAP SDU相邻,所述第一SDAP SDU的顺序标识与所述第二SDAP SDU的顺序标识所表示的次序相邻,且所述第一SDAP SDU位于所述第二SDAP SDU之前。The first SDAP SDU is adjacent to the second SDAP SDU, the sequence identifier of the first SDAP SDU is adjacent to the sequence indicated by the sequence identifier of the second SDAP SDU, and the first SDAP SDU before the second SDAP SDU.

优选的,当所述顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时;Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent;

第一SDAP SDU的顺序标识为根据第一SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值定义的一个SDAP变量参数;The sequence identifier of the first SDAP SDU is an SDAP variable parameter defined according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the first SDAP SDU;

其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

优选的,当所述顺序标识根据SDAP的SN号确定时;Preferably, when the sequence identifier is determined according to the SN number of SDAP;

SDAP SDU的顺序标识为SDAP协议子层内部可以识别的SDAP的SN号;其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence identifier of the SDAP SDU is the SN number of the SDAP that can be identified within the SDAP protocol sublayer; wherein the sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

优选的,通过分组数据汇聚协议PDCP向接收端发送服务数据适配协议SDAP服务数据单元SDU的顺序标识之前,还包括:Preferably, before sending the sequence identifier of the service data adaptation protocol SDAP service data unit SDU to the receiving end through the packet data convergence protocol PDCP, the method further includes:

检测服务质量流QoS Flow是否发生切换或重映射;Detect whether the quality of service flow QoS Flow is switched or remapped;

在所述QoS Flow由源数据无线承载DRB切换或重映射到目标DRB时,通过PDCP向所述接收端发送SDAP SDU的顺序标识。When the QoS Flow is switched or remapped from the source data radio bearer DRB to the target DRB, the sequence identifier of the SDAP SDU is sent to the receiving end through PDCP.

优选的,所述在所述QoS Flow由源数据无线承载DRB切换或重映射到目标DRB时,通过PDCP向所述接收端发送SDAP SDU的顺序标识的步骤,包括:Preferably, when the QoS Flow is switched or remapped from the source data radio bearer DRB to the target DRB, the step of sending the sequence identifier of the SDAP SDU to the receiving end through PDCP includes:

若所述目标DRB上没有承载任何QoS flow,则根据需要发送的SDAP SDU的顺序标识所标识的顺序向所述接收端发送SDAP SDU的顺序标识;If the target DRB does not bear any QoS flow, send the sequence identifier of SDAP SDU to the receiving end according to the sequence identified by the sequence identifier of the SDAP SDU to be sent;

若所述目标DRB上承载有其他QoS flow,则根据所述目标DRB上的顺序标识向所述接收端发送SDAP SDU的顺序标识。If the target DRB bears other QoS flows, the sequence identifier of SDAP SDU is sent to the receiving end according to the sequence identifier on the target DRB.

本发明实施例提供一种顺序标识接收方法,应用于接收端,包括:An embodiment of the present invention provides a method for receiving sequential identifiers, which is applied to a receiving end and includes:

通过分组数据汇聚协议PDCP接收发送端发送的服务数据适配协议SDAP服务数据单元SDU的顺序标识,所述顺序标识根据PDCP或者SDAP确定。The sequence identifier of the service data adaptation protocol SDAP service data unit SDU sent by the sender is received through the packet data convergence protocol PDCP, where the sequence identifier is determined according to PDCP or SDAP.

优选的,所述通过分组数据汇聚协议PDCP接收发送端发送的服务数据适配协议SDAP服务数据单元SDU的顺序标识的步骤,包括:Preferably, the step of receiving the sequence identifier of the service data adaptation protocol SDAP service data unit SDU sent by the transmitting end through the packet data convergence protocol PDCP includes:

通过PDCP接收所述发送端发送的PDCP状态Status协议数据单元PDU,所述PDCPStatus PDU包含需要发送的SDAP SDU的顺序标识;或者Receive the PDCP Status Protocol Data Unit PDU sent by the sender through PDCP, where the PDCP Status PDU contains the sequence identifier of the SDAP SDU to be sent; or

通过PDCP接收所述发送端发送的SDAP Status PDU,所述SDAP Status PDU包含需要发送的SDAP SDU的顺序标识。The SDAP Status PDU sent by the sender is received through PDCP, where the SDAP Status PDU contains the sequence identifier of the SDAP SDU to be sent.

优选的,所述通过分组数据汇聚协议PDCP接收发送端发送的服务数据适配协议SDAP服务数据单元SDU的顺序标识后,还包括:Preferably, after receiving the sequence identifier of the service data adaptation protocol SDAP service data unit SDU sent by the transmitting end through the packet data convergence protocol PDCP, the method further includes:

按照SDAP SDU的顺序标识对所接收到的SDAP SDU的排列顺序进行检验,并将检验结果反馈至所述发送端。The order of the received SDAP SDUs is checked according to the order identifier of the SDAP SDUs, and the check result is fed back to the sender.

优选的,若检测结果表明所接收到的SDAP SDU的排列顺序与SDAP SDU的顺序标识不一致,还包括:根据SDAP SDU的顺序标识对所接收到的SDAP SDU进行重新排序;Preferably, if the detection result shows that the sequence of the received SDAP SDUs is inconsistent with the sequence identifier of the SDAP SDUs, the method further includes: reordering the received SDAP SDUs according to the sequence identifiers of the SDAP SDUs;

将排序后的SDAP SDU发送至上层协议。Send the ordered SDAP SDU to the upper layer protocol.

优选的,所述顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定;或者所述顺序标识根据SDAP的SN号确定。Preferably, the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent; or the sequence identifier is determined according to the SDAP SN number.

优选的,当所述顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时;Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent;

第一SDAP SDU的顺序标识为第二SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值;The sequence identifier of the first SDAP SDU is the SN number or COUNT value allocated by the PDCP PDU corresponding to the second SDAP SDU;

其中所述第一SDAP SDU与所述第二SDAP SDU相邻,所述第一SDAP SDU的顺序标识与所述第二SDAP SDU的顺序标识所表示的次序相邻,且所述第一SDAP SDU位于所述第二SDAP SDU之前。The first SDAP SDU is adjacent to the second SDAP SDU, the sequence identifier of the first SDAP SDU is adjacent to the sequence indicated by the sequence identifier of the second SDAP SDU, and the first SDAP SDU before the second SDAP SDU.

优选的,当所述顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时;Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent;

第一SDAP SDU的顺序标识为根据第一SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值定义的一个SDAP变量参数;The sequence identifier of the first SDAP SDU is an SDAP variable parameter defined according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the first SDAP SDU;

其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

优选的,当所述顺序标识根据SDAP的SN号确定时;Preferably, when the sequence identifier is determined according to the SN number of SDAP;

SDAP SDU的顺序标识为SDAP协议子层内部可以识别的SDAP的SN号;其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence identifier of the SDAP SDU is the SN number of the SDAP that can be identified within the SDAP protocol sublayer; wherein the sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

优选的,所述通过PDCP接收发送端发送的PDCP状态Status协议数据单元PDU后,还包括:Preferably, after receiving the PDCP Status Protocol Data Unit PDU sent by the transmitting end through PDCP, the method further includes:

检测所述PDCP Status PDU中的预设标识是否携带了SDAP SDU的顺序;Detecting whether the preset identifier in the PDCP Status PDU carries the sequence of SDAP SDUs;

若所述预设标识携带了SDAP SDU的顺序,则确定接收到的所述PDCP Status PDU中上报了当前所携带的SDAP SDU的顺序。If the preset identifier carries the sequence of SDAP SDUs, it is determined that the received PDCP Status PDU reports the sequence of SDAP SDUs currently carried.

本发明实施例一种发送设备,包括处理器和收发器,所述处理器用于:A sending device according to an embodiment of the present invention includes a processor and a transceiver, where the processor is used for:

根据分组数据汇聚协议PDCP或者服务数据适配协议SDAP,确定需要发送的多个SDAP服务数据单元SDU的顺序标识。According to the Packet Data Convergence Protocol PDCP or the Service Data Adaptation Protocol SDAP, the sequence identifiers of the multiple SDAP service data units SDUs to be sent are determined.

优选的,所述顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定;或者所述顺序标识根据SDAP的SN号确定。Preferably, the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent; or the sequence identifier is determined according to the SDAP SN number.

优选的,当所述顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时,所述处理器还用于:Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent, the processor is further configured to:

根据第二SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值,确定第一SDAP SDU的顺序标识;Determine the sequence identifier of the first SDAP SDU according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the second SDAP SDU;

其中所述第一SDAP SDU与所述第二SDAP SDU相邻,所述第一SDAP SDU的顺序标识与所述第二SDAP SDU的顺序标识所表示的次序相邻,且所述第一SDAP SDU位于所述第二SDAP SDU之前。The first SDAP SDU is adjacent to the second SDAP SDU, the sequence identifier of the first SDAP SDU is adjacent to the sequence indicated by the sequence identifier of the second SDAP SDU, and the first SDAP SDU before the second SDAP SDU.

优选的,当所述顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时,所述处理器还用于:Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent, the processor is further configured to:

根据第一SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值定义一个SDAP变量参数;Define an SDAP variable parameter according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the first SDAP SDU;

将定义的SDAP变量参数确定为所述第一SDAP SDU的顺序标识;Determining the defined SDAP variable parameter as the sequence identifier of the first SDAP SDU;

其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

优选的,当所述顺序标识根据SDAP的SN号确定时,所述处理器还用于:Preferably, when the sequence identifier is determined according to the SN number of the SDAP, the processor is further configured to:

根据SDAP协议子层内部可以识别的SDAP的SN号,确定SDAP SDU的顺序标识;According to the SN number of SDAP that can be recognized inside the SDAP protocol sublayer, determine the sequence identifier of SDAP SDU;

其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

本发明实施例还提供一种发送设备,包括处理器和收发器,所述收发器用于:An embodiment of the present invention further provides a sending device, including a processor and a transceiver, where the transceiver is used for:

通过分组数据汇聚协议PDCP向接收端发送服务数据适配协议SDAP服务数据单元SDU的顺序标识,所述顺序标识根据PDCP或者SDAP确定。Send the sequence identifier of the service data adaptation protocol SDAP service data unit SDU to the receiving end through the packet data convergence protocol PDCP, where the sequence identifier is determined according to PDCP or SDAP.

优选的,所述收发器还用于:Preferably, the transceiver is also used for:

通过PDCP向所述接收端发送PDCP状态Status协议数据单元PDU,所述PDCP StatusPDU包含需要发送的SDAP SDU的顺序标识;或者Send a PDCP Status Protocol Data Unit PDU to the receiving end through PDCP, where the PDCP Status PDU contains the sequence identifier of the SDAP SDU to be sent; or

通过PDCP向所述接收端发送SDAP Status PDU,所述SDAP Status PDU包含需要发送的SDAP SDU的顺序标识。Send an SDAP Status PDU to the receiving end through PDCP, where the SDAP Status PDU includes a sequence identifier of the SDAP SDU to be sent.

优选的,所述收发器通过分组数据汇聚协议PDCP向接收端发送服务数据适配协议SDAP服务数据单元SDU的顺序标识之后,还用于:Preferably, after the transceiver sends the sequence identifier of the service data adaptation protocol SDAP service data unit SDU to the receiving end through the packet data convergence protocol PDCP, it is also used for:

接收所述接收端根据SDAP SDU的顺序标识对所接收的SDAP SDU的排列顺序进行检验后的检验结果。Receive a check result after the receiving end checks the arrangement sequence of the received SDAP SDUs according to the sequence identifier of the SDAP SDUs.

优选的,所述顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定;或者所述顺序标识根据SDAP的SN号确定。Preferably, the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent; or the sequence identifier is determined according to the SDAP SN number.

优选的,当所述顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时;Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent;

第一SDAP SDU的顺序标识为第二SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值;The sequence identifier of the first SDAP SDU is the SN number or COUNT value allocated by the PDCP PDU corresponding to the second SDAP SDU;

其中所述第一SDAP SDU与所述第二SDAP SDU相邻,所述第一SDAP SDU的顺序标识与所述第二SDAP SDU的顺序标识所表示的次序相邻,且所述第一SDAP SDU位于所述第二SDAP SDU之前。The first SDAP SDU is adjacent to the second SDAP SDU, the sequence identifier of the first SDAP SDU is adjacent to the sequence indicated by the sequence identifier of the second SDAP SDU, and the first SDAP SDU before the second SDAP SDU.

优选的,当所述顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时;Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent;

第一SDAP SDU的顺序标识为根据第一SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值定义的一个SDAP变量参数;The sequence identifier of the first SDAP SDU is an SDAP variable parameter defined according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the first SDAP SDU;

其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

优选的,当所述顺序标识根据SDAP的SN号确定时;Preferably, when the sequence identifier is determined according to the SN number of SDAP;

SDAP SDU的顺序标识为SDAP协议子层内部可以识别的SDAP的SN号;其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence identifier of the SDAP SDU is the SN number of the SDAP that can be identified within the SDAP protocol sublayer; wherein the sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

优选的,所述收发器通过分组数据汇聚协议PDCP向接收端发送服务数据适配协议SDAP服务数据单元SDU的顺序标识之前,所述处理器用于:Preferably, before the transceiver sends the sequence identifier of the service data adaptation protocol SDAP service data unit SDU to the receiving end through the packet data convergence protocol PDCP, the processor is used for:

检测服务质量流QoS Flow是否发生切换或重映射;Detect whether the quality of service flow QoS Flow is switched or remapped;

在所述QoS Flow由源数据无线承载DRB切换或重映射到目标DRB时,控制所述收发器通过PDCP向所述接收端发送SDAP SDU的顺序标识。When the QoS Flow is switched or remapped from the source data radio bearer DRB to the target DRB, the transceiver is controlled to send the sequence identifier of the SDAP SDU to the receiving end through PDCP.

优选的,在所述QoS Flow由源数据无线承载DRB切换或重映射到目标DRB,所述收发器通过PDCP向所述接收端发送SDAP SDU的顺序标识时,所述收发器还用于:Preferably, when the QoS Flow is switched or remapped from the source data radio bearer DRB to the target DRB, and the transceiver sends the sequence identifier of the SDAP SDU to the receiving end through PDCP, the transceiver is further configured to:

若所述目标DRB上没有承载任何QoS flow,则根据需要发送的SDAP SDU的顺序标识所标识的顺序向所述接收端发送SDAP SDU的顺序标识;If the target DRB does not bear any QoS flow, send the sequence identifier of SDAP SDU to the receiving end according to the sequence identified by the sequence identifier of the SDAP SDU to be sent;

若所述目标DRB上承载有其他QoS flow,则根据所述目标DRB上的顺序标识向所述接收端发送SDAP SDU的顺序标识。If the target DRB bears other QoS flows, the sequence identifier of SDAP SDU is sent to the receiving end according to the sequence identifier on the target DRB.

本发明实施例提供一种接收设备,包括处理器和收发器,所述收发器用于:An embodiment of the present invention provides a receiving device, including a processor and a transceiver, where the transceiver is used for:

通过分组数据汇聚协议PDCP接收发送端发送的服务数据适配协议SDAP服务数据单元SDU的顺序标识,所述顺序标识根据PDCP或者SDAP确定。The sequence identifier of the service data adaptation protocol SDAP service data unit SDU sent by the sender is received through the packet data convergence protocol PDCP, where the sequence identifier is determined according to PDCP or SDAP.

优选的,所述收发器通过分组数据汇聚协议PDCP接收发送端发送的服务数据适配协议SDAP服务数据单元SDU的顺序标识时,还用于:Preferably, when the transceiver receives the sequence identifier of the service data adaptation protocol SDAP service data unit SDU sent by the transmitting end through the packet data convergence protocol PDCP, it is also used for:

通过PDCP接收所述发送端发送的PDCP状态Status协议数据单元PDU,所述PDCPStatus PDU包含需要发送的SDAP SDU的顺序标识;或者Receive the PDCP Status Protocol Data Unit PDU sent by the sender through PDCP, where the PDCP Status PDU contains the sequence identifier of the SDAP SDU to be sent; or

通过PDCP接收所述发送端发送的SDAP Status PDU,所述SDAP StatusPDU包含需要发送的SDAP SDU的顺序标识。The SDAP Status PDU sent by the sending end is received through PDCP, where the SDAP Status PDU contains the sequence identifier of the SDAP SDU to be sent.

优选的,所述收发器通过分组数据汇聚协议PDCP接收发送端发送的服务数据适配协议SDAP服务数据单元SDU的顺序标识后,所述处理器用于:Preferably, after the transceiver receives the sequence identifier of the service data adaptation protocol SDAP service data unit SDU sent by the transmitting end through the packet data convergence protocol PDCP, the processor is used for:

按照SDAP SDU的顺序标识对所接收到的SDAP SDU的排列顺序进行检验,并将检验结果反馈至所述发送端。The order of the received SDAP SDUs is checked according to the order identifier of the SDAP SDUs, and the check result is fed back to the sender.

优选的,若检测结果表明所接收到的SDAP SDU的排列顺序与SDAP SDU的顺序标识不一致,所述处理器还用于:根据SDAP SDU的顺序标识对所接收到的SDAP SDU进行重新排序;Preferably, if the detection result shows that the sequence of the received SDAP SDUs is inconsistent with the sequence identifiers of the SDAP SDUs, the processor is further configured to: reorder the received SDAP SDUs according to the sequence identifiers of the SDAP SDUs;

控制所述收发器将排序后的SDAP SDU发送至上层协议。The transceiver is controlled to send the sequenced SDAP SDUs to the upper layer protocol.

优选的,所述顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定;或者所述顺序标识根据SDAP的SN号确定。Preferably, the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent; or the sequence identifier is determined according to the SDAP SN number.

优选的,当所述顺序标识根据PDCP协议子层为包括所需要发送SDAPSDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时;Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAPSDU that needs to be sent;

第一SDAP SDU的顺序标识为第二SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值;The sequence identifier of the first SDAP SDU is the SN number or COUNT value allocated by the PDCP PDU corresponding to the second SDAP SDU;

其中所述第一SDAP SDU与所述第二SDAP SDU相邻,所述第一SDAP SDU的顺序标识与所述第二SDAP SDU的顺序标识所表示的次序相邻,且所述第一SDAP SDU位于所述第二SDAP SDU之前。The first SDAP SDU is adjacent to the second SDAP SDU, the sequence identifier of the first SDAP SDU is adjacent to the sequence indicated by the sequence identifier of the second SDAP SDU, and the first SDAP SDU before the second SDAP SDU.

优选的,当所述顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时;Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent;

第一SDAP SDU的顺序标识为根据第一SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值定义的一个SDAP变量参数;The sequence identifier of the first SDAP SDU is an SDAP variable parameter defined according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the first SDAP SDU;

其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

优选的,当所述顺序标识根据SDAP的SN号确定时;Preferably, when the sequence identifier is determined according to the SN number of SDAP;

SDAP SDU的顺序标识为SDAP协议子层内部可以识别的SDAP的SN号;其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence identifier of the SDAP SDU is the SN number of the SDAP that can be identified within the SDAP protocol sublayer; the sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

优选的,所述收发器通过PDCP接收发送端发送的PDCP状态Status协议数据单元PDU后,所述处理器还用于:Preferably, after the transceiver receives the PDCP Status Protocol Data Unit PDU sent by the transmitter through PDCP, the processor is further configured to:

检测所述PDCP Status PDU中的预设标识是否携带了SDAP SDU的顺序;Detecting whether the preset identifier in the PDCP Status PDU carries the sequence of SDAP SDUs;

若所述预设标识携带了SDAP SDU的顺序,则确定接收到的所述PDCPStatus PDU中上报了当前所携带的SDAP SDU的顺序。If the preset identifier carries the sequence of SDAP SDUs, it is determined that the received PDCPStatus PDU reports the sequence of SDAP SDUs currently carried.

本发明实施例一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述的顺序标识确定方法或者顺序标识发送方法或者顺序标识接收方法中的步骤。An embodiment of the present invention is a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the steps in the above-mentioned method for determining a sequence identifier, a method for sending a sequence identifier, or a method for receiving a sequence identifier.

本发明技术方案,通过根据PDCP或者SDAP,确定需要发送的多个SDAPSDU的顺序标识,根据确定的顺序标识进行SDAP SDU传输,可以保证数据前转后SDAP SDU数据包不丢弃并重新传输,避免出现服务质量流在切换或者重映射时发生数据包乱序的情况,解决了现有技术中在服务质量流发生切换或者重映射时,无法在实现无损切换的同时,保证数据包无丢失的前转的问题。The technical scheme of the present invention, by determining the sequence identifiers of multiple SDAPsdus to be sent according to PDCP or SDAP, and performing SDAP SDU transmission according to the determined sequence identifiers, it can ensure that SDAP SDU data packets are not discarded and retransmitted after data forwarding, avoiding occurrence of When the quality of service flow is switched or remapped, the data packets are out of order, which solves the problem that in the prior art, when the quality of service flow is switched or remapped, it is impossible to achieve lossless switching while ensuring forwarding without data packet loss. The problem.

附图说明Description of drawings

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

图1表示本发明实施例顺序标识确定方法示意图;1 shows a schematic diagram of a method for determining a sequence identifier according to an embodiment of the present invention;

图2表示本发明实施例顺序标识发送方法示意图;FIG. 2 is a schematic diagram of a method for sending sequential identifiers according to an embodiment of the present invention;

图3表示本发明实施例顺序标识接收方法示意图;3 shows a schematic diagram of a method for receiving sequential identifiers according to an embodiment of the present invention;

图4表示本发明实施例SDAP Status PDU示意图;FIG. 4 shows a schematic diagram of an SDAP Status PDU according to an embodiment of the present invention;

图5表示本发明实施例PDCP Status PDU示意图;FIG. 5 shows a schematic diagram of a PDCP Status PDU according to an embodiment of the present invention;

图6表示本发明实施例发送设备的实施结构一示意图;FIG. 6 shows a schematic diagram of an implementation structure of a sending device according to an embodiment of the present invention;

图7表示本发明实施例发送设备的实施结构二示意图;FIG. 7 is a schematic diagram of a second implementation structure of a sending device according to an embodiment of the present invention;

图8表示本发明实施例接收设备的实施结构一示意图;FIG. 8 shows a schematic diagram of an implementation structure of a receiving device according to an embodiment of the present invention;

图9表示本发明实施例发送设备的实施结构三示意图;FIG. 9 shows a third schematic diagram of an implementation structure of a sending device according to an embodiment of the present invention;

图10表示本发明实施例接收设备的实施结构二示意图。FIG. 10 shows a second schematic diagram of an implementation structure of a receiving device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

本发明实施例提供一种顺序标识确定方法,应用于发送端,如图1所示,包括:An embodiment of the present invention provides a method for determining a sequence identifier, which is applied to a sending end, as shown in FIG. 1 , including:

步骤101、根据分组数据汇聚协议PDCP或者服务数据适配协议SDAP,确定需要发送的多个SDAP服务数据单元SDU的顺序标识。Step 101: Determine the sequence identifiers of multiple SDAP service data units SDUs to be sent according to the Packet Data Convergence Protocol PDCP or the Service Data Adaptation Protocol SDAP.

本发明实施例发送端的设备可以为基站或者终端,发送端基于PDCP或者SDAP,确定SDAP SDU(Service Data Unit,服务数据单元)的顺序标识,其中所确定的顺序标识用来标识相邻的若干个连续的SDAP SDU的先后顺序。且顺序标识可以不需要通过空口发送,即该顺序标识可以不体现在空口的数据包中。The device at the sending end in this embodiment of the present invention may be a base station or a terminal, and the sending end determines a sequence identifier of an SDAP SDU (Service Data Unit, service data unit) based on PDCP or SDAP, where the determined sequence identifier is used to identify several adjacent The sequence of consecutive SDAP SDUs. And the sequence identifier may not need to be sent through the air interface, that is, the sequence identifier may not be reflected in the data packet of the air interface.

在基于PDCP确定顺序标识时,可以根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定;在基于SDAP确定顺序标识时,可以根据SDAP的SN号确定。When the sequence identifier is determined based on PDCP, it can be determined according to the sequence SN number or count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent; when the sequence identifier is determined based on SDAP, it can be determined according to the SDAP SN number is confirmed.

在本发明实施例中,当顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时,根据分组数据汇聚协议PDCP,确定需要发送的多个SDAP服务数据单元SDU的顺序标识的步骤包括:In the embodiment of the present invention, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent, according to the packet data convergence protocol PDCP, it is determined that it needs to be sent. The step of sequential identification of multiple SDAP service data units SDUs includes:

根据第二SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值,确定第一SDAP SDU的顺序标识;其中第一SDAP SDU与第二SDAP SDU相邻,第一SDAP SDU的顺序标识与第二SDAP SDU的顺序标识所表示的次序相邻,且第一SDAP SDU位于第二SDAP SDU之前。The sequence identifier of the first SDAP SDU is determined according to the SN number or COUNT value assigned by the PDCP PDU corresponding to the second SDAP SDU; the first SDAP SDU is adjacent to the second SDAP SDU, and the sequence identifier of the first SDAP SDU is the same as the second SDAP SDU. The order indicated by the order identifier of the SDUs is adjacent, and the first SDAP SDU precedes the second SDAP SDU.

在根据SDAP SDU的PDCP PDU分配的SN号或者COUNT值,确定顺序标识时,可以将第二SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值,确定为第一SDAP SDU的顺序标识。其中这里的第一SDAP SDU与第二SDAP SDU相邻,且第一SDAP SDU位于第二SDAP SDU之前。所确定的第一SDAP SDU的顺序标识与第二SDAP SDU的顺序标识所表示的次序也相邻。When determining the sequence identifier according to the SN number or COUNT value assigned by the PDCP PDU of the SDAP SDU, the SN number or COUNT value assigned by the PDCP PDU corresponding to the second SDAP SDU may be determined as the sequence identifier of the first SDAP SDU. The first SDAP SDU here is adjacent to the second SDAP SDU, and the first SDAP SDU is located before the second SDAP SDU. The determined sequence identifier of the first SDAP SDU and the sequence indicated by the sequence identifier of the second SDAP SDU are also adjacent to each other.

即当前SDAP SDU的顺序标识的取值为当前SDAP SDU的紧邻的下一个SDAP SDU对应的PDCP PDU分配的SN或者COUNT值。且相邻的SDAP SDU的顺序标识所表示的次序也相邻。That is, the value of the sequence identifier of the current SDAP SDU is the SN or COUNT value allocated by the PDCP PDU corresponding to the next SDAP SDU immediately adjacent to the current SDAP SDU. And the sequence indicated by the sequence identifiers of adjacent SDAP SDUs is also adjacent.

例如当前SDAP SDU(记为SDU1)紧邻的下一个SDAP SDU记为SDU2。SDU2对应的PDCPPDU的SN号取值为100或者COUT值为10100,则SDU1的顺序标识取值为100或者10100。SDU2紧邻的下一个SDAP SDU记为SDU3。SDU3对应的PDCP PDU的SN号取值为101或者COUT值为10101,则SDU2的顺序标识取值为101或者10101。For example, the next SDAP SDU immediately adjacent to the current SDAP SDU (denoted as SDU1) is denoted as SDU2. The SN number of the PDCPPDU corresponding to SDU2 is 100 or the COUT value is 10100, and the sequence identifier of SDU1 is 100 or 10100. The next SDAP SDU immediately adjacent to SDU2 is denoted as SDU3. The SN number of the PDCP PDU corresponding to SDU3 is 101 or the COUT value is 10101, and the sequence identifier of SDU2 is 101 or 10101.

在按照上述方式确定SDAP SDU的顺序标识之后,在判断两个SDAP SDU是否紧邻时,可以把先发送给SDAP低层的SDU中的顺序标识取出,将取出的值与后发送给SDAP低层的SDU对应的PDCP PDU的SN号或者COUNT值进行比较,如果相同,则认为二者相邻;否则,两个SDAP SDU不相邻。After determining the sequence identifiers of SDAP SDUs in the above manner, when judging whether two SDAP SDUs are adjacent to each other, the sequence identifiers in the SDUs first sent to the SDAP lower layer can be taken out, and the retrieved value corresponds to the SDUs sent to the SDAP lower layer later. The SN numbers or COUNT values of the PDCP PDUs are compared, and if they are the same, the two are considered adjacent; otherwise, the two SDAP SDUs are not adjacent.

在本发明实施例中,当顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时,根据分组数据汇聚协议PDCP,确定需要发送的多个SDAP服务数据单元SDU的顺序标识的步骤包括:In the embodiment of the present invention, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent, according to the packet data convergence protocol PDCP, it is determined that it needs to be sent. The step of sequential identification of multiple SDAP service data units SDUs includes:

根据第一SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值定义一个SDAP变量参数;将定义的SDAP变量参数确定为第一SDAP SDU的顺序标识;其中任意相邻的两个SDAPSDU的顺序标识所表示的次序相邻。Define an SDAP variable parameter according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the first SDAP SDU; determine the defined SDAP variable parameter as the sequence identifier of the first SDAP SDU; wherein the sequence identifiers of any two adjacent SDAPDUs The order of representations is adjacent.

在根据SDAP SDU的PDCP PDU分配的SN号或者COUNT值,确定顺序标识时,可以根据第一SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值定义一个SDAP变量参数,这里的SDAP变量参数属于SDAP的内部值,可由SDAP识别。When determining the sequence identifier according to the SN number or COUNT value allocated by the PDCP PDU of the SDAP SDU, an SDAP variable parameter can be defined according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the first SDAP SDU, where the SDAP variable parameter belongs to SDAP The internal value of , which can be recognized by SDAP.

在定义一个SDAP变量参数之后,将定义的SDAP变量参数确定为第一SDAP SDU的顺序标识,在通过该种方式确定顺序标识时,其任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。After defining an SDAP variable parameter, the defined SDAP variable parameter is determined as the sequence identifier of the first SDAP SDU. When the sequence identifier is determined in this way, the sequence represented by the sequence identifiers of any two adjacent SDAP SDUs adjacent.

即当前SDAP SDU的顺序标识可以为根据当前SDAP SDU对应的PDCPPDU分配的SN号或者COUNT值定义的一个SDAP的内部值。比如,相邻的两个SDAP SDU对应的PDCP PDU分配的SN号不连续,但是每个SDAP SDU的顺序标识可以取连续的序号。假设多个连续的SDAP SDU对应的PDCP PDU分配的SN号分别为2,100,211,则多个连续的SDAP SDU对应的顺序标识可以为n+1,n+2,n+3。这里的n为SDAP SDU分配的当前值,比如在SDAP中顺序标识已经使用到201,则n为201,上述三个SDU对应的顺序值为202,202,203,n的取值可以为大于或者等于0的正整数,如0、1、2、3等等。That is, the sequence identifier of the current SDAP SDU may be an SDAP internal value defined according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the current SDAP SDU. For example, the SN numbers allocated to the PDCP PDUs corresponding to two adjacent SDAP SDUs are not consecutive, but the sequence identifier of each SDAP SDU may take consecutive sequence numbers. Assuming that the SN numbers allocated to the PDCP PDUs corresponding to the multiple consecutive SDAP SDUs are 2, 100, and 211, respectively, the sequence identifiers corresponding to the multiple consecutive SDAP SDUs may be n+1, n+2, and n+3. Here n is the current value allocated by SDAP SDU. For example, if the sequence identifier in SDAP has been used to 201, then n is 201. The sequence values corresponding to the above three SDUs are 202, 202, and 203. The value of n can be greater than or A positive integer equal to 0, such as 0, 1, 2, 3, and so on.

在本发明实施例中,当顺序标识根据SDAP的SN号确定时,根据服务数据适配协议SDAP,确定需要发送的多个SDAP服务数据单元SDU的顺序标识的步骤包括:根据SDAP协议子层内部可以识别的SDAP的SN号,确定SDAP SDU的顺序标识;其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。In the embodiment of the present invention, when the sequence identifier is determined according to the SN number of SDAP, according to the service data adaptation protocol SDAP, the step of determining the sequence identifiers of multiple SDAP service data units SDUs to be sent includes: according to the internal SDAP protocol sublayer The SN number of the identifiable SDAP determines the sequence identifier of the SDAP SDU; the sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

在根据SDAP确定顺序标识时,可以根据SDAP协议子层内部可以识别的SDAP的SN号,确定顺序标识。即SDAP可以给每个发送的SDAP SDU分配一个SDAP协议子层内部可以识别的顺序号,比如引入SDAP的SN号。SDAP根据该SN号保证SDAP SDU的顺序,此时相邻的两个SDAP SDU的顺序标识所表示的次序相邻。When the sequence identifier is determined according to the SDAP, the sequence identifier can be determined according to the SN number of the SDAP that can be identified inside the SDAP protocol sublayer. That is, the SDAP can assign a sequence number that can be recognized inside the SDAP protocol sublayer to each sent SDAP SDU, such as the SN number introduced into the SDAP. SDAP guarantees the sequence of SDAP SDUs according to the SN number, and at this time, the sequence indicated by the sequence identifiers of two adjacent SDAP SDUs is adjacent.

本发明实施例提供的顺序标识确定方法,可以根据PDCP或者SDAP,确定需要发送的多个SDAP SDU的顺序标识,给出了SDAP SDU的排序方案,根据确定的顺序标识进行SDAPSDU传输,可以保证数据前转后SDAP SDU数据包不丢弃并重新传输,避免出现服务质量流在切换或者重映射时发生数据包乱序的情况。The method for determining the sequence identifier provided by the embodiment of the present invention can determine the sequence identifiers of multiple SDAP SDUs to be sent according to PDCP or SDAP, and provides a sorting scheme of SDAP SDUs. After forwarding, SDAP SDU data packets are not discarded and retransmitted to avoid out-of-order data packets during QoS flow switching or remapping.

本发明实施例提供一种顺序标识发送方法,应用于发送端,如图2所示,包括:An embodiment of the present invention provides a method for sending sequential identifiers, which is applied to a sending end, as shown in FIG. 2 , including:

步骤201、通过分组数据汇聚协议PDCP向接收端发送服务数据适配协议SDAP服务数据单元SDU的顺序标识,顺序标识根据PDCP或者SDAP确定。Step 201: Send the sequence identifier of the service data adaptation protocol SDAP service data unit SDU to the receiving end through the packet data convergence protocol PDCP, and the sequence identifier is determined according to PDCP or SDAP.

本发明实施例的发送端可以是基站或者终端,在发送端根据PDCP或者SDAP确定SDAP SDU的顺序标识之后,通过PDCP将确定的SDAP SDU的顺序标识发送至接收端。The transmitter in this embodiment of the present invention may be a base station or a terminal. After the transmitter determines the sequence identifier of the SDAP SDU according to PDCP or SDAP, the transmitter sends the determined sequence identifier of the SDAP SDU to the receiver through PDCP.

其中,通过分组数据汇聚协议PDCP向接收端发送服务数据适配协议SDAP服务数据单元SDU的顺序标识的步骤,包括:通过PDCP向接收端发送PDCP状态Status协议数据单元PDU,PDCP Status PDU包含需要发送的SDAP SDU的顺序标识;或者通过PDCP向接收端发送SDAP Status PDU,SDAP Status PDU包含需要发送的SDAP SDU的顺序标识。Wherein, the step of sending the sequence identifier of the service data adaptation protocol SDAP service data unit SDU to the receiving end through the packet data convergence protocol PDCP includes: sending the PDCP Status Status Protocol Data Unit PDU to the receiving end through the PDCP, and the PDCP Status PDU contains the data that needs to be sent. SDAP SDU sequence identifier; or send SDAP Status PDU to the receiving end through PDCP, SDAP Status PDU contains the sequence identifier of SDAP SDU to be sent.

在发送SDAP SDU的顺序标识时,发送端SDAP可以把需要发送的SDAP SDU的发送顺序标识发送给发送端PDCP,发送端PDCP组建PDCP Status PDU,其中组建的PDCP StatusPDU包含需要发送的SDAP SDU的顺序标识,然后由发送端PDCP通过PDCP将PDCP Status PDU发送到接收端。When sending the sequence identifier of the SDAP SDU, the SDAP at the sending end can send the sending sequence identifier of the SDAP SDU to be sent to the PDCP at the sending end, and the PDCP at the sending end forms a PDCP Status PDU, where the formed PDCP Status PDU contains the sequence of the SDAP SDU to be sent. ID, and then the PDCP at the transmitting end sends the PDCP Status PDU to the receiving end through PDCP.

或者当需要发送端的SDAP发送SDAP SDU的顺序标识信息时,SDAP组建合适的SDAPStatus PDU发送到接收端。Or when the SDAP of the sender needs to send the sequence identification information of the SDAP SDU, the SDAP forms a suitable SDAPStatus PDU and sends it to the receiver.

在本发明实施例中,通过分组数据汇聚协议PDCP向接收端发送服务数据适配协议SDAP服务数据单元SDU的顺序标识之后,还包括:接收接收端根据SDAP SDU的顺序标识对所接收的SDAP SDU的排列顺序进行检验后的检验结果。In the embodiment of the present invention, after the sequence identifier of the service data adaptation protocol SDAP service data unit SDU is sent to the receiving end through the packet data convergence protocol PDCP, the method further includes: the receiving and receiving end analyzes the received SDAP SDU according to the sequence identifier of the SDAP SDU. The order of the test results after the test.

在发送端向接收端发送SDAP SDU的顺序标识之后,接收端可以根据SDAP SDU的顺序标识对接收到的SDAP SDU的排列顺序进行检验,在检测完成之后,将检验结果反馈至发送端,发送端可以接收检验结果。After the sender sends the sequence identifier of the SDAP SDU to the receiver, the receiver can check the order of the received SDAP SDUs according to the sequence identifier of the SDAP SDU, and after the detection is completed, the check result is fed back to the sender. Inspection results can be received.

在本发明实施例中,顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定;或者顺序标识根据SDAP的SN号确定。In the embodiment of the present invention, the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent; or the sequence identifier is determined according to the SDAP SN number.

发送端可以基于PDCP或者SDAP确定顺序,在基于PDCP确定顺序标识时,可以根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的SN号或者COUNT值确定;在基于SDAP确定顺序标识时,可以根据SDAP的SN号确定。The sender can determine the sequence based on PDCP or SDAP. When determining the sequence identifier based on PDCP, it can be determined according to the SN number or COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent; when determining based on SDAP When identifying the sequence, it can be determined according to the SN number of SDAP.

在本发明实施例中,当顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时;In the embodiment of the present invention, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent;

第一SDAP SDU的顺序标识为第二SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值;其中第一SDAP SDU与第二SDAP SDU相邻,第一SDAP SDU的顺序标识与第二SDAP SDU的顺序标识所表示的次序相邻,且第一SDAP SDU位于第二SDAP SDU之前。The sequence identifier of the first SDAP SDU is the SN number or COUNT value allocated by the PDCP PDU corresponding to the second SDAP SDU; wherein the first SDAP SDU is adjacent to the second SDAP SDU, and the sequence identifier of the first SDAP SDU is the same as that of the second SDAP SDU. The order indicated by the order identifier is adjacent, and the first SDAP SDU precedes the second SDAP SDU.

在顺序标识由SDAP SDU的PDCP PDU分配的SN号或者COUNT值确定时,可以确定第一SDAP SDU的顺序标识为第二SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值,这里的第一SDAP SDU与第二SDAP SDU相邻,且第一SDAP SDU位于第二SDAP SDU之前。所确定的第一SDAP SDU的顺序标识与第二SDAP SDU的顺序标识所表示的次序也相邻。When the sequence identifier is determined by the SN number or COUNT value allocated by the PDCP PDU of the SDAP SDU, it may be determined that the sequence identifier of the first SDAP SDU is the SN number or COUNT value allocated by the PDCP PDU corresponding to the second SDAP SDU, where the first SDAP SDU The SDU is adjacent to the second SDAP SDU, and the first SDAP SDU precedes the second SDAP SDU. The determined sequence identifier of the first SDAP SDU and the sequence indicated by the sequence identifier of the second SDAP SDU are also adjacent to each other.

即当前SDAP SDU的顺序标识的取值为当前SDAP SDU的紧邻的下一个SDAP SDU对应的PDCP PDU分配的SN或者COUNT值。且相邻的SDAP SDU的顺序标识所表示的次序也相邻。That is, the value of the sequence identifier of the current SDAP SDU is the SN or COUNT value allocated by the PDCP PDU corresponding to the next SDAP SDU immediately adjacent to the current SDAP SDU. And the sequence indicated by the sequence identifiers of adjacent SDAP SDUs is also adjacent.

在本发明实施例中,当顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时;In the embodiment of the present invention, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent;

第一SDAP SDU的顺序标识为根据第一SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值定义的一个SDAP变量参数;其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence identifier of the first SDAP SDU is an SDAP variable parameter defined according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the first SDAP SDU; wherein the sequence represented by the sequence identifiers of any adjacent SDAP SDUs is adjacent.

在顺序标识根据SDAP SDU的PDCP PDU分配的SN号或者COUNT值确定时,第一SDAPSDU的顺序标识可以为根据第一SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值定义的一个SDAP变量参数,这里的SDAP变量参数属于SDAP的内部值,可由SDAP识别。此时任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。即当前SDAP SDU的顺序标识可以为根据当前SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值定义的一个SDAP的内部值。When the sequence identifier is determined according to the SN number or COUNT value allocated by the PDCP PDU of the SDAP SDU, the sequence identifier of the first SDAP SDU may be an SDAP variable parameter defined according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the first SDAP SDU, The SDAP variable parameter here belongs to the internal value of SDAP and can be identified by SDAP. At this time, the sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent. That is, the sequence identifier of the current SDAP SDU may be an internal SDAP value defined according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the current SDAP SDU.

在本发明实施例中,当顺序标识根据SDAP的SN号确定时;SDAP SDU的顺序标识为SDAP协议子层内部可以识别的SDAP的SN号;其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。In the embodiment of the present invention, when the sequence identifier is determined according to the SN number of SDAP; the sequence identifier of SDAP SDU is the SN number of SDAP that can be identified inside the SDAP protocol sublayer; wherein the sequence identifier of any two adjacent SDAP SDUs The order of representations is adjacent.

当顺序标识根据SDAP的SN号确定时,可以根据SDAP协议子层内部可以识别的SDAP的SN号,确定顺序标识。即SDAP可以给每个发送的SDAP SDU分配一个SDAP协议子层内部可以识别的顺序号,比如引入SDAP的SN号。SDAP根据该SN号保证SDAP SDU的顺序,此时相邻的两个SDAP SDU的顺序标识所表示的次序相邻。When the sequence identifier is determined according to the SN number of the SDAP, the sequence identifier can be determined according to the SN number of the SDAP that can be identified inside the SDAP protocol sublayer. That is, the SDAP can assign a sequence number that can be recognized inside the SDAP protocol sublayer to each sent SDAP SDU, such as the SN number introduced into the SDAP. SDAP guarantees the sequence of SDAP SDUs according to the SN number, and at this time, the sequence indicated by the sequence identifiers of two adjacent SDAP SDUs is adjacent.

在本发明实施例中,通过分组数据汇聚协议PDCP向接收端发送服务数据适配协议SDAP服务数据单元SDU的顺序标识之前,还包括:In the embodiment of the present invention, before sending the sequence identifier of the service data adaptation protocol SDAP service data unit SDU to the receiving end through the packet data convergence protocol PDCP, the method further includes:

检测服务质量流QoS Flow是否发生切换或重映射;在QoS Flow由源数据无线承载DRB切换或重映射到目标DRB时,通过PDCP向接收端发送SDAP SDU的顺序标识。Detect whether the quality of service flow QoS Flow is switched or remapped; when the QoS Flow is switched or remapped from the source data radio bearer DRB to the target DRB, the sequence identifier of the SDAP SDU is sent to the receiving end through PDCP.

发送端在发送SDAP SDU的顺序标识之前,需要确定一触发时机,发送端可以检测QoS Flow是否发生切换或重映射;在QoS Flow由源DRB切换或重映射到目标DRB时,确定触发时机出现,此时发送端可以通过PDCP向接收端发送SDAP SDU的顺序标识。Before sending the sequence identifier of SDAP SDU, the sender needs to determine a trigger timing. The sender can detect whether the QoS Flow is switched or remapped; when the QoS Flow is switched or remapped from the source DRB to the target DRB, it is determined that the trigger timing occurs. At this time, the sender can send the sequence identifier of the SDAP SDU to the receiver through PDCP.

其中,在QoS Flow由源数据无线承载DRB切换或重映射到目标DRB时,通过PDCP向接收端发送SDAP SDU的顺序标识的步骤,包括:若目标DRB上没有承载任何QoS flow,则根据需要发送的SDAP SDU的顺序标识所标识的顺序向接收端发送SDAP SDU的顺序标识;若目标DRB上承载有其他QoS flow,则根据目标DRB上的顺序标识向接收端发送SDAP SDU的顺序标识。Wherein, when the QoS Flow is switched or remapped from the source data radio bearer DRB to the target DRB, the step of sending the sequence identifier of the SDAP SDU to the receiving end through PDCP includes: if the target DRB does not bear any QoS flow, then send as needed The sequence identifier of the SDAP SDU is sent to the receiving end in the sequence identified by the sequence identifier of the SDAP SDU; if other QoS flows are carried on the target DRB, the sequence identifier of the SDAP SDU is sent to the receiving end according to the sequence identifier on the target DRB.

即在发送SDAP SDU的顺序标识时需要区分目标DRB上是否承载有QoS flow,若目标DRB是新DRB,即该DRB上没有承载任何QoS flow,则按照SDAP SDU的顺序标识所标识的顺序发送SDAP SDU的顺序标识。即基于源DRB上的PDCP PDU的SN号或者COUNT值或者源DRB上的SDAP的SN号进行发送。如果目标DRB上已经承载了其它QoS Flow,则使用目标DRB上已有的PDCP PDU的SN号或者COUNT值或者目标DRB上已有的SDAP的SN号,把SDAP SDU顺序发送出去。That is, when sending the sequence ID of SDAP SDU, it is necessary to distinguish whether the target DRB carries QoS flow. If the target DRB is a new DRB, that is, the DRB does not carry any QoS flow, then SDAP is sent in the sequence identified by the SDAP SDU sequence ID. Sequential identification of the SDU. That is, the transmission is performed based on the SN number or COUNT value of the PDCP PDU on the source DRB or the SN number of the SDAP on the source DRB. If the target DRB already bears other QoS Flows, use the SN number or COUNT value of the existing PDCP PDU on the target DRB or the existing SDAP SN number on the target DRB to send the SDAP SDUs in sequence.

本发明实施例提供的顺序标识发送方法,可以向接收端发送所确定的SDAP SDU顺序标识,并根据确定的顺序标识进行SDAP SDU传输,可以保证数据前转后SDAP SDU数据包不丢弃并重新传输,避免出现服务质量流在切换或者重映射时发生数据包乱序的情况。The method for sending the sequence identifier provided by the embodiment of the present invention can send the determined SDAP SDU sequence identifier to the receiving end, and transmit the SDAP SDU according to the determined sequence identifier, which can ensure that the SDAP SDU data packet is not discarded and retransmitted after the data is forwarded. , to avoid out-of-order data packets during switching or remapping of QoS flows.

本发明实施例还提供一种顺序标识接收方法,应用于接收端,如图3所示,包括:An embodiment of the present invention also provides a method for receiving sequential identifiers, which is applied to a receiving end, as shown in FIG. 3 , including:

步骤301、通过分组数据汇聚协议PDCP接收发送端发送的服务数据适配协议SDAP服务数据单元SDU的顺序标识,顺序标识根据PDCP或者SDAP确定。Step 301: Receive, through the packet data convergence protocol PDCP, the sequence identifier of the service data adaptation protocol SDAP service data unit SDU sent by the sender, where the sequence identifier is determined according to PDCP or SDAP.

本发明实施例的接收端可以是基站或者终端,在发送端根据PDCP或者SDAP确定SDAP SDU的顺序标识之后,接收端通过PDCP接收发送端发送的SDAP SDU的顺序标识。The receiving end in this embodiment of the present invention may be a base station or a terminal. After the transmitting end determines the sequence identifier of SDAP SDUs according to PDCP or SDAP, the receiving end receives the sequence identifier of SDAP SDUs sent by the transmitting end through PDCP.

其中通过分组数据汇聚协议PDCP接收发送端发送的服务数据适配协议SDAP服务数据单元SDU的顺序标识的步骤,包括:通过PDCP接收发送端发送的PDCP状态Status协议数据单元PDU,PDCP Status PDU包含需要发送的SDAP SDU的顺序标识;或者通过PDCP接收发送端发送的SDAP Status PDU,SDAP Status PDU包含需要发送的SDAP SDU的顺序标识。The step of receiving, through the packet data convergence protocol PDCP, the sequence identifier of the service data adaptation protocol SDAP service data unit SDU sent by the sender includes: receiving the PDCP Status Protocol Data Unit PDU sent by the sender through PDCP, where the PDCP Status PDU contains the required The sequence identifier of the SDAP SDU sent; or the SDAP Status PDU sent by the sender is received through PDCP. The SDAP Status PDU contains the sequence identifier of the SDAP SDU to be sent.

在发送端发送SDAP SDU的顺序标识时,发送端SDAP把需要发送的SDAP SDU的发送顺序标识发送给发送端PDCP,发送端PDCP组建PDCP Status PDU,其中组建的PDCP StatusPDU包含需要发送的SDAP SDU的顺序标识,然后由发送端PDCP通过PDCP将PDCP Status PDU发送到接收端。When the sender sends the SDAP SDU sequence identifier, the sender SDAP sends the SDAP SDU sending sequence identifier to be sent to the sender PDCP, and the sender PDCP builds a PDCP Status PDU, where the formed PDCP Status PDU contains the SDAP SDU to be sent. sequence identification, and then the PDCP at the transmitting end sends the PDCP Status PDU to the receiving end through PDCP.

接收端PDCP接收到PDCP Status PDU,进行解析,获取发送端SDAP发送的SDAP SDU的顺序标识,并将SDAP SDU的顺序标识发送给接收端的SDAP。The PDCP at the receiving end receives the PDCP Status PDU, parses it, obtains the sequence identifier of the SDAP SDU sent by the SDAP at the sending end, and sends the sequence identifier of the SDAP SDU to the SDAP at the receiving end.

或者在发送端的SDAP发送SDAP SDU的顺序标识信息时,SDAP组建合适的SDAPStatus PDU发送到接收端。接收端SDAP接收到SDAP Status PDU后,进行解析获取SDAP SDU的顺序标识。Or when the SDAP of the sender sends the sequence identification information of the SDAP SDU, the SDAP forms a suitable SDAPStatus PDU and sends it to the receiver. After the receiving end SDAP receives the SDAP Status PDU, it parses to obtain the sequence identifier of the SDAP SDU.

其中,SDAP组建合适的SDAP Status PDU如图4所示,其中D/C表示数据PDU还是控制PDU,D标识数据PDU,C标识控制PDU,保留字段Reserved可用R表示,整字节Octer可用Oct表示。Among them, SDAP forms a suitable SDAP Status PDU as shown in Figure 4, where D/C indicates data PDU or control PDU, D identifies data PDU, C identifies control PDU, reserved field Reserved can be represented by R, and the whole byte Octer can be represented by Oct .

PDU类型的长度为3bit,对应于SDAP控制PDU的类型。首次计数值(First COUNT,FC)的长度为32bits,表示本次需要发送给接收端SDAP的第一个SDAP SDU的顺序计数值,数量(Number)的长度为16bits,表示连续的COUNT的数目。The length of the PDU type is 3 bits, which corresponds to the type of SDAP control PDU. The length of the first count value (First COUNT, FC) is 32 bits, indicating the sequence count value of the first SDAP SDU that needs to be sent to the receiving end SDAP this time, and the length of the number (Number) is 16 bits, indicating the number of consecutive COUNTs.

其中SDAP PDU类型定义可参见表1,当SDAP PDU为控制PDU时,“000”表示其为SDAP状态报告。The definition of SDAP PDU type can refer to Table 1. When the SDAP PDU is a control PDU, "000" indicates that it is an SDAP status report.

比特bits 描述describe 000000 SDAP状态报告SDAP Status Report 001-111001-111 保留字段reserved text

表1Table 1

在本发明实施例中,通过分组数据汇聚协议PDCP接收发送端发送的服务数据适配协议SDAP服务数据单元SDU的顺序标识后,还包括:按照SDAP SDU的顺序标识对所接收到的SDAP SDU的排列顺序进行检验,并将检验结果反馈至发送端。In the embodiment of the present invention, after receiving the sequence identifier of the service data adaptation protocol SDAP service data unit SDU sent by the sender through the packet data convergence protocol PDCP, the method further includes: identifying the received SDAP SDU according to the sequence of the SDAP SDU. Arrange the order for inspection, and feed back the inspection result to the sender.

在发送端向接收端发送SDAP SDU的顺序标识之后,接收端可以根据SDAP SDU的顺序标识对接收到的SDAP SDU的排列顺序进行检验,在检测完成之后,将检验结果反馈至发送端。After the sender sends the sequence identifier of the SDAP SDUs to the receiver, the receiver can check the order of the received SDAP SDUs according to the sequence identifier of the SDAP SDUs, and after the detection is completed, the check result is fed back to the sender.

在本发明实施例中,若检测结果表明所接收到的SDAP SDU的排列顺序与SDAP SDU的顺序标识不一致,还包括:根据SDAP SDU的顺序标识对所接收到的SDAP SDU进行重新排序;将排序后的SDAP SDU发送至上层协议。In the embodiment of the present invention, if the detection result shows that the order of the received SDAP SDUs is inconsistent with the order identifiers of the SDAP SDUs, the method further includes: reordering the received SDAP SDUs according to the order identifiers of the SDAP SDUs; The subsequent SDAP SDU is sent to the upper layer protocol.

在接收端根据SDAP SDU的顺序标识对接收到的SDAP SDU的排列顺序进行检验之后,若出现所接收到的SDAP SDU的排列顺序与SDAP SDU的顺序标识不一致的情况,则可以根据SDAP SDU的顺序标识对所接收到的SDAP SDU进行重新排序,在排序完成之后,将排序后的SDAP SDU发送至上层协议。After the receiving end checks the order of the received SDAP SDUs according to the order identifier of the SDAP SDUs, if the order of the received SDAP SDUs is inconsistent with the order identifiers of the SDAP SDUs, the order of the SDAP SDUs can be The identifier reorders the received SDAP SDUs, and after the ordering is completed, the ordered SDAP SDUs are sent to the upper layer protocol.

在本发明实施例中,顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定;或者顺序标识根据SDAP的SN号确定。In the embodiment of the present invention, the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent; or the sequence identifier is determined according to the SDAP SN number.

可以基于PDCP或者SDAP确定顺序,在基于PDCP确定顺序标识时,可以根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP PDU分配的SN号或者COUNT值确定;在基于SDAP确定顺序标识时,可以根据SDAP的SN号确定。The order can be determined based on PDCP or SDAP. When the order identifier is determined based on PDCP, it can be determined according to the SN number or COUNT value allocated by the PDCP protocol sublayer for the PDCP PDU including the SDAP SDU to be sent; when the order identifier is determined based on SDAP, it can be determined. Determined according to the SN number of SDAP.

在本发明实施例中,当顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时;In the embodiment of the present invention, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent;

第一SDAP SDU的顺序标识为第二SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值;其中第一SDAP SDU与第二SDAP SDU相邻,第一SDAP SDU的顺序标识与第二SDAP SDU的顺序标识所表示的次序相邻,且第一SDAP SDU位于第二SDAP SDU之前。The sequence identifier of the first SDAP SDU is the SN number or COUNT value allocated by the PDCP PDU corresponding to the second SDAP SDU; wherein the first SDAP SDU is adjacent to the second SDAP SDU, and the sequence identifier of the first SDAP SDU is the same as that of the second SDAP SDU. The order indicated by the order identifier is adjacent, and the first SDAP SDU precedes the second SDAP SDU.

在顺序标识由SDAP SDU的PDCP PDU分配的SN号或者COUNT值确定时,可以确定第一SDAP SDU的顺序标识为第二SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值,这里的第一SDAP SDU与第二SDAP SDU相邻,且第一SDAP SDU位于第二SDAP SDU之前。所确定的第一SDAP SDU的顺序标识与第二SDAP SDU的顺序标识所表示的次序也相邻。When the sequence identifier is determined by the SN number or COUNT value allocated by the PDCP PDU of the SDAP SDU, it may be determined that the sequence identifier of the first SDAP SDU is the SN number or COUNT value allocated by the PDCP PDU corresponding to the second SDAP SDU, where the first SDAP SDU The SDU is adjacent to the second SDAP SDU, and the first SDAP SDU precedes the second SDAP SDU. The determined sequence identifier of the first SDAP SDU and the sequence indicated by the sequence identifier of the second SDAP SDU are also adjacent to each other.

即当前SDAP SDU的顺序标识的取值为当前SDAP SDU的紧邻的下一个SDAP SDU对应的PDCP PDU分配的SN或者COUNT值。且相邻的SDAP SDU的顺序标识所表示的次序也相邻。That is, the value of the sequence identifier of the current SDAP SDU is the SN or COUNT value allocated by the PDCP PDU corresponding to the next SDAP SDU immediately adjacent to the current SDAP SDU. And the sequence indicated by the sequence identifiers of adjacent SDAP SDUs is also adjacent.

在本发明实施例中,当顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时;In the embodiment of the present invention, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent;

第一SDAP SDU的顺序标识为根据第一SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值定义的一个SDAP变量参数;其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence identifier of the first SDAP SDU is an SDAP variable parameter defined according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the first SDAP SDU; wherein the sequence represented by the sequence identifiers of any adjacent SDAP SDUs is adjacent.

在顺序标识根据SDAP SDU的PDCP PDU分配的SN号或者COUNT值确定时,第一SDAPSDU的顺序标识可以为根据第一SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值定义的一个SDAP变量参数,这里的SDAP变量参数属于SDAP的内部值,可由SDAP识别。此时任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。即当前SDAP SDU的顺序标识可以为根据当前SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值定义的一个SDAP的内部值。When the sequence identifier is determined according to the SN number or COUNT value allocated by the PDCP PDU of the SDAP SDU, the sequence identifier of the first SDAP SDU may be an SDAP variable parameter defined according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the first SDAP SDU, The SDAP variable parameter here belongs to the internal value of SDAP and can be identified by SDAP. At this time, the sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent. That is, the sequence identifier of the current SDAP SDU may be an internal SDAP value defined according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the current SDAP SDU.

在本发明实施例中,当顺序标识根据SDAP的SN号确定时;SDAP SDU的顺序标识为SDAP协议子层内部可以识别的SDAP的SN号;其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。In the embodiment of the present invention, when the sequence identifier is determined according to the SN number of SDAP; the sequence identifier of SDAP SDU is the SN number of SDAP that can be identified inside the SDAP protocol sublayer; wherein the sequence identifier of any two adjacent SDAP SDUs The order of representations is adjacent.

当顺序标识根据SDAP的SN号确定时,可以根据SDAP协议子层内部可以识别的SDAP的SN号,确定顺序标识。即SDAP可以给每个发送的SDAP SDU分配一个SDAP协议子层内部可以识别的顺序号,比如引入SDAP的SN号。SDAP根据该SN号保证SDAP SDU的顺序,此时相邻的两个SDAP SDU的顺序标识所表示的次序相邻。When the sequence identifier is determined according to the SN number of the SDAP, the sequence identifier can be determined according to the SN number of the SDAP that can be identified inside the SDAP protocol sublayer. That is, the SDAP can assign a sequence number that can be recognized inside the SDAP protocol sublayer to each sent SDAP SDU, such as the SN number introduced into the SDAP. SDAP guarantees the sequence of SDAP SDUs according to the SN number, and at this time, the sequence indicated by the sequence identifiers of two adjacent SDAP SDUs is adjacent.

在本发明实施例中,通过PDCP接收发送端发送的PDCP状态Status协议数据单元PDU后,还包括:检测PDCP Status PDU中的预设标识是否携带了SDAP SDU的顺序;若预设标识携带了SDAP SDU的顺序,则确定接收到的PDCP Status PDU中上报了当前所携带的SDAPSDU的顺序。In the embodiment of the present invention, after receiving the PDCP Status Protocol Data Unit PDU sent by the sender through PDCP, the method further includes: detecting whether the preset identifier in the PDCP Status PDU carries the sequence of SDAP SDUs; if the preset identifier carries SDAP The sequence of the SDUs is determined as the sequence of the currently carried SDAPSDUs reported in the received PDCP Status PDU.

其中,PDCP Status PDU的格式如图5所示,其中D/C表示数据PDU还是控制PDU,D标识数据PDU,C标识控制PDU,保留字段Reserved可用R表示,整字节Octer可用Oct表示。首次丢失计数值(First Missing COUNT,FMC)指示在重新排序窗口内第一个丢失的PDCP SDU的计数值。Bitmap(基于位的映射)的长度为变量,在位图字段的长度可以是0,可以指示哪些SDU丢失,哪些SDU在接收PDCP实体中被正确接收。位图中第n位的位置为N,位图中的第一位的位置为1。The format of PDCP Status PDU is shown in Figure 5, where D/C indicates data PDU or control PDU, D identifies data PDU, C identifies control PDU, reserved field Reserved can be represented by R, and the whole byte Octer can be represented by Oct. The First Missing COUNT (FMC) indicates the count of the first missing PDCP SDU within the reordering window. The length of Bitmap (bit-based mapping) is variable, and the length of the bitmap field can be 0, which can indicate which SDUs are lost and which SDUs are correctly received in the receiving PDCP entity. The position of the nth bit in the bitmap is N, and the position of the first bit in the bitmap is 1.

在应用中Bitmap是PDCP Status中表示PDCP SN号丢失的bitmap,SDAP_Bitmap表示的是SDAP丢失时的bitmap。In the application, Bitmap is the bitmap in PDCP Status indicating that the PDCP SN number is lost, and SDAP_Bitmap indicates the bitmap when SDAP is lost.

通过检测预设标识FSDAP是否携带了SDAP SDU的顺序bitmap,可以确定PDCPStatus PDU中是否上报了当前所携带的SDAP SDU的顺序。比如FSDAP=0,则表示不携带,FSDAP=1,则表示携带。By detecting whether the preset identifier F SDAP carries the sequence bitmap of SDAP SDUs, it can be determined whether the sequence of currently carried SDAP SDUs is reported in the PDCPStatus PDU. For example, if F SDAP =0, it means not to carry, and if F SDAP =1, it means to carry.

在bitmap中的比特位置为Nth比特标识本次上报的SDAP SDU的顺序。如果该比特取值为0,表示本次没有上报该SDAP SDU的顺序,取值为1,则表示本次上报了该SDAP SDU的顺序。The bit position in the bitmap is the N th bit to identify the sequence of the SDAP SDUs reported this time. If the value of this bit is 0, it indicates that the sequence of the SDAP SDU is not reported this time, and if the value is 1, it indicates that the sequence of the SDAP SDU is reported this time.

本发明实施例的顺序标识接收方法,可以接收发送端发送的根据PDCP或者SDAP确定的SDAP SDU顺序标识,并根据确定的顺序标识对接收到的SDAP SDU进行排序,可以保证数据前转后SDAP SDU数据包不丢弃并重新传输,避免出现服务质量流在切换或者重映射时发生数据包乱序的情况。The method for receiving the sequence identifier in the embodiment of the present invention can receive the SDAP SDU sequence identifier determined according to PDCP or SDAP sent by the sender, and sort the received SDAP SDU according to the determined sequence identifier, which can ensure that the SDAP SDU after data forwarding Packets are not dropped and retransmitted to avoid out-of-order packets when QoS flows are switched or remapped.

本发明具体实施例提供一种发送设备,如图6所示,包括处理器610和收发器620,其中,处理器610用于:A specific embodiment of the present invention provides a sending device, as shown in FIG. 6 , including a processor 610 and a transceiver 620, wherein the processor 610 is used for:

根据分组数据汇聚协议PDCP或者服务数据适配协议SDAP,确定需要发送的多个SDAP服务数据单元SDU的顺序标识。According to the Packet Data Convergence Protocol PDCP or the Service Data Adaptation Protocol SDAP, the sequence identifiers of the multiple SDAP service data units SDUs to be sent are determined.

优选的,顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定;或者顺序标识根据SDAP的SN号确定。Preferably, the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent; or the sequence identifier is determined according to the SDAP SN number.

优选的,当顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时,处理器610还用于:Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent, the processor 610 is further configured to:

根据第二SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值,确定第一SDAP SDU的顺序标识;Determine the sequence identifier of the first SDAP SDU according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the second SDAP SDU;

其中第一SDAP SDU与第二SDAP SDU相邻,第一SDAP SDU的顺序标识与第二SDAPSDU的顺序标识所表示的次序相邻,且第一SDAP SDU位于第二SDAP SDU之前。The first SDAP SDU is adjacent to the second SDAP SDU, the sequence identifier of the first SDAP SDU is adjacent to the sequence indicated by the sequence identifier of the second SDAP SDU, and the first SDAP SDU is located before the second SDAP SDU.

优选的,当顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时,处理器610还用于:Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent, the processor 610 is further configured to:

根据第一SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值定义一个SDAP变量参数;Define an SDAP variable parameter according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the first SDAP SDU;

将定义的SDAP变量参数确定为第一SDAP SDU的顺序标识;Determining the defined SDAP variable parameter as the sequence identifier of the first SDAP SDU;

其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

优选的,当顺序标识根据SDAP的SN号确定时,处理器610还用于:Preferably, when the sequence identifier is determined according to the SN number of the SDAP, the processor 610 is further configured to:

根据SDAP协议子层内部可以识别的SDAP的SN号,确定SDAP SDU的顺序标识;其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence identifier of the SDAP SDU is determined according to the SN number of the SDAP that can be recognized inside the SDAP protocol sublayer; the sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

综上,本发明实施例提供的发送设备,可以根据PDCP或者SDAP,确定需要发送的多个SDAP SDU的顺序标识,根据确定的顺序标识进行SDAP SDU传输,可以保证数据前转后SDAP SDU数据包不丢弃并重新传输,避免出现服务质量流在切换或者重映射时发生数据包乱序的情况。To sum up, the sending device provided by the embodiments of the present invention can determine the sequence identifiers of multiple SDAP SDUs to be sent according to PDCP or SDAP, and perform SDAP SDU transmission according to the determined sequence identifiers, which can ensure that SDAP SDU data packets are forwarded after data forwarding. Do not discard and retransmit, to avoid the situation of out-of-order packets when the quality of service flow is switched or remapped.

本发明实施例还提供一种发送设备,如图7所示,包括处理器710和收发器720,其中,收发器720用于:An embodiment of the present invention further provides a sending device, as shown in FIG. 7 , including a processor 710 and a transceiver 720, wherein the transceiver 720 is used for:

通过分组数据汇聚协议PDCP向接收端发送服务数据适配协议SDAP服务数据单元SDU的顺序标识,顺序标识根据PDCP或者SDAP确定。Send the sequence identifier of the service data adaptation protocol SDAP service data unit SDU to the receiving end through the packet data convergence protocol PDCP, and the sequence identifier is determined according to PDCP or SDAP.

优选的,收发器720还用于:Preferably, the transceiver 720 is also used for:

通过PDCP向接收端发送PDCP状态Status协议数据单元PDU,PDCP Status PDU包含需要发送的SDAP SDU的顺序标识;或者Send the PDCP Status Status Protocol Data Unit PDU to the receiver through PDCP, and the PDCP Status PDU contains the sequence identifier of the SDAP SDU to be sent; or

通过PDCP向接收端发送SDAP Status PDU,SDAP Status PDU包含需要发送的SDAPSDU的顺序标识。The SDAP Status PDU is sent to the receiver through PDCP, and the SDAP Status PDU contains the sequence identifier of the SDAPSDU to be sent.

优选的,收发器720通过分组数据汇聚协议PDCP向接收端发送服务数据适配协议SDAP服务数据单元SDU的顺序标识之后,还用于:Preferably, after the transceiver 720 sends the sequence identifier of the service data adaptation protocol SDAP service data unit SDU to the receiving end through the packet data convergence protocol PDCP, it is also used for:

接收接收端根据SDAP SDU的顺序标识对所接收的SDAP SDU的排列顺序进行检验后的检验结果。Receive the check result after the receiving end checks the arrangement sequence of the received SDAP SDUs according to the sequence identifier of the SDAP SDUs.

优选的,顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定;或者顺序标识根据SDAP的SN号确定。Preferably, the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent; or the sequence identifier is determined according to the SDAP SN number.

优选的,当顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时;Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent;

第一SDAP SDU的顺序标识为第二SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值;The sequence identifier of the first SDAP SDU is the SN number or COUNT value allocated by the PDCP PDU corresponding to the second SDAP SDU;

其中第一SDAP SDU与第二SDAP SDU相邻,第一SDAP SDU的顺序标识与第二SDAPSDU的顺序标识所表示的次序相邻,且第一SDAP SDU位于第二SDAP SDU之前。The first SDAP SDU is adjacent to the second SDAP SDU, the sequence identifier of the first SDAP SDU is adjacent to the sequence indicated by the sequence identifier of the second SDAP SDU, and the first SDAP SDU is located before the second SDAP SDU.

优选的,当顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时;Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent;

第一SDAP SDU的顺序标识为根据第一SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值定义的一个SDAP变量参数;The sequence identifier of the first SDAP SDU is an SDAP variable parameter defined according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the first SDAP SDU;

其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

优选的,当顺序标识根据SDAP的SN号确定时;Preferably, when the sequence identifier is determined according to the SN number of SDAP;

SDAP SDU的顺序标识为SDAP协议子层内部可以识别的SDAP的SN号;其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence identifier of the SDAP SDU is the SN number of the SDAP that can be identified within the SDAP protocol sublayer; the sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

优选的,收发器720通过分组数据汇聚协议PDCP向接收端发送服务数据适配协议SDAP服务数据单元SDU的顺序标识之前,处理器710用于:Preferably, before the transceiver 720 sends the sequence identifier of the service data adaptation protocol SDAP service data unit SDU to the receiving end through the packet data convergence protocol PDCP, the processor 710 is configured to:

检测服务质量流QoS Flow是否发生切换或重映射;在QoS Flow由源数据无线承载DRB切换或重映射到目标DRB时,控制收发器通过PDCP向接收端发送SDAP SDU的顺序标识。Detect whether the quality of service flow QoS Flow is switched or remapped; when the QoS Flow is switched or remapped from the source data radio bearer DRB to the target DRB, the control transceiver sends the SDAP SDU sequence identifier to the receiving end through PDCP.

优选的,在QoS Flow由源数据无线承载DRB切换或重映射到目标DRB,收发器720通过PDCP向接收端发送SDAP SDU的顺序标识时,收发器720还用于:Preferably, when the QoS Flow is switched or remapped from the source data radio bearer DRB to the target DRB, and the transceiver 720 sends the sequence identifier of the SDAP SDU to the receiving end through PDCP, the transceiver 720 is further configured to:

若目标DRB上没有承载任何QoS flow,则根据需要发送的SDAP SDU的顺序标识所标识的顺序向接收端发送SDAP SDU的顺序标识;若目标DRB上承载有其他QoS flow,则根据目标DRB上的顺序标识向接收端发送SDAP SDU的顺序标识。If the target DRB does not carry any QoS flow, send the sequence identifier of SDAP SDU to the receiving end according to the sequence identified by the sequence identifier of SDAP SDU to be sent; The sequence identifier sends the sequence identifier of the SDAP SDU to the receiver.

综上,本发明实施例提供的发送设备,可以向接收端发送所确定的SDAP SDU顺序标识,并根据确定的顺序标识进行SDAP SDU传输,可以保证数据前转后SDAP SDU数据包不丢弃并重新传输,避免出现服务质量流在切换或者重映射时发生数据包乱序的情况。To sum up, the sending device provided by the embodiment of the present invention can send the determined SDAP SDU sequence identifier to the receiving end, and perform SDAP SDU transmission according to the determined sequence identifier, which can ensure that SDAP SDU data packets are not discarded and re-transmitted after data forwarding. transmission to avoid out-of-order packets during switching or remapping of QoS flows.

本发明实施例还提供一种接收设备,如图8所示,包括处理器810和收发器820,其中,收发器820用于:An embodiment of the present invention further provides a receiving device, as shown in FIG. 8 , including a processor 810 and a transceiver 820, wherein the transceiver 820 is used for:

通过分组数据汇聚协议PDCP接收发送端发送的服务数据适配协议SDAP服务数据单元SDU的顺序标识,顺序标识根据PDCP或者SDAP确定。The sequence identifier of the service data adaptation protocol SDAP service data unit SDU sent by the sender is received through the packet data convergence protocol PDCP, and the sequence identifier is determined according to PDCP or SDAP.

优选的,收发器820通过分组数据汇聚协议PDCP接收发送端发送的服务数据适配协议SDAP服务数据单元SDU的顺序标识时,还用于:Preferably, when the transceiver 820 receives the sequence identifier of the service data adaptation protocol SDAP service data unit SDU sent by the transmitting end through the packet data convergence protocol PDCP, it is also used for:

通过PDCP接收发送端发送的PDCP状态Status协议数据单元PDU,PDCP Status PDU包含需要发送的SDAP SDU的顺序标识;或者Receive the PDCP Status Status Protocol Data Unit PDU sent by the sender through PDCP, and the PDCP Status PDU contains the sequence identifier of the SDAP SDU to be sent; or

通过PDCP接收发送端发送的SDAP Status PDU,SDAP Status PDU包含需要发送的SDAP SDU的顺序标识。The SDAP Status PDU sent by the sender is received through PDCP, and the SDAP Status PDU contains the sequence identifier of the SDAP SDU to be sent.

优选的,收发器820通过分组数据汇聚协议PDCP接收发送端发送的服务数据适配协议SDAP服务数据单元SDU的顺序标识后,处理器810用于:Preferably, after the transceiver 820 receives the sequence identifier of the service data adaptation protocol SDAP service data unit SDU sent by the sender through the packet data convergence protocol PDCP, the processor 810 is configured to:

按照SDAP SDU的顺序标识对所接收到的SDAP SDU的排列顺序进行检验,并将检验结果反馈至发送端。The order of the received SDAP SDUs is checked according to the order identifier of the SDAP SDUs, and the check result is fed back to the sender.

优选的,若检测结果表明所接收到的SDAP SDU的排列顺序与SDAP SDU的顺序标识不一致,处理器810还用于:根据SDAP SDU的顺序标识对所接收到的SDAP SDU进行重新排序;控制收发器820将排序后的SDAP SDU发送至上层协议。Preferably, if the detection result shows that the order of the received SDAP SDUs is inconsistent with the order identifiers of the SDAP SDUs, the processor 810 is further configured to: reorder the received SDAP SDUs according to the order identifiers of the SDAP SDUs; control the sending and receiving The processor 820 sends the sorted SDAP SDUs to the upper layer protocol.

优选的,顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定;或者顺序标识根据SDAP的SN号确定。Preferably, the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be sent; or the sequence identifier is determined according to the SDAP SN number.

优选的,当顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时;Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent;

第一SDAP SDU的顺序标识为第二SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值;The sequence identifier of the first SDAP SDU is the SN number or COUNT value allocated by the PDCP PDU corresponding to the second SDAP SDU;

其中第一SDAP SDU与第二SDAP SDU相邻,第一SDAP SDU的顺序标识与第二SDAPSDU的顺序标识所表示的次序相邻,且第一SDAP SDU位于第二SDAP SDU之前。The first SDAP SDU is adjacent to the second SDAP SDU, the sequence identifier of the first SDAP SDU is adjacent to the sequence indicated by the sequence identifier of the second SDAP SDU, and the first SDAP SDU is located before the second SDAP SDU.

优选的,当顺序标识根据PDCP协议子层为包括所需要发送SDAP SDU的PDCP协议数据单元PDU分配的序列SN号或者计数COUNT值确定时;Preferably, when the sequence identifier is determined according to the sequence SN number or the count COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU that needs to be sent;

第一SDAP SDU的顺序标识为根据第一SDAP SDU对应的PDCP PDU分配的SN号或者COUNT值定义的一个SDAP变量参数;The sequence identifier of the first SDAP SDU is an SDAP variable parameter defined according to the SN number or COUNT value allocated by the PDCP PDU corresponding to the first SDAP SDU;

其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

优选的,当顺序标识根据SDAP的SN号确定时;Preferably, when the sequence identifier is determined according to the SN number of SDAP;

SDAP SDU的顺序标识为SDAP协议子层内部可以识别的SDAP的SN号;其中任意相邻的两个SDAP SDU的顺序标识所表示的次序相邻。The sequence identifier of the SDAP SDU is the SN number of the SDAP that can be identified within the SDAP protocol sublayer; wherein the sequence indicated by the sequence identifiers of any two adjacent SDAP SDUs is adjacent.

优选的,收发器820通过PDCP接收发送端发送的PDCP状态Status协议数据单元PDU后,处理器810还用于:Preferably, after the transceiver 820 receives the PDCP Status Protocol Data Unit PDU sent by the transmitter through PDCP, the processor 810 is further configured to:

检测PDCP Status PDU中的预设标识是否携带了SDAP SDU的顺序;若预设标识携带了SDAP SDU的顺序,则确定接收到的PDCP Status PDU中上报了当前所携带的SDAP SDU的顺序。Detect whether the preset identifier in the PDCP Status PDU carries the sequence of SDAP SDUs; if the preset identifier carries the sequence of SDAP SDUs, it is determined that the received PDCP Status PDU reports the sequence of SDAP SDUs currently carried.

综上,本发明实施例提供的接收设备,可以接收发送端发送的根据PDCP或者SDAP确定的SDAP SDU顺序标识,并根据确定的顺序标识对接收到的SDAP SDU进行排序,可以保证数据前转后SDAP SDU数据包不丢弃并重新传输,避免出现服务质量流在切换或者重映射时发生数据包乱序的情况。To sum up, the receiving device provided by the embodiment of the present invention can receive the SDAP SDU sequence identifier determined according to PDCP or SDAP sent by the transmitting end, and sort the received SDAP SDU according to the determined sequence identifier, which can ensure that data is forwarded after the data is forwarded. SDAP SDU data packets are not discarded and retransmitted to avoid out-of-order data packets during switching or remapping of QoS flows.

本发明实施例还提供一种发送设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序;处理器执行程序时实现上述的顺序标识确定方法以及顺序标识发送方法。Embodiments of the present invention also provide a sending device, including a memory, a processor, and a computer program stored in the memory and running on the processor; the processor implements the above-mentioned sequence identifier determination method and sequence identifier sending method when the processor executes the program.

具体的,如图9所示,所述发送设备包括:Specifically, as shown in Figure 9, the sending device includes:

处理器910,用于读取存储器920中的程序;a processor 910 for reading the program in the memory 920;

收发机930,用于在处理器910的控制下接收和发送数据。The transceiver 930 is used for receiving and transmitting data under the control of the processor 910 .

其中,在图9中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器910代表的一个或多个处理器和存储器920代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发机930可以是多个元件,即包括发送器和收发机,提供用于在传输介质上与各种其他装置通信的单元。处理器910负责管理总线架构和通常的处理,存储器920可以存储处理器910在执行操作时所使用的数据。9, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 910 and various circuits of memory represented by memory 920 are linked together. The bus architecture may also link together various other circuits, such as peripherals, voltage regulators, and power management circuits, which are well known in the art and, therefore, will not be described further herein. The bus interface provides the interface. Transceiver 930 may be a number of elements, including transmitters and transceivers, that provide a means for communicating with various other devices over a transmission medium. The processor 910 is responsible for managing the bus architecture and general processing, and the memory 920 may store data used by the processor 910 in performing operations.

处理器910负责管理总线架构和通常的处理,存储器920可以存储处理器910在执行操作时所使用的数据。The processor 910 is responsible for managing the bus architecture and general processing, and the memory 920 may store data used by the processor 910 in performing operations.

具体地,处理器910用于:根据分组数据汇聚协议PDCP或者服务数据适配协议SDAP,确定需要发送的多个SDAP服务数据单元SDU的顺序标识。处理器910还用于执行上述图6所对应实施方式中对应处理器的其他具体步骤,在此不再赘述。Specifically, the processor 910 is configured to: determine, according to the Packet Data Convergence Protocol PDCP or the Service Data Adaptation Protocol SDAP, the sequence identifiers of the multiple SDAP service data units SDUs to be sent. The processor 910 is further configured to execute other specific steps of the corresponding processor in the above-mentioned embodiment corresponding to FIG. 6 , which will not be repeated here.

收发机930用于:通过分组数据汇聚协议PDCP向接收端发送服务数据适配协议SDAP服务数据单元SDU的顺序标识,顺序标识根据PDCP或者SDAP确定。收发机930、处理器910还用于执行上述图7所对应实施方式中对应收发器和处理器的其他具体步骤,在此不再赘述。The transceiver 930 is configured to: send the sequence identifier of the service data adaptation protocol SDAP service data unit SDU to the receiving end through the packet data convergence protocol PDCP, and the sequence identifier is determined according to PDCP or SDAP. The transceiver 930 and the processor 910 are also configured to execute other specific steps corresponding to the transceiver and the processor in the above-mentioned embodiment corresponding to FIG. 7 , which will not be repeated here.

本发明实施例还提供一种接收设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序;处理器执行程序时实现上述的顺序标识接收方法。Embodiments of the present invention further provide a receiving device, including a memory, a processor, and a computer program stored in the memory and running on the processor; the processor implements the above-mentioned sequence identifier receiving method when executing the program.

具体的,如图10所示,所述接收设备包括:Specifically, as shown in Figure 10, the receiving device includes:

处理器1010,用于读取存储器1020中的程序;The processor 1010 is used for reading the program in the memory 1020;

收发机1030,用于在处理器1010的控制下接收和发送数据。The transceiver 1030 is used for receiving and transmitting data under the control of the processor 1010 .

其中,在图10中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器1010代表的一个或多个处理器和存储器1020代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发机1030可以是多个元件,即包括发送器和收发机,提供用于在传输介质上与各种其他装置通信的单元。处理器1010负责管理总线架构和通常的处理,存储器1020可以存储处理器1010在执行操作时所使用的数据。10, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 1010 and various circuits of memory represented by memory 1020 are linked together. The bus architecture may also link together various other circuits, such as peripherals, voltage regulators, and power management circuits, which are well known in the art and, therefore, will not be described further herein. The bus interface provides the interface. Transceiver 1030 may be a number of elements, including transmitters and transceivers, that provide means for communicating with various other devices over a transmission medium. The processor 1010 is responsible for managing the bus architecture and general processing, and the memory 1020 may store data used by the processor 1010 in performing operations.

处理器1010负责管理总线架构和通常的处理,存储器1020可以存储处理器1010在执行操作时所使用的数据。The processor 1010 is responsible for managing the bus architecture and general processing, and the memory 1020 may store data used by the processor 1010 in performing operations.

具体地,收发机1030用于:通过分组数据汇聚协议PDCP接收发送端发送的服务数据适配协议SDAP服务数据单元SDU的顺序标识,顺序标识根据PDCP或者SDAP确定。收发机1030、处理器1010还用于执行上述图8所对应实施方式中分别对应收发器和处理器的其他具体步骤,在此不再赘述。Specifically, the transceiver 1030 is configured to receive, through the packet data convergence protocol PDCP, the sequence identifier of the service data adaptation protocol SDAP service data unit SDU sent by the sender, where the sequence identifier is determined according to PDCP or SDAP. The transceiver 1030 and the processor 1010 are also configured to execute other specific steps corresponding to the transceiver and the processor in the above-mentioned embodiment corresponding to FIG. 8 , which will not be repeated here.

另外,本发明具体实施例还提供一种计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现顺序标识确定方法、顺序标识发送方法或者实现顺序标识接收方法。In addition, specific embodiments of the present invention also provide a computer-readable storage medium on which a computer program is stored, wherein when the program is executed by a processor, a method for determining a sequence identifier, a method for sending a sequence identifier, or a method for receiving a sequence identifier is implemented.

具体地,该计算机可读存储介质应用于发送设备或者接收设备,在分别应用于发送设备或者接收设备时,分别所对应方法中的执行步骤如上述的详细描述,在此不再赘述。Specifically, the computer-readable storage medium is applied to a sending device or a receiving device. When applied to the sending device or the receiving device, respectively, the execution steps in the corresponding methods are as described in detail above, and are not repeated here.

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

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included individually, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units.

上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述收发方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute part of the steps of the transceiving method described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM for short), Random Access Memory (RAM for short), magnetic disk or CD, etc. that can store program codes medium.

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

Claims (47)

1. A method for determining sequence identification is applied to a sending end, and is characterized by comprising the following steps:
and determining the sequence identification of a plurality of SDAP service data units SDU to be transmitted according to the packet data convergence protocol PDCP or the service data adaptation protocol SDAP.
2. The method according to claim 1, wherein the sequence identifier is determined according to sequence SN number or COUNT value allocated by PDCP protocol sublayer for PDCP protocol data unit PDU including SDAP SDU to be transmitted; or the sequence identification is determined according to the SN number of the SDAP.
3. The method according to claim 2, wherein when the sequence identifier is determined according to the sequence SN number or COUNT value allocated by the PDCP protocol sublayer to the PDCP protocol data unit PDU including the SDAP SDU to be transmitted, the step of determining the sequence identifier of the plurality of SDAP service data units SDU to be transmitted according to the packet data convergence protocol PDCP comprises:
determining the sequence identifier of the first SDAP SDU according to the SN number or the COUNT value distributed by the PDCP PDU corresponding to the second SDAP SDU;
wherein the first SDAP SDU is adjacent to the second SDAP SDU, the sequence identifier of the first SDAP SDU is adjacent to the sequence represented by the sequence identifier of the second SDAP SDU, and the first SDAP SDU is located before the second SDAP SDU.
4. The method according to claim 2, wherein when the sequence identifier is determined according to the sequence SN number or COUNT value allocated by the PDCP protocol sublayer to the PDCP protocol data unit PDU including the SDAP SDU to be transmitted, the step of determining the sequence identifier of the plurality of SDAP service data units SDU to be transmitted according to the packet data convergence protocol PDCP comprises:
defining an SDAP variable parameter according to an SN number or a COUNT value distributed by a PDCP PDU corresponding to a first SDAP SDU;
determining a defined SDAP variable parameter as a sequence identifier of the first SDAP SDU;
where the sequence identifications of any two SDAP SDUs that are adjacent in the order indicated.
5. The method of claim 2, wherein the step of determining the sequence identifier of the plurality of SDAP service data units SDUs to be transmitted according to the SDAP when the sequence identifier is determined according to the SN number of the SDAP comprises:
determining the sequence identifier of SDAP SDU according to the SN number of SDAP which can be identified in the SDAP protocol sub-layer;
where the sequence identifications of any two SDAP SDUs that are adjacent in the order indicated.
6. A sequence identifier sending method is applied to a sending end and is characterized by comprising the following steps:
and sending a sequence identifier of a service data adaptation protocol SDAP service data unit SDU to a receiving end through a packet data convergence protocol PDCP, wherein the sequence identifier is determined according to the PDCP or the SDAP.
7. The method as claimed in claim 6, wherein the step of sending the SDAP SDU sequence identifier to the receiving end via the PDCP comprises:
sending a PDCP Status protocol data unit PDU to the receiving terminal through a PDCP, wherein the PDCP Status PDU contains a sequence identification of SDAP SDU to be sent; or
And sending an SDAP Status PDU to the receiving terminal through the PDCP, wherein the SDAP Status PDU contains the sequence identification of the SDAP SDU to be sent.
8. The method as claimed in claim 6, wherein after sending the sequence identifier of the service data adaptation protocol SDAP service data unit SDU to the receiving end via the packet data convergence protocol PDCP, the method further comprises:
and receiving the inspection result of the receiving end after inspecting the arrangement sequence of the received SDAP SDUs according to the sequence identification of the SDAP SDUs.
9. The method for transmitting sequence identifier according to claim 6, wherein the sequence identifier is determined according to sequence SN number or COUNT value allocated by PDCP protocol sublayer for PDCP protocol data unit PDU including SDAP SDU to be transmitted; or the sequence identification is determined according to the SN number of the SDAP.
10. The method according to claim 9, wherein when the sequence identifier is determined according to a sequence SN number or a COUNT value allocated by a PDCP protocol sublayer to a PDCP protocol data unit PDU including an SDAP SDU to be transmitted;
the sequence identification of the first SDAP SDU is an SN number or a COUNT value distributed by the PDCP PDU corresponding to the second SDAP SDU;
wherein the first SDAP SDU is adjacent to the second SDAP SDU, the sequence identifier of the first SDAP SDU is adjacent to the sequence represented by the sequence identifier of the second SDAP SDU, and the first SDAP SDU is located before the second SDAP SDU.
11. The method according to claim 9, wherein when the sequence identifier is determined according to a sequence SN number or a COUNT value allocated by a PDCP protocol sublayer to a PDCP protocol data unit PDU including an SDAP SDU to be transmitted;
the sequence identification of the first SDAP SDU is an SDAP variable parameter defined according to an SN number or a COUNT value distributed by a PDCP PDU corresponding to the first SDAP SDU;
where the sequence identifications of any two SDAP SDUs that are adjacent in the order indicated.
12. The sequential identity transmitting method of claim 9, wherein when the sequential identity is determined according to an SN number of the SDAP;
the sequence identification of the SDAP SDU is an SN number of the SDAP which can be identified in the SDAP protocol sub-layer; where the sequence identifications of any two SDAP SDUs that are adjacent in the order indicated.
13. The method as claimed in claim 6, wherein before sending the sequence identifier of the service data adaptation protocol SDAP service data unit SDU to the receiving end through the packet data convergence protocol PDCP, the method further comprises:
detecting whether switching or remapping occurs to a QoS Flow;
and when the QoS Flow is switched or remapped to a target DRB by a source Data Radio Bearer (DRB), sending the sequence identification of the SDAP SDU to the receiving end through the PDCP.
14. The method of claim 13, wherein the step of sending the sequence identifier of the SDAP SDU to the receiving end through the PDCP when the QoS Flow is handed over from the source data radio bearer DRB or remapped to the target DRB comprises:
if the target DRB does not bear any QoS flow, sending the sequence identification of the SDAP SDU to the receiving end according to the sequence identified by the sequence identification of the SDAP SDU to be sent;
and if the target DRB bears other QoS flow, sending the sequence identification of the SDAP SDU to the receiving end according to the sequence identification on the target DRB.
15. A sequential identification receiving method is applied to a receiving end and is characterized by comprising the following steps:
and receiving a sequence identifier of a service data adaptation protocol SDAP service data unit SDU sent by a sending end through a packet data convergence protocol PDCP, wherein the sequence identifier is determined according to the PDCP or the SDAP.
16. The sequence identifier receiving method according to claim 15, wherein the step of receiving the sequence identifier of the service data adaptation protocol SDAP service data unit SDU sent by the sending end through the packet data convergence protocol PDCP comprises:
receiving a PDCP Status protocol data unit PDU sent by the sending end through a PDCP, wherein the PDCP Status PDU contains a sequence identifier of an SDAP SDU needing to be sent; or
And receiving the SDAP Status PDU sent by the sending end through the PDCP, wherein the SDAP Status PDU contains the sequence identification of the SDAP SDU to be sent.
17. The sequence identifier receiving method according to claim 15, wherein after receiving the sequence identifier of the service data adaptation protocol SDAP service data unit SDU sent by the sending end through the packet data convergence protocol PDCP, the method further comprises:
and checking the received sequence of the SDAP SDUs according to the sequence identification of the SDAP SDUs, and feeding back the checking result to the sending end.
18. The sequence identifier receiving method according to claim 17, wherein if the detection result indicates that the received sequence of the SDAP SDUs is inconsistent with the sequence identifier of the SDAP SDUs, further comprising: reordering the received SDAP SDUs according to the sequence identifiers of the SDAP SDUs;
and sending the sequenced SDAP SDUs to an upper layer protocol.
19. The sequence identifier receiving method according to claim 15, wherein the sequence identifier is determined according to a sequence SN number or a COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be transmitted; or the sequence identification is determined according to the SN number of the SDAP.
20. The sequence identification receiving method according to claim 19, wherein when the sequence identification is determined according to the sequence SN number or the COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be transmitted;
the sequence identification of the first SDAP SDU is an SN number or a COUNT value distributed by the PDCP PDU corresponding to the second SDAP SDU;
wherein the first SDAP SDU is adjacent to the second SDAP SDU, the sequence identifier of the first SDAP SDU is adjacent to the sequence represented by the sequence identifier of the second SDAP SDU, and the first SDAP SDU is located before the second SDAP SDU.
21. The sequence identification receiving method according to claim 19, wherein when the sequence identification is determined according to the sequence SN number or the COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be transmitted;
the sequence identification of the first SDAP SDU is an SDAP variable parameter defined according to an SN number or a COUNT value distributed by a PDCP PDU corresponding to the first SDAP SDU;
where the sequence identifications of any two SDAP SDUs that are adjacent in the order indicated.
22. The sequential identity reception method according to claim 19, wherein when the sequential identity is determined according to an SN number of the SDAP;
the sequence identification of the SDAP SDU is an SN number of the SDAP which can be identified in the SDAP protocol sub-layer; where the sequence identifications of any two SDAP SDUs that are adjacent in the order indicated.
23. The sequence identifier receiving method according to claim 16, wherein after receiving the PDCP Status protocol data unit PDU sent by the sending end through the PDCP, the method further comprises:
detecting whether a preset identifier in the PDCP Status PDU carries the sequence of the SDAP SDUs;
and if the preset identification carries the sequence of the SDAP SDUs, determining that the sequence of the SDAP SDUs carried currently is reported in the received PDCP Status PDU.
24. A transmitting device comprising a processor and a transceiver, the processor configured to:
and determining the sequence identification of a plurality of SDAP service data units SDU to be transmitted according to the packet data convergence protocol PDCP or the service data adaptation protocol SDAP.
25. The transmitting device according to claim 24, wherein the sequence identifier is determined according to a sequence SN number or a COUNT value allocated by the PDCP protocol sublayer for PDCP protocol data units PDU comprising the SDAP SDU to be transmitted; or the sequence identification is determined according to the SN number of the SDAP.
26. The transmitting device of claim 25, wherein when the sequence identifier is determined from a sequence SN number or a COUNT value assigned by the PDCP protocol sublayer to the PDCP protocol data unit PDU comprising the SDAP SDU that needs to be transmitted, the processor is further configured to:
determining the sequence identifier of the first SDAP SDU according to the SN number or the COUNT value distributed by the PDCP PDU corresponding to the second SDAP SDU;
wherein the first SDAP SDU is adjacent to the second SDAP SDU, the sequence identifier of the first SDAP SDU is adjacent to the sequence represented by the sequence identifier of the second SDAP SDU, and the first SDAP SDU is located before the second SDAP SDU.
27. The transmitting device of claim 25, wherein when the sequence identifier is determined from a sequence SN number or a COUNT value assigned by the PDCP protocol sublayer to the PDCP protocol data unit PDU comprising the SDAP SDU that needs to be transmitted, the processor is further configured to:
defining an SDAP variable parameter according to an SN number or a COUNT value distributed by a PDCP PDU corresponding to a first SDAP SDU;
determining a defined SDAP variable parameter as a sequence identifier of the first SDAP SDU;
where the sequence identifications of any two SDAP SDUs that are adjacent in the order indicated.
28. The transmitting device of claim 25, wherein when the sequence identifier is determined from an SN number of the SDAP, the processor is further configured to:
determining the sequence identifier of SDAP SDU according to the SN number of SDAP which can be identified in the SDAP protocol sub-layer;
where the sequence identifications of any two SDAP SDUs that are adjacent in the order indicated.
29. A transmitting device comprising a processor and a transceiver configured to:
and sending a sequence identifier of a service data adaptation protocol SDAP service data unit SDU to a receiving end through a packet data convergence protocol PDCP, wherein the sequence identifier is determined according to the PDCP or the SDAP.
30. The transmitting device of claim 29, wherein the transceiver is further configured to:
sending a PDCP Status protocol data unit PDU to the receiving terminal through a PDCP, wherein the PDCP Status PDU contains a sequence identification of SDAP SDU to be sent; or
And sending an SDAP Status PDU to the receiving terminal through the PDCP, wherein the SDAP Status PDU contains the sequence identification of the SDAP SDU to be sent.
31. The transmitting device of claim 29, wherein the transceiver is further configured to, after transmitting the sequence identifier of the service data adaptation protocol SDAP service data unit SDU to the receiving end via the packet data convergence protocol PDCP:
and receiving the inspection result of the receiving end after inspecting the arrangement sequence of the received SDAP SDUs according to the sequence identification of the SDAP SDUs.
32. The transmitting device as claimed in claim 29, wherein the sequence identifier is determined according to a sequence SN number or a COUNT value allocated by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU to be transmitted; or the sequence identification is determined according to the SN number of the SDAP.
33. The transmitting device as claimed in claim 32, wherein when the sequence identifier is determined according to a sequence SN number or a COUNT value assigned by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU required to be transmitted;
the sequence identification of the first SDAP SDU is an SN number or a COUNT value distributed by the PDCP PDU corresponding to the second SDAP SDU;
wherein the first SDAP SDU is adjacent to the second SDAP SDU, the sequence identifier of the first SDAP SDU is adjacent to the sequence represented by the sequence identifier of the second SDAP SDU, and the first SDAP SDU is located before the second SDAP SDU.
34. The transmitting device as claimed in claim 32, wherein when the sequence identifier is determined according to a sequence SN number or a COUNT value assigned by the PDCP protocol sublayer for the PDCP protocol data unit PDU including the SDAP SDU required to be transmitted;
the sequence identification of the first SDAP SDU is an SDAP variable parameter defined according to an SN number or a COUNT value distributed by a PDCP PDU corresponding to the first SDAP SDU;
where the sequence identifications of any two SDAP SDUs that are adjacent in the order indicated.
35. The transmitting device as claimed in claim 32, wherein when the sequence identifier is determined according to an SN number of the SDAP;
the sequence identification of the SDAP SDU is an SN number of the SDAP which can be identified in the SDAP protocol sub-layer; where the sequence identifications of any two SDAP SDUs that are adjacent in the order indicated.
36. The transmitting device of claim 29, wherein before the transceiver transmits the sequential identification of service data adaptation protocol SDAP service data units, SDUs, to the receiving end via packet data convergence protocol PDCP, the processor is configured to:
detecting whether switching or remapping occurs to a QoS Flow;
and when the QoS Flow is switched or remapped to a target DRB by a source Data Radio Bearer (DRB), controlling the transceiver to send the sequence identification of the SDAP SDU to the receiving end through the PDCP.
37. The transmitting device of claim 36, wherein when the QoS Flow is handed over or remapped by a source data radio bearer DRB to a target DRB, and the transceiver transmits the sequential identification of the SDAP SDUs to the receiving end via PDCP, the transceiver is further configured to:
if the target DRB does not bear any QoS flow, sending the sequence identification of the SDAP SDU to the receiving end according to the sequence identified by the sequence identification of the SDAP SDU to be sent;
and if the target DRB bears other QoS flow, sending the sequence identification of the SDAP SDU to the receiving end according to the sequence identification on the target DRB.
38. A receiving device comprising a processor and a transceiver, the transceiver being configured to:
and receiving a sequence identifier of a service data adaptation protocol SDAP service data unit SDU sent by a sending end through a packet data convergence protocol PDCP, wherein the sequence identifier is determined according to the PDCP or the SDAP.
39. The receiving device of claim 38, wherein the transceiver, when receiving the sequence identifier of the service data adaptation protocol SDAP service data unit SDU sent by the sending end through the packet data convergence protocol PDCP, is further configured to:
receiving a PDCP Status protocol data unit PDU sent by the sending end through a PDCP, wherein the PDCP Status PDU contains a sequence identifier of an SDAP SDU needing to be sent; or
And receiving the SDAP Status PDU sent by the sending end through the PDCP, wherein the SDAP Status PDU contains the sequence identification of the SDAP SDU to be sent.
40. The receiving device of claim 38, wherein after the transceiver receives the sequence identifier of the service data adaptation protocol SDAP service data unit SDU sent by the sending end through the packet data convergence protocol PDCP, the processor is configured to:
and checking the received sequence of the SDAP SDUs according to the sequence identification of the SDAP SDUs, and feeding back the checking result to the sending end.
41. The receiving device of claim 40, wherein if the detection result indicates that the received SDAPSDU sequence is not consistent with the SDAP SDU sequence identifier, the processor is further configured to: reordering the received SDAP SDUs according to the sequence identifiers of the SDAP SDUs;
and controlling the transceiver to send the sequenced SDAP SDUs to an upper layer protocol.
42. The receiving device according to claim 38, wherein the sequence identifier is determined according to a sequence SN number or a COUNT value allocated by the PDCP protocol sublayer for PDCP protocol data units PDU comprising the SDAP SDU required to be transmitted; or the sequence identification is determined according to the SN number of the SDAP.
43. The receiving device according to claim 42, wherein when the sequence identifier is determined according to a sequence SN number or a COUNT COUNT value assigned by a PDCP protocol sub-layer for PDCP protocol data units PDU comprising SDAP SDUs to be transmitted;
the sequence identification of the first SDAP SDU is an SN number or a COUNT value distributed by the PDCP PDU corresponding to the second SDAP SDU;
wherein the first SDAP SDU is adjacent to the second SDAP SDU, the sequence identifier of the first SDAP SDU is adjacent to the sequence represented by the sequence identifier of the second SDAP SDU, and the first SDAP SDU is located before the second SDAP SDU.
44. The receiving device according to claim 42, wherein when the sequence identifier is determined according to a sequence SN number or a COUNT COUNT value assigned by a PDCP protocol sub-layer for PDCP protocol data units PDU comprising SDAP SDUs to be transmitted;
the sequence identification of the first SDAP SDU is an SDAP variable parameter defined according to an SN number or a COUNT value distributed by a PDCP PDU corresponding to the first SDAP SDU;
where the sequence identifications of any two SDAP SDUs that are adjacent in the order indicated.
45. The receiving device of claim 42, wherein when the sequence identifier is determined from an SN number of an SDAP;
the sequence identification of the SDAP SDU is an SN number of the SDAP which can be identified in the SDAP protocol sub-layer; where the sequence identifications of any two SDAP SDUs that are adjacent in the order indicated.
46. The receiving device according to claim 39, wherein after the transceiver receives the PDCP STATUS protocol data Unit PDU sent by the sending end through the PDCP, the processor is further configured to:
detecting whether a preset identifier in the PDCP Status PDU carries the sequence of the SDAP SDUs;
and if the preset identification carries the sequence of the SDAP SDUs, determining that the sequence of the SDAP SDUs carried currently is reported in the received PDCP Status PDU.
47. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is characterized in that it implements the sequential identity determination method according to any one of claims 1 to 5 or implements the sequential identity transmission method according to any one of claims 6 to 14 or implements the steps in the sequential identity reception method according to any one of claims 15 to 23.
CN201810735458.XA 2018-07-06 2018-07-06 Sequence identification determining, sending and receiving method and sending and receiving equipment Active CN110691377B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810735458.XA CN110691377B (en) 2018-07-06 2018-07-06 Sequence identification determining, sending and receiving method and sending and receiving equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810735458.XA CN110691377B (en) 2018-07-06 2018-07-06 Sequence identification determining, sending and receiving method and sending and receiving equipment

Publications (2)

Publication Number Publication Date
CN110691377A true CN110691377A (en) 2020-01-14
CN110691377B CN110691377B (en) 2023-01-13

Family

ID=69107211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810735458.XA Active CN110691377B (en) 2018-07-06 2018-07-06 Sequence identification determining, sending and receiving method and sending and receiving equipment

Country Status (1)

Country Link
CN (1) CN110691377B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023283924A1 (en) * 2021-07-16 2023-01-19 北京小米移动软件有限公司 Data transmission method, data transmission apparatus, and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104272796A (en) * 2012-03-17 2015-01-07 黑莓有限公司 Handling packet data convergence protocol data units
CN107404396A (en) * 2016-05-20 2017-11-28 中国移动通信有限公司研究院 A kind of data transmission method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104272796A (en) * 2012-03-17 2015-01-07 黑莓有限公司 Handling packet data convergence protocol data units
CN107404396A (en) * 2016-05-20 2017-11-28 中国移动通信有限公司研究院 A kind of data transmission method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023283924A1 (en) * 2021-07-16 2023-01-19 北京小米移动软件有限公司 Data transmission method, data transmission apparatus, and storage medium
CN115812299A (en) * 2021-07-16 2023-03-17 北京小米移动软件有限公司 Data transmission method, data transmission device and storage medium

Also Published As

Publication number Publication date
CN110691377B (en) 2023-01-13

Similar Documents

Publication Publication Date Title
US11395184B2 (en) Method and apparatus for receiving data packets
TWI390912B (en) Efficient memory allocation in a wireless transmit/receiver unit
CN100459728C (en) System and method for polling transmitting protocol data unit in buffer memory
WO2018082433A1 (en) Method and system for sending and receiving data
WO2018127225A1 (en) Data transmission method, network side device and user equipment
TWI692225B (en) Method and device for transmitting data by agreement data unit
CN101855856A (en) Status reporting method in wireless communication system
JP2008153778A (en) Packet transfer device
WO2017185941A1 (en) Data transmission method and relevant device
KR20140097610A (en) Method and apparatus for sending radio link control status report for sending in a communication system based on a multi-radio access technologies
WO2019097705A1 (en) Communication device and communication method
TWI803388B (en) Method and apparatus for performing traffic flow management
CN112913277A (en) Data Transmission and Measurement Technology
WO2021159829A1 (en) Data transmission method and apparatus
CN110691377A (en) Sequence identification determining, sending and receiving method and sending and receiving equipment
JP7279881B2 (en) Wireless communication device, wireless communication method, and wireless communication system
CN108391297A (en) Equipment switching method and equipment, carrying configuration method and equipment, communication system
WO2019085042A1 (en) Communication method, base station, and apparatus having storage function
KR101376583B1 (en) Apparatus and method for nack configuration in mobile communication system
CN109561516A (en) The NAS PDU new biography of RRC a kind of and the sending method of re-transmission
CN114339882A (en) Data transmission method, device and equipment
WO2021064656A1 (en) User plane in integrated access and backhaul
CN110062418A (en) Air interface converting method and node device
JPWO2023141280A5 (en)

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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载