CN102917029B - The implementation method that cloud stores and cloud storage system - Google Patents

The implementation method that cloud stores and cloud storage system Download PDF

Info

Publication number
CN102917029B
CN102917029B CN201210363861.7A CN201210363861A CN102917029B CN 102917029 B CN102917029 B CN 102917029B CN 201210363861 A CN201210363861 A CN 201210363861A CN 102917029 B CN102917029 B CN 102917029B
Authority
CN
China
Prior art keywords
file
fragment
complete
complete file
communication terminal
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
CN201210363861.7A
Other languages
Chinese (zh)
Other versions
CN102917029A (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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Dongguan Yulong Telecommunication Technology Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Dongguan Yulong Telecommunication 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd, Dongguan Yulong Telecommunication Technology Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201210363861.7A priority Critical patent/CN102917029B/en
Publication of CN102917029A publication Critical patent/CN102917029A/en
Application granted granted Critical
Publication of CN102917029B publication Critical patent/CN102917029B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention is applicable to communication technical field, provides the implementation method that a kind of cloud stores, comprises step as follows: for complete file generates unique identification, all carry described unique identification in each file fragment that described complete file and described complete file are divided into; The first file fragment that received communication terminal is uploaded; According to the described unique identification carried in described first file fragment, whether retrieval exists the described complete file corresponding with described first file fragment; If retrieve described complete file, then described complete file is shared to described communication terminal.Correspondingly, the present invention also provides a kind of cloud storage system.Whereby, the present invention can not only save the communication flows of upload file, and the realization that file cloud of being more convenient for stores.

Description

The implementation method that cloud stores and cloud storage system
Technical field
The present invention relates to communication technical field, particularly relate to implementation method and the cloud storage system of the storage of a kind of cloud.
Background technology
Cloud storage is in the conceptive extension of cloud computing and the new concept of development out one, refer to by functions such as cluster application, grid or distributed file systems, various dissimilar memory device a large amount of in network is gathered collaborative work by application software, a system of data storage and Operational Visit function is externally provided jointly.When the core of cloud computing system computing and process is the store and management of mass data, just need in cloud computing system to configure a large amount of memory devices, so cloud computing system is just transformed into a cloud storage system.
When existing user utilizes the communication terminals such as mobile phone to cloud storage system upload file, need obtain and upload complete file, therefore need to expend more communication flows, and if user only has the file fragment of this complete file, its cloud that cannot carry out complete file stores.
In summary, obviously there is inconvenience and defect in actual use, so be necessary to be improved in the actualizing technology that existing cloud stores.
Summary of the invention
For above-mentioned defect, the implementation method that the object of the present invention is to provide a kind of cloud to store and cloud storage system, it can not only save the communication flows of upload file, and the realization that file cloud of being more convenient for stores.
To achieve these goals, the invention provides the implementation method that a kind of cloud stores, comprise step as follows:
For complete file generates unique identification, in each file fragment that described complete file and described complete file are divided into, all carry described unique identification;
The first file fragment that received communication terminal is uploaded;
According to the described unique identification carried in described first file fragment, whether retrieval exists the described complete file corresponding with described first file fragment;
If retrieve described complete file, then described complete file is shared to described communication terminal.
According to implementation method of the present invention, described step complete file being shared to described communication terminal comprises:
Set up the first mapping relations between described first file fragment and described complete file, according to described first mapping relations, described complete file is shared to described communication terminal.
According to implementation method of the present invention, described unique identification is the MD5 code generated according to described complete file.
According to implementation method of the present invention, in each file fragment described, record its positional information in the described complete file of correspondence;
The described described unique identification according to carrying in the first file fragment, retrieval also comprises after whether there is the step of the described complete file corresponding with described first file fragment:
If do not retrieve described complete file, then retrieve and whether there is the alternative document fragment corresponding with described complete file;
If retrieve described alternative document fragment, then according to the described positional information recorded in described first file fragment and described alternative document fragment, described first file fragment is become a file fragment combination with described alternative document fragment assembly;
Described file fragment combination is shared to described communication terminal.
According to implementation method of the present invention, described step file fragment combination being shared to described communication terminal comprises:
Set up described first file fragment and described file fragment combine between the second mapping relations, according to described second mapping relations, described file fragment combination is shared to described communication terminal.
The present invention also provides a kind of cloud storage system, includes:
Identifier generation module, for generating unique identification for complete file, all carries described unique identification in each file fragment that described complete file and described complete file are divided into;
Receiver module, for the first file fragment that received communication terminal is uploaded;
First retrieval module, for according to the described unique identification carried in described first file fragment, retrieves whether there is the described complete file corresponding with described first file fragment;
First sharing module, if for retrieving described complete file, then share to described communication terminal by described complete file.
According to cloud storage system of the present invention, described complete file also for setting up the first mapping relations between described first file fragment and described complete file, is shared to described communication terminal according to described first mapping relations by described first sharing module.
According to cloud storage system of the present invention, described unique identification is the MD5 code generated according to described complete file.
According to cloud storage system of the present invention, in each file fragment described, record its positional information in the described complete file of correspondence;
Described cloud storage system also comprises:
Second retrieval module, for when described first retrieval module does not retrieve described complete file, whether retrieval exists the alternative document fragment corresponding with described complete file;
Concatenation module, if for retrieving described alternative document fragment, then according to the described positional information recorded in described first file fragment and described alternative document fragment, becomes a file fragment combination with described alternative document fragment assembly by described first file fragment;
Second sharing module, for sharing to described communication terminal by described file fragment combination.
According to cloud storage system of the present invention, described second sharing module also for set up described first file fragment and described file fragment combine between the second mapping relations, according to described second mapping relations, described file fragment combination is shared to described communication terminal.
First cloud stocking system of the present invention is that complete file generates unique identification, and specifies all need carry described unique identification in described complete file and each file fragment of being split to form thereof; User only needs upload file fragment, and cloud stocking system just retrieves corresponding complete file according to the unique identification carried in this file fragment and shares to described user.Whereby, user is the invention enables not need obtain and upload complete file when carrying out cloud and storing, and only need the file fragment obtaining and upload this complete file, cloud stocking system can automatically carry out file reparation according to described file fragment or supplement complete, for user generates complete file to share, it is not only user and saves a large amount of communication flowss, and it is more convenient that file cloud storage is implemented.
Accompanying drawing explanation
Fig. 1 is the structural representation of cloud storage system of the present invention;
Fig. 2 is the structural representation of the preferred cloud storage system of the present invention;
Fig. 3 is the method flow diagram that the present invention realizes cloud storage; And
Fig. 4 is the method flow diagram that the present invention preferably realizes cloud storage.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 is the structural representation of cloud storage system of the present invention, and described cloud storage system 100 comprises identifier generation module 10, receiver module 20, first retrieval module 30 and the first sharing module 40, wherein:
Described identifier generation module 10, for generating unique identification for complete file, and all carries described unique identification in specifying each file fragment that described complete file and described complete file are divided into.Described unique identification is preferably the MD5 code (Message-Digest algorithm 5, message digest algorithm 5) generated according to complete file, such as, by MD5 code that the attribute such as author, size, version, content of complete file generates.To the complete file that user uploads, identifier generation module 10 can generate unique identification automatically for it, stores and in transmitting procedure, must carry the unique identification of its this complete file at file, if file fragment, the unique identification of complete file belonging to it also must be carried.
Described receiver module 20, for the first file fragment that received communication terminal 200 is uploaded.Described communication terminal 200 can be mobile phone, PDA (Personal Digital Assistant, personal digital assistant), computer, panel computer etc.User can obtain the first file fragment by all means, also oneself complete file can be divided into each file fragment, the agreement Sum fanction that this first file fragment is said before following.
Described first retrieval module 30, for according to the unique identification carried in the first file fragment, retrieves whether there is the complete file corresponding with the first file fragment.Described first retrieval module 30 is in cloud storage system 100, retrieve whether there is the complete file corresponding with the first file fragment.
Described first sharing module 40, if for retrieving complete file, then shares to communication terminal 200 by described complete file.Preferably, complete file also for setting up the first mapping relations between the first file fragment and complete file, is shared to communication terminal 200 according to the first mapping relations by the first sharing module 40.Because described complete file has been stored in cloud storage system 100, so set up its mapping relations, do not need to repeat to carry out cloud storage to described shared file.
The present invention needs special document storage system and host-host protocol, be similar to former BT (BitComet, BitComet) download protocol, but this system and agreement are the file process uploaded for user, complete to help user that documentation is filled in, especially for music type file; Also can save bandwidth for user, then user a upload file fragment can retrieve corresponding complete file by cloud storage system 100.
Fig. 2 is the structural representation of the preferred cloud storage system of the present invention, described cloud storage system 100 comprises identifier generation module 10, receiver module 20, first retrieval module 30, first sharing module 40, second retrieval module 50, concatenation module 60 and/or the second sharing module 70, wherein:
Described identifier generation module 10, for generating unique identification for complete file, and all carries unique identification in specifying each file fragment that described complete file and complete file are divided into; And specify to record in each file fragment its positional information in the complete file of correspondence, namely complete file is when being divided into multiple file fragment, must record its positional information in affiliated complete file in each file fragment.
Described receiver module 20, for the first file fragment that received communication terminal 200 is uploaded.
Described first retrieval module 30, for according to the unique identification carried in the first file fragment, retrieves whether there is the complete file corresponding with the first file fragment.
Described first sharing module 40, if for retrieving described complete file, then share to communication terminal 200 by complete file.Preferably, complete file also for setting up the first mapping relations between the first file fragment and complete file, is shared to communication terminal 200 according to the first mapping relations by the first sharing module 40.
Described second retrieval module 50, for when the first retrieval module 30 does not retrieve complete file, whether retrieval exists the alternative document fragment corresponding with complete file.
Described concatenation module 60, if for retrieving described alternative document fragment time, according to the positional information recorded in the first file fragment and alternative document fragment, the first file fragment is become the combination of file fragment with alternative document fragment assembly.If described alternative document fragment is complete, so the first file fragment and alternative document fragment will be spliced into described complete file.
Described second sharing module 70, for sharing to communication terminal 200 by described file fragment combination.Preferably, described second sharing module 70 also for set up the first file fragment and described file fragment combine between the second mapping relations, according to the second mapping relations, described file fragment combination is shared to communication terminal 200.Because described alternative document fragment has been stored in cloud storage system 100, so set up its mapping relations, the cloud repeating described alternative document fragment is not needed to store.
Fig. 3 is the method flow diagram that the present invention realizes cloud storage, and it can be realized by cloud storage system 100 as shown in Figure 1 or 2, comprises step as follows:
Step S301, for complete file generates unique identification, and all carries described unique identification in specifying each file fragment that described complete file and described complete file are divided into.Described unique identification is preferably the MD5 code (Message-Digest algorithm 5, message digest algorithm 5) generated according to complete file, such as, by MD5 code that the attribute such as author, size, version, content of complete file generates.To the complete file that user uploads, identifier generation module 10 can generate unique identification automatically for it, stores and in transmitting procedure, must carry the unique identification of its this complete file at file, if file fragment, the unique identification of complete file belonging to it also must be carried.
Step S302, the first file fragment that received communication terminal 200 is uploaded.User can obtain the first file fragment by all means, also oneself complete file can be divided into each file fragment, the agreement Sum fanction that this first file fragment is said before following.
Step S303, according to the described unique identification carried in the first file fragment, whether retrieval exists the complete file corresponding with the first file fragment.Specifically in cloud storage system 100, retrieve whether there is the complete file corresponding with the first file fragment.
Step S304, if retrieve described complete file, then shares to communication terminal 200 by described complete file.This step preferably, is set up the first mapping relations between the first file fragment and described complete file, according to the first mapping relations, described complete file is shared to communication terminal 200.Because described complete file has been stored in cloud storage system 100, so set up its mapping relations, do not need to repeat to carry out cloud storage to described shared file.
Fig. 4 is the method flow diagram that the present invention preferably realizes cloud storage, and it can be realized by cloud storage system 100 as shown in Figure 2, comprises step as follows:
Step S401, for complete file generates unique identification, specifies all to carry described unique identification in each file fragment that described complete file and described complete file are divided into; And specify to record in each file fragment its positional information in the complete file of correspondence, namely complete file is when being divided into multiple file fragment, its positional information in affiliated complete file in each file fragment, must be recorded.
Step S402, the first file fragment that received communication terminal 200 is uploaded.
Step S403, according to the described unique identification carried in the first file fragment, whether retrieval exists the described complete file corresponding with the first file fragment, if then perform step S404, otherwise performs step S405.
Step S404, if retrieve described complete file, then shares to communication terminal 200 by described complete file.This step preferably, is set up the first mapping relations between the first file fragment and described complete file, according to the first mapping relations, described complete file is shared to communication terminal 200.
Step S405, if do not retrieve described complete file, then retrieves and whether there is the alternative document fragment corresponding with described complete file, if then perform step S406, otherwise performs step S408.
Step S406, if retrieve described alternative document fragment, then according to the described positional information recorded in the first file fragment and described alternative document fragment, becomes a file fragment combination with described alternative document fragment assembly by the first file fragment.If described alternative document fragment is complete, so the first file fragment and alternative document fragment will be spliced into described complete file.
Step S407, shares to communication terminal 200 by described file fragment combination.Preferably, set up the first file fragment and described file fragment combine between the second mapping relations, according to the second mapping relations, described file fragment combination is shared to communication terminal 200.Because described alternative document fragment has been stored in cloud storage system 100, so set up its mapping relations, the cloud repeating described alternative document fragment is not needed to store.
Step S408, if do not retrieve described alternative document fragment, retains the first file fragment that communication terminal 200 is uploaded.
In sum, first cloud stocking system of the present invention is that complete file generates unique identification, and specifies all need carry described unique identification in described complete file and each file fragment of being split to form thereof; User only needs upload file fragment, and cloud stocking system just retrieves corresponding complete file according to the unique identification carried in this file fragment and shares to described user.Whereby, user is the invention enables not need obtain and upload complete file when carrying out cloud and storing, and only need the file fragment obtaining and upload this complete file, cloud stocking system can automatically carry out file reparation according to described file fragment or supplement complete, for user generates complete file to share, it is not only user and saves a large amount of communication flowss, and it is more convenient that file cloud storage is implemented.
Certainly; the present invention also can have other various embodiments; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art are when making various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection range that all should belong to the claim appended by the present invention.

Claims (8)

1. an implementation method for cloud storage, is characterized in that, comprise step as follows:
For complete file generates unique identification, in each file fragment that described complete file and described complete file are divided into, all carry described unique identification;
The first file fragment that received communication terminal is uploaded;
According to the described unique identification carried in described first file fragment, whether retrieval exists the described complete file corresponding with described first file fragment;
If retrieve described complete file, then described complete file is shared to described communication terminal;
Described step complete file being shared to described communication terminal comprises:
Set up the first mapping relations between described first file fragment and described complete file, according to described first mapping relations, described complete file is shared to described communication terminal.
2. implementation method according to claim 1, is characterized in that, described unique identification is the MD5 code generated according to described complete file.
3. the implementation method according to any one of claim 1 ~ 2, is characterized in that, records its positional information in the described complete file of correspondence in each file fragment described;
The described described unique identification according to carrying in the first file fragment, retrieval also comprises after whether there is the step of the described complete file corresponding with described first file fragment:
If do not retrieve described complete file, then retrieve and whether there is the alternative document fragment corresponding with described complete file;
If retrieve described alternative document fragment, then according to the described positional information recorded in described first file fragment and described alternative document fragment, described first file fragment is become a file fragment combination with described alternative document fragment assembly;
Described file fragment combination is shared to described communication terminal.
4. implementation method according to claim 3, is characterized in that, described step file fragment combination being shared to described communication terminal comprises:
Set up described first file fragment and described file fragment combine between the second mapping relations, according to described second mapping relations, described file fragment combination is shared to described communication terminal.
5. a cloud storage system, is characterized in that, includes:
Identifier generation module, for generating unique identification for complete file, all carries described unique identification in each file fragment that described complete file and described complete file are divided into;
Receiver module, for the first file fragment that received communication terminal is uploaded;
First retrieval module, for according to the described unique identification carried in described first file fragment, retrieves whether there is the described complete file corresponding with described first file fragment;
First sharing module, if for retrieving described complete file, then share to described communication terminal by described complete file;
Described complete file also for setting up the first mapping relations between described first file fragment and described complete file, is shared to described communication terminal according to described first mapping relations by described first sharing module.
6. cloud storage system according to claim 5, is characterized in that, described unique identification is the MD5 code generated according to described complete file.
7. the cloud storage system according to any one of claim 5 ~ 6, is characterized in that, records its positional information in the described complete file of correspondence in each file fragment described;
Described cloud storage system also comprises:
Second retrieval module, for when described first retrieval module does not retrieve described complete file, whether retrieval exists the alternative document fragment corresponding with described complete file;
Concatenation module, if for retrieving described alternative document fragment, then according to the described positional information recorded in described first file fragment and described alternative document fragment, becomes a file fragment combination with described alternative document fragment assembly by described first file fragment;
Second sharing module, for sharing to described communication terminal by described file fragment combination.
8. cloud storage system according to claim 7, it is characterized in that, described second sharing module also for set up described first file fragment and described file fragment combine between the second mapping relations, according to described second mapping relations, described file fragment combination is shared to described communication terminal.
CN201210363861.7A 2012-09-26 2012-09-26 The implementation method that cloud stores and cloud storage system Active CN102917029B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210363861.7A CN102917029B (en) 2012-09-26 2012-09-26 The implementation method that cloud stores and cloud storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210363861.7A CN102917029B (en) 2012-09-26 2012-09-26 The implementation method that cloud stores and cloud storage system

Publications (2)

Publication Number Publication Date
CN102917029A CN102917029A (en) 2013-02-06
CN102917029B true CN102917029B (en) 2015-08-12

Family

ID=47615259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210363861.7A Active CN102917029B (en) 2012-09-26 2012-09-26 The implementation method that cloud stores and cloud storage system

Country Status (1)

Country Link
CN (1) CN102917029B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897098A (en) * 2017-02-27 2017-06-27 郑州云海信息技术有限公司 A kind of template operation method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534322A (en) * 2009-04-13 2009-09-16 腾讯科技(深圳)有限公司 File upload system and file upload method
CN102456076A (en) * 2011-11-23 2012-05-16 北京安天电子设备有限公司 Massive fragment data aggregation system and method
CN102664928A (en) * 2012-04-01 2012-09-12 南京邮电大学 Data secure access method used for cloud storage and user terminal system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2835951B1 (en) * 2007-01-17 2018-08-22 Intertrust Technologies Corporation Methods, systems, and apparatus for fragmented file sharing
US8510267B2 (en) * 2011-03-08 2013-08-13 Rackspace Us, Inc. Synchronization of structured information repositories

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534322A (en) * 2009-04-13 2009-09-16 腾讯科技(深圳)有限公司 File upload system and file upload method
CN102456076A (en) * 2011-11-23 2012-05-16 北京安天电子设备有限公司 Massive fragment data aggregation system and method
CN102664928A (en) * 2012-04-01 2012-09-12 南京邮电大学 Data secure access method used for cloud storage and user terminal system

Also Published As

Publication number Publication date
CN102917029A (en) 2013-02-06

Similar Documents

Publication Publication Date Title
CN101316226B (en) Method, device and system for acquiring resources
CN102857578B (en) A kind of file uploading method of network hard disc, system and net dish client
CN102769640B (en) The update method of user profile, server and system
CN104243586A (en) Content sharing method, device and equipment
CN105025043A (en) Information sharing method, information sharing device and information sharing system
CN102404397A (en) Message reminding method, device and system
CN102916854A (en) Traffic statistical method and device and proxy server
CN102769687A (en) Mass texting system and method
CN103780633A (en) Method and device for mobile terminal to upload file, and method and device for network server to upload file
CN105450585A (en) Information transmission method and device
CN102355632A (en) Method for acquiring state information, system, mobile terminal and server
CN103491153A (en) Method, equipment and peer-to-peer network system for data sharing
CN104167216A (en) Audio frequency file sharing method, device and sound box
CN103944805A (en) Information updating method and system based on Wechat platform
CN105472585A (en) Network setting method and mobile terminal
CN102685222B (en) A kind of cloud SRM device for electric power system
CN103716760A (en) Method and system for receiving and sending short message
CN105262793B (en) The method and system of audio file in intelligent sound box broadcasting memory
KR20160103110A (en) Network element data access method and apparatus, and network management system
CN102238530A (en) Method and apparatus for expanding user equipment identities of machine-type communication devices
CN103873631B (en) Method and device for displaying call interface of mobile terminal
CN102917029B (en) The implementation method that cloud stores and cloud storage system
CN105144658A (en) Centralized task management using a router
US10327133B2 (en) Making subscriber data addressable as a device in a mobile data network
CN104063377A (en) Information processing method and electronic equipment using same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant