CN105100224A - Data transmission method and device - Google Patents
Data transmission method and device Download PDFInfo
- Publication number
- CN105100224A CN105100224A CN201510379936.4A CN201510379936A CN105100224A CN 105100224 A CN105100224 A CN 105100224A CN 201510379936 A CN201510379936 A CN 201510379936A CN 105100224 A CN105100224 A CN 105100224A
- Authority
- CN
- China
- Prior art keywords
- data transmission
- transmission path
- client
- data
- path
- 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
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
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- 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
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1025—Dynamic adaptation of the criteria on which the server selection is based
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明涉及信息技术,特别涉及一种数据传输方法及装置。The invention relates to information technology, in particular to a data transmission method and device.
背景技术Background technique
随着互联网技术的不断发展,云盘的使用群体也越来越多。用户可以通过云盘进行数据的存储、访问、备份、共享等,从而节省了本地的存储空间。其中,云盘提供商为了处理海量数据,在不同的区域分别设置有服务器,从而对不同区域的业务请求进行处理。With the continuous development of Internet technology, more and more groups use cloud disks. Users can store, access, backup, and share data through cloud disks, thereby saving local storage space. Among them, in order to process massive data, the cloud disk provider sets up servers in different areas, so as to process business requests in different areas.
目前,通常根据访问用户的互联网协议(InternetProtocol,IP)所属区域,按照就近的原则分配传输路径处理用户的数据访问请求,即为用户分配IP所属区域的服务器对应的传输路径进行访问请求的数据传输。然而,当该区域用户访问量较大时,根据访问用户的IP所属区域分配服务器,会造成网络带宽分布不均匀,进而导致数据传输的速度较慢。At present, usually according to the area to which the Internet Protocol (IP) of the accessing user belongs, the transmission path is allocated according to the principle of proximity to process the user's data access request, that is, the transmission path corresponding to the server in the area to which the IP belongs is assigned to the user for the data transmission of the access request . However, when the number of users in this area has a large number of visits, allocating servers according to the area to which the IP of the visiting user belongs will cause uneven distribution of network bandwidth, which in turn will result in a slow data transmission speed.
发明内容Contents of the invention
有鉴于此,本发明提供一种数据传输方法及装置,主要目的在于提升与云盘之间进行数据传输的速度。In view of this, the present invention provides a data transmission method and device, the main purpose of which is to increase the speed of data transmission with cloud disks.
依据本发明一个方面,提供了一种数据传输方法,包括:According to one aspect of the present invention, a data transmission method is provided, including:
接收客户端发送的数据传输请求;Receive the data transmission request sent by the client;
获取各条传输路径分别对应的数据传输状态信息;Obtain data transmission status information corresponding to each transmission path;
根据所述数据传输状态信息,为所述客户端配置数据传输路径,以使得客户端通过所述数据传输路径进行数据传输。According to the data transmission state information, configure a data transmission path for the client, so that the client performs data transmission through the data transmission path.
依据本发明另一个方面,提供了一种数据传输装置,包括:According to another aspect of the present invention, a data transmission device is provided, including:
接收单元,用于接收客户端发送的数据传输请求;a receiving unit, configured to receive a data transmission request sent by the client;
获取单元,用于获取各条传输路径分别对应的数据传输状态信息;an acquisition unit, configured to acquire data transmission status information corresponding to each transmission path;
配置单元,用于根据所述获取单元获取的数据传输状态信息,为所述客户端配置数据传输路径,以使得客户端通过所述数据传输路径进行数据传输。A configuring unit, configured to configure a data transmission path for the client according to the data transmission status information acquired by the acquiring unit, so that the client performs data transmission through the data transmission path.
借由上述技术方案,本发明实施例提供的技术方案至少具有下列优点:With the above technical solutions, the technical solutions provided by the embodiments of the present invention have at least the following advantages:
本发明实施例提供了一种数据传输方法及装置。当接收到客户端发送的数据传输请求时,通过获取到的各条传输路径分别对应的数据传输状态信息,为客户端选择进行数据传输的数据传输路径。与目前为客户端分配IP所属区域对应的传输路径进行数据传输相比,本发明实施例根据所述数据传输状态信息,为所述客户端配置数据传输路径;即当客户端请求上传数据时,为客户端配置传输速度最快的传输路径,当客户端请求下载数据时,为客户端配置需求量最大的服务器对应的数据传输路径,可以避免由于客户端所属区域的传输路径访问量较大时,造成的数据传输效率较低的问题,进而能够提升数据传输的速度。Embodiments of the present invention provide a data transmission method and device. When the data transmission request sent by the client is received, the data transmission path for data transmission is selected for the client through the acquired data transmission state information corresponding to each transmission path. Compared with currently assigning the transmission path corresponding to the region to which the IP belongs to the client for data transmission, the embodiment of the present invention configures the data transmission path for the client according to the data transmission state information; that is, when the client requests to upload data, Configure the transmission path with the fastest transmission speed for the client. When the client requests to download data, configure the data transmission path corresponding to the server with the largest demand for the client. , resulting in a problem of low data transmission efficiency, which in turn can increase the speed of data transmission.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:
图1示出了本发明实施例提供的一种数据传输方法流程图;FIG. 1 shows a flow chart of a data transmission method provided by an embodiment of the present invention;
图2示出了本发明实施例提供的另一种数据传输方法流程图;FIG. 2 shows a flowchart of another data transmission method provided by an embodiment of the present invention;
图3示出了本发明实施例提供的一种数据传输装置结构示意图;FIG. 3 shows a schematic structural diagram of a data transmission device provided by an embodiment of the present invention;
图4示出了本发明实施例提供的另一种数据传输装置结构示意图。Fig. 4 shows a schematic structural diagram of another data transmission device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
本发明实施例提供了一种数据传输方法,如图1所示,所示方法包括:An embodiment of the present invention provides a data transmission method, as shown in Figure 1, the shown method includes:
101、接收客户端发送的数据传输请求。101. Receive a data transmission request sent by a client.
其中,所述客户端可以为使用云盘存储数据的客户端,云盘可以为互联网存储工具,用户可以通过客户端在云盘中进行数据的存储、访问、备份、共享等。数据传输具体可以为向云盘上传数据或者从云盘下载数据等。当用户向云盘上传数据时,云盘会将数据上传到云盘服务器,当用户从云盘下载数据时,云盘会从云盘服务器下载数据。Wherein, the client can be a client that uses a cloud disk to store data, and the cloud disk can be an Internet storage tool, and the user can store, access, backup, share, etc. data in the cloud disk through the client. Specifically, data transmission may be uploading data to a cloud disk or downloading data from a cloud disk. When the user uploads data to the cloud disk, the cloud disk will upload the data to the cloud disk server, and when the user downloads data from the cloud disk, the cloud disk will download the data from the cloud disk server.
102、获取各条传输路径分别对应的数据传输状态信息。102. Acquire data transmission state information corresponding to each transmission path.
其中,不同位置区域对应不同的传输路径。云盘提供商为了处理海量数据,会在不同的区域分别设置有云盘服务器。当用户通过云盘传输数据时,云盘服务器会处理云盘数据传输请求。例如,云盘提供商在北京市、天津市、广州市、南京市分别设有云盘服务器,传输路径分别北京传输路径、天津传输路径、广州传输路径、南京传输路径。当用户向云盘上传数据时,可以将数据通过北京路径上传到在北京市设置的云盘服务器上,当用户从云盘下载数据时,可以通过南京路径从在南京市设置的云盘服务器上下载数据。数据传输状态信息可以为数据传输速度,也可以为下载数据在云盘服务器中的需求量,本发明实施例不做限定。Wherein, different location areas correspond to different transmission paths. In order to process massive amounts of data, cloud disk providers will set up cloud disk servers in different regions. When the user transfers data through the cloud disk, the cloud disk server will process the cloud disk data transfer request. For example, a cloud disk provider has cloud disk servers in Beijing, Tianjin, Guangzhou, and Nanjing respectively, and the transmission paths are Beijing transmission path, Tianjin transmission path, Guangzhou transmission path, and Nanjing transmission path. When the user uploads data to the cloud disk, the data can be uploaded to the cloud disk server set up in Beijing through the Beijing path; Download data. The data transmission status information may be the data transmission speed, or the demand amount of the downloaded data in the cloud disk server, which is not limited in this embodiment of the present invention.
103、根据所述数据传输状态信息,为所述客户端配置数据传输路径。103. Configure a data transmission path for the client according to the data transmission status information.
进一步地,以使得客户端通过所述数据传输路径进行数据传输。Further, so that the client performs data transmission through the data transmission path.
例如,当用户向云盘上传数据时,云盘会将用户上传的数据传输到云盘服务器。此时,分别获取北京传输路径、天津传输路径、广州传输路径、南京传输路径的传输数据速度,然后为云盘配置传输数据速度最快的天津传输路径,以使得云盘将用户上传的数据传输到在天津市设置的云盘服务器。For example, when a user uploads data to the cloud disk, the cloud disk will transmit the data uploaded by the user to the cloud disk server. At this time, obtain the transmission data speeds of the Beijing transmission path, Tianjin transmission path, Guangzhou transmission path, and Nanjing transmission path respectively, and then configure the Tianjin transmission path with the fastest data transmission speed for the cloud disk, so that the cloud disk can transmit the data uploaded by the user to the cloud disk server set up in Tianjin.
本发明实施例提供的一种数据传输方法。当接收到客户端发送的数据传输请求时,通过获取到的各条传输路径分别对应的数据传输状态信息,为客户端选择进行数据传输的数据传输路径。与目前为客户端分配IP所属区域对应的传输路径进行数据传输相比,本发明实施例根据所述数据传输状态信息,为所述客户端配置数据传输路径;即当客户端请求上传数据时,为客户端配置传输速度最快的传输路径,当客户端请求下载数据时,为客户端配置需求量最大的服务器对应的数据传输路径,可以避免由于客户端所属区域的传输路径访问量较大时,造成的数据传输效率较低的问题,进而能够提升数据传输的速度。A data transmission method provided by an embodiment of the present invention. When the data transmission request sent by the client is received, the data transmission path for data transmission is selected for the client through the acquired data transmission state information corresponding to each transmission path. Compared with currently assigning the transmission path corresponding to the region to which the IP belongs to the client for data transmission, the embodiment of the present invention configures the data transmission path for the client according to the data transmission state information; that is, when the client requests to upload data, Configure the transmission path with the fastest transmission speed for the client. When the client requests to download data, configure the data transmission path corresponding to the server with the largest demand for the client. , resulting in a problem of low data transmission efficiency, which in turn can increase the speed of data transmission.
本发明实施例提供了另一种数据传输方法,如图2所示,所述方法包括:The embodiment of the present invention provides another data transmission method, as shown in Figure 2, the method includes:
201、接收客户端发送的数据传输请求。201. Receive a data transmission request sent by a client.
其中,所述客户端可以为使用云盘存储数据的客户端,云盘可以为互联网存储工具,用户可以通过客户端在云盘中进行数据的存储、访问、备份、共享等。Wherein, the client can be a client that uses a cloud disk to store data, and the cloud disk can be an Internet storage tool, and the user can store, access, backup, share, etc. data in the cloud disk through the client.
202a、当所述数据传输请求为上传数据请求时,获取各条传输路径分别对应的数据传输速度。202a. When the data transmission request is a data upload request, acquire data transmission speeds respectively corresponding to each transmission path.
对于本实施例,在步骤202a之前还可以包括:获取各条传输路径分别对应的日志访问信息。所述步骤202a具体可以为:根据所述日志访问信息,获取各条传输路径分别对应的数据传输速度。For this embodiment, before step 202a, it may further include: acquiring log access information corresponding to each transmission path. The step 202a may specifically be: according to the log access information, obtain the data transmission speed corresponding to each transmission path.
其中,不同位置区域对应不同的传输路径。云盘提供商为了处理海量数据,会在不同的区域分别设置有云盘服务器。日志访问信息为不同客户端访问云盘服务器的日志信息,客户端与云盘服务器通过三次握手建立传输关系,日志访问信息中记录了三次握手时间,通过统计三次握手时间来获取客户端对应的数据传输速度。每条传输路径对应的数据传输速度为该传输路径上所有客户端对应的数据传输速度的平均传输速度。一般通过线上缓存服务器计算数据传输速度,由于线上缓存服务器的计算速度特别的快。首先,将获取的所有客户端对应的数据传输速度存放在线下数据库中,然后。计算所有客户端对应的数据传输速度的平均传输速度,该平均传输速度即为该传输路径对应的数据传输速度,最后将获取的传输路径对应的数据传输速度存放到线上缓存服务器。当接收客户端发送的数据传输请求后,可以直接从线上缓存服务器上获取的传输路径对应的数据传输速度,从而能够提升数据传输的速度。Wherein, different location areas correspond to different transmission paths. In order to process massive amounts of data, cloud disk providers will set up cloud disk servers in different regions. The log access information is the log information of different clients accessing the cloud disk server. The client and the cloud disk server establish a transmission relationship through a three-way handshake. The three-way handshake time is recorded in the log access information, and the data corresponding to the client is obtained by counting the three-way handshake time. transfer speed. The data transmission speed corresponding to each transmission path is the average transmission speed of the data transmission speeds corresponding to all clients on the transmission path. Generally, the data transmission speed is calculated through the online cache server, because the calculation speed of the online cache server is particularly fast. First, store the obtained data transmission speeds corresponding to all clients in the offline database, and then. Calculate the average transmission speed of the data transmission speed corresponding to all clients, the average transmission speed is the data transmission speed corresponding to the transmission path, and finally store the obtained data transmission speed corresponding to the transmission path in the online cache server. After receiving the data transmission request sent by the client, the data transmission speed corresponding to the transmission path can be obtained directly from the online cache server, thereby improving the data transmission speed.
203a、根据所述数据传输速度,为所述客户端配置数据传输路径。203a. Configure a data transmission path for the client according to the data transmission speed.
对于本实施例步骤203a具体可以为:将所述各条传输路径分别对应的数据传输速度按照由快到慢的顺序进行排序;为所述客户端配置数据传输速度最快的数据传输路径。通过为所述客户端配置数据传输速度最快的数据传输路径进行数据的传输,能够合理分配资源,能够避免根据访问用户的IP所属区域配置到传输速度慢的数据传输路径进行数据的传输,从而能够提升数据传输的速度。Step 203a of this embodiment may specifically be: sort the data transmission speeds corresponding to the respective transmission paths in descending order; and configure the data transmission path with the fastest data transmission speed for the client. By configuring the data transmission path with the fastest data transmission speed for the client to transmit data, resources can be allocated reasonably, and data transmission can be avoided from configuring the data transmission path with a slow transmission speed according to the region to which the IP of the accessing user belongs, thereby Can increase the speed of data transmission.
例如,北京、天津、广州三种传输路径对应的数据传输速度分别为300KB/,56KB/s,10MB/s,为所述客户端配置数据传输速度最快的数据传输速度最快的广州传输路径进行数据的传输,即将用户上传的数据到传输到在天津市设置的云盘服务器上。For example, the data transmission speeds corresponding to the three transmission paths of Beijing, Tianjin, and Guangzhou are 300KB/s, 56KB/s, and 10MB/s respectively, and the Guangzhou transmission path with the fastest data transmission speed is configured for the client For data transmission, that is, to transmit the data uploaded by users to the cloud disk server set up in Tianjin.
对于本发明实施例,所述为所述客户端配置数据传输速度最快的数据传输路径之前,还可以包括:判断所述数据传输路径对应的服务器存储容量是否符合预设条件。所述为所述客户端配置数据传输速度最快的数据传输路径具体可以包括:若判断所述数据传输路径对应的服务器存储容量符合预设条件,为所述客户端配置数据传输速度最快的数据传输路径。其中,预置条件可以按用户需求进行配置,也可以由系统默认配置,本发明实施里不做限定。例如,预置条件可以配置为服务器存储容量大于等于20M,当数据传输速度最快的数据传输路径对应的云盘服务器存储容量大于等于20M时,存储容量符合预设条件;当数据传输速度最快的数据传输路径对应的云盘服务器存储容量小于20M时,存储容量不符合预设条件;预置条件也可以为云盘服务器存储容量占不同区域对应的云盘服务器存储容量比例的上限,如,北京云盘服务器的剩余存储容量为200G,天津云盘服务器的剩余存储容量为300G,广州云盘服务器的剩余存储容量为500G,北京云盘服务器、天津云盘服务器、广州云盘服务器对应的存储容量比例为2:3:5;当在一分钟内有1000个客户端请求上传数据时,先为云盘配置数据传输速度最快的广州传输路径进行数据的传输,当400个客户端数据传输完成时,广州云盘服务器存储容量的未达到比例上限,判定为符合预置条件;继续为云盘配置数据传输速度最快的广州传输路径进行数据的传输。通过根据数据传输速度和云盘服务器存储容量,为所述客户端配置数据传输路径,能够均匀分布网络带宽,进而进一步地的提升数据传输的速度。For the embodiment of the present invention, before configuring the data transmission path with the fastest data transmission speed for the client, it may further include: judging whether the storage capacity of the server corresponding to the data transmission path meets a preset condition. The configuring the data transmission path with the fastest data transmission speed for the client may specifically include: if it is judged that the storage capacity of the server corresponding to the data transmission path meets the preset condition, configuring the fastest data transmission path for the client data transfer path. Wherein, the preset conditions can be configured according to user requirements, or can be configured by default by the system, which is not limited in the implementation of the present invention. For example, the preset condition can be configured as server storage capacity greater than or equal to 20M. When the storage capacity of the cloud disk server corresponding to the data transmission path with the fastest data transmission speed is greater than or equal to 20M, the storage capacity meets the preset condition; when the data transmission speed is the fastest When the storage capacity of the cloud disk server corresponding to the data transmission path is less than 20M, the storage capacity does not meet the preset condition; the preset condition can also be the upper limit of the storage capacity of the cloud disk server in the storage capacity of the corresponding cloud disk server in different regions, for example, The remaining storage capacity of the Beijing cloud disk server is 200G, the remaining storage capacity of the Tianjin cloud disk server is 300G, and the remaining storage capacity of the Guangzhou cloud disk server is 500G. The corresponding storage capacity of the Beijing cloud disk server, Tianjin cloud disk server, and Guangzhou cloud disk server The capacity ratio is 2:3:5; when 1,000 clients request to upload data within one minute, first configure the Guangzhou transmission path with the fastest data transmission speed for the cloud disk for data transmission, and when 400 clients transmit data Upon completion, if the storage capacity of the Guangzhou cloud disk server has not reached the upper limit, it is judged to meet the preset conditions; continue to configure the Guangzhou transmission path with the fastest data transmission speed for the cloud disk for data transmission. By configuring the data transmission path for the client according to the data transmission speed and the storage capacity of the cloud disk server, the network bandwidth can be evenly distributed, thereby further improving the data transmission speed.
与步骤202a并列的步骤202b、当所述数据传输请求为下载数据请求时,获取所述数据在各条传输路径分别对应的服务器中的需求量。In step 202b parallel to step 202a, when the data transmission request is a download data request, obtain the demand amount of the data in the servers respectively corresponding to the transmission paths.
其中,所述下载数据请求中携带有需要下载的数据的标识信息。所述标识信息可以为数据的名称、也可以为数据的身份标识号码(Identity,ID),本发明实施例不做限定。例如,需要下载的数据为电影“泰坦尼克号”,标识信息为名称关键字“泰坦尼克号”。Wherein, the data download request carries identification information of the data to be downloaded. The identification information may be the name of the data, or an identification number (Identity, ID) of the data, which is not limited in this embodiment of the present invention. For example, the data to be downloaded is the movie "Titanic", and the identification information is the name keyword "Titanic".
对于本发明实施例,在步骤202b具体可以为:根据所述日志访问信息,获取所述数据在各条传输路径分别对应的服务器中的需求量。其中,日志访问信息为不同客户端访问云盘服务器的日志信息,日志访问信息中包含有不同客户端的标识信息和与客户端的标识信息对应需要下载的数据,可以通过统计传输路径对应的客户端的标识信息数量获取传输路径对应的服务器中的需求量。For the embodiment of the present invention, step 202b may specifically be: according to the log access information, obtain the demand amount of the data in the servers respectively corresponding to each transmission path. Among them, the log access information is the log information of different clients accessing the cloud disk server. The log access information includes the identification information of different clients and the data that needs to be downloaded corresponding to the identification information of the client. The identification of the client corresponding to the transmission path can be counted. The information quantity obtains the demand quantity in the server corresponding to the transmission path.
203b、判断需求量最大的服务器中是否保存有所述数据。203b. Determine whether the data is saved in the server with the largest demand.
204b、若未保存,则将其他服务器中的所述数据保存在所述服务器中。204b. If not saved, save the data in other servers in the server.
对于本发明实施例,需要下载的数据在某一个云盘服务器中的需求量大,说明该云盘服务器所在区域的用户对该数据资源的需求较为强烈,而通常用户在所在区域的云盘服务器下载数据的速度较快,因此通过将其他服务器中的所述数据拷贝到在需求量最大服务器中,使得客户端从需求量最大服务器上下载的数据,与客户端直接从其他地域的服务器上下载的所述数据相比,能够提升数据传输速度。For the embodiment of the present invention, the data that needs to be downloaded has a large demand in a certain cloud disk server, indicating that users in the area where the cloud disk server is located have a relatively strong demand for this data resource, and usually the cloud disk server where the user is in the area The speed of downloading data is fast, so by copying the data in other servers to the server with the largest demand, the data downloaded by the client from the server with the largest demand is directly downloaded from the server in other regions. Compared with the above data, the data transmission speed can be improved.
例如,云盘提供商在北京市、天津市、广州市、南京市分别设有云盘服务器。用户从云盘下载电影“末日崩塌”,根据日志访问信息获取电影“末日崩塌”在北京云盘服务器中的需求量最大。首先判断北京云盘服务器中是否保存有电影“末日崩塌”。若北京云盘服务器中没有保存有电影“末日崩塌”,将天津云盘服务器的保存电影“末日崩塌”传输到天津云盘服务器上,使得客户端从北京云盘服务器上下载电影“末日崩塌”。与北京用户从南京、广州等南方地域下载该资源相比,可以显著提升下载速度。For example, cloud disk providers have cloud disk servers in Beijing, Tianjin, Guangzhou, and Nanjing respectively. Users download the movie "Collapse of Doom" from the cloud disk, and according to the log access information, the movie "Collapse of Doom" has the largest demand in Beijing cloud disk servers. First of all, it is determined whether the movie "Doomsday Collapse" is saved in the Beijing cloud disk server. If the movie "Collapse of Doom" is not saved in the Beijing cloud disk server, transfer the movie "Collapse of Doom" saved in the Tianjin cloud disk server to the Tianjin cloud disk server, so that the client can download the movie "Collapse of Doom" from the Beijing cloud disk server . Compared with Beijing users downloading this resource from southern regions such as Nanjing and Guangzhou, the download speed can be significantly improved.
205b、为所述客户端配置所述需求量最大的服务器对应的数据传输路径。205b. Configure, for the client, a data transmission path corresponding to the server with the largest demand.
对于本发明实施例,在步骤205b之前还可以包括:判断所述需求量最大的传输路径对应的传输条件是否符合预设传输条件。所述步骤205b具体可以为:若判断所述需求量最大的传输路径对应的传输条件符合预设传输条件,则为所述客户端配置所述需求量最大的服务器对应的数据传输路径;若所述判断单元判断所述需求量最大的传输路径对应的传输条件不符合预设传输条件,则为所述客户端配置数据传输速度最快的数据传输路径。For the embodiment of the present invention, before step 205b, it may further include: judging whether the transmission condition corresponding to the transmission path with the largest demand meets the preset transmission condition. The step 205b may specifically be: if it is judged that the transmission condition corresponding to the transmission path with the largest demand meets the preset transmission condition, configuring the data transmission path corresponding to the server with the largest demand for the client; The judging unit judges that the transmission condition corresponding to the transmission path with the largest demand does not meet the preset transmission condition, and configures the data transmission path with the fastest data transmission speed for the client.
其中,预置传输条件可以按用户需求进行配置,也可以由系统默认配置,本发明实施里不做限定。例如,需要判断的传输条件为网络传输的负载状态信息,预置条件可以配置为网络传输的负载状态小于96%,当获取到需求量最大的服务器对应的数据传输路径对应的网络传输的负载状态小于96%时,判定所述传输条件符合预置传输条件;当获取到需求量最大的服务器对应的数据传输路径对应的网络传输的负载状态大于或等于96%时,判定所述传输条件不符合预置传输条件。又例如,需要判断的传输条件为网络传输的响应时间,预置传输条件可以配置为网络传输的响应时间小于2s,当获取到需求量最大的服务器对应的数据传输路径对应的网络传输的响应时间小于2s时,确定所述传输状态信息符合预置条件;当获取到需求量最大的服务器对应的数据传输路径对应的网络传输的响应时间大于或等于2s时,确定所述传输条件不符合预置传输条件。Wherein, the preset transmission conditions may be configured according to user requirements, or may be configured by default by the system, which is not limited in the implementation of the present invention. For example, the transmission condition that needs to be judged is the load status information of network transmission, and the preset condition can be configured such that the load status of network transmission is less than 96%. When the load status of network transmission corresponding to the data transmission path corresponding to the server with the largest demand is obtained When it is less than 96%, it is determined that the transmission condition meets the preset transmission condition; when the load status of the network transmission corresponding to the data transmission path corresponding to the server with the largest demand is obtained is greater than or equal to 96%, it is determined that the transmission condition does not meet Preset transfer conditions. For another example, the transmission condition that needs to be judged is the response time of network transmission. The preset transmission condition can be configured so that the response time of network transmission is less than 2s. When the response time of network transmission corresponding to the data transmission path corresponding to the server with the largest demand is obtained When it is less than 2s, it is determined that the transmission status information meets the preset condition; when the response time of the network transmission corresponding to the data transmission path corresponding to the server with the largest demand is obtained is greater than or equal to 2s, it is determined that the transmission condition does not meet the preset condition transfer conditions.
例如,需要判断的传输条件为数据传输路径的开通状态。预置传输条件可以为开通状态,当获取到需求量最大的服务器对应的数据传输路径对应的传输条件为开通状态时,判定所述传输条件符合预置传输条件;当获取到需求量最大的服务器对应的数据传输路径对应的传输条件为关闭状态时,判定所述传输条件不符合预置传输条件;进一步地,在判定所述传输条件符合预置条件时,为客户端配置所述需求量最大的服务器对应的数据传输路径。在判定所述传输条件不符合预置条件时,为所述客户端配置数据传输速度最快的数据传输路径。For example, the transmission condition that needs to be judged is the open state of the data transmission path. The preset transmission condition may be in an enabled state. When the transmission condition corresponding to the data transmission path corresponding to the server with the largest demand is obtained as an enabled state, it is determined that the transmission condition meets the preset transmission condition; when the server with the largest demand is obtained When the transmission condition corresponding to the corresponding data transmission path is closed, it is determined that the transmission condition does not meet the preset transmission condition; further, when it is determined that the transmission condition meets the preset condition, configure the client with the largest demand The corresponding data transmission path of the server. When it is determined that the transmission condition does not meet the preset condition, a data transmission path with the fastest data transmission speed is configured for the client.
对于本发明实施例,在为所述客户端配置所述需求量最大的服务器对应的数据传输路径之前,判断所述需求量最大的传输路径对应的传输条件是否符合预设传输条件;若符合预置传输条件,则为所述客户端配置所述需求量最大的服务器对应的数据传输路径;若传输条件不符合预置条件时,为所述客户端配置数据传输速度最快的数据传输路径,可以避免出现无法进行数据传输的情况,保证数据进行正常传输。For the embodiment of the present invention, before configuring the data transmission path corresponding to the server with the largest demand for the client, it is judged whether the transmission condition corresponding to the transmission path with the largest demand meets the preset transmission condition; if it meets the preset If the transmission condition is set, configure the data transmission path corresponding to the server with the largest demand for the client; if the transmission condition does not meet the preset condition, configure the data transmission path with the fastest data transmission speed for the client, It can avoid the situation that the data transmission cannot be performed, and ensure the normal transmission of the data.
对于本发明实施例的具体应用场景可以如下所示,但不限于此,包括:云盘提供商在北京市、天津市、广州市分别设有云盘服务器。假设有10000个广州用户通过云盘上传数据,获取北京云盘服务器、天津云盘服务器、广州云盘服务器的存储容量比例为6:3:1,并获取北京、天津、广州三种传输路径对应的数据传输速度分别为5MB/s,200KB/,60KB/s。优先为6000个客户端配置数据传输速度最快的北京传输路径进行数据的传输,即将数据上传到北京云盘服务器上;当北京云盘服务器接收完数据后,为3000个客户端配置数据传输速度次快的天津传输路径进行数据的传输,即将数据上传到天津云盘服务器;当天津云盘服务器接收完数据后,为1000个客户端配置数据传输速度最慢的广州传输路径进行数据的传输,即将数据上传到广州云盘服务器;与目前将10000个广州用户上传的数据传输到广州云盘服务器相比,能够均匀分布网络带宽,进而提高数据传输的速度。The specific application scenarios of the embodiments of the present invention may be as follows, but not limited thereto, including: cloud disk providers have cloud disk servers in Beijing, Tianjin, and Guangzhou respectively. Suppose there are 10,000 Guangzhou users uploading data through the cloud disk, and the storage capacity ratio of the Beijing cloud disk server, Tianjin cloud disk server, and Guangzhou cloud disk server is 6:3:1, and the three transmission paths corresponding to Beijing, Tianjin, and Guangzhou are obtained. The data transfer speeds are 5MB/s, 200KB/s, and 60KB/s respectively. Prioritize the Beijing transmission path with the fastest data transmission speed for 6000 clients for data transmission, that is, upload the data to the Beijing cloud disk server; after the Beijing cloud disk server receives the data, configure the data transmission speed for 3000 clients The second fastest Tianjin transmission path is used for data transmission, that is, the data is uploaded to the Tianjin cloud disk server; after the Tianjin cloud disk server has received the data, the Guangzhou transmission path with the slowest data transmission speed is configured for 1000 clients for data transmission. The data is about to be uploaded to the Guangzhou cloud disk server; compared with the current transmission of data uploaded by 10,000 Guangzhou users to the Guangzhou cloud disk server, the network bandwidth can be evenly distributed, thereby increasing the speed of data transmission.
进一步地,用户从云盘下载电影“复仇者联盟2”,云盘发送的数据下载请求中会携带有电影“复仇者联盟2”的名称关键字,根据日志访问信息获取电影“复仇者联盟2”分别在北京云盘服务器、天津云盘服务器、广州云盘服务器上的需求量,通过比较获得电影“复仇者联盟2”在北京云盘服务器上的需求量最大;然后判断北京云盘服务器上的是否保存有电影“复仇者联盟2”,若未保存,则将天津云盘服务器中的电影“复仇者联盟2”拷贝到北京云盘服务器中;最后为云盘配置北京云盘服务器对应的数据传输路径,使得云盘从北京云盘服务器中下载电影“复仇者联盟2”。进一步地,为云盘配置北京云盘服务器对应的数据传输路径之前,还可以判断北京云盘服务器对应的数据传输路径对应的传输状态是否为开通状态,若数据传输路径对应的传输状态为关闭状态,为云盘配置数据传输速度最快的天津传输路径进行数据的传输,使得云盘从天津云盘服务器中下载电影“复仇者联盟2”。Further, the user downloads the movie "Avengers 2" from the cloud disk, and the data download request sent by the cloud disk will carry the name keyword of the movie "Avengers 2", and the movie "Avengers 2" is obtained according to the log access information. "Respectively, the demand on the Beijing cloud disk server, Tianjin cloud disk server, and Guangzhou cloud disk server, through comparison, the movie "Avengers 2" has the largest demand on the Beijing cloud disk server; and then judge the Beijing cloud disk server Whether the movie "Avengers 2" is saved, if not, copy the movie "Avengers 2" in the Tianjin cloud disk server to the Beijing cloud disk server; finally configure the cloud disk corresponding to the Beijing cloud disk server The data transmission path enables the cloud disk to download the movie "Avengers 2" from the Beijing cloud disk server. Further, before configuring the data transmission path corresponding to the Beijing cloud disk server for the cloud disk, it can also be determined whether the transmission state corresponding to the data transmission path corresponding to the Beijing cloud disk server is in the open state, if the transmission state corresponding to the data transmission path is in the closed state Configure the Tianjin transmission path with the fastest data transmission speed for the cloud disk to transmit data, so that the cloud disk downloads the movie "Avengers 2" from the Tianjin cloud disk server.
本发明实施例提供的另一种数据传输方法。当接收到客户端发送的数据传输请求时,通过获取到的各条传输路径分别对应的数据传输状态信息,为客户端选择进行数据传输的数据传输路径。与目前为客户端分配IP所属区域对应的传输路径进行数据传输相比,本发明实施例根据所述数据传输状态信息,为所述客户端配置数据传输路径;即当客户端请求上传数据时,为客户端配置传输速度最快的传输路径,当客户端请求下载数据时,为客户端配置需求量最大的服务器对应的数据传输路径,可以避免由于客户端所属区域的传输路径访问量较大时,造成的数据传输效率较低的问题,进而能够提升数据传输的速度。Another data transmission method provided by an embodiment of the present invention. When the data transmission request sent by the client is received, the data transmission path for data transmission is selected for the client through the acquired data transmission state information corresponding to each transmission path. Compared with currently assigning the transmission path corresponding to the region to which the IP belongs to the client for data transmission, the embodiment of the present invention configures the data transmission path for the client according to the data transmission state information; that is, when the client requests to upload data, Configure the transmission path with the fastest transmission speed for the client. When the client requests to download data, configure the data transmission path corresponding to the server with the largest demand for the client. , resulting in a problem of low data transmission efficiency, which in turn can increase the speed of data transmission.
进一步地,作为图1所示方法的具体实现,本发明实施例提供了一种数据传输装置,如图3所示,所述装置包括:接收单元31、获取单元32、配置单元33。Further, as a specific implementation of the method shown in FIG. 1 , an embodiment of the present invention provides a data transmission device. As shown in FIG. 3 , the device includes: a receiving unit 31 , an acquiring unit 32 , and a configuring unit 33 .
接收单元31,可以用于接收客户端发送的数据传输请求。The receiving unit 31 may be configured to receive a data transmission request sent by a client.
获取单元32,可以用于获取各条传输路径分别对应的数据传输状态信息。The obtaining unit 32 may be configured to obtain data transmission state information corresponding to each transmission path.
配置单元33,可以用于根据所述获取单元32获取的数据传输状态信息,为所述客户端配置数据传输路径。The configuring unit 33 may be configured to configure a data transmission path for the client according to the data transmission state information acquired by the acquiring unit 32 .
进一步地,以使得客户端通过所述数据传输路径进行数据传输。Further, so that the client performs data transmission through the data transmission path.
需要说明的是,本发明实施例提供的一种数据传输装置所涉及各功能单元的其他对应描述,可以参考图1中的相应描述,在此不再赘述。It should be noted that, for other corresponding descriptions of the functional units involved in a data transmission device provided in the embodiment of the present invention, reference may be made to the corresponding description in FIG. 1 , which will not be repeated here.
本发明实施例提供的一种数据传输装置。当接收到客户端发送的数据传输请求时,通过获取到的各条传输路径分别对应的数据传输状态信息,为客户端选择进行数据传输的数据传输路径。与目前为客户端分配IP所属区域对应的传输路径进行数据传输相比,本发明实施例根据所述数据传输状态信息,为所述客户端配置数据传输路径;即当客户端请求上传数据时,为客户端配置传输速度最快的传输路径,当客户端请求下载数据时,为客户端配置需求量最大的服务器对应的数据传输路径,可以避免由于客户端所属区域的传输路径访问量较大时,造成的数据传输效率较低的问题,进而能够提升数据传输的速度。A data transmission device provided by an embodiment of the present invention. When the data transmission request sent by the client is received, the data transmission path for data transmission is selected for the client through the acquired data transmission state information corresponding to each transmission path. Compared with currently assigning the transmission path corresponding to the region to which the IP belongs to the client for data transmission, the embodiment of the present invention configures the data transmission path for the client according to the data transmission state information; that is, when the client requests to upload data, Configure the transmission path with the fastest transmission speed for the client. When the client requests to download data, configure the data transmission path corresponding to the server with the largest demand for the client. , resulting in a problem of low data transmission efficiency, which in turn can increase the speed of data transmission.
再进一步地,作为图2所示方法的具体实现,本发明实施例提供了另一种数据传输装置,如图4所示,所述装置包括:接收单元41、获取单元42、配置单元43。Furthermore, as a specific implementation of the method shown in FIG. 2 , the embodiment of the present invention provides another data transmission device. As shown in FIG. 4 , the device includes: a receiving unit 41 , an acquiring unit 42 , and a configuring unit 43 .
接收单元41,可以用于接收客户端发送的数据传输请求。The receiving unit 41 may be configured to receive a data transmission request sent by a client.
获取单元42,可以用于获取各条传输路径分别对应的数据传输状态信息。The obtaining unit 42 may be configured to obtain data transmission state information corresponding to each transmission path.
配置单元43,可以用于根据所述获取单元42获取的数据传输状态信息,为所述客户端配置数据传输路径。The configuring unit 43 may be configured to configure a data transmission path for the client according to the data transmission status information acquired by the acquiring unit 42 .
当所述数据传输请求为上传数据请求时。When the data transmission request is a data upload request.
所述获取单元42,具体可以用于获取各条传输路径分别对应的数据传输速度。The acquiring unit 42 may specifically be configured to acquire data transmission speeds corresponding to respective transmission paths.
所述配置单元43,具体可以用于根据所述数据传输速度,为所述客户端配置数据传输路径。The configuration unit 43 may specifically be configured to configure a data transmission path for the client according to the data transmission speed.
所述获取单元42,还可以用于获取各条传输路径分别对应的日志访问信息;The obtaining unit 42 may also be used to obtain log access information corresponding to each transmission path;
所述获取单元42,具体还可以用于根据所述日志访问信息,获取各条传输路径分别对应的数据传输速度。The obtaining unit 42 may also specifically obtain the data transmission speed corresponding to each transmission path according to the log access information.
所述配置单元43包括:排序模块4301和配置模块4302。The configuration unit 43 includes: a sorting module 4301 and a configuration module 4302 .
排序模块4301,可以用于将所述各条传输路径分别对应的数据传输速度按照由快到慢的顺序进行排序。The sorting module 4301 may be configured to sort the data transmission speeds corresponding to the respective transmission paths in descending order from fast to slow.
配置模块4302,可以用于为所述客户端配置数据传输速度最快的数据传输路径。The configuration module 4302 may be configured to configure a data transmission path with the fastest data transmission speed for the client.
所述配置单元43还包括:判断模块4303。The configuration unit 43 also includes: a judging module 4303 .
所述判断模块4303,可以用于判断所述数据传输路径对应的服务器存储容量是否符合预设条件。The judging module 4303 can be used to judge whether the storage capacity of the server corresponding to the data transmission path meets a preset condition.
所述配置模块4302,具体可以用于若所述判断模块4303判断所述数据传输路径对应的服务器存储容量符合预设条件,为所述客户端配置数据传输速度最快的数据传输路径。The configuration module 4302 may specifically be configured to configure a data transmission path with the fastest data transmission speed for the client if the judging module 4303 judges that the storage capacity of the server corresponding to the data transmission path meets a preset condition.
当所述数据传输请求为下载数据请求时,所述下载数据请求中携带有需要下载的数据。When the data transmission request is a data download request, the data download request carries data to be downloaded.
所述获取单元42,具体还可以用于获取所述数据在各条传输路径分别对应的服务器中的需求量。The acquiring unit 42 may also be specifically configured to acquire the demand amount of the data in the servers respectively corresponding to the transmission paths.
所述装置还包括:判断单元44和保存单元45。The device also includes: a judging unit 44 and a saving unit 45.
所述判断单元44,可以用于判断需求量最大的服务器中是否保存有所述数据;The judging unit 44 can be used to judge whether the data is saved in the server with the largest demand;
所述保存单元45,可以用于若所述判断单元44判断需求量最大的服务器中未保存所述数据,则将其他服务器中的所述数据保存在所述服务器中。The saving unit 45 may be configured to save the data in other servers in the server if the judging unit 44 judges that the data is not saved in the server with the largest demand.
所述配置单元43,具体还可以用于为所述客户端配置所述需求量最大的服务器对应的数据传输路径。The configuration unit 43 may also specifically be configured to configure, for the client, the data transmission path corresponding to the server with the largest demand.
所述判断单元44,还可以用于判断所述需求量最大的传输路径对应的传输条件是否符合预设传输条件。The judging unit 44 may also be configured to judge whether the transmission condition corresponding to the transmission path with the largest demand meets the preset transmission condition.
所述配置单元43,具体还可以用于若所述判断单元44判断所述需求量最大的传输路径对应的传输条符合预设传输条件,则为所述客户端配置所述需求量最大的服务器对应的数据传输路径。The configuration unit 43 can also be specifically configured to configure the server with the largest demand for the client if the judging unit 44 judges that the transmission bar corresponding to the transmission path with the largest demand meets the preset transmission conditions. Corresponding data transmission path.
所述配置单元43,具体还可以用于若所述判断单元44判断所述需求量最大的传输路径对应的传输条件不符合预设传输条件,则为所述客户端配置数据传输速度最快的数据传输路径。The configuration unit 43 can also be specifically configured to configure the client with the fastest data transmission path if the judging unit 44 judges that the transmission condition corresponding to the transmission path with the largest demand does not meet the preset transmission conditions. data transfer path.
需要说明的是,本发明实施例提供的另一种数据传输装置所涉及各功能单元的其他对应描述,可以参考图2中的相应描述,在此不再赘述。It should be noted that, for other corresponding descriptions of the functional units involved in another data transmission device provided by the embodiment of the present invention, reference may be made to the corresponding description in FIG. 2 , which will not be repeated here.
本发明实施例提供的另一种数据传输装置。当接收到客户端发送的数据传输请求时,通过获取到的各条传输路径分别对应的数据传输状态信息,为客户端选择进行数据传输的数据传输路径。与目前为客户端分配IP所属区域对应的传输路径进行数据传输相比,本发明实施例根据所述数据传输状态信息,为所述客户端配置数据传输路径;即当客户端请求上传数据时,为客户端配置传输速度最快的传输路径,当客户端请求下载数据时,为客户端配置需求量最大的服务器对应的数据传输路径,可以避免由于客户端所属区域的传输路径访问量较大时,造成的数据传输效率较低的问题,进而能够提升数据传输的速度。Another data transmission device provided by an embodiment of the present invention. When the data transmission request sent by the client is received, the data transmission path for data transmission is selected for the client through the acquired data transmission state information corresponding to each transmission path. Compared with currently assigning the transmission path corresponding to the region to which the IP belongs to the client for data transmission, the embodiment of the present invention configures the data transmission path for the client according to the data transmission state information; that is, when the client requests to upload data, Configure the transmission path with the fastest transmission speed for the client. When the client requests to download data, configure the data transmission path corresponding to the server with the largest demand for the client. , resulting in a problem of low data transmission efficiency, which in turn can increase the speed of data transmission.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
可以理解的是,上述方法及装置中的相关特征可以相互参考。另外,上述实施例中的“第一”、“第二”等是用于区分各实施例,而并不代表各实施例的优劣。It can be understood that related features in the above methods and devices can refer to each other. In addition, "first" and "second" in the above-mentioned embodiments are used to distinguish each embodiment, and do not represent the advantages and disadvantages of each embodiment.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的请求控制方法、服务器、客户端及系统中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the request control method, server, client, and system according to the embodiments of the present invention. Or full functionality. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
本发明公开了A1、一种数据传输方法,包括:The invention discloses A1. A data transmission method, comprising:
接收客户端发送的数据传输请求;Receive the data transmission request sent by the client;
获取各条传输路径分别对应的数据传输状态信息;Obtain data transmission status information corresponding to each transmission path;
根据所述数据传输状态信息,为所述客户端配置数据传输路径,以使得客户端通过所述数据传输路径进行数据传输。According to the data transmission state information, configure a data transmission path for the client, so that the client performs data transmission through the data transmission path.
A2、如A1所述的方法,当所述数据传输请求为上传数据请求时,所述获取各条传输路径分别对应的数据传输状态信息包括:A2. The method as described in A1, when the data transmission request is a data upload request, the acquisition of data transmission status information corresponding to each transmission path includes:
获取各条传输路径分别对应的数据传输速度;Obtain the data transmission speed corresponding to each transmission path;
所述根据所述数据传输状态信息,为所述客户端配置数据传输路径包括:The configuring the data transmission path for the client according to the data transmission status information includes:
根据所述数据传输速度,为所述客户端配置数据传输路径。Configure a data transmission path for the client according to the data transmission speed.
A3、如A2所述的方法,所述获取各条传输路径数据传输的传输速度之前,还包括:A3, the method as described in A2, before obtaining the transmission speed of data transmission of each transmission path, it also includes:
获取各条传输路径分别对应的日志访问信息;Obtain the log access information corresponding to each transmission path;
所述获取各条传输路径分别对应的数据传输速度包括:The acquisition of data transmission speeds respectively corresponding to each transmission path includes:
根据所述日志访问信息,获取各条传输路径分别对应的数据传输速度。According to the log access information, the data transmission speed corresponding to each transmission path is acquired.
A4、如A2所述的方法,所述根据所述数据传输速度,为所述客户端配置数据传输路径包括:A4. The method as described in A2, wherein configuring the data transmission path for the client according to the data transmission speed includes:
将所述各条传输路径分别对应的数据传输速度按照由快到慢的顺序进行排序;Sorting the data transmission speeds corresponding to the respective transmission paths in order from fast to slow;
为所述客户端配置数据传输速度最快的数据传输路径。A data transmission path with the fastest data transmission speed is configured for the client.
A5、如A4所述的方法,所述为所述客户端配置数据传输速度最快的数据传输路径之前,还包括:A5. The method as described in A4, before configuring the data transmission path with the fastest data transmission speed for the client, it also includes:
判断所述数据传输路径对应的服务器存储容量是否符合预设条件;judging whether the storage capacity of the server corresponding to the data transmission path meets a preset condition;
所述为所述客户端配置数据传输速度最快的数据传输路径包括:The configuration of the data transmission path with the fastest data transmission speed for the client includes:
若符合预设条件,为所述客户端配置数据传输速度最快的数据传输路径。If the preset condition is met, a data transmission path with the fastest data transmission speed is configured for the client.
A6、如A1所述的方法,当所述数据传输请求为下载数据请求时,所述下载数据请求中携带有需要下载的数据的标识信息,所述获取各条传输路径分别对应的数据传输状态信息包括:A6. The method as described in A1, when the data transmission request is a download data request, the download data request carries the identification information of the data to be downloaded, and the acquisition of the data transmission status corresponding to each transmission path Information includes:
获取所述数据在各条传输路径分别对应的服务器中的需求量。Acquiring the demand amount of the data in the servers respectively corresponding to the transmission paths.
A7、如A6所述的方法,所述根据所述数据传输状态信息,为所述客户端配置数据传输路径之前,还包括:A7. The method as described in A6, before configuring the data transmission path for the client according to the data transmission state information, further includes:
判断需求量最大的服务器中是否保存有所述数据;Judging whether the data is stored in the server with the largest demand;
若未保存,则将其他服务器中的所述数据保存在所述服务器中;If not, save the data in other servers in the server;
所述根据所述数据传输状态信息,为所述客户端配置数据传输路径包括:The configuring the data transmission path for the client according to the data transmission status information includes:
为所述客户端配置所述需求量最大的服务器对应的数据传输路径。Configuring the data transmission path corresponding to the server with the largest demand for the client.
A8、如A7所述的方法,所述为所述客户端配置所述需求量最大的服务器对应的数据传输路径之前,还包括:A8. The method as described in A7, before configuring the data transmission path corresponding to the server with the largest demand for the client, it also includes:
判断所述需求量最大的传输路径对应的传输条件是否符合预设传输条件;Judging whether the transmission condition corresponding to the transmission path with the largest demand meets the preset transmission condition;
所述为所述客户端配置所述需求量最大的服务器对应的数据传输路径包括:The configuring the data transmission path corresponding to the server with the largest demand for the client includes:
若是,则为所述客户端配置所述需求量最大的服务器对应的数据传输路径;If so, configuring the data transmission path corresponding to the server with the largest demand for the client;
若否,则为所述客户端配置数据传输速度最快的数据传输路径。If not, configure the data transmission path with the fastest data transmission speed for the client.
本发明公开了B9、一种数据传输装置,包括:The invention discloses B9, a data transmission device, comprising:
接收单元,用于接收客户端发送的数据传输请求;a receiving unit, configured to receive a data transmission request sent by the client;
获取单元,用于获取各条传输路径分别对应的数据传输状态信息;an acquisition unit, configured to acquire data transmission status information corresponding to each transmission path;
配置单元,用于根据所述获取单元获取的数据传输状态信息,为所述客户端配置数据传输路径,以使得客户端通过所述数据传输路径进行数据传输。A configuring unit, configured to configure a data transmission path for the client according to the data transmission status information acquired by the acquiring unit, so that the client performs data transmission through the data transmission path.
B10、如B9所述的装置,当所述数据传输请求为上传数据请求时,B10, the device as described in B9, when the data transmission request is a data upload request,
所述获取单元,具体用于获取各条传输路径分别对应的数据传输速度;The obtaining unit is specifically used to obtain the data transmission speed corresponding to each transmission path;
所述配置单元,具体用于根据所述数据传输速度,为所述客户端配置数据传输路径。The configuration unit is specifically configured to configure a data transmission path for the client according to the data transmission speed.
B11、如B10所述的装置,B11. The device as described in B10,
所述获取单元,还用于获取各条传输路径分别对应的日志访问信息;The obtaining unit is also used to obtain log access information corresponding to each transmission path;
所述获取单元,具体还用于根据所述日志访问信息,获取各条传输路径分别对应的数据传输速度。The acquiring unit is specifically further configured to acquire data transmission speeds corresponding to respective transmission paths according to the log access information.
B12、如B10所述的装置,所述配置单元包括:B12, the device as described in B10, the configuration unit includes:
排序模块,用于将所述各条传输路径分别对应的数据传输速度按照由快到慢的顺序进行排序;A sorting module, configured to sort the data transmission speeds corresponding to the respective transmission paths in order from fast to slow;
配置模块,用于为所述客户端配置数据传输速度最快的数据传输路径。The configuration module is configured to configure a data transmission path with the fastest data transmission speed for the client.
B13、如B12所述的装置,所述配置单元还包括:判断模块;B13. The device as described in B12, the configuration unit further includes: a judging module;
所述判断模块,用于判断所述数据传输路径对应的服务器存储容量是否符合预设条件;The judging module is used to judge whether the storage capacity of the server corresponding to the data transmission path meets a preset condition;
所述配置模块,具体用于若所述判断模块判断所述数据传输路径对应的服务器存储容量符合预设条件,为所述客户端配置数据传输速度最快的数据传输路径。The configuration module is specifically configured to configure a data transmission path with the fastest data transmission speed for the client if the judging module judges that the storage capacity of the server corresponding to the data transmission path meets a preset condition.
B14、如B9所述的装置,当所述数据传输请求为下载数据请求时,所述下载数据请求中携带有需要下载的数据的标识信息,B14. The device as described in B9, when the data transmission request is a download data request, the download data request carries identification information of the data to be downloaded,
所述获取单元,具体还用于获取所述数据在各条传输路径分别对应的服务器中的需求量。The obtaining unit is further configured to obtain the demand amount of the data in the servers respectively corresponding to the transmission paths.
B15、如B14所述的装置,所述装置还包括:判断单元和保存单元;B15, the device as described in B14, described device also comprises: judging unit and preservation unit;
所述判断单元,用于判断需求量最大的服务器中是否保存有所述数据;The judging unit is used to judge whether the data is stored in the server with the largest demand;
所述保存单元,用于若所述判断单元判断需求量最大的服务器中未保存所述数据,则将其他服务器中的所述数据保存在所述服务器中;The saving unit is configured to save the data in other servers in the server if the judging unit judges that the data is not saved in the server with the largest demand;
所述配置单元,具体还用于为所述客户端配置所述需求量最大的服务器对应的数据传输路径。The configuration unit is specifically further configured to configure, for the client, the data transmission path corresponding to the server with the largest demand.
B16、如B15所述的装置,B16. A device as described in B15,
所述判断单元,还用于判断所述需求量最大的传输路径对应的传输条件是否符合预设传输条件;The judging unit is further configured to judge whether the transmission condition corresponding to the transmission path with the largest demand meets the preset transmission condition;
所述配置单元,具体还用于若所述判断单元判断所述需求量最大的传输路径对应的传输条件符合预设传输条件,则为所述客户端配置所述需求量最大的服务器对应的数据传输路径;The configuration unit is further configured to configure the data corresponding to the server with the largest demand for the client if the judging unit judges that the transmission condition corresponding to the transmission path with the largest demand meets the preset transmission condition. transmission path;
所述配置单元,具体还用于若所述判断单元判断所述需求量最大的传输路径对应的传输条件不符合预设传输条件,则为所述客户端配置数据传输速度最快的数据传输路径。The configuration unit is further configured to configure the data transmission path with the fastest data transmission speed for the client if the judging unit judges that the transmission condition corresponding to the transmission path with the largest demand does not meet the preset transmission conditions .
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510379936.4A CN105100224A (en) | 2015-07-01 | 2015-07-01 | Data transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510379936.4A CN105100224A (en) | 2015-07-01 | 2015-07-01 | Data transmission method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105100224A true CN105100224A (en) | 2015-11-25 |
Family
ID=54579741
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510379936.4A Pending CN105100224A (en) | 2015-07-01 | 2015-07-01 | Data transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105100224A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106791679A (en) * | 2016-12-30 | 2017-05-31 | 东方网力科技股份有限公司 | A kind of determination method and device of video transmission path |
CN108881057A (en) * | 2018-04-20 | 2018-11-23 | 网宿科技股份有限公司 | Return the selection method and traffic distribution device of source route |
CN109003216A (en) * | 2018-08-20 | 2018-12-14 | 西安创艺教育培训中心有限公司 | Cloud education and study platform based on two-dimensional code scanning |
CN110047423A (en) * | 2019-04-13 | 2019-07-23 | 上海影隆光电有限公司 | A kind of LED display system controlled based on cloud platform management and Internet of Things |
CN110417922A (en) * | 2019-09-11 | 2019-11-05 | 北京搜狐新动力信息技术有限公司 | A data transmission method, device and system |
CN113452608A (en) * | 2020-03-25 | 2021-09-28 | 阿里巴巴集团控股有限公司 | Data transmission method and device, electronic equipment and computer readable medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101257670A (en) * | 2007-02-28 | 2008-09-03 | 中国移动通信集团公司 | Method, device and system for mobile phone file search and download |
CN101764747A (en) * | 2009-12-24 | 2010-06-30 | 北京世纪互联宽带数据中心有限公司 | Intelligent dispatching method, device and system of content delivery network flow |
CN102918806A (en) * | 2010-04-21 | 2013-02-06 | 汤姆森特许公司 | Method for evaluating an available path bitrate based on an acknowledgment path selection |
CN103532867A (en) * | 2013-10-30 | 2014-01-22 | 四川迅游网络科技股份有限公司 | Acceleration transmission method and system for network data |
CN103684576A (en) * | 2013-11-29 | 2014-03-26 | 西安空间无线电技术研究所 | High-speed data communication method based on minisatellite cluster ad-hoc network |
CN103716357A (en) * | 2012-09-29 | 2014-04-09 | 中国移动通信集团广东有限公司 | Mobile information synchronization method and apparatus, and mobile communication terminal |
CN104426917A (en) * | 2013-08-19 | 2015-03-18 | 中兴通讯股份有限公司 | Downloading processing method, downloading processing device and client |
-
2015
- 2015-07-01 CN CN201510379936.4A patent/CN105100224A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101257670A (en) * | 2007-02-28 | 2008-09-03 | 中国移动通信集团公司 | Method, device and system for mobile phone file search and download |
CN101764747A (en) * | 2009-12-24 | 2010-06-30 | 北京世纪互联宽带数据中心有限公司 | Intelligent dispatching method, device and system of content delivery network flow |
CN102918806A (en) * | 2010-04-21 | 2013-02-06 | 汤姆森特许公司 | Method for evaluating an available path bitrate based on an acknowledgment path selection |
CN103716357A (en) * | 2012-09-29 | 2014-04-09 | 中国移动通信集团广东有限公司 | Mobile information synchronization method and apparatus, and mobile communication terminal |
CN104426917A (en) * | 2013-08-19 | 2015-03-18 | 中兴通讯股份有限公司 | Downloading processing method, downloading processing device and client |
CN103532867A (en) * | 2013-10-30 | 2014-01-22 | 四川迅游网络科技股份有限公司 | Acceleration transmission method and system for network data |
CN103684576A (en) * | 2013-11-29 | 2014-03-26 | 西安空间无线电技术研究所 | High-speed data communication method based on minisatellite cluster ad-hoc network |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106791679A (en) * | 2016-12-30 | 2017-05-31 | 东方网力科技股份有限公司 | A kind of determination method and device of video transmission path |
CN106791679B (en) * | 2016-12-30 | 2019-10-18 | 东方网力科技股份有限公司 | A kind of determination method and device of video transmission path |
CN108881057A (en) * | 2018-04-20 | 2018-11-23 | 网宿科技股份有限公司 | Return the selection method and traffic distribution device of source route |
CN109003216A (en) * | 2018-08-20 | 2018-12-14 | 西安创艺教育培训中心有限公司 | Cloud education and study platform based on two-dimensional code scanning |
CN110047423A (en) * | 2019-04-13 | 2019-07-23 | 上海影隆光电有限公司 | A kind of LED display system controlled based on cloud platform management and Internet of Things |
CN110417922A (en) * | 2019-09-11 | 2019-11-05 | 北京搜狐新动力信息技术有限公司 | A data transmission method, device and system |
CN113452608A (en) * | 2020-03-25 | 2021-09-28 | 阿里巴巴集团控股有限公司 | Data transmission method and device, electronic equipment and computer readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105100224A (en) | Data transmission method and device | |
US10235047B2 (en) | Memory management method, apparatus, and system | |
KR102289235B1 (en) | Private content distribution network | |
CN104202434A (en) | Node access method and device | |
JP7200078B2 (en) | System-on-chip with I/O steering engine | |
CN110837479B (en) | Data processing method, related equipment and computer storage medium | |
WO2015096681A1 (en) | Method and device for processing service access | |
CN103780676B (en) | File transmission method, device and system | |
CN110519183A (en) | A method, device, electronic device and storage medium for node speed limiting | |
CN103530390B (en) | The method and apparatus of webpage capture | |
CN104063501B (en) | copy balance method based on HDFS | |
JP7648799B2 (en) | Method, apparatus and medium for triggering edge server discovery and instantiation by 5GMS aware applications | |
CN103607424A (en) | Server connection method and server system | |
JP2019016042A (en) | Data acquisition program, device, and method | |
CN114090623A (en) | Method and device for creating cache resources, electronic equipment and storage medium | |
CN117742936A (en) | Method, system, equipment and medium based on multi-cloud resource scheduling | |
US9716666B2 (en) | Process cage providing attraction to distributed storage | |
JP6336065B2 (en) | How to rate-control data usage using a virtual private network | |
US20230188464A1 (en) | Traffic service threads for large pools of network addresses | |
CN114911602A (en) | Load balancing method, device, equipment and storage medium for server cluster | |
CN108234638A (en) | A kind of data processing method and device based on content distributing network CDN | |
CN103530392B (en) | Determine the method and apparatus of crawl flow | |
US20130054691A1 (en) | Flexible rule based multi-protocol peer-to-peer caching | |
CN102393838A (en) | Data processing method and device, PCI-E (peripheral component interface-express) bus system, and server | |
CN108270857A (en) | A kind of cloud computing operating system load-balancing method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151125 |
|
RJ01 | Rejection of invention patent application after publication |