Adjustment method, electronic device and computer storage medium
By adjusting the value of t-Reordering to extend the waiting time for unreceived PDUs during the sequential delivery of PDUs on the user equipment side, the problem of PDCP layer packet loss caused by too short t-Reordering in the network configuration is solved and data is improved. Transmission quality.
Patent Information
- Application Number
- CN202210091911.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-26
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-01-26
AI Technical Summary
When the t-Reordering of the existing user equipment (UE) side PDCP layer in the network configuration is too short, the waiting time for reordering is insufficient, resulting in an increase in the number of packet losses at the PDCP layer.
During the sequential delivery of PDUs, when t-Reordering times out, the detection timer is started to obtain the vacancy COUNT smaller than RX_DELIV, and the vacancy COUNT is determined to be filled based on the COUNT of the received PDU, and the value of t-Reordering is adjusted to be consistent with the predetermined value. Let the time steps be summed until the first preset time threshold is reached, and the value is reset when the duration the value remains unchanged exceeds the second preset time threshold.
By adjusting the value of t-Reordering to extend the waiting time for unreceived PDUs, the packet loss rate at the PDCP layer is reduced and the quality of data transmission is improved.
Smart Images

Figure CN114501537B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to a Packet Data Convergence Protocol (PDCP) layer in-order delivery technology of a New Radio (NR), and in particular to an adjustment method, an electronic device and a computer storage medium. Background Art
[0002] Currently, according to the 3rd Generation Partnership Project (3GPP) protocol 38.323, the NR PDCP layer has the functions of reordering and in-sequence delivery for the PDCP data protocol data unit (PDU).
[0003] When the network is configured with in-order delivery, the PDCP layer on the user equipment (UE) side will complete the reordering and in-order delivery functions according to the protocol provisions; according to the protocol provisions, when t-Reordering times out, all PDCP PDUs corresponding to COUNT before RX_REORD will be processed and transmitted to the upper layer in order, and the value of RX_DELIVE will be set to the COUNT corresponding to the first PDCP PDU that has not been uploaded to the upper layer, and when RX_DELIVE is less than RX_NEXT, the value of RX_REORD will be set to the value of RX_NEXT, and t-Reordering will be started at the same time.
[0004] However, when the t-Reorering configured by the network is too short, the waiting time for reordering is insufficient, which will lead to an increase in packet loss at the PDCP layer of the UE. This shows that the existing PDCP layer on the UE side has a technical problem of a large number of packet losses. Summary of the invention
[0005] The embodiments of the present application provide an adjustment method, an electronic device, and a computer storage medium, which can reduce the number of PDCP packet losses in an electronic device.
[0006] The technical solution of this application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides an adjustment method, which is applied in an electronic device and includes:
[0008] In the process of delivering PDUs in sequence, when t-Reordering times out and performs timeout processing, the detection timer is started and the missing COUNT in the COUNT that is less than RX_DELIV is obtained;
[0009] When the detection timer has not timed out, and the COUNT of the received PDU is at least one of the vacant COUNTs, the COUNT of the PDU filling the vacant COUNT is determined according to the COUNT of the received PDU; wherein the COUNTs of the PDUs filling the vacant COUNTs are different from each other;
[0010] When the COUNT of the PDU that fills the vacant COUNT meets a preset condition, adjusting the value of the t-Reordering to the sum of the value of the t-Reordering and a preset time step; wherein the value of the t-Reordering is less than or equal to a first preset time threshold;
[0011] When the duration for which the value of t-Reordering remains unchanged is greater than a second preset time threshold, the value of t-Reordering is reset.
[0012] In a second aspect, an embodiment of the present application provides an electronic device, including:
[0013] A start module is used to start a detection timer and obtain a missing COUNT in a COUNT smaller than RX_DELIV when t-Reordering times out and performs timeout processing during the process of sequentially delivering PDUs;
[0014] A determination module, configured to determine the COUNT of the PDU that fills the vacant COUNT according to the COUNT of the received PDU when the detection timer has not timed out and the COUNT of the received PDU is at least one of the vacant COUNTs; wherein the COUNTs of the PDUs that fill the vacant COUNTs are different from each other;
[0015] An adjustment module, configured to adjust the value of the t-Reordering to the sum of the value of the t-Reordering and a preset time step when the COUNT of the PDU filling the vacant COUNT meets a preset condition; wherein the value of the t-Reordering is less than or equal to a first preset time threshold;
[0016] A reset module is used to reset the value of t-Reordering when the duration for which the value of t-Reordering remains unchanged is greater than a second preset time threshold.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a storage medium storing instructions executable by the processor; the storage medium relies on the processor to perform operations through a communication bus, and when the instructions are executed by the processor, the adjustment method described in one or more of the above embodiments is executed.
[0018] In a fourth aspect, an embodiment of the present application provides a computer storage medium storing executable instructions. When the executable instructions are executed by one or more processors, the processor executes the adjustment method described in one or more of the above embodiments.
[0019] The embodiment of the present application provides an adjustment method, an electronic device and a computer storage medium, comprising: in the process of delivering PDUs in sequence, when t-Reordering times out and performs timeout processing, starting a detection timer and obtaining a vacant COUNT in a COUNT that is less than RX_DELIV; when the detection timer has not timed out, and the COUN of the received PDU is at least one COUNT in the vacant COUNT, determining the COUNT of the PDU that fills the vacant COUNT according to the COUNT of the received PDU, wherein the COUNTs of the PDUs that fill the vacant COUNTs are different from each other; when the COUNT of the PDUs that fill the vacant COUNTs meets a preset condition, adjusting the value of t-Reoedering to the sum of the value of t-Reoedering and a preset time step; wherein the value of t-Reordering is less than or equal to a first preset time threshold; when the duration for which the value of t-Reordering remains unchanged is greater than a second preset time threshold , reset the value of t-Reordering, that is, in the embodiment of the present application, after t-Reordering times out and performs timeout processing, in order to reduce the number of packet losses, a detection timer is added, and the PDU corresponding to the vacant COUNT received when the detection timer has not timed out, and when it is determined that the COUNT of the PDU filling the vacant COUNT meets the preset conditions, the value of t-Reoedering is adjusted to the sum of the value of t-Reoedering and the preset time step to increase the value of t-Reoedering, and when the duration for which the value of t-Reordering remains unchanged is greater than the second preset time threshold, the value of t-Reordering is reset to adjust the value of t-Reoedering. In this way, by adjusting the value of t-Reoedering, for the unreceived PDU, it is possible to wait for a suitable time to wait for the unreceived PDU to upload it to the upper layer, thereby reducing the packet loss rate of the PDCP layer and thereby improving the quality of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A flowchart of an optional adjustment method provided in an embodiment of the present application;
[0021] Figure 2a An illustration of PDU being delivered in sequence in the related art Figure 1 ;
[0022] Figure 2b Schematic diagram 2 of sequentially submitting PDUs in the related art;
[0023] Figure 2c An illustration of PDU being delivered in sequence in the related art Figure 3 ;
[0024] Figure 2d An illustration of PDU being delivered in sequence in the related art Figure 4 ;
[0025] Figure 3 A flowchart of an example of an optional adjustment method provided in an embodiment of the present application;
[0026] Figure 4 A schematic diagram of the structure of an optional electronic device provided in an embodiment of the present application;
[0027] Figure 5 A schematic diagram of the structure of another optional electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0029] The present application embodiment provides an adjustment method, which is applied to an electronic device. Figure 1 A flowchart of an optional adjustment method provided in an embodiment of the present application is shown as follows: Figure 1 As shown, the adjustment method may include:
[0030] S101: in the process of delivering PDUs in sequence, when t-Reordering times out and performs timeout processing, a detection timer is started, and a missing COUNT in a COUNT smaller than RX_DELIV is obtained;
[0031] In the related art, according to the provisions of the 3GPP protocol, if a PDCP data PDU is not discarded, the value of its COUNT is set to RCVD_COUNT.
[0032] In addition, the protocol also sets other parameters: RX_NEXT is the largest COUNT + 1 that has been received currently (excluding discarded ones); RX_DELIV is the largest COUNT in the PDUs that have been processed and uploaded to the upper layer; RX_REORD is COUNT - 1, where receiving the PDU corresponding to this COUNT causes out-of-order situations.
[0033] When the network is configured for in-sequence delivery, the protocol stipulates as follows:
[0034] If RCVD_COUNT >= RX_NEXT, set RX_NEXT to RCVD_COUNT + 1;
[0035] If RCVD_COUNT = RX_DELIV, process all consecutive PDCP data PDUs starting from COUNT = RX_DELIV in sequence and pass them to the upper layer, and at the same time set the first PDCP data PDU that has not been passed to the upper layer as RX_DELIV;
[0036] If t-Reordering (timer) is running and RX_DELIV >= RX_REORD, stop and reset t-Reordering;
[0037] If t-Reordering is not running (including being stopped due to the previous line) and RX_DELIV < RX_NEXT, set RX_REORD to RX_NEXT and start t-Reordering.
[0038] When t-Reordering times out, the following processing will be carried out:
[0039] (1) Process all PDCP data PDUs with COUNT < RX_REORD in the cache and pass them to the upper layer in sequence;
[0040] (2) Set the first PDCP data PDU that has not been passed to the upper layer as RX_DELIV;
[0041] (3) If RX_DELIV < RX_NEXT (indicating that there are still PDCP data PDUs in the cache and there is still out-of-order), then RX_REORD == RX_NEXT, and at the same time start t-Reordering.
[0042] Figure 2a Schematic diagram of PDU in in-sequence delivery in related technologies Figure 1 , such as Figure 2aAs shown, black indicates the PDCP data PDU that has been received, and white indicates the PDCP data PDU that has not been received. Assuming that there is no disorder at the beginning, at this time RX_DELIV = 3, the PDCP data PDUs with COUNT of 1 and 2 have been processed and uploaded to the upper layer, and RX_NEXT = 3.
[0043] Figure 2b Schematic diagram 2 of PDU submitted in sequence in the related art, based on Figure 2a ,like Figure 2b As shown, when a PDCP data PDU with a COUNT of 4 is received, RX_DELIV=3, RX_NEXT=5, RX_REORD=5, and t-Reordering is started at the same time.
[0044] Figure 2c An illustration of PDU being delivered in sequence in the related art Figure 3 ,based on Figure 2b ,like Figure 2c As shown, after receiving the PDCP data PDU with COUNT of 7 (assuming that t-Reordering has not timed out at this time), RX_NEXT=8, RX_DELIV=3, and RX_REORD=5.
[0045] Figure 2d An illustration of PDU being delivered in sequence in the related art Figure 4 ,based on Figure 2c ,like Figure 2d As shown, after receiving the PDCP data PDU with COUNT of 3 (assuming that t-Reordering has not timed out at this time), there is still RX_NEXT=8. At this time, the PDCP data PDU with COUNT of 3 and 4 is processed and uploaded to the upper layer, RX_DELIV=5, stop and reset t-Reordering, and then set RX_REORD=8 to restart t-Reordering; assuming that t-Reordering times out at this time, the PDCP data PDU with COUNT of 7 is processed and uploaded to the upper layer, and RX_DELIV=8 is set.
[0046] It can be seen that when the t-Reordering configured by the network is too short, the waiting time for reordering is insufficient, which will lead to an increase in PDCP packet loss of the UE. Figure 2dIn the case where the network configuration t-Reordering is too short (e.g. 5ms), PDCP will only wait for 5ms for the PDCP data PDUs with COUNT of 5 and 6. After 5ms, the waiting time will be stopped. Even if the PDCP data PDUs with COUNT of 5 and 6 arrive at the 6th ms, they will be discarded. This will increase the number of packet losses.
[0047] In order to reduce the number of packet losses in the in-order delivery of PDUs by the PDCP layer, an embodiment of the present application provides an adjustment method. For the problem of t-Reordering timeout in the process of in-order delivery of PDUs on the UE side, first, timeout processing is performed in accordance with the protocol provisions, and then a detection timer is started, wherein the detection timer is used to count the time after this timeout, that is, the detection timer is the timer started by this t-Reordering timeout. In addition, when the detection timer is started, the missing COUNT in the COUNT that is less than RX_DELIV is also obtained, that is, the missing COUNT in the uploaded COUNT is found out, wherein the missing COUNT is the COUNT of the PDU that has not been received.
[0048] In this way, the vacant COUNT uploaded after the timeout can be known, and the COUNT of the PDU filling the vacant COUNT can be determined based on the vacant COUNT to determine whether to adjust the value of t-Reordering to reduce the number of packet losses.
[0049] It should be noted that the PDU in the embodiment of the present application is equivalent to the PDCP data PDU.
[0050] S102: When the detection timer has not timed out and the COUNT of the received PDU is at least one of the empty COUNTs, determine the COUNT of the PDU that fills the empty COUNT according to the COUNT of the received PDU;
[0051] After obtaining the missing COUNT, if a PDU is received before the detection timer times out, it is determined whether the COUNT of the received PDU is at least one of the missing COUNTs. If it is determined that the COUNT of the received PDU is at least one of the missing COUNTs, it means that a PDU with a missing COUNT is received within the detection timer outside the t-Reordering timeout period.
[0052] Then, after receiving the PDU of the missing COUNT, it is necessary to determine the COUNT number of PDUs that fill the missing COUNT. In order to prevent the repeated calculation of the COUNT number of PDUs that fill the missing COUNT due to the receipt of duplicate PDUs, here, the COUNT of PDUs that fill the missing COUNT is determined based on the COUNT of the received PDU, wherein the COUNTs of PDUs that fill the missing COUNT are different from each other; that is, the received PDUs are sorted so that the determined PDUs that fill the missing COUNT do not include duplicate PDUs.
[0053] It should be noted that the received PDUs may be received in the same batch within the timing of the detection timer, or may be received one by one within the timing of the detection timer. Here, the embodiment of the present application does not make any specific limitation on this.
[0054] S103: When the COUNT of the PDU filling the vacant COUNT meets the preset condition, the value of t-Reordering is adjusted to the sum of the value of t-Reordering and the preset time step;
[0055] After determining the COUNT of the PDU that fills the gap, determine whether the COUNT of the PDU that fills the gap meets the preset conditions. If so, adjust the value of t-Reordering to the sum of the value of t-Reordering and the preset time step. In order to prevent the value of t-Reordering from being too large, the value of t-Reordering is less than or equal to the first preset time threshold to avoid uncontrollable problems caused by indiscriminately lengthening the value of t-Reordering.
[0056] That is to say, when the COUNT of the PDU that fills the vacant COUNT meets the preset conditions, it means that the t-Reordering value used at this time is too short, resulting in too many packet losses, so the t-Reordering value is increased. Here, it can be adjusted according to the preset time step, for example, the preset time step is 1ms.
[0057] S104: When the duration for which the value of t-Reordering remains unchanged is greater than a second preset time threshold, resetting the value of t-Reordering.
[0058] In addition, after the value of t-Reordering is increased, timing is performed when the value of t-Reordering remains unchanged. When the duration of ...
[0059] Further, in order to determine whether the COUNT of the PDU that fills the gaps in the COUNT satisfies the preset conditions, the COUNT of the PDU that has been received can be determined by the number of COUNTs of the PDU that fills the gaps in the COUNT, or the COUNT of the PDU that fills the gaps in the COUNT can be determined by the ratio of the number of COUNTs of the PDU that fills the gaps in the COUNT to the number of gaps in the COUNT. Here, the embodiments of the present application do not make specific limitations on this.
[0060] In determining whether the COUNT of the PDU filling the vacant COUNT satisfies a preset condition by the ratio of the number of COUNTs of the PDU filling the vacant COUNT to the number of vacant COUNTs, in an optional embodiment, the COUNT corresponding to the PDU filling the vacant COUNT satisfies the preset condition, including:
[0061] When the ratio of the number of COUNTs of PDUs filling the vacant COUNTs to the number of vacant COUNTs is greater than a preset ratio threshold, it is determined that the COUNTs of PDUs filling the vacant COUNTs meet a preset condition.
[0062] That is to say, after determining the COUNT of the PDU that fills the vacant COUNT, the ratio of the COUNT of the PDU that fills the vacant COUNT to the number of vacant COUNT is calculated, and then it is determined whether the ratio is greater than the preset ratio threshold. If it is greater, some PDUs that have not been received in the uploaded PDU can still be received within the timing time of the detection timer. Therefore, the number of packet losses can be reduced by increasing the value of t-Reordering.
[0063] The preset ratio threshold can be flexibly set according to actual needs.
[0064] In determining whether the COUNT of the PDU filling the vacant COUNT satisfies the preset condition by the ratio of the number of COUNTs of the PDU filling the vacant COUNT to the number of vacant COUNTs, in order to further determine the case of increasing the value of t-Reordering, in an optional embodiment, the COUNT corresponding to the PDU filling the vacant COUNT satisfies the preset condition, including:
[0065] When the ratio of the number of PDUs that fill the missing COUNTs to the number of missing COUNTs is greater than the preset ratio threshold, the valid times are automatically increased by 1;
[0066] When the valid number of times is greater than the preset number threshold, it is determined that the COUNT of the PDU that fills the vacant COUNT meets the preset condition.
[0067] That is to say, when the ratio of the COUNT number of PDUs that fill the vacant COUNTs to the number of vacant COUNTs is greater than the preset ratio threshold, if the ratio of the COUNT number of PDUs that fill the vacant COUNTs to the number of vacant COUNTs determined each time is greater than the preset ratio threshold, the valid number of times is automatically increased by 1, wherein the initial value of the valid number of times is 0; in this way, the valid number of times is updated by comparing the ratio of the COUNT number of PDUs that fill the vacant COUNTs to the number of vacant COUNTs with the preset ratio threshold each time.
[0068] When the valid number of times is greater than the preset number threshold, it is determined that the COUNT of the PDU filling the vacant COUNT meets the preset condition, that is, the value of t-Reordering is increased only when the valid number of times is greater than the preset number threshold.
[0069] Further, in order to increase the value of t-Reordering under a suitable environment, in an optional embodiment, when the valid number of times is greater than a preset number threshold, determining that the COUNT of the PDU filling the vacant COUNT meets the preset condition includes:
[0070] When the effective number of times within the timing time of the started monitoring timer is greater than the preset number threshold, it is determined that the COUNT of the PDU filling the vacant COUNT meets the preset condition.
[0071] Here, it is not just about determining whether the valid number of times is greater than the preset number threshold, but it is necessary to further determine whether the valid number of times within the timing time of the started monitoring timer is greater than the preset number threshold, that is, through the started monitoring timer, when the monitoring timer times out, the value of the valid number of times is counted, and only when the counted value of the valid number of times is greater than the preset number threshold, it is determined that the COUNT of the PDU that fills the vacant COUNT meets the preset conditions, and then the value of t-Reordering is increased.
[0072] In addition, with respect to the above-mentioned started monitoring timer, in an optional embodiment, starting the detection timer includes:
[0073] When the monitoring timer is not started, the detection timer and the monitoring timer are started at the same time.
[0074] That is to say, since the detection timer is started each time t-Reordering times out, here, each time the detection timer is started, it is determined whether the monitoring timer is turned on. If not, the monitoring timer is turned on. In this way, the monitoring timer can be started.
[0075] It should be noted that each time t-Reordering times out, a detection timer is started, and each time the detection timer is started, a monitoring timer is restarted only when the monitoring timer times out or is not started.
[0076] In practical applications, the timing time of the detection timer is smaller than the timing time of the monitoring timer.
[0077] In this way, the detection timer and the monitoring timer can be started, so that when the COUNT of the PDU that fills the vacant COUNT meets the preset condition, the value of t-Reordering is increased to reduce the number of packet losses.
[0078] In addition, when the COUNT of the PDU filling the vacant COUNT meets the preset condition, the value of t-Reordering is adjusted to the sum of the value of t-Reordering and the preset time step. In order to adjust the value of t-Reordering in real time, in an optional embodiment, S104 may include:
[0079] When the duration during which the value of t-Reordering remains unchanged is greater than a second preset time threshold, the value of t-Reordering is reset to an initial value of t-Reordering.
[0080] Here, after adjusting the value of t-Reordering to the sum of the value of t-Reordering and the preset time step, in order to prevent the PDCP layer from affecting the PDU processing due to the t-Reordering value being at a high value for a long time, the duration for which the t-Reordering value remains unchanged can be counted. Here, a timer can be used to count the timing time of the timer. When the value of t-Reordering changes, the duration for which the value of t-Reordering remains unchanged is counted by the timer. If the duration is greater than the second preset time threshold, the value of t-Reordering is updated to the initial value of the t-Reordering value.
[0081] It should be noted that the initial value of the above t-Reordering value is generally the t-Reordering value configured in the network configuration.
[0082] In addition, in order to prevent the step-wise decrease of the value of t-Reordering from affecting the in-order delivery, in an optional embodiment, S104 may include:
[0083] When the duration for which the value of t-Reordering remains unchanged is greater than a second preset time threshold, the value of t-Reordering is reset to the difference between the value of t-Reordering and a preset time step.
[0084] Specifically, when the duration for which the value of t-Reordering remains unchanged is greater than a second preset time threshold, the value of t-Reordering is reset to the difference between the value of t-Reordering and a preset time step, so that the value of t-Reordering changes smoothly and dynamically.
[0085] Furthermore, in order to better achieve a smooth dynamic change of the value of t-Reordering, in an optional embodiment, after resetting the value of t-Reordering to the difference between the value of t-Reordering and a preset time step, the method may further include:
[0086] When the value of t-Reordering remains unchanged within the preset time, the value of t-Reordering is reset to the difference between the value of t-Reordering and the preset time step;
[0087] When the value of t-Reordering increases, the value of t-Reordering is reset to the sum of the value of t-Reordering and the preset time.
[0088] That is to say, after the value of t-Reordering is reset to the difference between the value of t-Reordering and the preset time step, it is determined whether the value of t-Reordering remains unchanged within the preset time. If it remains unchanged, the value of t-Reordering will continue to be reset to the difference between the value of t-Reordering and the preset time step. If the value of t-Reordering is triggered to increase, the value of t-Reordering will be updated to the sum of the value of t-Reordering and the preset time, thereby achieving a smooth change in the value of t-Reordering.
[0089] The following is an example to describe the adjustment method described in one or more of the above embodiments.
[0090] In this example, when the network is configured with in-order delivery, when the UE PDCP finds that soon after t-Reordering times out, it receives enough previous COUNTs that must be discarded, t-Reordering is increased.
[0091] First, set the "monitoring time (T-monitor)", "detection time (t-detect)", "ratio of newly added vacant PDCP data PDUs within the detection time x", "valid number threshold N", "maximum t-Reordering time t-Reordering-max", "time for each increase t-add", "effective time T", set the "initial valid number" to 0, and "currently used t-Reordering" to the network configuration value.
[0092] Based on this, Figure 3 A flowchart of an example of an optional adjustment method provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the adjustment method may include:
[0093] S301: receiving PDCP data PDU;
[0094] S302: Determine whether t-Reordering has timed out. If yes, execute S303; if no, execute S301;
[0095] S303: Record the empty COUNT after RX_DELIV and start the corresponding t-detect;
[0096] Among them, if the network is configured for in-order delivery and the currently used t-Reordering is less than t-Reordering-max, when t-Reordering times out, the number of vacant PDCP data PDUs and the COUNT of vacant PDCP data PDUs after RX_DELIV corresponding to this t-Reordering timeout are recorded before resetting RX_DELIV, and the detection time t-detect corresponding to this t-Reordering timeout is started (in this way, each time t-Reordering times out, there will be a combination of "number of vacant PDCP data PDUs", "vacant COUNT", and "t-Reordering" corresponding to this timeout).
[0097] S304: Determine whether T-monitor has been started? If not, execute S305;
[0098] S305: Start T-monitor;
[0099] Here, if "T-monitor" is not started, start it.
[0100] S306: When t-detect times out or before it times out, is the ratio of the number of received empty COUNTs to the number of empty COUNTs greater than x? If yes, execute S307; if no, end.
[0101] S307: Increase the valid times by 1, and end.
[0102] Specifically, during each "t-detect" operation, "empty COUNT" is continuously received (duplicate COUNT is not counted). During the t-detect operation, each time a "empty COUNT" is received (duplicate COUNT is not counted), the ratio of the number of received "empty COUNT" to the "number of empty COUNT" is calculated.
[0103] If the ratio exceeds x, the valid times are increased by 1, and the corresponding t-detect is stopped and execution of S301 is prohibited, that is, the "empty COUNT" is no longer received and counted; if the ratio does not exceed x until t-detect times out, the valid times remain unchanged.
[0104] During the operation of T-monitor, the corresponding valid times are counted. If the valid times exceed N, the "currently used t-Reordering" is changed to the smaller value of "currently used t-Reordering + t-add" and t-Reordering-max, and the effective time T is reset and started (note that if T has been started at this time, it will be reset and started again).
[0105] When the effective time T times out, the "currently used t-Reordering" is reset to the network configuration value.
[0106] In addition, the quantity (ie, the number of "missing COUNTs" received in t-detect) may be used as a basis to determine whether to add 1 to the valid number of times.
[0107] When the effective time T times out, t-Reordering will immediately change to the value configured by the network. In fact, if the complexity allows, a step-by-step decrease can be considered (for example, the network configuration is 2ms, the set t-Reordering-max is 5ms, and t-add is 1ms. If there are always problems, then the actual t-Reordering used will change according to 2-3-4-5. When 5ms is used, this problem is sufficiently improved. After T times out, it becomes 2ms, and then continues to change in sequence when problems occur. You can consider changing T to 4ms after it times out, and then reduce it to 3ms if there is no trigger increase, and then increase it to 5ms if there is a trigger increase... to achieve a smoother dynamic change).
[0108] In this example, a t-Reordering-max is set. When it is found that the t-Reordering configured in the network is too small, resulting in a large number of PDCP data PDUs discarded by PDCP, and the situation can be significantly improved by appropriately increasing t-Reordering, t-Reordering can be continuously increased until it approaches t-Reordering-max to improve the number of PDCP data PDUs discarded by PDCP, thereby improving a series of problems caused by excessive packet loss, such as slow data transmission, data jamming, and poor IMS call quality.
[0109] That is to say, in this example, by setting t-detect, it is possible to continue to judge "whether lengthening t-Reordering can significantly improve the problem of more PDCP data PDUs discarded by PDCP" after a certain t-Reordering times out; at the same time, by setting T-monitor, valid times threshold N, etc., it is confirmed whether such problems are more normal phenomena; if it is judged to be a more normal phenomenon, t-Reordering will be gradually lengthened to improve such problems. At the same time, the effective time T and the maximum allowed t-Reordering value (t-Reordering-max) are set to avoid uncontrollable problems caused by uncontrolled lengthening of t-Reordering.
[0110] An embodiment of the present application provides an adjustment method, including: in the process of delivering PDUs in sequence, when t-Reordering times out and performs timeout processing, starting a detection timer and obtaining a vacant COUNT in a COUNT that is less than RX_DELIV; when the detection timer has not timed out, when the COUN of the received PDU is at least one COUNT in the vacant COUNT, determining the COUNT of the PDU that fills the vacant COUNT according to the COUNT of the received PDU, wherein the COUNTs of the PDUs that fill the vacant COUNTs are different from each other; when the COUNT of the PDUs that fill the vacant COUNTs meets a preset condition, adjusting the value of t-Reoedering to the sum of the value of t-Reoedering and a preset time step; wherein the value of t-Reordering is less than or equal to a first preset time threshold; and when the duration for which the value of t-Reordering remains unchanged is greater than a second preset time threshold, resetting t-Re ordering value, that is, in the embodiment of the present application, after t-Reordering times out and performs timeout processing, in order to reduce the number of packet losses, a detection timer is added, and the PDU corresponding to the vacant COUNT received when the detection timer has not timed out, and when it is determined that the COUNT of the PDU filling the vacant COUNT meets the preset conditions, the value of t-Reoedering is adjusted to the sum of the value of t-Reoedering and the preset time step to increase the value of t-Reoedering, and when the duration for which the value of t-Reordering remains unchanged is greater than the second preset time threshold, the value of t-Reordering is reset to adjust the value of t-Reoedering. In this way, by adjusting the value of t-Reoedering, for the unreceived PDU, it is possible to wait for an appropriate time to wait for the unreceived PDU to upload it to the upper layer, thereby reducing the packet loss rate of the PDCP layer and thereby improving the quality of data transmission.
[0111] Based on the same inventive concept, an embodiment of the present application provides an electronic device, Figure 4 A schematic diagram of the structure of an optional electronic device provided in an embodiment of the present application, such as Figure 4 As shown, the electronic device includes: a starting module 41, a determining module 42, an adjusting module 43 and a resetting module 44; wherein,
[0112] The starting module 41 is used for starting the detection timer and obtaining the missing COUNT in the COUNT that is less than RX_DELIV when t-Reordering times out and performs timeout processing during the process of sequentially delivering the PDU;
[0113] The determination module 42 is used to determine the COUNT of the PDU that fills the vacant COUNT according to the COUNT of the received PDU when the detection timer has not timed out and the COUNT of the received PDU is at least one COUNT in the vacant COUNT; wherein the COUNTs of the PDUs that fill the vacant COUNT are different from each other;
[0114] An adjustment module 43, configured to adjust the value of t-Reordering to the sum of the value of t-Reordering and a preset time step when the COUNT of the PDU filling the vacant COUNT meets a preset condition; wherein the value of t-Reordering is less than or equal to a first preset time threshold;
[0115] The resetting module 44 is configured to reset the value of t-Reordering when the duration for which the value of t-Reordering remains unchanged is greater than a second preset time threshold.
[0116] In an optional embodiment, the determining module 42 determines that the COUNT of the PDU filling the vacant COUNT satisfies a preset condition, including:
[0117] When the ratio of the number of COUNTs of PDUs filling the vacant COUNTs to the number of vacant COUNTs is greater than a preset ratio threshold, it is determined that the COUNTs of PDUs filling the vacant COUNTs meet a preset condition.
[0118] In an optional embodiment, the determining module 42 determines that the COUNT of the PDU filling the vacant COUNT satisfies a preset condition, including:
[0119] When the ratio of the number of PDUs that fill the missing COUNTs to the number of missing COUNTs is greater than the preset ratio threshold, the valid times are automatically increased by 1; wherein the initial value of the valid times is 0;
[0120] When the valid number of times is greater than the preset number threshold, it is determined that the COUNT of the PDU that fills the vacant COUNT meets the preset condition.
[0121] In an optional embodiment, when the valid number of times is greater than a preset number threshold, the determination module 42 determines that the COUNT of the PDU filling the vacant COUNT meets a preset condition, including:
[0122] When the effective number of times within the timing time of the started monitoring timer is greater than the preset number threshold, it is determined that the COUNT of the PDU filling the vacant COUNT meets the preset condition.
[0123] In an optional embodiment, the starting module 41 starts the detection timer, including:
[0124] When the monitoring timer is not started, the detection timer and the monitoring timer are started at the same time.
[0125] In an optional embodiment, the reset module 44 is specifically configured to:
[0126] When the duration during which the value of t-Reordering remains unchanged is greater than a second preset time threshold, the value of t-Reordering is reset to an initial value of t-Reordering.
[0127] In an optional embodiment, the reset module 44 is specifically configured to:
[0128] When the duration for which the value of t-Reordering remains unchanged is greater than a second preset time threshold, the value of t-Reordering is reset to the difference between the value of t-Reordering and a preset time step.
[0129] In an optional embodiment, the electronic device is further used for:
[0130] After resetting the value of t-Reordering to the difference between the value of t-Reordering and the preset time step, when the value of t-Reordering remains unchanged within the preset time, resetting the value of t-Reordering to the difference between the value of t-Reordering and the preset time step;
[0131] When the value of t-Reordering increases, reset the value of t-Reordering to the sum of the value of t-Reordering and the preset time step.
[0132] Figure 5 A schematic diagram of the structure of another optional electronic device provided in an embodiment of the present application, such as Figure 5As shown, an embodiment of the present application provides an electronic device 500, including: a processor 51 and a storage medium 52 storing instructions executable by the processor; the storage medium 52 relies on the processor 51 to perform operations through a communication bus 53, and when the instructions are executed by the processor, the adjustment method executed on the processor side in one or more of the above embodiments is executed.
[0133] It should be noted that, in actual application, the various components in the terminal are coupled together via the communication bus 53. It is understandable that the communication bus 53 is used to realize the connection and communication between these components. In addition to the data bus, the communication bus 53 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 5 Various buses are labeled as communication buses 53.
[0134] An embodiment of the present application provides a computer storage medium storing executable instructions. When the executable instructions are executed by one or more processors, the processors execute the adjustment method described in one or more of the above embodiments.
[0135] Among them, the computer-readable storage medium can be a ferromagnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM) and other memories.
[0136] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0137] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0138] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0140] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. An adjustment method, It is characterized in that The method is applied to an electronic device, comprising: In the process of delivering PDUs in sequence, when t-Reordering times out and performs timeout processing, the detection timer is started and the missing COUNT in the COUNT that is less than RX_DELIV is obtained; When the detection timer has not timed out, and the COUNT of the received PDU is at least one of the vacant COUNTs, the COUNT of the PDU filling the vacant COUNT is determined according to the COUNT of the received PDU; wherein the COUNTs of the PDUs filling the vacant COUNTs are different from each other; When the COUNT of the PDU that fills the vacant COUNT meets a preset condition, adjusting the value of the t-Reordering to the sum of the value of the t-Reordering and a preset time step; wherein the value of the t-Reordering is less than or equal to a first preset time threshold; When the duration for which the value of t-Reordering remains unchanged is greater than a second preset time threshold, resetting the value of t-Reordering; The COUNT of the PDU that fills the vacant COUNT satisfies a preset condition, including: When the ratio of the number of the COUNT of the PDUs filling the vacant COUNT to the number of the vacant COUNT is greater than a preset ratio threshold, it is determined that the COUNT of the PDUs filling the vacant COUNT meets a preset condition; or, When the ratio of the number of PDUs filling the vacant COUNT to the number of vacant COUNTs is greater than a preset ratio threshold, the valid number of times is automatically increased by 1; wherein the initial value of the valid number of times is 0; When the valid number of times within the timing time of the started monitoring timer is greater than a preset number threshold, it is determined that the COUNT of the PDU that fills the vacant COUNT meets a preset condition.
2. The method according to claim 1, It is characterized in that The starting detection timer comprises: When the monitoring timer is not started, the detection timer and the monitoring timer are started simultaneously.
3. The method according to claim 1, It is characterized in that When the duration for which the value of t-Reordering remains unchanged is greater than a second preset time threshold, resetting the value of t-Reordering includes: When the duration for which the value of t-Reordering remains unchanged is greater than a second preset time threshold, the value of t-Reordering is reset to the initial value of t-Reordering.
4. The method according to claim 1, It is characterized in that When the duration for which the value of t-Reordering remains unchanged is greater than a second preset time threshold, resetting the value of t-Reordering includes: When the duration for which the value of t-Reordering remains unchanged is greater than a second preset time threshold, the value of t-Reordering is reset to the difference between the value of t-Reordering and a preset time step.
5. The method according to claim 4, It is characterized in that After resetting the value of t-Reordering to the difference between the value of t-Reordering and a preset time step, the method further includes: When the value of t-Reordering remains unchanged within a preset time, resetting the value of t-Reordering to the difference between the value of t-Reordering and a preset time step; When the value of the t-Reordering increases, the value of the t-Reordering is reset to the sum of the value of the t-Reordering and a preset time step.
6. An electronic device, It is characterized in that include: A start module is used to start a detection timer and obtain a missing COUNT in a COUNT smaller than RX_DELIV when t-Reordering times out and performs timeout processing during the process of sequentially delivering PDUs; A determination module, configured to determine the COUNT of the PDU that fills the vacant COUNT according to the COUNT of the received PDU when the detection timer has not timed out and the COUNT of the received PDU is at least one of the vacant COUNTs; wherein the COUNTs of the PDUs that fill the vacant COUNTs are different from each other; An adjustment module, configured to adjust the value of the t-Reordering to the sum of the value of the t-Reordering and a preset time step when the COUNT of the PDU filling the vacant COUNT meets a preset condition; wherein the value of the t-Reordering is less than or equal to a first preset time threshold; A reset module, configured to reset the value of t-Reordering when the duration for which the value of t-Reordering remains unchanged is greater than a second preset time threshold; The COUNT of the PDU that the determination module fills the vacant COUNT with satisfies a preset condition, including: When the ratio of the number of the COUNT of the PDUs filling the vacant COUNT to the number of the vacant COUNT is greater than a preset ratio threshold, it is determined that the COUNT of the PDUs filling the vacant COUNT meets a preset condition; or, When the ratio of the number of PDUs filling the vacant COUNT to the number of vacant COUNTs is greater than a preset ratio threshold, the valid number of times is automatically increased by 1; wherein the initial value of the valid number of times is 0; When the valid number of times within the timing time of the started monitoring timer is greater than a preset number threshold, it is determined that the COUNT of the PDU that fills the vacant COUNT meets a preset condition.
7. An electronic device, It is characterized in that include: A processor and a storage medium storing instructions executable by the processor; The storage medium relies on the processor to perform operations through a communication bus, and when the instructions are executed by the processor, the adjustment method described in any one of claims 1 to 5 is executed.
8. A computer storage medium, It is characterized in that Executable instructions are stored, and when the executable instructions are executed by one or more processors, the processors execute the adjustment method described in any one of claims 1 to 5.
