Data transmission method, cloud server, storage medium and computer program product

By obtaining data transmission quality parameters in the cloud host and dynamically selecting appropriate transmission protocols and congestion control mechanisms, the problem of unstable public network transmission is solved, and the bandwidth utilization and rate of long-distance transmission of big data are improved.

CN120785486AInactive Publication Date: 2025-10-14CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1

Patent Information

Application Number
CN202511292570.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-10
Publication Date
2025-10-14
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the long-distance data transmission of big data, the public network transmission time is long and the bandwidth utilization is unstable, resulting in low data transmission rate, which is particularly obvious when the public network environment fluctuates during peak hours.

Method used

The cloud host obtains data transmission quality parameters such as the number of retransmissions and transmission delay, dynamically selects the appropriate transmission protocol, such as KCP, UDT, or TCP, and dynamically adjusts the transmission protocol to cope with network fluctuations by combining the congestion control mechanism and network environment characteristics.

Benefits of technology

Improves the stability of bandwidth utilization and data transmission rate, ensuring efficient and stable data transmission when the network environment changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120785486A_ABST
    Figure CN120785486A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data transmission method, a cloud server, a storage medium and a computer program product, and the method comprises the steps that a cloud host deployed in the cloud server obtains data transmission quality parameters in a first transmission period, and the data transmission quality parameters comprise retransmission times and / or transmission delay; judging whether a first transmission protocol is selected as a target transmission protocol or not according to the data transmission quality parameter; if it is judged that the first transmission protocol is not selected as the target transmission protocol, obtaining at least one piece of information of a transmission distance, a transmission bandwidth, whether a transmission link contains a first gateway and whether a congestion control mechanism supports modification; according to at least one type of information of a transmission distance, a transmission bandwidth, whether a transmission link comprises a first gateway and whether a congestion control mechanism supports modification, selecting a transmission protocol from a second transmission protocol and a third transmission protocol as a target transmission protocol, the target transmission protocol is used for performing data transmission in a transmission period after the first transmission period.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a data transmission method, a cloud server, a storage medium, and a computer program product. Background Art

[0002] Currently, long-distance data transmission of big data is usually achieved through the public network. Due to the long transmission distance and large data volume, the transmission time on the public network is long. At this time, if the public network is at peak times or other reasons, the public network environment fluctuates, which will cause unstable bandwidth utilization and lead to low data transmission rate. Summary of the Invention

[0003] The present application provides a data transmission method, a cloud server, a storage medium, and a computer program product.

[0004] The technical solution of this application is achieved as follows: In a first aspect, the present application proposes a data transmission method, which is applied to a cloud host, wherein the cloud host is deployed in a cloud server, and the method comprises: Acquire a data transmission quality parameter in a first transmission period, where the data transmission quality parameter includes a number of retransmissions and / or a transmission delay; determining, based on the data transmission quality parameter, whether to select the first transmission protocol as the target transmission protocol; If it is determined that the first transmission protocol is not selected as the target transmission protocol, obtaining at least one of the following information: transmission distance, transmission bandwidth, whether the transmission link includes the first gateway, and whether the congestion control mechanism supports modification; Based on at least one of the transmission distance, the transmission bandwidth, whether the transmission link includes the first gateway, and whether the congestion control mechanism supports modification, a transmission protocol is selected from the second transmission protocol and the third transmission protocol as the target transmission protocol, and the target transmission protocol is used for data transmission in a transmission period after the first transmission period.

[0005] In a second aspect, the present application proposes a cloud server comprising: a processor, a memory and a communication bus; when the processor executes a running program stored in the memory, a data transmission method applied to the cloud host is implemented.

[0006] In a third aspect, the present application proposes a storage medium on which a computer program is stored. When the computer program is executed by a processor, a data transmission method applied to a cloud host is implemented.

[0007] In a fourth aspect, the present application proposes a computer program product, comprising a computer program, which, when executed by a processor, implements a data transmission method applied to a cloud host.

[0008] The present application provides a data transmission method and a cloud server, a storage medium, and a computer program product. The method includes: a cloud host deployed in a cloud server obtains data transmission quality parameters within a first transmission cycle, the data transmission quality parameters including the number of retransmissions and / or transmission delay; based on the data transmission quality parameters, determines whether to select a first transmission protocol as a target transmission protocol; if it is determined that the first transmission protocol is not selected as the target transmission protocol, obtains at least one of the following information: transmission distance, transmission bandwidth, whether the transmission link includes a first gateway, and whether a congestion control mechanism supports modification; based on at least one of the following information: transmission distance, transmission bandwidth, whether the transmission link includes a first gateway, and whether a congestion control mechanism supports modification, selects a transmission protocol from a second transmission protocol and a third transmission protocol as a target transmission protocol, the target transmission protocol being used to transmit data within a transmission cycle following the first transmission cycle. By adopting the above-mentioned implementation scheme, the number of retransmissions and / or transmission delays in the first transmission cycle can represent the network status, and then the target transmission protocol used in the transmission cycle after the first transmission cycle is selected based on the network status. Furthermore, when the first transmission protocol is not selected, the target transmission protocol can be further selected based on the transmission distance, transmission bandwidth, whether the transmission link includes the first gateway, and whether the congestion control mechanism supports the modification of at least one information related to the network transmission characteristics. In this way, the target transmission protocol used in the transmission cycle after the first transmission cycle can be dynamically adjusted based on different network transmission characteristics and network conditions to cope with fluctuations in the network environment, thereby improving the stability of bandwidth utilization and increasing the data transmission rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 A data transmission method according to an embodiment of the present invention Figure One ; Figure 2 A schematic diagram of an exemplary data transmission process provided in an embodiment of the present application; Figure 3 A data transmission method according to an embodiment of the present invention Figure Two ; Figure 4 A schematic diagram of the structure of a cloud server provided in an embodiment of the present application Figure One ; Figure 5 A schematic diagram of the structure of a cloud server provided in an embodiment of the present application Figure Two . DETAILED DESCRIPTION

[0010] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below with reference to the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.

[0011] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.

[0012] In the following description, reference is made to "some embodiments," which describe a subset of all possible embodiments. However, it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. It should also be noted that the terms "first, second, and third" in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific ordering of the objects. It is understood that "first, second, and third" may be interchanged in a specific order or sequential order where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0013] The embodiment of the present application provides a data transmission method, which is applied to a cloud host, and the cloud host is deployed in a cloud server, such as Figure 1 As shown, the method may include: S101: Acquire data transmission quality parameters in a first transmission period, where the data transmission quality parameters include the number of retransmissions and / or transmission delay.

[0014] A data transmission method proposed in an embodiment of the present application is suitable for scenarios of long-distance transmission of large data to the public Internet.

[0015] In the embodiment of the present application, the cloud host is deployed using a cloud host image; the cloud host image is configured with a service for executing the data transmission method. The cloud host can implement the data transmission solution in the embodiment of the present application through this service.

[0016] It should be noted that the cloud server proposed in the embodiment of the present application can also be called a cloud platform.

[0017] In this embodiment of the present application, cloud servers can be set up in various regions, and free resources such as virtual private networks, subnets, and network cards are pre-configured on each cloud server. When data transmission services are required, paid resources such as cloud hosts and elastic public Internet Protocol (IP) can be requested on the sending and receiving cloud servers, respectively. In response to the request, the sending and receiving cloud servers deploy cloud hosts and allocate elastic public IP addresses on their respective cloud servers.

[0018] In the embodiment of the present application, the cloud server creates a cloud host image after deploying a service for performing the data transmission method for the first time; at this time, the service is configured in the cloud host image, and in the process of deploying the cloud host using the cloud host image, the service can be directly deployed in the cloud host by using the cloud host image, thereby improving the deployment efficiency and reducing the repeated configuration work.

[0019] It should be noted that when there is a data transmission service, the required network and computing resources can be quickly opened, and the opened network and computing resources can be automatically released after the data transmission service is completed.

[0020] In the embodiment of the present application, for the same data transmission service, a cloud host for performing the data transmission service is deployed on the cloud server in the region where the data source is located (that is, the sending end server of the present application) and the cloud server in the region where the data destination is located (that is, the receiving end server of the embodiment of the present application). The cloud host performing the data transmission method of the embodiment of the present application can be located in the sending end cloud server.

[0021] In the embodiment of the present application, the data transmission process is shown in Figure 2 After the data source transmits the service data to the cloud host of the sending end through the private line network, the cloud host of the sending end transmits the service data to the cloud host of the receiving end through the public Internet, and the cloud host of the receiving end transmits the service data to the data destination through the private line network. The cloud host of the sending end and the cloud host of the receiving end deploy elastic public network IP (Elastic IP, EIP) to realize the data transmission of the service data in the public Internet.

[0022] It should be noted that the private line network belongs to a private network environment and has sufficient bandwidth and high network stability. Therefore, the performance bottleneck of the data transmission link mainly exists in the long-distance transmission part completed through the public Internet. Therefore, the embodiment of the present application proposes a scheme of dynamically selecting a target transmission protocol for the data transmission process implemented in the public Internet.

[0023] In the embodiment of the present application, a plurality of messages can be randomly selected in the first transmission period, a plurality of retransmission times are determined through the sending situation of the plurality of messages, a plurality of transmission delays are determined through the confirmation situation of the plurality of messages, and the plurality of retransmission times and / or the plurality of transmission delays corresponding to the plurality of messages are taken as the data transmission quality parameters in the first transmission period.

[0024] In one embodiment, the message can be an acknowledgement (ACK) message. The ACK message can be sent from the receiving end cloud host to the sending end cloud host.

[0025] S102, determining whether to select the first transmission protocol as the target transmission protocol according to the data transmission quality parameter.

[0026] In the embodiment of the present application, the first score is determined according to the data transmission quality parameter; the first score is directly proportional to the data transmission quality parameter; if the first score is greater than the first threshold value, it is determined that the first transmission protocol is selected as the target transmission protocol; if the first score is not greater than the first threshold value, it is determined that the first transmission protocol is not selected as the target transmission protocol.

[0027] In the embodiment of the present application, different scoring standards can be set for different data transmission quality parameters, and then the first score corresponding to the data transmission quality parameter is determined according to the scoring standard.

[0028] It should be noted that the data transmission quality parameter is directly proportional to the first score, and if the data transmission quality parameter value is greater (i.e. the number of retransmissions is greater and / or the transmission delay is greater), the first score is greater, and vice versa, if the data transmission quality parameter value is smaller, the first score is smaller.

[0029] For example, the scoring standard of the number of retransmissions can be that if the message does not trigger retransmission, 0 points are recorded, 1 point is recorded when retransmission is triggered for the first time, 2 points are recorded for the second retransmission, and 4 points are recorded for the third retransmission and above; the scoring standard of the transmission delay can be that if the ACK message is received within 400 milliseconds, it is recorded as 0 points; if it is received between 400 milliseconds and 600 milliseconds, it is recorded as 0.5 points; then if it is received between 600 milliseconds and 800 milliseconds, it is recorded as 1.5 points, and if it is received above 800 milliseconds, it is recorded as 2.5 points.

[0030] For example, the number of retransmissions of the ACK message is 2 times, which is recorded as 2 points, and the delay of the ACK message is 500 milliseconds, which is recorded as 0.5 points, so the score corresponding to the ACK message is 2.5 points.

[0031] In one embodiment, if multiple data transmission quality parameters of multiple messages are obtained, multiple scores corresponding to the multiple messages can be determined according to the scoring standard, and then the multiple scores can be averaged, clustered, removed from the highest value and / or the lowest value, and the like to obtain the first score.

[0032] For example, the number of retransmissions and the transmission delay of 10 messages in the first transmission period are determined respectively, and then the highest score and the lowest score are removed from the 10 total scores, and the remaining 8 scores are averaged to obtain the first score.

[0033] In the embodiment of the present application, the first score can reflect the overall network condition, and the higher the first score, the worse the network condition, and vice versa, the lower the first score, the better the network condition.

[0034] In the embodiments of the present application, a first threshold value can be set for the first score to distinguish between good network conditions and poor network conditions, and the specific value of the first threshold value can be determined according to actual test results.

[0035] In the embodiments of the present application, the first score is compared with the first threshold value. If the first score is greater than the first threshold value, it indicates poor network conditions, and it is determined to select the first transmission protocol as the target transmission protocol. If the first score is not greater than the first threshold value, it indicates good network conditions, and it is determined not to select the first transmission protocol as the target transmission protocol.

[0036] In the embodiments of the present application, the first transmission protocol can be a Keep-Alive Control Protocol (KCP) protocol or the like that is suitable for poor network conditions.

[0037] It should be noted that KCP is a transmission protocol based on User Datagram Protocol (UDP), which retains the fast transmission characteristics of UDP while providing fast and reliable data transmission through the addition of a reliability control mechanism. Since it has a fast retransmission function, it will immediately retransmit once it detects a packet loss, without waiting for the entire timeout period to end, which greatly reduces the delay caused by packet loss, and thus is suitable for transmitting data in poor network conditions.

[0038] S103, if it is determined not to select the first transmission protocol as the target transmission protocol, at least one of the following information is obtained: transmission distance, transmission bandwidth, whether the transmission link contains a first gateway, and whether the congestion control mechanism supports modification.

[0039] In the embodiments of the present application, the transmission distance can be the transmission distance between the sending end cloud host and the receiving end cloud host.

[0040] In the embodiments of the present application, the transmission bandwidth can be the egress bandwidth of the sending end cloud host.

[0041] In the embodiments of the present application, the transmission link can be the transmission link between the sending end cloud host and the receiving end cloud host, and the first gateway can be a Network Address Translation (NAT) gateway.

[0042] It should be noted that the congestion control mechanism is a set of strategies and algorithms used in network communication to prevent and alleviate network congestion (i.e., network resources overload leading to a decrease in data transmission performance). Its core goal is to dynamically adjust the data sending rate to avoid network collapse due to excessive traffic, while maximizing the use of available bandwidth to ensure the efficiency and reliability of data transmission.

[0043] S104. Select a transmission protocol from the second transmission protocol and the third transmission protocol as a target transmission protocol based on at least one of the transmission distance, the transmission bandwidth, whether the transmission link includes the first gateway, and whether the congestion control mechanism supports modification. The target transmission protocol is used for data transmission in a transmission period after the first transmission period.

[0044] In an embodiment of the present application, if the transmission bandwidth is greater than the second threshold and the transmission distance is greater than the third threshold, and / or the transmission link includes the first gateway, and / or the congestion control mechanism supports modification, the second transmission protocol is selected as the target transmission protocol; if the transmission bandwidth is not greater than the second threshold or the transmission distance is not greater than the third threshold, and the transmission link does not include the first gateway, and the congestion control mechanism does not support modification, the third transmission protocol is selected as the target transmission protocol.

[0045] In the embodiment of the present application, the second transmission protocol may be a transmission protocol suitable for high-speed data transmission, such as a UDP-based Data Transfer Protocol (UDT) protocol.

[0046] It should be noted that UDT is a high-performance transmission protocol designed specifically for high bandwidth-delay product (BDP) network environments. By optimizing congestion control and data transmission strategies, it can achieve more efficient data transmission in high-latency networks.

[0047] In one embodiment, since the UDT protocol is designed for transmitting data on a high-speed wide area network, the UDT protocol may be selected when the transmission bandwidth is greater than the second threshold and the transmission distance is greater than the third threshold.

[0048] In one embodiment, since the UDT protocol is based on the UDP protocol and is more suitable for network address translation scenarios, when a NAT gateway is included in the transmission link, the UDT protocol can be selected.

[0049] In one embodiment, since UDT provides a configurable congestion control mechanism, and the congestion control mechanism of the Transmission Control Protocol (TCP) is implemented in the network protocol stack of the operating system, when the congestion control mechanism supports modification, the UDT protocol can be selected.

[0050] In an embodiment of the present application, the third transmission protocol may be the TCP protocol.

[0051] It should be noted that TCP protocol is a connection-oriented reliable transmission protocol, and most data transmission tools are based on TCP protocol. Therefore, if it is detected that the network condition is good and high-speed data transmission is not required, TCP protocol can be selected.

[0052] It can be understood that through the mechanism of dynamically adjusting the transmission protocol, the optimal data transmission performance can be ensured under different network conditions.

[0053] It should be noted that the data transmission rate using the dynamically adjusted transmission protocol and the data transmission rate using a single TCP protocol during the data transmission peak period of the public Internet can be seen in Table 1.

[0054] Table 1

[0055] As can be seen from Table 1, the data transmission rate of the dynamically adjusted transmission protocol during the data transmission peak period of the public Internet is improved as a whole.

[0056] It should be noted that the selected target transmission protocol is used for data transmission in the transmission period after the first transmission period. It can be used in one transmission period after the first transmission period, or it can be used in multiple transmission periods after the first transmission period. The specific selection can be made according to the actual situation, and the embodiments of the present application do not make specific limitations.

[0057] It should be noted that the change of network condition can be continuously monitored, and the transmission protocol can be dynamically adjusted according to the latest data transmission quality parameter to cope with the fluctuation of network environment. Such dynamic adjustment not only improves the efficiency of data transmission, but also maintains the continuity and stability of the service when the network condition changes.

[0058] It can be understood that the number of retransmissions and / or transmission delay in the first transmission period can represent the network condition, and then the target transmission protocol used in the transmission period after the first transmission period is selected based on the network condition. Further, when the first transmission protocol is not selected, the target transmission protocol can be further selected based on at least one information related to network transmission characteristics, such as transmission distance, transmission bandwidth, whether the transmission link contains the first gateway, and whether the congestion control mechanism supports modification. Thus, the target transmission protocol used in the transmission period after the first transmission period can be dynamically adjusted based on different network transmission characteristics and network conditions to cope with the fluctuation of network environment, thereby improving the stability of bandwidth utilization and improving the data transmission rate.

[0059] Further, the data transmission method proposed in the embodiments of the present application can also realize multi-path concurrent transmission. As shown in Figure 3 The method can include: S201, perform sharding processing on the received service data to obtain a plurality of sharded data.

[0060] In the embodiment of the present application, the service data is sent by the data source end to the sending end cloud host through the dedicated line network. The sending end cloud host performs sharding processing on the received service data to obtain a plurality of sharded data.

[0061] S202, start a plurality of containers; and bind an elastic public network IP to each container respectively; the elastic public network IP is allocated in response to a request for applying for an elastic public network IP.

[0062] In the embodiment of the present application, the Docker engine is also deployed on the cloud host, and the Docker container technology can be used to realize the demand for resource isolation. Docker realizes resource isolation through namespaces and control groups (cgroups). A new namespace is created to provide an independent running environment for the container, and the control group is allowed to limit the amount of resources that the container can use, such as CPU, memory, and disk input / output (Input / Output, IO), etc., to prevent the container from excessively consuming the host resources.

[0063] In the embodiment of the present application, at the network level, Docker creates and starts a plurality of containers, and Docker can bind each container to a different network card to realize network resource isolation. Each container on the sending end cloud host is configured with a separate network card for sending data to realize multi-path concurrent transmission. In this way, each container can independently bind an elastic public network IP, thereby bypassing the bandwidth limitation of a single public network IP and realizing more efficient data transmission. Therefore, multi-path concurrent transmission of service data can be realized through the binding of a plurality of elastic public network IPs and a plurality of containers.

[0064] S203, transmit the plurality of sharded data through the plurality of containers and using a target transmission protocol respectively.

[0065] In the embodiment of the present application, the plurality of sharded data is transmitted through the plurality of containers respectively, and is transmitted using the target transmission protocol in the public Internet.

[0066] Further, before transmitting the plurality of sharded data, a plurality of sequence numbers and a plurality of check values corresponding to the plurality of sharded data are transmitted respectively; the plurality of sequence numbers are used for data recombination of the plurality of sharded data, and the plurality of check values are used for data checking of the plurality of sharded data respectively.

[0067] It should be noted that each data fragment is assigned a sequence number and a check value. The check value can be a Message-Digest Algorithm 5 (MD5) checksum. Before transmitting multiple fragments, the sending cloud host first transmits multiple sequence numbers and multiple check values ​​corresponding to the multiple fragments to the receiving cloud host, allowing the receiving cloud host to have advance knowledge of the fragments to be received. When the fragments arrive at the receiving cloud host via multi-path parallel transmission, the receiving cloud host uses the multiple sequence numbers to reassemble the multiple fragments to restore them to their original form. The receiving cloud host also uses the multiple check values ​​to verify the corresponding fragments to ensure that the fragments have not been tampered with and remain intact during the multi-path parallel transmission process. Data reassembly can be performed after all fragments have passed verification or before verification, depending on the actual situation and is not specifically limited in this embodiment. When the receiving cloud host detects fragments that have failed verification or are missing, it can immediately notify the sending cloud host to retransmit the fragments.

[0068] It is understood that by sending the sequence number and checksum of the shard data in advance, the error handling process can be optimized, ensuring the efficiency and accuracy of data transmission. Even in the case of bandwidth limitation, high-speed and stable data transmission can be achieved.

[0069] Based on the above embodiment, the present application embodiment provides a cloud server 1. Figure 4 As shown, a cloud host 10 is deployed in the cloud server 1, and the cloud host 10 includes: An acquiring unit 100 is configured to acquire a data transmission quality parameter in a first transmission period, where the data transmission quality parameter includes a number of retransmissions and / or a transmission delay; A determination unit 101 is configured to determine whether to select a first transmission protocol as a target transmission protocol based on the data transmission quality parameter; The acquisition unit 100 is further configured to, if it is determined that the first transmission protocol is not selected as the target transmission protocol, acquire at least one of the following information: a transmission distance, a transmission bandwidth, whether the transmission link includes the first gateway, and whether the congestion control mechanism supports modification; The selection unit 102 is configured to select a transmission protocol from a second transmission protocol and a third transmission protocol as the target transmission protocol based on at least one of the transmission distance, the transmission bandwidth, whether the transmission link includes the first gateway, and whether the congestion control mechanism supports modification, wherein the target transmission protocol is used for data transmission in a transmission period after the first transmission period.

[0070] Optionally, the cloud host further includes: a determination unit; The determining unit is configured to determine a first score according to the data transmission quality parameter; the first score is proportional to the data transmission quality parameter. The determining unit 101 is further configured to determine that the first transmission protocol is selected as the target transmission protocol if the first score is greater than a first threshold value; and determine that the first transmission protocol is not selected as the target transmission protocol if the first score is not greater than the first threshold value.

[0071] Optionally, the selecting unit 102 is further configured to select the second transmission protocol as the target transmission protocol if the transmission bandwidth is greater than a second threshold value and the transmission distance is greater than a third threshold value, and / or the transmission link contains the first gateway, and / or the congestion control mechanism supports modification; and select the third transmission protocol as the target transmission protocol if the transmission bandwidth is not greater than the second threshold value or the transmission distance is not greater than the third threshold value, and / or the transmission link does not contain the first gateway, and / or the congestion control mechanism does not support modification.

[0072] Optionally, the cloud host further includes a fragmentation unit, a starting unit and a transmission unit. The fragmentation unit is configured to perform fragmentation processing on the received service data to obtain a plurality of fragmented data. The starting unit is configured to start a plurality of containers; and bind an elastic public network IP to each container respectively; the elastic public network IP is allocated in response to a request for applying an elastic public network IP. The transmission unit is configured to transmit the plurality of fragmented data respectively through the plurality of containers and using the target transmission protocol.

[0073] Optionally, the transmission unit is further configured to transmit a plurality of sequence numbers and a plurality of check values corresponding to the plurality of fragmented data respectively; the plurality of sequence numbers are used for data recombination of the plurality of fragmented data; and the plurality of check values are used for data checking of the plurality of fragmented data respectively.

[0074] Optionally, the cloud host is deployed using a cloud host image; and the cloud host image is configured with a service for executing the data transmission method.

[0075] Optionally, the first transmission protocol is a KCP protocol, the second transmission protocol is a UDT protocol, and the third transmission protocol is a TCP protocol.

[0076] The cloud server provided in the embodiment of the present application is deployed with a cloud host, the cloud host acquires a data transmission quality parameter in a first transmission period, the data transmission quality parameter includes a retransmission number and / or a transmission delay; according to the data transmission quality parameter, it is judged whether to select the first transmission protocol as a target transmission protocol; if it is judged that the first transmission protocol is not selected as the target transmission protocol, at least one of the following information is acquired: a transmission distance, a transmission bandwidth, whether the transmission link contains a first gateway, and whether a congestion control mechanism supports modification; according to at least one of the transmission distance, the transmission bandwidth, whether the transmission link contains the first gateway, and whether the congestion control mechanism supports modification, one transmission protocol is selected from a second transmission protocol and a third transmission protocol as the target transmission protocol, and the target transmission protocol is used for data transmission in a transmission period after the first transmission period. As can be seen, the cloud server provided in the embodiment can represent the network condition by the retransmission number and / or the transmission delay in the first transmission period, and then select the target transmission protocol used in the transmission period after the first transmission period based on the network condition, and further, when the first transmission protocol is not selected, the target transmission protocol can be further selected based on at least one of the transmission distance, the transmission bandwidth, whether the transmission link contains the first gateway, and whether the congestion control mechanism supports modification, which are related to the network transmission characteristics, so that the target transmission protocol used in the transmission period after the first transmission period can be dynamically adjusted based on different network transmission characteristics and network conditions to cope with the fluctuation of the network environment, thereby improving the stability of the bandwidth utilization and the data transmission rate.

[0077] Figure 5 The cloud server 1 provided in the embodiment of the present application has a component structure diagram, in actual application, based on the same disclosure concept of the above embodiment, as shown in the figure, Figure 5 The cloud server 1 of the embodiment includes a processor 11, a memory 12 and a communication bus 13.

[0078] In the process of the specific embodiment, the acquisition unit 100, the determination unit 101, the selection unit 102, the determining unit, the fragmentation unit, the starting unit and the transmission unit can be implemented by the processor 11 located on the cloud server 1. The processor 11 can be at least one of an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a CPU, a controller, a microcontroller, or a microprocessor. It can be understood that, for different devices, the electronic device used to implement the processor function can also be other devices, and the embodiment is not limited in this regard.

[0079] In the embodiment of the present application, the communication bus 13 is used to realize the connection and communication between the processor 11 and the memory 12. When the processor 11 executes the running program stored in the memory 12, the following data transmission method applied to the cloud host is realized: acquire a data transmission quality parameter in a first transmission period, the data transmission quality parameter including a retransmission number and / or a transmission delay; determine whether to select a first transmission protocol as a target transmission protocol according to the data transmission quality parameter; if it is determined not to select the first transmission protocol as the target transmission protocol, acquire at least one of a transmission distance, a transmission bandwidth, whether a first gateway is included in a transmission link, and whether a congestion control mechanism supports modification; and select a transmission protocol as the target transmission protocol from a second transmission protocol and a third transmission protocol according to at least one of the transmission distance, the transmission bandwidth, whether the first gateway is included in the transmission link, and whether the congestion control mechanism supports modification, the target transmission protocol being used for data transmission in a transmission period after the first transmission period.

[0080] Further, the processor 11 is further configured to determine a first score according to the data transmission quality parameter, the first score being proportional to the data transmission quality parameter; if the first score is greater than a first threshold, it is determined to select the first transmission protocol as the target transmission protocol; and if the first score is not greater than the first threshold, it is determined not to select the first transmission protocol as the target transmission protocol.

[0081] Furthermore, the above-mentioned processor 11 is also used to select the second transmission protocol as the target transmission protocol if the transmission bandwidth is greater than the second threshold and the transmission distance is greater than the third threshold, and / or the transmission link includes the first gateway, and / or the congestion control mechanism supports modification; if the transmission bandwidth is not greater than the second threshold or the transmission distance is not greater than the third threshold, and the transmission link does not include the first gateway, and the congestion control mechanism does not support modification, select the third transmission protocol as the target transmission protocol.

[0082] Furthermore, the above-mentioned processor 11 is also used to shard the received business data to obtain multiple shard data; start multiple containers; and bind an elastic public IP to each container; the elastic public IP is allocated in response to a request for an elastic public IP; and transmit the multiple shard data separately through the multiple containers and using the target transmission protocol.

[0083] Furthermore, the processor 11 is also used to transmit multiple sequence numbers and multiple check values ​​corresponding to multiple fragmented data respectively; the multiple sequence numbers are used to reorganize the multiple fragmented data, and the multiple check values ​​are used to check the multiple fragmented data respectively.

[0084] Furthermore, the cloud host is deployed using a cloud host image; the cloud host image is configured with a service for executing the data transmission method.

[0085] Furthermore, the first transmission protocol is the KCP protocol, the second transmission protocol is the UDT protocol, and the third transmission protocol is the TCP protocol.

[0086] An embodiment of the present application provides a storage medium having a computer program stored thereon. The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors. The computer program implements the data transmission method applied to the cloud host as described above.

[0087] Based on the above embodiments, an embodiment of the present application provides a computer program product, including a computer program, which can be executed by one or more processors, and the computer program implements the data transmission method applied to the cloud host as described above.

