[go: up one dir, main page]

CN103404101A - Decoding method and device - Google Patents

Decoding method and device Download PDF

Info

Publication number
CN103404101A
CN103404101A CN2012800027906A CN201280002790A CN103404101A CN 103404101 A CN103404101 A CN 103404101A CN 2012800027906 A CN2012800027906 A CN 2012800027906A CN 201280002790 A CN201280002790 A CN 201280002790A CN 103404101 A CN103404101 A CN 103404101A
Authority
CN
China
Prior art keywords
data packet
type
encrypted data
encrypted
previous
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012800027906A
Other languages
Chinese (zh)
Other versions
CN103404101B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN103404101A publication Critical patent/CN103404101A/en
Application granted granted Critical
Publication of CN103404101B publication Critical patent/CN103404101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Communication Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例公开了一种译码的方法和装置。该方法包括:获取一类加密数据包,该一加密数据包为经过加密的已知信息位信息,该一类加密数据包来自RLC层;预测二类加密数据包的SN,该二类加密数据包来自发送端的物理层;根据该预测的SN,利用该一类加密数据包中该经过加密的已知信息位信息对该二类加密数据包进行译码。本发明实施例的译码的方法和装置可以更有效的使用已知位信息进行译码,以提高译码的效率。

Figure 201280002790

The embodiment of the invention discloses a decoding method and device. The method includes: obtaining a type of encrypted data packet, which is encrypted known information bit information, and the type of encrypted data packet comes from the RLC layer; predicting the SN of the second type of encrypted data packet, the second type of encrypted data packet The packet comes from the physical layer of the sending end; according to the predicted SN, the encrypted data packet of the second type is decoded by using the encrypted known information bit information in the encrypted data packet of the first type. The decoding method and device of the embodiments of the present invention can more effectively use known bit information for decoding, so as to improve decoding efficiency.

Figure 201280002790

Description

译码的方法和装置Decoding method and device

技术领域technical field

本发明涉及通信领域,并且更具体地,涉及译码的方法和装置。The present invention relates to the communication field, and more particularly, to a decoding method and device.

背景技术Background technique

随着智能终端的普及和移动应用需求的大量增加,移动业务呈现新的特点,网页浏览和视频点播等基于IP的业务占了终端的网络流量越来越大的比重。相比较传统的语音和文件传输业务,网络浏览和视频点播业务对移动网络带来更高速率,更短时延等新需求,同时这些业务自身也呈现出新的特点。这些业务需要下行较大的传输速率,但是对于上行而言,通常主要是反馈大量的针对下行传输的TCP/IP确认小数据包,这些数据包少部分是在TCP/IP头标上附加少量内容,大部分仅仅包括TCP/IP头标。根据TCP/IP协议,TCP/IP头标有很多固定的信息,如IP头标中的源地址和一些固定的填充域等内容。这些固定的信息含有丰富的已知信息可以被利用,但是接收到的数据包由于经过高层的加密,对基站侧的物理层来说这些已知信息其实都是未知的,无法在基站侧物理层利用这些被加密的已知信息进行辅助译码。With the popularization of smart terminals and the massive increase in demand for mobile applications, mobile services present new features. IP-based services such as web browsing and video-on-demand account for an increasing proportion of terminal network traffic. Compared with traditional voice and file transmission services, web browsing and video-on-demand services bring new requirements such as higher speed and shorter delay to mobile networks, and these services themselves also present new characteristics. These services require a relatively large transmission rate for the downlink, but for the uplink, it usually mainly feeds back a large number of TCP/IP confirmation small data packets for downlink transmission, and a small part of these data packets is to attach a small amount of content to the TCP/IP header , most of which only include TCP/IP headers. According to the TCP/IP protocol, the TCP/IP header has a lot of fixed information, such as the source address in the IP header and some fixed padding fields. These fixed information contain a wealth of known information that can be used. However, due to the high-level encryption of the received data packets, these known information are actually unknown to the physical layer on the base station side, and cannot be transmitted at the physical layer on the base station side. Auxiliary decoding is performed using these encrypted known information.

现有技术中对于这些固定的已知信息,物理层简单的认为是全0或者全1,若被加密,则就不再是全0或者全1,无法进行辅助译码。In the prior art, the physical layer simply regards these fixed known information as all 0s or all 1s. If encrypted, it is no longer all 0s or all 1s, and auxiliary decoding cannot be performed.

发明内容Contents of the invention

本发明实施例提供了一种译码的方法和译码装置,能够提升利用已知信息位译码的效率。Embodiments of the present invention provide a decoding method and a decoding device, which can improve the efficiency of decoding using known information bits.

第一方面,提供了一种译码的方法,包括:获取一类加密数据包,该一类加密数据包为经过加密的已知信息位信息,该一类加密数据包来自无线链路控制(Radio Link Control,简称为“RLC”)层;预测二类加密数据包的SN,该二类加密数据包来自发送端的物理层;根据该预测的SN,利用该一类加密数据包中该经过加密的已知信息位信息对该二类加密数据包进行译码。In the first aspect, a decoding method is provided, including: obtaining a type of encrypted data packet, the type of encrypted data packet is encrypted known information bit information, and the type of encrypted data packet comes from the wireless link control ( Radio Link Control, referred to as "RLC") layer; predict the SN of the second type of encrypted data packet, the second type of encrypted data packet comes from the physical layer of the sender; according to the predicted SN, use the encrypted The known information bit information of the second type of encrypted data packet is decoded.

在第一种可能的实现方式中,该获取一类加密数据包之前,该方法还包括:在RLC层实体内,基于该RLC实体对应的SN组内的每个SN生成该SN对应的密码流,用该密码流对该已知信息位信息进行加密,得到该一类加密数据包。In a first possible implementation, before acquiring a type of encrypted data packet, the method further includes: in the RLC layer entity, generating a cipher stream corresponding to the SN based on each SN in the SN group corresponding to the RLC entity , using the cipher stream to encrypt the known information bit information to obtain this type of encrypted data packet.

在第二种可能的实现方式中,结合第一方面或第一方面的第一种可能的实现方式,当用基本译码方式对二类加密数据包译码错误,该二类加密数据包对应一个RLC实体时,该预测二类加密数据包的SN之前,还包括:判断该二类加密数据包是否为该关注类型数据包;当该判断结果为该二类加密数据包为该关注类型数据包时,预测该二类加密数据包中的已知信息位对应的SN。In the second possible implementation, combined with the first aspect or the first possible implementation of the first aspect, when the basic decoding method is used to decode the second type of encrypted data packet incorrectly, the second type of encrypted data packet corresponds to In the case of an RLC entity, before the SN of the predicted Class 2 encrypted data packet, it also includes: judging whether the Class 2 encrypted data packet is the concerned type data packet; when the judgment result is that the Class 2 encrypted data packet is the concerned type data Predict the SN corresponding to the known information bits in the second-class encrypted data packet.

在第三种可能的实现方式中,结合第一方面或第一方面的第一种或第二种可能的实现方式,当用基本译码方式对二类加密数据包译码错误,该一类加密数据包存对应多个RLC实体时,该预测二类加密数据包的SN之前,还包括:判断该二类加密数据包是否为该关注类型数据包;该判断结果为该二类加密数据包为该关注类型数据包时,选取在上段接收时间内出现概率最大的该RLC实体所对应的SN组后进行预测该二类加密数据包中的该已知信息位对应的SN。In the third possible implementation, combined with the first aspect or the first or second possible implementation of the first aspect, when the basic decoding method is used to decode the second type of encrypted data packet incorrectly, the type When the encrypted data packet is stored corresponding to multiple RLC entities, before predicting the SN of the second type encrypted data packet, it also includes: judging whether the second type encrypted data packet is the concerned type data packet; the judgment result is that the second type encrypted data packet When it is the data packet of the concerned type, select the SN group corresponding to the RLC entity with the highest probability of occurrence in the last receiving time, and then predict the SN corresponding to the known information bit in the second type encrypted data packet.

在第四种可能的实现方式中,结合第一方面或第一方面的第一种至第三种任一种可能的实现方式,该预测二类加密数据包的SN包括:判断该二类加密数据包是否为新传;当该判断该二类的加密数据包是否为新传的判断结果为该二类加密数据包是新传时,判断该二类加密数据包的前一个二类加密数据包是否正确接收;当该判断该二类加密数据包的该前一个二类加密数据包是否正确接收的判断结果为该前一个二类加密数据包正确接收,预测该SN为该前一个二类加密数据包的SN加1或预测该SN为该前一个二类加密数据包的SN加1并加溢后取模。In the fourth possible implementation manner, in combination with the first aspect or any of the first to third possible implementation manners of the first aspect, the predicting the SN of the second-type encrypted data packet includes: judging the second-type encryption Whether the data packet is newly transmitted; when the judgment result of judging whether the encrypted data packet of the second type is newly transmitted is that the encrypted data packet of the second type is newly transmitted, it is judged that the previous encrypted data of the second type encrypted in the encrypted data packet of the second type Whether the packet is received correctly; when the judgment result of whether the previous class 2 encrypted data packet of the class 2 encrypted data packet is received correctly is that the previous class 2 encrypted data packet is received correctly, the SN is predicted to be the previous class 2 encrypted data packet Add 1 to the SN of the encrypted data packet or predict that the SN is the SN of the previous type II encrypted data packet plus 1 and take the modulus after overflow.

在第五种可能的实现方式中,结合第一方面的第四种可能的实现方式,当该判断该二类加密数据包的该前一个二类加密数据包是否正确接收的判断结果为该前一个二类加密数据包未正确接收,预测该二类加密数据包和前一个正确接收的二类加密数据包之间二类加密数据包个数n,预测该已知信息位的数据包的SN为该前一个正确接收的二类加密数据包的SN加该n再加1或该前一个正确接收的二类加密数据包的SN加1并加溢后取模。In the fifth possible implementation, combined with the fourth possible implementation of the first aspect, when the judgment result of judging whether the previous Type 2 encrypted data packet of the Type 2 encrypted data packet is received correctly is that the previous A type 2 encrypted data packet is not received correctly, predict the number n of type 2 encrypted data packets between the type 2 encrypted data packet and the previous correctly received type 2 encrypted data packet, and predict the SN of the data packet with known information bits Add the n and then add 1 to the SN of the previous correctly received Type 2 encrypted data packet, or add 1 to the SN of the previous correctly received Type 2 encrypted data packet, add overflow, and then take the modulus.

在第六种可能的实现方式中,结合第一方面的第四种可能的实现方式,当该判断该二类加密数据包是否为新传的判断结果为该二类加密数据包不是新传时,预测该已知信息位的数据包的SN为上一次对该一类加密数据包的预测SN。8.根据权利要求1至7中任一项该的方法,其特征在于,该根据该预测的SN,利用该一类加密数据包中该经过加密的已知信息位信息对该二类加密数据包进行译码包括:选取该预测的SN对应的一类加密数据包;利用该一类加密数据包上的该已知信息位信息对该二类加密数据包进行辅助译码。In the sixth possible implementation, combined with the fourth possible implementation of the first aspect, when the result of judging whether the Type II encrypted data packet is newly transmitted is that the Type II encrypted data packet is not newly transmitted , predicting the SN of the data packet of the known information bit is the last predicted SN of this type of encrypted data packet. 8. The method according to any one of claims 1 to 7, characterized in that, according to the predicted SN, using the encrypted known information bit information in the encrypted data packet of the type 2 to the encrypted data of the second type Decoding the packet includes: selecting a type of encrypted data packet corresponding to the predicted SN; using the known information bit information on the type of encrypted data packet to assist in decoding the second type of encrypted data packet.

