File storage method, file downloading method, file processing method and related components

A file storage and file download technology, applied in electrical components, transmission systems, etc., can solve the problem of not being able to transfer files to intranet nodes

Pending Publication Date: 2020-07-24
SHENZHEN THUNDER NETWORK TECH +1
View PDF7 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, many nodes in the decentralized network do not have public network IPs and belong to intranet nodes. Therefore, the client cannot directly transfer files to intranet nodes during the process of uploading files.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File storage method, file downloading method, file processing method and related components
  • File storage method, file downloading method, file processing method and related components
  • File storage method, file downloading method, file processing method and related components

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0081] Please refer to figure 1 , figure 1 It is a flow chart of a file storage method in the embodiment of this application, the method can be applied to the nodes of the decentralized network, and the method includes the following steps:

[0082] S101. Slice the target file to obtain multiple file slices.

[0083] In this embodiment, the file size threshold that needs to be sliced ​​can be set in advance, and then when the client determines that a file needs to be uploaded, if the file size is greater than the file size threshold, it is determined that the file needs to be sliced, that is, the target file is Files that need to be uploaded in slices. For example, when the minimum file slice is set to 32M, the file size threshold may be set to 32M.

[0084] Preferably, in order to avoid large file slicing, the number of slicing is too large, resulting in complicated uploading. In this embodiment, the number of slices can also be limited. Different file slice sizes can be ...

Embodiment 2

[0124] Please refer to figure 2 , figure 2 It is a flow chart of a file download method in the embodiment of this application, the method can be applied to the nodes of the decentralized network, and the method includes the following steps:

[0125] S201. Obtain a primary index corresponding to a target file to be downloaded, and obtain a secondary index of the target file based on the primary index.

[0126] In this method, the node of the decentralized network can obtain the corresponding first-level index of the file to be downloaded when receiving the client's target file download request, or when the node itself needs to download the target file.

[0127] Then, based on the primary index, the secondary index can be obtained. Wherein, both the first-level index and the second-level index can be represented by a key-value pair (key / value). For ease of description, the key of the first-level index is called the first key, the value of the first-level index is called the...

Embodiment 3

[0154] Please refer to Figure 4 , Figure 4 It is a flow chart of a file processing method in the embodiment of the present application. The method can be applied to external network nodes of a decentralized network. The method includes the following steps:

[0155] S401. Receive a file slice uploaded by a target node, and store the file slice.

[0156] A file slice is a slice of the target file.

[0157] S402. Feed back its own node information to the target node, so that the target node can generate a secondary index of the target file.

[0158] S403. Spreading the file slices to adjacent nodes.

[0159] In order to enable multiple nodes to store the file slices for multi-point download and improve the download speed.

[0160] Among them, the adjacent node can be a node adjacent to the external network node communication, such as the route hop count is 1 or less than a specified threshold such as 5.

[0161] Preferably, in order to spread the file slices according to a...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a file storage method, a file downloading method, a file processing method, file management equipment and a readable storage medium. Due to the fact that an extranet node has the extranet IP, a file slice can be directly uploaded to the extranet node, and the extranet node can rapidly diffuse the file slice in the whole decentralized network through diffusion. In addition,compared with a target file, the file slice has the advantages of small data volume and higher uploading success rate. After the file slice is uploaded to the extranet node, a first-level index and asecond-level index are stored, so that the target file can be conveniently positioned, namely, which extranet node stores the file slice of the target file is determined. Namely, in the application, the target file can be sliced and then uploaded, and the file slice of the target file after the slice is found by positioning can be quickly downloaded, so that the uploading speed and the downloadingspeed of the file can be improved.

Description

technical field [0001] The present application relates to the technical field of distributed storage, in particular to a file storage method, a file download method, a file processing method, a file management device, and a readable storage medium. Background technique [0002] Since there is no centralized server in the decentralized network, files are stored in the decentralized network, and the client can only upload files to the node. However, many nodes in the decentralized network do not have public network IPs and belong to intranet nodes. Therefore, during the process of uploading files, the client cannot directly transfer the files to the intranet nodes. Correspondingly, downloading files from the decentralized network also has corresponding problems. [0003] To sum up, how to effectively solve the problem of how to ensure the file management of the decentralized network is an urgent technical problem to be solved by those skilled in the art. Contents of the inv...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
CPCH04L67/1097H04L67/06H04L67/108
Inventor 王立新
Owner SHENZHEN THUNDER NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products