[0088] It should be noted that, in this text, the term "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, so that a process, method, article or apparatus that includes a list of elements not only includes those elements, but also includes other elements not expressly listed or inherent to such process, method, article or apparatus. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.

[0089] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be realized by means of software and the necessary general hardware platform, of course, they can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions for causing an image display device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present disclosure.

[0090] The above is only a preferred embodiment of the present application, and is not intended to limit the protection scope of the present application.

Claims

1. A data transmission method, characterized in that: Applied to a cloud host, the cloud host is deployed in a cloud server, and the method includes: Acquire a data transmission quality parameter in a first transmission period, where the data transmission quality parameter includes a number of retransmissions and / or a transmission delay; determining, based on the data transmission quality parameter, whether to select the first transmission protocol as the target transmission protocol; If it is determined that the first transmission protocol is not selected as the target transmission protocol, obtaining at least one of the following information: transmission distance, transmission bandwidth, whether the transmission link includes the first gateway, and whether the congestion control mechanism supports modification; Based on at least one of the transmission distance, the transmission bandwidth, whether the transmission link includes the first gateway, and whether the congestion control mechanism supports modification, a transmission protocol is selected from the second transmission protocol and the third transmission protocol as the target transmission protocol, and the target transmission protocol is used for data transmission in a transmission period after the first transmission period.

2. The method according to claim 1, characterized in that The determining, based on the data transmission quality parameter, whether to select the first transmission protocol as the target transmission protocol includes: determining a first score according to the data transmission quality parameter; wherein the first score is proportional to the data transmission quality parameter; If the first score is greater than a first threshold, determining to select the first transmission protocol as the target transmission protocol; If the first score is not greater than the first threshold, it is determined that the first transmission protocol is not selected as the target transmission protocol.

3. The method according to claim 1, characterized in that The selecting a transmission protocol from a second transmission protocol and a third transmission protocol as the target transmission protocol according to at least one of the transmission distance, the transmission bandwidth, whether the transmission link includes the first gateway, and whether the congestion control mechanism supports modification includes: If the transmission bandwidth is greater than a second threshold and the transmission distance is greater than a third threshold, and / or the transmission link includes the first gateway, and / or the congestion control mechanism supports modification, selecting the second transmission protocol as the target transmission protocol; If the transmission bandwidth is not greater than the second threshold or the transmission distance is not greater than the third threshold, the transmission link does not include the first gateway, and the congestion control mechanism does not support modification, the third transmission protocol is selected as the target transmission protocol.

4. The method according to claim 1, wherein The method further comprises: Slice the received business data to obtain multiple slicing data; Start multiple containers; and bind an elastic public Internet Protocol (EP) IP address to each container; the elastic public IP address is allocated in response to a request for an elastic public IP address; The plurality of slice data are respectively transmitted through the plurality of containers and using the target transmission protocol.

5. The method according to claim 4, characterized in that Before transmitting the plurality of fragmented data respectively through the plurality of containers and using the target transport protocol, the method further includes: Transmitting multiple sequence numbers and multiple check values ​​corresponding to multiple fragmented data respectively; the multiple sequence numbers are used to reorganize the multiple fragmented data, and the multiple check values ​​are used to check the multiple fragmented data respectively.

6. The method according to any one of claims 1 to 5, characterized in that The cloud host is deployed using a cloud host image; the cloud host image is configured with a service for executing the data transmission method.

7. The method according to claim 1, characterized in that The first transmission protocol is the Fast and Reliable Transport Protocol (KCP), the second transmission protocol is the User Datagram Protocol (UDT), and the third transmission protocol is the Transmission Control Protocol (TCP).

8. A cloud server, characterized in that: The cloud server includes: a processor, a memory and a communication bus; when the processor executes the running program stored in the memory, the data transmission method applied to the cloud host according to any one of claims 1 to 7 is implemented.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data transmission method applied to the cloud host according to any one of claims 1 to 7 is implemented.

10. A computer program product comprising a computer program, characterized in that When executed by a processor, the computer program implements the data transmission method applied to a cloud host according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Transmission system underlying transmission protocol selection method

    CN110049058A

  • Data transmission method and device

    CN113973124A

  • Data transmission method and device based on cloud platform

    CN114500528A

  • Internet of Things data information transmission method, switch and transmission system

    CN120201032A

Cited By

  • Data transmission method, device and system, electronic equipment and storage medium

    CN121462675A