第二方面,提供了一种译码的装置,其特征在于,包括:接收模块,用于获取一类加密数据包,该一类加密数据包为经过加密的已知信息位信息,该一类加密数据包来自RLC层,还用于接收二类加密数据包,该二类加密数据包来自发送端的物理层;处理模块,用于预测二类加密数据包的SN;译码模块,用于根据该预测的SN,利用该一类加密数据包中该经过加密的已知信息位信息对该二类加密数据包进行译码In the second aspect, a decoding device is provided, which is characterized in that it includes: a receiving module, configured to obtain a type of encrypted data packet, the type of encrypted data packet is encrypted known information bit information, and the type of encrypted data packet The encrypted data packet is from the RLC layer, and is also used to receive the second type encrypted data packet, and the second type encrypted data packet is from the physical layer of the sending end; the processing module is used to predict the SN of the second type encrypted data packet; the decoding module is used for according to The predicted SN uses the encrypted known information bit information in the type of encrypted data packet to decode the second type of encrypted data packet

在第一种可能的实现方式中,还包括:存储模块,用于存储该一类加密数据包和该二类加密数据包。In a first possible implementation manner, it further includes: a storage module, configured to store the type-1 encrypted data packet and the type-2 encrypted data packet.

在第二种可能的实现方式中,结合第二方面或第二方面的第一种可能的实现方式,该一类加密数据包由RLC层生成,包括:在RLC层实体内,基于该RLC实体对应的SN组内的每个SN生成该SN对应的密码流,用该密码流对该已知信息位信息进行加密,得到该一类加密数据包。In the second possible implementation, combined with the second aspect or the first possible implementation of the second aspect, the type of encrypted data packet is generated by the RLC layer, including: in the RLC layer entity, based on the RLC entity Each SN in the corresponding SN group generates a cipher stream corresponding to the SN, and uses the cipher stream to encrypt the known information bit information to obtain the encrypted data packet of this type.

在第三种可能的实现方式中,结合第二方面或第二方面的第一种或第二种可能的实现方式,当用基本译码方式对二类加密数据包译码错误,该一类加密数据包对应一个RLC实体时,判断该二类加密数据包是否为该关注类型数据包;该判断结果为该二类加密数据包为该关注类型数据包时,该处理模块预测该已知信息位的数据包的SN。In the third possible implementation, combined with the second aspect or the first or second possible implementation of the second aspect, when the basic decoding method is used to decode the second type of encrypted data packet incorrectly, the type When the encrypted data packet corresponds to an RLC entity, it is judged whether the second type encrypted data packet is the concerned type data packet; when the judgment result is that the second type encrypted data packet is the concerned type data packet, the processing module predicts the known information bit of the packet's SN.

在第四种可能的实现方式中,结合第二方面或第二方面的第一种至第三种任一种可能的实现方式,该处理模块进一步用于,当用基本译码方式对二类加密数据包译码错误,该一类加密数据包存对应多个RLC实体时,判断该二类加密数据包是否为该关注类型数据包;该判断结果为该二类加密数据包为该关注类型数据包时,选取在上段接收时间内出现概率最大的该RLC实体所对应的SN组,预测该二类加密数据包中的该已知信息位对应的SN。In the fourth possible implementation manner, in combination with the second aspect or any of the first to third possible implementation manners of the second aspect, the processing module is further used to, when using the basic decoding method to classify the second The encrypted data packet is decoded incorrectly. When the encrypted data packet of this type corresponds to multiple RLC entities, it is judged whether the encrypted data packet of the second type is the data packet of the concerned type; the judgment result is that the encrypted data packet of the second type is the type of concerned When the data packet is selected, the SN group corresponding to the RLC entity with the highest probability of occurrence in the last receiving time is selected, and the SN corresponding to the known information bit in the second type encrypted data packet is predicted.

在第五种可能的实现方式中,结合第二方面或第二方面的第一种至第四种任一种可能的实现方式,该处理模块进一步用于,判断该二类加密数据包是否为新传;当该判断该二类的加密数据包是否为新传的判断结果为该二类加密数据包是新传时,判断该二类加密数据包的前一个二类加密数据包是否正确接收;当该判断该二类加密数据包的该前一个二类加密数据包是否正确接收的判断结果为该前一个二类加密数据包正确接收,预测该SN为该前一个二类加密数据包的SN加1或预测该SN为该前一个二类加密数据包的SN加1并加溢后取模。In a fifth possible implementation manner, in combination with the second aspect or any one of the first to fourth possible implementation manners of the second aspect, the processing module is further used to determine whether the Type II encrypted data packet is New transmission; when the judgment result of judging whether the encrypted data packet of the second type is newly transmitted is that the encrypted data packet of the second type is newly transmitted, it is judged whether the previous encrypted data packet of the second type encrypted data packet is correctly received ; When the judgment result of whether the previous two encrypted data packets of the two types of encrypted data packets is correctly received is that the previous two encrypted data packets are received correctly, the SN is predicted to be the previous two encrypted data packets Add 1 to the SN or predict that the SN is the SN of the previous Type II encrypted data packet plus 1 and take the modulus after overflow.

在第六种可能的实现方式中,结合第二方面或第二方面的第一种至第五种任一种可能的实现方式,该处理模块进一步用于,当该判断该二类加密数据包的该前一个二类加密数据包是否正确接收的判断结果为该前一个二类加密数据包未正确接收,预测该二类加密数据包和前一个正确接收的二类加密数据包之间二类加密数据包个数n,预测该SN为该前一个正确接收的二类加密数据包的SN加该n再加1。In the sixth possible implementation manner, in combination with the second aspect or any one of the first to fifth possible implementation manners of the second aspect, the processing module is further configured to, when judging that the Type II encrypted data packet The result of judging whether the previous Class 2 encrypted data packet was received correctly is that the previous Class 2 encrypted data packet was not received correctly, and it is predicted that there is a difference between the Class 2 encrypted data packet and the previous Class 2 encrypted data packet received correctly. For the number n of encrypted data packets, the SN is predicted to be the SN of the previous correctly received Class II encrypted data packet plus the n plus 1.

在第七种可能的实现方式中,结合第二方面或第二方面的第一种至第六种任一种可能的实现方式,当该判断该二类加密数据包是否为新传的判断结果为该二类加密数据包不是新传时,预测该SN为上一次对该二类加密数据包的预测SN。In the seventh possible implementation, in combination with the second aspect or any of the first to sixth possible implementations of the second aspect, when judging whether the Type 2 encrypted data packet is a newly transmitted judgment result When the Type II encrypted data packet is not newly transmitted, the predicted SN is the predicted SN of the Type II encrypted data packet last time.

在第八种可能的实现方式中,结合第二方面或第二方面的第一种至第七种任一种可能的实现方式,该译码模块进一步用于,选取该预测的SN对应的一类加密数据包;利用该一类加密数据包上的该已知信息位信息对该二类加密数据包进行辅助译码。In an eighth possible implementation manner, in combination with the second aspect or any one of the first to seventh possible implementation manners of the second aspect, the decoding module is further configured to select a corresponding to the predicted SN A type of encrypted data packet; using the known information bit information on the type of encrypted data packet to assist in decoding the type II encrypted data packet.

第三方面,提供了一种译码的装置,包括:接收器,用于获取一类加密数据包,该一类加密数据包为经过加密的已知信息位信息,该一类加密数据包来自RLC层,还用于接收二类加密数据包,该二类加密数据包来自发送端的物理层;处理器,用于预测二类加密数据包的SN,还用于根据该预测的SN,利用该一类加密数据包中该经过加密的已知信息位信息对该二类加密数据包进行译码In a third aspect, a decoding device is provided, including: a receiver, configured to obtain a type of encrypted data packet, the type of encrypted data packet is encrypted known information bit information, and the type of encrypted data packet comes from The RLC layer is also used to receive the second type encrypted data packet, which is from the physical layer of the sending end; the processor is used to predict the SN of the second type encrypted data packet, and is also used to utilize the predicted SN according to the predicted SN The encrypted known information bit information in the first-class encrypted data packet decodes the second-class encrypted data packet

在第一种可能的实现方式中,还包括:存储器,用于存储该一类加密数据包和该二类加密数据包。In a first possible implementation manner, it further includes: a memory, configured to store the type-1 encrypted data packet and the type-2 encrypted data packet.

在第二种可能的实现方式中,结合第三方面或第三方面的第一种可能的实现方式,该一类加密数据包由RLC层生成,包括:在RLC层实体内,基于该RLC实体对应的SN组内的每个SN生成该SN对应的密码流,用该密码流对该已知信息位信息进行加密,得到该一类加密数据包。In the second possible implementation, combined with the third aspect or the first possible implementation of the third aspect, this type of encrypted data packet is generated by the RLC layer, including: in the RLC layer entity, based on the RLC entity Each SN in the corresponding SN group generates a cipher stream corresponding to the SN, and uses the cipher stream to encrypt the known information bit information to obtain the encrypted data packet of this type.

在第三种可能的实现方式中,结合第三方面或第三方面的第一种或第二种可能的实现方式,该处理器进一步用于,当用基本译码方式对二类加密数据包译码错误,该一类加密数据包对应一个RLC实体时,判断该二类加密数据包是否为该关注类型数据包;该判断结果为该二类加密数据包为该关注类型数据包时,该处理器预测该已知信息位的数据包的SN。In the third possible implementation manner, in combination with the third aspect or the first or second possible implementation manner of the third aspect, the processor is further configured to, when using the basic decoding method to decode the second type of encrypted data packet Decoding error, when this type of encrypted data packet corresponds to an RLC entity, judge whether the second type of encrypted data packet is the concerned type data packet; when the judgment result is that the second type encrypted data packet is the concerned type data packet, the The processor predicts the SN of the packet for the known information bits.

在第四种可能的实现方式中,结合第三方面或第三方面的第一种至第三种任一种可能的实现方式,该处理器进一步用于,当用基本译码方式对二类加密数据包译码错误,该一类加密数据包存对应多个RLC实体时,判断该二类加密数据包是否为该关注类型数据包;该判断结果为该二类加密数据包为该关注类型数据包时,选取在上段接收时间内出现概率最大的该RLC实体所对应的SN组,预测该二类加密数据包中的该已知信息位对应的SN。In the fourth possible implementation manner, in combination with the third aspect or any of the first to third possible implementation manners of the third aspect, the processor is further configured to, when using the basic decoding method to classify the second The encrypted data packet is decoded incorrectly. When the encrypted data packet of this type corresponds to multiple RLC entities, it is judged whether the encrypted data packet of the second type is the data packet of the concerned type; the judgment result is that the encrypted data packet of the second type is the type of concerned When the data packet is selected, the SN group corresponding to the RLC entity with the highest probability of occurrence in the last receiving time is selected, and the SN corresponding to the known information bit in the second type encrypted data packet is predicted.

在第五种可能的实现方式中,结合第三方面或第三方面的第一种至第四种任一种可能的实现方式,该处理器进一步用于,判断该二类加密数据包是否为新传;当该判断该二类的加密数据包是否为新传的判断结果为该二类加密数据包是新传时,判断该二类加密数据包的前一个二类加密数据包是否正确接收;当该判断该二类加密数据包的该前一个二类加密数据包是否正确接收的判断结果为该前一个二类加密数据包正确接收,预测该SN为该前一个二类加密数据包的SN加1或预测该SN为该前一个二类加密数据包的SN加1并加溢后取模。In a fifth possible implementation manner, in combination with the third aspect or any one of the first to fourth possible implementation manners of the third aspect, the processor is further configured to determine whether the Type II encrypted data packet is New transmission; when the judgment result of judging whether the encrypted data packet of the second type is newly transmitted is that the encrypted data packet of the second type is newly transmitted, it is judged whether the previous encrypted data packet of the second type encrypted data packet is correctly received ; When the judgment result of whether the previous two encrypted data packets of the two types of encrypted data packets is correctly received is that the previous two encrypted data packets are received correctly, the SN is predicted to be the previous two encrypted data packets Add 1 to the SN or predict that the SN is the SN of the previous Type II encrypted data packet plus 1 and take the modulus after overflow.

在第六种可能的实现方式中,结合第三方面或第三方面的第一种至第五种任一种可能的实现方式,该处理器进一步用于,当该判断该二类加密数据包的该前一个二类加密数据包是否正确接收的判断结果为该前一个二类加密数据包未正确接收,预测该二类加密数据包和前一个正确接收的二类加密数据包之间二类加密数据包个数n,预测该SN为该前一个正确接收的二类加密数据包的SN加该n再加1。In a sixth possible implementation manner, in combination with the third aspect or any one of the first to fifth possible implementation manners of the third aspect, the processor is further configured to, when determining that the Type II encrypted data packet The result of judging whether the previous Class 2 encrypted data packet was received correctly is that the previous Class 2 encrypted data packet was not received correctly, and it is predicted that there is a difference between the Class 2 encrypted data packet and the previous Class 2 encrypted data packet received correctly. For the number n of encrypted data packets, the SN is predicted to be the SN of the previous correctly received Class II encrypted data packet plus the n plus 1.

在第七种可能的实现方式中,结合第三方面或第三方面的第一种至第六种任一种可能的实现方式,当该判断该二类加密数据包是否为新传的判断结果为该二类加密数据包不是新传时,预测该SN为上一次对该二类加密数据包的预测SN。In the seventh possible implementation, in combination with the third aspect or any of the first to sixth possible implementations of the third aspect, when it is judged whether the Type II encrypted data packet is a newly transmitted judgment result When the Type II encrypted data packet is not newly transmitted, the predicted SN is the predicted SN of the Type II encrypted data packet last time.

在第八种可能的实现方式中,结合第三方面或第三方面的第一种至第七种任一种可能的实现方式,该处理器进一步用于,选取该预测的SN对应的一类加密数据包;利用该一类加密数据包上的该已知信息位信息对该二类加密数据包进行辅助译码。In an eighth possible implementation manner, in combination with the third aspect or any one of the first to seventh possible implementation manners of the third aspect, the processor is further configured to select a category corresponding to the predicted SN Encrypted data packets; using the known information bit information on the encrypted data packets of the first type to assist in decoding the encrypted data packets of the second type.

基于上述技术方案,本发明实施例为了提高物理层的译码效率,使物理层可以利用被加密的已知信息位进行译码,在物理层预测二类加密数据包的SN,从而高概率的找到该SN对应的一类加密信息中的该已知信息位,利用该已知信息位的上的信息对加密数据包进行译码。从而有效的提高的译码速度,提高了译码性能。Based on the above technical solution, in order to improve the decoding efficiency of the physical layer, the embodiments of the present invention enable the physical layer to use the encrypted known information bits for decoding, and predict the SN of the second-class encrypted data packet at the physical layer, so that the Find the known information bit in a type of encrypted information corresponding to the SN, and use the information on the known information bit to decode the encrypted data packet. Therefore, the decoding speed is effectively improved, and the decoding performance is improved.

附图说明Description of drawings

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

图1是根据本发明实施例的译码的方法的示意性流程图。Fig. 1 is a schematic flowchart of a decoding method according to an embodiment of the present invention.

图2是根据本发明实施例的译码装置的示意性框图;Fig. 2 is a schematic block diagram of a decoding device according to an embodiment of the present invention;

图3是根据本发明实施例的译码装置的另一示意性框图。Fig. 3 is another schematic block diagram of a decoding device according to an embodiment of the present invention.

具体实施方式Detailed ways

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

图1示出了根据本发明实施例的译码的方法100的示意性流程图。图1的方法在物理层执行,如图1所示,该方法100包括:FIG. 1 shows a schematic flowchart of a decoding method 100 according to an embodiment of the present invention. The method in FIG. 1 is executed at the physical layer. As shown in FIG. 1, the method 100 includes:

S110,获取一类加密数据包,该一类加密数据包为经过加密的已知信息位信息,该一类加密数据包来自无线链路控制(Radio Link Control,简称为“RLC”)层;S110, obtaining a type of encrypted data packet, the type of encrypted data packet is encrypted known information bit information, and the type of encrypted data packet comes from a radio link control (Radio Link Control, "RLC" for short) layer;

S120,预测二类加密数据包的SN,该二类加密数据包来自发送端的物理层;S120, predicting the SN of the second type encrypted data packet, where the second type encrypted data packet comes from the physical layer of the sending end;

S130,根据该预测的SN,利用该一类加密数据包中该经过加密的已知信息位信息对该二类加密数据包进行译码。S130, according to the predicted SN, use the encrypted known information bit information in the encrypted data packet of the type to decode the encrypted data packet of the second type.

在本发明实施例中,为了提高物理层的译码效率,使物理层可以利用被加密的已知信息位进行译码,在物理层预测二类加密数据包的SN,从而高概率的找到该SN对应的一类加密信息中的该已知信息位,利用该已知信息位的上的信息对加密数据包进行译码。从而有效的提高的译码速度,提高了译码性能。In the embodiment of the present invention, in order to improve the decoding efficiency of the physical layer, the physical layer can use the encrypted known information bits for decoding, and predict the SN of the second type encrypted data packet at the physical layer, so as to find the SN with high probability. The known information bit in a type of encrypted information corresponding to the SN uses the information on the known information bit to decode the encrypted data packet. Therefore, the decoding speed is effectively improved, and the decoding performance is improved.

在S110中,获取一类加密数据包,该一类加密数据包为经过加密的已知信息位信息,该一类加密数据包来自RLC层。In S110, a type of encrypted data packet is obtained, which is encrypted known information bit information, and this type of encrypted data packet comes from the RLC layer.

具体而言,物理层获得与RLC层交互中得到的一类加密数据包,该一类加密数据包在RLC层经过对数据包进行加密后所得。在数据包中,部分信息位为固定的,该固定信息位称为已知信息位。Specifically, the physical layer obtains a type of encrypted data packet obtained during the interaction with the RLC layer, and the encrypted data packet of the type is obtained by encrypting the data packet at the RLC layer. In the data packet, some information bits are fixed, and the fixed information bits are called known information bits.

物理层对于正确接收的一类加密数据包,将物理层的信息库中和该数据包的SN对应的已知信息位的加密信息位删除。For a type of encrypted data packet received correctly, the physical layer deletes the encrypted information bit of the known information bit corresponding to the SN of the data packet in the information base of the physical layer.

在本发明实施例中,可选地,在S110之前,该方法100还包括:In this embodiment of the present invention, optionally, before S110, the method 100 further includes:

S140,在RLC层实体内,基于该RLC实体对应的SN组内的每个SN生成该SN对应的密码流,用该密码流对该已知信息位信息进行加密,得到该一类加密数据包。S140, in the RLC layer entity, generate a cipher stream corresponding to the SN based on each SN in the SN group corresponding to the RLC entity, and use the cipher stream to encrypt the known information bit information to obtain the type of encrypted data packet .

可选地,S140包括:Optionally, S140 includes:

S141,在RLC层为RLC实体所对应的SN组内的每个SN生成该SN对应的密码流。S141. Generate a cipher stream corresponding to the SN for each SN in the SN group corresponding to the RLC entity at the RLC layer.

在RLC层可有不同的RLC实体,每个RLC实体都有其所对应的SN组。每个SN组由若干SN构成。RLC实体不同,SN组也不同。为每个SN组内的SN生成与该SN对应的密码流。该密码流用于对数据包进行加密。There may be different RLC entities in the RLC layer, and each RLC entity has its corresponding SN group. Each SN group consists of several SNs. Different RLC entities have different SN groups. Generate a cipher stream corresponding to the SN for each SN in the SN group. This cipher stream is used to encrypt packets.

S142,在该RLC层用该密码流分别对已知信息位进行加密,生成加密后的已知信息,该加密后的已知信息为该一类加密数据包。S142. Use the cipher stream to encrypt known information bits respectively at the RLC layer to generate encrypted known information, where the encrypted known information is the type of encrypted data packet.

在RLC层,用该密码流对已知位信息进行加密,加密方式有多种,例如用该密码流对已知位信息逐比特进行异或,便可以得到加密后的一类加密数据包。At the RLC layer, the cipher stream is used to encrypt the known bit information. There are many encryption methods. For example, the cipher stream is used to XOR the known bit information bit by bit to obtain a type of encrypted data packet after encryption.

RLC层在和物理层的交互通信中,将该一类加密数据包在交互通信中传输到物理层。In the interactive communication with the physical layer, the RLC layer transmits this type of encrypted data packet to the physical layer in the interactive communication.

在S120中,预测二类加密数据包的SN,该二类加密数据包来自发送端的物理层。In S120, predict the SN of the second-type encrypted data packet, and the second-type encrypted data packet is from the physical layer of the sending end.

可选地,该二类加密数据包来自发送端的物理层,该二类加密数据包也是在RLC层进行加密。二类加密数据包的SN,该SN在一类加密数据包中该SN对应的已知信息位,和该SN对应的二类加密数包中所包含的已知信息位相同或相对应。Optionally, the Type II encrypted data packet comes from the physical layer of the sending end, and the Type II encrypted data packet is also encrypted at the RLC layer. For the SN of the Type 2 encrypted data packet, the known information bit corresponding to the SN in the Type 1 encrypted data packet of the SN is the same as or corresponding to the known information bit contained in the Type 2 encrypted data packet corresponding to the SN.

可选地,S120包括,Optionally, the S120 includes,

