Data retransmission method, device, chip, equipment, storage medium and program product

By identifying redundant data in the retransmission data window and filtering, only non-redundant data is retransmitted, the resource waste caused by redundant data in wireless link control is solved, and the transmission efficiency is improved.

CN115473611BActive Publication Date: 2024-12-06伟光有限公司(CN)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211079430.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-05
Publication Date
2024-12-06
Estimated Expiration
2042-09-05

AI Technical Summary

Technical Problem

In the confirmation mode of wireless link control, the receiver may send status reports multiple times during data transmission, resulting in the occurrence of redundant data and the waste of air interface resources and computing resources.

Method used

By maintaining data information in the retransmission data window, identifying and filtering redundant data, only non-redundant data is added to the retransmission data queue for retransmission, avoiding the transmission of redundant data.

Benefits of technology

It reduces the transmission of redundant data, reduces the use of air interface resources and computing resources, and improves air interface transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115473611B_ABST
    Figure CN115473611B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a data retransmission method, device, chip, equipment, storage medium and program product, which relate to the field of communication technology. The method includes: receiving a status report, wherein the status report indicates that there is first data that needs to be retransmitted; determining redundant data in the first data based on data information in a retransmission data window, wherein data information of different data units is maintained in the retransmission data window, wherein the data information is used to indicate the residual data of the data unit in the retransmission data queue, wherein the redundant data is repeated data between the data to be transmitted and the first data in the retransmission data queue; and adding the remaining data to the retransmission data queue, wherein the remaining data is data in the first data other than the redundant data. The method provided in the embodiments of the present application can reduce the transmission of redundant data and improve the air interface transmission efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a data retransmission method, apparatus, chip, device, storage medium and program product. Background Art

[0002] The services provided by Radio Link Control (RLC) include Acknowledge Mode (AM) data transmission. In AM mode, during the data transmission process, the receiving end will send a status report to indicate the data information that was not successfully received.

[0003] After receiving the status report, the sender will retransmit the data. However, when the sender has not completed transmitting all the data in the retransmission data queue, the receiver may send the status report again. In this case, the status report may contain data that the sender did not send in time. At this time, there will be redundant data, which may cause a waste of air interface resources and computing resources. Summary of the invention

[0004] The embodiments of the present application provide a data retransmission method, device, chip, equipment, storage medium and program product. The technical solution is as follows:

[0005] On the one hand, an embodiment of the present application provides a data retransmission method, the method comprising:

[0006] receiving a status report, wherein the status report indicates that first data needs to be retransmitted;

[0007] Determine redundant data in the first data based on data information in a retransmission data window, wherein data information of different data units is maintained in the retransmission data window, and the data information is used to indicate data residual status of the data unit in the retransmission data queue, and the redundant data is repeated data between the data to be transmitted in the retransmission data queue and the first data;

[0008] Adding remaining data to the retransmission data queue, the remaining data is data in the first data except the redundant data.

[0009] On the other hand, an embodiment of the present application provides a data retransmission device, the device comprising:

[0010] A data receiving module, configured to receive a status report, wherein the status report indicates that there is first data that needs to be retransmitted;

[0011] a data determination module, configured to determine redundant data in the first data based on data information in a retransmission data window, wherein data information of different data units is maintained in the retransmission data window, wherein the data information is used to indicate a residual data status of the data unit in the retransmission data queue, and the redundant data is duplicate data between the data to be transmitted in the retransmission data queue and the first data;

[0012] A data adding module is used to add remaining data to the retransmission data queue, where the remaining data is data in the first data except the redundant data.

[0013] On the other hand, an embodiment of the present application provides a baseband chip, which includes a programmable logic circuit and / or program instructions, and when the baseband chip is running, it is used to implement the data retransmission method described in the above aspects.

[0014] On the other hand, an embodiment of the present application provides an electronic device, in which the baseband chip as described in the above aspect is provided.

[0015] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which at least one program code is stored, and the program code is loaded and executed by a processor to implement the data retransmission method as described in the above aspects.

[0016] On the other hand, an embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of an electronic device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the electronic device executes the data retransmission method provided in various optional implementations of the above aspects.

[0017] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0018] In the embodiment of the present application, during the data transmission process, data information of different data units is maintained in the retransmission data window. The electronic device can determine the data residual situation of the data units to which each data in the first data belongs in the retransmission data queue according to the data information, thereby determining whether the data is already in the retransmission data queue according to the data residual situation, that is, determining whether the data is redundant data. After that, the remaining data in the first data except the redundant data can be added to the retransmission data queue, and the data in the retransmission data queue is retransmitted. By accessing the retransmission data window, the mechanism of identifying redundant data can avoid the situation where redundant data exists in the retransmission data queue, reduce the transmission of redundant data, thereby reducing the occupation of air interface resources and computing resources, and helping to improve air interface transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 A schematic diagram showing a flow chart of a data transmission process in an AM mode in the related art is shown;

[0021] Figure 2 A block diagram of a communication system provided by an exemplary embodiment of the present application is shown;

[0022] Figure 3 A flow chart of a data retransmission method provided by an exemplary embodiment of the present application is shown;

[0023] Figure 4 A schematic diagram showing a redundant data identification and filtering mechanism provided by an exemplary embodiment of the present application is shown;

[0024] Figure 5 A schematic diagram of the architecture of a data retransmission process provided by an exemplary embodiment of the present application is shown;

[0025] Figure 6 A flow chart of a data retransmission method provided by another exemplary embodiment of the present application is shown;

[0026] Figure 7 A schematic diagram showing a redundant data identification and filtering mechanism provided by another exemplary embodiment of the present application is shown;

[0027] Figure 8 A flowchart of retransmission data window data update provided by an exemplary embodiment of the present application is shown;

[0028] Fig. 9 A schematic diagram showing a redundant data identification and filtering mechanism provided by another exemplary embodiment of the present application is shown;

[0029] Fig.10 A schematic diagram showing a redundant data identification and filtering mechanism provided by another exemplary embodiment is shown;

[0030] Fig.11 A schematic diagram of a process for a NACK PDUs identification module to identify redundant data provided by an exemplary embodiment of the present application is shown;

[0031] Fig.12 A flowchart of processing identification mechanism failure provided by an exemplary embodiment of the present application is shown;

[0032] Fig.13 A structural block diagram of a data retransmission device provided by an embodiment of the present application is shown;

[0033] Fig.14 A structural block diagram of an electronic device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0034] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0035] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0036] The AM mode provides an automatic retransmission request (ARQ) mechanism to ensure reliable transmission. Figure 1 shown.

[0037] Step 101: The data sending end performs data transmission.

[0038] Step 102: The data receiving end starts a reassemble timer.

[0039] After receiving the Protocol Data Unit (PDU), the data receiving end will detect whether there is a gap (GAP) caused by an incompletely received PDU / PDU segment. If so, the reassemble timer (Reassemble Timer) will be started. During the timing of the Reassemble Timer, it will continue to wait for the sender to transmit data. If the Reassemble Timer times out, the sending status report process will be triggered. For ease of description, PDUs will be used as the abbreviation for PDU / PDU segment in the following.

[0040] Step 103: The data sending end starts polling.

[0041] When certain conditions are met, the data sender will trigger the Polling process.

[0042] Step 104: The data transmitting end sends a PDU carrying a Polling bit to the data receiving end.

[0043] Step 105: The data receiving end triggers a status report (Status Report).

[0044] When the data receiving end receives a PDU carrying the Polling bit, or the Reassemble Timer times out and the Status Prohibit Timer times out, the data receiving end will send a StatusReport.

[0045] Step 106: The data receiving end adds information about incompletely received PDUs (NACK PDUs) to the Status Report.

[0046] Step 107: The data receiving end sends a Status Report to the data sending end.

[0047] Step 108: The data receiving end starts the Status Prohibit Timer.

[0048] When the data receiving end sends the Status Report, it starts the Status Prohibit Timer to limit the sending frequency of the StatusReport.

[0049] Step 109: The data transmitter parses the Status Report and puts the NACK PDUs information into the retransmission buffer (Retx Buffer), and packages the NACK PDUs according to the NACK PDUs information in the Retx Buffer.

[0050] Step 110: retransmit NACK PDUs to the data receiving end.

[0051] When the data receiving end receives NACK PDUs, some PDUs have been received completely, however, there may still be NACK PDUs that have not been received. After that, a Status Report will be generated according to the new NACK PDUs information and the above process will be executed again in a loop.

[0052] According to the above process, the data receiving end may send Status Report multiple times. In the process of sending Status Report twice adjacently, repeated NACK PDUs information may be included, resulting in a waste of air interface resources and computing resources.

[0053] Optionally, the Status Report sent by the data receiving end may include the following three possible NACK PDUs.

[0054] NACK PDUs 1: New NACK PDUs not received due to subsequent data transmission after the previous Status Report was sent.

[0055] NACK PDUs 2: After the last Status Report was sent, the data transmitter retransmitted, but due to channel communication quality problems, the packet was lost again. Therefore, the data receiver has NACK PDUs that were not received due to packet loss.

[0056] NACK PDUs 3: After the last Status Report was sent, the data transmitter unpacked the Status Report and put the NACK PDUs into the Retx Buffer. However, the NACK PDUs that have not been taken out of the Retx Buffer and packaged have not yet been sent out. Since these PDUs that need to be retransmitted have not yet been sent out by the data transmitter, the data receiver will not be able to receive the NACK PDUs that have not yet been transmitted, which will cause the duplication of NACK PDUs. NACK PDUs 3 are redundant data.

[0057] The repeated NACK PDUs 3 may be caused by the following two reasons:

[0058] 1. When the Status Prohibit Timer times out, due to the timing and accuracy issues of the timer, the receiving end may not start a new Status Prohibit Timer. As a result, the Reassemble Timer times out, which immediately triggers a duplicate Status Report to be sent to the data sending end.

[0059] Second, due to the shortage of air interface resource grant or slow transmission at the sender, the Retx PDUs already placed in the Retx Buffer have not been packaged and sent yet, and the next Status Report from the data receiver is received. In this case, in addition to NACK PDU 1 and NACK PDU 2, this Status Report will also contain the duplicate NACK PDU 3 information that has been queued.

[0060] Based on the above three types of NACK PDUs included in the Status Report, NACK PDUs 1 and NACK PDUs 2 are NACK PDUs that need to be put into the Retx Buffer for retransmission, while NACK PDUs 3 is a repeated NACK PDU, which will waste air interface resources.

[0061] In addition, when air interface resource grants are in short supply and air interface communication quality is poor (frequent packet loss), retransmitting duplicate PDUs will waste air interface resources and accumulate more redundant PDUs in the Retx Buffer, slowing down the sending speed of the data sender. As a result, the next status report from the data receiver will contain more duplicate NACK PDUs, continuously deteriorating the air interface communication quality.

[0062] In the related art, after receiving the Status Report, the data transmitting end packages NACK PDUs according to the Status Report requirements to obtain retransmitted data (Retx PDUs), and sends the Retx PDUs to the data receiving end.

[0063] Among them, before adding each Retx PDUs to the retransmission data queue (Retx Queue), the data sender will traverse the retransmission data queue to determine whether there are duplicate PDUs in the retransmission data queue. In this way, for each Retx PDU that needs to be queued, it is only necessary to traverse the retransmission data queue, which will consume a lot of computing resources.

[0064] Redundant Retx PDUs will waste air interface resources, but redundant data only occurs in a few cases during communication transmission. If a large amount of computing resources is consumed, other transmission processes will be affected. Therefore, in an embodiment of the present application, a data retransmission method is provided to identify three types of NACK PDUs and accurately discard NACK PDUs3 while consuming a small amount of computing resources.

[0065] In an embodiment of the present application, redundant data in the first data to be retransmitted is determined based on data information in the retransmission data window, so that redundant data can be identified without traversing the retransmission data queue, which can reduce the waste of computing resources and reduce the occupation of air interface resources by redundant data, thereby improving air interface transmission efficiency.

[0066] Figure 2 A block diagram of a communication system provided by an exemplary embodiment of the present application is shown. The communication system may include: an access network 21 and an electronic device 22.

[0067] The access network 21 includes several network devices 210. The network device 210 may be a base station, which is a device deployed in the access network to provide wireless communication functions for terminal devices. The base station may include various forms of macro base stations, micro base stations, relay stations, access points, and the like. In systems using different wireless access technologies, the names of devices with base station functions may be different. For example, in LTE systems, they are called evolved nodes (evolved Node B, eNodeB) or eNBs; in 5G NR-U systems, they are called gNodeBs or gNBs. With the evolution of communication technology, the description of "base station" may change. For the convenience of the embodiments of the present application, the above-mentioned devices that provide wireless communication functions for the electronic devices 22 are collectively referred to as network devices.

[0068] The electronic device 22 may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, as well as various forms of user equipment, mobile stations (MS), terminal devices, etc. For the convenience of description, the above-mentioned devices are collectively referred to as electronic devices. The network device 210 and the electronic device 22 communicate with each other through some air interface technology, such as a Uu interface.

[0069] In a possible implementation, the electronic device 22 is a data transmitter, and the network device 210 is a data receiver. When the electronic device 22 receives a status report from the network device 210, it can parse the status report to obtain the first data to be retransmitted, identify the redundant data therein, and add the remaining data except the redundant data to the retransmission data queue for retransmission. Figure 2 The electronic device 22 in the communication system is taken as an example for explanation.

[0070] Please refer to Figure 3 , which shows a flow chart of a data retransmission method provided by an exemplary embodiment of the present application. This embodiment is described by taking the method executed by an electronic device as an example, and the process includes the following steps:

[0071] Step 301: Receive a status report, where the status report indicates that there is first data that needs to be retransmitted.

[0072] After the electronic device sends data to the receiving end, the receiving end will detect the incompletely received data information, that is, NACK PDUs. When the status report sending conditions are met, the receiving end will send a status report with NACK PDUs to the electronic device.

[0073] When the electronic device receives a status report sent from the receiving end, it parses the status report to obtain the NACK PDUs therein, and packages the NACK PDUs to obtain the first data to be retransmitted. After that, the electronic device needs to add the first data to the retransmission data queue and wait for retransmission. However, there may be redundant data in the first data that is repeated with the data to be transmitted in the retransmission data queue. Therefore, in an embodiment of the present application, before the first data is queued, the first data will be identified to identify the redundant data therein.

[0074] Step 302, based on the data information in the retransmission data window, determine the redundant data in the first data, the retransmission data window maintains data information of different data units, the data information is used to indicate the data residual status of the data unit in the retransmission data queue, and the redundant data is the repeated data between the data to be transmitted in the retransmission data queue and the first data.

[0075] In a possible implementation, a retransmission data window is provided in the RLC layer, and the retransmission data window maintains relevant data information of different data units PDU during the retransmission process. In the embodiment of the present application, the data information maintained in the retransmission data window includes data residual information of each PDU in the retransmission data queue, which can indicate the data residual status of the data unit in the retransmission data queue.

[0076] Optionally, the data to be retransmitted in the first data may be the entire data unit, i.e., PDU, or may be a data unit fragment, i.e., PDU segment. After the electronic device obtains the first data, i.e., each data Retx PDUs to be retransmitted, it can determine the data residual situation of the PDU to which each data Retx PDUs in the first data belongs in the retransmission data queue according to the data information corresponding to each data unit in the retransmission data window, thereby determining the redundant data in the retransmission data queue according to the data residual situation.

[0077] Optionally, the first data includes multiple Retx PDUs, and the electronic device identifies whether the Retx PDUs are redundant data in sequence. Before the Retx PDUs are queued, the electronic device can determine whether the data to be transmitted in the retransmission data queue includes Retx PDUs based on the data information of the PDU to which the Retx PDUs belong in the retransmission data window. If the Retx PDUs are already included in the data to be transmitted, it indicates that the Retx PDUs are redundant data. That is, in the embodiment of the present application, the data residue related information of the data unit in the retransmission data queue is added in the retransmission data window. Before the Retx PDUs are queued, it is only necessary to access the data information in the retransmission data window to identify whether the Retx PDUs are redundant data, without traversing the retransmission data queue, thereby reducing the waste of computing resources.

[0078] Step 303: Add the remaining data to the retransmission data queue, where the remaining data is the data in the first data except the redundant data.

[0079] In a possible implementation manner, the electronic device sequentially identifies each Retx PDUs included in the first data, and determines whether to add it to the retransmission data queue according to the identification result.

[0080] When the identification result indicates that the Retx PDUs is not redundant data (ie, remaining data), it is added to the retransmission data queue, and the electronic device can subsequently send the data in the retransmission data queue to the receiving end.

[0081] Indicatively, Figure 4 As shown, when the electronic device receives the first status report, it can obtain the first data (first retransmission data) in the first status report and send the first retransmission data to the receiving end. In this process, part of PDU1 and PDU2 are transmitted, and the remaining part of PDU2, PDU3 and PDU4 are not transmitted.

[0082] When receiving the second status report, the electronic device obtains the first data (second retransmission data) in the second status report, wherein the second retransmission data includes PDU5, PDU6, PDU7, PDU8, PDU9 and PDU10 (the PDUs aligned up and down in the figure belong to the same data unit, such as PDU1 and PDU5 belong to the same data unit). In the second retransmission data, the PDU1 corresponding to PDU5 and PDU6 has been transmitted, and the receiving end sends it again, indicating that it belongs to NACK PDUs 2 and needs to be added to the retransmission data queue for data retransmission. As for PDU 7, PDU8 and PDU9, the corresponding PDU has not been sent yet and is in the retransmission data queue. Therefore, it belongs to NACK PDUs 3 and is redundant data (dark gray in the figure is transmitted data, such as PDU1; light gray is data to be transmitted, such as PDU3; black is redundant data, such as PDU7. The same colors in the following illustrative examples have the same meaning and will not be repeated).

[0083] In summary, in the embodiment of the present application, during the data transmission process, data information of different data units is maintained in the retransmission data window, and the electronic device can determine the data residual situation of the data units to which each data in the first data belongs in the retransmission data queue according to the data information, thereby determining whether the data is already in the retransmission data queue according to the data residual situation, that is, determining whether the data is redundant data, and then, the remaining data in the first data except the redundant data can be added to the retransmission data queue, and the data in the retransmission data queue is retransmitted. By accessing the retransmission data window, the mechanism of identifying redundant data can avoid the situation where redundant data exists in the retransmission data queue, reduce the transmission of redundant data, thereby reducing the occupation of air interface resources and computing resources, and helping to improve air interface transmission efficiency.

[0084] Related technology, the RLC retransmission process includes the following modules:

[0085] 1. Status report parsing module (Status PDU Decoding Process): After receiving the status report, parse the status report and obtain the Retx PDU information.

[0086] 2. NACK PDUs Enqueue Process: Enqueues the parsed Retx PDU information into the Retx Queue.

[0087] 3. Retransmission data window (RLC Window): RLC MODULE needs to access RLC Window to record the number of retransmissions of each PDU. When the number of retransmissions of PDU reaches the upper limit, it needs to indicate to RRC that the maximum number of transmissions has been reached and trigger RRC reconstruction.

[0088] 4. Logic Channel Priority Process: After MAC receives the air interface resource grant indication, it performs LC selection and grant resource allocation, and submits the processed LC to the Dequeue NACK PDU and Construct MAC PDU Process in turn.

[0089] 5. NACK PDUs dequeue and MAC PDU assembly module (Dequeue NACK PDUs and ConstructMAC PDU Process): dequeue the NACK PDUs information in the Retx Queue from the corresponding LC and perform the MAC PDUs assembly process.

[0090] In the embodiment of the present application, a NACK PDUs identification module (NACK PDUs Identify Process) is introduced to identify redundant data in NACK PDUs. Figure 5 As shown, it shows a data retransmission structure diagram provided by an embodiment of the present application. After the status report parsing module 501 parses and obtains the Retx PDU, it is transmitted to the NACK PDUs identification module 502. The NACK PDUs identification module 502 accesses and sets the data information in the RLC window 504, thereby identifying whether the data to be retransmitted in the first data is redundant data. If it is redundant data, it is discarded. If it is non-redundant data, it is sent to the NACK PDUs enqueuing module 503 for enqueuing. For ease of description, the NACK PDUs identification module is simplified as the identification module for description below.

[0091] The identification module identifies the data to be queued by accessing and setting the information in the RLC Window, which will be described below with an exemplary embodiment.

[0092] Please refer to Figure 6 , which shows a flow chart of a data retransmission method provided by an exemplary embodiment of the present application. This embodiment is described by taking the method executed by an electronic device as an example, and the process includes the following steps:

[0093] Step 601, receiving a status report.

[0094] The implementation of step 601 may refer to the above step 301 and will not be described in detail in this embodiment.

[0095] Step 602, based on the number of times the target data unit is processed, setting a processing flag of the target data unit, wherein the processing flag includes a first processing flag and a non-first processing flag.

[0096] Optionally, the retransmission data window maintains data information corresponding to each data unit to which historical retransmission data belongs, wherein the data information of the data unit includes the sequence number of the data unit, the number of data belonging to this data unit in the retransmission data queue, and the number of retransmissions of the data unit, and the sequence numbers of data belonging to the same data unit are the same.

[0097] That is, for PDUs with the same sequence number (SN), the RLC Window maintains the following variables:

[0098] 1. rlcSn (32 bits): records the RLC SN of this PDU.

[0099] 2.retxCtrl(8bit): records the number of this PDU / PDU segment in the retransmission data queue.

[0100] 3.retxCount (8 bits): records the number of retransmissions of this PDUs. When the number of retransmissions reaches the maximum retransmission upper limit, RRC reconstruction is triggered.

[0101] Among them, retxCtrl is updated when each PDU is queued and dequeued, and retxCount is updated when each PDU is dequeued.

[0102] Optionally, since the maximum retransmission upper limit threshold of the number of retransmissions that can be configured by RLC is 32, only 6 bits are required to store it. Therefore, in an embodiment of the present application, the remaining 2 bits in the 8-bit variable will be used to record the data residue related information of this PDU.

[0103] Optionally, in the embodiment of the present application, a processing mark (Ctrl Bit) and a data residual mark (Queued Bit) are introduced, that is, the processing mark and the data residual mark are stored in the storage location where the number of retransmissions of the data unit is stored. That is, the expanded number of retransmissions variable is:

[0104] Bit8 retxCount; / / {[0(Ctr1 Bit)][0(Queued Bit)][0 0 0 0 0 0(retxCountData Part)]}

[0105] In a possible implementation, after the electronic device obtains the first data, it sequentially identifies and processes each to-be-queued data in the first data. The electronic device can set the data residual mark of the to-be-queued data according to the data information in the retransmission data window, and determine the data residual situation of the target data unit to which the to-be-queued data belongs in the retransmission data queue. When determining the data residual mark corresponding to the to-be-queued data PDUs, since there may be PDUs belonging to the same data unit, i.e., the same SN, that have been queued during the processing of this status data report, in this case, the PDUs belonging to the same data unit in the retransmission data queue may not be the PDUs of the same data unit that were not sent in the previous status report, i.e., the PDUs of the same data unit in the retransmission data queue may not be residual data. Therefore, when determining the data residual mark, it is necessary to determine it according to the processing mark.

[0106] Among them, the processing mark is used to indicate whether the data to be queued is the first PDUs of the same SN to be processed, that is, to determine whether the data to be queued is the first data to be processed by the target data unit. And it should be noted that whether it is the first PDUs of the same SN to be processed refers to whether it is the first PDUs of the same SN to be processed during the processing of the PDU included in the current status report, that is, it is only effective during the processing of the current status report. When the processing mark is the first processing mark, it means that no PDUs of the same SN in this status report have been queued before, and the PDUs of the same SN in the retransmission data queue must be residual data.

[0107] In a possible implementation, the identification module sets a processing mark of the target data unit based on the number of times the target data unit is processed, where the processing mark includes a first processing mark and a non-first processing mark.

[0108] When receiving the data to be enqueued, the identification module can determine whether, when processing the PDU data contained in this status report, PDUs with the same SN as the data to be enqueued, that is, belonging to the same data unit, have been processed. If PDUs with the same SN have been processed, the processing mark is set to the non-first processing mark 1, that is, the corresponding Ctrl Bit is set to 1; if it has not been processed, it is determined to be the first processing, and it is set to the first processing mark 0, that is, the corresponding Ctrl Bit is set to 0.

[0109] Step 603: based on the data information in the retransmission data window, set the data residual flag of the target data unit to which the data to be queued belongs, and the data to be queued belongs to the first data.

[0110] After determining the processing mark of the data to be queued, the identification module can determine the data residual mark of the target data unit according to the processing mark and the target data quantity information of the target data unit to which the data to be queued in the retransmission data window belongs in the retransmission data queue. Step 603 may include steps 603a-603c (not shown in the figure):

[0111] Step 603a: when the processing mark is the first processing mark, obtain target quantity information in the data information, where the target quantity information is used to indicate the data quantity of the target data unit in the retransmission data queue.

[0112] When the processing mark is the first processing mark, the identification module can obtain the quantity information of the target data units to which the data to be queued in the retransmission data queue belongs in the retransmission data queue.

[0113] The identification module can access the RLC Window to obtain the target number information of the target data unit in the retransmission data queue, that is, to obtain the retxCtrl data of the SN corresponding to the data to be queued.

[0114] Step 603b: When the target quantity information indicates that data belonging to the target data unit exists, the data residue flag is set to a first flag, and the first flag is used to indicate that data residue exists.

[0115] When retxCtrl is not 0, that is, it is determined that there is data belonging to the target data unit in the retransmission data queue, the identification module sets the data residual flag to the first flag. Optionally, the first flag may be "1".

[0116] That is, when the Ctrl Bit of the target data unit is 0 and retxCtrl is not 0, the identification module sets the data residual mark Queued Bit of the target data unit to which the data to be queued belongs to 1, indicating that when the first PDUs with the same SN as the PDUs to be queued is processed, there are already PDUs with the same SN remaining in the Retx Queue.

[0117] Step 603c: when the processing mark is a non-first processing mark, keep the data residual mark of the target data unit unchanged.

[0118] After receiving the data to be queued, the identification module may update the processing mark of the target data unit to which it belongs. If the updated processing mark is not the first processing mark, the data residual mark of the target data unit may be kept unchanged.

[0119] Indicatively, when the data to be queued is the first PDUs, its corresponding SN is 1, and it is the first PDUs processed with SN 1 in this status report, the Ctrl Bit is 0, and the retxCtrl of the PDU with SN 1 is not 0, therefore, it can be determined that the Queued Bit of the PDU with SN 1 is 1; and when the data to be queued is the second PDUs, and the SN is also 1, the Ctrl Bit is set to 1, and its Queued Bit remains unchanged and is still 1.

[0120] Step 604: when the data residual mark indicates that the target data unit has residual data, determine the residual starting position of the residual data, where the residual starting position is used to indicate the minimum byte position of the residual data of the target data unit in the retransmission data queue.

[0121] When the data residual mark indicates that there is residual data belonging to the target data unit in the retransmission data queue, since the residual data may or may not contain the data to be entered into the queue, in this embodiment, the residual starting position of the residual data is introduced, and the identification module determines whether the residual data contains the data to be entered into the queue based on the residual starting position.

[0122] In a possible implementation, the residual starting position somin of the residual data of the data unit is maintained in the RLC Window, which indicates the minimum byte position of the PDUs that have not been transmitted in the data belonging to the target data unit, that is, the minimum byte position of the residual data. For example, for a PDU containing 10 bits, in the last transmission process, the electronic device has transmitted 6 bits of data, and the remaining 6 bits remain in the retransmission data queue, and its residual starting position somin is 6. Among them, somin is updated after each retransmission data queue dequeue operation is completed.

[0123] Optionally, since the variables rlcSn (32 bits), retxCtrl (8 bits) and retxCount (8 bits) maintained in the RLC Window data occupy 48 bits, and in the actual storage process, due to the limitation of the storage mechanism, 64 bits are required, therefore, in this embodiment, the remaining 16 bits can be used to store somin. That is, the unused storage space of the RLC Window is used to expand the variables to avoid occupying excess storage space. The expanded RLC Window is shown as follows:

[0124] Struct RLC window E1ement

[0125]

[0126] When the data residual flag indicates that there is residual data in the target data unit, the identification module may access the RLCWindow to obtain the residual starting position somin.

[0127] Step 605: When the data starting position of the data to be queued is greater than or equal to the residual starting position, it is determined that the data to be queued is redundant data.

[0128] The status report includes the data starting position of each data to be queued, that is, the minimum byte position of the PDUs to be queued. When the data starting position sostart of the data to be queued is greater than or equal to the residual starting position somin, it can be determined that the data to be queued is repeated with the residual data in the retransmission data queue and is determined to be redundant data. When the data starting position sostart of the data to be queued is less than the residual starting position somin, it can be determined to be non-redundant data and can be added to the retransmission data queue.

[0129] That is, in this embodiment, whether the data to be queued is redundant data, that is, whether it belongs to NACK PDUs3, can be determined according to Ctrl Bit, Queued Bit and somin, and whether the data to be queued belongs to NACK PDUs 1 or NACK PDUs 2 can also be determined according to the three.

[0130] When NACK PDUs 1 appears, since this PDUs is a newly included NACK PDUs after the previous status report is received, that is, the retxCtrl of the RLC Window is 0, the Queued bit should be 0, and it needs to be added to the retransmission data queue; when NACK PDUs 2 appear, because the previously retransmitted PDUs are lost again, retxCtrl is not 0, the Queued bit is 1 and sostart is less than somin, it needs to be added to the retransmission data queue; when NACK PDUs 3 appear, the Queued bit is 1 and sostart>=somin, it will be identified and discarded.

[0131] Indicatively, Figure 7 As shown, the first status report indicates NACK PDU fragments 1, 2, 3, and 4, which are all PDU fragments of the same SN. Among them, fragments 1 and 2 have been processed and sent by the MAC Module, the first half of fragment 3 has been sent, and the second half is still in the Retx Queue, and fragment 4 has not been sent and is in the Retx Queue.

[0132] The NACK PDUs 5, 6, 7, and 8 indicated in the second status report are NACK PDUs 2 caused by packet loss, which need to be queued and retransmitted. Among them, the Queued bit of NACK PDUs 5 is 0, the Queued bit of NACK PDUs 6, 7, and 8 is 1, and sostart is less than somin.

[0133] NACK PDUs 9, 11, 12, and 13 whose Queued bit is 1 and sostart is greater than or equal to somin are identified as redundant and discarded.

[0134] NACK PDUs 10 are newly indicated NACK PDU 1s that need to be retransmitted and need to be added to the Retx Queue for retransmission.

[0135] Step 606, when the data to be queued is the remaining data and the data residual mark corresponding to the target data unit is the second mark, the residual starting position of the target data unit is updated based on the data starting position of the target data unit, and the second mark is used to indicate that there is no data residual.

[0136] When the data to be queued is the remaining data, that is, non-redundant data, the data to be queued is added to the retransmission data queue. After the data to be queued is added to the retransmission data queue, since the data may not be transmitted in the subsequent transmission process, the residual starting position of the corresponding target data unit must be updated first, and it must be updated to the data starting position of the data to be queued, so that it can be used in the processing of the next status report.

[0137] If the Queued Bit of the current data to be queued is the first mark 1, since the residual starting position somin is needed to identify whether the subsequent PDUs with the same SN in this status report are redundant data, the residual starting position will not be updated in this case, that is, when the Queued Bit is 1 and sostart is less than somin, it will only be queued and somin will not be updated.

[0138] When the Queued Bit is the second mark 0, it means that there is no residual data in the retransmission data queue. Therefore, the identification module can update the somin of the target data unit to which the data to be queued belongs to the data starting position sostart of the data to be queued for the data identification process of the next status report.

[0139] Step 607: discard redundant data in the first data, and add the remaining data to a retransmission data queue.

[0140] In a possible implementation, the identification module identifies the data to be queued in the first data in sequence. When the data to be queued is identified as redundant data, the redundant data can be discarded; when the data to be queued is identified as remaining data, it can be added to the retransmission data queue to wait for data retransmission.

[0141] It should be noted that this embodiment does not limit the execution sequence of step 606 and step 607, and the two can be executed simultaneously or one after the other.

[0142] Step 608: Add the quantity information of the data units to which the remaining data belongs in the data information.

[0143] Since the remaining data has been added to the retransmission data queue, the number of data units corresponding to the remaining data in the retransmission data queue increases, and the number information of the data units corresponding to the remaining data in the RLC Window needs to be updated, that is, retxCtrl++ is executed.

[0144] Illustratively, when the SN of the remaining data PDUs is 1, the retxCtrl with SN of 1 in the RLC Window is incremented by 1.

[0145] Step 609: When the dequeue operation of the retransmission data queue is completed, the dequeue information of each data is obtained.

[0146] When the status report processing is completed, the first data to be queued is added to the retransmission data queue, and the MAC module will retransmit the data in the retransmission data queue. After the dequeuing operation is completed, the data information of the data unit in the RLC window can be updated according to the dequeuing status of each data unit, so as to be used for the next status report processing process.

[0147] Optionally, an ACK Process module is introduced, which can obtain dequeue information of each data in the retransmission data queue, wherein the dequeue information includes complete dequeue information or incomplete dequeue information, and in the case of incomplete dequeue, it also includes the last byte position of the data being dequeued.

[0148] Step 610: When the dequeue information indicates that the data is completely dequeued, reduce the quantity information corresponding to the data unit to which the data belongs in the data information.

[0149] When the dequeue information indicates that the data is completely dequeued, the quantity information corresponding to the data unit is updated. In the case of complete dequeue, the quantity of data belonging to the data unit in the retransmission data queue is reduced, and retxCtrl-- is executed.

[0150] Step 611: When the dequeue information indicates that the data unit is not completely dequeued, update the remaining starting position of the data unit.

[0151] When the dequeue information indicates that the data unit is not completely dequeued, the last byte position of the dequeued data can be obtained, and the residual starting position of the data unit is determined according to the last byte position of the dequeued data, that is, somin=lastsentso+1.

