CN103747112A - CDN back-to-source method, first server and system thereof - Google Patents

CDN back-to-source method, first server and system thereof Download PDF

Info

Publication number
CN103747112A
CN103747112A CN 201310722708 CN201310722708A CN103747112A CN 103747112 A CN103747112 A CN 103747112A CN 201310722708 CN201310722708 CN 201310722708 CN 201310722708 A CN201310722708 A CN 201310722708A CN 103747112 A CN103747112 A CN 103747112A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
server
file
source
back
dynamic
Prior art date
Application number
CN 201310722708
Other languages
Chinese (zh)
Inventor
李洪福
夏彦刚
吴亚洲
Original Assignee
乐视网信息技术(北京)股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date

Links

Abstract

The embodiment of the invention provides a CDN back-to-source method, a first server and a system thereof, and relates to the field of network multimedia technology. According to the invention, a dynamic back-to-source address can be flexibly allocated for a server such that the server can flexibly carry out back-to-source operation according to the dynamic back-to-source address. Thus, visit pressure of a CDN system is balanced; system overload is avoided; system resources are utilized reasonably; and performance of the CDN system is improved. The method comprises the following steps: the first server acquires a file request instruction which contains an identifier of a requested file; the first server judges whether a file corresponding to the identifier is stored in the first server; if the file is not stored in the first server, the first server acquires the dynamic back-to-source address; and the first server downloads the file from a second server according to the back-to-source address.

Description

—种CDN回源的方法、第一服务器及系统 - Method CDN back to the source of the seed, and the first server system

技术领域 FIELD

[0001] 本发明涉及网络多媒体技术领域,尤其涉及一种CDN回源的方法、第一服务器及系统。 [0001] The present invention relates to network multimedia technologies, and particularly to a method of CDN back to the source, and the first server system.

背景技术 Background technique

[0002] Q)N (Content Delivery Network,内容分发网络)是一种通过在网络各处放置节点服务器所构成的在现有的互联网基础之上的一层智能虚拟网络。 [0002] Q) N (Content Delivery Network, the content distribution network) by placing a layer of intelligence on the existing Internet-based server nodes consisting of virtual networks throughout the network. CDN能够实时地根据网络流量和各节点的连接、负载状况以及到用户的距离和响应时间等综合信息将用户的请求重新导向离用户最近的服务节点上,其目的是能够选择离用户相对较近的节点向用户发送用户所需的内容,缓解网络拥挤的状况,提高网站的响应速度。 CDN network traffic in real time according to each node and is connected, load conditions and the distance to the user's request and the response time integrated information from the user on the user redirect nearest service node, is capable of selecting an object from the user is relatively close the node sends content desired by the user to the user, to ease network congestion status, improve the response speed of the site.

[0003] 当服务器在响应用户输入的指令时,如果服务器中没有用户输入的指令所指示的文件,通常需要去别的服务器上进行回源。 [0003] When carried back to the source server in response to an instruction input by the user, if a file server does not instruct the user input indicates, on other servers typically needs to go. 在现有技术中,服务器进行回源的方法通常是根据服务器内部配置好的固定的回源地址,去别的服务器上进行回源。 In the prior art, the server process back to the source is generally configured according to a fixed back to the source address of the internal server, on the other to be back to the source server.

[0004] 然而,由于现有技术中服务器只能根据服务器内部配置好的固定的回源地址进行回源,无法灵活地为服务器分配回源地址。 [0004] However, since the prior art can only be configured in a fixed server back to the source address back to the source, it can not be flexibly assigned back to the source address for the server according to the internal server. 而且,当有许多服务器同时去固定的回源地址上回源时,会导致提供回源的服务器的访问压力不均衡,产生系统过载、系统资源利用不合理的情况,影响了CDN系统的性能。 Moreover, when the back to the source address many servers simultaneously to fix the back to the source, cause an access pressure provided back to the source server is not balanced, resulting in the case of system overload, the system irrational use of resources, affecting the performance of the CDN system.

发明内容 SUMMARY

[0005] 本发明的实施例提供一种CDN回源的方法、第一服务器及系统,能够灵活地为服务器分配动态回源地址,以使得服务器能够灵活地根据动态回源地址进行回源,均衡了⑶N系统的访问压力,避免了系统过载,合理地利用系统资源,提升了CDN系统的性能。 [0005] Embodiments of the present invention provides a method of CDN back to the source, the first server system and can be flexibly assigned dynamic address back to the source server to enable the server to flexibly back to the source address back to the source in accordance with the dynamic equalizer the pressure ⑶N access system, to avoid overloading the system, rational use of system resources to improve the performance of the CDN system.

[0006] 为达到上述目的,本发明的实施例采用如下技术方案: [0006] To achieve the above object, embodiments of the present invention adopts the following technical solutions:

[0007] 第一方面,本发明实施例提供一种⑶N回源的方法,应用于⑶N系统,所述方法包括: [0007] In a first aspect, the present invention provides a method for ⑶N back to the source, which is applied ⑶N system, the method comprising:

[0008] 第一服务器获取文件请求指令,所述文件请求指令中包含请求的文件的标识; [0008] first obtain the file server request command, the file request command includes identification of the requested file;

[0009] 所述第一服务器判断所述第一服务器内是否存储了所述标识对应的文件; [0009] The first server determines whether a file corresponding to the identifier is stored in the first server;

[0010] 若所述第一服务器内未存储所述文件,所述第一服务器则获取动态回源地址; [0010] When the first server does not store the file, the server obtains the first dynamic address back to the source;

[0011] 所述第一服务器根据所述动态回源地址,从第二服务器上下载所述文件。 [0011] The first server according to the dynamic address back to the source, downloading the file from the second server.

[0012] 在第一种可能的实现方式中,根据第一方面,若所述第一服务器内存储了所述文件,所述第一服务器则响应所述文件请求指令。 [0012] In a first possible implementation, according to the first aspect, when the first server stores said file, said first file server in response to the request command.

[0013] 在第二种可能的实现方式中,结合第一方面或第一种可能的实现方式,在所述第一服务器根据所述动态回源地址,从第二服务器上下载所述文件后,所述方法还包括: After [0013] In a second possible implementation manner, the binding of the first aspect or the first possible implementation, according to the dynamic address back to the source, downloading the file from the first server to the second server the method further comprising:

[0014] 所述第一服务器存储从第二服务器上下载的所述文件并响应所述文件请求指令。 [0014] The first server stores downloaded from the file server and the second file in response to the request command.

[0015] 在第三种可能的实现方式中,结合第一方面或第一种可能的实现方式或第二种可能的实现方式,若所述第一服务器内未存储所述文件,所述第一服务器则获取动态回源地址,具体包括: [0015] In a third possible implementation manner, the binding of the first aspect or the first possible implementation or the second possible implementation, if the file is not stored within said first server, said first a server obtains a dynamic address back to the source, including:

[0016] 若所述第一服务器内未存储所述文件,所述第一服务器则获取CDN控制中心生成的统一资源定位符URL参数,所述URL参数至少包括所述动态回源地址; [0016] When the first server does not store the file, then the first server acquires a uniform resource locator (URL) parameters generated CDN control center, the URL of the dynamic parameters comprise at least back to the source address;

[0017] 所述第一服务器解析所述URL参数,得到所述动态回源地址。 [0017] The first server parses the URL parameters, to obtain the dynamic address back to the source.

[0018] 在第四种可能的实现方式中,结合第一方面或第一种可能的实现方式至第三种可能的实现方式,所述动态回源地址至少包括回源服务器的IP地址; [0018] In a fourth possible implementation manner, the binding of the first aspect or the first possible implementation to a third possible implementation, the dynamic back to the source address back to the source includes at least the IP address of the server;

[0019] 所述第一服务器根据所述动态回源地址,从第二服务器上下载所述文件,具体包括: [0019] The first server according to the dynamic address back to the source, downloading the file from the second server comprises:

[0020] 所述第一服务器根据所述回源服务器的IP地址,查找所述第二服务器; [0020] The first server according to the IP address back to the source server, searching for the second server;

[0021] 在所述第一服务器查找到所述第二服务器后,所述第一服务器从所述第二服务器上下载所述文件。 [0021] After finding the first server to the second server, the first server to download the file from the second server.

[0022] 第二方面,本发明实施例提供一种第一服务器,应用于⑶N系统,所述第一服务器包括: [0022] In a second aspect, the present invention provides a embodiment of a first server, applied ⑶N system, the first server comprising:

[0023] 第一获取模块,用于获取文件请求指令,所述文件请求指令中包含请求的文件的标识; [0023] The first acquiring module, for acquiring a file request command, the file request command includes identification of the requested file;

[0024] 判断模块,用于判断所述第一服务器内是否存储了所述标识对应的文件; [0024] determining module for determining whether a file corresponding to the identifier is stored in said first server determining;

[0025] 第二获取模块,用于若所述第一服务器内未存储所述文件,则获取动态回源地址; [0025] The second acquiring module, configured to, if the first is not stored within the file server, then obtain a dynamic address back to the source;

[0026] 下载模块,用于根据所述动态回源地址,从第二服务器上下载所述文件。 [0026] The download module, according to the dynamic address back to the source, downloading the file from the second server.

[0027] 在第一种可能的实现方式中,根据第二方面,所述第一服务器,还包括: [0027] In a first possible implementation, according to the second aspect, the first server further comprising:

[0028] 第一响应模块,用于若所述第一服务器内存储了所述文件,则响应所述文件请求指令。 [0028] The first response module configured to, if the first server stores the file in response to the file request command.

[0029] 在第二种可能的实现方式中,结合第二方面或第一种可能的实现方式,所述第一服务器,还包括: [0029] In a second possible implementation manner, the binding of the second aspect or the first possible implementation manner, the first server further comprising:

[0030] 第二响应模块,用于在所述下载模块根据所述动态回源地址,从第二服务器上下载所述文件后,存储从第二服务器上下载的所述文件并响应所述文件请求指令。 [0030] The second response means for downloading the module according to the dynamic address back to the source, after downloading the file from the second server, storing the downloaded file from the second server in response to said file request command.

[0031] 在第三种可能的实现方式中,结合第二方面或第一种可能的实现方式或第二种可能的实现方式,所述第二获取模块,具体包括: [0031] In a third possible implementation manner, the binding of the second aspect or the first or second possible implementation manner possible implementation manner, the second acquiring module comprises:

[0032] 第二获取子模块,用于若所述第一服务器内未存储所述文件,则获取CDN控制中心生成的统一资源定位符URL参数,所述URL参数至少包括所述动态回源地址; [0032] The second obtaining sub-module, configured to, if the file is not stored within said first server, obtain a uniform resource locator (URL) parameters generated CDN control center, the URL of the dynamic parameters comprise at least back to the source address ;

[0033] 解析模块,用于解析所述URL参数,得到所述动态回源地址。 [0033] The parsing module configured to parse the URL parameters, to obtain the dynamic address back to the source.

[0034] 在第四种可能的实现方式中,结合第二方面或第一种可能的实现方式至第三种可能的实现方式,所述动态回源地址至少包括回源服务器的IP地址; [0034] In a fourth possible implementation manner, the binding of the second aspect or the first possible implementation to a third possible implementation, the dynamic back to the source address back to the source includes at least the IP address of the server;

[0035] 所述下载模块,具体包括: [0035] The download module comprises:

[0036] 查找模块,用于根据所述回源服务器的IP地址,查找所述第二服务器; [0036] The searching module, according to the IP address back to the source server, searching for the second server;

[0037] 下载子模块,用于在所述查找模块查找到所述第二服务器后,从所述第二服务器上下载所述文件。 [0037] downloading submodule, after said searching module to find the second server, downloading the file from the second server.

[0038] 第三方面,本发明实施例提供一种⑶N系统,包括具有上述任一特征的所述第一服务器,为所述第一服务器提供回源的至少一个第二服务器,以及用于生成URL参数的CDN控制中心。 [0038] a third aspect, embodiments of the present invention provides a ⑶N system comprising a first server having any of these features, there is provided at least one second back to the source server to the first server, and for generating CDN control Center URL parameters.

[0039] 本发明实施例提供的一种⑶N回源的方法、第一服务器及系统,⑶N回源的方法包括:第一服务器获取文件请求指令,文件请求指令中包含请求的文件的标识;第一服务器判断第一服务器内是否存储了标识对应的文件;若第一服务器内未存储文件,第一服务器则获取动态回源地址;第一服务器根据动态回源地址,从第二服务器上下载文件。 [0039] A method ⑶N back to the source according to an embodiment of the present invention, a first server and a system, back to the source ⑶N method comprises: obtaining a first file server request command file request command includes identification of the requested file; first a storage server determines whether the first server identifier corresponding to the file; if the file is not stored in the first server, the first server obtains the dynamic address back to the source; the first server according to a dynamic address back to the source, the second download files from the server .

[0040] 与现有技术中服务器只能根据服务器内部配置好的固定的回源地址进行回源的方法相比,通过本方案,由于第一服务器能够判断第一服务器内是否存储了文件,并且在第一服务器内未存储文件时获取动态回源地址,以及根据动态回源地址,从第二服务器上下载文件。 [0040] Compared with the method server back to the source only prior art internal server configured in accordance with a fixed address back to the source, with the present embodiment, since the first server can determine whether the file is stored in the first server, and Get back to the source dynamic address is not stored within the first file server, and the dynamic address back to the source, download the file from the second server. 因此,服务器能够灵活地根据动态回源地址进行回源,不再拘泥于服务器内部配置好的固定的回源地址,由此均衡了CDN系统的访问压力,避免了系统过载,合理地利用系统资源,进而提升了CDN系统的性能。 Thus, the server can be flexibly performed according to the dynamic back to the source address back to the source, no longer stick to the internal server configured fixed address back to the source, thereby equalizing the pressure CDN access system, to avoid overloading the rational use of system resources , thereby enhancing the performance of the CDN system.

附图说明 BRIEF DESCRIPTION

[0041] 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 [0041] In order to more clearly illustrate the technical solutions in the embodiments or the prior art embodiment of the present invention, briefly introduced hereinafter, embodiments are described below in the accompanying drawings or described in the prior art needed to be used in describing the embodiments the drawings are only some embodiments of the present invention, those of ordinary skill in the art is concerned, without creative efforts, can derive from these drawings other drawings.

[0042] 图1为本发明实施例1中的一种CDN回源的方法的流程示意图; [0042] FIG. 1 is a schematic flow of a method for the CDN in Example 1 back to the source of the embodiment of the invention;

[0043] 图2为本发明实施例2中的一种CDN回源的方法的流程示意图; [0043] FIG. 2 is a schematic flow of the method in Example 2 a CDN back to the source of the embodiment of the invention;

[0044] 图3为本发明实施例3中的一种第一服务器的结构不意图一; Structure [0044] FIG 3 a medium of Example 3 of the first embodiment of the server of the present invention is not intended one;

[0045] 图4为本发明实施例3中的一种第一服务器的结构示意图二; Structure [0045] FIG 4 a medium according to the first server 3 a schematic view of two embodiments of the present invention;

[0046] 图5为本发明实施例3中的一种第一服务器的结构不意图三; Structure [0046] FIG. 5 is a medium in Example 3 of the first embodiment of the present invention, the server is not intended to three;

[0047] 图6为本发明实施例3中的一种第一服务器的结构示意图四; Structure [0047] FIG 6 a medium according to the first server 3 a schematic view of embodiment four of the present invention;

[0048] 图7为本发明实施例3中的一种第一服务器的结构不意图五。 Structure [0048] FIG 7 a medium of Example 3 of the first embodiment of the present invention, the server is not intended to five.

具体实施方式 detailed description

[0049] 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 [0049] below in conjunction with the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described embodiments are merely part of embodiments of the present invention, but not all embodiments example. 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without any creative effort shall fall within the scope of the present invention.

[0050] 另外,本文中术语“系统”和“网络”在本文中常被可互换使用。 [0050] Further, the terms "system" and "network" are often used interchangeably herein. 本文中术语“和”,仅仅是一种描述关联对象的关联关系,表不可以存在二种关系,例如,A和B,可以表不:单独存在A,同时存在A和B,单独存在B这三种情况。 The term "and" merely describe a relationship of associated objects, the table can not exist two kinds of relationships, e.g., A and B, the table can not be: the presence of A alone, A and B are simultaneously present, it is present alone B three conditions. 另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。 Further, the character "/", represents the general context-objects is a "or" relationship.

[0051] 本发明提及的⑶N控制中心进行⑶N系统的管理和控制,第一服务器和第二服务器既可以是存储节点覆盖范围下的服务器,也可以是边缘节点覆盖范围下的服务器,本发明不做限制。 [0051] ⑶N control center of the present invention mentioned ⑶N management and control system, the first and second servers can either be under the coverage of the server storage node may be a server at the edge of coverage node, the present invention no limit. 其中,存储节点是存储了系统所有文件的节点,边缘节点是为用户提供服务的普通节点。 Wherein the storage node is stored in the file system of all nodes, edge nodes are common nodes to provide users with services. 通常的,存储节点是核心CDN节点,存储了系统内的所有文件;边缘节点是边缘CDN节点,供用户进行访问。 Usually, the storage node is the core of CDN node stores all files in the system; edge node is a CDN edge node for users to access. [0052] 实施例1 [0052] Example 1

[0053] 本发明实施例提供一种CDN回源的方法,可以应用于CDN系统,如图1所示,CDN回源的方法,包括: [0053] The method of the present invention provides a CDN back to the source to be applied to CDN systems, methods CDN back to the source 1 shown in FIG comprising:

[0054] S101、第一服务器获取文件请求指令,文件请求指令中包含请求的文件的标识。 [0054] S101, the server first acquires the file request command file request command includes identification of the requested file.

[0055] ⑶N是一种通过在网络各处放置节点服务器所构成的在现有的互联网基础之上的一层智能虚拟网络。 [0055] ⑶N by placing a layer of intelligence on the existing Internet-based server nodes consisting of virtual networks throughout the network. 在现有技术中,服务器进行回源的方法通常是根据服务器内部配置好的固定的回源地址,去别的服务器上进行回源。 In the prior art, the server process back to the source is generally configured according to a fixed back to the source address of the internal server, on the other to be back to the source server. 然而,由于现有技术中服务器只能根据服务器内部配置好的固定的回源地址进行回源,无法灵活地为服务器分配回源地址。 However, since the prior art only configured fixed server back to the source address back to the source, it can not be flexibly assigned back to the source address for the server according to the internal server. 而且,当有许多服务器同时去固定的回源地址上回源时,会导致提供回源的服务器的访问压力不均衡,产生系统过载、系统资源利用不合理的情况,影响了CDN系统的性能。 Moreover, when the back to the source address many servers simultaneously to fix the back to the source, cause an access pressure provided back to the source server is not balanced, resulting in the case of system overload, the system irrational use of resources, affecting the performance of the CDN system.

[0056] 本发明实施例提供一种⑶N回源的方法,能够灵活地为服务器分配动态回源地址,以使得服务器能够灵活地根据动态回源地址进行回源,均衡了CDN系统的访问压力,避免了系统过载,合理地利用系统资源,提升了CDN系统的性能。 Embodiment [0056] The present invention provides a method for ⑶N back to the source can be flexibly assigned dynamic address back to the source server to enable the server to flexibly back to the source address back to the source in accordance with a dynamic, pressure equalization CDN access system, to avoid overloading the system, rational use of system resources to improve the performance of the CDN system.

[0057] 首先,第一服务器获取文件请求指令。 [0057] First, the first file server acquisition request command. 其中,文件请求指令中包含请求的文件的标识。 Wherein the file request command includes identification of the requested file.

[0058] 需要说明的是,本发明实施例提到的文件请求指令是指用户输入的文件请求指令,该指令用于指示用户向CDN系统请求文件,文件请求指令中包含着请求的文件的标识。 [0058] Incidentally, the file mentioned embodiment of the present invention refers to a file request command requesting an instruction input by the user, the instruction indicating that the user requests the file system to a CDN, file identification request command includes a requested file . 其中,该文件可以是视频文件,也可以是图片文件等其他格式的文件;标识可以是请求的文件的名称,可以是请求的文件的ID等任何可以标记请求的文件的标识,本发明不做限制。 Wherein, the file may be a video file, other formats may be image files and other documents; identification may be the name of the file request, the file may be identified may be any marker request ID of the requested file, the present invention is not limit. 例如,文件请求指令是一种视频播放指令,表示用户向第一服务器请求播放该指令对应的视频A,视频播放指令中包含请求的视频A的标识。 For example, the file is a video playback request command instruction indicating a user request to the first server displays the video corresponding to the command A, the video player identifying the request command includes video A. 第一服务器能够获取到视频播放指令,得知用户向第一服务器请求视频A文件。 The first server can acquire an instruction to the video player, the user requests that a video file A to the first server.

[0059] S102、第一服务器判断第一服务器内是否存储了标识对应的文件。 [0059] S102, the server first determines whether a file corresponding to the identifier is stored in the first server.

[0060] 在第一服务器获取到文件请求指令后,第一服务器需要判断第一服务器内是否存储了标识对应的文件。 [0060] After obtaining the first request command to the file server, the first server needs to judge whether the file corresponding to the identifier is stored in the first server. 第一服务器判断第一服务器内是否存储了文件,其实就是在判断第一服务器是否需要回源。 The first server to determine whether the file is stored in the first server, in fact, the server needs to determine whether the first back to the source.

[0061] 需要说明的是,第一服务器判断第一服务器内是否存储了标识对应的文件的方法是:第一服务器根据标识,查找第一服务器内是否存在与标识相匹配的文件。 [0061] Incidentally, the first server determines whether or not the server stores a first file corresponding to the identification method is: according to a first server identifier, to find whether there is a file with the identification that matches the first server. 示例性的,所述标识为一串二进制代码,第一服务器判断第一服务器内是否存储了标识对应的文件的方法就是第一服务器在自身存储的所有文件中查找是否有文件与这串二进制代码向匹配。 Exemplary, the identifier is a string of binary code, the first server determines whether or not the server stores a first file corresponding to the identification method of a first server to find whether there is a file in which all the binary code string stored in the file itself to match.

[0062] S103、若第一服务器内未存储文件,第一服务器则获取动态回源地址。 [0062] S103, if the file is not stored in the first server, the first server obtains the dynamic address back to the source.

[0063] 若第一服务器内未存储文件,则表明第一服务器需要回源,第一服务器获取动态回源地址。 [0063] If the file is not stored in the first server, the first server needs to show back to the source, the first server to obtain dynamic back to the source address.

[0064] 可选的,若第一服务器内未存储文件,第一服务器则获取动态回源地址的方法具体可以包括:若第一服务器内未存储文件,第一服务器则获取CDN控制中心生成的统一资源定位符URL参数,URL参数至少包括动态回源地址;第一服务器解析URL参数,得到动态回源地址。 [0064] Alternatively, if the file is not stored in the first server, the first server obtains the source address back to the dynamic method may specifically include: If the file is not stored in the first server, the first server acquires CDN generated control center uniform resource locator (URL) parameters, dynamic URL parameters include at least back to the source address; the first server parses the URL parameter to obtain the dynamic address back to the source.

[0065] S104、第一服务器根据动态回源地址,从第二服务器上下载文件。 [0065] S104, the first server back to the source address according to the dynamic, download the file from the second server.

[0066] 在第一服务器获取到动态回源地址后,第一服务器根据动态回源地址,从第二服务器上下载文件。 [0066] After the first server to obtain a dynamic address back to the source, the first according to the dynamic server address back to the source, download the file from the second server. 其中,第二服务器为动态回源地址对应的服务器,第一服务器从第二服务器上下载文件即可完成回源。 Wherein the second server back to the source address of the corresponding dynamic server, the first server from the second server to complete the download files back to the source.

