Data packet retransmission method, device, equipment, medium and program product

By sending the first message based on the cumulative reception time and number of preset conditions between devices to indicate the lost data packets, the problem of low bandwidth utilization caused by retransmission timeout and sliding window size setting in the prior art is solved, and the bandwidth utilization problem is achieved More efficient network transmission and resource utilization.

CN119011094AActive Publication Date: 2024-11-22CHINA MOBILE COMM LTD RES INST +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411099113.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-22
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

The existing packet loss retransmission mechanism relies on the settings of retransmission timeout and sliding window size, resulting in low network bandwidth resource utilization and insufficient throughput.

Method used

By sending the first message between devices and indicating the lost data packets based on the cumulative reception time and number of preset conditions, packet retransmission is realized, sliding window size limitation is removed, and the utilization rate of network bandwidth resources is improved.

Benefits of technology

It effectively improves the throughput of network transmission and the utilization rate of bandwidth resources, and reduces unnecessary retransmission and waste of network resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011094A_ABST
    Figure CN119011094A_ABST
Patent Text Reader

Abstract

The invention discloses a data packet retransmission method, device and equipment, a medium and a program product, and relates to the technical field of communication, the method is applied to first equipment, and the method specifically comprises the following steps: sending a first message to second equipment based on whether a preset condition is satisfied, the preset condition is associated with at least one of cumulative receiving time and cumulative receiving quantity of data packets received from the second equipment, and the first message is used for indicating lost data packets; and receiving a to-be-retransmitted data packet sent by the second device, wherein the to-be-retransmitted data packet comprises the data packet indicated by the first message. According to the embodiment of the invention, the problem that the utilization rate of network bandwidth resources in a packet loss retransmission process is reduced due to the influence of RTO setting accuracy or window sliding size setting accuracy on data packet sending can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a data packet retransmission method, device, equipment, medium and program product. Background Art

[0002] In the related art, mechanisms such as timeout retransmission, fast retransmission and selective acknowledgement (SACK) are usually used for packet loss retransmission. Since the implementation of various packet loss retransmission mechanisms depends on the setting of retransmission timeout (RTO) or sliding window size, the packet loss retransmission process is easily affected by the accuracy of RTO setting or window sliding size setting, which can reduce the utilization rate of network bandwidth resources. Summary of the invention

[0003] In order to solve the problem that the existing packet loss retransmission process easily reduces the utilization rate of network bandwidth resources, the embodiments of the present application provide a data packet retransmission method, device, equipment, medium and program product, which can effectively improve the throughput of network transmission and improve the utilization rate of network bandwidth resources.

[0004] In a first aspect, an embodiment of the present application provides a data packet retransmission method, which is applied to a first device, and the method includes:

[0005] Sending a first message to the second device based on whether a preset condition is met, wherein the preset condition is associated with at least one of a cumulative reception time and a cumulative reception quantity of data packets received from the second device, and the first message is used to indicate a lost data packet;

[0006] Receive a retransmitted data packet sent by the second device, where the retransmitted data packet includes the data packet indicated by the first message.

[0007] Optionally, the sending the first message to the second device based on whether a preset condition is met includes:

[0008] According to the data packet sending rate of the second device, a cumulative receiving time threshold and a cumulative receiving quantity threshold are set;

[0009] When the preset condition is met, sending the first message to the second device;

[0010] Wherein, the preset condition is met, including any one of the following:

[0011] The accumulated receiving time of the data packets sent by the second device continuously reaches the accumulated receiving time threshold;

[0012] The cumulative number of data packets continuously received from the second device is greater than or equal to the cumulative number of data packets threshold.

[0013] Optionally, the first message includes an acknowledgment ACK message, where the ACK message is a message obtained by adding a target fragment to a message in an RDMA format;

[0014] The target segment is used to store the serial number of the received data packet.

[0015] Optionally, the target segment further includes the number of confirmation segments of the received data packet, and one confirmation segment corresponds to one time period;

[0016] In the case where the number of the confirmation segments is greater than 1, the target segment includes first number information of data packets received in a first time period and second number information of at least one data packet received in a second time period, the first time period being earlier than the second time period;

[0017] In a case where the number of the confirmation segments is equal to 1, the target segment includes first number information of data packets received in a first time period.

[0018] Optionally, the first numbering information includes a first number of a data packet that ends receiving within the first time period;

[0019] The second numbering information includes a second number of a data packet initially received and a third number of a data packet finally received within the second time period.

[0020] In a second aspect, an embodiment of the present application further provides a data packet retransmission method, which is applied to a second device, and the method includes:

[0021] receiving a first message sent by a first device based on whether a preset condition is satisfied, wherein the preset condition is associated with at least one of a cumulative reception time and a cumulative reception quantity of data packets received by the first device, and the first message is used to indicate a lost data packet;

[0022] Determine a data packet to be retransmitted, where the data packet to be retransmitted includes the data packet indicated by the first message;

[0023] Send the data packet to be retransmitted to the first device.

[0024] Optionally, the first message includes an acknowledgment ACK message, where the ACK message is a message obtained by adding a target fragment to a message in an RDMA format;

[0025] The target segment is used to store the serial number of the received data packet.

[0026] Optionally, the target segment further includes the number of confirmation segments of the received data packet, and one confirmation segment corresponds to one time period;

[0027] The step of determining the data packet to be retransmitted comprises:

[0028] In the case where the number of the confirmation segments is greater than 1, the data packet to be retransmitted is determined based on the first numbering information and at least one second numbering information stored in the target segment; wherein the first numbering information is information of the data packet received in the first time period, the second numbering information is information of the data packet received in the second time period, and the first time period is earlier than the second time period;

[0029] When the number of confirmation segments is equal to 1 and the maximum number of the data packet in the first numbering information is less than the preset number, the data packet to be retransmitted is determined to be a data packet with a number greater than the maximum number and less than or equal to the preset number.

[0030] Optionally, the first numbering information includes a first number of a data packet that ends receiving within the first time period;

[0031] The second numbering information includes the second number of the data packet initially received and the third number of the data packet finally received within the second time period;

[0032] The step of determining the data packet to be retransmitted based on the first numbering information and at least one second numbering information stored in the target segment when the number of the confirmation segments is greater than 1 includes:

[0033] Based on the first number information and the second number information, determine that the data packet to be retransmitted is a data packet with a number set between the first number and the second number, and a data packet with a number set between the third number and the fourth number;

[0034] The fourth number is the number of the data packet initially received within the next second time period.

[0035] Optionally, the method further comprises:

[0036] When a data packet with a preset number is sent to the first device and the first message is not received after a preset time, the data packet with the preset number is retransmitted to the first device.

[0037] In a third aspect, an embodiment of the present application provides a data packet retransmission device, which is applied to a first device, and the device includes:

[0038] a first sending module, configured to send a first message to a second device based on whether a preset condition is met, wherein the preset condition is associated with at least one of a cumulative receiving time and a cumulative receiving quantity of data packets received from the second device, and the first message is used to indicate a lost data packet;

[0039] The first receiving module is used to receive a retransmitted data packet sent by the second device, where the retransmitted data packet includes the data packet indicated by the first message.

[0040] In a fourth aspect, an embodiment of the present application further provides a data packet retransmission device, which is applied to a second device, and the device includes:

[0041] A second receiving module, configured to receive a first message sent by a first device based on whether a preset condition is satisfied, wherein the preset condition is associated with at least one of a cumulative receiving time and a cumulative receiving quantity of data packets received by the first device, and the first message is used to indicate a lost data packet;

[0042] A determination module, used to determine a data packet to be retransmitted, wherein the data packet to be retransmitted includes a data packet indicated by the first message;

[0043] The second sending module is used to send the data packet to be retransmitted to the first device.

[0044] In a fifth aspect, an embodiment of the present application provides a first device, comprising: a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor; the transceiver is configured to:

[0045] Sending a first message to the second device based on whether a preset condition is met, wherein the preset condition is associated with at least one of a cumulative reception time and a cumulative reception quantity of data packets received from the second device, and the first message is used to indicate a lost data packet;

[0046] Receive a retransmitted data packet sent by the second device, where the retransmitted data packet includes the data packet indicated by the first message.

[0047] In a sixth aspect, an embodiment of the present application further provides a second device, comprising: a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor; the transceiver is used to:

[0048] receiving a first message sent by a first device based on whether a preset condition is satisfied, wherein the preset condition is associated with at least one of a cumulative reception time and a cumulative reception quantity of data packets received by the first device, and the first message is used to indicate a lost data packet;

[0049] The processor is used to:

[0050] Determine a data packet to be retransmitted, where the data packet to be retransmitted includes the data packet indicated by the first message;

[0051] The transceiver is used for:

[0052] Send the data packet to be retransmitted to the first device.

[0053] In the seventh aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data packet retransmission method as described in any one of the first aspect or the second aspect are implemented.

[0054] In an eighth aspect, an embodiment of the present application further provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the data packet retransmission method as described in any one of the first aspect or the second aspect.

[0055] In a specific embodiment of the present application, the first device is set to send a first message indicating a lost data packet to the second device based on whether the preset adjustment is met. As a result, the first device receives the retransmitted data packet sent by the second device, and the retransmitted data packet includes the lost data packet indicated by the first message. In this way, the first device sends the first message to the second device according to the preset conditions, and the second device does not need to be limited by the sliding window size, and only sends the retransmitted data to the first device according to the first message, thereby solving the bandwidth consumption problem caused by the unreasonable setting of the sliding window size in the related technology, effectively improving the throughput of network transmission, and improving the utilization rate of network bandwidth resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application 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 paying any creative labor.

[0057] Figure 1 It is a schematic diagram of a SACK cumulative confirmation mechanism in the related art;

[0058] Figure 2 It is one of the flow charts of a data packet retransmission method in an embodiment of the present application;

[0059] Figure 3 is a schematic diagram of a SACK cumulative confirmation mechanism in an embodiment of the present application;

[0060] Figure 4It is a schematic diagram of the RDMA message format corresponding to the ACK message in the related art;

[0061] Figure 5 It is a schematic diagram of the RDMA message format corresponding to the ACK message in the embodiment of the present application;

[0062] Figure 6 yes Figure 5 An example diagram of the message format of the target fragment in FIG.

[0063] Figure 7 This is the second flowchart of the data packet retransmission method provided in the embodiment of the present application;

[0064] Figure 8 It is one of the flow charts of the data packet retransmission device provided in the embodiment of the present application;

[0065] Fig. 9 This is the second flowchart of the data packet retransmission device provided in the embodiment of the present application;

[0066] Fig.10 is a structural diagram of a first device provided in an embodiment of the present application;

[0067] Fig.11 It is a structural diagram of the second device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0068] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0069] In order to make the embodiments of the present application clearer, the relevant technical knowledge involved in the embodiments of the present application is first introduced as follows:

[0070] The packet loss retransmission mechanisms used in related technologies mainly include the following three types: timeout retransmission mechanism, fast retransmission mechanism and selective retransmission (SACK) mechanism. The timeout retransmission mechanism sets a time after sending data. If no acknowledgment (ACK) response is received after this time, the data packet is retransmitted (that is, data packet retransmission is performed regardless of whether the data packet is lost or the ACK response is lost). The RTO can be set to a value slightly larger than the round-trip time (RTT). Since the network is prone to fluctuations, the RTO is also a dynamically changing value.

[0071] The fast retransmit mechanism is that after the sender sends several messages, when the receiver receives multiple identical ACK messages, it will retransmit the lost message segments before the timer expires. The SACK mechanism adds a SACK part to the Transmission Control Protocol (TCP) header field. The SACK part can send the received data information to the sender, so that the sender can retransmit the lost data, which improves the efficiency of data retransmission to a certain extent.

[0072] In the above data retransmission mechanism, if Figure 1 As shown, Figure 1 This is a schematic diagram of a SACK cumulative confirmation mechanism in the related art. The sender sends a confirmation response every time it sends a piece of data. The sender sends the previous data packet and receives the response from the receiver before sending the next data packet, resulting in low network transmission efficiency. Therefore, TCP in the related art introduces a sliding window mechanism, which sets a window field in the TCP header to indicate the size of the space that can be used as an idle buffer to receive data. For the sender, the window field is used to subtract the length of the data that has not yet received the ACK response to determine the current data length that can be sent directly. After receiving the ACK packet, the sending window can continue to slide backward.

[0073] In addition, the packet loss retransmission mechanism used in the relevant technology also includes some innovative retransmission mechanisms used in a small range. For example, in a wireless software defined network (SDN), due to the shared nature of the medium, multiple network nodes will transmit on the same channel at the same time, resulting in conflicts, which will further cause the channel to send data packets and retransmit frames. When the packet loss rate is high, it will cause a large number of link retransmissions, resulting in network delays. At this time, a SDN network dynamic control method is adopted to collect network link information and network node information of the SDN network in real time, and the collected information is input into a trained random forest-based retransmission prediction model to obtain the retransmission information of each node in the SDN network, and then dynamically adjust the control information of the SDN network.

[0074] However, the packet loss retransmission mechanism in the related art often depends on the setting of RTO and window size. On the one hand, if the RTO is set too large, the sender will have to wait for a long time to find out that the message segment is lost, which reduces the throughput of the connection data transmission. On the other hand, if the RTO is set too small, although the sender can quickly detect the loss of the message segment, it may also mistake some message segments with large delays as lost, resulting in multiple retransmissions and wasting network resources. The size of the sliding window also has a great impact on network performance. If the sliding window is too small, it is necessary to frequently transmit confirmation information on the network, which will occupy a large amount of network bandwidth. If the sliding window is too large, for a network with high utilization and prone to packet loss, it is necessary to send repeated data multiple times, which also consumes network bandwidth.

[0075] Therefore, in order to meet the data transmission needs of wide-area high-throughput networks, improve network bandwidth utilization, increase the effective throughput of the network, and solve the problems that the go-back-N packet loss retransmission algorithm used in Remote Direct Memory Access (RDMA) is sensitive to packet loss, and the traditional SACK requires the receiving end to maintain a receiving window, the embodiments of the present application propose a data packet retransmission method, device, equipment, medium and program product.

[0076] In conjunction with the accompanying drawings, a data packet retransmission method, apparatus, device, medium and program product provided by the embodiments of the present application are described in detail through specific embodiments and their application scenarios.

[0077] See also Figure 2 , Figure 2 This is one of the flowcharts of a data packet retransmission method provided in an embodiment of the present application, which is specifically applied to a first device. The method includes the following steps:

[0078] Step 101: Send a first message to a second device based on whether a preset condition is met, wherein the preset condition is associated with at least one of a cumulative receiving time and a cumulative receiving number of data packets received from the second device, and the first message is used to indicate a lost data packet.

[0079] It should be noted that the first device in the embodiment of the present application can be a receiving device for receiving data information transmitted by the sender, including a terminal device, a network device, etc. The second device can be a sending device for sending data information to the first device, or it can be a terminal device, a network device, etc. This application does not limit this.

[0080] In a specific embodiment, the setting of the preset condition can be associated with at least one of the cumulative receiving time and the cumulative receiving number of the data packets, and the sending rate of the data packets sent by the second device, the cumulative receiving time and the cumulative receiving number of the data packets received by the first device are set according to the existing network environment and the size of the data file to be sent. For example, the first device calculates the cumulative receiving time or the cumulative receiving number of the data packets from the time the first device receives the first data packet. When the cumulative receiving time of the data packets received by the first device reaches the set time threshold, or when the cumulative receiving number of the data packets received by the first device reaches the number threshold, the first device sends a first message to the second device, and notifies the second device of the data packets lost during the previous data packet transmission process through the first message.

[0081] Since the second device sends data packets to the first device at a preset rate, in this way, when no data packet loss occurs, the number of data packets received by the first device within the cumulative receiving time is a certain value, or the time required for the first device for the cumulative number of data packets received to reach the quantity threshold is fixed. In one embodiment, if data packet loss occurs, the number of data packets received by the first device within the cumulative receiving time is less than a certain value, and the first device can determine that data packet loss exists, trigger the packet loss retransmission mechanism, and send the first message to the second device. In another embodiment, if data packet loss occurs, the time required for the first device's cumulative number of data packets received to reach the quantity threshold is greater than the fixed time value, and the first device can determine that data packet loss exists, trigger the packet loss retransmission mechanism, and send the first message to the second device.

[0082] It can be seen that in the embodiment of the present application, it is only necessary to set the preset conditions on the first device and the preset sending rate on the second device, and the first device can determine whether there is data packet loss in the data transmission process according to the cumulative receiving time or the cumulative receiving quantity, and send the first message to the second device in time to inform the second device of the lost data packet. This process removes the window limit (window-less), so that the second device does not need to be limited by the sliding window size, and can continue to send data packets to the first device at the preset sending rate, which solves the bandwidth consumption problem caused by the unreasonable setting of the sliding window size in the related technology, and can effectively improve the effective throughput of network transmission.

[0083] It is worth mentioning that the terminal device involved in the embodiment of the present application may be a device that provides voice and / or data connectivity to a user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem. In different systems, the name of the terminal device may also be different. For example, in a 5G system or a 6G system, the terminal device may be called a user equipment (UE). The wireless terminal device may be a USB storage device, other personal computer memory devices, and a dongle. It may also communicate with one or more core networks (CN) via a radio access network (RAN). The wireless terminal device may be a mobile terminal device, such as a mobile phone (or "cellular" phone) and a computer with a mobile terminal device. For example, it may be a portable, pocket-sized, handheld, computer-built-in, or vehicle-mounted mobile device that exchanges language and / or data with a radio access network. For example, Personal Communication Service (PCS) phones, cordless phones, Session Initiated Protocol (SIP) phones, Wireless Local Loop (WLL) stations, Personal Digital Assistants (PDA), personal computers, tablet computers, Machine-type Communication (MTC) terminal devices, etc. Wireless terminal devices may also be referred to as systems, subscriber units, subscriber stations, mobile stations, mobile stations, remote stations, access points, remote terminal devices, access terminal devices, user terminal devices, user agents, user devices, and wireless access points and routers / modems that meet the limitations of this definition, etc., which are not limited in the embodiments of the present application.

[0084] The network device involved in the embodiment of the present application may be a base station, which may include multiple cells providing services to the terminal. Depending on the specific application scenario, the base station may also be called an access point, or may be a device in the access network that communicates with the wireless terminal device through one or more sectors on the air interface, or other names. The network device may be used to replace the received air frame with the Internet Protocol (IP) packet, as a router between the wireless terminal device and the rest of the access network, wherein the rest of the access network may include an Internet Protocol (IP) communication network. The network device may also coordinate the attribute management of the air interface. For example, the network device involved in the embodiment of the present application may be an evolutionary network device (evolutional Node B, eNB or e-NodeB) in the long term evolution (LTE) system, a 5G base station (gNB) in the 5G network architecture (next generation system), etc., or a home evolved Node B (HeNB), a relay node, a home base station (femto), a pico base station (pico), a network test device, etc., which is not limited in the embodiment of the present application. In some network structures, the network devices may include centralized unit (CU) nodes and distributed unit (DU) nodes, and the centralized unit and the distributed unit may also be arranged geographically separately.

[0085] Step 102: Receive a retransmitted data packet sent by the second device, where the retransmitted data packet includes the data packet indicated by the first message.

[0086] It is understandable that the retransmitted data packet sent by the second device to the first device can be determined based on the first message. After receiving the first message, the second device can determine the data packet to be retransmitted based on the sequence number of the lost data packet indicated by the first message. In this process, the second device continues to send data packets to the first device at a preset sending rate. The first device continues to receive data packets within the range before the cumulative confirmation time reaches the time threshold or the cumulative received data reaches the quantity threshold, and can arrange the data packets in order according to the sequence numbers of the received data packets. When the cumulative confirmation time reaches the time threshold or the cumulative received data reaches the quantity threshold, the first device determines the sequence number of the lost data packet based on the sequence number of the received data packet. Subsequently, the first device can send the sequence number of the lost data packet to the second device in the form of a first message, and the second device determines the lost data packet accordingly and retransmits the lost data packet to the first device.

[0087] In this way, the embodiment of the present application can be flexibly applied to different network conditions through a dual-dimensional packet loss retransmission mechanism designed by timing or counting, thereby improving the throughput and efficiency of data transmission. In addition, the first message used in the embodiment of the present application can also accurately feedback the lost data packet information, so that the second device can avoid retransmitting the received data packet, thereby reducing the waste of network resources.

[0088] Optionally, the sending the first message to the second device based on whether a preset condition is met includes:

[0089] According to the data packet sending rate of the second device, a cumulative receiving time threshold and a cumulative receiving quantity threshold are set;

[0090] When the preset condition is met, sending the first message to the second device;

[0091] Wherein, the preset condition is met, including any one of the following:

[0092] The accumulated receiving time of the data packets sent by the second device continuously reaches the accumulated receiving time threshold;

[0093] The cumulative number of data packets continuously received from the second device is greater than or equal to the cumulative number of data packets threshold.

[0094] In some embodiments, the preset conditions for the first device to send the first message to the second device include the cumulative receiving time and the cumulative receiving quantity, which can be calculated at the same time, and retransmission can be triggered as long as any one of the cumulative receiving time threshold and the cumulative receiving quantity threshold is met. In addition, the preset conditions in the embodiments of the present application can also be set to need to meet both the cumulative receiving time threshold of the data packet and the cumulative receiving quantity threshold of the data packet, and the present application does not limit this.

[0095] Specifically, Figure 3As shown, the second device can continuously send data packets to the first device at a preset data packet sending rate. For example, the second device sends data packets with sequence numbers between 100 and 199 to the first device, and the first device receives data packets with sequence numbers between 100 and 199. Subsequently, the second device continuously sends data packets with sequence numbers between 200 and 299, data packets with sequence numbers between 500 and 399, data packets with sequence numbers between 600 and 499, and data packets with sequence numbers between 500 and 599 to the first device. During the process of the second device continuously transmitting data packets, the first device receives each data packet in sequence. If the data packet with sequence numbers between 200 and 299 is lost, the first device can send the sequence number information of the data packet with sequence numbers between 200 and 299 to the second device after waiting for the preset condition to be met, or can send the sequence number information of the data packet that has been received to the first device, including the sequence numbers of the data packets from 100 to 199 and 500 to 599. In this way, the second device receives the first message containing the sequence number information and can accurately determine that the sequence number of the lost data packet is between 200 and 299, so the retransmitted data packet sent to the first device is a data packet with a sequence number between 200 and 299.

[0096] In this way, the first message used in the embodiment of the present application can also accurately feedback the lost data packet information, so that the second device can avoid retransmitting the data packet that has been received, thereby reducing the waste of network resources.

[0097] Optionally, the first message includes an acknowledgment ACK message, where the ACK message is a message obtained by adding a target fragment to a message in an RDMA format;

[0098] The target segment is used to store the serial number of the received data packet.

[0099] In some other embodiments, the first message may be an ACK message. In the embodiment of the present application, the first message may be an RDMA message format (such as Figure 4 As shown in FIG. 1 , a target segment is added to the ETH segment in the RDMA message. Specifically, as Figure 5 As shown, in the ETH segment, the target segment can be set between the AETH segment and the Atomic ACKETH segment, the target segment can be the T / C AETH segment, and its size can be set to 30 bytes.

[0100] In this way, by adding a new target fragment to the existing ACK message, the number, sequence number and other information of the received data packet can be recorded and stored, which facilitates the first device to send a first message containing the number information of the received data packet to the second device, so that the second device can avoid retransmitting the data packet that has been received, thereby reducing the waste of network resources.

[0101] Optionally, the target segment further includes the number of confirmation segments of the received data packet, and one confirmation segment corresponds to one time period;

[0102] In the case where the number of the confirmation segments is greater than 1, the target segment includes first number information of data packets received in a first time period and second number information of at least one data packet received in a second time period, the first time period being earlier than the second time period;

[0103] In a case where the number of the confirmation segments is equal to 1, the target segment includes first number information of data packets received in a first time period.

[0104] In some other embodiments of the present application, the target segment may be a buffer area set in the ACK message, used to store information such as numbers and sequence numbers of data packets received by the first device in multiple time periods. Specifically, the target segment may store the first number information of the data packets received in the first time period, and the second number information of multiple data packets received in the second time period. Figure 6 , the target segment may include first number information (corresponding to Figure 6 Continuous confirmation segment in the first second time period), the second number information in the first second time period (corresponding to Figure 6 The confirmed segment 1 in the following second time period (corresponding to the second number information Figure 6 Since there is number information corresponding to the data packet not received by the first device between the first number information and the second number information, there may be a segment 1 not confirmed to be received by the first device between the first number information and the second number information in the target segment, and there may also be a segment 2 not confirmed to be received by the first device between the previous second number information and the next second number information.

[0105] Furthermore, the target segment also includes the number of confirmation segments of the received data packets. When the number of confirmation segments is equal to 1, it means that the first device has received the complete and continuous data packets sent by the second device, the second device has sent a data packet with the largest number or the largest sequence number, and the first device has completely received all data packets, and there is no need to retransmit the data packets.

[0106] In addition, when the target fragment is greater than 1, it indicates that the first device has received multiple data packets, the second device has sent multiple data packets, but the data packets received by the first device are discontinuous, and there is data packet loss. Figure 6 There are lost data packets between the continuous confirmation segments and the confirmed segment 1, and there are also lost data packets between the confirmed segment 1 and the confirmed segment 2.

[0107] In this way, the first device can quickly and accurately analyze the received data packets and the unreceived lost data packets, and send a first message containing the received data packet number, sequence number and other information to the second device, or send a first message containing the number, sequence number and other information of the unreceived lost data packet to the second device. It can be seen that the first message can effectively reduce the number of ACKs required in the relevant technology, effectively improve the network throughput, and the second device can avoid retransmitting the received data packets, improve the accuracy of data packet retransmission, and thus reduce the waste of network resources.

[0108] Optionally, the first numbering information includes a first number of a data packet that ends receiving within the first time period;

[0109] The second numbering information includes a second number of a data packet initially received and a third number of a data packet finally received within the second time period.

[0110] In some other embodiments, Figure 6 The first number information and the second number information in the target segment may include the content in the following Table 1:

[0111] Table 1

[0112] Confirm the number of segments (Segment Num) Last Finished PSN Second number (Segment1 Left) Third number (Segment1 Right) The fourth number (Segment2 Left) Fifth number (Segment 2 Right)

[0113] Among them, the size of the number of confirmation segments (Segment Num) can be set to 24 bits (bit), indicating the number of data packet sequence number fragments contained in the target fragment. Considering the size of the T / CAETH fragment in actual application, the value of SegmentNum can be 1 to 4.

[0114] The size of the first number (Last Finished PSN) can also be set to 24 bits, which can be the maximum sequence number or maximum number of the data packets received by the first device in the first time period. The size of the second number (Segment1 Left) can also be set to 24 bits, which can be the minimum sequence number or minimum number of the data packets received by the first device in the second time period. If the second device sends the data packet in sequence, the second number is the sequence number or number corresponding to the data packet initially received by the first device in the second time period. The size of the third number (Segment1 Right) can also be set to 24 bits, which can be the maximum sequence number or maximum number of the data packets received by the first device in the second time period. If the second device sends the data packet in sequence, the second number is the sequence number or number corresponding to the last data packet received by the first device when it finishes receiving the data packet in the second time period. In addition, the fourth number (Segment2Left) and the fifth number (Segment2 Right) are the sequence numbers corresponding to the data packets initially received and the last data packets received in the next second time period, respectively. For details, please refer to the settings of the third number and the fourth number, and this application does not make specific restrictions here.

[0115] See also Figure 7 , Figure 7 This is a second flowchart of a data packet retransmission method provided in an embodiment of the present application, which is applied to a second device and specifically includes the following steps:

[0116] Step 201: Receive a first message sent by a first device based on whether a preset condition is met, wherein the preset condition is associated with at least one of a cumulative receiving time and a cumulative receiving quantity of data packets received by the first device, and the first message is used to indicate a lost data packet;

[0117] Step 202: Determine a data packet to be retransmitted, wherein the data packet to be retransmitted includes a data packet indicated by the first message;

[0118] Step 203: Send the data packet to be retransmitted to the first device.

[0119] In a specific embodiment of the present application, the first device can determine whether there is a data packet loss in the data transmission process according to the cumulative receiving time or the cumulative receiving quantity, and promptly send a first message to the second device to inform the second device of the lost data packet. After the second device receives the first message, it can determine the data packet that needs to be retransmitted according to the sequence number of the lost data packet indicated by the first message. In this process, the second device continues to send data packets to the first device at a preset sending rate, and the first device continues to receive data packets within the range before the cumulative confirmation time reaches the time threshold or the cumulative received data reaches the quantity threshold, and can arrange the data packets in order according to the sequence number of the received data packet. When the cumulative confirmation time reaches the time threshold or when the cumulative received data reaches the quantity threshold, the first device determines the sequence number of the lost data packet according to the sequence number of the received data packet. Subsequently, the first device can send the sequence number of the lost data packet to the second device in the form of a first message, and the second device determines the lost data packet accordingly and retransmits the lost data packet to the first device.

[0120] It can be understood that the above embodiment removes the window restriction (window-less) for the second device to send data packets, so that the second device does not need to be limited by the sliding window size and can continue to send data packets to the first device at a preset sending rate, thereby solving the bandwidth consumption problem caused by unreasonable sliding window size setting in related technologies, and can effectively improve the effective throughput of network transmission, so that the second device can avoid retransmitting data packets that have been received, thereby improving the accuracy of data packet retransmission.

[0121] Optionally, the first message includes an acknowledgment ACK message, where the ACK message is a message obtained by adding a target fragment to a message in an RDMA format;

[0122] The target segment is used to store the serial number of the received data packet.

[0123] Optionally, the target segment further includes the number of confirmation segments of the received data packet, and one confirmation segment corresponds to one time period;

[0124] The step of determining the data packet to be retransmitted comprises:

[0125] In the case where the number of the confirmation segments is greater than 1, the data packet to be retransmitted is determined based on the first numbering information and at least one second numbering information stored in the target segment; wherein the first numbering information is information of the data packet received in the first time period, the second numbering information is information of the data packet received in the second time period, and the first time period is earlier than the second time period;

[0126] When the number of confirmation segments is equal to 1 and the maximum number of the data packet in the first numbering information is less than the preset number, the data packet to be retransmitted is determined to be a data packet with a number greater than the maximum number and less than or equal to the preset number.

[0127] Optionally, the first numbering information includes a first number of a data packet that ends receiving within the first time period;

[0128] The second numbering information includes the second number of the data packet initially received and the third number of the data packet finally received within the second time period;

[0129] The step of determining the data packet to be retransmitted based on the first numbering information and at least one second numbering information stored in the target segment when the number of the confirmation segments is greater than 1 includes:

[0130] Based on the first number information and the second number information, determine that the data packet to be retransmitted is a data packet with a number set between the first number and the second number, and a data packet with a number set between the third number and the fourth number;

[0131] The fourth number is the number of the data packet initially received within the next second time period.

[0132] In some embodiments, the second device can determine the data packets to be retransmitted based on the first message. When the number of confirmation segments in the target segment in the first message is greater than 1, it indicates that there are lost data packets. The first number (LastFinised PSN), the second number (Segment1 Left), the third number (Segment1Right) and the fourth number (Segment2 Left) are checked in sequence. The data packets to be retransmitted can be determined as the data packets with numbers set between the first number and the second number, and the data packets with numbers set between the third number and the fourth number. In addition, if there are more confirmation segments in the target segment, the data packets to be retransmitted can be determined in sequence and sent to the first device.

[0133] Therefore, the embodiment of the present application can accurately determine the lost data packet, and the second device sends the data packet to be retransmitted to the first device, thereby improving the accuracy of data packet retransmission.

[0134] Optionally, the method further comprises:

[0135] When a data packet with a preset number is sent to the first device and the first message is not received after a preset time, the data packet with the preset number is retransmitted to the first device.

[0136] In some other embodiments, the second device sends a data packet to the first device, but has not received the first message after a preset time. The second device cannot confirm whether the first device has received the data packet at this time. The second device can directly send the last segment of the data packet to the first device and wait for feedback from the first device again. Among them, the data packet with a preset number can be a data packet with the largest number or the largest sequence number in this data transmission process. If the first message is not received after twice the time threshold of the cumulative receiving time, multiple data packets including the data packet with the preset number can be used as retransmission data, and the second device can directly send the retransmission data to the first device, thereby improving the efficiency of data transmission and saving network transmission resources.

[0137] In addition, if the number of confirmation segments in the first message received by the second device is 1, and the first number is consistent with the number of the data packet initially received by the first device, it means that the first device has only received one data packet and the tail packet has been lost. At this time, the second device can directly retransmit the data packet numbered between the first number and the maximum number to the first device to improve the efficiency of data transmission and save network transmission resources.

[0138] It should be noted that the above optional implementations can be found in Figure 2 To avoid repeated description, the relevant descriptions in the embodiment shown in FIG. 1 are not repeated in this embodiment.

[0139] See also Figure 8 , an embodiment of the present application provides a data packet retransmission device, applied to a first device, the device comprising:

[0140] A first sending module 301, configured to send a first message to a second device based on whether a preset condition is met, wherein the preset condition is associated with at least one of a cumulative receiving time and a cumulative receiving quantity of data packets received from the second device, and the first message is used to indicate a lost data packet;

[0141] The first receiving module 302 is used to receive a retransmitted data packet sent by the second device, where the retransmitted data packet includes the data packet indicated by the first message.

[0142] Optionally, the first sending module 301 includes:

[0143] A setting unit, configured to set a cumulative receiving time threshold and a cumulative receiving quantity threshold according to a data packet sending rate of the second device;

[0144] A sending unit, configured to send the first message to the second device when the preset condition is met;

[0145] Wherein, the preset condition is met, including any one of the following:

[0146] The accumulated receiving time of the data packets sent by the second device continuously reaches the accumulated receiving time threshold;

[0147] The cumulative number of data packets continuously received from the second device is greater than or equal to the cumulative number of data packets threshold.

[0148] Optionally, the first message includes an acknowledgment ACK message, where the ACK message is a message obtained by adding a target fragment to a message in an RDMA format;

[0149] The target segment is used to store the serial number of the received data packet.

[0150] Optionally, the target segment further includes the number of confirmation segments of the received data packet, and one confirmation segment corresponds to one time period;

[0151] In the case where the number of the confirmation segments is greater than 1, the target segment includes first number information of data packets received in a first time period and second number information of at least one data packet received in a second time period, the first time period being earlier than the second time period;

[0152] In a case where the number of the confirmation segments is equal to 1, the target segment includes first number information of data packets received in a first time period.

[0153] Optionally, the first numbering information includes a first number of a data packet that ends receiving within the first time period;

[0154] The second numbering information includes a second number of a data packet initially received and a third number of a data packet finally received within the second time period.

[0155] It should be noted that the above-mentioned data packet retransmission device provided in the embodiment of the present application can achieve the above-mentioned Figure 2 All the method steps implemented in the method embodiment shown can achieve the same technical effect, and the parts and beneficial effects of this embodiment that are the same as those in the method embodiment will not be described in detail here.

[0156] Please refer to Fig. 9 The embodiment of the present application further provides a data packet retransmission device, which is applied to a second device, and the device includes:

[0157] A second receiving module 401 is used to receive a first message sent by a first device based on whether a preset condition is met, wherein the preset condition is associated with at least one of a cumulative receiving time and a cumulative receiving number of data packets received by the first device, and the first message is used to indicate a lost data packet;

[0158] A determination module 402, configured to determine a data packet to be retransmitted, wherein the data packet to be retransmitted includes a data packet indicated by the first message;

[0159] The second sending module 403 is configured to send the data packet to be retransmitted to the first device.

[0160] Optionally, the first message includes an acknowledgment ACK message, where the ACK message is a message obtained by adding a target fragment to a message in an RDMA format;

[0161] The target segment is used to store the serial number of the received data packet.

[0162] Optionally, the target segment further includes the number of confirmation segments of the received data packet, and one confirmation segment corresponds to one time period;

[0163] The determination module 402 includes:

[0164] A first determining unit is configured to determine the data packet to be retransmitted based on first numbering information and at least one second numbering information stored in the target segment when the number of the confirmation segments is greater than 1; wherein the first numbering information is information of a data packet received in a first time period, and the second numbering information is information of a data packet received in a second time period, and the first time period is earlier than the second time period;

[0165] The second determination unit is used to determine that the data packet to be retransmitted is a data packet with a number greater than the maximum number and less than or equal to the preset number when the number of confirmation segments is equal to 1 and the maximum number of the data packet in the first numbering information is less than the preset number.

[0166] Optionally, the first numbering information includes a first number of a data packet that ends receiving within the first time period;

[0167] The second numbering information includes the second number of the data packet initially received and the third number of the data packet finally received within the second time period;

[0168] The first determining unit is used for:

[0169] Based on the first number information and the second number information, determine that the data packet to be retransmitted is a data packet with a number set between the first number and the second number, and a data packet with a number set between the third number and the fourth number;

[0170] The fourth number is the number of the data packet initially received within the next second time period.

[0171] Optionally, the data packet retransmission device further includes:

[0172] The data packet retransmission module is used to retransmit the data packet with the preset number to the first device when the data packet with the preset number is sent to the first device and the first message is not received after a preset time.

[0173] It should be noted that the above-mentioned data packet retransmission device provided in the embodiment of the present application can achieve the above-mentioned Figure 7 All the method steps implemented in the method embodiment shown can achieve the same technical effect, and the parts and beneficial effects of this embodiment that are the same as those in the method embodiment will not be described in detail here.

[0174] The present application embodiment also provides a first device. Fig.10 , Fig.10 is a structural diagram of the first device provided in the embodiment of the present application. Since the principle of solving the problem by the first device is similar to the data packet retransmission method applied to the first device in the embodiment of the present application, the implementation of the first device can refer to Figure 2 The implementation of the method shown will not be repeated in detail.

[0175] like Fig.10 As shown, the user equipment includes: a processor 500, which is used to read the program in the memory 520 and execute the following process:

[0176] Sending a first message to the second device through the transceiver 510 based on whether a preset condition is met, wherein the preset condition is associated with at least one of a cumulative reception time and a cumulative reception quantity of data packets received from the second device, and the first message is used to indicate a lost data packet;

[0177] receiving, by the transceiver 510, a retransmitted data packet sent by the second device, wherein the retransmitted data packet includes the data packet indicated by the first message;

[0178] The transceiver 510 is configured to receive and send data under the control of the processor 500 .

[0179] Among them, Fig.10 In the embodiment of the present invention, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 500 and memory represented by memory 520. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface.

[0180] Optionally, the processor 500 is further configured to read a program in the memory 520 and execute the following steps:

[0181] According to the data packet sending rate of the second device, a cumulative receiving time threshold and a cumulative receiving quantity threshold are set;

[0182] When the preset condition is met, sending the first message to the second device;

[0183] Wherein, the preset condition is met, including any one of the following:

[0184] The accumulated receiving time of the data packets sent by the second device continuously reaches the accumulated receiving time threshold;

[0185] The cumulative number of data packets continuously received from the second device is greater than or equal to the cumulative number of data packets threshold.

[0186] Optionally, the first message includes an acknowledgment ACK message, where the ACK message is a message obtained by adding a target fragment to a message in an RDMA format;

[0187] The target segment is used to store the serial number of the received data packet.

[0188] Optionally, the target segment further includes the number of confirmation segments of the received data packet, and one confirmation segment corresponds to one time period;

[0189] In the case where the number of the confirmation segments is greater than 1, the target segment includes first number information of data packets received in a first time period and second number information of at least one data packet received in a second time period, the first time period being earlier than the second time period;

[0190] In a case where the number of the confirmation segments is equal to 1, the target segment includes first number information of data packets received in a first time period.

[0191] Optionally, the first numbering information includes a first number of a data packet initially received and a second number of a data packet finally received within the first time period;

[0192] The second numbering information includes a first number of a data packet initially received and a second number of a data packet finally received within the second time period.

[0193] The first device provided in the embodiment of the present application can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated in this embodiment.

[0194] The embodiment of the present application also provides a second device. Since the principle of solving the problem by the second device is similar to the data packet retransmission method performed by the second device in the embodiment of the present application, the implementation of the second device can refer to the implementation of the method, and the repeated parts will not be repeated. Fig.11 As shown, the second device of the embodiment of the present application includes: a processor 600, which is used to read the program in the memory 620 and execute the following process:

[0195] receiving, by the transceiver 610, a first message sent by the first device based on whether a preset condition is satisfied, wherein the preset condition is associated with at least one of a cumulative reception time and a cumulative reception quantity of data packets received by the first device, and the first message is used to indicate a lost data packet;

[0196] Determine a data packet to be retransmitted, where the data packet to be retransmitted includes the data packet indicated by the first message;

[0197] Sending the data packet to be retransmitted to the first device through the transceiver 610;

[0198] The transceiver 610 is configured to receive and send data under the control of the processor 600 .

[0199] Among them, Fig.11 In the embodiment of the present invention, the bus architecture may include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by processor 600 and memory represented by memory 620. The bus architecture may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are not further described herein. The bus interface provides an interface.

[0200] Optionally, the first message includes an acknowledgment ACK message, where the ACK message is a message obtained by adding a target fragment to a message in an RDMA format;

[0201] The target segment is used to store the serial number of the received data packet.

[0202] Optionally, the target segment further includes the number of confirmation segments of the received data packet, and one confirmation segment corresponds to one time period;

[0203] The processor 600 is further configured to read the program in the memory 620 and execute the following steps:

[0204] In the case where the number of the confirmation segments is greater than 1, the data packet to be retransmitted is determined based on the first numbering information and at least one second numbering information stored in the target segment; wherein the first numbering information is information of the data packet received in the first time period, the second numbering information is information of the data packet received in the second time period, and the first time period is earlier than the second time period;

[0205] When the number of confirmation segments is equal to 1 and the maximum number of the data packet in the first numbering information is less than the preset number, the data packet to be retransmitted is determined to be a data packet with a number greater than the maximum number and less than or equal to the preset number.

[0206] Optionally, the first numbering information includes a first number of a data packet that ends receiving within the first time period;

[0207] The second numbering information includes the second number of the data packet initially received and the third number of the data packet finally received within the second time period;

[0208] The step of determining the data packet to be retransmitted based on the first numbering information and at least one second numbering information stored in the target segment when the number of the confirmation segments is greater than 1 includes:

[0209] Based on the first number information and the second number information, determine that the data packet to be retransmitted is a data packet with a number set between the first number and the second number, and a data packet with a number set between the third number and the fourth number;

[0210] The fourth number is the number of the data packet initially received within the next second time period.

[0211] Optionally, the processor 600 is further configured to read a program in the memory 620 and execute the following steps:

[0212] When a data packet with a preset number is sent to the first device and the first message is not received after a preset time, the data packet with the preset number is retransmitted to the first device.

[0213] The second device provided in the embodiment of the present application can perform the above-mentioned Figure 7 The implementation principle and technical effect of the method embodiment shown are similar, and this embodiment will not be repeated here.

[0214] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned Figure 1 or Figure 2 The various processes of the data packet retransmission method embodiment in the embodiment can achieve the same technical effect, and are not repeated here to avoid repetition. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0215] The present application embodiment further provides a computer program / program product, wherein the computer program / program product is stored in a storage medium, and the computer program / program product is executed by at least one processor to implement the above Figure 1 or Figure 2 The various processes of the data packet retransmission method embodiment can achieve the same technical effect, and will not be described again here to avoid repetition.

[0216] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0217] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0218] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the sending and receiving methods described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0219] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles described in the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A data packet retransmission method, characterized in that: Applied to a first device, the method includes: Sending a first message to the second device based on whether a preset condition is met, wherein the preset condition is associated with at least one of a cumulative reception time and a cumulative reception quantity of data packets received from the second device, and the first message is used to indicate a lost data packet; Receive a retransmitted data packet sent by the second device, where the retransmitted data packet includes the data packet indicated by the first message.

2. The method according to claim 1, characterized in that The sending the first message to the second device based on whether a preset condition is met includes: According to the data packet sending rate of the second device, a cumulative receiving time threshold and a cumulative receiving quantity threshold are set; When the preset condition is met, sending the first message to the second device; Wherein, the satisfying of the preset condition includes any one of the following: The accumulated receiving time of the data packets sent by the second device continuously reaches the accumulated receiving time threshold; The cumulative number of data packets continuously received from the second device is greater than or equal to the cumulative number of data packets threshold.

3. The method according to claim 1 or 2, characterized in that: The first message includes an ACK message, where the ACK message is a message obtained by adding a target fragment to a message in an RDMA format; The target segment is used to store the serial number of the received data packet.

4. The method according to claim 3, characterized in that The target segment also includes the number of confirmation segments of the received data packet, and one confirmation segment corresponds to one time period; In the case where the number of the confirmation segments is greater than 1, the target segment includes first number information of data packets received in a first time period and second number information of at least one data packet received in a second time period, the first time period being earlier than the second time period; In a case where the number of the confirmation segments is equal to 1, the target segment includes first number information of data packets received in a first time period.

5. The method according to claim 4, characterized in that The first numbering information includes a first number of a data packet that ends receiving within the first time period; The second numbering information includes a second number of a data packet initially received and a third number of a data packet finally received within the second time period.

6. A data packet retransmission method, characterized in that: Applied to the second device, the method includes: receiving a first message sent by a first device based on whether a preset condition is satisfied, wherein the preset condition is associated with at least one of a cumulative reception time and a cumulative reception quantity of data packets received by the first device, and the first message is used to indicate a lost data packet; Determine a data packet to be retransmitted, where the data packet to be retransmitted includes the data packet indicated by the first message; Send the data packet to be retransmitted to the first device.

7. The method according to claim 6, characterized in that The first message includes an ACK message, where the ACK message is a message obtained by adding a target fragment to a message in an RDMA format; The target segment is used to store the serial number of the received data packet.

8. The method according to claim 7, characterized in that The target segment also includes the number of confirmation segments of the received data packet, and one confirmation segment corresponds to one time period; The step of determining the data packet to be retransmitted comprises: In the case where the number of the confirmation segments is greater than 1, the data packet to be retransmitted is determined based on the first numbering information and at least one second numbering information stored in the target segment; wherein the first numbering information is information of the data packet received in the first time period, the second numbering information is information of the data packet received in the second time period, and the first time period is earlier than the second time period; When the number of confirmation segments is equal to 1 and the maximum number of the data packet in the first numbering information is less than the preset number, the data packet to be retransmitted is determined to be a data packet with a number greater than the maximum number and less than or equal to the preset number.