S121,判断该二类加密数据包是否为新传。在物理层,一类加密数据包通过RLC层和物理层的交互通信,由RLC层传输到物理层。二类加密数据包由来自物理层的发送端将加密数据包由传输信道传送到物理层的接收端,并在接收端进行译码。一类加密数据包和二类加密包包含相同的已知位,由于二类加密数据包经过传输信道,有可能收到噪音等其它因素干扰而出错,也可以利用一类加密数据包中的已知信息位,对二类加密数据包进行译码。S121. Determine whether the Type 2 encrypted data packet is newly transmitted. In the physical layer, a type of encrypted data packet is transmitted from the RLC layer to the physical layer through the interactive communication between the RLC layer and the physical layer. The second type of encrypted data packet is transmitted from the sending end of the physical layer to the receiving end of the physical layer through the transmission channel, and is decoded at the receiving end. The first-class encrypted data packet and the second-class encrypted data packet contain the same known bits. Since the second-class encrypted data packet passes through the transmission channel, it may receive interference from noise and other factors and cause errors. It is also possible to use the known bits in the first-class encrypted data packet Known information bits, to decode the second type of encrypted data packets.

发送端物理层向接收端发送二类加密数据包,当二类加密数据包接收失败时,发送端重发该接收失败的二类加密数据包。对于物理层接收端,当所接受到的二类加密数据包为非重发,即第一次接收到该二类加密数据包,该二类加密数据包为新传。The physical layer of the sending end sends the Type 2 encrypted data packet to the receiving end, and when the Type 2 encrypted data packet fails to be received, the sending end resends the Type 2 encrypted data packet that failed to be received. For the receiving end of the physical layer, when the received Type 2 encrypted data packet is not retransmitted, that is, the Type 2 encrypted data packet is received for the first time, and the Type 2 encrypted data packet is newly transmitted.

在物理层的接收端,存储有接收端所接受到的二类加密数据包的接收状态,该接收状态指示了所接收到的二类加密数据包是否成功接收,根据该指示信息,当所接受到的二类数据包未在接收端记录为接收失败,则可以判断该二类加密数据包是新传,当所接受到的二类数据包在接收端记录为接收失败,则可以判断该二类加密数据包为重发,而非新传。At the receiving end of the physical layer, the receiving status of the Type 2 encrypted data packet received by the receiving end is stored, and the receiving status indicates whether the received Type 2 encrypted data packet is successfully received. According to the indication information, when the received If the Type 2 data packet is not recorded as receiving failure at the receiving end, it can be judged that the Type 2 encrypted data packet is newly transmitted; when the received Type 2 data packet is recorded as receiving failure at the receiving end, it can be judged that the Type 2 encrypted data packet is Packets are retransmissions, not new transmissions.

可选地,S120还包括,Optionally, S120 also includes,

S122a,在S121中当判断二类加密数据包是否为新传的判断结果为该二类加密数据包不是新传时,预测二类加密数据包的SN为上一次对该二类加密数据包的预测SN。S122a, in S121, when judging whether the second type of encrypted data packet is a newly transmitted judgment result is that the second type of encrypted data packet is not newly passed on, predicting that the SN of the second type of encrypted data packet is the last time to the second type of encrypted data packet Predict SN.

当该二类加密数据包并非新传,表明该加密数据包第一次传输到物理层接收端接收失败因此发送端重新发送该二类加密数据包,物理层接收端在第一次接收该二类加密数据包时已经对该二类加密数据包进行了预测SN,预测步骤参照步骤S120,当物理层接收端再次收到物理层发送端重发的该二类加密数据包时,预测所述已知信息位的数据包的SN为上一次对所述二类加密数据包的预测SN。When the Type II encrypted data packet is not newly transmitted, it indicates that the encrypted data packet failed to be transmitted to the receiving end of the physical layer for the first time, so the sending end resends the Type II encrypted data packet, and the receiving end of the physical layer receives the second type encrypted data packet for the first time. The second type of encrypted data packet has been predicted SN during the class encrypted data packet, and the prediction step refers to step S120. The SN of the data packet with known information bits is the last predicted SN of the second type encrypted data packet.

可选地,S120还包括,Optionally, S120 also includes,

S122b,在S121中判断该二类加密数据包是否为新传的判断结果为该二类加密数据包是新传时,判断该二类加密数据包的前一个数据包是否正确接收。S122b. When judging in S121 whether the Type 2 encrypted data packet is newly transmitted, if the judgment result is that the Type 2 encrypted data packet is newly transmitted, determine whether the previous data packet of the Type 2 encrypted data packet is received correctly.

可选地,S120还包括,Optionally, S120 also includes,

S123a,在S122b中,判断该加密数据包的前一个数据包,当该判断该加密数据包的前一个数据包是否正确接收的判断结果为该加密数据包的前一个数据包正确接收,预测该SN为该前一个数据包的SN加1或者为该前一个数据包SN加1并加溢后取模。S123a, in S122b, judge the previous data packet of this encrypted data packet, when the judging result of whether the previous data packet of this encrypted data packet is received correctly is that the previous data packet of this encrypted data packet is received correctly, predict the previous data packet of this encrypted data packet The SN is the SN of the previous data packet plus 1 or the SN of the previous data packet is plus 1 and the modulus is taken after overflow.

可选地,S120还包括,Optionally, S120 also includes,

S123b,在S122b中,判断该二类加密数据包的前一个二类数据包,当该判断该二类加密数据包的前一个二类数据包是否正确接收的判断结果为该加密数据包的前一个二类数据包未正确接收,预测该加密数据包和前一个正确接收的二类数据包之间的SN个数n,预测所SN为所述前一个正确接收的二类数据包SN加所述加n加1或者前一个正确接收的二类加密数据包的SN加1并加溢后取模。S123b, in S122b, judge the previous second type data packet of the second type encrypted data packet, when the judgment result of whether the previous second type data packet of the second type encrypted data packet is correctly received is the preceding type of the encrypted data packet A second type of data packet is not received correctly, predict the number n of SNs between the encrypted data packet and the previous correctly received second type of data packet, and predict that the SN is the previous correctly received second type of data packet SN plus the Add n plus 1 or add 1 to the SN of the previous correctly received Class II encrypted data packet and take the modulo after adding overflow.

本发明实施例中,可选地,当第一次进行预测时,对于不存在前一个二类数据包或不存在前一个正确接收的二类加密数据包的情况下,令前一个二类数据包的SN为0或前一个正确接收的二类加密数据包的SN为0。In the embodiment of the present invention, optionally, when predicting for the first time, if there is no previous Class II data packet or the previous correctly received Class II encrypted data packet, the previous Class II data packet The SN of the packet is 0 or the SN of the previous Class 2 encrypted data packet received correctly is 0.

在本发明实施例中,可选地,在S120之前,该方法100还包括:In this embodiment of the present invention, optionally, before S120, the method 100 further includes:

S150,当加密数据包来自于一个RLC实体时,判断所述加密数据包是否为关注类型数据包;所述判断结果为所述加密数据包为关注类型数据包时,预测SN。S150. When the encrypted data packet comes from an RLC entity, judge whether the encrypted data packet is a concerned type data packet; if the judgment result is that the encrypted data packet is a concerned type data packet, predict the SN.

该关注类型数据包指数据包中包含有丰富已知位信息的数据包,例如TCPACK包,或者数据中添加附加信息位具有已知位信息的数据包。关注类型数据包为待加密的数据包,The attention-type data packet refers to a data packet containing abundant known bit information in the data packet, such as a TCPACK packet, or a data packet in which additional information bits are added to the data and has known bit information. The concerned type data packet is the data packet to be encrypted,

目前现网中TCPACK包空口为354bits,根据数据包大小判断是否为关注类型数据包。对于接收到的数据包,如果该数据包大小为354bits,当其采用基本译码算法失败时,可对其进行辅助译码。At present, the air interface of the TCPACK packet in the live network is 354 bits, and it is judged whether it is a concerned type of data packet according to the size of the data packet. For the received data packet, if the size of the data packet is 354 bits, when the basic decoding algorithm fails, auxiliary decoding can be performed on it.

根据对现网数据分析,TCP头还会出现32bytes和44bytes,此时,整个TCP ACK会被拆分成2个354bits包,第二个包由TCP头剩余信息以及附加信息位组成。对于需要进行辅助译码的某个354bits的数据包,若该数据包的预测SN为某个正确接收的TCP ACK的第一个包的SN加1,则认为该数据包的已知信息为TCP ACK包的第二个数据包内的已知信息,反之,该数据包的已知信息为TCPACK包的第一个数据包内的已知信息。According to the analysis of the live network data, 32bytes and 44bytes will appear in the TCP header. At this time, the entire TCP ACK will be split into two 354bits packets, and the second packet is composed of the remaining information of the TCP header and additional information bits. For a 354bits data packet that needs auxiliary decoding, if the predicted SN of the data packet is the SN of the first packet of a correctly received TCP ACK plus 1, the known information of the data packet is considered to be TCP The known information in the second data packet of the ACK packet, otherwise, the known information of the data packet is the known information in the first data packet of the TCP ACK packet.

在本发明实施例中,可选地,在S120之前,该方法100还包括:In this embodiment of the present invention, optionally, before S120, the method 100 further includes:

S160,当加密数据来自于多个RLC实体,该预测该加密数据包中该已知信息位的数据包的SN之前,还包括:S160, when the encrypted data comes from multiple RLC entities, before predicting the SN of the data packet of the known information bit in the encrypted data packet, further include:

选取在上段接收时间内出现概率最大的RLC实体,其中上段接收时间可以根据具体应用场景进行选取。Select the RLC entity with the highest probability of appearing within the last receiving time, where the last receiving time can be selected according to specific application scenarios.

判断所述加密数据包是否为关注类型数据包;所述判断结果为所述加密数据包为关注类型数据包时,预测SN。Judging whether the encrypted data packet is a concerned type data packet; if the judgment result is that the encrypted data packet is a concerned type data packet, predicting the SN.

该关注类型数据包指数据包中包含有丰富已知位信息的数据包,例如TCPACK包,或者数据中添加附加信息位具有已知位信息的数据包。关注类型数据包为待加密的数据包,The attention-type data packet refers to a data packet containing abundant known bit information in the data packet, such as a TCPACK packet, or a data packet in which additional information bits are added to the data and has known bit information. The concerned type data packet is the data packet to be encrypted,

目前现网中TCP ACK包空口为354bits,根据数据包大小判断是否为关注类型数据包。对于接收到的数据包,如果该数据包大小为354bits,当其采用基本译码算法失败时,可对其进行辅助译码。At present, the air interface of the TCP ACK packet in the live network is 354 bits, and it is judged whether it is a concerned type of data packet according to the size of the data packet. For the received data packet, if the size of the data packet is 354 bits, when the basic decoding algorithm fails, auxiliary decoding can be performed on it.

根据对现网数据分析,TCP头还会出现32bytes和44bytes,此时,整个TCPACK会被拆分成2个354bits包,第二个包由TCP头剩余信息以及附加信息位组成。对于需要进行辅助译码的某个354bits的数据包,若该数据包的预测SN为某个正确接收的TCPACK的第一个包的SN加1,则认为该数据包的已知信息为TCP ACK包的第二个数据包内的已知信息,反之,该数据包的已知信息为TCPACK包的第一个数据包内的已知信息。According to the analysis of live network data, 32bytes and 44bytes will appear in the TCP header. At this time, the entire TCPACK will be split into two 354bits packets, and the second packet is composed of the remaining information of the TCP header and additional information bits. For a 354bits data packet that needs auxiliary decoding, if the predicted SN of the data packet is the SN of the first packet of a correctly received TCP ACK plus 1, the known information of the data packet is considered to be TCP ACK The known information in the second data packet of the TCPACK packet, otherwise, the known information in the data packet is the known information in the first data packet of the TCPACK packet.

