CN109873855B - Resource acquisition method and system based on block chain network - Google Patents

Resource acquisition method and system based on block chain network Download PDF

Info

Publication number
CN109873855B
CN109873855B CN201810331908.9A CN201810331908A CN109873855B CN 109873855 B CN109873855 B CN 109873855B CN 201810331908 A CN201810331908 A CN 201810331908A CN 109873855 B CN109873855 B CN 109873855B
Authority
CN
China
Prior art keywords
resource
node server
url
unique retrieval
retrieval identifier
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.)
Active
Application number
CN201810331908.9A
Other languages
Chinese (zh)
Other versions
CN109873855A (en
Inventor
杨洋
苗辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guizhou Baishancloud Technology Co Ltd
Original Assignee
Guizhou Baishancloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guizhou Baishancloud Technology Co Ltd filed Critical Guizhou Baishancloud Technology Co Ltd
Priority to CN201810331908.9A priority Critical patent/CN109873855B/en
Priority to PCT/CN2019/081892 priority patent/WO2019196825A1/en
Publication of CN109873855A publication Critical patent/CN109873855A/en
Application granted granted Critical
Publication of CN109873855B publication Critical patent/CN109873855B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a resource acquisition method and system based on a block chain network. The method comprises the following steps: step 1, a cloud distribution network node server receives incidence relation information of a URL (uniform resource locator) of a resource on a source station and a unique retrieval identifier from the source station; and 2, after receiving a request aiming at a resource from the client, the cloud distribution network node server judges whether the received association relation information contains the unique retrieval identifier associated with the URL or not based on the URL in the request, and if so, the cloud distribution network node server sends the unique retrieval identifier associated with the URL to the node server in the block chain network. The method and the system realize the acceleration of the client to the website access and avoid the problem of source station paralysis possibly caused by the simultaneous access of a large number of node servers.

Description

Resource acquisition method and system based on block chain network
Technical Field
The invention relates to the technical field of internet, in particular to a resource acquisition method and system based on a block chain network.
Background
The working principle of the current cloud distribution system is a mode of 'near client cache' plus 'back source'. The near client cache refers to that nodes in the cloud distribution system are distributed at a place close to the client from the geographical position, and website contents to be accessed by the client are cached. The acquisition of the original content to be cached is realized through 'returning to the source', that is, the cloud distribution node replaces the client to access the source station, and acquires the corresponding content/resource from the source station. Since the source stations are generally distributed less geographically and are located farther from the client, the cache nodes of the widely distributed cloud distribution system provide a function of accelerating access to the website.
However, since the node in the cloud distribution system is closer to the client, it means that the node in the cloud distribution system is as far away from the source station as the client. The problem that the speed of accessing the source station by the client is low also exists when the node in the cloud distribution system accesses the source station. Furthermore, the performance of the source station is generally poor (because the server resources are not as much as the nodes in the cloud distribution system), and the simultaneous access of the source station by the nodes in the cloud distribution system may cause the source station to be paralyzed.
There are many existing methods for solving the back-source problem of the CDN, but all the core methods are really thought to try to reduce the number of accesses to the source station, for example, a relatively common "back-source speed limit" refers to a limit that the CDN node sends a back-source request when returning to the source. The reason is that the number of CDN nodes is large, and the source station generally has only limited resources to provide services to the outside. Therefore, the service carrying capacity of the source station is much smaller than the back-to-source sending capacity of the CDN network (for example, the CDN network is larger than the source station in both the two dimensions of the request number and the request frequency). In order to prevent the source station from failing to provide normal service due to a large number of back sources of the CDN, the CDN node limits the back sources, i.e., "back source speed limit". Whether the request comes back to the source or not when reaching the CDN node is judged, speed limit threshold value checking is firstly carried out, the request exceeding the threshold value is suspended and cannot come back to the source, and response delay is increased.
Therefore, a method and system that can solve the above problems are needed.
Disclosure of Invention
In order to solve the above problems in the prior art, a method and a system for acquiring resources based on a blockchain network are provided.
According to an aspect of the present invention, there is provided a resource acquisition method based on a blockchain network, the method including:
step 1, a cloud distribution network node server receives incidence relation information of a URL (uniform resource locator) of a resource on a source station and a unique retrieval identifier from the source station;
and 2, after receiving a request aiming at a resource from a client, the cloud distribution network node server judges whether the received incidence relation information has a unique retrieval identifier associated with the URL or not based on the URL in the request, and if so, the cloud distribution network node server sends the unique retrieval identifier associated with the URL to a node server in the block chain network.
Wherein the method further comprises performing, prior to the step 1:
step 11, the node server in the blockchain network receives the resource from the source station and sends the received resource to all or part of the node servers in the blockchain network;
and a node server in the block chain network generates a unique retrieval identifier corresponding to the resource and sends the association relation of the unique retrieval identifier and the resource to all or part of the node servers in the block chain network.
Wherein the step 11 further comprises:
at least one node server in the blockchain network sends the association of the unique retrieval identifier with the resource to the source station.
Wherein the method further comprises performing between the step 11 and the step 1:
and step 12, the source station receives the incidence relation between the unique retrieval identifier and the resource, generates incidence relation information between the URL of the resource and the unique retrieval identifier based on the URL corresponding to the resource, and sends the incidence relation information between the URL of the resource and the unique retrieval identifier to the cloud distribution network node server.
Wherein the method further comprises performing, after the step 2:
after receiving the unique retrieval identifier sent by the cloud distribution network node server, the block chain network node server queries and acquires the resource corresponding to the unique retrieval identifier based on the incidence relation between the unique retrieval identifier and the resource, and sends the resource to the cloud distribution network node server.
Wherein the step 2 of sending the unique retrieval identifier associated with the URL to a node server in the blockchain network comprises:
based on the principle of geographical location proximity access, selecting at least one node server in the blockchain network, and sending a unique search identifier associated with the URL to the selected blockchain network node server.
According to another aspect of the present invention, there is also provided a resource acquisition system based on a blockchain network, the system including a cloud distribution network node server, where the cloud distribution network node server is configured to:
receiving association relation information of the URL of the resource on the source station and the unique retrieval identifier from the source station;
after receiving a request for a resource from a client, judging whether a unique retrieval identifier associated with the URL exists in the received association relation information or not based on the URL in the request, and if so, sending the unique retrieval identifier associated with the URL to a node server in the block chain network.
Wherein the system further comprises a blockchain network node server for:
receiving resources from the source station and transmitting the received resources to all or part of the node servers in the blockchain network;
and generating a unique retrieval identifier corresponding to the resource, and sending the association relation of the unique retrieval identifier and the resource to all or part of the node servers in the block chain network.
Wherein the blockchain network node server is further configured to:
sending the association of the unique search identifier with the resource to the source station.
Wherein the system further comprises the source station to:
receiving the incidence relation between the unique retrieval identifier and the resource, generating incidence relation information between the URL of the resource and the unique retrieval identifier based on the URL corresponding to the resource, and sending the incidence relation information between the URL of the resource and the unique retrieval identifier to the cloud distribution network node server.
Wherein the blockchain network node server is further configured to:
and after receiving the unique retrieval identifier sent by the cloud distribution network node server, inquiring and acquiring the resource corresponding to the unique retrieval identifier based on the incidence relation between the unique retrieval identifier and the resource, and sending the resource to the cloud distribution network node server.
Wherein the cloud distribution network node server is further configured to:
based on the principle of geographical location proximity access, selecting at least one node server in the blockchain network, and sending a unique search identifier associated with the URL to the selected blockchain network node server.
The resource obtaining method and system based on the block chain network can realize the following beneficial effects:
(1) the method solves the problems of long distance from a source station and slow return of the source in the prior art, and realizes acceleration of the client to website access. Because there are a plurality of node servers of the blockchain network and there may be a blockchain network node server closer to the cloud distribution network node server that receives the client request, the cloud distribution network node server does not need to go to a source station that is farther away to acquire resources, but acquires resources from the closer blockchain network node server.
(2) The problem of source station performance bottleneck is solved, and the problem of source station paralysis possibly caused by simultaneous access of a large number of node servers is avoided. The reason is that the number of node servers in the blockchain network is large, and each cloud distribution network node server selects a blockchain network node server with a short distance without returning to a source to acquire resources.
(3) The problem that the client cannot directly acquire resources from the blockchain network through the URL is solved. The cloud distribution network is arranged at the front end of the blockchain network, the unique retrieval identifier associated with the URL is inquired through the incidence relation between the URL and the unique retrieval identifier stored in the cloud distribution network node server, and therefore the URL which cannot be identified by the blockchain network node server is converted into the unique retrieval identifier which can be identified by the blockchain network node server, so that the resource corresponding to the URL can be retrieved, and the corresponding resource can be rapidly acquired.
(4) The characteristics of the blockchain network itself may ensure that the resources on which the source station is published are not tampered with maliciously.
(5) The method is convenient to implement, and the content of the source station is originally public, so that privacy problems are not worried when the method is combined with the public block chain network.
(6) The block chain network is arranged between the cloud distribution network and the source station, and the source station is isolated in such a way, so that certain resources of the source station can be normally acquired, and the source station can be protected, namely, the source station is prevented from being overloaded due to the fact that a large number of node servers of the cloud distribution network request the source station at the same time, and the processing capacity upper limit which can be supported by the source station is exceeded.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a resource acquisition method based on a blockchain network according to the present invention;
fig. 2 is a block diagram of a resource acquisition system based on a blockchain network according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
In order to solve the problems that in the prior art, a cloud distribution network node server is slow in returning to a source, and a large number of nodes in a cloud distribution system access a source station at the same time, which may cause the source station to be paralyzed, the resource acquisition method and system based on the block chain network of the invention provide a method for acquiring resources quickly based on the block chain network. The method comprises the steps that the characteristics of a block chain network are utilized, resources of a source station are stored on each node server of the block chain network, and the problem of performance bottleneck of the source station is solved; and accessing a cloud distribution network between the blockchain network and the client to solve the problem that resource retrieval cannot be performed in the blockchain network by using the URL in the client request.
In the resource acquisition method and system based on the block chain network, a unique retrieval identifier associated with a URL is inquired on a cloud distribution network node server through the URL in a client request, if the associated unique retrieval identifier is inquired, the unique retrieval identifier is sent to the node server of the block chain network, and the block chain network node server retrieves the associated resource through the unique retrieval identifier and sends the resource to the cloud distribution network node server. Because there are a plurality of node servers of the blockchain network and there may be a blockchain network node server closer to the cloud distribution network node server that receives the client request, the cloud distribution network node server does not need to go to a source station that is farther away to acquire resources, but acquires resources from the closer blockchain network node server. Therefore, the problems of long distance from a source station and slow source return in the prior art can be solved. In addition, as the number of node servers in the blockchain network is large, each cloud distribution network node server selects the blockchain network node server with a short distance without returning to the source to obtain resources, and therefore the problem that the source station is possibly paralyzed when a large number of nodes in the cloud distribution system access the source station at the same time is solved.
The invention provides a resource acquisition method based on a block chain network, as shown in fig. 1, the method comprises the following steps:
step 101, a cloud distribution network node server receives incidence relation information of a URL (uniform resource locator) of a resource on a source station and a unique retrieval identifier from the source station;
step 102, after receiving a request for a resource from a client, a cloud distribution network node server determines whether a unique retrieval identifier associated with a URL exists in the received association relationship information based on the URL in the request, and if so, sends the unique retrieval identifier associated with the URL to a node server in a blockchain network.
The cloud distribution network node server stores the incidence relation between the URL of the resource received from the source station and the unique retrieval identifier, when the cloud distribution network node server receives a request for the resource, if the associated unique retrieval identifier can be inquired based on the URL in the request, the cloud distribution network node server indicates that the resource corresponding to the URL is stored in the node server of the blockchain network, and if the URL cannot be inquired, the cloud distribution network node server indicates that the resource corresponding to the URL is not stored in the node server of the blockchain network, and the resource needs to be obtained back to the source.
Since the blockchain network node server may be closer to the cloud distribution network node server that receives the request, if the cloud distribution network node server can acquire resources from the closer blockchain network node server, the problem of slow resource acquisition back to the source can be avoided. In addition, as the number of the node servers of the block chain network is large, the problem that the source station is paralyzed because a large number of node servers access the source station at the same time can be avoided. In addition, due to the characteristics of the blockchain network, the URL in the client request cannot be identified by the blockchain network node server, that is, the corresponding resource stored in the blockchain network node server cannot be retrieved through the URL, so that a cloud distribution network is arranged at the front end of the blockchain network, the unique retrieval identifier associated with the URL is inquired through the association relationship between the URL stored in the cloud distribution network node server and the unique retrieval identifier, and thus, the URL which cannot be identified by the blockchain network node server is converted into the unique retrieval identifier which can be identified so as to retrieve the resource corresponding to the URL, and the corresponding resource can be rapidly acquired.
It should be noted that, after receiving a request for a resource from a client, the cloud distribution network node server generally first determines whether the resource is cached locally, and if so, directly returns the resource to the client that sent the request.
The method further comprises, before step 101, performing step 1011: a node server in the block chain network receives resources from a source station and sends the received resources to all or part of the node servers in the block chain network; a node server in the block chain network generates a unique retrieval identifier corresponding to the resource, and sends the association relation between the unique retrieval identifier and the resource to all or part of the node servers in the block chain network.
Since there may be node servers in the blockchain network that cannot store resources, in this case, the resources can only be backed up on a portion of the node servers.
In order to solve the problem of source station paralysis possibly caused by returning a large number of node servers to the source to acquire resources, the resources of the source station are stored redundantly on the blockchain network node servers, so that a large number of cloud distribution network node servers can acquire the resources from the scattered blockchain network node servers, and the problem of performance bottleneck of the source station is solved. In addition, the characteristics of the blockchain network itself may ensure that resources on which the source station is published are not tampered with maliciously.
In step 1011, after receiving the resource from the source station, a node server in the blockchain network performs redundant storage on all or a part of the node servers in the blockchain network by using its own consistency algorithm. The consistency algorithm can be implemented according to the prior art, and is not described in detail herein. A node server of the blockchain network may generate unique search identifiers corresponding to the respective resources and store associations of the respective resources with the corresponding unique search identifiers. Here, the resource is in a one-to-one correspondence with the unique search identifier. The node servers of the blockchain network may store associations of resources to unique retrieval identifiers in the form of lists. The blockchain network node server generating the unique retrieval identifier sends the association relation to each node server in the blockchain network, so that each blockchain network node server can retrieve corresponding resources locally when receiving the unique retrieval identifier from the cloud distribution network node server, and therefore access of a client to the resources is accelerated.
The step 1011 further includes: at least one node server in the blockchain network sends an association of a unique retrieval identifier with a resource to a source station.
Here, the blockchain network node server that transmits the association relationship is not limited to the blockchain network node server that generates the unique search identifier, and the association relationship is backed up and stored in all or a part of the node servers of the blockchain network, and therefore, the node servers that store the association relationship can transmit the association relationship to the source station.
The method further comprises performing step 1012 between step 1011 and step 101: the source station receives the incidence relation between the unique retrieval identifier and the resource, generates incidence relation information between the URL of the resource and the unique retrieval identifier based on the URL corresponding to the resource, and sends the incidence relation information between the URL of the resource and the unique retrieval identifier to the cloud distribution network node server.
The source station needs to associate the URL of the resource with the corresponding unique retrieval identifier, and send the association relationship to each node server of the cloud distribution network, so that the cloud distribution network node server can query the corresponding unique retrieval identifier based on the association relationship between the URL and the unique retrieval identifier after receiving the URL in the request. The source station thus needs to obtain an association relationship between the unique search identifier and the resource, and thereby associate the URL of the resource with the unique search identifier based on the association relationship.
The method further comprises performing after step 102: after receiving the unique retrieval identifier sent by the cloud distribution network node server, the block chain network node server queries and acquires the resource corresponding to the unique retrieval identifier based on the incidence relation between the unique retrieval identifier and the resource, and sends the resource to the cloud distribution network node server.
All or part of the node servers of the block chain network store resources issued by the source station, so that the node servers can query the resources corresponding to the unique retrieval identifier after receiving the unique retrieval identifier and send the resources to the cloud distribution network node server, so that the cloud distribution network node server can acquire the resources quickly and send the resources to a requesting client.
If the resource corresponding to the unique search identifier is not locally stored in the blockchain network node server that receives the unique search identifier from the cloud distribution network node server, the blockchain network node server acquires the corresponding resource from the other blockchain network node servers in which the resource is stored by using the characteristics of the blockchain network itself, and returns the resource to the cloud distribution network node server that transmitted the unique search identifier.
Sending 102 the unique retrieval identifier associated with the URL to a node server in the blockchain network includes: based on the principle of geographical location proximity access, selecting at least one node server in the blockchain network, and sending a unique search identifier associated with the URL to the selected blockchain network node server.
In this step, the node server of the blockchain network with a closer geographical position is selected to acquire resources more quickly, so that an effect of accelerating access is achieved. The specific manner of selecting the blockchain network node server with a closer geographical position may be implemented by a method in the prior art, and is not described herein again.
The following detailed description is directed to a client a, a cloud distribution network C, a blockchain network D, and a source B according to an embodiment of the present invention, where the cloud distribution network C includes a node server C1,C2,…,CnThe blockchain network D comprises a node server D1,D2,…,Dn. The specific embodiment comprises the following steps:
step one, a source station B issues a picture P to a node server D in a block chain network D1
Step two, a node server D in the block chain network D1And sending the picture P to other node servers in the block chain network D, wherein the other node servers locally store the picture P.
Step three, node server D in block chain network D2Generating a unique search identifier U based on the picture P, and generating an association relationship between the picture P and the unique search identifier U,the association is sent to other node servers in the blockchain network D.
Step four, the node server D in the block chain network D4And sending the association relation of the picture P and the unique retrieval identifier U to the source station.
Step five, after receiving the incidence relation between the picture P and the unique retrieval identifier U, the source station associates the unique retrieval identifier U with the URL (http:// www.111.com/a.jpeg) of the picture P, generates incidence relation information of the unique retrieval identifier U and the URL of the picture P, and sends the incidence relation information to a node server C in the cloud distribution network C1,C2,…,Cn
Step six, the node server C in the cloud distribution network C1The method comprises the steps of receiving a request aiming at a resource from a client A, extracting a URL (hyper text transport protocol) http:// www.111.com/a.jpeg from the request, and judging that a unique retrieval identifier U associated with the http:// www.111.com/a.jpeg exists in association relation information of the locally stored unique retrieval identifier and the URL.
Step seven, the node server C in the cloud distribution network C1Selecting the nearest node server D from the blockchain network D based on the principle of geographical position nearby access3Sending the unique search identifier to a node server D in the blockchain network D3
Step eight, the node server D in the block chain network D3Locally retrieving resources associated with the unique retrieval identifier to obtain a picture P, and sending the picture P to a node server C in the cloud distribution network C1
Step nine, the node server C in the cloud distribution network C1And caching the picture P in the node, and sending the picture P to the client A.
The invention also provides a resource acquisition system based on the blockchain network, which comprises a cloud distribution network node server, wherein the cloud distribution network node server is used for:
receiving association relation information of the URL of the resource on the source station and the unique retrieval identifier from the source station;
after receiving a request for a resource from a client, judging whether a unique retrieval identifier associated with the URL exists in the received association relation information or not based on the URL in the request, and if so, sending the unique retrieval identifier associated with the URL to a node server in the block chain network.
Wherein the system further comprises a blockchain network node server for:
receiving resources from the source station and transmitting the received resources to all or part of the node servers in the blockchain network;
and generating a unique retrieval identifier corresponding to the resource, and sending the association relation of the unique retrieval identifier and the resource to all or part of the node servers in the block chain network.
Wherein the blockchain network node server is further configured to:
sending the association of the unique search identifier with the resource to the source station.
Wherein the system further comprises the source station to:
receiving the incidence relation between the unique retrieval identifier and the resource, generating incidence relation information between the URL of the resource and the unique retrieval identifier based on the URL corresponding to the resource, and sending the incidence relation information between the URL of the resource and the unique retrieval identifier to the cloud distribution network node server.
Wherein the blockchain network node server is further configured to:
and after receiving the unique retrieval identifier sent by the cloud distribution network node server, inquiring and acquiring the resource corresponding to the unique retrieval identifier based on the incidence relation between the unique retrieval identifier and the resource, and sending the resource to the cloud distribution network node server.
Wherein the cloud distribution network node server is further configured to:
based on the principle of geographical location proximity access, selecting at least one node server in the blockchain network, and sending a unique search identifier associated with the URL to the selected blockchain network node server.
The resource obtaining method and system based on the block chain network can realize the following beneficial effects:
(1) the method solves the problems of long distance from a source station and slow return of the source in the prior art, and realizes acceleration of the client to website access. Because there are a plurality of node servers of the blockchain network and there may be a blockchain network node server closer to the cloud distribution network node server that receives the client request, the cloud distribution network node server does not need to go to a source station that is farther away to acquire resources, but acquires resources from the closer blockchain network node server.
(2) The problem of source station performance bottleneck is solved, and the problem of source station paralysis possibly caused by simultaneous access of a large number of node servers is avoided. The reason is that the number of node servers in the blockchain network is large, and each cloud distribution network node server selects a blockchain network node server with a short distance without returning to a source to acquire resources.
(3) The problem that the client cannot directly acquire resources from the blockchain network through the URL is solved. The cloud distribution network is arranged at the front end of the blockchain network, the unique retrieval identifier associated with the URL is inquired through the incidence relation between the URL and the unique retrieval identifier stored in the cloud distribution network node server, and therefore the URL which cannot be identified by the blockchain network node server is converted into the unique retrieval identifier which can be identified by the blockchain network node server, so that the resource corresponding to the URL can be retrieved, and the corresponding resource can be rapidly acquired.
(4) The characteristics of the blockchain network itself may ensure that the resources on which the source station is published are not tampered with maliciously.
(5) The method is convenient to implement, and the content of the source station is originally public, so that privacy problems are not worried when the method is combined with the public block chain network.
(6) The block chain network is arranged between the cloud distribution network and the source station, and the source station is isolated in such a way, so that certain resources of the source station can be normally acquired, and the source station can be protected, namely, the source station is prevented from being overloaded due to the fact that a large number of node servers of the cloud distribution network request the source station at the same time, and the processing capacity upper limit which can be supported by the source station is exceeded.
The above-described aspects may be implemented individually or in various combinations, and such variations are within the scope of the present invention.
It is to be noted that, in this document, the terms "comprises", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion, so that an article or apparatus including a series of elements includes not only those elements but also other elements not explicitly listed or inherent to such article or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of additional like elements in the article or device comprising the element.
The above embodiments are merely to illustrate the technical solutions of the present invention and not to limit the present invention, and the present invention has been described in detail with reference to the preferred embodiments. It will be understood by those skilled in the art that various modifications and equivalent arrangements may be made without departing from the spirit and scope of the present invention and it should be understood that the present invention is to be covered by the appended claims.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

Claims (10)

1. A resource acquisition method based on a block chain network is characterized by comprising the following steps:
step 1, a cloud distribution network node server receives incidence relation information of a URL (uniform resource locator) of a resource on a source station and a unique retrieval identifier from the source station;
step 2, after receiving a request for a resource from a client, the cloud distribution network node server judges whether a unique retrieval identifier associated with the URL exists in the received association relationship information based on the URL in the request, and if so, sends the unique retrieval identifier associated with the URL to a node server in a block chain network;
the method further comprises performing, prior to the step 1:
step 11, the node server in the blockchain network receives the resource from the source station and sends the received resource to all or part of the node servers in the blockchain network;
a node server in the block chain network generates a unique retrieval identifier corresponding to the resource and stores the association relationship between each resource and the corresponding unique retrieval identifier, wherein the node server of the block chain network stores the association relationship between the resource and the unique retrieval identifier in a list form, and the resource and the unique retrieval identifier are in one-to-one correspondence; and sending the association relationship between the unique retrieval identifier and the resource to all or part of the node servers in the block chain network.
2. The resource acquisition method according to claim 1, wherein said step 11 further comprises:
at least one node server in the blockchain network sends the association of the unique retrieval identifier with the resource to the source station.
3. The resource acquisition method according to claim 2, characterized in that said method further comprises, performed between said step 11 and said step 1:
and step 12, the source station receives the incidence relation between the unique retrieval identifier and the resource, generates incidence relation information between the URL of the resource and the unique retrieval identifier based on the URL corresponding to the resource, and sends the incidence relation information between the URL of the resource and the unique retrieval identifier to the cloud distribution network node server.
4. The resource acquisition method according to claim 1, wherein the method further comprises performing, after the step 2:
after receiving the unique retrieval identifier sent by the cloud distribution network node server, the block chain network node server queries and acquires the resource corresponding to the unique retrieval identifier based on the incidence relation between the unique retrieval identifier and the resource, and sends the resource to the cloud distribution network node server.
5. The resource acquisition method according to claim 1, wherein the step 2 of transmitting the unique retrieval identifier associated with the URL to a node server in the blockchain network comprises:
based on the principle of geographical location proximity access, selecting at least one node server in the blockchain network, and sending a unique search identifier associated with the URL to the selected blockchain network node server.
6. A resource acquisition system based on a blockchain network is characterized in that the system comprises a cloud distribution network node server, and the cloud distribution network node server is used for:
receiving association relation information of the URL of the resource on the source station and the unique retrieval identifier from the source station;
after receiving a request aiming at a resource from a client, judging whether a unique retrieval identifier associated with the URL exists in the received association relation information or not based on the URL in the request, and if so, sending the unique retrieval identifier associated with the URL to a node server in a block chain network;
the system further comprises a blockchain network node server to:
receiving resources from the source station and transmitting the received resources to all or part of the node servers in the blockchain network;
generating unique retrieval identifiers corresponding to the resources, and storing the association relationship between each resource and the corresponding unique retrieval identifier, wherein the association relationship between the resources and the unique retrieval identifiers is stored in a node server of the block chain network in a list form, and the resources and the unique retrieval identifiers are in one-to-one correspondence; and sending the association relationship between the unique retrieval identifier and the resource to all or part of the node servers in the block chain network.
7. The resource acquisition system of claim 6 wherein the blockchain network node server is further to:
sending the association of the unique search identifier with the resource to the source station.
8. The resource acquisition system of claim 7, wherein the system further comprises the source station to:
receiving the incidence relation between the unique retrieval identifier and the resource, generating incidence relation information between the URL of the resource and the unique retrieval identifier based on the URL corresponding to the resource, and sending the incidence relation information between the URL of the resource and the unique retrieval identifier to the cloud distribution network node server.
9. The resource acquisition system of claim 6 wherein the blockchain network node server is further to:
and after receiving the unique retrieval identifier sent by the cloud distribution network node server, inquiring and acquiring the resource corresponding to the unique retrieval identifier based on the incidence relation between the unique retrieval identifier and the resource, and sending the resource to the cloud distribution network node server.
10. The resource acquisition system of claim 6 wherein the cloud distribution network node server is further to:
based on the principle of geographical location proximity access, selecting at least one node server in the blockchain network, and sending a unique search identifier associated with the URL to the selected blockchain network node server.
CN201810331908.9A 2018-04-13 2018-04-13 Resource acquisition method and system based on block chain network Active CN109873855B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810331908.9A CN109873855B (en) 2018-04-13 2018-04-13 Resource acquisition method and system based on block chain network
PCT/CN2019/081892 WO2019196825A1 (en) 2018-04-13 2019-04-09 Resource acquisition method and system based on block chain network, storage medium, and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810331908.9A CN109873855B (en) 2018-04-13 2018-04-13 Resource acquisition method and system based on block chain network

Publications (2)

Publication Number Publication Date
CN109873855A CN109873855A (en) 2019-06-11
CN109873855B true CN109873855B (en) 2022-01-25

Family

ID=66915425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810331908.9A Active CN109873855B (en) 2018-04-13 2018-04-13 Resource acquisition method and system based on block chain network

Country Status (2)

Country Link
CN (1) CN109873855B (en)
WO (1) WO2019196825A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852655A (en) * 2020-06-28 2021-12-28 北京金山云网络技术有限公司 Information management method and device and block chain service system
CN111770022B (en) * 2020-06-28 2023-04-25 中国平安财产保险股份有限公司 Capacity expansion method, system, equipment and computer storage medium based on link monitoring
CN112732362B (en) * 2021-01-18 2024-06-11 北京展心展力信息科技有限公司 Method and device for accessing nationwide software resources, electronic equipment and storage medium
CN114979146B (en) * 2022-05-25 2024-06-11 中移(杭州)信息技术有限公司 Back source method, CDN device, storage medium and device
CN114793244B (en) * 2022-06-14 2022-10-04 北京百度网讯科技有限公司 Resource processing method, device, equipment and medium for block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102301732A (en) * 2009-01-28 2011-12-28 Nec比葛露 Communication system, server device, display device, information processing method, and program
CN104506647A (en) * 2014-12-31 2015-04-08 北京奇艺世纪科技有限公司 Data storage system as well as data storage method and data access method
CN104967651A (en) * 2015-03-02 2015-10-07 深圳市腾讯计算机系统有限公司 Data push, storage and downloading methods and devices based on CDN architecture
CN105450780A (en) * 2015-12-31 2016-03-30 深圳市网心科技有限公司 CDN system and source tracing method thereof
CN106686033A (en) * 2015-11-10 2017-05-17 中兴通讯股份有限公司 Method, device and system for cache and service content

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610162A (en) * 2008-06-16 2009-12-23 华为技术有限公司 A kind of method, system and equipment that content is provided based on reciprocity storage networking
US8745239B2 (en) * 2010-04-07 2014-06-03 Limelight Networks, Inc. Edge-based resource spin-up for cloud computing
CN102638483B (en) * 2011-02-15 2016-01-27 中国移动通信集团公司 A kind of defining method of content distribution nodes, equipment and system
CN103973747B (en) * 2013-02-04 2017-11-17 华为技术有限公司 A kind of method and apparatus for obtaining content
US10375154B2 (en) * 2016-07-29 2019-08-06 Microsoft Technology Licensing, Llc Interchangeable retrieval of content

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102301732A (en) * 2009-01-28 2011-12-28 Nec比葛露 Communication system, server device, display device, information processing method, and program
CN104506647A (en) * 2014-12-31 2015-04-08 北京奇艺世纪科技有限公司 Data storage system as well as data storage method and data access method
CN104967651A (en) * 2015-03-02 2015-10-07 深圳市腾讯计算机系统有限公司 Data push, storage and downloading methods and devices based on CDN architecture
CN106686033A (en) * 2015-11-10 2017-05-17 中兴通讯股份有限公司 Method, device and system for cache and service content
CN105450780A (en) * 2015-12-31 2016-03-30 深圳市网心科技有限公司 CDN system and source tracing method thereof

Also Published As

Publication number Publication date
WO2019196825A1 (en) 2019-10-17
CN109873855A (en) 2019-06-11

Similar Documents

Publication Publication Date Title
CN109873855B (en) Resource acquisition method and system based on block chain network
US11194719B2 (en) Cache optimization
US11032387B2 (en) Handling of content in a content delivery network
US10601767B2 (en) DNS query processing based on application information
US20180205697A1 (en) Managing content delivery network service providers by a content broker
US9444759B2 (en) Service provider registration by a content broker
US8713156B2 (en) Request routing based on class
US8732309B1 (en) Request routing utilizing cost information
JP6588477B2 (en) Remote information query method and server
KR20130088774A (en) System and method for delivering segmented content
CN104378452A (en) Method, device and system for domain name resolution
CN109905479B (en) File transmission method and device
CN107580021A (en) A kind of method and apparatus of file transmission
CN110798495B (en) Method and server for end-to-end message push in cluster architecture mode
CN105025042B (en) A kind of method and system of determining data information, proxy server
CN113873302B (en) Content distribution method, content distribution device, storage medium and electronic equipment
CN103685367A (en) Offline download system and offline download method
CN112714078A (en) Network traffic identification method and device, storage medium and server
CN114338720A (en) Distributed file storage and transmission method, system and storage medium
CN116248632A (en) File acquisition method, device, system and equipment, medium and product
CN117527809A (en) Resource acquisition method, device, equipment and storage medium
CN116436912A (en) Source return method, apparatus, device and computer readable storage medium
JP2017175567A (en) Name solution device, name solution method and name solution program

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40009798

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant