CN109408463A - Distributive file storage method and device, node server - Google Patents
Distributive file storage method and device, node server Download PDFInfo
- Publication number
- CN109408463A CN109408463A CN201811109464.0A CN201811109464A CN109408463A CN 109408463 A CN109408463 A CN 109408463A CN 201811109464 A CN201811109464 A CN 201811109464A CN 109408463 A CN109408463 A CN 109408463A
- Authority
- CN
- China
- Prior art keywords
- segment
- file
- node
- node server
- information
- 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.)
- Granted
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention relates to file storage technology fields, more particularly to a kind of distributive file storage method and device, node server.Method includes: by file fragmentation into several segments, and the different segments are stored in different node servers;The node identity information for combining the segment number of segment and the destination node server of stored fragments, obtains combined information;Combined information is made into Hash operation, obtains Hash digest;Signature processing is made to Hash digest using private key, obtains signature file;Segment and signature file are stored in destination node server.On the one hand, file fragmentation at several segments and is stored in different node servers, when client needs to download each segment, homologous segment can be downloaded from each node server respectively, to improve the efficiency of downloading file.On the other hand, when client downloads file, the legitimacy of public key verifications signature file can be used, to verify the legitimate origin of each segment, to improve the safety of downloading file.
Description
Technical field
The present invention relates to file storage technology fields, more particularly to a kind of distributive file storage method and device, section
Point server.
Background technique
In general, file is entirely stored in particular server, when client needs to download this document, by specific to this
Server sends http request, to download this document from the particular server.
Inventor in the implementation of the present invention, has found traditional technology the prior art has at least the following problems: firstly, file is whole
Body is stored in particular server, leads to the inefficiency of later period client downloads this document, and particular server is caused to overload.And
And particular server is easy under attack, and client is caused to be readily accessible to bogus server and the file conduct that is sent to
Authentic document.
Summary of the invention
One purpose of the embodiment of the present invention is intended to provide a kind of distributive file storage method and device, node server,
Its with enabling to client high-efficiency rate, safely download file.
In order to solve the above technical problems, the embodiment of the present invention the following technical schemes are provided:
In a first aspect, the embodiment of the present invention provides a kind of distributive file storage method, comprising:
By file fragmentation at several segments, the different segments are stored in different node servers, each node clothes
Business device is all corresponding with node identity information, and the identity information of node server described in any two is all different, each node
Server is all configured with private key and public key, and the public key is broadcasted in whole node servers;
According to default built-up sequence, the destination node service of the segment number and the storage segment of the segment is combined
The node identity information of device, obtains combined information;
The combined information is made into Hash operation, obtains Hash digest;
Signature processing is made to the Hash digest using the private key, obtains signature file;
The segment and the signature file are stored in the destination node server, the public key is for verifying institute
State the legitimacy of signature file.
Optionally, the method also includes:
The segment is made into Hash operation, obtains piece segment information, wherein described segment information, the segment number and
The data bits of the node identity information is all identical;
It is described according to default built-up sequence, combine the segment number of the segment and the destination node of the storage segment
The node identity information of server, obtains combined information, comprising:
According to default built-up sequence, piece segment information, the segment number and the storage segment of the segment are combined
Destination node server node identity information, obtain combined information.
Optionally, the method also includes:
According to the access temperature of the file, each segment is backed up in each node server.
Optionally, the access temperature according to the file backs up each segment, comprising:
Obtain the access times of the file;
Judge whether the access times of the file are greater than preset times threshold value;
If more than each segment of backup;
If being less than, it is not backed up each segment.
Optionally, the method also includes:
The jump request that client is sent is received, is asked in the client to the downloading of whole node server broadcast files
It asks, and when the above node server of one or both of described whole node server does not respond the file download request,
The client generates the jump request;
According to the jump request, Xiang Suoshu client sends redirection request, so that the client is described in the verifying
When redirection request is legal, the file is downloaded according to the redirection request, wherein the redirection request, which carries, to be reset
To address and signature file, the redirect address is directed toward content server, file described in the content servers store.
In second aspect, the embodiment of the present invention provides a kind of file distribution storage device, comprising:
Fragment module, for, at several segments, the different segments to be stored in different node servers, often by file fragmentation
A node server is all corresponding with node identity information, and the identity information of node server described in any two is all different,
Each node server is all configured with private key and public key, and the public key is broadcasted in whole node servers;
Composite module, for combining the segment number and the storage segment of the segment according to default built-up sequence
Destination node server node identity information, obtain combined information;
Digest calculations module obtains Hash digest for the combined information to be made Hash operation;
Signature blocks obtain signature file for making signature processing to the Hash digest using the private key;
Memory module, it is described for the segment and the signature file to be stored in the destination node server
Public key is used to verify the legitimacy of the signature file.
Optionally, described device further include: fragment computations module obtains segment for the segment to be made Hash operation
Information, wherein the data bits of described segment information, the segment number and the node identity information is all identical;
The composite module is specifically used for:
According to default built-up sequence, piece segment information, the segment number and the storage segment of the segment are combined
Destination node server node identity information, obtain combined information.
Optionally, described device further include: backup module, for the access temperature according to the file, each described
Node server backs up each segment.
Optionally, the backup module is specifically used for:
Obtain the access times of the file;
Judge whether the access times of the file are greater than preset times threshold value;
If more than each segment of backup;
If being less than, it is not backed up each segment.
In the third aspect, the embodiment of the present invention provides a kind of node server, comprising:
At least one processor;And
The memory being connect at least one described processor communication;Wherein, the memory be stored with can by it is described extremely
The instruction that a few processor executes, described instruction are executed by least one described processor, so that at least one described processing
Device can be used in executing described in any item distributive file storage methods.
In fourth aspect, the embodiment of the present invention provides a kind of non-transient computer readable storage medium, the non-transient meter
Calculation machine readable storage medium storing program for executing is stored with computer executable instructions, and the computer executable instructions are for holding node server
The described in any item distributive file storage methods of row.
At the 5th aspect, the embodiment of the present invention provides a kind of computer program product, and the computer program product includes
The computer program being stored on non-volatile computer readable storage medium storing program for executing, the computer program include program instruction, when
When described program instruction is executed by node server, the node server is made to execute described in any item file distribution storages
Method.
In the distributive file storage method and device, node server that each embodiment of the present invention provides, firstly, will
For file fragmentation at several segments, different fragments are stored in different node servers, and each node server is all corresponding with node body
Part information, the identity information of any two node server is all different, and each node server is all configured with private key and public key, public
Key is broadcasted in whole node servers;Secondly, combining the segment number and stored fragments of segment according to default built-up sequence
Destination node server node identity information, obtain combined information;Again, combined information is made into Hash operation, is breathed out
Uncommon abstract;Again, signature processing is made to Hash digest using private key, obtains signature file;Finally, by segment and signature file
It is stored in destination node server, public key is used to verify the legitimacy of signature file.On the one hand, by file fragmentation at several segments
And different node servers are stored in, when client needs to download each segment, it can be downloaded respectively from each node server
Homologous segment, to improve the efficiency of downloading file.On the other hand, when client downloads file, public key verifications can be used
The legitimacy of signature file, to verify the legitimate origin of each segment, to improve the safety of downloading file.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys
The bright restriction not constituted to embodiment, the element in attached drawing with same reference numbers label are expressed as similar element, remove
Non- to have special statement, composition does not limit the figure in attached drawing.
Fig. 1 is that the embodiment of the present invention provides a kind of structural schematic diagram of file distribution storage system;
Fig. 2 is that the embodiment of the present invention provides a kind of flow diagram of distributive file storage method;
Fig. 3 is that Fig. 2 is that another embodiment of the present invention provides a kind of flow diagrams of distributive file storage method;
Fig. 4 is that the embodiment of the present invention provides a kind of structural schematic diagram of file distribution storage device;
Fig. 5 is that another embodiment of the present invention provides a kind of structural schematic diagrams of file distribution storage device;
Fig. 6 is that another embodiment of the present invention provides a kind of structural schematic diagram of file distribution storage device;
Fig. 7 is that the embodiment of the present invention provides a kind of structural schematic diagram of node server.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.
Referring to Fig. 1, Fig. 1 is that the embodiment of the present invention provides a kind of file distribution storage system.As shown in Figure 1, file
Distributed memory system 100 includes several clients 11 and several node servers 12.
Client 11 can be any one following electronic equipment: television set, smart phone, computer, palm PC
(Personal Digital Assistant, PDA), tablet computer, e-book etc..
Client 11 has display screen, and display screen can be Touch Screen or non-touch-control screen, can be TFT screen
Curtain (Thin Film Transistor, TFT thin film transistor), TFD screen (Thin Film Diode, TFD film
Diode), UFB screen (Ultra Fine Bright, UFB), STN screen (Super Twisted Nematic, STN),
OLED screen curtain (Organic Light-Emitting Diode, OLED Organic Light Emitting Diode), AMOLED screen (Active
Matrix/Organic Light Emitting Diode, AMOLED active matrix organic light emitting diode panel), and wait
Deng.
Client 11 supports the installation of various application programs, one or more desktop in such as following application program is answered
With program: drawing application program, demonstration applications, word-processing application, spreadsheet applications, game application journey
Sequence, telephony application, videoconference application, email application, instant message application program, training are supported to answer
With program, photo application, digital camera application program, digital video recorder application program, web page browsing application program, number
Music player application program, video frequency player application program and etc..In some embodiments, some application programs
It include contact person, such as: telephony application, email application, instant message application program etc..
Node server 12 is communicated with each client 11 respectively, wherein the communication modes can be wireless telecommunications, also may be used
Think wire communication.
Node server 12 herein can be a physical server or multiple physical servers it is virtual made of one
A logical server.Server be also possible to it is multiple can interconnected communication server composition server zone, and each function mould
Block can be respectively distributed on each server in server zone.
Referring to Fig. 2, Fig. 2 is that the embodiment of the present invention provides a kind of flow diagram of distributive file storage method.Please
Include: with Fig. 2, distributive file storage method S200 refering to fig. 1 together
S21, by file fragmentation at several segments, different fragments are stored in different node servers, each node server
It is all corresponding with node identity information, the identity information of any two node server is all different, and each node server all configures
There are private key and public key, public key is broadcasted in whole node servers;
It in the present embodiment, can be by file fragmentation at preset quantity segment according to business demand.For example, such as Fig. 1 institute
Show, designer devises four node servers, respectively first node server 121, second node server 122, third
Node server 123 and fourth node server 124.Designer is according further to the amount of capacity of file M, and average fragment is at 4 pieces
Section, respectively M1, M2, M3 and M4.Wherein, segment M1 is stored in first node server 121, and segment M2 is stored in second node
Server 122, segment M3 are stored in third node server 123, and segment M4 is stored in fourth node server 124.Wherein,
One node server 121, second node server 122, third node server 123 and fourth node server 124 node
Identity information is all different.
In the present embodiment, the in store corresponding private key of node server, public key are broadcasted in whole node servers.When
When file distribution storage system is added in new node server, system is new to save after verifying new node server is legitimate node
Point server starts the public key to system broadcasts itself.
S22, according to default built-up sequence, combine the segment number of segment and the destination node server of stored fragments
Node identity information obtains combined information;
S23, combined information is made into Hash operation, obtains Hash digest;
Built-up sequence is preset by designer's self-defining, for example, combining the segment of segment M1 according to order from left to right
The node identity information of number and first node server 121, obtains combined information;Alternatively, according to order from left to right, group
The node identity information of first node server 121 and the segment number of segment M1 are closed, combined information is obtained.
In the present embodiment, destination node server is to store the segment for the segment that specific fragment is numbered
Node server, for example, the first node server 121 of stored fragments M1 be destination node server, stored fragments M2's
Second node server 122 is destination node server, and so on, details are not described herein.
The hash algorithm that Hash operation uses includes: SHA3, SHA1, SHA224, SHA256, SHA384 or SHA512.
As previously mentioned, being different using the calculated Hash digest of combined information that different default built-up sequences are combined into
, therefore, in the present embodiment, in order to guarantee the consistency of Hash operation, need to make according to fixed default built-up sequence
Hash operation.
In the present embodiment, also all broadcast is in other node servers for the node identity information of each node server, also
That is, the node identity information of each node server has been disclosed.Also, the segment number of each segment is also disclosed.In order to
Facilitate the legitimacy of client validation subsequent signature file, client can be with the segment number and node identity information of binding fragment
The combined information being combined into retrodicts the legitimacy of verifying signature file using the public key of destination node server.
The segment that malicious node server tampers with a document in order to prevent, in some embodiments, firstly, destination node service
Segment is made Hash operation by device, obtains piece segment information, wherein the data of piece segment information, segment number and node identity information
Digit is all identical.Secondly, destination node server according to default built-up sequence, combine piece segment information, the segment number of segment with
And the node identity information of the destination node server of stored fragments, obtain combined information.Subsequent step is raw according to combined information
After signature file, and when the legitimacy of client validation signature file, if malicious node server distorts segment, certainty
The signature file for causing client validation to go out is illegal.
S24, signature processing is made to Hash digest using private key, obtains signature file;
S25, segment and signature file are stored in destination node server, public key is for verifying the legal of signature file
Property.
In the present embodiment, when client downloads file, the title of this document is broadcasted to each node server, is stored with
The node server of the segment of this document with all sending the network for returning to segment number and each node server to client
Location, client send file download request to each node server according to the network address of each node server of return.
The file download request that each node server is sent according to client returns to signature file and corresponding to client
Section.When storing homologous segment, firstly, client uses the public-key process signature file of respective destination node server, obtain
Hash digest to be verified.Secondly, client combines the segment number of the segment and stores the destination node server of the segment
Node identity information, obtain combined information, combined information made into Hash operation, obtain target Hash digest, and target is breathed out
Uncommon abstract is compared with Hash digest to be verified, if unanimously, the signature file be it is legal, if inconsistent, the signature file right and wrong
Method.
When signature file be it is legal, client stores the segment.When signature file be it is illegal, client abandons the piece
Section.
To sum up, on the one hand, file fragmentation at several segments and is stored in different node servers, client needs to download
When each segment, homologous segment can be downloaded from each node server respectively, to improve the efficiency of downloading file.Another party
When client downloads file, the legitimacy of public key verifications signature file is can be used in face, with verify each segment it is legal come
Source, to improve the safety of downloading file.
In general, the access temperature height of file is different, node server can be with flexible storage file.In some embodiments
In, node server can back up each segment according to the access temperature of file.For example, firstly, node server obtains file
Access times.Secondly, node server judges whether the access times of file are greater than preset times threshold value, if more than backup
Each segment;If being less than, it is not backed up each segment.
In this manner, the safety of file storage can be enhanced.
When some or multiple node servers are in malfunction, the downloading for having not been able to the transmission of customer in response end is asked
It asks.In order to improve the reliability of downloading file, in some embodiments, referring to Fig. 3, distributive file storage method S200 is also
Include:
S26, the jump request that client is sent is received, is asked in client to the downloading of whole node server broadcast files
It asks, and the non-response file of the above node server of one or both of whole node servers is downloaded when requesting, client produces
Raw jump request;
In the present embodiment, client is downloaded to whole node server broadcast files and is requested, and is stored with the piece of this document
The node server of section all sends the network address for returning to segment number and each node server to client, if client
When detecting that the non-response file downloading of the above node server of one or both of whole node servers is requested, client is generated
Jump request.
In some embodiments, client can also combine the node server for the segment for being stored with this document all to client
End sends the different fragments number returned, and judges that the different fragments number whether corresponding segment constitutes a complete text
Part just according to the network address accessed node server of each node server, and is downloaded if constituting from each node server
Homologous segment.If not constituting, client judges that some or multiple node servers break down and have not been able to successfully return piece
Segment number and its network address, then, client generate jump request.
S27, according to jump request, redirection request is sent to client, so that client is closed in verifying redirection request
When method, file is downloaded according to redirection request, wherein redirection request carries redirect address and signature file, resets
Content server, content servers store file are directed toward to address.
In the present embodiment, node server prestores redirect address, and redirect address is directed toward content server, content
Server storage file.It nonserviceables or is easy under attack in general, the content server is not easy work.Therefore,
When some or multiple node servers have not been able to timely respond to the file download request of client transmission, in order to guarantee client energy
Enough smoothly downloading files, node server can send redirection request to client, and client is according to the weight of redirection request
Vectoring address accesses content server, downloads file from content server.
In order to guarantee that the source legitimacy of redirection request, redirection request also need to carry signature file, client's termination
When receiving redirection request, priori demonstrate,proves the legitimacy of signature file, if legal, can download file according to redirect address.If
Illegally, it is not responding to the redirection request, and continues to send jump request to node server, so as to successfully lower published article
Part.
It should be noted that not necessarily there is centainly successive between above steps in above-mentioned each embodiment
Sequentially, those of ordinary skill in the art, according to an embodiment of the present invention to describe to be appreciated that in different embodiments, above-mentioned each step
Suddenly there can be the different sequences that executes, also i.e., it is possible to execute parallel, execution etc. can also be exchanged.
As the another aspect of the embodiment of the present invention, the embodiment of the present invention provides a kind of file distribution storage device.This
The file distribution storage device of inventive embodiments can be used as one of SFU software functional unit, file distribution storage device
Including some instructions, which is stored in memory, and the accessible memory of processor, call instruction is held
Row, to complete above-mentioned distributive file storage method.
Referring to Fig. 4, Fig. 4 is that the embodiment of the present invention provides a kind of structural schematic diagram of file distribution storage device.Such as
Shown in Fig. 4, file distribution storage 400 includes: fragment module 41, composite module 42, digest calculations module 43, signature blocks 44
And memory module 45.
Fragment module 41 is used for file fragmentation into several segments, and the different segments are stored in different node servers,
Each node server is all corresponding with node identity information, and the identity information of node server described in any two is neither
Together, each node server is all configured with private key and public key, and the public key is broadcasted in whole node servers;
Composite module 42 is used to combine the segment number and the storage segment of the segment according to default built-up sequence
Destination node server node identity information, obtain combined information;
Digest calculations module 43 is used to the combined information making Hash operation, obtains Hash digest;
Signature blocks 44 are used to make signature processing to the Hash digest using the private key, obtain signature file;
Memory module 45 is used to the segment and the signature file being stored in the destination node server, described
Public key is used to verify the legitimacy of the signature file.
To sum up, on the one hand, file fragmentation at several segments and is stored in different node servers, client needs to download
When each segment, homologous segment can be downloaded from each node server respectively, to improve the efficiency of downloading file.Another party
When client downloads file, the legitimacy of public key verifications signature file is can be used in face, with verify each segment it is legal come
Source, to improve the safety of downloading file.
Referring to Fig. 5, file distribution storage 400 further includes fragment computations module 46, fragment computations module 46 is used for will
The segment makees Hash operation, obtains piece segment information, wherein described segment information, the segment number and the node body
The data bits of part information is all identical.
Composite module 42 is specifically used for: according to default built-up sequence, combining the piece segment information of the segment, the segment is compiled
Number and the storage segment destination node server node identity information, obtain combined information.
Referring to Fig. 6, file distribution storage 400 further includes backup module 47, backup module 47 is used for according to the text
The access temperature of part backs up each segment.
In some embodiments, backup module 47 is specifically used for: obtaining the access times of the file;Judge the file
Access times whether be greater than preset times threshold value;If more than each segment of backup;If being less than, it is not backed up each described
Segment.
It should be noted that file distribution provided by the embodiment of the present invention can be performed in above-mentioned file distribution storage device
Formula storage method has the corresponding functional module of execution method and beneficial effect.Not in file distribution memory device embodiment
In detailed description technical detail, reference can be made to distributive file storage method provided by the embodiment of the present invention.
As the another aspect of the embodiment of the present invention, the embodiment of the present invention provides a kind of node server.Such as Fig. 7 institute
Show, which includes: one or more processors 71 and memory 72.Wherein, with a processor in Fig. 7
For 71.
Processor 71 can be connected with memory 72 by bus or other modes, to be connected as by bus in Fig. 7
Example.
Memory 72 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey
Sequence, non-volatile computer executable program and module, as the distributive file storage method in the embodiment of the present invention is corresponding
Program instruction/module.Non-volatile software program, instruction and the mould that processor 71 is stored in memory 72 by operation
Block, thereby executing the various function application and data processing of file distribution storage device, i.e. realization above method embodiment
The function of the modules of distributive file storage method and above-mentioned apparatus embodiment.
Memory 72 may include high-speed random access memory, can also include nonvolatile memory, for example, at least
One disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments, memory 72
Optional includes the memory remotely located relative to processor 71, these remote memories can pass through network connection to processor
71.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Described program instruction/module is stored in the memory 72, is held when by one or more of processors 71
When row, the distributive file storage method in above-mentioned any means embodiment is executed, for example, executing Fig. 2 and Fig. 3 described above
Shown in each step;It can also realize the function of modules described in attached fig. 4 to fig. 6 and unit.
The embodiment of the invention also provides a kind of nonvolatile computer storage media, the computer storage medium storage
There are computer executable instructions, which is executed by one or more processors, such as at one in Fig. 7
Device 71 is managed, may make said one or multiple processors that the file distribution storage side in above-mentioned any means embodiment can be performed
Method, for example, the distributive file storage method in above-mentioned any means embodiment is executed, for example, executing execution described above
It is described above to execute Fig. 2 described above and each step shown in Fig. 3;It can also realize each mould described in attached fig. 4 to fig. 6
The function of block and unit.
Device or apparatus embodiments described above is only schematical, wherein it is described as illustrated by the separation member
Unit module may or may not be physically separated, and the component shown as modular unit can be or can also
Not to be physical unit, it can it is in one place, or may be distributed on multiple network module units.It can basis
It is actual to need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It is realized by the mode of software plus general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, above-mentioned technology
Scheme substantially in other words can be embodied in the form of software products the part that the relevant technologies contribute, the computer
Software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are with directly
To computer equipment (can be personal computer, server or the network equipment etc.) execute each embodiment or
Method described in certain parts of embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;At this
It under the thinking of invention, can also be combined between the technical characteristic in above embodiments or different embodiment, step can be with
It is realized with random order, and there are many other variations of different aspect present invention as described above, for simplicity, they do not have
Have and is provided in details;Although the present invention is described in detail referring to the foregoing embodiments, the ordinary skill people of this field
Member is it is understood that it is still possible to modify the technical solutions described in the foregoing embodiments, or to part of skill
Art feature is equivalently replaced;And these are modified or replaceed, each reality of the application that it does not separate the essence of the corresponding technical solution
Apply the range of a technical solution.
Claims (10)
1. a kind of distributive file storage method characterized by comprising
By file fragmentation at several segments, the different segments are stored in different node servers, each node server
It is all corresponding with node identity information, the identity information of node server described in any two is all different, each node serve
Device is all configured with private key and public key, and the public key is broadcasted in whole node servers;
According to default built-up sequence, combines the segment number of the segment and store the destination node server of the segment
Node identity information obtains combined information;
The combined information is made into Hash operation, obtains Hash digest;
Signature processing is made to the Hash digest using the private key, obtains signature file;
The segment and the signature file are stored in the destination node server, the public key is for verifying the label
The legitimacy of name file.
2. the method according to claim 1, wherein
The method also includes:
The segment is made into Hash operation, obtains piece segment information, wherein described segment information, the segment number and described
The data bits of node identity information is all identical;
It is described according to default built-up sequence, combine the destination node service of the segment number and the storage segment of the segment
The node identity information of device, obtains combined information, comprising:
According to default built-up sequence, the piece segment information of the segment, the mesh of the segment number and the storage segment are combined
The node identity information for marking node server, obtains combined information.
3. the method according to claim 1, wherein the method also includes:
According to the access temperature of the file, each segment is backed up.
4. according to the method described in claim 3, it is characterized in that, the access temperature according to the file, backup are each
The segment, comprising:
Obtain the access times of the file;
Judge whether the access times of the file are greater than preset times threshold value;
If more than each segment of backup;
If being less than, it is not backed up each segment.
5. method according to any one of claims 1 to 4, which is characterized in that the method also includes:
The jump request that client is sent is received, downloads and requests to whole node server broadcast files in the client, and
And one or both of described whole node server above node server is not when responding the file download request, the visitor
Family end generates the jump request;
According to the jump request, Xiang Suoshu client sends redirection request, so that the client is reset described in the verifying
To when requesting legal, the file is downloaded according to the redirection request, wherein the redirection request carries redirection ground
Location and signature file, the redirect address are directed toward content server, file described in the content servers store.
6. a kind of file distribution storage device characterized by comprising
Fragment module, for, at several segments, the different segments to be stored in different node servers, Mei Gesuo by file fragmentation
It states node server and is all corresponding with node identity information, the identity information of node server described in any two is all different, each
The node server is all configured with private key and public key, and the public key is broadcasted in whole node servers;
Composite module, for combining the segment number of the segment and the mesh of the storage segment according to default built-up sequence
The node identity information for marking node server, obtains combined information;
Digest calculations module obtains Hash digest for the combined information to be made Hash operation;
Signature blocks obtain signature file for making signature processing to the Hash digest using the private key;
Memory module, for the segment and the signature file to be stored in the destination node server, the public key
For verifying the legitimacy of the signature file.
7. device according to claim 6, which is characterized in that
Described device further include: fragment computations module obtains piece segment information for the segment to be made Hash operation, wherein institute
The data bits for stating piece segment information, the segment number and the node identity information is all identical;
The composite module is specifically used for:
According to default built-up sequence, the piece segment information of the segment, the mesh of the segment number and the storage segment are combined
The node identity information for marking node server, obtains combined information.
8. device according to claim 6, which is characterized in that described device further include: backup module, for according to
The access temperature of file backs up each segment.
9. device according to claim 8, which is characterized in that the backup module is specifically used for:
Obtain the access times of the file;
Judge whether the access times of the file are greater than preset times threshold value;
If more than each segment of backup;
If being less than, it is not backed up each segment.
10. a kind of node server characterized by comprising
At least one processor;And
The memory being connect at least one described processor communication;Wherein, be stored with can be by described at least one for the memory
The instruction that a processor executes, described instruction is executed by least one described processor, so that at least one described processor energy
It is enough in execution such as distributive file storage method described in any one of claim 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811109464.0A CN109408463B (en) | 2018-09-21 | 2018-09-21 | File distributed storage method and device and node server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811109464.0A CN109408463B (en) | 2018-09-21 | 2018-09-21 | File distributed storage method and device and node server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109408463A true CN109408463A (en) | 2019-03-01 |
CN109408463B CN109408463B (en) | 2020-12-08 |
Family
ID=65466249
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811109464.0A Active CN109408463B (en) | 2018-09-21 | 2018-09-21 | File distributed storage method and device and node server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109408463B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110224842A (en) * | 2019-06-26 | 2019-09-10 | 北京小米移动软件有限公司 | Using the method for down loading of packet, device, equipment and readable storage medium storing program for executing |
CN111784307A (en) * | 2020-07-14 | 2020-10-16 | 武汉空心科技有限公司 | Work platform task issuing method based on template file |
CN113938883A (en) * | 2020-12-23 | 2022-01-14 | 技象科技(浙江)有限公司 | Data encryption sending method and device based on intermediate node |
CN117134918A (en) * | 2023-07-20 | 2023-11-28 | 威艾特科技(深圳)有限公司 | Distributed data signature verification method and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102143232A (en) * | 2011-04-02 | 2011-08-03 | 南京邮电大学 | Peer-to-peer network based digital copyright protection method |
US20120117610A1 (en) * | 2003-06-10 | 2012-05-10 | Pandya Ashish A | Runtime adaptable security processor |
CN103118089A (en) * | 2013-01-22 | 2013-05-22 | 华中科技大学 | Safe storage method based on a plurality of cloud storage systems and system thereof |
US20150186214A1 (en) * | 2011-05-09 | 2015-07-02 | Cleversafe, Inc. | Assigning a dispersed storage network address range in a maintenance free storage container |
US20170053132A1 (en) * | 2011-06-06 | 2017-02-23 | International Business Machines Corporation | Systematic erasure code encoding of data packages |
CN107273473A (en) * | 2017-06-08 | 2017-10-20 | 维沃移动通信有限公司 | A kind of file memory method and device, file extraction method and device |
CN107995270A (en) * | 2017-11-24 | 2018-05-04 | 成都赤乌软件技术有限公司 | A kind of method that distributed document storage is realized based on block chain |
CN108111585A (en) * | 2017-12-15 | 2018-06-01 | 成都链网络科技有限公司 | Distributed storage method based on block chain |
CN108427888A (en) * | 2017-02-15 | 2018-08-21 | 阿里巴巴集团控股有限公司 | File signature method, file verification method and corresponding intrument and equipment |
-
2018
- 2018-09-21 CN CN201811109464.0A patent/CN109408463B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120117610A1 (en) * | 2003-06-10 | 2012-05-10 | Pandya Ashish A | Runtime adaptable security processor |
CN102143232A (en) * | 2011-04-02 | 2011-08-03 | 南京邮电大学 | Peer-to-peer network based digital copyright protection method |
US20150186214A1 (en) * | 2011-05-09 | 2015-07-02 | Cleversafe, Inc. | Assigning a dispersed storage network address range in a maintenance free storage container |
US20170053132A1 (en) * | 2011-06-06 | 2017-02-23 | International Business Machines Corporation | Systematic erasure code encoding of data packages |
CN103118089A (en) * | 2013-01-22 | 2013-05-22 | 华中科技大学 | Safe storage method based on a plurality of cloud storage systems and system thereof |
CN108427888A (en) * | 2017-02-15 | 2018-08-21 | 阿里巴巴集团控股有限公司 | File signature method, file verification method and corresponding intrument and equipment |
CN107273473A (en) * | 2017-06-08 | 2017-10-20 | 维沃移动通信有限公司 | A kind of file memory method and device, file extraction method and device |
CN107995270A (en) * | 2017-11-24 | 2018-05-04 | 成都赤乌软件技术有限公司 | A kind of method that distributed document storage is realized based on block chain |
CN108111585A (en) * | 2017-12-15 | 2018-06-01 | 成都链网络科技有限公司 | Distributed storage method based on block chain |
Non-Patent Citations (3)
Title |
---|
JIANG BIAN等: "JigDFS: A secure distributed file system", 《2009 IEEE SYMPOSIUM ON COMPUTATIONAL INTELLIGENCE IN CYBER SECURITY》 * |
朱珊等: "《基于Hadoop的大规模图像存储与检索》", 《计算机与现代化》 * |
琚巍巍: "分布式存储***容错技术的研究与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110224842A (en) * | 2019-06-26 | 2019-09-10 | 北京小米移动软件有限公司 | Using the method for down loading of packet, device, equipment and readable storage medium storing program for executing |
CN111784307A (en) * | 2020-07-14 | 2020-10-16 | 武汉空心科技有限公司 | Work platform task issuing method based on template file |
CN113938883A (en) * | 2020-12-23 | 2022-01-14 | 技象科技(浙江)有限公司 | Data encryption sending method and device based on intermediate node |
CN113938883B (en) * | 2020-12-23 | 2023-10-31 | 技象科技(南京)有限公司 | Data encryption sending method and device based on intermediate node |
CN117134918A (en) * | 2023-07-20 | 2023-11-28 | 威艾特科技(深圳)有限公司 | Distributed data signature verification method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109408463B (en) | 2020-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109408463A (en) | Distributive file storage method and device, node server | |
US11205037B2 (en) | Content distribution network | |
Gupta et al. | Scalable and private media consumption with Popcorn | |
US20220239496A1 (en) | Blockchain consensus method, device and system | |
CN106487743A (en) | Method and apparatus for supporting multi-user's cluster authentication | |
Liu et al. | Confidant: Protecting OSN data without locking it up | |
US20160212188A1 (en) | Method for Synchronously Playing Multimedia Content, Server, Client and System | |
CN105897911A (en) | File downloading method and device and user terminal | |
CN102413151A (en) | Network resource sharing method and system | |
CN109565518A (en) | Interchangeable content retrieval | |
CN106411823A (en) | CDN-based access control method and associated equipment | |
CN103179148A (en) | Processing method and system for sharing enclosures in internet | |
US11089051B1 (en) | Preventing denial-of-service attacks in decentralized edge networks using verifiable delay functions (VDFs) | |
US20160381127A1 (en) | Systems and methods for dynamic networked peer-to-peer content distribution | |
CN104702677A (en) | Method, device and system for treating link | |
JP2022064883A (en) | Enhanced online privacy | |
CN103051647A (en) | Method, device and system for implementing session | |
CN109167961A (en) | Security protection video backup method and system, ordinary node | |
CN101557403A (en) | Website login method, device and system | |
CN113424188A (en) | Protecting browser COOKIE | |
CN107294931B (en) | Method and apparatus for adjusting restricted access frequency | |
CN102984020A (en) | Cloud-computation-based net surfing monitoring method and monitoring system and monitoring server | |
CN114144993B (en) | Method, system and medium for protecting integrity of client device communication | |
KR102216173B1 (en) | Methdo for using of contents and apparatus for the same | |
CN109246238A (en) | Content caching accelerated method and the network equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |