CN112865933B - Data retransmission method, device, equipment and storage medium - Google Patents

Data retransmission method, device, equipment and storage medium Download PDF

Info

Publication number
CN112865933B
CN112865933B CN202011621799.8A CN202011621799A CN112865933B CN 112865933 B CN112865933 B CN 112865933B CN 202011621799 A CN202011621799 A CN 202011621799A CN 112865933 B CN112865933 B CN 112865933B
Authority
CN
China
Prior art keywords
protocol layer
message
packet
data
receiving end
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011621799.8A
Other languages
Chinese (zh)
Other versions
CN112865933A (en
Inventor
郑自永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Comba Network Systems Co Ltd
Original Assignee
Comba Network Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Comba Network Systems Co Ltd filed Critical Comba Network Systems Co Ltd
Priority to CN202011621799.8A priority Critical patent/CN112865933B/en
Publication of CN112865933A publication Critical patent/CN112865933A/en
Application granted granted Critical
Publication of CN112865933B publication Critical patent/CN112865933B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • H04L1/189Transmission or retransmission of more than one copy of a message
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1829Arrangements specially adapted for the receiver end
    • H04L1/1858Transmission or retransmission of more than one copy of acknowledgement message

Abstract

The invention relates to a data retransmission method, a device, equipment and a storage medium, wherein the method is applied to a sending end of a first protocol layer and comprises the following steps: detecting first confirmation information of a first message fed back by a receiving end of a first protocol layer; when first confirmation information fed back by a receiving end of a first protocol layer indicates that a first message is not successfully received, detecting whether the message mapping table comprises the first message or not; if the first message is not included, retransmitting the first message to a receiving end of the first protocol layer; if the first message is included, all messages in the data packet including the first message in the message mapping table are retransmitted to the receiving end of the first protocol layer. The first confirmation information fed back by the receiving end of the first protocol layer is used for checking the condition that the information is analyzed when the confirmation information fed back by the receiving end of the second protocol layer is detected, and all messages which are virtually solved are directly and repeatedly sent in batches when the confirmation information of the second protocol layer is checked to be virtually solved, so that the retransmission efficiency and the transmission efficiency are improved.

Description

Data retransmission method, device, equipment and storage medium
Technical Field
The present invention relates to the field of mobile communication technologies, and in particular, to a data retransmission method, apparatus, device, and storage medium.
Background
With the continuous development and evolution of mobile technology, in a wireless communication system, data transmission of a protocol layer needs to be fast, and the reliability of data transmission needs to be ensured. In a general protocol stack, a MAC (medium access control) layer and an RLC (radio link control) layer of a link layer are provided with a retransmission mechanism. In the retransmission mechanism of the MAC layer, when a receiving end of the MAC layer receives correct/incorrect data or unsuccessfully receives the data, whether the required data is received or not is fed back to a sending end through Acknowledgement (ACK) or Negative Acknowledgement (NACK) information, the sending end of the MAC layer backups the data after sending the data, and the sent data in a backup cache is cleaned only after receiving an ACK message; after receiving the NACK message, the corresponding data in the backup cache is sent to the receiving end again to realize the retransmission of the data; the retransmission mechanism of the RLC layer is similar to that of the MAC layer, and for the RLC layer, there are three service modes: transparent mode, unacknowledged mode and acknowledged mode, only in acknowledged mode the RLC layer will initiate retransmission mechanisms for data retransmission.
The overall data transmission process of the RLC layer and the MAC layer is as follows:
the method comprises the steps that an RLC layer sends a plurality of RLC messages to an MAC layer, a sending end of the MAC layer packs the RLC messages and adds a data header to form an MAC data packet, then the data are sent to a receiving end of the MAC layer through a physical layer, the receiving end of the MAC layer feeds back confirmation information to the sending end of the MAC layer after receiving the data, if the MAC data packet is missing or received incorrectly, the sending end of the MAC layer needs to retransmit the data, and the data which are confirmed to be correct are transmitted to the receiving end of the RLC layer; after receiving data, the receiving end of the RLC layer feeds back acknowledgement information to the sending end of the RLC layer, and if missing or receiving wrong RLC message data, the sending end of the RLC layer needs to retransmit the data, so that reliability of data transmission is guaranteed through a retransmission mechanism of two protocol layers.
However, in the retransmission process of the MAC layer, a NACK → ACK phenomenon, also called an ACK virtual solution phenomenon, occurs, that is, a NACK message is sent by the receiving end, but due to transmission abnormality, the sending end of the MAC layer will virtually solve the NACK message into an ACK message, and the sending end will delete the corresponding data packet according to the ACK message obtained by analysis, so that the receiving end cannot receive the correct data packet, and at this time, the RLC message included in the erroneously deleted MAC data packet needs to be retransmitted to the receiving end of the RLC layer by means of a retransmission mechanism of the RLC layer. Therefore, in the prior art, for the loss of a certain data packet in the RLC layer corresponding to the MAC layer virtual solution ACK, explicit retransmission is adopted, only NACK indicated by the RLC status report is relied on, and other RLC packets of the MAC layer data packet deleted by mistake are not considered in each explicit retransmission, so that the retransmission efficiency of the lost packet is low, and the transmission rate of the applied equipment is greatly reduced.
Disclosure of Invention
The present invention is directed to overcome at least one of the above-mentioned drawbacks of the prior art, and provides a data retransmission method, apparatus, device and storage medium, for solving the problem of low efficiency when a sending end of a protocol layer retransmits a lost packet when a sending end virtually resolves an acknowledgement (NACK) into an ACK.
The technical scheme adopted by the invention comprises the following steps:
a data retransmission method is applied to a sending end of a first protocol layer and comprises the following steps: detecting first confirmation information of a first message fed back by a receiving end of a first protocol layer; when first confirmation information fed back by a receiving end of the first protocol layer indicates that the first message is not successfully received, detecting whether a message mapping table comprises the first message or not; if the first message is not included, retransmitting the first message to a receiving end of the first protocol layer; if the first message is included, retransmitting all messages in the data packet including the first message in the message mapping table to a receiving end of the first protocol layer; the first protocol layer is an upper protocol layer of a second protocol layer, and the message mapping table is a mapping set of all messages and corresponding message identifiers in a successfully received data packet analyzed in the second protocol layer.
Further, the detecting whether the packet mapping table includes the first packet includes: searching a first identifier of the first message; and detecting whether the message mapping table contains the first identifier.
Further, before the detecting the first acknowledgement information fed back by the receiving end of the first protocol layer, the method includes: sending a plurality of messages including at least the first message to the second protocol layer.
Further, the message mapping table is formed by the sending end of the second protocol layer detecting and analyzing second confirmation information of the data packet fed back by the receiving end of the second protocol layer, and mapping and recording all the messages in the analyzed successfully received data packet and the corresponding message identifiers when the analyzed second confirmation information fed back by the receiving end of the second protocol layer indicates that the data packet is successfully received.
Further, the detecting and analyzing, by the sending end of the second protocol layer, the second acknowledgement information of the data packet fed back by the receiving end of the second protocol layer includes: a sending end of the second protocol layer receives a plurality of messages at least comprising the first message and encapsulates the plurality of messages at least comprising the first message into the data packet; sending the encapsulated data packet to a receiving end of the second protocol layer; and receiving and analyzing second confirmation information of the data packet fed back by the receiving end of the second protocol layer.
Further, after sending the plurality of packets at least including the first packet to the second protocol layer, the method further includes: and receiving the message mapping table sent by the second protocol layer.
A data retransmission apparatus, comprising: the first data detection module is used for detecting first confirmation information of a first message fed back by a receiving end of a first protocol layer; a second data detection module, configured to detect whether a packet mapping table includes the first packet when first acknowledgement information fed back by the receiving end of the first protocol layer, detected by the first data detection module, indicates that the first packet is not successfully received; a data retransmission module, configured to retransmit the first packet to a receiving end of the first protocol layer when the second data detection module detects that the packet mapping table does not include the first packet; the second data detection module is further configured to, when detecting that the packet mapping table includes the first packet, retransmit all packets in a packet including the first packet in the packet mapping table to a receiving end of the first protocol layer; the first protocol layer is an upper protocol layer of a second protocol layer, and the message mapping table is a mapping set of all messages and corresponding message identifiers in a successfully received data packet analyzed in the second protocol layer.
Further, the second data detection module is configured to detect whether the packet mapping table includes the first packet, including: the second data detection module is used for searching a first identifier of the first message; and detecting whether the message mapping table contains the first identifier.
Further, still include: and the data transmission module is used for sending a plurality of messages at least comprising the first message to the second protocol layer.
Further, the data transmission module is further configured to receive the packet mapping table sent by the second protocol layer after sending the plurality of packets at least including the first packet to the second protocol layer.
A data retransmission method is applied to a receiving end of a first protocol layer and comprises the following steps: feeding back first confirmation information of the first message to a sending end of the first protocol layer; if the first confirmation information indicates that the first message is not successfully received, detecting whether a message mapping table comprises the first message or not; if the first message is not included, receiving a retransmission message of the first message; if the first message is included, receiving retransmission messages of all messages in the data packet of the first message included in the message mapping table; the first protocol layer is an upper protocol layer of a second protocol layer, and the message mapping table is a mapping set of all messages and corresponding message identifiers in a successfully received data packet analyzed in the second protocol layer.
A data retransmission apparatus, comprising: the feedback module is used for feeding back the confirmation information of the first message to the sending end of the first protocol layer; the first detection module is used for detecting whether the first message is included in a message mapping table or not when the confirmation information of the first message fed back by the feedback module indicates that the first message is not successfully received; a data receiving module, configured to receive a retransmission packet of the first packet when the first detection module detects that the packet mapping table does not include the first packet; the first detection module is further configured to receive a retransmission packet of all packets in a data packet including the first packet in the packet mapping table when the first detection module detects that the packet mapping table includes the first packet; the first protocol layer is an upper protocol layer of a second protocol layer, and the message mapping table is a mapping set of all messages and corresponding message identifiers in a successfully received data packet analyzed in the second protocol layer.
A computer device comprising a memory storing a computer program and a processor implementing a data retransmission method according to any one of the preceding claims when the processor executes the computer program.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements any of the above-described data retransmission methods.
Compared with the prior art, the invention has the beneficial effects that:
(1) the analysis condition of second confirmation information of a data packet fed back by a second protocol layer receiving end is detected by using first confirmation information of a first message fed back by a first protocol layer receiving end, and when the fact that the second confirmation information fed back by the second protocol layer receiving end is virtually decoded by a sending end of a second protocol layer is detected, all messages of the virtually decoded data packet are directly sent to the receiving end of the first protocol layer in batches again, so that the retransmission efficiency of the whole data is improved, and the transmission efficiency is improved;
(2) the method comprises the steps of utilizing the corresponding relation between all messages of a data packet which is successfully received and corresponding message identifiers and represented by first confirmation information of first information fed back by a receiving end of a second protocol layer, matching the first messages which are not successfully received and represented by the first confirmation information of the first messages fed back by the receiving end of the first protocol layer, rapidly and clearly detecting whether the second confirmation information of the data packet which is fed back by the receiving end of the second protocol layer is subjected to virtual solution or not during detection, and immediately retransmitting all messages of the data packet subjected to virtual solution in batches if the second confirmation information of the data packet exists, so that the overall retransmission efficiency is improved.
Drawings
FIG. 1 is a flowchart illustrating steps S1-S5 according to an embodiment of the present invention.
FIG. 2 is a flowchart illustrating steps S01-S5 according to an embodiment of the present invention.
FIG. 3 is a flowchart illustrating steps T1-T3 according to an embodiment of the present invention.
FIG. 4 is a flowchart illustrating steps T11-T3 according to an embodiment of the present invention.
FIG. 5 is a flowchart illustrating steps S1-S5 including steps S21-S22 according to an embodiment of the present invention.
Fig. 6 is a block diagram of a data retransmission apparatus according to an embodiment of the present invention.
FIG. 7 is a flow chart of steps Q1-Q5 according to the embodiment of the present invention.
Fig. 8 is a block diagram of another data retransmission apparatus according to another embodiment of the present invention.
The figure includes:
a first data detection module 100 in one of the data retransmission apparatuses; a second data detection module 200; a data retransmission module 300; a data transmission module 400;
a feedback module 10 in another data retransmission device; a first detection module 20; a data receiving module 30.
Detailed Description
The drawings are only for purposes of illustration and are not to be construed as limiting the invention. For the purpose of better illustrating the following embodiments, certain features of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product; it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
As shown in fig. 1, this embodiment provides a data retransmission method, which is applied to a sending end of a first protocol layer, and includes the steps of:
s1: detecting first confirmation information of the first message fed back by the receiving end of the first protocol layer, and executing step S2 when the first confirmation information fed back by the receiving end of the first protocol layer indicates that the first message is not successfully received; when the first confirmation information fed back by the receiving end of the first protocol layer indicates that the first message is successfully received, executing step S3;
s2: detecting whether the message mapping table includes the first acknowledgment information in step S1 indicating that the first message is not successfully received: if the first message is not included, go to step S4; if the first message is included, executing step S5;
s3: not retransmitting the first message and deleting the first message;
s4: retransmitting the first message to a receiving end of a first protocol layer;
s5: and retransmitting all messages in the data packet including the first message in the message mapping table to a receiving end of the first protocol layer.
Specifically, the method further includes step S0: and sending a plurality of messages at least comprising the first message to a second protocol layer, specifically to a sending end of the second protocol layer.
Specifically, as shown in fig. 2, the specific execution procedure of step S0 is:
s01: sending a plurality of messages at least comprising a first message to a sending end of a second protocol layer;
s02: receiving a message mapping table transmitted by a transmitting end of a second protocol layer;
specifically, as shown in fig. 3, the message mapping table in step S02 and step S2 is formed by the sender of the second protocol layer performing the following steps:
t1: detecting and analyzing second confirmation information of a data packet fed back by a receiving end of a second protocol layer, and executing a step T2 when the analyzed second confirmation information shows that the data packet is successfully received; when the second acknowledgement information is analyzed to indicate that the data packet is not successfully received, executing step T3;
t2: mapping and recording all analyzed messages in the successfully received data packet and corresponding message identifiers to form a message mapping table and sending the message mapping table to a sending end of a first protocol layer;
t3: resending the data packet which the second confirmation information indicates is not successfully received to a receiving end of a second protocol layer;
specifically, as shown in fig. 4, the specific execution procedure of step T1 executed by the sender of the second protocol layer is as follows:
t11: receiving a plurality of messages at least comprising a first message, and packaging the plurality of messages at least comprising the first message into a data packet;
t12: sending the encapsulated data packet to a receiving end of a second protocol layer;
t13: receiving and analyzing second confirmation information of the data packet fed back by the receiving end of the second protocol layer, and executing the step T2 when the analyzed second confirmation information indicates that the data packet is successfully received; when the second acknowledgement information is analyzed to indicate that the data packet was not successfully received, step T3 is performed. The method provided by this embodiment is applicable to the sending end of the first protocol layer, and the main bodies of the sending end of the protocol layer and the receiving end of the protocol layer may be any applicable communication device, such as a base station, a server, or a terminal.
The first protocol layer and the second protocol layer belong to the same protocol stack, the first protocol layer is an upper protocol layer of the second protocol layer, and the data transmission process between the first protocol layer and the second protocol layer is as follows: the method comprises the steps that a plurality of messages are sent to a sending end of a second protocol layer by a sending end of the first protocol layer, the plurality of messages are packaged into data packets by the sending end of the second protocol layer and then are transmitted to a receiving end of the second protocol layer, and the plurality of messages are transmitted to the receiving end of the first protocol layer by the receiving end of the second protocol layer. The second protocol layer and the first protocol layer both adopt a retransmission mechanism to check and feed back received data, the receiving feedback of the receiving ends of the two protocol layers to the message or the data packet is generally based on a fixed time interval, taking the retransmission mechanism of the second protocol layer as an example, the receiving end of the second protocol layer can feed back whether to successfully receive at least one data packet to the sending end at intervals, when the feedback successfully receives at least one data packet, the sending end of the second protocol layer can not retransmit the at least one data packet, when the feedback unsuccessfully receives the at least one data packet, the sending end of the second protocol layer can retransmit the at least one data packet, and the retransmission mechanism between the receiving end and the sending end of the first protocol layer is the same as that of the second protocol layer.
Because the data packet transmitted by the lower protocol layer, that is, the second protocol layer, contains a plurality of messages, it is assumed that the feedback time interval of whether the receiving end of the first protocol layer and the receiving end of the second protocol layer successfully receives the acknowledgement information fed back by the message/data packet and the number of the messages/data packets fed back in the acknowledgement information are the same, that is, the receiving end of the first protocol layer can feed back the receiving condition of n messages within the fixed time interval, and the receiving end of the second protocol layer feeds back the receiving condition of n data packets within the fixed time interval, because the number of the messages contained in the n data packets is greater than that of the n messages, it can be inferred that the number of the messages contained in the acknowledgement information fed back by the receiving end of the second protocol layer is greater than that contained in the acknowledgement information fed back by the receiving end of the first protocol layer within the same time. If the receiving end of the second protocol layer does not successfully receive the n data packets, if retransmission is performed according to the acknowledgement information fed back by the receiving end of the second protocol layer, the n data packets can be retransmitted in batch; if it is necessary to perform feedback of acknowledgment information on all packets included in the n packets by the receiving end of the first protocol layer, and then perform retransmission according to the acknowledgment information, it can be known based on the previous inference that the receiving end of the first protocol layer cannot perform feedback on all packets of the n packets within a single fixed time interval (at least two fixed time intervals are required), and thus, for example, the time taken for retransmission of all packets of the n packets by the acknowledgment information fed back by the receiving end based on the first protocol layer may be longer than the time taken for retransmission of all packets of the n packets by the acknowledgment information fed back by the receiving end based on the second protocol layer (at least one fixed time interval is longer), and thus, it can be seen that the acknowledgment information fed back by the receiving end of the second protocol layer can more affect the overall retransmission efficiency of the protocol layer.
However, because the information fed back by the receiving end of the protocol layer is subjected to a virtual solution in some cases, the virtual solution of the feedback information means that the acknowledgement information fed back by the receiving end and unsuccessfully received the data packet/message is analyzed into the data packet/message fed back and received by the receiving end during detection, so that the transmitting end unsuccessfully retransmits a certain data packet/message, if the situation occurs in a lower second protocol layer, for example, the acknowledgement information fed back by the receiving end of the second protocol layer is subjected to a virtual solution into the successful reception of a certain data packet, the transmitting end of the second protocol layer deletes the backup of the certain data packet, so that all the messages in the certain data packet are lost or unsuccessfully received, in this case, the prior art can only rely on the receiving end of the first protocol layer to feed back all the lost messages and retransmit them by the transmitting end of the first protocol layer, however, as can be seen from the above inference, it takes a long time to feedback and retransmit all lost packets only by means of the first protocol layer, which greatly reduces the retransmission efficiency, and therefore, it is necessary to improve the situation that the acknowledgement information fed back by the second protocol layer is falsely solved.
In the method provided in this embodiment, the first packet refers to any one of all the packets, and the following method can be applied to any packet, and is collectively referred to as the first packet in the embodiment.
The sender of the first protocol layer performs step S01: sending a plurality of messages at least comprising a first message to a second protocol layer; and specifically to the transmitting end of the second protocol layer.
The sender of the second protocol layer performs step T11: receiving a plurality of messages at least including a first message, packaging the plurality of messages including the first message into a data packet, and executing the step T12: transmitting the encapsulated data packet to a receiving end of a second protocol layer; the receiving end of the second protocol layer receives the data transmitted by the transmitting end of the second protocol layer, feeds back whether the second confirmation information of the data packet is received to the transmitting end of the second protocol layer, and transmits the analyzed message to the receiving end of the first protocol layer, and the transmitting end of the second protocol layer executes the step T13: receiving and analyzing second acknowledgement information of the data packet fed back by the receiving end of the second protocol layer, and when the second acknowledgement information is analyzed to indicate that the data packet is successfully received, executing step T2: mapping and recording all the analyzed messages in the successfully received data packet and the corresponding message identifiers to form a message mapping table, and mapping and recording each time when the receiving end of the second protocol layer feeds back whether the second confirmation information of the data packet is analyzed to be successfully received, so that the message mapping table records the corresponding relation between all the messages contained in the successfully received data packet and the identifier of the messages when the second confirmation information of the receiving end feedback data packet of all the second protocol layers is analyzed; after the message mapping table is formed, the message mapping table is sent to the sending end of the first protocol layer, or the sending end/the receiving end of the first protocol layer can both obtain the message mapping table in a sharing manner. Specifically, the data structure of the message mapping table may be a table, a group, a stack, and the like, and the type of the data structure is not limited here; in step T13, when the second acknowledgement information is analyzed to indicate that the data packet was not successfully received, step T3 is performed: and retransmitting the data packet which is indicated by the second confirmation information and is not successfully received to the receiving end of the second protocol layer.
After receiving the message transmitted by the receiving end of the second protocol layer, the receiving end of the first protocol layer feeds back the confirmation information of whether the first message is received to the sending end of the first protocol layer; the sender of the first protocol layer performs step S01: receiving a message mapping table transmitted by a transmitting end of a second protocol layer; step S1 is executed: detecting first confirmation information of the first packet fed back by the receiving end of the first protocol layer, and when the first confirmation information fed back by the receiving end of the first protocol layer indicates that the first packet is successfully received, executing step S3: the first message is not retransmitted and deleted; when the first acknowledgement information fed back by the receiving end of the first protocol layer indicates that the first packet is not successfully received, step S2 is executed: detecting whether the received second protocol layer message mapping table includes the first message, because the message mapping table is a mapping set of all messages and corresponding message identifiers in the data packets successfully received at the receiving end of the second protocol layer, that is, records the messages corresponding to all the successfully received data packets, if the first message is not included, it indirectly indicates that the second acknowledgment information of the data packet including the first message fed back by the receiving end of the second protocol layer is not virtually solved by the sending end of the second protocol layer, and execute step S4: directly resending the first message which is not successfully received to a receiving end of a first protocol layer; in step S2, if it is detected that the message mapping table includes the first message, the step S5 is executed if it indirectly indicates that the receiving end of the second protocol layer feeds back the second acknowledgment information of the data packet including the first message, where the second acknowledgment information is virtually solved by the sending end of the second protocol layer, that is, the receiving end of the second protocol layer originally did not successfully receive the data packet including the first message, but the receiving end of the second protocol layer virtually solves the data packet including the first message as a successful receipt in step T13, and therefore the sending end of the second protocol layer does not execute step T3 to retransmit the data packet including the first message, which results in that the first acknowledgment information of the first message fed back by the receiving end of the first protocol layer indicates that the first message is not successfully received: and directly retransmitting all messages in the data packet of which the second confirmation information is virtually decoded in batches to the receiving end of the first protocol layer, so that the problem of low retransmission efficiency caused by the fact that the second confirmation information fed back by the receiving end of the second protocol layer is virtually decoded by the sending end of the second protocol layer is solved.
Specifically, the first acknowledgement information fed back by the receiving end of the first protocol layer is generally NACK or ACK, and similarly, the second acknowledgement information fed back by the receiving end of the second protocol layer is also generally NACK or ACK, where NACK indicates that the message/data packet is not successfully received, ACK indicates that the message/data packet is successfully received, and the indication manner and the indication meaning of NACK or ACK are applicable to the acknowledgement information of all data packets/messages. The identifier of the first message or any message refers to characters for distinguishing different messages, and for example, the identifier may use more general characters for distinguishing, such as a serial number of a message, i.e., an SN number, but other characters for distinguishing may be applicable to the method, and are not limited herein.
Specifically, as shown in fig. 5, the specific execution process of step S2 is as follows:
s21: searching for a first identifier of the first message which is not successfully received and is indicated by the first confirmation information in the step S1;
s22: detecting whether a message mapping table contains a first identifier of the first message: if not, go to step S4; if yes, go to step S5.
Since all records in the message mapping table formed by the sending end of the second protocol layer are mapping relationships between messages and message identifiers, the sending end of the first protocol layer executes step S21 when determining whether the message mapping table includes the first message: first, the first identifier of the first message that is not successfully received is determined, and step S22 is executed: detecting whether the message mapping table includes the first identifier of the first message, if not, executing step S4: directly sending the first message to a receiving end of a first protocol layer; if yes, it indirectly indicates that the second acknowledgment information of the feedback packet at the receiving end of the second protocol layer is decoded virtually, and step S5 is executed: and directly retransmitting all the messages in the false data packets in batches to a receiving end of the first protocol layer.
The method provided by this embodiment utilizes the first acknowledgment information whether the receiving end of the first protocol layer feedbacks the first packet to check whether the receiving end of the second protocol layer feedbacks the detection and analysis condition of the second acknowledgment information of the data packet containing the first packet, and directly resends all the packets of the data packet subjected to virtual decoding to the receiving end of the first protocol layer in batch when checking whether the receiving end of the second protocol layer feedbacks the second acknowledgment information of the data packet containing the first packet is decoded virtually by the transmitting end of the second protocol layer, wherein the packets include the first packet, thereby improving the retransmission efficiency of the whole data and the transmission efficiency.
Specifically, the method provided in this embodiment may be applied to optimize data retransmission of an MAC layer and an RLC layer in a general TCP/IP protocol stack, where the RLC layer is an upper protocol layer of the MAC layer, and thus the RLC layer corresponds to a first protocol layer and the MAC layer corresponds to a second protocol layer, the method execution main body of steps S1 to S5 is an RLC layer sending end, and the method execution main body of steps T1 to T3 is an MAC layer sending end. When the method is applied to the RLC layer and the MAC layer, the whole data transmission process is as follows:
the RLC layer transmitting end performs step S01: sending a plurality of RLC messages at least comprising a first RLC message to an MAC layer; and specifically to the transmitting end of the MAC layer.
The MAC sender performs step T11: receiving a plurality of RLC packets including at least a first RLC packet, encapsulating the plurality of RLC packets into an MAC packet, and executing step T12: transmitting the packaged MAC data packet to an MAC layer receiving end; the MAC layer receiving end receives the data transmitted by the MAC layer transmitting end, feeds back whether second confirmation information of the MAC data packet is received or not to the MAC layer transmitting end, and transmits the analyzed RLC message to the RLC layer receiving end; the MAC layer sender performs step T13: receiving and analyzing the second acknowledgement information of the data packet fed back by the MAC layer receiving end, and when the second acknowledgement information of the MAC layer receiving end is analyzed to be ACK, executing step T2: mapping and recording all messages in the data packet analyzed as ACK and corresponding message identifiers to form a message mapping table, and sharing or sending the message mapping table to an RLC layer sending end; when the second acknowledgement information of the MAC layer receiving end is NACK, step T3 is executed: and retransmitting the data packet analyzed as NACK by the second confirmation information to the MAC receiving end.
Meanwhile, the MAC layer receiving end analyzes the actually received data packet and transmits the message obtained by analysis to the RLC layer receiving end, and the RLC layer receiving end feeds back first confirmation information whether the first RLC message is received or not to the RLC layer transmitting end; the RLC layer transmitting end performs step S01: receiving or acquiring a message mapping table transmitted or shared by a transmitting end of an MAC layer; step S1 is executed: detecting first confirmation information of the first RLC message fed back by the RLC layer receiving end, and when the first confirmation information of the first RLC message fed back by the RLC layer receiving end is ACK, executing step S3: the first RLC message is not retransmitted and deleted; when the first acknowledgement information of the first RLC packet fed back by the RLC layer receiving end is NACK, step S21 is executed: searching the SN number of the first RLC message; step S22 is executed: detecting whether the message mapping table contains the SN number of the first RLC message, wherein the message mapping table is a mapping set of all RLC messages and SN numbers of corresponding RLC messages in the MAC data packet successfully received by the MAC layer receiving end, that is, recording the RLC messages corresponding to all successfully received MAC data packets, so that if the SN number of the first RLC message is detected not to be contained in the message mapping table, the step S4 is executed to indirectly indicate that the second acknowledgement information fed back by the MAC layer receiving end is not virtually decoded by the MAC layer transmitting end: directly resending the first RLC message which is not successfully received to an RLC layer receiving end; if so, the second acknowledgement information indirectly indicating that the MAC packet fed back by the MAC layer receiving end is NACK, which is actually decoded as ACK by the MAC layer transmitting end in step T13, that is, the MAC layer receiving end originally did not successfully receive the MAC packet including the first RLC packet, but was decoded as successfully received by the MAC layer transmitting end, so that the MAC layer transmitting end does not perform step T3 to retransmit the MAC packet, which results in that the first acknowledgement information of the first RLC packet fed back by the RLC layer receiving end is NACK, then step S5 is performed: and directly retransmitting all the RLC messages in the false MAC data packets in batches to an RLC layer receiving end, wherein the RLC messages comprise the first RLC message.
For example, a MAC packet with specific SN number and RLC packets are exemplified, where six RLC-SN:7/8/9/10/11/12 RLC packets are encapsulated in one MAC-SN:5 packet, and if the RLC layer transmitting end detects that the first acknowledgement information of RLC-SN:7 is NACK in the RLC status report fed back by the RLC layer receiving end, and if the MAC layer transmitting end parses the second acknowledgement information of MAC-SN:5 as ACK, it indicates that MAC-SN:5 and the RLC-SN:7/8/9/10/11/12 included in the MAC-SN:5 are recorded in the packet mapping table, so that RLC-SN:7 can be matched in the packet mapping table, thereby indicating that the second acknowledgement information of MAC-SN:5 is virtually resolved by the MAC layer transmitting end, and therefore all RLC packets in MAC-SN:5 need to be retransmitted in bulk to the RLC layer receiving end, namely, the six RLC messages of the RLC-SN:7/8/9/10/11/12 are retransmitted in batches, so that the efficiency of the overall retransmission and data transmission is improved.
Based on the same idea as the data retransmission method applied to the transmitting end of the first protocol layer, the present embodiment further provides a data retransmission apparatus, which can be used to execute the data retransmission method applied to the transmitting end of the first protocol layer.
As shown in fig. 6, the apparatus includes: a first data detection module 100, configured to detect first acknowledgement information of a first packet fed back by a receiving end of a first protocol layer;
a second data detection module 200, configured to detect whether the first packet is included in the packet mapping table when the first acknowledgment information fed back by the receiving end of the first protocol layer detected by the first data detection module indicates that the first packet is not successfully received;
a data retransmission module 300, configured to retransmit the first packet to the receiving end of the first protocol layer when the second data detection module detects that the packet mapping table does not include the first packet; the second data detection module is further configured to, when detecting that the packet mapping table includes the first packet, retransmit all packets in a packet including the first packet in the packet mapping table to a receiving end of the first protocol layer;
the first protocol layer is an upper protocol layer of the second protocol layer, and the message mapping table is a mapping set of all messages and corresponding message identifiers in the successfully received data packet analyzed in the second protocol layer.
Specifically, the second data detection module is configured to detect whether the packet mapping table includes the first packet, including: the second data detection module is used for searching a first identifier of the first message; and detecting whether the message mapping table contains the first identifier.
Specifically, the apparatus further comprises: the data transmission module 400 is configured to send a plurality of messages at least including the first message to the second protocol layer, specifically to a sending end of the second protocol layer.
Specifically, the message mapping table is formed by the sending end of the second protocol layer, which specifically refers to steps T1 to T3 of the data retransmission method.
In the above embodiment of the data retransmission apparatus, the logical division of the functional modules is only used as an example, and in practical applications, the above functions may be allocated to different functional modules according to needs, for example, due to the configuration requirements of hardware or the realization of software, that is, the internal structure of the data retransmission apparatus may be divided into functional modules different from the above, but all the functions described above can be completed. Next, the contents of information interaction, execution process, and the like between the modules of the data retransmission apparatus in the above example are based on the same concept as the data retransmission method applied to the transmitting end of the first protocol layer in the present embodiment, and the principle and technical effect thereof are the same as the data retransmission method applied to the transmitting end of the first protocol layer, and specific contents can be referred to the description of the method implementation and are not described herein again.
Based on the same idea as the data retransmission method applied to the transmitting end of the first protocol layer, this embodiment further provides another data retransmission method applied to the receiving end of the first protocol layer, as shown in fig. 7, the steps include:
q1: feeding back first confirmation information of the first message to a data sending end of a first protocol layer; judging whether the first confirmation information indicates that the first message is not successfully received, if so, executing a step Q2; if not, executing the step Q5;
q2: detecting whether the first message is included in a message mapping table; if not, go to step Q3; if the first message is included, executing the step Q4;
q3: receiving a retransmission message of the first message;
q4: receiving retransmission messages of all messages in a message mapping table, wherein the retransmission messages comprise all the messages in the data packet of the first message;
q5: no operation is performed;
the first protocol layer is an upper protocol layer of the second protocol layer, and the message mapping table is a mapping set of all messages and corresponding message identifiers in a successfully received data packet analyzed in the second protocol layer, specifically formed by a sending end of the second protocol layer, specifically see T1-T3 of the data retransmission method applied to the sending end of the first protocol layer.
The method is applicable to a receiving end of a first protocol layer, a main body of the receiving end of the protocol layer may be any applicable communication device such as a base station, a server or a terminal, and because the data processing method applied to the receiving end of the first protocol layer and the data processing method applied to the transmitting end of the first protocol layer are based on the same idea, the effect and principle of the method have been discussed in the foregoing data processing method applied to the transmitting end of the first protocol layer, which is not described herein again, and the data processing method applied to the receiving end of the first protocol layer can also be applied to optimizing data retransmission of an MAC layer and an RLC layer in a general TCP/IP protocol stack, and an execution main body of steps Q1 to Q5 of the method is the receiving end of the RLC layer.
Based on the above data retransmission method applied to the receiving end of the first protocol layer, this embodiment further provides a data retransmission apparatus, as shown in fig. 8, including:
a feedback module 10, configured to feed back first acknowledgement information of the first packet to a sending end of the first protocol layer;
the first detecting module 20 is configured to detect whether the first packet is included in the packet mapping table when the first confirmation information of the first packet fed back by the feedback module 10 indicates that the first packet is not successfully received;
a data receiving module 30, configured to receive a retransmission packet of the first packet when the first detecting module 20 detects that the packet mapping table does not include the first packet; the first detection module 20 is further configured to receive a retransmission packet of all packets in a data packet including the first packet in the packet mapping table when detecting that the first packet is included in the packet mapping table;
the first protocol layer is an upper protocol layer of the second protocol layer, and the message mapping table is a mapping set of all messages and corresponding message identifiers in a successfully received data packet analyzed by the second protocol layer, specifically formed by a sending end of the second protocol layer, specifically see T1-T2 of the data retransmission method applied to the sending end of the first protocol layer.
In the above embodiment of the data retransmission apparatus, the logical division of the functional modules is only used as an example, and in practical applications, the above functions may be allocated to different functional modules according to needs, for example, due to the configuration requirements of hardware or the realization of software, that is, the internal structure of the data retransmission apparatus may be divided into functional modules different from the above, but all the functions described above can be completed. Next, the contents of information interaction, execution process, etc. between the modules of the data retransmission apparatus in the above example are based on the same concept as the data processing method applied to the receiving end of the first protocol layer in the present embodiment, and the principle and technical effect thereof are the same as the data processing method applied to the receiving end of the first protocol layer, and specific contents can be referred to the description of the method implementation and are not described herein again.
The embodiment also provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements any one of the above data retransmission methods when executing the computer program.
The present embodiment also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements any of the above-described data retransmission methods.
It should be understood that the above-mentioned embodiments of the present invention are only examples for clearly illustrating the technical solutions of the present invention, and are not intended to limit the specific embodiments of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention claims should be included in the protection scope of the present invention claims.

Claims (11)

1. A data retransmission method is applied to a sending end of a first protocol layer, and comprises the following steps:
detecting first confirmation information of a first message fed back by a receiving end of a first protocol layer;
when first confirmation information fed back by a receiving end of the first protocol layer indicates that the first message is not successfully received, detecting whether a message mapping table comprises the first message or not;
if the first message is not included, retransmitting the first message to a receiving end of the first protocol layer;
if the first message is included, retransmitting all messages in the data packet including the first message in the message mapping table to a receiving end of the first protocol layer;
the first protocol layer is an upper protocol layer of a second protocol layer, and the message mapping table is a mapping set of all messages and corresponding message identifiers in a successfully received data packet analyzed in the second protocol layer.
2. The method according to claim 1, wherein the detecting whether the first packet is included in the packet mapping table comprises:
searching a first identifier of the first message;
and detecting whether the message mapping table contains the first identifier.
3. The data retransmission method according to claim 1, wherein before the detecting the first acknowledgement information fed back by the receiving end of the first protocol layer, the method comprises:
sending a plurality of messages including at least the first message to the second protocol layer.
4. The data retransmission method according to claim 1, characterized in that:
and the message mapping table is formed by the sending end of the second protocol layer through detecting and analyzing second confirmation information of the data packet fed back by the receiving end of the second protocol layer, and mapping and recording all the analyzed messages in the successfully received data packet and corresponding message identifiers when the analyzed second confirmation information fed back by the receiving end of the second protocol layer indicates that the data packet is successfully received.
5. The data retransmission method according to claim 4, characterized in that: the detecting and analyzing of the second confirmation information of the data packet fed back by the receiving end of the second protocol layer by the sending end of the second protocol layer includes:
a sending end of the second protocol layer receives a plurality of messages at least comprising the first message and encapsulates the plurality of messages at least comprising the first message into the data packet;
sending the encapsulated data packet to a receiving end of the second protocol layer;
and receiving and analyzing second confirmation information of the data packet fed back by the receiving end of the second protocol layer.
6. The method according to claim 3, wherein after sending the plurality of packets including at least the first packet to the second protocol layer, the method further comprises:
and receiving the message mapping table sent by the second protocol layer.
7. A data retransmission apparatus, comprising:
the first data detection module is used for detecting first confirmation information of a first message fed back by a receiving end of a first protocol layer;
a second data detection module, configured to detect whether a packet mapping table includes the first packet when first acknowledgement information fed back by the receiving end of the first protocol layer, detected by the first data detection module, indicates that the first packet is not successfully received;
a data retransmission module, configured to retransmit the first packet to a receiving end of the first protocol layer when the second data detection module detects that the packet mapping table does not include the first packet; the second data detection module is further configured to, when detecting that the packet mapping table includes the first packet, retransmit all packets in a packet including the first packet in the packet mapping table to a receiving end of the first protocol layer;
the first protocol layer is an upper protocol layer of a second protocol layer, and the message mapping table is a mapping set of all messages and corresponding message identifiers in a successfully received data packet analyzed in the second protocol layer.
8. A data retransmission method is applied to a receiving end of a first protocol layer, and comprises the following steps:
feeding back first confirmation information of the first message to a sending end of the first protocol layer; if the first confirmation information indicates that the first message is not successfully received, detecting whether a message mapping table comprises the first message or not;
if the first message is not included, receiving a retransmission message of the first message;
if the first message is included, receiving retransmission messages of all messages in the data packet of the first message included in the message mapping table;
the first protocol layer is an upper protocol layer of a second protocol layer, and the message mapping table is a mapping set of all messages and corresponding message identifiers in a successfully received data packet analyzed in the second protocol layer.
9. A data retransmission apparatus, comprising:
the feedback module is used for feeding back the confirmation information of the first message to the sending end of the first protocol layer;
the first detection module is used for detecting whether the first message is included in a message mapping table or not when the confirmation information of the first message fed back by the feedback module indicates that the first message is not successfully received;
a data receiving module, configured to receive a retransmission packet of the first packet when the first detection module detects that the packet mapping table does not include the first packet; the first detection module is further configured to receive a retransmission packet of all packets in a data packet including the first packet in the packet mapping table when the first detection module detects that the packet mapping table includes the first packet;
the first protocol layer is an upper protocol layer of a second protocol layer, and the message mapping table is a mapping set of all messages and corresponding message identifiers in a successfully received data packet analyzed in the second protocol layer.
10. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the data retransmission method according to any one of claims 1 to 6, or the data retransmission method according to claim 8.
11. A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the data retransmission method according to any one of claims 1 to 6, or the data retransmission method according to claim 8.
CN202011621799.8A 2020-12-31 2020-12-31 Data retransmission method, device, equipment and storage medium Active CN112865933B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011621799.8A CN112865933B (en) 2020-12-31 2020-12-31 Data retransmission method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011621799.8A CN112865933B (en) 2020-12-31 2020-12-31 Data retransmission method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112865933A CN112865933A (en) 2021-05-28
CN112865933B true CN112865933B (en) 2022-05-31

Family

ID=75999162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011621799.8A Active CN112865933B (en) 2020-12-31 2020-12-31 Data retransmission method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112865933B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009537A (en) * 2006-01-26 2007-08-01 华为技术有限公司 A data retransfer method and system
CN101150453A (en) * 2006-09-22 2008-03-26 中兴通讯股份有限公司 Processing method for error detection of mixed automatic retransfer request entities
CN107659558A (en) * 2017-08-22 2018-02-02 上海华为技术有限公司 A kind of data transmission method and base station

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009538B (en) * 2006-01-26 2011-10-05 华为技术有限公司 A data retransfer method and device
EP3959922B1 (en) * 2019-05-31 2023-10-25 Samsung Electronics Co., Ltd. Method and user equipment apparatus for optimizing radio resource for urllc services in dual connectivity technology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009537A (en) * 2006-01-26 2007-08-01 华为技术有限公司 A data retransfer method and system
CN101150453A (en) * 2006-09-22 2008-03-26 中兴通讯股份有限公司 Processing method for error detection of mixed automatic retransfer request entities
CN107659558A (en) * 2017-08-22 2018-02-02 上海华为技术有限公司 A kind of data transmission method and base station

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
R2-073334 "RLC data loss detection and status trigger";HUAWEI;《3GPP tsg_ran\WG2_RL2》;20070815;全文 *

Also Published As

Publication number Publication date
CN112865933A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
US11849017B2 (en) Protocol synchronization for HARQ
CN102045132B (en) Retransmission mechanism-based method and device for transmitting header compression data packet
CN101176292B (en) Method and apparatus for improving data transmission reliability in a wireless communications system
US8402335B2 (en) Status report messages for multi-layer ARQ protocol
KR100431228B1 (en) Concatenated error detection coding and packet numbering for hierarchical arq schemes
KR101532789B1 (en) Harq operation method for retransmitted data
CN108631954B (en) Data transmission method and device
US9871625B2 (en) Status reporting for retransmission protocol
US20090307553A1 (en) Radio communication apparatus and method used in mobile communication system
EP1580916B1 (en) System and method for transmitting units of messages in a mobile communication system
US11297529B2 (en) Toggling based indicator of reception success
CN112865933B (en) Data retransmission method, device, equipment and storage medium
CN112865931B (en) Data retransmission processing method, device, equipment and readable storage medium
EP3672189B1 (en) Data transmission method, device and system
CN101217346A (en) An AM mode state feedback method and system
JPH1070523A (en) Method and equipment for packet transmission
WO2010025679A1 (en) Method for processing abnormality during the radio link control data block transmission
JP2012195836A (en) Communication device and communication control method in data communication system
WO2012040720A1 (en) Techniques utilizing arq feedback for efficient transmitter buffer usage
US9154269B2 (en) Method for operating a remote procedure call handler in a client and a server and computer system comprising the same
WO2023014517A1 (en) Direct access to storage device via switch data plane
CN117978750A (en) State sensing transmission method for weak link and electronic equipment
CN117979358A (en) Wireless transmission method, storage medium and processing equipment based on multiple CRC values
CN112584534A (en) Data transmission method, base station, terminal, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant