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 CN201310722708.3A CN201310722708A CN103747112A CN 103747112 A CN103747112 A CN 103747112A CN 201310722708 A CN201310722708 A CN 201310722708A CN 103747112 A CN103747112 A CN 103747112A
Authority
CN
China
Prior art keywords
server
file
source address
cdn
address
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
Application number
CN201310722708.3A
Other languages
Chinese (zh)
Inventor
李洪福
夏彦刚
吴亚洲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Cloud Computing Co Ltd
Original Assignee
LeTV Information Technology Beijing Co Ltd
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
Application filed by LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201310722708.3A priority Critical patent/CN103747112A/en
Publication of CN103747112A publication Critical patent/CN103747112A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

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

A kind of CDN returns method, first server and the system in source
Technical field
The present invention relates to network multimedia technology field, relate in particular to method, first server and system that a kind of CDN goes back to source.
Background technology
CDN(Content Delivery Network, content distributing network) be a kind of one deck intelligent virtual network on existing Internet basic forming by place node server everywhere at network.CDN can be in real time leads user's request on the nearest service node of user again according to the connection of network traffics and each node, load state and to integrated informations such as user's distance and response times, its objective is and can select the node close to relatively from user to send the required content of user to user, alleviate the situation of network congestion, improve the response speed of website.
When the instruction of server in response user input, if the indicated file of the instruction that does not have user to input in server need to remove to carry out on other server Hui Yuan conventionally.In the prior art, the fixing source address of returning that the method that server carries out Hui Yuan is normally good according to server internal configurations, removes to carry out on other server Hui Yuan.
Yet, because server in prior art can only carry out Hui Yuan according to the good fixing source address of returning of server internal configurations, cannot be neatly for server-assignment be returned source address.And, when have many servers to go to fix simultaneously go back to source address source last time time, can cause providing the access pressure of server of Hui Yuan unbalanced, produce system overload, the irrational situation of system resource utilization, affected the performance of CDN system.
Summary of the invention
Method, first server and system that embodiments of the invention provide a kind of CDN to go back to source, can for server-assignment, dynamically return source address neatly, so that server can carry out Hui Yuan according to dynamically returning source address neatly, the balanced access pressure of CDN system, avoided system overload, reasonably utilize system resource, promoted the performance of CDN system.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, a kind of method that the embodiment of the present invention provides CDN to go back to source, is applied to CDN system, and described method comprises:
First server is obtained file request instruction, the sign of the file that comprises request in described file request instruction;
Described first server judges in described first server, whether to have stored file corresponding to described sign;
If do not store described file in described first server, described first server is obtained and is dynamically returned source address;
Described first server, according to described dynamic time source address, is downloaded described file from second server.
In the possible implementation of the first, according to first aspect, if stored described file in described first server, described first server responds described file request instruction.
In the possible implementation of the second, in conjunction with first aspect or the possible implementation of the first, in described first server, according to described dynamic time source address, after second server is downloaded described file, described method also comprises:
The described file that described first server storage is downloaded from second server also responds described file request instruction.
In the third possible implementation, in conjunction with first aspect or possible implementation or the possible implementation of the second of the first, if do not store described file in described first server, described first server is obtained and is dynamically returned source address, specifically comprises:
If do not store described file in described first server, described first server is obtained the uniform resource position mark URL parameter that CDN control centre generates, and described URL parameter at least comprises described dynamic time source address;
Described first server is resolved described URL parameter, obtains described dynamic time source address.
In the 4th kind of possible implementation, in conjunction with first aspect or the possible implementation of the first, to the third possible implementation, described dynamic time source address at least comprises go back to the IP address of source server;
Described first server, according to described dynamic time source address, is downloaded described file from second server, specifically comprises:
Described first server, according to the IP address of described time source server, is searched described second server;
In described first server, find after described second server, described first server is downloaded described file from described second server.
Second aspect, the embodiment of the present invention provides a kind of first server, is applied to CDN system, and described first server comprises:
The first acquisition module, for obtaining file request instruction, the sign of the file that comprises request in described file request instruction;
Judge module, for judging whether stored file corresponding to described sign in described first server;
The second acquisition module, if for not storing described file in described first server, obtains and dynamically returns source address;
Download module, for according to described dynamic time source address, downloads described file from second server.
In the possible implementation of the first, according to second aspect, described first server, also comprises:
The first respond module, if for having stored described file in described first server, respond described file request instruction.
In the possible implementation of the second, in conjunction with second aspect or the possible implementation of the first, described first server, also comprises:
The second respond module, at described download module according to described dynamic time source address, after second server is downloaded described file, the described file downloaded from second server of storage also responds described file request instruction.
In the third possible implementation, in conjunction with second aspect or possible implementation or the possible implementation of the second of the first, described the second acquisition module, specifically comprises:
Second obtains submodule, if for not storing described file in described first server, obtains the uniform resource position mark URL parameter that CDN control centre generates, and described URL parameter at least comprises described dynamic time source address;
Parsing module, for resolving described URL parameter, obtains described dynamic time source address.
In the 4th kind of possible implementation, in conjunction with second aspect or the possible implementation of the first, to the third possible implementation, described dynamic time source address at least comprises go back to the IP address of source server;
Described download module, specifically comprises:
Search module, for according to the IP address of described time source server, search described second server;
Download submodule, for arriving after described second server in the described module searches of searching, from described second server, download described file.
The third aspect, the embodiment of the present invention provides a kind of CDN system, comprises the described first server with above-mentioned arbitrary feature, for described first server provides at least one second server of Hui Yuan, and for generating the CDN control centre of URL parameter.
A kind of CDN that the embodiment of the present invention provides returns method, first server and the system in source, and the method that CDN goes back to source comprises: first server is obtained file request instruction, comprises the sign of the file of request in file request instruction; First server judges in first server whether stored and identified corresponding file; If storage file not in first server, first server is obtained and is dynamically returned source address; First server is according to dynamically returning source address, from second server downloading files.
Can only return source address according to good fixing of server internal configurations with server in prior art carries out the method for Hui Yuan and compares, pass through this programme, because first server can judge whether stored file in first server, and in first server, do not obtain during storage file and dynamically return source address, and according to dynamically returning source address, from second server downloading files.Therefore, server can carry out Hui Yuan according to dynamically returning source address neatly, no longer sticks to the fixing time source address that server internal configurations is good, the balanced thus access pressure of CDN system, avoid system overload, reasonably utilized system resource, and then promoted the performance of CDN system.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet that a kind of CDN in the embodiment of the present invention 1 returns the method in source;
Fig. 2 is the schematic flow sheet that a kind of CDN in the embodiment of the present invention 2 returns the method in source;
Fig. 3 is the structural representation one of a kind of first server in the embodiment of the present invention 3;
Fig. 4 is the structural representation two of a kind of first server in the embodiment of the present invention 3;
Fig. 5 is the structural representation three of a kind of first server in the embodiment of the present invention 3;
Fig. 6 is the structural representation four of a kind of first server in the embodiment of the present invention 3;
Fig. 7 is the structural representation five of a kind of first server in the embodiment of the present invention 3.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
In addition, term " system " and " network " are often used interchangeably in this article herein.Herein term " with ", be only a kind of incidence relation of describing affiliated partner, can there are three kinds of relations in expression, for example, A and B, can represent: individualism A exists A and B, these three kinds of situations of individualism B simultaneously.In addition, character "/", generally represents that forward-backward correlation is to liking a kind of relation of "or" herein.
The CDN control centre that the present invention mentions carries out management and the control of CDN system, and first server and second server can be both the servers under memory node coverage, can be also the servers under fringe node coverage, and the present invention does not limit.Wherein, memory node is the node of having stored system All Files, and fringe node is that the ordinary node of service is provided for user.Common, memory node is core CDN node, has stored intrasystem All Files; Fringe node is edge C DN node, for user access.
Embodiment 1
A kind of method that the embodiment of the present invention provides CDN to go back to source, can be applied to CDN system, and as shown in Figure 1, CDN returns the method in source, comprising:
S101, first server are obtained file request instruction, comprise the sign of the file of request in file request instruction.
CDN is a kind of one deck intelligent virtual network on existing Internet basic forming by place node server everywhere at network.In the prior art, the fixing source address of returning that the method that server carries out Hui Yuan is normally good according to server internal configurations, removes to carry out on other server Hui Yuan.Yet, because server in prior art can only carry out Hui Yuan according to the good fixing source address of returning of server internal configurations, cannot be neatly for server-assignment be returned source address.And, when have many servers to go to fix simultaneously go back to source address source last time time, can cause providing the access pressure of server of Hui Yuan unbalanced, produce system overload, the irrational situation of system resource utilization, affected the performance of CDN system.
The embodiment of the present invention provides a kind of CDN to return the method in source, can for server-assignment, dynamically return source address neatly, so that server can carry out Hui Yuan according to dynamically returning source address neatly, the balanced access pressure of CDN system, avoided system overload, reasonably utilize system resource, promoted the performance of CDN system.
First, first server is obtained file request instruction.The sign of the file that wherein, comprises request in file request instruction.
It should be noted that, the file request instruction that the embodiment of the present invention is mentioned refers to the file request instruction that user inputs, and this instruction is used to indicate user to CDN system request file, is comprising the sign of the file of request in file request instruction.Wherein, this document can be video file, can be also the file of the extended formattings such as picture file; Sign can be the title of file of request, can be the sign of any file that can mark request of the ID etc. of file of request, and the present invention does not limit.For example, file request instruction is a kind of video playback instruction, represents that user plays video A corresponding to this instruction to first server request, comprises the sign of the video A of request in video playback instruction.First server can get video playback instruction, learns that user is to first server request video A file.
S102, first server judge in first server whether stored and identified corresponding file.
In first server, get after file request instruction, first server need to judge in first server whether stored and identified corresponding file.First server judges in first server whether stored file, is in fact judging whether first server needs Hui Yuan exactly.
Whether it should be noted that, first server judges that in first server, whether having stored the method that identifies corresponding file is: first server is according to sign, search and in first server, exist and identify the file matching.Exemplary, describedly be designated a string binary code, whether first server judges that in first server, whether to have stored the method that identifies corresponding file be exactly first server and searches and have file and this to go here and there binary code to mating in the All Files of self storage.
If storage file not in S103 first server, first server is obtained and is dynamically returned source address.
If storage file not in first server, shows that first server needs Hui Yuan, first server is obtained and is dynamically returned source address.
Optionally, if storage file not in first server, first server is obtained the method for dynamically returning source address and specifically can be comprised: if storage file not in first server, first server is obtained the uniform resource position mark URL parameter that CDN control centre generates, and URL parameter at least comprises dynamically returns source address; First server is resolved URL parameter, obtains dynamically returning source address.
S104, first server are according to dynamically returning source address, from second server downloading files.
In first server, get and dynamically return after source address, first server is according to dynamically returning source address, from second server downloading files.Wherein, second server is dynamically to return server corresponding to source address, and first server can complete Hui Yuan from second server downloading files.
Optionally, dynamically return the IP(Internet Protocol that source address at least comprises back source server, Internet protocol) address.
Further alternative, first server, according to dynamically returning source address, specifically can comprise from the method for second server downloading files: first server, according to the IP address of returning source server, is searched second server; In first server, find after second server, first server is from second server downloading files.
A kind of CDN that the embodiment of the present invention provides returns method, first server and the system in source, and the method that CDN goes back to source comprises: first server is obtained file request instruction, comprises the sign of the file of request in file request instruction; First server judges in first server whether stored and identified corresponding file; If storage file not in first server, first server is obtained and is dynamically returned source address; First server is according to dynamically returning source address, from second server downloading files.
Can only return source address according to good fixing of server internal configurations with server in prior art carries out the method for Hui Yuan and compares, pass through this programme, because first server can judge whether stored file in first server, and in first server, do not obtain during storage file and dynamically return source address, and according to dynamically returning source address, from second server downloading files.Therefore, server can carry out Hui Yuan according to dynamically returning source address neatly, no longer sticks to the fixing time source address that server internal configurations is good, the balanced thus access pressure of CDN system, avoid system overload, reasonably utilized system resource, and then promoted the performance of CDN system.
Embodiment 2
A kind of method that the embodiment of the present invention provides CDN to go back to source, can be applied to CDN system, and as shown in Figure 2, CDN returns the method in source, comprising:
S201, first server are obtained file request instruction, comprise the sign of the file of request in file request instruction.
CDN is a kind of one deck intelligent virtual network on existing Internet basic forming by place node server everywhere at network.Because server in prior art can only carry out Hui Yuan according to the good fixing source address of returning of server internal configurations, cannot be neatly for server-assignment be returned source address.And, when have many servers to go to fix simultaneously go back to source address source last time time, can cause providing the access pressure of server of Hui Yuan unbalanced, produce system overload, the irrational situation of system resource utilization, affected the performance of CDN system.
The embodiment of the present invention provides a kind of CDN to return the method in source, can for server-assignment, dynamically return source address neatly, so that server can carry out Hui Yuan according to dynamically returning source address neatly, the balanced access pressure of CDN system, avoided system overload, reasonably utilize system resource, promoted the performance of CDN system.
First, first server is obtained file request instruction.The sign of the file that wherein, comprises request in file request instruction.
It should be noted that, the file request instruction that the embodiment of the present invention is mentioned refers to the file request instruction that user inputs, and this instruction is used to indicate user to CDN system request file, is comprising the sign of the file of request in file request instruction.Wherein, this document can be video file, can be also the file of the extended formattings such as picture file; Sign can be the title of file of request, can be the sign of any file that can mark request of the ID etc. of file of request, and the present invention does not limit.For example, file request instruction is a kind of video playback instruction, represents that user plays video A corresponding to this instruction to first server request, comprises the sign of the video A of request in video playback instruction.First server can get video playback instruction, learns that user is to first server request video A file.
S202, first server judge in first server whether stored and identified corresponding file.
In first server, get after file request instruction, first server need to judge in first server whether stored and identified corresponding file.First server judges in first server whether stored file, is in fact judging whether first server needs Hui Yuan exactly.
Whether it should be noted that, first server judges that in first server, whether having stored the method that identifies corresponding file is: first server is according to sign, search and in first server, exist and identify the file matching.Exemplary, describedly be designated a string binary code, whether first server judges that in first server, whether to have stored the method that identifies corresponding file be exactly first server and searches and have file and this to go here and there binary code to mating in the All Files of self storage.
If stored file in S203 first server, first server is response file request instruction.
If stored file in first server, show that first server does not need back source can respond the file request instruction that user inputs, for user provides service.
Exemplary, if file request instruction is a kind of video playback instruction, represent that user plays video A corresponding to this instruction to first server request, in video playback instruction, comprise the sign of the video A of request.First server can get video playback instruction, according to the sign of video A, judges in first server and has stored video A, and first server can respond this video playback instruction, thereby is user's displaying video A.
If storage file not in S204 first server, first server is obtained and is dynamically returned source address.
A step arranged side by side with step S203, if storage file not in first server shows that first server needs Hui Yuan, first server is obtained and is dynamically returned source address.
Concrete, if storage file not in first server, first server is obtained the step S204 that dynamically returns source address can comprise step S204a and S204b:
If storage file not in S204a first server, first server is obtained the uniform resource position mark URL parameter that CDN control centre generates, and URL parameter at least comprises dynamically returns source address.
S204b, first server are resolved URL parameter, obtain dynamically returning source address.
First server will be obtained and dynamically return source address, and first, first server need to be obtained the URL(Uniform Resource Locator that CDN control centre generates, URL(uniform resource locator)) parameter.Wherein, URL parameter at least comprises dynamically time source address.In first server, obtain after the URL parameter of CDN control centre generation, resolve URL parameter, obtain dynamically returning source address.
It should be noted that, the source address ShiCDN control centre of dynamically returning that the embodiment of the present invention provides is that first server configures when generating URL parameter.
S205, first server are according to dynamically returning source address, from second server downloading files.
Wherein, dynamically go back to the IP address that source address at least comprises back source server.
In first server, get and dynamically return after source address, first server is according to dynamically returning source address, from second server downloading files.Wherein, second server is dynamically to return server corresponding to source address, and first server can complete Hui Yuan from second server downloading files.
Concrete, first server, according to dynamically returning source address, can comprise step S205a and S205b from the step S205 of second server downloading files:
S205a, first server, according to the IP address of returning source server, are searched second server.
S205b, in first server, find after second server, first server is from second server downloading files.
First server, according to the IP address of returning source server, is searched second server.Wherein, the IP address that second server can corresponding a plurality of times source servers, but the IP address of first time source server can only a corresponding second server, and the present invention does not limit.
Exemplary, if file request instruction is a kind of video playback instruction, represent that user plays video A corresponding to this instruction to first server request, in video playback instruction, comprise the sign of the video A of request.First server can get video playback instruction, according to the sign of video A, judge in first server not store video A, first server can be obtained and dynamically return source address, and according to the IP address of returning source server of dynamically returning in source address, find second server, subsequently foradownloaded video A from second server.
File response file request instruction that S206, first server storage are downloaded from second server.
In first server, from second server downloading files, in order to make first server response file request instruction, first server first will be stored the file of downloading from second server.Exemplary, if file request instruction is a kind of video playback instruction, represent that user plays video A corresponding to this instruction to first server request.First server is foradownloaded video A from second server, and storage.
In first server, stored after the file of downloading from second server, first server can also respond the file request instruction of user's input, for user provides service.
Exemplary, if file request instruction is a kind of video playback instruction, represent that user plays video A corresponding to this instruction to first server request.First server can respond this video playback instruction, thereby is user's displaying video A.
A kind of CDN that the embodiment of the present invention provides returns method, first server and the system in source, and the method that CDN goes back to source comprises: first server is obtained file request instruction, comprises the sign of the file of request in file request instruction; First server judges in first server whether stored and identified corresponding file; If storage file not in first server, first server is obtained and is dynamically returned source address; First server is according to dynamically returning source address, from second server downloading files.
Can only return source address according to good fixing of server internal configurations with server in prior art carries out the method for Hui Yuan and compares, pass through this programme, because first server can judge whether stored file in first server, and in first server, do not obtain during storage file and dynamically return source address, and according to dynamically returning source address, from second server downloading files.Therefore, server can carry out Hui Yuan according to dynamically returning source address neatly, no longer sticks to the fixing time source address that server internal configurations is good, the balanced thus access pressure of CDN system, avoid system overload, reasonably utilized system resource, and then promoted the performance of CDN system.
Embodiment 3
The embodiment of the present invention provides a kind of first server, can be applied to CDN system, and as shown in Figure 3, described first server comprises:
The first acquisition module 10, for obtaining file request instruction, the sign of the file that comprises request in described file request instruction.
Judge module 11, for judging whether stored file corresponding to described sign in described first server.
The second acquisition module 12, if for not storing described file in described first server, obtains and dynamically returns source address.
Download module 13, for according to described dynamic time source address, downloads described file from second server.
Further, as shown in Figure 4, described first server, also comprises:
The first respond module 14, if for having stored described file in described first server, respond described file request instruction.
Further, as shown in Figure 5, described first server, also comprises:
The second respond module 15, at described download module 13 according to described dynamic time source address, after second server is downloaded described file, the described file downloaded from second server of storage also responds described file request instruction.
Further, as shown in Figure 6, described the second acquisition module 12, specifically comprises:
Second obtains submodule 120, if for not storing described file in described first server, obtains the uniform resource position mark URL parameter that CDN control centre generates, and described URL parameter at least comprises described dynamic time source address.
Parsing module 121, for resolving described URL parameter, obtains described dynamic time source address.
Further, described dynamic time source address at least comprises go back to the IP address of source server.
As shown in Figure 7, described download module 13, specifically comprises:
Search module 130, for according to the IP address of described time source server, search described second server.
Download submodule 131, for finding after described second server in the described module 130 of searching, from described second server, download described file.
A kind of first server that the embodiment of the present invention provides, first server comprises: the first acquisition module, for obtaining file request instruction, the sign of the file that comprises request in described file request instruction; Judge module, for judging whether stored file corresponding to described sign in described first server; The second acquisition module, if for not storing described file in described first server, obtains and dynamically returns source address; Download module, for according to described dynamic time source address, downloads described file from second server.
Wherein, described second server can be server of the prior art, can be also as disclosed first server in the embodiment of the present application 3.
Can only return source address according to good fixing of server internal configurations with server in prior art carries out the method for Hui Yuan and compares, pass through this programme, because first server can judge whether stored file in first server, and in first server, do not obtain during storage file and dynamically return source address, and according to dynamically returning source address, from second server downloading files.Therefore, server can carry out Hui Yuan according to dynamically returning source address neatly, no longer sticks to the fixing time source address that server internal configurations is good, the balanced thus access pressure of CDN system, avoid system overload, reasonably utilized system resource, and then promoted the performance of CDN system.
Embodiment 4
The embodiment of the present invention provides a kind of CDN system, comprises the described first server with above-mentioned arbitrary feature, for described first server provides at least one second server of Hui Yuan, and for generating the CDN control centre of URL parameter.
Through the above description of the embodiments, those skilled in the art can be well understood to, for convenience and simplicity of description, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure that is about to device be divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described module or unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (11)

