Data transmission method for cloud application, computing device, and computer storage medium
Embodiments of the present disclosure provide a data transmission method for a cloud application, a computing device and a computer storage medium. The data transmission method for the cloud application includes that: first network condition data of a cloud application client is obtained, where the first network condition data is obtained by monitoring data transmission condition between the cloud application client and a cloud application server; when the first network condition data meets a preset condition, a reference network condition is obtained; a data transmission way for the cloud application client is determined based on the reference network condition; and data transmission between the cloud application client and the cloud application server is performed according to the data transmission way. According to the technical solution provided by the embodiments of the present disclosure, the accuracy of determining the data transmission way is improved.
1 . A data transmission method for a cloud application, comprising:
obtaining first network condition data of a cloud application client, where in the first network condition data is obtained by monitoring data transmission condition between the cloud application client and a cloud application server;
when the first network condition data meets a preset condition, obtaining a reference network condition;
determining a data transmission way for the cloud application client based on the reference network condition;
performing data transmission between the cloud application client and the cloud application server according to the data transmission way;
wherein obtaining the reference network condition comprises: obtaining second network condition data sent from the cloud application client, wherein the second network condition data is generated by monitoring network transmission operation of at least one application running on the same terminal device with the cloud application client; obtaining device information of a terminal device sent by the cloud application client; finding third network condition data matching the device information from pre-configured network condition data; determining a first weighting factor corresponding to the second network condition data; determining a second weighting factor corresponding to the third network condition data; processing the second network condition data and the third network condition data according to the first weighting factor and the second weighting factor respectively to generate fourth network condition data and fifth network condition data; and summing the fourth network condition data and the fifth network condition data to generate the reference network condition.
2 . The method as claimed in claim 1 , wherein obtaining the reference network condition comprises:
obtaining second network condition data sent from the cloud application client, wherein the second network condition data is generated by monitoring network transmission operation of at least one application running on the same terminal device with the cloud application client;
setting the second network condition data as the reference network condition.
3 . The method as claimed in claim 1 , wherein obtaining the reference network condition comprises:
obtaining device information of a terminal device where the cloud application client is located;
finding third network condition data matching the device information from pre-configured network condition data;
setting the third network condition data as the reference network condition.
4 . The method as claimed in claim 3 , wherein finding the third network condition data matching the device information comprises:
finding the third network condition data corresponding to the device information and a time range in which a current time point is located.
5 . The method as claimed in claim 1 , wherein determining the data transmission way for the cloud application client based on the reference network condition comprises:
determining a target network condition type from a pre-defined set of candidate network condition types based on the reference network condition;
determining the data transmission way based on the target network condition type.
6 . The method as claimed in claim 3 , further comprising:
updating the pre-configured network condition data through the first network condition data, the device information, and the corresponding data transmission way.
7 . A computing device, comprising: a processor and a memory;
the memory, arranged for storing at least one computer instruction used by the processor to implement the following steps:
obtaining first network condition data of a cloud application client, where in the first network condition data is obtained by monitoring data transmission condition between the cloud application client and a cloud application server;
when the first network condition data meets a preset condition, obtaining a reference network condition;
determining a data transmission way for the cloud application client based on the reference network condition;
performing data transmission between the cloud application client and the cloud application server according to the data transmission way;
wherein obtaining the reference network condition comprises: obtaining second network condition data sent from the cloud application client, wherein the second network condition data is generated by monitoring network transmission operation of at least one application running on the same terminal device with the cloud application client; obtaining device information of a terminal device sent by the cloud application client; finding third network condition data matching the device information from pre-configured network condition data; determining a first weighting factor corresponding to the second network condition data; determining a second weighting factor corresponding to the third network condition data; processing the second network condition data and the third network condition data according to the first weighting factor and the second weighting factor respectively to generate fourth network condition data and fifth network condition data; and summing the fourth network condition data and the fifth network condition data to generate the reference network condition.
8 . A non-transitory computer storage medium storing a computer program, wherein the computer program, when executed by a computer, implements the following steps:
obtaining first network condition data of a cloud application client, where in the first network condition data is obtained by monitoring data transmission condition between the cloud application client and a cloud application server;
when the first network condition data meets a preset condition, obtaining a reference network condition;
determining a data transmission way for the cloud application client based on the reference network condition;
performing data transmission between the cloud application client and the cloud application server according to the data transmission way;
wherein obtaining the reference network condition comprises: obtaining second network condition data sent from the cloud application client, wherein the second network condition data is generated by monitoring network transmission operation of at least one application running on the same terminal device with the cloud application client; obtaining device information of a terminal device sent by the cloud application client; finding third network condition data matching the device information from pre-configured network condition data; determining a first weighting factor corresponding to the second network condition data; determining a second weighting factor corresponding to the third network condition data; processing the second network condition data and the third network condition data according to the first weighting factor and the second weighting factor respectively to generate fourth network condition data and fifth network condition data; and summing the fourth network condition data and the fifth network condition data to generate the reference network condition.
9 . The method as claimed in claim 1 , wherein the cloud application client is a cloud desktop client or a cloud gaming client, and the cloud application server is a cloud desktop server or a cloud gaming server.
10 . The method as claimed in claim 1 , wherein the cloud application client and the cloud application server perform data transmission based on a pre-agreed communication protocol, and the first network condition data is obtained by monitoring data transmission situation based on the communication protocol.
11 . The method as claimed in claim 1 , wherein the first network condition data is used for representing at least one of data transmission volume and data transmission quality between the cloud application client and the cloud application server.
12 . The method as claimed in claim 11 , wherein the preset condition comprises at least one of the following:
the data transmission volume is less than a preset threshold;
a data transmission packet loss rate is greater than a packet loss rate threshold; and
a data transmission delay is greater than a delay threshold.
13 . The method as claimed in claim 1 , wherein the reference network condition comprises: network condition obtained through network condition monitoring operation in addition to monitoring the data transmission condition between the cloud application client and the cloud application server.
14 . The method as claimed in claim 1 , wherein the reference network condition is used for assisting in determining actual network status of the cloud application client and determining the data transmission way based on the actual network status.
15 . The method as claimed in claim 3 , wherein the pre-configured network condition data is used for recording reference device information and reference network condition data corresponding to the reference device information in a preset historical period.
16 . The method as claimed in claim 4 , where in the device information comprises physical location information of the terminal device.
17 . The method as claimed in claim 16 , wherein finding the third network condition data corresponding to the device information and the time range in which the current time point is located comprises:
finding network status of the physical location information at a current time point in the historical period from the pre-configured network condition data based on the physical location information and the time range in which the current time point is located.
18 . The method as claimed in claim 5 , where in determining the target network condition type from the pre-defined set of candidate network condition types based on the reference network condition comprises:
analyzing the reference network condition to determine network characteristics of the reference network condition;
finding the target network condition type matching the network characteristics from the pre-defined set of candidate network condition types.