Disclosure of Invention
In view of the above, the present invention has been developed to provide a system and method for enabling CDN access that overcomes, or at least partially solves, the above-identified problems.
According to one aspect of the present invention, there is provided a system for implementing CDN access, comprising a Web client, a task center server, a domain name resolution server, and at least one cache server, wherein,
the Web client is suitable for receiving domain name information of a source server to be accessed to the CDN;
the task center server is suitable for generating a configuration task for configuring the IP address of at least one cache server for the domain name information and sending the configuration task to a domain name resolution server; and issuing the domain name information to the at least one cache server;
the domain name resolution server is suitable for receiving the configuration task issued by the task center server and executing the configuration task to provide domain name resolution service;
the at least one cache server is suitable for receiving the domain name information issued by the task center server and analyzing the domain name information to acquire data resources from the source server so as to provide the data resources to the outside.
Optionally, the domain name resolution server is further adapted to: receiving a domain name resolution request, wherein the domain name resolution request carries domain name information to be resolved; judging whether the domain name information to be analyzed is stored before receiving the domain name analysis request; if so, analyzing the domain name information to be analyzed, and returning an analysis result; if not, executing the extensive analysis and returning the specified extensive analysis result.
Optionally, resolving the domain name information to be resolved, and returning a resolution result, including: searching the IP address of at least one cache server configured for the domain name information to be analyzed; and selecting one of the IP addresses of the at least one cache server as a resolution result to return.
Optionally, performing a flood analysis, and returning a specified flood analysis result, including: resolving the domain name information to be resolved to an IP address of a specified cache server; and returning the IP address of the specified cache server as a flooding resolution result.
Optionally, the at least one cache server is further adapted to: receiving an access data request, wherein the access data request carries an identifier of data to be accessed; judging whether the data to be accessed corresponding to the identifier of the data to be accessed is found; if yes, returning a search result; and if not, sending a request for searching domain name information to the task center server, wherein the domain name information is the domain name information of the source server corresponding to the identifier of the data to be accessed.
Optionally, the task center server is further adapted to: receiving a request for searching domain name information from the at least one cache server, wherein the domain name information is the domain name information of a source server corresponding to the identifier of the data to be accessed; and searching the domain name information and returning.
According to another aspect of the present invention, there is provided a method for implementing CDN access to a content delivery network, applied to a task center server, including: acquiring domain name information of a source server to be accessed to the CDN, which is received by a Web client; generating a configuration task for configuring the IP address of at least one cache server for the domain name information, and issuing the configuration task to a domain name resolution server; and issuing the domain name information to the at least one cache server.
Optionally, the method further comprises: receiving a request for searching domain name information from the at least one cache server, wherein the domain name information is the domain name information of a source server corresponding to the identifier of the data to be accessed; and searching the domain name information and returning.
According to still another aspect of the present invention, there is provided a method for implementing CDN access to a content delivery network, including:
receiving domain name information of a source server to be accessed to the CDN by a Web client;
the task center server acquires the domain name information, generates a configuration task for configuring the IP address of at least one cache server for the domain name information, and issues the configuration task to a domain name resolution server; and issuing the domain name information to the at least one cache server;
the domain name resolution server receives the configuration task issued by the task center server and executes the configuration task to provide domain name resolution service;
and the at least one cache server receives the domain name information issued by the task center server, analyzes the domain name information and acquires data resources from the source server so as to provide the data resources to the outside.
Optionally, the method further comprises: the cache server receives an access data request, wherein the access data request carries an identifier of data to be accessed; the at least one cache server judges whether the data to be accessed corresponding to the identification of the data to be accessed is found; if yes, returning a search result; and if not, sending a request for searching domain name information to the task center server, wherein the domain name information is the domain name information of the source server corresponding to the identifier of the data to be accessed.
Optionally, the method further comprises: the task center server receives a request for searching domain name information from the at least one cache server, wherein the domain name information is domain name information of a source server corresponding to the identifier of the data to be accessed; and the task center server searches the domain name information and returns the domain name information.
The invention provides a system for realizing CDN access, which comprises a Web client, a task center server, a domain name resolution server and at least one cache server. In the system, a Web client receives domain name information of a source server to be accessed to a CDN, a task center server generates a configuration task for configuring the IP address of at least one cache server for the domain name information, and the configuration task is issued to a domain name resolution server; and sending the domain name information to at least one cache server. Therefore, the task center server can automatically generate the configuration task and automatically issue the configuration task, a CDN provider does not need to manually configure the task, and the efficiency of the configuration task is improved. And the domain name resolution server instantly receives the configuration task issued by the task center server and executes the configuration task to provide domain name resolution service, and the at least one cache server instantly receives the domain name information issued by the task center server and resolves the domain name information to acquire data resources from the source server, so as to externally provide the data resources, further improve the efficiency of the configuration task and embody the instant effectiveness.
Further, when the domain name resolution server receives the domain name resolution request and resolves the domain name information to be resolved, if the domain name information to be resolved is stored before the domain name resolution request is received (that is, the domain name resolution server has configured the IP address of at least one cache server for the domain name information to be resolved), then the resolution is directly performed. Otherwise, executing the extensive analysis and returning the specified extensive analysis result. Therefore, the domain name resolution server provided by the invention can realize the real-time effect of configuration without waiting, and optimizes the operation experience.
In addition, at least one cache server receives the access data request, searches for the data to be accessed corresponding to the identifier of the data to be accessed, and directly returns the search result if the data to be accessed is found (namely, at least one cache server already receives the domain name information issued by the task center server before receiving the access data request and analyzes the domain name information to obtain the data resource from the source server). Otherwise, a request for searching the domain name information is sent to the task center server, and then the data resource is obtained from the source server corresponding to the domain name information according to the domain name information returned by the task center server, so as to provide the data resource to the outside. Therefore, the at least one cache server provided by the invention can realize the real-time effect of configuration without waiting, and the operation experience is optimized.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
To solve the foregoing technical problem, an embodiment of the present invention provides a system for implementing CDN access, and fig. 1A illustrates a schematic structural diagram of the system for implementing CDN access according to an embodiment of the present invention. As shown in fig. 1A, the system includes at least: a Web client 100, a task center server 110, a domain name resolution server 120, and at least one cache server 130.
The functions of the components or devices of the system for realizing CDN access and the connection relationship between the components will now be described:
a Web client 100 adapted to receive domain name information of an origin server to be accessed to the CDN;
the task center server 110 is coupled with the Web client 100, and is adapted to generate a configuration task for configuring the IP address of the at least one cache server 130 for the domain name information, and send the configuration task to the domain name resolution server 120; and issuing the domain name information to at least one cache server 130;
a domain name resolution server 120, coupled to the task center server 110, adapted to receive a configuration task issued by the task center server 110 and execute the configuration task to provide a domain name resolution service;
and the at least one cache server 130 is coupled to the task center server 110 and is adapted to receive the domain name information sent by the task center server 110 and resolve the domain name information to obtain the data resource from the source server, so as to provide the data resource to the outside.
The invention provides a system for realizing CDN access, which comprises a Web client, a task center server, a domain name resolution server and at least one cache server. In the system, a Web client receives domain name information of a source server to be accessed to a CDN, a task center server generates a configuration task for configuring the IP address of at least one cache server for the domain name information, and the configuration task is issued to a domain name resolution server; and sending the domain name information to at least one cache server. Therefore, the task center server can automatically generate the configuration task and automatically issue the configuration task, a CDN provider does not need to manually configure the task, and the efficiency of the configuration task is improved. And the domain name resolution server instantly receives the configuration task issued by the task center server and executes the configuration task to provide domain name resolution service, and the at least one cache server instantly receives the domain name information issued by the task center server and resolves the domain name information to acquire data resources from the source server, so as to externally provide the data resources, further improve the efficiency of the configuration task, embody instant effectiveness, do not need any waiting, and optimize the operation experience.
It should be noted that the Web (network or website) client provided by the present invention is an interface for inputting domain name information of an origin server to be accessed to the CDN, such as a browser.
Because a certain time is required in the configuration process of accessing the CDN, in the configuration process, for example, the task center server 110 issues a configuration task to the domain name resolution server 120 or issues domain name information to the at least one cache server 130, the domain name resolution server 120 executes the configuration task to provide a domain name resolution service, and the at least one cache server 130 resolves the domain name information to obtain a data resource from the origin server, so as to provide the data resource externally. Thus, when the visitor accesses the domain name resolution server or the cache server, the corresponding storage does not have domain name related information, which may cause the visitor to wait. In order to solve the problem, the invention provides corresponding solutions for a domain name resolution server and at least one cache server respectively.
The invention provides a preferred scheme for a domain name resolution server, wherein the domain name resolution server receives a domain name resolution request, the domain name resolution request carries domain name information to be resolved, and then whether the domain name information to be resolved is stored before the domain name resolution request is received (namely whether the IP address of at least one cache server is configured for the domain name information to be resolved before the domain name resolution server receives the domain name resolution request or not) is judged, if so, the domain name information to be resolved is directly resolved, and a resolution result is returned. Otherwise, executing the extensive analysis and returning the specified extensive analysis result. Therefore, the domain name resolution server provided by the invention can realize the real-time effect of configuration without waiting, and optimizes the operation experience.
Further, directly analyzing the domain name information to be analyzed, and returning an analysis result may be implemented by searching for an IP address of at least one cache server configured for the domain name information to be analyzed, and then selecting one of the IP addresses of the at least one cache server as the analysis result to be returned. For example, the domain name resolution server receives a domain name resolution request, where the domain name resolution request carries information of a domain name to be resolved as a domain name a, and the domain name resolution server receives an IP address of at least one cache server configured for the domain name a before the domain name resolution request as IP1, IP2, and IP3, and at this time, according to a preset selection policy (e.g., distance from the cache server to the user, response time, load of the cache server, and other comprehensive information), one IP address is selected from IP1, IP2, and IP3 and returned as a resolution result, so that data resources can be obtained from the cache server corresponding to the selected IP address.
In addition, if the domain name information to be resolved is not stored before receiving the domain name resolution request (that is, the domain name resolution server does not configure the IP address of at least one cache server for the domain name information to be resolved before receiving the domain name resolution request), performing the flooding resolution, and returning a specified flooding resolution result. Here, the present invention provides a preferable scheme, in which the domain name information to be resolved can be resolved to the IP address of the specified cache server, and the IP address of the specified cache server is returned as a global resolution result, so that the data resource can be acquired from the cache server corresponding to the specified IP address.
Secondly, aiming at least one cache server, in the preferred scheme provided by the invention, at least one cache server receives an access data request, the access data request carries an identifier of data to be accessed, and then whether the data to be accessed corresponding to the identifier of the data to be accessed is found is judged, if so (namely at least one cache server already receives domain name information issued by a task center server before receiving the access data request and analyzes the domain name information to obtain data resources from a source server), a search result is returned. Otherwise, a request for searching the domain name information is sent to the task center server, for example, an HTTP (Hypertext transfer protocol) request for searching the domain name information is sent to the task center server, where the domain name information is the domain name information of the source server corresponding to the identifier of the data to be accessed, and then, according to the domain name information returned by the task center server, the data resource is obtained from the source server corresponding to the domain name information, so as to provide the data resource to the outside. Therefore, the at least one cache server provided by the invention can realize the real-time effect of configuration without waiting, and the operation experience is optimized.
Various implementations of the various elements of the embodiment shown in fig. 1 are described above, and are described in detail below with reference to a specific embodiment. In this embodiment, an origin server P to be accessed to the CDN accesses the CDN by using the system for automatically accessing the CDN provided in fig. 1A to provide a data access service to the outside, and fig. 1B shows a schematic diagram of accessing the CDN by using the access system provided by the present invention to provide a data access service to the outside. The visitor inputs domain name information (e.g., domain name information of the source server P) at a browser client (which is different from the above-mentioned Web client and is a browser client on a terminal such as a mobile phone or a computer of the visitor) where the visitor is located, and the browser client sends a domain name resolution request (see a signal flow direction indicated by "1" in fig. 1B) to the domain name resolution server 120, where the domain name resolution request carries domain name information to be resolved. At this time, the domain name resolution server 120 determines whether the IP address of at least one cache server has been configured for the domain name information to be resolved before receiving the domain name resolution request, and if so, directly resolves the domain name information to be resolved, and returns a resolution result (a signal flow direction indicated by "2" in fig. 1B). Otherwise, the generic resolution is executed, and the specified generic resolution result is returned (the signal flow direction indicated by "2" in fig. 1B). Subsequently, the browser client where the visitor is located sends an access data request (a signal flow direction indicated by "3" in fig. 1B) to one cache server 130' of the at least one cache server 130 according to the resolved IP address of the cache server, where the access data request carries an identifier of data to be accessed. The cache server 130' receives the access data request, and further determines whether the data to be accessed corresponding to the identifier of the data to be accessed is found, and if so, returns the search result. Otherwise, a request for looking up domain name information is sent to the task center server 110 (the signal flow direction shown by "4" in fig. 1B), where the domain name information is the domain name information of the source server corresponding to the identifier of the data to be accessed. The task center server 110 returns the domain name information to the cache server 130' (the signal flow shown as "5" in FIG. 1B). Then, the cache server 130' obtains the data resource from the source server corresponding to the domain name information according to the domain name information returned by the task center server 110, and provides the data resource to the visitor (the signal flow direction shown by "6" in fig. 1B).
Based on the same inventive concept, an embodiment of the present invention further provides a method for implementing CDN access, and fig. 2 shows a flowchart of a method for implementing CDN access applied to a task center server according to an embodiment of the present invention. As shown in fig. 2, the method at least includes the following steps S202 to S204.
Step S202, obtaining domain name information of an origin server to be accessed to the CDN, which is received by the Web client.
Step S204, generating a configuration task for configuring the IP address of at least one cache server for the domain name information, and issuing the configuration task to a domain name resolution server; and sending the domain name information to at least one cache server.
Further, a request for searching domain name information from at least one cache server may be received, where the domain name information is domain name information of a source server corresponding to an identifier of data to be accessed, and then the domain name information is searched and returned.
Correspondingly, an embodiment of the present invention further provides a method for implementing CDN access, and fig. 3 shows a flowchart of a method for implementing CDN access applied to a domain name resolution server according to an embodiment of the present invention. As shown in fig. 3, the method includes at least the following steps S302 to S304.
Step S302, receiving a configuration task issued by a task center server, where the configuration task is to configure an IP address of at least one cache server for domain name information of a source server to be accessed to the CDN.
And step S304, executing a configuration task to provide domain name resolution service.
Since it takes a certain time for the task center server to issue the configuration task to the domain name resolution server and for the domain name resolution server to execute the configuration task to provide the domain name resolution service, when the visitor accesses the domain name resolution server, the corresponding storage does not have domain name related information, so that the visitor is in a waiting state. To solve this problem, the present invention provides a solution for a domain name resolution server.
In a preferred scheme provided by the present invention, the domain name resolution server receives a domain name resolution request, where the domain name resolution request carries domain name information to be resolved, and further determines whether the domain name information to be resolved is stored before receiving the domain name resolution request (i.e., whether the domain name resolution server configures an IP address of at least one cache server for the domain name information to be resolved before receiving the domain name resolution request), and if so, directly resolves the domain name information to be resolved, and returns a resolution result. Otherwise, executing the extensive analysis and returning the specified extensive analysis result. Therefore, the domain name resolution server provided by the invention can realize the real-time effect of configuration without waiting, and optimizes the operation experience.
Further, directly analyzing the domain name information to be analyzed, and returning an analysis result may be implemented by searching for an IP address of at least one cache server configured for the domain name information to be analyzed, and then selecting one of the IP addresses of the at least one cache server as the analysis result to be returned.
In addition, if the domain name information to be resolved is not stored before receiving the domain name resolution request (that is, the domain name resolution server does not configure the IP address of at least one cache server for the domain name information to be resolved before receiving the domain name resolution request), performing the flooding resolution, and returning a specified flooding resolution result. Here, the present invention provides a preferable scheme, in which the domain name information to be resolved can be resolved to the IP address of the specified cache server, and the IP address of the specified cache server is returned as a global resolution result, so that the data resource can be acquired from the cache server corresponding to the specified IP address.
Correspondingly, an embodiment of the present invention further provides a method for implementing CDN access, and fig. 4 shows a flowchart of a method for implementing CDN access applied to at least one cache server according to an embodiment of the present invention. As shown in fig. 4, the method includes at least the following steps S402 to S404.
Step S402, receiving domain name information issued by a task center server, wherein the domain name information refers to domain name information of a source server to be accessed to the CDN.
Step S404, analyzing the domain name information to obtain the data resource from the source server so as to provide the data resource for the outside.
Since it takes a certain time for the task center server to issue the domain name information to the at least one cache server and for the at least one cache server to analyze the domain name information and acquire the data resource from the source server, when the visitor accesses the cache server, the corresponding storage does not have the information related to the domain name, so that the visitor is in a waiting state. To solve this problem, the present invention provides a solution for at least one cache server.
In the preferred scheme provided by the invention, at least one cache server receives an access data request, the access data request carries an identifier of data to be accessed, whether the data to be accessed corresponding to the identifier of the data to be accessed is found is further judged, and if the data to be accessed is found, the search result is returned (namely, at least one cache server already receives domain name information issued by a task center server before receiving the access data request and analyzes the domain name information to obtain data resources from a source server). And on the contrary, sending a request for searching domain name information to the task center server, wherein the domain name information is the domain name information of the source server corresponding to the identifier of the data to be accessed, and further acquiring the data resource from the source server corresponding to the domain name information according to the domain name information returned by the task center server so as to provide the data resource to the outside. Therefore, the at least one cache server provided by the invention can realize the real-time effect of configuration without waiting, and the operation experience is optimized.
Correspondingly, the embodiment of the present invention further provides a method for implementing CDN access, and fig. 5 shows a flowchart of the method for implementing CDN access according to an embodiment of the present invention. As shown in fig. 5, the method at least includes the following steps S502 to S512.
Step 500, the Web client receives domain name information of an origin server to be accessed to the CDN.
Step S502, the task center server obtains domain name information.
Step S504, the task center server generates a configuration task for configuring the IP address of at least one cache server for the domain name information.
Step S506, the task center server issues the configuration task to the domain name resolution server.
And step S508, the task center server sends the domain name information to at least one cache server.
Step S510, the domain name resolution server receives a configuration task issued by the task center server, and executes the configuration task to provide a domain name resolution service.
Step S512, at least one cache server receives the domain name information issued by the task center server, and resolves the domain name information to obtain the data resource from the source server, so as to provide the data resource to the outside.
According to any one or a combination of the above preferred embodiments, the following advantages can be achieved by the embodiments of the present invention:
the invention provides a system for realizing CDN access, which comprises a Web client, a task center server, a domain name resolution server and at least one cache server. In the system, a Web client receives domain name information of a source server to be accessed to a CDN, a task center server generates a configuration task for configuring the IP address of at least one cache server for the domain name information, and the configuration task is issued to a domain name resolution server; and sending the domain name information to at least one cache server. Therefore, the task center server can automatically generate the configuration task and automatically issue the configuration task, a CDN provider does not need to manually configure the task, and the efficiency of the configuration task is improved. And the domain name resolution server instantly receives the configuration task issued by the task center server and executes the configuration task to provide domain name resolution service, and the at least one cache server instantly receives the domain name information issued by the task center server and resolves the domain name information to acquire data resources from the source server, so as to externally provide the data resources, further improve the efficiency of the configuration task and embody the instant effectiveness.
Further, when the domain name resolution server receives the domain name resolution request and resolves the domain name information to be resolved, if the domain name information to be resolved is stored before the domain name resolution request is received (that is, the domain name resolution server has configured the IP address of at least one cache server for the domain name information to be resolved), then the resolution is directly performed. Otherwise, executing the extensive analysis and returning the specified extensive analysis result. Therefore, the domain name resolution server provided by the invention can realize the real-time effect of configuration without waiting, and optimizes the operation experience.
In addition, at least one cache server receives the access data request, searches for the data to be accessed corresponding to the identifier of the data to be accessed, and directly returns the search result if the data to be accessed is found (namely, at least one cache server already receives the domain name information issued by the task center server before receiving the access data request and analyzes the domain name information to obtain the data resource from the source server). Otherwise, a request for searching the domain name information is sent to the task center server, and then the data resource is obtained from the source server corresponding to the domain name information according to the domain name information returned by the task center server, so as to provide the data resource to the outside. Therefore, the at least one cache server provided by the invention can realize the real-time effect of configuration without waiting, and the operation experience is optimized.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in a system implementing CDN access in accordance with an embodiment of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
Thus, it should be appreciated by those skilled in the art that while a number of exemplary embodiments of the invention have been illustrated and described in detail herein, many other variations or modifications consistent with the principles of the invention may be directly determined or derived from the disclosure of the present invention without departing from the spirit and scope of the invention. Accordingly, the scope of the invention should be understood and interpreted to cover all such other variations or modifications.