Data transmission method and system, and device and storage medium

By dividing data transmission priorities at the application layer and dynamically scheduling according to network quality, the problem of data transmission delay and bandwidth utilization between the cloud server and the client is solved, improving user experience and bandwidth utilization, and supporting more concurrency. User connection.

WO2024174898A1PCT designated stage expired Publication Date: 2024-08-29HANGZHOU ALICLOUD FEITIAN INFORMATION TECH CO LTD

Patent Information

Application Number
PCT/CN2024/076348
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-21
Filing Date
2024-02-06
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

In cloud service products, the user experience is limited by the data transmission delay and bandwidth utilization between the client and the cloud server. Especially when transmitting data with high computing power consumption such as audio data, the long delay causes users to Not a good experience.

Method used

By implementing data transmission prioritization and dynamic scheduling at the application layer, the transmission cycle and data volume are dynamically adjusted according to the network quality index value, optimizing the utilization of the transmission link, ensuring the timely transmission of high-priority data, while taking into account low-priority data. transmission.

Benefits of technology

It improves user experience and bandwidth utilization, reduces transmission delays and congestion, supports more concurrent user connections, and achieves flexible priority control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024076348_29082024_PF_FP_ABST
    Figure CN2024076348_29082024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a data transmission method and system, and a device and a storage medium. The method comprises: a first device acquiring a plurality of types of data that the first device requires to send to a second device, and according to a plurality of transmission priorities corresponding to the plurality of types of data, correspondingly caching the plurality of types of data into queues respectively corresponding to the plurality of transmission priorities; and in response to a current scheduling period being started, according to a network quality index value of a transmission link between the first device and the second device, determining a duration of the current scheduling period and an amount of data, which requires to be transmitted within the current scheduling period, and according to the transmission priorities respectively corresponding to the plurality of queues, acquiring, from the plurality of queues, data that does not exceed the amount of data, so as to send the data to the second device within the duration. On the basis of a network condition of a transmission link between a client and a cloud server, transmissions of data with different transmission priorities between the client and the cloud server are dynamically scheduled, thereby improving a bandwidth utilization rate, and ensuring the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Data transmission method, device, storage medium and system

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on February 21, 2023, with application number 2023101619874 and invention name “Data transmission method, device, storage medium and system”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present invention relates to the field of Internet technology, and in particular to a data transmission method, device, storage medium and system. Background Art

[0003] With the continuous emergence of various cloud service products such as cloud desktops, cloud rendering, and cloud gaming, users can utilize these cloud services for office work, entertainment, and other activities at a lower cost and with greater flexibility and convenience. They no longer need to purchase expensive host machines with greater computing power, nor do they need to install various required applications on local hosts, especially those that consume a lot of computing power. Instead, they can simply use the corresponding services provided by the cloud service provider. Cloud service providers have abundant hardware resources and, through virtualization and other technologies, can create a large number of virtual machines, on which they can deploy various cloud services, such as the aforementioned cloud desktops, cloud rendering, and cloud gaming, for user use.

[0004] To use these cloud services, users need to install the corresponding client on their local host computer. This allows them to remotely access the cloud service through a transmission link between the client and the cloud server (i.e., the cloud service deployed in the cloud). In practice, the data transmitted between the client and the virtual machine hosting the cloud service can include a variety of different types, such as audio data, peripheral data, image data, file copies, and so on.

[0005] From a user experience perspective, users have different sensitivities to these data types. For example, the speed of a file copy isn't noticeable to the user, but with audio data, even slightly longer latency can lead to noticeable pauses and crackling, resulting in a poor user experience.

[0006] Summary of the Invention

[0007] Embodiments of the present invention provide a data transmission method, device, storage medium, and system that adapt to the network conditions of a transmission link between a client and a cloud server, dynamically schedule the transmission of different types of data between the two, improve bandwidth utilization, and ensure user experience.

[0008] In a first aspect, an embodiment of the present invention provides a data transmission method, which is applied to a first device, and the method includes: obtaining multiple types of data that the first device needs to send to a second device; wherein, one of the first device and the second device corresponds to a cloud server and the other corresponds to a client; according to multiple transmission priorities corresponding to the multiple types of data, caching the multiple types of data into queues corresponding to the multiple transmission priorities; in response to the current scheduling cycle being started, obtaining a network quality indicator value of the transmission link between the first device and the second device; determining the duration of the current scheduling cycle and the amount of data to be transmitted within the current scheduling cycle based on the network quality indicator value; according to the transmission priorities corresponding to multiple queues, obtaining data not exceeding the amount of data from the multiple queues, so as to send the obtained data to the second device through the transmission link within the duration.

[0009] In a second aspect, an embodiment of the present invention provides a data transmission device, located in a first device, the device comprising: a data caching module, for obtaining multiple types of data that the first device needs to send to a second device, and caching the multiple types of data into queues corresponding to the multiple transmission priorities corresponding to the multiple types of data; wherein, one of the first device and the second device corresponds to a cloud service end and the other corresponds to a client; a network detection module, for obtaining a network quality index value of a transmission link between the first device and the second device in response to the current scheduling cycle being started; a scheduling processing module, for determining the duration of the current scheduling cycle and the amount of data to be transmitted within the current scheduling cycle based on the network quality index value; and, according to the transmission priorities corresponding to the multiple queues, obtaining data not exceeding the amount of data from the multiple queues, so as to send the obtained data to the second device through the transmission link within the duration.

[0010] In a third aspect, an embodiment of the present invention provides an electronic device comprising: a memory, a processor, and a communication interface; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor executes the data transmission method as described in the first aspect.

[0011] In a fourth aspect, an embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor can at least implement the data transmission method described in the first aspect.

[0012] In a fifth aspect, an embodiment of the present invention provides a data transmission system, comprising: a first device and a second device, wherein one of the first device and the second device corresponds to a cloud service end and the other corresponds to a client end; the first device is used to: obtain multiple types of data that the first device needs to send to the second device; according to multiple transmission priorities corresponding to the multiple types of data, cache the multiple types of data into queues corresponding to the multiple transmission priorities; in response to the current scheduling cycle being started, obtain the network quality indicator value of the transmission link between the first device and the second device; determine the duration of the current scheduling cycle and the amount of data to be transmitted within the current scheduling cycle according to the network quality indicator value; according to the transmission priorities corresponding to multiple queues, obtain data not exceeding the amount of data from the multiple queues, so as to send the obtained data to the second device through the transmission link within the duration.

[0013] The data transmission method provided in an embodiment of the present invention can be applied to application scenarios where data transmission is performed between a cloud server and a corresponding client. In one embodiment, one of a first device and a second device establishing a transmission link corresponds to a cloud server, and the other corresponds to a client. For example, if the cloud server is deployed on the first device, the corresponding client is deployed on the second device.

[0014] The data transmission method provided in an embodiment of the present invention can be executed by a transmission control service running at the application layer. In the scenario described above where the first device and the second device transmit data via a transmission link, the transmission control service can be deployed in the first device and the second device, respectively. The transmission control service deployed in the first device is used to perform transmission control on the process of sending data from the first device to the second device, and the transmission control service deployed in the second device is used to perform transmission control on the process of sending data from the second device to the first device. In other words, the transmission control service can be run on either the client device or the cloud server device, and the transmission control service runs at the application layer, rather than the network layer or the transport layer.

[0015] The data transmission process is: the transmission control service running at the application layer in the first device obtains multiple types of data that the first device needs to send to the second device, and according to the multiple transmission priorities corresponding to the multiple types of data, caches the multiple types of data into queues corresponding to the multiple transmission priorities, wherein these multiple queues are also located at the application layer. In response to the current scheduling cycle being started, the network quality index value of the transmission link between the first device and the second device is obtained to determine the duration of the current scheduling cycle and the amount of data that needs to be transmitted within the current scheduling cycle based on the network quality index value. Afterwards, according to the transmission priorities corresponding to the multiple queues, data not exceeding the data amount is obtained from the multiple queues, so that the obtained data can be sent to the second device through the above-mentioned transmission link within the duration of the cycle. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0017] FIG1 is a flow chart of a data transmission method provided by an embodiment of the present invention;

[0018] FIG2 is a flow chart of a data transmission method provided by an embodiment of the present invention;

[0019] FIG3 is a flow chart of a data transmission method provided by an embodiment of the present invention;

[0020] FIG4 is a flow chart of a data transmission method provided by an embodiment of the present invention;

[0021] FIG5 is a schematic diagram of an application of a data transmission method provided by an embodiment of the present invention;

[0022] FIG6 is a schematic structural diagram of a data transmission device provided by an embodiment of the present invention;

[0023] FIG7 is a schematic structural diagram of an electronic device provided by this embodiment. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. In addition, the step timing in the following method embodiments is only an example and not a strict limitation.

[0025] The data transmission solution provided by the embodiment of the present invention can be applied to scenarios where data is transmitted between a cloud server and a client. The cloud server can be, for example, a cloud desktop, various cloud applications, etc., wherein the cloud application can be, for example, cloud rendering, cloud gaming and other cloud applications.

[0026] Cloud desktops are computing-based desktop services in the cloud. They use Desktop as a Service (DaaS) to provide users with an easy-to-use, secure, and efficient cloud desktop office system. Cloud desktops operate in the cloud, for example, by building multiple virtual machines in the cloud, with different cloud desktops (also known as cloud computers) installed in different virtual machines for different users. Users connect to the cloud desktops using a thin client or a regular user terminal (such as a laptop) over the public network or a dedicated line.

[0027] Similarly, cloud applications are also application software running in the cloud. The user's client does not need to install the application software. It can establish a transmission link with the cloud application in the cloud through a certain communication protocol to use the cloud application.

[0028] Adaptive Streaming Protocol (ASP) is a communication protocol that can be used for data transmission between cloud desktops and clients in the cloud.

[0029] For example, in cloud desktops or cloud applications, the data that needs to be transmitted between the client and the cloud server may include graphics, audio, and peripheral data. In traditional scenarios where a single transmission link is established between the client and the cloud server, users have varying sensitivity to these data types. For example, file copying speed may not be noticeable to the user, but with audio data, even a slightly longer latency can lead to noticeable stuttering and crackling, resulting in a poor user experience. Therefore, these different data types can generally be prioritized.

[0030] In one transmission solution, multiple transmission links can be established between the client and the cloud server. Different Quality of Service (QoS) levels can be configured for each link to transmit data of varying priorities. This transmission solution is implemented at the network and transport layers. While simple to implement, it has limitations.

[0031] In one embodiment, first, multiple transmission links at the transport layer need to be established. These transmission links are maintained by the gateway, which reduces the number of concurrent connections to the gateway, and thus the number of simultaneously connected users. Simply put, a single user occupies multiple transmission links, while the total number of transmission links that the gateway can simultaneously maintain is set. This reduces the number of users the gateway can access simultaneously. Secondly, according to the definition of QoS at the network layer, QoS can typically be either available or not, meaning that only two service levels can be supported, and thus, only two transmission priorities. Furthermore, in a self-built network, QoS can be freely configured, but in a public cloud, QoS settings are controlled by the operator and are not free and open. Furthermore, the network links are complex, making this generally not feasible from an engineering perspective. In other words, the network operator is required to construct transmission links with different QoS levels for different clients and cloud servers, which increases the complexity of the engineering implementation.

[0032] In view of this, in an embodiment of the present invention, data of different transmission priorities are transmitted between the cloud server and the client through only one transmission link. In one embodiment, the transmission of data of different transmission priorities can be dynamically scheduled in combination with the dynamic changes in the network conditions of this transmission link. While ensuring that data with high transmission priority is transmitted first, it is also necessary to ensure full utilization of bandwidth and take into account the transmission of data with low transmission priority.

[0033] The data transmission method provided in an embodiment of the present invention can be applied to application scenarios in which data is transmitted between a cloud server and a corresponding client. Assume that the cloud server and the client are deployed on a first device and a second device, i.e., one of the first device and the second device corresponds to the cloud server and the other corresponds to the client. For example, if the cloud server is deployed on the first device, then the corresponding client is deployed on the second device. The first device can be a virtual machine in the cloud, and the second device can be a thin client, such as a user terminal such as a laptop or PC.

[0034] The data transmission method provided in the embodiment of the present invention can be executed by a transmission control service running in the application layer of the first device and the second device. The transmission link established between the client and the cloud service end can be understood as the transmission link established between the first device and the second device.

[0035] The transmission control service deployed on the first device is used to control the transmission of data from the first device to the second device, while the transmission control service deployed on the second device is used to control the transmission of data from the second device to the first device. In other words, the transmission control service can run on either the client device or the cloud server device, and it runs at the application layer, not the network or transport layer.

[0036] FIG1 is a flowchart of a data transmission method provided by an embodiment of the present invention. The method may be executed by a transmission control service running at an application layer in a first device. As shown in FIG1 , the method includes the following steps:

[0037] 101. Obtain multiple types of data that the first device needs to send to the second device, and cache the multiple types of data into queues corresponding to the multiple transmission priorities according to the multiple types of data. One of the first device and the second device corresponds to the cloud server and the other corresponds to the client.

[0038] 102. In response to a current scheduling period being started, obtain a network quality indicator value of a transmission link between a first device and a second device.

[0039] 103. Determine the duration of the current scheduling period and the amount of data that needs to be transmitted in the current scheduling period according to the network quality indicator value.

[0040] 104. Obtain data not exceeding the data amount from the multiple queues according to the transmission priorities corresponding to the multiple queues, and send the obtained data to the second device through the transmission link within the time period.

[0041] In fact, in the bidirectional transmission process from the client to the cloud server and from the cloud server to the client, users have different sensitivities to different types of data.

[0042] For example, when a cloud server sends data to a client, the data involved may be audio data, graphic data, and print data, with the corresponding transmission priorities decreasing in descending order. When a client sends data to a cloud server, the data involved may be keyboard and mouse data, and copy data, with the corresponding transmission priorities decreasing in descending order.

[0043] When the first device corresponds to the cloud server and the second device corresponds to the client, in the above example, the various types of data that the first device needs to send to the second device include audio data, graphic data, and print data; when the first device corresponds to the client and the second device corresponds to the cloud server, in the above example, the various types of data that the first device needs to send to the second device include keyboard and mouse data, and copy data.

[0044] For ease of description, the embodiment of the present invention is illustrated by taking the process of transmitting data from a first device to a second device as an example, and assumes that the first device corresponds to a cloud server and the second device corresponds to a client.

[0045] After the first device establishes a transmission link with the second device, the transmission control service running at the application layer in the first device can capture in real time the data that the cloud server running in the first device needs to send to the client, and determine the transmission priority corresponding to the currently obtained data based on the data type corresponding to the obtained data and the pre-set correspondence between different data types and different transmission priorities. The currently obtained data can then be cached in a queue corresponding to the transmission priority in chronological order.

[0046] In actual applications, for the client and cloud server, the default settings of corresponding transmission priorities can be made according to the type of data they will transmit. Users can also adjust the transmission priorities corresponding to different types of data.

[0047] Since the transmission control service runs at the application layer, and the multiple queues corresponding to the multiple transmission priorities set are maintained by the transmission control service, these multiple queues are also located at the application layer.

[0048] In one embodiment, the multiple transmission priorities that are set can be divided into two categories, one of which is provided with a corresponding cache queue, and the other is not provided with a corresponding cache queue. For ease of description, it is assumed that the first type of transmission priority is represented by P0, and the second type of transmission priority includes P1, P2 and P3. Among them, the priority of P0 is higher than that of the other transmission priorities. Based on this example, in one embodiment, when the multiple types of data that the first device needs to send to the second device include data corresponding to the target transmission priority P0, the data corresponding to the target transmission priority P0 can be directly sent to the second device through the transmission link between the first device and the second device, and the data corresponding to other transmission priorities (such as P1, P2, P3) are cached in the corresponding queues according to their respective corresponding transmission priorities.

[0049] It can be seen from this that the data with the highest transmission priority can be sent to the transmission link for transmission without waiting. Data with other transmission priorities will first be cached in the corresponding queue and sent to the transmission link for transmission in subsequent different scheduling cycles.

[0050] In one embodiment, a scheduling process may be triggered each time new data is added to a queue. For example, when data is currently stored in at least one of the multiple queues, a determination is made as to whether the previous scheduling cycle has ended. If so, the current scheduling cycle is initiated. Otherwise, the process may be terminated or a timer may be set. The timer may be set to the difference between the current time and the end time of the previous scheduling cycle. In effect, the scheduling process is triggered again when the previous scheduling cycle ends.

[0051] When determining to start the current scheduling cycle, the network quality index value of the transmission link between the first device and the second device at this time is obtained to determine the duration of the current scheduling cycle and the amount of data that needs to be transmitted in the current scheduling cycle based on the network quality index value.

[0052] In the embodiments of the present invention, the scheduling period is not fixed in duration but rather changes dynamically. That is, different scheduling periods have different durations, and a new scheduling period cannot be initiated before the end of a scheduling period. For example, the duration of the corresponding scheduling period is set accordingly based on the dynamic changes in the network conditions of the transmission link.

[0053] In the embodiment of the present invention, the network quality indicator value used to average the network status of the transmission link may be an indicator that can reflect the network congestion status, such as Round-Trip Time (RTT).

[0054] In practice, the transmission control service can detect the RTT value of the transmission link at a relatively short acquisition frequency. In one embodiment, assuming that the current scheduling cycle is determined to be initiated at time T1, a target RTT value with an acquisition time closest to time T1 can be determined from the multiple acquired RTT values. This target RTT value is used as the basis for determining the duration of the current scheduling cycle and the amount of data to be transmitted within the current scheduling cycle. Alternatively, in one embodiment, in addition to the target RTT value, multiple RTT values ​​acquired prior to the target RTT value can be obtained, and the average of these RTT values ​​can be used as the basis for determining the duration of the current scheduling cycle and the amount of data to be transmitted within the current scheduling cycle.

[0055] The above description only uses the RTT indicator as an example. In fact, the same applies to other indicators used to evaluate network conditions.

[0056] Regarding the duration of the current scheduling cycle, in general, the better the network quality currently corresponding to the above-mentioned transmission link is, the shorter the duration of the current scheduling cycle is. On the contrary, the worse the network quality currently corresponding to the transmission link is, the longer the duration of the current scheduling cycle is.

[0057] In addition to determining the duration of the current scheduling cycle, the amount of data to be transmitted during the current scheduling cycle also needs to be determined. Generally speaking, the better the network quality of the transmission link, the greater the amount of data to be transmitted during the current scheduling cycle. Conversely, the worse the network quality of the transmission link, the smaller the amount of data to be transmitted during the current scheduling cycle.

[0058] In this embodiment of the present invention, after the current scheduling cycle is initiated, the data transmission cadence, that is, the data transmission bit rate, is controlled based on the current network quality. However, the transmission bit rate cannot be directly controlled by the application layer's transport control service. However, this can be indirectly controlled by controlling two factors that can affect the transmission bit rate: the duration of the current scheduling cycle and the amount of data to be transmitted within the current scheduling cycle.

[0059] In short, when network quality is good, the bitrate can be increased, and conversely, when network quality is poor, the bitrate can be reduced. This is because when network quality is good, data can be sent faster, but the transmission time must be short, otherwise network congestion will quickly occur. When network quality is poor, data can be sent slower and the transmission time must be longer, allowing more time for the network to recover.

[0060] To achieve this, when network quality is good, a shorter current scheduling period and a larger amount of data to be transmitted can be configured, thereby achieving a higher transmission bitrate. Conversely, when network quality is poor, a longer current scheduling period and a smaller amount of data to be transmitted can be configured, thereby reducing the transmission bitrate.

[0061] In one embodiment, a mapping relationship between different value ranges of the network quality indicator and the duration of the scheduling cycle and the amount of data that needs to be transmitted during the scheduling cycle can be pre-set. Based on this mapping relationship, the duration of the current scheduling cycle and the amount of data that needs to be transmitted during the current scheduling cycle can be determined.

[0062] After determining the duration of the current scheduling period and the amount of data to be transmitted within the current scheduling period, data not exceeding the amount of data can be transmitted via the transmission link between the first device and the second device within the current scheduling period. The transmitted data is retrieved from the multiple queues corresponding to the multiple transmission priorities in order of transmission priority. The start time of the current scheduling period is the time when it is initiated (assuming it is T1), and the end time T2 is determined based on the start time and the duration of the current scheduling period.

[0063] For example, assuming that the multiple queues are composed of queue 1, queue 2, and queue 3 with corresponding transmission priorities from high to low, for ease of description, it is assumed that the amount of data to be transmitted in the current scheduling period is S1.

[0064] Assuming that the data cached in queue 1 exceeds S1, in one embodiment, data of size S1 can be retrieved from queue 1 in chronological order of storage and sent to the second device via the transmission link between the first and second devices. Assuming that the data cached in queue 1 does not reach S1, in one embodiment, the stored data (assuming the data volume is S2) can be retrieved from queue 1 and sent to the above-mentioned transmission link, and data of size S3 can be retrieved from queue 2 and sent to the second device via the above-mentioned transmission link, where S2+S3≤S1.

[0065] In addition, after the current scheduling cycle is started and the duration of the current scheduling cycle is determined, the start time of the next scheduling cycle can be set according to the end time of the current scheduling cycle, that is, the start time of the next scheduling cycle is set to the end time T2 of the current scheduling cycle.

[0066] In summary, in the data transmission solution provided by the embodiment of the present invention, only one transmission link needs to be established between the first device and the second device (i.e., the client and the cloud service end). The data that needs to be transmitted between the two devices is divided into transmission priorities at the application layer, and the data with different transmission priorities is scheduled for transmission. This does not rely on the settings of the network operator, and the engineering implementation is relatively simple. Moreover, only one transmission link needs to be established between the two devices corresponding to one user, which can support more concurrent user connections compared to multiple transmission links. In addition, the data transmission priority is divided at the application layer, and multiple transmission priorities can be set according to the actual needs of the user. Compared with the network layer QoS that only has two service levels of control, more flexible and rich priority control can be achieved. Finally, the duration of each scheduling cycle and the amount of data that needs to be transmitted are dynamically adjusted according to the network quality status of the transmission link between the first device and the second device. It is possible to adaptively control the sending rhythm according to the dynamic changes in network quality, so as to achieve the purpose of prioritizing the transmission of high-priority data, while ensuring the user experience and improving the network bandwidth utilization.

[0067] FIG2 is a flow chart of a data transmission method provided by an embodiment of the present invention. The method may be executed by a transmission control service running at the application layer in the first device. As shown in FIG2 , the method includes the following steps:

[0068] 201. Obtain multiple types of data that the first device needs to send to the second device, and cache the multiple types of data into queues corresponding to the multiple transmission priorities according to the multiple types of data. One of the first device and the second device corresponds to the cloud server and the other corresponds to the client.

[0069] 202. In response to the current scheduling period being started, obtain a network quality indicator value of a transmission link between the first device and the second device.

[0070] 203. Based on the comparison result between the network quality index value and at least one set threshold value, combined with the correspondence between different pre-set threshold ranges and different transmission parameters, determine the duration of the current scheduling period and the amount of data that needs to be transmitted during the current scheduling period, wherein the different transmission parameters include different scheduling period durations and different amounts of data that need to be transmitted during the scheduling period.

[0071] 204. Obtain data not exceeding the data amount from the multiple queues according to the transmission priorities corresponding to the multiple queues, and send the obtained data to the second device through the transmission link within the time period.

[0072] In this embodiment, when the current scheduling cycle is started, after obtaining the network quality index value of the transmission link between the first device and the second device, the length of the current scheduling cycle and the amount of data that needs to be transmitted in the current scheduling cycle can be determined by comparing the network quality index value with the set threshold.

[0073] In one embodiment, a threshold value may be set, thereby obtaining a threshold range smaller than the threshold value and another threshold range larger than the threshold value. If two threshold values ​​are set, three threshold ranges may be obtained.

[0074] Taking the RTT value as an example of a network quality indicator value, assuming that according to a set threshold, a first threshold range less than the threshold and a second threshold range greater than the threshold are obtained, at this time, the network quality reflected by the first threshold range is better than the network quality reflected by the second threshold range.

[0075] For the first threshold range, the first scheduling cycle duration and the amount of data to be transmitted within one scheduling cycle are preset as the first data amount; for the second threshold range, the second scheduling cycle duration and the amount of data to be transmitted within one scheduling cycle are preset as the second data amount. Alternatively, the first scheduling cycle duration is less than the second scheduling cycle duration, and the first data amount is greater than the second data amount. In other words, the better the network quality, the shorter the scheduling cycle, and the greater the amount of data transmitted within one scheduling cycle.

[0076] The scenario of dividing two thresholds into three threshold ranges is similar to the above scenario of two threshold ranges. Simply put, assume that based on the two thresholds, we obtain threshold ranges a, b, and c, which range from small to large. In this case, assume that threshold range a reflects a good network quality; threshold range b reflects a slightly congested network quality; and threshold range c reflects a severely congested network quality.

[0077] For example, the scheduling period length set for threshold range a can be 5 milliseconds, and the amount of data to be transmitted in one scheduling period is 10*1200 bytes; the scheduling period length set for threshold range b can be 5 milliseconds, and the amount of data to be transmitted in one scheduling period is 5*1200 bytes; the scheduling period length set for threshold range c can be 10 milliseconds, and the amount of data to be transmitted in one scheduling period is 1200 bytes.

[0078] In this embodiment, multiple network quality states are defined based on the threshold range within which the network quality indicator falls. Each state sets a different scheduling period duration and the amount of data required to be transmitted within the scheduling period. At the application layer, data is cached in the corresponding transmission priority queue, controlling the transmission cadence based on different network quality conditions, rather than queuing all data at the network layer.

[0079] The implementation of other steps in this embodiment can refer to the relevant descriptions in the aforementioned other embodiments and will not be repeated here.

[0080] FIG3 is a flowchart of a data transmission method provided by an embodiment of the present invention. The method may be executed by a transmission control service running at the application layer in the first device. As shown in FIG3 , the method includes the following steps:

[0081] 301. Obtain multiple types of data that the first device needs to send to the second device, and cache the multiple types of data into queues corresponding to the multiple transmission priorities according to the multiple types of data. One of the first device and the second device corresponds to the cloud server and the other corresponds to the client.

[0082] 302. In response to the current scheduling period being started, obtain a network quality indicator value of a transmission link between a first device and a second device.

[0083] 303. Determine the duration of the current scheduling period and the amount of data that needs to be transmitted in the current scheduling period according to the network quality indicator value.

[0084] 304. Determine the proportion of the data volume occupied by the multiple queues according to the transmission priorities corresponding to the multiple queues and the waiting time of the data in the multiple queues, and send the data obtained from the multiple queues according to the proportion to the second device through the transmission link within the time period in the set transmission priority order.

[0085] In this embodiment, in the process of extracting data not exceeding a target data volume from multiple queues according to their corresponding transmission priorities within the current scheduling period and transmitting the data to the second device via the transmission link between the second device and the second device, in addition to considering the transmission priorities of the queues, the waiting time of the data in each queue may also be considered. The target data volume is the amount of data required to be transmitted within the current scheduling period.

[0086] For example, assume that two queues, Queue 1 and Queue 2, are set, and the transmission priority corresponding to Queue 1 is higher than that of Queue 2. In one embodiment, in the current scheduling period, if the data stored in Queue 1 has reached the target data volume, only data of the target data volume can be obtained from Queue 1 and sent to the above-mentioned transmission link and to the second device; if the data volume buffered in Queue 1 is less than the target data volume and there is data buffered in Queue 2, data will be read from Queue 2.

[0087] In another embodiment, if the data stored in queue 1 has reached the target data volume, but if the waiting time of some data previously stored in queue 2 is too long, it may be determined that a first proportion of the target data volume is obtained from queue 1 and a second proportion of the target data volume is obtained from queue 2. The first proportion of data obtained from queue 1 is preferentially sent to the transmission link for transmission, followed by the second proportion of data obtained from queue 2.

[0088] In actual applications, a waiting time threshold and a data volume ratio distribution rule may be set to implement the above step 304 .

[0089] The implementation of other steps in this embodiment can refer to the relevant descriptions in the aforementioned other embodiments and will not be repeated here.

[0090] FIG4 is a flowchart of a data transmission method provided by an embodiment of the present invention. The method may be executed by a transmission control service running at the application layer in the first device. As shown in FIG4 , the method includes the following steps:

[0091] 401. Obtain target data that a first device needs to send to a second device, and store the target data in a queue corresponding to a target transmission priority according to a target data type corresponding to the target data.

[0092] One of the first device and the second device corresponds to the cloud server and the other corresponds to the client. The data transmitted between the client and the cloud server includes multiple data types, and different data types have different transmission priorities. Different transmission priorities are set with different queues for caching data.

[0093] When target data to be sent from the first device to the second device is obtained at the current moment, the target data type and the target transmission priority corresponding to the target data type are determined, and the target data is stored in a queue corresponding to the target transmission priority.

[0094] 402. Determine whether the previous scheduling period has ended. If so, execute step 403. Otherwise, set the next scheduling time to the end time of the previous scheduling period.

[0095] 403. Determine whether the current scheduling cycle is started.

[0096] In this embodiment, when data is stored in multiple queues, a scheduling process is triggered. First, a determination is made as to whether the previous scheduling cycle has ended. If so, the current scheduling cycle is directly started, i.e., the current time is set as the start time of the current scheduling cycle. If the previous scheduling cycle has not ended, the next scheduling time is set to the end time of the previous scheduling cycle.

[0097] In actual applications, a dynamic timer can be set to dynamically start the scheduling task.

[0098] In one embodiment, if the previous scheduling period has not yet ended, the timer can be set to the difference between the current time and the end time of the previous scheduling period, which is actually the time until the end of the previous scheduling period. When the timer reaches the end time of the previous scheduling period, step 402 can be executed again, and the current scheduling period will be started.

[0099] In addition, if the scheduling cycle start time set according to the end time of the previous scheduling cycle has arrived, it can also be determined to start the current scheduling cycle.

[0100] 404. Obtain a network quality indicator value of a transmission link between the first device and the second device.

[0101] 405. Determine the duration of the current scheduling period and the amount of data that needs to be transmitted in the current scheduling period according to the network quality indicator value.

[0102] 406. Set the start time of the next scheduling period according to the end time of the current scheduling period.

[0103] After determining the duration of the current scheduling period and the amount of data to be transmitted in the current scheduling period based on the currently obtained network quality index value, the start time of the next scheduling period can also be set to the end time of the current scheduling period. In one embodiment, this setting can be completed by setting a timer time.

[0104] In this way, after the current scheduling cycle ends, the next scheduling process can be executed. In fact, in the next scheduling process, the judgment of step 402 can also be performed first, but the judgment result in this case is: the previous scheduling cycle has ended. In this case, the previous scheduling cycle is the scheduling cycle started before the judgment time.

[0105] 407. Obtain data not exceeding the data amount from the multiple queues according to the transmission priorities corresponding to the multiple queues, and send the obtained data to the second device through the transmission link within the time period.

[0106] In this embodiment, it is assumed that at time T1, the target data that the first device needs to send to the second device is obtained and stored in the corresponding queue for cache. At this time, since new data is stored in the queue, it triggers the judgment of whether the previous scheduling cycle has ended. Since the end time T2 of the previous scheduling cycle is determined when the previous scheduling cycle is started, if the current time T1 is earlier than time T2, it means that the previous scheduling cycle has not ended yet, and the judgment can be performed at time T2. If time T1 is after time T2, it means that the previous scheduling cycle has ended. At this time, it is determined to start the current scheduling cycle, that is, the start time of the current scheduling cycle is determined to be time T1.

[0107] Afterwards, a network quality index value corresponding to the transmission link between the first device and the second device at this time is obtained, and the duration of the current scheduling period and the amount of data that needs to be transmitted in the current scheduling period are determined according to the network quality index value.

[0108] Afterwards, the start time of the next scheduling period may be set to the end time T3 of the current scheduling period. In addition, within the current scheduling period, data not exceeding the above data volume is obtained from the multiple queues in order of transmission priority to be sent to the second device.

[0109] Based on this, it can be understood that if no new data is stored in the queue before time T3 is reached, then when time T3 arrives, it can be determined to start the next scheduling cycle. If new data is stored in the queue before time T3, it triggers the judgment of "whether the previous scheduling cycle has ended". At this time, since the current scheduling cycle defined by time T1 to time T3 has not ended, it is necessary to wait until the current scheduling cycle ends before making the next judgment. At this time, the judgment result is: the previous scheduling cycle has ended, and the next scheduling cycle is started.

[0110] In a real-world application, assume the current scheduling cycle is 5 milliseconds long and the amount of data to be transmitted is 10*1200 bytes. In practice, this 10*1200 bytes of data might be sent in just 1 millisecond, leaving no further data for the remaining 4 milliseconds. If no new data is stored in the queues during this 4 millisecond period, the next scheduling cycle is considered complete after this 4 millisecond period.

[0111] If new data is stored in a queue within these 4 milliseconds, the "Has the previous scheduling cycle ended?" check is triggered. If the result is "The previous scheduling cycle has not yet ended," the previous scheduling cycle is now the current scheduling cycle, that is, the scheduling cycle that started before the judgment moment. Therefore, the next scheduling cycle will not start immediately and must wait until the current scheduling cycle ends before starting the next one.

[0112] Figure 5 is a schematic diagram illustrating an application of a data transmission method provided by an embodiment of the present invention. In Figure 5 , it is assumed that multiple transmission priorities are set, including four transmission priorities, ranked from high to low: P0, P1, P2, and P3. Cache queues are configured for these three transmission priorities, while there is no corresponding cache queue for transmission priority P0. These queues are all located at the application layer and maintained by the application layer's transmission control service.

[0113] Based on the above settings, when the transmission control service captures the data that the first device wants to send to the second device (the rectangular blocks shown in the figure represent individual data), it first determines whether the transmission priority corresponding to the data is P0. If so, it is directly sent to the transmission link and transmitted to the second device in priority. If not, the data is stored in the queue corresponding to the corresponding transmission priority for cache. In this way, data with a transmission priority of P0 can be sent to the second device in a timely manner to ensure its real-time transmission. For example, if the audio data sent by the cloud server to the client is set to have a transmission priority of P0, then the audio data sent by the cloud server to the client is preferentially sent through the above-mentioned transmission link to ensure user experience. Similarly, if the client transmits data to the cloud server, the keyboard and mouse data can be set to have a transmission priority of P0, then the keyboard and mouse data will be sent to the cloud server in a timely manner for a timely response.

[0114] After the above data is stored in a queue, it is determined whether the previous scheduling cycle has ended. Assuming that the previous scheduling cycle has ended, it is determined to start the current scheduling cycle, and then the network quality index value of the transmission link is obtained. The network quality status is determined according to the network quality index value: good, slightly congested, and severely congested. The duration of the current scheduling cycle and the amount of data to be transmitted are set according to the network quality status to achieve the purpose of controlling the data transmission bit rate.

[0115] For example, as shown in Figure 5, when the network is good, a small scheduling cycle length and a large amount of transmitted data can be set; when the network is slightly congested, a smaller scheduling cycle length and a larger amount of transmitted data can be set; when the network is severely congested, a larger scheduling cycle length and a smaller amount of transmitted data can be set.

[0116] In addition, after determining the duration of the current scheduling cycle, you can set the start time of the next scheduling cycle: the end time of the current scheduling cycle. For example, set the timer's timing time to the duration of the current scheduling cycle.

[0117] It can be understood that, for queues of the three transmission priorities P1, P2, and P3, data with the same transmission priority are arranged in the queue corresponding to the same transmission priority in the order of entry time.

[0118] After setting the duration of the current scheduling cycle and the amount of data to be transmitted, data can be retrieved from multiple queues based on a predefined polling algorithm for transmission to the aforementioned transmission link. The amount of data retrieved does not exceed the predefined data volume. The polling algorithm can consider only the transmission priority order or further consider the waiting time of data in the queue.

[0119] In the data transmission solutions provided in the above embodiments, only one transmission link needs to be established between the communicating client and the cloud server. The transmission priorities of different types of data are distinguished at the application layer, and different types of data are cached and transmission controlled based on the transmission priorities corresponding to different types of data. This does not rely on network operators and is highly feasible on public clouds. In response to different network congestion conditions, data is cached in queues corresponding to the transmission priorities at the application layer to control the sending rhythm, rather than all data being queued at the network layer, so as to achieve the purpose of giving priority to data with high transmission priority. According to the network conditions, the scheduling cycle time and the amount of data to be sent are dynamically adjusted, and dynamic adjustments can be made in time according to the network conditions to fully utilize the network bandwidth.

[0120] The data transmission devices of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these devices can be constructed using commercially available hardware components and configured according to the steps taught in this solution.

[0121] Figure 6 is a structural diagram of a data transmission device provided by an embodiment of the present invention. The device is located in a first device and runs a transmission control service at the application layer. As shown in Figure 6, the device includes: a data cache module 11, a network detection module 12, and a scheduling processing module 13.

[0122] The data caching module 11 is used to obtain multiple types of data that the first device needs to send to the second device, and cache the multiple types of data into queues corresponding to the multiple transmission priorities corresponding to the multiple types of data; wherein, one of the first device and the second device corresponds to the cloud server and the other corresponds to the client.

[0123] The network detection module 12 is configured to obtain a network quality indicator value of a transmission link between the first device and the second device in response to the current scheduling period being started.

[0124] The scheduling processing module 13 is used to determine the duration of the current scheduling period and the amount of data that needs to be transmitted within the current scheduling period based on the network quality indicator value; and, based on the transmission priorities corresponding to the multiple queues, obtain data not exceeding the amount of data from the multiple queues, so as to send the obtained data to the second device through the transmission link within the duration.

[0125] In one embodiment, the scheduling processing module 13 is specifically used to: determine the duration of the current scheduling cycle and the amount of data that needs to be transmitted within the current scheduling cycle based on the comparison result of the network quality index value and at least one set threshold value, combined with the correspondence between different pre-set threshold ranges and different transmission parameters, wherein the different transmission parameters include different scheduling cycle durations and different amounts of data that need to be transmitted within the scheduling cycle.

[0126] In one embodiment, the different threshold ranges include a first threshold range and a second threshold range, and the network quality reflected by the first threshold range is better than the network quality reflected by the second threshold range; the transmission parameters corresponding to the first threshold range include a first scheduling cycle duration and a first data volume, and the transmission parameters corresponding to the second threshold range include a second scheduling cycle duration and a second data volume; wherein, the first scheduling cycle duration is less than the second scheduling cycle duration, and the first data volume is greater than the second data volume; or, the first scheduling cycle duration is equal to the second scheduling cycle duration, and the first data volume is greater than the second data volume.

[0127] In one embodiment, the scheduling processing module 13 is specifically used to: determine the proportion of the data volume occupied by the multiple queues according to the transmission priorities corresponding to the multiple queues and the waiting time of the data in the multiple queues; and send the data obtained from the multiple queues according to the proportion to the second device through the transmission link within the time period in accordance with the set transmission priority order.

[0128] In one embodiment, the data caching module 11 is specifically used to: if the multiple types of data include data corresponding to the target transmission priority, then directly send the data corresponding to the target transmission priority to the second device through the transmission link, wherein the target transmission priority is higher than other transmission priorities among the multiple transmission priorities; for the multiple types of data except the data corresponding to the target transmission priority, cache them into corresponding queues according to their respective corresponding transmission priorities.

[0129] In one embodiment, the scheduling processing module 13 is further configured to set a start time of a next scheduling period according to an end time of the current scheduling period.

[0130] In one embodiment, the network detection module 12 is further configured to: determine to start the current scheduling cycle if a scheduling cycle start time set according to an end time of a previous scheduling cycle has arrived.

[0131] In one embodiment, the network detection module 12 is further configured to: determine whether a previous scheduling cycle has ended in response to data being stored in at least one of the multiple queues; and determine to start the current scheduling cycle if the previous scheduling cycle has ended.

[0132] In one embodiment, the cloud service end includes any one of the following: a cloud desktop, a cloud application.

[0133] Through the above scheme, in the process of transmitting multiple types of data from the first device to the second device, different transmission priorities can be defined according to the user's sensitivity to these multiple types of data, and different transmission priorities are configured with corresponding queues for data caching. Based on the dynamically changing network quality indicator value of the transmission link between the first device and the second device, the cycle length and transmission data volume of the scheduling cycle are dynamically set to control the data sending rhythm at the application layer, so as to achieve the purpose of giving priority to the transmission of high transmission priority data that is sensitive to the user. At the same time, the bandwidth utilization is guaranteed, and the transmission of low transmission priority data is not excessively delayed for the transmission of high transmission priority data, thereby ensuring user experience.

[0134] The device shown in FIG6 can execute the steps in the aforementioned embodiments. For detailed execution process and technical effects, please refer to the description in the aforementioned embodiments and will not be repeated here.

[0135] In one possible design, the structure of the data transmission device shown in FIG6 can be implemented as an electronic device. As shown in FIG7 , the electronic device may include a processor 21, a memory 22, and a communication interface 23. Memory 22 stores executable code. When executed by processor 21, the executable code enables processor 21 to at least implement the data transmission method provided in the aforementioned embodiments.

[0136] In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor can at least implement the data transmission method provided in the aforementioned embodiment.

[0137] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Those skilled in the art can understand and implement the present invention without inventive effort.

[0138] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by a combination of hardware and software. Based on this understanding, the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a computer product. The present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0139] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A data transmission method, applied to a first device, the method comprising: Acquire multiple types of data that the first device needs to send to the second device; wherein one of the first device and the second device corresponds to a cloud server, and the other corresponds to a client; According to the multiple transmission priorities corresponding to the multiple types of data, the multiple types of data are cached in queues corresponding to the multiple transmission priorities respectively; In response to the current scheduling period being started, obtaining a network quality indicator value of a transmission link between the first device and the second device; Determining the duration of the current scheduling period and the amount of data to be transmitted in the current scheduling period according to the network quality indicator value; According to the transmission priorities respectively corresponding to the multiple queues, data with a total amount not exceeding the data amount is obtained from the multiple queues, so as to send the obtained data to the second device through the transmission link within the time length.

2. The method according to claim 1, wherein determining the duration of the current scheduling period and the amount of data to be transmitted in the current scheduling period according to the network quality indicator value comprises: Based on the comparison result between the network quality index value and at least one set threshold value, combined with the correspondence between different pre-set threshold ranges and different transmission parameters, the duration of the current scheduling cycle and the amount of data that needs to be transmitted during the current scheduling cycle are determined, wherein the different transmission parameters include different scheduling cycle durations and different amounts of data that need to be transmitted during the scheduling cycle.

3. The method according to claim 2, wherein the different threshold ranges include a first threshold range and a second threshold range, and the network quality reflected by the first threshold range is better than the network quality reflected by the second threshold range; The transmission parameters corresponding to the first threshold range include a first scheduling cycle duration and a first data volume, and the transmission parameters corresponding to the second threshold range include a second scheduling cycle duration and a second data volume; in, The first scheduling cycle duration is shorter than the second scheduling cycle duration, and the first data amount is greater than or equal to the second data amount; or, the first scheduling cycle duration is equal to the second scheduling cycle duration, and the first data amount is greater than the second data amount.

4. According to the method of any one of claims 1 to 3, the step of obtaining data not exceeding the data amount from the multiple queues according to the transmission priorities respectively corresponding to the multiple queues, and sending the obtained data to the second device through the transmission link within the time length, comprises: Determine, according to the transmission priorities respectively corresponding to the multiple queues and the waiting time of the data in the multiple queues, the proportions of the data volume respectively occupied by the multiple queues; The data obtained from the multiple queues according to the ratio are sent to the second device through the transmission link within the time length according to the set transmission priority order.

5. The method according to any one of claims 1 to 3, further comprising: If the multiple types of data include data corresponding to a target transmission priority, the data corresponding to the target transmission priority is directly sent to the second device through the transmission link, wherein the target transmission priority is higher than the multiple transmission priorities.

6. The method according to claim 1, further comprising: According to the end time of the current scheduling period, the start time of the next scheduling period is set.

7. The method according to claim 6, before obtaining the network quality indicator value of the transmission link between the first device and the second device in response to the current scheduling cycle being started, further comprising: If the scheduling cycle start time set according to the end time of the previous scheduling cycle has been reached, it is determined to start the current scheduling cycle.

8. The method according to claim 1, before obtaining the network quality indicator value of the transmission link between the first device and the second device in response to the current scheduling cycle being started, further comprising: In response to data being stored in at least one of the plurality of queues, determining whether a previous scheduling cycle has ended; If the previous scheduling cycle ends, it is determined to start the current scheduling cycle.

9. According to the method of claim 1, the cloud service end includes any one of the following: cloud desktop, cloud application.

10. An electronic device, characterized in that: include: A memory, a processor, and a communication interface; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor executes the data transmission method as described in any one of claims 1 to 9.

11. A non-transitory machine-readable storage medium, characterized in that: The non-transitory machine-readable storage medium stores executable code, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the data transmission method according to any one of claims 1 to 9.

12. A data transmission system, comprising: A first device and a second device, wherein one of the first device and the second device corresponds to a cloud service end, and the other corresponds to a client end; the first device is used to: Acquire multiple types of data that the first device needs to send to the second device; According to the multiple transmission priorities corresponding to the multiple types of data, the multiple types of data are cached in queues corresponding to the multiple transmission priorities respectively; In response to the current scheduling period being started, obtaining a network quality indicator value of a transmission link between the first device and the second device; Determining the duration of the current scheduling period and the amount of data to be transmitted in the current scheduling period according to the network quality indicator value; According to the transmission priorities respectively corresponding to the multiple queues, data not exceeding the data amount is obtained from the multiple queues, so as to send the obtained data to the second device through the transmission link within the time length.

Citation Information

Patent Citations

  • Method for determining network service quality, device and server

    CN109151848A

  • Data transmission method and device

    CN110798751A

  • Data transmission method, device and equipment and readable storage medium

    CN111246033A

  • Service data transmission method, network equipment and terminal equipment

    CN113133122A

  • Scheduling method, device and system

    CN115643609A

Cited By

  • Adaptive data transmission method for unstable link

    CN118972342A