WO2023179538A1 - 数据传输方法、装置、电子设备和存储介质 - Google Patents
数据传输方法、装置、电子设备和存储介质 Download PDFInfo
- Publication number
- WO2023179538A1 WO2023179538A1 PCT/CN2023/082501 CN2023082501W WO2023179538A1 WO 2023179538 A1 WO2023179538 A1 WO 2023179538A1 CN 2023082501 W CN2023082501 W CN 2023082501W WO 2023179538 A1 WO2023179538 A1 WO 2023179538A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information
- electronic device
- packet loss
- end electronic
- data
- Prior art date
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 272
- 238000000034 method Methods 0.000 title claims abstract description 118
- 238000011084 recovery Methods 0.000 claims abstract description 47
- 230000001960 triggered effect Effects 0.000 claims description 14
- 238000001514 detection method Methods 0.000 claims description 8
- 238000012546 transfer Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 238000012790 confirmation Methods 0.000 description 3
- 238000012217 deletion Methods 0.000 description 3
- 230000037430 deletion Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 206010033799 Paralysis Diseases 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
Definitions
- This application belongs to the field of communication technology, and specifically relates to a data transmission method, device, electronic equipment and storage medium.
- TCP/Internet Protocol is a commonly used data transmission protocol.
- the sending-end electronic device sends a data packet to the receiving-end electronic device. After the receiving-end electronic device successfully receives the data, it will send the sending instruction information of the subsequent data packet to the sending-end electronic device. If the network connection is interrupted, in order to ensure that the data transmission is as complete as possible, in related technologies, the protocol generally specifies that the data packets in transmission when the interruption occurs are discarded, and the newly generated data packets and previously unsuccessful transmissions are temporarily cached in the sending end electronic device. After the network connection is restored, the sending end electronic device sends the cached data packets to the receiving end electronic device, thereby minimizing packet loss.
- the network connection is interrupted, a large number of data packets are likely to be cached in the sending electronic device. Therefore, after the network connection is successful, when all the cached data packets are sent to the receiving electronic device, the receiving electronic device The device will continuously send a large amount of sending instruction information to the sending end electronic device, which will cause congestion in the sending end electronic device and ultimately reduce the data transmission rate.
- the purpose of the embodiments of this application is to provide a data transmission method, device, electronic device and storage medium that can solve the problem of data transmission congestion in the sending end electronic device when the network connection is interrupted, which ultimately results in a reduction in data transmission rate.
- embodiments of the present application provide a data transmission method, which method includes: when data transmission is interrupted and a packet loss event is determined to occur, generating a first message, where the first message includes any of the following: A first amount of first information, information corresponding to the above-mentioned packet loss event; in the case of data transmission recovery, sending the above-mentioned first message and data recovery information to the sending end electronic device; wherein the above-mentioned first information is used to indicate lost data packet; the information corresponding to the above-mentioned packet loss event includes at least one of the following: packet loss content information, packet loss event information; the above-mentioned packet loss content information includes any of the following: the sequence number SN range corresponding to the lost data packet, after the loss of the data packet The packet SN number.
- inventions of the present application provide a data transmission method.
- the method includes: receiving information corresponding to a packet loss event sent by an electronic device at the receiving end.
- the information corresponding to the packet loss event includes at least one of the following: Packet loss content letter information, packet loss event information;
- the above-mentioned packet loss content information includes any of the following: the sequence number SN range corresponding to the lost data packet, the SN number of the data packet after the lost data packet; receiving the data recovery information sent by the above-mentioned receiving end electronic device;
- the first mechanism is not triggered.
- the above-mentioned first mechanism includes: congestion avoidance mechanism.
- inventions of the present application provide a data transmission device.
- the device includes: a generating module and a sending module; the generating module is configured to generate a first data transmission device when data transmission is interrupted and a packet loss event is determined to occur.
- message, the above-mentioned first message includes any of the following: a first quantity of first information, information corresponding to the above-mentioned packet loss event; the above-mentioned sending module is used to send the above-mentioned generated to the sending end electronic device when data transmission is restored.
- the packet content information includes any of the following: the sequence number SN range corresponding to the lost data packet, and the SN number of the data packet after the lost data packet.
- inventions of the present application provide a data transmission device.
- the above device includes: a receiving module and an execution module; the above receiving module is used to receive information corresponding to a packet loss event sent by the receiving end electronic device,
- the information corresponding to the above-mentioned packet loss event includes at least one of the following: packet loss content information, packet loss event information;
- the above-mentioned packet loss content information includes any of the following: the sequence number SN range corresponding to the lost data packet, the data after the lost data packet Packet SN number;
- the above-mentioned receiving module is also used to receive the data recovery information sent by the above-mentioned receiving end electronic device;
- the above-mentioned execution module is used to not trigger the first mechanism when the third condition is met.
- the above-mentioned first mechanism includes: congestion avoidance mechanism
- inventions of the present application provide an electronic device.
- the electronic device includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor.
- the program or instructions are When executed by the processor, the steps of the method described in the first aspect or the second aspect are implemented.
- embodiments of the present application provide a readable storage medium on which programs or instructions are stored.
- the programs or instructions are executed by a processor, the implementation is as described in the first aspect or the second aspect. steps of the method.
- embodiments of the present application provide a chip.
- the chip includes a processor and a communication interface.
- the communication interface is coupled to the processor.
- the processor is used to run programs or instructions to implement the first aspect. Or the method described in the second aspect.
- the receiving end electronic device when data transmission is interrupted and the receiving end electronic device determines that a packet loss event occurs, the receiving end electronic device will generate a first information including a first quantity (used to indicate lost data packets) or a lost packet. Afterwards, when data transmission is restored, the receiving end electronic device will send the above-mentioned first message and data recovery information to the sending end electronic device. In this way, when data transmission is interrupted, data transmission congestion can be avoided by changing the amount of first information sent to the sending end electronic device or directly sending information corresponding to the packet loss event to the sending end electronic device, thereby improving data transmission efficiency. .
- Figure 1 is one of the flow diagrams of a data transmission method provided by an embodiment of the present application.
- Figure 2 is a second schematic flowchart of a data transmission method provided by an embodiment of the present application.
- Figure 3 is one of the structural schematic diagrams of a data transmission device provided by an embodiment of the present application.
- Figure 4 is a second structural schematic diagram of a data transmission device provided by an embodiment of the present application.
- Figure 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- FIG. 6 is a second structural schematic diagram of an electronic device provided by an embodiment of the present application.
- first, second, etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first,” “second,” etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple.
- “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the related objects are in an "or” relationship.
- This embodiment provides a data transmission method, as shown in Figure 1.
- the data transmission method is applied to the receiving end electronic device and includes the following steps 301 and 302:
- Step 301 When data transmission is interrupted and a packet loss event is determined to occur, the receiving end electronic device generates a first message.
- the above-mentioned first message includes any one of the following: a first quantity of first information, and information corresponding to the above-mentioned packet loss event.
- the above-mentioned first information is used to indicate lost data packets;
- the information corresponding to the above-mentioned packet loss event includes at least one of the following: packet loss content information, packet loss event information;
- the above-mentioned packet loss content information includes any of the following Item: Serial Number (SN) range corresponding to the lost data packet, and the SN number of the data packet after the lost data packet.
- SN Serial Number
- the above-mentioned packet loss event can be determined by the receiving end electronic device.
- the method for the receiving end electronic device to determine the packet loss event can refer to the following content.
- the receiving end electronic device when the first message is a first amount of first information, after subsequent data transmission is resumed, the receiving end electronic device will send the first amount of first information to the sending end device. Further, before the receiving end device generates the above-mentioned first quantity of first information, the transmission mode of the first information is: a target transmission mode, and the number of first information transmitted by the target transmission mode is different from the first quantity. Specifically, for details about this target transmission method, please refer to the following content.
- Example 1 Assume that the sending electronic device needs to transmit 4 data packets to the receiving electronic device. The four data packets have their own numbers, namely data packet 1, data packet 2, data packet 3, and data packet 4. Then, After the receiving end electronic device receives the data packet 1, it will send the instruction information "Please send data packet 2" to the sending end electronic device.
- the instruction information is the first information mentioned above in this application. After the data transmission is interrupted, after the receiving end electronic device receives data packet 1, it will still send the instruction message "Please send data packet 2" to the sending end electronic device.
- the sending end electronic device Data packet 4 is sent to the receiving end electronic device.
- Data packet 2 and data packet 3 that should have been sent became lost data packets due to the interruption of data transmission.
- the receiving end electronic device will continue to send "Please The instruction information of "Send Data Packet 2" is called the first information at this time.
- the transmission method of continuously sending the instruction information of "Please send Data Packet 2" is: sending the first amount of first information. The transmission method previously used.
- the first information may be a duplicate Acknowledge character (duplicate ACK). Further, after the receiving end electronic device sends a duplicate ACK, correspondingly, the sending end electronic device will restore the same number of TCP serial numbers (TCP Serial Number TCP SN).
- the above-mentioned first quantity may be preset in advance or may be user-defined.
- the above-mentioned first number should be less than a predetermined number of times that causes the sending end electronic device to trigger the congestion avoidance mechanism.
- Example 2 If the predetermined number of times that the sending end electronic device triggers the congestion avoidance mechanism is 3 times, that is, the sending end electronic device receives the instruction information (i.e., the first information) of "Please send data packet 2" sent by the above receiving end electronic device reaches 3 times. times when the sending end electronic device triggers the congestion avoidance mechanism, the first number may be set to 2 times.
- the sending quantity of the first information is updated to the first number, and it is set that after the data transmission is resumed, the receiving end electronic device is at most The above-mentioned first information is transmitted twice, and the "transmit the above-mentioned first information at most 2 times" is the first quantity of first information.
- the information corresponding to the packet loss event is used to determine and inform the sending end electronic device that a packet loss event has occurred (i.e., packet loss event information), and/or that the packet loss
- the number information of the corresponding lost data packet in the event specifically, includes the sequence number SN range corresponding to the above-mentioned lost data packet, and the SN number of the data packet after the lost data packet.
- Example 3 After confirming that a packet loss event occurs, the receiving end electronic device will generate packet loss event information and/or packet loss content information used to indicate the packet loss event.
- Step 302 In the case of data transmission recovery, the receiving end electronic device sends the above-mentioned first message and data recovery information to the sending end electronic device.
- the above data recovery information is used to indicate that data transmission between the receiving end electronic device and the sending end electronic device returns to normal.
- the data recovery information can be used to inform the sending end electronic device to start a normal data transmission process.
- the above-mentioned recovery of data transmission requires self-confirmation by the receiving end electronic device.
- the receiving end electronic device performs confirmation through an internal module.
- the internal confirmation method of the receiving end electronic device please refer to the following content.
- the receiving end electronic device includes a first module and a second module, wherein the first module is used to determine that a packet loss event occurs, the second module is used to update the data transmission protocol, and the data transmission protocol is used to Controls how data is transmitted between the receiving electronic device and the sending electronic device.
- the above-mentioned first module may be a 5G modem module (5G modem module), and the above-mentioned second module may be a TCP protocol stack module.
- 5G modem module 5G modem module
- TCP protocol stack module TCP protocol stack module
- the specific sending process is to send the data recovery information to the sending end electronic device through the first module.
- the above-mentioned data transmission recovery status is confirmed by the first module of the receiving end electronic device, and the first module generates data recovery information and sends the information to the sending end electronic device.
- the receiving end electronic device sends the data recovery information to the sending end electronic device, so that the sending end electronic device can perform data transmission in a timely manner, thereby improving the data transmission efficiency after the network interruption occurs.
- Example 4 Combined with the above Example 2, when the data transmission is restored and the receiving end electronic device cannot receive the data packet indicated by the first information, the above first information (i.e. the above first number of the first information) is transmitted to the sending end electronic device twice. first information) and data recovery information.
- the above first information i.e. the above first number of the first information
- Example 5 Combined with the above Example 3, when data transmission is restored and the receiving end electronic device cannot receive the data packet indicated by the first information, packet loss event information, packet loss content information and data recovery information are transmitted to the sending end electronic device. .
- the sequence number SN range corresponding to the lost data packet can be calculated by the receiving end electronic device.
- the sequence number SN range corresponding to the lost data packet may be calculated by the second module of the receiving end electronic device.
- Example 6 Assume that the sending end electronic device needs to transmit 4 data packets to the receiving end electronic device.
- the four data packets have their own numbers, namely data packet 1, data packet 2, data packet 3, and data packet 4.
- the receiving end electronic device receives data packet 1, it will send the instruction message "Please send data packet 2" to the sending end electronic device.
- the sending end electronic device sends a message to the receiving end electronic device.
- the data packet is data packet 4, then according to the SN encoding information of the data packet, the TCP protocol stack module of the receiving end electronic device will calculate that the SN range corresponding to the lost data packet is: the second data packet and the third data packet, The corresponding lost data packets are data packet 2 and data packet 3.
- the second module of the receiving end electronic device may be used to generate second packet loss information corresponding to the packet loss event, and send the second packet loss information to the sending end electronic device.
- the packet loss content information when the packet loss content information includes the SN range of the serial number corresponding to the lost data packet, it is equivalent to the receiving end electronic device directly informing the sending end electronic device of the SN number corresponding to the lost data packet.
- Example 7 Combined with the above Example 6, after the TCP protocol stack module of the receiving end electronic device calculates the SN range corresponding to the lost data packet, the TCP protocol stack module of the receiving end electronic device (i.e., the above-mentioned second module) reports to the sending end electronic device. If the device sends the SN range corresponding to the above-mentioned data packet 2 and data packet 3 (that is, the lost data packet), then the subsequent sending end will send data packet 2 and data packet 3 to the receiving end electronic device.
- the TCP protocol stack module of the receiving end electronic device i.e., the above-mentioned second module
- the receiving end electronic device informs the sending end electronic device that the data packets corresponding to the SN number before the SN number after the lost data packet are all Lost packets.
- Example 8 Combined with the above Example 7, after the TCP protocol stack module of the receiving end electronic device calculates the SN range corresponding to the lost data packet, the TCP protocol stack module of the receiving end electronic device (i.e., the above-mentioned second module) reports to the sending end electronic device. If the device sends the SN number of data packet 4 (that is, the SN number after the above-mentioned lost data packet), then the subsequent sending end will send data packet 1, data packet 2, and data packet 3 to the receiving end electronic device.
- the TCP protocol stack module of the receiving end electronic device i.e., the above-mentioned second module
- the receiving end electronic device can send the packet loss information to the sending end electronic device and inform the sending end electronic device of the content that needs to be retransmitted in the future, thereby saving transmission resources. And improve the efficiency of subsequent data transmission.
- the receiving end electronic device when data transmission is interrupted and the receiving end electronic device determines that a packet loss event occurs, the receiving end electronic device will generate a first information including a first quantity (used to indicate lost data packets) or a lost packet. package event pair Afterwards, when data transmission is restored, the receiving end electronic device will send the above-mentioned first message and data recovery information to the sending end electronic device. In this way, when data transmission is interrupted, data transmission congestion can be avoided by changing the amount of first information sent to the sending end electronic device or directly sending information corresponding to the packet loss event to the sending end electronic device, thereby improving data transmission efficiency. .
- the above-mentioned first message is a first amount of first information
- the above-mentioned step 302 when the above-mentioned first message and data recovery information are sent to the sending end electronic device, in this
- the data transmission method provided by the application embodiment may include the following step A:
- Step A The receiving end electronic device sends the first amount of first information and the above data recovery information to the sending end electronic device within a first predetermined time period.
- the first predetermined time period includes any of the following: the time period agreed between the receiving end electronic device and the sending end electronic device, from the interruption of data transmission to the receiving end electronic device receiving the lost data packet. duration.
- the above-mentioned first message includes a first amount of first information
- the data transmission method provided in the embodiment of this application may include step B:
- Step B The receiving end electronic device determines the transmission method corresponding to the first quantity of first information.
- the above-mentioned transmission method includes any of the following: when data transmission is resumed and the reception time interval of the received N data packets is less than a predetermined time interval, sending the above-mentioned third packet within the above-mentioned first predetermined time period.
- a quantity of first information, N is a positive integer; within the above-mentioned first predetermined time period, suspend sending the above-mentioned first information after sending the above-mentioned first quantity of first information; within the above-mentioned first predetermined time period, send the above-mentioned first information at predetermined intervals.
- a quantity of first information is a positive integer
- the first transmission method is: when data transmission is restored and the reception time interval of the received N data packets is less than a predetermined time interval, sending the first amount of first information within the first predetermined time period, N is a positive integer. Specifically, when data transmission is restored, the receiving end electronic device first obtains the time interval between N data packets sent by the sending end electronic device, and associates the time interval between the N data packets with the data transmission interruption Comparing the time intervals (i.e. predetermined time intervals) between previously received data packets sent by the sending end electronic device, the time interval between N data packets is smaller than the time interval between the data packets sent by the sending end electronic device before the data transmission terminal.
- the receiving end electronic device suspends sending the first information corresponding to the N data packets within the first predetermined time period or only sends the first amount of the first information until the time interval corresponding to the received data packets returns to The time interval before data transmission is interrupted (i.e., the scheduled time interval).
- the N data packets are the first data packets received by the receiving end electronic device when data transmission is restored.
- the time interval between the receiving end electronic device receiving the data packet sent by the sending end electronic device is also stable.
- the time interval for receiving the data packet is 1.1 seconds - 2 seconds; in the case of reconnection after data interruption, the sending end electronic device will quickly send the cached data packet to the receiving end electronic device.
- the time interval for the receiving end electronic device to receive the data packet is likely to be greatly increased. Decrease, for example, from a time interval of 1.1 seconds - 2 seconds to 0.2 seconds - 0.5 seconds
- the second transmission method is: sending the first quantity of first information at predetermined intervals within the first predetermined time period. Specifically, within the above-mentioned first predetermined time period, the sending of the above-mentioned first information is suspended after the above-mentioned first quantity of first information is sent. Specifically, when data transmission is resumed, the receiving end electronic device, after sending the first amount of first information within the first predetermined time period, suspends sending the first information, and then resumes using the target within the first predetermined time period. The first message is sent in the transmission mode.
- the third transmission method is: sending the first quantity of first information at predetermined intervals within the first predetermined time period. Specifically, when data transmission is restored, the receiving end electronic device increases the sending interval of sending the first information within the first predetermined time period, that is, sends the first amount of the first information at the predetermined interval.
- step C in the case where the above-mentioned first message includes the above-mentioned first quantity of first information, after the above-mentioned step 302, the following step C may be included in the data transmission method provided by the embodiment of the present application. :
- Step C If the first condition is met, update the transmission mode of the first message to the target transmission mode.
- the target transmission method is the transmission method used before sending the first message.
- the first condition includes any of the following: the duration of sending the first message reaches a first predetermined duration, and the receiving electronic device receives the missing data packet.
- the above-mentioned target transmission method is: a transmission method of transmitting the first information before the first quantity of first information.
- the target transmission method may be: sending indication information (ie, first information) greater than or equal to a predetermined number of times "Please send data packet 2".
- the first predetermined duration may be agreed in advance by the receiving end electronic device and the sending end electronic device, or Can be customized for users.
- Example 9 Combining the above examples 2 and 3, if the first predetermined duration is 3 seconds, then the receiving end electronic device updates the transmission method of the first information to the transmission method used before sending the first message, that is, transmits the first message. After the duration of a message reaches 3 seconds, the transmission mode of the first message is updated to the target transmission mode.
- the receiving end electronic device will update the transmission mode after receiving the missing data packet indicated by the first information.
- Example 10 Combining the above examples 2 and 3, after the receiving end electronic device receives data packet 2 and data packet 3, it updates the transmission method of the first information (that is, transmits the first amount of first information) back to the target transmission method. .
- the transmission mode of the first information is updated to the target transmission mode. In this way, when data transmission is interrupted, data transmission congestion can be avoided by changing the transmission method of the first information, thereby improving data transmission efficiency.
- the data transmission method provided by the embodiment of the present application may include the following steps D1 to steps D2:
- Step D1 When the first module in the receiving end electronic device determines that a packet loss event occurs, generate the first packet loss information corresponding to the packet loss event, and transmit the first packet loss information to the receiving end electronic device.
- the second module in the device When the first module in the receiving end electronic device determines that a packet loss event occurs, generate the first packet loss information corresponding to the packet loss event, and transmit the first packet loss information to the receiving end electronic device.
- the second module in the device When the first module in the receiving end electronic device determines that a packet loss event occurs, generate the first packet loss information corresponding to the packet loss event, and transmit the first packet loss information to the receiving end electronic device.
- the second module in the device When the first module in the receiving end electronic device determines that a packet loss event occurs, generate the first packet loss information corresponding to the packet loss event, and transmit the first packet loss information to the receiving end electronic device.
- the second module in the device When the first module in the receiving end electronic device determines that a packet loss event occurs, generate the first packet loss information
- a first message is generated, including:
- Step D2 When the above-mentioned second module receives the above-mentioned first packet loss information, the above-mentioned second module will generate Become the first news.
- the above-mentioned first packet loss information includes packet loss event information.
- the second module After the second module receives the packet loss event information, it can be determined that a packet loss event has occurred.
- Example 11 When the first module is a 5G modem module and the second module is a TCP protocol stack module, after determining that a packet loss event occurs, the 5G modem module will generate the first packet loss information used to characterize the packet loss event. And send the first packet loss information to the TCP protocol stack module.
- the TCP protocol stack module will update the transmission method of duplicate ACK (that is, the first information). Specifically, the TCP protocol stack module will control the number of duplicate ACKs sent.
- the data transmission method provided by the embodiment of the present application may include the following steps E1 and step E2:
- Step E1 The above-mentioned receiving end electronic device detects the target parameters.
- Step E2 When the target parameter satisfies the second condition, the receiving electronic device determines that the packet loss event occurs.
- the above target parameters include at least one of the following: data radio bearer DRB, layer 1 block error rate L1 BLER (Layer1, Block Error Rate), wireless link control layer acknowledgment transmission mode sequence number (Layer2 Acknowledge Mode Sequence Number , L2 AM SN).
- the above-mentioned second condition includes at least one of the following: the above-mentioned DRB is in a deleted state; the value corresponding to the above-mentioned L1 BLER is higher than the first threshold and cannot be restored through a predetermined mechanism; the above-mentioned target data corresponding to the L2 AM SN is in a discarded state.
- the execution process of detecting the target parameter by the receiving end electronic device may be completed by the first module of the receiving end electronic device.
- the first module of the receiving end electronic device For example: 5G modem module.
- the deletion method corresponding to the above-mentioned data radio bearer (Data Radio Bearer, DRB) in the deleted state can be: the receiving end electronic device directly deletes it through the reconfiguration message, and also includes other deletion methods, such as radio resource control reconstruction ( RRC establishment) failed, resulting in the deletion of the DRB.
- RRC establishment radio resource control reconstruction
- the above-mentioned first threshold may be preset.
- the above-mentioned predetermined mechanism may be preset.
- the above-mentioned predetermined mechanism may be the retransmission mechanism of layer 2, that is, the L2 retransmission mechanism.
- the above-mentioned L2 retransmission mechanism Can be unacknowledged transmission mode (Unacknowledge Mode, UM).
- the target data corresponding to the above-mentioned L2 AM SN is in a discarded state means: the L2 AM SN is in an out-of-order state and the wireless link layer control protocol (Radio Link Control, RLC) re-establishment occurs.
- RLC Radio Link Control
- the target data is discarded, causing the target data to be in a discarded state.
- the receiving end electronic device can determine the occurrence of a packet loss event through the above multiple methods, and then determine the interruption of data transmission, thereby triggering subsequent relevant data transmission operation steps in a timely manner to ensure efficient and smooth data transmission.
- the data transmission method provided by the embodiment of the present application may include the following step F:
- Step F Send through the first module of the above-mentioned receiving end electronic device to the second module of the above-mentioned receiving end electronic device Data recovery information.
- the first module of the receiving end electronic device is used for data recovery status and generates data recovery information. After that, the first module sends the data recovery information to the second module, thereby triggering The second module sends a first amount of first information.
- the information between the first module and the second module of the receiving end electronic device is unobstructed, reducing the impact of reduced data transmission efficiency caused by network transmission interruption events, and improving data transmission efficiency.
- This embodiment provides another data transmission method, as shown in Figure 2, applied to the sending end electronic device.
- the data transmission method includes the following steps 401 to 403:
- Step 401 The above-mentioned sending-end electronic device receives information corresponding to the packet loss event sent by the receiving-end electronic device.
- the information corresponding to the above-mentioned packet loss event includes at least one of the following: packet loss content information, packet loss event information; the above-mentioned packet loss content information includes any one of the following: the sequence number SN range corresponding to the lost data packet, The packet SN number after the lost packet.
- the description of the information corresponding to the packet loss event, the packet loss content information, and the packet loss event information may refer to the foregoing description, and will not be described again here.
- Step 402 The sending-end electronic device receives the data recovery information sent by the receiving-end electronic device.
- Step 403 The above-mentioned sending-end electronic device does not trigger the first mechanism when the third condition is met.
- the above-mentioned first mechanism includes: a congestion avoidance mechanism.
- the above third condition may be any of the following: the sending end electronic device receives the second packet loss information within the second predetermined time period, the sending end electronic device receives the lost data packet within the SN range.
- the congestion avoidance mechanism will be triggered after the sending end electronic device receives multiple first messages within a unit time. This congestion avoidance mechanism causes data transfer rates to decrease.
- the sending end electronic device when the sending end electronic device receives the information corresponding to the packet loss event (packet loss content information and/or packet loss event information) sent by the receiving end electronic device, it receives the information corresponding to the packet loss event sent by the receiving end electronic device. After the data recovers information, the congestion avoidance mechanism will not be triggered if the third condition is met. In this way, when data transmission is interrupted, a reduction in the data transmission rate can be avoided, and the previous data transmission rate can be maintained within a certain range, thereby improving data transmission efficiency.
- packet loss event packet loss content information and/or packet loss event information
- the data transmission method provided by the embodiment of the present application may include the following step G:
- Step G Based on the above-mentioned packet loss content information, the sending-end electronic device does not trigger the first mechanism when receiving the transmission instruction information corresponding to the lost data packet within the above-mentioned SN range.
- the transmission instruction information corresponding to the lost data packets in the SN range may include: the data packets in the SN range corresponding to the lost data packets, and the data packets corresponding to the SN numbers before the SN numbers after the lost data packets.
- the sending instruction information corresponding to the lost data packets within the above SN range can be used to inform the sending end electronic device not to trigger the first mechanism when receiving the sending instruction information.
- Example 12 Assume that the sending end electronic device needs to transmit 4 data packets to the receiving end electronic device.
- the four data packets have their own numbers, namely data packet 1, data packet 2, data packet 3, and data packet 4.
- the receiving end electronic device After the receiving end electronic device receives the data packet 1, it will send the instruction message "Please send data packet 2" to the sending end electronic device (i.e., the above-mentioned sending end electronic device Send instruction information), the instruction information is the first information mentioned above in this application.
- the sending end electronic device Data packet 4 is sent to the receiving end electronic device.
- Data packet 2 and data packet 3 that should have been sent became lost data packets due to the interruption of data transmission.
- the receiving end electronic device will continue to send "Please "Send Data Packet 2" instruction information
- the sending end electronic device will also continuously receive the instruction information "Please send Data Packet 2".
- the packet loss information including the packet loss event information and the packet loss content information is sent to the sending end electronic device.
- the packet loss content information includes: data packet 2 and data The SN range corresponding to packet 3, data packet 2 and the SN number after data packet 3. Then, after receiving the packet loss information, the sending end electronic device will not trigger the congestion avoidance mechanism when receiving the above-mentioned "Please send data packet 2" instruction information.
- the sending end electronic device can determine in advance which specific data packets are lost data packets through the packet loss content information, and then when receiving the transmission instruction information instructing it to send the lost data packets, the congestion avoidance mechanism will not be triggered, thereby avoiding Data transmission reduction probability in case of data transmission interruption.
- the data transmission method provided by the embodiment of the present application may include the following steps H1 and steps H2:
- Step H1 The sending end electronic device obtains the second predetermined time period.
- Step H2 The sending end electronic device does not trigger the first mechanism within the above-mentioned second predetermined time period.
- the second predetermined duration includes any of the following: the duration agreed upon by the sending electronic device and the receiving electronic device, and the duration calculated by the sending electronic device based on the packet loss information.
- steps H1 and H2 there is no need to receive the packet loss content information sent by the receiving end electronic device.
- Example 13 Combined with the above Example 12, when the sending end electronic device also continuously receives the instruction information "Please send data packet 2", the receiving end electronic device sends the packet loss information including the packet loss event information. To the sending end electronic device, the packet loss event information is used to inform the sending end electronic device that a packet loss event currently occurs. Then, after receiving the packet loss information, the sending end electronic device will not trigger the congestion avoidance mechanism within the second predetermined time period.
- the sending end electronic device can confirm the packet loss event as early as possible through the packet loss event information, and the congestion avoidance mechanism will not be triggered within the second predetermined period of time, thereby avoiding the probability of data transmission being reduced when data transmission is interrupted.
- the data transmission method provided by the embodiment of the present application can Includes the following steps I1 and I2:
- Step I1 The above-mentioned sending-end electronic device calculates the number of lost data packets based on the first information.
- Step I2 The sending-end electronic device determines the second predetermined duration based on the number of lost data packets and the transmission information of the lost data packets.
- the above-mentioned first information is the sending instruction information corresponding to the packet loss information sent by the receiving end electronic device to the sending end electronic device.
- the above first information is used to indicate lost data packets.
- the transmission information of the lost data packet includes any of the following: the transmission rate of the lost data packet, and the time it takes to receive the acknowledgment character ACK information corresponding to the lost data packet.
- the sending end electronic device does not receive the sending instruction information corresponding to the sent data packet, it will not The data packets on the sending side of the electronic device are deleted. For example, combined with the above example 1, after the electronic device at the sending end sends data packet 1, both data packet 2 and data packet 3 sent in the middle are lost. The receiving end receives data packet 4. For the sending end, it does not receive the data packet. The sending instruction information "Please send data packet 3" corresponding to data packet 2 and the sending instruction information "Please send data packet 4" corresponding to data packet 3 are received. Therefore, the sending end electronic device caches data packet 2 and data packet 3. information until the sending instruction information corresponding to the above-mentioned data packet 2 and data packet 3 is received.
- the sending end electronic device can confirm the retransmission according to the data transmission rate before the packet loss event starts, combined with the number of lost packets. The time required for these lost packets.
- Example 14 Combined with the above Example 12, when the sending end electronic device continuously receives the instruction information "Please send data packet 2", after receiving the data recovery information sent by the receiving end electronic device, the sending end electronic device The number of data packets transmitted from data packet 2 to data packet 4 is calculated, and combined with the data packet transmission rate, the time required to transmit the above-mentioned data packet 2 to data packet 4 is calculated (ie, the above-mentioned second predetermined time length).
- the sending end electronic device can, based on the number of lost data packets and the time required to receive the ACK information, That is, the round-trip time (RTT) determines the second scheduled time.
- RTT round-trip time
- the above ACK information may be the above first information.
- Example 15 Combined with the above example 12, in the case where the sending end electronic device also continuously receives the instruction message "Please send data packet 2", the sending end electronic device continuously receives the "Please send data packet 2" ” instruction information, after receiving the data recovery information sent by the receiving end electronic device, the sending end electronic device will calculate the transmission data packet 2 to data packet 4 number of data packets, and then calculate the ACK information corresponding to the data packets received from data packet 2 to data packet 4, that is, the transmission instruction information of "Please send data packet 3", the transmission instruction information of "Please send data packet 4", " The time required for the transmission instruction information of "Please send data packet 5" is calculated to calculate the time required for transmitting the above-mentioned data packet 2 to data packet 4 (ie, the above-mentioned second predetermined time length).
- the sending end electronic device can determine the second predetermined duration through calculation based on the known information, thereby more accurately determining the duration that does not trigger the first mechanism, thereby improving the data transmission efficiency while ensuring the reliability of the data transmission system. .
- the execution subject may be a data transmission device, or a control module in the data transmission device for executing the data transmission method.
- the method of performing data transmission by the data transmission device is taken as an example to describe the data transmission device provided by the embodiment of the present application.
- FIG. 3 is a schematic structural diagram of a first possible implementation of the data transmission device provided by the embodiment of the present application.
- the above-mentioned data transmission device 600 includes: the above-mentioned generation module 601, used to generate a first message when data transmission is interrupted and a packet loss event is determined to occur.
- the above-mentioned first message includes any of the following: The first quantity of first information, the information corresponding to the above-mentioned packet loss event; the above-mentioned sending module 602 is used to send the above-mentioned first message generated by the above-mentioned generating module 601 and data recovery to the sending-end electronic device when data transmission is restored.
- the above-mentioned first information is used to indicate lost data packets;
- the information corresponding to the above-mentioned packet loss event includes at least one of the following: packet loss content information, packet loss event information;
- the above-mentioned packet loss content information includes any of the following: loss The sequence number SN range corresponding to the data packet, and the SN number of the data packet after the data packet is lost.
- the receiving end electronic device when data transmission is interrupted and the receiving end electronic device determines that a packet loss event occurs, the receiving end electronic device will generate a first information including a first amount (used to indicate the loss). number packet) or information corresponding to the packet loss event. Later, when data transmission is restored, the receiving end electronic device will send the above-mentioned first message and data recovery information to the sending end electronic device. In this way, when data transmission is interrupted, data transmission congestion can be avoided by changing the amount of first information sent to the sending end electronic device or directly sending information corresponding to the packet loss event to the sending end electronic device, thereby improving data transmission efficiency. .
- the sending module 602 when the first message is a first amount of first information, the sending module 602 is configured to send the above-mentioned message to the sending end electronic device within a first predetermined time period.
- the above-mentioned device 600 further includes: a determination module 603; the above-mentioned determination module 603 is used to determine the above-mentioned first quantity.
- the above-mentioned device 600 further includes an update module 604; In the case of , update the transmission method of the first message generated by the generation module to the target transmission method; wherein the target transmission method is the transmission method used before sending the first message; the first condition includes any of the following Item: The duration of sending the first message reaches the first predetermined duration, and the above-mentioned receiving end electronic device receives the above-mentioned lost data packet.
- the above-mentioned device 600 also includes a detection module 605 and a determination module 603; the above-mentioned detection module 605 is used to detect the target parameters; the above-mentioned determination module 603 is used to detect the above-mentioned target in the above-mentioned detection module.
- the above-mentioned receiving end electronic device determines that the above-mentioned packet loss event occurs; wherein, the above-mentioned target parameters include at least one of the following: data wireless bearer DRB, layer 1 block error rate L1 BLER, wireless link control layer The confirmed transmission mode sequence number L2 AM SN; the above second condition includes at least one of the following: the above DRB is in a deleted state; the value corresponding to the above L1 BLER is higher than the first threshold and cannot be restored through the predetermined mechanism; the above L2 AM SN corresponds to The target data is in a discarded state.
- the above-mentioned target parameters include at least one of the following: data wireless bearer DRB, layer 1 block error rate L1 BLER, wireless link control layer The confirmed transmission mode sequence number L2 AM SN; the above second condition includes at least one of the following: the above DRB is in a deleted state; the value corresponding to the above L1 BLER is higher than the first threshold and cannot be restored through the predetermined mechanism; the above
- FIG. 4 is a schematic structural diagram of a second possible implementation of the data transmission device provided by the embodiment of the present application.
- the above-mentioned data transmission device 700 includes: a receiving module 701 and an execution module 702; the above-mentioned receiving module 701 is used to receive information corresponding to a packet loss event sent by the receiving end electronic device.
- the information corresponding to the above-mentioned packet loss event includes At least one of the following: packet loss content information, packet loss event information; the above-mentioned packet loss content information includes any of the following: the sequence number SN range corresponding to the lost data packet, the SN number of the data packet after the lost data packet; the above-mentioned receiving module 701 , and is also used to receive data recovery information sent by the receiving end electronic device; the above-mentioned execution module 702 is used to not trigger the first mechanism when the third condition is met.
- the above-mentioned first mechanism includes: a congestion avoidance mechanism.
- the data transmission device receives the information corresponding to the packet loss event (packet loss content information and/or packet loss event information) sent by the receiving end electronic device, and receives the information corresponding to the packet loss event sent by the receiving end electronic device.
- the congestion avoidance mechanism will not be triggered if the third condition is met. In this way, when data transmission is interrupted, the data transmission rate can be avoided and the previous data transmission speed can be maintained within a certain range. rate, thereby improving data transmission efficiency.
- the execution module 702 when the information corresponding to the packet loss event is the packet loss content information, the execution module 702 is specifically configured to, according to the packet loss content information, receive the SN range When the indication information corresponding to the lost data packet is sent, the first mechanism is not triggered.
- the above-mentioned device 700 when the information corresponding to the above-mentioned packet loss event is the above-mentioned packet loss event information, the above-mentioned device 700 further includes an acquisition module 703; the above-mentioned acquisition module 703 is used to acquire the second predetermined duration.
- the above-mentioned second predetermined duration includes any of the following: the duration agreed upon by the above-mentioned sending-end electronic device and the above-mentioned receiving-end electronic device, the duration calculated by the above-mentioned sending-end electronic device based on the above-mentioned packet loss information; the above-mentioned execution module 702 is specifically used for Within the second predetermined time period obtained by the above acquisition module, the first mechanism is not triggered.
- the above device 700 further includes: a calculation module 704 and a determination module 705;
- the calculation module 704 is used to calculate the number of lost data packets based on the first information.
- the first information is the transmission instruction information corresponding to the packet loss information sent by the receiving end electronic device to the sending end electronic device.
- the above first information is used to indicate Lost data packets; the above-mentioned determination module 705 is used to determine the above-mentioned second predetermined duration based on the number of the above-mentioned lost data packets calculated by the above-mentioned calculation module 704 and the transmission information of the above-mentioned lost data packets.
- the above-mentioned transmission information of the lost data packets includes any of the following: One item: the transmission rate of the above-mentioned lost data packet, and the time taken to receive the acknowledgment character ACK information corresponding to the above-mentioned lost data packet.
- the modules that must be included in the data transmission device 600 are represented by solid-line boxes, such as the generation module 601; the modules that may or may not be included in the data transmission device 600 are represented by dotted-line boxes, such as Detection module 604; As shown in Figure 4, the modules that must be included in the data transmission device 700 are represented by solid line boxes, such as the receiving module 701; the modules that may or may not be included in the data transmission device 700 are represented by dotted line boxes, such as the calculation Module 704.
- the data transmission device in the embodiment of the present application may be a device, or may be a component, integrated circuit, or chip in the terminal.
- the device may be a mobile electronic device or a non-mobile electronic device.
- the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (personal digital assistant).
- UMPC ultra-mobile personal computer
- PDA personal digital assistant
- non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computers (personal computers, PC), televisions (television, TV), teller machines or self-service machines, etc., this application The examples are not specifically limited.
- the data transmission device in the embodiment of the present application may be a device with an operating system.
- the operating system can be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of this application.
- the data transmission device provided by the embodiments of the present application can implement various processes implemented by the method embodiments in Figures 1 and 2. To avoid duplication, they will not be described again here.
- this embodiment of the present application also provides an electronic device 800, including a processor 801, a memory 802, and programs or instructions stored on the memory 802 and executable on the processor 801.
- a processor 801 a memory 802
- the program or instruction is executed by the processor 801
- each process of the above-mentioned data transmission method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, the details will not be described here.
- the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
- FIG. 6 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
- the electronic device 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, etc. part.
- the electronic device 100 may also include a power supply (such as a battery) that supplies power to various components.
- the power supply may be logically connected to the processor 110 through a power management system, thereby managing charging, discharging, and function through the power management system. Consumption management and other functions.
- the structure of the electronic device shown in Figure 5 does not constitute a limitation on the electronic device.
- the electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components, which will not be described again here. .
- the processor 110 generates a first message when data transmission is interrupted and a packet loss event is determined to occur.
- the first message includes any of the following: a first amount of first information , information corresponding to the above-mentioned packet loss event; the radio frequency unit 101 is used to send the above-mentioned first message and data recovery information to the sending end electronic device when data transmission is restored; wherein the above-mentioned first information is used to indicate the loss of the data packet ;
- the information corresponding to the above-mentioned packet loss event includes at least one of the following: packet loss content information, packet loss event information; the above-mentioned packet loss content information includes any of the following: the sequence number SN range corresponding to the lost data packet, the sequence number after the lost data packet Packet SN number.
- the receiving end electronic device when data transmission is interrupted and the receiving end electronic device determines that a packet loss event occurs, the receiving end electronic device will generate a first information including a first amount (for indicating (Lost data packet) or information corresponding to the packet loss event. Later, when data transmission is restored, the receiving end electronic device will send the above-mentioned first message and data recovery information to the sending end electronic device. In this way, when data transmission is interrupted, data transmission congestion can be avoided by changing the amount of first information sent to the sending end electronic device or directly sending information corresponding to the packet loss event to the sending end electronic device, thereby improving data transmission efficiency. .
- the processor 110 is specifically configured to send the first amount of first information to the sending end electronic device within a first predetermined time period. and the above-mentioned data recovery information; wherein, the above-mentioned first predetermined time period includes any of the following: the time period agreed between the above-mentioned receiving end electronic device and the above-mentioned sending end electronic device, from the interruption of data transmission to the above-mentioned receiving end electronic device receiving the above-mentioned lost data The length of time between packets.
- the processor 110 is further configured to determine a transmission method corresponding to the first amount of first information; wherein the transmission method includes any of the following: One item: when data transmission is restored and the reception time interval of the received N data packets is less than the predetermined time interval, the above-mentioned first number of first information is sent within the above-mentioned first predetermined time period, N is positive Integer; within the above-mentioned first predetermined time period, suspend sending the above-mentioned first information after sending the above-mentioned first quantity of first information; within the above-mentioned first predetermined period of time, send the above-mentioned first quantity of first information at predetermined intervals.
- the processor 110 is further configured to update the transmission mode of the first message to the target transmission if the first condition is met. method; wherein the target transmission method is the transmission method used before sending the first message; the first condition includes any of the following: the duration of sending the first message reaches a first predetermined duration, and the receiving end electronic device receives to the above mentioned lost packets.
- the processor 110 is also configured to detect the target parameter; the processor 110 is also configured to determine that the packet loss event occurs when the target parameter meets the second condition; wherein the target parameter includes at least one of the following: item: Data radio bearer DRB, layer 1 block error rate L1 BLER, wireless link control layer acknowledgment transmission mode sequence number L2 AM SN; the above second condition includes at least one of the following: the above DRB is in a deleted state; the value corresponding to the above L1 BLER It is higher than the first threshold and cannot be recovered through the predetermined mechanism; the target data corresponding to the above-mentioned L2 AM SN is in a discarded state.
- the target parameter includes at least one of the following: item: Data radio bearer DRB, layer 1 block error rate L1 BLER, wireless link control layer acknowledgment transmission mode sequence number L2 AM SN
- the above second condition includes at least one of the following: the above DRB is in a deleted state; the value corresponding to the above L1 BLER It is higher than the first threshold and cannot be recovered
- the above-mentioned radio frequency unit 101 is used to receive information corresponding to the packet loss event sent by the receiving end electronic device.
- the information corresponding to the above-mentioned packet loss event includes at least one of the following: packet loss content information, packet loss Event information; the above-mentioned packet loss content information includes any of the following: the sequence number SN range corresponding to the lost data packet, and the SN number of the data packet after the lost data packet; the above-mentioned radio frequency unit 101 is also used to receive the SN sent by the above-mentioned receiving end electronic device.
- Data recovery information; the above-mentioned processor 110 is configured not to trigger the first mechanism when the third condition is met.
- the above-mentioned first mechanism includes: a congestion avoidance mechanism.
- the second electronic device receives the information corresponding to the packet loss event (packet loss content information and/or packet loss event information) sent by the receiving end electronic device, and receives the received information from the receiving end electronic device. After the sent data recovery information is met, the congestion avoidance mechanism will not be triggered if the third condition is met. In this way, when data transmission is interrupted, a reduction in the data transmission rate can be avoided, and the previous data transmission rate can be maintained within a certain range, thereby improving data transmission efficiency.
- packet loss event packet loss content information and/or packet loss event information
- the above-mentioned radio frequency unit 101 is configured to, based on the above-mentioned packet loss content information, send a corresponding message corresponding to the lost data packet within the above-mentioned SN range after receiving the above-mentioned packet loss content information.
- the first mechanism is not triggered.
- the processor 110 when the information corresponding to the packet loss event is the packet loss event information, when the data transmission of the sending end electronic device is restored and the third condition is met, the processor 110 is specifically configured to obtain The second predetermined duration includes any of the following: the duration agreed upon by the sending electronic device and the receiving electronic device, the duration calculated by the sending electronic device based on the packet loss information; the processor 110, specifically Used to not trigger the first mechanism within the above-mentioned second predetermined time period.
- the processor 110 is specifically configured to calculate the number of lost data packets based on the first information.
- the information is the transmission instruction information corresponding to the packet loss information sent by the receiving end electronic device to the sending end electronic device.
- the above-mentioned first information is used to indicate the loss of data packets; the processor 110 is specifically configured to calculate the number of lost data packets and the above-mentioned loss according to the number of lost data packets.
- the transmission information of the data packet determines the second predetermined duration, and the transmission information of the lost data packet includes any of the following: the transmission rate of the lost data packet, and the time it takes to receive the acknowledgment character ACK information corresponding to the lost data packet.
- the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042.
- the graphics processor 1041 is responsible for the image capture device (GPU) in the video capture mode or the image capture mode. Process the image data of still pictures or videos obtained by cameras (such as cameras).
- the display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
- the user input unit 107 includes a touch panel 1071 and other input devices 1072 .
- Touch panel 1071 is also called a touch screen.
- the touch panel 1071 may include two parts: a touch detection device and a touch controller.
- Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.
- Memory 109 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
- the processor 110 can integrate an application processor and a modem processor, where the application processor mainly processes operating systems, user interfaces, application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above modem processor may not be integrated into the processor 110 .
- Embodiments of the present application also provide a readable storage medium.
- Programs or instructions are stored on the readable storage medium.
- the program or instructions are executed by a processor, each process of the above data transmission method embodiment is implemented, and the same can be achieved. The technical effects will not be repeated here to avoid repetition.
- the processor is the processor in the electronic device described in the above embodiment.
- the readable storage media includes computer-readable storage media, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disks or optical disks, etc.
- An embodiment of the present application further provides a chip.
- the chip includes a processor and a communication interface.
- the communication interface is coupled to the processor.
- the processor is used to run programs or instructions to implement the above data transmission method embodiment. Each process can achieve the same technical effect. To avoid duplication, it will not be described again here.
- chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.
- the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation.
- the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology.
- the computer software product is stored in a storage medium (such as ROM/RAM, disk , optical disk), including several instructions to cause a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of this application.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本申请公开了一种数据传输方法、装置、电子设备和存储介质,属于数据传输领域。该方法包括:在数据传输中断、且确定发生丢包事件的情况下,生成第一消息,上述第一消息包括以下任一项:第一数量的第一信息,上述丢包事件对应的信息;在数据传输恢复的情况下,向发送端电子设备发送上述第一消息和数据恢复信息;其中,上述第一信息用于指示丢失数据包;上述丢包事件对应的信息包括以下至少一项:丢包内容信息,丢包事件信息;上述丢包内容信息包括以下任一项:丢失数据包对应的序列号SN范围,丢失数据包之后的数据包SN编号。
Description
相关申请的交叉引用
本申请主张在2022年03月23日在中国提交的中国专利申请号202210292432.9的优先权,其全部内容通过引用包含于此。
本申请属于通信技术领域,具体涉及一种数据传输方法、装置、电子设备和存储介质。
在网络传输的过程中,传输控制协议(Transmission Control Protocol/Internet Protocol,TCPIP)是普遍应用的数据传输协议。
在通过TCP/IP协议传输数据的过程中,在发送端电子设备向接收端电子设备发送数据包,接收端电子设备接收成功后,将会向发送端电子设备发送后续数据包的发送指示信息。若网络连接中断,为了保证数据传输尽可能完整,在相关技术中,协议一般会指定丢弃中断发生时传输中的数据包,并暂时在发送端电子设备缓存新产生的数据包及之前未传输成功的数据包,待网络连接恢复后,发送端电子设备将缓存的数据包发送至接收端电子设备,从而最大程度的减少丢包情况。
然而,由于网络连接中断的过程中,很有可能有大量数据包缓存在发送端电子设备中,因此,在网络连接成功后,缓存的大量数据包全部发送至接收端电子设备时,接收端电子设备会连续向发送端电子设备发送大量的发送指示信息,进而导致发送端电子设备拥堵,最终造成数据传输速率降低。
发明内容
本申请实施例的目的是提供一种数据传输方法、装置、电子设备和存储介质,能够解决网络连接中断时,发送端电子设备数据传输拥堵,最终造成数据传输速率降低问题。
第一方面,本申请实施例提供了一种数据传输方法,该方法包括:在数据传输中断、且确定发生丢包事件的情况下,生成第一消息,上述第一消息包括以下任一项:第一数量的第一信息,上述丢包事件对应的信息;在数据传输恢复的情况下,向发送端电子设备发送上述第一消息和数据恢复信息;其中,上述第一信息用于指示丢失数据包;上述丢包事件对应的信息包括以下至少一项:丢包内容信息,丢包事件信息;上述丢包内容信息包括以下任一项:丢失数据包对应的序列号SN范围,丢失数据包之后的数据包SN编号。
第二方面,本申请实施例提供了一种数据传输方法,该方法包括:接收接收端电子设备发送的丢包事件对应的信息,上述丢包事件对应的信息包括以下至少一项:丢包内容信
息,丢包事件信息;上述丢包内容信息包括以下任一项:丢失数据包对应的序列号SN范围,丢失数据包之后的数据包SN编号;接收上述接收端电子设备发送的数据恢复信息;在满足第三条件的情况下,不触发第一机制,上述第一机制包括:拥塞避免机制。
第三方面,本申请实施例提供了一种数据传输装置,上述装置包括:生成模块和发送模块;上述生成模块,用于在数据传输中断、且确定发生丢包事件的情况下,生成第一消息,上述第一消息包括以下任一项:第一数量的第一信息,上述丢包事件对应的信息;上述发送模块,用于在数据传输恢复的情况下,向发送端电子设备发送上述生成模块生成的上述第一消息和数据恢复信息;其中,上述第一信息用于指示丢失数据包;上述丢包事件对应的信息包括以下至少一项:丢包内容信息,丢包事件信息;上述丢包内容信息包括以下任一项:丢失数据包对应的序列号SN范围,丢失数据包之后的数据包SN编号
第四方面,本申请实施例提供了一种数据传输装置,上述装置包括:上述装置包括:接收模块和执行模块;上述接收模块,用于接收接收端电子设备发送的丢包事件对应的信息,上述丢包事件对应的信息包括以下至少一项:丢包内容信息,丢包事件信息;上述丢包内容信息包括以下任一项:丢失数据包对应的序列号SN范围,丢失数据包之后的数据包SN编号;上述接收模块,还用于接收上述接收端电子设备发送的数据恢复信息;上述执行模块,用于在满足第三条件的情况下,不触发第一机制,上述第一机制包括:拥塞避免机制
第五方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面或者第二方面所述的方法的步骤。
第六方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面或者第二方面所述的方法的步骤。
第七方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面或者第二方面所述的方法。
在本申请实施例中,在数据传输中断、且接收端电子设备确定发生丢包事件的情况下,接收端电子设备将生成包括第一数量的第一信息(用于指示丢失数据包)或者丢包事件对应的信息,之后,在数据传输恢复的情况下,接收端电子设备将向发送端电子设备发送上述第一消息和数据恢复信息。如此,在数据传输中断的情况下,可以通过改变向发送端电子设备发送的第一信息的数量或者直接向发送端电子设备发送丢包事件对应的信息,避免数据传输拥堵,从而提高数据传输效率。
图1是本申请实施例提供的一种数据传输方法的流程示意图之一;
图2是本申请实施例提供的一种数据传输方法的流程示意图之二;
图3为本申请实施例提供的一种数据传输装置的结构示意图之一;
图4为本申请实施例提供的一种数据传输装置的结构示意图之二;
图5为本申请实施例提供的一种电子设备的结构示意图之一;
图6为本申请实施例提供的一种电子设备的结构示意图之二。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的数据传输方法进行详细地说明。
本实施例提供一种数据传输方法,如图1所示,该数据传输方法应用于接收端电子设备,包括以下步骤301和步骤302:
步骤301:在数据传输中断、且确定发生丢包事件的情况下,接收端电子设备生成第一消息。
在本申请实施例中,上述第一消息包括以下任一项:第一数量的第一信息,上述丢包事件对应的信息。
在本申请实施例中,上述第一信息用于指示丢失数据包;上述丢包事件对应的信息包括以下至少一项:丢包内容信息,丢包事件信息;上述丢包内容信息包括以下任一项:丢失数据包对应的序列号(Serial Number,SN)范围,丢失数据包之后的数据包SN编号。
在本申请实施例中,上述丢包事件可以由接收端电子设备确定,具体的,接收端电子设备确定丢包事件的方式可以参照下述内容。
示例性的,当上述第一消息为第一数量的第一信息时,在后续数据传输恢复后,接收端电子设备将向发送端设备发送第一数量的第一信息。进一步地,在接收端设备生成上述第一数量的第一信息之前,第一信息的传输方式为:目标传输方式,该目标传输方式传输的第一信息的数量与第一数量不同,具体的,该目标传输方式可以详细参照下述内容。
需要说明的是,在本申请之前的技术方案中的传输方式,即目标传输方式可以通过下述例1说明。例1:假设发送端电子设备需要向接收端电子设备传输4个数据包,该四个数据包具备各自的编号,分别为数据包1、数据包2、数据包3、数据包4,则,在接收端电子设备接收到数据包1后,会向发送端电子设备发送“请发送数据包2”的指示信息,该指示信息为本申请上述的第一信息。在发生数据传输中断后,在接收端电子设备接收到数据包1后,依旧会向发送端电子设备发送“请发送数据包2”的指示信息,但由于数据传输中断,因此,发送端电子设备向接收端电子设备发送的是数据包4,本应发送的数据包2和数据包3由于数据传输中断成为了丢失数据包,在该种情况下,接收端电子设备会不间断的发送“请发送数据包2”的指示信息,此时该指示信息称为第一信息,相应的,不间断的发送“请发送数据包2”的指示信息的传输方式为:发送第一数量的第一信息之前使用的传输方式。
进一步的,在上述例1中,若不间断的发送“请发送数据包2”的指示信息,在发送该“请发送数据包2”的指示信息(即第一信息)到达预定次数的情况下,会触发发送端的拥塞避免机制,进而导致发送端电子设备发送数据拥堵、瘫痪,无法正常传输数据信息。
在一种实施例中,上述第一信息可以为重复确认字符(duplicate Acknowledge character,duplicate ACK)。进一步地,在接收端电子设备发送duplicate ACK后,相应的,发送端电子设备会恢复相同数量的TCP序列号(TCP Serial Number TCP SN)。
示例性的,上述第一数量可以为提前预设的,也可以为用户自定义的。
进一步的,上述第一数量应当小于导致发送端电子设备触发拥塞避免机制的预定次数。
例2:若发送端电子设备触发拥塞避免机制的预定次数为3次,即发送端电子设备接收上述接收端电子设备发送的“请发送数据包2”的指示信息(即第一信息)达到3次时发送端电子设备触发拥塞避免机制,则可以将第一数量设置为2次。即在发生数据传输中断,接收端电子设备无法接收到第一信息指示的数据包的情况下,更新第一信息的发送数量为第一数量,设定在数据传输恢复后,接收端电子设备最多传输2次上述第一信息,该“最多传输2次上述第一信息”即为第一数量的第一信息。
示例性的,当第一消息包括丢包事件对应的信息时,上述丢包事件对应的信息用于确定并告知发送端电子设备发生丢包事件(即丢包事件信息),和/或丢包事件中对应的丢失数据包的编号信息(即丢包内容信息),具体的,包括上述丢失数据包对应的序列号SN范围,丢失数据包之后的数据包SN编号。
例3:接收端电子设备在确认发生丢包事件后,将生成用于指示丢包事件的丢包事件信息和/或丢包内容信息。
步骤302:在数据传输恢复的情况下,接收端电子设备向发送端电子设备发送上述第一消息和数据恢复信息。
示例性的,上述数据恢复信息用于指示接收端电子设备和发送端电子设备之间的数据传输恢复正常。
进一步的,该数据恢复信息可以用于告知发送端电子设备开启正常传输数据的传输过程。
在本申请实施例中,上述数据传输恢复的情况需要接收端电子设备自行确认。具体的,接收端电子设备通过内部模块进行确认,接收端电子设备内部的确认方式可以参照下述内容。
需要说明的是,在接收端电子设备中,不同的模块具备不同的功能。在本申请实施例中,接收端电子设备包括第一模块和第二模块,其中,上述第一模块用于确定发生丢包事件,上述第二模块用于更新数据传输协议,数据传输协议用于控制接收端电子设备和发送端电子设备之间的数据传输方式。
在一种示例中,上述第一模块可以为5G调制解调模块(5G modem模块),上述第二模块可以为TCP协议栈模块。
示例性的,在上述接收端电子设备向发送端电子设备发送数据恢复信息时,其具体发送过程为,通过上述第一模块将向上述发送端电子设备发送数据恢复信息。
需要说明的是,上述数据传输恢复的状态接收端电子设备的第一模块确认,并由第一模块生成数据恢复信息,并将该信息发送至发送端电子设备。
如此,在数据传输恢复后,接收端电子设备将数据恢复信息发送至发送端电子设备,以便于发送端电子设备及时进行数据传输,从而有利于提高网络中断发生后的数据传输效率。
例4:结合上述例2,在数据传输恢复,接收端电子设备无法接收到第一信息指示的数据包的情况下,向发送端电子设备传输2次上述第一信息(即上述第一数量的第一信息)和数据恢复信息。
例5:结合上述例3,在数据传输恢复,接收端电子设备无法接收到第一信息指示的数据包的情况下,向发送端电子设备传输丢包事件信息和丢包内容信息以及数据恢复信息。
在本申请实施例中,上述丢包内容信息中,上述丢失数据包对应的序列号SN范围可以为接收端电子设备推算出的。
在一种示例中,上述丢失数据包对应的序列号SN范围可以为接收端电子设备的第二模块推算出的。
例6:假设发送端电子设备需要向接收端电子设备传输4个数据包,该四个数据包具备各自的编号,分别为数据包1、数据包2、数据包3、数据包4,则,当接收端电子设备接收到数据包1后,会向发送端电子设备发送“请发送数据包2”的指示信息,然而,由于在发生数据传输中断后,发送端电子设备向接收端电子设备发送的数据包为数据包4,则根据数据包的SN编码信息,接收端电子设备的TCP协议栈模块将计算出丢失数据包对应的SN范围为:第二个数据包和第三个数据包,对应对的丢失数据包为数据包2和数据包3。
进一步的,上述接收端电子设备的第二模块可以用于生成上述丢包事件对应的第二丢包信息,并向上述发送端电子设备发送上述第二丢包信息。
在一种实施例中,当上述丢包内容信息包括丢失数据包对应的序列号SN范围时,相当于接收端电子设备将直接告知发送端电子设备丢失数据包对应的SN编号。
例7:结合上述例6,在接收端电子设备的TCP协议栈模块将计算出丢失数据包对应的SN范围后,接收端电子设备的TCP协议栈模块(即上述第二模块)向发送端电子设备发送上述数据包2和数据包3(即丢失数据包)对应的SN范围,则后续发送端将向接收端电子设备发送数据包2和数据包3。
在一种实施例中,当上述丢包内容信息包括丢失数据包之后的SN编号时,接收端电子设备告知发送端电子设备在丢失数据包之后的SN编号之前的SN编号对应的数据包均为丢失数据包。
例8:结合上述例7,在接收端电子设备的TCP协议栈模块将计算出丢失数据包对应的SN范围后,接收端电子设备的TCP协议栈模块(即上述第二模块)向发送端电子设备发送数据包4的SN编号(即上述丢失数据包之后的SN编号),则后续发送端将向接收端电子设备发送数据包1、数据包2和数据包3。
如此,在发生数据传输中断进而丢失数据包的事件时,接收端电子设备可以将丢包信息发送至发送端电子设备,并告知发送端电子设备后续需要补传的内容,从而可以节约传输资源,并提高后续的数据传输效率。
在本申请实施例中,在数据传输中断、且接收端电子设备确定发生丢包事件的情况下,接收端电子设备将生成包括第一数量的第一信息(用于指示丢失数据包)或者丢包事件对
应的信息,之后,在数据传输恢复的情况下,接收端电子设备将向发送端电子设备发送上述第一消息和数据恢复信息。如此,在数据传输中断的情况下,可以通过改变向发送端电子设备发送的第一信息的数量或者直接向发送端电子设备发送丢包事件对应的信息,避免数据传输拥堵,从而提高数据传输效率。
可选地,在本申请实施例中,在上述第一消息为第一数量的第一信息的情况下,上述步骤302中向发送端电子设备发送上述第一消息和数据恢复信息中,在本申请实施例提供的数据传输方法中可以包括如下步骤A:
步骤A:接收端电子设备在第一预定时长内,向上述发送端电子设备发送上述第一数量的第一信息和上述数据恢复信息。
示例性的,上述第一预定时长包括以下任一项:上述接收端电子设备和上述发送端电子设备约定的时长,自数据传输中断起至上述接收端电子设备接收到上述丢失数据包之间的时长。
可选的,在本申请实施例中,在上述第一消息包括第一数量的第一信息的情况下,在上述步骤302中的向发送端电子设备发送上述第一消息和数据恢复信息之前,在本申请实施例提供的数据传输方法可以包括步骤B:
步骤B:接收端电子设备确定上述第一数量的第一信息对应的传输方式。
示例性的,上述传输方式包括以下任一项:在数据传输恢复的情况下,接收到的N个数据包的接收时间间隔小于预定时间间隔的情况下,在上述第一预定时长内发送上述第一数量的第一信息,N为正整数;在上述第一预定时长内,发送上述第一数量的第一信息后暂停发送上述第一信息;在上述第一预定时长内按照预定间隔发送上述第一数量的第一信息。
对上述三种传输方式的解释如下:
第一传输方式为:在数据传输恢复的情况下,接收到的N个数据包的接收时间间隔小于预定时间间隔的情况下,在上述第一预定时长内发送上述第一数量的第一信息,N为正整数。具体的,在数据传输恢复的情况下,接收端电子设备先行获取接收到发送端电子设备发送的N个数据包之间的时间间隔,并将N个数据包之间的时间间隔与数据传输中断之前接收发送端电子设备发送的数据包之间的时间间隔(即预定时间间隔)进行对比,在N个数据包之间的时间间隔小于数据传输终端之前发送端电子设备发送的数据包之间的时间间隔的情况下,接收端电子设备在第一预定时长内暂停发送N个数据包对应的第一信息或者仅发送第一数量的第一信息,直至接收到的数据包对应的时间间隔恢复至数据传输中断之前的时间间隔(即预定时间间隔)。其中,N个数据包为数据传输恢复的情况下,接收端电子设备最先接收的若干数据包。
可以理解的是,在数据传输畅通稳定的情况下,接收端电子设备接收到发送端电子设备发送的数据包之间的时间间隔也为稳定的,例如,接收数据包的时间间隔为1.1秒-2秒;而在数据中断后再次连接的情况下,发送端电子设备会将缓存的数据包快速的发送至接收端电子设备,此时,接收端电子设备接收数据包的时间间隔很可能会大大减小,例如,从时间间隔为1.1秒-2秒变为0.2秒-0.5秒
第二传输方式为:上述第一预定时长内按照预定间隔发送上述第一数量的第一信息。具体的,在上述第一预定时长内,发送上述第一数量的第一信息后暂停发送上述第一信息。
具体的,在数据传输恢复的情况下,接收端电子设备在第一预定时长内,在发送第一数量的第一信息后,暂停发送第一信息,在第一预定时长内,再恢复使用目标传输方式时发送第一信息。
第三传输方式为:在上述第一预定时长内按照预定间隔发送上述第一数量的第一信息。具体的,在数据传输恢复的情况下,接收端电子设备在第一预定时长内,增大发送第一信息的发送间隔,即按照预定间隔发送第一数量的第一信息。其中,上述预定间隔可以根据第一预定时长和第一数量确定,在一种实施例中,预定间隔=第一预定时长/第一数量,上述预定间隔也可以随机确定,例如,接收端电子设备连续接收多个数据包后,向发送端电子设备发送一次第一信息。
可选地,在本申请实施例中,在上述第一消息包括上述第一数量的第一信息的情况下,上述步骤302之后,在本申请实施例提供的数据传输方法中可以包括如下步骤C:
步骤C:在满足第一条件的情况下,将上述第一消息的传输方式更新为目标传输方式。
示例性地,上述目标传输方式为上述发送上述第一消息之前使用的传输方式。
示例性地,上述第一条件包括以下任一项:上述发送第一消息的时长达到第一预定时长,上述接收端电子设备接收到上述丢失数据包。
在本申请实施例中,上述目标传输方式为:传输第一数量的第一信息之前的第一信息的传输方式。例如,结合上述内容,目标传输方式可以为:发送大于或者等于预定次数“请发送数据包2”的指示信息(即第一信息)。
在一种实施例中,在上述第一条件包括上述发送第一消息的时长达到第一预定时长的情况下,上述第一预定时长可以为接收端电子设备和发送端电子设备提前约定的,也可以为用户自定义设定的。
例9:结合上述例2和例3,若第一预定时长为3秒,则在接收端电子设备将第一信息的传输方式更新为发送所述第一消息之前使用的传输方式,即传输第一信息的时长达到3秒后,将第一信息的传输方式更新为目标传输方式。
在一种示例中,在上述第一条件包括上述接收端电子设备接收到上述丢失数据包的情况下,接收端电子设备将在接收到第一信息指示的丢失数据包后更新传输方式。
例10:结合上述例2和例3,在接收端电子设备接收到数据包2、数据包3后,将第一信息的传输方式(即传输第一数量的第一信息)更新回目标传输方式。
如此,在满足第一条件的情况下(发送第一消息的时长达到第一预定时长或者接收端电子设备接收到上述丢失数据包),将上述第一信息的传输方式更新为目标传输方式。如此,在数据传输中断的情况下,可以通过改变第一信息的传输方式,避免数据传输拥堵,从而提高数据传输效率。
可选地,在本申请实施例中,上述第一消息为第一数量的第一信息的情况下,上述步骤301中,在本申请实施例提供的数据传输方法中可以包括如下步骤D1至步骤D2:
步骤D1:在上述接收端电子设备中的第一模块确定发生丢包事件的情况下,生成上述丢包事件对应的第一丢包信息,并将上述第一丢包信息传输至上述接收端电子设备中的第二模块。
进一步的,在步骤D1的基础上,生成第一消息,包括:
步骤D2:在上述第二模块接收到上述第一丢包信息的情况下,通过上述第二模块将生
成第一消息。
示例性的,上述第一丢包信息包括丢包事件信息。
示例性的,在上述第二模块接收到上述丢包事件信息后,即可确定发生了丢包事件。
进一步的,在确定丢包事件的情况下,即可确定发生了数据传输中断。
例11:在第一模块为5G modem模块,第二模块为TCP协议栈模块的情况下,5G modem模块在确定发生丢包事件后,将生成用于表征丢包事件的第一丢包信息,并将该第一丢包信息发送至TCP协议栈模块,TCP协议栈模块将更新duplicate ACK(即第一信息)的传输方式,具体的,TCP协议栈模块将控制发送duplicate ACK的数量。
如此,通过接收端电子设备内部模块的信息传输,更加快捷准确的发现丢包事件和数据传输中断事件,从而尽快的检测丢失数据包,进而保证减小信息损耗的前提下,提高数据传输效率。
可选地,在本申请实施例中,在步骤301中的接收端电子设备确定发生丢包事件中,在本申请实施例提供的数据传输方法中可以包括如下步骤E1和步骤E2:
步骤E1:上述接收端电子设备检测目标参数。
步骤E2:在上述目标参数满足第二条件的情况下,上述接收端电子设备确定发生上述丢包事件。
示例性的,上述目标参数包括以下至少一项:数据无线承载DRB,层1误块率L1 BLER(Layer1,Block Error Rate),无线链路控制层的确认传输模式序列号(Layer2 Acknowledge Mode Sequence Number,L2 AM SN)。
示例性的,上述第二条件包括以下至少之一:上述DRB处于删除状态;上述L1 BLER对应的值高于第一阈值且无法通过预定机制恢复;上述L2 AM SN对应的目标数据处于丢弃状态。
在一种示例中,上述接收端电子设备检测目标参数的执行过程可以为接收端电子设备的第一模块完成的。例如:5G modem模块。
示例性的,上述数据无线承载(Data Radio Bearer,DRB)处于删除状态对应的删除方式可以为:接收端电子设备直接通过重配置消息进行的删除,也包括其他删除方式,例如无线资源控制重建(RRC establishment)失败,进而造成DRB的删除。
示例性的,上述第一阈值可以为预设的。
示例性的,上述预定机制可以为预设的,在一种示例中,上述预定机制可以为层2的重传机制,即L2的重传机制,在一种示例中,上述L2的重传机制可以为非确认传输模式(Unacknowledge Mode,UM)。
示例性的,上述L2 AM SN对应的目标数据处于丢弃状态是指:在L2 AM SN处于乱序状态进而发生无线链路层控制协议(Radio Link Control,RLC)重建立,在该重建立过程中造成的目标数据丢弃,从而使得目标数据处于丢弃状态。
如此,接收端电子设备可以通过上述多种方式确定发生丢包事件,进而确定数据传输中断,从而可以及时触发后续相关数据传输操作步骤,保证数据传输的高效流畅。
可选地,在本申请实施例中,上述步骤302之前,在本申请实施例提供的数据传输方法中可以包括如下步骤F:
步骤F:通过上述接收端电子设备的第一模块向上述接收端电子设备的第二模块发送
数据恢复信息。
可以理解的是,在接收端电子设备中,上述接收端电子设备的第一模块用于数据恢复状态,并生成数据恢复信息,之后,由第一模块向第二模块发送数据恢复信息,从而触发第二模块使用发送第一数量的第一信息。
如此,在本申请实施例中,接收端电子设备的第一模块与第二模块之间信息通畅,降低网络传输中断事件带来的数据传输效率降低的影响,提高数据传输效率。
本实施例提供还一种数据传输方法,如图2所示,应用于发送端电子设备,该数据传输方法包括以下步骤401至步骤403:
步骤401:上述发送端电子设备接收接收端电子设备发送的丢包事件对应的信息。
本发明实施例中,上述丢包事件对应的信息包括以下至少一项:丢包内容信息,丢包事件信息;上述丢包内容信息包括以下任一项:丢失数据包对应的序列号SN范围,丢失数据包之后的数据包SN编号。
在本申请实施例中,上述丢包事件对应的信息、丢包内容信息和丢包事件信息的描述可以参照前述描述,此处不再赘述。
步骤402:上述发送端电子设备接收上述接收端电子设备发送的数据恢复信息。
在本申请实施例中,上述数据恢复信息可以参照前述描述,此处不再赘述。
步骤403:上述发送端电子设备在满足第三条件的情况下,不触发第一机制。
在本申请实施例中,上述第一机制包括:拥塞避免机制。
在本申请实施例中,上述第三条件可以为以下任一项:发送端电子设备在接收到第二丢包信息第二预定时长内,发送端电子设备在接收到SN范围内的丢失数据包对应的发送指示信息之前,具体的,可以参照下述内容。
可以理解的是,在本申请技术方案之前,发送端电子设备在单位时间内接收到多个第一信息后,即会触发拥塞避免机制。该拥塞避免机制会导致数据传输速率下降。
在本申请实施例中,发送端电子设备在接收接收端电子设备发送的丢包事件对应的信息(丢包内容信息和/或丢包事件信息)的情况下,接收到接收端电子设备发送的数据恢复信息后,在满足第三条件的情况下,不触发拥塞避免机制。如此,可以在数据传输中断的情况下,避免数据传输速率降低的情况,在一定范围内维持之前的数据传输速率,从而提高数据传输效率。
可选地,在本申请实施例中,在上述丢包事件对应的信息为上述丢包内容信息的情况下,在上述步骤403中,本申请实施例提供的数据传输方法可以包括如下步骤G:
步骤G:发送端电子设备根据上述丢包内容信息,在接收到上述SN范围内的丢失数据包对应的发送指示信息时,不触发第一机制。
示例性的,上述SN范围内的丢失数据包对应的发送指示信息可以包括:上述丢失数据包对应的SN范围内的数据包,丢失数据包之后的SN编号之前SN编号对应的数据包。
可以理解的是,上述SN范围内的丢失数据包对应的发送指示信息可以用于告知发送端电子设备在接收到发送指示信息时,不要触发第一机制。
例12:假设发送端电子设备需要向接收端电子设备传输4个数据包,该四个数据包具备各自的编号,分别为数据包1、数据包2、数据包3、数据包4,则,在接收端电子设备接收到数据包1后,会向发送端电子设备发送“请发送数据包2”的指示信息(即上述发
送指示信息),该指示信息为本申请上述的第一信息。在发生数据传输中断后,在接收端电子设备接收到数据包1后,依旧会向发送端电子设备发送“请发送数据包2”的指示信息,但由于数据传输中断,因此,发送端电子设备向接收端电子设备发送的是数据包4,本应发送的数据包2和数据包3由于数据传输中断成为了丢失数据包,在该种情况下,接收端电子设备会不间断的发送“请发送数据包2”的指示信息,发送端电子设备也会不间断的接收到“请发送数据包2”的指示信息。
进一步的,在接收端电子设备确定发生丢包事件后,将包括丢包事件信息和丢包内容信息的丢包信息发送至发送端电子设备处,该丢包内容信息包括:数据包2和数据包3对应的SN范围、数据包2和数据包3之后的SN编号。则发送端电子设备在接收到该丢包信息后,在接收到上述“请发送数据包2”的指示信息时,不会触发拥塞避免机制。
如此,发送端电子设备通过丢包内容信息,可以提前确定具体哪些数据包为丢失数据包,进而在收到指示其发送丢失数据包的发送指示信息时,不会触发拥塞避免机制,从而避免了数据传输中断的情况下的数据传输降低概率。
可选地,在本申请实施例中,在上述丢包事件对应的信息为上述丢包事件信息的情况下,上述步骤403中,本申请实施例提供的数据传输方法可以包括如下步骤H1和步骤H2:
步骤H1:发送端电子设备获取第二预定时长。
步骤H2:发送端电子设备在上述第二预定时长内,不触发第一机制。
示例性的,上述第二预定时长包括以下任一项:上述发送端电子设备和上述接收端电子设备约定的时长,上述发送端电子设备根据上述丢包信息计算的时长。
需要说明的是,在步骤H1和步骤H2中,无需接收接收端电子设备发送的丢包内容信息。
例13:结合上述例12,在发送端电子设备也会不间断的接收到“请发送数据包2”的指示信息的情况下,在接收端电子设备将包括丢包事件信息的丢包信息发送至发送端电子设备处,该丢包事件信息用于告知发送端电子设备当前发生了丢包事件。则发送端电子设备在接收到该丢包信息后,在第二预定时长内时,不会触发拥塞避免机制。
如此,发送端电子设备通过丢包事件信息,可以尽早确认丢包事件,进而第二预定时长内,不会触发拥塞避免机制,从而避免了数据传输中断的情况下的数据传输降低概率。
可选地,在本申请实施例中,在上述第二预定时长为上述发送端电子设备根据上述丢包信息计算的时长的情况下,上述步骤H1中,本申请实施例提供的数据传输方法可以包括如下步骤I1和步骤I2:
步骤I1:上述发送端电子设备根据第一信息,计算丢失数据包的数量。
步骤I2:上述发送端电子设备根据上述丢失数据包的数量及上述丢失数据包的传输信息,确定上述第二预定时长。
示例性的,上述第一信息为接收端电子设备向发送端电子设备发送的丢包信息对应的发送指示信息
示例性的,上述第一信息用于指示丢失数据包。
示例性的,上述丢失数据包的传输信息包括以下任一项:上述丢失数据包的传输速率、接收上述丢失数据包对应的确认字符ACK信息的耗费时长。
可以理解的是,若发送端电子设备没有接收到所发数据包对应的发送指示信息,则不
会删除发送端电子设备这一侧的数据包。例如,结合上述例1,发送端电子设备发送数据包1之后,中间发送的数据包2和数据包3均发生丢包,接收端接收到了数据包4,对于发送端而言,其并未收到与数据包2对应的发送指示信息“请发送数据包3”和与数据包3对应的发送指示信息“请发送数据包4”,因此,发送端电子设备会缓存数据包2和数据包3的信息,直至收到上述数据包2和数据包3对应的发送指示信息。
在一种实施例中,当上述丢失数据包的传输信息为上述丢失数据包的传输速率时,发送端电子设备可以根据丢包事件开始前的数据传输速率,结合丢包的数量,确认重新传输这些丢失数据包所需要的时间。
例14:结合上述例12,在发送端电子设备不间断的接收到“请发送数据包2”的指示信息的情况下,在接收到接收端电子设备发送的数据恢复信息后,发送端电子设备会计算传输数据包2至数据包4的数据包数量,再结合数据包传输速率,计算传输上述数据包2至数据包4所需要的时长(即上述第二预定时长)。
在一种实施例中,当上述丢失数据包的传输信息为接收上述丢失数据包对应的ACK信息的耗费时长时,发送端电子设备可以根据丢失数据包的数量以及接收ACK信息所需要的时长,即往返时长(Round-Trip Time,RTT),确定第二预定时长。
可以理解的是,上述ACK信息可以为上述第一信息。
例15:结合上述例12,在发送端电子设备也会不间断的接收到“请发送数据包2”的指示信息的情况下,在发送端电子设备不间断的接收到“请发送数据包2”的指示信息的情况下,在接收到接收端电子设备发送的数据恢复信息后,在接收到接收端电子设备发送的数据恢复信息后,发送端电子设备会计算传输数据包2至数据包4的数据包数量,再计算接收到数据包2至数据包4的数据包对应的ACK信息,即“请发送数据包3”的发送指示信息、“请发送数据包4”的发送指示信息、“请发送数据包5”的发送指示信息所需要的时长,计算传输上述数据包2至数据包4所需要的时长(即上述第二预定时长)。
如此,发送端电子设备通过已知信息进行计算,可以确定到第二预定时长,从而更加精准的确定不触发第一机制的时长,从而在提高数据传输效率的同时,保证数据传输***的可靠性。
需要说明的是,本申请实施例提供的数据传输方法,执行主体可以为数据传输装置,或者该数据传输装置中的用于执行数据传输方法的控制模块。本申请实施例中以数据传输装置执行数据传输的方法为例,说明本申请实施例提供的数据传输装置。
图3为实现本申请实施例提供的数据传输装置的第一种可能的结构示意图。如图3所示,上述数据传输装置600包括:上述生成模块601,用于在数据传输中断、且确定发生丢包事件的情况下,生成第一消息,上述第一消息包括以下任一项:第一数量的第一信息,上述丢包事件对应的信息;上述发送模块602,用于在数据传输恢复的情况下,向发送端电子设备发送上述生成模块601生成的上述第一消息和数据恢复信息;其中,上述第一信息用于指示丢失数据包;上述丢包事件对应的信息包括以下至少一项:丢包内容信息,丢包事件信息;上述丢包内容信息包括以下任一项:丢失数据包对应的序列号SN范围,丢失数据包之后的数据包SN编号。
在本申请实施例提供的数据传输装置中,在数据传输中断、且接收端电子设备确定发生丢包事件的情况下,接收端电子设备将生成包括第一数量的第一信息(用于指示丢失数
据包)或者丢包事件对应的信息,之后,在数据传输恢复的情况下,接收端电子设备将向发送端电子设备发送上述第一消息和数据恢复信息。如此,在数据传输中断的情况下,可以通过改变向发送端电子设备发送的第一信息的数量或者直接向发送端电子设备发送丢包事件对应的信息,避免数据传输拥堵,从而提高数据传输效率。
可选地,在本申请实施例中,在上述第一消息为第一数量的第一信息的情况下,上述发送模块602,用于在第一预定时长内,向上述发送端电子设备发送上述第一数量的第一信息和上述数据恢复信息;其中,上述第一预定时长包括以下任一项:上述接收端电子设备和上述发送端电子设备约定的时长,自数据传输中断起至上述接收端电子设备接收到上述丢失数据包之间的时长。
可选地,在本申请实施例中,在上述第一消息包括第一数量的第一信息的情况下,上述装置600还包括:确定模块603;上述确定模块603,用于确定上述第一数量的第一信息对应的传输方式;其中,上述传输方式包括以下任一项:在数据传输恢复的情况下,接收到的N个数据包的接收时间间隔小于预定时间间隔的情况下,在上述第一预定时长内发送上述第一数量的第一信息,N为正整数;在上述第一预定时长内,发送上述第一数量的第一信息后暂停发送上述第一信息;在上述第一预定时长内按照预定间隔发送上述第一数量的第一信息。
可选地,在本申请实施例中,在上述第一消息包括上述第一数量的第一信息的情况下,上述装置600还包括更新模块604;上述更新模块604,用于在满足第一条件的情况下,将上述生成模块生成的上述第一消息的传输方式更新为目标传输方式;其中,上述目标传输方式为上述发送上述第一消息之前使用的传输方式;上述第一条件包括以下任一项:上述发送第一消息的时长达到第一预定时长,上述接收端电子设备接收到上述丢失数据包。
可选地,在本申请实施例中,上述装置600还包括检测模块605和确定模块603;上述检测模块605,用于检测目标参数;上述确定模块603,用于在上述检测模块检测的上述目标参数满足第二条件的情况下,上述接收端电子设备确定发生上述丢包事件;其中,上述目标参数包括以下至少一项:数据无线承载DRB,层1误块率L1 BLER,无线链路控制层的确认传输模式序列号L2 AM SN;上述第二条件包括以下至少之一:上述DRB处于删除状态;上述L1 BLER对应的值高于第一阈值且无法通过预定机制恢复;上述L2 AM SN对应的目标数据处于丢弃状态。
图4为实现本申请实施例提供的数据传输装置的第二种可能的结构示意图。如图4所示,上述数据传输装置700包括:接收模块701和执行模块702;上述接收模块701,用于接收接收端电子设备发送的丢包事件对应的信息,上述丢包事件对应的信息包括以下至少一项:丢包内容信息,丢包事件信息;上述丢包内容信息包括以下任一项:丢失数据包对应的序列号SN范围,丢失数据包之后的数据包SN编号;上述接收模块701,还用于接收上述接收端电子设备发送的数据恢复信息;上述执行模块702,用于在满足第三条件的情况下,不触发第一机制,上述第一机制包括:拥塞避免机制。
在本申请实施例提供的数据传输装置中,数据传输装置在接收接收端电子设备发送的丢包事件对应的信息(丢包内容信息和/或丢包事件信息),接收到接收端电子设备发送的数据恢复信息后,在满足第三条件的情况下,不触发拥塞避免机制。如此,可以在数据传输中断的情况下,避免数据传输速率降低的情况,在一定范围内维持之前的数据传输速
率,从而提高数据传输效率。
可选地,在本申请实施例中,在上述丢包事件对应的信息为上述丢包内容信息的情况下,上述执行模块702,具体用于根据上述丢包内容信息,在接收到上述SN范围内的丢失数据包对应的发送指示信息时,不触发第一机制。
可选地,在本申请实施例中,在上述丢包事件对应的信息为上述丢包事件信息的情况下,上述装置700还包括获取模块703;上述获取模块703,用于获取第二预定时长,上述第二预定时长包括以下任一项:上述发送端电子设备和上述接收端电子设备约定的时长,上述发送端电子设备根据上述丢包信息计算的时长;上述执行模块702,具体用于在上述获取模块获取的上述第二预定时长内,不触发第一机制。
可选地,在本申请实施例中,在上述第二预定时长为上述发送端电子设备根据上述丢包信息计算的时长的情况下,上述装置700还包括:计算模块704和确定模块705;上述计算模块704,用于根据第一信息,计算丢失数据包的数量,上述第一信息为接收端电子设备向发送端电子设备发送的丢包信息对应的发送指示信息,上述第一信息用于指示丢失数据包;上述确定模块705,用于根据上述计算模块704计算的上述丢失数据包的数量及上述丢失数据包的传输信息,确定上述第二预定时长,上述丢失数据包的传输信息包括以下任一项:上述丢失数据包的传输速率、接收上述丢失数据包对应的确认字符ACK信息的耗费时长。
需要说明的是,如图3所示,数据传输装置600中一定包括的模块用实线框示意,如生成模块601;数据传输装置600中可以包括也可以不包括的模块用虚线框示意,如检测模块604;如图4所示,数据传输装置700中一定包括的模块用实线框示意,如接收模块701;数据传输装置700中可以包括也可以不包括的模块用虚线框示意,如计算模块704。
本申请实施例中的数据传输装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的数据传输装置可以为具有操作***的装置。该操作***可以为安卓(Android)操作***,可以为ios操作***,还可以为其他可能的操作***,本申请实施例不作具体限定。
本申请实施例提供的数据传输装置能够实现图1和图2的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图5所示,本申请实施例还提供一种电子设备800,包括处理器801,存储器802,存储在存储器802上并可在所述处理器801上运行的程序或指令,该程序或指令被处理器801执行时实现上述数据传输方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图6为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理***与处理器110逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,在第一电子设备中,处理器110,在数据传输中断、且确定发生丢包事件的情况下,生成第一消息,上述第一消息包括以下任一项:第一数量的第一信息,上述丢包事件对应的信息;射频单元101,用于在数据传输恢复的情况下,向发送端电子设备发送上述第一消息和数据恢复信息;其中,上述第一信息用于指示丢失数据包;上述丢包事件对应的信息包括以下至少一项:丢包内容信息,丢包事件信息;上述丢包内容信息包括以下任一项:丢失数据包对应的序列号SN范围,丢失数据包之后的数据包SN编号。
在本申请实施例提供的第一电子设备中,在数据传输中断、且接收端电子设备确定发生丢包事件的情况下,接收端电子设备将生成包括第一数量的第一信息(用于指示丢失数据包)或者丢包事件对应的信息,之后,在数据传输恢复的情况下,接收端电子设备将向发送端电子设备发送上述第一消息和数据恢复信息。如此,在数据传输中断的情况下,可以通过改变向发送端电子设备发送的第一信息的数量或者直接向发送端电子设备发送丢包事件对应的信息,避免数据传输拥堵,从而提高数据传输效率。
可选地,在上述第一消息为第一数量的第一信息的情况下,处理器110,具体用于在第一预定时长内,向上述发送端电子设备发送上述第一数量的第一信息和上述数据恢复信息;其中,上述第一预定时长包括以下任一项:上述接收端电子设备和上述发送端电子设备约定的时长,自数据传输中断起至上述接收端电子设备接收到上述丢失数据包之间的时长。
可选地,在上述第一消息包括第一数量的第一信息的情况下,处理器110,还用于确定上述第一数量的第一信息对应的传输方式;其中,上述传输方式包括以下任一项:在数据传输恢复的情况下,接收到的N个数据包的接收时间间隔小于预定时间间隔的情况下,在上述第一预定时长内发送上述第一数量的第一信息,N为正整数;在上述第一预定时长内,发送上述第一数量的第一信息后暂停发送上述第一信息;在上述第一预定时长内按照预定间隔发送上述第一数量的第一信息。
可选地,在上述第一消息包括上述第一数量的第一信息的情况下,处理器110,还用于在满足第一条件的情况下,将上述第一消息的传输方式更新为目标传输方式;其中,上述目标传输方式为上述发送上述第一消息之前使用的传输方式;上述第一条件包括以下任一项:上述发送第一消息的时长达到第一预定时长,上述接收端电子设备接收到上述丢失数据包。
可选地,处理器110,还用于检测目标参数;处理器110,还用于在上述目标参数满足第二条件的情况下,确定发生上述丢包事件;其中,上述目标参数包括以下至少一项:
数据无线承载DRB,层1误块率L1 BLER,无线链路控制层的确认传输模式序列号L2 AM SN;上述第二条件包括以下至少之一:上述DRB处于删除状态;上述L1 BLER对应的值高于第一阈值且无法通过预定机制恢复;上述L2 AM SN对应的目标数据处于丢弃状态。
其中,在第二电子设备中,上述射频单元101,用于接收接收端电子设备发送的丢包事件对应的信息,上述丢包事件对应的信息包括以下至少一项:丢包内容信息,丢包事件信息;上述丢包内容信息包括以下任一项:丢失数据包对应的序列号SN范围,丢失数据包之后的数据包SN编号;上述射频单元101,还用于接收上述接收端电子设备发送的数据恢复信息;上述处理器110,用于在满足第三条件的情况下,不触发第一机制,上述第一机制包括:拥塞避免机制。
在本申请实施例提供的第二电子设备,第二电子设备在接收接收端电子设备发送的丢包事件对应的信息(丢包内容信息和/或丢包事件信息),接收到接收端电子设备发送的数据恢复信息后,在满足第三条件的情况下,不触发拥塞避免机制。如此,可以在数据传输中断的情况下,避免数据传输速率降低的情况,在一定范围内维持之前的数据传输速率,从而提高数据传输效率。
可选地,在上述丢包事件对应的信息为上述丢包内容信息的情况下,上述射频单元101,用于根据上述丢包内容信息,在接收到上述SN范围内的丢失数据包对应的发送指示信息时,不触发第一机制。
可选地,在上述丢包事件对应的信息为上述丢包事件信息的情况下,上述发送端电子设备在数据传输恢复,且满足第三条件的情况下,上述处理器110,具体用于获取第二预定时长,上述第二预定时长包括以下任一项:上述发送端电子设备和上述接收端电子设备约定的时长,上述发送端电子设备根据上述丢包信息计算的时长;处理器110,具体用于在上述第二预定时长内,不触发第一机制。
可选地,在上述第二预定时长为上述发送端电子设备根据上述丢包信息计算的时长的情况下,处理器110,具体用于根据第一信息,计算丢失数据包的数量,上述第一信息为接收端电子设备向发送端电子设备发送的丢包信息对应的发送指示信息,上述第一信息用于指示丢失数据包;处理器110,具体用于根据上述丢失数据包的数量及上述丢失数据包的传输信息,确定上述第二预定时长,上述丢失数据包的传输信息包括以下任一项:上述丢失数据包的传输速率、接收上述丢失数据包对应的确认字符ACK信息的耗费时长。
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作***。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述数据传输方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述数据传输方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为***级芯片、***芯片、芯片***或片上***芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。
Claims (20)
- 一种数据传输方法,应用于接收端电子设备,所述方法包括:在数据传输中断、且确定发生丢包事件的情况下,生成第一消息,所述第一消息包括以下任一项:第一数量的第一信息,所述丢包事件对应的信息;在数据传输恢复的情况下,向发送端电子设备发送所述第一消息和数据恢复信息;其中,所述第一信息用于指示丢失数据包;所述丢包事件对应的信息包括以下至少一项:丢包内容信息,丢包事件信息;所述丢包内容信息包括以下任一项:丢失数据包对应的序列号SN范围,丢失数据包之后的数据包SN编号。
- 根据权利要求1所述的方法,其中,在所述第一消息为第一数量的第一信息的情况下,所述向发送端电子设备发送所述第一消息和数据恢复信息,包括:在第一预定时长内,向所述发送端电子设备发送所述第一数量的第一信息和所述数据恢复信息;其中,所述第一预定时长包括以下任一项:所述接收端电子设备和所述发送端电子设备约定的时长,自数据传输中断起至所述接收端电子设备接收到所述丢失数据包之间的时长。
- 根据权利要求2所述的方法,其中,在所述第一消息包括第一数量的第一信息的情况下,所述向发送端电子设备发送所述第一消息和数据恢复信息之前,所述方法还包括:确定所述第一数量的第一信息对应的传输方式;其中,所述传输方式包括以下任一项:在数据传输恢复的情况下,接收到的N个数据包的接收时间间隔小于预定时间间隔的情况下,在所述第一预定时长内发送所述第一数量的第一信息,N为正整数;在所述第一预定时长内,发送所述第一数量的第一信息后暂停发送所述第一信息;在所述第一预定时长内按照预定间隔发送所述第一数量的第一信息。
- 根据权利要求1或2所述的方法,其中,在所述第一消息包括所述第一数量的第一信息的情况下,所述向发送端电子设备发送所述第一消息和和数据恢复信息之后,所述方法还包括:在满足第一条件的情况下,将所述第一消息的传输方式更新为目标传输方式;其中,所述目标传输方式为所述发送所述第一消息之前使用的传输方式;所述第一条件包括以下任一项:所述发送第一消息的时长达到第一预定时长,所述接收端电子设备接收到所述丢失数据包。
- 根据权利要求1至4任一项所述的方法,其中,所述确定发生丢包事件,包括:检测目标参数;在所述目标参数满足第二条件的情况下,确定发生所述丢包事件;其中,所述目标参数包括以下至少一项:数据无线承载DRB,层1误块率L1 BLER,无线链路控制层的确认传输模式序列号L2 AM SN;所述第二条件包括以下至少之一:所述DRB处于删除状态;所述L1 BLER对应的值高于第一阈值且无法通过预定机制恢复;所述L2 AM SN对应的目标数据处于丢弃状态。
- 一种数据传输方法,应用于发送端电子设备,所述方法包括:接收接收端电子设备发送的丢包事件对应的信息,所述丢包事件对应的信息包括以下至少一项:丢包内容信息,丢包事件信息;所述丢包内容信息包括以下任一项:丢失数据包对应的序列号SN范围,丢失数据包之后的数据包SN编号;接收所述接收端电子设备发送的数据恢复信息;在满足第三条件的情况下,不触发第一机制,所述第一机制包括:拥塞避免机制。
- 根据权利要求6所述的方法,其中,在所述丢包事件对应的信息为所述丢包内容信息的情况下,所述发送端在满足第三条件的情况下,不触发第一机制,包括:根据所述丢包内容信息,在接收到所述SN范围内的丢失数据包对应的发送指示信息时,不触发第一机制。
- 根据权利要求6所述的方法,其中,在所述丢包事件对应的信息为所述丢包事件信息的情况下,所述在数据传输恢复,且满足第三条件的情况下,不触发第一机制,包括:获取第二预定时长,所述第二预定时长包括以下任一项:所述发送端电子设备和所述接收端电子设备约定的时长,所述发送端电子设备根据所述丢包信息计算的时长;在所述第二预定时长内,不触发第一机制。
- 根据权利要求8所述的方法,其中,在所述第二预定时长为所述发送端电子设备根据所述丢包信息计算的时长的情况下,所述获取第二预定时长,包括:根据第一信息,计算所述丢失数据包的数量,所述第一信息为接收端电子设备向发送端电子设备发送的丢包信息对应的发送指示信息,所述第一信息用于指示所述丢失数据包;根据所述丢失数据包的数量及所述丢失数据包的传输信息,确定所述第二预定时长,所述丢失数据包的传输信息包括以下任一项:所述丢失数据包的传输速率、接收所述丢失数据包对应的确认字符ACK信息的耗费时长。
- 一种数据传输装置,所述装置包括:生成模块和发送模块;所述生成模块,用于在数据传输中断、且确定发生丢包事件的情况下,生成第一消息,所述第一消息包括以下任一项:第一数量的第一信息,所述丢包事件对应的信息;所述发送模块,用于在数据传输恢复的情况下,向发送端电子设备发送所述生成模块生成的所述第一消息和数据恢复信息;其中,所述第一信息用于指示丢失数据包;所述丢包事件对应的信息包括以下至少一项:丢包内容信息,丢包事件信息;所述丢包内容信息包括以下任一项:丢失数据包对应的序列号SN范围,丢失数据包之后的数据包SN编号。
- 根据权利要求10所述的装置,其中,在所述第一消息为第一数量的第一信息的情况下,所述发送模块,用于在第一预定时长内,向所述发送端电子设备发送所述第一数量的第一信息和所述数据恢复信息;其中,所述第一预定时长包括以下任一项:所述接收端电子设备和所述发送端电子设备约定的时长,自数据传输中断起至所述接收端电子设备接收到所述丢失数据包之间的时长。
- 根据权利要求10所述的装置,其中,在所述第一消息包括第一数量的第一信息的情况下,所述装置还包括:确定模块;所述确定模块,用于确定所述第一数量的第一信息对应的传输方式;其中,所述传输方式包括以下任一项:在数据传输恢复的情况下,接收到的N个数据包的接收时间间隔小于预定时间间隔的情况下,在所述第一预定时长内发送所述第一数量的第一信息,N为正整数;在所述第一预定时长内,发送所述第一数量的第一信息后暂停发送所述第一信息;在所述第一预定时长内按照预定间隔发送所述第一数量的第一信息。
- 根据权利要求10或11所述的装置,其中,在所述第一消息包括所述第一数量的第一信息的情况下,所述装置还包括更新模块;所述更新模块,用于在满足第一条件的情况下,将所述生成模块生成的所述第一消息的传输方式更新为目标传输方式;其中,所述目标传输方式为所述发送所述第一消息之前使用的传输方式;所述第一条件包括以下任一项:所述发送第一消息的时长达到第一预定时长,所述接收端电子设备接收到所述丢失数据包。
- 根据权利要求10至13任一项所述的装置,其中,所述装置还包括检测模块和确定模块;所述检测模块,用于检测目标参数;所述确定模块,用于在所述检测模块检测的所述目标参数满足第二条件的情况下,所述接收端电子设备确定发生所述丢包事件;其中,所述目标参数包括以下至少一项:数据无线承载DRB,层1误块率L1 BLER,无线链路控制层的确认传输模式序列号L2 AM SN;所述第二条件包括以下至少之一:所述DRB处于删除状态;所述L1 BLER对应的值高于第一阈值且无法通过预定机制恢复;所述L2 AM SN对应的目标数据处于丢弃状态。
- 一种数据传输装置,所述装置包括:接收模块和执行模块;所述接收模块,用于接收接收端电子设备发送的丢包事件对应的信息,所述丢包事件对应的信息包括以下至少一项:丢包内容信息,丢包事件信息;所述丢包内容信息包括以下任一项:丢失数据包对应的序列号SN范围,丢失数据包之后的数据包SN编号;所述接收模块,还用于接收所述接收端电子设备发送的数据恢复信息;所述执行模块,用于在满足第三条件的情况下,不触发第一机制,所述第一机制包括:拥塞避免机制。
- 根据权利要求15所述的装置,其中,在所述丢包事件对应的信息为所述丢包内容信息的情况下,所述执行模块,具体用于根据所述丢包内容信息,在接收到所述SN范围内的丢失数据包对应的发送指示信息时,不触发第一机制。
- 根据权利要求15所述的装置,其中,在所述丢包事件对应的信息为所述丢包事件信息的情况下,所述装置还包括获取模块;所述获取模块,用于获取第二预定时长,所述第二预定时长包括以下任一项:所述发送端电子设备和所述接收端电子设备约定的时长,所述发送端电子设备根据所述丢包信息计算的时长;所述执行模块,具体用于在所述第二预定时长内,不触发第一机制。
- 根据权利要求17所述的装置,其中,在所述第二预定时长为所述发送端电子设备根据所述丢包信息计算的时长的情况下,所述装置还包括:计算模块和确定模块;所述计算模块,用于根据第一信息,计算丢失数据包的数量,所述第一信息为接收端电子设备向发送端电子设备发送的丢包信息对应的发送指示信息,所述第一信息用于指示丢失数据包;所述确定模块,用于根据所述计算模块计算的所述丢失数据包的数量及所述丢失数据包的传输信息,确定所述第二预定时长,所述丢失数据包的传输信息包括以下任一项:所述丢失数据包的传输速率、接收所述丢失数据包对应的确认字符ACK信息的耗费时长。
- 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-5或者如权利要求6-9任一项所述的数据传输方法的步骤。
- 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-5或者如权利要求6-9任一项所述的数据传输方法的步骤。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210292432.9A CN114710446B (zh) | 2022-03-23 | 2022-03-23 | 数据传输方法、装置、电子设备和存储介质 |
CN202210292432.9 | 2022-03-23 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023179538A1 true WO2023179538A1 (zh) | 2023-09-28 |
Family
ID=82171249
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/082501 WO2023179538A1 (zh) | 2022-03-23 | 2023-03-20 | 数据传输方法、装置、电子设备和存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114710446B (zh) |
WO (1) | WO2023179538A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117499980A (zh) * | 2023-12-29 | 2024-02-02 | 深圳市飞易通科技有限公司 | 一种数据通信方法、电子设备及存储介质 |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114710446B (zh) * | 2022-03-23 | 2024-04-26 | 维沃移动通信有限公司 | 数据传输方法、装置、电子设备和存储介质 |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102664718A (zh) * | 2012-04-28 | 2012-09-12 | 大唐移动通信设备有限公司 | 无线侧tcp数据重传的方法和设备 |
CN106792262A (zh) * | 2016-12-05 | 2017-05-31 | 乐视控股(北京)有限公司 | 视频数据传输方法及装置 |
CN109104742A (zh) * | 2017-06-20 | 2018-12-28 | 华为技术有限公司 | 拥塞窗口调整方法及发送设备 |
CN111435866A (zh) * | 2019-01-14 | 2020-07-21 | 华为技术有限公司 | 数据传输方法及相关装置 |
CN113141314A (zh) * | 2021-04-20 | 2021-07-20 | 上海卓易科技股份有限公司 | 一种拥塞控制方法及设备 |
US20210266261A1 (en) * | 2018-06-22 | 2021-08-26 | Nec Corporation | Communication apparatus, communication method, and program |
CN114302451A (zh) * | 2021-12-31 | 2022-04-08 | 网络通信与安全紫金山实验室 | 一种数据传输方法、***和存储介质 |
CN114710446A (zh) * | 2022-03-23 | 2022-07-05 | 维沃移动通信有限公司 | 数据传输方法、装置、电子设备和存储介质 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102468941B (zh) * | 2010-11-18 | 2014-07-30 | 华为技术有限公司 | 网络丢包处理方法及装置 |
CN104796235B (zh) * | 2015-04-13 | 2018-02-23 | 杭州电子科技大学 | 基于丢包率的卫星通信自适应拥塞控制方法 |
CN105245317A (zh) * | 2015-10-20 | 2016-01-13 | 北京小鸟听听科技有限公司 | 一种数据传输方法、发送端、接收端和数据传输*** |
WO2017133014A1 (zh) * | 2016-02-06 | 2017-08-10 | 中国科学院计算技术研究所 | Tcp传输流中基于接收端的网络性能检测方法及*** |
CN112165355B (zh) * | 2020-10-23 | 2022-03-22 | 中国电子科技集团公司第三十研究所 | 一种面向卫星网络的基于udp的可靠数据传输方法 |
CN112688876B (zh) * | 2020-12-18 | 2022-10-14 | 北京华环电子股份有限公司 | 一种tcp拥塞快速恢复的方法 |
-
2022
- 2022-03-23 CN CN202210292432.9A patent/CN114710446B/zh active Active
-
2023
- 2023-03-20 WO PCT/CN2023/082501 patent/WO2023179538A1/zh unknown
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102664718A (zh) * | 2012-04-28 | 2012-09-12 | 大唐移动通信设备有限公司 | 无线侧tcp数据重传的方法和设备 |
CN106792262A (zh) * | 2016-12-05 | 2017-05-31 | 乐视控股(北京)有限公司 | 视频数据传输方法及装置 |
CN109104742A (zh) * | 2017-06-20 | 2018-12-28 | 华为技术有限公司 | 拥塞窗口调整方法及发送设备 |
US20210266261A1 (en) * | 2018-06-22 | 2021-08-26 | Nec Corporation | Communication apparatus, communication method, and program |
CN111435866A (zh) * | 2019-01-14 | 2020-07-21 | 华为技术有限公司 | 数据传输方法及相关装置 |
CN113141314A (zh) * | 2021-04-20 | 2021-07-20 | 上海卓易科技股份有限公司 | 一种拥塞控制方法及设备 |
CN114302451A (zh) * | 2021-12-31 | 2022-04-08 | 网络通信与安全紫金山实验室 | 一种数据传输方法、***和存储介质 |
CN114710446A (zh) * | 2022-03-23 | 2022-07-05 | 维沃移动通信有限公司 | 数据传输方法、装置、电子设备和存储介质 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117499980A (zh) * | 2023-12-29 | 2024-02-02 | 深圳市飞易通科技有限公司 | 一种数据通信方法、电子设备及存储介质 |
CN117499980B (zh) * | 2023-12-29 | 2024-03-12 | 深圳市飞易通科技有限公司 | 一种数据通信方法、电子设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN114710446B (zh) | 2024-04-26 |
CN114710446A (zh) | 2022-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2023179538A1 (zh) | 数据传输方法、装置、电子设备和存储介质 | |
CN104168081B (zh) | 一种文件传输方法及装置 | |
US8023477B2 (en) | Managing connections in a wireless communications network | |
CN108900370B (zh) | 长连接多重超时判断方法、装置及计算机可读存储介质 | |
CN104184753B (zh) | 一种文件传输方法及装置 | |
JP2007089174A (ja) | 無線通信システムにおける信号の伝送速度を改善する方法及び装置 | |
US9871878B2 (en) | Network traffic accelerator | |
WO2014187114A1 (zh) | 一种文件传输方法、装置及存储介质 | |
JP2016213811A (ja) | インタラクティブなリアルタイムメディアの転送プロトコル | |
JP2002152308A (ja) | データ通信システム、その通信方法及びその通信プログラムを記録した記録媒体 | |
CN110943998B (zh) | 一种信号传输方法、装置、设备及介质 | |
US7757148B2 (en) | Method to suspend automatic repeat request (ARQ) reset | |
CN103546917B (zh) | 数据传输方法和装置 | |
WO2020119347A1 (zh) | 一种消息传输方法、装置、设备及介质 | |
US10932159B2 (en) | Data transmission method, data receiving device, and data sending device | |
CN112437474B (zh) | 信息传输方法和信息传输装置 | |
US11750725B2 (en) | Methods and apparatus for recovering network association information | |
CN114268991A (zh) | 数据传输方法、装置、电子设备、存储介质 | |
KR20110071433A (ko) | 무선링크제어 계층 재전송 실패를 처리하는 장치 | |
KR20070107625A (ko) | 무선통신 시스템에서 수신측을 단독으로 재구축할 때무선링크제어 리셋 절차의 변수를 처리하는 방법 및 장치 | |
WO2014015662A2 (zh) | 一种控制方法和装置 | |
WO2023078222A1 (zh) | 数据传输方法、装置、设备和介质 | |
WO2023040893A1 (zh) | 连续lbt失败处理方法及装置、终端及网络侧设备 | |
CN113242318B (zh) | 数据传输方法和电子设备 | |
CN112468982B (zh) | 呼叫方法和呼叫装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23773786 Country of ref document: EP Kind code of ref document: A1 |