1. CDN returns the method in source, it is characterized in that, is applied to CDN system, and described method comprises:
First server is obtained file request instruction, the sign of the file that comprises request in described file request instruction;
Described first server judges in described first server, whether to have stored file corresponding to described sign;
If do not store described file in described first server, described first server is obtained and is dynamically returned source address;
Described first server, according to described dynamic time source address, is downloaded described file from second server.
2. CDN according to claim 1 returns the method in source, it is characterized in that, if stored described file in described first server, described first server responds described file request instruction.
3. CDN according to claim 1 returns the method in source, it is characterized in that, in described first server, according to described dynamic time source address, after second server is downloaded described file, described method also comprises:
The described file that described first server storage is downloaded from second server also responds described file request instruction.
4. CDN according to claim 1 returns the method in source, it is characterized in that, if do not store described file in described first server, described first server is obtained and dynamically returned source address, specifically comprises:
If do not store described file in described first server, described first server is obtained the uniform resource position mark URL parameter that CDN control centre generates, and described URL parameter at least comprises described dynamic time source address;
Described first server is resolved described URL parameter, obtains described dynamic time source address.
5. CDN according to claim 1 returns the method in source, it is characterized in that, described dynamic time source address at least comprises go back to the IP address of source server;
Described first server, according to described dynamic time source address, is downloaded described file from second server, specifically comprises:
Described first server, according to the IP address of described time source server, is searched described second server;
In described first server, find after described second server, described first server is downloaded described file from described second server.
6. a first server, is characterized in that, is applied to CDN system, and described first server comprises:
The first acquisition module, for obtaining file request instruction, the sign of the file that comprises request in described file request instruction;
Judge module, for judging whether stored file corresponding to described sign in described first server;
The second acquisition module, if for not storing described file in described first server, obtains and dynamically returns source address;
Download module, for according to described dynamic time source address, downloads described file from second server.
7. first server according to claim 6, is characterized in that, described first server, also comprises:
The first respond module, if for having stored described file in described first server, respond described file request instruction.
8. first server according to claim 6, is characterized in that, described first server, also comprises:
The second respond module, at described download module according to described dynamic time source address, after second server is downloaded described file, the described file downloaded from second server of storage also responds described file request instruction.
9. first server according to claim 6, is characterized in that, described the second acquisition module, specifically comprises:
Second obtains submodule, if for not storing described file in described first server, obtains the uniform resource position mark URL parameter that CDN control centre generates, and described URL parameter at least comprises described dynamic time source address;
Parsing module, for resolving described URL parameter, obtains described dynamic time source address.
10. first server according to claim 6, is characterized in that, described dynamic time source address at least comprises go back to the IP address of source server;
Described download module, specifically comprises:
Search module, for according to the IP address of described time source server, search described second server;
Download submodule, for arriving after described second server in the described module searches of searching, from described second server, download described file.
11. 1 kinds of CDN systems, is characterized in that, comprise the first server having as described in any one in claim 6-10; For described first server provides at least one second server of Hui Yuan; And for generating the CDN control centre of URL parameter.
CN201310722708.3A 2013-12-24 2013-12-24 CDN back-to-source method, first server and system thereof Pending CN103747112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310722708.3A 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
CN201310722708.3A 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 CN103747112A (en) 2014-04-23

