CN108173952A - A kind of data access method and device of content distributing network CDN - Google Patents
A kind of data access method and device of content distributing network CDN Download PDFInfo
- Publication number
- CN108173952A CN108173952A CN201711485125.8A CN201711485125A CN108173952A CN 108173952 A CN108173952 A CN 108173952A CN 201711485125 A CN201711485125 A CN 201711485125A CN 108173952 A CN108173952 A CN 108173952A
- Authority
- CN
- China
- Prior art keywords
- target data
- computing device
- node
- data
- access request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
Abstract
An embodiment of the present invention provides a kind of data access method and device of content distributing network CDN, content distributing network CDN has multiple nodes, and the node has multiple computing devices, the method includes:Access request is received in present node;The destination computing device for storing the corresponding target data of the access request is searched in the multiple computing device;The corresponding target data of the access request is searched in the destination computing device;In embodiments of the present invention, access request is received in present node, the destination computing device for storing the corresponding target data of access request is searched in multiple computing devices, the corresponding target data of access request is searched in destination computing device, when finding target data, return to target data, multiple computing devices under same node for same part data, can cache portion only in some computing device, reduce the number of caching, so as to reduce the waste of memory space.
Description
Technical field
The present invention relates to the technical fields of computer disposal, are visited more particularly to the data of content distributing network CDN a kind of
Ask method and a kind of data access device of content distributing network CDN.
Background technology
Data are carried out commonly using CDN (Content Delivery Network, content distributing network) in website
Transmission, CDN are by one layer of new network structure of increase in existing network, are deployed with multiple nodes, for data cached,
User is allow to transfer data on node nearby or the data needed for being obtained from node nearby, corresponding clothes are provided
Business.
In the node of CDN, it is data cached to be usually deployed multiple computing devices, can be to same on each computing device
Part data are cached, the problem of causing in same node more parts of same part data buffer storage, waste memory space.
Invention content
In view of the above problems, it is proposed that the present invention overcomes the above problem in order to provide one kind or solves at least partly
The data of data access method and a kind of corresponding content distributing network CDN for stating a kind of content distributing network CDN of problem are visited
Ask device.
One side according to the present invention provides a kind of data access method of content distributing network CDN, content distribution
Network C DN has multiple nodes, and the node has multiple computing devices, the method includes:
Access request is received in present node;
It searches in the multiple computing device and is calculated for storing the target of the corresponding target data of the access request
Equipment;
The corresponding target data of the access request is searched in the destination computing device;
When finding the target data, the target data is returned.
Optionally, it is described to search to store the corresponding target data of the access request in the multiple computing device
Destination computing device, including:
The access address of target data is extracted from the access request;
Inquire the corresponding multiple equipment mark of the multiple computing device;
The multiple device identification is respectively adopted and generates multiple condition codes with the access address;
It searches from the multiple computing device according to described document information and is calculated for storing the target of the target data
Equipment.
Optionally, it is described to search from the multiple computing device to store the target data according to described document information
Destination computing device, including:
Search preset information table memory;Device identification and reference of the record with mapping relations in the information table memory
Code, the reference code is using the device identification and the access address for the data for being stored in the affiliated computing device of the device identification
Generation;
The multiple condition code is matched with the reference code respectively;
When successful match, the target for storing the target data is determined with the corresponding device identification of the reference code
Computing device.
Optionally, it is described that the corresponding target data of the access request is searched in the destination computing device, including:
Judge whether to be stored with the access request in the destination computing device corresponding data cached;
When having stored described data cached, described data cached whether fail judged;If so, it determines not find mesh
Mark data;If not, it is determined that described data cached for target data;
When not storing described data cached, determine not find target data.
Optionally, it further includes:
When not finding the target data, the target data is searched from upstream node or source website;
Return to the target data.
Optionally, include Centroid, father's node layer, fringe node in content distributing network CDN;
The Centroid communicates with source website;
The intercommunication of father's node layer, communicate with the Centroid or source website and, it is and described
Fringe node communicates;
The fringe node is used to communicate with client.
Optionally, it is described to search the target data from upstream node or source website, including:
If the present node is the fringe node, the target data is searched from father's node layer;
If the present node is father's node layer, the target data is searched from source website.
Optionally, it is described to return to the target data, including:
If the present node is the fringe node, the target data is returned into client;
If the present node is father's node layer, the target data is returned into the fringe node.
According to another aspect of the present invention, a kind of data access device of content distributing network CDN, content distribution are provided
Network C DN has multiple nodes, and the node has multiple computing devices, and described device includes:
Access request receiving module, for receiving access request in present node;
Destination computing device searching module, for searching to store the access request in the multiple computing device
The destination computing device of corresponding target data;
Target data searching module, for searching the corresponding number of targets of the access request in the destination computing device
According to;
First returns to module, for when finding the target data, returning to the target data.
Optionally, the destination computing device searching module includes:
Access address extracting sub-module, for extracting the access address of target data from the access request;
Submodule is inquired in device identification, for inquiring the corresponding multiple equipment mark of the multiple computing device;
Condition code generates submodule, and multiple spies are generated with the access address for the multiple device identification to be respectively adopted
Levy code;
Condition code searches submodule, for being searched from the multiple computing device for storing according to described document information
State the destination computing device of target data.
Optionally, described document information is searched submodule and is included:
Information table memory searching unit, for searching preset information table memory;Record has in the information table memory
The device identification of mapping relations and reference code, the reference code is using the device identification and is stored in belonging to the device identification
The access address generation of the data of computing device;
Condition code matching unit, for respectively matching the multiple condition code with the reference code;
Destination computing device determination unit, for when successful match, being determined with the corresponding device identification of the reference code
For storing the destination computing device of the target data.
Optionally, the target data searching module includes:
Data cached judging submodule, for judging the access request pair whether is stored in the destination computing device
That answers is data cached;
Fail judging submodule, for described data cached whether fail when having stored described data cached, to be judged;If
It is then to call the first determination sub-module, if it is not, then calling the second determination sub-module;
First determination sub-module, for determining not find target data;
Second determination sub-module, it is described data cached for target data for determining;
Third determination sub-module, for when not storing described data cached, determining not find target data.
Optionally, it further includes:
Target data acquisition module, for when not finding the target data, being searched from upstream node or source website
The target data;
Second returns to module, for returning to the target data.
Optionally, include Centroid, father's node layer, fringe node in content distributing network CDN;
The Centroid communicates with source website;
The intercommunication of father's node layer, communicate with the Centroid or source website and, it is and described
Fringe node communicates;
The fringe node is used to communicate with client.
Optionally, the target data acquisition module includes:
Father's layer searches submodule, if be the fringe node for the present node, is searched from father's node layer
The target data;
Submodule is searched in source station, if be father's node layer for the present node, the mesh is searched from source website
Mark data.
Optionally, the second return module includes:
Client returns to submodule, if be the fringe node for the present node, the target data is returned
Return client;
Edge returns to submodule, if be father's node layer for the present node, the target data is returned
The fringe node.
In embodiments of the present invention, content distributing network CDN has multiple nodes, and node has multiple computing devices,
Access request is received in present node, the mesh for storing the corresponding target data of access request is searched in multiple computing devices
Computing device is marked, the corresponding target data of access request is searched in destination computing device, when finding target data, is returned
Target data, multiple computing devices under same node, for same part data, can only cache in some computing device
Portion reduces the number of caching, so as to reduce the waste of memory space.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, below the special specific embodiment for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this field
Technical staff will become clear.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows that the data access method of content distributing network CDN according to an embodiment of the invention a kind of is implemented
The step schematic flow diagram of example;
Fig. 2 shows a kind of structure diagrams of content distributing network CDN according to an embodiment of the invention;
Fig. 3 shows that the data access method of another content distributing network CDN according to an embodiment of the invention is real
Apply the step schematic flow diagram of example;And
Fig. 4 shows that the data access device of content distributing network CDN according to an embodiment of the invention a kind of is implemented
The structural schematic block diagram of example.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
With reference to Fig. 1, the data access method of content distributing network CDN according to an embodiment of the invention a kind of is shown
The step schematic flow diagram of embodiment, specifically may include steps of:
Step 101, access request is received in present node.
In content distributing network CDN, usually with it is multiple be used for transmission, data cached (such as live TV stream, data cached
Deng) node, after some node receives client, the data of source website (such as live TV stream, data cached), can push away
It send to other nodes, when user accesses data (such as live TV stream, data cached), by scheduling by the request road of user
By being either directed to from user access network recently or on the node of access best results, data are provided to the user by the node
(such as live TV stream, data cached);Relative to direct access originator website, this mode shorten user and data (such as live TV stream,
It is data cached etc.) between network distance, so as to achieve the effect that acceleration.
It should be noted that in different content distributing network CDN, topological structure may be different.
In one embodiment, multiple nodes of content distributing network CDN include Centroid, father's node layer, edge
Node.
In some cases, Centroid is the super aggregation node of resource, can be communicated with source website, has been converged big
The resource of amount source website, these resources generally change less resource, for example, video, picture etc..
In some cases, Centroid only save file information, such as URL (Uniform Resource Locator, system
One Resource Locator), size etc., not direct cache file, other nodes in content distributing network CDN are from the Centroid
The middle fileinfo for obtaining file to be cached after this document has been cached, reports to Centroid, and Centroid counts
The file of other nodal caches.
It should be noted that can dispose Centroid in certain content distributing network CDN, i.e., the contents of the section is distributed
The three-decker of node-father's node layer-fringe node centered on network C DN, can not portion in certain content distributing network CDN
Affix one's name to Centroid, i.e. two-layer structures of the contents of the section distribution network CDN for father's node layer-fringe node, the embodiment of the present invention
This is not limited.
Father's node layer is the secondary aggregation node of resource, on the one hand, due to inside content distributing network CDN, each node it
Between generally communicated using the proprietary communications cable such as bidirectional optical fiber, the communication quality between Centroid and father's node layer has
Higher guarantee, can be with Centroid when the less resource of acquisition variation, external source website communication quality are poor
It communicates, resource is obtained from Centroid, on the other hand, feelings (are such as paid) obtaining new resource, carrying out data manipulation
It under condition, can communicate with source website, resource is obtained from source website.
Furthermore it can be in communication with each other between father's node layer, so as to form the transmission road between father's node layer and fringe node
Diameter, i.e., the path that the node for the intermediate conveyor that a node to another node is passed through and the communications cable are formed.
Specifically, choose transmission path mode can there are many, following at least one can be selected according to actual demand
Kind mode:
1st, the transmission path that transmission performance meets the requirement of setting is chosen.
Transmission performance refer to transmit flow data transmission path transmittability, can according between node distance, transmission
The transmission performance of the determining transmission path such as speed, data loss rate, clogged conditions, by regularly updating the biography between each two node
Defeated performance, according to the transmission performance of each transmission path between node, selection wherein transmission performance meets the requirements or transmission performance
Best transmission path.
2nd, the minimum transmission path of the number of nodes passed through is chosen.
The minimum transmission path of number of nodes is chosen in a plurality of transmission path, in this manner it is possible to occupy minimum transmission
Resource completes transmission of the data from a node to another node.
3rd, the transmission path not selected whithin a period of time is chosen.
If there is flow data in history from a node-node transmission to another node, then, when there is the new data will be from this
It is transmitted between two, one is chosen in each transmission path that can not select whithin a period of time, to avoid always
Choosing same transmission paths causes the node load in the transmission path overweight.
Certainly, the selection mode of above-mentioned transmission path is intended only as example, can basis when implementing the embodiment of the present invention
Actual conditions set the selection mode of other transmission paths, and the embodiment of the present invention does not limit this.In addition, in addition to above-mentioned biography
Outside the selection mode in defeated path, those skilled in the art can also use the selection side of other transmission paths according to actual needs
Formula, the embodiment of the present invention also do not limit this.
In addition, father's node layer is generally deployed with the computer room of multiple operators, it is proprietary by two-wire light etc. between computer room
The communications cable is attached, and fringe node is typically deployed in the network of some operator, with father's layer section between operator
The computer room of point can communicate with fringe node.
Between fringe node there is the ability being in communication with each other, still, under normal circumstances, will not directly communicate.
Fringe node can access client, for example, mobile phone, tablet computer, TV etc., for being led to client
Letter such as obtains the live TV stream of its acquisition, alternatively, live TV stream is pushed to the client.
For those skilled in the art is made to more fully understand the embodiment of the present invention, illustrate this hair below by way of specific example
Content distributing network CDN in bright embodiment.
As shown in Fig. 2, father's node layer is A1, A2, A3, A4, it can be disposed according to geographical location, for example, A1 is disposed
Beijing, A2 are deployed in Shanghai, A3 is deployed in Guangzhou, A4 is deployed in Zhengzhou, and A1 can communicate with A2, A2 can with A3 into
Row communication, A3 can communicate with A4, and A4 can communicate with A1, and the communication cycle between father's node layer can form
Cricoid father's layer structure.
In addition, each father's node layer can connect one or more fringe nodes, fringe node can also be according to geographical position
Put, the factors such as operator are disposed, do not communicate directly generally, but pass through during father's node layer carries out between fringe node
Turn, father's node layer A1 connection fringe node A11, A12, father's node layer A2 connection edge node A21, A22, father's node layer A3 connection edge
Node A31, A32, A33, father's node layer A4 connection edge nodes A41, A42, A43.
Fringe node accesses client, if fringe node A32 accesses customer end B 1, for receiving the data of client (such as
Live TV stream), alternatively, data (such as live TV stream) are sent to the client.
In embodiments of the present invention, some current node can be with the access request of data.
In the above distribution network CDN, if present node is fringe node, the access that can receive client please
It asks, if present node is father's node layer, the access request of fringe node can be received.
Step 102, it searches to store the corresponding target data of the access request in the multiple computing device
Destination computing device.
In embodiments of the present invention, multiple computing devices under same node, can be only at it for same part data
In cache in a computing device it is a.
Therefore, for current access request, present node need to the query caching access please from multiple computing devices
The computing device of required target data is sought, as destination computing device.
In one embodiment of the invention, step 102 can include following sub-step:
Sub-step S11 extracts the access address of target data from the access request.
In the concrete realization, the access address of target data to be visited, such as URL can be extracted from access request
(Uniform Resource Locator, uniform resource locator).
Sub-step S12 inquires the corresponding multiple equipment mark of the multiple computing device.
For each computing device, it can be configured the information of device identification, i.e. the unique mark computing device, example
Such as, IP address, device id, host name, etc..
Sub-step S13 is respectively adopted the multiple device identification and generates multiple condition codes with the access address.
In the concrete realization, it for each device identification, can be combined with access address, pass through the side such as hash algorithm
Formula generates a unique code value, as condition code.
Sub-step S14 searches according to described document information from the multiple computing device to store the target data
Destination computing device.
In the concrete realization, preset information table memory can be searched, record has mapping relations in the information table memory
Device identification and reference code.
Wherein, reference code is given birth to using the access address of device identification and the data for being stored in the affiliated computing device of device identification
Into and a unique code value.
Multiple condition codes are matched with reference code respectively.
When successful match, determine to set for storing the target calculating of target data with the corresponding device identification of reference code
Standby, i.e., the computing device belonging to the corresponding device identification of the reference code is destination computing device.
Step 103, the corresponding target data of the access request is searched in the destination computing device.
After it located destination computing device, then it can be searched in the destination computing device needed for the access request
Target data.
In one embodiment of the invention, step 103 can include following sub-step:
Sub-step S21 judges whether to be stored with the access request in the destination computing device corresponding data cached.
When having stored described data cached, described data cached whether fail judged by sub-step S22;If so, it performs
Sub-step S23, if it is not, then performing sub-step S24.
Sub-step S23 determines not find target data;
Sub-step S24 is determined described data cached for target data;
Sub-step S25 when not storing described data cached, determines not find target data.
In the concrete realization, it since data cached caching is more than the preset time, can be deleted, therefore, if target meter
It is corresponding data cached that it is not stored with the access request in calculation equipment, it is determined that do not find target data.
Further, since the reasons such as network upgrade, data cached may be legacy data, fail, if target calculating is set
It is corresponding data cached that the access request has been stored in standby, then can further judge whether this data cached fails.
If data cached is not fail, it is the corresponding target data of access request that this is data cached.
If data cached is to have failed, it is determined that does not find target data.
Step 104, when finding the target data, the target data is returned.
If finding target data in destination computing device, access request can be responded, return to the mesh
Mark data.
In the above distribution network CDN, if present node is fringe node, target data can be returned to client
End, can be by target data returned edge node if present node is father's node layer.
In embodiments of the present invention, content distributing network CDN has multiple nodes, and node has multiple computing devices,
Access request is received in present node, the mesh for storing the corresponding target data of access request is searched in multiple computing devices
Computing device is marked, the corresponding target data of access request is searched in destination computing device, when finding target data, is returned
Target data, multiple computing devices under same node, for same part data, can only cache in some computing device
Portion reduces the number of caching, so as to reduce the waste of memory space.
With reference to Fig. 3, the data access side of another content distributing network CDN according to an embodiment of the invention is shown
The step schematic flow diagram of method embodiment, specifically may include steps of:
Step 301, access request is received in present node.
Step 302, it searches to store the corresponding target data of the access request in the multiple computing device
Destination computing device.
Step 303, the corresponding target data of the access request is searched in the destination computing device.
Step 304, when not finding the target data, the target data is searched from upstream node or source website.
If not finding target data in destination computing device, source operation can be carried out back, from upstream node or
Search target data in source website.
In the above distribution network CDN, if present node is the fringe node, from described in the lookup of father's node layer
Target data.
For father's node layer, it can be determined that whether caching of target data;If so, target data is sent to side
Otherwise edge node, by the URL of target data, target data is obtained, and be sent to fringe node from source website.
If present node is father's node layer, target data is searched from source website.
Step 305, the target data is returned.
After the source operation of returning obtains target data, on the one hand, can be buffered in destination computing device, the opposing party
Face can respond access request, return to the target data.
In the above distribution network CDN, if present node is fringe node, target data can be returned to visitor
Family end;It, can be by target data returned edge node if present node is father's node layer.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but this field
Technical staff should know that the embodiment of the present invention is not limited by described sequence of movement, because implementing according to the present invention
Example, certain steps may be used other sequences or are carried out at the same time.Secondly, those skilled in the art should also know, specification
Described in embodiment belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
With reference to Fig. 4, the data access device of content distributing network CDN according to an embodiment of the invention a kind of is shown
The structural schematic block diagram of embodiment, content distributing network CDN have multiple nodes, and the node has multiple computing devices, institute
Following module can specifically be included by stating device:
Access request receiving module 401, for receiving access request in present node;
Destination computing device searching module 402, for searching to store the access in the multiple computing device
Ask the destination computing device of corresponding target data;
Target data searching module 403, for searching the corresponding mesh of the access request in the destination computing device
Mark data;
First returns to module 404, for when finding the target data, returning to the target data.
In one embodiment of the invention, the destination computing device searching module 402 includes:
Access address extracting sub-module, for extracting the access address of target data from the access request;
Submodule is inquired in device identification, for inquiring the corresponding multiple equipment mark of the multiple computing device;
Condition code generates submodule, and multiple spies are generated with the access address for the multiple device identification to be respectively adopted
Levy code;
Condition code searches submodule, for being searched from the multiple computing device for storing according to described document information
State the destination computing device of target data.
In one embodiment of the invention, described document information is searched submodule and is included:
Information table memory searching unit, for searching preset information table memory;Record has in the information table memory
The device identification of mapping relations and reference code, the reference code is using the device identification and is stored in belonging to the device identification
The access address generation of the data of computing device;
Condition code matching unit, for respectively matching the multiple condition code with the reference code;
Destination computing device determination unit, for when successful match, being determined with the corresponding device identification of the reference code
For storing the destination computing device of the target data.
In one embodiment of the invention, the target data searching module 403 includes:
Data cached judging submodule, for judging the access request pair whether is stored in the destination computing device
That answers is data cached;
Fail judging submodule, for described data cached whether fail when having stored described data cached, to be judged;If
It is then to call the first determination sub-module, if it is not, then calling the second determination sub-module;
First determination sub-module, for determining not find target data;
Second determination sub-module, it is described data cached for target data for determining;
Third determination sub-module, for when not storing described data cached, determining not find target data.
In one embodiment of the invention, it further includes:
Target data acquisition module, for when not finding the target data, being searched from upstream node or source website
The target data;
Second returns to module, for returning to the target data.
In one embodiment of the invention, include Centroid, father's node layer, edge section in content distributing network CDN
Point;
The Centroid communicates with source website;
The intercommunication of father's node layer, communicate with the Centroid or source website and, it is and described
Fringe node communicates;
The fringe node is used to communicate with client.
In one embodiment of the invention, the target data acquisition module includes:
Father's layer searches submodule, if be the fringe node for the present node, is searched from father's node layer
The target data;
Submodule is searched in source station, if be father's node layer for the present node, the mesh is searched from source website
Mark data.
In one embodiment of the invention, the second return module includes:
Client returns to submodule, if be the fringe node for the present node, the target data is returned
Return client;
Edge returns to submodule, if be father's node layer for the present node, the target data is returned
The fringe node.
For device embodiment, since it is basicly similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the specification provided in this place, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim is in itself
Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.It can be the module or list in embodiment
Member or component be combined into a module or unit or component and can be divided into addition multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Profit requirement, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization or to be run on one or more processor
Software module realize or realized with combination thereof.It will be understood by those of skill in the art that it can use in practice
Microprocessor or digital signal processor (DSP) realize the data of content distributing network CDN according to embodiments of the present invention
The some or all functions of some or all components in access equipment.The present invention is also implemented as performing here
The some or all equipment or program of device of described method are (for example, computer program and computer program production
Product).Such program for realizing the present invention can may be stored on the computer-readable medium or can have one or more
The form of signal.Such signal can be downloaded from internet website to be obtained either providing or to appoint on carrier signal
What other forms provides.
It should be noted that the present invention will be described rather than limits the invention, and ability for above-described embodiment
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and run after fame
Claim.
The invention discloses A1, a kind of data access method of content distributing network CDN, content distributing network CDN has
Multiple nodes, the node have multiple computing devices, the method includes:
Access request is received in present node;
It searches in the multiple computing device and is calculated for storing the target of the corresponding target data of the access request
Equipment;
The corresponding target data of the access request is searched in the destination computing device;
When finding the target data, the target data is returned.
A2, the method as described in A1, it is described to search to store the access request pair in the multiple computing device
The destination computing device for the target data answered, including:
The access address of target data is extracted from the access request;
Inquire the corresponding multiple equipment mark of the multiple computing device;
The multiple device identification is respectively adopted and generates multiple condition codes with the access address;
It searches from the multiple computing device according to described document information and is calculated for storing the target of the target data
Equipment.
A3, the method as described in A2, it is described to search to store from the multiple computing device according to described document information
The destination computing device of the target data, including:
Search preset information table memory;Device identification and reference of the record with mapping relations in the information table memory
Code, the reference code is using the device identification and the access address for the data for being stored in the affiliated computing device of the device identification
Generation;
The multiple condition code is matched with the reference code respectively;
When successful match, the target for storing the target data is determined with the corresponding device identification of the reference code
Computing device.
A4, the method as described in A1, it is described that the corresponding target of the access request is searched in the destination computing device
Data, including:
Judge whether to be stored with the access request in the destination computing device corresponding data cached;
When having stored described data cached, described data cached whether fail judged;If so, it determines not find mesh
Mark data;If not, it is determined that described data cached for target data;
When not storing described data cached, determine not find target data.
A5, the method as described in A1 or A2 or A3 or A4, further include:
When not finding the target data, the target data is searched from upstream node or source website;
Return to the target data.
A6, the method as described in A5 include Centroid, father's node layer, fringe node in content distributing network CDN;
The Centroid communicates with source website;
The intercommunication of father's node layer, communicate with the Centroid or source website and, it is and described
Fringe node communicates;
The fringe node is used to communicate with client.
A7, the method as described in A6, it is described to search the target data from upstream node or source website, including:
If the present node is the fringe node, the target data is searched from father's node layer;
If the present node is father's node layer, the target data is searched from source website.
A8, the method as described in A6, it is described to return to the target data, including:
If the present node is the fringe node, the target data is returned into client;
If the present node is father's node layer, the target data is returned into the fringe node.
The invention also discloses B9, a kind of data access device of content distributing network CDN, content distributing network CDN tools
There are multiple nodes, the node has multiple computing devices, and described device includes:
Access request receiving module, for receiving access request in present node;
Destination computing device searching module, for searching to store the access request in the multiple computing device
The destination computing device of corresponding target data;
Target data searching module, for searching the corresponding number of targets of the access request in the destination computing device
According to;
First returns to module, for when finding the target data, returning to the target data.
B10, the device as described in B9, the destination computing device searching module include:
Access address extracting sub-module, for extracting the access address of target data from the access request;
Submodule is inquired in device identification, for inquiring the corresponding multiple equipment mark of the multiple computing device;
Condition code generates submodule, and multiple spies are generated with the access address for the multiple device identification to be respectively adopted
Levy code;
Condition code searches submodule, for being searched from the multiple computing device for storing according to described document information
State the destination computing device of target data.
B11, the device as described in B10, described document information are searched submodule and are included:
Information table memory searching unit, for searching preset information table memory;Record has in the information table memory
The device identification of mapping relations and reference code, the reference code is using the device identification and is stored in belonging to the device identification
The access address generation of the data of computing device;
Condition code matching unit, for respectively matching the multiple condition code with the reference code;
Destination computing device determination unit, for when successful match, being determined with the corresponding device identification of the reference code
For storing the destination computing device of the target data.
B12, the device as described in B9, the target data searching module include:
Data cached judging submodule, for judging the access request pair whether is stored in the destination computing device
That answers is data cached;
Fail judging submodule, for described data cached whether fail when having stored described data cached, to be judged;If
It is then to call the first determination sub-module, if it is not, then calling the second determination sub-module;
First determination sub-module, for determining not find target data;
Second determination sub-module, it is described data cached for target data for determining;
Third determination sub-module, for when not storing described data cached, determining not find target data.
B13, the device as described in B9 or B10 or B11 or B12, further include:
Target data acquisition module, for when not finding the target data, being searched from upstream node or source website
The target data;
Second returns to module, for returning to the target data.
B14, the device as described in B13 include Centroid, father's node layer, fringe node in content distributing network CDN;
The Centroid communicates with source website;
The intercommunication of father's node layer, communicate with the Centroid or source website and, it is and described
Fringe node communicates;
The fringe node is used to communicate with client.
B15, the device as described in B14, the target data acquisition module include:
Father's layer searches submodule, if be the fringe node for the present node, is searched from father's node layer
The target data;
Submodule is searched in source station, if be father's node layer for the present node, the mesh is searched from source website
Mark data.
B16, the device as described in B14, the second return module include:
Client returns to submodule, if be the fringe node for the present node, the target data is returned
Return client;
Edge returns to submodule, if be father's node layer for the present node, the target data is returned
The fringe node.
Claims (10)
1. a kind of data access method of content distributing network CDN, content distributing network CDN has multiple nodes, the node
With multiple computing devices, the method includes:
Access request is received in present node;
The destination computing device for storing the corresponding target data of the access request is searched in the multiple computing device;
The corresponding target data of the access request is searched in the destination computing device;
When finding the target data, the target data is returned.
2. the method as described in claim 1, which is characterized in that described to be searched in the multiple computing device for storing
The destination computing device of the corresponding target data of access request is stated, including:
The access address of target data is extracted from the access request;
Inquire the corresponding multiple equipment mark of the multiple computing device;
The multiple device identification is respectively adopted and generates multiple condition codes with the access address;
The destination computing device for storing the target data is searched from the multiple computing device according to described document information.
3. method as claimed in claim 2, which is characterized in that it is described according to described document information from the multiple computing device
The destination computing device for storing the target data is searched, including:
Search preset information table memory;Device identification and reference code of the record with mapping relations in the information table memory,
The reference code is given birth to using the access address of the device identification and the data for being stored in the affiliated computing device of the device identification
Into;
The multiple condition code is matched with the reference code respectively;
When successful match, determine to calculate for storing the target of the target data with the corresponding device identification of the reference code
Equipment.
4. the method as described in claim 1, which is characterized in that it is described searched in the destination computing device access please
Corresponding target data is sought, including:
Judge whether to be stored with the access request in the destination computing device corresponding data cached;
When having stored described data cached, described data cached whether fail judged;If so, it determines not find number of targets
According to;If not, it is determined that described data cached for target data;
When not storing described data cached, determine not find target data.
5. method as claimed in claim 1 or 2 or 3 or 4, which is characterized in that further include:
When not finding the target data, the target data is searched from upstream node or source website;
Return to the target data.
6. method as claimed in claim 5, which is characterized in that include Centroid, father's layer section in content distributing network CDN
Point, fringe node;
The Centroid communicates with source website;
The intercommunication of father's node layer, communicate with the Centroid or source website and, with the edge
Node communicates;
The fringe node is used to communicate with client.
7. method as claimed in claim 6, which is characterized in that described to search the number of targets from upstream node or source website
According to, including:
If the present node is the fringe node, the target data is searched from father's node layer;
If the present node is father's node layer, the target data is searched from source website.
8. method as claimed in claim 6, which is characterized in that it is described to return to the target data, including:
If the present node is the fringe node, the target data is returned into client;
If the present node is father's node layer, the target data is returned into the fringe node.
9. a kind of data access device of content distributing network CDN, content distributing network CDN has multiple nodes, the node
With multiple computing devices, described device includes:
Access request receiving module, for receiving access request in present node;
Destination computing device searching module corresponds to for being searched in the multiple computing device for storing the access request
Target data destination computing device;
Target data searching module, for searching the corresponding target data of the access request in the destination computing device;
First returns to module, for when finding the target data, returning to the target data.
10. device as claimed in claim 9, which is characterized in that the destination computing device searching module includes:
Access address extracting sub-module, for extracting the access address of target data from the access request;
Submodule is inquired in device identification, for inquiring the corresponding multiple equipment mark of the multiple computing device;
Condition code generates submodule, and multiple features are generated with the access address for the multiple device identification to be respectively adopted
Code;
Condition code searches submodule, for searching to store the mesh from the multiple computing device according to described document information
Mark the destination computing device of data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711485125.8A CN108173952A (en) | 2017-12-29 | 2017-12-29 | A kind of data access method and device of content distributing network CDN |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711485125.8A CN108173952A (en) | 2017-12-29 | 2017-12-29 | A kind of data access method and device of content distributing network CDN |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108173952A true CN108173952A (en) | 2018-06-15 |
Family
ID=62516231
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711485125.8A Pending CN108173952A (en) | 2017-12-29 | 2017-12-29 | A kind of data access method and device of content distributing network CDN |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108173952A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110324406A (en) * | 2019-06-03 | 2019-10-11 | 网宿科技股份有限公司 | A kind of method and cloud service system obtaining business datum |
CN111371826A (en) * | 2018-12-26 | 2020-07-03 | 北京奇虎科技有限公司 | CDN node performance detection method, device and system |
CN112463653A (en) * | 2020-12-15 | 2021-03-09 | 北京金山云网络技术有限公司 | Data refreshing method and device and electronic equipment |
CN114466018A (en) * | 2022-03-22 | 2022-05-10 | 北京有竹居网络技术有限公司 | Scheduling method and device for content distribution network, storage medium and electronic equipment |
CN114785856A (en) * | 2022-03-21 | 2022-07-22 | 鹏城实验室 | Edge calculation-based collaborative caching method, device, equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222424A (en) * | 2007-12-24 | 2008-07-16 | 中国电信股份有限公司 | Content distribution network and scheduling method based on content in the network |
CN101610162A (en) * | 2008-06-16 | 2009-12-23 | 华为技术有限公司 | A kind of method, system and equipment that content is provided based on reciprocity storage networking |
CN102333130A (en) * | 2011-10-31 | 2012-01-25 | 北京蓝汛通信技术有限责任公司 | Method and system for accessing cache server and intelligent cache scheduler |
US20150058403A1 (en) * | 2013-08-20 | 2015-02-26 | Alibaba Group Holding Limited | Method and system of dispatching requests in a content delivery network |
CN104703162A (en) * | 2014-12-27 | 2015-06-10 | 华为技术有限公司 | Method, device and system for accessing third-party resource through application |
CN105357281A (en) * | 2015-10-19 | 2016-02-24 | 中国科学院信息工程研究所 | Distributed content cache access control method and system for mobile access network |
CN106686033A (en) * | 2015-11-10 | 2017-05-17 | 中兴通讯股份有限公司 | Method, device and system for cache and service content |
-
2017
- 2017-12-29 CN CN201711485125.8A patent/CN108173952A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222424A (en) * | 2007-12-24 | 2008-07-16 | 中国电信股份有限公司 | Content distribution network and scheduling method based on content in the network |
CN101610162A (en) * | 2008-06-16 | 2009-12-23 | 华为技术有限公司 | A kind of method, system and equipment that content is provided based on reciprocity storage networking |
CN102333130A (en) * | 2011-10-31 | 2012-01-25 | 北京蓝汛通信技术有限责任公司 | Method and system for accessing cache server and intelligent cache scheduler |
US20150058403A1 (en) * | 2013-08-20 | 2015-02-26 | Alibaba Group Holding Limited | Method and system of dispatching requests in a content delivery network |
CN104703162A (en) * | 2014-12-27 | 2015-06-10 | 华为技术有限公司 | Method, device and system for accessing third-party resource through application |
CN105357281A (en) * | 2015-10-19 | 2016-02-24 | 中国科学院信息工程研究所 | Distributed content cache access control method and system for mobile access network |
CN106686033A (en) * | 2015-11-10 | 2017-05-17 | 中兴通讯股份有限公司 | Method, device and system for cache and service content |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111371826A (en) * | 2018-12-26 | 2020-07-03 | 北京奇虎科技有限公司 | CDN node performance detection method, device and system |
CN111371826B (en) * | 2018-12-26 | 2024-04-09 | 三六零科技集团有限公司 | CDN node performance detection method, device and system |
CN110324406A (en) * | 2019-06-03 | 2019-10-11 | 网宿科技股份有限公司 | A kind of method and cloud service system obtaining business datum |
CN110324406B (en) * | 2019-06-03 | 2022-07-26 | 网宿科技股份有限公司 | Method for acquiring business data and cloud service system |
CN112463653A (en) * | 2020-12-15 | 2021-03-09 | 北京金山云网络技术有限公司 | Data refreshing method and device and electronic equipment |
WO2022127319A1 (en) * | 2020-12-15 | 2022-06-23 | 北京金山云网络技术有限公司 | Data refreshing method and apparatus, and electronic device and computer-readable storage medium |
CN114785856A (en) * | 2022-03-21 | 2022-07-22 | 鹏城实验室 | Edge calculation-based collaborative caching method, device, equipment and storage medium |
CN114785856B (en) * | 2022-03-21 | 2024-03-19 | 鹏城实验室 | Collaborative caching method, device, equipment and storage medium based on edge calculation |
CN114466018A (en) * | 2022-03-22 | 2022-05-10 | 北京有竹居网络技术有限公司 | Scheduling method and device for content distribution network, storage medium and electronic equipment |
WO2023179505A1 (en) * | 2022-03-22 | 2023-09-28 | 北京有竹居网络技术有限公司 | Scheduling method and apparatus for content delivery network, and storage medium and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108173952A (en) | A kind of data access method and device of content distributing network CDN | |
CN108234639A (en) | A kind of data access method and device based on content distributing network CDN | |
CN104378452B (en) | A kind of method, apparatus and system for domain name mapping | |
US10904352B2 (en) | System and method for facilitating routing | |
JP6880131B2 (en) | Methods, devices and systems for data processing | |
CN102647482B (en) | Method and system for accessing website | |
CN109981716A (en) | A kind of micro services call method and device | |
CN108234207A (en) | A kind of Fault Locating Method and device based on content distributing network CDN | |
CN106412137A (en) | File downloading system and file downloading method | |
CN108696895A (en) | Resource acquiring method, apparatus and system | |
CN105450618A (en) | Operation method and operation system of big data process through API (Application Programming Interface) server | |
CN103036967A (en) | Data download system and device and method for download management | |
CN108234319A (en) | The transmission method and device of a kind of data | |
CN105095313A (en) | Data access method and equipment | |
CN103607424A (en) | Server connection method and server system | |
CN108234632A (en) | A kind of data distributing method and device of content distributing network CDN | |
CN108173953A (en) | A kind of document distribution method and device based on content distributing network CDN | |
CN108234638A (en) | A kind of data processing method and device based on content distributing network CDN | |
CN108200443A (en) | The distribution method and device of a kind of live TV stream | |
CN109388351A (en) | A kind of method and relevant apparatus of Distributed Storage | |
CN106131113A (en) | A kind of resource downloading method, device, system and Resource Server | |
CN109783258A (en) | A kind of message treatment method, device and server | |
CN108234210A (en) | The log processing method and device of a kind of content distributing network | |
CN109873855A (en) | A kind of resource acquiring method and system based on block chain network | |
CN108111623A (en) | A kind of communication means and device based on content distributing network CDN |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180615 |
|
RJ01 | Rejection of invention patent application after publication |