WO2015196566A1 - Method and apparatus for detecting faulty data in radio link control layer - Google Patents

Method and apparatus for detecting faulty data in radio link control layer Download PDF

Info

Publication number
WO2015196566A1
WO2015196566A1 PCT/CN2014/086037 CN2014086037W WO2015196566A1 WO 2015196566 A1 WO2015196566 A1 WO 2015196566A1 CN 2014086037 W CN2014086037 W CN 2014086037W WO 2015196566 A1 WO2015196566 A1 WO 2015196566A1
Authority
WO
WIPO (PCT)
Prior art keywords
sequence number
receiving
module
maximum
threshold
Prior art date
Application number
PCT/CN2014/086037
Other languages
French (fr)
Chinese (zh)
Inventor
韩虎贲
Original Assignee
深圳市中兴微电子技术有限公司
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 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Publication of WO2015196566A1 publication Critical patent/WO2015196566A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Definitions

  • the present invention relates to data detection technology, and in particular, to a wireless link control layer error data detection method and apparatus.
  • LTE Long Term Evolution
  • MAC medium access control layer
  • PDCP packet data aggregation layer
  • RLC radio link control layer
  • SN data number
  • the embodiments of the present invention mainly provide a radio link control layer error data detecting method and apparatus.
  • An embodiment of the present invention provides a method for detecting an error data of a radio link control layer, where the method includes: performing a modulo processing on a current receiving sequence number and a maximum receiving sequence number, and performing a first threshold on a current receiving sequence number and a maximum receiving sequence number. Estimating, comparing the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing is compared with the first threshold, and determining that the data corresponding to the current receiving sequence number is determined when the difference after determining the modulo processing is greater than the first threshold Wrong data.
  • An embodiment of the present invention provides a radio link control layer error data detecting apparatus, where the apparatus includes: a first modulo processing module, a first threshold determining module, and a first judging module;
  • the first modulo processing module is configured to perform modulo processing on the current receiving sequence number and the maximum receiving sequence number respectively, and send the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing to the first determining module;
  • the first threshold determining module is configured to perform a first threshold estimation on the current receiving sequence number and the maximum receiving sequence number, and send the estimated first threshold value to the first determining module;
  • the first judging module is configured to compare the difference between the current receiving sequence number and the maximum receiving sequence number received by the first modulo processing module and the first threshold value sent by the first threshold determining module, where When it is determined that the difference after the modulo processing is greater than the first threshold, determining that the data corresponding to the current receiving sequence number is erroneous data.
  • the embodiment of the invention provides a wireless link control layer error data detecting method and device, and the receiving end performs modulo processing on the current receiving sequence number and the maximum receiving sequence number respectively, and performs a first threshold estimation on the current receiving sequence number and the maximum receiving sequence number. And comparing the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing is compared with the first threshold, and determining that the data corresponding to the current receiving sequence number is an error when determining that the difference value after the modulo processing is greater than the first threshold Data; in this way, erroneous data can be detected as soon as possible so that it can be corrected in time to enable the data to be sent and received normally; and the data transmission accuracy rate is improved.
  • FIG. 1 is a schematic flowchart of a method for detecting an error data of an RLC layer according to the present invention
  • FIG. 2 is a schematic flowchart of a method for detecting an error data of a receiving end of an RLC layer according to the present invention
  • FIG. 3 is a schematic flowchart of a method for detecting an error data of a transmitting end of an RLC layer according to the present invention
  • FIG. 4 is a schematic structural diagram of an apparatus for detecting an error of an RLC layer according to the present invention.
  • FIG. 5 is a schematic structural diagram of another RLC layer error data detecting apparatus according to the present invention.
  • the receiving end performs modulo processing on the current receiving sequence number and the maximum receiving sequence number respectively, and performs a first threshold estimation on the current receiving sequence number and the maximum receiving sequence number, and the current receiving sequence number and the maximum receiving sequence number after the modulo processing is performed.
  • the difference is compared with the first threshold. When the difference after determining the modulo processing is greater than the first threshold, determining that the data corresponding to the current receiving sequence number is erroneous data.
  • the hybrid automatic repeat request (HARQ) mechanism In the RLC protocol, in the acknowledgment (AM) mode, the hybrid automatic repeat request (HARQ) mechanism is used to ensure complete data transmission.
  • the HARQ mechanism requires the user equipment (UE) and the network side to respectively report the status report to the other party. Require the other party to resend the data that has not been completely received, and continuously correct the feedback to synchronize the data between the sender and the receiver.
  • UM non-acknowledgment
  • the error data is not the actual data to be sent by the sender, it may be old data, or incomplete data.
  • the window maintained by the receiving end will slide abnormally, resulting in non-synchronization with the sending end, so that the receiving end will temporarily process the original correct data, and even discard it when it is serious.
  • the receiving end will feed back an abnormal status packet, which cannot be processed normally by the transmitting end. Therefore, the ARQ mechanism will completely lose its effect, and the data link cannot perform effective data communication.
  • the embodiment of the invention is mainly based on the data coding and window mechanism of the RLC protocol, and can quickly detect errors, timely correct errors, and ensure correct, orderly and complete transmission of data when error data occurs.
  • the embodiment of the invention implements a flow of the RLC layer error data detecting method. As shown in FIG. 1 , the method mainly includes the following steps:
  • Step 101 The receiving end performs modulo processing on the current receiving sequence number and the maximum receiving sequence number respectively.
  • the receiving end numbers the window data by the serial number, and records the receiving serial number. Since the RLC window is cyclic, the current receiving serial number and the recorded maximum receiving serial number are respectively subjected to modulo processing before the subsequent numerical comparison can be performed;
  • the receiving end numbers the window data by the serial number, and records the receiving serial number and the corresponding data.
  • the encoding mode and the recording mode here are already defined in the RLC protocol, and are not described herein again.
  • Step 102 The receiving end performs a first threshold estimation on the current receiving sequence number and the maximum receiving sequence number.
  • the first frame value estimation is performed by receiving the subframe number of the serial number corresponding data.
  • Step 103 The receiving end compares the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing is compared with the first threshold.
  • the value after the modulo processing is the same as the first threshold, so that the size comparison can be performed.
  • Step 104 When it is determined that the difference after the modulo processing is greater than the first threshold, determine that the data corresponding to the current receiving sequence number is erroneous data;
  • the correcting mechanism is started, the error data is discarded, and the window variable of the receiving end is not updated to keep the window synchronized with the sending window.
  • the erroneous data detection mode of the present invention is divided into: receiving end detection and transmitting end detection, wherein in the UM mode, only the receiving end detects; in the AM mode, in addition to the receiving end detecting, Increase the sender detection; in both detection modes, the correction of the error data is performed at the receiving end.
  • the process of implementing the RLC layer receiving end error data detecting method is as shown in FIG. 2, and the method mainly includes the following steps:
  • Step 201 The receiving end records the maximum receiving sequence number, and records the subframe number of the data corresponding to the maximum receiving sequence number;
  • the maximum receiving sequence number is Vrh, and the subframe number of the data corresponding to the maximum receiving sequence number Vrh is recorded as sf1;
  • the receiving end numbers the window data and records the receiving serial number SN
  • the receiving serial numbers are in one-to-one correspondence with the window data.
  • Step 202 The receiving end records the current receiving sequence number, and records the subframe number of the current receiving sequence corresponding data.
  • the subframe number of the data corresponding to the current receiving sequence number x is recorded as sf2.
  • Step 203 Determine whether the current receiving serial number is within the receiving end window; if yes, proceed to step 204, otherwise, proceed to step 208;
  • Step 204 The receiving end performs modulo processing on the current receiving sequence number and the maximum receiving sequence number respectively.
  • MOD_x (x+Modulus–Base)%Modulus
  • MOD_x is the modulus data of the current receiving serial number
  • MOD_Vrh is the modulus data of the maximum receiving serial number
  • x is the current receiving serial number
  • Vrh is the maximum receiving serial number
  • Vrr is the minimum acknowledged serial number of the receiving end
  • Win is the window size
  • Modulus is the window. 2 times the size.
  • Step 205 The receiving end performs a first threshold estimation on the current receiving sequence number and the maximum receiving sequence number.
  • Y1 (sf2-sf1)*TB* mode coefficient, where TB is the number of data transmission blocks, and the mode coefficient is the number of uplink subframes or the number of downlink subframes and the total number of subframes. ratio;
  • the mode coefficients are different in the time division multiplexing (TDD) system and the frequency division multiplexing (FDD) system.
  • TDD time division multiplexing
  • FDD frequency division multiplexing
  • different subframe ratios determine the number of subframes used for uplink and downlink, for example, When the ratio 1 is 1:7, the number of uplink subframes is determined to be 4, and the number of downlink subframes is 6.
  • the ratio 2 is 2:7, the number of uplink subframes is determined to be 2, and the number of downlink subframes is 8;
  • the mode coefficient is the ratio of the number of uplink subframes or the number of downlink subframes to the total number of subframes.
  • the ratio of the first ratio to the ratio of the two subframes is 10 (1 frame contains 10 subframes), and if it is uplink,
  • the mode factor is 4/10 or 2/10, and if it is down, the mode factor is 6/10 or 8/10;
  • Step 206 The receiving end determines whether the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing is greater than the first threshold, and if yes, proceeds to step 207, otherwise, proceeds to step 208;
  • the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing is set is Q1.
  • Step 207 Determine that the data corresponding to the current receiving sequence number is error data, and perform error correction processing.
  • the receiving end determines that the difference value after the modulo processing is greater than the first threshold, determining that the data corresponding to the current receiving sequence number is erroneous data, performing correction processing, that is, discarding data corresponding to the current receiving sequence number, and not updating the window of the receiving end variable.
  • Step 208 Determine that the data corresponding to the current receiving sequence number is legal data, and perform normal processing.
  • the receiving end fails to completely detect the erroneous data, it will feed back a status packet to the transmitting end to start the transmitting end detection, and the transmitting end further detects the erroneous data according to the status packet fed back by the receiving end, and specifically implements the RLC layer transmitting end.
  • the flow of the error data detection method is shown in FIG. 3, and the method mainly includes the following steps:
  • Step 301 The transmitting end receives the status packet fed back by the receiving end.
  • the status packet carries the window information of the receiving end
  • the window information of the receiving end includes: receiving the sequence number ACK_SN (hereinafter referred to as the acknowledgement sequence number), not receiving the sequence number NACK_SN, and not receiving the segmentation information of the data corresponding to the sequence number, these windows
  • the information has been specified in the RLC protocol.
  • the receiving end feeds back to the transmitting end which receiving sequence number SN has been received, and which receiving sequence number SN has not received, and the ACK_SN can be the upper limit of the receiving sequence number received by the receiving end, and the transmitting end receives After the status packet, the ACK_SN is forwarded, and the receiving sequence number SN received by the receiving end is released, and no retransmission is received; of course, the ACK_SN may be included in the receiving window, and the setting of the ACK_SN is in the RLC protocol. Provisions.
  • Step 302 Determine whether the confirmed sequence number of the received status packet is within the window of the sending end, such as If not, proceed to step 303; if yes, proceed to step 307;
  • the sender determines whether the acknowledgement number ACK_SN of the status packet is within the window of the sender, and compares the acknowledgement number ACK_SN with the maximum transmission sequence number Vts of the sender and the maximum transmission sequence number Vta of the continuous acknowledgement, if the acknowledge sequence number ACK_SN is at the maximum transmission sequence number. Between Vts and the continuously transmitted maximum transmission sequence number Vta, the confirmation sequence number ACK_SN is within the sender window; otherwise, the confirmation sequence number ACK_SN is not within the sender window;
  • sending end also numbers the window data, and the set numbers correspond to the data of the sending end window one by one.
  • Step 303 The transmitting end performs a modulo processing on the confirmation serial number and the maximum transmission serial number continuously confirmed.
  • MOD_Vta is the modulo data of the maximum transmission sequence number continuously confirmed
  • MOD_ACK_SN is the modulo data of the acknowledgment number
  • Vta is the maximum transmission sequence number of consecutive acknowledgments
  • ACK_SN is the acknowledgment sequence number
  • Vts is the maximum transmission sequence number of the sender, indicating the next sequence number to be transmitted
  • Vta is the maximum transmission sequence number for continuous acknowledgement, indicating that the receiver is acknowledged by the receiver and is continuously acknowledged by the receiver.
  • Step 304 The sender judges the acknowledgment number after modulo and the maximum transmission sequence number that is continuously confirmed. Whether the difference is less than the second threshold, if not, proceeds to step 305, and if yes, proceeds to step 307;
  • the difference between the acknowledgment number after the modulo processing and the maximum transmission number that is continuously confirmed is Q2.
  • the time is obtained according to the preset configuration.
  • the maximum HARQ retransmission time retransmission times* each retransmission time, wherein the number of retransmissions and each retransmission time are obtained according to a preset configuration.
  • Step 305 determining that the data corresponding to the confirmation serial number is generated by the receiving end processing the error data, and feeding back the window variable to the receiving end;
  • the sending end determines that the difference after the modulo is greater than or equal to the second threshold, it may be determined that the data corresponding to the currently received acknowledgement sequence ACK_SN is generated by the receiving end processing error data, and the feedback window variable is sent to the receiving end, the window.
  • the variables are: the maximum transmission sequence number Vta and the maximum transmission sequence number Vts that are continuously confirmed;
  • control information of the control data type needs to be constructed.
  • the control information carries the continuously transmitted maximum transmission sequence number Vta and the maximum transmission sequence number Vts to the receiving end.
  • Step 306 The receiving end performs error correction processing according to the received window variable.
  • the receiving end After receiving the window variable fed back by the sending end, the receiving end corrects the receiving window according to the received window variable, and discards the error data;
  • the receiving end compares its own maximum receiving sequence number Vrh, that is, the right edge of the receiving end window, and the maximum transmitting sequence number Vts of the transmitting end, and selects the smaller one of the maximum receiving sequence number Vrh and the maximum transmitting sequence number Vts;
  • the receiving end compares the receiving end minimum confirmation sequence number Vrr, that is, the left edge of the receiving end window, and compares the continuously confirmed maximum transmission sequence number Vta, and selects both.
  • the larger, two-choice two-window window is the window that needs to be corrected. The data in the window is the wrong data, and the error data in the window is discarded.
  • Step 307 Determine that the data corresponding to the acknowledgement sequence number is generated by the HARQ retransmission, and discard the state packet.
  • the difference after the modulo processing is greater than the second threshold, it may be determined that the data corresponding to the acknowledgment number ACK_SN is generated by the HARQ retransmission, and the received status packet is discarded, and the current round of processing ends.
  • the embodiment of the present invention further provides an apparatus for detecting an error of the RLC layer.
  • the apparatus includes: a first recording module 41, a first modulo processing module 42, and a first threshold determining module. 43. The first determining module 44; wherein
  • the first recording module 41 can be implemented by a memory, configured to record the serial number of the receiving end window, and record the subframe number of the data corresponding to the window serial number;
  • the receiving sequence number SN is respectively corresponding to the window data, so the first recording module 41 records each receiving sequence number SN, and records each The subframe number of the data corresponding to the sequence number SN is received.
  • the first modulo processing module 42 is implemented by a processor (CPU), configured to perform modulo processing on the current receiving sequence number and the maximum receiving sequence number respectively, and send the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing to First determining module;
  • CPU central processing unit
  • MOD_x (x+Modulus–Base)%Modulus
  • MOD_x is the modulo data of the current receiving sequence number
  • MOD_Vrh is the modulo data of the maximum receiving sequence number
  • x is the current receiving sequence number
  • Vrh is the maximum receiving sequence number
  • Vrr is the minimum acknowledgment number of the receiving end Win is the window size
  • Modulus is the window size 2 Times.
  • the first threshold determining module 43 may be implemented by a processor (CPU), configured to perform a first threshold estimation on the current receiving sequence number and the maximum receiving sequence number, and send the estimated first threshold value to the first determining module 44;
  • CPU central processing unit
  • the first determining module 44 is implemented by the comparator, configured to determine whether the receiving sequence number is within the receiving window, and send the subframe number of the data corresponding to the receiving sequence number and the receiving sequence number to the first when the receiving sequence number is within the receiving window.
  • the first judging module 44 is further configured to receive the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing sent by the first modulo processing module 42 and the first threshold value sent by the first threshold determining module 43. Comparing, when it is determined that the difference after the modulo processing is greater than the first threshold, Determining that the data corresponding to the current receiving serial number is error data;
  • the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing is set is Q1.
  • Q1 (MOD_x+Modulus-MOD_Vrh)%Modulus, compares the difference Q1 with the first threshold Y1, and determines the current receiving sequence number SN when the difference after determining the modulo processing is greater than the first threshold.
  • the data corresponding to x is the wrong data.
  • the device further includes: a first error data processing module 45, configured to receive the current receiving sequence number sent by the first determining module 44, and discard the data corresponding to the current receiving sequence number;
  • the first determining module 44 is further configured to send the current receiving sequence number to the first erroneous data processing module 45 after determining that the data corresponding to the current receiving sequence number is erroneous data.
  • the first error data processing module 45 can be implemented by a processor (CPU), and is further configured to modify the receiving window according to the received window variable sent by the sending end, and discard the error data;
  • the first erroneous data processing module 45 is configured to compare the maximum receiving sequence number Vrh of the receiving end, that is, the right edge of the receiving end window, and the maximum sending sequence number Vts of the transmitting end, and select two of the maximum receiving sequence number Vrh and the maximum sending sequence number Vts.
  • the window formed by the variable is the window that needs to be corrected.
  • the data in the window is the wrong data, and the error data in the window is discarded.
  • the apparatus further includes: the status packet feedback module 46 can be implemented by a main chip having a communication function, configured to feed back the status packet to the transmitting end.
  • the device further includes: a second determining module 51 and a second modulo processing module 52; wherein
  • the second judging module 51 is implemented by the comparator, configured to receive the status packet sent by the receiving end, and determine that the confirmed sequence number in the received status packet is not within the window range of the sending end, and send the confirmation sequence number to the second modulo processing module. 52;
  • the second determining module 51 is configured to compare the acknowledgement number ACK_SN with the maximum transmission sequence number Vts of the transmitting end and the maximum transmission number Vta of the continuous acknowledgement, and if the acknowledgement sequence number ACK_SN is at the maximum transmission sequence number Vts and the maximum transmission sequence number of the continuous acknowledgement Between Vta, the confirmation sequence number ACK_SN is within the sender window, otherwise, the confirmation sequence number ACK_SN is not within the sender window.
  • the second judging module 51 is further configured to compare the difference between the modulo processing modulo sequence sent by the second modulo processing module 52 and the continuously confirmed maximum transmission sequence number with the second threshold value,
  • Y2 the maximum HARQ weight
  • the maximum HARQ retransmission time the number of retransmissions * each retransmission time, wherein the number of retransmissions, each retransmission The time is obtained according to the preset configuration;
  • the difference Q2 after the modulo processing is confirmed to be greater than or equal to the second threshold Y2
  • the feedback window variable is sent to the receiving end; here, the feedback The window variable is the maximum transmission sequence number Vta and the maximum transmission sequence number Vts that are continuously confirmed.
  • the second determining module 51 is configured to determine, when the difference Q2 after the modulo is greater than or equal to the second threshold Y2, that the acknowledgement sequence ACK_SN is generated by the receiving end processing error data, and construct the control data type. (CPT) control information;
  • the serial number Vta and the maximum transmission sequence number Vts are sent to the receiving end, and the carried Vta and Vts are fed back to the receiving end.
  • the second modulo processing module 52 can be implemented by the CPU, configured to perform modulo processing on the acknowledgment serial number sent by the second judging module 51 and the maximum sequel to the continuous acknowledgment, respectively.
  • the difference between the processed confirmation number and the continuously confirmed maximum transmission sequence number is sent to the second determination module 51;
  • the second modulo processing module 52 is configured to perform modulo processing on the acknowledgment serial number ACK_SN and the continuously confirmed maximum transmission sequence number Vta, respectively, including:
  • MOD_Vta is the modulus data of the maximum transmission sequence continuously confirmed
  • MOD_ACK_SN is the modulus data of the acknowledgment number
  • Vta is the maximum transmission sequence number of consecutive acknowledgments
  • ACK_SN is the acknowledgment sequence number
  • the first recording module 41, the first modulo processing module 42, the first threshold determining module 43, the first determining module 44, the first erroneous data processing module 45, and the status packet feedback module 46 may be disposed in a network serving as a receiving end.
  • the second recording module 51 and the second modulo processing module 52 may be disposed at a network node serving as a transmitting end. When the network node serves as both a receiving end and a transmitting end, the first recording module 41 and the first The modulo processing module 42, the first threshold determining module 43, the first determining module 44, the first erroneous data processing module 45, the state packet feedback module 46, the second judging module 51, and the second modulo processing module 52 can be simultaneously set.
  • the present invention performs modulo processing on the current receiving sequence number and the maximum receiving sequence number respectively by the receiving end, and performs a first threshold estimation on the current receiving sequence number and the maximum receiving sequence number, and the current receiving sequence number and maximum after the modulo processing.
  • the difference of the received sequence number is compared with the first threshold, After determining that the difference after the modulo processing is greater than the first threshold, determining that the data corresponding to the current receiving sequence number is erroneous data; thus, the erroneous data can be detected as soon as possible, so that the data can be correctly sent and received in time; and the data is improved at the same time. Transmission accuracy rate.
  • the receiving end compares the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing is compared with the first threshold, and when the difference after determining the modulo processing is greater than the first threshold,
  • the data corresponding to the current receiving serial number is determined to be erroneous data, and the erroneous data can be detected as soon as possible so as to be corrected in time, so that the data can be sent and received normally, and the data transmission correct rate is improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Communication Control (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed is a method for detecting faulty data in a radio link control layer, comprising: respectively performing, by a receiving end, modulus processing on a current receiving serial number and a maximum receiving serial number; also performing a first threshold value estimation on the current receiving serial number and the maximum receiving serial number; comparing a difference value of the current receiving serial number and the maximum receiving serial number after modulus processing with a first threshold value; and when determining that the difference value after the modulus processing is greater than the first threshold value, determining data corresponding to the current receiving serial number as faulty data. Also disclosed is an apparatus for detecting faulty data in a radio link control layer.

Description

一种无线链路控制层错误数据检测方法及装置Radio link control layer error data detecting method and device 技术领域Technical field
本发明涉及数据检测技术,尤其涉及一种无线链路控制层错误数据检测方法及装置。The present invention relates to data detection technology, and in particular, to a wireless link control layer error data detection method and apparatus.
背景技术Background technique
随着长期演进(LTE,Long Term Evolution)制式下数据流量的不断提升,数据构建并发送的效率也就不断有更高的要求,该过程中就可能出现来不及构建和发送等异常,这样就产生了发送错误数据的可能性。With the continuous improvement of data traffic under the Long Term Evolution (LTE) system, the efficiency of data construction and transmission is constantly higher. In the process, exceptions such as build and send may occur. The possibility of sending erroneous data.
目前数据传输主要集中在媒体接入控制层(MAC)、分组数据聚合层(PDCP)和无线链路控制层(RLC)这三层来完成,其中,无线链路控制层RLC,通过数据编号和窗口机制保证数据合法有序的传输,正常传输下,发送端和接收端的窗口及数据编号(SN)是同步的。At present, data transmission is mainly implemented in three layers: a medium access control layer (MAC), a packet data aggregation layer (PDCP), and a radio link control layer (RLC), wherein a radio link control layer RLC passes data number and The window mechanism ensures the legal and orderly transmission of data. Under normal transmission, the window and data number (SN) of the sender and receiver are synchronized.
然而,错误数据的传输总是难以避免的,一旦有错误数据产生,现有RLC协议上针对该种错误没有有效的检测和处理方案,只能等待错误累计以期望最终触发重建数据链接,因此,收发双方会长时间维持一种失效的数据连接,直到整个数据连接无法维持,满足双方异常释放的条件时才终止链接,这样长时间的失效链接,大大降低了LTE制式下数据业务传输效率及可靠性。However, the transmission of erroneous data is always difficult to avoid. Once there is erroneous data generated, there is no effective detection and processing scheme for the error on the existing RLC protocol, and only the error accumulation can be waited for the final trigger to reconstruct the data link. Therefore, The transmitting and receiving parties will maintain a failed data connection for a long time until the entire data connection cannot be maintained, and the link is terminated when the conditions for abnormal release are satisfied. This long-term invalid link greatly reduces the efficiency and reliability of data service transmission under the LTE standard. Sex.
发明内容Summary of the invention
为解决现有存在的技术问题,本发明实施例主要提供一种无线链路控制层错误数据检测方法及装置。In order to solve the existing technical problems, the embodiments of the present invention mainly provide a radio link control layer error data detecting method and apparatus.
本发明实施例的技术方案是这样实现的: The technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提出一种无线链路控制层错误数据检测方法,该方法包括:接收端对当前接收序号和最大接收序号分别进行取模处理,并对当前接收序号和最大接收序号进行第一阈值估算,将取模处理后的当前接收序号和最大接收序号的差值与第一阈值进行比较,在确定取模处理后的所述差值大于第一阈值时,确定当前接收序号对应的数据为错误数据。An embodiment of the present invention provides a method for detecting an error data of a radio link control layer, where the method includes: performing a modulo processing on a current receiving sequence number and a maximum receiving sequence number, and performing a first threshold on a current receiving sequence number and a maximum receiving sequence number. Estimating, comparing the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing is compared with the first threshold, and determining that the data corresponding to the current receiving sequence number is determined when the difference after determining the modulo processing is greater than the first threshold Wrong data.
本发明实施例提出一种无线链路控制层错误数据检测装置,该装置包括:第一取模处理模块、第一阈值确定模块和第一判断模块;An embodiment of the present invention provides a radio link control layer error data detecting apparatus, where the apparatus includes: a first modulo processing module, a first threshold determining module, and a first judging module;
第一取模处理模块,配置为对当前接收序号和最大接收序号分别进行取模处理,并将取模处理后的当前接收序号和最大接收序号的差值发送给第一判断模块;The first modulo processing module is configured to perform modulo processing on the current receiving sequence number and the maximum receiving sequence number respectively, and send the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing to the first determining module;
第一阈值确定模块,配置为对当前接收序号和最大接收序号进行第一阈值估算,并将估算的第一阈值发送给第一判断模块;The first threshold determining module is configured to perform a first threshold estimation on the current receiving sequence number and the maximum receiving sequence number, and send the estimated first threshold value to the first determining module;
第一判断模块,配置为将收到第一取模处理模块发送的取模处理后的当前接收序号和最大接收序号的差值与收到第一阈值确定模块发送的第一阈值进行比较,在确定取模处理后的所述差值大于第一阈值时,确定当前接收序号对应的数据为错误数据。The first judging module is configured to compare the difference between the current receiving sequence number and the maximum receiving sequence number received by the first modulo processing module and the first threshold value sent by the first threshold determining module, where When it is determined that the difference after the modulo processing is greater than the first threshold, determining that the data corresponding to the current receiving sequence number is erroneous data.
本发明实施例提供了一种无线链路控制层错误数据检测方法及装置,接收端对当前接收序号和最大接收序号分别进行取模处理,并对当前接收序号和最大接收序号进行第一阈值估算,将取模处理后的当前接收序号和最大接收序号的差值与第一阈值进行比较,在确定取模处理后的所述差值大于第一阈值时,确定当前接收序号对应的数据为错误数据;如此,能够尽快检测到错误数据,以便及时修正,使数据能够正常收发;同时提高了数据传输正确率。The embodiment of the invention provides a wireless link control layer error data detecting method and device, and the receiving end performs modulo processing on the current receiving sequence number and the maximum receiving sequence number respectively, and performs a first threshold estimation on the current receiving sequence number and the maximum receiving sequence number. And comparing the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing is compared with the first threshold, and determining that the data corresponding to the current receiving sequence number is an error when determining that the difference value after the modulo processing is greater than the first threshold Data; in this way, erroneous data can be detected as soon as possible so that it can be corrected in time to enable the data to be sent and received normally; and the data transmission accuracy rate is improved.
附图说明DRAWINGS
图1为本发明实现RLC层错误数据检测方法的流程示意图; 1 is a schematic flowchart of a method for detecting an error data of an RLC layer according to the present invention;
图2为本发明实现RLC层接收端错误数据检测方法的流程示意图;2 is a schematic flowchart of a method for detecting an error data of a receiving end of an RLC layer according to the present invention;
图3为本发明实现RLC层发送端错误数据检测方法的流程示意图;3 is a schematic flowchart of a method for detecting an error data of a transmitting end of an RLC layer according to the present invention;
图4为本发明实现一种RLC层错误数据检测装置的结构示意图;4 is a schematic structural diagram of an apparatus for detecting an error of an RLC layer according to the present invention;
图5为本发明实现另一种RLC层错误数据检测装置的结构示意图。FIG. 5 is a schematic structural diagram of another RLC layer error data detecting apparatus according to the present invention.
具体实施方式detailed description
本发明实施例中,接收端对当前接收序号和最大接收序号分别进行取模处理,并对当前接收序号和最大接收序号进行第一阈值估算,将取模处理后的当前接收序号和最大接收序号的差值与第一阈值进行比较,在确定取模处理后的所述差值大于第一阈值时,确定当前接收序号对应的数据为错误数据。In the embodiment of the present invention, the receiving end performs modulo processing on the current receiving sequence number and the maximum receiving sequence number respectively, and performs a first threshold estimation on the current receiving sequence number and the maximum receiving sequence number, and the current receiving sequence number and the maximum receiving sequence number after the modulo processing is performed. The difference is compared with the first threshold. When the difference after determining the modulo processing is greater than the first threshold, determining that the data corresponding to the current receiving sequence number is erroneous data.
RLC协议中,确认(AM)模式下,通过混合自动重传请求(Hybrid Automatic Repeat Request,HARQ)机制保证数据完整传输,HARQ机制要求用户设备(UE)和网络侧分别给对方反馈状态报告,以要求对方重发未完整接收的数据,通过反馈不断修正,能够使收发双方数据同步;然而,非确认(UM)模式下,并没有HARQ机制,只能依靠数据正确传输,来保证收发双方数据同步。错误数据不是发送端实际要发送的数据,可能是旧数据,或者不完整的数据。一旦错误数据被接收端当作正常数据处理时,接收端维护的窗口就会异常滑动,从而导致和发送端不同步,这样接收端后续会将原本正确的数据进行特别处理,严重时甚至会丢弃;在AM模式下,接收端会反馈一个异常的状态包,该状态包不能被发送端正常处理,因此,ARQ机制将完全失去作用,数据链接不能进行有效的数据通信。In the RLC protocol, in the acknowledgment (AM) mode, the hybrid automatic repeat request (HARQ) mechanism is used to ensure complete data transmission. The HARQ mechanism requires the user equipment (UE) and the network side to respectively report the status report to the other party. Require the other party to resend the data that has not been completely received, and continuously correct the feedback to synchronize the data between the sender and the receiver. However, in the non-acknowledgment (UM) mode, there is no HARQ mechanism, and only the data can be correctly transmitted to ensure the data synchronization between the sender and the receiver. . The error data is not the actual data to be sent by the sender, it may be old data, or incomplete data. Once the error data is processed by the receiving end as normal data, the window maintained by the receiving end will slide abnormally, resulting in non-synchronization with the sending end, so that the receiving end will temporarily process the original correct data, and even discard it when it is serious. In the AM mode, the receiving end will feed back an abnormal status packet, which cannot be processed normally by the transmitting end. Therefore, the ARQ mechanism will completely lose its effect, and the data link cannot perform effective data communication.
本发明实施例主要基于RLC协议数据编码和窗口机制下,在错误数据发生时,能够快速检测错误,及时纠错,保证数据正确、有序、完整地传输。The embodiment of the invention is mainly based on the data coding and window mechanism of the RLC protocol, and can quickly detect errors, timely correct errors, and ensure correct, orderly and complete transmission of data when error data occurs.
下面通过附图及具体实施例对本发明做进一步的详细说明。 The invention will be further described in detail below with reference to the drawings and specific embodiments.
本发明实施例实现一种RLC层错误数据检测方法的流程,如图1所示,该方法主要包括以下步骤:The embodiment of the invention implements a flow of the RLC layer error data detecting method. As shown in FIG. 1 , the method mainly includes the following steps:
步骤101:接收端对当前接收序号和最大接收序号分别进行取模处理;Step 101: The receiving end performs modulo processing on the current receiving sequence number and the maximum receiving sequence number respectively.
具体的,接收端对窗口数据按序号进行编号,并记录接收序号,由于RLC窗口是循环的,因此将当前接收序号和已记录的最大接收序号分别进行取模处理后才能进行后续数值比较;Specifically, the receiving end numbers the window data by the serial number, and records the receiving serial number. Since the RLC window is cyclic, the current receiving serial number and the recorded maximum receiving serial number are respectively subjected to modulo processing before the subsequent numerical comparison can be performed;
这里,需要说明的是,接收端对窗口数据按序号进行编号,并记录接收序号及对应数据,此处的编码方式、记录方式在RLC协议中已有规定,在这里就不再赘述。Here, it should be noted that the receiving end numbers the window data by the serial number, and records the receiving serial number and the corresponding data. The encoding mode and the recording mode here are already defined in the RLC protocol, and are not described herein again.
步骤102:接收端对当前接收序号和最大接收序号进行第一阈值估算;Step 102: The receiving end performs a first threshold estimation on the current receiving sequence number and the maximum receiving sequence number.
具体的,找出已记录的最大接收序号对应数据的子帧号;接收当前接收序号SN=x,并记录x对应数据的子帧号;然后根据当前接收序号x对应数据的子帧号、最大接收序号对应数据的子帧号进行第一阈值估算。Specifically, the subframe number of the data corresponding to the largest received sequence number is found; the current receiving sequence number SN=x is received, and the subframe number of the data corresponding to x is recorded; and then the subframe number and the maximum of the data corresponding to the current receiving sequence number x are received. The first frame value estimation is performed by receiving the subframe number of the serial number corresponding data.
步骤103:接收端将取模处理后的当前接收序号和最大接收序号的差值与第一阈值进行比较;Step 103: The receiving end compares the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing is compared with the first threshold.
这里,取模处理后的值与第一阈值是同底,所以,可以进行大小比较。Here, the value after the modulo processing is the same as the first threshold, so that the size comparison can be performed.
步骤104:在确定取模处理后的所述差值大于第一阈值时,确定当前接收序号对应的数据为错误数据;Step 104: When it is determined that the difference after the modulo processing is greater than the first threshold, determine that the data corresponding to the current receiving sequence number is erroneous data;
具体的,确定当前接收序号SN=x对应的数据是错误数据后,启动纠正机制,丢弃该错误数据,并且不更新接收端的窗口变量,以保持和发送窗口同步。Specifically, after determining that the data corresponding to the current receiving sequence number SN=x is error data, the correcting mechanism is started, the error data is discarded, and the window variable of the receiving end is not updated to keep the window synchronized with the sending window.
由于存在UM模式和AM模式,所以,本发明错误数据检测方式分为:接收端检测和发送端检测,其中,UM模式下,仅有接收端检测;AM模式下,除接收端检测外,还增加发送端检测;两种检测方式下,错误数据的纠正均在接收端进行。 Because of the UM mode and the AM mode, the erroneous data detection mode of the present invention is divided into: receiving end detection and transmitting end detection, wherein in the UM mode, only the receiving end detects; in the AM mode, in addition to the receiving end detecting, Increase the sender detection; in both detection modes, the correction of the error data is performed at the receiving end.
其中,实现RLC层接收端错误数据检测方法的流程,如图2所示,该方法主要包括以下步骤:The process of implementing the RLC layer receiving end error data detecting method is as shown in FIG. 2, and the method mainly includes the following steps:
步骤201:接收端记录最大接收序号,并记录最大接收序号对应数据的子帧号;Step 201: The receiving end records the maximum receiving sequence number, and records the subframe number of the data corresponding to the maximum receiving sequence number;
具体的,记录最大接收序号为Vrh,并记录最大接收序号Vrh对应数据的子帧号为sf1;Specifically, the maximum receiving sequence number is Vrh, and the subframe number of the data corresponding to the maximum receiving sequence number Vrh is recorded as sf1;
这里,由于接收端对窗口数据进行了编号,并记录接收序号SN,因此,接收序号分别和窗口数据是一一对应。Here, since the receiving end numbers the window data and records the receiving serial number SN, the receiving serial numbers are in one-to-one correspondence with the window data.
步骤202:接收端记录当前接收序号,并记录当前接收序号对应数据的子帧号;Step 202: The receiving end records the current receiving sequence number, and records the subframe number of the current receiving sequence corresponding data.
具体的,记录当前接收序号为SN=x,并记录当前接收序号x对应数据的子帧号为sf2。Specifically, the current receiving sequence number is SN=x, and the subframe number of the data corresponding to the current receiving sequence number x is recorded as sf2.
步骤203:判断当前接收序号是否在接收端窗口之内;如果是,则进入步骤204,否则,进入步骤208;Step 203: Determine whether the current receiving serial number is within the receiving end window; if yes, proceed to step 204, otherwise, proceed to step 208;
这里,接收端判断当前接收序号是否在接收端窗口之内,通过将当前接收序号SN=x与最大接收序号Vrh和接收端最小确认序号Vrr进行比较,若当前接收序号SN=x在最大接收序号Vrh和接收端最小确认序号Vrr之间,则当前接收序号SN=x在接收端窗口之内;否则,当前接收序号SN=x不在接收端窗口之内。Here, the receiving end determines whether the current receiving sequence number is within the receiving end window, and compares the current receiving sequence number SN=x with the maximum receiving sequence number Vrh and the receiving terminal minimum acknowledgement sequence number Vrr, if the current receiving sequence number SN=x is at the maximum receiving sequence number. Between Vrh and the minimum acknowledgement sequence number Vrr of the receiving end, the current receiving sequence number SN=x is within the receiving end window; otherwise, the current receiving sequence number SN=x is not within the receiving end window.
步骤204:接收端对当前接收序号和最大接收序号分别进行取模处理;Step 204: The receiving end performs modulo processing on the current receiving sequence number and the maximum receiving sequence number respectively.
具体的,接收端对当前接收序号SN=x和最大接收序号Vrh分别进行取模处理,具体取模为:Specifically, the receiving end performs modulo processing on the current receiving sequence number SN=x and the maximum receiving sequence number Vrh respectively, and the specific mode is:
MOD_x=(x+Modulus–Base)%Modulus;MOD_x=(x+Modulus–Base)%Modulus;
MOD_Vrh=(Vrh+Modulus–Base)%Modulus;MOD_Vrh=(Vrh+Modulus–Base)%Modulus;
UM模式:Base=(Vrh+Modulus-Win)%Modulus; UM mode: Base=(Vrh+Modulus-Win)%Modulus;
AM模式:Base=Vrr;AM mode: Base=Vrr;
其中,其中,MOD_x为当前接收序号的模数据,MOD_Vrh为最大接收序号的模数据,x为当前接收序号,Vrh为最大接收序号,Vrr为接收端最小确认序号,Win为窗口大小,Modulus为窗口大小的2倍。Among them, MOD_x is the modulus data of the current receiving serial number, MOD_Vrh is the modulus data of the maximum receiving serial number, x is the current receiving serial number, Vrh is the maximum receiving serial number, Vrr is the minimum acknowledged serial number of the receiving end, Win is the window size, and Modulus is the window. 2 times the size.
步骤205:接收端对当前接收序号和最大接收序号进行第一阈值估算;Step 205: The receiving end performs a first threshold estimation on the current receiving sequence number and the maximum receiving sequence number.
具体的,接收端接收当前接收序号SN=x,并记录x对应数据的子帧号sf2;找出已记录的最大接收序号Vrh对应数据的子帧号sf1;然后根据sf1、sf2进行第一阈值估算,Specifically, the receiving end receives the current receiving sequence number SN=x, and records the subframe number sf2 of the x corresponding data; finds the subframe number sf1 of the data corresponding to the recorded maximum receiving sequence number Vrh; and then performs the first threshold according to sf1 and sf2. Estimate,
这里,设第一阈值为Y1,则Y1=(sf2-sf1)*TB*模式系数,其中,TB为数据传输块个数,模式系数为上行子帧数或下行子帧数与子帧总数的比值;Here, if the first threshold is Y1, then Y1=(sf2-sf1)*TB* mode coefficient, where TB is the number of data transmission blocks, and the mode coefficient is the number of uplink subframes or the number of downlink subframes and the total number of subframes. ratio;
这里,模式系数在时分复用(TDD)制式下和频分复用(FDD)制式下不同,在TDD制式下,不同的子帧配比决定用于上行和下行的子帧个数,例如,配比一为1:7时,则确定上行子帧数4个,下行子帧数是6个;配比二为2:7时,则确定上行子帧数是2个,下行子帧数是8个;模式系数是上行子帧数或下行子帧数与子帧总数的比值,上述配比一、配比二子帧总数都是10(1个帧包含10个子帧),如果是上行,则模式系数为4/10或2/10,如果是下行,则模式系数是6/10或8/10;Here, the mode coefficients are different in the time division multiplexing (TDD) system and the frequency division multiplexing (FDD) system. In the TDD system, different subframe ratios determine the number of subframes used for uplink and downlink, for example, When the ratio 1 is 1:7, the number of uplink subframes is determined to be 4, and the number of downlink subframes is 6. When the ratio 2 is 2:7, the number of uplink subframes is determined to be 2, and the number of downlink subframes is 8; the mode coefficient is the ratio of the number of uplink subframes or the number of downlink subframes to the total number of subframes. The ratio of the first ratio to the ratio of the two subframes is 10 (1 frame contains 10 subframes), and if it is uplink, The mode factor is 4/10 or 2/10, and if it is down, the mode factor is 6/10 or 8/10;
而在FDD制式下,子帧总数是10,上行子帧数是10,下行子帧数也是10,则上行或下行时,模式系数都是10/10=1,因此,在FDD制式下,模式系数为1;In the FDD system, the total number of subframes is 10, the number of uplink subframes is 10, and the number of downlink subframes is also 10. If the uplink or downlink is used, the mode coefficients are all 10/10=1. Therefore, in the FDD system, the mode is The coefficient is 1;
从以上推理可以看出,以上TDD、FDD两种制式下,模式系数最大值为1。It can be seen from the above reasoning that under the above two modes of TDD and FDD, the maximum mode coefficient is 1.
步骤206:接收端判断取模处理后的当前接收序号和最大接收序号的差值是否大于第一阈值,如果是,进入步骤207,否则,进入步骤208; Step 206: The receiving end determines whether the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing is greater than the first threshold, and if yes, proceeds to step 207, otherwise, proceeds to step 208;
这里,设取模处理后的当前接收序号和最大接收序号的差值为Q1,Here, the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing is set is Q1.
Q1=(MOD_x+Modulus-MOD_Vrh)%Modulus,将所述差值Q1与上述第一阈值Y1进行大小比较。Q1=(MOD_x+Modulus-MOD_Vrh)%Modulus, the difference Q1 is compared with the first threshold Y1 described above.
步骤207:确定当前接收序号对应的数据是错误数据,进行纠错处理;Step 207: Determine that the data corresponding to the current receiving sequence number is error data, and perform error correction processing.
这里,接收端确定取模处理后的所述差值大于第一阈值时,确定当前接收序号对应的数据是错误数据,进行纠正处理,即将当前接收序号对应的数据丢弃,并且不更新接收端的窗口变量。Here, when the receiving end determines that the difference value after the modulo processing is greater than the first threshold, determining that the data corresponding to the current receiving sequence number is erroneous data, performing correction processing, that is, discarding data corresponding to the current receiving sequence number, and not updating the window of the receiving end variable.
步骤208:确定当前接收序号对应的数据是合法数据,进行正常处理;Step 208: Determine that the data corresponding to the current receiving sequence number is legal data, and perform normal processing.
这里,接收端在确定取模处理后的所述差值小于或等于第一阈值时,确定当前接收序号SN=x对应的数据是合法数据,对当前接收序号对应的数据正常处理。Here, when the receiving end determines that the difference after the modulo processing is less than or equal to the first threshold, it is determined that the data corresponding to the current receiving sequence number SN=x is legal data, and the data corresponding to the current receiving sequence number is normally processed.
需要说明的是,接收端未能完全检测到错误数据时,会向发送端反馈一个状态包以启动发送端检测,发送端根据接收端反馈的状态包进一步检测错误数据,具体实现RLC层发送端错误数据检测方法的流程,如图3所示,该方法主要包括以下步骤:It should be noted that when the receiving end fails to completely detect the erroneous data, it will feed back a status packet to the transmitting end to start the transmitting end detection, and the transmitting end further detects the erroneous data according to the status packet fed back by the receiving end, and specifically implements the RLC layer transmitting end. The flow of the error data detection method is shown in FIG. 3, and the method mainly includes the following steps:
步骤301:发送端接收接收端反馈的状态包;Step 301: The transmitting end receives the status packet fed back by the receiving end.
这里,状态包携带了接收端的窗口信息,接收端的窗口信息包括:接收到序号ACK_SN(下文称为确认序号),未接收到序号NACK_SN,以及未接收到序号对应的数据的分段信息,这些窗口信息在RLC协议中已有规定,简单来说,接收端反馈发送端哪些接收序号SN已收到,哪些接收序号SN没有收到,ACK_SN可为接收端接收的接收序号的上限,发送端收到状态包后,从ACK_SN往前查,将接收端收到的接收序号SN释放掉,没有接收到的进行重发;当然ACK_SN可包含在接收窗内,具体对ACK_SN的设置在RLC的协议中有规定。Here, the status packet carries the window information of the receiving end, and the window information of the receiving end includes: receiving the sequence number ACK_SN (hereinafter referred to as the acknowledgement sequence number), not receiving the sequence number NACK_SN, and not receiving the segmentation information of the data corresponding to the sequence number, these windows The information has been specified in the RLC protocol. In brief, the receiving end feeds back to the transmitting end which receiving sequence number SN has been received, and which receiving sequence number SN has not received, and the ACK_SN can be the upper limit of the receiving sequence number received by the receiving end, and the transmitting end receives After the status packet, the ACK_SN is forwarded, and the receiving sequence number SN received by the receiving end is released, and no retransmission is received; of course, the ACK_SN may be included in the receiving window, and the setting of the ACK_SN is in the RLC protocol. Provisions.
步骤302:判断接收的状态包的确认序号是否在发送端的窗口之内,如 果不是,则进入步骤303;如果是,则进入步骤307;Step 302: Determine whether the confirmed sequence number of the received status packet is within the window of the sending end, such as If not, proceed to step 303; if yes, proceed to step 307;
具体的,发送端判断状态包的确认序号ACK_SN是否在发送端的窗口之内,将确认序号ACK_SN与发送端的最大发送序号Vts和连续确认的最大发送序号Vta进行比较,若确认序号ACK_SN在最大发送序号Vts和连续确认的最大发送序号Vta之间,确认序号ACK_SN在发送端窗口之内,否则,确认序号ACK_SN不在发送端窗口之内;Specifically, the sender determines whether the acknowledgement number ACK_SN of the status packet is within the window of the sender, and compares the acknowledgement number ACK_SN with the maximum transmission sequence number Vts of the sender and the maximum transmission sequence number Vta of the continuous acknowledgement, if the acknowledge sequence number ACK_SN is at the maximum transmission sequence number. Between Vts and the continuously transmitted maximum transmission sequence number Vta, the confirmation sequence number ACK_SN is within the sender window; otherwise, the confirmation sequence number ACK_SN is not within the sender window;
需要说明的是,发送端同样对窗口数据进行编号设置,设置的编号分别与发送端窗口数据一一对应。It should be noted that the sending end also numbers the window data, and the set numbers correspond to the data of the sending end window one by one.
步骤303:发送端对确认序号和连续确认的最大发送序号分别进行取模处理;Step 303: The transmitting end performs a modulo processing on the confirmation serial number and the maximum transmission serial number continuously confirmed.
具体的,发送端对确认序号和连续确认的最大发送序号分别进行取模处理,包括:MOD_Vta=(Vta+1024-Base)%1024;Specifically, the sending end performs a modulo processing on the acknowledgment serial number and the maximum acknowledgment maximum transmission sequence, respectively, including: MOD_Vta=(Vta+1024-Base)%1024;
MOD_ACK_SN=(ACK_SN+1024-Base)%1024;MOD_ACK_SN=(ACK_SN+1024-Base)%1024;
AM:Base=Vta;AM:Base=Vta;
其中,MOD_Vta为连续确认的最大发送序号的模数据,MOD_ACK_SN为确认序号的模数据,Vta为连续确认的最大发送序号,ACK_SN为确认序号;Where MOD_Vta is the modulo data of the maximum transmission sequence number continuously confirmed, MOD_ACK_SN is the modulo data of the acknowledgment number, Vta is the maximum transmission sequence number of consecutive acknowledgments, and ACK_SN is the acknowledgment sequence number;
这里,RLC协议规定了:Vts是发送端最大发送序号,表示下一个将要发送的序号;Vta是连续确认的最大发送序号,表示被接收端确认,且被接收端连续确认的最大发送序号的下一个序号。例如,发送端发送序号为1、2、3、4,接收端收到的序号为1、2、4,则连续接收的序号为1、2,连续接收的序号中最大序号为2,待接收的序号为3,连续确认的最大序号的下一个序号为3,则连续确认的最大发送序号Vta=3,这个例子中,下一个将要发送的序号是5,则最大发送序号Vts=5,因此,Vta包含在Vts之内。Here, the RLC protocol specifies that: Vts is the maximum transmission sequence number of the sender, indicating the next sequence number to be transmitted; Vta is the maximum transmission sequence number for continuous acknowledgement, indicating that the receiver is acknowledged by the receiver and is continuously acknowledged by the receiver. A serial number. For example, if the sending end sends the sequence number to 1, 2, 3, and 4, and the receiving end receives the sequence number 1, 2, and 4, the serial number received continuously is 1, 2, and the serial number of consecutive serial numbers is 2, which is to be received. The serial number is 3, and the next serial number of the largest serial number that is continuously confirmed is 3, and the maximum transmission serial number Vta=3 is continuously confirmed. In this example, the next serial number to be transmitted is 5, and the maximum transmission serial number Vts=5. Vta is included in Vts.
步骤304:发送端判断取模后的确认序号和连续确认的最大发送序号的 差值是否小于第二阈值,如果否,进入步骤305,如果是,进入步骤307;Step 304: The sender judges the acknowledgment number after modulo and the maximum transmission sequence number that is continuously confirmed. Whether the difference is less than the second threshold, if not, proceeds to step 305, and if yes, proceeds to step 307;
这里,设取模处理后的确认序号和连续确认的最大发送序号的差值为Q2,Here, the difference between the acknowledgment number after the modulo processing and the maximum transmission number that is continuously confirmed is Q2.
Q2=(MOD_Vta+1024-MOD_ACK_SN)%1024,将Q2与第二阈值Y2进行大小比较,其中,第二阈值Y2=最大HARQ重传时间与状态包发送间隔时间的比值,其中,状态包发送间隔时间根据预设配置得到,最大HARQ重传时间=重传次数*每次重传时间,其中,重传次数、每次重传时间根据预设配置得到。Q2=(MOD_Vta+1024-MOD_ACK_SN)%1024, comparing Q2 with a second threshold Y2, wherein the second threshold Y2=the ratio of the maximum HARQ retransmission time to the status packet transmission interval time, wherein the status packet transmission interval The time is obtained according to the preset configuration. The maximum HARQ retransmission time=retransmission times* each retransmission time, wherein the number of retransmissions and each retransmission time are obtained according to a preset configuration.
步骤305:确定确认序号对应的数据是接收端处理错误数据产生的,反馈窗口变量给接收端;Step 305: determining that the data corresponding to the confirmation serial number is generated by the receiving end processing the error data, and feeding back the window variable to the receiving end;
具体的,发送端确定取模后的所述差值大于或等于第二阈值时,可以确定当前接收的确认序号ACK_SN对应的数据是接收端处理错误数据产生的,反馈窗口变量给接收端,窗口变量为:连续确认的最大发送序号Vta和最大发送序号Vts;Specifically, when the sending end determines that the difference after the modulo is greater than or equal to the second threshold, it may be determined that the data corresponding to the currently received acknowledgement sequence ACK_SN is generated by the receiving end processing error data, and the feedback window variable is sent to the receiving end, the window. The variables are: the maximum transmission sequence number Vta and the maximum transmission sequence number Vts that are continuously confirmed;
这里,需要构建控制数据类型(CPT)的控制信息,目前RLC协议的CPT控制信息只有一种格式,即CPT=0的状态包,因此,本发明可以扩充该CPT控制信息,增加一个CPT=1的控制信息,该控制信息携带连续确认的最大发送序号Vta和最大发送序号Vts给接收端。Here, the control information of the control data type (CPT) needs to be constructed. Currently, the CPT control information of the RLC protocol has only one format, that is, the state packet of CPT=0. Therefore, the present invention can expand the CPT control information and add a CPT=1. The control information carries the continuously transmitted maximum transmission sequence number Vta and the maximum transmission sequence number Vts to the receiving end.
步骤306:接收端根据接收到的窗口变量,进行纠错处理;Step 306: The receiving end performs error correction processing according to the received window variable.
具体的,接收端接收发送端反馈的窗口变量后,根据接收到的窗口变量,修正接收窗口,丢弃错误数据;Specifically, after receiving the window variable fed back by the sending end, the receiving end corrects the receiving window according to the received window variable, and discards the error data;
这里,接收端将自身的最大接收序号Vrh,即接收端窗口右边界,和发送端的最大发送序号Vts进行比较,选择最大接收序号Vrh和最大发送序号Vts两个变量里较小的一个;同理接收端将接收端最小确认序号Vrr,即接收端窗口左边界,和连续确认的最大发送序号Vta进行比较,选择两者里 较大的,两次选择得到的两个变量构成的窗口就是需要修正的窗口,该窗口内的数据就是错误数据,丢弃该窗口内的错误数据。Here, the receiving end compares its own maximum receiving sequence number Vrh, that is, the right edge of the receiving end window, and the maximum transmitting sequence number Vts of the transmitting end, and selects the smaller one of the maximum receiving sequence number Vrh and the maximum transmitting sequence number Vts; The receiving end compares the receiving end minimum confirmation sequence number Vrr, that is, the left edge of the receiving end window, and compares the continuously confirmed maximum transmission sequence number Vta, and selects both. The larger, two-choice two-window window is the window that needs to be corrected. The data in the window is the wrong data, and the error data in the window is discarded.
步骤307:确定确认序号对应的数据是HARQ重传产生的,则丢弃状态包;Step 307: Determine that the data corresponding to the acknowledgement sequence number is generated by the HARQ retransmission, and discard the state packet.
这里,在确定取模处理后的所述差值大于第二阈值时,可以确定确认序号ACK_SN对应的数据是HARQ重传产生的,则丢弃接收到的状态包,本轮处理结束。Here, when it is determined that the difference after the modulo processing is greater than the second threshold, it may be determined that the data corresponding to the acknowledgment number ACK_SN is generated by the HARQ retransmission, and the received status packet is discarded, and the current round of processing ends.
为了实现上述方法,本发明实施例还提供一种实现RLC层错误数据检测装置,如图4所示,该装置包括:第一记录模块41、第一取模处理模块42、第一阈值确定模块43、第一判断模块44;其中,In order to implement the above method, the embodiment of the present invention further provides an apparatus for detecting an error of the RLC layer. As shown in FIG. 4, the apparatus includes: a first recording module 41, a first modulo processing module 42, and a first threshold determining module. 43. The first determining module 44; wherein
第一记录模块41可由存储器实现,配置为记录接收端窗口序号,并记录窗口序号对应的数据的子帧号;The first recording module 41 can be implemented by a memory, configured to record the serial number of the receiving end window, and record the subframe number of the data corresponding to the window serial number;
具体的,第一记录模块41,配置为记录最大接收序号Vrh,并记录最大接收序号对应数据的子帧号sf1;还配置为记录当前接收序号SN=x,并记录当前接收序号对应数据的子帧号sf2;Specifically, the first recording module 41 is configured to record the maximum receiving sequence number Vrh, and record the subframe number sf1 of the data corresponding to the maximum receiving sequence number; and further configured to record the current receiving sequence number SN=x, and record the current receiving sequence corresponding data. Frame number sf2;
需要说明的是,由于接收端对窗口数据进行了编号,并记录为接收序号SN,接收序号SN分别和窗口数据一一对应,所以,第一记录模块41记录每个接收序号SN,并记录每个接收序号SN对应的数据的子帧号。It should be noted that, since the receiving end numbers the window data and records the receiving sequence number SN, the receiving sequence number SN is respectively corresponding to the window data, so the first recording module 41 records each receiving sequence number SN, and records each The subframe number of the data corresponding to the sequence number SN is received.
第一取模处理模块42可由处理器(CPU)实现,配置为对当前接收序号和最大接收序号分别进行取模处理,并将取模处理后的当前接收序号和最大接收序号的差值发送给第一判断模块;The first modulo processing module 42 is implemented by a processor (CPU), configured to perform modulo processing on the current receiving sequence number and the maximum receiving sequence number respectively, and send the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing to First determining module;
具体的,第一取模处理模块42,配置为对当前接收序号SN=x和最大接收序号Vrh分别进行取模处理包括:Specifically, the first modulo processing module 42 is configured to perform modulo processing on the current receiving sequence number SN=x and the maximum receiving sequence number Vrh respectively, including:
MOD_x=(x+Modulus–Base)%Modulus;MOD_x=(x+Modulus–Base)%Modulus;
MOD_Vrh=(Vrh+Modulus–Base)%Modulus; MOD_Vrh=(Vrh+Modulus–Base)%Modulus;
UM模式:Base=(Vrh+Modulus-Win)%Modulus;UM mode: Base=(Vrh+Modulus-Win)%Modulus;
AM模式:Base=Vrr;AM mode: Base=Vrr;
其中,MOD_x为当前接收序号的模数据,MOD_Vrh为最大接收序号的模数据,x为当前接收序号,Vrh为最大接收序号,Vrr为接收端最小确认序号Win为窗口大小,Modulus为窗口大小的2倍。MOD_x is the modulo data of the current receiving sequence number, MOD_Vrh is the modulo data of the maximum receiving sequence number, x is the current receiving sequence number, Vrh is the maximum receiving sequence number, Vrr is the minimum acknowledgment number of the receiving end Win is the window size, and Modulus is the window size 2 Times.
第一阈值确定模块43可由处理器(CPU)实现,配置为对当前接收序号和最大接收序号进行第一阈值估算,并将估算的第一阈值发送给第一判断模块44;The first threshold determining module 43 may be implemented by a processor (CPU), configured to perform a first threshold estimation on the current receiving sequence number and the maximum receiving sequence number, and send the estimated first threshold value to the first determining module 44;
具体的,第一阈值确定模块43,配置为接收当前接收序号SN=x,并记录x对应数据的子帧号sf2;找出已记录的最大接收序号Vrh对应数据的子帧号sf1;然后根据sf1、sf2进行第一阈值Y1估算,第一阈值Y1=(sf2-sf1)*TB*模式系数;TB为数据传输块个数;模式系数为上行子帧数或下行子帧数与子帧总数的比值。Specifically, the first threshold determining module 43 is configured to receive the current receiving sequence number SN=x, and record the subframe number sf2 of the x corresponding data; and find the subframe number sf1 of the data corresponding to the recorded maximum receiving sequence number Vrh; Sf1, sf2 perform the first threshold Y1 estimation, the first threshold Y1 = (sf2 - sf1) * TB * mode coefficient; TB is the number of data transmission blocks; the mode coefficient is the number of uplink subframes or the number of downlink subframes and the total number of subframes The ratio.
第一判断模块44可由比较器实现,配置为判断接收序号是否在接收窗口之内,在确认接收序号在接收窗口之内时,将接收序号及接收序号对应的数据的子帧号发送给第一取模处理模块42;The first determining module 44 is implemented by the comparator, configured to determine whether the receiving sequence number is within the receiving window, and send the subframe number of the data corresponding to the receiving sequence number and the receiving sequence number to the first when the receiving sequence number is within the receiving window. The modulo processing module 42;
具体的,第一判断模块44,配置为将当前接收序号SN=x与最大接收序号Vrh和接收端最小确认序号Vrr进行比较,若当前接收序号SN=x在最大接收序号Vrh和接收端最小确认序号Vrr之间,则当前接收序号SN=x在接收端窗口之内,否则,当前接收序号SN=x不在接收端窗口之内;在确定当前接收序号SN=x在接收端窗口时,将接收序号SN=x,及x对应数据的子帧号sf2发送给第一取模处理模块42。Specifically, the first determining module 44 is configured to compare the current receiving sequence number SN=x with the maximum receiving sequence number Vrh and the receiving terminal minimum acknowledgement sequence number Vrr, if the current receiving sequence number SN=x is at the maximum receiving sequence number Vrh and the receiving terminal minimum acknowledgement Between the sequence numbers Vrr, the current receiving sequence number SN=x is within the receiving end window; otherwise, the current receiving sequence number SN=x is not within the receiving end window; when it is determined that the current receiving sequence number SN=x is in the receiving end window, it will receive The sequence number SN=x, and the subframe number sf2 of the x corresponding data are sent to the first modulo processing module 42.
第一判断模块44,还配置为将收到第一取模处理模块42发送的取模处理后的当前接收序号和最大接收序号的差值与收到第一阈值确定模块43发送的第一阈值进行比较,在确定取模处理后的所述差值大于第一阈值时, 确定当前接收序号对应的数据为错误数据;The first judging module 44 is further configured to receive the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing sent by the first modulo processing module 42 and the first threshold value sent by the first threshold determining module 43. Comparing, when it is determined that the difference after the modulo processing is greater than the first threshold, Determining that the data corresponding to the current receiving serial number is error data;
这里,设取模处理后的当前接收序号和最大接收序号的差值为Q1,Here, the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing is set is Q1.
Q1=(MOD_x+Modulus-MOD_Vrh)%Modulus,将所述差值Q1与上述第一阈值Y1进行大小比较,在确定取模处理后的所述差值大于第一阈值时,确定当前接收序号SN=x对应的数据是错误数据。Q1=(MOD_x+Modulus-MOD_Vrh)%Modulus, compares the difference Q1 with the first threshold Y1, and determines the current receiving sequence number SN when the difference after determining the modulo processing is greater than the first threshold. The data corresponding to =x is the wrong data.
该装置还包括:第一错误数据处理模块45,配置为接收第一判断模块44发送的当前接收序号,将所述当前接收序号对应的数据丢弃;The device further includes: a first error data processing module 45, configured to receive the current receiving sequence number sent by the first determining module 44, and discard the data corresponding to the current receiving sequence number;
相应的,所述第一判断模块44,还配置为在确定当前接收序号对应的数据为错误数据后,发送所述当前接收序号给第一错误数据处理模块45。Correspondingly, the first determining module 44 is further configured to send the current receiving sequence number to the first erroneous data processing module 45 after determining that the data corresponding to the current receiving sequence number is erroneous data.
所述第一错误数据处理模块45可由处理器(CPU)实现,还配置为根据接收到的发送端发送的窗口变量修正接收窗口,并丢弃错误数据;The first error data processing module 45 can be implemented by a processor (CPU), and is further configured to modify the receiving window according to the received window variable sent by the sending end, and discard the error data;
具体的,第一错误数据处理模块45,配置为将接收端的最大接收序号Vrh,即接收端窗口右边界,和发送端的最大发送序号Vts进行比较,选择最大接收序号Vrh和最大发送序号Vts两个变量里较小的一个;同理将接收端最小确认序号Vrr,即接收端窗口左边界,和连续确认的最大发送序号Vta进行比较,选择两者里较大的;两次选择得到的两个变量构成的窗口就是需要修正的窗口,所述窗口内的数据就是错误数据,丢弃所述窗口内的错误数据。Specifically, the first erroneous data processing module 45 is configured to compare the maximum receiving sequence number Vrh of the receiving end, that is, the right edge of the receiving end window, and the maximum sending sequence number Vts of the transmitting end, and select two of the maximum receiving sequence number Vrh and the maximum sending sequence number Vts. The smaller one of the variables; the same reason is to receive the minimum acknowledgement sequence number Vrr, that is, the left edge of the receiving end window, and compare it with the continuously confirmed maximum transmission sequence number Vta, select the larger of the two; The window formed by the variable is the window that needs to be corrected. The data in the window is the wrong data, and the error data in the window is discarded.
另外,该装置还包括:状态包反馈模块46可由具有通信功能的主芯片实现,配置为向发送端反馈状态包。In addition, the apparatus further includes: the status packet feedback module 46 can be implemented by a main chip having a communication function, configured to feed back the status packet to the transmitting end.
如图5所述,该装置还包括:第二判断模块51、第二取模处理模块52;其中,As shown in FIG. 5, the device further includes: a second determining module 51 and a second modulo processing module 52; wherein
第二判断模块51可由比较器实现,配置为接收接收端发送的状态包,并确定接收到的状态包中的确认序号不在发送端的窗口范围之内,将确认序号发送给第二取模处理模块52; The second judging module 51 is implemented by the comparator, configured to receive the status packet sent by the receiving end, and determine that the confirmed sequence number in the received status packet is not within the window range of the sending end, and send the confirmation sequence number to the second modulo processing module. 52;
具体的,第二判断模块51,具体配置为将确认序号ACK_SN与发送端的最大发送序号Vts和连续确认的最大发送序号Vta进行比较,若确认序号ACK_SN在最大发送序号Vts和连续确认的最大发送序号Vta之间,则确认序号ACK_SN在发送端窗口之内,否则,确认序号ACK_SN不在发送端窗口之内。Specifically, the second determining module 51 is configured to compare the acknowledgement number ACK_SN with the maximum transmission sequence number Vts of the transmitting end and the maximum transmission number Vta of the continuous acknowledgement, and if the acknowledgement sequence number ACK_SN is at the maximum transmission sequence number Vts and the maximum transmission sequence number of the continuous acknowledgement Between Vta, the confirmation sequence number ACK_SN is within the sender window, otherwise, the confirmation sequence number ACK_SN is not within the sender window.
第二判断模块51,还配置为将收到第二取模处理模块52发送的取模处理后的确认序号和连续确认的最大发送序号的差值与第二阈值进行比较,The second judging module 51 is further configured to compare the difference between the modulo processing modulo sequence sent by the second modulo processing module 52 and the continuously confirmed maximum transmission sequence number with the second threshold value,
这里,设取模后的确认序号和连续确认的最大发送序号的差值为Q2,Q2=(MOD_Vta+1024-MOD_ACK_SN)%1024,将Q2与第二阈值Y2比较,其中,Y2=最大HARQ重传时间与状态包发送间隔时间的比值,其中,状态包发送间隔时间根据预设配置得到,最大HARQ重传时间=重传次数*每次重传时间,其中,重传次数、每次重传时间根据预设配置得到;Here, the difference between the acknowledgment number after the modulo and the maximum acknowledgment of the maximum acknowledgment is Q2, Q2=(MOD_Vta+1024-MOD_ACK_SN)%1024, and Q2 is compared with the second threshold Y2, where Y2=the maximum HARQ weight The ratio of the transmission time to the status packet transmission interval, wherein the status packet transmission interval is obtained according to the preset configuration, the maximum HARQ retransmission time = the number of retransmissions * each retransmission time, wherein the number of retransmissions, each retransmission The time is obtained according to the preset configuration;
在确认取模处理后的所述差值Q2大于或等于第二阈值Y2时,则确定所述确认序号对应的数据是接收端处理错误数据产生的,反馈窗口变量给接收端;这里,反馈的窗口变量为连续确认的最大发送序号Vta和最大发送序号Vts。After the difference Q2 after the modulo processing is confirmed to be greater than or equal to the second threshold Y2, it is determined that the data corresponding to the confirmation serial number is generated by the receiving end processing error data, and the feedback window variable is sent to the receiving end; here, the feedback The window variable is the maximum transmission sequence number Vta and the maximum transmission sequence number Vts that are continuously confirmed.
具体的,第二判断模块51,配置为在确认取模后的所述差值Q2大于或等于第二阈值Y2时,确定所述确认序号ACK_SN是接收端处理错误数据产生的,构建控制数据类型(CPT)的控制信息;Specifically, the second determining module 51 is configured to determine, when the difference Q2 after the modulo is greater than or equal to the second threshold Y2, that the acknowledgement sequence ACK_SN is generated by the receiving end processing error data, and construct the control data type. (CPT) control information;
这里,目前RLC协议的CPT控制信息只有一种格式,即CPT=0的状态包,这里,通过扩充该CPT控制信息,即增加一个CPT=1的控制信息,该控制信息携带连续确认的最大发送序号Vta和最大发送序号Vts给接收端,并将携带的Vta、Vts反馈给接收端。Here, the CPT control information of the current RLC protocol has only one format, that is, a state packet of CPT=0. Here, by expanding the CPT control information, a control information of CPT=1 is added, and the control information carries the maximum transmission of consecutive acknowledgements. The serial number Vta and the maximum transmission sequence number Vts are sent to the receiving end, and the carried Vta and Vts are fed back to the receiving end.
第二取模处理模块52可由CPU实现,配置为对接收到第二判断模块51发送的确认序号和连续确认的最大发送序号分别进行取模处理,将取模 处理后的确认序号和连续确认的最大发送序号的差值发送给第二判断模块51;The second modulo processing module 52 can be implemented by the CPU, configured to perform modulo processing on the acknowledgment serial number sent by the second judging module 51 and the maximum sequel to the continuous acknowledgment, respectively. The difference between the processed confirmation number and the continuously confirmed maximum transmission sequence number is sent to the second determination module 51;
具体的,第二取模处理模块52,配置为对确认序号ACK_SN和连续确认的最大发送序号Vta分别进行取模处理,包括:Specifically, the second modulo processing module 52 is configured to perform modulo processing on the acknowledgment serial number ACK_SN and the continuously confirmed maximum transmission sequence number Vta, respectively, including:
MOD_Vta=(Vta+1024-Base)%1024;MOD_Vta=(Vta+1024-Base)%1024;
MOD_ACK_SN=(ACK_SN+1024-Base)%1024;MOD_ACK_SN=(ACK_SN+1024-Base)%1024;
AM模式:Base=Vta;AM mode: Base=Vta;
其中,MOD_Vta为连续确认的最大发送序号的模数据,MOD_ACK_SN为确认序号的模数据,Vta为连续确认的最大发送序号,ACK_SN为确认序号。Where MOD_Vta is the modulus data of the maximum transmission sequence continuously confirmed, MOD_ACK_SN is the modulus data of the acknowledgment number, Vta is the maximum transmission sequence number of consecutive acknowledgments, and ACK_SN is the acknowledgment sequence number.
上述第一记录模块41、第一取模处理模块42、第一阈值确定模块43、第一判断模块44、第一错误数据处理模块45、和状态包反馈模块46可以设置在用作接收端的网络节点,上述第二判断模块51、第二取模处理模块52可以设置在用作发送端的网络节点,当网络节点既用作接收端也用作发送端时,上述第一记录模块41、第一取模处理模块42、第一阈值确定模块43、第一判断模块44、第一错误数据处理模块45、状态包反馈模块46、第二判断模块51、和第二取模处理模块52可以同时设置在所述网络节点上,但此时,所述网络节点用作接收端时,启用上述第一记录模块41、第一取模处理模块42、第一阈值确定模块43、第一判断模块44、第一错误数据处理模块45、和状态包反馈模块46,所述网络节点用作发送端时,启用上述第二判断模块51、第二取模处理模块52,所述网络节点可以是移动终端、或基站、或路由器。The first recording module 41, the first modulo processing module 42, the first threshold determining module 43, the first determining module 44, the first erroneous data processing module 45, and the status packet feedback module 46 may be disposed in a network serving as a receiving end. The second recording module 51 and the second modulo processing module 52 may be disposed at a network node serving as a transmitting end. When the network node serves as both a receiving end and a transmitting end, the first recording module 41 and the first The modulo processing module 42, the first threshold determining module 43, the first determining module 44, the first erroneous data processing module 45, the state packet feedback module 46, the second judging module 51, and the second modulo processing module 52 can be simultaneously set. On the network node, but when the network node is used as the receiving end, the first recording module 41, the first modulo processing module 42, the first threshold determining module 43, the first determining module 44, The first error data processing module 45 and the state packet feedback module 46, when the network node is used as the transmitting end, enable the second determining module 51 and the second modulo processing module 52, the network node Be a mobile terminal or a base station or router.
综上所述,本发明通过接收端对当前接收序号和最大接收序号分别进行取模处理,并对当前接收序号和最大接收序号进行第一阈值估算,将取模处理后的当前接收序号和最大接收序号的差值与第一阈值进行比较,在 确定取模处理后的所述差值大于第一阈值时,确定当前接收序号对应的数据为错误数据;如此,能够尽快检测到错误数据,以便及时修正,使数据能够正常收发;同时提高了数据传输正确率。In summary, the present invention performs modulo processing on the current receiving sequence number and the maximum receiving sequence number respectively by the receiving end, and performs a first threshold estimation on the current receiving sequence number and the maximum receiving sequence number, and the current receiving sequence number and maximum after the modulo processing. The difference of the received sequence number is compared with the first threshold, After determining that the difference after the modulo processing is greater than the first threshold, determining that the data corresponding to the current receiving sequence number is erroneous data; thus, the erroneous data can be detected as soon as possible, so that the data can be correctly sent and received in time; and the data is improved at the same time. Transmission accuracy rate.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in Within the scope of protection of the present invention.
工业实用性Industrial applicability
综合本发明的各实施例,接收端,将取模处理后的当前接收序号和最大接收序号的差值与第一阈值进行比较,在确定取模处理后的所述差值大于第一阈值时,确定当前接收序号对应的数据为错误数据,能够尽快检测到错误数据,以便及时修正,使数据能够正常收发,同时提高了数据传输正确率。 According to various embodiments of the present invention, the receiving end compares the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing is compared with the first threshold, and when the difference after determining the modulo processing is greater than the first threshold, The data corresponding to the current receiving serial number is determined to be erroneous data, and the erroneous data can be detected as soon as possible so as to be corrected in time, so that the data can be sent and received normally, and the data transmission correct rate is improved.

Claims (19)

  1. 一种无线链路控制层错误数据检测方法,该方法包括:A wireless link control layer error data detecting method, the method comprising:
    接收端对当前接收序号和最大接收序号分别进行取模处理,并对当前接收序号和最大接收序号进行第一阈值估算,将取模处理后的当前接收序号和最大接收序号的差值与第一阈值进行比较,在确定取模处理后的所述差值大于第一阈值时,确定当前接收序号对应的数据为错误数据。The receiving end performs modulo processing on the current receiving sequence number and the maximum receiving sequence number respectively, and performs a first threshold estimation on the current receiving sequence number and the maximum receiving sequence number, and compares the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing. The threshold is compared. When the difference after determining the modulo processing is greater than the first threshold, determining that the data corresponding to the current receiving sequence number is erroneous data.
  2. 如权利要求1所述的方法,其中,所述对当前接收序号和最大接收序号分别进行取模处理包括:The method of claim 1, wherein the performing modulo processing on the current receiving sequence number and the maximum receiving sequence number respectively comprises:
    MOD_x=(x+Modulus-Base)%Modulus;MOD_x=(x+Modulus-Base)%Modulus;
    MOD_Vrh=(Vrh+Modulus–Base)%Modulus;MOD_Vrh=(Vrh+Modulus–Base)%Modulus;
    非确认UM模式:Base=(Vrh+Modulus-Win)%Modulus;Non-confirmed UM mode: Base=(Vrh+Modulus-Win)%Modulus;
    确认AM模式:Base=Vrr;Confirm AM mode: Base=Vrr;
    其中,MOD_x为当前接收序号的模数据,MOD_Vrh为最大接收序号的模数据,x为当前接收序号,Vrh为最大接收序号,Vrr是接收端最小确认序号,Win为接收端窗口大小,Modulus为接收端窗口大小的2倍。MOD_x is the modulus data of the current receiving serial number, MOD_Vrh is the modulus data of the maximum receiving serial number, x is the current receiving serial number, Vrh is the maximum receiving serial number, Vrr is the minimum acknowledged serial number of the receiving end, Win is the receiving end window size, and Modulus is the receiving The end window is 2 times the size.
  3. 如权利要求2所述的方法,其中,所述对当前接收序号和最大接收序号进行第一阈值估算为:所述第一阈值=(sf2-sf1)*TB*模式系数,其中,sf2为最大接收序号对应数据的子帧号,sf1为当前接收序号对应数据的子帧号,TB为数据传输块个数,模式系数为上行子帧数或下行子帧数与子帧总数的比值。The method according to claim 2, wherein said first threshold estimation of said current receiving sequence number and said maximum receiving sequence number is: said first threshold value = (sf2 - sf1) * TB * mode coefficient, wherein sf2 is maximum The sub-frame number of the data corresponding to the serial number is received, sf1 is the sub-frame number of the data corresponding to the current receiving sequence number, TB is the number of data transmission blocks, and the mode coefficient is the ratio of the number of uplink sub-frames or the number of downlink sub-frames to the total number of sub-frames.
  4. 如权利要求3所述的方法,其中,所述将取模处理后的当前接收序号和最大接收序号的差值与第一阈值进行比较包括:The method of claim 3, wherein comparing the difference between the current received sequence number and the maximum received sequence number after the modulo processing is compared with the first threshold comprises:
    比较(MOD_x+Modulus-MOD_Vrh)%Modulus是否大于第一阈值。Compare (MOD_x+Modulus-MOD_Vrh) whether %Modulus is greater than the first threshold.
  5. 如权利要求1至4任一项所述的方法,其中,该方法还包括:发送端通过接收端反馈的状态包检测错误数据。 The method according to any one of claims 1 to 4, wherein the method further comprises: the transmitting end detecting the erroneous data by the status packet fed back by the receiving end.
  6. 如权利要求5所述的方法,其中,所述发送端通过接收端反馈的状态包检测错误数据包括:The method of claim 5, wherein detecting, by the transmitting end, the error data by the status packet fed back by the receiving end comprises:
    发送端确定接收到的状态包中的确认序号不在发送端的窗口范围之内,对确认序号和连续确认的最大发送序号分别进行取模处理,将取模处理后的确认序号和连续确认的最大发送序号的差值与第二阈值进行比较,在确定取模处理后的所述差值大于或等于第二阈值时,确定所述确认序号对应的数据是接收端处理错误数据产生的,反馈发送端的窗口变量给接收端。The transmitting end determines that the confirmed sequence number in the received status packet is not within the window range of the transmitting end, and performs modulo processing on the acknowledgment serial number and the maximum acknowledgment maximum transmission sequence number respectively, and the acknowledgment number after the modulo processing and the maximum transmission of the continuous acknowledgment The difference between the sequence number and the second threshold is compared. When the difference between the modulo processing is determined to be greater than or equal to the second threshold, determining that the data corresponding to the acknowledgement sequence is generated by the receiving end processing error data, and the feedback sender The window variable is given to the receiving end.
  7. 如权利要求6所述的方法,其中,该方法还包括:接收端接收发送端反馈的窗口变量后,根据接收到的窗口变量修正接收窗口,丢弃错误数据。The method according to claim 6, wherein the method further comprises: after receiving the window variable fed back by the transmitting end, the receiving end corrects the receiving window according to the received window variable, and discards the erroneous data.
  8. 如权利要求6所述的方法,其中,该方法还包括:在确定取模处理后的所述差值小于第二阈值时,确定确认序号对应的数据是混合自动重传请求HARQ重传产生的,丢弃所述状态包。The method according to claim 6, wherein the method further comprises: determining that the data corresponding to the confirmation sequence number is generated by the hybrid automatic repeat request HARQ retransmission when determining that the difference value after the modulo processing is less than the second threshold , discard the status packet.
  9. 如权利要求6所述的方法,其中,所述对确认序号和连续确认的最大发送序号分别进行取模处理包括:The method of claim 6, wherein the performing the modulo processing on the confirmation serial number and the continuously transmitted maximum transmission serial number respectively comprises:
    MOD_Vta=(Vta+1024-Base)%1024;MOD_Vta=(Vta+1024-Base)%1024;
    MOD_ACK_SN=(ACK_SN+1024-Base)%1024;MOD_ACK_SN=(ACK_SN+1024-Base)%1024;
    AM:Base=Vta;AM:Base=Vta;
    其中,MOD_Vta为连续确认的最大发送序号的模数据,MOD_ACK_SN为确认序号的模数据,Vta为连续确认的最大发送序号,ACK_SN为确认序号。Where MOD_Vta is the modulus data of the maximum transmission sequence continuously confirmed, MOD_ACK_SN is the modulus data of the acknowledgment number, Vta is the maximum transmission sequence number of consecutive acknowledgments, and ACK_SN is the acknowledgment sequence number.
  10. 如权利要求9所述的方法,其中,所述将取模处理后的确认序号和连续确认的最大发送序号的差值与第二阈值进行比较为:The method according to claim 9, wherein said comparing the difference between the modulo processing number and the continuously confirmed maximum transmission number to the second threshold is:
    比较(MOD_Vta+1024-MOD_ACK_SN)%1024是否大于或等于第二 阈值。Compare (MOD_Vta+1024-MOD_ACK_SN)%1024 is greater than or equal to the second Threshold.
  11. 如权利要求6所述的方法,其中,所述第二阈值通过最大HARQ重传时间与状态包发送间隔时间的比值来估算。The method of claim 6 wherein said second threshold is estimated by a ratio of a maximum HARQ retransmission time to a status packet transmission interval.
  12. 如权利要求6所述的方法,其中,所述确定接收到的状态包中的确认序号不在发送端的窗口范围之内包括:判断确认序号是否在发送端的最大发送序号和连续确认的最大发送序号之间,如果否,则确认序号不在发送端的窗口范围之内。The method according to claim 6, wherein said determining that the confirmation sequence number in the received status packet is not within the window range of the transmitting end comprises: determining whether the confirmation sequence number is at the sender's maximum transmission sequence number and the continuously acknowledged maximum transmission sequence number. If not, the confirmation sequence number is not within the window of the sender.
  13. 一种无线链路控制层错误数据检测装置,该装置包括:第一取模处理模块、第一阈值确定模块和第一判断模块;A radio link control layer error data detecting apparatus, comprising: a first modulo processing module, a first threshold determining module, and a first judging module;
    第一取模处理模块,配置为对当前接收序号和最大接收序号分别进行取模处理,并将取模处理后的当前接收序号和最大接收序号的差值发送给第一判断模块;The first modulo processing module is configured to perform modulo processing on the current receiving sequence number and the maximum receiving sequence number respectively, and send the difference between the current receiving sequence number and the maximum receiving sequence number after the modulo processing to the first determining module;
    第一阈值确定模块,配置为对当前接收序号和最大接收序号进行第一阈值估算,并将估算的第一阈值发送给第一判断模块;The first threshold determining module is configured to perform a first threshold estimation on the current receiving sequence number and the maximum receiving sequence number, and send the estimated first threshold value to the first determining module;
    第一判断模块,配置为将收到第一取模处理模块发送的取模处理后的当前接收序号和最大接收序号的差值与收到第一阈值确定模块发送的第一阈值进行比较,在确定取模处理后的所述差值大于第一阈值时,确定当前接收序号对应的数据为错误数据。The first judging module is configured to compare the difference between the current receiving sequence number and the maximum receiving sequence number received by the first modulo processing module and the first threshold value sent by the first threshold determining module, where When it is determined that the difference after the modulo processing is greater than the first threshold, determining that the data corresponding to the current receiving sequence number is erroneous data.
  14. 如权利要求13所述的装置,其中,该装置还包括:第一错误数据处理模块,配置为接收第一判断模块发送的当前接收序号,将所述当前接收序号对应的数据丢弃;The device of claim 13, wherein the device further comprises: a first error data processing module, configured to receive a current receiving sequence number sent by the first determining module, and discard the data corresponding to the current receiving sequence number;
    相应的,所述第一判断模块,还配置为在确定当前接收序号对应的数据为错误数据后,发送所述当前接收序号给第一错误数据处理模块。Correspondingly, the first determining module is further configured to send the current receiving sequence number to the first erroneous data processing module after determining that the data corresponding to the current receiving sequence number is erroneous data.
  15. 如权利要求14所述的装置,其中,所述第一错误数据处理模块,还配置为根据接收到的发送端发送的窗口变量修正接收窗口,并丢弃错误 数据。The apparatus of claim 14, wherein the first erroneous data processing module is further configured to modify the receiving window according to the received window variable sent by the transmitting end, and discard the error data.
  16. 如权利要求15所述的装置,其中,该装置还包括:状态包反馈模块,配置为向发送端反馈状态包。The apparatus of claim 15, wherein the apparatus further comprises: a status packet feedback module configured to feed back the status packet to the transmitting end.
  17. 如权利要求16所述的装置,其中,该装置还包括:第二判断模块和第二取模处理模块;其中,The device of claim 16, wherein the device further comprises: a second judging module and a second modulo processing module; wherein
    第二判断模块,配置为接收接收端发送的状态包,并确定接收到的状态包中的确认序号不在发送端的窗口范围之内,将确认序号发送给第二取模处理模块;The second judging module is configured to receive the status packet sent by the receiving end, and determine that the confirmed sequence number in the received status packet is not within the window range of the sending end, and send the confirmation serial number to the second modulo processing module;
    还配置为将收到第二取模处理模块发送的取模处理后的确认序号和连续确认的最大发送序号的差值与第二阈值进行比较,在确认取模处理后的所述差值大于或等于第二阈值时,确定所述确认序号对应的数据是接收端处理错误数据产生的,反馈发送端的窗口变量给接收端;And configured to compare the difference between the modulo processing number received by the second modulo processing module and the maximum acknowledgment maximum transmission number with the second threshold, and the difference after confirming the modulo processing is greater than Or equal to the second threshold, determining that the data corresponding to the confirmation serial number is generated by the receiving end processing the error data, and feeding back the window variable of the sending end to the receiving end;
    第二取模处理模块,配置为对接收到第二判断模块发送的确认序号和连续确认的最大发送序号分别进行取模处理,将取模处理后的确认序号和连续确认的最大发送序号的差值发送给第二判断模块。The second modulo processing module is configured to perform modulo processing on the acknowledgment serial number sent by the second judging module and the maximum sequel to the continuous acknowledgment, and the difference between the acknowledgment number after the modulo processing and the maximum transmitted serial number that is continuously confirmed. The value is sent to the second determination module.
  18. 如权利要求17所述的装置,其中,所述第二判断模块,还配置为在确定取模处理后的所述差值小于第二阈值时,确定确认序号对应的数据是HARQ重传产生的,丢弃所述状态包。The apparatus according to claim 17, wherein the second determining module is further configured to: when the difference after determining the modulo processing is less than the second threshold, determining that the data corresponding to the confirmation sequence number is generated by HARQ retransmission , discard the status packet.
  19. 如权利要求18所述的装置,其中,所述第一记录模块、第一取模处理模块、第一阈值确定模块、第一判断模块、第一错误数据处理模块、和状态包反馈模块设置在用作接收端的网络节点,所述第二判断模块、第二取模处理模块设置在用作发送端的网络节点;The apparatus according to claim 18, wherein said first recording module, first modulo processing module, first threshold determining module, first determining module, first error data processing module, and state packet feedback module are disposed at a network node serving as a receiving end, the second determining module and the second modulo processing module are disposed at a network node serving as a transmitting end;
    或者,所述第一记录模块、第一取模处理模块、第一阈值确定模块、第一判断模块、第一错误数据处理模块、状态包反馈模块、第二判断模块、和第二取模处理模块设置在一个网络节点上,所述网络节点用作接收端时, 启用上述第一记录模块、第一取模处理模块、第一阈值确定模块、第一判断模块、第一错误数据处理模块、和状态包反馈模块,所述网络节点用作发送端时,启用上述第二判断模块、第二取模处理模块。 Or the first recording module, the first modulo processing module, the first threshold determining module, the first determining module, the first error data processing module, the state packet feedback module, the second determining module, and the second modulo processing The module is set on a network node, and when the network node is used as a receiving end, The first recording module, the first modulo processing module, the first threshold determining module, the first determining module, the first error data processing module, and the state packet feedback module are enabled, and when the network node is used as the transmitting end, the foregoing is enabled. The second judging module and the second modulo processing module.
PCT/CN2014/086037 2014-06-27 2014-09-05 Method and apparatus for detecting faulty data in radio link control layer WO2015196566A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410305560.8A CN105227264B (en) 2014-06-27 2014-06-27 A kind of wireless chain control layer wrong data detection method and device
CN201410305560.8 2014-06-27

Publications (1)

Publication Number Publication Date
WO2015196566A1 true WO2015196566A1 (en) 2015-12-30

Family

ID=54936566

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/086037 WO2015196566A1 (en) 2014-06-27 2014-09-05 Method and apparatus for detecting faulty data in radio link control layer

Country Status (2)

Country Link
CN (1) CN105227264B (en)
WO (1) WO2015196566A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109429269B (en) * 2017-08-22 2022-02-22 中国电信股份有限公司 Dynamic serial number adjusting method, device and base station
CN114374656B (en) * 2020-10-14 2024-05-14 上海华为技术有限公司 Data processing method and related equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075841A (en) * 2007-07-06 2007-11-21 中兴通讯股份有限公司 Reliable telecommunication for baseband pool unit and remote radio-frequency unit
CN102378309A (en) * 2010-08-12 2012-03-14 华为技术有限公司 Network access method and system thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483505B (en) * 2008-01-08 2013-02-27 中兴通讯股份有限公司 Service data unit discarding method
WO2009118577A1 (en) * 2008-03-25 2009-10-01 Nokia Corporation Method and apparatus for multiplexing different traffic types over a common communication session
CN101989896B (en) * 2010-11-15 2014-12-17 中兴通讯股份有限公司 Feedback method and device for ARQ connection
CN102457914B (en) * 2012-01-11 2017-11-10 中兴通讯股份有限公司 The transmission method of upstream data and uplink scheduling information, device
CN103516492B (en) * 2012-06-18 2017-11-14 中兴通讯股份有限公司 Data cache method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075841A (en) * 2007-07-06 2007-11-21 中兴通讯股份有限公司 Reliable telecommunication for baseband pool unit and remote radio-frequency unit
CN102378309A (en) * 2010-08-12 2012-03-14 华为技术有限公司 Network access method and system thereof

Also Published As

Publication number Publication date
CN105227264B (en) 2019-07-09
CN105227264A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
US9300602B2 (en) Method, device, and apparatus for error detection and correction in wireless communications
US10153869B2 (en) System and method adopting a reliable stop-and-wait hybrid automatic repeat request protocol
US8051353B2 (en) HARQ transmission feedback for higher layer protocols in a communication system
US7733914B2 (en) Method of, and system for, communicating data, and a station for transmitting data
EP1758286B1 (en) Avoiding stall conditions and sequence number ambiguity in an automatic repeat request protocol
EP3251257B1 (en) System and method for data retransmission
US9871625B2 (en) Status reporting for retransmission protocol
US20070177630A1 (en) Apparatus, method and computer program product providing retransmission utilizing multiple ARQ mechanisms
US20170099128A1 (en) Radio resource scheduling method and apparatus
US20090327830A1 (en) Method for retransmitting data unit using delivery status information
US9456377B2 (en) System and method for transmission control protocol service delivery in wireless communications systems
US8904245B2 (en) Using a variable timer for sending an error indication
JP2011087332A (en) Method and apparatus for resegmention of packet data for retransmission on harq transmission failure
US10707994B2 (en) Advanced error detection coding
WO2014117543A1 (en) Transmission method and apparatus based on channel activation detection
WO2011015071A1 (en) Method and system for sending data of radio link control layer
CN108292973B (en) Indicator of handover-based reception success
WO2015196566A1 (en) Method and apparatus for detecting faulty data in radio link control layer
US8761135B2 (en) Methods and arrangements in a wireless telecommunication system
KR20170043006A (en) Apparatus and method for retransmitting communication packet
KR101346438B1 (en) Apparatus and method for processing packets in mobile communication system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14896263

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14896263

Country of ref document: EP

Kind code of ref document: A1