9. The method according to claim 8, characterized in that The first numbering information includes a first number of a data packet that ends receiving within the first time period; The second numbering information includes the second number of the data packet initially received and the third number of the data packet finally received within the second time period; The step of determining the data packet to be retransmitted based on the first numbering information and at least one second numbering information stored in the target segment when the number of the confirmation segments is greater than 1 includes: Based on the first number information and the second number information, determine that the data packet to be retransmitted is a data packet with a number set between the first number and the second number, and a data packet with a number set between the third number and the fourth number; The fourth number is the number of the data packet initially received within the next second time period.

10. The method according to any one of claims 6 to 9, characterized in that The method further comprises: When a data packet with a preset number is sent to the first device and the first message is not received after a preset time, the data packet with the preset number is retransmitted to the first device.

11. A data packet retransmission device, characterized in that: Applied to a first device, the apparatus comprises: a first sending module, configured to send a first message to a second device based on whether a preset condition is met, wherein the preset condition is associated with at least one of a cumulative receiving time and a cumulative receiving quantity of data packets received from the second device, and the first message is used to indicate a lost data packet; The first receiving module is used to receive a retransmitted data packet sent by the second device, where the retransmitted data packet includes the data packet indicated by the first message.

12. A data packet retransmission device, characterized in that: Applied to a second device, the apparatus comprises: A second receiving module, configured to receive a first message sent by a first device based on whether a preset condition is satisfied, wherein the preset condition is associated with at least one of a cumulative receiving time and a cumulative receiving quantity of data packets received by the first device, and the first message is used to indicate a lost data packet; A determination module, used to determine a data packet to be retransmitted, wherein the data packet to be retransmitted includes a data packet indicated by the first message; The second sending module is used to send the data packet to be retransmitted to the first device.

13. A first device, comprising: A transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor; wherein the transceiver is used for: Sending a first message to the second device based on whether a preset condition is met, wherein the preset condition is associated with at least one of a cumulative reception time and a cumulative reception quantity of data packets received from the second device, and the first message is used to indicate a lost data packet; Receive a retransmitted data packet sent by the second device, where the retransmitted data packet includes the data packet indicated by the first message.

14. A second device, comprising: A transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor; wherein the transceiver is used for: receiving a first message sent by a first device based on whether a preset condition is satisfied, wherein the preset condition is associated with at least one of a cumulative reception time and a cumulative reception quantity of data packets received by the first device, and the first message is used to indicate a lost data packet; The processor is used to: Determine a data packet to be retransmitted, where the data packet to be retransmitted includes the data packet indicated by the first message; The transceiver is used for: Send the data packet to be retransmitted to the first device.

15. A computer-readable storage medium for storing a computer program, characterized in that: When the computer program is executed by a processor, the computer program implements the steps of the data packet retransmission method according to any one of claims 1 to 5, or implements the steps of the data packet retransmission method according to any one of claims 6 to 10.

16. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps in the data packet retransmission method as claimed in any one of claims 1 to 5, or implement the steps in the data packet retransmission method as claimed in any one of claims 6 to 10.

Citation Information

Patent Citations

  • Loss package error correcting method and system of self-adapting network

    CN101252425A

  • Detection method, device and system of message loss

    CN102404170A

  • Data packet sending rate processing method and system

    CN109889380A

  • Data transmission method and device

    CN114173314A

  • Data transmission method and system

    CN114500672A