Method and Apparatus for Acceleration of Hash-Based Lookup
US-2020073952-A1 · Mar 5, 2020 · US
US11206302B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-11206302-B2 |
| Application number | US-201816327668-A |
| Country | US |
| Kind code | B2 |
| Filing date | Jul 12, 2018 |
| Priority date | Apr 10, 2018 |
| Publication date | Dec 21, 2021 |
| Grant date | Dec 21, 2021 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
A method includes: receiving a resource acquisition request of a target resource, and calculating resource identification information included in the resource acquisition request by using a first preset algorithm to obtain a target feature index value; if a resource file corresponding to the target feature index value exists locally, feeding back the resource file corresponding to the target feature index value, and if not, transmitting a data acquisition request of a specified segment of the target resource to a resource server of the target resource; receiving data of the specified segment fed back by the resource server, and calculating the data of the specified segment by using a second preset algorithm to obtain a target content index value; and if a resource file corresponding to the target content index value exists locally, feeding back the resource file corresponding to the target content index value, and if not, transmitting the resource acquisition request to the resource server.
Opening claim text (preview).
What is claimed is: 1. A method for feeding back a resource file, comprising: receiving a resource acquisition request of a target resource, and calculating resource identification information included in the resource acquisition request by using a first preset algorithm to obtain a target feature index value; if a resource file corresponding to the target feature index value exists locally, feeding back the resource file corresponding to the target feature index value, and if the resource file corresponding to the target feature index value does not exist locally, transmitting a data acquisition request of a specified segment of the target resource to a resource server of the target resource; receiving data of the specified segment of the target resource fed back by the resource server, and calculating the data of the specified segment by using a second preset algorithm to obtain a target content index value; and if a resource file corresponding to the target content index value exists locally, feeding back the resource file corresponding to the target content index value, and if the resource file corresponding to the target content index value does not exist locally, transmitting the resource acquisition request of the target resource to the resource server. 2. The method according to claim 1 , wherein calculating the resource identification information included in the resource acquisition request by using the first preset algorithm to obtain the target feature index value further includes: if the resource identification information included in the resource acquisition request matches a locally pre-stored target information format, extracting feature information in the resource identification information according to the locally pre-stored target information format, and calculating the feature information by using the first preset algorithm to obtain the target feature index value; and if the resource identification information included in the resource acquisition request does not match any locally pre-stored information format, calculating the resource identification information included in the resource acquisition request by using the first preset algorithm to obtain the target feature index value. 3. The method according to claim 1 , wherein transmitting the data acquisition request of the specified segment of the target resource to the resource server of the target resource further includes: if a data size of a resource file of the target resource is larger than a data size of the specified segment, transmitting the data acquisition request of the specified segment of the target resource to the resource server of the target resource, and if the data size of the resource file of the target resource is not larger than the data size of the specified segment, transmitting the resource acquisition request of the target resource to the resource server. 4. The method according to claim 1 , wherein calculating the data of the specified segment by using the second preset algorithm to obtain the target content index value further includes: obtaining a data size of a whole resource in which the target resource is included, and combining the data size of the whole resource to calculate the data of the specified segment by using the second preset algorithm to obtain the target content index value. 5. The method according to claim 1 , wherein: the resource acquisition request includes identifiers for target data segments; and if the resource file corresponding to the target content index value exists locally, feeding back the resource file corresponding to the target content index value further includes: if the resource file corresponding to the target content index value exists locally, and the resource file includes all resource data to which the identifiers of the target data segments are directed, feeding back all the resource data, in the resource file, to which the identifiers of the target data segments are directed, and if the resource file corresponding to the target content index value exists locally, and the resource file does not include all the resource data to which the identifiers of the target data segments are directed, transmitting the resource acquisition request of the target resource to the resource server. 6. The method according to claim 1 , after transmitting the resource acquisition request of the target resource to the resource server, the method further includes: receiving a resource file of the target resource fed back by the resource server, and correspondingly storing the target feature index value, the target content index value, and the resource file in the local. 7. A device for feeding back a resource file, comprising: a first calculation module that is configured to receive a resource acquisition request of a target resource, and calculate resource identification information included in the resource acquisition request by using a first preset algorithm to obtain a target feature index value; a first transmission module that is configured to, if a resource file corresponding to the target feature index value exists locally, feed back the resource file corresponding to the target feature index value, and if the resource file corresponding to the target feature index value does not exist locally, transmit a data acquisition request of a specified segment of the target resource to a resource server of the target resource; a second calculation module that is configured to receive data of the specified segment of the target resource fed back by the resource server, and calculate the data of the specified segment by using a second preset algorithm to obtain a target content index value; and a second transmission module that is configured to, if a resource file corresponding to the target content index value exists locally, feed back the resource file corresponding to the target content index value, and if the resource file corresponding to the target content index value does not exist locally, transmit the resource acquisition request of the target resource to the resource server. 8. The device according to claim 7 , wherein the first calculation module is further configured to: if the resource identification information included in the resource acquisition request matches a locally pre-stored target information format, extract feature information in the resource identification information according to the locally pre-stored target information format, and calculate the feature information by using the first preset algorithm to obtain the target feature index value; and if the resource identification information included in the resource acquisition request does not match any locally pre-stored information format, calculate the resource identification information included in the resource acquisition request by using the first preset algorithm to obtain the target feature index value. 9. The device according to claim 7 , wherein the first transmission module is further configured to: if a data size of a resource file of the target resource is larger than a data size of the specified segment, transmit the data acquisition request of the specified segment of the target resource to the resource server of the target resource, and if the data size of the resource file of the target resource is not larger than the data size of the specified segment, transmit the resource acquisition request of the target resource to the resource server. 10. The device according to claim 7 , wherein the second calculation module is further configured to: obtain a data size of a whole resource in which the target resource is included, and combine the data size of the whole resource to calculate the data of th
Routing a service request depending on the request content or context · CPC title
Conversion or adaptation of application format or content (adding application control or application functional data H04L67/561) · CPC title
Storing data temporarily at an intermediate stage, e.g. caching · CPC title
Reducing the amount or size of exchanged application data · CPC title
specially adapted for file transfer, e.g. file transfer protocol [FTP] · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.