Data transmission control method and device, equipment and storage medium

CN122951985APending Publication Date: 2026-10-20GEER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510459295.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-11
Publication Date
2026-10-20

AI Technical Summary

Benefits of technology

[0045]本申请提出的一个或多个技术方案,至少具有以下技术效果:根据当前网络带宽数据预测在未来预设时间段内网络带宽预测值,并根据所述网络带宽预测值确定预测码率;根据网络传输阶段的数据包发送数量和丢包数量确定当前码率;根据所述预测码率和所述当前码率确定目标码率;根据所述目标码率和发送端产生触发信号的时间间隔确定单次发送数据量,并根据所述单次发送数据量控制发送端进行数据传输。通过上述方式,综合考虑网络带宽预测值和丢包数量,根据预测码率和预测码率确定适应动态网络环境的目标码率,可以有效避免因网络变化对数据传输的影响,然后结合时间间隔确定单次发送数据量,采用流速控制的方式进行数据传输,从而能够有效提高控制数据传输的可靠性和效率,以及广泛应用于各种网络通信场景。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0005356537580000061
    Figure BDA0005356537580000061
  • Figure HDA0005356537650000011
    Figure HDA0005356537650000011
  • Figure HDA0005356537650000021
    Figure HDA0005356537650000021
Patent Text Reader

Abstract

This application discloses a data transmission control method, apparatus, device, and storage medium, relating to the field of network communication technology. The method includes: determining a predicted bit rate based on a predicted network bandwidth value; determining a current bit rate based on the number of data packets sent and lost during the network transmission phase; determining a target bit rate based on the predicted bit rate and the current bit rate, and determining the amount of data transmitted in a single transmission based on the time interval between trigger signals generated by the transmitting end; and controlling the transmitting end to transmit data based on the amount of data transmitted in a single transmission. By comprehensively considering the predicted network bandwidth value and the number of packet losses, and determining a target bit rate adapted to dynamic network environments based on the predicted bit rate, the impact of network changes on data transmission can be effectively avoided. Furthermore, by determining the amount of data transmitted in a single transmission based on the time interval and employing flow rate control for data transmission, the reliability and efficiency of data transmission control can be effectively improved, and the method can be widely applied in various network communication scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network communication technology, and in particular to data transmission control methods, apparatus, devices and storage media. Background Technology

[0002] Data transmission is indispensable in network communication, and the key factor in controlling data transmission is the bit rate. Currently, the common method for controlling the bit rate is based on a single and fixed network environment. However, in practical applications, network bandwidth fluctuates due to factors such as network congestion and changes in the number of users. Increased packet loss rate can also severely affect the accuracy of data transmission, leading to unreliable data transmission. Therefore, the above methods have low reliability and efficiency in controlling data transmission.

[0003] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention

[0004] The main objective of this application is to provide a data transmission control method, apparatus, device, and storage medium, which aims to solve the technical problems of low reliability and efficiency in the control of data transmission in the prior art.

[0005] To achieve the above objectives, this application proposes a data transmission control method, the method comprising:

[0006] Based on the current network bandwidth data, predict the network bandwidth value within a preset time period in the future, and determine the predicted bit rate based on the predicted network bandwidth value;

[0007] The current bitrate is determined based on the number of data packets sent and the number of packets lost during the network transmission phase;

[0008] The target bitrate is determined based on the predicted bitrate and the current bitrate;

[0009] The amount of data transmitted in a single transmission is determined based on the target bit rate and the time interval between the trigger signals generated by the transmitter, and the transmitter is controlled to transmit data based on the amount of data transmitted in a single transmission.

[0010] In one embodiment, the step of determining the predicted bit rate based on the network bandwidth prediction value includes:

[0011] Obtain the preset increment and decrement factors;

[0012] The first bitrate is calculated based on the initial bitrate and the preset increment, and the second bitrate is calculated based on the initial bitrate and the decrement factor.

[0013] When the predicted network bandwidth value is greater than the first bit rate, the first bit rate is determined to be the predicted bit rate.

[0014] When the predicted network bandwidth is less than the second bit rate, the second bit rate is determined to be the predicted bit rate.

[0015] In one embodiment, the step of determining the current bitrate based on the number of data packets sent and the number of packets lost during the network transmission phase includes:

[0016] The number of data packets sent and lost during the network transmission phase can be obtained by calling the target interface provided by the network protocol stack.

[0017] Calculate the current packet loss rate based on the number of data packets sent and the number of packets lost;

[0018] The current bitrate is calculated based on the current packet loss rate, the base bitrate, and the adjustment factor.

[0019] In one embodiment, the step of determining the amount of data transmitted in a single transmission based on the target bit rate and the time interval between the trigger signal generated by the transmitter includes:

[0020] Add verification information to the target bitrate, and encapsulate the target bitrate after adding the information;

[0021] The encapsulated target bitrate is sent to the sending end;

[0022] The transmitting end is controlled to parse the encapsulated target bitrate;

[0023] The amount of data sent in a single transmission is determined based on the analysis results and the time interval between the trigger signals generated by the sending end.

[0024] In one embodiment, the step of determining the amount of data transmitted in a single transmission based on the parsing result and the time interval between the trigger signal generated by the sending end includes:

[0025] The verification information and target bitrate are obtained based on the parsing results;

[0026] The target bitrate is verified based on the verification information;

[0027] After the verification is successful, obtain the time interval at which the sending end generates the trigger signal;

[0028] The amount of data transmitted in a single transmission is determined based on the target bit rate and the time interval between the trigger signals generated by the transmitting end.

[0029] In one embodiment, the step of predicting the network bandwidth forecast value within a preset future time period based on the current network bandwidth data includes:

[0030] Generate a current network bandwidth sample dataset based on historical network bandwidth data and corresponding historical network bandwidth trend data;

[0031] The current network bandwidth sample dataset is cleaned, and the cleaned current network bandwidth sample dataset is augmented to obtain the target network bandwidth sample dataset.

[0032] Based on the spatiotemporal network framework, a current bandwidth prediction model is predicted according to the target network bandwidth sample dataset.

[0033] When the current bandwidth prediction model does not meet the preset requirements, the parameters of the current bandwidth prediction model are adjusted to obtain the target bandwidth prediction model;

[0034] The current network bandwidth data is input into the target bandwidth prediction model, and the network bandwidth prediction value for a future preset time period is obtained from the target bandwidth prediction model.

[0035] In one embodiment, the step of controlling the transmitting end to perform data transmission based on the amount of data sent in a single transmission includes:

[0036] In response to a trigger command to the tick component in the transmitting end, data to be transmitted corresponding to the amount of data to be transmitted in a single transmission is read from the data buffer.

[0037] The control transmitter transmits the data to be sent by controlling the amount of data sent in a single transmission, the network interface, and the time interval between the trigger signals generated by the transmitter.

[0038] Furthermore, to achieve the above objectives, this application also proposes a data transmission control device, which includes:

[0039] The prediction module is used to predict the network bandwidth value within a preset time period in the future based on the current network bandwidth data, and to determine the prediction bit rate based on the predicted network bandwidth value.

[0040] The determination module is used to determine the current bitrate based on the number of data packets sent and the number of packets lost during the network transmission phase;

[0041] The determining module is further configured to determine the target bitrate based on the predicted bitrate and the current bitrate;

[0042] The control module is used to determine the amount of data to be transmitted in a single transmission based on the target bit rate and the time interval between the trigger signals generated by the transmitter, and to control the transmitter to transmit data based on the amount of data to be transmitted in a single transmission.

[0043] In addition, to achieve the above objectives, this application also proposes a data transmission control device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the data transmission control method as described above.

[0044] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and which, when executed by a processor, implements the steps of the data transmission control method described above.

[0045] One or more technical solutions proposed in this application have at least the following technical effects: predicting the network bandwidth within a preset time period based on current network bandwidth data, and determining the predicted bitrate based on the predicted network bandwidth; determining the current bitrate based on the number of data packets sent and lost during network transmission; determining the target bitrate based on the predicted bitrate and the current bitrate; determining the amount of data transmitted in a single transmission based on the target bitrate and the time interval between the trigger signal generated by the sending end, and controlling the sending end to transmit data based on the amount of data transmitted in a single transmission. By comprehensively considering the predicted network bandwidth and the number of packet losses, and determining the target bitrate based on the predicted bitrate and the predicted bitrate to adapt to the dynamic network environment, the impact of network changes on data transmission can be effectively avoided. Then, by combining the time interval to determine the amount of data transmitted in a single transmission and using flow rate control for data transmission, the reliability and efficiency of data transmission control can be effectively improved, and it can be widely applied in various network communication scenarios. Attached Figure Description

[0046] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0047] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0048] Figure 1 This is a flowchart illustrating an embodiment of the data transmission control method of this application.

[0049] Figure 2 This is a flowchart illustrating Embodiment 2 of the data transmission control method of this application;

[0050] Figure 3 This is a schematic diagram of the module structure of the data transmission control device according to an embodiment of this application;

[0051] Figure 4 This is a schematic diagram of the device structure of the hardware operating environment involved in the data transmission control method in the embodiments of this application.

[0052] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0053] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or data transmission control device capable of performing the above functions. The following description uses a data transmission control device as an example to illustrate this embodiment and the subsequent embodiments.

[0054] Based on this, embodiments of this application provide a data transmission control method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the data transmission control method of this application.

[0055] In this embodiment, the data transmission control method includes steps S10 to S40:

[0056] Step S10: Based on the current network bandwidth data, predict the network bandwidth value within a preset time period in the future, and determine the predicted bit rate based on the predicted network bandwidth value.

[0057] It should be noted that the current network bandwidth data refers to the network bandwidth data collected in real time at the current moment. In order to comprehensively consider the network bandwidth prediction value and the number of packet loss, it is necessary to predict the network bandwidth prediction value within a preset time period in the future based on the current network bandwidth data. This preset time period can be 100 milliseconds. The predicted bit rate refers to the bit rate determined based on the network bandwidth prediction value.

[0058] Further, the step of predicting the network bandwidth forecast value within a preset future time period based on the current network bandwidth data includes: generating a current network bandwidth sample dataset based on historical network bandwidth data and corresponding historical network bandwidth trend data; cleaning the current network bandwidth sample dataset and performing data augmentation on the cleaned current network bandwidth sample dataset to obtain a target network bandwidth sample dataset; predicting a current bandwidth prediction model based on the target network bandwidth sample dataset using a spatiotemporal network framework; adjusting the parameters of the current bandwidth prediction model when it does not meet preset requirements to obtain a target bandwidth prediction model; inputting the current network bandwidth data into the target bandwidth prediction model and obtaining the network bandwidth forecast value within a preset future time period output by the target bandwidth prediction model.

[0059] Understandably, the collection time for historical network bandwidth data and corresponding historical network bandwidth trend data can be 10 minutes, with a collection interval of 100 milliseconds. To effectively improve the accuracy of the training model, it is necessary to clean the current network bandwidth sample dataset and perform data augmentation on the cleaned current network bandwidth sample dataset. To effectively improve the parallel efficiency and accuracy of the target bandwidth prediction model, a spatiotemporal network framework is used for model training. When the current bandwidth prediction model does not meet the preset requirements, parameters are continuously adjusted so that the model can accurately fit the historical network bandwidth trend. Furthermore, after obtaining a target bandwidth prediction model that meets the preset requirements, the current network bandwidth data is input into the target bandwidth prediction model. At this point, the target bandwidth prediction model will output the predicted network bandwidth value for a preset future time period.

[0060] Further, the step of determining the predicted bitrate based on the network bandwidth prediction value includes: obtaining a preset increment and a decrement factor; calculating a first bitrate based on the initial bitrate and the preset increment, and calculating a second bitrate based on the initial bitrate and the decrement factor; determining the first bitrate as the predicted bitrate when the network bandwidth prediction value is greater than the first bitrate; and determining the second bitrate as the predicted bitrate when the network bandwidth prediction value is less than the second bitrate.

[0061] It should be understood that the initial bitrate can be the previous bitrate. After obtaining the initial bitrate, the first bitrate is calculated by combining it with a preset increment, and the second bitrate is calculated by combining it with a decrement factor, specifically as follows:

[0062]

[0063] Among them, R b1 R represents the first bit rate. b1-1 R represents the initial bit rate. b2 This represents the second bit rate, α represents the preset increment, and β represents the decrement factor.

[0064] It should be noted that the preset increment α can be 0.1 Mbps, and the reduction factor can be 0.8. After determining the predicted network bandwidth value, it is necessary to determine whether the predicted network bandwidth value is greater than the first bit rate or less than the second bit rate. If it is determined that the predicted network bandwidth value is greater than the first bit rate, the first bit rate is determined as the predicted bit rate, and the predicted bit rate R is updated. bw =R b1 When the predicted network bandwidth is determined to be less than the second bitrate, the second bitrate is determined to be the predicted bitrate, i.e., the predicted bitrate R is updated. bw =R b2 .

[0065] Step S20: Determine the current bit rate based on the number of data packets sent and the number of packets lost during the network transmission phase.

[0066] It is understandable that the number of data packets sent refers to the total number of data packets sent during the network transmission phase, while the number of lost packets refers to the number of data packets lost during the network transmission phase. In order to comprehensively consider the network bandwidth prediction and the number of lost packets, the current bitrate is determined based on the number of data packets sent and the number of lost packets during the network transmission phase.

[0067] Step S30: Determine the target bitrate based on the predicted bitrate and the current bitrate.

[0068] It should be understood that the target bitrate refers to the bitrate adapted to the dynamic network environment. This target bitrate can be determined based on the predicted bitrate and the current bitrate. Specifically, the predicted bitrate and the current bitrate are input into a comparison function, and their magnitudes are compared. If the predicted bitrate R... bw Less than the current bitrate R pl Then the target bitrate R target =Predicted bitrate R bw If the predicted bit rate R bw Greater than or equal to the current bitrate R pl Then the target bitrate R target = Current bitrate R pl .

[0069] Step S40: Determine the amount of data to be transmitted in a single transmission based on the target bit rate and the time interval between the trigger signals generated by the transmitting end, and control the transmitting end to transmit data based on the amount of data to be transmitted in a single transmission.

[0070] It is understandable that the single data transmission volume refers to the number of data transmitted by the sender in a single transmission, and the time interval refers to the time interval between adjacent trigger signals generated by the timing component in the sender. After determining the target bit rate, the single data transmission volume is determined by combining the time interval between the trigger signals generated by the sender. For the sender, data will be transmitted according to the single data transmission volume. The network communication scenarios applied in this embodiment include, but are not limited to, real-time video communication scenarios, online game scenarios, and file transfer scenarios, and it has strong versatility and practicality.

[0071] Furthermore, the step of determining the amount of data transmitted in a single transmission based on the target bitrate and the time interval between the trigger signal generated by the sending end includes: adding verification information to the target bitrate and encapsulating the target bitrate after adding the information; sending the encapsulated target bitrate to the sending end; controlling the sending end to parse the encapsulated target bitrate; and determining the amount of data transmitted in a single transmission based on the parsing result and the time interval between the trigger signal generated by the sending end.

[0072] It should be understood that, in order to effectively improve the accuracy of control data transmission, verification information is added to the target bitrate, and the target bitrate with the added information is encapsulated. For the sending end, after receiving the encapsulated target bitrate, it will parse and verify it, and then determine the amount of data to be sent in a single transmission by combining the time interval of the trigger signal generated by the sending end.

[0073] Furthermore, the step of determining the amount of data sent in a single transmission based on the parsing result and the time interval between the trigger signal generated by the sending end includes: obtaining verification information and the target bit rate based on the parsing result; verifying the target bit rate based on the verification information; after the verification is passed, obtaining the time interval between the trigger signal generated by the sending end; and determining the amount of data sent in a single transmission based on the target bit rate and the time interval between the trigger signal generated by the sending end.

[0074] Understandably, after the target bitrate verification passes, the target bitrate can be stored in a specific buffer area for use by the flow rate control module. When it is necessary to determine the amount of data sent in a single transmission, the flow rate control module reads the target bitrate from the specific buffer area and combines it with the time interval between the trigger signals generated by the sending end to determine the amount of data sent in a single transmission. Specifically:

[0075] Q = (R target ·Δt·1000) / 8.

[0076] Where Q represents the amount of data sent in a single transmission, and R... target Δt represents the target bit rate, and Δt represents the time interval at which the transmitter generates the trigger signal.

[0077] For example, the time interval Δt for generating the trigger signal at the sending end is 50 milliseconds, and the target code rate R... target At 1.2 Mbps, the data volume Q sent in a single transmission is 7500 bytes.

[0078] Furthermore, the step of controlling the transmitting end to transmit data according to the single transmission data volume includes: in response to a trigger command on the tick component in the transmitting end, reading the data to be transmitted corresponding to the single transmission data volume from the data buffer; and controlling the transmitting end to transmit the data to be transmitted through the single transmission data volume, the network interface, and the time interval between the trigger signal generated by the transmitting end.

[0079] It should be understood that, in response to a trigger command on the tick component in the transmitting end, the tick component is activated and reads the data to be transmitted corresponding to the amount of data to be transmitted in a single transmission from the data buffer. This tick component can be a metronome. For the transmitting end, a combination of a metronome and a budget is used to achieve smooth transmission. That is, under the control of the smooth transmission mechanism, the data to be transmitted is sent to the network according to the amount of data to be transmitted in a single transmission and the time interval between the trigger signal generated by the transmitting end by calling the network interface. This reduces the burstiness of data transmission, lowers the possibility of network congestion, and ensures efficient and stable data transmission in the network. The network interface can be an Ethernet interface.

[0080] This embodiment predicts the network bandwidth within a preset time period based on current network bandwidth data, and determines the predicted bitrate based on the predicted network bandwidth. It then determines the current bitrate based on the number of data packets sent and lost during network transmission. Finally, it determines the target bitrate based on the predicted bitrate and the current bitrate. The amount of data transmitted in a single transmission is determined based on the target bitrate and the time interval between trigger signals generated by the sending end, and the sending end is controlled to transmit data based on this single data transmission amount. By comprehensively considering the predicted network bandwidth and the number of packet losses, and determining the target bitrate based on the predicted bitrate to adapt to dynamic network environments, the impact of network changes on data transmission can be effectively avoided. Furthermore, by combining the time interval to determine the amount of data transmitted in a single transmission and using flow rate control for data transmission, the reliability and efficiency of data transmission control can be effectively improved, and this method can be widely applied to various network communication scenarios.

[0081] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 2 Step S20 includes steps S201 to S203:

[0082] Step S201: Obtain the number of data packets sent and lost during the network transmission phase by calling the target interface provided by the network protocol stack.

[0083] It should be noted that the target interface refers to the interface that obtains the number of data packets sent and lost during the network transmission phase. This target interface can be a statistics interface, which can be provided by the network protocol stack. That is, the number of data packets sent and lost during the network transmission phase can be obtained by calling the target interface.

[0084] Step S202: Calculate the current packet loss rate based on the number of data packets sent and the number of packets lost.

[0085] Understandably, after obtaining the number of data packets sent, the packet loss rate can be calculated every 500 milliseconds, taking into account the number of lost packets. The formula for calculating the current packet loss rate is as follows:

[0086] P loss =(T d / T t 100%.

[0087] Among them, P loss T represents the current packet loss rate. d T represents the number of packets lost. t This indicates the number of data packets sent.

[0088] Step S203: Calculate the current bitrate based on the current packet loss rate, the base bitrate, and the adjustment coefficient.

[0089] It should be understood that after obtaining the current packet loss rate, the current bitrate is calculated by combining the base bitrate and the adjustment factor, specifically as follows:

[0090] R pl =R base ·(1-k·P loss ).

[0091] Among them, R pl R represents the current bitrate. base P represents the base bitrate, k represents the adjustment factor, and P represents the base bitrate. loss This indicates the current packet loss rate.

[0092] For example, at the base bitrate R base With a bitrate of 2 Mbps, an adjustment factor k of 5, and a current packet loss rate of 0.05, the current bitrate R pl It is 1.5Mbps.

[0093] This embodiment obtains the number of data packets sent and lost during the network transmission phase by calling the target interface provided by the network protocol stack; calculates the current packet loss rate based on the number of data packets sent and the number of packet losses; and calculates the current bitrate based on the current packet loss rate, the base bitrate, and the adjustment factor. By obtaining the number of data packets sent and lost during the network transmission phase through the target interface provided by the network protocol stack, calculating the current packet loss rate, and then using the algorithm carried by the packet loss rate and bitrate correlation model, combined with the base bitrate and the adjustment factor, the accuracy of calculating the current bitrate can be effectively improved.

[0094] This application also provides a data transmission control device, please refer to... Figure 3 The data transmission control device includes:

[0095] The prediction module 10 is used to predict the network bandwidth prediction value within a preset time period in the future based on the current network bandwidth data, and to determine the prediction bit rate based on the network bandwidth prediction value.

[0096] The determination module 20 is used to determine the current bit rate based on the number of data packets sent and the number of packets lost during the network transmission phase.

[0097] The determining module 20 is further configured to determine the target bitrate based on the predicted bitrate and the current bitrate.

[0098] The control module 30 is used to determine the amount of data to be transmitted in a single transmission based on the target bit rate and the time interval between the trigger signals generated by the transmitter, and to control the transmitter to transmit data based on the amount of data to be transmitted in a single transmission.

[0099] This embodiment predicts the network bandwidth within a preset time period based on current network bandwidth data, and determines the predicted bitrate based on the predicted network bandwidth. It then determines the current bitrate based on the number of data packets sent and lost during network transmission. Finally, it determines the target bitrate based on the predicted bitrate and the current bitrate. The amount of data transmitted in a single transmission is determined based on the target bitrate and the time interval between trigger signals generated by the sending end, and the sending end is controlled to transmit data based on this single data transmission amount. By comprehensively considering the predicted network bandwidth and the number of packet losses, and determining the target bitrate based on the predicted bitrate to adapt to dynamic network environments, the impact of network changes on data transmission can be effectively avoided. Furthermore, by combining the time interval to determine the amount of data transmitted in a single transmission and using flow rate control for data transmission, the reliability and efficiency of data transmission control can be effectively improved, and this method can be widely applied to various network communication scenarios.

[0100] The data transmission control device provided in this application, employing the data transmission control method in the above embodiments, can solve the technical problem of low reliability and efficiency in data transmission control in the prior art. Compared with the prior art, the beneficial effects of the data transmission control device provided in this application are the same as those of the data transmission control method provided in the above embodiments, and other technical features in the data transmission control device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0101] In one embodiment, the prediction module 10 is further configured to: generate a current network bandwidth sample dataset based on historical network bandwidth data and corresponding historical network bandwidth trend data; perform data cleaning on the current network bandwidth sample dataset and perform data augmentation on the cleaned current network bandwidth sample dataset to obtain a target network bandwidth sample dataset; predict a current bandwidth prediction model based on the target network bandwidth sample dataset using a spatiotemporal network framework; when the current bandwidth prediction model does not meet preset requirements, adjust the parameters of the current bandwidth prediction model to obtain a target bandwidth prediction model; input the current network bandwidth data into the target bandwidth prediction model, and obtain the network bandwidth prediction value for a preset future time period output by the target bandwidth prediction model.

[0102] In one embodiment, the prediction module 10 is further configured to obtain a preset increment and a decrement factor; calculate a first bitrate based on an initial bitrate and the preset increment, and calculate a second bitrate based on the initial bitrate and the decrement factor; determine the first bitrate as a predicted bitrate when the predicted network bandwidth value is greater than the first bitrate; and determine the second bitrate as a predicted bitrate when the predicted network bandwidth value is less than the second bitrate.

[0103] In one embodiment, the determining module 20 is further configured to obtain the number of data packets sent and the number of packets lost during the network transmission phase by calling the target interface provided by the network protocol stack; calculate the current packet loss rate based on the number of data packets sent and the number of packets lost; and calculate the current bit rate based on the current packet loss rate, the base bit rate, and the adjustment coefficient.

[0104] In one embodiment, the control module 30 is further configured to add verification information to the target bitrate and encapsulate the target bitrate after adding the information; send the encapsulated target bitrate to the sending end; control the sending end to parse the encapsulated target bitrate; and determine the amount of data to be sent in a single transmission based on the parsing result and the time interval between the trigger signal generated by the sending end.

[0105] In one embodiment, the control module 30 is further configured to obtain verification information and target bit rate based on the parsing result; verify the target bit rate based on the verification information; after the verification is passed, obtain the time interval for the sending end to generate a trigger signal; and determine the amount of data to be sent in a single transmission based on the target bit rate and the time interval for the sending end to generate a trigger signal.

[0106] In one embodiment, the control module 30 is further configured to, in response to a trigger command on the beat component in the transmitting end, read the data to be transmitted corresponding to the single transmission data amount from the data buffer; and control the transmitting end to transmit the data to be transmitted through the single transmission data amount, the network interface, and the time interval between the trigger signal generated by the transmitting end.

[0107] This application provides a data transmission control device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the data transmission control method in the first embodiment described above.

[0108] The following is for reference. Figure 4 The diagram illustrates a structural schematic of a data transmission control device suitable for implementing embodiments of this application. The data transmission control device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The data transmission control device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of this application.

[0109] like Figure 4As shown, the data transmission control device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in ROM (Read Only Memory) 1002 or a program loaded from storage device 1003 into RAM (Random Access Memory) 1004. RAM 1004 also stores various programs and data required for the operation of the data transmission control device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via bus 1005. Input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touch screens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the data transmission control device to communicate wirelessly or wiredly with other devices to exchange data. Although data transmission control devices with various systems are shown in the figures, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.

[0110] Specifically, according to the embodiments disclosed in this application, the process described above with reference to the flowcharts can be implemented as a computer software program. This computer program includes program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0111] The data transmission control device provided in this application, employing the data transmission control method in the above embodiments, can solve the technical problem of low reliability and efficiency in data transmission control in the prior art. Compared with the prior art, the beneficial effects of the data transmission control device provided in this application are the same as those of the data transmission control method provided in the above embodiments, and other technical features in this data transmission control device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0112] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0113] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0114] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the data transmission control method in the above embodiments.

[0115] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0116] The aforementioned computer-readable storage medium may be included in the data transmission control device; or it may exist independently and not be assembled into the data transmission control device.

[0117] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0118] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0119] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0120] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described data transmission control method, thereby solving the technical problem of low reliability and efficiency in data transmission control in the prior art. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the data transmission control method provided in the above embodiments, and will not be repeated here.

[0121] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A data transmission control method, characterized in that, The method includes: Based on the current network bandwidth data, predict the network bandwidth value within a preset time period in the future, and determine the predicted bit rate based on the predicted network bandwidth value; The current bitrate is determined based on the number of data packets sent and the number of packets lost during the network transmission phase; The target bitrate is determined based on the predicted bitrate and the current bitrate; The amount of data transmitted in a single transmission is determined based on the target bit rate and the time interval between the trigger signals generated by the transmitter, and the transmitter is controlled to transmit data based on the amount of data transmitted in a single transmission.

2. The method as described in claim 1, characterized in that, The step of determining the predicted bit rate based on the network bandwidth prediction value includes: Obtain the preset increment and decrement factors; The first bitrate is calculated based on the initial bitrate and the preset increment, and the second bitrate is calculated based on the initial bitrate and the decrement factor. When the predicted network bandwidth value is greater than the first bit rate, the first bit rate is determined to be the predicted bit rate. When the predicted network bandwidth is less than the second bit rate, the second bit rate is determined to be the predicted bit rate.

3. The method as described in claim 1, characterized in that, The step of determining the current bitrate based on the number of data packets sent and the number of packets lost during the network transmission phase includes: The number of data packets sent and lost during the network transmission phase can be obtained by calling the target interface provided by the network protocol stack. Calculate the current packet loss rate based on the number of data packets sent and the number of packets lost; The current bitrate is calculated based on the current packet loss rate, the base bitrate, and the adjustment factor.

4. The method as described in claim 1, characterized in that, The step of determining the amount of data transmitted in a single transmission based on the target bit rate and the time interval between the trigger signals generated by the transmitter includes: Add verification information to the target bitrate, and encapsulate the target bitrate after adding the information; The encapsulated target bitrate is sent to the sending end; The transmitting end is controlled to parse the encapsulated target bitrate; The amount of data sent in a single transmission is determined based on the analysis results and the time interval between the trigger signals generated by the sending end.

5. The method as described in claim 4, characterized in that, The step of determining the amount of data to be transmitted in a single transmission based on the parsing results and the time interval between the trigger signals generated by the transmitting end includes: The verification information and target bitrate are obtained based on the parsing results; The target bitrate is verified based on the verification information; After the verification is successful, obtain the time interval at which the sending end generates the trigger signal; The amount of data transmitted in a single transmission is determined based on the target bit rate and the time interval between the trigger signals generated by the transmitting end.

6. The method as described in claim 1, characterized in that, The step of predicting the network bandwidth forecast value within a preset time period based on the current network bandwidth data includes: Generate a current network bandwidth sample dataset based on historical network bandwidth data and corresponding historical network bandwidth trend data; The current network bandwidth sample dataset is cleaned, and the cleaned current network bandwidth sample dataset is augmented to obtain the target network bandwidth sample dataset. Based on the spatiotemporal network framework, a current bandwidth prediction model is predicted according to the target network bandwidth sample dataset. When the current bandwidth prediction model does not meet the preset requirements, the parameters of the current bandwidth prediction model are adjusted to obtain the target bandwidth prediction model; The current network bandwidth data is input into the target bandwidth prediction model, and the network bandwidth prediction value for a future preset time period is obtained from the target bandwidth prediction model.

7. The method according to any one of claims 1 to 6, characterized in that, The step of controlling the sending end to transmit data based on the amount of data sent in a single transmission includes: In response to a trigger command to the tick component in the transmitting end, data to be transmitted corresponding to the amount of data to be transmitted in a single transmission is read from the data buffer. The control transmitter transmits the data to be sent by controlling the amount of data sent in a single transmission, the network interface, and the time interval between the trigger signals generated by the transmitter.

8. A data transmission control device, characterized in that, The device includes: The prediction module is used to predict the network bandwidth value within a preset time period in the future based on the current network bandwidth data, and to determine the prediction bit rate based on the predicted network bandwidth value. The determination module is used to determine the current bitrate based on the number of data packets sent and the number of packets lost during the network transmission phase; The determining module is further configured to determine the target bitrate based on the predicted bitrate and the current bitrate; The control module is used to determine the amount of data to be transmitted in a single transmission based on the target bit rate and the time interval between the trigger signals generated by the transmitter, and to control the transmitter to transmit data based on the amount of data to be transmitted in a single transmission.

9. A data transmission control device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the data transmission control method as described in any one of claims 1 to 7.

10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the data transmission control method as described in any one of claims 1 to 7.