CN110012505B - Radio link control layer window determination method and device - Google Patents

Radio link control layer window determination method and device Download PDF

Info

Publication number
CN110012505B
CN110012505B CN201810011819.6A CN201810011819A CN110012505B CN 110012505 B CN110012505 B CN 110012505B CN 201810011819 A CN201810011819 A CN 201810011819A CN 110012505 B CN110012505 B CN 110012505B
Authority
CN
China
Prior art keywords
window
rlc
determining
occurs
fieldlength
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810011819.6A
Other languages
Chinese (zh)
Other versions
CN110012505A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810011819.6A priority Critical patent/CN110012505B/en
Publication of CN110012505A publication Critical patent/CN110012505A/en
Application granted granted Critical
Publication of CN110012505B publication Critical patent/CN110012505B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/02Data link layer protocols

Landscapes

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

Abstract

The invention discloses a method and a device for determining a wireless link control layer window, wherein the method comprises the following steps: receiving a radio link control layer protocol data unit (RLC PDU), wherein the RLC PDU comprises a Serial Number (SN); judging whether SN overturning occurs or not according to the SN; and if the SN is determined to be turned over, determining the SN value range falling into a window corresponding to the Radio Link Control (RLC) layer when the SN is turned over. The RLC can maintain the window with a fixed size when SN (service provider) overturn occurs, and the problems of retransmission, time delay, packet loss and the like in data transmission are avoided.

Description

无线链路控制层窗口确定方法和装置Radio link control layer window determination method and device

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种无线链路控制层窗口确定方法和装置。The present invention relates to the field of communication technologies, and in particular, to a method and device for determining a window of a radio link control layer.

背景技术Background technique

无线链路控制层RLC基于窗口状态变量维持一个窗口。根据RLC 38.322协议的规定,RLC中所有与数据传输操作相关的窗口状态变量的取值都受制于无线链路控制层协议数据单元RLC PDU中包括的序列号SN。例如,SN=6bit,则相应的窗口状态变量取值范围为0~63(2SN-1)。The radio link control layer RLC maintains a window based on the window state variable. According to the provisions of the RLC 38.322 protocol, the values of all window state variables related to data transmission operations in the RLC are subject to the sequence number SN included in the radio link control layer protocol data unit RLC PDU. For example, SN=6bit, the corresponding window state variable value range is 0~63 (2 SN -1).

但是,在第五代(5G)移动通信系统中,如果出现SN翻转(例如,当前传输的RLC PDU中包括的SN与之前传输过的RLC PDU中包括的SN相同),根据现有的RLC 38.322协议的规定,RLC对应的窗口缩小,导致数据传输过程中出现重传、时延、丢包等问题。However, in the fifth generation (5G) mobile communication system, if SN inversion occurs (for example, the SN included in the currently transmitted RLC PDU is the same as the SN included in the previously transmitted RLC PDU), according to the existing RLC 38.322 According to the provisions of the protocol, the window corresponding to RLC is reduced, which leads to problems such as retransmission, delay, and packet loss during data transmission.

发明内容SUMMARY OF THE INVENTION

本发明实施例的目的是提供一种无线链路控制层窗口确定的方法和装置,以使得在发生SN翻转时RLC能够维持固定大小的窗口,避免数据传输中出现重传、时延、丢包等问题。The purpose of the embodiments of the present invention is to provide a method and an apparatus for determining a window of a radio link control layer, so that the RLC can maintain a fixed-size window when an SN rollover occurs, so as to avoid retransmission, delay, and packet loss in data transmission. And other issues.

第一方面,提供了一种无线链路控制层窗口确定方法,包括:In a first aspect, a method for determining a radio link control layer window is provided, including:

接收无线链路控制层协议数据单元RLC PDU,其中,所述RLC PDU中包括序列号SN;receiving a radio link control layer protocol data unit RLC PDU, wherein the RLC PDU includes a sequence number SN;

根据所述SN,判断是否发生SN翻转;According to the SN, determine whether the SN rollover occurs;

若确定发生SN翻转,则确定发生SN翻转时落在无线链路控制层RLC对应的窗口中的SN取值范围。If it is determined that the SN inversion occurs, it is determined that the SN value range falls within the window corresponding to the RLC of the radio link control layer when the SN inversion occurs.

第二方面,提供了一种无线链路控制层窗口确定装置,包括:In a second aspect, an apparatus for determining a radio link control layer window is provided, including:

接收模块,用于接收无线链路控制层协议数据单元RLC PDU,其中,所述RLC PDU中包括序列号SN;a receiving module, configured to receive a radio link control layer protocol data unit RLC PDU, wherein the RLC PDU includes a sequence number SN;

判断模块,用于根据所述SN,判断是否发生SN翻转;a judging module for judging whether an SN flip occurs according to the SN;

确定模块,用于在确定发生SN翻转时,确定发生SN翻转时落在无线链路控制层RLC对应的窗口中的SN取值范围。The determining module is configured to, when it is determined that the SN inversion occurs, determine the SN value range that falls within the window corresponding to the RLC of the radio link control layer when the SN inversion occurs.

第三方面,提供了一种无线链路控制层窗口确定装置,该无线链路控制层窗口确定装置包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的无线链路控制层窗口确定程序,所述无线链路控制层窗口确定程序被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, a radio link control layer window determination apparatus is provided, the radio link control layer window determination apparatus includes a processor, a memory, and a radio link stored on the memory and operable on the processor A link control layer window determination program, which implements the steps of the method according to the first aspect when the radio link control layer window determination program is executed by the processor.

第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质上存储无线链路控制层窗口确定程序,所述无线链路控制层窗口确定程序被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, a computer-readable storage medium is provided, the computer-readable storage medium stores a radio link control layer window determination program, and the radio link control layer window determination program is executed by a processor. The steps of the method of one aspect.

在本发明实施例中,通过接收包括序列号SN的无线链路控制层协议数据单元RLCPDU,进而根据SN,判断是否发生SN翻转,以及在确定发生SN翻转时,确定发生SN翻转时落在无线链路控制层RLC对应的窗口中的SN取值范围,从而在发生SN翻转时RLC能够维持固定大小的窗口,避免数据传输中出现重传、时延、丢包等问题。In the embodiment of the present invention, by receiving the radio link control layer protocol data unit RLCPDU including the sequence number SN, it is then judged whether the SN inversion occurs according to the SN, and when it is determined that the SN inversion occurs, it is determined that the SN inversion occurs when the SN inversion occurs. The value range of the SN in the window corresponding to the RLC of the link control layer, so that the RLC can maintain a fixed-size window when the SN flip occurs, avoiding problems such as retransmission, delay, and packet loss in data transmission.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:

图1为本发明实施例提供的一种无线链路控制层窗口确定方法的流程示意图;1 is a schematic flowchart of a method for determining a radio link control layer window according to an embodiment of the present invention;

图2本发明实施例提供的一种无线链路控制层窗口确定装置的结构示意图;2 is a schematic structural diagram of an apparatus for determining a radio link control layer window according to an embodiment of the present invention;

图3是本发明实施例提供的网络设备的结构示意图;3 is a schematic structural diagram of a network device provided by an embodiment of the present invention;

图4是本发明实施例提供的终端设备的结构示意图。FIG. 4 is a schematic structural diagram of a terminal device provided by 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.

应该理解为,本发明实施例的技术方案可以应用于5G系统。It should be understood that the technical solutions of the embodiments of the present invention can be applied to a 5G system.

图1为本发明实施例提供的一种无线链路控制层窗口确定方法的流程示意图。方法100包括:FIG. 1 is a schematic flowchart of a method for determining a radio link control layer window according to an embodiment of the present invention. Method 100 includes:

步骤S110,接收无线链路控制层协议数据单元RLC PDU,其中,RLC PDU中包括序列号SN。Step S110: Receive a radio link control layer protocol data unit RLC PDU, wherein the RLC PDU includes a sequence number SN.

实际应用中,RLC层位于媒体接入控制层MAC之上,无线资源控制层RRC和分组数据汇聚协议层PDCP之下,是MAC层与更高层协议之间通信的桥梁。In practical applications, the RLC layer is located above the media access control layer MAC, and below the radio resource control layer RRC and the packet data convergence protocol layer PDCP, which is a bridge for communication between the MAC layer and higher layer protocols.

RLC接收到RLC PDU之后,确定RLC PDU中包括的SN。After the RLC receives the RLC PDU, it determines the SN included in the RLC PDU.

步骤S120,根据SN,判断是否发生SN翻转。Step S120, according to the SN, it is judged whether the SN inversion occurs.

步骤S130,若确定发生SN翻转,则确定发生SN翻转时落在无线链路控制层RLC对应的窗口中的SN取值范围。In step S130, if it is determined that the SN inversion occurs, it is determined that the SN value range falls within the window corresponding to the RLC of the radio link control layer when the SN inversion occurs.

RLC实体由上层RRC配置,并且根据业务类型分为三种工作模式:透明模式TM、非确认模式UM和确认模式AM。TM RLC和UM RLC各自分为发送实体和接收实体,AM RLC为单独一个实体,分为发送端和接收端。The RLC entity is configured by the upper layer RRC, and is divided into three working modes according to the service type: transparent mode TM, unacknowledged mode UM and acknowledged mode AM. The TM RLC and the UM RLC are respectively divided into a sending entity and a receiving entity, and the AM RLC is a single entity, divided into a sending end and a receiving end.

本发明实施例可以应用于UM RLC接收实体、AM RLC实体的接收端和AM RLC实体的发送端。The embodiments of the present invention can be applied to a UM RLC receiving entity, a receiving end of an AM RLC entity, and a transmitting end of an AM RLC entity.

针对不同工作模式的RLC,判断是否发生SN翻转以及确定发生SN翻转时落在RLC对应的窗口中的SN取值范围的方式不同,下面针对不同工作模式的RLC进行具体描述:For RLCs in different working modes, there are different ways of judging whether an SN inversion occurs and determining the SN value range that falls in the window corresponding to the RLC when an SN inversion occurs. The following is a detailed description of the RLCs in different working modes:

第一种:针对UM RLC接收实体,并且UM RLC接收实体对应的重组窗口达到稳定时The first type: for the UM RLC receiving entity, and when the reassembly window corresponding to the UM RLC receiving entity is stable

本发明实施例中,根据SN,判断是否发生SN翻转,包括:In this embodiment of the present invention, according to the SN, judging whether an SN rollover occurs, including:

根据SN,确定UM RLC接收实体对应的第一窗口状态变量RX_Next_Highest,以及UMRLC接收实体对应的重组窗口大小UM_Window_Size;According to the SN, determine the first window state variable RX_Next_Highest corresponding to the UM RLC receiving entity, and the reassembly window size UM_Window_Size corresponding to the UMRLC receiving entity;

判断第一窗口状态变量RX_Next_Highest是否满足下述条件:Determine whether the first window state variable RX_Next_Highest satisfies the following conditions:

RX_Next_Highest-UM_Window_Size<0;RX_Next_Highest-UM_Window_Size<0;

若是,则确定发生SN翻转。If so, it is determined that an SN rollover has occurred.

UM RLC接收实体接收到RLC PDU之后,确定RLC PDU中包括的序列号SN。例如,UMRLC接收实体接收到包括序列号SN=2的RLC PDU之后,确定SN=2。After receiving the RLC PDU, the UM RLC receiving entity determines the sequence number SN included in the RLC PDU. For example, after receiving the RLC PDU including the sequence number SN=2, the UMRLC receiving entity determines SN=2.

实际应用中,UM RLC接收实体收到的某些RLC PDU可能不包括SN,对于不包括SN的RLC PDU,无需进行后续处理。In practical applications, some RLC PDUs received by the UM RLC receiving entity may not include the SN, and subsequent processing is not required for the RLC PDUs that do not include the SN.

目前,UM RLC接收实体基于第一窗口状态变量RX_Next_Highest维持一个重组窗口大小为UM_Window_Size的重组窗口,现有的重组窗口确定方法为:落在UM RLC接收实体对应的重组窗口中的SN的取值范围为:At present, the UM RLC receiving entity maintains a reassembly window with a reassembly window size of UM_Window_Size based on the first window state variable RX_Next_Highest. The existing method for determining the reassembly window is: the value range of the SN in the reassembly window corresponding to the UM RLC receiving entity for:

RX_Next_Highest-UM_Window_Size≤SN<RX_Next_Highest。RX_Next_Highest-UM_Window_Size≤SN<RX_Next_Highest.

其中,第一窗口状态变量RX_Next_Highest的取值与SN和SN的域长sn-FieldLength相关,RX_Next_Highest=(SN+1)modulo(2sn-FieldLength);重组窗口大小占SN空间的一半,UM_Window_Size=2(sn-FieldLength)-1Among them, the value of the first window state variable RX_Next_Highest is related to the field length sn-FieldLength of SN and SN, RX_Next_Highest=(SN+1)modulo(2 sn-FieldLength ); the size of the reorganization window occupies half of the SN space, UM_Window_Size=2 (sn-FieldLength)-1 .

针对UM RLC接收实体,在重组窗口达到稳定时,即重组窗口的取值范围达到最大时,判断是否发生SN翻转。For the UM RLC receiving entity, when the reassembly window reaches stability, that is, when the value range of the reassembly window reaches the maximum, it is determined whether SN rollover occurs.

例如,根据接收到的RLC PDU确定SN=63,SN的域长sn-FieldLength=6bit。For example, SN=63 is determined according to the received RLC PDU, and the field length of the SN is sn-FieldLength=6 bits.

第一窗口状态变量RX_Next_Highest为:The first window state variable RX_Next_Highest is:

RX_Next_Highest=(63+1)module(26)=0;RX_Next_Highest=(63+1)module(2 6 )=0;

重组窗口大小UM_Window_Size为:The reorganized window size UM_Window_Size is:

UM_Window_Size=26-1=32UM_Window_Size=2 6-1 =32

此时,RX_Next_Highest-UM_Window_Size=0-32=-32<0,如果按照现有的窗口确定方法,落在UM RLC接收实体对应的重组窗口中的SN的取值范围为:-32≤SN<0,由于不会存在SN<0的情况,则确定UM RLC接收实体在传输RLC PDU时发生SN翻转。At this time, RX_Next_Highest-UM_Window_Size=0-32=-32<0, if according to the existing window determination method, the value range of the SN in the reassembly window corresponding to the UM RLC receiving entity is: -32≤SN<0 , since there is no situation of SN<0, it is determined that SN inversion occurs when the UM RLC receiving entity transmits the RLC PDU.

UM RLC接收实体在传输RLC PDU时发生SN翻转,则确定发生SN翻转时落在UM RLC接收实体对应的重组窗口中的SN取值范围的方式包括但不限于下述两种:If the SN rollover occurs when the UM RLC receiving entity transmits the RLC PDU, the methods for determining the SN value range in the reassembly window corresponding to the UM RLC receiving entity when the SN rollover occurs include but are not limited to the following two:

方式a:way a:

本发明实施例中,若确定发生SN翻转,则确定发生SN翻转时落在无线链路控制层RLC对应的窗口中的SN取值范围,包括:In this embodiment of the present invention, if it is determined that an SN inversion occurs, it is determined that the SN value range that falls in the window corresponding to the RLC of the radio link control layer when the SN inversion occurs, including:

更新UM RLC接收实体对应的第一翻转指示变量flag_um,得到更新后的第一翻转指示变量flag_um,其中,第一翻转指示变量flag_um用于指示发生SN翻转的次数;Update the first inversion indicator variable flag_um corresponding to the UM RLC receiving entity to obtain the updated first inversion indicator variable flag_um, wherein the first inversion indicator variable flag_um is used to indicate the number of times that SN inversion occurs;

根据更新后的第一翻转指示变量flag_um,确定发生SN翻转时落在UMRLC接收实体对应的重组窗口中的SN取值范围为:According to the updated first reversal indicator variable flag_um, it is determined that the SN value range that falls in the reassembly window corresponding to the UMRLC receiving entity when the SN reversal occurs is:

Figure GDA0002681097030000051
Figure GDA0002681097030000051

其中,i=[0,flag_um],sn-FieldLength为所述SN的域长。Wherein, i=[0, flag_um], and sn-FieldLength is the field length of the SN.

设置UM RLC接收实体通过第一窗口状态变量RX_Next_Highest和第一翻转指示变量flag_um共同维持一个重组窗口。落在UM RLC接收实体对应的重组窗口中的SN的取值范围为:Set the UM RLC receiving entity to jointly maintain a reassembly window through the first window state variable RX_Next_Highest and the first rollover indicator variable flag_um. The value range of the SN falling in the reassembly window corresponding to the UM RLC receiving entity is:

Figure GDA0002681097030000061
Figure GDA0002681097030000061

其中,第一翻转指示变量flag_um的初始值为0。Wherein, the initial value of the first flip indicator variable flag_um is 0.

在UM RLC接收实体开始传输RLC PDU之后,若没有发生SN翻转,也即若RX_Next_Highest-UM_Window_Size≥0,则第一翻转指示变量flag_um维持初始值为0不变,落在UMRLC接收实体对应的重组窗口中的SN的取值范围为:After the UM RLC receiving entity starts to transmit RLC PDUs, if no SN rollover occurs, that is, if RX_Next_Highest-UM_Window_Size ≥ 0, the first rollover indicator variable flag_um maintains the initial value of 0 and falls within the reassembly window corresponding to the UMRLC receiving entity The value range of SN in is:

RX_Next_Highest-UM_Window_Size≤SN<RX_Next_Highest;RX_Next_Highest-UM_Window_Size≤SN<RX_Next_Highest;

在UM RLC接收实体传输RLC PDU第一次发生SN翻转时,也即第一次出现RX_Next_Highest-UM_Window_Size<0时,更新第一翻转指示变量flag_um,具体为增加预设步长,例如,增加步长1,得到更新后的第一翻转指示变量flag_um=1,则落在UM RLC接收实体对应的重组窗口中的SN的取值范围为:When the SN rollover occurs for the first time in the RLC PDU transmitted by the UM RLC receiving entity, that is, when RX_Next_Highest-UM_Window_Size<0 occurs for the first time, the first rollover indicator variable flag_um is updated, specifically by increasing the preset step size, for example, increasing the step size 1. Obtain the updated first flip indicator variable flag_um=1, then the value range of the SN in the reorganization window corresponding to the UM RLC receiving entity is:

Figure GDA0002681097030000062
Figure GDA0002681097030000062

其中,i=[0,1];Among them, i=[0,1];

在UM RLC接收实体传输RLC PDU第二次发生SN翻转时,也即第二次出现RX_Next_Highest-UM_Window_Size<0时,再次更新第一翻转指示变量flag_um,具体为增加预设步长,例如,增加步长1,得到更新后的第一翻转指示变量flag_um=2,则落在UM RLC接收实体对应的重组窗口中的SN的取值范围为:When the SN rollover occurs for the second time in the transmission of the RLC PDU by the UM RLC receiving entity, that is, when RX_Next_Highest-UM_Window_Size<0 occurs for the second time, the first rollover indicator variable flag_um is updated again, specifically to increase the preset step size, for example, increase the step size Length 1, the updated first flip indicator variable flag_um=2 is obtained, then the value range of the SN in the reorganization window corresponding to the UM RLC receiving entity is:

Figure GDA0002681097030000063
Figure GDA0002681097030000063

其中,i=[0,2];Among them, i=[0,2];

以此类推,随着发生SN翻转的次数的增多,不断调整落在UM RLC接收实体对应的重组窗口中的SN的取值范围,以实现在发生SN翻转时能够维持固定大小的窗口,避免出现窗口错误移动以及丢包等问题。By analogy, with the increase of the number of SN rollovers, the value range of the SN falling in the reassembly window corresponding to the UM RLC receiving entity is continuously adjusted, so as to maintain a fixed size window when the SN rollover occurs and avoid the occurrence of Problems such as wrong window movement and packet loss.

方式b:way b:

本发明实施例中,若确定发生SN翻转,则确定发生SN翻转时落在无线链路控制层RLC对应的窗口中的SN取值范围,包括:In this embodiment of the present invention, if it is determined that an SN inversion occurs, it is determined that the SN value range that falls in the window corresponding to the RLC of the radio link control layer when the SN inversion occurs, including:

确定发生SN翻转时落在UM RLC接收实体对应的重组窗口中的SN取值范围为:It is determined that the value range of the SN falling in the reassembly window corresponding to the UM RLC receiving entity when the SN rollover occurs is:

2sn-FieldLength-(UM_Window_Size-RX_Next_Highest)≤SN<2sn-FieldLength,或,2 sn-FieldLength -(UM_Window_Size-RX_Next_Highest)≤SN < 2 sn-FieldLength , or,

0≤SN<RX_Next_Highest,0≤SN<RX_Next_Highest,

其中,sn-FieldLength为SN的域长。Among them, sn-FieldLength is the field length of SN.

UM RLC接收实体在发生SN翻转和未发生SN翻转时,对落在UM RLC接收实体对应的重组窗口中的SN的取值范围进行不同的设置。The UM RLC receiving entity performs different settings on the value range of the SN falling in the reassembly window corresponding to the UM RLC receiving entity when the SN inversion occurs and when the SN inversion does not occur.

在未发生SN翻转时,落在UM RLC接收实体对应的重组窗口中的SN的取值范围为:When no SN rollover occurs, the value range of the SN falling in the reassembly window corresponding to the UM RLC receiving entity is:

RX_Next_Highest-UM_Window_Size≤SN<RX_Next_Highest;RX_Next_Highest-UM_Window_Size≤SN<RX_Next_Highest;

在发生SN翻转时,落在UM RLC接收实体对应的重组窗口中的SN的取值范围为:When an SN rollover occurs, the value range of the SN falling in the reassembly window corresponding to the UM RLC receiving entity is:

2sn-FieldLength-(UM_Window_Size-RX_Next_Highest)≤SN<2sn-FieldLength,或,2 sn-FieldLength -(UM_Window_Size-RX_Next_Highest)≤SN < 2 sn-FieldLength , or,

0≤SN<RX_Next_Highest。0≤SN<RX_Next_Highest.

通过在UM RLC接收实体在发生SN翻转和未发生SN翻转时,对落在UM RLC接收实体对应的重组窗口中的SN的取值范围进行不同的设置,以实现在发生SN翻转时能够维持固定大小的窗口,避免出现窗口错误移动以及丢包等问题。The value range of the SN falling in the reassembly window corresponding to the UM RLC receiving entity is set differently when the SN rollover occurs and when the SN rollover does not occur in the UM RLC receiving entity, so that the SN rollover can be maintained when the SN rollover occurs. The size of the window to avoid errors such as window movement and packet loss.

第二种:针对AM RLC实体的发送端The second: for the sender of the AM RLC entity

本发明实施例中,根据SN,判断是否发生SN翻转,包括:In this embodiment of the present invention, according to the SN, judging whether an SN rollover occurs, including:

根据所述SN,确定AM RLC实体的发送端对应的第二窗口状态变量TX_Next_Ack,以及AM RLC实体的发送端对应的发送窗口大小AM_Window_Size;According to the SN, determine the second window state variable TX_Next_Ack corresponding to the transmitting end of the AM RLC entity, and the sending window size AM_Window_Size corresponding to the transmitting end of the AM RLC entity;

判断第二窗口状态变量TX_Next_Ack是否满足下述条件:Determine whether the second window state variable TX_Next_Ack satisfies the following conditions:

TX_Next_Ack+AM_Window_Size>2[sn-FieldLength]-1,TX_Next_Ack+AM_Window_Size>2 [sn-FieldLength] -1,

其中,sn-FieldLength为所述SN的域长;Wherein, sn-FieldLength is the field length of the SN;

若是,则确定发生SN翻转。If so, it is determined that an SN rollover has occurred.

AM RLC实体的发送端接收到RLC PDU之后,确定RLC PDU中包括的序列号SN。例如,AM RL实体的发送端接收到包括序列号SN=2的RLC PDU之后,确定SN=2。After receiving the RLC PDU, the transmitter of the AM RLC entity determines the sequence number SN included in the RLC PDU. For example, after receiving the RLC PDU including the sequence number SN=2, the transmitter of the AM RL entity determines SN=2.

实际应用中,AM RLC实体的发送端基于第二窗口状态变量TX_Next_Ack维持一个发送窗口大小为AM_Window_Size的发送窗口。In practical applications, the sending end of the AM RLC entity maintains a sending window whose size is AM_Window_Size based on the second window state variable TX_Next_Ack.

其中,第二窗口状态变量TX_Next_Ack的取值与SN和SN的域长sn-FieldLength相关,TX_Next_Ack=(SN+1)modulo(2sn-FieldLength);发送窗口大小占SN空间的一半,AM_Window_Size=2(sn-FieldLength)-1Among them, the value of the second window state variable TX_Next_Ack is related to the field length sn-FieldLength of SN and SN, TX_Next_Ack=(SN+1)modulo(2 sn-FieldLength ); the sending window size occupies half of the SN space, AM_Window_Size=2 (sn-FieldLength)-1 .

例如,根据接收到的RLC PDU确定SN=2048,SN的域长sn-FieldLength=12bit。For example, SN=2048 is determined according to the received RLC PDU, and the field length of the SN is sn-FieldLength=12 bits.

第二窗口状态变量TX_Next_Ack为:The second window state variable TX_Next_Ack is:

TX_Next_Ack=(2048+1)module(212)=2049;TX_Next_Ack=(2048+1)module(2 12 )=2049;

发送窗口大小AM_Window_Size为:The sending window size AM_Window_Size is:

AM_Window_Size=212-1=2048。AM_Window_Size=2 12-1 =2048.

此时,TX_Next_Ack+AM_Window_Size=2049+2048=4097,2[sn-FieldLength]-1=4095,此时,TX_Next_Ack+AM_Window_Size>2[sn-FieldLength]-1,则确定AM RLC实体的发送端在传输RLC PDU时发生SN翻转。At this time, TX_Next_Ack+AM_Window_Size=2049+2048=4097, 2 [sn-FieldLength] -1=4095, at this time, TX_Next_Ack+AM_Window_Size>2 [sn-FieldLength] -1, it is determined that the sender of the AM RLC entity is transmitting SN rollover occurs during RLC PDU.

AM RLC实体的发送端在传输RLC PDU时发生SN翻转,则确定发生SN翻转时落在AMRLC实体的发送端对应的发送窗口中的SN取值范围的方式包括但不限于下述两种:When the sender of the AM RLC entity has an SN rollover when transmitting an RLC PDU, the methods for determining the SN value range that falls within the sending window corresponding to the sender of the AM RLC entity when the SN rollover occurs include but are not limited to the following two:

方式a:way a:

本发明实施例中,若确定发生SN翻转,则确定发生SN翻转时落在无线链路控制层RLC对应的窗口中的SN取值范围,包括:In this embodiment of the present invention, if it is determined that an SN inversion occurs, it is determined that the SN value range that falls in the window corresponding to the RLC of the radio link control layer when the SN inversion occurs, including:

更新AM RLC实体的发送端对应的第二翻转指示变量flag_am_t,得到更新后的第二翻转指示变量flag_am_t,其中,第二翻转指示变量flag_am_t用于指示发生SN翻转的次数;Update the second inversion indicator variable flag_am_t corresponding to the transmitting end of the AM RLC entity, obtain the updated second inversion indicator variable flag_am_t, wherein the second inversion indicator variable flag_am_t is used to indicate the number of times that SN inversion occurs;

根据更新后的第二翻转指示变量flag_am_t,确定发生SN翻转时落在AM RLC实体的发送端对应的发送窗口中的SN取值范围为:According to the updated second inversion indicator variable flag_am_t, it is determined that the value range of the SN falling in the transmission window corresponding to the transmitting end of the AM RLC entity when the SN inversion occurs is:

Figure GDA0002681097030000091
Figure GDA0002681097030000091

其中,i=[0,flag_am_t]。where i=[0, flag_am_t].

设置AM RLC实体的发送端通过第二窗口状态变量TX_Next_Ack和第二翻转指示变量flag_am_t共同维持一个发送窗口。落在AM RLC实体的发送端对应的发送窗口中的SN的取值范围为:The sending end of the AM RLC entity is set to maintain a sending window together through the second window state variable TX_Next_Ack and the second rollover indicator variable flag_am_t. The value range of the SN falling in the sending window corresponding to the sending end of the AM RLC entity is:

Figure GDA0002681097030000092
Figure GDA0002681097030000092

其中,第二翻转指示变量flag_am_t的初始值为0。Wherein, the initial value of the second inversion indicator variable flag_am_t is 0.

在AM RLC实体的发送端开始传输RLC PDU之后,若没有发生SN翻转,也即若TX_Next_Ack+AM_Window_Size≤2[sn-FieldLength]-1,则第二翻转指示变量flag_am_t维持初始值为0不变,落在AM RLC实体的发送端对应的重组窗口中的SN的取值范围为:After the sender of the AM RLC entity starts to transmit the RLC PDU, if there is no SN rollover, that is, if TX_Next_Ack+AM_Window_Size≤2 [sn-FieldLength] -1, the second rollover indicator variable flag_am_t maintains the initial value of 0 unchanged. The value range of the SN falling in the reassembly window corresponding to the sender of the AM RLC entity is:

TX_Next_Ack≤SN<TX_Next_Ack+AM_Window_Size;TX_Next_Ack≤SN<TX_Next_Ack+AM_Window_Size;

在AM RLC实体的发送端传输RLC PDU第一次发生SN翻转时,也即第一次出现TX_Next_Ack+AM_Window_Size>2[sn-FieldLength]-1时,更新第二翻转指示变量flag_am_t,具体为增加预设步长,例如,增加步长1,得到更新后的第二翻转指示变量flag_am_t=1,则落在AM RLC实体的发送端对应的发送窗口中的SN的取值范围为:When the SN rollover occurs for the first time in the transmission of the RLC PDU by the sender of the AM RLC entity, that is, when TX_Next_Ack+AM_Window_Size>2 [sn-FieldLength] -1 occurs for the first time, the second rollover indicator variable flag_am_t is updated. Suppose the step size, for example, increase the step size by 1 to obtain the updated second flip indicator variable flag_am_t=1, then the value range of the SN in the sending window corresponding to the sending end of the AM RLC entity is:

TX_Next_Ack≤SN+i*2[sn-FieldLength]<TX_Next_Ack+AM_Window_Size,TX_Next_Ack≤SN+i*2 [sn-FieldLength] <TX_Next_Ack+AM_Window_Size,

其中,i=[0,1];Among them, i=[0,1];

在AM RLC实体的发送端传输RLC PDU第二次发生SN翻转时,也即第二次出现TX_Next_Ack+AM_Window_Size>2[sn-FieldLength]-1时,再次更新第二翻转指示变量flag_am_t,具体为增加预设步长,例如,增加步长1,得到更新后的第一翻转指示变量flag_am_t=2,则落在AM RLC实体的发送端对应的发送窗口中的SN的取值范围为:When the sending end of the AM RLC entity transmits an RLC PDU with an SN rollover for the second time, that is, when TX_Next_Ack+AM_Window_Size>2 [sn-FieldLength] -1 occurs for the second time, the second rollover indicator variable flag_am_t is updated again, specifically adding The preset step size, for example, increases the step size by 1 to obtain the updated first flip indicator variable flag_am_t=2, then the value range of the SN in the sending window corresponding to the sending end of the AM RLC entity is:

Figure GDA0002681097030000101
Figure GDA0002681097030000101

其中,i=[0,2];Among them, i=[0,2];

以此类推,随着发生SN翻转的次数的增多,不断调整落在AM RLC实体的发送端对应的发送窗口中的SN的取值范围,以实现在发生SN翻转时能够维持固定大小的窗口,避免出现重传、时延等问题。By analogy, with the increase of the number of SN rollovers, the value range of the SN falling in the sending window corresponding to the sending end of the AM RLC entity is continuously adjusted, so as to maintain a fixed size window when the SN rollover occurs. Avoid problems such as retransmission and delay.

方式b:way b:

本发明实施例中,若确定发生SN翻转,则确定发生SN翻转时落在无线链路控制层RLC对应的窗口中的SN取值范围,包括:In this embodiment of the present invention, if it is determined that an SN inversion occurs, it is determined that the SN value range that falls in the window corresponding to the RLC of the radio link control layer when the SN inversion occurs, including:

若确定发生SN翻转,则确定发生SN翻转时落在AM RLC实体的发送端对应的发送窗口中的SN取值范围为:If it is determined that an SN rollover occurs, it is determined that the SN value range that falls in the sending window corresponding to the sender of the AM RLC entity when the SN rollover occurs is:

TX_Next_Ack≤SN<2[sn-FieldLength],或,TX_Next_Ack≤SN<2 [sn-FieldLength] , or,

0≤SN<2[sn-FieldLength]-TX_Next_Ack。0≤SN<2 [sn-FieldLength] -TX_Next_Ack.

AM RLC实体的发送端在发生SN翻转和未发生SN翻转时,对落在AM RLC实体的发送端对应的发送窗口中的SN的取值范围进行不同的设置。The sending end of the AM RLC entity sets different value ranges of the SNs in the sending window corresponding to the sending end of the AM RLC entity when the SN inversion occurs and when the SN inversion does not occur.

在未发生SN翻转时,落在AM RLC实体的发送端对应的发送窗口中的SN的取值范围为:When no SN rollover occurs, the value range of the SN falling in the sending window corresponding to the sending end of the AM RLC entity is:

TX_Next_Ack≤SN<TX_Next_Ack+AM_Window_Size;TX_Next_Ack≤SN<TX_Next_Ack+AM_Window_Size;

在发生SN翻转时,落在AM RLC实体的发送端对应的发送窗口中的SN的取值范围为:When the SN rollover occurs, the value range of the SN falling in the sending window corresponding to the sending end of the AM RLC entity is:

TX_Next_Ack≤SN<2[sn-FieldLength],或,TX_Next_Ack≤SN<2 [sn-FieldLength] , or,

0≤SN<2[sn-FieldLength]-TX_Next_Ack。0≤SN<2 [sn-FieldLength] -TX_Next_Ack.

通过在AM RLC实体的发送端发生SN翻转和未发生SN翻转时,对落在AM RLC实体的发送端对应的发送窗口中的SN的取值范围进行不同的设置,以实现在发生SN翻转时能够维持固定大小的窗口,避免出现重传、时延等问题。By setting the value range of the SN in the sending window corresponding to the sending end of the AM RLC entity when the SN inversion occurs and when the SN inversion does not occur at the transmitting end of the AM RLC entity, different settings are performed, so as to realize the SN inversion when the SN inversion occurs. It can maintain a fixed size window to avoid problems such as retransmission and delay.

第三种:针对AM RLC实体的接收端The third type: for the receiver of the AM RLC entity

本发明实施例中,根据SN,判断是否发生SN翻转,包括:In this embodiment of the present invention, according to the SN, judging whether an SN rollover occurs, including:

根据SN,确定AM RLC实体的接收端对应的第三窗口状态变量RX_Next,以及AM RLC实体的接收端对应的接收窗口大小AM_Window_Size;According to the SN, determine the third window state variable RX_Next corresponding to the receiving end of the AM RLC entity, and the receiving window size AM_Window_Size corresponding to the receiving end of the AM RLC entity;

判断第三窗口状态变量RX_Next是否满足下述条件:Determine whether the third window state variable RX_Next satisfies the following conditions:

RX_Next+AM_Window_Size>2[sn-FieldLength]-1,RX_Next+AM_Window_Size>2 [sn-FieldLength] -1,

其中,sn-FieldLength为所述SN的域长;Wherein, sn-FieldLength is the field length of the SN;

若是,则确定发生SN翻转。If so, it is determined that an SN rollover has occurred.

AM RLC实体的接收端接收到RLC PDU之后,确定RLC PDU中包括的序列号SN。例如,AM RL实体的接收端接收到包括序列号SN=2的RLC PDU之后,确定SN=2。After receiving the RLC PDU, the receiver of the AM RLC entity determines the sequence number SN included in the RLC PDU. For example, after receiving the RLC PDU including the sequence number SN=2, the receiving end of the AM RL entity determines SN=2.

实际应用中,AM RLC实体的接收端基于第三窗口状态变量RX_Next维持一个接收窗口大小为AM_Window_Size的接收窗口。In practical applications, the receiving end of the AM RLC entity maintains a receiving window with a receiving window size of AM_Window_Size based on the third window state variable RX_Next.

其中,第三窗口状态变量RX_Next的取值与SN和SN的域长sn-FieldLength相关,RX_Next=(SN+1)modulo(2sn-FieldLength);接收窗口大小占SN空间的一半,AM_Window_Size=2(sn-FieldLength)-1Among them, the value of the third window state variable RX_Next is related to the field length sn-FieldLength of SN and SN, RX_Next=(SN+1)modulo(2 sn-FieldLength ); the receiving window size occupies half of the SN space, AM_Window_Size=2 (sn-FieldLength)-1 .

例如,根据接收到的RLC PDU确定SN=2048,SN的域长sn-FieldLength=12bit。For example, SN=2048 is determined according to the received RLC PDU, and the field length of the SN is sn-FieldLength=12 bits.

第三窗口状态变量RX_Next为:The third window state variable RX_Next is:

RX_Next=(2048+1)module(212)=2049;RX_Next=(2048+1)module(2 12 )=2049;

接收窗口大小AM_Window_Size为:The receiving window size AM_Window_Size is:

AM_Window_Size=212-1=2048。AM_Window_Size=2 12-1 =2048.

此时,RX_Next+AM_Window_Size=2049+2048=4097,2[sn-FieldLength]-1=4095,此时,RX_Next+AM_Window_Size>2[sn-FieldLength]-1,则确定AM RLC实体的接收端在传输RLCPDU时发生SN翻转。At this time, RX_Next+AM_Window_Size=2049+2048=4097, 2 [sn-FieldLength] -1=4095, at this time, RX_Next+AM_Window_Size>2 [sn-FieldLength] -1, it is determined that the receiving end of the AM RLC entity is transmitting SN rollover occurs during RLCPDU.

AM RLC实体的接收端在传输RLC PDU时发生SN翻转,则确定发生SN翻转时落在AMRLC实体的接收端对应的接收窗口中的SN取值范围的方式包括但不限于下述两种:When the receiving end of the AM RLC entity has an SN rollover when transmitting an RLC PDU, the methods for determining the SN value range that falls within the receiving window corresponding to the receiving end of the AM RLC entity when the SN rollover occurs include but are not limited to the following two:

方式a:way a:

本发明实施例中,若确定发生SN翻转,则确定发生SN翻转时落在无线链路控制层RLC对应的窗口中的SN取值范围,包括:In this embodiment of the present invention, if it is determined that an SN inversion occurs, it is determined that the SN value range that falls in the window corresponding to the RLC of the radio link control layer when the SN inversion occurs, including:

更新AM RLC实体的接收端对应的第三翻转指示变量flag_am_r,得到更新后的第三翻转指示变量flag_am_r,其中,第二翻转指示变量flag_am_r用于指示发生SN翻转的次数;Update the third inversion indicator variable flag_am_r corresponding to the receiving end of the AM RLC entity, obtain the updated third inversion indicator variable flag_am_r, wherein the second inversion indicator variable flag_am_r is used to indicate the number of times that SN inversion occurs;

根据更新后的第三翻转指示变量flag_am_r,确定发生SN翻转时落在AM RLC实体的接收端对应的接收窗口中的SN取值范围为:According to the updated third inversion indicator variable flag_am_r, it is determined that the range of SN values falling in the receiving window corresponding to the receiving end of the AM RLC entity when the SN inversion occurs is:

Figure GDA0002681097030000131
Figure GDA0002681097030000131

其中,i=[0,flag_am_r]。where i=[0, flag_am_r].

设置AM RLC实体的接收端通过第三窗口状态变量RX_Next和第三翻转指示变量flag_am_r共同维持一个接收窗口。落在AM RLC实体的接收端对应的接收窗口中的SN的取值范围为:The receiving end of the AM RLC entity is set to maintain a receiving window together through the third window state variable RX_Next and the third rollover indicator variable flag_am_r. The value range of the SN falling in the receiving window corresponding to the receiving end of the AM RLC entity is:

Figure GDA0002681097030000132
Figure GDA0002681097030000132

其中,第三翻转指示变量flag_am_r的初始值为0。Wherein, the initial value of the third inversion indicator variable flag_am_r is 0.

在AM RLC实体的接收端开始传输RLC PDU之后,若没有发生SN翻转,也即若RX_Next+AM_Window_Size≤2[sn-FieldLength]-1,则第三翻转指示变量flag_am_r维持初始值为0不变,落在AM RLC实体的接收端对应的接收窗口中的SN的取值范围为:After the receiving end of the AM RLC entity starts to transmit the RLC PDU, if no SN rollover occurs, that is, if RX_Next+AM_Window_Size≤2 [sn-FieldLength] -1, the third rollover indicator variable flag_am_r maintains the initial value of 0 unchanged. The value range of the SN falling in the receiving window corresponding to the receiving end of the AM RLC entity is:

RX_Next≤SN<RX_Next+AM_Window_Size;RX_Next≤SN<RX_Next+AM_Window_Size;

在AM RLC实体的接收端传输RLC PDU第一次发生SN翻转时,也即第一次出现RX_Next+AM_Window_Size>2[sn-FieldLength]-1时,更新第三翻转指示变量flag_am_r,具体为增加预设步长,例如,增加步长1,得到更新后的第三翻转指示变量flag_am_r=1,则落在AMRLC实体的接收端对应的接收窗口中的SN的取值范围为:When the SN rollover occurs for the first time when the receiver of the AM RLC entity transmits the RLC PDU, that is, when RX_Next+AM_Window_Size>2 [sn-FieldLength] -1 occurs for the first time, the third rollover indicator variable flag_am_r is updated, specifically to increase the Suppose the step size, for example, increase the step size by 1 to obtain the updated third flip indicator variable flag_am_r=1, then the value range of the SN in the receiving window corresponding to the receiving end of the AMRLC entity is:

RX_Next≤SN+i*2[sn-FieldLength]<RX_Next+AM_Window_Size,RX_Next≤SN+i*2 [sn-FieldLength] <RX_Next+AM_Window_Size,

其中,i=[0,1];Among them, i=[0,1];

在AM RLC实体的接收端传输RLC PDU第二次发生SN翻转时,也即第二次出现RX_Next+AM_Window_Size>2[sn-FieldLength]-1时,再次更新第三翻转指示变量flag_am_r,具体为增加预设步长,例如,增加步长1,得到更新后的第一翻转指示变量flag_am_r=2,则落在AM RLC实体的接收端对应的接收窗口中的SN的取值范围为:When the receiving end of the AM RLC entity transmits the RLC PDU when the SN rollover occurs for the second time, that is, when RX_Next+AM_Window_Size>2 [sn-FieldLength] -1 occurs for the second time, the third rollover indicator variable flag_am_r is updated again, specifically to increase The preset step size, for example, increases the step size by 1 to obtain the updated first flip indicator variable flag_am_r=2, then the value range of the SN in the receiving window corresponding to the receiving end of the AM RLC entity is:

Figure GDA0002681097030000141
Figure GDA0002681097030000141

其中,i=[0,2];Among them, i=[0,2];

以此类推,随着发生SN翻转的次数的增多,不断调整落在AM RLC实体的接收端对应的接收窗口中的SN的取值范围,以实现在发生SN翻转时能够维持固定大小的窗口,避免出现重传、时延等问题。By analogy, with the increase of the number of SN rollovers, the value range of the SN falling in the receiving window corresponding to the receiving end of the AM RLC entity is continuously adjusted, so as to maintain a fixed size window when the SN rollover occurs. Avoid problems such as retransmission and delay.

方式b:way b:

本发明实施例中,若确定发生SN翻转,则确定发生SN翻转时落在无线链路控制层RLC对应的窗口中的SN取值范围,包括:In this embodiment of the present invention, if it is determined that an SN inversion occurs, it is determined that the SN value range that falls in the window corresponding to the RLC of the radio link control layer when the SN inversion occurs, including:

若确定发生SN翻转,则确定发生SN翻转时落在AM RLC实体的接收端对应的接收窗口中的SN取值范围为:If it is determined that an SN rollover occurs, it is determined that the SN value range that falls in the receiving window corresponding to the receiving end of the AM RLC entity when the SN rollover occurs is:

RX_Next≤SN<2[sn-FieldLength],或,RX_Next≤SN<2 [sn-FieldLength] , or,

0≤SN<2[sn-FieldLength]-RX_Next。0≤SN<2 [sn-FieldLength] -RX_Next.

AM RLC实体的接收端在发生SN翻转和未发生SN翻转时,对落在AM RLC实体的接收端对应的接收窗口中的SN的取值范围进行不同的设置。The receiving end of the AM RLC entity sets different value ranges of the SNs in the receiving window corresponding to the receiving end of the AM RLC entity when the SN inversion occurs and when the SN inversion does not occur.

在未发生SN翻转时,落在AM RLC实体的接收端对应的接收窗口中的SN的取值范围为:When the SN rollover does not occur, the value range of the SN falling in the receiving window corresponding to the receiving end of the AM RLC entity is:

RX_Next≤SN<RX_Next+AM_Window_Size;RX_Next≤SN<RX_Next+AM_Window_Size;

在发生SN翻转时,落在AM RLC实体的接收端对应的接收窗口中的SN的取值范围为:When the SN rollover occurs, the value range of the SN falling in the receiving window corresponding to the receiving end of the AM RLC entity is:

RX_Next≤SN<2[sn-FieldLength],或,RX_Next≤SN<2 [sn-FieldLength] , or,

0≤SN<2[sn-FieldLength]-RX_Next。0≤SN<2 [sn-FieldLength] -RX_Next.

通过在AM RLC实体的接收端发生SN翻转和未发生SN翻转时,对落在AM RLC实体的接收端对应的接收窗口中的SN的取值范围进行不同的设置,以实现在发生SN翻转时能够维持固定大小的窗口,避免出现重传、时延等问题。The value range of the SN falling in the receiving window corresponding to the receiving end of the AM RLC entity is set differently when the SN inversion occurs at the receiving end of the AM RLC entity and when the SN inversion does not occur, so as to realize the SN inversion when the SN inversion occurs. It can maintain a fixed size window to avoid problems such as retransmission and delay.

本发明实施例记载的技术方案,通过接收包括序列号SN的无线链路控制层协议数据单元RLC PDU,进而根据SN,判断是否发生SN翻转,以及在确定发生SN翻转时,确定发生SN翻转时落在无线链路控制层RLC对应的窗口中的SN取值范围,从而在发生SN翻转时RLC能够维持固定大小的窗口,避免数据传输中出现重传、时延、丢包等问题。According to the technical solution described in the embodiment of the present invention, by receiving a radio link control layer protocol data unit RLC PDU including a sequence number SN, it is further determined whether an SN inversion occurs according to the SN, and when it is determined that an SN inversion occurs, it is determined that a SN inversion occurs when an SN inversion occurs. The range of SN values that fall in the window corresponding to the RLC of the radio link control layer, so that the RLC can maintain a fixed size window when the SN rollover occurs, avoiding problems such as retransmission, delay, and packet loss in data transmission.

图2为本发明实施例提供的一种无线链路控制层窗口确定装置的结构示意图。装置200包括:FIG. 2 is a schematic structural diagram of an apparatus for determining a radio link control layer window according to an embodiment of the present invention. Apparatus 200 includes:

接收模块201,用于接收无线链路控制层协议数据单元RLC PDU,其中,RLC PDU中包括序列号SN;a receiving module 201, configured to receive a radio link control layer protocol data unit RLC PDU, wherein the RLC PDU includes a sequence number SN;

判断模块202,用于根据SN,判断是否发生SN翻转;The judgment module 202 is used for judging whether the SN flip occurs according to the SN;

确定模块203,用于在确定发生SN翻转时,确定发生SN翻转时落在无线链路控制层RLC对应的窗口中的SN取值范围。The determining module 203 is configured to, when it is determined that the SN inversion occurs, determine the SN value range that falls within the window corresponding to the RLC of the radio link control layer when the SN inversion occurs.

可选地,装置200应用于非确认模式UM RLC接收实体,并且UM RLC接收实体对应的重组窗口达到稳定时;Optionally, when the apparatus 200 is applied to an unacknowledged mode UM RLC receiving entity, and the reassembly window corresponding to the UM RLC receiving entity reaches stability;

判断模块202进一步包括:The judging module 202 further includes:

第一确定单元,用于根据SN,确定UM RLC接收实体对应的第一窗口状态变量RX_Next_Highest,以及UM RLC接收实体对应的重组窗口大小UM_Window_Size;a first determination unit, configured to determine, according to the SN, the first window state variable RX_Next_Highest corresponding to the UM RLC receiving entity, and the reassembly window size UM_Window_Size corresponding to the UM RLC receiving entity;

第一判断单元,用于判断第一窗口状态变量RX_Next_Highest是否满足下述条件:The first judgment unit is used to judge whether the first window state variable RX_Next_Highest satisfies the following conditions:

RX_Next_Highest-UM_Window_Size<0;RX_Next_Highest-UM_Window_Size<0;

第一确定单元,还用于在RX_Next_Highest-UM_Window_Size<0时,确定发生SN翻转。The first determining unit is further configured to determine that an SN inversion occurs when RX_Next_Highest-UM_Window_Size<0.

可选地,确定模块203进一步包括:Optionally, the determining module 203 further includes:

第一更新单元,用于更新UM RLC接收实体对应的第一翻转指示变量flag_um,得到更新后的第一翻转指示变量flag_um,其中,第一翻转指示变量flag_um用于指示发生SN翻转的次数;The first update unit is used to update the first inversion indicator variable flag_um corresponding to the UM RLC receiving entity, and obtain the updated first inversion indicator variable flag_um, wherein the first inversion indicator variable flag_um is used to indicate the number of times that SN inversion occurs;

第三确定单元,根据更新后的第一翻转指示变量flag_um,确定发生SN翻转时落在UM RLC接收实体对应的重组窗口中的SN取值范围为:The third determination unit, according to the updated first reversal indicator variable flag_um, determines that the SN value range that falls in the reorganization window corresponding to the UM RLC receiving entity when the SN reversal occurs is:

Figure GDA0002681097030000161
Figure GDA0002681097030000161

其中,i=[0,flag_um],sn-FieldLength为SN的域长。Wherein, i=[0, flag_um], and sn-FieldLength is the field length of SN.

可选地,确定模块203具体用于:Optionally, the determining module 203 is specifically configured to:

若确定发生SN翻转,则确定发生SN翻转时落在UM RLC接收实体对应的重组窗口中的SN取值范围为:If it is determined that an SN rollover occurs, it is determined that the SN value range that falls in the reassembly window corresponding to the UM RLC receiving entity when the SN rollover occurs is:

2sn-FieldLength-(UM_Window_Size-RX_Next_Highest)≤SN<2sn-FieldLength,或,2 sn-FieldLength -(UM_Window_Size-RX_Next_Highest)≤SN < 2 sn-FieldLength , or,

0≤SN<RX_Next_Highest,0≤SN<RX_Next_Highest,

其中,sn-FieldLength为所述SN的域长。Wherein, sn-FieldLength is the field length of the SN.

可选地,装置200应用于确认模式AM RLC实体的发送端;Optionally, the apparatus 200 is applied to the sender of the acknowledgment mode AM RLC entity;

判断模块202进一步包括:The judging module 202 further includes:

第四确定单元,用于根据SN,确定AM RLC实体的发送端对应的第二窗口状态变量TX_Next_Ack,以及AM RLC实体的发送端对应的发送窗口大小AM_Window_Size;The fourth determination unit is used to determine, according to the SN, the second window state variable TX_Next_Ack corresponding to the transmitting end of the AM RLC entity, and the sending window size AM_Window_Size corresponding to the transmitting end of the AM RLC entity;

第二判断单元,用于判断第二窗口状态变量TX_Next_Ack是否满足下述条件:The second judgment unit is used to judge whether the second window state variable TX_Next_Ack satisfies the following conditions:

TX_Next_Ack+AM_Window_Size>2[sn-FieldLength]-1,TX_Next_Ack+AM_Window_Size>2 [sn-FieldLength] -1,

其中,sn-FieldLength为SN的域长;Among them, sn-FieldLength is the field length of SN;

第五确定单元,用于在TX_Next_Ack+AM_Window_Size>2[sn-FieldLength]-1时,确定发生SN翻转。The fifth determination unit is configured to determine that SN inversion occurs when TX_Next_Ack+AM_Window_Size>2 [sn-FieldLength] -1.

可选地,确定模块203进一步包括:Optionally, the determining module 203 further includes:

第二更新单元,用于更新AM RLC实体的发送端对应的第二翻转指示变量flag_am_t,得到更新后的第二翻转指示变量flag_am_t,其中,第二翻转指示变量flag_am_t用于指示发生SN翻转的次数;The second update unit is used to update the second inversion indicator variable flag_am_t corresponding to the transmitting end of the AM RLC entity, and obtain the updated second inversion indicator variable flag_am_t, wherein the second inversion indicator variable flag_am_t is used to indicate the number of times that SN inversion occurs ;

第六确定单元,用于根据更新后的第二翻转指示变量flag_am_t,确定发生SN翻转时落在AM RLC实体的发送端对应的发送窗口中的SN取值范围为:The sixth determination unit is used to determine, according to the updated second inversion indicator variable flag_am_t, that the SN value range that falls in the transmission window corresponding to the transmission end of the AM RLC entity when the SN inversion occurs is:

Figure GDA0002681097030000171
Figure GDA0002681097030000171

其中,i=[0,flag_am_t]。where i=[0, flag_am_t].

可选地,确定模块具体用于:Optionally, the determination module is specifically used to:

若确定发生SN翻转,则确定发生SN翻转时落在AM RLC实体的发送端对应的发送窗口中的SN取值范围为:If it is determined that an SN rollover occurs, it is determined that the SN value range that falls in the sending window corresponding to the sender of the AM RLC entity when the SN rollover occurs is:

TX_Next_Ack≤SN<2[sn-FieldLength],或,TX_Next_Ack≤SN<2 [sn-FieldLength] , or,

0≤SN<2[sn-FieldLength]-TX_Next_Ack。0≤SN<2 [sn-FieldLength] -TX_Next_Ack.

可选地,装置200应用于确认模式AM RLC实体的接收端;Optionally, the apparatus 200 is applied to the receiving end of the acknowledgment mode AM RLC entity;

判断模块202进一步包括:The judging module 202 further includes:

第七确定单元,用于根据SN,确定AM RLC实体的接收端对应的第三窗口状态变量RX_Next,以及AM RLC实体的接收端对应的接收窗口大小AM_Window_Size;The seventh determination unit is used to determine, according to the SN, the third window state variable RX_Next corresponding to the receiving end of the AM RLC entity, and the receiving window size AM_Window_Size corresponding to the receiving end of the AM RLC entity;

第三判断单元,用于判断第三窗口状态变量RX_Next是否满足下述条件;The third judgment unit is used to judge whether the third window state variable RX_Next satisfies the following conditions;

RX_Next+AM_Window_Size>2[sn-FieldLength]-1,RX_Next+AM_Window_Size>2 [sn-FieldLength] -1,

其中,sn-FieldLength为SN的域长;Among them, sn-FieldLength is the field length of SN;

第八确定单元,用于在RX_Next+AM_Window_Size>2[sn-FieldLength]-1时,确定发生SN翻转。The eighth determination unit is configured to determine that an SN inversion occurs when RX_Next+AM_Window_Size>2 [sn-FieldLength] -1.

可选地,确定模块203进一步包括:Optionally, the determining module 203 further includes:

第三更新单元,用于更新AM RLC实体的接收端对应的第三翻转指示变量flag_am_r,得到更新后的第三翻转指示变量flag_am_r,其中,第二翻转指示变量flag_am_r用于指示发生SN翻转的次数;The third update unit is used to update the third inversion indicator variable flag_am_r corresponding to the receiving end of the AM RLC entity, and obtain the updated third inversion indicator variable flag_am_r, wherein the second inversion indicator variable flag_am_r is used to indicate the number of times that SN inversion occurs ;

第九确定单元,用于根据更新后的第三翻转指示变量flag_am_r,确定发生SN翻转时落在AM RLC实体的接收端对应的接收窗口中的SN取值范围为:The ninth determination unit is used to determine, according to the updated third inversion indicator variable flag_am_r, that the SN value range that falls in the receiving window corresponding to the receiving end of the AM RLC entity when the SN is inverted is:

Figure GDA0002681097030000181
Figure GDA0002681097030000181

其中,i=[0,flag_am_r]。where i=[0, flag_am_r].

可选地,确定模块203具体用于:Optionally, the determining module 203 is specifically configured to:

若确定发生SN翻转,则确定发生SN翻转时落在AM RLC实体的接收端对应的接收窗口中的SN取值范围为:If it is determined that an SN rollover occurs, it is determined that the SN value range that falls in the receiving window corresponding to the receiving end of the AM RLC entity when the SN rollover occurs is:

RX_Next≤SN<2[sn-FieldLength],或,RX_Next≤SN<2 [sn-FieldLength] , or,

0≤SN<2[sn-FieldLength]-RX_Next。0≤SN<2 [sn-FieldLength] -RX_Next.

本发明实施例中,通信设备可以包括:网络设备和终端设备,当通信设备为网络设备时,如图3所示,图3是本发明实施例提供的网络设备的结构示意图,网络设备300的实体装置结构示意图可如图3所示,包括处理器302、存储器303、发射机301和接收机304。具体的应用中,发射机301和接收机304可以耦合到天线305。In this embodiment of the present invention, the communication device may include: a network device and a terminal device. When the communication device is a network device, as shown in FIG. 3 , FIG. 3 is a schematic structural diagram of a network device provided in an embodiment of the present invention. A schematic structural diagram of a physical device may be shown in FIG. 3 , including a processor 302 , a memory 303 , a transmitter 301 and a receiver 304 . In particular applications, transmitter 301 and receiver 304 may be coupled to antenna 305 .

存储器303,用于存放程序。具体地,程序可以包括程序代码,所述程序代码包括计算机操作指令。存储器303可以包括只读存储器和随机存取存储器,并向处理器302提供指令和数据。存储器303可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少1个磁盘存储器。The memory 303 is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. Memory 303 may include read-only memory and random access memory, and provides instructions and data to processor 302 . The memory 303 may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.

处理器302,执行存储器303所存放的程序。The processor 302 executes the program stored in the memory 303 .

具体地,在网络设备300中,处理器302可执行以下方法:Specifically, in the network device 300, the processor 302 can perform the following methods:

接收无线链路控制层协议数据单元RLC PDU,其中,RLC PDU中包括序列号SN;receiving a radio link control layer protocol data unit RLC PDU, wherein the RLC PDU includes a sequence number SN;

根据SN,判断是否发生SN翻转;According to SN, determine whether SN flip occurs;

若确定发生SN翻转,则确定发生SN翻转时落在无线链路控制层RLC对应的窗口中的SN取值范围。If it is determined that the SN inversion occurs, it is determined that the SN value range falls within the window corresponding to the RLC of the radio link control layer when the SN inversion occurs.

上述如本发明图1所示实施例揭示的网络设备300执行的方法可以应用于处理器302中,或者由处理器302实现。处理器302可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器302中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器302可以是通用处理器,包括中央处理器(CentralProcessing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器303,处理器302读取存储器303中的信息,结合其硬件完成上述方法的步骤。The foregoing method performed by the network device 300 disclosed in the embodiment shown in FIG. 1 of the present invention may be applied to the processor 302 or implemented by the processor 302 . The processor 302 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method can be completed by an integrated logic circuit of hardware in the processor 302 or an instruction in the form of software. The above-mentioned processor 302 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC). ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory 303, and the processor 302 reads the information in the memory 303, and completes the steps of the above method in combination with its hardware.

网络设备还可执行图1所示的方法,并实现网络设备在图1所示实施例的功能,本发明实施例在此不再赘述。The network device may also execute the method shown in FIG. 1 , and implement the functions of the network device in the embodiment shown in FIG. 1 , and details are not described herein again in this embodiment of the present invention.

当通信设备为终端设备时,如图4所示,图4是本发明实施例提供的终端设备的结构示意图,图4所示的终端设备400包括:至少一个处理器401、存储器402、至少一个网络接口404和用户接口403。终端设备400中的各个组件通过总线系统405耦合在一起。可理解,总线系统405用于实现这些组件之间的连接通信。总线系统405除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图4中将各种总线都标为总线系统405。When the communication device is a terminal device, as shown in FIG. 4 , which is a schematic structural diagram of a terminal device provided by an embodiment of the present invention, the terminal device 400 shown in FIG. 4 includes: at least one processor 401 , memory 402 , at least one Network interface 404 and user interface 403. The various components in terminal device 400 are coupled together by bus system 405 . It can be understood that the bus system 405 is used to implement the connection communication between these components. In addition to the data bus, the bus system 405 also includes a power bus, a control bus, and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 405 in FIG. 4 .

其中,用户接口403可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球trackball、触感板、或者触摸屏)等。The user interface 403 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen), and the like.

可以理解,本发明实施例中的存储器402可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-OnlyMemory,ROM)、可编程只读存储器(ProgrammableROM,PROM)、可擦除可编程只读存储器(ErasablePROM,EPROM)、电可擦除可编程只读存储器(ElectricallyEPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(RandomAccessMemory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(StaticRAM,SRAM)、动态随机存取存储器(DynamicRAM,DRAM)、同步动态随机存取存储器(SynchronousDRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(DoubleDataRateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(SynchlinkDRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambusRAM,DRRAM)。本发明实施例描述的系统和方法的存储器402旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 402 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (ErasablePROM, EPROM), Electrically Erasable Program read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be Random Access Memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double data rate synchronous dynamic random access memory (DoubleDataRateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct memory bus random access Memory (DirectRambusRAM, DRRAM). The memory 402 of the systems and methods described in embodiments of the present invention is intended to include, but not be limited to, these and any other suitable types of memory.

在一些实施方式中,存储器402存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统4021和应用程序4022。In some embodiments, memory 402 stores the following elements, executable modules or data structures, or subsets thereof, or extended sets of them: operating system 4021 and applications 4022 .

其中,操作系统4021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序4022,包含各种应用程序,例如媒体播放器(MediaPlayer)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序4022中。The operating system 4021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 4022 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., for implementing various application services. A program for implementing the method of the embodiment of the present invention may be included in the application program 4022 .

在本发明实施例中,终端设备400还包括:存储在存储器402上并可在处理器401上运行的无线链路控制层窗口确定程序,无线链路控制层窗口确定程序被处理器401执行时实现如下步骤:In this embodiment of the present invention, the terminal device 400 further includes: a radio link control layer window determination program stored in the memory 402 and executable on the processor 401 , when the radio link control layer window determination program is executed by the processor 401 Implement the following steps:

接收无线链路控制层协议数据单元RLC PDU,其中,RLC PDU中包括序列号SN;receiving a radio link control layer protocol data unit RLC PDU, wherein the RLC PDU includes a sequence number SN;

根据SN,判断是否发生SN翻转;According to SN, determine whether SN flip occurs;

若确定发生SN翻转,则确定发生SN翻转时落在无线链路控制层RLC对应的窗口中的SN取值范围。If it is determined that the SN inversion occurs, it is determined that the SN value range falls within the window corresponding to the RLC of the radio link control layer when the SN inversion occurs.

上述本发明实施例揭示的方法可以应用于处理器401中,或者由处理器401实现。处理器401可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器401中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器401可以是通用处理器、数字信号处理器(DigitalSignalProcessor,DSP)、专用集成电路(ApplicationSpecific IntegratedCircuit,ASIC)、现成可编程门阵列(FieldProgrammableGateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的计算机可读存储介质中。该计算机可读存储介质位于存储器402,处理器401读取存储器402中的信息,结合其硬件完成上述方法的步骤。具体地,该计算机可读存储介质上存储有无线链路控制层窗口确定程序,无线链路控制层窗口确定程序被处理器401执行时实现如上述无线链路控制层窗口确定方法实施例的各步骤。The methods disclosed in the above embodiments of the present invention may be applied to the processor 401 or implemented by the processor 401 . The processor 401 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method can be completed by an integrated logic circuit of hardware in the processor 401 or an instruction in the form of software. The above-mentioned processor 401 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (FieldProgrammableGateArray, FPGA) or other programmable logic devices, discrete gates. Or transistor logic devices, discrete hardware components. Various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other computer-readable storage media that are mature in the art. The computer-readable storage medium is located in the memory 402, and the processor 401 reads the information in the memory 402, and completes the steps of the above method in combination with its hardware. Specifically, the computer-readable storage medium stores a radio link control layer window determination program, and when the radio link control layer window determination program is executed by the processor 401, each of the radio link control layer window determination method embodiments described above is implemented. step.

可以理解的是,本发明实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecificIntegratedCircuits,ASIC)、数字信号处理器(DigitalSignalProcessing,DSP)、数字信号处理设备(DSPDevice,DSPD)、可编程逻辑设备(ProgrammableLogicDevice,PLD)、现场可编程门阵列(Field-ProgrammableGateArray,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本发明所述功能的其它电子单元或其组合中。It can be understood that the embodiments described in the embodiments of the present invention may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (DSP Device, DSPD), Programmable Logic Device (Programmable Logic Device, PLD) ), a Field-Programmable Gate Array (FPGA), a general-purpose processor, a controller, a microcontroller, a microprocessor, other electronic units for performing the functions described in the present invention, or a combination thereof.

对于软件实现,可通过执行本发明实施例所述功能的模块(例如过程、函数等)来实现本发明实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the techniques described in the embodiments of the present invention may be implemented through modules (eg, procedures, functions, etc.) that perform the functions described in the embodiments of the present invention. Software codes may be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.

终端设备400能够实现前述实施例中终端设备实现的各个过程,为避免重复,这里不再赘述。The terminal device 400 can implement each process implemented by the terminal device in the foregoing embodiments, and in order to avoid repetition, details are not repeated here.

本发明实施例还提出了一种计算机可读存储介质,该计算机可读存储介质存储一个或多个程序,该一个或多个程序包括指令,该指令当被包括多个应用程序的通信设备执行时,能够使该通信设备执行图1所示实施例的方法,并具体用于执行以下操作:An embodiment of the present invention also provides a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and the one or more programs include instructions, and the instructions are executed by a communication device including multiple application programs. , the communication device can be made to perform the method of the embodiment shown in FIG. 1, and is specifically used to perform the following operations:

接收无线链路控制层协议数据单元RLC PDU,其中,RLC PDU中包括序列号SN;receiving a radio link control layer protocol data unit RLC PDU, wherein the RLC PDU includes a sequence number SN;

根据SN,判断是否发生SN翻转;According to SN, determine whether SN flip occurs;

若确定发生SN翻转,则确定发生SN翻转时落在无线链路控制层RLC对应的窗口中的SN取值范围。If it is determined that the SN inversion occurs, it is determined that the SN value range falls within the window corresponding to the RLC of the radio link control layer when the SN inversion occurs.

总之,以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。In a word, the above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules or units described in the above embodiments may be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, excludes transitory computer-readable media, such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements, but also Other elements not expressly listed or inherent to such a process, method, article of manufacture or apparatus are also included. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article of manufacture or device that includes the element.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to the partial descriptions of the method embodiments.

Claims (18)

1. A method for determining a radio link control layer window is characterized by comprising the following steps:
receiving a radio link control layer protocol data unit (RLC PDU), wherein the RLC PDU comprises a Serial Number (SN);
judging whether SN overturning occurs or not according to the SN;
if the SN is determined to be turned over, determining the SN value range falling into a window corresponding to a Radio Link Control (RLC) layer when the SN is turned over;
when a recombination window corresponding to an unacknowledged mode UM RLC receiving entity is stable, the recombination window is determined to be stable;
the judging whether SN overturn occurs according to the SN comprises the following steps:
determining a first Window state variable RX _ Next _ Highest corresponding to the UM RLC receiving entity and a recombination Window Size UM _ Window _ Size corresponding to the UM RLC receiving entity according to the SN;
judging whether the first window state variable RX _ Next _ Highest meets the following conditions:
RX_Next_Highest-UM_Window_Size<0;
if so, determining that SN roll-over occurs;
correspondingly, if it is determined that SN rollover occurs, determining an SN value range falling in a window corresponding to the radio link control layer RLC when SN rollover occurs, including:
updating a first overturning indication variable flag _ UM corresponding to the UM RLC receiving entity to obtain the updated first overturning indication variable flag _ UM, wherein the first overturning indication variable flag _ UM is used for indicating the number of times of SN overturning;
according to the updated first overturn indication variable flag _ UM, determining that the value range of SN falling into a recombination window corresponding to an UM RLC receiving entity when the SN overturns is as follows:
Figure FDA0002693791470000011
wherein i ═ 0, flag _ um, SN-FieldLength is the domain length of the SN.
2. The method of claim 1, wherein if it is determined that SN rollover occurs, determining a value range of SN that falls within a window corresponding to a radio link control layer, RLC, when SN rollover occurs, comprises:
if the SN overturn is determined to occur, the value range of the SN falling into the recombination window corresponding to the UM RLC receiving entity when the SN overturn occurs is determined to be as follows:
2sn-FieldLength-(UM_Window_Size-RX_Next_Highest)≤SN<2sn-FieldLengtheither, or,
0≤SN<RX_Next_Highest,
wherein the SN-FieldLength is the domain length of the SN.
3. The method of claim 1, wherein the method is applied to a transmitting end of an acknowledged mode AM RLC entity;
the judging whether SN overturn occurs according to the SN comprises the following steps:
determining a second Window state variable TX _ Next _ Ack corresponding to the sending end of the AM RLC entity and a sending Window Size AM _ Window _ Size corresponding to the sending end of the AM RLC entity according to the SN;
judging whether the second window state variable TX _ Next _ Ack meets the following conditions:
TX_Next_Ack+AM_Window_Size>2[sn-FieldLength]-1,
wherein SN-FieldLength is the domain length of the SN;
and if so, determining that SN inversion occurs.
4. The method of claim 3, wherein if it is determined that SN rollover occurs, determining a value range of SNs that fall within a window corresponding to a Radio Link Control (RLC) layer when SN rollover occurs comprises:
updating a second overturning indication variable flag _ AM _ t corresponding to a sending end of the AM RLC entity to obtain an updated second overturning indication variable flag _ AM _ t, wherein the second overturning indication variable flag _ AM _ t is used for indicating the number of times of SN overturning;
and according to the updated second overturn indication variable flag _ AM _ t, determining that the SN value range falling into a sending window corresponding to the sending end of the AM RLC entity when the SN overturn occurs is as follows:
Figure FDA0002693791470000031
where, i ═ 0, flag _ am _ t.
5. The method of claim 3, wherein if it is determined that SN rollover occurs, determining a value range of SNs that fall within a window corresponding to a Radio Link Control (RLC) layer when SN rollover occurs comprises:
if the SN roll-over is determined to occur, determining that the SN value range falling into a sending window corresponding to a sending end of the AM RLC entity when the SN roll-over occurs is as follows:
TX_Next_Ack≤SN<2[sn-FieldLength]either, or,
0≤SN<2[sn-FieldLength]-TX_Next_Ack。
6. the method of claim 1, wherein the method is applied to a receiving end of an acknowledged mode AM RLC entity;
the judging whether SN overturn occurs according to the SN comprises the following steps:
determining a third Window state variable RX _ Next corresponding to a receiving end of the AM RLC entity and a receiving Window Size AM _ Window _ Size corresponding to the receiving end of the AM RLC entity according to the SN;
judging whether the third window state variable RX _ Next satisfies the following conditions:
RX_Next+AM_Window_Size>2[sn-FieldLength]-1,
wherein SN-FieldLength is the domain length of the SN;
and if so, determining that SN inversion occurs.
7. The method of claim 6, wherein if it is determined that SN rollover occurs, determining a value range of SNs that fall within a window corresponding to a Radio Link Control (RLC) layer when SN rollover occurs comprises:
updating a third overturning indication variable flag _ AM _ r corresponding to a receiving end of the AM RLC entity to obtain an updated third overturning indication variable flag _ AM _ r, wherein the second overturning indication variable flag _ AM _ r is used for indicating the number of times of SN overturning;
according to the updated third overturn indication variable flag _ AM _ r, determining that the SN value range falling into a receiving window corresponding to the receiving end of the AM RLC entity when the SN overturn occurs is as follows:
Figure FDA0002693791470000041
where, i ═ 0, flag _ am _ r.
8. The method of claim 6, wherein if it is determined that SN rollover occurs, determining a value range of SNs that fall within a window corresponding to a Radio Link Control (RLC) layer when SN rollover occurs comprises:
if the SN overturn is determined to occur, determining that the SN value range falling into a receiving window corresponding to a receiving end of the AM RLC entity when the SN overturn occurs is as follows:
RX_Next≤SN<2[sn-FieldLength]either, or,
0≤SN<2[sn-FieldLength]-RX_Next。
9. an apparatus for determining a radio link control layer window, comprising:
the receiving module is used for receiving a radio link control layer protocol data unit (RLC PDU), wherein the RLC PDU comprises a Serial Number (SN);
the judging module is used for judging whether SN overturn occurs or not according to the SN;
the determining module is used for determining the SN value range falling into a window corresponding to the Radio Link Control (RLC) layer when the SN overturn is determined to occur;
when a recombination window corresponding to an unacknowledged mode UM RLC receiving entity is stable, the recombination window is determined to be stable;
the judging module further comprises:
a first determining unit, configured to determine, according to the SN, a first Window state variable RX _ Next _ high corresponding to the UM RLC receiving entity and a reassembly Window Size UM _ Window _ Size corresponding to the UM RLC receiving entity;
a first judging unit, configured to judge whether the first window state variable RX _ Next _ Highest satisfies the following condition:
RX_Next_Highest-UM_Window_Size<0;
the second determination unit is further used for determining that SN inversion occurs when RX _ Next _ Highest-UM _ Window _ Size is less than 0;
accordingly, the determining module further comprises:
the device comprises a first updating unit, a second updating unit and a processing unit, wherein the first updating unit is used for updating a first overturning indication variable flag _ UM corresponding to the UM RLC receiving entity to obtain the updated first overturning indication variable flag _ UM, and the first overturning indication variable flag _ UM is used for indicating the number of times of SN overturning;
and a third determining unit, configured to determine, according to the updated first roll-over indication variable flag _ UM, that the value range of the SN falling into the reassembly window corresponding to the UM RLC receiving entity when the SN roll-over occurs is:
Figure FDA0002693791470000051
wherein i ═ 0, flag _ um, SN-FieldLength is the domain length of the SN.
10. The apparatus of claim 9, wherein the determination module is specifically configured to:
if the SN overturn is determined to occur, the value range of the SN falling into the recombination window corresponding to the UM RLC receiving entity when the SN overturn occurs is determined to be as follows:
2sn-FieldLength-(UM_Window_Size-RX_Next_Highest)≤SN<2sn-FieldLengtheither, or,
0≤SN<RX_Next_Highest,
wherein the SN-FieldLength is the domain length of the SN.
11. The apparatus of claim 9, wherein the apparatus is applied to a transmitting end of an acknowledged mode, AM, RLC entity;
the judging module further comprises:
a fourth determining unit, configured to determine, according to the SN, a second Window state variable TX _ Next _ Ack corresponding to the sending end of the AM RLC entity, and a sending Window Size AM _ Window _ Size corresponding to the sending end of the AM RLC entity;
a second judging unit, configured to judge whether the second window state variable TX _ Next _ Ack satisfies the following condition:
TX_Next_Ack+AM_Window_Size>2[sn-FieldLength]-1,
wherein SN-FieldLength is the domain length of the SN;
a fifth determination unit for determining whether TX _ Next _ Ack + AM _ Window _ Size > 2[sn-FieldLength]At-1, it is determined that SN roll-over occurred.
12. The apparatus of claim 11, wherein the determining module further comprises:
the second updating unit is used for updating a second overturning indication variable flag _ AM _ t corresponding to the sending end of the AM RLC entity to obtain an updated second overturning indication variable flag _ AM _ t, wherein the second overturning indication variable flag _ AM _ t is used for indicating the number of times of SN overturning;
a sixth determining unit, configured to determine, according to the updated second roll-over indication variable flag _ AM _ t, that a value range of an SN falling in a sending window corresponding to a sending end of the AM RLC entity when the SN roll-over occurs is:
Figure FDA0002693791470000071
where, i ═ 0, flag _ am _ t.
13. The apparatus of claim 11, wherein the determination module is specifically configured to:
if the SN roll-over is determined to occur, determining that the SN value range falling into a sending window corresponding to a sending end of the AM RLC entity when the SN roll-over occurs is as follows:
TX_Next_Ack≤SN<2[sn-FieldLength]either, or,
0≤SN<2[sn-FieldLength]-TX_Next_Ack。
14. the apparatus of claim 9, wherein the apparatus is applied to a receiving end of an acknowledged mode, AM, RLC entity;
the judging module further comprises:
a seventh determining unit, configured to determine, according to the SN, a third Window state variable RX _ Next corresponding to a receiving end of the AM RLC entity and a Size AM _ Window _ Size corresponding to the receiving end of the AM RLC entity;
a third judging unit, configured to judge whether the third window state variable RX _ Next satisfies the following condition:
RX_Next+AM_Window_Size>2[sn-FieldLength]-1,
wherein SN-FieldLength is the domain length of the SN;
an eighth determining unit for determining whether RX _ Next + AM _ Window _ Size > 2[sn-FieldLength]At-1, it is determined that SN roll-over occurred.
15. The apparatus of claim 14, wherein the determining module further comprises:
a third updating unit, configured to update a third roll-over indication variable flag _ AM _ r corresponding to a receiving end of the AM RLC entity to obtain an updated third roll-over indication variable flag _ AM _ r, where the second roll-over indication variable flag _ AM _ r is used to indicate the number of times of SN roll-over;
a ninth determining unit, configured to determine, according to the updated third flipping indication variable flag _ AM _ r, that a value range of an SN falling into a receiving window corresponding to a receiving end of the AM RLC entity when the SN flipping occurs is:
Figure FDA0002693791470000081
where, i ═ 0, flag _ am _ r.
16. The apparatus of claim 14, wherein the determination module is specifically configured to:
if the SN overturn is determined to occur, determining that the SN value range falling into a receiving window corresponding to a receiving end of the AM RLC entity when the SN overturn occurs is as follows:
RX_Next≤SN<2[sn-FieldLength]either, or,
0≤SN<2[sn-FieldLength]-RX_Next。
17. an apparatus for determining a radio link control layer window, comprising: memory, processor and radio link control layer window determination program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the method according to any of claims 1 to 8.
18. A computer-readable storage medium, having stored thereon a radio link control layer window determination program which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 8.
CN201810011819.6A 2018-01-05 2018-01-05 Radio link control layer window determination method and device Active CN110012505B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810011819.6A CN110012505B (en) 2018-01-05 2018-01-05 Radio link control layer window determination method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810011819.6A CN110012505B (en) 2018-01-05 2018-01-05 Radio link control layer window determination method and device

Publications (2)

Publication Number Publication Date
CN110012505A CN110012505A (en) 2019-07-12
CN110012505B true CN110012505B (en) 2020-11-10

Family

ID=67164586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810011819.6A Active CN110012505B (en) 2018-01-05 2018-01-05 Radio link control layer window determination method and device

Country Status (1)

Country Link
CN (1) CN110012505B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630785B (en) * 2020-05-08 2024-04-05 大唐移动通信设备有限公司 Adaptive adjustment method and device for size of transmission window of radio link control layer

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1368817A (en) * 2001-01-10 2002-09-11 华硕电脑股份有限公司 Method for determining retransmission range in wireless communication protocol
CN101374331A (en) * 2007-08-20 2009-02-25 华为技术有限公司 Method, system and device for configuring radio link control layer serial number
CN101547070A (en) * 2008-03-24 2009-09-30 华为技术有限公司 Method for determining type of data packet and device thereof
CN106304127A (en) * 2015-05-13 2017-01-04 苏州简约纳电子有限公司 A kind of LTE data surface descending error-detection error-correction method
CN106357548A (en) * 2016-09-18 2017-01-25 京信通信技术(广州)有限公司 Method and system for receiving PDCP (packet data convergence protocol) data packets
CN107359972A (en) * 2017-06-15 2017-11-17 电信科学技术研究院 A kind of data receiver method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8379646B2 (en) * 2006-07-31 2013-02-19 Lg Electronics Inc. Method of processing control information in a mobile communication system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1368817A (en) * 2001-01-10 2002-09-11 华硕电脑股份有限公司 Method for determining retransmission range in wireless communication protocol
CN101374331A (en) * 2007-08-20 2009-02-25 华为技术有限公司 Method, system and device for configuring radio link control layer serial number
CN101547070A (en) * 2008-03-24 2009-09-30 华为技术有限公司 Method for determining type of data packet and device thereof
CN106304127A (en) * 2015-05-13 2017-01-04 苏州简约纳电子有限公司 A kind of LTE data surface descending error-detection error-correction method
CN106357548A (en) * 2016-09-18 2017-01-25 京信通信技术(广州)有限公司 Method and system for receiving PDCP (packet data convergence protocol) data packets
CN107359972A (en) * 2017-06-15 2017-11-17 电信科学技术研究院 A kind of data receiver method and device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
3GPP.3rd Generation Partnership Project *
NR;Radio Link Control (RLC) protocol specification(Release 15).《3GPP TS 38.322》.2018, *
R2-1711542,"Report of email discussion [99#35][NR UP] Reassembly for RLC UM";Qualcomm Inc.;《3GPP TSG-RAN WG2 #99bis》;20170928;全文 *
Technical Specification Group Radio Access Network *

Also Published As

Publication number Publication date
CN110012505A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
EP3641185B1 (en) Radio link control transmission method and related products
US7664059B2 (en) Error handling in a wireless communications system
US20210126741A1 (en) Retransmission control method, communications interface, and electronic device
CN109803277B (en) Method and apparatus for processing data packets
US12267176B2 (en) Sidelink information transmission method, terminal, and control node
JP7073383B2 (en) RLC layer status report control PDU transmission method and related equipment
WO2019029584A1 (en) Method, device and system for transmitting status report
US8982794B2 (en) Determination of packet retransmission using time threshold
CN111770579B (en) Data indication method, network side device and computer readable storage medium
CN110012505B (en) Radio link control layer window determination method and device
EP3780457A1 (en) Physical uplink control channel resource determination method and communication device
WO2019154127A1 (en) Uplink information transmission method and terminal device
US9246638B2 (en) Method and apparatus for polling transmission status in a wireless communications system
WO2020024107A1 (en) Status report sending method and device
US9794930B1 (en) Method and apparatus for packet data unit processing for retransmission
WO2019080059A1 (en) Feedback response information transmission method and related products
WO2021018068A1 (en) Radio link monitoring method and communication device
WO2018201352A1 (en) Data re-transmission control method and related product
CN117692965A (en) Non-ground network uplink data transmission method, device, storage medium and controller
CN110011763A (en) Parameter setting method and device
CN110557229A (en) Data sending method, data receiving method, sending end and receiving end
CN110351221B (en) Method and apparatus for configuring data flow
CN111600689A (en) SRS transmission method and device
CN117785762A (en) Information storage method, device, equipment and storage medium
CN115733807A (en) Communication device with data transmission sequencing mechanism and communication method thereof

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