WO2018228193A1 - Service data unit segmentation processing method and data receiving end - Google Patents

Service data unit segmentation processing method and data receiving end Download PDF

Info

Publication number
WO2018228193A1
WO2018228193A1 PCT/CN2018/089018 CN2018089018W WO2018228193A1 WO 2018228193 A1 WO2018228193 A1 WO 2018228193A1 CN 2018089018 W CN2018089018 W CN 2018089018W WO 2018228193 A1 WO2018228193 A1 WO 2018228193A1
Authority
WO
WIPO (PCT)
Prior art keywords
sdu
segment
segmentation
distance
interval
Prior art date
Application number
PCT/CN2018/089018
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 WO2018228193A1 publication Critical patent/WO2018228193A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/34Flow control; Congestion control ensuring sequence integrity, e.g. using sequence numbers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • H04W8/04Registration at HLR or HSS [Home Subscriber Server]

Definitions

  • the present disclosure relates to the field of communications technologies, and in particular, to a Service Data Unit (SDU) segmentation processing method and a data receiving end.
  • SDU Service Data Unit
  • the radio link control (RLC) processing of the data cancels the concatenation function, that is, the RLC SDU one-to-one constitutes the RLC protocol data unit (Protocol) Data Unit, PDU).
  • the RLC layer also cancels the function of delivering in order, that is, the RLC layer can send the RLC SDU to the upper layer in an unordered manner. Therefore, for the Unacknowledged Mode (UM), the completely transmitted RLC SDU does not need to be carried. Any Serial Number (SN) information. Since the SDU of the complete transmission does not carry the SN information, how to process the SDU segment of the SDU is a technical problem that needs to be solved urgently.
  • SN Serial Number
  • An object of the present disclosure is to provide an SDU segmentation processing method and a data receiving end to solve the problem of how to process SDU segments of an SDU.
  • an embodiment of the present disclosure provides an SDU segmentation processing method, including: acquiring segmentation information of an SDU segment of an SDU, the segmentation information including a sequence number SN; and determining presence according to the segmentation information Receiving the gap, starting a reassembly timer, and determining an SDU segmentation interval corresponding to the reassembly timer; if the SDU segment in the SDU segmentation interval is correctly received before the reassembly timer expires, stopping And the reassembly timer; if the reassembly timer expires, deleting all unsuccessfully reassembled SDU segments of the SDU segmentation interval.
  • the segmentation information of the SDU segments within the same SDU includes the same SN; or the segmentation information of the SDU segments within the same SDU includes different SNs.
  • the method further comprises: recording and maintaining one or more variables: a first variable, a second variable, and a third variable; wherein the first variable is used to record the received Variable information of the next SDU segment of the highest SDU segment, or variable information for recording the highest SDU segment received; the second variable is used to record the SDU segment interval corresponding to the reassembly timer Variable information of a boundary; the third variable is used to record variable information of a lower boundary of an SDU segmentation interval requiring a reorganization operation; wherein the variable information includes SN and/or SO information.
  • the first variable is used to record the received Variable information of the next SDU segment of the highest SDU segment, or variable information for recording the highest SDU segment received
  • the second variable is used to record the SDU segment interval corresponding to the reassembly timer Variable information of a boundary
  • the third variable is used to record variable information of a lower boundary of an SDU segmentation interval requiring a reorganization operation
  • the variable information includes
  • the lower boundary of the SDU segmentation interval requiring the reassembly operation is equal to the next one of the highest SDU segments received. SDU segment, or the highest SDU segment received; if there is a receiving gap in the receiving sequence, the lower boundary of the SDU segment interval requiring the reassembly operation is the SDU segment at the first receiving slot of the receiving sequence a segment; if the SDU segment at the first gap is correctly received, the lower boundary of the SDU segmentation interval requiring the reassembly operation is updated to the SDU segment at the next reception gap.
  • the upper boundary is the next SDU segment of the highest SDU segment received or the highest SDU segment received, at the reassembly timing
  • the upper boundary of the validity period is unchanged; and the SDU segmentation interval corresponding to the reorganization timer is an interval determined by the lower boundary and the upper boundary.
  • the reassembly timer if the SDU segment in the SDU segment interval is correctly received before the reassembly timer expires, stopping the reassembly timer, if: If the boundary is equal to the upper boundary, or the lower boundary is updated to the SDU segment after the upper boundary, and then it is determined that the SDU segments in the SDU segment interval are all correctly received, the reassembly timer is stopped.
  • deleting all unsuccessfully reassembled SDU segments of the SDU segmentation interval including: if the reassembly timer expires, The lower boundary is an SDU segment before the upper boundary, and then it is determined that there are still SDU segments that are not correctly received in the SDU segment interval, and all unsuccessfully reassembled SDU segments of the SDU segment interval are deleted, and Updating the lower boundary to an SDU segment corresponding to the upper boundary.
  • the method further includes: if the lower boundary is different from the SDU segment recorded by the first variable, determining that there is a reception gap in the received sequence, and restarting the reassembly timer And recording the SDU segment recorded by the lower boundary as the first variable.
  • the re-establishment timer is started, and the SDU segmentation interval corresponding to the reassembly timer is determined, including: Determining that there is a reception gap in the received sequence according to the segmentation information, starting a reassembly timer, and calculating a minimum distance between two of the SNs in the cache, wherein a minimum distance between the two is a SN of the two SNs a minimum distance between a distance and a second distance, wherein the first distance is a distance obtained by a large SN in the two SNs, and the second distance is a sum of a small SN of the two SNs and a preset maximum SN.
  • the distance obtained by the SN; the maximum distance among all the minimum distances is selected, and the interval corresponding to the maximum distance is taken as the SDU segmentation interval corresponding to the reassembly timer.
  • the method further includes: after the reassembly timer stops or times out, if there is still a reception gap, restarting the reassembly timer, and calculating two or two of all SNs in the cache.
  • the minimum distance between the two wherein the minimum distance between the two is the first distance of the two SNs and the minimum distance of the second distance, the first distance is the distance obtained by the large SN in the two SNs to reduce the SN
  • the second distance is a distance obtained by subtracting the SN from the sum of the small SNs of the two SNs and the preset maximum SN; selecting the maximum distance among all the minimum distances, and using the interval corresponding to the maximum distance as the reorganization with the restart The SDU segmentation interval corresponding to the timer.
  • the embodiment of the present disclosure further provides a data receiving end, comprising: an obtaining module, configured to acquire segmentation information of an SDU segment of the SDU, where the segmentation information includes a sequence number SN; and a startup module, if If the segment information determines that there is a reception gap, the reassembly timer is started, and the SDU segmentation interval corresponding to the reassembly timer is determined; and the stopping module is configured to: before the reassembly timer expires, the SDU segmentation interval If the SDU segment is correctly received, the reassembly timer is stopped; and the deleting module is configured to delete all unsuccessfully reassembled SDU segments of the SDU segment interval if the reassembly timer expires.
  • the segmentation information of the SDU segments within the same SDU includes the same SN; or the segmentation information of the SDU segments within the same SDU includes different SNs.
  • the data receiving end further includes: a record maintaining module, configured to record and maintain one or more variables: a first variable, a second variable, and a third variable; wherein the One variable is used to record variable information of the next SDU segment of the highest SDU segment received, or variable information for recording the highest SDU segment received; the second variable is used to record the reassembly timer Variable information of an upper boundary of a corresponding SDU segmentation interval; the third variable is used to record variable information of a lower boundary of an SDU segmentation interval requiring a reorganization operation; wherein the variable information includes SN and/or SO information.
  • a record maintaining module configured to record and maintain one or more variables: a first variable, a second variable, and a third variable; wherein the One variable is used to record variable information of the next SDU segment of the highest SDU segment received, or variable information for recording the highest SDU segment received; the second variable is used to record the reassembly timer Variable information of an upper boundary of a corresponding S
  • the lower boundary of the SDU segmentation interval requiring the reassembly operation is equal to the highest SDU segment received.
  • the upper boundary is the next SDU segment of the highest SDU segment received or the highest SDU segment received, at the reassembly timing
  • the upper boundary of the validity period is unchanged; and the SDU segmentation interval corresponding to the reorganization timer is an interval determined by the lower boundary and the upper boundary.
  • the stopping module is configured to determine the SDU segment if the lower boundary is equal to the upper boundary, or the lower boundary is updated to an SDU segment after the upper boundary. If the SDU segments in the interval are correctly received, the reassembly timer is stopped.
  • the deleting module is configured to determine that the SDU segmentation interval still exists if the reassembly timer expires and the lower boundary is an SDU segment before the upper boundary. The SDU segment is correctly received, and all unsuccessfully reassembled SDU segments of the SDU segment interval are deleted, and the lower boundary is updated to the SDU segment corresponding to the upper boundary.
  • the data receiving end further includes: a first restarting module, configured to determine that the receiving sequence is received if the lower boundary is different from the SDU segment recorded by the first variable Notching, and restarting the reassembly timer, and recording the SDU segment recorded by the lower boundary as the first variable.
  • a first restarting module configured to determine that the receiving sequence is received if the lower boundary is different from the SDU segment recorded by the first variable Notching, and restarting the reassembly timer, and recording the SDU segment recorded by the lower boundary as the first variable.
  • the initiating module includes: a starting unit, configured to: if it is determined according to the segmentation information, that a receiving sequence has a receiving gap, start a reassembly timer, and calculate all SNs in the cache.
  • the minimum distance between the two wherein the minimum distance between the two is the first distance of the two SNs and the minimum distance of the second distance, the first distance being the large SN of the two SNs decreasing SN
  • the obtained distance, the second distance is a distance obtained by subtracting the SN from the sum of the small SN and the preset maximum SN in the two SNs; the selecting unit is configured to select the maximum distance among all the minimum distances, and corresponding to the maximum distance
  • the interval is an SDU segmentation interval corresponding to the reorganization timer.
  • the data receiving end further includes: a second restarting module, configured to restart the reassembly timer if there is still a receiving gap after the reassembly timer stops or times out, and Calculating a minimum distance between two of the SNs in the cache, wherein the minimum distance between the two pairs is the first distance of the two SNs and the minimum distance of the second distance, the first distance being two SNs
  • the medium-large SN reduces the distance obtained by the SN
  • the second distance is the distance between the small SN of the two SNs and the preset maximum SN, and the distance obtained by subtracting the SN
  • the selection module is configured to select the maximum distance among all the minimum distances, and The interval corresponding to the maximum distance is used as an SDU segmentation interval corresponding to the restarted reassembly timer.
  • the embodiment of the present disclosure further provides a data receiving end, including a processor, a transceiver, a memory, a user interface, and a bus interface, wherein the processor is configured to read a program in the memory, and perform the following process: acquiring The segmentation information of the SDU segment of the SDU, the segmentation information includes a sequence number SN; if it is determined that there is a reception gap according to the segmentation information, the reassembly timer is started, and the SDU segment corresponding to the reassembly timer is determined.
  • the embodiment of the present disclosure further provides a computer readable storage medium having stored thereon a computer program, the program being executed by the processor to: obtain segmentation information of an SDU segment of an SDU, the segmentation information including a sequence No. SN; if it is determined that there is a reception gap according to the segmentation information, start a reassembly timer, and determine an SDU segmentation interval corresponding to the reassembly timer; if the reassembly timer expires, the SDU segmentation If the SDU segments in the interval are correctly received, the reassembly timer is stopped; if the reassembly timer expires, all unsuccessfully reassembled SDU segments of the SDU segment interval are deleted.
  • the embodiment of the present disclosure can implement processing of the SDU segment according to the segmentation information of the SDU segment, and can also improve the data processing performance of the data receiving end.
  • FIG. 1 is a schematic structural diagram of a network applicable to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of an SDU segment processing method according to an embodiment of the present disclosure
  • FIG. 3 is a structural diagram of a data receiving end according to an embodiment of the present disclosure.
  • FIG. 4 is a structural diagram of a data receiving end according to an embodiment of the present disclosure.
  • FIG. 5 is a structural diagram of a data receiving end according to an embodiment of the present disclosure.
  • FIG. 6 is a structural diagram of a data receiving end according to an embodiment of the present disclosure.
  • FIG. 7 is a structural diagram of a data receiving end according to an embodiment of the present disclosure.
  • FIG. 8 is a structural diagram of a data receiving end according to an embodiment of the present disclosure.
  • FIG. 1 is a schematic diagram of a network structure applicable to an embodiment of the present disclosure.
  • the data receiving end 11 and the data sending end 12 are included.
  • the data receiving end 11 may be a user equipment (User Equipment, UE).
  • the network side device, and the data transmitting end 12 may be a network side device or a UE.
  • the data receiving end 11 is a UE, and the data transmitting end 12 is a network side device.
  • the UE may be a mobile phone, a tablet personal computer, a laptop computer, a personal digital assistant (PDA), and a mobile Internet device (Mobile Internet Device,
  • the terminal side device such as the MID) or the wearable device, it should be noted that the specific type of the UE is not limited in the embodiment of the present disclosure.
  • the network side device may be a base station, for example, a macro station, an LTE eNB, a 5G NR NB, etc.; the network side device may also be a small station, such as a low power node (LPN: low power node) pico, femto, etc., or a network side.
  • LPN low power node
  • the device can be an access point (AP); the base station can also be a network node composed of a central unit (CU) and a plurality of transmission reception points (TRPs) that are managed and controlled by the central unit (CU). It should be noted that the specific type of the network side device is not limited in the embodiment of the present disclosure.
  • FIG. 2 is a flowchart of a method for processing an SDU segment according to an embodiment of the present disclosure. As shown in FIG. 2, the method includes: 201. Obtain segmentation information of an SDU segment of an SDU. The information includes the serial number SN.
  • the SDU segment in step 201 may be an SDU segment correctly received by the data receiving end.
  • the SDU that is completely sent may not carry the SN.
  • the foregoing segmentation information may include other information, such as the SO information, the LI information, or the FI information, in addition to the SN.
  • the SN may represent a sequence of SDUs to which the SDU segment belongs, or may represent a sequence number of the SUD segment.
  • the determining that the receiving gap exists according to the segmentation information may be: determining, according to the segmentation information, that the data receiving end has an SDU segment that is not correctly received, or determining that a receiving gap exists in the receiving sequence. For example, if the received SDU segment includes segment 1, segment 3, and segment 4, it can be determined that segment 2 is not correctly received, that is, there is a reception gap.
  • the duration of starting the reassembly timer may be pre-configured.
  • the foregoing SDU segmentation interval may be an interval including the foregoing reception gap, for example, the received segment includes the segment 1, the segment 3, and the segment 4, and the segment interval may be segment 1 to segment 3. The interval between, or the interval between segment 2 and segment 3, and so on.
  • the foregoing SDU segmentation interval may include multiple reception gaps, that is, a reception gap initiation reassembly timer may be implemented for one or more SDU segments.
  • step 203 if the SDU segments in the SDU segment interval are correctly received before the reassembly timer expires, that is, all the reception gaps (Gap) in the corresponding interval of the reassembly timer are filled, the reassembly timing is stopped. This can reduce unnecessary timing to save power.
  • step 204 If the reassembly timer expires in step 204, all unsuccessfully reorganized SDU segments of the SDU segmentation interval are deleted. Because the reassembly timer expires, the SDU segmentation interval still exists when the reassembly timer expires. The SDU segment is correctly received, so that all unsuccessfully reorganized SDU segments of the SDU segment interval can be deleted, which effectively reduces processing complexity and improves system efficiency.
  • the SDU may be an SDU of the RLC layer, and the embodiment of the present disclosure may be applied to the UM mode of the data receiving end.
  • the data receiving end can also perform reassembly using the segmentation information of the SDU segment of the SDU.
  • the foregoing reorganization may be performed according to the segmentation order of the SDU segments, and the SDUs obtained after the reorganization may be delivered to the upper layer in an out-of-order manner.
  • the segmentation information of the SDU segments within the same SDU includes the same SN; or the segmentation information of the SDU segments within the same SDU includes different SNs.
  • segmentation information further includes one or more of the following: segment offset (SO) information, LI, and FI.
  • SO segment offset
  • the foregoing SO information is used to indicate a splitting offset of the SDU segment
  • the LI is used to indicate the length of the SDU segment
  • each SDU segment can be accurately indicated by the above-described SO information, LI, and FI, thereby accurately performing reassembly and identifying the reception gap.
  • the two embodiments that are the same or different in combination with the SN can work correctly, and the SN space that can be consumed is smaller in the same embodiment in which the SNs of the SDU segments in the same SDU are the same.
  • the duration of the reassembly timer is a maximum transmission delay of the HARQ.
  • the length of the reassembly timer is configured by a high-level Radio Resource Control (RRC) configuration, or other high-level signaling configuration, and since the reassembly timer has a maximum transmission delay of HARQ, when waiting for the reorganization After the timer length, if the segment at the receiving gap has not been successfully received, the segment of the gap has been abandoned because the HARQ reaches the maximum number of retransmissions, so the segment can abandon the waiting, which is regarded as Complete transmission failure to effectively reduce processing complexity and improve system efficiency.
  • the duration of the reassembly timer is not limited to the maximum transmission delay of the HARQ, for example, it may be a fixed duration pre-configured by the data receiving end.
  • the method further comprises: recording and maintaining one or more variables: a first variable, a second variable, and a third variable; wherein the first variable is used to record the received Variable information of the next SDU segment of the highest SDU segment, or variable information for recording the highest SDU segment received; the second variable is used to record the SDU segment interval corresponding to the reassembly timer Variable information of a boundary; the third variable is used to record variable information of a lower boundary of an SDU segmentation interval requiring a reorganization operation; wherein the variable information includes SN and/or SO information.
  • the first variable is used to record the received Variable information of the next SDU segment of the highest SDU segment, or variable information for recording the highest SDU segment received
  • the second variable is used to record the SDU segment interval corresponding to the reassembly timer Variable information of a boundary
  • the third variable is used to record variable information of a lower boundary of an SDU segmentation interval requiring a reorganization operation
  • the variable information includes
  • the first variable may be defined as a VR_receive_H variable
  • the second variable may be defined as an upper boundary (VR_reassemble_H)
  • the third variable may be defined as a lower boundary (VR_reassemble_L).
  • the highest SDU may refer to the SDU corresponding to the largest SN number in the new data received according to the window maintenance mechanism
  • the upper boundary of the segmentation interval may refer to the new maintenance data in the current segmentation interval according to the window maintenance mechanism.
  • the maximum SN; the lower boundary of the segmentation interval may refer to the smallest SN in the earlier transmission data in the current segmentation interval according to the window maintenance mechanism.
  • variable information includes the SO information, and may further include an SN to distinguish the SDU segments by the SO information; if each SDU in the same SDU When the SNs of the segments are different, the variable information may include only the SN, and may not include the SO information to distinguish the SDU segments by the SN.
  • the receiving condition of the SDU segment can be quickly obtained by using the above three variables, so as to improve data processing efficiency.
  • the lower boundary of the SDU segmentation interval requiring the reassembly operation is equal to the highest SDU segment received.
  • the lower boundary of the SDU segmentation interval requiring the reassembly operation is an SDU segment at the first reception gap of the receiving sequence
  • the lower boundary of the SDU segmentation interval requiring the reassembly operation is updated to the SDU segment at the next reception gap.
  • the lower boundary that is, VR_reassemble_L
  • the lower boundary may be updated in time to accurately receive the received SDU segment to improve the data processing performance of the data receiving end.
  • the upper boundary is the next SDU segment of the highest SDU segment received or the highest SDU segment received, at the reassembly timing
  • the upper boundary of the effective period of the device is unchanged;
  • the SDU segmentation interval corresponding to the reorganization timer is an interval determined by the lower boundary and the upper boundary.
  • the upper boundary that is, VR_reassemble_H
  • the upper boundary holds the next SDU segment of the highest received SDU segment currently received or the highest SDU segment is currently received.
  • the corresponding SDU segment is determined by the lower boundary and the upper boundary, thereby improving the performance of the reassembly timer.
  • VR_receive_H is updated each time according to the new SDU segment, ie, each time is set to the next segment of the latest SDU segment.
  • VR_reassemble_H is not updated during the reassembly timer and is bound to the current timer.
  • VR_reassemble_L can be updated during the reassembly timer.
  • stopping the reassembly timer includes:
  • the lower boundary is equal to the upper boundary, or the lower boundary is updated to an SDU segment after the upper boundary, determining that the SDU segments in the SDU segment interval are correctly received, stopping the reorganization Timer.
  • the reassembly timer is stopped, so that the reassembly timer is correctly stopped to improve data processing performance. For example, when VR_reassemble_L is greater than or equal to VR_reassemble_H, the gap is considered to be correctly received, because VR_reassemble_L is updated according to each newly received data. When the first gap indicated by VR_reassemble_L is correctly received, VR_reassemble_L is automatically updated to the next gap.
  • the reassembly timer expires, if the gap is still not successfully received, it means that the data HARQ transmission at the gap fails.
  • the segment is abandoned, that is, the segment fails completely, and there is no need to wait for the segment. Segmentation, you can update the state variable and clear the cache. In this case, you need to update VR_reassemble_L to the first receiving gap information after VR_reassemble_H. If there is no gap later, it will be directly updated to VR_receive_H.
  • all unsuccessfully reassembled SDU segments of the SDU segment interval are deleted, including:
  • the reassembly timer expires, and the lower boundary is an SDU segment before the upper boundary, it is determined that the SDU segment has an incorrectly received SDU segment, and the SDU segment interval is deleted. All SDU segments that have not been successfully reassembled, and update the lower boundary to the SDU segment corresponding to the upper boundary.
  • the lower boundary is an SDU segment before the upper boundary, and there is an SDU segment that is not correctly received before the upper boundary, and thus all unsuccessfully reassembled SDU segments of the SDU segment interval may be deleted.
  • updating the lower boundary to the SDU segment corresponding to the upper boundary for example, within the corresponding recording interval [VR_reassemble_L, VR_reassemble_H], there is still a receiving gap; at this time, the reassembly timer is within the recording interval, if If there is a fragmentation fragment that has not been reassembled successfully, the judgment method is that VR_reassemble_L is smaller than VR_reassemble_H, then the fragments can be deleted at this time, and VR_reassemble_L is updated to be VR_reassemble_H.
  • the method further includes:
  • the SDU of the first variable is recorded because the first variable records the current SDU segment or the next segment of the highest SDU segment, and the lower boundary is the latest reception gap, thereby restarting the reassembly timer.
  • the segment is the upper boundary of the corresponding interval.
  • the way to determine the receiving gap may be to compare whether VR_reassemble_L is equal to VR_receive_H. When the two are equal, it means that there is no receiving gap, and there is no need to restart the reassembly timer. When the two are not equal, it means that there is still a reception gap in the middle.
  • the reassembly timer is restarted, and the interval upper bound VR_reassemble_H of the timer is recorded to be equal to the current VR_receive_H.
  • a reassembly timer is also started for multiple gaps.
  • the re-establishment timer is started, and the SDU segmentation interval corresponding to the reassembly timer is determined, including:
  • the reassembly timer is started, and a minimum distance between two of the SNs in the cache is calculated, wherein the minimum distance between the two is two a minimum distance between the first distance and the second distance of the SN, where the first distance is a distance obtained by the large SN in the two SNs, and the second distance is a small SN of the two SNs and a preset maximum SN And the distance obtained by reducing the SN;
  • the maximum distance among all the minimum distances is selected, and the interval corresponding to the maximum distance is taken as the SDU segmentation interval corresponding to the reorganization timer.
  • the minimum distance between two of the SNs in the calculation cache may be that the minimum distance between the two is calculated for the SN in all the SDU segments in the cache, for example, the segments with SN3, SN5, and SN8 are cached. Then calculate the minimum distance between SN3 and SN5, and the minimum distance between SN3 and SN8, and the minimum distance between SN5 and SN8.
  • the minimum distance can also be understood as a minimum distance interval
  • the first distance can be understood as a first interval, that is, a small SN in the two SNs is used as a lower boundary, and a large SN is used as an upper boundary
  • the second distance can be understood.
  • the second interval that is, the large SN of the two SNs is the lower boundary
  • the small SN is the interval of the upper boundary
  • the minimum distance spacing is the interval of the first interval of the two SNs and the smallest of the second intervals.
  • the reassembly timer is started, and the SDU segmentation interval corresponding to the reassembly timer may be determined, if the segmentation information is determined according to the segmentation information. If there is a reception gap in the received sequence, the reassembly timer is started, and the largest SN and the minimum SN in the buffer are determined as the minimum interval among the two SDU segment intervals as the SDU segment interval corresponding to the reassembly timer.
  • the SN maximum value is 64.
  • the recording interval [1, 4] is the SDU segmentation interval corresponding to the reassembly timer, instead of the interval. [4,1].
  • the recording interval [63, 5] is the SDU segmentation interval corresponding to the reassembly timer, instead of the interval [5, 63].
  • the method further includes:
  • the reassembly timer stops or times out, if there is still a reception gap, the reassembly timer is restarted, and the minimum distance between two of the SNs in the cache is calculated, wherein the minimum distance between the two is a minimum distance between the first distance and the second distance of the two SNs, where the first distance is a distance obtained by the large SN in the two SNs, and the second distance is a small SN and a preset in the two SNs.
  • the sum of the maximum SN is reduced by the distance obtained by the SN;
  • the maximum distance among all the minimum distances is selected, and the interval corresponding to the maximum distance is taken as the SDU segmentation interval corresponding to the recombination timer that is restarted.
  • One way to determine the receiving gap is to see whether the segments in the current cache are received in order. If not, the reassembly timer is restarted, and the interval corresponding to the reassembly timer is recorded, and the interval is cached. The minimum SN and the highest SN are determined.
  • One of the most typical cases of receiving segments in sequence is that there is only one segment of the SN in the buffer, and the number of bytes of these segments is continuous, such as [0,200], [200,500], etc. At this time, it is determined as sequential reception, and other cases can be considered as out of order.
  • the reassembly timer stops or times out, if there is still a reception gap, the reassembly timer is restarted, and the minimum SN and the minimum SN in the buffer may be determined as the minimum interval among the two SDU segment intervals.
  • the SDU segmentation interval corresponding to the reassembly timer That is, from the Wrap around angle, there are two intervals between the two SNs, and the smaller one can be taken. For example, the maximum value of SN is 64. When there are segments of SN (1, 2, 4) appearing in the buffer, the interval [1, 4] is recorded, and when the cache appears (63, 0, 2, 5) ), then record the interval [63, 5], consider the SN Wrap around operation.
  • segment 1 [0, 200] is correctly received
  • segment 2 [200, 500] is lost, indicated by VR_reassemble_L as the first reception gap
  • segment 3 [500, 800] The reception is successful, and the next segment [800, higher] is the next segment expected to be received, indicated by VR_receive_H.
  • the segmentation information of the SDU segment of the SDU is obtained, and the segmentation information includes an SN. If it is determined that there is a reception gap according to the segmentation information, the reassembly timer is started, and the reassembly timer is determined. Corresponding SDU segmentation interval; if the SDU segment in the SDU segmentation interval is correctly received before the reassembly timer expires, stopping the reassembly timer; if the reassembly timer expires, deleting All unsuccessfully reorganized SDU segments of the SDU segmentation interval. Therefore, in the embodiment of the disclosure, the SDU segment processing can be performed according to the segmentation information of the SDU segment, and the data processing performance of the data receiving end can also be improved.
  • FIG. 3 is a structural diagram of a data receiving end according to an embodiment of the present disclosure. As shown in FIG. 3, the data receiving end 300 includes:
  • the obtaining module 301 is configured to acquire segmentation information of an SDU segment of the SDU, where the segmentation information includes a sequence number SN;
  • the initiating module 302 is configured to: if it is determined that there is a receiving gap according to the segmentation information, start a reassembly timer, and determine an SDU segmentation interval corresponding to the reassembly timer;
  • the stopping module 303 is configured to stop the reassembly timer if the SDU segments in the SDU segment interval are correctly received before the reassembly timer expires;
  • the deleting module 304 is configured to delete all unsuccessfully reorganized SDU segments of the SDU segment interval if the reassembly timer expires.
  • the segmentation information of the SDU segments within the same SDU includes the same SN; or
  • the segmentation information of the SDU segment within the same SDU includes different SNs.
  • the data receiving end 300 further includes:
  • the record maintenance module 305 is configured to record and maintain one or more of the following variables:
  • the first variable, the second variable, and the third variable are The first variable, the second variable, and the third variable;
  • the first variable is used to record variable information of a next SDU segment of the received highest SDU segment, or to record variable information of the highest SDU segment received;
  • the second variable is used to record variable information of an upper boundary of an SDU segmentation interval corresponding to the reassembly timer;
  • the third variable is used to record variable information of a lower boundary of an SDU segmentation interval that requires a reorganization operation
  • variable information includes SN and/or SO information.
  • the lower boundary of the SDU segmentation interval requiring the reassembly operation is equal to the highest SDU segment received.
  • the lower boundary of the SDU segmentation interval requiring the reassembly operation is an SDU segment at the first reception gap of the receiving sequence
  • the lower boundary of the SDU segmentation interval requiring the reassembly operation is updated to the SDU segment at the next reception gap.
  • the upper boundary is the next SDU segment of the highest SDU segment received or the highest SDU segment received, at the reassembly timing
  • the upper boundary of the effective period of the device is unchanged;
  • the SDU segmentation interval corresponding to the reorganization timer is an interval determined by the lower boundary and the upper boundary.
  • the stopping module 303 is configured to determine the SDU segmentation interval if the lower boundary is equal to the upper boundary, or the lower boundary is updated to an SDU segment after the upper boundary. The SDU segments within the block are correctly received, and the reassembly timer is stopped.
  • the deleting module 304 is configured to determine that the SDU segmentation interval is still incorrect if the reassembly timer expires and the lower boundary is an SDU segment before the upper boundary. Receiving the SDU segment, and deleting all unsuccessfully reassembled SDU segments of the SDU segment interval, and updating the lower boundary to the SDU segment corresponding to the upper boundary.
  • the data receiving end 300 further includes:
  • the first restarting module 306 is configured to: if the lower boundary is different from the SDU segment recorded by the first variable, determine that the receiving sequence has a receiving gap, restart the reassembly timer, and record the lower boundary The SDU segment recorded for the first variable.
  • the startup module 302 includes:
  • the initiating unit 3021 is configured to: if the receiving sequence has a receiving gap according to the segmentation information, start a reassembly timer, and calculate a minimum distance between two of the SNs in the cache, where between the two The minimum distance is the first distance of the two SNs and the minimum distance of the second distance, where the first distance is the distance obtained by the large SN in the two SNs, and the second distance is the small SN of the two SNs. The distance obtained by subtracting the SN from the sum of the preset maximum SNs;
  • the selecting unit 3022 is configured to select a maximum distance among all the minimum distances, and use an interval corresponding to the maximum distance as an SDU segmentation interval corresponding to the reorganization timer.
  • the data receiving end 300 further includes:
  • a second restarting module 307 configured to restart the reassembly timer and calculate a minimum distance between two SNs in the cache if the re-synchronization timer is stopped or timed out, where
  • the minimum distance between the two pairs is the first distance of the two SNs and the minimum distance of the second distance
  • the first distance is the distance obtained by the large SN decreasing SN in the two SNs
  • the second distance is The distance between the SN of the two SNs and the preset maximum SN is reduced by the SN;
  • the selecting module 308 is configured to select a maximum distance among all the minimum distances, and use an interval corresponding to the maximum distance as an SDU segmentation interval corresponding to the restarted reassembly timer.
  • the data receiving end 300 may be the data receiving end of any of the method embodiments in the embodiment of the disclosure, and any implementation manner of the data receiving end in the method embodiment of the disclosure may be used. It is implemented by the above-mentioned data receiving end 300 in this embodiment, and achieves the same beneficial effects, and details are not described herein again.
  • FIG. 8 is a structural diagram of another data receiving end according to an embodiment of the present disclosure.
  • the data receiving end includes: a processor 800, a transceiver 810, a memory 820, a user interface 830, and Bus interface, where:
  • the processor 800 is configured to read a program in the memory 820 and perform the following process:
  • segmentation information of an SDU segment of the SDU where the segmentation information includes a sequence number SN;
  • the transceiver 810 is configured to receive and transmit data under the control of the processor 800.
  • the bus architecture can include any number of interconnected buses and bridges, specifically linked by one or more processors represented by processor 800 and various circuits of memory represented by memory 820.
  • the bus architecture can also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and, therefore, will not be further described herein.
  • the bus interface provides an interface.
  • Transceiver 810 can be a plurality of components, including a transmitter and a receiver, providing means for communicating with various other devices on a transmission medium.
  • the user interface 830 may also be an interface capable of externally connecting the required devices, including but not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.
  • the processor 800 is responsible for managing the bus architecture and general processing, and the memory 820 can store data used by the processor 800 in performing operations.
  • the segmentation information of the SDU segments within the same SDU includes the same SN; or the segmentation information of the SDU segments within the same SDU includes different SNs.
  • the processor 800 is further configured to: record and maintain one or more variables: a first variable, a second variable, and a third variable; wherein the first variable is used for recording and receiving Variable information of the next SDU segment of the highest SDU segment, or variable information for recording the highest SDU segment received; the second variable is used to record the SDU segment interval corresponding to the reassembly timer Variable information of the upper boundary; the third variable is used to record variable information of a lower boundary of an SDU segmentation interval requiring a reorganization operation; wherein the variable information includes SN and/or SO information.
  • the first variable is used for recording and receiving Variable information of the next SDU segment of the highest SDU segment, or variable information for recording the highest SDU segment received
  • the second variable is used to record the SDU segment interval corresponding to the reassembly timer Variable information of the upper boundary
  • the third variable is used to record variable information of a lower boundary of an SDU segmentation interval requiring a reorganization operation
  • the lower boundary of the SDU segmentation interval requiring the reassembly operation is equal to the highest SDU segment received.
  • the upper boundary is the next SDU segment of the highest SDU segment received or the highest SDU segment received, at the reassembly timing
  • the upper boundary of the effective period of the device is unchanged;
  • the SDU segmentation interval corresponding to the reorganization timer is an interval determined by the lower boundary and the upper boundary.
  • stopping the reassembly timer includes:
  • the lower boundary is equal to the upper boundary, or the lower boundary is updated to an SDU segment after the upper boundary, determining that the SDU segments in the SDU segment interval are correctly received, stopping the reorganization Timer.
  • all unsuccessfully reassembled SDU segments of the SDU segment interval are deleted, including:
  • the reassembly timer expires, and the lower boundary is an SDU segment before the upper boundary, it is determined that the SDU segment has an incorrectly received SDU segment, and the SDU segment interval is deleted. All SDU segments that have not been successfully reassembled, and update the lower boundary to the SDU segment corresponding to the upper boundary.
  • the processor 800 is further configured to:
  • the lower boundary is different from the SDU segment recorded by the first variable, determining that the receiving sequence has a receiving gap, restarting the reassembly timer, and recording the lower boundary as the first variable record SDU segmentation.
  • the re-establishment timer is started, and the SDU segmentation interval corresponding to the reassembly timer is determined, including: Determining that there is a reception gap in the received sequence according to the segmentation information, starting a reassembly timer, and calculating a minimum distance between two of the SNs in the cache, wherein a minimum distance between the two is a SN of the two SNs a minimum distance between a distance and a second distance, wherein the first distance is a distance obtained by a large SN in the two SNs, and the second distance is a sum of a small SN of the two SNs and a preset maximum SN.
  • the distance obtained by the SN; the maximum distance among all the minimum distances is selected, and the interval corresponding to the maximum distance is taken as the SDU segmentation interval corresponding to the reassembly timer.
  • the processor 800 is further configured to: after the reassembly timer stops or times out, if there is still a reception gap, restart the reassembly timer, and calculate two or two of all SNs in the cache.
  • the minimum distance between the two is the first distance of the two SNs and the minimum distance of the second distance
  • the first distance is obtained by reducing the SN by the large SN of the two SNs
  • the distance is the distance obtained by subtracting the SN from the sum of the small SNs of the two SNs and the preset maximum SN; selecting the maximum distance among all the minimum distances, and the interval corresponding to the maximum distance is as described with respect to the restart
  • the SDU segmentation interval corresponding to the reassembly timer is the first distance of the two SNs and the minimum distance of the second distance
  • the data receiving end may be the data receiving end of any embodiment of the method embodiment in the embodiment of the disclosure, and any implementation manner of the data receiving end in the method embodiment of the disclosure may be The above data receiving end in the embodiment is implemented, and the same beneficial effects are achieved, and details are not described herein again.
  • the disclosed method and apparatus may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • each functional unit in various embodiments of the present disclosure may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the above software functional unit is stored in a storage medium and includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform part of the steps of the transceiving method of the various embodiments of the present disclosure.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, and the program code can be stored. Medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Provided in embodiments of the present disclosure are an SDU segmentation processing method and a data receiving end, the method comprising: acquiring segmentation information of SDU segmentation, the segmentation information comprising an SN; if it is determined according to said segmentation information that there exists a receiving gap, starting a restructuring timer, and determining an SDU segmentation region corresponding to the restructuring timer; if the SDU segments in said SDU segmentation region all correctly receive before the restructuring timer runs out, stopping the restructuring timer; if the restructuring timer runs out, then removing all SDU segments in the SDU segmentation region not successfully restructured.

Description

一种业务数据单元分段处理方法和数据接收端Service data unit segmentation processing method and data receiving end
相关申请的交叉引用Cross-reference to related applications
本申请主张在2017年6月15日在中国提交的中国专利申请号No.201710453985.7的优先权,其全部内容通过引用包含于此。The present application claims priority to Chinese Patent Application No. 201710453985.7, filed on Jun.
技术领域Technical field
本公开涉及通信技术领域,尤其涉及一种业务数据单元(Service Data Unit,SDU)分段处理方法和数据接收端。The present disclosure relates to the field of communications technologies, and in particular, to a Service Data Unit (SDU) segmentation processing method and a data receiving end.
背景技术Background technique
在未来通信系统(例如:5G系统)中无线链路层控制(Radio Link Control,RLC)对数据的处理取消了级联(concatenation)功能,即RLC SDU一对一的组成RLC协议数据单元(Protocol Data Unit,PDU)。且RLC层还取消了按序递交的功能,即RLC层可以非按序的将RLC SDU发送往高层,因此对于非确认模式(Unacknowledged Mode,UM)来说,完整传输的RLC SDU可以不需要携带任何的序列号(Serial Number,SN)信息。由于完整传输的SDU不携带SN信息,这样如何对SDU的SDU分段进行处理是目前急需要解决的技术问题。In the future communication system (for example, 5G system), the radio link control (RLC) processing of the data cancels the concatenation function, that is, the RLC SDU one-to-one constitutes the RLC protocol data unit (Protocol) Data Unit, PDU). The RLC layer also cancels the function of delivering in order, that is, the RLC layer can send the RLC SDU to the upper layer in an unordered manner. Therefore, for the Unacknowledged Mode (UM), the completely transmitted RLC SDU does not need to be carried. Any Serial Number (SN) information. Since the SDU of the complete transmission does not carry the SN information, how to process the SDU segment of the SDU is a technical problem that needs to be solved urgently.
发明内容Summary of the invention
本公开的目的在于提供一种SDU分段处理方法和数据接收端,以解决如何对SDU的SDU分段进行处理的问题。An object of the present disclosure is to provide an SDU segmentation processing method and a data receiving end to solve the problem of how to process SDU segments of an SDU.
为了达到上述目的,本公开实施例提供一种SDU分段处理方法,包括:获取SDU的SDU分段的分段信息,所述分段信息包括序列号SN;若根据所述分段信息确定存在接收缺口,则启动重组定时器,并确定所述重组定时器对应的SDU分段区间;若在所述重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器;若所述重组定时器超时,则删除所述SDU分段区间的所有未成功重组的SDU分段。In order to achieve the above object, an embodiment of the present disclosure provides an SDU segmentation processing method, including: acquiring segmentation information of an SDU segment of an SDU, the segmentation information including a sequence number SN; and determining presence according to the segmentation information Receiving the gap, starting a reassembly timer, and determining an SDU segmentation interval corresponding to the reassembly timer; if the SDU segment in the SDU segmentation interval is correctly received before the reassembly timer expires, stopping And the reassembly timer; if the reassembly timer expires, deleting all unsuccessfully reassembled SDU segments of the SDU segmentation interval.
在一些可选的实施例中,同一SDU内的SDU分段的分段信息包括的SN相同;或者同一SDU内的SDU分段的分段信息包括的SN不同。In some optional embodiments, the segmentation information of the SDU segments within the same SDU includes the same SN; or the segmentation information of the SDU segments within the same SDU includes different SNs.
在一些可选的实施例中,所述方法还包括:记录并维护如下一个或者多个变量:第一变量、第二变量和第三变量;其中,所述第一变量用于记录接收到的最高SDU分段的下一个SDU分段的变量信息,或者用于记录接收到的最高SDU分段的变量信息;所述第二变量用于记录所述重组定时器对应的SDU分段区间的上边界的变量信息;所述第三变量用于记录需要重组操作的SDU分段区间的下边界的变量信息;其中,所述变量信息包括SN和/或SO信息。In some optional embodiments, the method further comprises: recording and maintaining one or more variables: a first variable, a second variable, and a third variable; wherein the first variable is used to record the received Variable information of the next SDU segment of the highest SDU segment, or variable information for recording the highest SDU segment received; the second variable is used to record the SDU segment interval corresponding to the reassembly timer Variable information of a boundary; the third variable is used to record variable information of a lower boundary of an SDU segmentation interval requiring a reorganization operation; wherein the variable information includes SN and/or SO information.
在一些可选的实施例中,若接收序列不存在接收缺口或者所有接收缺口均已经正确接收,则所述需要重组操作的SDU分段区间的下边界等于接收到的最高SDU分段的下一个SDU分段,或者接收到的最高SDU分段;若接收序列中存在接收缺口,则所述需要重组操作的SDU分段区间的下边界为所述接收序列的第一个接收缺口处的SDU分段;若所述第一个缺口处的SDU分段正确接收,则所述需要重组操作的SDU分段区间的下边界更新为下一个接收缺口处的SDU分段。In some optional embodiments, if the receiving sequence does not have a receiving gap or all receiving gaps have been correctly received, the lower boundary of the SDU segmentation interval requiring the reassembly operation is equal to the next one of the highest SDU segments received. SDU segment, or the highest SDU segment received; if there is a receiving gap in the receiving sequence, the lower boundary of the SDU segment interval requiring the reassembly operation is the SDU segment at the first receiving slot of the receiving sequence a segment; if the SDU segment at the first gap is correctly received, the lower boundary of the SDU segmentation interval requiring the reassembly operation is updated to the SDU segment at the next reception gap.
在一些可选的实施例中,若启动所述重组定时器,则所述上边界为接收到的最高SDU分段的下一个SDU分段或者接收到的最高SDU分段,在所述重组定时器有效期限所述上边界不变;且所述重组定时器对应的SDU分段区间为由所述下边界和所述上边界决定的区间。In some optional embodiments, if the reassembly timer is started, the upper boundary is the next SDU segment of the highest SDU segment received or the highest SDU segment received, at the reassembly timing The upper boundary of the validity period is unchanged; and the SDU segmentation interval corresponding to the reorganization timer is an interval determined by the lower boundary and the upper boundary.
在一些可选的实施例中,所述若在所述重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器,包括:若所述下边界等于所述上边界,或者所述下边界更新为所述上边界之后的SDU分段,则确定所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器。In some optional embodiments, if the SDU segment in the SDU segment interval is correctly received before the reassembly timer expires, stopping the reassembly timer, if: If the boundary is equal to the upper boundary, or the lower boundary is updated to the SDU segment after the upper boundary, and then it is determined that the SDU segments in the SDU segment interval are all correctly received, the reassembly timer is stopped.
在一些可选的实施例中,所述若所述重组定时器超时,则删除所述SDU分段区间的所有未成功重组的SDU分段,包括:若所述重组定时器超时,且所述下边界为所述上边界之前的SDU分段,则确定所述SDU分段区间还存在未正确接收的SDU分段,并删除所述SDU分段区间的所有未成功重组的 SDU分段,并将所述下边界更新为所述上边界对应的SDU分段。In some optional embodiments, if the reassembly timer expires, deleting all unsuccessfully reassembled SDU segments of the SDU segmentation interval, including: if the reassembly timer expires, The lower boundary is an SDU segment before the upper boundary, and then it is determined that there are still SDU segments that are not correctly received in the SDU segment interval, and all unsuccessfully reassembled SDU segments of the SDU segment interval are deleted, and Updating the lower boundary to an SDU segment corresponding to the upper boundary.
在一些可选的实施例中,所述方法还包括:若所述下边界与所述第一变量记录的SDU分段不相同时,则确定接收序列存在接收缺口,并重启所述重组定时器,以及记录所述下边界为所述第一变量记录的SDU分段。In some optional embodiments, the method further includes: if the lower boundary is different from the SDU segment recorded by the first variable, determining that there is a reception gap in the received sequence, and restarting the reassembly timer And recording the SDU segment recorded by the lower boundary as the first variable.
在一些可选的实施例中,所述若根据所述分段信息确定接收序列存在接收缺口,则启动重组定时器,并确定所述重组定时器对应的SDU分段区间,包括:所述若根据所述分段信息确定接收序列存在接收缺口,则启动重组定时器,并计算缓存中所有SN中两两之间的最小距离,其中,两两之间的最小距离距为两个SN的第一距离和第二距离中的最小距离,所述第一距离为两个SN中大SN减小SN得到的距离,所述第二距离为两个SN中小SN与预设最大SN之和减大SN得到的距离;选择所有最小距离中最大距离,并将所述最大距离对应的区间作为与所述重组定时器对应的SDU分段区间。In some optional embodiments, if it is determined that the receiving sequence has a receiving gap according to the segmentation information, the re-establishment timer is started, and the SDU segmentation interval corresponding to the reassembly timer is determined, including: Determining that there is a reception gap in the received sequence according to the segmentation information, starting a reassembly timer, and calculating a minimum distance between two of the SNs in the cache, wherein a minimum distance between the two is a SN of the two SNs a minimum distance between a distance and a second distance, wherein the first distance is a distance obtained by a large SN in the two SNs, and the second distance is a sum of a small SN of the two SNs and a preset maximum SN. The distance obtained by the SN; the maximum distance among all the minimum distances is selected, and the interval corresponding to the maximum distance is taken as the SDU segmentation interval corresponding to the reassembly timer.
在一些可选的实施例中,所述方法还包括:在所述重组定时器停止或者超时后,若还存在接收缺口,则重启所述重组定时器,并计算缓存中所有SN中两两之间的最小距离,其中,两两之间的最小距离距为两个SN的第一距离和第二距离中的最小距离,所述第一距离为两个SN中大SN减小SN得到的距离,所述第二距离为两个SN中小SN与预设最大SN之和减大SN得到的距离;选择所有最小距离中最大距离,并将所述最大距离对应的区间作为与重启的所述重组定时器对应的SDU分段区间。In some optional embodiments, the method further includes: after the reassembly timer stops or times out, if there is still a reception gap, restarting the reassembly timer, and calculating two or two of all SNs in the cache. The minimum distance between the two, wherein the minimum distance between the two is the first distance of the two SNs and the minimum distance of the second distance, the first distance is the distance obtained by the large SN in the two SNs to reduce the SN The second distance is a distance obtained by subtracting the SN from the sum of the small SNs of the two SNs and the preset maximum SN; selecting the maximum distance among all the minimum distances, and using the interval corresponding to the maximum distance as the reorganization with the restart The SDU segmentation interval corresponding to the timer.
本公开实施例还提供一种数据接收端,包括:获取模块,用于获取SDU的SDU分段的分段信息,所述分段信息包括序列号SN;启动模块,用于若根据所述分段信息确定存在接收缺口,则启动重组定时器,并确定所述重组定时器对应的SDU分段区间;停止模块,用于若在所述重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器;删除模块,用于若所述重组定时器超时,则删除所述SDU分段区间的所有未成功重组的SDU分段。The embodiment of the present disclosure further provides a data receiving end, comprising: an obtaining module, configured to acquire segmentation information of an SDU segment of the SDU, where the segmentation information includes a sequence number SN; and a startup module, if If the segment information determines that there is a reception gap, the reassembly timer is started, and the SDU segmentation interval corresponding to the reassembly timer is determined; and the stopping module is configured to: before the reassembly timer expires, the SDU segmentation interval If the SDU segment is correctly received, the reassembly timer is stopped; and the deleting module is configured to delete all unsuccessfully reassembled SDU segments of the SDU segment interval if the reassembly timer expires.
在一些可选的实施例中,同一SDU内的SDU分段的分段信息包括的SN相同;或者同一SDU内的SDU分段的分段信息包括的SN不同。In some optional embodiments, the segmentation information of the SDU segments within the same SDU includes the same SN; or the segmentation information of the SDU segments within the same SDU includes different SNs.
在一些可选的实施例中,所述数据接收端还包括:记录维护模块,用于 记录并维护如下一个或者多个变量:第一变量、第二变量和第三变量;其中,所述第一变量用于记录接收到的最高SDU分段的下一个SDU分段的变量信息,或者用于记录接收到的最高SDU分段的变量信息;所述第二变量用于记录所述重组定时器对应的SDU分段区间的上边界的变量信息;所述第三变量用于记录需要重组操作的SDU分段区间的下边界的变量信息;其中,所述变量信息包括SN和/或SO信息。In some optional embodiments, the data receiving end further includes: a record maintaining module, configured to record and maintain one or more variables: a first variable, a second variable, and a third variable; wherein the One variable is used to record variable information of the next SDU segment of the highest SDU segment received, or variable information for recording the highest SDU segment received; the second variable is used to record the reassembly timer Variable information of an upper boundary of a corresponding SDU segmentation interval; the third variable is used to record variable information of a lower boundary of an SDU segmentation interval requiring a reorganization operation; wherein the variable information includes SN and/or SO information.
在一些可选的实施例中,若接收序列中不存在接收缺口或者所有接收缺口均已经正确接收,则所述需要重组操作的SDU分段区间的下边界等于接收到的最高SDU分段的下一个SDU分段,或者接收到的最高SDU分段;若接收序列中存在接收缺口,则所述需要重组操作的SDU分段区间的下边界为所述接收序列的第一个接收缺口处的SDU分段;若所述第一个缺口处的SDU分段正确接收,则所述需要重组操作的SDU分段区间的下边界更新为下一个接收缺口处的SDU分段。In some optional embodiments, if there is no receiving gap in the receiving sequence or all receiving gaps have been correctly received, the lower boundary of the SDU segmentation interval requiring the reassembly operation is equal to the highest SDU segment received. An SDU segment, or the highest SDU segment received; if there is a reception gap in the received sequence, the lower boundary of the SDU segmentation interval requiring the reassembly operation is the SDU at the first reception gap of the received sequence Segmentation; if the SDU segment at the first gap is correctly received, the lower boundary of the SDU segmentation interval requiring the reassembly operation is updated to the SDU segment at the next reception gap.
在一些可选的实施例中,若启动所述重组定时器,则所述上边界为接收到的最高SDU分段的下一个SDU分段或者接收到的最高SDU分段,在所述重组定时器有效期限所述上边界不变;且所述重组定时器对应的SDU分段区间为由所述下边界和所述上边界决定的区间。In some optional embodiments, if the reassembly timer is started, the upper boundary is the next SDU segment of the highest SDU segment received or the highest SDU segment received, at the reassembly timing The upper boundary of the validity period is unchanged; and the SDU segmentation interval corresponding to the reorganization timer is an interval determined by the lower boundary and the upper boundary.
在一些可选的实施例中,所述停止模块用于若所述下边界等于所述上边界,或者所述下边界更新为所述上边界之后的SDU分段,则确定所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器。In some optional embodiments, the stopping module is configured to determine the SDU segment if the lower boundary is equal to the upper boundary, or the lower boundary is updated to an SDU segment after the upper boundary. If the SDU segments in the interval are correctly received, the reassembly timer is stopped.
在一些可选的实施例中,所述删除模块用于若所述重组定时器超时,且所述下边界为所述上边界之前的SDU分段,则确定所述SDU分段区间还存在未正确接收的SDU分段,并删除所述SDU分段区间的所有未成功重组的SDU分段,并将所述下边界更新为所述上边界对应的SDU分段。In some optional embodiments, the deleting module is configured to determine that the SDU segmentation interval still exists if the reassembly timer expires and the lower boundary is an SDU segment before the upper boundary. The SDU segment is correctly received, and all unsuccessfully reassembled SDU segments of the SDU segment interval are deleted, and the lower boundary is updated to the SDU segment corresponding to the upper boundary.
在一些可选的实施例中,所述数据接收端还包括:第一重启模块,用于若所述下边界与所述第一变量记录的SDU分段不相同时,则确定接收序列存在接收缺口,并重启所述重组定时器,以及记录所述下边界为所述第一变量记录的SDU分段。In some optional embodiments, the data receiving end further includes: a first restarting module, configured to determine that the receiving sequence is received if the lower boundary is different from the SDU segment recorded by the first variable Notching, and restarting the reassembly timer, and recording the SDU segment recorded by the lower boundary as the first variable.
在一些可选的实施例中,所述启动模块,包括:启动单元,用于所述若 根据所述分段信息确定接收序列存在接收缺口,则启动重组定时器,并计算缓存中所有SN中两两之间的最小距离,其中,两两之间的最小距离距为两个SN的第一距离和第二距离中的最小距离,所述第一距离为两个SN中大SN减小SN得到的距离,所述第二距离为两个SN中小SN与预设最大SN之和减大SN得到的距离;选择单元,用于选择所有最小距离中最大距离,并将所述最大距离对应的区间作为与所述重组定时器对应的SDU分段区间。In some optional embodiments, the initiating module includes: a starting unit, configured to: if it is determined according to the segmentation information, that a receiving sequence has a receiving gap, start a reassembly timer, and calculate all SNs in the cache. The minimum distance between the two, wherein the minimum distance between the two is the first distance of the two SNs and the minimum distance of the second distance, the first distance being the large SN of the two SNs decreasing SN The obtained distance, the second distance is a distance obtained by subtracting the SN from the sum of the small SN and the preset maximum SN in the two SNs; the selecting unit is configured to select the maximum distance among all the minimum distances, and corresponding to the maximum distance The interval is an SDU segmentation interval corresponding to the reorganization timer.
在一些可选的实施例中,所述数据接收端还包括:第二重启模块,用于在所述重组定时器停止或者超时后,若还存在接收缺口,则重启所述重组定时器,并计算缓存中所有SN中两两之间的最小距离,其中,两两之间的最小距离距为两个SN的第一距离和第二距离中的最小距离,所述第一距离为两个SN中大SN减小SN得到的距离,所述第二距离为两个SN中小SN与预设最大SN之和减大SN得到的距离;选择模块,用于选择所有最小距离中最大距离,并将所述最大距离对应的区间作为与重启的所述重组定时器对应的SDU分段区间。In some optional embodiments, the data receiving end further includes: a second restarting module, configured to restart the reassembly timer if there is still a receiving gap after the reassembly timer stops or times out, and Calculating a minimum distance between two of the SNs in the cache, wherein the minimum distance between the two pairs is the first distance of the two SNs and the minimum distance of the second distance, the first distance being two SNs The medium-large SN reduces the distance obtained by the SN, the second distance is the distance between the small SN of the two SNs and the preset maximum SN, and the distance obtained by subtracting the SN; the selection module is configured to select the maximum distance among all the minimum distances, and The interval corresponding to the maximum distance is used as an SDU segmentation interval corresponding to the restarted reassembly timer.
本公开实施例还提供一种数据接收端,包括处理器、收发机、存储器、用户接口和总线接口,其中,所述处理器,用于读取所述存储器中的程序,执行下列过程:获取SDU的SDU分段的分段信息,所述分段信息包括序列号SN;若根据所述分段信息确定存在接收缺口,则启动重组定时器,并确定所述重组定时器对应的SDU分段区间;若在所述重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器;若所述重组定时器超时,则删除所述SDU分段区间的所有未成功重组的SDU分段。The embodiment of the present disclosure further provides a data receiving end, including a processor, a transceiver, a memory, a user interface, and a bus interface, wherein the processor is configured to read a program in the memory, and perform the following process: acquiring The segmentation information of the SDU segment of the SDU, the segmentation information includes a sequence number SN; if it is determined that there is a reception gap according to the segmentation information, the reassembly timer is started, and the SDU segment corresponding to the reassembly timer is determined. Interval; if the SDU segment in the SDU segment interval is correctly received before the reassembly timer expires, stopping the reassembly timer; if the reassembly timer expires, deleting the SDU segment All unsuccessfully reorganized SDU segments of the interval.
本公开实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现以下步骤:获取SDU的SDU分段的分段信息,所述分段信息包括序列号SN;若根据所述分段信息确定存在接收缺口,则启动重组定时器,并确定所述重组定时器对应的SDU分段区间;若在所述重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器;若所述重组定时器超时,则删除所述SDU分段区间的所有未成功重组的SDU分段。The embodiment of the present disclosure further provides a computer readable storage medium having stored thereon a computer program, the program being executed by the processor to: obtain segmentation information of an SDU segment of an SDU, the segmentation information including a sequence No. SN; if it is determined that there is a reception gap according to the segmentation information, start a reassembly timer, and determine an SDU segmentation interval corresponding to the reassembly timer; if the reassembly timer expires, the SDU segmentation If the SDU segments in the interval are correctly received, the reassembly timer is stopped; if the reassembly timer expires, all unsuccessfully reassembled SDU segments of the SDU segment interval are deleted.
本公开的上述技术方案至少具有如下有益效果:本公开实施例中,获取 SDU的SDU分段的分段信息,所述分段信息包括SN;若根据所述分段信息确定存在接收缺口,则启动重组定时器,并确定所述重组定时器对应的SDU分段区间;若在所述重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器;若所述重组定时器超时,则删除所述SDU分段区间的所有未成功重组的SDU分段。这样本公开实施例可以实现根据SDU分段的分段信息进行对SDU分段进行处理,且还可以提高数据接收端的数据处理性能。The foregoing technical solution of the present disclosure has at least the following beneficial effects: in the embodiment of the present disclosure, acquiring segmentation information of an SDU segment of an SDU, the segmentation information includes an SN; and if it is determined that a reception gap exists according to the segmentation information, Starting a reassembly timer, and determining an SDU segmentation interval corresponding to the reassembly timer; if the SDU segment in the SDU segmentation interval is correctly received before the reassembly timer expires, stopping the reassembly timing If the reassembly timer expires, all unsuccessfully reassembled SDU segments of the SDU segmentation interval are deleted. Thus, the embodiment of the present disclosure can implement processing of the SDU segment according to the segmentation information of the SDU segment, and can also improve the data processing performance of the data receiving end.
附图说明DRAWINGS
图1是本公开实施例可应用的网络结构示意图;1 is a schematic structural diagram of a network applicable to an embodiment of the present disclosure;
图2是本公开实施例提供的一种SDU分段处理方法的流程图;2 is a flowchart of an SDU segment processing method according to an embodiment of the present disclosure;
图3是本公开实施例提供的一种数据接收端的结构图;3 is a structural diagram of a data receiving end according to an embodiment of the present disclosure;
图4是本公开实施例提供的一种数据接收端的结构图;4 is a structural diagram of a data receiving end according to an embodiment of the present disclosure;
图5是本公开实施例提供的一种数据接收端的结构图;FIG. 5 is a structural diagram of a data receiving end according to an embodiment of the present disclosure;
图6是本公开实施例提供的一种数据接收端的结构图;FIG. 6 is a structural diagram of a data receiving end according to an embodiment of the present disclosure;
图7是本公开实施例提供的一种数据接收端的结构图;FIG. 7 is a structural diagram of a data receiving end according to an embodiment of the present disclosure;
图8是本公开实施例提供的一种数据接收端的结构图。FIG. 8 is a structural diagram of a data receiving end according to an embodiment of the present disclosure.
具体实施方式detailed description
为使本公开要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。The technical problems, the technical solutions, and the advantages of the present invention will be more clearly described in conjunction with the accompanying drawings and specific embodiments.
参见图1,图1是本公开实施例可应用的网络结构示意图,如图1所示,包括数据接收端11和数据发送端12,其中,数据接收端11可以是用户终端(User Equipment,UE)或者网络侧设备,而数据发送端12可以是网络侧设备或者UE,其中,附图中以数据接收端11为UE,数据发送端12为网络侧设备进行举例。另外,本公开实施例中,UE可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等终端侧设备,需要说明的是,在本公 开实施例中并不限定UE的具体类型。网络侧设备可以是基站,例如:宏站、LTE eNB、5G NR NB等;网络侧设备也可以是小站,如低功率节点(LPN:low power node)pico、femto等小站,或者网络侧设备可以接入点(AP,access point);基站也可以是中央单元(CU,central unit)与其管理是和控制的多个传输接收点(TRP,Transmission Reception Point)共同组成的网络节点。需要说明的是,在本公开实施例中并不限定网络侧设备的具体类型。Referring to FIG. 1 , FIG. 1 is a schematic diagram of a network structure applicable to an embodiment of the present disclosure. As shown in FIG. 1 , the data receiving end 11 and the data sending end 12 are included. The data receiving end 11 may be a user equipment (User Equipment, UE). Or the network side device, and the data transmitting end 12 may be a network side device or a UE. The data receiving end 11 is a UE, and the data transmitting end 12 is a network side device. In addition, in the embodiment of the present disclosure, the UE may be a mobile phone, a tablet personal computer, a laptop computer, a personal digital assistant (PDA), and a mobile Internet device (Mobile Internet Device, The terminal side device such as the MID) or the wearable device, it should be noted that the specific type of the UE is not limited in the embodiment of the present disclosure. The network side device may be a base station, for example, a macro station, an LTE eNB, a 5G NR NB, etc.; the network side device may also be a small station, such as a low power node (LPN: low power node) pico, femto, etc., or a network side. The device can be an access point (AP); the base station can also be a network node composed of a central unit (CU) and a plurality of transmission reception points (TRPs) that are managed and controlled by the central unit (CU). It should be noted that the specific type of the network side device is not limited in the embodiment of the present disclosure.
请参见图2,图2是本公开实施例提供的一种SDU分段处理方法的流程图,如图2所示,包括:201、获取SDU的SDU分段的分段信息,所述分段信息包括序列号SN。Referring to FIG. 2, FIG. 2 is a flowchart of a method for processing an SDU segment according to an embodiment of the present disclosure. As shown in FIG. 2, the method includes: 201. Obtain segmentation information of an SDU segment of an SDU. The information includes the serial number SN.
202、若根据所述分段信息确定存在接收缺口(Gap),则启动重组定时器,并确定所述重组定时器对应的SDU分段区间。202. If it is determined that there is a reception gap (Gap) according to the segmentation information, start a reassembly timer, and determine an SDU segmentation interval corresponding to the reassembly timer.
203、若在所述重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器。203. If the SDU segments in the SDU segment interval are correctly received before the reassembly timer expires, stopping the reassembly timer.
204、若所述重组定时器超时,则删除所述SDU分段区间的所有未成功重组的SDU分段。204. If the reassembly timer expires, delete all unsuccessfully reassembled SDU segments of the SDU segmentation interval.
其中,步骤201中的SDU分段可以是数据接收端正确接收的SDU分段。另外,本公开实施例中,完整发送的SDU可以不携带SN。The SDU segment in step 201 may be an SDU segment correctly received by the data receiving end. In addition, in the embodiment of the present disclosure, the SDU that is completely sent may not carry the SN.
而上述分段信息除了包括SN之外,还可以包括其他信息,例如:SO信息、LI信息或者FI信息等,对此本公开实施例不作限定。且上述SN可以表示SDU分段所属的SDU的序列,或者可以表示SUD分段的序号。The foregoing segmentation information may include other information, such as the SO information, the LI information, or the FI information, in addition to the SN. And the SN may represent a sequence of SDUs to which the SDU segment belongs, or may represent a sequence number of the SUD segment.
上述根据所述分段信息确定存在接收缺口可以是,根据上述分段信息确定数据接收端存在未正确接收的SDU分段,或者可以是确定接收序列中存在接收缺口。例如:接收在SDU分段包括分段1、分段3和分段4,则可以确定分段2未正确接收,即存在接收缺口。而上述启动重组定时器的时长可以是预先配置的。另外,上述SDU分段区间可以是包括上述接收缺口的区间,例如:接收在SDU分段包括分段1、分段3和分段4,则该分段区间可以是分段1至分段3之间的区间,或者分段2至分段3之间的区间等等。且上述SDU分段区间可以包括多个接收缺口,即可以实现针对一个或者多个SDU分段的接收缺口启动重组定时器。The determining that the receiving gap exists according to the segmentation information may be: determining, according to the segmentation information, that the data receiving end has an SDU segment that is not correctly received, or determining that a receiving gap exists in the receiving sequence. For example, if the received SDU segment includes segment 1, segment 3, and segment 4, it can be determined that segment 2 is not correctly received, that is, there is a reception gap. The duration of starting the reassembly timer may be pre-configured. In addition, the foregoing SDU segmentation interval may be an interval including the foregoing reception gap, for example, the received segment includes the segment 1, the segment 3, and the segment 4, and the segment interval may be segment 1 to segment 3. The interval between, or the interval between segment 2 and segment 3, and so on. The foregoing SDU segmentation interval may include multiple reception gaps, that is, a reception gap initiation reassembly timer may be implemented for one or more SDU segments.
通过步骤203可以实现若重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,即重组定时器对应区间的所有接收缺口(Gap)都填满,则停止所述重组定时器,从而可以减少不必要的计时,以节约功耗。In step 203, if the SDU segments in the SDU segment interval are correctly received before the reassembly timer expires, that is, all the reception gaps (Gap) in the corresponding interval of the reassembly timer are filled, the reassembly timing is stopped. This can reduce unnecessary timing to save power.
通过步骤204若重组定时器超时,则删除所述SDU分段区间的所有未成功重组的SDU分段,因为重组定时器超时,则表示在重组定时器超时时,上述SDU分段区间还存在未正确接收的SDU分段,从而可以删除所述SDU分段区间的所有未成功重组的SDU分段,有效的降低处理复杂度,提升了系统效率。If the reassembly timer expires in step 204, all unsuccessfully reorganized SDU segments of the SDU segmentation interval are deleted. Because the reassembly timer expires, the SDU segmentation interval still exists when the reassembly timer expires. The SDU segment is correctly received, so that all unsuccessfully reorganized SDU segments of the SDU segment interval can be deleted, which effectively reduces processing complexity and improves system efficiency.
需要说明的是,本公开实施例中,SDU可以是RLC层的SDU,且本公开实施例可以应用于数据接收端的UM模式。且数据接收端还可以使用SDU的SDU分段的分段信息进行重组。其中,上述重组可以是按照SDU分段的分段顺序进行重组,且重组后得到的SDU可以乱序递交给高层。It should be noted that, in the embodiment of the present disclosure, the SDU may be an SDU of the RLC layer, and the embodiment of the present disclosure may be applied to the UM mode of the data receiving end. And the data receiving end can also perform reassembly using the segmentation information of the SDU segment of the SDU. The foregoing reorganization may be performed according to the segmentation order of the SDU segments, and the SDUs obtained after the reorganization may be delivered to the upper layer in an out-of-order manner.
在一些可选的实施例中,同一SDU内的SDU分段的分段信息包括的SN相同;或者同一SDU内的SDU分段的分段信息包括的SN不同。In some optional embodiments, the segmentation information of the SDU segments within the same SDU includes the same SN; or the segmentation information of the SDU segments within the same SDU includes different SNs.
该实施方式中,可以实现同的SDU内各SDU分段的携带的SN是相同的,例如:针对第一个SDU,SN=0,如果该SDU被分段为三个段,则该SDU的三个分段均使用SN=0。另外,该实施方式中,还可以实现同一SDU内的不同SDU分段携带的SN不同,例如:针对第一个SDU,如果该SDU被分段为三个段,则该SDU的三个分段均使用SN=0、SN=1和SN=2。In this implementation manner, the carried SNs of the SDU segments in the same SDU may be the same, for example, for the first SDU, SN=0, if the SDU is segmented into three segments, the SDU is All three segments use SN=0. In addition, in this implementation manner, the SNs carried by different SDU segments in the same SDU may be different, for example, for the first SDU, if the SDU is segmented into three segments, the three segments of the SDU are Both SN=0, SN=1, and SN=2 are used.
另外,所述分段信息还包括如下一项或者多项:分段偏移(Segment Offset,SO)信息、LI和FI。In addition, the segmentation information further includes one or more of the following: segment offset (SO) information, LI, and FI.
其中,上述SO信息用于指示SDU分段的分割偏移,LI用于指示SDU分段的长度,FI用于指示SDU分段的类型。例如:对于同一SDU内各SDU分段的SN相同的情况,针对第一个SDU,SN=0,如果该SDU被分段为三个段,则该SDU的三个分段均使用SN=0,以不同的SO和长度信息LI,来指示不同的分段,以及FI信息来指示分段类型,例如SN均为0,三个分段的SO和长度信息LI分别为:第一个分段不需要携带SO,因为SO默认为0,LI为200字节,FI指示这是第一个分段,第二个分段,SO=200字节,LI=300字节,FI指示这是中间分段,最后一个分段,SO=500字节,LI=500字节, FI指示最后一个分段。按照这样的分段情况,接收端可以正确的对分段进行排序和重组。The foregoing SO information is used to indicate a splitting offset of the SDU segment, the LI is used to indicate the length of the SDU segment, and the FI is used to indicate the type of the SDU segment. For example, for the case where the SNs of the SDU segments in the same SDU are the same, SN=0 for the first SDU, and if the SDU is segmented into three segments, the three segments of the SDU use SN=0. Different SO and length information LI are used to indicate different segments, and FI information is used to indicate segment type, for example, SN is 0, and three segments of SO and length information LI are: first segment No need to carry SO, because SO defaults to 0, LI is 200 bytes, FI indicates that this is the first segment, the second segment, SO=200 bytes, LI=300 bytes, FI indicates that this is the middle Segmentation, the last segment, SO = 500 bytes, LI = 500 bytes, FI indicates the last segment. According to such segmentation, the receiving end can correctly sort and reorganize the segments.
又例如:对于同一SDU内不同SDU分段的SN不同,按照上述相同的例子,由于对于不同的SDU分段携带不同的SN,并以FI指示分段类型,也就是说第一个分段,不需要携带SO,因为SO默认为0,LI为200字节,FI指示这是第一个分段,SN=0;第二个分段,SO=200字节,LI=300字节,FI指示这是中间分段,SN=1;第三个分段,最后一个分段,SO=500字节,LI=500字节,FI指示最后一个分段,SN=2。按照这样的分段情况,接收端也可以正确的对分段进行排序和重组。For another example, for different SNs of different SDU segments in the same SDU, according to the same example as above, since different SNs are carried for different SDU segments, and the segment type is indicated by FI, that is, the first segment, No need to carry SO, because SO defaults to 0, LI is 200 bytes, FI indicates that this is the first segment, SN=0; the second segment, SO=200 bytes, LI=300 bytes, FI Indicates that this is an intermediate segment, SN=1; the third segment, the last segment, SO=500 bytes, LI=500 bytes, FI indicates the last segment, SN=2. According to such segmentation, the receiving end can also correctly sort and reorganize the segments.
该实施方式中,通过上述SO信息、LI和FI可以准确指示各SDU分段的位置,从而准确进行重组,以及识别接收缺口。且该实施方式中,结合上述SN相同或者不同的两种实施方式均可以正确工作,且同一SDU内各SDU分段的SN相同的实施方式中,可以消耗的SN空间更小。In this embodiment, the location of each SDU segment can be accurately indicated by the above-described SO information, LI, and FI, thereby accurately performing reassembly and identifying the reception gap. In this embodiment, the two embodiments that are the same or different in combination with the SN can work correctly, and the SN space that can be consumed is smaller in the same embodiment in which the SNs of the SDU segments in the same SDU are the same.
在一些可选的实施例中,所述重组定时器的时长为HARQ的最大传输时延。In some optional embodiments, the duration of the reassembly timer is a maximum transmission delay of the HARQ.
其中,上述重组定时器的长度由高层无线资源控制(Radio Resource Control,RRC)配置,或者其他高层信令配置,且由于重组定时器的时长为HARQ的最大传输时延,这样当等待过该重组定时器长度之后,如果接收缺口处的分段还没有成功接收,则该缺口的分段已经因为HARQ达到最大重传次数仍未成功而被放弃传输,因此该缺口处分段可以放弃等待,视为彻底传输失败,以有效的降低处理复杂度,提升了系统效率。当然,本公开实施例中,上述重组定时器的时长并不限定为HARQ的最大传输时延,例如:还可以是数据接收端预先配置的固定时长。The length of the reassembly timer is configured by a high-level Radio Resource Control (RRC) configuration, or other high-level signaling configuration, and since the reassembly timer has a maximum transmission delay of HARQ, when waiting for the reorganization After the timer length, if the segment at the receiving gap has not been successfully received, the segment of the gap has been abandoned because the HARQ reaches the maximum number of retransmissions, so the segment can abandon the waiting, which is regarded as Complete transmission failure to effectively reduce processing complexity and improve system efficiency. Of course, in the embodiment of the present disclosure, the duration of the reassembly timer is not limited to the maximum transmission delay of the HARQ, for example, it may be a fixed duration pre-configured by the data receiving end.
在一些可选的实施例中,所述方法还包括:记录并维护如下一个或者多个变量:第一变量、第二变量和第三变量;其中,所述第一变量用于记录接收到的最高SDU分段的下一个SDU分段的变量信息,或者用于记录接收到的最高SDU分段的变量信息;所述第二变量用于记录所述重组定时器对应的SDU分段区间的上边界的变量信息;所述第三变量用于记录需要重组操作的SDU分段区间的下边界的变量信息;其中,所述变量信息包括SN和/或SO 信息。In some optional embodiments, the method further comprises: recording and maintaining one or more variables: a first variable, a second variable, and a third variable; wherein the first variable is used to record the received Variable information of the next SDU segment of the highest SDU segment, or variable information for recording the highest SDU segment received; the second variable is used to record the SDU segment interval corresponding to the reassembly timer Variable information of a boundary; the third variable is used to record variable information of a lower boundary of an SDU segmentation interval requiring a reorganization operation; wherein the variable information includes SN and/or SO information.
其中,上述第一变量可以定义为VR_receive_H变量,第二变量可以定义为上边界(VR_reassemble_H),第三变量可以定义为下边界(VR_reassemble_L)。这里,最高SDU可以指按照窗口维护机制,接收到的新数据中的最大SN号所对应的SDU;分段区间的上边界可以是指按照窗口维护机制,处于当前分段区间较新传输数据中的最大SN;分段区间的下边界可以是指按照窗口维护机制,处于当前分段区间较早传输数据中的最小SN。The first variable may be defined as a VR_receive_H variable, the second variable may be defined as an upper boundary (VR_reassemble_H), and the third variable may be defined as a lower boundary (VR_reassemble_L). Here, the highest SDU may refer to the SDU corresponding to the largest SN number in the new data received according to the window maintenance mechanism; the upper boundary of the segmentation interval may refer to the new maintenance data in the current segmentation interval according to the window maintenance mechanism. The maximum SN; the lower boundary of the segmentation interval may refer to the smallest SN in the earlier transmission data in the current segmentation interval according to the window maintenance mechanism.
另外,该实施方式中,如果同一SDU内各SDU分段的SN相同时,则上述变量信息包括SO信息,以及还可以包括SN,以通过SO信息区分SDU分段;如果同一SDU内各SDU分段的SN不同时,则上述变量信息可以只包括SN,可以不用包括SO信息,以通过SN区分SDU分段。In addition, in this embodiment, if the SNs of the SDU segments in the same SDU are the same, the variable information includes the SO information, and may further include an SN to distinguish the SDU segments by the SO information; if each SDU in the same SDU When the SNs of the segments are different, the variable information may include only the SN, and may not include the SO information to distinguish the SDU segments by the SN.
以下面以一个顺序接收的例子,来说明数据接收端的操作:The operation of the data receiving end is illustrated by the following example received in one order:
当数据接收端接收到第一个分段时,SN=0,LI指示第一分段,第一分段SO为0,LI=200字节,此时由于是按序接收,因此VR_receive_H和VR_reassemble_L都相应更新,可以更新为SN=0,SO=200字节。When the data receiving end receives the first segment, SN=0, LI indicates the first segment, the first segment SO is 0, and LI=200 bytes. At this time, since it is received in order, VR_receive_H and VR_reassemble_L They are updated accordingly and can be updated to SN=0, SO=200 bytes.
当接收到第二个分段时,SN=0,LI指示为中间分段,第二分段SO为200字节,LI=300字节,此时仍旧是按序接收,因此VR_receive_H和VR_reassemble_L都相应更新,可以更新为SN=0,SO=500字节。When the second segment is received, SN=0, LI indicates the intermediate segment, the second segment SO is 200 bytes, LI=300 bytes, and it is still received in order, so VR_receive_H and VR_reassemble_L are both The corresponding update can be updated to SN=0, SO=500 bytes.
当接收到第三个分段时,SN=0,LI指示为该SDU的最后一个分段,SO为500字节,LI=500字节,此时仍旧是按序接收,而且接收端知道SDU 0已经接收成功,则可以将前三个分段进行重组并递交高层,此时仍旧是按序接收,因此VR_receive_H和VR_reassemble_L都相应更新,可以更新为SN=1,SO=0字节。When the third segment is received, SN=0, LI indicates the last segment of the SDU, SO is 500 bytes, LI=500 bytes, and it is still received in order, and the receiver knows the SDU. If the 0 has been successfully received, the first three segments can be reassembled and submitted to the upper layer. At this time, they are still received in order. Therefore, VR_receive_H and VR_reassemble_L are updated accordingly, and can be updated to SN=1, SO=0 bytes.
后续继续接收SN=1的SDU的各个分段,以及SN=2,3,4…的分段,按照上述的方式进行顺序更新和维护,并将重组成功的数据包递交高层。Subsequently continue to receive the segments of the SDU with SN=1, and the segments of SN=2, 3, 4..., perform sequential update and maintenance in the manner described above, and deliver the successfully reassembled data packets to the upper layer.
在接收的过程中,在分段中间也会接收到很多完整SDU,对于这些完整的SDU,由于不需要任何排序,可以将接收到的完整SDU直接递交高层,并不影响任何的变量更新和窗口,定时器操作。In the process of receiving, many complete SDUs are also received in the middle of the segment. For these complete SDUs, since no sorting is needed, the received complete SDU can be directly submitted to the upper layer without affecting any variable updates and windows. , timer operation.
该实施方式中,通过上述三个变量可以快捷地获取SDU分段的接收情况, 以提高数据处理效率。In this implementation manner, the receiving condition of the SDU segment can be quickly obtained by using the above three variables, so as to improve data processing efficiency.
在一些可选的实施例中,若接收序列中不存在接收缺口或者所有接收缺口均已经正确接收,则所述需要重组操作的SDU分段区间的下边界等于接收到的最高SDU分段的下一个SDU分段,或者接收到的最高SDU分段;In some optional embodiments, if there is no receiving gap in the receiving sequence or all receiving gaps have been correctly received, the lower boundary of the SDU segmentation interval requiring the reassembly operation is equal to the highest SDU segment received. One SDU segment, or the highest SDU segment received;
若接收序列中存在接收缺口,则所述需要重组操作的SDU分段区间的下边界为所述接收序列的第一个接收缺口处的SDU分段;If there is a reception gap in the received sequence, the lower boundary of the SDU segmentation interval requiring the reassembly operation is an SDU segment at the first reception gap of the receiving sequence;
若所述第一个缺口处的SDU分段正确接收,则所述需要重组操作的SDU分段区间的下边界更新为下一个接收缺口处的SDU分段。If the SDU segment at the first gap is correctly received, the lower boundary of the SDU segmentation interval requiring the reassembly operation is updated to the SDU segment at the next reception gap.
该实施方式中,可以及时更新下边界,即VR_reassemble_L,以准确地需要接收的SDU分段,以提高数据接收端数据处理性能。In this implementation manner, the lower boundary, that is, VR_reassemble_L, may be updated in time to accurately receive the received SDU segment to improve the data processing performance of the data receiving end.
在一些可选的实施例中,若启动所述重组定时器,则所述上边界为接收到的最高SDU分段的下一个SDU分段或者接收到的最高SDU分段,在所述重组定时器有效期限所述上边界不变;In some optional embodiments, if the reassembly timer is started, the upper boundary is the next SDU segment of the highest SDU segment received or the highest SDU segment received, at the reassembly timing The upper boundary of the effective period of the device is unchanged;
且所述重组定时器对应的SDU分段区间为由所述下边界和所述上边界决定的区间。And the SDU segmentation interval corresponding to the reorganization timer is an interval determined by the lower boundary and the upper boundary.
该实施方式中,可以实现在启动重组定时器时,上边界,即VR_reassemble_H保持当前接收到的最高SDU分段的下一个SDU分段或者当前接收到最高SDU分段。且对应的SDU分段由所述下边界和所述上边界决定的区间,从而提高重组定时器的性能。In this embodiment, when the reassembly timer is started, the upper boundary, that is, VR_reassemble_H, holds the next SDU segment of the highest received SDU segment currently received or the highest SDU segment is currently received. And the corresponding SDU segment is determined by the lower boundary and the upper boundary, thereby improving the performance of the reassembly timer.
例如:当接收端对SN=0的SDU接收和重组成功之后,VR_receive_H和VR_reassemble_L都相应更新为SN=1,SO=0字节,意味着下一个期望接收的是SN=1的第一个分段,但是当第一个分段丢失,先接收到第二分段时,例如接收到SN=1,LI指示是中间分段,SO=200字节,LI=300字节时,接收端可以感知到SN=1的SDU第一分段丢失,VR_reassemble_L仍旧保留原来的值,SN=1,SO=0,而VR_receive_H更新为SN=1,SO=500字节。此时启动一个重组定时器,记录VR_reassemble_H为当前的VR_receive_H,即SN=1,SO=500字节,该定时器对应的分段区间为【VR_reassemble_L,VR_reassemble_H】。For example, after the receiving end successfully receives and reassembles the SDU with SN=0, both VR_receive_H and VR_reassemble_L are updated to SN=1, SO=0 bytes, meaning that the next one that is expected to receive is the first one of SN=1. Segment, but when the first segment is lost, when the second segment is received first, for example, SN=1 is received, LI indicates intermediate segment, SO=200 bytes, and LI=300 bytes, the receiving end can The first segment of the SDU that senses SN=1 is lost, VR_reassemble_L still retains the original value, SN=1, SO=0, and VR_receive_H is updated to SN=1, SO=500 bytes. At this time, a reassembly timer is started, and VR_reassemble_H is recorded as the current VR_receive_H, that is, SN=1, SO=500 bytes, and the segmentation interval corresponding to the timer is [VR_reassemble_L, VR_reassemble_H].
如果在重组定时器运行期间,继续接收到了其他的新SDU分段,则 VR_receive_H每次都根据新SDU分段进行更新,即每次都设置为最新SDU分段的下一个分段。VR_reassemble_H在重组定时器运行期间不会更新,跟当前的定时器绑定。VR_reassemble_L在重组定时器运行期间可以更新,VR_reassemble_L总是更新为当前接收端的第一个缺口,例如本例中,如果最低的缺口SN=1,SO=0,LI=200字节的分段被成功接收,而后面没有再有缺口了,则VR_reassemble_L更新为VR_receive_H一样的值,此时VR_reassemble_L高于VR_reassemble_H,即意味着当前重组定时器对应的区间中所有分段接收缺口都填满了,此时重组定时器可以停止。If other new SDU segments continue to be received during the reassembly timer run, VR_receive_H is updated each time according to the new SDU segment, ie, each time is set to the next segment of the latest SDU segment. VR_reassemble_H is not updated during the reassembly timer and is bound to the current timer. VR_reassemble_L can be updated during the reassembly timer. VR_reassemble_L is always updated to the first gap of the current receiver. For example, in this example, if the lowest gap SN=1, SO=0, the segment with LI=200 bytes is successfully succeeded. After receiving, and there is no gap later, VR_reassemble_L is updated to the same value as VR_receive_H. At this time, VR_reassemble_L is higher than VR_reassemble_H, which means that all segment receiving gaps in the interval corresponding to the current reassembly timer are filled. The timer can be stopped.
在一些可选的实施例中,所述若在所述重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器,包括:In some optional embodiments, if the SDU segment in the SDU segment interval is correctly received before the reassembly timer expires, stopping the reassembly timer includes:
若所述下边界等于所述上边界,或者所述下边界更新为所述上边界之后的SDU分段,则确定所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器。If the lower boundary is equal to the upper boundary, or the lower boundary is updated to an SDU segment after the upper boundary, determining that the SDU segments in the SDU segment interval are correctly received, stopping the reorganization Timer.
该实施方式中,可以实现若所述下边界为所述上边界,或者所述下边界为所述上边界之后的SDU分段,则确定所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器,从而正确地停止重组定时器,以提高数据处理性能。例如:VR_reassemble_L大于或者等于VR_reassemble_H时,则认为缺口全部正确接收,因为VR_reassemble_L是根据每次新接收的数据更新,当VR_reassemble_L指示的第一个缺口被正确接收时,VR_reassemble_L自动更新为下一个缺口。当重组定时器超时之后,如果该缺口仍旧未接收成功,则意味着该缺口处的数据HARQ传输失败,对UM数据来说,放弃该分段,即分段彻底失败,此时无需再等待该分段,可以更新状态变量和清除缓存,此时需要把VR_reassemble_L更新为VR_reassemble_H之后第一个接收缺口处信息,如果后续没有缺口,则直接更新为VR_receive_H。In this implementation manner, if the SDU segment after the lower boundary is the upper boundary or the lower boundary is the upper boundary, it may be determined that the SDU segments in the SDU segment interval are correctly received. Then, the reassembly timer is stopped, so that the reassembly timer is correctly stopped to improve data processing performance. For example, when VR_reassemble_L is greater than or equal to VR_reassemble_H, the gap is considered to be correctly received, because VR_reassemble_L is updated according to each newly received data. When the first gap indicated by VR_reassemble_L is correctly received, VR_reassemble_L is automatically updated to the next gap. After the reassembly timer expires, if the gap is still not successfully received, it means that the data HARQ transmission at the gap fails. For the UM data, the segment is abandoned, that is, the segment fails completely, and there is no need to wait for the segment. Segmentation, you can update the state variable and clear the cache. In this case, you need to update VR_reassemble_L to the first receiving gap information after VR_reassemble_H. If there is no gap later, it will be directly updated to VR_receive_H.
在一些可选的实施例中,所述若所述重组定时器超时,则删除所述SDU分段区间的所有未成功重组的SDU分段,包括:In some optional embodiments, if the reassembly timer expires, all unsuccessfully reassembled SDU segments of the SDU segment interval are deleted, including:
若所述重组定时器超时,且所述下边界为所述上边界之前的SDU分段,则确定所述SDU分段区间还存在未正确接收的SDU分段,并删除所述SDU分段区间的所有未成功重组的SDU分段,并将所述下边界更新为所述上边界 对应的SDU分段。If the reassembly timer expires, and the lower boundary is an SDU segment before the upper boundary, it is determined that the SDU segment has an incorrectly received SDU segment, and the SDU segment interval is deleted. All SDU segments that have not been successfully reassembled, and update the lower boundary to the SDU segment corresponding to the upper boundary.
其中,上述下边界为所述上边界之前的SDU分段表示,在上边界之前还存在未正确接收的SDU分段,进而可以删除所述SDU分段区间的所有未成功重组的SDU分段,并将所述下边界更新为所述上边界对应的SDU分段,例如:在对应的记录区间[VR_reassemble_L,VR_reassemble_H]之内,仍有接收缺口;此时重组定时器记录区间之内,如果还有未重组成功的分段碎片,判断方式为VR_reassemble_L小于VR_reassemble_H,则此时可以删除这些碎片,并更新VR_reassemble_L为VR_reassemble_H。Wherein, the lower boundary is an SDU segment before the upper boundary, and there is an SDU segment that is not correctly received before the upper boundary, and thus all unsuccessfully reassembled SDU segments of the SDU segment interval may be deleted. And updating the lower boundary to the SDU segment corresponding to the upper boundary, for example, within the corresponding recording interval [VR_reassemble_L, VR_reassemble_H], there is still a receiving gap; at this time, the reassembly timer is within the recording interval, if If there is a fragmentation fragment that has not been reassembled successfully, the judgment method is that VR_reassemble_L is smaller than VR_reassemble_H, then the fragments can be deleted at this time, and VR_reassemble_L is updated to be VR_reassemble_H.
在一些可选的实施例中,所述方法还包括:In some optional embodiments, the method further includes:
若所述下边界与所述第一变量记录的SDU分段不相同时,则确定接收序列存在接收缺口,并重启所述重组定时器,以及记录所述上边界为所述第一变量记录的SDU分段。If the lower boundary is different from the SDU segment recorded by the first variable, determining that the receiving sequence has a receiving gap, restarting the reassembly timer, and recording the upper boundary as the first variable record SDU segmentation.
由于第一变量记录的当前接收到最高SDU分段或者最高SDU分段的下一个分段,而下边界为最新接收缺口,从而重启所述重组定时器,将所述第一变量记录的SDU分段为对应区间的上边界。该实施方式中,由于通过所述下边界与所述第一变量记录的SDU分段不相同,就可以识别出还存在接收缺口,从而提高数据处理的效率。The SDU of the first variable is recorded because the first variable records the current SDU segment or the next segment of the highest SDU segment, and the lower boundary is the latest reception gap, thereby restarting the reassembly timer. The segment is the upper boundary of the corresponding interval. In this embodiment, since the SDU segment recorded by the first variable is different from the first variable, it is possible to recognize that there is still a reception gap, thereby improving the efficiency of data processing.
例如:当前一个重组定时器超时后,或者重组定时器由于所对应的区间内的所有缺口都成功接收而停止定时器,此时需要判断接收端是否还有其他新的接收缺口,如果有接收缺口,则针对这些接收缺口,重启一个新的重组定时器。判断接收缺口的方式可以是,就是比较VR_reassemble_L是否等于VR_receive_H,当二者相等时,则意味着不存在接收缺口,不需要重启重组定时器。而当二者不相等时,意味着中间仍旧有接收缺口,此时重组定时器被重启,并记录该定时器的区间上界VR_reassemble_H等于当前的VR_receive_H。此时,如果VR_reassemble_L和VR_receive_H之间有多个gap,也是针对多个gap启动一个重组定时器。For example, after the current reassembly timer expires, or the reassembly timer stops receiving due to all the gaps in the corresponding interval, it is necessary to determine whether there are other new reception gaps at the receiving end, and if there is a reception gap. , restart a new reassembly timer for these receive gaps. The way to determine the receiving gap may be to compare whether VR_reassemble_L is equal to VR_receive_H. When the two are equal, it means that there is no receiving gap, and there is no need to restart the reassembly timer. When the two are not equal, it means that there is still a reception gap in the middle. At this time, the reassembly timer is restarted, and the interval upper bound VR_reassemble_H of the timer is recorded to be equal to the current VR_receive_H. At this time, if there are multiple gaps between VR_reassemble_L and VR_receive_H, a reassembly timer is also started for multiple gaps.
在一些可选的实施例中,所述若根据所述分段信息确定接收序列存在接收缺口,则启动重组定时器,并确定所述重组定时器对应的SDU分段区间,包括:In some optional embodiments, if it is determined that the receiving sequence has a receiving gap according to the segmentation information, the re-establishment timer is started, and the SDU segmentation interval corresponding to the reassembly timer is determined, including:
所述若根据所述分段信息确定接收序列存在接收缺口,则启动重组定时器,并计算缓存中所有SN中两两之间的最小距离,其中,两两之间的最小距离距为两个SN的第一距离和第二距离中的最小距离,所述第一距离为两个SN中大SN减小SN得到的距离,所述第二距离为两个SN中小SN与预设最大SN之和减大SN得到的距离;If it is determined according to the segmentation information that there is a reception gap in the received sequence, the reassembly timer is started, and a minimum distance between two of the SNs in the cache is calculated, wherein the minimum distance between the two is two a minimum distance between the first distance and the second distance of the SN, where the first distance is a distance obtained by the large SN in the two SNs, and the second distance is a small SN of the two SNs and a preset maximum SN And the distance obtained by reducing the SN;
选择所有最小距离中最大距离,并将所述最大距离对应的区间作为与所述重组定时器对应的SDU分段区间。The maximum distance among all the minimum distances is selected, and the interval corresponding to the maximum distance is taken as the SDU segmentation interval corresponding to the reorganization timer.
其中,上述计算缓存中所有SN中两两之间的最小距离可以是,针对缓存中所有SDU分段中SN计算两两之间的最小距离,例如:缓存有SN3,SN5和SN8的分段,则计算SN3和SN5的最小距离,以及SN3和SN8的最小距离,以及SN5和SN8的最小距离。另外,由于任意两个SN均存在两种距离,一种是小SN至大SN的第一距离,另一种大SN至小SN的第二距离,例如:以SN3和SN8举例,而第一距离为8-3=5,即SN3至SN8的区间的距离,而第二距离为3+64(以预设最大SN为64举例)-8=59,即SN8至SN3的区间的距离。因此,上述最小距离也可以理解为最小距离区间,而上述第一距离可以理解为第一区间,即两个SN中小SN作为下边界,大SN作为上边界的区间,而上述第二距离可以理解为第二区间,即两个SN中大SN作为下边界,小SN作为上边界的区间,而最小距离间距为两个SN的第一区间和第二区间中的距离最小的区间。The minimum distance between two of the SNs in the calculation cache may be that the minimum distance between the two is calculated for the SN in all the SDU segments in the cache, for example, the segments with SN3, SN5, and SN8 are cached. Then calculate the minimum distance between SN3 and SN5, and the minimum distance between SN3 and SN8, and the minimum distance between SN5 and SN8. In addition, since any two SNs have two distances, one is a first distance from a small SN to a large SN, and the other is a second distance from a large SN to a small SN, for example, exemplified by SN3 and SN8, and the first The distance is 8-3=5, that is, the distance from the interval of SN3 to SN8, and the second distance is 3+64 (exemplified by a preset maximum SN of 64)-8=59, that is, the distance of the interval of SN8 to SN3. Therefore, the minimum distance can also be understood as a minimum distance interval, and the first distance can be understood as a first interval, that is, a small SN in the two SNs is used as a lower boundary, and a large SN is used as an upper boundary, and the second distance can be understood. For the second interval, that is, the large SN of the two SNs is the lower boundary, the small SN is the interval of the upper boundary, and the minimum distance spacing is the interval of the first interval of the two SNs and the smallest of the second intervals.
而上述选择所有最小距离中最大距离可以是,在所有最小距离中选择一个最大值,所述最大距离对应的区间可以是,该最大距离对应的两个SN决定为区间距离为该最大距离的区间。需要说明的是,该最大距离并不两SN的最大距离,而所有最小距离中的最大距离。例如:缓存有SN3,SN5和SN8的分段,则所有最小距离中最大距离为8-3=5,则将SN3的第一个接收分段和SN8的最后接收分段,分别记录为重组定时器的下边界和上边界。The maximum distance among all the minimum distances may be selected, and a maximum value is selected among all the minimum distances, and the interval corresponding to the maximum distance may be that the two SNs corresponding to the maximum distance are determined as the interval where the interval distance is the maximum distance. . It should be noted that the maximum distance is not the maximum distance between the two SNs, and the maximum distance among all the minimum distances. For example, if the segment with SN3, SN5 and SN8 is buffered, the maximum distance among all the minimum distances is 8-3=5, and the first receiving segment of SN3 and the last receiving segment of SN8 are respectively recorded as recombination timing. The lower and upper boundaries of the device.
该实施方式中,可以实现仅维护两个变量,以降低数据处理的复杂度。In this embodiment, it is possible to maintain only two variables to reduce the complexity of data processing.
当然,上述所述若根据所述分段信息确定接收序列存在接收缺口,则启动重组定时器,并确定所述重组定时器对应的SDU分段区间可以是,若根据所述分段信息确定所述接收序列存在接收缺口,则启动重组定时器,并将缓 存中最大SN和最小SN确定两个SDU分段区间中的最小区间作为该重组定时器对应的SDU分段区间。Of course, if it is determined that the receiving sequence has a receiving gap according to the segmentation information, the reassembly timer is started, and the SDU segmentation interval corresponding to the reassembly timer may be determined, if the segmentation information is determined according to the segmentation information. If there is a reception gap in the received sequence, the reassembly timer is started, and the largest SN and the minimum SN in the buffer are determined as the minimum interval among the two SDU segment intervals as the SDU segment interval corresponding to the reassembly timer.
该方式考虑了从翻转(Wrap around)角度,两个SN之间有两个区间,取较小的那一个即可。例如SN最大值为64,当缓存中出现的是(1,2,4)这几个SN的分段,记录区间[1,4]为该重组定时器对应的SDU分段区间,而不是区间[4,1]。又例如:当缓存中出现的是(63,0,2,5),那么记录区间[63,5]为该重组定时器对应的SDU分段区间,而不是区间[5,63]。This approach considers the Wrap around angle, there are two intervals between the two SNs, the smaller one can be taken. For example, the SN maximum value is 64. When the SN segments of (1, 2, 4) appear in the buffer, the recording interval [1, 4] is the SDU segmentation interval corresponding to the reassembly timer, instead of the interval. [4,1]. For another example, when (63, 0, 2, 5) appears in the buffer, the recording interval [63, 5] is the SDU segmentation interval corresponding to the reassembly timer, instead of the interval [5, 63].
在一些可选的实施例中,所述方法还包括:In some optional embodiments, the method further includes:
在所述重组定时器停止或者超时后,若还存在接收缺口,则重启所述重组定时器,并计算缓存中所有SN中两两之间的最小距离,其中,两两之间的最小距离距为两个SN的第一距离和第二距离中的最小距离,所述第一距离为两个SN中大SN减小SN得到的距离,所述第二距离为两个SN中小SN与预设最大SN之和减大SN得到的距离;After the reassembly timer stops or times out, if there is still a reception gap, the reassembly timer is restarted, and the minimum distance between two of the SNs in the cache is calculated, wherein the minimum distance between the two is a minimum distance between the first distance and the second distance of the two SNs, where the first distance is a distance obtained by the large SN in the two SNs, and the second distance is a small SN and a preset in the two SNs. The sum of the maximum SN is reduced by the distance obtained by the SN;
选择所有最小距离中最大距离,并将所述最大距离对应的区间作为与重启的所述重组定时器对应的SDU分段区间。The maximum distance among all the minimum distances is selected, and the interval corresponding to the maximum distance is taken as the SDU segmentation interval corresponding to the recombination timer that is restarted.
该实施方式中,可以实现当前一个重组定时器超时后,或者重组定时器由于所对应的区间内的所有缺口都成功接收而停止定时器,此时需要判断接收端是否还有其他新的接收缺口,如果有接收缺口,则针对这些接收缺口,重启一个新的重组定时器。In this implementation manner, after the current reassembly timer expires, or the reassembly timer stops receiving due to all the gaps in the corresponding interval, it is necessary to determine whether there are other new reception gaps at the receiving end. If there is a reception gap, restart a new reassembly timer for these reception gaps.
其中,判断接收缺口的一种方式,就是看当前缓存中的分段是否是按序接收,如果不是按序接收,则重启重组定时器,并记录重组定时器对应的区间,该区间由缓存中的最低SN和最高SN决定。一种最典型的按序接收分段的情况,就是缓存中仅有一个SN的分段,且这些分段的字节数是连续的,例如[0,200],[200,500]等等,此时认定为顺序接收,其它的情况均可认为非按序。One way to determine the receiving gap is to see whether the segments in the current cache are received in order. If not, the reassembly timer is restarted, and the interval corresponding to the reassembly timer is recorded, and the interval is cached. The minimum SN and the highest SN are determined. One of the most typical cases of receiving segments in sequence is that there is only one segment of the SN in the buffer, and the number of bytes of these segments is continuous, such as [0,200], [200,500], etc. At this time, it is determined as sequential reception, and other cases can be considered as out of order.
例如:SN大小6bit,SN=64则翻转为SN=0,SN63,SN0,SN2的分段在缓存中,SN63和SN2之间的距离有两种方式:一种是大数和小数之间的距离为63-2=61,第二种是小数和大数之间的距离为2+64-63=3,即任何一个小数都可以看成是发生SN跨越了最大值的翻转。在上述两个距离中,取 较小的3作为SN63和SN2之间的最小距离,其它任意两个SN之间也这样求出最小距离,然后在所有最小距离里找到一个最大值,即SN63和SN2,分别作为重组定时器的上边界和下边界。For example: SN size 6bit, SN=64 is flipped to SN=0, SN63, SN0, SN2 segments are in the cache, and the distance between SN63 and SN2 is two ways: one is between large and small The distance is 63-2=61, and the second is that the distance between the decimal and the large number is 2+64-63=3, that is, any decimal can be regarded as the flip of the SN across the maximum value. Among the above two distances, take the smaller 3 as the minimum distance between SN63 and SN2, and find the minimum distance between any other two SNs, and then find a maximum value in all the minimum distances, namely SN63 and SN2, which serves as the upper and lower boundaries of the reassembly timer, respectively.
当然,上述在所述重组定时器停止或者超时后,若还存在接收缺口,则重启所述重组定时器,也可以将缓存中最大SN和最小SN确定两个SDU分段区间中的最小区间作为该重组定时器对应的SDU分段区间。即从Wrap around角度,两个SN之间有两个区间,取较小的那一个即可。例如SN最大值为64,当缓存中出现的是(1,2,4)这几个SN的分段,记录区间[1,4],当缓存中出现的是(63,0,2,5),那么记录区间[63,5],考虑SN的Wrap around操作。Certainly, after the reassembly timer stops or times out, if there is still a reception gap, the reassembly timer is restarted, and the minimum SN and the minimum SN in the buffer may be determined as the minimum interval among the two SDU segment intervals. The SDU segmentation interval corresponding to the reassembly timer. That is, from the Wrap around angle, there are two intervals between the two SNs, and the smaller one can be taken. For example, the maximum value of SN is 64. When there are segments of SN (1, 2, 4) appearing in the buffer, the interval [1, 4] is recorded, and when the cache appears (63, 0, 2, 5) ), then record the interval [63, 5], consider the SN Wrap around operation.
需要说明的是,本公开实施例中,所有的等式关系,大于,小于等均可以考虑到SN的翻转(Wrap around)。举例说明:当SN为6bit长度时,SN的取值区间为0-63,则没有发生SN wrap around时,三个变量可能为:VR_reassemble_L对应的SN=0,VR_reassemble_H对应的SN=6,VR_receive_H对应的SN=8,这三个变量的正常大小关系为依次增大。而当发生了SN wrap around时,三个变量可能为:VR_reassemble_L对应的SN=60,VR_reassemble_H对应的SN=0,VR_receive_H对应的SN=4,这三个变量的大小关系依旧为依次增大,因为中间跨越了最大SN(MAX_SN)。It should be noted that, in the embodiment of the present disclosure, all equation relationships, greater than, less than, etc., may take into account Wrap around. For example, when the SN is 6 bits, the value range of the SN is 0-63. When no SN wrap around occurs, the three variables may be: SN=0 for VR_reassemble_L, SN=6 for VR_reassemble_H, and VR_receive_H for VR_receive_H The SN=8, the normal size relationship of these three variables increases in turn. When SN wrap around occurs, the three variables may be: SN=60 corresponding to VR_reassemble_L, SN=0 corresponding to VR_reassemble_H, and SN=4 corresponding to VR_receive_H, and the size relationship of these three variables is still increasing in order, because The middle spans the largest SN (MAX_SN).
一般来说,在比较变量大小时,先进行SN的比较,如果SN不同,则大小关系清晰,如果SN相同,则还需要进一步比较SO的大小,例如VR_reassemble_L对应的SN=0,而SO=200,而SDU 0对应的第三个分段,SO=500,LI=300是接收成功的,VR_receive_H被更新为下一个期望接收的分段,则VR_receive_H对应的SN=0,而SO=800,此时VR_reassemble_L小于VR_receive_H。进一步说明关于SDU 0各个分段的状态,分段1[0,200]正确接收,分段2[200,500]丢失,由VR_reassemble_L指示为第一个接收缺口,分段3[500,800]接收成功,下一个分段[800,higher]是下一个期望接收的分段,由VR_receive_H指示。Generally speaking, when comparing the variable sizes, the comparison of SNs is first performed. If the SNs are different, the size relationship is clear. If the SNs are the same, the size of the SO needs to be further compared, for example, SN=0 corresponding to VR_reassemble_L, and SO=200. The third segment corresponding to SDU 0, SO=500, LI=300 is successfully received, VR_receive_H is updated to the next segment that is expected to be received, then SN_receive_H corresponds to SN=0, and SO=800, this VR_reassemble_L is less than VR_receive_H. Further explaining the state of each segment of SDU 0, segment 1 [0, 200] is correctly received, segment 2 [200, 500] is lost, indicated by VR_reassemble_L as the first reception gap, segment 3 [500, 800] The reception is successful, and the next segment [800, higher] is the next segment expected to be received, indicated by VR_receive_H.
需要说明的是,本公开实施例提供了多种可选的实施方式,且这多种可选的实施方式彼此可以相互结合实现,也可以单独实现,对此本公开实施例 不作限定。It should be noted that the embodiments of the present disclosure provide various alternative embodiments, and the multiple optional embodiments may be implemented in combination with each other, or may be implemented separately, and the embodiments of the present disclosure are not limited thereto.
本公开实施例中,获取SDU的SDU分段的分段信息,所述分段信息包括SN;若根据所述分段信息确定存在接收缺口,则启动重组定时器,并确定所述重组定时器对应的SDU分段区间;若在所述重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器;若所述重组定时器超时,则删除所述SDU分段区间的所有未成功重组的SDU分段。这样本公开实施例中可以实现根据SDU分段的分段信息进行对SDU分段进行处理,且还可以提高数据接收端的数据处理性能。In this embodiment, the segmentation information of the SDU segment of the SDU is obtained, and the segmentation information includes an SN. If it is determined that there is a reception gap according to the segmentation information, the reassembly timer is started, and the reassembly timer is determined. Corresponding SDU segmentation interval; if the SDU segment in the SDU segmentation interval is correctly received before the reassembly timer expires, stopping the reassembly timer; if the reassembly timer expires, deleting All unsuccessfully reorganized SDU segments of the SDU segmentation interval. Therefore, in the embodiment of the disclosure, the SDU segment processing can be performed according to the segmentation information of the SDU segment, and the data processing performance of the data receiving end can also be improved.
请参见图3,图3是本公开实施例提供的一种数据接收端的结构图,如图3所示,数据接收端300包括:Referring to FIG. 3, FIG. 3 is a structural diagram of a data receiving end according to an embodiment of the present disclosure. As shown in FIG. 3, the data receiving end 300 includes:
获取模块301,用于获取SDU的SDU分段的分段信息,所述分段信息包括序列号SN;The obtaining module 301 is configured to acquire segmentation information of an SDU segment of the SDU, where the segmentation information includes a sequence number SN;
启动模块302,用于若根据所述分段信息确定存在接收缺口,则启动重组定时器,并确定所述重组定时器对应的SDU分段区间;The initiating module 302 is configured to: if it is determined that there is a receiving gap according to the segmentation information, start a reassembly timer, and determine an SDU segmentation interval corresponding to the reassembly timer;
停止模块303,用于若在所述重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器;The stopping module 303 is configured to stop the reassembly timer if the SDU segments in the SDU segment interval are correctly received before the reassembly timer expires;
删除模块304,用于若所述重组定时器超时,则删除所述SDU分段区间的所有未成功重组的SDU分段。The deleting module 304 is configured to delete all unsuccessfully reorganized SDU segments of the SDU segment interval if the reassembly timer expires.
在一些可选的实施例中,同一SDU内的SDU分段的分段信息包括的SN相同;或者In some optional embodiments, the segmentation information of the SDU segments within the same SDU includes the same SN; or
同一SDU内的SDU分段的分段信息包括的SN不同。The segmentation information of the SDU segment within the same SDU includes different SNs.
在一些可选的实施例中,如图4所示,所述数据接收端300还包括:In some optional embodiments, as shown in FIG. 4, the data receiving end 300 further includes:
记录维护模块305,用于记录并维护如下一个或者多个变量:The record maintenance module 305 is configured to record and maintain one or more of the following variables:
第一变量、第二变量和第三变量;The first variable, the second variable, and the third variable;
其中,所述第一变量用于记录接收到的最高SDU分段的下一个SDU分段的变量信息,或者用于记录接收到的最高SDU分段的变量信息;The first variable is used to record variable information of a next SDU segment of the received highest SDU segment, or to record variable information of the highest SDU segment received;
所述第二变量用于记录所述重组定时器对应的SDU分段区间的上边界的变量信息;The second variable is used to record variable information of an upper boundary of an SDU segmentation interval corresponding to the reassembly timer;
所述第三变量用于记录需要重组操作的SDU分段区间的下边界的变量 信息;The third variable is used to record variable information of a lower boundary of an SDU segmentation interval that requires a reorganization operation;
其中,所述变量信息包括SN和/或SO信息。Wherein, the variable information includes SN and/or SO information.
在一些可选的实施例中,若接收序列中不存在接收缺口或者所有接收缺口均已经正确接收,则所述需要重组操作的SDU分段区间的下边界等于接收到的最高SDU分段的下一个SDU分段,或者接收到的最高SDU分段;In some optional embodiments, if there is no receiving gap in the receiving sequence or all receiving gaps have been correctly received, the lower boundary of the SDU segmentation interval requiring the reassembly operation is equal to the highest SDU segment received. One SDU segment, or the highest SDU segment received;
若接收序列中存在接收缺口,则所述需要重组操作的SDU分段区间的下边界为所述接收序列的第一个接收缺口处的SDU分段;If there is a reception gap in the received sequence, the lower boundary of the SDU segmentation interval requiring the reassembly operation is an SDU segment at the first reception gap of the receiving sequence;
若所述第一个缺口处的SDU分段正确接收,则所述需要重组操作的SDU分段区间的下边界更新为下一个接收缺口处的SDU分段。If the SDU segment at the first gap is correctly received, the lower boundary of the SDU segmentation interval requiring the reassembly operation is updated to the SDU segment at the next reception gap.
在一些可选的实施例中,若启动所述重组定时器,则所述上边界为接收到的最高SDU分段的下一个SDU分段或者接收到的最高SDU分段,在所述重组定时器有效期限所述上边界不变;In some optional embodiments, if the reassembly timer is started, the upper boundary is the next SDU segment of the highest SDU segment received or the highest SDU segment received, at the reassembly timing The upper boundary of the effective period of the device is unchanged;
且所述重组定时器对应的SDU分段区间为由所述下边界和所述上边界决定的区间。And the SDU segmentation interval corresponding to the reorganization timer is an interval determined by the lower boundary and the upper boundary.
在一些可选的实施例中,停止模块303用于若所述下边界等于所述上边界,或者所述下边界更新为所述上边界之后的SDU分段,则确定所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器。In some optional embodiments, the stopping module 303 is configured to determine the SDU segmentation interval if the lower boundary is equal to the upper boundary, or the lower boundary is updated to an SDU segment after the upper boundary. The SDU segments within the block are correctly received, and the reassembly timer is stopped.
在一些可选的实施例中,删除模块304用于若所述重组定时器超时,且所述下边界为所述上边界之前的SDU分段,则确定所述SDU分段区间还存在未正确接收的SDU分段,并删除所述SDU分段区间的所有未成功重组的SDU分段,并将所述下边界更新为所述上边界对应的SDU分段。In some optional embodiments, the deleting module 304 is configured to determine that the SDU segmentation interval is still incorrect if the reassembly timer expires and the lower boundary is an SDU segment before the upper boundary. Receiving the SDU segment, and deleting all unsuccessfully reassembled SDU segments of the SDU segment interval, and updating the lower boundary to the SDU segment corresponding to the upper boundary.
在一些可选的实施例中,如图5所示,所述数据接收端300还包括:In some optional embodiments, as shown in FIG. 5, the data receiving end 300 further includes:
第一重启模块306,用于若所述下边界与所述第一变量记录的SDU分段不相同时,则确定接收序列存在接收缺口,并重启所述重组定时器,以及记录所述下边界为所述第一变量记录的SDU分段。The first restarting module 306 is configured to: if the lower boundary is different from the SDU segment recorded by the first variable, determine that the receiving sequence has a receiving gap, restart the reassembly timer, and record the lower boundary The SDU segment recorded for the first variable.
在一些可选的实施例中,如图6所示,所述启动模块302,包括:In some optional embodiments, as shown in FIG. 6, the startup module 302 includes:
启动单元3021,用于所述若根据所述分段信息确定接收序列存在接收缺口,则启动重组定时器,并计算缓存中所有SN中两两之间的最小距离,其中,两两之间的最小距离距为两个SN的第一距离和第二距离中的最小距离, 所述第一距离为两个SN中大SN减小SN得到的距离,所述第二距离为两个SN中小SN与预设最大SN之和减大SN得到的距离;The initiating unit 3021 is configured to: if the receiving sequence has a receiving gap according to the segmentation information, start a reassembly timer, and calculate a minimum distance between two of the SNs in the cache, where between the two The minimum distance is the first distance of the two SNs and the minimum distance of the second distance, where the first distance is the distance obtained by the large SN in the two SNs, and the second distance is the small SN of the two SNs. The distance obtained by subtracting the SN from the sum of the preset maximum SNs;
选择单元3022,用于选择所有最小距离中最大距离,并将所述最大距离对应的区间作为与所述重组定时器对应的SDU分段区间。The selecting unit 3022 is configured to select a maximum distance among all the minimum distances, and use an interval corresponding to the maximum distance as an SDU segmentation interval corresponding to the reorganization timer.
在一些可选的实施例中,如图7所示,所述数据接收端300还包括:In some optional embodiments, as shown in FIG. 7, the data receiving end 300 further includes:
第二重启模块307,用于在所述重组定时器停止或者超时后,若还存在接收缺口,则重启所述重组定时器,并计算缓存中所有SN中两两之间的最小距离,其中,两两之间的最小距离距为两个SN的第一距离和第二距离中的最小距离,所述第一距离为两个SN中大SN减小SN得到的距离,所述第二距离为两个SN中小SN与预设最大SN之和减大SN得到的距离;a second restarting module 307, configured to restart the reassembly timer and calculate a minimum distance between two SNs in the cache if the re-synchronization timer is stopped or timed out, where The minimum distance between the two pairs is the first distance of the two SNs and the minimum distance of the second distance, the first distance is the distance obtained by the large SN decreasing SN in the two SNs, and the second distance is The distance between the SN of the two SNs and the preset maximum SN is reduced by the SN;
选择模块308,用于选择所有最小距离中最大距离,并将所述最大距离对应的区间作为与重启的所述重组定时器对应的SDU分段区间。The selecting module 308 is configured to select a maximum distance among all the minimum distances, and use an interval corresponding to the maximum distance as an SDU segmentation interval corresponding to the restarted reassembly timer.
需要说明的是,本实施例中上述数据接收端300可以是本公开实施例中方法实施例中任意实施方式的数据接收端,本公开实施例中方法实施例中数据接收端的任意实施方式都可以被本实施例中的上述数据接收端300所实现,以及达到相同的有益效果,此处不再赘述。It should be noted that, in the embodiment, the data receiving end 300 may be the data receiving end of any of the method embodiments in the embodiment of the disclosure, and any implementation manner of the data receiving end in the method embodiment of the disclosure may be used. It is implemented by the above-mentioned data receiving end 300 in this embodiment, and achieves the same beneficial effects, and details are not described herein again.
请参考图8,图8是本公开实施例提供的另一种数据接收端的结构图,如图8所示,该数据接收端包括:处理器800、收发机810、存储器820、用户接口830和总线接口,其中:Please refer to FIG. 8. FIG. 8 is a structural diagram of another data receiving end according to an embodiment of the present disclosure. As shown in FIG. 8, the data receiving end includes: a processor 800, a transceiver 810, a memory 820, a user interface 830, and Bus interface, where:
处理器800,用于读取存储器820中的程序,执行下列过程:The processor 800 is configured to read a program in the memory 820 and perform the following process:
获取SDU的SDU分段的分段信息,所述分段信息包括序列号SN;Obtaining segmentation information of an SDU segment of the SDU, where the segmentation information includes a sequence number SN;
若根据所述分段信息确定存在接收缺口,则启动重组定时器,并确定所述重组定时器对应的SDU分段区间;If it is determined that there is a reception gap according to the segmentation information, start a reassembly timer, and determine an SDU segmentation interval corresponding to the reassembly timer;
若在所述重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器;Stopping the reassembly timer if the SDU segments in the SDU segment interval are correctly received before the reassembly timer expires;
若所述重组定时器超时,则删除所述SDU分段区间的所有未成功重组的SDU分段。If the reassembly timer expires, all unsuccessfully reassembled SDU segments of the SDU segmentation interval are deleted.
其中,收发机810,用于在处理器800的控制下接收和发送数据。The transceiver 810 is configured to receive and transmit data under the control of the processor 800.
在图8中,总线架构可以包括任意数量的互联的总线和桥,具体由处理 器800代表的一个或多个处理器和存储器820代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发机810可以是多个元件,即包括发送机和接收机,提供用于在传输介质上与各种其他装置通信的单元。针对不同的用户设备,用户接口830还可以是能够外接内接需要设备的接口,连接的设备包括但不限于小键盘、显示器、扬声器、麦克风、操纵杆等。In Figure 8, the bus architecture can include any number of interconnected buses and bridges, specifically linked by one or more processors represented by processor 800 and various circuits of memory represented by memory 820. The bus architecture can also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and, therefore, will not be further described herein. The bus interface provides an interface. Transceiver 810 can be a plurality of components, including a transmitter and a receiver, providing means for communicating with various other devices on a transmission medium. For different user equipments, the user interface 830 may also be an interface capable of externally connecting the required devices, including but not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.
处理器800负责管理总线架构和通常的处理,存储器820可以存储处理器800在执行操作时所使用的数据。The processor 800 is responsible for managing the bus architecture and general processing, and the memory 820 can store data used by the processor 800 in performing operations.
在一些可选的实施例中,同一SDU内的SDU分段的分段信息包括的SN相同;或者同一SDU内的SDU分段的分段信息包括的SN不同。In some optional embodiments, the segmentation information of the SDU segments within the same SDU includes the same SN; or the segmentation information of the SDU segments within the same SDU includes different SNs.
在一些可选的实施例中,处理器800还用于:记录并维护如下一个或者多个变量:第一变量、第二变量和第三变量;其中,所述第一变量用于记录接收到的最高SDU分段的下一个SDU分段的变量信息,或者用于记录接收到的最高SDU分段的变量信息;所述第二变量用于记录所述重组定时器对应的SDU分段区间的上边界的变量信息;所述第三变量用于记录需要重组操作的SDU分段区间的下边界的变量信息;其中,所述变量信息包括SN和/或SO信息。In some optional embodiments, the processor 800 is further configured to: record and maintain one or more variables: a first variable, a second variable, and a third variable; wherein the first variable is used for recording and receiving Variable information of the next SDU segment of the highest SDU segment, or variable information for recording the highest SDU segment received; the second variable is used to record the SDU segment interval corresponding to the reassembly timer Variable information of the upper boundary; the third variable is used to record variable information of a lower boundary of an SDU segmentation interval requiring a reorganization operation; wherein the variable information includes SN and/or SO information.
在一些可选的实施例中,若所述接收序列不存在接收缺口或者所有接收缺口均已经正确接收,则所述需要重组操作的SDU分段区间的下边界等于接收到的最高SDU分段的下一个SDU分段,或者接收到的最高SDU分段;若接收序列中存在接收缺口,则所述需要重组操作的SDU分段区间的下边界为所述接收序列的第一个接收缺口处的SDU分段;若所述第一个缺口处的SDU分段正确接收,则所述需要重组操作的SDU分段区间的下边界更新为下一个接收缺口处的SDU分段。In some optional embodiments, if the receiving sequence does not have a receiving gap or all receiving gaps have been correctly received, the lower boundary of the SDU segmentation interval requiring the reassembly operation is equal to the highest SDU segment received. The next SDU segment, or the highest SDU segment received; if there is a reception gap in the received sequence, the lower boundary of the SDU segment interval requiring the reassembly operation is at the first receiving gap of the receiving sequence SDU segment; if the SDU segment at the first gap is correctly received, the lower boundary of the SDU segment interval requiring the reassembly operation is updated to the SDU segment at the next reception gap.
在一些可选的实施例中,若启动所述重组定时器,则所述上边界为接收到的最高SDU分段的下一个SDU分段或者接收到的最高SDU分段,在所述重组定时器有效期限所述上边界不变;In some optional embodiments, if the reassembly timer is started, the upper boundary is the next SDU segment of the highest SDU segment received or the highest SDU segment received, at the reassembly timing The upper boundary of the effective period of the device is unchanged;
且所述重组定时器对应的SDU分段区间为由所述下边界和所述上边界 决定的区间。And the SDU segmentation interval corresponding to the reorganization timer is an interval determined by the lower boundary and the upper boundary.
在一些可选的实施例中,所述若在所述重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器,包括:In some optional embodiments, if the SDU segment in the SDU segment interval is correctly received before the reassembly timer expires, stopping the reassembly timer includes:
若所述下边界等于所述上边界,或者所述下边界更新为所述上边界之后的SDU分段,则确定所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器。If the lower boundary is equal to the upper boundary, or the lower boundary is updated to an SDU segment after the upper boundary, determining that the SDU segments in the SDU segment interval are correctly received, stopping the reorganization Timer.
在一些可选的实施例中,所述若所述重组定时器超时,则删除所述SDU分段区间的所有未成功重组的SDU分段,包括:In some optional embodiments, if the reassembly timer expires, all unsuccessfully reassembled SDU segments of the SDU segment interval are deleted, including:
若所述重组定时器超时,且所述下边界为所述上边界之前的SDU分段,则确定所述SDU分段区间还存在未正确接收的SDU分段,并删除所述SDU分段区间的所有未成功重组的SDU分段,并将所述下边界更新为所述上边界对应的SDU分段。If the reassembly timer expires, and the lower boundary is an SDU segment before the upper boundary, it is determined that the SDU segment has an incorrectly received SDU segment, and the SDU segment interval is deleted. All SDU segments that have not been successfully reassembled, and update the lower boundary to the SDU segment corresponding to the upper boundary.
在一些可选的实施例中,处理器800还用于:In some optional embodiments, the processor 800 is further configured to:
若所述下边界与所述第一变量记录的SDU分段不相同时,则确定接收序列存在接收缺口,并重启所述重组定时器,以及记录所述下边界为所述第一变量记录的SDU分段。If the lower boundary is different from the SDU segment recorded by the first variable, determining that the receiving sequence has a receiving gap, restarting the reassembly timer, and recording the lower boundary as the first variable record SDU segmentation.
在一些可选的实施例中,所述若根据所述分段信息确定接收序列存在接收缺口,则启动重组定时器,并确定所述重组定时器对应的SDU分段区间,包括:所述若根据所述分段信息确定接收序列存在接收缺口,则启动重组定时器,并计算缓存中所有SN中两两之间的最小距离,其中,两两之间的最小距离距为两个SN的第一距离和第二距离中的最小距离,所述第一距离为两个SN中大SN减小SN得到的距离,所述第二距离为两个SN中小SN与预设最大SN之和减大SN得到的距离;选择所有最小距离中最大距离,并将所述最大距离对应的区间作为与所述重组定时器对应的SDU分段区间。In some optional embodiments, if it is determined that the receiving sequence has a receiving gap according to the segmentation information, the re-establishment timer is started, and the SDU segmentation interval corresponding to the reassembly timer is determined, including: Determining that there is a reception gap in the received sequence according to the segmentation information, starting a reassembly timer, and calculating a minimum distance between two of the SNs in the cache, wherein a minimum distance between the two is a SN of the two SNs a minimum distance between a distance and a second distance, wherein the first distance is a distance obtained by a large SN in the two SNs, and the second distance is a sum of a small SN of the two SNs and a preset maximum SN. The distance obtained by the SN; the maximum distance among all the minimum distances is selected, and the interval corresponding to the maximum distance is taken as the SDU segmentation interval corresponding to the reassembly timer.
在一些可选的实施例中,处理器800还用于:在所述重组定时器停止或者超时后,若还存在接收缺口,则重启所述重组定时器,并计算缓存中所有SN中两两之间的最小距离,其中,两两之间的最小距离距为两个SN的第一距离和第二距离中的最小距离,所述第一距离为两个SN中大SN减小SN得到的距离,所述第二距离为两个SN中小SN与预设最大SN之和减大SN得 到的距离;选择所有最小距离中最大距离,并将所述最大距离对应的区间作为与重启的所述重组定时器对应的SDU分段区间。In some optional embodiments, the processor 800 is further configured to: after the reassembly timer stops or times out, if there is still a reception gap, restart the reassembly timer, and calculate two or two of all SNs in the cache. The minimum distance between the two, the minimum distance between the two is the first distance of the two SNs and the minimum distance of the second distance, the first distance is obtained by reducing the SN by the large SN of the two SNs The distance is the distance obtained by subtracting the SN from the sum of the small SNs of the two SNs and the preset maximum SN; selecting the maximum distance among all the minimum distances, and the interval corresponding to the maximum distance is as described with respect to the restart The SDU segmentation interval corresponding to the reassembly timer.
需要说明的是,本实施例中上述数据接收端可以是本公开实施例中方法实施例中任意实施方式的数据接收端,本公开实施例中方法实施例中数据接收端的任意实施方式都可以被本实施例中的上述数据接收端所实现,以及达到相同的有益效果,此处不再赘述。It should be noted that, in the embodiment, the data receiving end may be the data receiving end of any embodiment of the method embodiment in the embodiment of the disclosure, and any implementation manner of the data receiving end in the method embodiment of the disclosure may be The above data receiving end in the embodiment is implemented, and the same beneficial effects are achieved, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露方法和装置,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in various embodiments of the present disclosure may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述收发方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The above software functional unit is stored in a storage medium and includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform part of the steps of the transceiving method of the various embodiments of the present disclosure. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, and the program code can be stored. Medium.
以上所述是本公开的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本公开所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本公开的保护范围。The above is a preferred embodiment of the present disclosure, and it should be noted that those skilled in the art can also make several improvements and refinements without departing from the principles of the present disclosure. It should be considered as the scope of protection of this disclosure.

Claims (22)

  1. 一种业务数据单元SDU分段处理方法,包括:A service data unit SDU segmentation processing method includes:
    获取SDU分段的分段信息,所述分段信息包括序列号SN;Obtaining segmentation information of the SDU segment, where the segmentation information includes a sequence number SN;
    若根据所述分段信息确定存在接收缺口,则启动重组定时器,并确定所述重组定时器对应的SDU分段区间;If it is determined that there is a reception gap according to the segmentation information, start a reassembly timer, and determine an SDU segmentation interval corresponding to the reassembly timer;
    若在所述重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器;Stopping the reassembly timer if the SDU segments in the SDU segment interval are correctly received before the reassembly timer expires;
    若所述重组定时器超时,则删除所述SDU分段区间的所有未成功重组的SDU分段。If the reassembly timer expires, all unsuccessfully reassembled SDU segments of the SDU segmentation interval are deleted.
  2. 如权利要求1所述的方法,其中,同一SDU内的SDU分段的分段信息包括的SN相同;或者The method of claim 1 wherein the segmentation information of the SDU segments within the same SDU comprises the same SN; or
    同一SDU内的SDU分段的分段信息包括的SN不同。The segmentation information of the SDU segment within the same SDU includes different SNs.
  3. 如权利要求1或2所述的方法,还包括:The method of claim 1 or 2, further comprising:
    记录并维护如下一个或者多个变量:Record and maintain one or more of the following variables:
    第一变量、第二变量和第三变量;The first variable, the second variable, and the third variable;
    其中,所述第一变量用于记录接收到的最高SDU分段的下一个SDU分段的变量信息,或者用于记录接收到的最高SDU分段的变量信息;The first variable is used to record variable information of a next SDU segment of the received highest SDU segment, or to record variable information of the highest SDU segment received;
    所述第二变量用于记录所述重组定时器对应的SDU分段区间的上边界的变量信息;The second variable is used to record variable information of an upper boundary of an SDU segmentation interval corresponding to the reassembly timer;
    所述第三变量用于记录需要重组操作的SDU分段区间的下边界的变量信息;The third variable is used to record variable information of a lower boundary of an SDU segmentation interval that requires a reorganization operation;
    其中,所述变量信息包括SN和/或分段偏移SO信息。Wherein, the variable information includes SN and/or segment offset SO information.
  4. 如权利要求3所述的方法,其中,若接收序列中不存在接收缺口或者所有接收缺口均已经正确接收,则所述需要重组操作的SDU分段区间的下边界等于接收到的最高SDU分段的下一个SDU分段,或者接收到的最高SDU分段;The method of claim 3, wherein if there is no reception gap in the received sequence or all reception gaps have been correctly received, the lower boundary of the SDU segmentation interval requiring reassembly operation is equal to the highest SDU segment received The next SDU segment, or the highest SDU segment received;
    若接收序列中存在接收缺口,则所述需要重组操作的SDU分段区间的下边界为所述接收序列的第一个接收缺口处的SDU分段;If there is a reception gap in the received sequence, the lower boundary of the SDU segmentation interval requiring the reassembly operation is an SDU segment at the first reception gap of the receiving sequence;
    若所述第一个缺口处的SDU分段正确接收,则所述需要重组操作的SDU分段区间的下边界更新为下一个接收缺口处的SDU分段。If the SDU segment at the first gap is correctly received, the lower boundary of the SDU segmentation interval requiring the reassembly operation is updated to the SDU segment at the next reception gap.
  5. 如权利要求4所述的方法,其中,若启动所述重组定时器,则所述上边界为接收到的最高SDU分段的下一个SDU分段或者接收到的最高SDU分段,在所述重组定时器有效期限所述上边界不变;The method of claim 4, wherein if the reassembly timer is initiated, the upper boundary is a next SDU segment of the highest SDU segment received or a highest SDU segment received, The upper boundary of the reorganization timer is unchanged;
    且所述重组定时器对应的SDU分段区间为由所述下边界和所述上边界决定的区间。And the SDU segmentation interval corresponding to the reorganization timer is an interval determined by the lower boundary and the upper boundary.
  6. 如权利要求5所述的方法,其中,所述若在所述重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器,包括:The method of claim 5, wherein if the SDU segments in the SDU segment interval are correctly received before the reassembly timer expires, stopping the reassembly timer comprises:
    若所述下边界等于所述上边界,或者所述下边界更新为所述上边界之后的SDU分段,则确定所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器。If the lower boundary is equal to the upper boundary, or the lower boundary is updated to an SDU segment after the upper boundary, determining that the SDU segments in the SDU segment interval are correctly received, stopping the reorganization Timer.
  7. 如权利要求5所述的方法,其中,所述若所述重组定时器超时,则删除所述SDU分段区间的所有未成功重组的SDU分段,包括:The method of claim 5, wherein if the reassembly timer expires, deleting all unsuccessfully reassembled SDU segments of the SDU segmentation interval includes:
    若所述重组定时器超时,且所述下边界为所述上边界之前的SDU分段,则确定所述SDU分段区间还存在未正确接收的SDU分段,并删除所述SDU分段区间的所有未成功重组的SDU分段,并将所述下边界更新为所述上边界对应的SDU分段。If the reassembly timer expires, and the lower boundary is an SDU segment before the upper boundary, it is determined that the SDU segment has an incorrectly received SDU segment, and the SDU segment interval is deleted. All SDU segments that have not been successfully reassembled, and update the lower boundary to the SDU segment corresponding to the upper boundary.
  8. 如权利要求5所述的方法,其中,所述方法还包括:The method of claim 5 wherein the method further comprises:
    若所述下边界与所述第一变量记录的SDU分段不相同时,则确定接收序列存在接收缺口,并重启所述重组定时器,以及记录所述上边界为所述第一变量记录的SDU分段。If the lower boundary is different from the SDU segment recorded by the first variable, determining that the receiving sequence has a receiving gap, restarting the reassembly timer, and recording the upper boundary as the first variable record SDU segmentation.
  9. 如权利要求1或2所述的方法,其中,所述若根据所述分段信息确定接收序列存在接收缺口,则启动重组定时器,并确定所述重组定时器对应的SDU分段区间,包括:The method according to claim 1 or 2, wherein, if it is determined that there is a reception gap in the received sequence according to the segmentation information, a reassembly timer is started, and an SDU segmentation interval corresponding to the reassembly timer is determined, including :
    所述若根据所述分段信息确定接收序列存在接收缺口,则启动重组定时器,并计算缓存中所有SN中两两之间的最小距离,其中,两两之间的最小距离为两个SN的第一距离和第二距离中的最小距离,所述第一距离为两个 SN中大SN减小SN得到的距离,所述第二距离为两个SN中小SN与预设最大SN之和减大SN得到的距离;If it is determined according to the segmentation information that there is a reception gap in the received sequence, the reassembly timer is started, and a minimum distance between two of the SNs in the cache is calculated, wherein the minimum distance between the two pairs is two SNs. a minimum distance between the first distance and the second distance, wherein the first distance is a distance obtained by a large SN in the two SNs, and the second distance is a sum of the small SNs of the two SNs and a preset maximum SN Reduce the distance obtained by the SN;
    选择所有最小距离中最大距离,并将所述最大距离对应的区间作为与所述重组定时器对应的SDU分段区间。The maximum distance among all the minimum distances is selected, and the interval corresponding to the maximum distance is taken as the SDU segmentation interval corresponding to the reorganization timer.
  10. 如权利要求1或2所述的方法,还包括:The method of claim 1 or 2, further comprising:
    在所述重组定时器停止或者超时后,若还存在接收缺口,则重启所述重组定时器,并计算缓存中所有SN中两两之间的最小距离,其中,两两之间的最小距离距为两个SN的第一距离和第二距离中的最小距离,所述第一距离为两个SN中大SN减小SN得到的距离,所述第二距离为两个SN中小SN与预设最大SN之和减大SN得到的距离;After the reassembly timer stops or times out, if there is still a reception gap, the reassembly timer is restarted, and the minimum distance between two of the SNs in the cache is calculated, wherein the minimum distance between the two is a minimum distance between the first distance and the second distance of the two SNs, where the first distance is a distance obtained by the large SN in the two SNs, and the second distance is a small SN and a preset in the two SNs. The sum of the maximum SN is reduced by the distance obtained by the SN;
    选择所有最小距离中最大距离,并将所述最大距离对应的区间作为与重启的所述重组定时器对应的SDU分段区间。The maximum distance among all the minimum distances is selected, and the interval corresponding to the maximum distance is taken as the SDU segmentation interval corresponding to the recombination timer that is restarted.
  11. 一种数据接收端,包括:A data receiving end comprising:
    获取模块,用于获取SDU的SDU分段的分段信息,所述分段信息包括序列号SN;An acquiring module, configured to acquire segmentation information of an SDU segment of the SDU, where the segmentation information includes a sequence number SN;
    启动模块,用于若根据所述分段信息确定存在接收缺口,则启动重组定时器,并确定所述重组定时器对应的SDU分段区间;a startup module, configured to: if a receiving gap is determined according to the segmentation information, start a reassembly timer, and determine an SDU segmentation interval corresponding to the reassembly timer;
    停止模块,用于若在所述重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器;a stopping module, configured to stop the reassembly timer if the SDU segments in the SDU segment interval are correctly received before the reassembly timer expires;
    删除模块,用于若所述重组定时器超时,则删除所述SDU分段区间的所有未成功重组的SDU分段。And deleting a module, if the reassembly timer expires, deleting all unsuccessfully reassembled SDU segments of the SDU segmentation interval.
  12. 如权利要求11所述的数据接收端,其中,同一SDU内的SDU分段的分段信息包括的SN相同;或者The data receiving end according to claim 11, wherein the segmentation information of the SDU segment in the same SDU includes the same SN; or
    同一SDU内的SDU分段的分段信息包括的SN不同。The segmentation information of the SDU segment within the same SDU includes different SNs.
  13. 如权利要求11或12所述的数据接收端,其中,所述数据接收端还包括:The data receiving end according to claim 11 or 12, wherein the data receiving end further comprises:
    记录维护模块,用于记录并维护如下一个或者多个变量:Record maintenance module for recording and maintaining one or more of the following variables:
    第一变量、第二变量和第三变量;The first variable, the second variable, and the third variable;
    其中,所述第一变量用于记录接收到的最高SDU分段的下一个SDU分 段的变量信息,或者用于记录接收到的最高SDU分段的变量信息;The first variable is used to record variable information of a next SDU segment of the received highest SDU segment, or to record variable information of the highest SDU segment received;
    所述第二变量用于记录所述重组定时器对应的SDU分段区间的上边界的变量信息;The second variable is used to record variable information of an upper boundary of an SDU segmentation interval corresponding to the reassembly timer;
    所述第三变量用于记录需要重组操作的SDU分段区间的下边界的变量信息;The third variable is used to record variable information of a lower boundary of an SDU segmentation interval that requires a reorganization operation;
    其中,所述变量信息包括SN和/或分段偏移SO信息。Wherein, the variable information includes SN and/or segment offset SO information.
  14. 如权利要求13所述的数据接收端,其中,若接收序列中不存在接收缺口或者所有接收缺口均已经正确接收,则所述需要重组操作的SDU分段区间的下边界等于接收到的最高SDU分段的下一个SDU分段,或者接收到的最高SDU分段;The data receiving end according to claim 13, wherein if a receiving gap does not exist in the receiving sequence or all receiving gaps have been correctly received, the lower boundary of the SDU segmentation interval requiring the reassembly operation is equal to the highest SDU received. The next SDU segment of the segment, or the highest SDU segment received;
    若接收序列中存在接收缺口,则所述需要重组操作的SDU分段区间的下边界为所述接收序列的第一个接收缺口处的SDU分段;If there is a reception gap in the received sequence, the lower boundary of the SDU segmentation interval requiring the reassembly operation is an SDU segment at the first reception gap of the receiving sequence;
    若所述第一个缺口处的SDU分段正确接收,则所述需要重组操作的SDU分段区间的下边界更新为下一个接收缺口处的SDU分段。If the SDU segment at the first gap is correctly received, the lower boundary of the SDU segmentation interval requiring the reassembly operation is updated to the SDU segment at the next reception gap.
  15. 如权利要求14所述的数据接收端,其中,若启动所述重组定时器,则所述上边界为接收到的最高SDU分段的下一个SDU分段或者接收到的最高SDU分段,在所述重组定时器有效期限所述上边界不变;The data receiving end according to claim 14, wherein if said reassembly timer is started, said upper boundary is a next SDU segment of the highest SDU segment received or a highest SDU segment received, The upper boundary of the reorganization timer is unchanged;
    且所述重组定时器对应的SDU分段区间为由所述下边界和所述上边界决定的区间。And the SDU segmentation interval corresponding to the reorganization timer is an interval determined by the lower boundary and the upper boundary.
  16. 如权利要求15所述的数据接收端,其中,所述停止模块用于若所述下边界等于所述上边界,或者所述下边界更新为所述上边界之后的SDU分段,则确定所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器。The data receiving end according to claim 15, wherein said stopping module is configured to determine if said lower boundary is equal to said upper boundary, or said lower boundary is updated to an SDU segment after said upper boundary If the SDU segments in the SDU segment interval are correctly received, the reassembly timer is stopped.
  17. 如权利要求15所述的数据接收端,其中,所述删除模块用于若所述重组定时器超时,且所述下边界为所述上边界之前的SDU分段,则确定所述SDU分段区间还存在未正确接收的SDU分段,并删除所述SDU分段区间的所有未成功重组的SDU分段,并将所述下边界更新为所述上边界对应的SDU分段。The data receiving end according to claim 15, wherein the deleting module is configured to determine the SDU segment if the reassembly timer expires and the lower boundary is an SDU segment before the upper boundary There are also SDU segments that are not correctly received, and all unsuccessfully reassembled SDU segments of the SDU segment interval are deleted, and the lower boundary is updated to the SDU segment corresponding to the upper boundary.
  18. 如权利要求15所述的数据接收端,其中,所述数据接收端还包括:The data receiving end according to claim 15, wherein the data receiving end further comprises:
    第一重启模块,用于若所述下边界与所述第一变量记录的SDU分段不相同时,则确定接收序列存在接收缺口,并重启所述重组定时器,以及记录所述下边界为所述第一变量记录的SDU分段。a first restarting module, if the lower boundary is different from the SDU segment recorded by the first variable, determining that a receiving gap exists in the receiving sequence, restarting the reassembly timer, and recording the lower boundary as The SDU segment of the first variable record.
  19. 如权利要求11或12所述的数据接收端,其中,所述启动模块,包括:The data receiving end according to claim 11 or 12, wherein the startup module comprises:
    启动单元,用于所述若根据所述分段信息确定接收序列存在接收缺口,则启动重组定时器,并计算缓存中所有SN中两两之间的最小距离,其中,两两之间的最小距离距为两个SN的第一距离和第二距离中的最小距离,所述第一距离为两个SN中大SN减小SN得到的距离,所述第二距离为两个SN中小SN与预设最大SN之和减大SN得到的距离;Activating unit, configured to: if the receiving sequence has a receiving gap according to the segmentation information, start a reassembly timer, and calculate a minimum distance between two of the SNs in the cache, where a minimum between the two The distance is a distance between the first distance and the second distance of the two SNs, where the first distance is the distance obtained by the large SN in the two SNs, and the second distance is the small SN of the two SNs. Predetermining the sum of the maximum SN and reducing the distance obtained by the SN;
    选择单元,用于选择所有最小距离中最大距离,并将所述最大距离对应的区间作为与所述重组定时器对应的SDU分段区间。And a selecting unit, configured to select a maximum distance among all the minimum distances, and use an interval corresponding to the maximum distance as an SDU segmentation interval corresponding to the reorganization timer.
  20. 如权利要求11或12所述的数据接收端,其中,所述数据接收端还包括:The data receiving end according to claim 11 or 12, wherein the data receiving end further comprises:
    第二重启模块,用于在所述重组定时器停止或者超时后,若还存在接收缺口,则重启所述重组定时器,并计算缓存中所有SN中两两之间的最小距离,其中,两两之间的最小距离距为两个SN的第一距离和第二距离中的最小距离,所述第一距离为两个SN中大SN减小SN得到的距离,所述第二距离为两个SN中小SN与预设最大SN之和减大SN得到的距离;a second restarting module, configured to restart the reassembly timer and calculate a minimum distance between two SNs in the cache, if the re-synchronization timer is stopped or timed out, The minimum distance between the two is the first distance of the two SNs and the minimum distance of the second distance, the first distance is the distance obtained by the large SN in the two SNs, and the second distance is two The distance between the SN and the small SN and the preset maximum SN is reduced by the SN;
    选择模块,用于选择所有最小距离中最大距离,并将所述最大距离对应的区间作为与重启的所述重组定时器对应的SDU分段区间。And a selection module, configured to select a maximum distance among all the minimum distances, and use an interval corresponding to the maximum distance as an SDU segmentation interval corresponding to the restarted reassembly timer.
  21. 一种数据接收端,包括处理器、收发机、存储器、用户接口和总线接口,其中,所述处理器,用于读取所述存储器中的程序,执行下列过程:A data receiving end includes a processor, a transceiver, a memory, a user interface and a bus interface, wherein the processor is configured to read a program in the memory and perform the following process:
    获取SDU的SDU分段的分段信息,所述分段信息包括序列号SN;Obtaining segmentation information of an SDU segment of the SDU, where the segmentation information includes a sequence number SN;
    若根据所述分段信息确定存在接收缺口,则启动重组定时器,并确定所述重组定时器对应的SDU分段区间;If it is determined that there is a reception gap according to the segmentation information, start a reassembly timer, and determine an SDU segmentation interval corresponding to the reassembly timer;
    若在所述重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器;Stopping the reassembly timer if the SDU segments in the SDU segment interval are correctly received before the reassembly timer expires;
    若所述重组定时器超时,则删除所述SDU分段区间的所有未成功重组的 SDU分段。If the reassembly timer expires, all unsuccessfully reassembled SDU segments of the SDU segmentation interval are deleted.
  22. 一种计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现以下步骤:A computer readable storage medium having stored thereon a computer program, wherein the program, when executed by the processor, implements the following steps:
    获取SDU的SDU分段的分段信息,所述分段信息包括序列号SN;Obtaining segmentation information of an SDU segment of the SDU, where the segmentation information includes a sequence number SN;
    若根据所述分段信息确定存在接收缺口,则启动重组定时器,并确定所述重组定时器对应的SDU分段区间;If it is determined that there is a reception gap according to the segmentation information, start a reassembly timer, and determine an SDU segmentation interval corresponding to the reassembly timer;
    若在所述重组定时器超时之前,所述SDU分段区间内的SDU分段均正确接收,则停止所述重组定时器;Stopping the reassembly timer if the SDU segments in the SDU segment interval are correctly received before the reassembly timer expires;
    若所述重组定时器超时,则删除所述SDU分段区间的所有未成功重组的SDU分段。If the reassembly timer expires, all unsuccessfully reassembled SDU segments of the SDU segmentation interval are deleted.
PCT/CN2018/089018 2017-06-15 2018-05-30 Service data unit segmentation processing method and data receiving end WO2018228193A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710453985.7A CN107317760B (en) 2017-06-15 2017-06-15 SDU (service data Unit) segmentation processing method and data receiving end
CN201710453985.7 2017-06-15

Publications (1)

Publication Number Publication Date
WO2018228193A1 true WO2018228193A1 (en) 2018-12-20

Family

ID=60181812

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089018 WO2018228193A1 (en) 2017-06-15 2018-05-30 Service data unit segmentation processing method and data receiving end

Country Status (2)

Country Link
CN (1) CN107317760B (en)
WO (1) WO2018228193A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107317760B (en) * 2017-06-15 2020-06-16 电信科学技术研究院 SDU (service data Unit) segmentation processing method and data receiving end
WO2019028826A1 (en) * 2017-08-11 2019-02-14 Qualcomm Incorporated Radio link control reassembling techniques in wireless systems
CN110611558B (en) * 2019-10-16 2022-04-22 深圳前海中电慧安科技有限公司 Method and device for collecting mobile terminal information, collecting equipment and storage medium
CN115516912A (en) * 2020-07-08 2022-12-23 Oppo广东移动通信有限公司 Starting method, configuration method, device, equipment and medium of recombination timer

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150055635A1 (en) * 2006-07-31 2015-02-26 Lg Electronics Inc. Method of processing control information in a mobile communication system
CN104717043A (en) * 2013-12-13 2015-06-17 电信科学技术研究院 Method and device for starting and rearranging timer duration
CN107317760A (en) * 2017-06-15 2017-11-03 电信科学技术研究院 A kind of SDU segment processings method and data receiver

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150055635A1 (en) * 2006-07-31 2015-02-26 Lg Electronics Inc. Method of processing control information in a mobile communication system
CN104717043A (en) * 2013-12-13 2015-06-17 电信科学技术研究院 Method and device for starting and rearranging timer duration
CN107317760A (en) * 2017-06-15 2017-11-03 电信科学技术研究院 A kind of SDU segment processings method and data receiver

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ERICSSON: "RLC UM receiver window operation", 3GPP TSG-RAN WG2 #98 R2-1704365, 6 May 2017 (2017-05-06), XP051264379 *
LG ELECTRONICS INC.,: "Reassembly timer for RLC UM", 3GPP TSG-RAN WG2 #98 R2-1704513, 6 May 2017 (2017-05-06), XP051264451 *

Also Published As

Publication number Publication date
CN107317760B (en) 2020-06-16
CN107317760A (en) 2017-11-03

Similar Documents

Publication Publication Date Title
WO2018228193A1 (en) Service data unit segmentation processing method and data receiving end
US8843175B2 (en) Apparatus and methods for mitigating protocol-induced back-offs in a communication network
EP1987689B1 (en) Technique for configuring link layer entities for a handover
RU2487485C2 (en) Method of controlling transmission window and retransmission and transmitting device
WO2018127238A1 (en) Information processing method and apparatus
KR20200087231A (en) Method and apparatus for processing asynchronous buffer
US20170055176A1 (en) Pdcp transmitting entity, secondary base station, user equipment and associated methods
CN109451593B (en) Apparatus and method for handling bearer type change for radio bearer
WO2009093797A1 (en) Method for performing handover procedure and creating data
CN104798320A (en) Data transmission method and device
JP6485979B2 (en) Transmission protection
US20170164231A1 (en) Data transmission method and base station
CN102395156A (en) Data transmission methods and device applied between packet data convergence protocol (PDCP) entity and radio link control (RLC) entity
WO2021000783A1 (en) Method and apparatus for indicating data transmission situations
JP4060181B2 (en) Data transmission protocol
WO2019062725A1 (en) Method and device for uplink data transmission
EP3952249A1 (en) Data transmission method and apparatus
CN112969244B (en) Session recovery method and device
CN111294885B (en) Soft handover method and device, storage medium, user terminal and source base station
JP4896073B2 (en) Method and apparatus for polling data transmission status in a wireless communication system
TWI388172B (en) Method and apparatus for setting a highest received state variable in a wireless communications system
WO2019085042A1 (en) Communication method, base station, and apparatus having storage function
WO2017193807A1 (en) Data transmission method, user equipment, base station, and system
CN109688085B (en) Transmission control protocol proxy method, storage medium and server
CN112469080A (en) Data packet processing method and related device

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: 18817071

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: 18817071

Country of ref document: EP

Kind code of ref document: A1