[0067] 可选的,动态回源地址至少包括回源服务器的IP (Internet Protocol,网络互连协议)地址。 [0067] Alternatively, the dynamic back to the source address at least IP (Internet Protocol, Internet Protocol) address back to the source server.

[0068] 进一步可选的,第一服务器根据动态回源地址,从第二服务器上下载文件的方法具体可以包括:第一服务器根据回源服务器的IP地址,查找第二服务器;在第一服务器查找到第二服务器后,第一服务器从第二服务器上下载文件。 [0068] Further, optionally, the first server according to the dynamic address back to the source, to download files from the server on the second method may specifically include: a first server according to the IP address back to the source server, locate a second server; the first server after finding the second server, the first server to download files from the second server.

[0069] 本发明实施例提供的一种⑶N回源的方法、第一服务器及系统,⑶N回源的方法包括:第一服务器获取文件请求指令,文件请求指令中包含请求的文件的标识;第一服务器判断第一服务器内是否存储了标识对应的文件;若第一服务器内未存储文件,第一服务器则获取动态回源地址;第一服务器根据动态回源地址,从第二服务器上下载文件。 [0069] A method ⑶N back to the source according to an embodiment of the present invention, a first server and a system, back to the source ⑶N method comprises: obtaining a first file server request command file request command includes identification of the requested file; first a storage server determines whether the first server identifier corresponding to the file; if the file is not stored in the first server, the first server obtains the dynamic address back to the source; the first server according to a dynamic address back to the source, the second download files from the server .

[0070] 与现有技术中服务器只能根据服务器内部配置好的固定的回源地址进行回源的方法相比,通过本方案,由于第一服务器能够判断第一服务器内是否存储了文件,并且在第一服务器内未存储文件时获取动态回源地址,以及根据动态回源地址,从第二服务器上下载文件。 [0070] Compared with the method server back to the source only prior art internal server configured in accordance with a fixed address back to the source, with the present embodiment, since the first server can determine whether the file is stored in the first server, and Get back to the source dynamic address is not stored within the first file server, and the dynamic address back to the source, download the file from the second server. 因此,服务器能够灵活地根据动态回源地址进行回源,不再拘泥于服务器内部配置好的固定的回源地址,由此均衡了CDN系统的访问压力,避免了系统过载,合理地利用系统资源,进而提升了CDN系统的性能。 Thus, the server can be flexibly performed according to the dynamic back to the source address back to the source, no longer stick to the internal server configured fixed address back to the source, thereby equalizing the pressure CDN access system, to avoid overloading the rational use of system resources , thereby enhancing the performance of the CDN system.

[0071] 实施例2 [0071] Example 2

[0072] 本发明实施例提供一种⑶N回源的方法,可以应用于⑶N系统,如图2所示,⑶N回源的方法,包括: [0072] The method of the present invention provides a ⑶N back to the source to be applied to ⑶N systems, methods ⑶N back to the source shown in FIG. 2, comprising:

[0073] S201、第一服务器获取文件请求指令,文件请求指令中包含请求的文件的标识。 [0073] S201, the server first acquires the file request command file request command includes identification of the requested file.

[0074] ⑶N是一种通过在网络各处放置节点服务器所构成的在现有的互联网基础之上的一层智能虚拟网络。 [0074] ⑶N by placing a layer of intelligence on the existing Internet-based server nodes consisting of virtual networks throughout the network. 由于现有技术中服务器只能根据服务器内部配置好的固定的回源地址进行回源,无法灵活地为服务器分配回源地址。 Since the prior art can only be configured in a fixed server back to the source address back to the source, it can not be flexibly assigned back to the source address for the server according to the internal server. 而且,当有许多服务器同时去固定的回源地址上回源时,会导致提供回源的服务器的访问压力不均衡,产生系统过载、系统资源利用不合理的情况,影响了CDN系统的性能。 Moreover, when the back to the source address many servers simultaneously to fix the back to the source, cause an access pressure provided back to the source server is not balanced, resulting in the case of system overload, the system irrational use of resources, affecting the performance of the CDN system.

[0075] 本发明实施例提供一种⑶N回源的方法,能够灵活地为服务器分配动态回源地址,以使得服务器能够灵活地根据动态回源地址进行回源,均衡了CDN系统的访问压力,避免了系统过载,合理地利用系统资源,提升了CDN系统的性能。 Embodiment [0075] The present invention provides a method for ⑶N back to the source can be flexibly assigned dynamic address back to the source server to enable the server to flexibly back to the source address back to the source in accordance with a dynamic, pressure equalization CDN access system, to avoid overloading the system, rational use of system resources to improve the performance of the CDN system.

[0076] 首先,第一服务器获取文件请求指令。 [0076] First, the first file server acquisition request command. 其中,文件请求指令中包含请求的文件的标识。 Wherein the file request command includes identification of the requested file.

[0077] 需要说明的是,本发明实施例提到的文件请求指令是指用户输入的文件请求指令,该指令用于指示用户向CDN系统请求文件,文件请求指令中包含着请求的文件的标识。 [0077] Incidentally, the file mentioned embodiment of the present invention refers to a file request command requesting an instruction input by the user, the instruction indicating that the user requests the file system to a CDN, file identification request command includes a requested file . 其中,该文件可以是视频文件,也可以是图片文件等其他格式的文件;标识可以是请求的文件的名称,可以是请求的文件的ID等任何可以标记请求的文件的标识,本发明不做限制。 Wherein, the file may be a video file, other formats may be image files and other documents; identification may be the name of the file request, the file may be identified may be any marker request ID of the requested file, the present invention is not limit. 例如,文件请求指令是一种视频播放指令,表示用户向第一服务器请求播放该指令对应的视频A,视频播放指令中包含请求的视频A的标识。 For example, the file is a video playback request command instruction indicating a user request to the first server displays the video corresponding to the command A, the video player identifying the request command includes video A. 第一服务器能够获取到视频播放指令,得知用户向第一服务器请求视频A文件。 The first server can acquire an instruction to the video player, the user requests that a video file A to the first server.

[0078] S202、第一服务器判断第一服务器内是否存储了标识对应的文件。 [0078] S202, the server first determines whether a file corresponding to the identifier is stored in the first server. [0079] 在第一服务器获取到文件请求指令后,第一服务器需要判断第一服务器内是否存储了标识对应的文件。 [0079] After obtaining the first request command to the file server, the first server needs to judge whether the file corresponding to the identifier is stored in the first server. 第一服务器判断第一服务器内是否存储了文件,其实就是在判断第一服务器是否需要回源。 The first server to determine whether the file is stored in the first server, in fact, the server needs to determine whether the first back to the source.

[0080] 需要说明的是,第一服务器判断第一服务器内是否存储了标识对应的文件的方法是:第一服务器根据标识,查找第一服务器内是否存在与标识相匹配的文件。 [0080] Incidentally, the first server determines whether or not the server stores a first file corresponding to the identification method is: according to a first server identifier, to find whether there is a file with the identification that matches the first server. 示例性的,所述标识为一串二进制代码,第一服务器判断第一服务器内是否存储了标识对应的文件的方法就是第一服务器在自身存储的所有文件中查找是否有文件与这串二进制代码向匹配。 Exemplary, the identifier is a string of binary code, the first server determines whether or not the server stores a first file corresponding to the identification method of a first server to find whether there is a file in which all the binary code string stored in the file itself to match.

[0081] S203、若第一服务器内存储了文件,第一服务器则响应文件请求指令。 [0081] S203, if the file is stored in the first server, the first file server in response to the request command.

[0082] 若第一服务器内存储了文件,表明第一服务器不需要回源即可响应用户输入的文件请求指令,为用户提供服务。 [0082] When the file is stored in the first server, the first server does not need to show a response back to the source file to the user input request command, to provide users with services.

[0083] 示例性的,若文件请求指令是一种视频播放指令,表示用户向第一服务器请求播放该指令对应的视频A,视频播放指令中包含请求的视频A的标识。 [0083] Exemplary, if the file is a video playback request command instruction indicating a user request to the first server displays the video corresponding to the command A, the video player identifying the request command includes video A. 第一服务器能够获取到视频播放指令,根据视频A的标识判断出第一服务器内存储了视频A,第一服务器则能够响应该视频播放指令,从而为用户播放视频A。 The first server can obtain the video playback command, it is determined based on the identification of video A video stored in the first server A, the server can be a first video player in response to the instruction to play the video for the user A.

[0084] S204、若第一服务器内未存储文件,第一服务器则获取动态回源地址。 [0084] S204, if the file is not stored in the first server, the first server obtains the dynamic address back to the source.

[0085] 与步骤S203并列的一个步骤,若第一服务器内未存储文件,则表明第一服务器需要回源,第一服务器获取动态回源地址。 A step of [0085] parallel with the step S203, if the file is not stored in the first server, the first server needs to indicate back to the source, the first server acquires a dynamic address back to the source.

[0086] 具体的,若第一服务器内未存储文件,第一服务器则获取动态回源地址的步骤S204可以包括步骤S204a和S204b: [0086] Specifically, if the file is not stored in the first server, the first server obtains the dynamic address back to the source in step S204 may include the step S204a and S204b:

[0087] S204a、若第一服务器内未存储文件,第一服务器则获取⑶N控制中心生成的统一资源定位符URL参数,URL参数至少包括动态回源地址。 [0087] S204a, if the file is not stored in the first server, the server first acquires a uniform resource locator (URL) parameters generated ⑶N control center, a dynamic URL parameters include at least back to the source address.

[0088] S204b、第一服务器解析URL参数,得到动态回源地址。 [0088] S204b, the first server parses the URL parameters, to obtain the dynamic address back to the source.

[0089] 第一服务器要获取动态回源地址,首先,第一服务器需要获取⑶N控制中心生成的URL (Uniform Resource Locator,统一资源定位符)参数。 [0089] For the first dynamic server back to the source address, first, the first server need to get the URL (Uniform Resource Locator, uniform resource locator) parameters ⑶N control center generates. 其中,URL参数至少包括动态回源地址。 Which, URL dynamic parameters including at least back to the source address. 在第一服务器获取CDN控制中心生成的URL参数后,解析URL参数,得到动态回源地址。 After obtaining control center CDN URL parameter generated in the first server, parsing the URL parameter to obtain the dynamic address back to the source.

[0090] 需要说明的是,本发明实施例提供的动态回源地址是⑶N控制中心在生成URL参数时为第一服务器配置的。 [0090] Incidentally, the dynamic back to the source address provided in the embodiment of the present invention is the control center ⑶N configured for generating a first server URL parameter.

[0091] S205、第一服务器根据动态回源地址,从第二服务器上下载文件。 [0091] S205, the first server back to the source address according to the dynamic, download the file from the second server.

[0092] 其中,动态回源地址至少包括回源服务器的IP地址。 [0092] wherein, back to the source address comprises at least a dynamic IP address back to the source server.

[0093] 在第一服务器获取到动态回源地址后,第一服务器根据动态回源地址,从第二服务器上下载文件。 [0093] After the first server to obtain a dynamic address back to the source, the first according to the dynamic server address back to the source, download the file from the second server. 其中,第二服务器为动态回源地址对应的服务器,第一服务器从第二服务器上下载文件即可完成回源。 Wherein the second server back to the source address of the corresponding dynamic server, the first server from the second server to complete the download files back to the source.

[0094] 具体的,第一服务器根据动态回源地址,从第二服务器上下载文件的步骤S205可以包括步骤S205a和S205b: [0094] Specifically, according to the first server dynamic address back to the source, the second download files from the server in step S205 may include steps S205a and S205b:

[0095] S205a、第一服务器根据回源服务器的IP地址,查找第二服务器。 [0095] S205a, the first server the IP address back to the source server, a second server lookup.

[0096] S205b、在第一服务器查找到第二服务器后,第一服务器从第二服务器上下载文件。 [0096] S205b, after the first server to locate a second server, the first server to download files from the second server.

[0097] 第一服务器根据回源服务器的IP地址,查找第二服务器。 [0097] The first server back to the source IP address of the server, the second server lookup. 其中,一个第二服务器可以对应多个回源服务器的IP地址,但第一回源服务器的IP地址只能对应一个第二服务器,本发明不做限制。 Wherein a plurality of the second server may correspond to server's IP address back to the source, the first IP address back to the source server only correspond to a second server, the present invention is not limited.

[0098] 示例性的,若文件请求指令是一种视频播放指令,表示用户向第一服务器请求播放该指令对应的视频A,视频播放指令中包含请求的视频A的标识。 [0098] Exemplary, if the file is a video playback request command instruction indicating a user request to the first server displays the video corresponding to the command A, the video player identifying the request command includes video A. 第一服务器能够获取到视频播放指令,根据视频A的标识判断出第一服务器内未存储视频A,第一服务器则能够获取动态回源地址,并根据动态回源地址中的回源服务器的IP地址,查找到第二服务器,随后从第二服务器上下载视频A。 The first server can obtain the video playback command, it is determined that the first server does not store the video A video A according to the identifier, the first server back to the source it is possible to obtain a dynamic address, and back to the source in accordance with a dynamic IP address back to the source server address, find a second server, and then download the video from the second server A.

[0099] S206、第一服务器存储从第二服务器上下载的文件并响应文件请求指令。 [0099] S206, the first server stores downloaded from the file server and the second response request command file.

[0100] 在第一服务器从第二服务器上下载文件后,为了能使第一服务器响应文件请求指令,第一服务器先要存储从第二服务器上下载的文件。 [0100] After the first server to download a file from the second server to allow the first file server in response to the request command, the first storage server must first download the file from the second server. 示例性的,若文件请求指令是一种视频播放指令,表示用户向第一服务器请求播放该指令对应的视频A。 Exemplary, if the file is a video playback request command instruction, the instruction indicating that the user requests to play the video corresponding to the first server A. 第一服务器从第二服务器上下载视频A,并存储。 A first server downloading video from the second server, and storage.

[0101] 在第一服务器存储了从第二服务器上下载的文件后,第一服务器还能够响应用户输入的文件请求指令,为用户提供服务。 File [0101] After the first server stores files downloaded from the second server, the first server can also request command in response to user input, provide services for users.

[0102] 示例性的,若文件请求指令是一种视频播放指令,表示用户向第一服务器请求播放该指令对应的视频A。 [0102] Exemplary, if the file is a video playback request command instruction, the instruction indicating that the user requests to play the video corresponding to the first server A. 第一服务器能够响应该视频播放指令,从而为用户播放视频A。 The first server in response to the video playback instruction to play the video for the user A.

[0103] 本发明实施例提供的一种⑶N回源的方法、第一服务器及系统,⑶N回源的方法包括:第一服务器获取文件请求指令,文件请求指令中包含请求的文件的标识;第一服务器判断第一服务器内是否存储了标识对应的文件;若第一服务器内未存储文件,第一服务器则获取动态回源地址;第一服务器根据动态回源地址,从第二服务器上下载文件。 [0103] A method ⑶N back to the source according to an embodiment of the present invention, a first server and a system, back to the source ⑶N method comprises: obtaining a first file server request command file request command includes identification of the requested file; first a storage server determines whether the first server identifier corresponding to the file; if the file is not stored in the first server, the first server obtains the dynamic address back to the source; the first server according to a dynamic address back to the source, the second download files from the server .

[0104] 与现有技术中服务器只能根据服务器内部配置好的固定的回源地址进行回源的方法相比,通过本方案,由于第一服务器能够判断第一服务器内是否存储了文件,并且在第一服务器内未存储文件时获取动态回源地址,以及根据动态回源地址,从第二服务器上下载文件。 [0104] Compared with the method server back to the source only prior art internal server configured in accordance with a fixed address back to the source, with the present embodiment, since the first server can determine whether the file is stored in the first server, and Get back to the source dynamic address is not stored within the first file server, and the dynamic address back to the source, download the file from the second server. 因此,服务器能够灵活地根据动态回源地址进行回源,不再拘泥于服务器内部配置好的固定的回源地址,由此均衡了CDN系统的访问压力,避免了系统过载,合理地利用系统资源,进而提升了CDN系统的性能。 Thus, the server can be flexibly performed according to the dynamic back to the source address back to the source, no longer stick to the internal server configured fixed address back to the source, thereby equalizing the pressure CDN access system, to avoid overloading the rational use of system resources , thereby enhancing the performance of the CDN system.

[0105] 实施例3 [0105] Example 3

[0106] 本发明实施例提供一种第一服务器,能够应用于CDN系统,如图3所示,所述第一服务器包括: [0106] The present invention provides a first server, the system can be applied to CDN, shown in Figure 3, the first server comprising:

[0107] 第一获取模块10,用于获取文件请求指令,所述文件请求指令中包含请求的文件的标识。 [0107] a first obtaining module 10, configured to acquire a file request command, the file request command includes identification of the requested file.

[0108] 判断模块11,用于判断所述第一服务器内是否存储了所述标识对应的文件。 [0108] a determination module 11, the first server for determining whether the stored file corresponding to the identifier.

[0109] 第二获取模块12,用于若所述第一服务器内未存储所述文件,则获取动态回源地址。 [0109] The second acquisition module 12, configured to, if the file is not stored within said first server, obtain the dynamic address back to the source.

[0110] 下载模块13,用于根据所述动态回源地址,从第二服务器上下载所述文件。 [0110] Download module 13, according to the dynamic address back to the source, downloading the file from the second server.

[0111] 进一步地,如图4所示,所述第一服务器,还包括: [0111] Further, as shown, the first server 4, further comprising:

[0112] 第一响应模块14,用于若所述第一服务器内存储了所述文件,则响应所述文件请求指令。 [0112] The first responding module 14 for storing the file if the first server, in response to the file request command.

[0113] 进一步地,如图5所示,所述第一服务器,还包括:[0114] 第二响应模块15,用于在所述下载模块13根据所述动态回源地址,从第二服务器上下载所述文件后,存储从第二服务器上下载的所述文件并响应所述文件请求指令。 [0113] Further, as shown in FIG. 5, the first server further comprising: [0114] a second response module 15, 13 for the dynamic address back to the source, the downloading module from the second server after downloading the file, store the downloaded from the file server and the second file in response to the request command.

[0115] 进一步地,如图6所示,所述第二获取模块12,具体包括: [0115] Further, as shown in FIG. 6, the second acquisition module 12, comprises:

[0116] 第二获取子模块120,用于若所述第一服务器内未存储所述文件,则获取CDN控制中心生成的统一资源定位符URL参数,所述URL参数至少包括所述动态回源地址。 [0116] The second obtaining sub-module 120 for the file is not stored if the first server, obtaining a uniform resource locator URL parameters generated CDN control center, the URL of the dynamic parameters comprise at least back to the source address.

[0117] 解析模块121,用于解析所述URL参数,得到所述动态回源地址。 [0117] The parsing module 121, configured to parse the URL parameters, to obtain the dynamic address back to the source.

[0118] 进一步地,所述动态回源地址至少包括回源服务器的IP地址。 [0118] Further, the dynamic address back to the source includes at least the IP address back to the source server.

[0119] 如图7所示,所述下载模块13,具体包括: [0119] 7, the downloading module 13 comprises:

[0120] 查找模块130,用于根据所述回源服务器的IP地址,查找所述第二服务器。 [0120] searching module 130, according to the IP address back to the source server, searching for the second server.

[0121] 下载子模块131,用于在所述查找模块130查找到所述第二服务器后,从所述第二服务器上下载所述文件。 [0121] download sub-module 131, configured to, after the searching module 130 to find the second server, downloading the file from the second server.

[0122] 本发明实施例提供的一种第一服务器,第一服务器包括:第一获取模块,用于获取文件请求指令,所述文件请求指令中包含请求的文件的标识;判断模块,用于判断所述第一服务器内是否存储了所述标识对应的文件;第二获取模块,用于若所述第一服务器内未存储所述文件,则获取动态回源地址;下载模块,用于根据所述动态回源地址,从第二服务器上下载所述文件。 [0122] A server according to a first embodiment of the present invention, the first server comprising: a first acquiring module, for acquiring a file request command, the file request command includes identification of the requested file; determining means for determining whether said first server stores the identity of the corresponding file; a second acquiring module, for storing the file is not the first, if the server, obtain the dynamic address back to the source; download module, according to the dynamic source address back, download the file from the second server.

[0123] 其中,所述第二服务器可以为现有技术中的服务器,也可以是如本申请实施例3中公开的第一服务器。 [0123] wherein, the second server may be a server in the prior art, may be present as a first application server in Example 3 disclosed embodiments.

[0124] 与现有技术中服务器只能根据服务器内部配置好的固定的回源地址进行回源的方法相比,通过本方案,由于第一服务器能够判断第一服务器内是否存储了文件,并且在第一服务器内未存储文件时获取动态回源地址,以及根据动态回源地址,从第二服务器上下载文件。 [0124] Compared with the method server back to the source only prior art internal server configured in accordance with a fixed address back to the source, with the present embodiment, since the first server can determine whether the file is stored in the first server, and Get back to the source dynamic address is not stored within the first file server, and the dynamic address back to the source, download the file from the second server. 因此,服务器能够灵活地根据动态回源地址进行回源,不再拘泥于服务器内部配置好的固定的回源地址,由此均衡了CDN系统的访问压力,避免了系统过载,合理地利用系统资源,进而提升了CDN系统的性能。 Thus, the server can be flexibly performed according to the dynamic back to the source address back to the source, no longer stick to the internal server configured fixed address back to the source, thereby equalizing the pressure CDN access system, to avoid overloading the rational use of system resources , thereby enhancing the performance of the CDN system.

[0125] 实施例4 [0125] Example 4

[0126] 本发明实施例提供一种CDN系统,包括具有上述任一特征的所述第一服务器,为所述第一服务器提供回源的至少一个第二服务器,以及用于生成URL参数的CDN控制中心。 [0126] The present invention provides a CDN system comprising a first server having any of these features, there is provided at least one second back to the source server to the first server, the URL parameter and for generating a CDN control center.

[0127] 通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。 [0127] By the above described embodiments, those skilled in the art may clearly understand that, for convenience and brevity of description, only the division of the functional modules is illustrated, in practice, according to the necessity to above functions assigned to different functional modules, the internal structure of the apparatus is divided into different functional modules to complete all or part of the functions described above. 上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。 Specific working process of the foregoing system, apparatus, and unit, reference may be the corresponding process in the method embodiment, which is not repeated herein.

[0128] 在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。 [0128] In several embodiments provided herein present embodiment, it should be understood that the system, apparatus and method disclosed may be implemented in other manners. 例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。 For example, the described apparatus embodiments are merely illustrative of, e.g., the module or unit division is merely logical function division, there may be other division in actual implementation, a plurality of units or components may e.g. be combined or integrated into another system, or some features may be ignored or not performed. 另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。 Another point, displayed or coupling or direct coupling or communication between interconnected in question may be through some interface, device, or indirect coupling or communication connection unit, may be electrical, mechanical, or other forms.

[0129] 所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。 [0129] The unit described as separate components may be or may not be physically separate, parts displayed as units may be or may not be physical units, i.e. may be located in one place, or may be distributed to a plurality of networks unit. 可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。 You can select some or all of the units according to actual needs to achieve the object of the solutions of the embodiments.

[0130] 另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。 [0130] Additionally, functional units may be integrated in various embodiments of the present invention in a processing unit, separate units may be physically present, may be two or more units are integrated into one unit. 上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。 The integrated unit may be implemented in the form of hardware, software functional units may also be implemented.