Family

ID=50504098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310722708.3A Pending 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 (34)

* 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 武汉斗鱼网络科技有限公司 The system and method for image are uploaded and obtained to live platform
CN106230942A (en) * 2016-08-01 2016-12-14 中国联合网络通信集团有限公司 A kind of method and system of time source access
CN106357783A (en) * 2016-09-29 2017-01-25 北京奇艺世纪科技有限公司 Method and device for distributing edge nodes
CN106375471A (en) * 2016-09-29 2017-02-01 北京奇艺世纪科技有限公司 Edge node determination method and device
CN106550023A (en) * 2016-10-31 2017-03-29 北京百度网讯科技有限公司 A kind of method and apparatus for providing the user specified file piecemeal
CN106571982A (en) * 2016-11-17 2017-04-19 乐视控股(北京)有限公司 Data back-to-source method, device and content delivery network system
CN106656674A (en) * 2016-12-29 2017-05-10 北京爱奇艺科技有限公司 Data sourcing scheduling method and device
CN107493232A (en) * 2016-06-12 2017-12-19 阿里巴巴集团控股有限公司 A kind of access accelerating method and device of CDN
CN107911713A (en) * 2017-11-08 2018-04-13 北京奇艺世纪科技有限公司 A kind of definite method and device of disk
CN108337327A (en) * 2018-04-26 2018-07-27 拉扎斯网络科技(上海)有限公司 Resource acquisition method and proxy server
CN109618174A (en) * 2018-12-11 2019-04-12 深圳市网心科技有限公司 A kind of live data transmission method, device, system and storage medium
CN109660578A (en) * 2017-10-11 2019-04-19 阿里巴巴集团控股有限公司 CDN's returns source processing method and processing device, system
CN109922105A (en) * 2017-12-13 2019-06-21 苏宁云商集团股份有限公司 Realize that CDN returns the method and system that source request carries client ip
CN110351222A (en) * 2018-04-02 2019-10-18 腾讯科技(深圳)有限公司 Data safety processing method and device, system
CN111427766A (en) * 2020-02-20 2020-07-17 北京齐尔布莱特科技有限公司 Request processing method and device and proxy server
CN111628911A (en) * 2020-05-27 2020-09-04 北京金山云网络技术有限公司 CDN back source abnormity testing method and device and terminal equipment
CN112055044A (en) * 2020-07-20 2020-12-08 云盾智慧安全科技有限公司 Data request method, server and computer storage medium
WO2021004384A1 (en) * 2019-07-09 2021-01-14 阿里巴巴集团控股有限公司 Content delivery network, data processing method, apparatus and device, and storage medium
CN112422702A (en) * 2020-08-10 2021-02-26 上海哔哩哔哩科技有限公司 CDN back-to-source method, system and computer equipment
CN112688980A (en) * 2019-10-18 2021-04-20 上海哔哩哔哩科技有限公司 Resource distribution method and device, and computer equipment
CN114006943A (en) * 2022-01-04 2022-02-01 北京金山云网络技术有限公司 Data source returning method, device, equipment and storage medium
CN114189560A (en) * 2020-08-28 2022-03-15 北京金山云网络技术有限公司 Resource transmission method and device, storage medium and electronic device

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 (49)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104093045B (en) * 2014-07-17 2018-01-16 百视通网络电视技术发展有限责任公司 OTT TV playing requests processing methods and system based on Hui Yuan
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
CN104320681B (en) * 2014-11-07 2018-03-09 百视通网络电视技术发展有限责任公司 A kind of CDN returns the method and system of source service
CN106101231B (en) * 2014-12-22 2020-02-21 北京奇虎科技有限公司 Method and device for realizing resource downloading through CDN (content delivery network), server and client
CN104468817A (en) * 2014-12-22 2015-03-25 北京奇虎科技有限公司 Method and device for achieving resource download through CDN, server and client side
CN104468817B (en) * 2014-12-22 2016-08-24 北京奇虎科技有限公司 Implementation method and device, server, the client of resource is downloaded by CDN
CN106101231A (en) * 2014-12-22 2016-11-09 北京奇虎科技有限公司 Implementation method and device, server, the client of resource is downloaded by CDN
WO2016101763A1 (en) * 2014-12-22 2016-06-30 北京奇虎科技有限公司 Implementation method and device for downloading resource through cdn, and server and client
CN105812839B (en) * 2014-12-31 2018-12-14 华为技术有限公司 Video stream data acquisition, page data transmission method, system and network server
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
CN105450780B (en) * 2015-12-31 2019-01-18 深圳市网心科技有限公司 A kind of CDN system and its return source method
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
CN105847154A (en) * 2016-04-25 2016-08-10 乐视控股(北京)有限公司 Route selection method and device
CN105959358A (en) * 2016-04-25 2016-09-21 乐视控股(北京)有限公司 CDN server and method of CDN server of caching data
CN107493232B (en) * 2016-06-12 2020-12-01 阿里巴巴集团控股有限公司 CDN access acceleration method and device
CN107493232A (en) * 2016-06-12 2017-12-19 阿里巴巴集团控股有限公司 A kind of access accelerating method and device of CDN
CN106059856A (en) * 2016-06-20 2016-10-26 乐视控股(北京)有限公司 File retrieval method, file retrieval apparatus and content delivery network (CDN) system
CN106161611B (en) * 2016-06-30 2019-03-05 武汉斗鱼网络科技有限公司 The system and method that platform uploads and obtains image are broadcast live
CN106161611A (en) * 2016-06-30 2016-11-23 武汉斗鱼网络科技有限公司 The system and method for image are uploaded and obtained to live platform
CN106230942B (en) * 2016-08-01 2019-08-16 中国联合网络通信集团有限公司 A kind of method and system of time source access
CN106230942A (en) * 2016-08-01 2016-12-14 中国联合网络通信集团有限公司 A kind of method and system of time source access
CN106357783B (en) * 2016-09-29 2019-06-14 北京奇艺世纪科技有限公司 A kind of fringe node distribution method and device
CN106357783A (en) * 2016-09-29 2017-01-25 北京奇艺世纪科技有限公司 Method and device for distributing edge nodes
CN106375471A (en) * 2016-09-29 2017-02-01 北京奇艺世纪科技有限公司 Edge node determination method and device
CN106550023A (en) * 2016-10-31 2017-03-29 北京百度网讯科技有限公司 A kind of method and apparatus for providing the user specified file piecemeal
CN106571982A (en) * 2016-11-17 2017-04-19 乐视控股(北京)有限公司 Data back-to-source method, device and content delivery network system
CN106656674A (en) * 2016-12-29 2017-05-10 北京爱奇艺科技有限公司 Data sourcing scheduling method and device
CN109660578A (en) * 2017-10-11 2019-04-19 阿里巴巴集团控股有限公司 CDN's returns source processing method and processing device, system
CN107911713B (en) * 2017-11-08 2020-05-22 北京奇艺世纪科技有限公司 Method and device for determining magnetic disk
CN107911713A (en) * 2017-11-08 2018-04-13 北京奇艺世纪科技有限公司 A kind of definite method and device of disk
CN109922105A (en) * 2017-12-13 2019-06-21 苏宁云商集团股份有限公司 Realize that CDN returns the method and system that source request carries client ip
CN110351222A (en) * 2018-04-02 2019-10-18 腾讯科技(深圳)有限公司 Data safety processing method and device, system
CN108337327A (en) * 2018-04-26 2018-07-27 拉扎斯网络科技(上海)有限公司 Resource acquisition method and proxy server
CN109618174A (en) * 2018-12-11 2019-04-12 深圳市网心科技有限公司 A kind of live data transmission method, device, system and storage medium
CN109618174B (en) * 2018-12-11 2021-12-03 深圳市网心科技有限公司 Live broadcast data transmission method, device, system and storage medium
WO2021004384A1 (en) * 2019-07-09 2021-01-14 阿里巴巴集团控股有限公司 Content delivery network, data processing method, apparatus and device, and storage medium
CN112688980A (en) * 2019-10-18 2021-04-20 上海哔哩哔哩科技有限公司 Resource distribution method and device, and computer equipment
CN111427766A (en) * 2020-02-20 2020-07-17 北京齐尔布莱特科技有限公司 Request processing method and device and proxy server
CN111427766B (en) * 2020-02-20 2023-08-18 北京齐尔布莱特科技有限公司 Request processing method and device and proxy server
CN111628911A (en) * 2020-05-27 2020-09-04 北京金山云网络技术有限公司 CDN back source abnormity testing method and device and terminal equipment
CN112055044A (en) * 2020-07-20 2020-12-08 云盾智慧安全科技有限公司 Data request method, server and computer storage medium
CN112422702A (en) * 2020-08-10 2021-02-26 上海哔哩哔哩科技有限公司 CDN back-to-source method, system and computer equipment
CN114189560A (en) * 2020-08-28 2022-03-15 北京金山云网络技术有限公司 Resource transmission method and device, storage medium and electronic device
CN114006943A (en) * 2022-01-04 2022-02-01 北京金山云网络技术有限公司 Data source returning method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103747112A (en) CDN back-to-source method, first server and system thereof
US9665428B2 (en) Distributing erasure-coded fragments in a geo-distributed storage system
CN106933871B (en) Short link processing method and device and short link server
CN103747273A (en) Video requesting method, device and system
US8495013B2 (en) Distributed storage system and method for storing objects based on locations
CN103747047A (en) CDN file storage method, file distribution control center and system thereof
US8843632B2 (en) Allocation of resources between web services in a composite service
CN104424199A (en) Search method and device
CN103746934A (en) CDN bandwidth balancing method, CDN control center and system
CN103944994A (en) Distributed resource obtaining method and device
CN109756584B (en) Domain name resolution method, domain name resolution device and computer readable storage medium
US20170339252A1 (en) Generating a response to a client device in an internet of things domain
CN105045762A (en) Management method and apparatus for configuration file
CN102033952A (en) Resource recommendation method and device
CN113014681A (en) Network card binding method and device of multi-network card server, electronic equipment and storage medium
KR101860995B1 (en) Automatic Service Configuration Methods utilizing Thing Functions and Cloud Services
CN103678535A (en) Browser and downloading method thereof
CN104735041A (en) Method and device for having access to offline resources
CN104038842A (en) Method and device for pre-fetching requested program information in CDN (Content Delivery Network) network
CN103440281A (en) Method, device and equipment for acquiring download file
CN104796437A (en) Method, device and system for querying geographical location information based on Nginx
CN111225032A (en) Method, system, device and medium for separating application service and file service
CN104978337A (en) Distributive video search engine framework based on software defined network
US8533333B2 (en) Shared hosting using host name affinity
WO2016165539A1 (en) Method and apparatus for generating cloud service experience tool

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160108

Address after: 100081 Beijing, Zhongguancun, South Street, No. 1, building 689, building 1153, No., No. 5

Applicant after: LETV CLOUD COMPUTING CO., LTD.

Address before: Room six, building 19, building 68, No. 100089 South Road, Haidian District, Beijing

Applicant before: LeTV Information Technology (Beijing) Co., Ltd.

AD01 Patent right deemed abandoned

Effective date of abandoning: 20190326

AD01 Patent right deemed abandoned