Data transmission control method, data acquisition method, device, equipment and product

By receiving data acquisition requests during data transmission and switching transmission rate gain based on actual network bandwidth, the problem that data transmission equipment cannot match business scenarios is solved, and the efficiency and matching degree of data transmission are improved.

CN119210655APending Publication Date: 2024-12-27BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411379568.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In the prior art, the data sending device unilaterally perceives the changes in network bandwidth and cannot effectively match the actual business scenarios, resulting in the data sending rate inconsistent with the service requirements.

Method used

By receiving data acquisition requests, the target network bandwidth is determined, and the transmission rate gain is switched when the actual network bandwidth reaches the target bandwidth, and the data transmission rate is adjusted to match the actual network bandwidth requirements of the data acquisition device.

Benefits of technology

It improves the matching degree of data transmission rate with business scenarios, ensures that the network bandwidth meets service needs during data transmission, and avoids network blockage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119210655A_ABST
    Figure CN119210655A_ABST
Patent Text Reader

Abstract

The present disclosure relates to the technical field of communications, and discloses a data transmission control method, a data acquisition method, apparatus, device and product, the method comprising: receiving a data acquisition request, the data acquisition request comprising a target network bandwidth required when the data acquisition device acquires target data; sending target data to the data acquisition device based on the initial sending rate and the first sending rate gain; in the process of sending the target data to the data acquisition equipment according to the first sending rate gain, determining an actual network bandwidth between the local and the data acquisition equipment; and under the condition that the actual network bandwidth reaches the target network bandwidth, sending the target data to the data acquisition equipment according to the second sending rate gain. The matching degree of the data sending rate and the service scene can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a data transmission control method, a data acquisition method, a device, a equipment and a product. Background Art

[0002] During data transmission, data transmission equipment can effectively avoid network congestion by sensing changes in network bandwidth and adjusting the data transmission rate in a timely manner. However, with the development of technology, the current network is becoming more and more complex. The data transmission rate obtained by the data transmission equipment unilaterally sensing changes in network bandwidth cannot match the actual business scenario and cannot meet the actual business needs. Summary of the invention

[0003] In view of this, the present disclosure provides a data transmission control method, a data acquisition method, a data transmission control device, a data acquisition device, an electronic device, a computer-readable storage medium and a computer program product, which can improve the matching degree between the data transmission rate and the business scenario.

[0004] In a first aspect, the present disclosure provides a data transmission control method, the method comprising:

[0005] receiving a data acquisition request, wherein the data acquisition request includes a target network bandwidth required by a data acquisition device to acquire target data;

[0006] Based on an initial sending rate and a first sending rate gain, sending the target data to the data acquisition device;

[0007] In the process of sending the target data to the data acquisition device according to the first sending rate gain, determining the actual network bandwidth between the local and the data acquisition device;

[0008] When the actual network bandwidth reaches the target network bandwidth, the target data is sent to the data acquisition device according to a second sending rate gain.

[0009] In a first aspect, the present disclosure provides a data acquisition method, the method comprising:

[0010] In response to receiving the data acquisition instruction, determining target data to be acquired and data transmission requirements of the target data during transmission;

[0011] Determining the target network bandwidth required for the target data to be transmitted according to the data transmission requirement;

[0012] A data acquisition request including the target network bandwidth is constructed and the data acquisition request is sent to a data sending device. The data sending device is used to determine the actual network bandwidth between the local device and the data acquisition device during the process of sending the target data at a first sending rate gain, and send the target data at a second sending rate gain when the actual network bandwidth reaches the target network bandwidth.

[0013] In a third aspect, the present disclosure provides a data transmission control device, the device comprising:

[0014] A request receiving module, used to receive a data acquisition request, wherein the data acquisition request includes a target network bandwidth required by a data acquisition device to acquire target data;

[0015] A sending control module, configured to send the target data to the data acquisition device based on an initial sending rate and a first sending rate gain;

[0016] a bandwidth determination module, configured to determine an actual network bandwidth between a local device and the data acquisition device during the process of sending the target data to the data acquisition device at the first transmission rate gain;

[0017] The strategy switching module is used to send the target data to the data acquisition device according to a second sending rate gain when the actual network bandwidth reaches the target network bandwidth.

[0018] In a fourth aspect, the present disclosure provides a data acquisition device, the device comprising:

[0019] An instruction receiving module, configured to determine target data to be acquired and data transmission requirements of the target data during transmission in response to receiving a data acquisition instruction;

[0020] A bandwidth determination module, used to determine the target network bandwidth required for the target data during transmission according to the data transmission requirement;

[0021] A request sending module is used to construct a data acquisition request including the target network bandwidth and send the data acquisition request to a data sending device. The data sending device is used to determine the actual network bandwidth between the local and the data acquisition device during the process of sending the target data at a first sending rate gain, and send the target data at a second sending rate gain when the actual network bandwidth reaches the target network bandwidth.

[0022] In a fifth aspect, the present disclosure provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the above method by executing the computer instructions.

[0023] In a sixth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the above method.

[0024] In a seventh aspect, the present disclosure provides a computer program product, including computer instructions, and the computer instructions are used to enable a computer to execute the above method.

[0025] In the technical solutions of some embodiments of the present disclosure, based on the target network bandwidth required by the data acquisition device when acquiring the target data, the switching between different transmission rate gains is triggered, which can ensure that the actual network bandwidth between the data acquisition device and the data transmission device meets the data transmission requirements as much as possible. In other words, the time point for triggering the switching of the transmission rate gain based on the target network bandwidth is in line with the actual business scenario, so the data transmission rate determined based on the transmission rate gain before and after the switching is also more in line with the actual business scenario, thereby improving the matching degree between the data transmission rate and the business scenario. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0027] Figure 1 This is a schematic diagram of the state machine jump of the BBR algorithm;

[0028] Figure 2 is a flow chart of a data transmission control method provided by an embodiment of the present disclosure;

[0029] Figure 3 is a flowchart of a data acquisition method provided by an embodiment of the present disclosure;

[0030] Figure 4 is a module schematic diagram of a data transmission control device provided by some embodiments of the present disclosure;

[0031] Figure 5 is a module schematic diagram of a data acquisition device provided by some embodiments of the present disclosure;

[0032] Figure 6 It is a schematic diagram of the structure of an electronic device provided by some embodiments of the present disclosure. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0034] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0035] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.

[0036] Herein, unless explicitly stated, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.

[0037] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition, use, storage or deletion of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0038] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scopes of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to relevant users and their authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. The relevant users may include any type of right holders, such as individuals, enterprises, and groups.

[0039] For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly prompt the relevant user that the operation requested to be performed will require obtaining and using the information of the relevant user, so that the relevant user can independently choose whether to provide information to software or hardware such as an electronic device, application, server or storage medium that executes the operation of the technical solution of the present disclosure based on the prompt message.

[0040] As an optional but non-limiting implementation, in response to receiving an active request from a relevant user, a prompt message is sent to the relevant user, for example, in the form of a pop-up window, in which the prompt message may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide information to the electronic device.

[0041] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0042] The BBR (Bottleneck Bandwidth and Round-trip propagation time) algorithm is a congestion control algorithm. By running the BBR algorithm, the data transmission device can detect the actual network bandwidth and minimum round-trip delay of the network, and dynamically adjust the data transmission rate based on the detected actual network bandwidth and minimum round-trip delay to maximize the utilization of network bandwidth. Figure 1 , which is a schematic diagram of the state machine jump of the BBR algorithm. Figure 1 The state machine of the BBR algorithm mainly includes the STARTUP state, the DRAIN state, the PROBE_BW (ProbeBandwidth, bandwidth detection) state and the PROBE_RTT (Probe Round-Trip Time, round-trip delay detection) state. Among them:

[0043] The STARTUP state can also be called the startup state. In this state, the data sending device can set the sending rate gain and the sending window gain of the data sending to a larger value, so as to quickly increase the data sending rate and the sending window size. As the data sending rate and the sending window size increase, the data sending device can determine the actual network bandwidth based on the data transmission volume and the data transmission time. If the actual network bandwidth determined for three consecutive times does not change, it means that the maximum network bandwidth (i.e., the network bottleneck) has been reached. In this case, it can jump to the DRAIN state.

[0044] The DRAIN state is also called the drain state. In this state, the data sending device can set the data transmission rate gain and the transmission window gain to smaller values, so as to reduce the data transmission rate and try to drain the data that is still transmitted in the network in the STARTUP state. During the draining process, if the amount of data transmitted in the network is less than the data volume threshold, it can jump to the PROBE_BW state.

[0045] The PROBE_BW state is also called the bandwidth detection state. This state can be further divided into sub-states such as PROBE_UP, PROBE_DOWN, and PROBE_USE. In each sub-state, the sending rate gain and the sending window gain may not be exactly the same. In this way, the data sending rate is periodically increased and decreased to detect the new maximum network bandwidth. When the duration of the PROBE_BW state exceeds the duration threshold, it can jump to the PROBE_RTT state.

[0046] The PROBE_RTT state is also called the round-trip delay detection state. In this state, the sending rate gain and the sending window gain can be set to 1 to ensure that the data sending device can send data at a stable sending rate and sending window size, thereby detecting the minimum round-trip delay of network data transmission. Based on the detected minimum round-trip delay, it can be determined to jump to the STARTUP state or the PROBE_BW state.

[0047] It should be noted that, in the above STARTUP state, DRAIN state, PROBE_BW state and PROBE_RTT state, if certain conditions are met, it is also possible to directly jump from the STARTUP state to the PROBE_RTT state, or from the DRAIN state to the PROBE_RTT state, or from the PROBE_BW state to the PROBE_RTT state. For example, in any of the STARTUP, DRAIN and PROBE_BW states, if the minimum round-trip delay detected by the data sending device for 10 consecutive seconds does not change, it can jump to the PROBE_RTT state to re-detect the minimum round-trip delay.

[0048] Based on the above description, it can be known that in the state machine jump process of the BBR algorithm, the jump is made when the specified conditions are met. For example, if the actual network bandwidth detected by the data sending device for three consecutive times has not changed, it jumps from the STARTUP state to the DRAIN state; for another example, if the duration of the data sending device in the PROBE_BW state exceeds the duration threshold, it jumps from the PROBE_BW state to the PROBE_RTT state. However, these specified conditions for triggering the jump do not take into account the data transmission requirements of the data acquisition device. For example, when the data acquisition device obtains a video file from the data sending device and plays the video, it may hope that the delay is smaller; when the data acquisition device downloads a file from the data sending device, it may hope that the average download speed is faster. The data transmission rate determined by the current state machine jump conditions of the BBR algorithm cannot meet these requirements of the data acquisition device, that is, the data transmission rate determined by the data sending device based on the BBR algorithm cannot match the actual business scenario.

[0049] In view of this, the present disclosure first provides a data transmission control method, which can improve the matching degree between the data transmission rate and the business scenario. The data transmission control method can be applied to data transmission devices. The data transmission devices include but are not limited to servers, tablet computers, laptops, desktop computers, etc. Figure 2 , which is a flow chart of a data transmission control method provided by an embodiment of the present disclosure. Figure 2 In the data transmission control method, the data transmission control method comprises the following steps:

[0050] Step S21: receiving a data acquisition request, where the data acquisition request includes a target network bandwidth required by a data acquisition device to acquire target data.

[0051] Specifically, the target data may be a video file, picture, text file, etc. that the data acquisition device needs to acquire from the data transmission device. For different types of files, the data acquisition device may have different data transmission requirements (as mentioned above, which will not be repeated here). The target network bandwidth may be the ideal network bandwidth determined by the data acquisition device based on the actual data transmission requirements.

[0052] After the data sending device obtains the data acquisition request, if the BBR algorithm is running in any of the STARTUP state, the DRAIN state and the PROBE_BW state, it can continue to execute steps S22 to S24.

[0053] Step S22: Send target data to the data acquisition device based on the initial sending rate and the first sending rate gain.

[0054] Specifically, the initial transmission rate and the first transmission rate gain may be the initial transmission rate and the first transmission rate gain corresponding to the current target state in the BBR algorithm. The target state is one of the STARTUP state, the DRAIN state, and the PROBE_BW state.

[0055] For example, when the target state is the STARTUP state, the initial sending rate can be a pre-set fixed value, or a value determined based on the actual network state between the data sending device and the data acquisition device. The first sending rate gain can be the sending rate gain corresponding to the STARTUP state. For another example, when the target state is the DRAIN state, the initial sending rate can be the data sending rate when jumping out of the STARTUP state, and the first sending rate gain can be the sending rate gain corresponding to the DRAIN state. For another example, when the target state is the PROBE_BW state, the current target sub-state can be further determined. The initial sending rate can be the data sending rate corresponding to jumping out of the previous sub-state of the target sub-state. The first sending rate gain can be the sending rate gain corresponding to the target sub-state.

[0056] Step S23: in the process of sending the target data to the data acquisition device according to the first sending rate gain, determining the actual network bandwidth between the local device and the data acquisition device.

[0057] Specifically, the data sending device can detect the target data transmission volume within the specified time, and determine the actual network bandwidth between the local device and the data acquisition device based on the detected target data transmission volume. For example, the target data transmission volume is divided by the specified time, and the result can be used as the actual network bandwidth.

[0058] Step S24: When the actual network bandwidth reaches the target network bandwidth, the target data is sent to the data acquisition device according to the second sending rate gain.

[0059] The second transmission rate gain may be a transmission rate gain corresponding to the next state of the target state. In simple terms, when it is detected that the actual network bandwidth reaches the target network bandwidth, the target state is jumped to the next state of the target state.

[0060] It can be seen from step S24 that the technical solution of the present disclosure has improved the BBR algorithm. In the STARTUP state, DRAIN state and PROBE_BW state, the jump between different states can be triggered by the target network bandwidth in the data acquisition request. Therefore, when the transmission rate of the target data is controlled based on the BBR algorithm, it can be ensured that the actual network bandwidth between the data sending device and the data acquisition device can meet the data transmission requirements of the data acquisition device as much as possible. In this way, the data sending rate determined based on the BBR algorithm can be a rate that matches the business scenario.

[0061] In the scheme disclosed in the present invention, it can be understood that when the original jump condition of the BBR algorithm has not been met (for example, the actual network bandwidth has not been detected to be unchanged for three consecutive times), if the actual network bandwidth reaches the target network bandwidth, the current target state is exited in advance, and the next state of the target state is entered in advance. In this way, the actual network bandwidth between the data sending device and the data acquisition device is guaranteed to be the target network bandwidth that meets the data transmission requirements as much as possible. For ease of understanding, for example. Assuming that in the STARTUP state, the actual network bandwidth reaches the target network bandwidth, but the actual network bandwidth has not been detected to be unchanged for three consecutive times, if the STARTUP state is not exited in advance, then under the larger transmission rate gain corresponding to the STARTUP state, the transmission rate of the target data will also increase. At this time, the data transmitted in the network will also increase, and the actual network bandwidth between the data sending device and the data acquisition is also likely to deviate further and further from the target network bandwidth, thereby failing to meet the data transmission requirements of the data acquisition device.

[0062] It should be noted that in steps S22 to S24 of the present disclosure, since the actual network bandwidth detection between the data sending device and the data acquisition device is involved, and the PROBE_RTT state of the BBR algorithm is used to detect the minimum round-trip delay of the network (not directly detecting the actual network bandwidth), therefore, the steps in steps S22 to 24 can be based on the STARTUP state, DRAIN state and PROBE_BW state in the BBR algorithm. In short, after executing step S21, if the BBR algorithm runs in any of the STARTUP state, DRAIN state and PROBE_BW state, steps S22 to S24 can be executed, and steps S22 to S24 can be repeated and executed in a loop, that is, each time the STARTUP state, or DRAIN state, or PROBE_BW state is entered, steps S22 to S24 can be executed once until the target data is sent.

[0063] For example, assuming that after executing step S21, the BBR algorithm is running in the STARTUP state, the specific execution process of steps S22 to S24 can be as follows:

[0064] 11) Based on the initial transmission rate and transmission rate gain corresponding to the STARTUP state, send the target data to the data acquisition device;

[0065] 12) in the process of sending the target data to the data acquisition device, determining the actual network bandwidth between the local device and the data acquisition device;

[0066] 13) When the actual network bandwidth reaches the target network bandwidth, the target data is sent to the data acquisition device according to the transmission rate gain corresponding to the DRAIN state.

[0067] After the above steps 11) to 13), the BBR algorithm enters the DRAIN state. At this time, steps S22 to S24 can be continued, and the specific process can be as follows:

[0068] 21) sending target data to the data acquisition device based on the initial sending rate and the sending rate gain corresponding to the DRAIN state;

[0069] 12) in the process of sending the target data to the data acquisition device, determining the actual network bandwidth between the local device and the data acquisition device;

[0070] 13) When the actual network bandwidth reaches the target network bandwidth, the target data is sent to the data acquisition device according to the sending rate gain corresponding to the PROBE_BW state.

[0071] And so on.

[0072] In summary, in the technical solutions of some embodiments of the present disclosure, based on the target network bandwidth required by the data acquisition device when acquiring the target data, to trigger the switch between different transmission rate gains, it is possible to ensure that the actual network bandwidth between the data acquisition device and the data transmission device meets the data transmission requirements as much as possible. In other words, the time point for triggering the switching of the transmission rate gain based on the target network bandwidth is in line with the actual business scenario, so the data transmission rate determined based on the transmission rate gain before and after the switch is also more in line with the actual business scenario, thereby improving the matching degree between the data transmission rate and the business scenario.

[0073] In some embodiments, corresponding to the above step S24, if the actual network bandwidth does not reach the target network bandwidth, and the network status between the data sending device and the data acquiring device reaches the preset network status, the method of the present disclosure may further include:

[0074] The target data is sent to the data acquisition device according to the second sending rate gain.

[0075] Specifically, the preset network state may be a network state when the BBR algorithm before improvement triggers a state jump, and may specifically include one or more of the following network states:

[0076] 31) The actual network bandwidth reaches the maximum network bandwidth between the data sending device and the data acquiring device. This network state is the trigger condition for the BBR algorithm to jump from the STARTUP state to the DRAIN state before the improvement.

[0077] 32) The amount of data in transit between the data sending device and the data acquisition device is less than the quantity threshold. The amount of data in transit refers to the amount of data being transmitted in the network between the data sending device and the data acquisition device. This network state is the trigger condition for the BBR algorithm to jump from the DRAIN state to the PROBE_BW state before the improvement.

[0078] 33) The duration of sending the target data to the data acquisition device according to the first transmission rate gain reaches the duration threshold. This network state is the trigger condition for the BBR algorithm before improvement to jump from the PROBE_BW state to the PROBE_RTT state.

[0079] Simply put, when the actual network bandwidth has not yet reached the target network bandwidth, if the jump condition of the BBR algorithm before the improvement has been met, it is necessary to jump in time to avoid network congestion.

[0080] In the above embodiment, the jump is started when the actual network bandwidth has not yet reached the target network bandwidth. It can be understood that when the actual network status between the data acquisition device and the data sending device has not yet reached the ideal target network bandwidth, the status jump is performed in time based on the jump condition of the BBR algorithm before improvement, which can avoid network congestion and prevent the network status from further deteriorating.

[0081] In some embodiments, corresponding to the above step S24, if the actual network bandwidth does not reach the target network bandwidth, and the network status between the data sending device and the data acquiring device does not reach the preset network status, the method of the present disclosure may further include:

[0082] Continue to send the target data to the data acquisition device according to the first sending rate gain.

[0083] In this way, the actual network bandwidth between the data sending device and the data acquiring device can be controlled to be as close to the target network bandwidth as possible, so as to obtain the target network bandwidth that meets the data transmission requirements.

[0084] In some embodiments, based on the acquired data acquisition request, the method of the present disclosure may further include:

[0085] Determine the target transmission protocol corresponding to the data acquisition request;

[0086] Determining a target storage location of a target network bandwidth in a data acquisition request according to a protocol format of a target transmission protocol;

[0087] Get the target network bandwidth from the target storage location.

[0088] Specifically, since different transmission protocols may have different protocol formats, the storage location of the target network bandwidth in the data acquisition request may be different in the data acquisition request transmitted based on different transmission protocols. For example, when the target transmission protocol is a TCP (Transmission Control Protocol)-like protocol, the target network bandwidth may be obtained from the HTTP (HyperText Transfer Protocol) request header of the data acquisition request. When the target transmission protocol is a QUIC (Quick UDP Internet Connections)-like protocol, the target network bandwidth may be obtained from the QUIC frame of the data acquisition request.

[0089] In the above embodiment, the target network bandwidth is stored at different locations of the data acquisition request based on different transmission protocols, which has better adaptability.

[0090] Corresponding to the above data transmission control method, the present disclosure also provides a data acquisition method. The data acquisition method can be applied to a data acquisition device. The data acquisition device includes but is not limited to a tablet computer, a laptop computer, a desktop computer, etc. Figure 3 , which is a flow chart of a data acquisition method provided by an embodiment of the present disclosure. Figure 3 In the method, the data acquisition method comprises the following steps:

[0091] Step S31, in response to generating a data acquisition instruction, determining target data to be acquired and data transmission requirements of the target data during transmission.

[0092] Specifically, when a preset operation occurs in the data acquisition device, a data acquisition instruction may be generated. The data acquisition instruction may be used to specify the target data to be acquired. For example, when a button associated with video file A in the data acquisition device is triggered, a data acquisition instruction may be generated to acquire video file A from the data sending device.

[0093] Data transmission requirements refer to the transmission conditions that the target data must meet during the transmission process, such as the transmission rate and transmission delay that must be met. Specifically, after determining the target data, the data attributes of the target data can be determined, and based on the data attributes, the data transmission requirements can be determined. Among them, the data attributes may include but are not limited to the data type of the target data (such as video files, text files, pictures, etc.), the size of the data, etc. Based on the above description, it can be seen that due to the different data attributes of target data, different transmission conditions may be required (for example, when playing video files online, a lower delay is required; when downloading files, a higher average transmission rate is required). Therefore, the data transmission requirements of the target data can be determined first based on the data attributes of the target data.

[0094] Step S32: determining the target network bandwidth required for the target data during transmission according to the data transmission requirement.

[0095] Specifically, for example, for video files that require a lower delay, the file size of the video file can be divided by the required delay to obtain the target network bandwidth. For another example, for text files that require a higher download rate, the required maximum file download rate can be used as the target network bandwidth.

[0096] Step S33, construct a data acquisition request including the target network bandwidth, and send the data acquisition request to the data sending device. The data sending device is used to determine the actual network bandwidth between the local and the data acquisition device during the process of sending the target data at the first sending rate gain, and send the target data at the second sending rate gain when the actual network bandwidth reaches the target network bandwidth.

[0097] Specifically, similar to the above-mentioned data transmission control method, the protocol format of the target transmission protocol can be determined according to the target transmission protocol corresponding to the data acquisition request; and based on the protocol format, the target storage location of the target network bandwidth in the data acquisition request can be determined; and the target network bandwidth can be written into the target storage location.

[0098] The data acquisition method disclosed in the present invention has the same technical features as the data transmission control method, and therefore has the same beneficial effects as the data transmission control method, which will not be described in detail herein.

[0099] Corresponding to the data transmission control method, the present disclosure also provides a data transmission control device. Figure 4 , which is a module schematic diagram of a data transmission control device provided in some embodiments of the present disclosure.

[0100] Figure 4 In the embodiment, the data transmission control device comprises:

[0101] A request receiving module 401 is used to receive a data acquisition request, where the data acquisition request includes a target network bandwidth required by a data acquisition device to acquire target data;

[0102] A sending control module 402, configured to send target data to a data acquisition device based on an initial sending rate and a first sending rate gain;

[0103] The bandwidth determination module 403 is used to determine the actual network bandwidth between the local device and the data acquisition device during the process of sending the target data to the data acquisition device according to the first sending rate gain;

[0104] The strategy switching module 404 is used to send the target data to the data acquisition device according to the second sending rate gain when the actual network bandwidth reaches the target network bandwidth.

[0105] In some embodiments, if the actual network bandwidth does not reach the target network bandwidth, and the network status between the data sending device and the data acquiring device reaches the preset network status, the policy switching module 404 is further used to:

[0106] The target data is sent to the data acquisition device according to the second sending rate gain.

[0107] In some embodiments, the policy switching module 404 is specifically configured to use one or more of the following network states as preset network states:

[0108] The actual network bandwidth reaches the maximum network bandwidth between the data sending device and the data acquiring device;

[0109] The amount of data in transit between the data sending device and the data acquiring device is less than a quantity threshold;

[0110] The duration for sending the target data to the data acquisition device according to the first sending rate gain reaches a duration threshold.

[0111] In some embodiments, if the actual network bandwidth does not reach the target network bandwidth, and the network status between the data sending device and the data acquiring device does not reach the preset network status, the policy switching module 404 is further used to:

[0112] Continue to send the target data to the data acquisition device according to the first sending rate gain.

[0113] In some embodiments, the request receiving module 401 is further used to:

[0114] Determine the target transmission protocol corresponding to the data acquisition request;

[0115] Determining a target storage location of a target network bandwidth in a data acquisition request according to a protocol format of a target transmission protocol;

[0116] Get the target network bandwidth from the target storage location.

[0117] Corresponding to the data acquisition method, the present disclosure also provides a data acquisition device. Figure 5 , which is a module schematic diagram of a data acquisition device provided in some embodiments of the present disclosure. Figure 5 In the method, the data acquisition device comprises:

[0118] The instruction receiving module 501 is used to determine the target data to be acquired and the data transmission requirements of the target data during the transmission process in response to receiving the data acquisition instruction;

[0119] The bandwidth determination module 502 is used to determine the target network bandwidth required for the target data during the transmission process according to the data transmission demand;

[0120] The request sending module 503 is used to construct a data acquisition request including a target network bandwidth and send the data acquisition request to a data sending device. The data sending device is used to determine the actual network bandwidth between the local and the data acquisition device during the process of sending the target data at a first sending rate gain, and send the target data at a second sending rate gain when the actual network bandwidth reaches the target network bandwidth.

[0121] In some embodiments, the request sending module 503 is specifically used to:

[0122] Determine the protocol format of the target transmission protocol according to the target transmission protocol corresponding to the data acquisition request;

[0123] Determine the target storage location of the target network bandwidth in the data acquisition request according to the protocol format;

[0124] Write the target network bandwidth to the target storage location.

[0125] In some embodiments, the instruction receiving module 501 is specifically used to:

[0126] Determine the data attributes of the target data;

[0127] Determine data transmission requirements based on data attributes.

[0128] Figure 4 and Figure 5 The device in the invention is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit), a processor and a memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0129] The data transmission control device disclosed in the present invention has the same beneficial effects as the above-mentioned data transmission control method, and the data acquisition device has the same beneficial effects as the above-mentioned data acquisition method, which will not be described in detail here.

[0130] The present disclosure also provides an electronic device having the above Figure 4 The data transmission control device shown or Figure 5 The data acquisition device shown.

[0131] Combined with reference Figure 6 , is a schematic diagram of the structure of an electronic device provided by some embodiments of the present disclosure. Figure 6 As shown, the electronic device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.

[0132] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0133] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0134] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0135] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0136] The electronic device further comprises a communication interface 30 for the electronic device to communicate with other devices or a communication network.

[0137] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0138] A part of the present disclosure may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present disclosure through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.

[0139] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A data transmission control method, characterized in that: The method comprises: receiving a data acquisition request, wherein the data acquisition request includes a target network bandwidth required by a data acquisition device to acquire target data; Based on an initial sending rate and a first sending rate gain, sending the target data to the data acquisition device; In the process of sending the target data to the data acquisition device according to the first sending rate gain, determining the actual network bandwidth between the local and the data acquisition device; When the actual network bandwidth reaches the target network bandwidth, the target data is sent to the data acquisition device according to a second sending rate gain.

2. The method according to claim 1, characterized in that If the actual network bandwidth does not reach the target network bandwidth, and the network status between the data sending device and the data acquiring device reaches a preset network status, the method further includes: The target data is sent to the data acquisition device according to the second sending rate gain.

3. The method according to claim 2, characterized in that The preset network status includes one or more of the following network statuses: The actual network bandwidth reaches the maximum network bandwidth between the data sending device and the data acquiring device; The amount of data in transit between the data sending device and the data acquiring device is less than a quantity threshold; The duration for sending the target data to the data acquisition device according to the first sending rate gain reaches a duration threshold.

4. The method according to claim 2, characterized in that: If the actual network bandwidth does not reach the target network bandwidth, and the network status between the data sending device and the data acquiring device does not reach the preset network status, the method further includes: Continue to send the target data to the data acquisition device according to the first sending rate gain.

5. The method according to claim 1, characterized in that The method further comprises: Determine a target transmission protocol corresponding to the data acquisition request; Determining a target storage location of the target network bandwidth in the data acquisition request according to a protocol format of the target transmission protocol; The target network bandwidth is obtained from the target storage location.

6. A data acquisition method, characterized in that: The method comprises: In response to receiving the data acquisition instruction, determining target data to be acquired and data transmission requirements of the target data during transmission; Determining the target network bandwidth required for the target data to be transmitted according to the data transmission requirement; A data acquisition request including the target network bandwidth is constructed and the data acquisition request is sent to a data sending device. The data sending device is used to determine the actual network bandwidth between the local device and the data acquisition device during the process of sending the target data at a first sending rate gain, and send the target data at a second sending rate gain when the actual network bandwidth reaches the target network bandwidth.

7. The method according to claim 6, characterized in that The constructing of the data acquisition request including the target network bandwidth includes: Determining a protocol format of the target transmission protocol according to the target transmission protocol corresponding to the data acquisition request; Determining, according to the protocol format, a target storage location of the target network bandwidth in the data acquisition request; The target network bandwidth is written to the target storage location.

8. The method according to claim 6, characterized in that Determining the data transmission requirements of the target data during the transmission process includes: Determining data attributes of the target data; The data transmission requirement is determined according to the data attribute.

9. A data transmission control device, characterized in that: The device comprises: A request receiving module, used to receive a data acquisition request, wherein the data acquisition request includes a target network bandwidth required by a data acquisition device to acquire target data; A sending control module, configured to send the target data to the data acquisition device based on an initial sending rate and a first sending rate gain; a bandwidth determination module, configured to determine an actual network bandwidth between a local device and the data acquisition device during the process of sending the target data to the data acquisition device at the first transmission rate gain; The strategy switching module is used to send the target data to the data acquisition device according to a second sending rate gain when the actual network bandwidth reaches the target network bandwidth.

10. A data acquisition device, characterized in that: The device comprises: An instruction receiving module, configured to determine target data to be acquired and data transmission requirements of the target data during transmission in response to receiving a data acquisition instruction; A bandwidth determination module, used to determine the target network bandwidth required for the target data during transmission according to the data transmission requirement; A request sending module is used to construct a data acquisition request including the target network bandwidth and send the data acquisition request to a data sending device. The data sending device is used to determine the actual network bandwidth between the local and the data acquisition device during the process of sending the target data at a first sending rate gain, and send the target data at a second sending rate gain when the actual network bandwidth reaches the target network bandwidth.

11. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the data transmission control method according to any one of claims 1 to 5, or executes the data acquisition method according to any one of claims 6 to 8 by executing the computer instructions.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the data transmission control method according to any one of claims 1 to 5, or to execute the data acquisition method according to any one of claims 6 to 8.

13. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to cause a computer to execute the data transmission control method according to any one of claims 1 to 5, or to execute the data transmission control method according to any one of claims 6 to 8.