CN100391143C - Method for detecting transmission errors beyond the detection range of a cyclic redundancy check mechanism - Google Patents
Method for detecting transmission errors beyond the detection range of a cyclic redundancy check mechanism Download PDFInfo
- Publication number
- CN100391143C CN100391143C CNB200510065203XA CN200510065203A CN100391143C CN 100391143 C CN100391143 C CN 100391143C CN B200510065203X A CNB200510065203X A CN B200510065203XA CN 200510065203 A CN200510065203 A CN 200510065203A CN 100391143 C CN100391143 C CN 100391143C
- Authority
- CN
- China
- Prior art keywords
- protocol data
- sequence number
- data unit
- transmission
- detection range
- 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.)
- Expired - Fee Related
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 52
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000001514 detection method Methods 0.000 title claims description 26
- 125000004122 cyclic group Chemical group 0.000 title description 14
- 238000012217 deletion Methods 0.000 claims description 5
- 230000037430 deletion Effects 0.000 claims description 5
- 238000012795 verification Methods 0.000 claims 6
- 238000010295 mobile communication Methods 0.000 abstract description 13
- 238000012545 processing Methods 0.000 abstract description 8
- 238000004891 communication Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 238000009825 accumulation Methods 0.000 description 3
- 230000011664 signaling Effects 0.000 description 2
- 238000001228 spectrum Methods 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Landscapes
- Detection And Prevention Of Errors In Transmission (AREA)
- Communication Control (AREA)
- Detection And Correction Of Errors (AREA)
Abstract
Description
技术领域 technical field
本发明涉及一种检测超出循环冗赘核对机制检测范围的传输错误的方法,特别是涉及一种藉删除序号与前后不连续的协议数据单元以检测传输错误的方法。The invention relates to a method for detecting transmission errors beyond the detection range of a cyclic redundant check mechanism, in particular to a method for detecting transmission errors by deleting serial numbers and discontinuous protocol data units.
背景技术 Background technique
随着信息时代的来临,移动语音、数据通讯与各种移动服务的需求日益增加,已知的移动通讯系统,已面临通讯频道不敷使用与传输速率不足的瓶颈。因此,可提供更高频谱使用率、更高速率传输服务的第三代移动通讯应运而生。相较于现有第二代移动通讯技术,第三代移动通讯最根本的差异在于采用宽频码分多址(Wideband Code Division Multiple Access,WCDMA)的无线接取方式,其用以提供高度频谱利用效率、高的覆盖率及高品质、高速率的多媒体数据传输,同时还能同时满足各种不同的QoS服务要求,提供具弹性的多样化双向传输服务,并提供较佳的通讯品质,有效降低通讯中断率。With the advent of the information age, the demand for mobile voice, data communication and various mobile services is increasing day by day. The known mobile communication systems have faced the bottleneck of insufficient communication channels and insufficient transmission rates. Therefore, the third-generation mobile communication, which can provide higher frequency spectrum utilization and higher-speed transmission services, has emerged as the times require. Compared with the existing second-generation mobile communication technology, the most fundamental difference of the third-generation mobile communication is the use of wideband code division multiple access (WCDMA) wireless access method, which is used to provide a high degree of spectrum utilization Efficiency, high coverage and high-quality, high-speed multimedia data transmission can also meet various QoS service requirements at the same time, provide flexible and diversified two-way transmission services, and provide better communication quality, effectively reducing Communication outage rate.
WCDMA通讯协议堆栈可切割分为接取相关部分(Access Stratum,AS)和非接取相关部分(Non-Access Stratum,NAS)。其中AS包含无线资源控制(Radio Resource Control,RRC)、无线链接控制(Radio Link Control,RLC)、媒体存取控制(Media Access Control,MAC)、包数据聚合协议(Packet DataConvergence Protocol,PDCP)、广播及多重播送控制(Broadcast/MulticastControl,BMC)等数个功能不同的子层。关于上述各子层的运作,本领域的技术人员已熟知,在此不再赘述。其中,无线链接控制层通讯协议的主要功能为提供第三代移动通讯系统不同的传输品质处理,依据不同的传输品质要求,针对所传输的数据或控制指令,进行不同的切割、传送、重传与组合处理。在第三代移动通讯系统中,定义了对话(Conversational)、串流(Streaming)、交互(Interactive)与背景(Background)等四种不同的传输品质等级。无线链接控制是以下列3种方式,进行包的切割分封处理,以满足不同传输品质要求:The WCDMA communication protocol stack can be divided into an access related part (Access Stratum, AS) and a non-access related part (Non-Access Stratum, NAS). Among them, AS includes Radio Resource Control (Radio Resource Control, RRC), Radio Link Control (Radio Link Control, RLC), Media Access Control (Media Access Control, MAC), Packet Data Convergence Protocol (Packet Data Convergence Protocol, PDCP), broadcast and multicast control (Broadcast/MulticastControl, BMC) and several sublayers with different functions. The operations of the above sub-layers are well known to those skilled in the art, and will not be repeated here. Among them, the main function of the wireless link control layer communication protocol is to provide different transmission quality processing for the third-generation mobile communication system. According to different transmission quality requirements, different cuts, transmissions, and retransmissions are performed for the transmitted data or control commands. with combination processing. In the third generation mobile communication system, four different transmission quality levels, such as conversational, streaming, interactive and background, are defined. Wireless link control uses the following three methods to cut and package packets to meet different transmission quality requirements:
1.透明模式(Transparent Mode,TM):根据包长度直接进行切割分封,不做任何其它处理。适用于对实时传输要求较高的服务,如语音电话。1. Transparent mode (Transparent Mode, TM): According to the length of the packet, it is directly cut and divided without any other processing. It is suitable for services that require high real-time transmission, such as voice calls.
2.非确认模式(Unacknowledged Mode,UM):除了切割分封外,在每个包前另加适当的表头,以协助接收端进行包次序的检查与错误包的丢弃。适用于对实时传输及包次序皆有要求的服务,如网络协议语音(Voice overInternet Protocol,VoIP)通讯、视讯电话(Video Phone)等。2. Unacknowledged Mode (Unacknowledged Mode, UM): In addition to cutting and packetizing, an appropriate header is added before each packet to assist the receiving end in checking the packet sequence and discarding error packets. It is suitable for services that require both real-time transmission and packet order, such as Voice over Internet Protocol (VoIP) communication, Video Phone, etc.
3.确认模式(Acknowledged Mode,AM):除了切割分封与包次序表头的附加外,在接收端还需针对每个包进行次序检查、重复检测及重传处理,务使所有包都能正确地到达接收端。适用于对实时传输要求不高,但数据正确性要求很高的服务,如网页浏览、电子邮件、文档传输等服务。3. Acknowledged Mode (Acknowledged Mode, AM): In addition to cutting packets and adding packet sequence headers, the receiving end also needs to perform sequence check, duplicate detection, and retransmission processing for each packet to ensure that all packets are correct. to the receiving end. It is suitable for services that do not require high real-time transmission but high data accuracy, such as web browsing, email, file transmission and other services.
另外,无线链接控制还提供流量控制、包次序重整、包加密、错误检测等包处理服务,以提供完整的数据切割、分封与传输服务。In addition, wireless link control also provides packet processing services such as flow control, packet reordering, packet encryption, and error detection to provide complete data segmentation, packetization, and transmission services.
通过无线传输,用户数据与某些信令信息(Signaling Information)容易受干扰而发生错误,因此必须加密保护,而已知第三代移动通讯系统于移动设备端(Mobile Equipment)与网络控制台(Radio Network Control)间,通过一加密方法(Ciphering Method)对相关数据进行加密。请参考图1,图1为已知第三代移动通讯系统的加密与解密示意图。在传输端,加密密钥(Ciphering Key)CK、计数(Count)COUNT-C、承载标识字段(BearerIdentifier)BEARER、方向标识字段(Direction Identifier)DIRECTION及长度指示字段(Length Indicator)LENGTH等数据通过F8算法得出多个密钥串区块(Keystream Block)KEYSTREAM,密钥串区块KEYSTREAM再与明文(Plain Text)区块PLAIN-TEXT加密得到密文(Cipher Text)区块CIPHER-TEXT。接收端则可藉与传输端相同的密钥串区块对所接收的密文(Cipher Text)区块进行解密,从而得到明文区块。其中,除了计数COUNT-C是动态改变外,其它参数在加密阶段开始前就已决定,且在加密阶段中都维持固定。计数COUNT-C的长度为32位,其包含超帧号(Hyper Frame Number)HFN及序号(Sequence Number)SN两部分。当超过序号SN的表示位数所能表示的数值时,序号SN会从启始值(0)重新开始累加,同时超帧号HFN会被加1。举例来说,当序号SN由七个位表示时,亦即序号SN可依序计数0到127。一旦序号SN超过127时,超帧号HFN就会被加1,而序号SN则重新由0开始。此时因无跳号发生,序号由127重新回归至0时,二序号视为连续。序号SN是嵌入于每一协议数据单元(Protocol Data Unit)中,而超帧号HFN的启始值则在加密前就由传输端及接收端约定好。因此,根据每一协议数据单元的序号SN,传输端与接收端分别于适当时机累加超帧号HFN,以令彼此保持HFN的同步,确保加解密的顺利进行。Through wireless transmission, user data and some signaling information (Signaling Information) are susceptible to interference and errors, so they must be encrypted and protected. Network Control), through a encryption method (Ciphering Method) to encrypt the relevant data. Please refer to FIG. 1 . FIG. 1 is a schematic diagram of encryption and decryption of a known third-generation mobile communication system. At the transmission end, data such as the encryption key (Ciphering Key) CK, the count (Count) COUNT-C, the bearer identifier field (BearerIdentifier) BEARER, the direction identifier field (Direction Identifier) DIRECTION, and the length indicator field (Length Indicator) LENGTH pass through the F8 The algorithm obtains multiple keystream blocks (Keystream Block) KEYSTREAM, and the keystring block KEYSTREAM is encrypted with the plaintext (Plain Text) block PLAIN-TEXT to obtain the ciphertext (Cipher Text) block CIPHER-TEXT. The receiving end can use the same key string block as the transmitting end to decrypt the received cipher text (Cipher Text) block to obtain the plain text block. Wherein, except that the count COUNT-C is changed dynamically, other parameters are determined before the encryption phase starts, and remain fixed during the encryption phase. The length of the count COUNT-C is 32 bits, which includes two parts: the Hyper Frame Number (Hyper Frame Number) HFN and the sequence number (Sequence Number) SN. When the value that can be represented by the number of digits of the sequence number SN is exceeded, the sequence number SN will start to accumulate again from the initial value (0), and the hyperframe number HFN will be increased by 1 at the same time. For example, when the sequence number SN is represented by seven bits, that is, the sequence number SN can be counted from 0 to 127 in sequence. Once the sequence number SN exceeds 127, the hyperframe number HFN will be increased by 1, and the sequence number SN will start from 0 again. At this time, because there is no skip number, when the sequence number returns from 127 to 0, the two sequence numbers are considered continuous. The serial number SN is embedded in each Protocol Data Unit, and the initial value of the hyperframe number HFN is agreed upon by the transmitting end and the receiving end before encryption. Therefore, according to the serial number SN of each protocol data unit, the transmitting end and the receiving end accumulate the hyperframe number HFN at an appropriate time, so as to maintain the synchronization of HFN and ensure the smooth progress of encryption and decryption.
在WCDMA通讯协议中,无线链接控制层之下的L1层包含循环冗赘核对(Cyclic Redundancy Check,CRC)机制,用以检查所接收的协议数据单元的正确性。通过循环冗赘核对机制发现错误时,表示传输期间协议数据单元已发生错误,因此发生错误的协议数据单元会被丢弃、删除而不会传至上一层。相反,若无循环冗赘核对错误时,则接收端所接收的协议数据单元会被传至无线链接控制层,以进行后续处理。In the WCDMA communication protocol, the L1 layer below the radio link control layer includes a Cyclic Redundancy Check (CRC) mechanism to check the correctness of the received PDU. When an error is found through the cyclic redundancy check mechanism, it means that an error has occurred in the protocol data unit during transmission, so the error protocol data unit will be discarded or deleted and will not be transmitted to the upper layer. On the contrary, if there is no CRC error, the PDU received by the receiving end will be sent to the RLC layer for subsequent processing.
一般而言,循环冗赘核对字段包含12或16位,因此有可能序号SN的区域发生传输错误,但循环冗赘核对机制却无法检查出该错误。上述情形称为「超出循环冗赘核对机制检测范围的错误」,若序号SN发生超出循环冗赘核对机制检测范围的错误,则传输端与接收端的超帧号HFN会不同步而产生一连串的错误。以序号SN由七个位表示为例,若传输端输出的一序列协议数据单元的序号SN依序为0、1、2、3、4、5...,且此时超帧号HFN=1。当SN=3的数据区块发生传输错误且发生超出循环冗赘核对机制检测范围的错误,而使得接收端所接收的协议数据单元的序号SN依序为0、1、2、30、4、5...,亦即原本序号SN=3的第四数据区块的序号SN变成30。由于序号SN=30与序号SN=2不连续,已知技术的传输端会将超帧号HFN=1中序号SN=3至29的协议数据单元视为在传输过程中遗失(实际上未遗失),而当接收到序号SN=4的协议数据单元时,接收端会将序号SN=4的协议数据单元视为下一循环(即超帧号HFN=2)序号SN=4的协议数据单元,因此将超帧号HFN加1。也就是说,接收端接收到序号SN=4的协议数据单元时,由于序号SN=4小于序号SN=30,因此接收端会将超帧号HFN=1中序号SN=30之后到下一序号循环(超帧号HFN=2)的序号SN=4之前的协议数据单元视为已遗失(实际上未遗失)。换句话说,传输端与接收端的超帧号HFN变成不同步,甚至影响之后所有协议数据单元,而发生严重错误。为了解决上述问题,已知技术还提供一种设定接收窗以改善上述问题的方法。但此方法会造成协议数据单元被错误遗除,举例来说,若接收窗的大小为40,而所接收的协议数据单元的序号SN=0、1、2、30、4、5...30、31、32...,亦即第四个协议数据单元的序号SN发生错误。但由于序号SN=30相较于序号SN=2仍落在接收窗大小40的范围(2+1=3至3+40-1=42)内,因此接收窗不会将序号SN=30的协议数据单元删除,反而将第5到31个接收到的协议数据单元(序号SN=4到序号SN=30)误认为不在接收窗范围(30+1=31至31+40-1=70),而将其删除。简言之,虽然接收窗可于一协议数据单元的序号落在接收窗之外时,将该协议数据单元删除,但当一错误协议数据单元的序号落在接收窗之内时,已知技术会错误删除掉正常接收到的协议数据单元。Generally speaking, the CRC field contains 12 or 16 bits, so there may be a transmission error in the SN field, but the CRC mechanism cannot detect the error. The above situation is called "error beyond the detection range of the cyclic redundancy check mechanism". If the sequence number SN has an error beyond the detection range of the cyclic redundancy check mechanism, the hyperframe number HFN at the transmitting end and the receiving end will be out of sync and a series of errors will occur . Taking the sequence number SN represented by seven bits as an example, if the sequence number SN of a sequence of protocol data units output by the transmission end is 0, 1, 2, 3, 4, 5..., and the hyperframe number HFN= 1. When the data block with SN=3 has a transmission error and an error beyond the detection range of the cyclic redundancy check mechanism occurs, the sequence number SN of the protocol data unit received by the receiving end is 0, 1, 2, 30, 4, 5 . . . , that is, the sequence number SN of the fourth data block whose original sequence number SN=3 becomes 30. Since the sequence number SN=30 and the sequence number SN=2 are not continuous, the transmission end of the known technology will regard the protocol data units with the sequence numbers SN=3 to 29 in the hyperframe number HFN=1 as being lost during transmission (in fact, not lost ), and when receiving the protocol data unit with sequence number SN=4, the receiving end will regard the protocol data unit with sequence number SN=4 as the protocol data unit with sequence number SN=4 in the next cycle (that is, hyperframe number HFN=2) , so add 1 to the superframe number HFN. That is to say, when the receiving end receives the protocol data unit with the sequence number SN=4, since the sequence number SN=4 is smaller than the sequence number SN=30, the receiving end will transfer the sequence number after the sequence number SN=30 in the hyperframe number HFN=1 to the next sequence number PDUs before sequence number SN=4 of the cycle (hyperframe number HFN=2) are considered lost (actually not lost). In other words, the hyperframe numbers HFN of the transmitting end and the receiving end become out of sync, and even affect all subsequent PDUs, resulting in serious errors. In order to solve the above problems, the known technology also provides a method of setting a receiving window to improve the above problems. But this method will cause the protocol data unit to be discarded by mistake. For example, if the size of the receiving window is 40, and the serial number SN of the received protocol data unit=0, 1, 2, 30, 4, 5... 30, 31, 32..., that is, the sequence number SN of the fourth PDU is wrong. But because the sequence number SN=30 still falls within the range of receiving window size 40 (2+1=3 to 3+40-1=42) compared with the sequence number SN=2, the receiving window will not convert the sequence number SN=30 The protocol data unit is deleted, but the 5th to 31st received protocol data units (sequence number SN=4 to sequence number SN=30) are mistakenly regarded as not in the range of the receiving window (30+1=31 to 31+40-1=70) , and delete it. In short, although the receive window can delete a PDU when the sequence number of the PDU falls outside the receive window, when the sequence number of an error PDU falls within the receive window, the known technology Normally received PDUs will be deleted by mistake.
发明内容 Contents of the invention
因此,本发明的主要目的是提供一种检测超出循环冗赘核对机制检测范围的传输错误的方法,以改善已知技术的缺点。Therefore, the main purpose of the present invention is to provide a method for detecting transmission errors beyond the detection range of the cyclic redundancy check mechanism, so as to improve the disadvantages of the known technology.
本发明披露一种检测传输错误的方法,用以于一移动通讯系统的接收端中,检测超出循环冗赘核对机制检测范围的传输错误,该方法包含有:依序暂存多个协议数据单元(Protocol Data Unit);依序检查该多个协议数据单元的序号(Sequence Number);以及于一协议数据单元的序号与该协议数据单元的前一协议数据单元的序号不连续时,并于该协议数据单元的序号与该协议数据单元的后一协议数据单元的序号不连续时,不处理该协议数据单元并将该协议数据单元删除。The present invention discloses a method for detecting transmission errors, which is used in a receiving end of a mobile communication system to detect transmission errors beyond the detection range of a cyclic redundancy check mechanism. The method includes: sequentially temporarily storing a plurality of protocol data units (Protocol Data Unit); sequentially check the sequence number (Sequence Number) of the plurality of protocol data units; and when the sequence number of a protocol data unit is not continuous with the sequence number of the previous protocol data unit of the protocol data unit, and at the When the sequence number of the protocol data unit is not continuous with the sequence number of the subsequent protocol data unit of the protocol data unit, the protocol data unit is not processed and the protocol data unit is deleted.
本发明还披露一种检测超出循环冗赘核对机制检测范围的传输错误的方法,用以于一移动通讯系统的接收端中,检测超出循环冗赘核对机制检测范围的传输错误,该方法包含有:依序暂存多个协议数据单元(Protocol DataUnit);依序检查该多个协议数据单元中连续三个协议数据单元的序号(Sequence Number),并设该连续三个协议数据单元的序号依序为a、b及c;检查a、b及c的值是否符合(b-a+N)mod N+(c-b+N)mod N>=N,其中N=2k,k为序号的位数,mod表示余数运算;以及于a、b及c的值符合(b-a+N)mod N+(c-b+N)mod N>=N时,不处理序号为b的协议数据单元并将该协议数据单元删除。The present invention also discloses a method for detecting transmission errors beyond the detection range of the cyclic redundancy check mechanism, which is used in a receiving end of a mobile communication system to detect transmission errors beyond the detection range of the cyclic redundancy check mechanism. The method includes the following steps: : Temporarily store a plurality of Protocol Data Units (Protocol DataUnits) in sequence; check the sequence numbers (Sequence Number) of three consecutive Protocol Data Units in the plurality of Protocol Data Units in sequence, and set the sequence numbers of the three consecutive Protocol Data Units according to The sequence is a, b and c; check whether the values of a, b and c conform to (b-a+N) mod N+(c-b+N) mod N>=N, where N=2 k , k is the sequence number The number of digits, mod represents the remainder operation; and when the values of a, b and c conform to (b-a+N) mod N+(c-b+N) mod N>=N, the protocol data unit whose serial number is b is not processed And delete the protocol data unit.
附图说明 Description of drawings
图1为已知第三代移动通讯系统的加密与解密示意图。FIG. 1 is a schematic diagram of encryption and decryption of a known third-generation mobile communication system.
图2为本发明第一实施例检测传输错误的流程图。FIG. 2 is a flow chart of detecting transmission errors according to the first embodiment of the present invention.
图3为本发明第二实施例检测传输错误的流程图。FIG. 3 is a flow chart of detecting transmission errors according to the second embodiment of the present invention.
具体实施方式 Detailed ways
请参考图2,图2为本发明第一实施例检测传输错误的流程20的示意图。流程20用以于一移动通讯系统的接收端中,检测超出循环冗赘核对机制检测范围的传输错误。流程20包含有以下步骤:Please refer to FIG. 2 , which is a schematic diagram of a process 20 for detecting transmission errors according to a first embodiment of the present invention. The process 20 is used in a receiving end of a mobile communication system to detect transmission errors beyond the detection range of the CRC mechanism. Process 20 includes the following steps:
步骤200:开始;Step 200: start;
步骤202:依序暂存多个协议数据单元(Protocol Data Unit);Step 202: Temporarily storing multiple Protocol Data Units in sequence;
步骤204:依序检查该多个协议数据单元的序号(Sequence Number);Step 204: check the sequence numbers (Sequence Number) of the plurality of protocol data units in sequence;
步骤206:于一协议数据单元的序号与该协议数据单元的前一协议数据单元的序号不连续时,并于该协议数据单元的序号与该协议数据单元的后一协议数据单元的序号不连续时,不处理该协议数据单元并将该协议数据单元删除;Step 206: When the sequence number of a PDU is not continuous with the sequence number of the previous PDU of the PDU, and when the sequence number of the PDU is not continuous with the sequence number of the subsequent PDU of the PDU , the protocol data unit is not processed and the protocol data unit is deleted;
步骤208:结束。Step 208: end.
根据流程20,本发明于检测到一协议数据单元的序号SN与前后协议数据单元的序号SN均不连续时,将该协议数据单元删除,因此可避免错误删除协议数据单元及错误累加超帧号HFN,还可避免超出循环冗赘核对机制检测范围的传输错误。特别是对于无线链接控制操作于非确认模式下的情形,由于对实时传输及包次序皆有要求,因此对传输端与接收端间超帧号HFN的同步特别要求。特别注意的是,本发明只于一协议数据单元的序号SN与前后协议数据单元的序号SN同时不连续时,才会将该协议数据单元删除。反之,若一协议数据单元的序号SN只与前或后一序号SN不连续时,则不符合本发明删除协议数据单元的条件。According to the process 20, when the present invention detects that the sequence number SN of a protocol data unit is not continuous with the sequence numbers SN of the previous and subsequent protocol data units, the protocol data unit is deleted, so that the mistaken deletion of the protocol data unit and the error accumulation of the superframe number can be avoided HFN also avoids transmission errors beyond the detection range of the cyclic redundancy check mechanism. Especially for the case where the RLC operates in the unacknowledged mode, due to the requirement for real-time transmission and packet sequence, there is a special requirement for the synchronization of the hyperframe number HFN between the transmitting end and the receiving end. It should be noted that the present invention deletes a PDU only when the sequence number SN of the PDU is not continuous with the sequence numbers SN of the previous and subsequent PDUs. On the contrary, if the sequence number SN of a protocol data unit is only discontinuous with the previous or subsequent sequence number SN, the condition of deleting the protocol data unit of the present invention is not met.
举例来说,若传输端输出的一序列协议数据单元的序号SN依序为0、1、2、3、4、5...,且此时超帧号HFN=1。当发生传输错误且发生超出循环冗赘核对机制检测范围的错误,而使得接收端所接收的协议数据单元的序号SN依序为0、1、2、30、4、5...,亦即原本序号SN=3的第四个数据区块的序号SN变成30。根据本发明流程20,序号SN=30与序号SN=2不连续,亦与序号SN=4不连续,因此序号SN=30的协议数据单元会被删除,且超帧号HFN不会被累加而维持1,因此可维持正常操作,并进行后续处理。For example, if the sequence number SN of a sequence of PDUs output by the transmitting end is 0, 1, 2, 3, 4, 5..., and the hyperframe number HFN=1 at this time. When a transmission error occurs and an error beyond the detection range of the cyclic redundancy check mechanism occurs, the sequence number SN of the protocol data unit received by the receiving end is 0, 1, 2, 30, 4, 5..., that is The sequence number SN of the fourth data block whose original sequence number SN=3 becomes 30. According to the process 20 of the present invention, the serial number SN=30 is not continuous with the serial number SN=2, and is also discontinuous with the serial number SN=4, so the protocol data unit with the serial number SN=30 will be deleted, and the hyperframe number HFN will not be accumulated and Maintain 1, so normal operation can be maintained, and follow-up processing.
相较于已知技术,本发明可检测超出循环冗赘核对机制检测范围的传输错误,因此可避免错误累加超帧号HFN及避免错误删除协议数据单元,从而提升接收效率,改善已知技术的缺点。Compared with the known technology, the present invention can detect transmission errors beyond the detection range of the cyclic redundant check mechanism, so it can avoid the error accumulation of hyperframe number HFN and avoid the error deletion of protocol data units, thereby improving the receiving efficiency and improving the performance of the known technology shortcoming.
因此,根据流程20,本发明可删除序号不连续的协议数据单元,以增加接收效率。然而,协议数据单元的序号的不连续可能是单纯由协议数据单元的区块错误所造成,在此情形下,本发明第一实施例流程20可能会删除正确的协议数据单元。举例来说,若传输端输出的一序列协议数据单元的序号SN依序为0、1、2、3、4、5...,由于传输错误或协议数据单元的区块错误,使得接收端所接收的协议数据单元的序号SN依序为0、1、2、30、4、6、7、...,其中第四协议数据单元的序号SN由3变成30,而序号SN=5的协议数据单元发生遗失。此时,若根据流程20,则由于序号SN=30与前后的序号SN=2及4不连续,因此序号SN=30的协议数据单元会被删除,同时,序号SN=4亦与前后的序号SN=2及6不连续,因此序号SN=4的协议数据单元也会被删除,亦即序号SN=4的协议数据单元会被错误删除。为了改善上述问题,本发明还提供一方法。请参考图3,图3为本发明第二实施例检测传输错误的流程30的示意图。流程30用以于一移动通讯系统的接收端中,检测超出循环冗赘核对机制检测范围的传输错误。流程30包含有以下步骤:Therefore, according to the process 20, the present invention can delete PDUs with discontinuous sequence numbers to increase receiving efficiency. However, the discontinuity of the serial numbers of the PDUs may be simply caused by block errors of the PDUs. In this case, the process 20 of the first embodiment of the present invention may delete the correct PDUs. For example, if the sequence number SN of a sequence of PDUs output by the transmitting end is 0, 1, 2, 3, 4, 5..., due to a transmission error or a block error of the PDU, the receiving end The sequence number SN of the received protocol data unit is 0, 1, 2, 30, 4, 6, 7, ..., wherein the sequence number SN of the fourth protocol data unit changes from 3 to 30, and the sequence number SN=5 The protocol data unit for is missing. At this time, according to the process 20, since the sequence number SN=30 is not continuous with the sequence numbers SN=2 and 4 before and after, the protocol data unit with the sequence number SN=30 will be deleted, and at the same time, the sequence number SN=4 is also consistent with the sequence numbers SN=2 and 6 are not consecutive, so the PDU with SN=4 will also be deleted, that is, the PDU with SN=4 will be deleted by mistake. In order to improve the above problems, the present invention also provides a method. Please refer to FIG. 3 , which is a schematic diagram of a transmission
步骤300:开始;Step 300: start;
步骤302:依序暂存多个协议数据单元(Protocol Data Unit);Step 302: Temporarily storing multiple Protocol Data Units (Protocol Data Units) in sequence;
步骤304:依序检查该多个协议数据单元中连续三个协议数据单元的序号(Sequence Number),并设该连续三个协议数据单元的序号依序为a、b及c;Step 304: check the serial numbers (Sequence Number) of three consecutive PDUs in the plurality of PDUs in sequence, and set the sequence numbers of the three consecutive PDUs as a, b and c in sequence;
步骤306:检查a、b及c的值是否符合(b-a+N)mod N+(c-b+N)modN>=N,其中N=2k,k为序号的位数,mod表示余数运算;Step 306: Check whether the values of a, b and c conform to (b-a+N) mod N+(c-b+N) mod N>=N, wherein N= 2k , k is the number of digits of the serial number, and mod represents the remainder operation;
步骤308:于a、b及c的值符合(b-a+N)mod N+(c-b+N)mod N>=N时,不处理序号为b的协议数据单元并将该协议数据单元删除;Step 308: When the values of a, b and c conform to (b-a+N) mod N+(c-b+N) mod N>=N, do not process the protocol data unit whose serial number is b and send the protocol data unit delete;
步骤310:结束。Step 310: end.
根据流程30,本发明是检查连续三个协议数据单元的序号a、b及c的值是否符合式子:(b-a+N)mod N+(c-b+N)mod N>=N,以于a、b及c的值符合该式时,不处理序号为b的协议数据单元并将该协议数据单元删除,以避免正确的协议数据单元遭到删除。举例来说,对于一使用七位序号SN的系统而言,若传输端输出的一序列协议数据单元的序号SN依序为0、1、2、3、4、5...,由于传输错误或协议数据单元的区块错误,使得接收端所接收的协议数据单元的序号SN依序为0、1、2、30、4、6、7、...,其中第四协议数据单元的序号SN由3变成30,而序号SN=5的协议数据单元发生遗失。根据流程30,对于前三序号SN=0、1、2,由于(1-0+128)mod 128+(2-1+128)mod 128=1+1=2<128,因此序号SN=0、1、2不符上述的式子,同理序号SN=1、2、30亦不符合上式。对于序号SN=2、30、4而言,(30-2+128)mod 128+(4-30+128)mod 128=28+102=130>128,因此序号SN=2、30、4符合本发明流程30所设定的条件,所以序号SN=30的协议数据单元会被删除。进一步地,对于序号SN=2、4、6(序号SN=30的协议数据单元已被删除)而言,由于(4-2+128)mod 128+(6-4+128)mod 128=2+2=4<128,因此不符合流程30中协议数据单元删除的条件。According to the
相较于流程20,流程30不仅可避免错误累加超帧号HFN,还可防止因协议数据单元的区块错误所造成的序号不连续的情形,以提升接收效率,节省系统成本,改善已知技术的缺点。Compared with the process 20, the
以上所述仅为本发明的较佳实施例,凡依本发明的权利要求所做的均等变化与修饰,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention.
Claims (7)
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US59356005P | 2005-01-26 | 2005-01-26 | |
| US60/593,560 | 2005-01-26 | ||
| US60/593,662 | 2005-02-03 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1812306A CN1812306A (en) | 2006-08-02 |
| CN100391143C true CN100391143C (en) | 2008-05-28 |
Family
ID=36845016
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB200510065203XA Expired - Fee Related CN100391143C (en) | 2005-01-26 | 2005-04-14 | Method for detecting transmission errors beyond the detection range of a cyclic redundancy check mechanism |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN100391143C (en) |
| TW (1) | TWI254521B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101686494B (en) * | 2008-09-22 | 2012-07-04 | 电信科学技术研究院 | Method and device for processing packets by packet data convergence protocol (PDCP) layer |
| CN107148025B (en) * | 2016-03-01 | 2020-08-28 | 深圳市中兴微电子技术有限公司 | Data packet processing method and device |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020097809A1 (en) * | 2001-01-10 | 2002-07-25 | Sam Shiaw-Shiang Jiang | Retransmission range for a communications protocol |
| US20020191544A1 (en) * | 2001-04-25 | 2002-12-19 | Cheng Mark W. | Method and system for interlayer control between re-sequencing and retransmission entities |
| CN1428949A (en) * | 2001-12-27 | 2003-07-09 | 华为技术有限公司 | Transmission control method for high-speed data service when changing service small zone |
| CN1437368A (en) * | 2002-02-08 | 2003-08-20 | 华硕电脑股份有限公司 | Confirmation method for data transmission |
-
2005
- 2005-02-04 TW TW94103659A patent/TWI254521B/en not_active IP Right Cessation
- 2005-04-14 CN CNB200510065203XA patent/CN100391143C/en not_active Expired - Fee Related
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020097809A1 (en) * | 2001-01-10 | 2002-07-25 | Sam Shiaw-Shiang Jiang | Retransmission range for a communications protocol |
| US20020191544A1 (en) * | 2001-04-25 | 2002-12-19 | Cheng Mark W. | Method and system for interlayer control between re-sequencing and retransmission entities |
| CN1428949A (en) * | 2001-12-27 | 2003-07-09 | 华为技术有限公司 | Transmission control method for high-speed data service when changing service small zone |
| CN1437368A (en) * | 2002-02-08 | 2003-08-20 | 华硕电脑股份有限公司 | Confirmation method for data transmission |
Also Published As
| Publication number | Publication date |
|---|---|
| TWI254521B (en) | 2006-05-01 |
| TW200627851A (en) | 2006-08-01 |
| CN1812306A (en) | 2006-08-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1686718A2 (en) | Method of CRC residue error detection and handling | |
| US7254765B2 (en) | Method and devices for error tolerant data transmission, wherein retransmission of erroneous data is performed up to the point where the remaining number of errors is acceptable | |
| JP5047472B2 (en) | MAC header compression used with frame aggregation | |
| US20080310452A1 (en) | Data link layer headers | |
| US20090319850A1 (en) | Local drop control for a transmit buffer in a repeat transmission protocol device | |
| US20100158044A1 (en) | Method and apparatus for bundling and ciphering data | |
| CN106797376B (en) | Method and apparatus for handling packet loss in mobile communication network | |
| CN101064594B (en) | Method and apparatus of deciphering parameter synchronously in a wireless communications device | |
| EP1710942B1 (en) | Method and devices for digital data transfer | |
| US7411979B2 (en) | Enhanced SDU discard procedure for a special data segmentation in a wireless communications system | |
| US8122247B2 (en) | Processing method for message integrity with tolerance for non-sequential arrival of message data | |
| US8413000B2 (en) | Retransmission above the gamma interface | |
| CN100391143C (en) | Method for detecting transmission errors beyond the detection range of a cyclic redundancy check mechanism | |
| EP1510017B1 (en) | Synchronizing method and apparatus using error detection of sequence numbers to avoid synchronizing failure | |
| JP2004289431A (en) | Real-time information transmission system, real-time information transmission device, real-time information transmission method and program | |
| US8631313B2 (en) | Method of error detection for wireless transmission | |
| EP1947871A1 (en) | Method and apparatus for reordering of packets in PDCP layer of a wireless communications system | |
| US20080137687A1 (en) | Method and apparatus for handling reordering in a wireless communications system | |
| CN102938679B (en) | Method for Detecting Wireless Transmission Errors | |
| CN112333773A (en) | Communication processing method, device, apparatus and storage medium | |
| CN101710854B (en) | Retransmission scheme for communication systems | |
| HK1113965A1 (en) | Method and apparatus for handling out-of-sequence packets in header decompression | |
| HK1113965B (en) | Method and apparatus for handling out-of-sequence packets in header decompression |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| ASS | Succession or assignment of patent right |
Owner name: INNOVATIVE SONIC LTD. Free format text: FORMER OWNER: HUASHUO COMPUTER CO LTD Effective date: 20070914 |
|
| C41 | Transfer of patent application or patent right or utility model | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20070914 Address after: The British Virgin Islands Tortora Rhodes town Applicant after: Innovative Sonic Ltd. Address before: Taipei city of Taiwan Province Applicant before: Huashuo Computer Co., Ltd. |
|
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| C17 | Cessation of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080528 |