CN114500528A - Data transmission method and device based on cloud platform - Google Patents
Data transmission method and device based on cloud platform Download PDFInfo
- Publication number
- CN114500528A CN114500528A CN202111630644.5A CN202111630644A CN114500528A CN 114500528 A CN114500528 A CN 114500528A CN 202111630644 A CN202111630644 A CN 202111630644A CN 114500528 A CN114500528 A CN 114500528A
- Authority
- CN
- China
- Prior art keywords
- data
- transmitted
- network quality
- cloud platform
- service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 159
- 238000000034 method Methods 0.000 title claims abstract description 60
- 238000012545 processing Methods 0.000 claims description 42
- 238000004891 communication Methods 0.000 claims description 33
- 230000007246 mechanism Effects 0.000 claims description 23
- 238000004590 computer program Methods 0.000 claims description 14
- 230000008569 process Effects 0.000 description 23
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 8
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000012546 transfer Methods 0.000 description 5
- 230000001133 acceleration Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000012790 confirmation Methods 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000003062 neural network model Methods 0.000 description 2
- 230000004224 protection Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000001356 surgical procedure Methods 0.000 description 2
- 238000012549 training Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/1607—Details of the supervisory signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5003—Managing SLA; Interaction between SLA and QoS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种基于云平台的数据传输方法及装置。The present application relates to the field of communication technologies, and in particular, to a method and device for data transmission based on a cloud platform.
背景技术Background technique
随着云平台技术的快速发展,越来越多的互联网企业将资源进行整合,以云平台的形式提供给广大的用户使用。云平台的核心概念是以互联网为中心,让每一个使用互联网的人都可以使用网络上庞大的计算资源和数据。因此,使用云平台对于网络的传输质量有很高的要求。目前常用的网络传输协议主要是采用稳定的传输控制协议(TransmissionControl Protocol,TCP)来进行数据传输。TCP协议的稳定性主要体现在:在传输数据之前,会通过三次握手来建立连接。在传输数据过程中,也会有确认、重传、拥塞控制等机制来保证数据传输。在传输结束之后,断开连接以节约系统资源。With the rapid development of cloud platform technology, more and more Internet companies integrate resources and provide them to the majority of users in the form of cloud platforms. The core concept of the cloud platform is the Internet as the center, so that everyone who uses the Internet can use the huge computing resources and data on the network. Therefore, the use of cloud platforms has high requirements on the transmission quality of the network. Currently, a commonly used network transmission protocol mainly adopts a stable Transmission Control Protocol (TCP) for data transmission. The stability of the TCP protocol is mainly reflected in: Before transmitting data, a connection is established through a three-way handshake. In the process of data transmission, there will also be acknowledgment, retransmission, congestion control and other mechanisms to ensure data transmission. After the transfer is complete, the connection is disconnected to save system resources.
但是,由于上述传输机制需要消耗一些时间,并且在每一台使用云平台技术的设备上都需要维护传输连接,每一个传输连接都需要占用系统的资源,所以在采用TCP协议进行云平台的数据传输会存在延时高、抖动高以及丢包率高等问题,尤其是在网络质量差的情况下,可能会导致出现操作卡顿或者画面模糊等问题导致用户的使用体验较差。However, since the above transmission mechanism takes some time, and each device using cloud platform technology needs to maintain transmission connections, each transmission connection needs to occupy system resources, so the TCP protocol is used for cloud platform data. Transmission will have problems such as high delay, high jitter, and high packet loss rate, especially in the case of poor network quality, which may cause problems such as operation freezes or blurred images, resulting in poor user experience.
发明内容SUMMARY OF THE INVENTION
本申请示例性的实施方式中提供一种基于云平台的数据传输方法及装置,用以提升数据传输的效率。An exemplary embodiment of the present application provides a data transmission method and apparatus based on a cloud platform, so as to improve the efficiency of data transmission.
第一方面,本申请实施例提供了一种基于云平台的数据传输方法,包括:In a first aspect, an embodiment of the present application provides a data transmission method based on a cloud platform, including:
获取预先存储的至少两个传输协议分别对应的网络质量要求;Obtain the network quality requirements corresponding to at least two transmission protocols stored in advance;
确定当前的网络质量符合的网络质量要求中,最高的网络质量要求所对应的传输协议;Determine the transmission protocol corresponding to the highest network quality requirement among the network quality requirements that the current network quality meets;
采用确定的传输协议向云平台服务器发送待传输数据。The data to be transmitted is sent to the cloud platform server using a certain transmission protocol.
基于上述方案,终端设备不再采用固定的传输协议进行与云平台之间的数据传输,而是预先存储多个传输协议,以及多个传输协议分别对应的网络质量要求。再进一步结合当前的网络质量,确定采用哪一种传输协议进行数据传输,从而在尽量不降低数据传输的稳定性的情况下提升数据传输效率,避免出现画面卡顿等问题,提升用户的使用体验。Based on the above solution, the terminal device no longer uses a fixed transmission protocol for data transmission with the cloud platform, but pre-stores multiple transmission protocols and network quality requirements corresponding to the multiple transmission protocols. Further combine the current network quality to determine which transmission protocol to use for data transmission, so as to improve data transmission efficiency without reducing the stability of data transmission as much as possible, avoid problems such as screen freezes, and improve user experience. .
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
获取当前进行的业务的相关参数;所述相关参数包括业务接入成功率、业务接入时延、业务下载速率、业务下载时延、业务上传速率、业务上传时延、信号质量或者业务中断率中的一项或多项;Obtain the relevant parameters of the current service; the relevant parameters include service access success rate, service access delay, service download rate, service download delay, service upload rate, service upload delay, signal quality or service interruption rate one or more of;
根据所述相关参数确定所述当前的网络质量。The current network quality is determined according to the relevant parameters.
在一些实施例中,所述采用确定的传输协议向所述云平台服务器发送待传输数据,包括:In some embodiments, the sending the data to be transmitted to the cloud platform server using a certain transmission protocol includes:
确定所述待传输数据是否为已发送数据;determining whether the data to be transmitted is sent data;
若确定所述待传输数据不是已发送数据,则采用所述确定的传输协议向所述云平台服务器发送所述待传输数据;If it is determined that the data to be transmitted is not the sent data, send the data to be transmitted to the cloud platform server using the determined transmission protocol;
若确定所述待传输数据为已发送数据,则根据所述确定的传输协议对应的重传机制,向所述云平台服务器发送所述待传输数据。If it is determined that the data to be transmitted is sent data, the data to be transmitted is sent to the cloud platform server according to the retransmission mechanism corresponding to the determined transmission protocol.
在一些实施例中,所述重传机制包括重传时间;所述根据所述确定的传输协议对应的重传机制,向所述云平台服务器发送所述待传输数据,包括:In some embodiments, the retransmission mechanism includes retransmission time; the sending the data to be transmitted to the cloud platform server according to the retransmission mechanism corresponding to the determined transmission protocol includes:
在确定与上一次发送所述待传输数据的时间间隔达到所述确定的传输协议对应的重传时间时,向所述云平台服务器发送所述待传输数据。Send the data to be transmitted to the cloud platform server when it is determined that the time interval for sending the data to be transmitted last time reaches the retransmission time corresponding to the determined transmission protocol.
在一些实施例中,在所述至少两个传输协议中,网络质量要求高的传输协议对应的重传时间,大于网络质量要求低的传输协议对应的重传时间。In some embodiments, among the at least two transmission protocols, the retransmission time corresponding to the transmission protocol requiring high network quality is greater than the retransmission time corresponding to the transmission protocol requiring low network quality.
第二方面,本申请实施例提供了一种基于云平台的数据传输装置,包括:In a second aspect, an embodiment of the present application provides a data transmission device based on a cloud platform, including:
处理单元,用于获取预先存储的至少两个传输协议分别对应的网络质量要求;a processing unit, configured to obtain network quality requirements corresponding to at least two pre-stored transmission protocols respectively;
所述处理单元,还用于确定当前的网络质量符合的网络质量要求中,最高的网络质量要求所对应的传输协议;The processing unit is further configured to determine the transmission protocol corresponding to the highest network quality requirement among the network quality requirements that the current network quality meets;
通信单元,用于采用确定的传输协议向云平台服务器发送待传输数据。The communication unit is used for sending the data to be transmitted to the cloud platform server by adopting the determined transmission protocol.
在一些实施例中,所述处理单元,还用于:In some embodiments, the processing unit is further configured to:
获取当前进行的业务的相关参数;所述相关参数包括业务接入成功率、业务接入时延、业务下载速率、业务下载时延、业务上传速率、业务上传时延、信号质量或者业务中断率中的一项或多项;Obtain the relevant parameters of the current service; the relevant parameters include service access success rate, service access delay, service download rate, service download delay, service upload rate, service upload delay, signal quality or service interruption rate one or more of;
根据所述相关参数确定所述当前的网络质量。The current network quality is determined according to the relevant parameters.
在一些实施例中,所述处理单元,还用于:In some embodiments, the processing unit is further configured to:
确定所述待传输数据是否为已发送数据;determining whether the data to be transmitted is sent data;
在确定所述待传输数据不是已发送数据时,指示所述通信单元采用所述确定的传输协议向所述云平台服务器发送所述待传输数据;When it is determined that the data to be transmitted is not sent data, instructing the communication unit to send the data to be transmitted to the cloud platform server by using the determined transmission protocol;
在确定所述待传输数据为已发送数据时,指示所述通信单元根据所述确定的传输协议对应的重传机制,向所述云平台服务器发送所述待传输数据。When it is determined that the data to be transmitted is sent data, the communication unit is instructed to send the data to be transmitted to the cloud platform server according to the retransmission mechanism corresponding to the determined transmission protocol.
在一些实施例中,所述重传机制包括重传时间;所述处理单元,具体用于:In some embodiments, the retransmission mechanism includes retransmission time; the processing unit is specifically used for:
在确定与上一次发送所述待传输数据的时间间隔达到所述确定的传输协议对应的重传时间时,指示所述通信单元向所述云平台服务器发送所述待传输数据。Instructing the communication unit to send the data to be transmitted to the cloud platform server when it is determined that the time interval for sending the data to be transmitted last time reaches the retransmission time corresponding to the determined transmission protocol.
在一些实施例中,在所述至少两个传输协议中,网络质量要求高的传输协议对应的重传时间,大于网络质量要求低的传输协议对应的重传时间。In some embodiments, among the at least two transmission protocols, the retransmission time corresponding to the transmission protocol requiring high network quality is greater than the retransmission time corresponding to the transmission protocol requiring low network quality.
第三方面,本申请实施例提供了一种电子设备,所述电子设备包括控制器和存储器。存储器用于存储计算机执行指令,控制器执行存储器中的计算机执行指令以利用控制器中的硬件资源执行第一方面任一种可能实现的方法的操作步骤。In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a controller and a memory. The memory is used to store the computer-executed instructions, and the controller executes the computer-executed instructions in the memory to use hardware resources in the controller to execute the operation steps of any method that may be implemented in the first aspect.
第四方面,本申请提供一种计算机可读存储介质,计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面的方法。In a fourth aspect, the present application provides a computer-readable storage medium. The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to execute the methods of the above aspects.
第五方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品包括计算机程序代码,所述计算机程序代码被计算机运行时,使得所述计算机执行上述各方面的方法。In a fifth aspect, an embodiment of the present application provides a computer program product, where the computer program product includes computer program code, and when the computer program code is run by a computer, the computer executes the methods of the above aspects.
另外,第二方面至第五方面的有益效果可以参见如第一方面所述的有益效果,此处不再赘述。In addition, for the beneficial effects of the second aspect to the fifth aspect, reference may be made to the beneficial effects described in the first aspect, which will not be repeated here.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the drawings in the following description are only for the present application. some examples.
图1为本申请实施例提供的一种通信系统的架构示意图;FIG. 1 is a schematic diagram of the architecture of a communication system provided by an embodiment of the present application;
图2为本申请实施例提供的一种基于云平台的数据传输方法流程图;2 is a flowchart of a cloud platform-based data transmission method provided by an embodiment of the present application;
图3为本申请实施例提供的另一种通信系统的架构示意图;FIG. 3 is a schematic diagram of the architecture of another communication system provided by an embodiment of the present application;
图4为本申请实施例提供的另一种基于云平台的数据传输方法流程图;4 is a flowchart of another method for data transmission based on a cloud platform provided by an embodiment of the present application;
图5为本申请实施例提供的一种基于云平台的数据传输装置的结构示意图;5 is a schematic structural diagram of a data transmission device based on a cloud platform provided by an embodiment of the present application;
图6为本申请实施例提供的一种电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请技术方案的一部分实施例,而不是全部的实施例。基于本申请文件中记载的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请技术方案保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are of the present application. Some embodiments of the technical solution, but not all embodiments. All other embodiments obtained by persons of ordinary skill in the art without creative work based on the embodiments recorded in the present application documents fall within the protection scope of the technical solutions of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”和“第二”是用于区别不同对象,而非用于描述特定顺序。此外,术语“包括”以及它们任何变形,意图在于覆盖不排他的保护。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。本申请中的“多个”可以表示至少两个,例如可以是两个、三个或者更多个,本申请实施例不做限制。The terms "first" and "second" in the description and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the term "comprising" and any variations thereof are intended to cover non-exclusive protections. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices. The "plurality" in the present application may represent at least two, for example, two, three or more, which is not limited in this embodiment of the present application.
另外,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,在不做特别说明的情况下,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, There are three cases of B alone. In addition, the character "/" in this text, unless otherwise specified, generally indicates that the related objects before and after are an "or" relationship.
为了便于理解本申请提出的方案,首先对本申请涉及的网络架构进行介绍。参见图1,为本申请实施例提供的一种通信系统架构图。包括终端设备和云平台服务器。其中,终端设备还可以理解为云平台的客户端。In order to facilitate understanding of the solution proposed in this application, the network architecture involved in this application is first introduced. Referring to FIG. 1 , an architecture diagram of a communication system provided by an embodiment of the present application. Including terminal equipment and cloud platform server. The terminal device may also be understood as a client of the cloud platform.
图1示出的终端设备,又称之为移动台(Mobile Station,MS)、移动终端(MobileTerminal,MT)等,是一种向用户提供语音和/或数据连通性的设备,例如,具有无线连接功能的手持式设备、车载设备等。目前,一些终端的举例为:手机(mobile phone)、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(Mobile Internet Device,MID)、可穿戴设备,虚拟现实(Virtual Reality,VR)设备、增强现实(Augmented Reality,AR)设备、工业控制(Industrial Control)中的无线终端、无人驾驶(self driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等。The terminal device shown in FIG. 1, also known as a mobile station (Mobile Station, MS), a mobile terminal (Mobile Terminal, MT), etc., is a device that provides voice and/or data connectivity to users, for example, has wireless Connectivity-enabled handheld devices, in-vehicle devices, etc. At present, some examples of terminals are: mobile phone (mobile phone), tablet computer, notebook computer, palmtop computer, mobile Internet device (Mobile Internet Device, MID), wearable device, virtual reality (Virtual Reality, VR) device, augmented reality (Augmented Reality, AR) equipment, wireless terminals in industrial control (Industrial Control), wireless terminals in self-driving (self driving), wireless terminals in remote medical surgery (remote medical surgery), smart grid (smart grid) wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, etc.
图1示出的云平台服务器的功能可以由一个服务器来实现,也可以由服务器集群来实现,本申请对此不做限定。云平台服务器中可以包括处理器、硬盘、内存、系统总线等,用以接收来自终端设备的报文,并对接收到的报文进行相应处理。The functions of the cloud platform server shown in FIG. 1 may be implemented by one server or by a server cluster, which is not limited in this application. The cloud platform server may include a processor, a hard disk, a memory, a system bus, etc., to receive messages from terminal devices, and to process the received messages accordingly.
可选地,终端设备与云平台服务器之间的数据传输可以采用传输控制协议(Transmission Control Protocol,TCP)、用户数据报协议(User Datagram Protocol,UDP)或者文件传输协议(File Transfer Protocol,FTP)等协议。需要说明的是,上述图1仅作为一种示例,本申请实施例对于通信系统中包括的终端设备和云平台服务器的数量不作具体限定。Optionally, the data transmission between the terminal device and the cloud platform server may adopt a Transmission Control Protocol (Transmission Control Protocol, TCP), a User Datagram Protocol (User Datagram Protocol, UDP), or a File Transfer Protocol (File Transfer Protocol, FTP) etc. agreement. It should be noted that the above FIG. 1 is only an example, and the embodiments of the present application do not specifically limit the number of terminal devices and cloud platform servers included in the communication system.
相关技术中,为了保证数据传输的稳定性和成功率,在使用云平台时,云平台服务器与终端设备之间一般采用TCP协议进行数据传输。具体地,在进行数据传输之前,通过三次握手建立通信连接。在进行数据传输过程中,TCP传输协议还包括确认、窗口、重传和拥塞控制等机制来保证数据传输的成功率。在数据传输完成之后,还可以断开连接以节约传输资源。但是,也正是由于上述各个机制,导致采用TCP协议进行数据传输会出现较高的传输时延,从而出现操作卡顿以及画面模糊等问题影响用户使用体验。In the related art, in order to ensure the stability and success rate of data transmission, when the cloud platform is used, the TCP protocol is generally used for data transmission between the cloud platform server and the terminal device. Specifically, before data transmission is performed, a communication connection is established through a three-way handshake. In the process of data transmission, the TCP transmission protocol also includes mechanisms such as acknowledgment, window, retransmission and congestion control to ensure the success rate of data transmission. After the data transfer is completed, the connection can also be disconnected to save transfer resources. However, it is precisely because of the above-mentioned mechanisms that the use of the TCP protocol for data transmission will cause a relatively high transmission delay, resulting in problems such as operation freezes and blurred images, which affect the user experience.
有鉴于此,本申请实施例提供了一种基于云平台的数据传输方法及装置,通过结合网络质量来确定进行传输所采用的传输协议,从而提升数据传输的效率,避免出现操作卡顿或者画面模糊等影响用户使用体验的问题。In view of this, the embodiments of the present application provide a method and device for data transmission based on a cloud platform, which determines the transmission protocol used for transmission by combining network quality, thereby improving the efficiency of data transmission and avoiding operation freezes or images. Blur and other issues that affect the user experience.
为了便于理解本申请实施例提供的基于云平台的数据传输方法,参见图2,为本申请实施例提供的一种基于云平台的数据传输方法流程图,具体包括:In order to facilitate the understanding of the data transmission method based on the cloud platform provided by the embodiment of the present application, referring to FIG. 2 , a flowchart of the data transmission method based on the cloud platform provided by the embodiment of the present application specifically includes:
201,终端设备获取预先存储的至少两个传输协议分别对应的网络质量要求。201. The terminal device acquires network quality requirements corresponding to at least two pre-stored transmission protocols respectively.
可选地,至少两个传输协议可以是预先配置在终端设备中的,每个传输协议可以对应一种网络质量要求。例如,以TCP协议和UDP协议为例,由于TCP协议对于网络的稳定性要求较高,所以可以为TCP协议配置较高的网络质量要求。由于UDP协议不需要建立通信连接,直接传输数据,对于网络要求较低,所以可以为UDP协议配置较低的网络质量要求。Optionally, at least two transmission protocols may be pre-configured in the terminal device, and each transmission protocol may correspond to a network quality requirement. For example, taking the TCP protocol and the UDP protocol as examples, since the TCP protocol has higher requirements on network stability, a higher network quality requirement can be configured for the TCP protocol. Since the UDP protocol does not need to establish a communication connection and directly transmits data, it has lower network requirements, so a lower network quality requirement can be configured for the UDP protocol.
202,确定当前的网络质量符合的网络质量要求中最高的网络质量要求对应的传输协议。202. Determine the transmission protocol corresponding to the highest network quality requirement among the network quality requirements that the current network quality conforms to.
可选地,网络质量可以是根据终端设备当前进行的各项业的相关参数确定的。例如,相关参数可以包括业务接入成功率、业务接入时延、业务下载速率、业务下载时延、业务上传速率、业务上传时延、信号质量或者业务中断率等参数。终端设备可以根据上述各个参数确定当前的网络质量,并可以确定当前的网络质量符合的预先存储的网络质量要求中,最高的网络质量要求。Optionally, the network quality may be determined according to relevant parameters of various businesses currently performed by the terminal device. For example, the relevant parameters may include parameters such as service access success rate, service access delay, service download rate, service download delay, service upload rate, service upload delay, signal quality or service interruption rate. The terminal device may determine the current network quality according to the above parameters, and may determine the highest network quality requirement among the pre-stored network quality requirements that the current network quality meets.
作为一种举例,设当前的网络质量满足终端设备中存储的多个网络质量要求中的网络质量要求A、网络质量要求B和网络质量要求C。并且,网络质量要求A是这三个网络质量要求中最高的要求。则终端设备可以获取网络质量要求A对应的传输协议。As an example, it is assumed that the current network quality satisfies network quality requirement A, network quality requirement B, and network quality requirement C among the multiple network quality requirements stored in the terminal device. And, the network quality requirement A is the highest requirement among the three network quality requirements. Then the terminal device can obtain the transmission protocol corresponding to the network quality requirement A.
203,终端设备采用确定的传输协议向云平台服务器发送待传输数据。203, the terminal device sends the data to be transmitted to the cloud platform server by using the determined transmission protocol.
具体地,终端设备可以采用确定的传输协议对待传输数据进行处理,例如采用确定的传输协议将待传输数据进行打包、封装、加密以及添加相应的报文头信息。并将处理之后待传输数据发送至云平台服务器。Specifically, the terminal device may use a certain transmission protocol to process the data to be transmitted, for example, use a certain transmission protocol to package, encapsulate, encrypt, and add corresponding header information to the data to be transmitted. And send the data to be transmitted after processing to the cloud platform server.
基于上述方案,终端设备不再采用固定的传输协议进行与云平台之间的数据传输,而是预先存储多个传输协议,以及多个传输协议分别对应的网络质量要求。再进一步结合当前的网络质量,确定采用哪一种传输协议进行数据传输,从而在尽量不降低数据传输的稳定性的情况下提升数据传输效率,避免出现画面卡顿等问题,提升用户的使用体验。Based on the above solution, the terminal device no longer uses a fixed transmission protocol for data transmission with the cloud platform, but pre-stores multiple transmission protocols and network quality requirements corresponding to the multiple transmission protocols. Further combine the current network quality to determine which transmission protocol to use for data transmission, so as to improve data transmission efficiency without reducing the stability of data transmission as much as possible, avoid problems such as screen freezes, and improve user experience. .
需要说明的是,本申请对于终端设备中预先存储的传输协议不作具体限定。可选地,可以将稳定性高、传输机制多且传输耗时长的传输协议配置较高的网络质量要求。即,在网络质量高的情况下,采用稳定性较高的传输协议。可以将稳定性较低的传输协议配置较低的网络质量要求。即,在网络质量低的情况下,采用稳定性较低的传输协议,保证低传输时延。It should be noted that this application does not specifically limit the transmission protocol pre-stored in the terminal device. Optionally, a transmission protocol with high stability, many transmission mechanisms, and long transmission time may be configured with higher network quality requirements. That is, when the network quality is high, a transmission protocol with high stability is adopted. Less stable transport protocols can be configured with lower network quality requirements. That is, in the case of low network quality, a transmission protocol with low stability is adopted to ensure low transmission delay.
为了便于描述,下面结合TCP协议和UDP协议进行具体说明。需要说明的是,本申请对于传输协议不做限定,还可以采用其他的传输协议,在这里为了便于描述,仅以TCP协议和UDP协议为例进行介绍。TCP协议包括建立传输连接、各项保障机制以及在传输完成后断开传输连接的过程,所以采用TCP协议进行数据传输可以提升数据传输的稳定性和成功率。但是由于各项机制耗时较长,所以导致TCP传输协议进行数据传输时会存在时延高的问题,尤其在网络质量低的情况下,这种问题更加严重。UDP协议不需要建立传输连接,可以直接进行数据传输,耗时较少,但是稳定性较差。For the convenience of description, a specific description is given below in conjunction with the TCP protocol and the UDP protocol. It should be noted that this application does not limit the transmission protocol, and other transmission protocols may also be used. For the convenience of description, only the TCP protocol and the UDP protocol are used as examples for introduction. The TCP protocol includes the process of establishing a transmission connection, various guarantee mechanisms, and disconnecting the transmission connection after the transmission is completed. Therefore, using the TCP protocol for data transmission can improve the stability and success rate of data transmission. However, since each mechanism takes a long time, there is a problem of high delay when the TCP transmission protocol performs data transmission, especially in the case of low network quality, this problem is more serious. The UDP protocol does not need to establish a transmission connection, and can directly transmit data, which takes less time, but has poor stability.
基于此,本申请实施例提出了,在网络质量高的场景中,采用TCP传输协议进行数据传输。在网络质量较低的情况下,采用UDP传输协议进行数据传输。为了方便理解,首先对TCP协议和UDP协议传输数据的过程进行简单介绍。Based on this, the embodiment of the present application proposes to use the TCP transmission protocol for data transmission in a scenario with high network quality. In the case of low network quality, the UDP transmission protocol is used for data transmission. In order to facilitate understanding, the process of data transmission between the TCP protocol and the UDP protocol is briefly introduced first.
首先,对于TCP协议传输数据的过程进行介绍:First, the process of transmitting data with the TCP protocol is introduced:
步骤一:通过三次握手建立TCP通信连接。Step 1: Establish a TCP communication connection through a three-way handshake.
第一次握手,终端设备向云平台服务器发送连接请求报文。报文中可以包括终端设备的数据通信初始序号。请求发送后,终端设备可以进入SYN-SENT状态。For the first handshake, the terminal device sends a connection request message to the cloud platform server. The message may include the data communication initial sequence number of the terminal device. After the request is sent, the terminal device can enter the SYN-SENT state.
第二次握手,云平台服务器接收到连接请求,向终端设备返回应答信息。应答信息中包括云平台服务器的数据通信初始序号,应答信息发送完成后,云平台服务器进入SYN-RECEIVED状态。In the second handshake, the cloud platform server receives the connection request and returns the response information to the terminal device. The response information includes the initial sequence number of the cloud platform server for data communication. After the response information is sent, the cloud platform server enters the SYN-RECEIVED state.
第三次握手,终端设备接收应答信息,向云平台服务器返回确认报文。终端设备发送确认报文后进入ESTABLISHED状态,云平台服务器接收到确认报文后也进入ESTABLISHED状态。至此,TCP通信连接建立成功。In the third handshake, the terminal device receives the response information and returns a confirmation message to the cloud platform server. The terminal device enters the ESTABLISHED state after sending the confirmation message, and the cloud platform server also enters the ESTABLISHED state after receiving the confirmation message. So far, the TCP communication connection is established successfully.
步骤二,采用TCP协议对待传输数据进行处理以及传输待传输数据。Step 2, using the TCP protocol to process the data to be transmitted and transmit the data to be transmitted.
可选地,可以采用TCP协议将待传输数据进行封装、加密、压缩以及添加报文头。并将处理后的待传输数据发送至云平台服务器。在传输过程中,采用确认、窗口、重传以及拥塞控制等机制来保证数据传输的成功率。Optionally, the data to be transmitted may be encapsulated, encrypted, compressed, and a packet header added by using the TCP protocol. And send the processed data to be transmitted to the cloud platform server. In the transmission process, mechanisms such as acknowledgment, window, retransmission, and congestion control are used to ensure the success rate of data transmission.
步骤三,传输完成后,断开TCP通信连接。Step 3: After the transmission is completed, disconnect the TCP communication connection.
可选地,可以通过四次握手来断开TCP通信连接。Optionally, the TCP communication connection can be disconnected through a four-way handshake.
第一次握手,终端设备在数据传输完成后,向云平台服务器发送连接释放请求。For the first handshake, the terminal device sends a connection release request to the cloud platform server after the data transmission is completed.
第二次握手,云平台服务器接收到释放连接请求,通知应用层释放TCP通信连接。并向终端设备返回确认字符(Acknowledgement Character,ACK)反馈包,以指示TCP通信连接已经释放,不再接收来自终端设备的数据包。云平台服务器可以在返回ACK反馈包之后进入CLOSE_WAIT状态。In the second handshake, the cloud platform server receives the connection release request and notifies the application layer to release the TCP communication connection. And return an acknowledgement character (Acknowledgement Character, ACK) feedback packet to the terminal device to indicate that the TCP communication connection has been released and no longer receive data packets from the terminal device. The cloud platform server can enter the CLOSE_WAIT state after returning the ACK feedback packet.
第三次握手,如果此时云平台服务器还存在需要向终端设备发送的数据,则继续进行数据传输,直至数据传输完成后,云平台服务器进入LAST-ACK状态。In the third handshake, if the cloud platform server still has data to be sent to the terminal device at this time, the data transmission will continue until the data transmission is completed, and the cloud platform server will enter the LAST-ACK state.
第四次握手,终端设备在发送连接释放请求之后的设定时长内,未接收到来自云平台服务器的数据,则进入CLOSED状态。至此,完成断开TCP通信连接。In the fourth handshake, the terminal device enters the CLOSED state if it does not receive data from the cloud platform server within the set time period after sending the connection release request. At this point, the disconnection of the TCP communication connection is completed.
下面,对UDP协议传输数据的过程进行介绍:Next, the process of UDP protocol data transmission is introduced:
终端设备在采用UDP协议进行数据传输时,不需要建立通信连接,只需要采用UDP协议将待传输数据进行处理,可以将处理后的待传输数据直接发送至云平台服务器。When the terminal device uses the UDP protocol for data transmission, it does not need to establish a communication connection, but only needs to use the UDP protocol to process the data to be transmitted, and the processed data to be transmitted can be directly sent to the cloud platform server.
一般情况下,在采用UDP协议对待传输数据进行处理时,可以给待传输数据添加一个UDP报文头即可。但是这种发送数据的稳定性和成功率都比较低。为了解决这类问题,本申请实施例提出了在采用UDP协议进行数据传输时,加入超时判断以及快速重传机制,以保证数据传输的成功率。可选地,可以为UDP协议配置重传机制,其中可以包括重传时间。并在传输数据过程中根据该重传时间进行红素将对重传,以提升数据传输的可靠性。In general, when the UDP protocol is used to process the data to be transmitted, a UDP header can be added to the data to be transmitted. However, the stability and success rate of this kind of sending data are relatively low. In order to solve such problems, the embodiments of the present application propose to add timeout judgment and fast retransmission mechanisms when using the UDP protocol for data transmission, so as to ensure the success rate of data transmission. Optionally, a retransmission mechanism may be configured for the UDP protocol, which may include the retransmission time. In the process of data transmission, the red pair is retransmitted according to the retransmission time, so as to improve the reliability of data transmission.
在一些实施例中,终端设备在采用UDP传输协议继续进行数据传输时,可以首先判断待传输数据是否为已经发送过的数据。若待传输数据不是已经发送过的数据,则直接采用UDP协议将待传输数据进行处理,并将处理后的待传输数据发送至云平台的服务器。若待传输数据为已经发送过的数据,则可以采用为UDP协议配置的重传机制对待传输数据进行重传。作为一种可选的方式,终端设备可以判断当前时间与上一次发送该待传输数据的时间的时间间隔,是否达到了为UDP协议配置的重传时间,若达到了,则将待传输数据进行再次传输。若没有达到,则等待至重传时间再进行数据的重传。In some embodiments, when the terminal device continues data transmission using the UDP transmission protocol, it may first determine whether the data to be transmitted is data that has already been sent. If the data to be transmitted is not the data that has already been sent, the UDP protocol is directly used to process the data to be transmitted, and the processed data to be transmitted is sent to the server of the cloud platform. If the data to be transmitted is already sent data, the retransmission mechanism configured for the UDP protocol can be used to retransmit the data to be transmitted. As an optional method, the terminal device can determine whether the time interval between the current time and the time when the data to be transmitted last time has reached the retransmission time configured for the UDP protocol, and if so, the data to be transmitted will be processed. transmit again. If not, wait until the retransmission time before retransmitting the data.
可选地,本申请实施例还提出了,为UDP协议配置的重传时间可以小于为TCP协议配置的重传时间。例如,在自动重传请求(Automatic Repeat-reQuest,ARQ)协议中,规定TCP的重传时间为超时重传机制(Retransmission Timeout,RTO)*2的时间,也就是说,在距离上一次传输某一个数据达到RTO*2的时间时,依然未接收到来自对端的ACK包,则可以重新传输该数据。本申请实施例提出了可以将UDP协议配置的重传时间配置为RTO*1.5,或者还可以设置为更小,本申请对此不作具体限定。并且,本申请实施例还提出了,在发生连续丢包的请款修改,可以根据重传次数减少重传时间,以解决在网络拥塞的情况下数据传输较慢的问题,在保证可靠性的情况下提升数据传输效率。Optionally, the embodiment of the present application further proposes that the retransmission time configured for the UDP protocol may be shorter than the retransmission time configured for the TCP protocol. For example, in the Automatic Repeat-reQuest (ARQ) protocol, the retransmission time of TCP is defined as the time of the Retransmission Timeout (RTO)*2, that is, a certain distance from the last transmission. When a data reaches the RTO*2 time, and still does not receive an ACK packet from the opposite end, the data can be retransmitted. The embodiment of the present application proposes that the retransmission time configured by the UDP protocol may be configured to be RTO*1.5, or may be set to a smaller value, which is not specifically limited in the present application. In addition, the embodiment of the present application also proposes that in the case of continuous packet loss, the retransmission time can be reduced according to the number of retransmissions, so as to solve the problem of slow data transmission in the case of network congestion. improve data transmission efficiency.
在一些实施例中,TCP协议包括的重传机制中,包括了在发生丢包现象时,会将序列号最小的数据包之后的数据包全部重新传输。本申请实施例提出了在采用UDP协议进行数据重传时,可以仅传输丢失的数据包,以减少数据的无效重传。在另一些实施例中,终端设备在采用UDP协议进行数据传输时,还可以根据发送缓存大小以及云平台服务器的剩余接收缓存大小,来确定发送窗口的大小。以此实现拥塞控制,提升数据传输的速度。In some embodiments, the retransmission mechanism included in the TCP protocol includes retransmitting all the data packets after the data packet with the smallest sequence number when a packet loss phenomenon occurs. The embodiments of the present application propose that when the UDP protocol is used for data retransmission, only the lost data packets may be transmitted, so as to reduce invalid data retransmission. In other embodiments, when the terminal device uses the UDP protocol for data transmission, the size of the sending window may also be determined according to the size of the sending buffer and the remaining receiving buffer size of the cloud platform server. In this way, congestion control is realized and the speed of data transmission is improved.
进一步地,终端设备在采用上述协议和机制将数据传输到云平台服务器之后,云平台服务器可以根据报文头的指示对接收到的报文进行处理,例如,进行解包以及确认报文等操作,然后将处理后的数据发送至上层业务层进行处理。Further, after the terminal device transmits the data to the cloud platform server using the above-mentioned protocol and mechanism, the cloud platform server can process the received message according to the instruction of the message header, for example, perform operations such as unpacking and confirming the message. , and then send the processed data to the upper business layer for processing.
在一些场景中,还可以将图1所示的系统从功能上划分为多个模块,由不同的功能模块执行上述各个步骤。可选地,可以将终端设备侧划分为:协议选择模块、处理模块和加速处理模块。可以将云平台服务器侧划分为:处理模块、加速处理模块。为了便于描述,将终端设备中的处理模块和加速处理模块称为第一处理模块和第一加速处理模块。将云平台服务器中的处理模块和加速处理模块称为第二处理模块和第二加速处理模块。作为一种示例,可以参见图3,为本申请实施例提供的一种系统架构图。需要说明的是,上述模块的划分仅作为一种示例,本申请实施例对于模块的划分规则不作具体限定。In some scenarios, the system shown in FIG. 1 may also be functionally divided into multiple modules, and different functional modules perform the above steps. Optionally, the terminal device side can be divided into: a protocol selection module, a processing module and an accelerated processing module. The server side of the cloud platform can be divided into: a processing module and an accelerated processing module. For convenience of description, the processing module and the accelerated processing module in the terminal device are referred to as the first processing module and the first accelerated processing module. The processing module and the accelerated processing module in the cloud platform server are referred to as the second processing module and the second accelerated processing module. As an example, reference may be made to FIG. 3 , which is a system architecture diagram provided by an embodiment of the present application. It should be noted that the above-mentioned division of modules is only an example, and the embodiment of the present application does not specifically limit the division rules of modules.
为了更进一步地理解本申请实施例提出的方案,下面结合上述具体的模块对本申请的方案进行介绍。参见图4,为本申请实施例提供的一种基于云平台的数据传输方法流程图,具体包括:In order to further understand the solutions proposed by the embodiments of the present application, the solutions of the present application are introduced below with reference to the above-mentioned specific modules. Referring to FIG. 4 , a flowchart of a cloud platform-based data transmission method provided by an embodiment of the present application specifically includes:
401,协议选择模块根据当前的网络质量确定用于传输待传输数据的协议。401. The protocol selection module determines a protocol for transmitting the data to be transmitted according to the current network quality.
可选地,协议选择模块中可以配置有TCP协议和UDP协议,以及这两个传输协议对应的网络质量要求。进一步地,协议选择模块可以根据当前的网络质量所满足的网络质量要求,确定所要采用的传输协议。Optionally, the protocol selection module may be configured with the TCP protocol and the UDP protocol, and network quality requirements corresponding to the two transmission protocols. Further, the protocol selection module may determine the transmission protocol to be adopted according to the network quality requirements satisfied by the current network quality.
一种情况下,若协议选择模块确定当前网络质量满足TCP协议对应的网络质量要求,则可以确定采用TCP进行数据传输,继续步骤402。In one case, if the protocol selection module determines that the current network quality meets the network quality requirement corresponding to the TCP protocol, it may be determined that TCP is used for data transmission, and the process proceeds to step 402 .
另一种情况下,若协议选择模块确定当前网络质量不满足TCP协议对应的网络质量要求,但是满足UDP协议对应的网络质量要求,则可以确定采用UDP协议进行数据传输,继续步骤403。In another case, if the protocol selection module determines that the current network quality does not meet the network quality requirements corresponding to the TCP protocol, but meets the network quality requirements corresponding to the UDP protocol, it may be determined to use the UDP protocol for data transmission, and proceed to step 403 .
需要说明的是,上述协议仅作为一种举例,本申请对于协议的种类、数量均不作具体限定。即,协议选择模块中还可以配置有其他的多种传输协议。It should be noted that the above agreement is only an example, and this application does not specifically limit the type and quantity of the agreement. That is, other multiple transmission protocols may also be configured in the protocol selection module.
402,第一处理模块采用TCP协议对待传输数据进行处理,并将处理后的待传输数据发送至第二处理模块。402. The first processing module uses the TCP protocol to process the data to be transmitted, and sends the processed data to be transmitted to the second processing module.
403,第一加速处理模块确定待传输数据是否为已发送数据。403. The first acceleration processing module determines whether the data to be transmitted is sent data.
若是,则继续步骤404。If so, go to step 404 .
若否,则继续步骤405。If not, go to step 405 .
404,第一加速模块确定是否达到UDP协议对应的重传时间。404. The first acceleration module determines whether the retransmission time corresponding to the UDP protocol is reached.
若是,则继续步骤405。If yes, go to step 405 .
若否,则等待达到重传时间后执行步骤405。If not, step 405 is executed after waiting for the retransmission time.
405,第一加速模块采用UDP协议对待传输数据进行处理,并将处理后的待传输数据发送至第二加速处理模块。405. The first acceleration module uses the UDP protocol to process the data to be transmitted, and sends the processed data to be transmitted to the second acceleration processing module.
可选地,无论是第二处理模块还是第二加速处理模块接收到数据之后,都会采用对应的协议对数据进行解封装等处理,并将处理后的数据发送至上层业务层进行业务处理。Optionally, after receiving the data, either the second processing module or the second accelerated processing module will use a corresponding protocol to perform processing such as decapsulation of the data, and send the processed data to the upper service layer for service processing.
基于与上述方法的同一构思,参见图5,为本申请实施例提出的基于云平台的数据传输装置500。装置500用于执行上述方法中的各个步骤,为了避免重复,此处不再进行赘述。装置500包括:处理单元501和通信单元502。Based on the same concept as the above method, referring to FIG. 5 , a data transmission apparatus 500 based on a cloud platform proposed in an embodiment of the present application. The apparatus 500 is configured to perform each step in the above-mentioned method. In order to avoid repetition, details are not repeated here. The apparatus 500 includes: a processing unit 501 and a
处理单元501,用于获取预先存储的至少两个传输协议分别对应的网络质量要求;A processing unit 501, configured to obtain network quality requirements corresponding to at least two pre-stored transmission protocols respectively;
所述处理单元501,还用于确定当前的网络质量符合的网络质量要求中,最高的网络质量要求所对应的传输协议;The processing unit 501 is further configured to determine the transmission protocol corresponding to the highest network quality requirement among the network quality requirements that the current network quality meets;
通信单元502,用于采用确定的传输协议向云平台服务器发送待传输数据。The
在一些实施例中,所述处理单元501,还用于:In some embodiments, the processing unit 501 is further configured to:
获取当前进行的业务的相关参数;所述相关参数包括业务接入成功率、业务接入时延、业务下载速率、业务下载时延、业务上传速率、业务上传时延、信号质量或者业务中断率中的一项或多项;Obtain the relevant parameters of the current service; the relevant parameters include service access success rate, service access delay, service download rate, service download delay, service upload rate, service upload delay, signal quality or service interruption rate one or more of;
根据所述相关参数确定所述当前的网络质量。The current network quality is determined according to the relevant parameters.
在一些实施例中,所述处理单元501,还用于:In some embodiments, the processing unit 501 is further configured to:
确定所述待传输数据是否为已发送数据;determining whether the data to be transmitted is sent data;
在确定所述待传输数据不是已发送数据时,指示所述通信单元02采用所述确定的传输协议向所述云平台服务器发送所述待传输数据;When determining that the data to be transmitted is not sent data, instruct the communication unit 02 to send the data to be transmitted to the cloud platform server by using the determined transmission protocol;
在确定所述待传输数据为已发送数据时,指示所述通信单元02根据所述确定的传输协议对应的重传机制,向所述云平台服务器发送所述待传输数据。When it is determined that the data to be transmitted is sent data, the communication unit 02 is instructed to send the data to be transmitted to the cloud platform server according to the retransmission mechanism corresponding to the determined transmission protocol.
在一些实施例中,所述重传机制包括重传时间;所述处理单元501,具体用于:In some embodiments, the retransmission mechanism includes retransmission time; the processing unit 501 is specifically configured to:
在确定与上一次发送所述待传输数据的时间间隔达到所述确定的传输协议对应的重传时间时,指示所述通信单元02向所述云平台服务器发送所述待传输数据。When it is determined that the time interval for sending the data to be transmitted last time reaches the retransmission time corresponding to the determined transmission protocol, the communication unit 02 is instructed to send the data to be transmitted to the cloud platform server.
在一些实施例中,在所述至少两个传输协议中,网络质量要求高的传输协议对应的重传时间,大于网络质量要求低的传输协议对应的重传时间。In some embodiments, among the at least two transmission protocols, the retransmission time corresponding to the transmission protocol requiring high network quality is greater than the retransmission time corresponding to the transmission protocol requiring low network quality.
图6示出了本申请实施例提供的电子设备600结构示意图。本申请实施例中的电子设备600还可以包括通信接口603,该通信接口603例如是网口,电子设备可以通过该通信接口603传输数据,例如通信接口603可以实现上述图5中的通信单元502的功能。FIG. 6 shows a schematic structural diagram of an electronic device 600 provided by an embodiment of the present application. The electronic device 600 in the embodiment of the present application may further include a
在本申请实施例中,存储器602存储有可被至少一个控制器601执行的指令,至少一个控制器601通过执行存储器602存储的指令,可以用于执行上述方法中的各个步骤,例如,控制器601可以实现上述图5中的处理单元501的功能。In this embodiment of the present application, the
其中,控制器601是电子设备的控制中心,可以利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器602内的指令以及调用存储在存储器602内的数据。可选的,控制器601可包括一个或多个处理单元,控制器601可集成应用控制器和调制解调控制器,其中,应用控制器主要处理操作系统和应用程序等,调制解调控制器主要处理无线通信。可以理解的是,上述调制解调控制器也可以不集成到控制器601中。在一些实施例中,控制器601和存储器602可以在同一芯片上实现,在一些实施例中,它们也可以在独立的芯片上分别实现。The
控制器601可以是通用控制器,例如中央控制器(CPU)、数字信号控制器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中公开的各方法、步骤及逻辑框图。通用控制器可以是微控制器或者任何常规的控制器等。结合本申请实施例所公开的数据统计平台所执行的步骤可以直接由硬件控制器执行完成,或者用控制器中的硬件及软件模块组合执行完成。
存储器602作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。存储器602可以包括至少一种类型的存储介质,例如可以包括闪存、硬盘、多媒体卡、卡型存储器、随机访问存储器(Random AccessMemory,RAM)、静态随机访问存储器(Static Random Access Memory,SRAM)、可编程只读存储器(Programmable Read Only Memory,PROM)、只读存储器(Read Only Memory,ROM)、带电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁性存储器、磁盘、光盘等等。存储器602是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器602还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。As a non-volatile computer-readable storage medium, the
通过对控制器601进行设计编程,例如,可以将前述实施例中介绍的神经网络模型的训练方法所对应的代码固化到芯片内,从而使芯片在运行时能够执行前述的神经网络模型训练方法的步骤,如何对控制器601进行设计编程为本领域技术人员所公知的技术,这里不再赘述。By designing and programming the
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其它可编程数据处理设备的控制器以产生一个机器,使得通过计算机或其它可编程数据处理设备的控制器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor or controller of other programmable data processing device to produce a machine such that the instructions executed by the controller of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其它可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flows of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其它可编程数据处理设备上,使得在计算机或其它可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其它可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。While the preferred embodiments of the present application have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of this application.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111630644.5A CN114500528A (en) | 2021-12-28 | 2021-12-28 | Data transmission method and device based on cloud platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111630644.5A CN114500528A (en) | 2021-12-28 | 2021-12-28 | Data transmission method and device based on cloud platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114500528A true CN114500528A (en) | 2022-05-13 |
Family
ID=81496166
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111630644.5A Pending CN114500528A (en) | 2021-12-28 | 2021-12-28 | Data transmission method and device based on cloud platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114500528A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114844960A (en) * | 2022-03-29 | 2022-08-02 | 武汉斗鱼鱼乐网络科技有限公司 | Data transmission method and related equipment |
CN115426083A (en) * | 2022-08-31 | 2022-12-02 | 维沃移动通信有限公司 | Transmission control method, device, electronic device and storage medium |
CN115842687A (en) * | 2023-02-28 | 2023-03-24 | 中国人民解放军军事科学院战争研究院 | Data transmission method and system based on cloud transmission platform |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101834879A (en) * | 2010-02-09 | 2010-09-15 | 北京中科大洋科技发展股份有限公司 | An intelligent and efficient video and audio data transmission method adaptable to different network environments |
CN102791045A (en) * | 2011-05-20 | 2012-11-21 | 希姆通信息技术(上海)有限公司 | Mobile communication terminal and transfer protocol automatic preferentially-selecting method thereof |
CN111224999A (en) * | 2020-01-21 | 2020-06-02 | 安徽文香信息技术有限公司 | Transmission protocol switching method, device, equipment and storage medium |
CN112039727A (en) * | 2020-08-26 | 2020-12-04 | 北京字节跳动网络技术有限公司 | Data transmission method and device, electronic equipment and storage medium |
CN113194509A (en) * | 2021-04-30 | 2021-07-30 | 武汉理工大学 | Multi-network fusion transmission system and transmission method based on QoS |
CN113242318A (en) * | 2021-06-23 | 2021-08-10 | 维沃移动通信有限公司 | Data transmission method and electronic equipment |
CN113726817A (en) * | 2021-11-01 | 2021-11-30 | 苏州万店掌软件技术有限公司 | Streaming media data transmission method, device and medium |
-
2021
- 2021-12-28 CN CN202111630644.5A patent/CN114500528A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101834879A (en) * | 2010-02-09 | 2010-09-15 | 北京中科大洋科技发展股份有限公司 | An intelligent and efficient video and audio data transmission method adaptable to different network environments |
CN102791045A (en) * | 2011-05-20 | 2012-11-21 | 希姆通信息技术(上海)有限公司 | Mobile communication terminal and transfer protocol automatic preferentially-selecting method thereof |
CN111224999A (en) * | 2020-01-21 | 2020-06-02 | 安徽文香信息技术有限公司 | Transmission protocol switching method, device, equipment and storage medium |
CN112039727A (en) * | 2020-08-26 | 2020-12-04 | 北京字节跳动网络技术有限公司 | Data transmission method and device, electronic equipment and storage medium |
CN113194509A (en) * | 2021-04-30 | 2021-07-30 | 武汉理工大学 | Multi-network fusion transmission system and transmission method based on QoS |
CN113242318A (en) * | 2021-06-23 | 2021-08-10 | 维沃移动通信有限公司 | Data transmission method and electronic equipment |
CN113726817A (en) * | 2021-11-01 | 2021-11-30 | 苏州万店掌软件技术有限公司 | Streaming media data transmission method, device and medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114844960A (en) * | 2022-03-29 | 2022-08-02 | 武汉斗鱼鱼乐网络科技有限公司 | Data transmission method and related equipment |
CN115426083A (en) * | 2022-08-31 | 2022-12-02 | 维沃移动通信有限公司 | Transmission control method, device, electronic device and storage medium |
CN115842687A (en) * | 2023-02-28 | 2023-03-24 | 中国人民解放军军事科学院战争研究院 | Data transmission method and system based on cloud transmission platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11153041B2 (en) | Packet transmission method and user equipment | |
CN114500528A (en) | Data transmission method and device based on cloud platform | |
US10868767B2 (en) | Data transmission method and apparatus in optoelectronic hybrid network | |
CN103795632B (en) | Data message transmission method, related equipment and system | |
CN107360177B (en) | A kind of message transmitting method and device based on UDP | |
US20150215214A1 (en) | Method and system for increasing data flow transmission | |
WO2014008793A1 (en) | Tcp data transmission method, tcp uninstallation engine, and system | |
CN106034084A (en) | A data transmission method and device | |
CN101651676B (en) | A Network Downloading Method for Large Data Amount Files | |
CN102315918B (en) | Method and device for intercommunicating TCP (Transmission Control Protocol) connection with SCTP (Stream Control Transmission Protocol) connection | |
CN117560115A (en) | Data transmission method, device, system, electronic equipment and storage medium | |
CN114710568B (en) | Audio and video data communication methods, equipment and storage media | |
CN111385068B (en) | Data transmission method, device, electronic equipment and communication system | |
CN115038115A (en) | Data transmission method, apparatus, electronic device, storage medium and product | |
CN105227276A (en) | A method of peer-to-peer network data transmission based on UDT | |
CN113938881A (en) | Transmission system and method applicable to Internet data | |
TWI846381B (en) | Computer devcie and transmission control protocol packet processing method | |
WO2016154831A1 (en) | Method and device for realizing transmission control protocol (tcp) transmission | |
CN115396372B (en) | Data stream rate control method, intelligent network card, cloud device and storage medium | |
CN112717376B (en) | Method and system for enhancing stability of mobile phone online game | |
CN104426866A (en) | Data transmission method and apparatus | |
CN111917511B (en) | A method of receiving data | |
CN115604537A (en) | A data transmission method, related device and equipment | |
CN107172179B (en) | A kind of bilateral accelerated transmission method and system | |
CN116156018A (en) | Data transmission method and related equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220513 |