[0152] Optional, such as Figure 5 As shown in FIG. 5 , when the MAC MODULE completes the dequeue operation and the packet assembly process, ACKProcess 505 will be triggered. Figure 8 As shown, the ACK Process determines whether the PDUs are completely dequeued according to the dequeuing information. If they are completely dequeued, retxCtrl-- is executed; if they are not completely dequeued, somin=lastsentso+1 is executed, thereby updating the data in the RLCWindow.

[0153] In this embodiment, by adding indication information in the RLC Window, redundant data NACK PDUs3 are identified and discarded, which saves air interface resources and improves air interface transmission efficiency. At the same time, since the number of retransmissions of NACK PDUs is reduced, it helps to reduce the scenario where the number of retransmissions of PDUs reaches the threshold for RRC reconstruction, which will also save corresponding computing resources for the 5G protocol stack system and improve air interface transmission efficiency.

[0154] The newly added processing mark Ctrl Bit, the data residue mark Queued Bit and the residue start position somin are stored in the unused storage space of the RLC Window, without occupying extra storage space, thus saving storage resources.

[0155] In this embodiment, redundant data can be identified only by updating and maintaining variables in the RLC Window, which only increases the use of a small amount of computing resources and helps to improve air interface transmission efficiency.

[0156] In the above embodiment, when the Queued Bit is 1 and sostart is less than somin, data is only queued without updating somin. In this case, if all data in the retransmission data queue is dequeued, that is, the Retx Queue is empty, there will be no redundant data in the next status report processing, and each data will be refreshed. The unupdated somin will not affect the processing of the next status report. If the data in the retransmission data queue is not dequeued completely and somin is not updated, there may be inaccuracies, which will affect the processing of the next status report. In this case, it can be handled in the following way.

[0157] Method 1: when the target data exists in the first data, the residual starting position of the data unit to which the target data belongs is updated to the maximum byte position of the data unit, and the data residual mark of the data unit to which the target data belongs is the first mark.

[0158] In the above embodiment, during the data enqueue process, whether it is redundant data will be determined based on the Queuedbit of the data to be enqueued and the size relationship between sostart and somin. When the target data exists in the first data, the residual mark of the data to which it belongs is the first mark, and the corresponding somin may be inaccurate. Therefore, in a possible implementation, when the target data exists in the first data, the residual starting position of the target data can be updated. That is, after processing the last PDUs of the current status report, for the data unit whose data residual mark is the first mark (Queuebit is 1), the residual starting position of the data unit can be updated to the maximum byte position of the data unit, that is, somin is updated to the maximum value.

[0159] After that, when processing the next status report, the identification module will not filter the NACK PDUs corresponding to the data unit to which the target data belongs, to avoid discarding some packets that are discarded incorrectly due to inaccurate somin. When all the data in the retransmission data queue is dequeued, the Queued Bit is refreshed to 0, and the redundant data identification and filtering mechanism works again.

[0160] Indicatively, Fig. 9 As shown, when the first status report is received, the air interface resources only support the part sent to Retx PDU1, and the remaining part remains in the Retx Queue; after the second status report is received subsequently, PDU4, 8 indicated by the second status report are normally queued in the Retx Queue, and PDU 5, 6, 7 are identified as redundant and discarded. At the same time, since the Queued Bit of PDU 5, 6, 7 is 1, the corresponding somin is configured as the maximum byte position. At this time, the NACK PDUs identification module fails, and when the third status report is received, the repeated redundant retransmission PDU 10, 11, 12 will be queued. However, the somin of PDU 4, 8 is not configured as the maximum value, and the NACK PDUs identification module still works normally for PDUs 9, 13, identifying them as redundant and discarding them. After that, when the electronic device receives an indication of sufficient air interface resources, all PDUs in the Retx Queue will be dequeued. When the fourth status report is received, the Retx Queue is empty, so all the NACK PDUs indicated by the fourth status report can be queued. If only a small amount of air interface resource indication is received, the NACK PDUs indicated by the fourth status report are only partially sent. When the fifth status report is received again, the NACK PDUs identification module is re-validated, and the redundant PDU15, PDU16, PDU17 and PDU18 are discarded.

[0161] Mode 2: When the target data exists in the first data, a dequeue mark is set, and the dequeue mark is used to indicate that the retransmission data queue is cleared.

[0162] In a possible implementation, after processing the last PDUs of the current status report, if there is target data with data residue marked as the first mark in the first data indicated by this status report, the dequeue mark is set. Optionally, the dequeue mark is the Flush bit in the infinite bearer (Radio Bearer, RB). In this case, when the next status report is received, if there is still data residue in the retransmission data queue and the dequeue mark is set (flushbit is set), the retransmission data queue will be cleared, and retxCtrl and Queued bit will be refreshed at the same time, that is, set to 0. In this way, when the next status report is received, the first data to be retransmitted in the next status report will not have redundant data. It should be noted that each time a status report is received, it is determined whether the retransmission data queue Retx Queue is empty. If it is not empty and the Flushbit is set, the retransmission data queue is cleared.

[0163] Indicatively, Fig.10 As shown, in the current network environment, air interface resources are in short supply. When the first status report is received, the air interface resources only support the part sent to Retx PDU 1, and the rest remains in the Retx Queue. After receiving the second status report, PDUs 4 and 8 indicated by the second status report are normally queued in the Retx Queue, and PDUs 5, 6, and 7 are identified as redundant and discarded. Since the Queuebit of the data unit corresponding to PDU5, 6, and 7 is 1, that is, there is target data, the Flushbit is set.

[0164] When the third status report is received, if the Retx Queue is not empty and the Flushbit is set, the flush Retx Queue is triggered, that is, the retransmission data queue is cleared. Therefore, the current Retx PDU is cleared (Retx PDU fragments 1, 2, 3, 4, and 8 in the queue are cleared). All NACK PDUs indicated by the third status report are queued.

[0165] When the fourth status report is received subsequently, the NACK PDUs identification module starts again to identify the redundant data filtering mechanism. The NACK PDUs indicated by the fourth status report are all redundant data, and all the NACK PDUs indicated by the fourth status report are discarded.

[0166] Subsequently, when the MAC Module receives the air interface resource indication again, it sends PDUs 9, 10, 11, 12, and 13 in the Retx Queue.

[0167] The above two methods can be implemented in different network environments. Method 1 uses fewer computing resources than method 2, while method 2 can identify all redundant data and reduce the occupation of air interface resources compared to method 1. Therefore, when the network environment is good, there is less packet loss during data transmission, and air interface resources are sufficient, method 1 can be used, which requires fewer computing resources. When the network environment is poor, air interface resources are scarce, and method 2 can identify all redundant data and save more air interface resources.

[0168] Optionally, when the network environment is the first network environment, the residual starting position of the data unit is updated to the maximum position of the data unit.

[0169] Optionally, when the network environment is the second network environment, a dequeue mark is set, and air interface resources in the first network environment are better than those in the second network environment.

[0170] Optionally, the identification module may identify redundant data as follows: Fig.11 shown.

[0171] Step 1101, access and set variables in the RLC Window.

[0172] When the Status PDU Decoding Process parses and obtains NACK PDU / NACK PDU segment, the variables in the RLC Window are accessed and set. Optionally, the CtrlBit and Queued Bit can be set by accessing retxCtrl and somin.

[0173] Step 1102, determine whether the Queued Bit is 1 and soStart>=soMin of retx PDUs, if so, execute step 1103, if not, execute step 1104.

[0174] Step 1103, discard the PDUs (identify that the PDUs are redundant NACK PDUs 3).

[0175] Step 1104: when the Queued Bit is 0, update somin.

[0176] Step 1105, determine whether the PDUs is NACK PDUs 1 or NACK PDUs 2, and enter the Retx Queue; retxCtrl++.

[0177] When Queued Bit is 0 or Queued Bit is 1 and sostart < somin, the PDUs are queued into the Retx Queue. And the quantity information of the corresponding data unit is increased, that is, retxCtrl++.

[0178] Step 1106, determine whether the PDUs are the last PDUs for status report processing. If so, execute Step 1107; if not, execute Step 1101.

[0179] Step 1107, Status PDU Decoding Process.

[0180] Among them, after processing the last PDUs in the status report, this process will handle the situation where the redundant data recognition fails due to inaccurate somin in the manner one or manner two in the above embodiment.

[0181] Such as Fig.12 shown, Step 1201 can be implemented. If there is a Queued bit corresponding to the data in the first data indicated in this status report that is 1, then set the Flush Bit (when receiving the status report, if the Retx Queue is not empty and the Flush Bit is set, then clear the Retx Queue).

[0182] That is, after processing the last PDUs in this status report, if there is a Queued bit that is 1 during the processing of this status report, then set the Flush bit. When receiving the status report subsequently, before initializing the RLC window, confirm whether there is data in the Retx Queue. When the Retx Queue is not empty and the Flush bit is set, clear the Retx Queue.

[0183] Alternatively, Step 1202 can be implemented. For each NACK PDU, if the Queued bit is 1, then somin = the maximum value.

[0184] That is, after processing the last PDUs in this status report, for any data unit with a Queued bit that is 1, update its somin to the maximum value.

[0185] Please refer to Fig.13 , which shows the structural block diagram of a data retransmission device provided by an embodiment of the present application. Such as Fig.13 shown, this device includes:

[0186] A data receiving module 1301, configured to receive a status report, where the status report indicates first data that needs to be retransmitted;

[0187] A data determination module 1302 is used to determine redundant data in the first data based on data information in a retransmission data window, wherein data information of different data units is maintained in the retransmission data window, and the data information is used to indicate data residual status of the data unit in the retransmission data queue, and the redundant data is repeated data between the data to be transmitted in the retransmission data queue and the first data;

[0188] The data adding module 1303 is used to add remaining data to the retransmission data queue, where the remaining data is the data in the first data except the redundant data.

[0189] Optionally, the data determination module 1302 is further configured to:

[0190] Based on the data information in the retransmission data window, setting a data residual flag of a target data unit to which the data to be queued belongs, the data to be queued belongs to the first data;

[0191] In a case where the data residue mark indicates that the target data unit has residual data, determining a residual starting position of the residual data, where the residual starting position is used to indicate a minimum byte position of the residual data;

[0192] In a case where the data starting position of the data to be queued is greater than or equal to the residual starting position, it is determined that the data to be queued is the redundant data.

[0193] Optionally, the device further comprises:

[0194] The setting module is used to set the processing mark of the target data unit based on the number of times the target data unit is processed, and the processing mark includes a first processing mark and a non-first processing mark.

[0195] Optionally, the data determination module 1302 is further configured to:

[0196] In a case where the processing mark is the first processing mark, obtaining target quantity information in the data information, where the target quantity information is used to indicate the data quantity of the target data unit in the retransmission data queue;

[0197] In a case where the target quantity information indicates that data belonging to the target data unit exists, the data residue flag is set to a first flag, where the first flag is used to indicate that data residue exists.

[0198] Optionally, the data determination module 1302 is further used to: include:

[0199] When the processing mark is the non-first processing mark, the data residual mark of the target data unit is kept unchanged.

[0200] Optionally, the device further comprises:

[0201] A data updating module is used to update the residual starting position of the target data unit based on the data starting position of the data to be enqueued, when the data to be enqueued is the remaining data and the data residual mark corresponding to the data to be enqueued is a second mark, and the second mark is used to indicate that there is no data residual.

[0202] Optionally, the device further comprises:

[0203] A data acquisition module, used for acquiring dequeue information of each data when the dequeue operation of the retransmission data queue is completed;

[0204] The data updating module is further configured to reduce the quantity information corresponding to the data unit to which the data belongs in the data information when the dequeue information indicates that the data is completely dequeued;

[0205] The data updating module is further configured to update the residual starting position of the data unit to which the data belongs when the dequeue information indicates that the data is not completely dequeued.

[0206] Optionally, the data updating module is further used to increase the quantity information of the data units to which the remaining data in the data information belongs.

[0207] Optionally, the data updating module is further configured to, when target data exists in the first data, update the residual starting position of the data unit to which the target data belongs to to the maximum byte position of the data unit, and the data residual mark of the data unit to which the target data belongs to to the first mark;

[0208] or,

[0209] The setting module is further used to set a dequeue mark when the target data exists in the first data, and the dequeue mark is used to indicate to clear the retransmission data queue.

[0210] Optionally, the data updating module is further used to:

[0211] When the network environment is the first network environment, updating the residual starting position of the data unit to the maximum position of the data unit;

[0212] The setting module is also used for:

[0213] In a case where the network environment is the second network environment, the dequeue mark is set, and the air interface resources in the first network environment are better than those in the second network environment.

[0214] Optionally, the data information of the data unit includes the sequence number of the data unit, the data quantity information belonging to the data unit in the retransmission data queue, and the number of retransmissions of the data unit. The sequence numbers of the data belonging to the same data unit are the same, and the control mark and the data residual mark are stored at the storage location where the number of retransmissions of the data unit is stored.

[0215] Optionally, the device further comprises:

[0216] A data discarding module is used to discard the redundant data in the first data.

[0217] In summary, in the embodiment of the present application, during the data transmission process, data information of different data units is maintained in the retransmission data window, and the electronic device can determine the data residual situation of the data units to which each data in the first data belongs in the retransmission data queue according to the data information, thereby determining whether the data is already in the retransmission data queue according to the data residual situation, that is, determining whether the data is redundant data, and then, the remaining data in the first data except the redundant data can be added to the retransmission data queue, and the data in the retransmission data queue is retransmitted. By accessing the retransmission data window, the mechanism of identifying redundant data can avoid the situation where redundant data exists in the retransmission data queue, reduce the transmission of redundant data, thereby reducing the occupation of air interface resources and computing resources, and helping to improve air interface transmission efficiency.

[0218] It should be noted that: the device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0219] Please refer to Fig.14 , which shows a structural block diagram of an electronic device 1400 provided by an exemplary embodiment of the present application. The electronic device 1400 in the present application may include one or more of the following components: a processor 1410 , a memory 1420 , a receiver 1430 , and a transmitter 1440 .

[0220] The processor 1410 may include one or more processing cores. The processor 1410 uses various interfaces and lines to connect various parts of the entire electronic device 1400, and executes various functions and processes data of the electronic device 1400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1420, and calling data stored in the memory 1420. Optionally, the processor 1410 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1410 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1410, but may be implemented separately through a baseband chip.

[0221] The memory 1420 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1420 includes a non-transitory computer-readable storage medium. The memory 1420 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 1420 may include a storage program area and a storage data area, wherein the storage program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The operating system may be an Android system (including a system deeply developed based on the Android system), an IOS system developed by Apple (including a system deeply developed based on the IOS system) or other systems. The storage data area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 1400 during use.

[0222] The receiver 1430 and the transmitter 1440 may be implemented as a communication component, which may be a baseband chip.

[0223] In addition, those skilled in the art can understand that the structure of the electronic device 1400 shown in the above figures does not constitute a limitation on the electronic device 1400, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the electronic device 1400 also includes a radio frequency circuit, a shooting component, a sensor, an audio circuit, a wireless fidelity (WiFi) component, a power supply, a Bluetooth component, and other components, which will not be described in detail here.

[0224] The present application also provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set or an instruction set is stored. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the data retransmission method provided by any of the above exemplary embodiments.

[0225] The embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of an electronic device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the electronic device executes the data retransmission method provided in the above optional implementation.

[0226] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0227] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A data retransmission method, characterized in that: The method comprises: receiving a status report, wherein the status report indicates that first data needs to be retransmitted; Determine redundant data in the first data based on data information in a retransmission data window, wherein data information of different data units is maintained in the retransmission data window, and the data information is used to indicate data residual status of the data unit in the retransmission data queue, and the redundant data is repeated data between the data to be transmitted in the retransmission data queue and the first data; Adding remaining data to the retransmission data queue, the remaining data is data in the first data except the redundant data.

2. The method according to claim 1, characterized in that The determining, based on the data information in the retransmission data window, redundant data in the first data includes: Based on the data information in the retransmission data window, setting a data residual flag of a target data unit to which the data to be queued belongs, the data to be queued belongs to the first data; In a case where the data residue mark indicates that the target data unit has residual data, determining a residual starting position of the residual data, where the residual starting position is used to indicate a minimum byte position of the residual data; In a case where the data starting position of the data to be queued is greater than or equal to the residual starting position, it is determined that the data to be queued is the redundant data.

3. The method according to claim 2, characterized in that Based on the data information in the retransmission data window, Before setting the data residual mark of the target data unit to which the data to be queued belongs, the method further includes: Based on the number of times the target data unit is processed, setting a processing mark of the target data unit, wherein the processing mark includes a first processing mark and a non-first processing mark; The step of setting a data residual flag of a target data unit to which the to-be-queued data belongs based on the data information in the retransmission data window comprises: In a case where the processing mark is the first processing mark, obtaining target quantity information in the data information, where the target quantity information is used to indicate the data quantity of the target data unit in the retransmission data queue; In a case where the target quantity information indicates that data belonging to the target data unit exists, the data residue flag is set to a first flag, where the first flag is used to indicate that data residue exists.

4. The method according to claim 3, characterized in that The step of setting a data residual flag of a target data unit to which the to-be-queued data belongs based on the data information in the retransmission data window comprises: When the processing mark is the non-first processing mark, the data residual mark of the target data unit is kept unchanged.

5. The method according to claim 3, characterized in that: The method further comprises: When the data to be enqueued is the remaining data and the data residual mark corresponding to the data to be enqueued is a second mark, the residual starting position of the target data unit is updated based on the data starting position of the data to be enqueued, and the second mark is used to indicate that there is no data residual.

6. The method according to claim 5, characterized in that The method further comprises: When the dequeue operation of the retransmitted data queue is completed, obtaining dequeue information of each data; When the dequeue information indicates that the data is completely dequeued, reducing the quantity information corresponding to the data unit to which the data belongs in the data information; When the dequeue information indicates that the data is not completely dequeued, the residual starting position of the data unit to which the data belongs is updated.

7. The method according to claim 6, characterized in that After adding the remaining data to the retransmission data queue, the method further includes: The quantity information of the data units to which the remaining data belongs is added in the data information.

8. The method according to any one of claims 3 to 7, characterized in that: The method further comprises: In the case that the target data exists in the first data, the residual starting position of the data unit to which the target data belongs is updated to the maximum byte position of the data unit, and the data residual mark of the data unit to which the target data belongs is the first mark; or, In the case that the target data exists in the first data, a dequeue mark is set, where the dequeue mark is used to indicate that the retransmission data queue is cleared.

9. The method according to claim 8, characterized in that The updating of the residual starting position of the data unit to which the target data belongs to the maximum byte position of the data unit comprises: When the network environment is the first network environment, updating the residual starting position of the data unit to the maximum byte position of the data unit; The setting of the dequeue mark comprises: In a case where the network environment is the second network environment, the dequeue mark is set, and the air interface resources in the first network environment are better than those in the second network environment.

10. The method according to any one of claims 3 to 7, characterized in that: The data information of the data unit includes the sequence number of the data unit, the data quantity information belonging to the data unit in the retransmission data queue and the number of retransmissions of the data unit. The sequence numbers of the data belonging to the same data unit are the same, and the processing mark and the data residual mark are stored at the storage location where the number of retransmissions of the data unit is stored.

11. The method according to any one of claims 1 to 7, characterized in that: After determining the redundant data in the first data, the method further includes: The redundant data in the first data is discarded.

12. A data retransmission device, characterized in that: The device comprises: A data receiving module, configured to receive a status report, wherein the status report indicates that there is first data that needs to be retransmitted; a data determination module, configured to determine redundant data in the first data based on data information in a retransmission data window, wherein data information of different data units is maintained in the retransmission data window, wherein the data information is used to indicate a residual data status of the data unit in the retransmission data queue, and the redundant data is duplicate data between the data to be transmitted in the retransmission data queue and the first data; A data adding module is used to add remaining data to the retransmission data queue, where the remaining data is data in the first data except the redundant data.

13. A baseband chip, characterized in that: The baseband chip includes a programmable logic circuit and / or program instructions, which are used to implement the data retransmission method according to any one of claims 1 to 11 when the baseband chip is running.

14. An electronic device, characterized in that: The electronic device is provided with the baseband chip as claimed in claim 13.

15. A computer-readable storage medium, characterized in that: At least one program code is stored in the computer-readable storage medium, and the program code is loaded and executed by the processor to implement the data retransmission method according to any one of claims 1 to 11.

16. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. A processor reads and executes the computer instructions from the computer-readable storage medium to implement the data retransmission method according to any one of claims 1 to 11.