CN110247815B - Data transmission method, device and system and computer readable storage medium - Google Patents

Data transmission method, device and system and computer readable storage medium Download PDF

Info

Publication number
CN110247815B
CN110247815B CN201910386327.XA CN201910386327A CN110247815B CN 110247815 B CN110247815 B CN 110247815B CN 201910386327 A CN201910386327 A CN 201910386327A CN 110247815 B CN110247815 B CN 110247815B
Authority
CN
China
Prior art keywords
data transmission
speed
preset
task
tasks
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
CN201910386327.XA
Other languages
Chinese (zh)
Other versions
CN110247815A (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.)
Shenzhen Xunlei Network Technology Co Ltd
Original Assignee
Shenzhen Xunlei Network Technology 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 Shenzhen Xunlei Network Technology Co Ltd filed Critical Shenzhen Xunlei Network Technology Co Ltd
Priority to CN201910386327.XA priority Critical patent/CN110247815B/en
Publication of CN110247815A publication Critical patent/CN110247815A/en
Application granted granted Critical
Publication of CN110247815B publication Critical patent/CN110247815B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Abstract

The invention relates to a data transmission method, which comprises the steps of monitoring the speed sum of all current data transmission tasks, judging whether the speed sum is lower than a preset speed threshold value, and if so, determining a newly added data transmission task and starting transmission. Because the speed can reflect the bandwidth condition, the sum of the speeds can reflect the bandwidth condition occupied by all the data transmission tasks, and the preset speed threshold can reflect the total quantity of the preset available bandwidth, the current bandwidth can be more fully utilized by adjusting the total quantity of the current data transmission tasks by the speed, and the completion rate of all the data transmission tasks can be more effectively improved. The application also provides a data transmission device, a data transmission system and a computer readable storage medium, which can also achieve the technical effects.

Description

Data transmission method, device and system and computer readable storage medium
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a data transmission method, apparatus, system, and computer-readable storage medium.
Background
At present, resources on the network are quite rich, and many users can download resource data on the network to the local or upload local resources to the network through a data transmission tool.
The data transmission speed is usually determined by the network bandwidth of the device to which the data transmission tool belongs and the transmission condition of the resource data itself, and when the available uplink or downlink bandwidth of the data transmission tool is greater than the maximum transmission speed allowed by the transmission condition of the current resource data, the transmission speed of the resource data is the optimal speed, that is, the maximum transmission speed of the resource data. If the device to which the data transfer tool belongs still has spare bandwidth, this part of bandwidth is wasted.
In order to make full use of the bandwidth of the system, when a plurality of tasks exist, the user can select the plurality of tasks to be transmitted simultaneously, so that the plurality of tasks are completed concurrently, and the overall downloading time of all the tasks is saved.
In the existing multi-task simultaneous transmission function, a system defaults (a user can also set) the maximum task number to be transmitted simultaneously, when the total amount of tasks to be transmitted is within the range of the maximum task number, all tasks are downloaded or uploaded simultaneously, namely all tasks are downloaded or uploaded in parallel, and when the total amount of tasks to be transmitted exceeds the range of the maximum task number, the tasks exceeding the maximum task number are queued to wait for transmission.
Because the bandwidth is fully utilized by adjusting the maximum task number transmitted simultaneously, actually, the transmission speed of each task is different, and the speed in the process of transmitting one task fluctuates, the bandwidth occupation situation may be different even if the tasks with the same number are the same, and it cannot be completely ensured that each group of tasks with the maximum task number can fully utilize the system bandwidth.
Therefore, how to ensure that the system bandwidth is fully utilized when performing a data transmission task is a problem that needs to be solved urgently by those skilled in the art.
Disclosure of Invention
The invention mainly aims to provide a data transmission method, a data transmission device, a data transmission system and a computer readable storage medium, so as to solve the problem that the system bandwidth cannot be fully utilized when a data transmission task is carried out in the prior art.
In order to achieve the above object, the present application provides a data transmission method, including:
monitoring the speed sum of all currently-performed data transmission tasks;
and if the speed sum is lower than a preset speed threshold value and the data transmission tasks waiting for transmission exist, determining at least one newly added data transmission task in the data transmission tasks waiting for transmission and performing data transmission.
Optionally, before determining at least one newly added data transmission task from among the data transmission tasks waiting for transmission and performing data transmission, the method further includes:
network speed measurement is carried out, and the current actual available speed is determined by using a network speed measurement result;
judging whether the actual available speed is greater than the preset speed threshold value or not;
and if so, continuing to execute the step of determining at least one newly added data transmission task in the data transmission tasks waiting for transmission and transmitting data.
Optionally, after determining whether the actual available speed is greater than the preset speed threshold, the method further includes:
and when the actual available speed is not greater than the preset speed threshold, adjusting the preset speed threshold according to the actual available speed.
Optionally, before the adjusting the preset speed threshold according to the actual available speed sum, the method further includes:
judging whether the preset speed threshold value has an adjustment authority or not;
if yes, continuing to execute the step of adjusting the preset speed threshold according to the actual available speed.
Optionally, after determining at least one newly added data transmission task from among the data transmission tasks waiting for transmission and performing data transmission, the method further includes:
detecting whether the speed reduction value of the original data transmission task is greater than a preset threshold value or not;
and if so, suspending the newly added data transmission task.
Optionally, the detecting whether the speed reduction value of the original data transmission task is greater than a preset threshold includes:
determining a first average speed of the original data transmission task; the first average speed is the average value of the data transmission speed of each original data transmission task within a preset time range after the newly added data transmission task starts to be carried out;
determining a second average speed of the original data transmission task; the second average speed is the average value of the data transmission speed of each original data transmission task within a preset time range before the newly added data transmission task starts to be carried out;
and judging whether the reduction value of the first average speed compared with the second average speed is greater than a preset threshold value or not.
To achieve the above object, the present application further provides a data transmission device, which includes a memory and a processor, wherein the memory stores a data transmission program operable on the processor, and the data transmission program, when executed by the processor, implements the data transmission method according to any one of the above aspects.
In order to achieve the above object, the present application further provides a data transmission system, including:
the monitoring module is used for monitoring the speed sum of all currently-performed data transmission tasks;
and the data transmission task adding module is used for determining at least one newly added data transmission task in the data transmission tasks waiting for transmission and transmitting data if the speed sum is lower than a preset speed threshold and the data transmission tasks waiting for transmission exist.
To achieve the above object, the present application also provides a computer-readable storage medium having a data transmission program stored thereon, the data transmission program being executable by one or more processors to implement the data transmission method according to any one of the above.
To achieve the above object, the present application also provides a computer program product comprising computer instructions which, when run on a computer, enable the computer to perform the data transmission method of any of the above.
Therefore, the method and the device for data transmission are characterized in that the speed sum of all current data transmission tasks is monitored, whether the speed sum is lower than a preset speed threshold value or not is judged, and if yes, a new data transmission task is determined and transmission is started. Because the speed can reflect the bandwidth condition, the sum of the speeds can reflect the bandwidth condition occupied by all the data transmission tasks, and the preset speed threshold can reflect the total quantity of the preset available bandwidth, the current bandwidth can be more fully utilized by adjusting the total quantity of the current data transmission tasks by the speed, and the completion rate of all the data transmission tasks can be more effectively improved. The application also provides a data transmission device, a data transmission system and a computer readable storage medium, which can also achieve the technical effects.
Drawings
FIG. 1 is a flow chart of a data transmission method provided by the present invention;
FIG. 2 is a flow chart of a specific data transmission method according to the present invention;
FIG. 3 is a flow chart of a specific data transmission method according to the present invention;
fig. 4 is a schematic diagram of an internal structure of a data transmission device according to an embodiment of the disclosure;
fig. 5 is a schematic structural diagram of a data transmission system according to an embodiment of the disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
The application provides a data transmission method, a data transmission device, a data transmission system and a computer readable storage medium, which are used for solving the problem that the system bandwidth cannot be fully utilized when a data transmission task is carried out in the prior art.
Referring to fig. 1, fig. 1 is a schematic flow chart according to an embodiment of the invention.
In one embodiment, the method comprises the following steps:
s101, monitoring the speed sum of all currently ongoing data transmission tasks.
In the present scheme, the data transmission task is a data download task or a data upload task, and it can be understood that if the data transmission task in this step is a data download task, the data transmission in the subsequent step is a data download operation, and if the data transmission task in this step is a data upload task, the data transmission in the subsequent step is a data upload operation.
It should be noted that the data transmission speed may also be understood as an uplink bandwidth rate or a downlink bandwidth rate corresponding to data uploading or data downloading, and the bandwidth rate and the occupied bandwidth may be converted with each other. Theoretically, 2M bandwidth, i.e., 2Mb/s, the theoretical rate of the wideband is 256KB/s, and the actual rate is about 103-200 kB/s; 4M bandwidth, i.e. 4Mb/s, the theoretical rate of the wideband is 512KB/s, and the actual rate is about 200-440 kB/s. The reason is caused by the influence of a plurality of factors such as user computer performance, network equipment quality, resource use condition, network peak period, website service capability, line attenuation, signal attenuation and the like.
The sum of the speeds of all the current data uploading tasks can reflect the bandwidth occupied by all the current uploading tasks, and the sum of the speeds of all the current data downloading tasks can reflect the bandwidth occupied by all the current downloading tasks, so that the sum of the speeds is directly utilized to adjust the number of the tasks which are transmitted at the same time.
Specifically, the sum of the speeds of all currently ongoing data transmission tasks is monitored first, and since the speed of data transmission fluctuates normally, real-time monitoring is not necessary, which results in a great waste of computing resources, so that the monitoring operation may be performed once at preset time intervals, for example, once at 30s intervals.
For example, if there are 3 current download tasks, the first speed is 20kb/s, the second speed is 30kb/s, and the third speed is 20kb/s, the sum of the speeds of the current download tasks is 70 kb/s.
S102, if the speed sum is lower than a preset speed threshold value and data transmission tasks waiting for transmission exist, determining at least one newly added data transmission task in the data transmission tasks waiting for transmission and performing data transmission.
In the scheme, a preset speed threshold is determined for all currently available uplink bandwidths or downlink bandwidths of the data transmission tool according to a conversion rule of bandwidth and bandwidth rate, and it can be understood that if the sum of the speeds of all current data transmission tasks reaches the preset speed threshold, it indicates that the current data transmission task has fully utilized the bandwidth corresponding to the preset speed threshold, and otherwise, an idle bandwidth can be utilized.
If the sum of the speeds of all the current data transmission tasks is lower than the preset speed threshold, it is proved that the idle bandwidth can be utilized, so that a new data transmission task is determined from the data transmission tasks waiting for transmission, and the new data transmission task is started to be transmitted, that is, the number of the current data transmission tasks is increased.
Therefore, the method and the device for data transmission are characterized in that the speed sum of all current data transmission tasks is monitored, whether the speed sum is lower than a preset speed threshold value or not is judged, and if yes, a new data transmission task is determined and transmission is started. Because the speed can reflect the bandwidth condition, the sum of the speeds can reflect the bandwidth condition occupied by all the data transmission tasks, and the preset speed threshold can reflect the total quantity of the preset available bandwidth, the current bandwidth can be more fully utilized by adjusting the total quantity of the current data transmission tasks by the speed, and the completion rate of all the data transmission tasks can be more effectively improved.
A specific data transmission method provided in the embodiments of the present application is introduced below, and a data transmission method described below and the embodiments described above may be referred to each other.
Referring to fig. 2, a data transmission method provided in an embodiment of the present application specifically includes:
s201, monitoring the sum of the speeds of all currently ongoing data transmission tasks.
S202, if the sum of the speeds is lower than a preset speed threshold value and a data transmission task waiting for transmission exists, network speed measurement is carried out, and the current actual available speed is determined by using a network speed measurement result.
It should be noted that, because the preset speed threshold is set by the user, the preset speed threshold set by the user may not be in accordance with the actual uplink bandwidth or downlink bandwidth of the current computer; in addition, the network condition of the user may also be unstable, so that when the data transmission speed corresponding to the actual uplink bandwidth and downlink bandwidth is less than the preset speed threshold set by the user, the sum of the speeds is always lower than the preset speed threshold, and at this time, the number of tasks transmitted simultaneously is continuously increased, so that the number of tasks transmitted in parallel is too large, the actually occupied bandwidth is not changed, and the overall completion time is not changed, but the time for completing a single task is longer, which is not in accordance with the actual expectation of the user.
Therefore, in order to avoid such a situation, when the sum of the speeds of all the data transmission tasks is lower than the preset speed threshold, the tasks transmitted simultaneously are not increased, but it is necessary to further determine whether the current preset speed threshold matches the actual network speed.
Specifically, firstly, network speed measurement is performed on the current system, and the actually available speed of the current system is determined.
It should be noted that, in the prior art, network speed measurement has been implemented, and only relevant tools need to be called in the scheme, and the specific speed measurement scheme is not described again.
S203, judging whether the actual available speed is greater than the preset speed threshold value.
After the current actual available speed sum is measured, whether the actual available speed sum is larger than a preset speed threshold value or not can be judged, if yes, S204 is executed again, and a new task is added.
And S204, if so, determining at least one newly added data transmission task in the data transmission tasks waiting for transmission and performing data transmission. In a preferred embodiment, if the sum of the actual available speeds is not greater than the preset speed threshold, the preset threshold may be automatically adjusted to match the current network condition, which is more accurate.
Specifically, when the actual available speed is not greater than the preset speed threshold, the preset speed threshold is adjusted according to the actual available speed.
In a specific embodiment, a function of whether to allow the data transmission tool to automatically adjust the preset speed threshold may be provided for a user, and therefore, before the adjusting the preset speed threshold according to the actual available speed sum, the method further includes:
judging whether the preset speed threshold value has an adjustment authority or not;
if yes, continuing to execute the step of adjusting the preset speed threshold according to the actual available speed.
In this step, if the user selects to allow the data transmission tool to automatically adjust the preset speed threshold, the adjustment permission of the preset speed threshold may be obtained, and the adjustment operation is performed, otherwise, the adjustment operation is not performed.
Therefore, before adding a new task and transmitting data, whether the current actual available speed is greater than a preset speed threshold value needs to be judged, if so, the new task is added, and otherwise, the new task is not added. Therefore, the situation that when the data transmission speed corresponding to the actual bandwidth is smaller than the preset speed threshold set by the user, the number of tasks transmitted simultaneously is continuously increased, the number of tasks transmitted in parallel is excessive, the actual occupied bandwidth is unchanged, the overall completion time is unchanged, the completion time of a single task is longer, and the actual completion time is inconsistent with the actual expectation of the user can be avoided.
A specific data transmission method provided in the embodiments of the present application is introduced below, and a specific data transmission method described below may be mutually referred to any of the embodiments described above.
Referring to fig. 3, a specific data transmission method provided in the embodiment of the present application specifically includes:
s301, the sum of the speeds of all the currently ongoing data transmission tasks is monitored.
S302, if the speed sum is lower than a preset speed threshold value and data transmission tasks waiting for transmission exist, determining at least one newly added data transmission task in the data transmission tasks waiting for transmission and performing data transmission.
S303, detecting whether the speed reduction value of the original data transmission task is larger than a preset threshold value.
It should be noted that, if the data transmission speed corresponding to the actual bandwidth is smaller than the preset speed threshold set by the user, even if a new task is added, the sum of the speeds will not increase any more, and only the speed of each task being transmitted will be reduced, which causes the problem that the completion time of a single task is long, and is not in accordance with the actual expectation of the user.
In order to avoid the situation, the transmission speed of each task can be detected after a new task is added.
Specifically, it is detected whether the speed reduction value of the original data transmission task is greater than a preset threshold, where the preset threshold is used to determine whether the reduction degree of the transmission speed of the original data transmission task exceeds the expectation of a user, and the preset threshold may be set according to an actual situation, and the scheme is not specifically limited.
The original data transmission task is a task which is transmitted before a new data transmission task is determined and transmitted in the tasks waiting for data transmission.
In a specific embodiment, a first average speed of the original data transmission task is determined; the first average speed is the average transmission speed of each original data transmission task within a preset time range after the newly added data transmission task starts to be performed;
determining a second average speed of the original data transmission task; the second average speed is the average value of the transmission speed of each original data transmission task within a preset time range before the newly added data transmission task starts to be carried out;
and judging whether the reduction value of the first average speed compared with the second average speed is greater than a preset threshold value or not.
It should be noted that, because the data transmission speed is not a stable speed, and even the fluctuation is very large, the detection result may not be accurate by using the instantaneous speed, and in order to improve the accuracy of the detection result, the average value of the speed in the unit time is used for the detection in the present scheme.
Specifically, the first average speed corresponds to a newly-added data transmission task and is a speed average value within a first preset time range after the newly-added data transmission task starts to be performed; the second average speed corresponds to the original data transmission task, and is the speed average value of the original data transmission task in a second preset time range before the newly-added data transmission task starts.
The first preset time and the second preset time can be set according to actual conditions, and the scheme is not particularly limited.
And S304, if yes, suspending the newly added data transmission task.
Specifically, if the speed reduction value of the original data transmission task is detected to be larger than the preset threshold value, the newly-added data transmission task is suspended, so that the problem that the completion time of a single task is long and the problem that the completion time is inconsistent with the actual expectation of a user is solved.
Further, the embodiment also discloses a data transmission device.
Referring to fig. 4, fig. 4 is a schematic diagram of an internal structure of a data transmission device according to an embodiment of the present invention. In fig. 4, the data transmission device 1 includes a memory 11 and a processor 12, the memory 11 stores a data transmission program operable on the processor 12, and the data transmission when executed by the processor 12 implements the following method:
monitoring the speed sum of all currently-performed data transmission tasks;
and if the speed sum is lower than a preset speed threshold value and the data transmission tasks waiting for transmission exist, determining at least one newly added data transmission task in the data transmission tasks waiting for transmission and performing data transmission.
Therefore, the method and the device for data transmission are characterized in that the speed sum of all current data transmission tasks is monitored, whether the speed sum is lower than a preset speed threshold value or not is judged, and if yes, a new data transmission task is determined and transmission is started. Because the speed can reflect the bandwidth condition, the sum of the speeds can reflect the bandwidth condition occupied by all the data transmission tasks, and the preset speed threshold can reflect the total quantity of the preset available bandwidth, the current bandwidth can be more fully utilized by adjusting the total quantity of the current data transmission tasks by the speed, and the completion rate of all the data transmission tasks can be more effectively improved.
The data transfer program, when executed by the processor 12, may further implement:
network speed measurement is carried out, and the current actual available speed is determined by using a network speed measurement result;
judging whether the actual available speed is greater than the preset speed threshold value or not;
and if so, continuing to execute the step of determining at least one newly added data transmission task in the data transmission tasks waiting for transmission and transmitting data.
The data transfer program, when executed by the processor 12, may further implement:
and when the actual available speed is not greater than the preset speed threshold, adjusting the preset speed threshold according to the actual available speed.
The data transfer program, when executed by the processor 12, may further implement:
judging whether the preset speed threshold value has an adjustment authority or not;
if yes, continuing to execute the step of adjusting the preset speed threshold according to the actual available speed.
The data transfer program, when executed by the processor 12, may further implement:
detecting whether the speed reduction value of the original data transmission task is greater than a preset threshold value or not;
and if so, suspending the newly added data transmission task.
When the data transmission program is executed by the processor 12, the following steps may be specifically implemented:
determining a first average speed of the original data transmission task; the first average speed is the average downloading speed of each original data transmission task within a preset time range after the newly added data transmission task starts to be performed;
determining a second average speed of the original data transmission task; the second average speed is the average value of the data transmission speed of each original data transmission task within a preset time range before the newly added data transmission task starts to be carried out;
and judging whether the reduction value of the first average speed compared with the second average speed is greater than a preset threshold value or not.
Further, referring to fig. 4, the data transmission apparatus 1 may further include a bus 13, wherein the memory 11 and the processor 12 are connected through the bus 13.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the data transmission device 1, for example a hard disk of the data transmission device 1. The memory 11 may also be an external storage device of the data transmission device 1 in other embodiments, such as a plug-in hard disk provided on the data transmission device 1, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 11 may also include both an internal storage unit and an external storage device of the data transmission apparatus 1. The memory 11 may be used not only to store application software installed in the data transmission device 1 and various types of data, such as codes of a data transmission program, but also to temporarily store data that has been output or is to be output.
The processor 12 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data Processing chip in some embodiments, and is used for executing program codes stored in the memory 11 or Processing data, such as executing a data transmission program.
The bus 13 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
Further, the data transmission apparatus 1 may further include a network interface 14, and the network interface 14 may optionally include a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which is generally used to establish a communication connection between the data transmission apparatus 1 and other electronic devices.
Optionally, the data transmission device 1 may further comprise a user interface 15, and the user interface 15 may comprise a Display (Display), an input unit such as a Keyboard (Keyboard). Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the data transmission device 1 and for displaying a visual user interface.
Fig. 4 shows only the data transmission device 1 with the components 11-15, and it will be understood by those skilled in the art that the structure shown in fig. 4 does not constitute a limitation of the data transmission device 1, and may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
Further, the embodiment also discloses a data transmission system.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a data transmission system according to an embodiment of the disclosure. In fig. 5, the data transmission system includes:
a monitoring module 401, configured to monitor a sum of speeds of all currently-performed data transmission tasks;
a download task adding module 402, configured to determine at least one newly added data transmission task among the data transmission tasks waiting to be transmitted and perform data transmission if the speed sum is lower than a preset speed threshold and there are data transmission tasks waiting to be transmitted.
In a specific embodiment, the system further comprises:
the speed measuring module is used for carrying out network speed measurement and determining the current actual available speed by using a network speed measurement result;
and the preset speed threshold detection module is used for judging whether the actual available speed is greater than the preset speed threshold, if so, continuing to execute the step of determining at least one newly added data transmission task in the data transmission tasks waiting for transmission and performing data transmission.
In a specific embodiment, the system further comprises:
and the preset speed threshold adjusting module is used for adjusting the preset speed threshold according to the actual available speed when the actual available speed is not greater than the preset speed threshold.
In a specific embodiment, the system further comprises:
the adjustment authority determining module is used for judging whether the preset speed threshold value has the adjustment authority; if yes, continuing to execute the step of adjusting the preset speed threshold according to the actual available speed.
In a specific embodiment, the system further comprises:
the speed reduction value detection module is used for detecting whether the speed reduction value of the original data transmission task is greater than a preset threshold value or not; and if so, suspending the newly added data transmission task.
In a specific embodiment, the speed reduction value detection module specifically includes:
a first average speed determining unit, configured to determine a first average speed of the original data transmission task; the first average speed is the average downloading speed of each original data transmission task within a preset time range after the newly added data transmission task starts to be performed;
the first average speed determining unit is used for determining a second average speed of the original data transmission task; the second average speed is the average value of the data transmission speed of each original data transmission task within a preset time range before the newly added data transmission task starts to be carried out;
and the judging unit is used for judging whether the reduction value of the first average speed compared with the second average speed is greater than a preset threshold value or not.
The data transmission system of this embodiment is configured to implement the foregoing data transmission method, and therefore a specific implementation manner in the data transmission system may be found in the foregoing embodiment portions of the data transmission method, for example, the monitoring module 401 and the data transmission task adding module 402 are respectively configured to implement steps S101 and S102 in the data transmission method, so that the specific implementation manner thereof may refer to descriptions of corresponding embodiments of each portion, and is not described herein again.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, may implement the steps provided by the above-described embodiments. The storage medium may include: 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.
The present application also provides a computer program product comprising computer instructions which, when run on a computer, cause the computer to perform the data transmission method of any of the above embodiments.
It should be noted that the above-mentioned numbers of the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method of data transmission, comprising:
monitoring the speed sum of all currently-performed data transmission tasks;
if the speed sum is lower than a preset speed threshold value and data transmission tasks waiting for transmission exist, determining at least one newly added data transmission task in the data transmission tasks waiting for transmission and performing data transmission;
before determining at least one newly added data transmission task in the data transmission tasks waiting for transmission and performing data transmission, the method further includes:
network speed measurement is carried out, and the current actual available speed is determined by using a network speed measurement result;
judging whether the actual available speed is greater than the preset speed threshold value or not;
and if so, continuing to execute the step of determining at least one newly added data transmission task in the data transmission tasks waiting for transmission and transmitting data.
2. The method of claim 1, wherein after determining whether the actual available speed is greater than the preset speed threshold, further comprising:
and when the actual available speed is not greater than the preset speed threshold, adjusting the preset speed threshold according to the actual available speed.
3. The method of claim 2, wherein prior to said adjusting said preset speed threshold based on said actual available speed, further comprising:
judging whether the preset speed threshold value has an adjustment authority or not;
if yes, continuing to execute the step of adjusting the preset speed threshold according to the actual available speed.
4. The method according to any one of claims 1 to 3, wherein after determining at least one new data transmission task among the data transmission tasks waiting for transmission and performing data transmission, the method further comprises:
detecting whether the speed reduction value of the original data transmission task is greater than a preset threshold value or not;
and if so, suspending the newly added data transmission task.
5. The method according to claim 4, wherein the detecting whether the speed reduction value of the original data transmission task is greater than a preset threshold value comprises:
determining a first average speed of the original data transmission task; the first average speed is the average value of the data transmission speed of each original data transmission task within a preset time range after the newly added data transmission task starts to be carried out;
determining a second average speed of the original data transmission task; the second average speed is the average value of the data transmission speed of each original data transmission task within a preset time range before the newly added data transmission task starts to be carried out;
and judging whether the reduction value of the first average speed compared with the second average speed is greater than a preset threshold value or not.
6. A data transmission apparatus, comprising a memory and a processor, the memory having stored thereon a data transmission program operable on the processor, the data transmission program when executed by the processor implementing a data transmission method as claimed in any one of claims 1 to 5.
7. A data transmission system, comprising:
the monitoring module is used for monitoring the speed sum of all currently-performed data transmission tasks;
the data transmission task adding module is used for determining at least one newly added data transmission task in the data transmission tasks waiting for transmission and transmitting data if the speed sum is lower than a preset speed threshold and the data transmission tasks waiting for transmission exist;
wherein the system further comprises:
the speed measuring module is used for carrying out network speed measurement and determining the current actual available speed by using a network speed measurement result;
the preset speed threshold detection module is used for judging whether the actual available speed is greater than the preset speed threshold; and if so, continuing to execute the step of determining at least one newly added data transmission task in the data transmission tasks waiting for transmission and transmitting data.
8. A computer-readable storage medium having stored thereon a data transfer program executable by one or more processors to implement a data transfer method as claimed in any one of claims 1 to 5.
CN201910386327.XA 2019-05-09 2019-05-09 Data transmission method, device and system and computer readable storage medium Active CN110247815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910386327.XA CN110247815B (en) 2019-05-09 2019-05-09 Data transmission method, device and system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910386327.XA CN110247815B (en) 2019-05-09 2019-05-09 Data transmission method, device and system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110247815A CN110247815A (en) 2019-09-17
CN110247815B true CN110247815B (en) 2021-09-03

Family

ID=67883982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910386327.XA Active CN110247815B (en) 2019-05-09 2019-05-09 Data transmission method, device and system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110247815B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111405370B (en) * 2019-11-13 2022-04-05 杭州海康威视系统技术有限公司 Video playback method and device
CN113766022A (en) * 2021-09-03 2021-12-07 统信软件技术有限公司 Task downloading method and device, computing equipment and storage medium

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383751B (en) * 2008-07-24 2011-06-22 四川长虹电器股份有限公司 Network downloading method
US9172458B2 (en) * 2010-10-14 2015-10-27 Hughes Network Systems, Llc Method and apparatus for high symbol rate communication system with reduced overhead bandwidth
CN103312752B (en) * 2012-03-13 2016-07-06 中国联合网络通信集团有限公司 Point to point network information dispensing method, download node, index server and system
CN103533032B (en) * 2013-09-26 2019-03-05 北京奇虎科技有限公司 Bandwidth adjustment device and method
CN106161524A (en) * 2015-04-03 2016-11-23 中国移动通信集团上海有限公司 A kind of resource downloading method based on distributed resource node and device
CN105933178A (en) * 2016-03-31 2016-09-07 乐视控股(北京)有限公司 Method, device and terminal device for detecting communication link
CN106998349A (en) * 2016-10-18 2017-08-01 深圳大宇无限科技有限公司 Multithreading method for down loading and device
CN109547277A (en) * 2017-09-21 2019-03-29 顺丰科技有限公司 The method for limiting speed of data transmission, system, equipment, computer readable storage medium
CN107835101B (en) * 2017-10-19 2020-05-08 厦门美柚股份有限公司 Method and device for pressure test on server and terminal
CN109257828A (en) * 2018-09-20 2019-01-22 西安中兴新软件有限责任公司 A kind of data transmission method and device, computer readable storage medium
CN109218133B (en) * 2018-09-27 2022-04-01 深圳市网心科技有限公司 Network speed testing system, method, device and computer readable storage medium
CN109246695A (en) * 2018-10-24 2019-01-18 深圳市鼎晟开元科技有限公司 Data transmission method, device and computer readable storage medium

Also Published As

Publication number Publication date
CN110247815A (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN109218133B (en) Network speed testing system, method, device and computer readable storage medium
CN110247815B (en) Data transmission method, device and system and computer readable storage medium
CN107547433B (en) Method, device and equipment for current limiting based on token leaky bucket
CN109451155B (en) Terminal temperature dynamic control method, terminal, system and storage medium
WO2013108178A1 (en) Method, apparatus and computer readable medium product for scheduling an uplink data transmission
CN109495542B (en) Load distribution method based on performance monitoring and terminal equipment
CN106411920B (en) Data sharing method and device
CN111586714B (en) Network port allocation method, device, electronic equipment and computer usable medium
CN111190739A (en) Resource allocation method and device, electronic equipment and storage medium
CN109309735B (en) Connection processing method, server, system and storage medium
CN112559173A (en) Resource adjusting method and device, electronic equipment and readable storage medium
CN105930248A (en) Application performance prompting method and system
CN110336888B (en) Server distribution method, device, system and medium
CN112612430B (en) Printing control method of printer, related equipment and storage medium
CN103840910A (en) Data transmission control method and apparatus
CN112596985B (en) IT asset detection method, device, equipment and medium
CN109510850B (en) Method, device and system for processing browsing request
KR20160018030A (en) Method and apparatus for executing software in a electronic device
CN108804152B (en) Method and device for adjusting configuration parameters
CN108418730B (en) Network flow testing method, device, equipment and computer readable storage medium
CN111857996B (en) Interrupt processing method, system, equipment and computer readable storage medium
CN104462116B (en) Data selection method and device
CN115576791A (en) Dynamic adjustment method and device for pressure measurement thread, electronic equipment and storage medium
CN112333276B (en) Network access method, system, storage medium and electronic device
CN110737320B (en) Power consumption detection method and device, electronic equipment and storage medium

Legal Events

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