[0131] 所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。 [0131] If the integrated unit is realized as an independent product sold or used in the form of a software functional unit may be stored in a computer-readable storage medium. 基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。 Based on such understanding, the technical solutions of the present invention essentially, or the part or all of the technical solutions contributing to the prior art may be embodied in part or in the form of a software product, which computer software product is stored in a storage medium , including several instructions for instructing a computer device (may be a personal computer, a server, or network device) or (processor) to perform all or part of the steps of the methods of the various embodiments of the present invention. 而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM, Read-Only Memory)、随机存取存储器(RAM, Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。 The storage medium includes: U disk, mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access various memories (RAM, Random Access Memory), a magnetic disk, or an optical medium can store program codes .

[0132] 以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。 [0132] The above are only specific embodiments of the present invention, but the scope of the present invention is not limited thereto, any skilled in the art in the art within the technical scope of the present invention is disclosed, variations may readily occur or Alternatively, it shall fall within the protection scope of the present invention. 因此,本发明的保护范围应以所述权利要求的保护范围为准。 Accordingly, the scope of the present invention should be defined by the scope of the claims.

Claims (11)

  1. 1.一种⑶N回源的方法,其特征在于,应用于⑶N系统,所述方法包括: 第一服务器获取文件请求指令,所述文件请求指令中包含请求的文件的标识; 所述第一服务器判断所述第一服务器内是否存储了所述标识对应的文件; 若所述第一服务器内未存储所述文件,所述第一服务器则获取动态回源地址; 所述第一服务器根据所述动态回源地址,从第二服务器上下载所述文件。 A method ⑶N back to the source, characterized in that the applied ⑶N system, the method comprising: obtaining a first file server request command, the file request command includes identification of the requested file; the first server determining whether said first server stores the file corresponding to the identifier; if the first is not stored within the file server, the first server obtains the dynamic address back to the source; the first server according to the dynamic address back to the source, downloading the file from the second server.
  2. 2.根据权利要求1所述的CDN回源的方法,其特征在于,若所述第一服务器内存储了所述文件,所述第一服务器则响应所述文件请求指令。 CDN 2. A method according to claim 1, back to the source, characterized in that, if the file is stored within the first server, the first file server in response to the request command.
  3. 3.根据权利要求1所述的CDN回源的方法,其特征在于,在所述第一服务器根据所述动态回源地址,从第二服务器上下载所述文件后,所述方法还包括: 所述第一服务器存储从第二服务器上下载的所述文件并响应所述文件请求指令。 3. The method of claim 1 CDN back to the source as claimed in claim, wherein, after said first server according to the dynamic address back to the source, downloading the file from the second server, the method further comprising: the first server stores downloaded from the file server and the second file in response to the request command.
  4. 4.根据权利要求1所述的CDN回源的方法,其特征在于,若所述第一服务器内未存储所述文件,所述第一服务器则获取动态回源地址,具体包括: 若所述第一服务器内未存储所述文件,所述第一服务器则获取CDN控制中心生成的统一资源定位符URL参数,所述URL参数至少包括所述动态回源地址; 所述第一服务器解析所述URL参数,得到所述动态回源地址。 4. The method according to CDN back to the source as claimed in claim 1, wherein, if the file is not stored within said first server, said first server obtains the dynamic address back to the source, comprises: if the the file is not stored in the first server, the first server obtains a uniform resource locator (URL) parameters generated CDN control center, the URL of the dynamic parameters comprise at least back to the source address; the first server parses the URL parameter, to obtain the dynamic address back to the source.
  5. 5.根据权利要求1所述的CDN回源的方法,其特征在于,所述动态回源地址至少包括回源服务器的IP地址; 所述第一服务器根据所述动态回源地址,从第二服务器上下载所述文件,具体包括: 所述第一服务器根据所述回源服务器的IP地址,查找所述第二服务器; 在所述第一服务器查找到所述第二服务器后,所述第一服务器从所述第二服务器上下载所述文件。 5. The method of claim CDN back to the source as claimed in claim 1, wherein said dynamic back to the source address comprises at least the IP address back to the source server; the first server according to the dynamic address back to the source from the second downloading the files on the server, comprises: a first server according to the IP address of the server back to the source to find the second server; after finding the first server to the second server, the second a server to download the file from the second server.
  6. 6.一种第一服务器,其特征在于,应用于CDN系统,所述第一服务器包括: 第一获取模块,用于获取文件请求指令,所述文件请求指令中包含请求的文件的标识; 判断模块,用于判断所述第一服务器内是否存储了所述标识对应的文件; 第二获取模块,用于若所述第一服务器内未存储所述文件,则获取动态回源地址; 下载模块,用于根据所述动态回源地址,从第二服务器上下载所述文件。 A first server, wherein the system is applied to CDN, said first server comprises: a first acquiring module, for acquiring a file request command, the file request command includes identification of the requested file; Analyzing means for determining whether said first server storing the file corresponding to the identifier; a second acquiring module, for storing the file is not the first, if the server, obtain the dynamic address back to the source; download module , according to the dynamic address back to the source, downloading the file from the second server.
  7. 7.根据权利要求6所述的第一服务器,其特征在于,所述第一服务器,还包括: 第一响应模块,用于若所述第一服务器内存储了所述文件,则响应所述文件请求指令。 The first server claimed in claim 6, wherein said first server further comprising: a first responding module for the first file if the server stores, in response to the file request command.
  8. 8.根据权利要求6所述的第一服务器,其特征在于,所述第一服务器,还包括: 第二响应模块,用于在所述下载模块根据所述动态回源地址,从第二服务器上下载所述文件后,存储从第二服务器上下载的所述文件并响应所述文件请求指令。 8. The first server according to claim 6, wherein said first server further comprises: a second response means for downloading the module according to the dynamic address back to the source, from the second server after downloading the file, store the downloaded from the file server and the second file in response to the request command.
  9. 9.根据权利要求6所述的第一服务器,其特征在于,所述第二获取模块,具体包括: 第二获取子模块,用于若所述第一服务器内未存储所述文件,则获取CDN控制中心生成的统一资源定位符URL参数,所述URL参数至少包括所述动态回源地址; 解析模块,用于解析所述URL参数,得到所述动态回源地址。 9. The first server according to claim 6, wherein the second acquiring module comprises: a second obtaining sub-module, for storing the file is not the first, if the server is acquired CDN control center generates a uniform resource locator (URL) parameters, said parameters comprising at least the dynamic URL back to the source address; parsing module configured to parse the URL parameters, to obtain the dynamic address back to the source.
  10. 10.根据权利要求6所述的第一服务器,其特征在于,所述动态回源地址至少包括回源服务器的IP地址; 所述下载模块,具体包括:查找模块,用于根据所述回源服务器的IP地址,查找所述第二服务器; 下载子模块,用于在所述查找模块查找到所述第二服务器后,从所述第二服务器上下载所述文件。 10. The first server claimed in claim 6, wherein said dynamic back to the source address comprises at least the IP address back to the source server; the download module comprises: a searching module, according to the return source IP address of the server, searching for the second server; download sub-module, configured to find after said searching module to the second server, downloading the file from the second server.
  11. 11.一种CDN系统,其特征在于,包括具有如权利要求6-10中任意一项所述的第一服务器;为所述第一服务器提供回源的至少一个第二服务器;以及用于生成URL参数的CDN控制中心。 A CDN system comprising a first server having 6-10 according to any one of claim 1; providing at least one second back to the source server to the first server; and means for generating CDN control Center URL parameters.
CN 201310722708 2013-12-24 2013-12-24 CDN back-to-source method, first server and system thereof CN103747112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310722708 CN103747112A (en) 2013-12-24 2013-12-24 CDN back-to-source method, first server and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310722708 CN103747112A (en) 2013-12-24 2013-12-24 CDN back-to-source method, first server and system thereof

Publications (1)

Publication Number Publication Date
CN103747112A true true CN103747112A (en) 2014-04-23

Family

ID=50504098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310722708 CN103747112A (en) 2013-12-24 2013-12-24 CDN back-to-source method, first server and system thereof

Country Status (1)

Country Link
CN (1) CN103747112A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104093045A (en) * 2014-07-17 2014-10-08 百视通网络电视技术发展有限责任公司 Method and system for processing OTT TV playing request based on source return
CN104185036A (en) * 2014-09-10 2014-12-03 北京奇艺世纪科技有限公司 Video file source returning method and device
CN104320681A (en) * 2014-11-07 2015-01-28 百视通网络电视技术发展有限责任公司 CDN back-to-source service method and system
CN104468817A (en) * 2014-12-22 2015-03-25 北京奇虎科技有限公司 Method and device for achieving resource download through CDN, server and client side
CN105450780A (en) * 2015-12-31 2016-03-30 深圳市网心科技有限公司 CDN system and source tracing method thereof
CN105812839A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Video stream data acquisition method, page data transmission method, system and network server
CN105824707A (en) * 2016-04-21 2016-08-03 乐视控股(北京)有限公司 Merging back-source method and device for multiple processes of streaming media service
CN105847154A (en) * 2016-04-25 2016-08-10 乐视控股(北京)有限公司 Route selection method and device
CN105871800A (en) * 2015-12-07 2016-08-17 乐视云计算有限公司 Pull stream control method, device and system
CN105916018A (en) * 2015-12-15 2016-08-31 乐视网信息技术(北京)股份有限公司 Content distribution method and device
CN105959358A (en) * 2016-04-25 2016-09-21 乐视控股(北京)有限公司 CDN server and method of CDN server of caching data
CN106059856A (en) * 2016-06-20 2016-10-26 乐视控股(北京)有限公司 File retrieval method, file retrieval apparatus and content delivery network (CDN) system
CN106161611A (en) * 2016-06-30 2016-11-23 武汉斗鱼网络科技有限公司 Image uploading and acquiring system for live streaming platform and method of system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050201381A1 (en) * 2004-03-12 2005-09-15 Abbasi Salman Y. Method and apparatus to manage network addresses for private voice communications
CN102170479A (en) * 2011-05-21 2011-08-31 成都市华为赛门铁克科技有限公司 Updating method of Web buffer and updating device of Web buffer
CN102394880A (en) * 2011-10-31 2012-03-28 北京蓝汛通信技术有限责任公司 Method and device for processing jump response in content delivery network
CN102594921A (en) * 2012-03-22 2012-07-18 网宿科技股份有限公司 Synchronization file access method and system based on content distribution system
CN102932466A (en) * 2012-11-07 2013-02-13 网宿科技股份有限公司 Distributed type source monitoring method and distributed type source monitoring system based on content delivery network
CN103269353A (en) * 2013-04-19 2013-08-28 网宿科技股份有限公司 Web cache and return optimization method and Web cache system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050201381A1 (en) * 2004-03-12 2005-09-15 Abbasi Salman Y. Method and apparatus to manage network addresses for private voice communications
CN102170479A (en) * 2011-05-21 2011-08-31 成都市华为赛门铁克科技有限公司 Updating method of Web buffer and updating device of Web buffer
CN102394880A (en) * 2011-10-31 2012-03-28 北京蓝汛通信技术有限责任公司 Method and device for processing jump response in content delivery network
CN102594921A (en) * 2012-03-22 2012-07-18 网宿科技股份有限公司 Synchronization file access method and system based on content distribution system
CN102932466A (en) * 2012-11-07 2013-02-13 网宿科技股份有限公司 Distributed type source monitoring method and distributed type source monitoring system based on content delivery network
CN103269353A (en) * 2013-04-19 2013-08-28 网宿科技股份有限公司 Web cache and return optimization method and Web cache system

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104093045A (en) * 2014-07-17 2014-10-08 百视通网络电视技术发展有限责任公司 Method and system for processing OTT TV playing request based on source return
CN104093045B (en) * 2014-07-17 2018-01-16 百视通网络电视技术发展有限责任公司 ott tv play back to the source of the request based on the processing method and system
CN104185036A (en) * 2014-09-10 2014-12-03 北京奇艺世纪科技有限公司 Video file source returning method and device
CN104320681A (en) * 2014-11-07 2015-01-28 百视通网络电视技术发展有限责任公司 CDN back-to-source service method and system
CN104320681B (en) * 2014-11-07 2018-03-09 百视通网络电视技术发展有限责任公司 Cdn back to the source of one kind of method and system services
CN104468817B (en) * 2014-12-22 2016-08-24 北京奇虎科技有限公司 By implementing a method and apparatus cdn download resources, server, client
CN104468817A (en) * 2014-12-22 2015-03-25 北京奇虎科技有限公司 Method and device for achieving resource download through CDN, server and client side
CN106101231A (en) * 2014-12-22 2016-11-09 北京奇虎科技有限公司 Realization method and device for downloading resources through CDN (Content Distribution Network), server and client
WO2016101763A1 (en) * 2014-12-22 2016-06-30 北京奇虎科技有限公司 Implementation method and device for downloading resource through cdn, and server and client
CN105812839A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Video stream data acquisition method, page data transmission method, system and network server
CN105871800A (en) * 2015-12-07 2016-08-17 乐视云计算有限公司 Pull stream control method, device and system
CN105916018A (en) * 2015-12-15 2016-08-31 乐视网信息技术(北京)股份有限公司 Content distribution method and device
CN105450780A (en) * 2015-12-31 2016-03-30 深圳市网心科技有限公司 CDN system and source tracing method thereof
CN105824707A (en) * 2016-04-21 2016-08-03 乐视控股(北京)有限公司 Merging back-source method and device for multiple processes of streaming media service
CN105959358A (en) * 2016-04-25 2016-09-21 乐视控股(北京)有限公司 CDN server and method of CDN server of caching data
CN105847154A (en) * 2016-04-25 2016-08-10 乐视控股(北京)有限公司 Route selection method and device
CN106059856A (en) * 2016-06-20 2016-10-26 乐视控股(北京)有限公司 File retrieval method, file retrieval apparatus and content delivery network (CDN) system
CN106161611A (en) * 2016-06-30 2016-11-23 武汉斗鱼网络科技有限公司 Image uploading and acquiring system for live streaming platform and method of system

Similar Documents

Publication Publication Date Title
US8521851B1 (en) DNS query processing using resource identifiers specifying an application broker
US8688837B1 (en) Dynamically translating resource identifiers for request routing using popularity information
US9210235B2 (en) Client side cache management
US20110055386A1 (en) Network analytics management
US8606996B2 (en) Cache optimization
US20100088335A1 (en) Method and apparatus for improving file access performance of distributed storage system
US20110276679A1 (en) Dynamic binding for use in content distribution
US8255557B2 (en) Partial object distribution in content delivery network
US20110060812A1 (en) Cache server with extensible programming framework
US20120198043A1 (en) Customized domain names in a content delivery network (cdn)
US8521813B2 (en) Content replication workflow in content delivery networks
US8478858B2 (en) Policy management for content storage in content delivery networks
US8615577B2 (en) Policy based processing of content objects in a content delivery network using mutators
US8396970B2 (en) Content processing between locations workflow in content delivery networks
US20080071907A1 (en) Methods and apparatus for data transfer
US8458290B2 (en) Multicast mapped look-up on content delivery networks
US20120303818A1 (en) Edge-based resource spin-up for cloud computing
US20120198071A1 (en) Distributed Landing Pad and Brick Topology for Content Storage in Content Delivery Networks
US20110055312A1 (en) Chunked downloads over a content delivery network
US7426546B2 (en) Method for selecting an edge server computer
CN102111685A (en) Acceleration method, equipment and system for network video loading
KR20050060783A (en) Method for retrieving and downloading digital media files through network and medium on which the program for executing the method is recorded
US20060236386A1 (en) Method and apparatus for cooperative file distribution in the presence of firewalls
US8185612B1 (en) Methods and systems for caching data communications over computer networks
US20110004929A1 (en) Flexible Token For Use In Content Delivery

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C41 Transfer of patent application or patent right or utility model