CN112351049B - Data transmission method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN112351049B
CN112351049B CN202110028447.XA CN202110028447A CN112351049B CN 112351049 B CN112351049 B CN 112351049B CN 202110028447 A CN202110028447 A CN 202110028447A CN 112351049 B CN112351049 B CN 112351049B
Authority
CN
China
Prior art keywords
host
retransmission
comparison result
rate
judging whether
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110028447.XA
Other languages
Chinese (zh)
Other versions
CN112351049A (en
Inventor
郭江
姜吴勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
G Net Cloud Service Co Ltd
Original Assignee
G Net Cloud Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by G Net Cloud Service Co Ltd filed Critical G Net Cloud Service Co Ltd
Priority to CN202110028447.XA priority Critical patent/CN112351049B/en
Publication of CN112351049A publication Critical patent/CN112351049A/en
Application granted granted Critical
Publication of CN112351049B publication Critical patent/CN112351049B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/08Arrangements for detecting or preventing errors in the information received by repeating transmission, e.g. Verdan system

Abstract

The application provides a data transmission method, a data transmission device, data transmission equipment and a storage medium. Wherein, the method comprises the following steps: judging whether a host is in a low-bit-rate environment or not and judging whether the host is in a weak network environment or not; and if the judgment result is yes, starting the fast retransmission of the data. The method and the device can ensure high efficiency of data transmission during high-code-rate transmission and ensure low delay of data transmission during low-code-rate transmission.

Description

Data transmission method, device, equipment and storage medium
Technical Field
The present application relates to the field of test technologies, and in particular, to a data transmission method, apparatus, device, and storage medium.
Background
In the prior art, because the RUDP protocol is superior to the common TCP protocol in the weak network environment (packet loss rate > 10%), more and more video transmission systems start to use the RUDP protocol, and after the RUDP protocol is used, because the parameters of the ARQ protocol are adjustable in application, flexibility greater than that of the TCP can be obtained, and a high-performance transmission effect of a specific scene can be obtained by changing the specific implementation of the ARQ protocol, but due to the implementation principle of the ARQ protocol, the parameters cannot be adapted to all transmission scenes by simply changing the parameters. When the transmission delay of data is increased with a high probability by using a common NACK-ARQ retransmission strategy under the environment of a low-code-rate or even low-code-rate high-packet-loss weak network, a more aggressive retransmission strategy, namely fast retransmission FastTranssmit, is needed to be adopted in order to reduce the transmission delay. Fastransmit is generally used in cooperation with ACK, and when the sending end does not receive ACK from the receiving end for a certain time, timing retransmission is started, the smaller the retransmission interval is, the higher the probability of receiving data by the receiving end is, however, the problems that the transmission efficiency is reduced, data overload is serious, and when the quantity of sent data is large, serious bandwidth preemption is caused by using the fastransransmit technology.
Disclosure of Invention
An object of the embodiments of the present application is to provide a data transmission method, apparatus, device and storage medium based on a low-bit-rate weak network, for ensuring high efficiency of data transmission during high-bit-rate transmission and ensuring low delay of data transmission during low-bit-rate transmission.
To this end, a first aspect of the present application discloses a data transmission method, including:
judging whether a host is in a low-bit-rate environment or not and judging whether the host is in a weak network environment or not;
and if the judgment result is yes, starting the fast retransmission of the data.
In the embodiment of the application, whether the host is in a low-bit-rate environment or not and whether the host is in a weak network environment or not are judged, so that the host can start the fast retransmission under the low-bit-rate weak network environment, and the fast retransmission is not started no matter in a normal network or a weak network under the high-bit-rate condition, thereby realizing the high efficiency of data transmission during high-bit-rate transmission and ensuring the low-bit-rate delay of the data transmission during low-bit-rate transmission.
In the first aspect of the present application, as an optional implementation manner, the determining whether the host is in a low bit rate environment includes:
counting the total amount of data packets sent by the host within a preset time;
comparing the total amount of the data packets sent by the host within preset time with a first threshold value to obtain a first comparison result;
and judging whether the host is in the low code rate environment or not according to the first comparison result, wherein if the first comparison result represents that the total amount of data packets sent by the host in preset time is smaller than the first threshold value, the host is determined to be in the low code rate environment.
In this optional embodiment, the total amount of the data packets sent by the host within the preset time is counted, and then the total amount of the data packets sent by the host within the preset time is compared with the first threshold to obtain a first comparison result, and then whether the host is in the low-bit-rate environment or not can be judged according to the first comparison result, wherein if the first comparison result represents that the total amount of the data packets sent by the host within the preset time is smaller than the first threshold, it is determined that the host is in the low-bit-rate environment.
In the first aspect of the present application, as an optional implementation manner, a sending rate detection timer is used to count a total amount of data packets sent by the host within a preset time.
In this optional embodiment, by starting the sending rate detection timer, the sending rate detection timer can be further used to count the total amount of data packets sent by the host within the preset time.
In the first aspect of the present application, as an optional implementation manner, the determining whether the host is in a weak network environment includes:
calculating the retransmission time of the host;
comparing the retransmission time of the host with a second threshold value to obtain a second comparison result;
and judging whether the host is in the weak network environment or not according to the second comparison result, wherein if the second comparison result represents that the retransmission time of the host is less than or equal to the second threshold, the host is determined to be in the weak network environment.
In this optional embodiment, by calculating the retransmission time of the host, the retransmission time of the host may be compared with a second threshold to obtain a second comparison result, and whether the host is in the weak network environment may be determined according to the second comparison result, where if the second comparison result indicates that the retransmission time of the host is less than or equal to the second threshold, it is determined that the host is in the weak network environment.
In the first aspect of the present application, as an optional implementation manner, the calculation formula for calculating the retransmission time of the host is:
RexmitTime = LastAckTime +(4+Nxmit)*rtt;
the Rexmitime indicates retransmission time of the host, the LastAckTime indicates time of last data packet reception, the Nxmit indicates retransmission times, and the rtt indicates round-trip delay.
In this optional embodiment, the retransmission time of the host can be calculated by calculating the formula rexmitime = LastAckTime + (4 + Nxmit) × rtt.
In the first aspect of the present application, as an optional implementation manner, after the calculating the retransmission time of the host, before the comparing the retransmission time of the host with the second threshold and obtaining the second comparison result, the method further includes:
acquiring current system time;
taking the current system time as the second threshold.
In this alternative embodiment, the current system time may be used as the second threshold.
In the first aspect of the present application, as an optional implementation manner, the first threshold is 50.
A second aspect of the present application discloses a data transmission apparatus, the apparatus comprising:
the first judgment module is used for judging whether the host is in a low code rate environment or not;
the second judgment module is used for judging whether the host is in a weak network environment or not;
and the retransmission module is used for starting the rapid retransmission of the data when the host is in the low code rate environment and the weak network environment.
The device of this application is through judging whether the host computer is in the low code rate environment and judging the host computer is in the weak network environment, can make the host computer start the quick retransmission under the low code rate weak network environment, and no matter normal network or weak network under the high code rate condition, does not start the quick retransmission yet, and then realizes guaranteeing the high efficiency of data transmission when the high code rate is transmitted, can guarantee the low delay of data transmission when the low code rate is transmitted again.
A third aspect of the present application discloses a data transmission apparatus, the apparatus comprising:
a processor; and
a memory configured to store machine readable instructions which, when executed by the processor, cause the processor to perform the data transmission method of the first aspect of the application.
The device of the application can enable the host to start fast retransmission under the low-bit-rate and weak-network environment by judging whether the host is in the low-bit-rate environment or not and judging whether the host is in the weak-network environment or not, and fast retransmission is not started no matter a normal network or a weak network under the high-bit-rate condition, so that the high efficiency of data transmission when high-bit-rate transmission is guaranteed, and the low delay of the data transmission when the low-bit-rate transmission is guaranteed.
A fourth aspect of the present application discloses a storage medium storing a computer program for execution by a processor of the data transmission method of the first aspect of the present application.
The storage medium of this application is through judging whether the host computer is in the low code rate environment and judging the host computer is in the weak network environment, can make the host computer start the quick retransmission under the low code rate weak network environment, and no matter normal network or weak network under the high code rate condition, does not start the quick retransmission all, and then realizes guaranteeing the high efficiency of data transmission when the high code rate is transmitted, can guarantee the low code rate delay of data transmission when the low code rate is transmitted again.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flow chart of a data transmission method disclosed in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a data transmission device disclosed in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a data transmission device disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart of a data transmission method disclosed in an embodiment of the present application. As shown in fig. 1, the method of the embodiment of the present application includes the steps of:
101. judging whether a host is in a low-bit-rate environment or not and judging whether the host is in a weak network environment or not;
whether the low bit rate environment is in the low bit rate environment or not can be judged first, then whether the weak network environment is judged or not is judged, or whether the weak network environment is in the low bit rate environment or not is judged first, or whether the weak network environment is in the low bit rate environment or not is judged in parallel.
102. And if the judgment result is yes, starting the fast retransmission of the data.
Further, if at least one judgment result is negative, the fast retransmission of the data is not started.
In the embodiment of the application, whether the host is in the low-code-rate environment or not and whether the host is in the weak network environment or not are judged, so that the host can start the fast retransmission under the low-code-rate weak network environment, and the fast retransmission is not started no matter in a normal network or a weak network under the high-code-rate condition, so that the high efficiency of data transmission during high-code-rate transmission is ensured, and the low delay of the data transmission during the low-code-rate weak network transmission can be ensured. In this embodiment of the present application, as an optional implementation manner, the determining whether the host is in a low bit rate environment includes:
counting the total amount of data packets sent by a host in a preset time;
comparing the total amount of data packets sent by the host within preset time with a first threshold value to obtain a first comparison result;
and judging whether the host is in a low-bit-rate environment or not according to the first comparison result, wherein if the first comparison result represents that the total amount of data packets sent by the host in the preset time is smaller than a first threshold value, the host is determined to be in the low-bit-rate environment.
In the embodiment of the present application, as an optional implementation manner, the first threshold is 50.
In this optional embodiment, the total amount of the data packets sent by the host within the preset time is counted, and then the total amount of the data packets sent by the host within the preset time is compared with the first threshold to obtain a first comparison result, and then whether the host is in the low-bit-rate environment or not can be judged according to the first comparison result, wherein if the first comparison result represents that the total amount of the data packets sent by the host within the preset time is smaller than the first threshold, it is determined that the host is in the low-bit-rate environment.
In this embodiment, as an optional implementation manner, a sending rate detection timer is used to count a total amount of data packets sent by the host within a preset time.
In this optional embodiment, by starting the sending rate detection timer, the sending rate detection timer can be further used to count the total amount of data packets sent by the host within the preset time.
In this embodiment of the present application, as an optional implementation manner, the determining that the host is in a weak network environment includes:
calculating the retransmission time of the host;
comparing the retransmission time of the host with a second threshold value to obtain a second comparison result;
and judging whether the host is in the weak network environment or not according to the second comparison result, wherein if the second comparison result represents that the retransmission time of the host is less than or equal to a second threshold value, the host is determined to be in the weak network environment.
In this optional embodiment, by calculating the retransmission time of the host, the retransmission time of the host can be compared with the second threshold to obtain a second comparison result, and whether the host is in the weak network environment can be further determined according to the second comparison result, where if the second comparison result indicates that the retransmission time of the host is less than or equal to the second threshold, it is determined that the host is in the weak network environment.
In this embodiment, as an optional implementation manner, a calculation formula for calculating the retransmission time of the host is:
RexmitTime = LastAckTime +(4+Nxmit)*rtt;
wherein, Rexmitime represents the retransmission time of the host, LastAckTime represents the time of last receiving the ACK/NACK data packet, Nxmit represents the retransmission times, and rtt represents the round-trip delay.
In this optional embodiment, the retransmission time of the host can be calculated by calculating the formula rexmitime = LastAckTime + (4 + Nxmit) × rtt.
In this embodiment of this application, as an optional implementation manner, after calculating the retransmission time of the host, before comparing the retransmission time of the host with the second threshold and obtaining the second comparison result, the method of this embodiment of this application further includes:
acquiring current system time;
the current system time is taken as the second threshold.
In this alternative embodiment, the current system time may be used as the second threshold.
Example two
The present embodiment discloses an exemplary flow of a data transmission method, where the method is applied to a sending end, and the sending end includes a sending rate detection timer, a sending counter, a retransmission number counter, and a retransmission timer. The method comprises the following steps:
and counting the total amount of data packets sent by the host within preset time by using a sending rate detection timer, adding 1 to a sending counter SendCounter when sending one data packet, and taking the value of the sending counter SendCounter as a sending rate SendRate when the sending rate detection timer is up. Thus, SendRate will be updated at fixed intervals as determined by the transmission rate detection timer Checktimer.
Recording the retransmission times of the data packet by using a retransmission time counter, setting the retransmission times Nxmit to be 0 when the ACK/NACK data packet is received, and recording the current time as the LastAckTime of the last time of receiving the ACK/NACK data packet; and if the ACK/NACK data packet is not received, the retransmission times Nxmit is added with 1 every time the data packet is retransmitted.
When the retransmission timer arrives, the retransmission time of the host is calculated according to the following formula:
RexmitTime = LastAckTime +(4+Nxmit)*rtt;
wherein, Rexmitime represents the retransmission time of the host, LastAckTime represents the time of last receiving the ACK/NACK data packet, Nxmit represents the retransmission times, and rtt represents the round-trip delay.
Comparing the retransmission time to a current time;
if the current time does not exceed the retransmission time, waiting for the next retransmission timer to arrive, namely not starting the quick retransmission;
if the current time exceeds the retransmission time, judging whether the sending rate SendRate is smaller than a first threshold value, such as 50;
and if the sending rate SendRate is smaller than a first threshold value, starting the fast retransmission of the data.
Otherwise, fast retransmission of data is not initiated.
Every time the retransmission is carried out, the retransmission times Nxmit recorded by the retransmission times counter is increased by one.
Therefore, the fast retransmission can be started in the low-code-rate weak network environment, and is not started in the high-code-rate or non-weak network environment, so that the retransmission strategy is dynamically applicable, and the delay and the transmission efficiency are considered.
EXAMPLE III
Referring to fig. 2, fig. 2 is a schematic structural diagram of a data transmission device according to an embodiment of the present application. As shown in fig. 2, the apparatus of the embodiment of the present application:
a first determining module 201, configured to determine whether a host is in a low bit rate environment;
the second judging module 202 is configured to judge whether the host is in a weak network environment;
and the retransmission module 203 is configured to start fast retransmission of the data when the determination results are all yes.
The device of the embodiment of the application can enable the host to start the fast retransmission under the low-bit-rate and weak-network environment by judging whether the host is in the low-bit-rate environment or not and judging whether the host is in the weak-network environment or not, and the fast retransmission is not started no matter in a normal network or a weak network under the high-bit-rate condition, so that the high efficiency of data transmission when high-bit-rate transmission is guaranteed, and the low-bit-rate delay of the data transmission when the low-bit-rate transmission is guaranteed.
In this embodiment of the present application, as an optional implementation manner, the specific way for the first determining module 201 to determine whether the host is in the low bit rate environment is as follows:
counting the total amount of data packets sent by a host in a preset time;
comparing the total amount of data packets sent by the host within preset time with a first threshold value to obtain a first comparison result;
and judging whether the host is in a low-bit-rate environment or not according to the first comparison result, wherein if the first comparison result represents that the total amount of data packets sent by the host in the preset time is smaller than a first threshold value, the host is determined to be in the low-bit-rate environment.
In the embodiment of the present application, as an optional implementation manner, the first threshold is 50.
In this optional embodiment, the total amount of the data packets sent by the host within the preset time is counted, and then the total amount of the data packets sent by the host within the preset time is compared with the first threshold to obtain a first comparison result, and then whether the host is in the low-bit-rate environment or not can be judged according to the first comparison result, wherein if the first comparison result represents that the total amount of the data packets sent by the host within the preset time is smaller than the first threshold, it is determined that the host is in the low-bit-rate environment.
In this embodiment of the present application, as an optional implementation manner, the specific manner for the second determining module 202 to determine whether the host is in the weak network environment is as follows:
calculating the retransmission time of the host;
comparing the retransmission time of the host with a second threshold value to obtain a second comparison result;
and judging whether the host is in the weak network environment or not according to the second comparison result, wherein if the second comparison result represents that the retransmission time of the host is less than or equal to a second threshold value, the host is determined to be in the weak network environment.
In this optional embodiment, by calculating the retransmission time of the host, the retransmission time of the host can be compared with the second threshold to obtain a second comparison result, and whether the host is in the weak network environment can be further determined according to the second comparison result, where if the second comparison result indicates that the retransmission time of the host is less than or equal to the second threshold, it is determined that the host is in the weak network environment.
In this embodiment of the present application, as an optional implementation manner, the second determining module 202 performs a calculation formula of calculating the retransmission time of the host, where the calculation formula is:
RexmitTime = LastAckTime +(4+Nxmit)*rtt;
wherein, Rexmitime represents the retransmission time of the host, LastAckTime represents the last time of receiving the data packet, Nxmit represents the retransmission times, and rtt represents the round-trip delay.
In this optional embodiment, the retransmission time of the host can be calculated by calculating the formula rexmitime = LastAckTime + (4 + Nxmit) × rtt.
In this embodiment, as an optional implementation manner, after calculating the retransmission time of the host, before comparing the retransmission time of the host with the second threshold and obtaining the second comparison result, the apparatus in this embodiment of the present application further includes:
and the acquisition module is used for acquiring the current system time and taking the current system time as a second threshold.
In this alternative embodiment, the current system time may be used as the second threshold.
Example four
Referring to fig. 3, fig. 3 is a schematic structural diagram of a data transmission device based on a low code weak network according to an embodiment of the present application. As shown in fig. 3, the apparatus of the embodiment of the present application:
a processor 301; and
the memory 302 is configured to store machine-readable instructions, which when executed by the processor 301, cause the processor to execute the data transmission method of the embodiments of the present application.
The device of the embodiment of the application can enable the host to start the fast retransmission under the low-bit-rate and weak-network environment by judging whether the host is in the low-bit-rate environment or not and judging whether the host is in the weak-network environment or not, and the fast retransmission is not started no matter in a normal network or a weak network under the high-bit-rate condition, so that the high efficiency of data transmission when high-bit-rate transmission is guaranteed, and the low-bit-rate delay of the data transmission when the low-bit-rate transmission is guaranteed.
EXAMPLE five
The embodiment of the application discloses a storage medium, wherein a computer program is stored in the storage medium, and the computer program is executed by a processor to execute the data transmission method in the first embodiment of the application.
The storage medium of the embodiment of the application can enable the host to start fast retransmission under the low-bit-rate and weak-network environment by judging whether the host is in the low-bit-rate environment or not and judging whether the host is in the weak-network environment or not, and fast retransmission is not started no matter in a normal network or a weak network under the high-bit-rate condition, so that high efficiency of data transmission during high-bit-rate transmission is guaranteed, and low delay of data transmission during low-bit-rate transmission can be guaranteed.
EXAMPLE five
The embodiment of the application discloses a computer product, wherein the computer product stores an implementation program of a data transmission method, and the implementation program of the data transmission method is used for implementing the data transmission method of the first embodiment of the application when executed.
The computer product of the embodiment of the application can enable the host to start the fast retransmission under the low-bit-rate and weak-network environment by judging whether the host is in the low-bit-rate environment or not and judging whether the host is in the weak-network environment or not, and the fast retransmission is not started no matter a normal network or a weak network under the high-bit-rate condition, so that the high efficiency of data transmission when high-bit-rate transmission is ensured, and the low delay of the data transmission when the low-bit-rate transmission is ensured.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
It should be noted that the functions, if implemented in the form of software functional modules and sold or used as independent products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (8)

1. A method of data transmission, the method comprising:
judging whether a host is in a low-bit-rate environment or not and judging whether the host is in a weak network environment or not;
if the judgment result is yes, starting the fast retransmission of the data;
the judging whether the host is in the low bit rate environment includes:
counting the total amount of data packets sent by the host within a preset time;
comparing the total amount of the data packets sent by the host within preset time with a first threshold value to obtain a first comparison result;
judging whether the host is in the low-bit-rate environment or not according to the first comparison result, wherein if the first comparison result represents that the total amount of data packets sent by the host in preset time is smaller than the first threshold value, the host is determined to be in the low-bit-rate environment;
the judging whether the host is in a weak network environment includes:
calculating the retransmission time of the host;
comparing the retransmission time of the host with a second threshold value to obtain a second comparison result;
and judging whether the host is in the weak network environment or not according to the second comparison result, wherein if the second comparison result represents that the retransmission time of the host is less than or equal to the second threshold, the host is determined to be in the weak network environment.
2. The method of claim 1,
and counting the total amount of the data packets sent by the host within a preset time by using a sending rate detection timer.
3. The method of claim 1, wherein the calculation of the retransmission time for the host is by:
RexmitTime = LastAckTime +(4+Nxmit)*rtt;
the Rexmitime indicates retransmission time of the host, the LastAckTime indicates time of last data packet reception, the Nxmit indicates retransmission times, and the rtt indicates round-trip delay.
4. The method of claim 1, wherein after said calculating the retransmission time of the host, before said comparing the retransmission time of the host to a second threshold and obtaining a second comparison result, the method further comprises:
acquiring current system time;
taking the current system time as the second threshold.
5. The method of claim 1, wherein the first threshold is 50.
6. A data transmission apparatus, characterized in that the apparatus comprises:
the first judgment module is used for judging whether the host is in a low code rate environment or not;
the second judgment module is used for judging whether the host is in a weak network environment or not;
the retransmission module is used for starting the rapid retransmission of the data when the judgment results are yes;
the judging whether the host is in the low bit rate environment includes:
counting the total amount of data packets sent by the host within a preset time;
comparing the total amount of the data packets sent by the host within preset time with a first threshold value to obtain a first comparison result;
judging whether the host is in the low-bit-rate environment or not according to the first comparison result, wherein if the first comparison result represents that the total amount of data packets sent by the host in preset time is smaller than the first threshold value, the host is determined to be in the low-bit-rate environment;
the judging whether the host is in a weak network environment includes:
calculating the retransmission time of the host;
comparing the retransmission time of the host with a second threshold value to obtain a second comparison result;
and judging whether the host is in the weak network environment or not according to the second comparison result, wherein if the second comparison result represents that the retransmission time of the host is less than or equal to the second threshold, the host is determined to be in the weak network environment.
7. A data transmission device, characterized in that the device comprises:
a processor; and
a memory configured to store machine readable instructions that, when executed by the processor, cause the processor to perform the data transmission method of any of claims 1-5.
8. A storage medium, characterized in that the storage medium stores a computer program which is executed by a processor to perform the data transmission method according to any one of claims 1 to 5.
CN202110028447.XA 2021-01-11 2021-01-11 Data transmission method, device, equipment and storage medium Active CN112351049B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110028447.XA CN112351049B (en) 2021-01-11 2021-01-11 Data transmission method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110028447.XA CN112351049B (en) 2021-01-11 2021-01-11 Data transmission method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112351049A CN112351049A (en) 2021-02-09
CN112351049B true CN112351049B (en) 2021-04-06

Family

ID=74427538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110028447.XA Active CN112351049B (en) 2021-01-11 2021-01-11 Data transmission method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112351049B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301029A (en) * 2021-05-14 2021-08-24 北京汇钧科技有限公司 Data transmission method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006066606A1 (en) * 2004-12-22 2006-06-29 Telefonaktiebolaget Lm Ericsson (Publ) Data flow control with duplicate acknowledgment
CN107735985A (en) * 2015-06-11 2018-02-23 三星电子株式会社 Electronic installation, its wireless communications method and non-transitory computer-readable storage media
CN109474365A (en) * 2018-12-29 2019-03-15 深圳市柠檬互动科技有限公司 A kind of frame synchronization UDP network synchronization method
CN109525458A (en) * 2018-11-20 2019-03-26 网易(杭州)网络有限公司 Data transmission method, device, medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006066606A1 (en) * 2004-12-22 2006-06-29 Telefonaktiebolaget Lm Ericsson (Publ) Data flow control with duplicate acknowledgment
CN107735985A (en) * 2015-06-11 2018-02-23 三星电子株式会社 Electronic installation, its wireless communications method and non-transitory computer-readable storage media
CN109525458A (en) * 2018-11-20 2019-03-26 网易(杭州)网络有限公司 Data transmission method, device, medium and electronic equipment
CN109474365A (en) * 2018-12-29 2019-03-15 深圳市柠檬互动科技有限公司 A kind of frame synchronization UDP network synchronization method

Also Published As

Publication number Publication date
CN112351049A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
US11934340B2 (en) Multi-path RDMA transmission
US20220014312A1 (en) Data transmission method and apparatus
EP2978171B1 (en) Communication method, communication device, and communication program
KR20200051059A (en) Method and apparatus for data transmission
CN103269260A (en) Data transmission method, data receiving terminal, data sending terminal and data transmission system
CA2466231A1 (en) Time-aware best-effort hole-filling retry method and system for network communications
CN114024914B (en) Video data transmission method and device and electronic equipment
US9197373B2 (en) Method, apparatus, and system for retransmitting data packet in quick path interconnect system
CN111818632B (en) Method, device, equipment and storage medium for equipment synchronization
CN109525376B (en) Fast retransmission method and device and terminal equipment
CN110784415A (en) ECN quick response method and device
WO2019128964A1 (en) Packet loss measurement method, apparatus, and system
CN109560897B (en) TCP retransmission method and device
CN112351049B (en) Data transmission method, device, equipment and storage medium
CN111181698B (en) Data processing method, device, equipment and medium
CN110233856B (en) Message processing method and device and computer readable storage medium
CN113992654A (en) High-speed file transmission method, system, equipment and medium
WO2013185480A1 (en) Method and device for obtaining throughput rate
US8532111B2 (en) Transmission apparatus, transmission method, and program
US20150318958A1 (en) Communication apparatus and packet transfer method
CN115001630B (en) Data transmission method, device, equipment and storage medium
US11962517B2 (en) Communications method, apparatus, and system for recovering lost packets
EP4207654A1 (en) Packet retransmission method and apparatus
CN117896548A (en) Data frame transmission method, device, electronic equipment and readable storage medium
CN114500672A (en) Data transmission method and system

Legal Events

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