所述判断结果为所述加密数据包为所述TCP ACK和/或带有附加信息位时,预测SN。预测步骤如S120所述,此处不再累述。When the judgment result is that the encrypted data packet is the TCP ACK and/or has additional information bits, predict the SN. The prediction step is as described in S120 and will not be repeated here.

当预测错误时,可再逐个选取其它RLC实体对应的数据包。When the prediction is wrong, data packets corresponding to other RLC entities may be selected one by one.

S130,根据该预测的SN,利用该一类加密数据包中该经过加密的已知信息位信息对该二类加密数据包进行译码。S130, according to the predicted SN, use the encrypted known information bit information in the encrypted data packet of the type to decode the encrypted data packet of the second type.

可选地,S130包括,Optionally, S130 includes,

S131,选取步骤S120中预测的SN对应的一类加密数据包的已知信息位加密信息。S131. Select the known information bit encryption information of a type of encrypted data packet corresponding to the predicted SN in step S120.

可选地,S130包括,Optionally, S130 includes,

S132,利用该已知信息位的上的加密信息对所述加密数据包进行辅助译码。S132. Use the encrypted information on the known information bit to perform auxiliary decoding on the encrypted data packet.

辅助译码为利用已知信息位进行译码,可选地,Auxiliary decoding is decoding using known information bits, optionally,

在解调对数释然比(Log Likelihood Ratio,简称为“LLR”)结果送入译码器前,将识别为已知信息的Bit映射到解调LLR对应极性的无穷大值或者设定的某个饱和值,将这个值加到或替换到解调LLR对应的系统位上。Before the demodulated Log Likelihood Ratio ("LLR") result is sent to the decoder, the bit identified as known information is mapped to the infinite value of the corresponding polarity of the demodulated LLR or a set value A saturation value, add or replace this value to the systematic bit corresponding to the demodulated LLR.

可选地,在译码器内部,将识别为已知信息的Bit映射到解调LLR对应极性的无穷大值或者设定的某个饱和值,将这个值加到或替换到对应的系统位的外信息上,这个替换或者加的过程可以在每次分量译码器译码的过程,也可以是译码开始前初始化先验信息。Optionally, inside the decoder, the bit identified as known information is mapped to an infinite value corresponding to the polarity of the demodulated LLR or a certain saturation value set, and this value is added or replaced to the corresponding system bit On the extrinsic information, this replacement or addition process can be performed every time the component decoder decodes, or it can initialize the prior information before the decoding starts.

在本发明实施例中,为了提高物理层的译码效率,使物理层可以利用被加密的已知信息位进行译码,在物理层预测二类加密数据包的SN,从而高概率的找到该SN对应的一类加密信息中的该已知信息位,利用该已知信息位的上的信息对加密数据包进行译码。从而有效的提高的译码速度,提高了译码性能。In the embodiment of the present invention, in order to improve the decoding efficiency of the physical layer, the physical layer can use the encrypted known information bits for decoding, and predict the SN of the second type encrypted data packet at the physical layer, so as to find the SN with high probability. The known information bit in a type of encrypted information corresponding to the SN uses the information on the known information bit to decode the encrypted data packet. Therefore, the decoding speed is effectively improved, and the decoding performance is improved.

应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, rather than by the embodiment of the present invention. The implementation process constitutes any limitation.

图2示出了根据本发明实施例的译码装置200的示意性框图。图2及其说明所揭示的装置,可基于本发明实施例图1和基于本发明实施例图1所揭示的译码的方法。Fig. 2 shows a schematic block diagram of a decoding device 200 according to an embodiment of the present invention. The device disclosed in FIG. 2 and its description can be based on FIG. 1 of the embodiment of the present invention and the decoding method disclosed in FIG. 1 of the embodiment of the present invention.

根据本发明实施例的译码装置200可对应于根据本发明实施例的译码的方法,并且译码装置200中的各个模块的上述和其它操作和/或功能分别为了实现图1中的各个方法的相应流程,为了简洁,在此不再赘述。The decoding device 200 according to the embodiment of the present invention may correspond to the decoding method according to the embodiment of the present invention, and the above-mentioned and other operations and/or functions of each module in the decoding device 200 are to realize each For the sake of brevity, the corresponding flow of the method will not be repeated here.

如图2所示,译码装置包括:As shown in Figure 2, the decoding device includes:

接收模块,用于获取一类加密数据包,该一类加密数据包为经过加密的已知信息位信息,该一类加密数据包来自RLC层,还用于接收二类加密数据包,该二类加密数据包来自发送端的物理层;The receiving module is used to obtain a type of encrypted data packet, which is encrypted known information bit information, and the type of encrypted data packet comes from the RLC layer, and is also used to receive a type of encrypted data packet, which The encrypted data packet comes from the physical layer of the sender;

处理模块,用于预测二类加密数据包的SN;A processing module, used to predict the SN of the second class encrypted data packet;

译码模块,用于根据该预测的SN,利用该一类加密数据包中该经过加密的已知信息位信息对该二类加密数据包进行译码。The decoding module is used for decoding the encrypted data packet of the second type by using the encrypted known information bit information in the encrypted data packet of the type according to the predicted SN.

可选地,该译码装置还可以包括,存储模块,用于存储该一类加密数据包和该二类加密数据包。Optionally, the decoding device may further include a storage module, configured to store the type-1 encrypted data packet and the type-2 encrypted data packet.

可选地,该一类加密数据包由RLC层生成,包括:Optionally, this type of encrypted data packet is generated by the RLC layer, including:

在RLC层实体内,基于该RLC实体对应的SN组内的每个SN生成该SN对应的密码流,用该密码流对该已知信息位信息进行加密,得到该一类加密数据包。In the RLC layer entity, based on each SN in the SN group corresponding to the RLC entity, a cipher stream corresponding to the SN is generated, and the known information bit information is encrypted with the cipher stream to obtain this type of encrypted data packet.

可选地,该处理模块进一步用于,当用基本译码方式对二类加密数据包译码错误,该一类加密数据包对应一个RLC实体时,判断该二类加密数据包是否为该关注类型数据包;Optionally, the processing module is further used to judge whether the encrypted data packet of the second type is the attention when decoding the encrypted data packet of the second type by the basic decoding method is wrong, and the encrypted data packet of the type corresponds to an RLC entity. type packet;

该判断结果为该二类加密数据包为该关注类型数据包时,该处理模块预测该已知信息位的数据包的SN。When the judging result is that the encrypted data packet of the second type is the data packet of the concerned type, the processing module predicts the SN of the data packet of the known information bit.

可选地,该处理模块进一步用于,当用基本译码方式对二类加密数据包译码错误,该一类加密数据包存对应多个RLC实体时,判断该二类加密数据包是否为该关注类型数据包;该判断结果为该二类加密数据包为该关注类型数据包时,选取在上段接收时间内出现概率最大的该RLC实体所对应的SN组,预测该二类加密数据包中的该已知信息位对应的SN。Optionally, the processing module is further used to judge whether the encrypted data packet of the second type is decoded incorrectly when the encrypted data packet of the second type is stored corresponding to multiple RLC entities in the basic decoding mode. The concerned type data packet; when the judgment result is that the second type of encrypted data packet is the concerned type of data packet, select the SN group corresponding to the RLC entity with the largest occurrence probability in the last receiving time, and predict the second type of encrypted data packet The SN corresponding to the known information bit in .

可选地,该处理模块进一步用于,判断该二类加密数据包是否为新传;Optionally, the processing module is further used to determine whether the Type II encrypted data packet is newly transmitted;

当该判断该二类的加密数据包是否为新传的判断结果为该二类加密数据包是新传时,判断该二类加密数据包的前一个二类加密数据包是否正确接收。When the judging result of judging whether the Type 2 encrypted data packet is newly transmitted is that the Type 2 encrypted data packet is newly transmitted, it is judged whether the previous Type 2 encrypted data packet of the Type 2 encrypted data packet is received correctly.

当该判断该来二类加密数据包的该前一个二类加密数据包是否正确接收的判断结果为该前一个二类加密数据包正确接收,预测该SN为该前一个二类加密数据包的SN加1或预测该SN为该前一个二类加密数据包的SN加1并加溢后取模。When it is judged whether the previous two encrypted data packets of the second type encrypted data packets are received correctly, the judgment result is that the previous two encrypted data packets are received correctly, and the SN is predicted to be the previous two encrypted data packets. Add 1 to the SN or predict that the SN is the SN of the previous Type II encrypted data packet plus 1 and take the modulus after overflow.

可选地,该处理模块进一步用于,当该判断该二类加密数据包的该前一个二类加密数据包是否正确接收的判断结果为该前一个二类加密数据包未正确接收,预测该二类加密数据包和前一个正确接收的二类加密数据包之间二类加密数据包个数n,预测该SN为该前一个正确接收的二类加密数据包的SN加该n再加1。Optionally, the processing module is further used to predict whether the previous Type 2 encrypted data packet of the Type 2 encrypted data packet is received correctly as a result of judging whether the previous Type 2 encrypted data packet has not been received correctly. The number n of Type 2 encrypted data packets between the Type 2 encrypted data packet and the previous correctly received Type 2 encrypted data packet, and the predicted SN is the SN of the previous correctly received Type 2 encrypted data packet plus the n plus 1 .

可选地,当该判断该二类加密数据包是否为新传的判断结果为该二类加密数据包不是新传时,预测该SN为上一次对该二类加密数据包的预测SN。Optionally, when the result of judging whether the Type II encrypted data packet is newly transmitted is that the Type II encrypted data packet is not newly transmitted, the predicted SN is the last predicted SN of the Type II encrypted data packet.

可选地该译码模块进一步用于,选取该预测的SN对应的一类加密数据包;Optionally, the decoding module is further used to select a type of encrypted data packet corresponding to the predicted SN;

利用该一类加密数据包上的该已知信息位信息对该二类加密数据包进行辅助译码。辅助译码的步骤可参照本发明方法实施例中S130所述,此处不再累述。The known information bit information on the encrypted data packet of the first type is used to assist in decoding the encrypted data packet of the second type. The steps of assisting in decoding can refer to the description in S130 in the method embodiment of the present invention, and will not be repeated here.

本发明实施例所揭示的译码装置200,可位于物理层的包括基站在内的各种设备内,也可不同模块分别位于物理层不同的设备内,本发明不作限定。The decoding device 200 disclosed in the embodiment of the present invention may be located in various devices including a base station at the physical layer, or different modules may be located in devices with different physical layers, which is not limited in the present invention.

在本发明实施例中,为了提高物理层的译码效率,使物理层可以利用被加密的已知信息位进行译码,在物理层预测二类加密数据包的SN,从而高概率的找到该SN对应的一类加密信息中的该已知信息位,利用该已知信息位的上的信息对加密数据包进行译码。从而有效的提高的译码速度,提高了译码性能。In the embodiment of the present invention, in order to improve the decoding efficiency of the physical layer, the physical layer can use the encrypted known information bits for decoding, and predict the SN of the second type of encrypted data packet at the physical layer, so as to find the SN with high probability. The known information bit in a type of encrypted information corresponding to the SN uses the information on the known information bit to decode the encrypted data packet. Therefore, the decoding speed is effectively improved, and the decoding performance is improved.

图3示出了根据本发明实施例的译码装置300的示意性框图。图3及其说明所揭示的装置,可基于本发明实施例图1和基于本发明实施例图1所揭示的译码的方法,以及基于图2所揭示的装置。Fig. 3 shows a schematic block diagram of a decoding device 300 according to an embodiment of the present invention. The device disclosed in FIG. 3 and its description may be based on FIG. 1 of the embodiment of the present invention and the decoding method disclosed in FIG. 1 of the embodiment of the present invention, as well as the device disclosed in FIG. 2 .

根据本发明实施例的译码装置300可对应于根据本发明实施例的译码的方法,并且译码装置300中的各个器的上述和其它操作和/或功能分别为了实现图1中的各个方法的相应流程,为了简洁,在此不再赘述。The decoding device 300 according to the embodiment of the present invention may correspond to the decoding method according to the embodiment of the present invention, and the above-mentioned and other operations and/or functions of each device in the decoding device 300 are respectively in order to realize each For the sake of brevity, the corresponding flow of the method will not be repeated here.

如图3所示,译码装置包括:As shown in Figure 3, the decoding device includes:

接收器,用于获取一类加密数据包,该一类加密数据包为经过加密的已知信息位信息,该一类加密数据包来自RLC层,还用于接收二类加密数据包,该二类加密数据包来自发送端的物理层;The receiver is used to obtain a type of encrypted data packet, the type of encrypted data packet is encrypted known information bit information, the type of encrypted data packet comes from the RLC layer, and is also used to receive a type of encrypted data packet, the second type of encrypted data packet The encrypted data packet comes from the physical layer of the sender;

处理器,用于预测二类加密数据包的SN,还用于根据该预测的SN,利用该一类加密数据包中该经过加密的已知信息位信息对该二类加密数据包进行译码。The processor is used to predict the SN of the second type of encrypted data packet, and is also used to decode the second type of encrypted data packet by using the encrypted known information bit information in the type of encrypted data packet according to the predicted SN .

可选地,该译码装置还可以包括,存储器,用于存储该一类加密数据包和该二类加密数据包。Optionally, the decoding device may further include a memory for storing the type-1 encrypted data packet and the type-2 encrypted data packet.

可选地,该一类加密数据包由RLC层生成,包括:Optionally, this type of encrypted data packet is generated by the RLC layer, including:

在RLC层实体内,基于该RLC实体对应的SN组内的每个SN生成该SN对应的密码流,用该密码流对该已知信息位信息进行加密,得到该一类加密数据包。In the RLC layer entity, based on each SN in the SN group corresponding to the RLC entity, a cipher stream corresponding to the SN is generated, and the known information bit information is encrypted with the cipher stream to obtain this type of encrypted data packet.

可选地,该处理器进一步用于,当用基本译码方式对二类加密数据包译码错误,该一类加密数据包对应一个RLC实体时,判断该二类加密数据包是否为该关注类型数据包;Optionally, the processor is further used to judge whether the encrypted data packet of the second type is the attention when the encrypted data packet of the second type is decoded incorrectly by the basic decoding method, and the encrypted data packet of the type corresponds to an RLC entity. type packet;

该判断结果为该二类加密数据包为该关注类型数据包时,该处理器预测该已知信息位的数据包的SN。When the judging result is that the encrypted data packet of the second type is the data packet of the concerned type, the processor predicts the SN of the data packet of the known information bit.

可选地,该处理器进一步用于,当用基本译码方式对二类加密数据包译码错误,该一类加密数据包存对应多个RLC实体时,判断该二类加密数据包是否为该关注类型数据包;该判断结果为该二类加密数据包为该关注类型数据包时,选取在上段接收时间内出现概率最大的该RLC实体所对应的SN组,预测该二类加密数据包中的该已知信息位对应的SN。Optionally, the processor is further used to judge whether the encrypted data packet of the second type is a The concerned type data packet; when the judgment result is that the second type of encrypted data packet is the concerned type of data packet, select the SN group corresponding to the RLC entity with the largest occurrence probability in the last receiving time, and predict the second type of encrypted data packet The SN corresponding to the known information bit in .

可选地,该处理器进一步用于,判断该二类加密数据包是否为新传;Optionally, the processor is further used to determine whether the Type II encrypted data packet is newly transmitted;

当该判断该二类的加密数据包是否为新传的判断结果为该二类加密数据包是新传时,判断该二类加密数据包的前一个二类加密数据包是否正确接收。When the judging result of judging whether the Type 2 encrypted data packet is newly transmitted is that the Type 2 encrypted data packet is newly transmitted, it is judged whether the previous Type 2 encrypted data packet of the Type 2 encrypted data packet is received correctly.

当该判断该来二类加密数据包的该前一个二类加密数据包是否正确接收的判断结果为该前一个二类加密数据包正确接收,预测该SN为该前一个二类加密数据包的SN加1或预测该SN为该前一个二类加密数据包的SN加1并加溢后取模。When it is judged whether the previous two encrypted data packets of the second type encrypted data packets are received correctly, the judgment result is that the previous two encrypted data packets are received correctly, and the SN is predicted to be the previous two encrypted data packets. Add 1 to the SN or predict that the SN is the SN of the previous Type II encrypted data packet plus 1 and take the modulus after overflow.

可选地,该处理器进一步用于,当该判断该二类加密数据包的该前一个二类加密数据包是否正确接收的判断结果为该前一个二类加密数据包未正确接收,预测该二类加密数据包和前一个正确接收的二类加密数据包之间二类加密数据包个数n,预测该SN为该前一个正确接收的二类加密数据包的SN加该n再加1。Optionally, the processor is further configured to predict the The number n of Type 2 encrypted data packets between the Type 2 encrypted data packet and the previous correctly received Type 2 encrypted data packet, and the predicted SN is the SN of the previous correctly received Type 2 encrypted data packet plus the n plus 1 .

可选地,当该判断该二类加密数据包是否为新传的判断结果为该二类加密数据包不是新传时,预测该SN为上一次对该二类加密数据包的预测SN。Optionally, when the result of judging whether the Type II encrypted data packet is newly transmitted is that the Type II encrypted data packet is not newly transmitted, the predicted SN is the last predicted SN of the Type II encrypted data packet.

可选地,该处理器进一步用于,选取该预测的SN对应的一类加密数据包;利用该一类加密数据包上的该已知信息位信息对该二类加密数据包进行辅助译码。辅助译码的步骤可参照本发明方法实施例中S130所述,此处不再累述。Optionally, the processor is further used to select a type of encrypted data packet corresponding to the predicted SN; use the known information bit information on the type of encrypted data packet to assist in decoding the second type of encrypted data packet . The steps of assisting in decoding can refer to the description in S130 in the method embodiment of the present invention, and will not be repeated here.

本发明实施例所揭示的译码装置300,可位于物理层的包括基站在内的各种设备内,也可不同器件分别位于物理层不同的设备内,本发明不作限定。The decoding device 300 disclosed in the embodiment of the present invention may be located in various devices including a base station at the physical layer, or different devices may be located in different devices at the physical layer, which is not limited in the present invention.

在本发明实施例中,为了提高物理层的译码效率,使物理层可以利用被加密的已知信息位进行译码,在物理层预测二类加密数据包的SN,从而高概率的找到该SN对应的一类加密信息中的该已知信息位,利用该已知信息位的上的信息对加密数据包进行译码。从而有效的提高的译码速度,提高了译码性能。In the embodiment of the present invention, in order to improve the decoding efficiency of the physical layer, the physical layer can use the encrypted known information bits for decoding, and predict the SN of the second type encrypted data packet at the physical layer, so as to find the SN with high probability. The known information bit in a type of encrypted information corresponding to the SN uses the information on the known information bit to decode the encrypted data packet. Therefore, the decoding speed is effectively improved, and the decoding performance is improved.

应理解,在本发明实施例中,术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系。例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that in the embodiments of the present invention, the term "and/or" is only an association relationship describing associated objects, indicating that there may be three relationships. For example, A and/or B may mean that A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the relationship between hardware and software Interchangeability. In the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, and will not be repeated here.

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

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.

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

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of software products, and the computer software products are stored in a storage medium In, several instructions are included to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can easily think of various equivalents within the technical scope disclosed in the present invention. Modifications or replacements shall all fall within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (26)

1.一种译码的方法,其特征在于,包括:1. A decoding method, characterized in that, comprising: 获取一类加密数据包,所述一类加密数据包为经过加密的已知信息位信息,所述一类加密数据包来自无线链路控制RLC层;Obtain a type of encrypted data packet, the type of encrypted data packet is encrypted known information bit information, and the type of encrypted data packet comes from the radio link control RLC layer; 预测二类加密数据包的序号SN,所述二类加密数据包来自发送端的物理层;Predict the serial number SN of the second type encrypted data packet, the second type encrypted data packet comes from the physical layer of the sending end; 根据所述预测的SN,利用所述一类加密数据包中所述经过加密的已知信息位信息对所述二类加密数据包进行译码。According to the predicted SN, the encrypted data packet of the second type is decoded by using the encrypted known information bit information in the encrypted data packet of the first type. 2.根据权利要求1所述的方法,其特征在于,所述获取一类加密数据包之前,所述方法还包括:2. The method according to claim 1, wherein, before the acquisition of a class of encrypted data packets, the method further comprises: 在RLC层实体内,基于所述RLC实体对应的SN组内的每个SN生成该SN对应的密码流,用所述密码流对所述已知信息位信息进行加密,得到所述一类加密数据包。In the RLC layer entity, based on each SN in the SN group corresponding to the RLC entity, a cipher stream corresponding to the SN is generated, and the cipher stream is used to encrypt the known information bit information to obtain the type of encryption data pack. 3.根据权利要求1或2所述的方法,其特征在于,当用基本译码方式对二类加密数据包译码错误,所述二类加密数据包对应一个RLC实体时,所述预测二类加密数据包的SN之前,还包括:判断所述二类加密数据包是否为所述关注类型数据包;3. The method according to claim 1 or 2, characterized in that, when using the basic decoding method to decode the second type of encrypted data packet incorrectly, and when the second type of encrypted data packet corresponds to an RLC entity, the prediction two Before the SN of the encrypted data packet, it also includes: judging whether the encrypted data packet of the second type is the data packet of the concerned type; 当所述判断结果为所述二类加密数据包为所述关注类型数据包时,预测所述二类加密数据包中的已知信息位对应的SN。When the judgment result is that the Type 2 encrypted data packet is the concerned type data packet, predict the SN corresponding to the known information bits in the Type 2 encrypted data packet. 4.根据权利要求1或2所述的方法所述的方法,其特征在于,当用基本译码方式对二类加密数据包译码错误,所述一类加密数据包存对应多个RLC实体时,所述预测二类加密数据包的SN之前,还包括:4. according to the described method of the described method of claim 1 or 2, it is characterized in that, when using basic decoding mode to two types of encrypted data packet decoding errors, described one type of encrypted data packet is stored corresponding to a plurality of RLC entities When, before the SN of the predicted second-class encrypted data packet, it also includes: 判断所述二类加密数据包是否为所述关注类型数据包;judging whether the second type encrypted data packet is the concerned type data packet; 所述判断结果为所述二类加密数据包为所述关注类型数据包时,选取在上段接收时间内出现概率最大的所述RLC实体所对应的SN组后进行预测所述二类加密数据包中的所述已知信息位对应的SN。When the judgment result is that the Type 2 encrypted data packet is the concerned type data packet, the SN group corresponding to the RLC entity with the highest probability of occurrence in the last receiving time is selected to predict the Type 2 encrypted data packet The SN corresponding to the known information bits in . 5.根据权利要求1至4中任一项所述的方法,其特征在于,所述预测二类加密数据包的SN包括:5. The method according to any one of claims 1 to 4, wherein the prediction of the SN of the second type of encrypted data packet comprises: 判断所述二类加密数据包是否为新传;Judging whether the second type encrypted data packet is newly transmitted; 当所述判断所述二类的加密数据包是否为新传的判断结果为所述二类加密数据包是新传时,判断所述二类加密数据包的前一个二类加密数据包是否正确接收;When the judgment result of judging whether the encrypted data packet of the second type is a new transmission is that the encrypted data packet of the second type is a new transmission, it is judged whether the encrypted data packet of the second type is correct before the encrypted data packet of the second type take over; 当所述判断所述二类加密数据包的所述前一个二类加密数据包是否正确接收的判断结果为所述前一个二类加密数据包正确接收,预测所述SN为所述前一个二类加密数据包的SN加1或预测所述SN为所述前一个二类加密数据包的SN加1并加溢后取模。When the judgment result of judging whether the previous type 2 encrypted data packet of the type 2 encrypted data packet is received correctly is that the previous type 2 encrypted data packet is received correctly, predicting that the SN is the previous type 2 encrypted data packet Adding 1 to the SN of the class-2 encrypted data packet or predicting that the SN is the SN of the previous class-2 encrypted data packet plus 1 and taking the modulus after overflow. 6.根据权利要求5所述的方法,其特征在于,当所述判断所述二类加密数据包的所述前一个二类加密数据包是否正确接收的判断结果为所述前一个二类加密数据包未正确接收,预测所述二类加密数据包和前一个正确接收的二类加密数据包之间二类加密数据包个数n,预测所述已知信息位的数据包的SN为所述前一个正确接收的二类加密数据包的SN加所述n再加1或所述前一个正确接收的二类加密数据包的SN加所述n再加1并加溢后取模。6. The method according to claim 5, characterized in that, when the judgment result of whether the previous Class II encrypted data packet of the Class II encrypted data packet is correctly received is that the previous Class II encrypted data packet is The data packet is not correctly received, predicting the number n of the second type of encrypted data packets between the second type of encrypted data packet and the previous correctly received second type of encrypted data packet, and predicting that the SN of the data packet of the known information bit is all The SN of the previous correctly received Type II encrypted data packet is added to the n plus 1, or the SN of the previous correctly received Type II encrypted data packet is added to the above n plus 1, and the modulus is taken after overflow. 7.根据权利要求5所述的方法,其特征在于,当所述判断所述二类加密数据包是否为新传的判断结果为所述二类加密数据包不是新传时,预测所述已知信息位的数据包的SN为上一次对所述一类加密数据包的预测SN。7. The method according to claim 5, characterized in that, when the result of judging whether the Class II encrypted data packet is newly transmitted is that the Class II encrypted data packet is not newly transmitted, predicting that the encrypted data packet of the second type is not newly transmitted. The SN of the data packet with known information bits is the last predicted SN of the type of encrypted data packet. 8.根据权利要求1至7中任一项所述的方法,其特征在于,所述根据所述预测的SN,利用所述一类加密数据包中所述经过加密的已知信息位信息对所述二类加密数据包进行译码包括:8. The method according to any one of claims 1 to 7, characterized in that, according to the predicted SN, using the encrypted known information bit information pair in the one type of encrypted data packet Deciphering the second type of encrypted data packet includes: 选取所述预测的SN对应的一类加密数据包;Select a class of encrypted data packets corresponding to the predicted SN; 利用所述一类加密数据包上的所述已知信息位信息对所述二类加密数据包进行辅助译码。Using the known information bit information on the encrypted data packet of the first type to perform auxiliary decoding on the encrypted data packet of the second type. 9.一种译码的装置,其特征在于,包括:9. A decoding device, characterized in that it comprises: 接收模块,用于获取一类加密数据包,所述一类加密数据包为经过加密的已知信息位信息,所述一类加密数据包来自RLC层,还用于接收二类加密数据包,所述二类加密数据包来自发送端的物理层;The receiving module is used to obtain a type of encrypted data packet, the type of encrypted data packet is encrypted known information bit information, the type of encrypted data packet is from the RLC layer, and is also used to receive the type II encrypted data packet, The second type of encrypted data packet comes from the physical layer of the sending end; 处理模块,用于预测二类加密数据包的SN;A processing module, used to predict the SN of the second class encrypted data packet; 译码模块,用于根据所述预测的SN,利用所述一类加密数据包中所述经过加密的已知信息位信息对所述二类加密数据包进行译码。The decoding module is configured to decode the encrypted data packet of the second type by using the encrypted known information bit information in the encrypted data packet of the first type according to the predicted SN. 10.根据权利要求9所述的装置,其特征在于,还包括:10. The device according to claim 9, further comprising: 存储模块,用于存储所述一类加密数据包和所述二类加密数据包。A storage module, configured to store the type-1 encrypted data packet and the type-2 encrypted data packet. 11.根据权利要求9或10所述的装置,其特征在于,所述一类加密数据包由RLC层生成,包括:11. The device according to claim 9 or 10, wherein said type of encrypted data packet is generated by the RLC layer, comprising: 在RLC层实体内,基于所述RLC实体对应的SN组内的每个SN生成该SN对应的密码流,用所述密码流对所述已知信息位信息进行加密,得到所述一类加密数据包。In the RLC layer entity, based on each SN in the SN group corresponding to the RLC entity, a cipher stream corresponding to the SN is generated, and the cipher stream is used to encrypt the known information bit information to obtain the type of encryption data pack. 12.根据权利要求9至11中任一项所述的装置,其特征在于,所述处理模块进一步用于,当用基本译码方式对二类加密数据包译码错误,所述一类加密数据包对应一个RLC实体时,判断所述二类加密数据包是否为所述关注类型数据包;12. The device according to any one of claims 9 to 11, wherein the processing module is further configured to, when the basic decoding method is used to decode the second type of encrypted data packet incorrectly, the first type of encryption When the data packet corresponds to an RLC entity, it is judged whether the second type encrypted data packet is the concerned type data packet; 所述判断结果为所述二类加密数据包为所述关注类型数据包时,所述处理模块预测所述已知信息位的数据包的SN。When the judging result is that the Type II encrypted data packet is the concerned type data packet, the processing module predicts the SN of the data packet of the known information bit. 13.根据权利要求9至12中任一项所述的装置,其特征在于,所述处理模块进一步用于,当用基本译码方式对二类加密数据包译码错误,所述一类加密数据包存对应多个RLC实体时,13. The device according to any one of claims 9 to 12, wherein the processing module is further configured to, when the basic decoding method is used to decode the second type of encrypted data packet incorrectly, the first type of encryption When the data packet corresponds to multiple RLC entities, 判断所述二类加密数据包是否为所述关注类型数据包;judging whether the second type encrypted data packet is the concerned type data packet; 所述判断结果为所述二类加密数据包为所述关注类型数据包时,选取在上段接收时间内出现概率最大的所述RLC实体所对应的SN组,预测所述二类加密数据包中的所述已知信息位对应的SN。The result of the judgment is that when the Type II encrypted data packet is the concerned type data packet, select the SN group corresponding to the RLC entity with the highest probability of occurrence in the last receiving time, and predict the type of encrypted data packet in the Type II encrypted data packet The SN corresponding to the known information bit. 14.根据权利要求9至13中任一项所述的装置,其特征在于,所述处理模块进一步用于,14. The device according to any one of claims 9 to 13, wherein the processing module is further used for: 判断所述二类加密数据包是否为新传;Judging whether the second type encrypted data packet is newly transmitted; 当所述判断所述二类的加密数据包是否为新传的判断结果为所述二类加密数据包是新传时,判断所述二类加密数据包的前一个二类加密数据包是否正确接收;When the judgment result of judging whether the encrypted data packet of the second type is a new transmission is that the encrypted data packet of the second type is a new transmission, it is judged whether the encrypted data packet of the second type is correct before the encrypted data packet of the second type take over; 当所述判断所述二类加密数据包的所述前一个二类加密数据包是否正确接收的判断结果为所述前一个二类加密数据包正确接收,预测所述SN为所述前一个二类加密数据包的SN加1或预测所述SN为所述前一个二类加密数据包的SN加1并加溢后取模。When the judgment result of judging whether the previous type 2 encrypted data packet of the type 2 encrypted data packet is received correctly is that the previous type 2 encrypted data packet is received correctly, predicting that the SN is the previous type 2 encrypted data packet Adding 1 to the SN of the class-2 encrypted data packet or predicting that the SN is the SN of the previous class-2 encrypted data packet plus 1 and taking the modulus after overflow. 15.根据权利要求9至14中任一项所述的装置,其特征在于,所述处理模块进一步用于,当所述判断所述二类加密数据包的所述前一个二类加密数据包是否正确接收的判断结果为所述前一个二类加密数据包未正确接收,预测所述二类加密数据包和前一个正确接收的二类加密数据包之间二类加密数据包个数n,预测所述SN为所述前一个正确接收的二类加密数据包的SN加所述n再加1或所述前一个正确接收的二类加密数据包的SN加所述n再加1并加溢后取模。15. The device according to any one of claims 9 to 14, wherein the processing module is further configured to, when determining that the previous Type 2 encrypted data packet of the Type 2 encrypted data packet Whether the judgment result of correct reception is that the previous Class II encrypted data packet was not received correctly, and the number n of Class II encrypted data packets between the Class II encrypted data packet and the previous correctly received Class II encrypted data packet is predicted, Predicting that the SN is the SN of the previous correctly received Type 2 encrypted data packet plus the n plus 1 or the SN of the previous correctly received Type 2 encrypted data packet plus the n plus 1 and adding Modulo after overflow. 16.根据权利要求9至15中任一项所述的装置,其特征在于,当所述判断所述二类加密数据包是否为新传的判断结果为所述二类加密数据包不是新传时,预测所述SN为上一次对所述二类加密数据包的预测SN。16. The device according to any one of claims 9 to 15, wherein when the result of judging whether the Type II encrypted data packet is newly transmitted is that the Type II encrypted data packet is not newly transmitted , the predicted SN is the last predicted SN for the Type II encrypted data packet. 17.根据权利要求9至16中任一项所述的装置,其特征在于,所述译码模块进一步用于,17. The device according to any one of claims 9 to 16, wherein the decoding module is further used for: 选取所述预测的SN对应的一类加密数据包;Select a class of encrypted data packets corresponding to the predicted SN; 利用所述一类加密数据包上的所述已知信息位信息对所述二类加密数据包进行辅助译码。Using the known information bit information on the encrypted data packet of the first type to perform auxiliary decoding on the encrypted data packet of the second type. 18.一种译码的装置,其特征在于,包括:18. A decoding device, characterized in that it comprises: 接收器,用于获取第一类加密数据包,所述第一类加密数据包为经过加密的已知信息位信息,所述第一类加密数据包来自RLC层,还用于接收第二类加密数据包,所述第二类加密数据包来自发送端的物理层;The receiver is used to obtain the first type of encrypted data packet, the first type of encrypted data packet is encrypted known information bit information, the first type of encrypted data packet is from the RLC layer, and is also used to receive the second type of encrypted data packet An encrypted data packet, the second type of encrypted data packet is from the physical layer of the sending end; 处理器,用于预测第二类加密数据包的SN,还用于根据所述预测的SN,利用所述第一类加密数据包中所述经过加密的已知信息位信息对所述第二类加密数据包进行译码。The processor is configured to predict the SN of the encrypted data packet of the second type, and is further configured to use the encrypted known information bit information in the encrypted data packet of the first type to Encrypted packets are decoded. 19.根据权利要求18所述的装置,其特征在于,还包括:19. The apparatus of claim 18, further comprising: 存储器,用于存储所述第一类加密数据包和所述第二类加密数据包。A memory, configured to store the first type of encrypted data packet and the second type of encrypted data packet. 20.根据权利要求18或19所述的装置,其特征在于,所述第一类加密数据包由RLC层生成,包括:20. The device according to claim 18 or 19, wherein the first type of encrypted data packet is generated by the RLC layer, comprising: 在RLC层实体内,基于所述RLC实体对应的SN组内的每个SN生成该SN对应的密码流,用所述密码流对所述已知信息位信息进行加密,得到所述第一类加密数据包。In the RLC layer entity, based on each SN in the SN group corresponding to the RLC entity, a cipher stream corresponding to the SN is generated, and the cipher stream is used to encrypt the known information bit information to obtain the first type Encrypted packets. 21.根据权利要求18至20中任一项所述的装置,其特征在于,所述处理器进一步用于,当用基本译码方式对第二类加密数据包译码错误,所述第一类加密数据包对应一个RLC实体时,判断所述第二类加密数据包是否为所述关注类型数据包;21. The device according to any one of claims 18 to 20, wherein the processor is further configured to, when the second type of encrypted data packet is decoded incorrectly in a basic decoding manner, the first When the type encrypted data packet corresponds to an RLC entity, it is judged whether the second type encrypted data packet is the concerned type data packet; 所述判断结果为所述第二类加密数据包为所述关注类型数据包时,所述处理器预测所述已知信息位的数据包的SN。When the judgment result is that the encrypted data packet of the second type is the data packet of the concerned type, the processor predicts the SN of the data packet of the known information bit. 22.根据权利要求18至21中任一项所述的装置,其特征在于,所述处理器进一步用于,当用基本译码方式对第二类加密数据包译码错误,所述第一类加密数据包存对应多个RLC实体时,22. The device according to any one of claims 18 to 21, wherein the processor is further configured to, when the second type of encrypted data packet is decoded incorrectly in a basic decoding manner, the first When the encrypted data packet corresponds to multiple RLC entities, 判断所述第二类加密数据包是否为所述关注类型数据包;judging whether the encrypted data packet of the second type is the data packet of the concerned type; 所述判断结果为所述第二类加密数据包为所述关注类型数据包时,选取在上段接收时间内出现概率最大的所述RLC实体所对应的SN组,预测所述第二类加密数据包中的所述已知信息位对应的SN。The judgment result is that when the encrypted data packet of the second type is the data packet of the concerned type, select the SN group corresponding to the RLC entity with the highest probability of occurrence within the receiving time in the previous section, and predict the encrypted data of the second type The SN corresponding to the known information bits in the packet. 23.根据权利要求18至22中任一项所述的装置,其特征在于,所述处理器进一步用于,23. The device according to any one of claims 18 to 22, wherein the processor is further configured to, 判断所述第二类加密数据包是否为新传;Judging whether the second type of encrypted data packet is newly transmitted; 当所述判断所述第二类的加密数据包是否为新传的判断结果为所述第二类加密数据包是新传时,判断所述第二类加密数据包的前一个第二类加密数据包是否正确接收;When the judgment result of judging whether the encrypted data packet of the second type is newly transmitted is that the encrypted data packet of the second type is newly transmitted, it is judged that the previous encrypted data packet of the second type is encrypted Whether the data packet is received correctly; 当所述判断所述第二类加密数据包的所述前一个第二类加密数据包是否正确接收的判断结果为所述前一个第二类加密数据包正确接收,预测所述SN为所述前一个第二类加密数据包的SN加1或预测所述SN为所述前一个第二类加密数据包的SN加1并加溢后取模。When the judgment result of judging whether the previous encrypted data packet of the second type of the encrypted data packet of the second type is correctly received is that the previous encrypted data packet of the second type is received correctly, predicting that the SN is the Adding 1 to the SN of the previous encrypted data packet of the second type or predicting that the SN is incremented by 1 to the SN of the previous encrypted data packet of the second type and taking a modulo after adding overflow. 24.根据权利要求18至23中任一项所述的装置,其特征在于,所述处理器进一步用于,当所述判断所述第二类加密数据包的所述前一个第二类加密数据包是否正确接收的判断结果为所述前一个第二类加密数据包未正确接收,预测所述第二类加密数据包和前一个正确接收的第二类加密数据包之间第二类加密数据包个数n,预测所述SN为所述前一个正确接收的第二类加密数据包的SN加所述n再加1或所述前一个正确接收的第二类加密数据包的SN加所述n再加1并加溢后取模。24. The device according to any one of claims 18 to 23, wherein the processor is further configured to, when determining whether the previous second-type encryption of the second-type encrypted data packet The judgment result of whether the data packet is received correctly is that the previous encrypted data packet of the second type has not been received correctly, and the second encrypted data packet between the encrypted data packet of the second type and the encrypted data packet of the second type received correctly is predicted The number n of data packets, predicting that the SN is the SN of the previous correctly received encrypted data packet of the second type plus the n plus 1 or the SN of the previously correctly received encrypted data packet of the second type plus Add 1 to the n and take the modulus after overflow. 25.根据权利要求18至24中任一项所述的装置,其特征在于,当所述判断所述第二类加密数据包是否为新传的判断结果为所述第二类加密数据包不是新传时,预测所述SN为上一次对所述第二类加密数据包的预测SN。25. The device according to any one of claims 18 to 24, wherein when the result of judging whether the encrypted data packet of the second type is newly transmitted is that the encrypted data packet of the second type is not In new transmission, the predicted SN is the last predicted SN of the second type of encrypted data packet. 26.根据权利要求18至25中任一项所述的装置,其特征在于,所述处理器进一步用于,26. The device according to any one of claims 18 to 25, wherein the processor is further configured to, 选取所述预测的SN对应的第一类加密数据包;Selecting the first type of encrypted data packet corresponding to the predicted SN; 利用所述第一类加密数据包上的所述已知信息位信息对所述第二类加密数据包进行辅助译码。Auxiliary decoding is performed on the encrypted data packet of the second type by using the known information bit information on the encrypted data packet of the first type.
CN201280002790.6A 2012-12-31 2012-12-31 The method and apparatus of decoding Active CN103404101B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/088101 WO2014101214A1 (en) 2012-12-31 2012-12-31 Decoding method and device

Publications (2)

Publication Number Publication Date
CN103404101A true CN103404101A (en) 2013-11-20
CN103404101B CN103404101B (en) 2015-11-25

Family

ID=49565860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201280002790.6A Active CN103404101B (en) 2012-12-31 2012-12-31 The method and apparatus of decoding

Country Status (2)

Country Link
CN (1) CN103404101B (en)
WO (1) WO2014101214A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1443428A (en) * 2000-05-23 2003-09-17 诺泰网络有限公司 Method for controlling channel handover in cellular radiocommunications network
CN1753516A (en) * 2004-09-21 2006-03-29 华为技术有限公司 A wireless access network and communication method thereof
WO2006116620A2 (en) * 2005-04-26 2006-11-02 Qualcomm Incorporated Ciphering and re-ordering packets in a wireless communication system
CN1917411A (en) * 2005-08-16 2007-02-21 中兴通讯股份有限公司 System and method for realization of accessing high speed down going packets in multiple carriers
CN101795184A (en) * 2010-01-27 2010-08-04 华为终端有限公司 Memory management method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1443428A (en) * 2000-05-23 2003-09-17 诺泰网络有限公司 Method for controlling channel handover in cellular radiocommunications network
CN1753516A (en) * 2004-09-21 2006-03-29 华为技术有限公司 A wireless access network and communication method thereof
WO2006116620A2 (en) * 2005-04-26 2006-11-02 Qualcomm Incorporated Ciphering and re-ordering packets in a wireless communication system
CN1917411A (en) * 2005-08-16 2007-02-21 中兴通讯股份有限公司 System and method for realization of accessing high speed down going packets in multiple carriers
CN101795184A (en) * 2010-01-27 2010-08-04 华为终端有限公司 Memory management method and device

Also Published As

Publication number Publication date
CN103404101B (en) 2015-11-25
WO2014101214A1 (en) 2014-07-03

Similar Documents

Publication Publication Date Title
JP5047472B2 (en) MAC header compression used with frame aggregation
JP6640038B2 (en) Method and apparatus for performing extended file distribution in multicast communication or broadcast communication
US8908717B2 (en) Method and system of transmitting and receiving fragmentable data units in a wireless communication environment
US20180054693A1 (en) Method for discriminating between unicast device to device(d2d) communication and groupcast d2d communication
CN110943800A (en) Method, device and system for sending data packet, storage medium and electronic device
CN102497248B (en) Data retransmission method based on network coding
CN106031072A (en) A HARQ frame data structure and a method for transmitting and receiving using HARQ in a system using blind detection
CN106254041A (en) Data transmission method, data receiver method and device thereof
CN101176288A (en) Communication apparatus, reception method in said apparatus, codec, decoder, communication module, communication unit and decoding method
CN106817192A (en) Method, base station and terminal that a kind of mistake is estimated
CN113364559B (en) A method, device and system for data security transmission oriented to multi-path
CN101222302A (en) A Method of Implementing Error Recovery in Multicast Service
CN102299784B (en) Data transmission method and equipment
CN106464432B (en) Low-latency packet erasure coding
JP5236735B2 (en) Improved data structure boundary synchronization between transmitter and receiver
Nguyen et al. Advanced adaptive decoder using fulcrum network codes
EP3241115B1 (en) Method and system for on-demand file repair
US10200155B2 (en) One-way data transmission apparatus, one-way data reception apparatus, and one-way data transmission/reception method using the same
US20060203823A1 (en) Method of CRC Residue Error Detection and Handling
US11477170B2 (en) Decoding method and apparatus
JP2017508408A (en) Data transmission and feedback processing method and apparatus
KR20160123562A (en) Receiver for processing data packet and data packet processing method of receiver
CN104426866B (en) A kind of data transmission method and device
CN103404101B (en) The method and apparatus of decoding
Schmidt et al. Refector: Heuristic header error recovery for error-tolerant transmissions

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant